Make instream be per UI
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2016-06-21 Pedro Alves <palves@redhat.com>
2
3 * cli/cli-script.c (execute_user_command, read_next_line)
4 (read_next_line): Adjust to per-UI instream.
5 * event-top.c (stdin_event_handler, command_handler)
6 (handle_line_of_input, command_line_handler)
7 (gdb_readline_no_editing_callback, async_sigterm_handler)
8 (gdb_setup_readline): Likewise.
9 * inflow.c: Include top.h.
10 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
11 (gdb_save_tty_state, child_terminal_inferior)
12 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
13 (initialize_stdin_serial): Adjust to per-UI instream.
14 * main.c (captured_command_loop, captured_main): Adjust to per-UI
15 instream.
16 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
17 * python/python.c (python_interactive_command): Likewise.
18 * terminal.h (struct ui): Forward declare.
19 (initialize_stdin_serial): Add struct ui parameter.
20 * top.c (instream): Delete.
21 (do_restore_instream_cleanup, read_command_file, dont_repeat)
22 (gdb_readline_no_editing, command_line_input)
23 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
24 * top.h (struct ui) <instream>: New field.
25 (instream): Delete declaration.
26 (quit): Adjust to per-UI instream.
27
28 2016-06-21 Pedro Alves <palves@redhat.com>
29
30 * event-loop.c: Include top.h.
31 (invoke_async_signal_handlers): Switch to the main UI.
32 * event-top.c (main_ui_): Update comment.
33 (main_ui): New global.
34 * top.h (main_ui): Declare.
35
36 2016-06-21 Pedro Alves <palves@redhat.com>
37
38 * cli/cli-interp.c (cli_interp): Delete.
39 (as_cli_interp): New function.
40 (cli_on_normal_stop, cli_on_signal_received)
41 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
42 (cli_on_no_history): Send output to all CLI UIs.
43 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
44 the top level interpreter is not a CLI.
45 (cli_interpreter_init): Don't set cli_interp or install observers
46 here.
47 (_initialize_cli_interp): Install observers here.
48 * event-top.c (main_ui_, ui_list): New globals.
49 (current_ui): Point to main_ui_.
50 (restore_ui_cleanup, switch_thru_all_uis_init)
51 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
52 functions.
53 * mi/mi-interp.c (as_mi_interp): New function.
54 (mi_interpreter_init): Don't install observers here.
55 (mi_on_sync_execution_done): Skip output if the top level
56 interpreter is not a MI.
57 (mi_new_thread, mi_thread_exit, mi_record_changed)
58 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
59 (mi_inferior_removed): Send output to all MI UIs.
60 (find_mi_interpreter, mi_interp_data): Delete.
61 (find_mi_interp): New function.
62 (mi_on_signal_received, mi_on_end_stepping_range)
63 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
64 to all MI UIs.
65 (mi_on_normal_stop): Rename to ...
66 (mi_on_normal_stop_1): ... this.
67 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
68 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
69 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
70 (mi_breakpoint_modified, mi_output_running_pid): Send output to
71 all MI UIs.
72 (mi_on_resume): Rename to ...
73 (mi_on_resume_1): ... this. Don't handle infcalls here.
74 (mi_on_resume): Reimplement, sending output to all MI UIs.
75 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
76 (mi_memory_changed): Send output to all MI UIs.
77 (report_initial_inferior): Install observers here.
78 * top.h (struct ui) <next>: New field.
79 (ui_list): Declare.
80 (struct switch_thru_all_uis): New.
81 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
82 (switch_thru_all_uis_next): Declare.
83 (SWITCH_THRU_ALL_UIS): New macro.
84 * tui/tui-interp.c (tui_interp): Delete global.
85 (as_tui_interp): New function.
86 (tui_on_normal_stop, tui_on_signal_received)
87 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
88 (tui_on_no_history): Send output to all TUI UIs.
89 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
90 the top level interpreter is not a TUI.
91 (tui_init): Don't set tui_interp or install observers here.
92 (_initialize_tui_interp): Install observers here.
93
94 2016-06-21 Pedro Alves <palves@redhat.com>
95
96 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
97 (struct cli_interp): ... this new structure.
98 (cli_on_normal_stop, cli_on_signal_received)
99 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
100 (cli_on_no_history): Use interp_ui_out.
101 (cli_interpreter_init): If top level, set the cli_interp global.
102 (cli_interpreter_init): Return the interp's data instead of NULL.
103 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
104 to cli_uiout being in the interpreter's data.
105 (cli_interp_procs): New, factored out from _initialize_cli_interp.
106 (cli_interp_factory): New function.
107 (_initialize_cli_interp): Call interp_factory_register.
108 * interps.c (get_interp_info): New, factored out from ...
109 (get_current_interp_info): ... this.
110 (interp_new): Add parameter 'data'. Store it.
111 (struct interp_factory): New function.
112 (interp_factory_p): New typedef. Define a VEC_P.
113 (interpreter_factories): New global.
114 (interp_factory_register): New function.
115 (interp_add): Add 'ui' parameter. Use get_interp_info and
116 interp_lookup_existing.
117 (interp_lookup): Rename to ...
118 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
119 check for NULL or empty name here.
120 (interp_lookup): Add 'ui' parameter and reimplement.
121 (interp_set_temp, interpreter_exec_cmd): Adjust.
122 (interpreter_completer): Complete on registered interpreter
123 factories instead of interpreters.
124 * interps.h (interp_factory_func): New typedef.
125 (interp_factory_register): Declare.
126 (interp_new, interp_add): Adjust.
127 (interp_lookup): Declare.
128 * main.c (captured_main): Adjust.
129 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
130 (mi_interp_procs): New, factored out from
131 _initialize_mi_interp.
132 (mi_interp_factory): New function.
133 * python/python.c (execute_gdb_command): Adjust.
134 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
135 global.
136 (tui_interp_procs): New.
137 (tui_interp_factory): New function.
138 (_initialize_tui_interp): Call interp_factory_register.
139
140 2016-06-21 Pedro Alves <palves@redhat.com>
141
142 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
143 async field instead of the interpreter_async global.
144 * cli/cli-script.c (execute_user_command, while_command)
145 (if_command, script_from_file): Likewise.
146 * compile/compile.c: Include top.h instead of interps.h.
147 (compile_file_command, compile_code_command)
148 (compile_print_command): Access the current UI's async field
149 instead of the interpreter_async global.
150 * guile/guile.c: Include top.h instead of interps.h.
151 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
152 Access the current UI's async field instead of the
153 interpreter_async global.
154 * guile/scm-ports.c: Include top.h instead of interps.h.
155 (ioscm_with_output_to_port_worker): Access the current UI's async
156 field instead of the interpreter_async global.
157 * inf-loop.c (inferior_event_handler): Likewise.
158 * infcall.c (run_inferior_call): Likewise.
159 * infrun.c (reinstall_readline_callback_handler_cleanup)
160 (fetch_inferior_event): Likewise.
161 * interps.c (interpreter_async): Delete.
162 (struct ui_interp_info): New.
163 (get_current_interp_info): New function.
164 (interp_list, current_interpreter, top_level_interpreter_ptr):
165 Delete.
166 (interp_add, interp_set, interp_lookup, interp_ui_out)
167 (current_interp_set_logging, interp_set_temp)
168 (current_interp_named_p): Adjust to per-UI interpreters.
169 (command_interpreter): Delete.
170 (command_interp, current_interp_command_loop, interp_quiet_p)
171 (interp_exec, interpreter_exec_cmd, interpreter_completer)
172 (top_level_interpreter, top_level_interpreter_data): Adjust to
173 per-UI interpreters.
174 * interps.h (interpreter_async): Delete.
175 * main.c (captured_command_loop): Access the current UI's async
176 field instead of the interpreter_async global.
177 * python/python.c (python_interactive_command, python_command)
178 (execute_gdb_command): Likewise.
179 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
180 Access the current UI's async field instead of the
181 interpreter_async global.
182 * top.h (struct tl_interp_info): Forward declare.
183 (struct ui) <interp_info, async>: New fields.
184
185 2016-06-21 Pedro Alves <palves@redhat.com>
186
187 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
188 globals.
189 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
190 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
191 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
192 m_gdb_stdlog>: New fields.
193 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
194 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
195 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
196 macros.
197
198 2016-06-21 Pedro Alves <palves@redhat.com>
199
200 * event-top.c: Update readline-related comments.
201 (input_handler, call_readline): Delete globals.
202 (gdb_rl_callback_handler): Call the current UI's input_handler
203 method.
204 (change_line_handler): Adjust to set current UI's properties
205 instead of globals.
206 (current_ui_, current_ui): New globals.
207 (get_command_line_buffer): Rewrite to refer to the current UI.
208 (stdin_event_handler): Adjust to call the call_readline method of
209 the current UI.
210 (gdb_readline_no_editing_callback): Adjust to call the current UI's
211 input_handler method.
212 (gdb_setup_readline): Adjust to set current UI's properties
213 instead of globals.
214 * event-top.h (call_readline, input_handler): Delete declarations.
215 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
216 UI's properties instead of globals.
217 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
218 properties instead of globals.
219 (gdb_readline_wrapper): Adjust to call and set current UI's
220 methods instead of globals.
221 * top.h: Include buffer.h and event-loop.h.
222 (struct ui): New struct.
223 (current_ui): New declaration.
224
225 2016-06-21 Pedro Alves <palves@redhat.com>
226
227 * ada-lang.c (ada_exception_name_addr_1): Add comment.
228 (print_it_exception): Select the current frame.
229
230 2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
231
232 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
233 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
234 (ALLDEPFILES): Add nds32-tdep.c.
235 * NEWS: Mention new NDS32 port.
236 * configure.tgt: Add NDS32.
237 * nds32-tdep.c: New file.
238 * nds32-tdep.h: New file.
239 * features/Makefile (XMLTOC): Add nds32.xml.
240 * features/nds32-core.xml: New file.
241 * features/nds32-fpu.xml: New file.
242 * features/nds32-system.xml: New file.
243 * features/nds32.c: New file (generated).
244 * features/nds32.xml: New file.
245
246 2016-06-14 John Baldwin <jhb@FreeBSD.org>
247
248 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
249
250 2016-06-14 John Baldwin <jhb@FreeBSD.org>
251
252 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
253
254 2016-06-14 John Baldwin <jhb@FreeBSD.org>
255
256 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
257
258 2016-06-13 Nick Clifton <nickc@redhat.com>
259
260 * gdbtypes.c (replace_type): Fix assertion.
261
262 2016-06-10 Tom Tromey <tom@tromey.com>
263
264 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
265 (arch_boolean_type, arch_float_type, arch_complex_type)
266 (arch_flags_type, append_flags_type_field)
267 (append_flags_type_flag, arch_composite_type)
268 (append_composite_type_field_raw)
269 (append_composite_type_field_aligned)
270 (append_composite_type_field): Make "name" parameter const.
271 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
272 (arch_boolean_type, arch_float_type, arch_complex_type)
273 (append_composite_type_field, append_composite_type_field_aligned)
274 (append_composite_type_field_raw, arch_flags_type)
275 (append_flags_type_field, append_flags_type_flag): Constify.
276
277 2016-06-10 Tom Tromey <tom@tromey.com>
278
279 PR rust/20110:
280 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
281
282 2016-06-10 Tom Tromey <tom@tromey.com>
283
284 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
285 (YYFILES): Add rust-exp.c.
286 (YYOBJ): Add rust-exp.o.
287 (local-maintainer-clean): Remove rust-exp.c.
288
289 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
290
291 * NEWS: Mention that GDB now supports a negative repeat count in
292 the 'x' command.
293 * printcmd.c (decode_format): Allow '-' in the parameter
294 "string_ptr" to accept a negative repeat count.
295 (find_instruction_backward): New function.
296 (read_memory_backward): New function.
297 (integer_is_zero): New function.
298 (find_string_backward): New function.
299 (do_examine): Use new functions to examine memory backward.
300 (_initialize_printcmd): Mention that 'x' command supports a negative
301 repeat count.
302
303 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
304
305 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
306
307 2016-06-09 Tom Tromey <tom@tromey.com>
308
309 PR python/19819:
310 * python/py-xmethods.c (invoke_method_name)
311 (py_get_result_type_method_name, py_invoke_method_name): Remove.
312 (gdbpy_initialize_xmethods): Don't initialize
313 py_invoke_method_name, py_get_result_type_method_name.
314
315 2016-06-07 Simon Marchi <simon.marchi@ericsson.com>
316
317 * mi/mi-interp.c (mi_record_changed): Add missing braces.
318
319 2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
320
321 * findvar.c (follow_static_link): Check for valid pointer.
322
323 2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
324
325 * NEWS: Mention the new fields in =record-started.
326 * common/btrace-common.h (btrace_format_short_string): New function
327 declaration.
328 * common/btrace-common.c (btrace_format_short_string): New
329 function.
330 * mi/mi-interp.c (mi_record_changed): Output method and format
331 fields in the =record-started record.
332 * record-btrace.c (record_btrace_open): Adapt record_changed
333 notification.
334 * record-full.c (record_full_open): Likewise.
335 * record.c (cmd_record_stop): Likewise.
336
337 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
338
339 * windows-nat.c (handle_output_debug_string): Return type of
340 gdb_signal_from_host() is gdb_signal, not an int.
341 (windows_get_exec_module_filename): Add pointer casts for C++.
342
343 2016-06-02 Tom Tromey <tom@tromey.com>
344
345 PR python/18984:
346 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
347
348 2016-06-01 Pedro Alves <palves@redhat.com>
349
350 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
351 (remote_fio_osa)
352 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
353 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
354 Delete.
355 (remote_fileio_o_quit_handler): New global.
356 (remote_fileio_quit_handler): New function.
357 (remote_fileio_reply): Check the quit flag instead of the custom
358 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
359 of changing the SIGINT handler.
360 (do_remote_fileio_request): Override the quit handler instead of
361 changing the SIGINT handler.
362
363 2016-06-01 Nick Clifton <nickc@redhat.com>
364
365 * common/common-utils.c (xmalloc_failed): New function. Provided
366 so that the version in libiberty is not linked in.
367
368 2016-06-01 Markus Metzger <markus.t.metzger@intel.com>
369
370 * infcmd.c (skip_finish_frames): New.
371 (finish_command): Call skip_finish_frames.
372
373 2016-06-01 Yao Qi <yao.qi@linaro.org>
374
375 PR remote/19998
376 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
377 quit_serial_event_set.
378
379 2016-06-01 Joel Brobecker <brobecker@adacore.com>
380
381 GDB 7.11.1 released.
382
383 2016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
384
385 PR c++/19893
386 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
387 fetch_const_value_from_synthetic_pointer): New functions.
388 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
389 (pieced_value_funcs): Implement coerce_ref.
390 * valops.c (value_addr): Call coerce_ref for synthetic references.
391 * valprint.c (valprint_check_validity): Return true for synthetic
392 references. Also, don't show "<synthetic pointer>" if they reference
393 addressable values.
394 (generic_val_print_ref): Handle synthetic references. Also move some
395 code to print_ref_address.
396 (print_ref_address, get_value_addr_contents): New functions.
397
398 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
399
400 PR c++/15231
401 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
402 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
403 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
404 (read_call_site_scope): Adjust callers.
405 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
406 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
407
408 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
409
410 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
411 * dwarf2read.c (enum pc_bounds_kind) New.
412 (dwarf2_get_pc_bounds): Use it in the declaration.
413 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
414 to cu_bounds_kind.
415 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
416 Adjust callers.
417 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
418 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
419
420 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
421
422 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
423 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
424 deleted.
425
426 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
427
428 * NEWS (N stop reply): Remove empty line.
429
430 2016-05-28 Alan Modra <amodra@gmail.com>
431
432 * compile/compile-object-load.c (link_callbacks_multiple_definition,
433 link_callbacks_warning, link_callbacks_undefined_symbol,
434 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
435 link_callbacks_reloc_dangerous,
436 link_callbacks_unattached_reloc): Return void.
437
438 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
439
440 * opencl-lang.c (evaluate_subexp_opencl): If
441 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
442 the returned value in the STRUCTOP_STRUCT case.
443
444 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
445
446 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
447 mode, forward the VALUE_LVAL attribute to the returned value in
448 the STRUCTOP_PTR case.
449
450 2016-05-25 Tom Tromey <tom@tromey.com>
451
452 * python/py-value.c (value_object_as_number): Use correct spelling
453 of HAVE_LIBPYTHON2_4.
454
455 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
456
457 * f-typeprint.c (f_type_print_base): Replace 0 by show.
458
459 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
460
461 * f-typeprint.c (f_type_print_base): Decrease show by one.
462
463 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
464
465 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
466
467 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
468
469 * f-typeprint.c (f_type_print_base): Take print level into account.
470
471 2016-05-24 Tom Tromey <tom@tromey.com>
472
473 PR python/17386:
474 * python/py-value.c (value_object_as_number): Add
475 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
476
477 2016-05-24 Tom Tromey <tom@tromey.com>
478
479 * python/py-value.c (value_object_as_number): Add
480 nb_inplace_divide for Python 2.
481
482 2016-05-23 Tom Tromey <tom@tromey.com>
483
484 PR python/17981:
485 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
486 when there are no breakpoints.
487
488 2016-05-24 Pedro Alves <palves@redhat.com>
489
490 PR gdb/19828
491 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
492 resumed, and add the thread to GDB's thread list.
493
494 2016-05-24 Pedro Alves <palves@redhat.com>
495
496 PR gdb/19828
497 * linux-nat.c (get_pending_status): If the thread reported the
498 event to the core and it's pending, use the pending status signal
499 number.
500
501 2016-05-24 Pedro Alves <palves@redhat.com>
502
503 PR gdb/19828
504 * linux-nat.c (lwp_lwpid_htab): New htab.
505 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
506 (lwp_lwpid_htab_add_lwp): New functions.
507 (lwp_list): Tweak comment.
508 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
509 functions.
510 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
511 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
512 (delete_lwp): Use lwp_list_remove. Remove htab too.
513 (find_lwp_pid): Search in htab.
514 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
515 * linux-nat.h (struct lwp_info) <prev>: New field.
516
517 2016-05-24 Pedro Alves <palves@redhat.com>
518
519 PR gdb/19828
520 * linux-nat.c (lwp_lwpid_htab): New htab.
521 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
522 (lwp_lwpid_htab_add_lwp): New functions.
523 (lwp_list): Tweak comment.
524 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
525 functions.
526 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
527 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
528 (delete_lwp): Use lwp_list_remove. Remove htab too.
529 (find_lwp_pid): Search in htab.
530 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
531 * linux-nat.h (struct lwp_info) <prev>: New field.
532
533 2016-05-24 Pedro Alves <palves@redhat.com>
534
535 PR gdb/19828
536 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
537 field.
538 (linux_nat_update_thread_list): Don't fetch the core if already
539 known.
540
541 2016-05-24 Pedro Alves <palves@redhat.com>
542
543 PR gdb/19828
544 * linux-tdep.c (find_mapping_size): Delete.
545 (linux_vsyscall_range_raw): Rewrite reading from
546 /proc/PID/task/PID/maps directly instead of using
547 gdbarch_find_memory_regions.
548
549 2016-05-24 Pedro Alves <palves@redhat.com>
550
551 PR gdb/19828
552 * linux-nat.c (report_thread_events): New global.
553 (linux_handle_extended_wait): Report
554 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
555 enabled.
556 (wait_lwp, linux_nat_filter_event): Report all thread exits if
557 thread event reporting is enabled. Remove comment.
558 (filter_exit_event): New function.
559 (linux_nat_wait_1): Use it.
560 (linux_nat_thread_events): New function.
561 (linux_nat_add_target): Install it as target_thread_events method.
562
563 2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
564
565 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
566
567 2016-05-23 Yao Qi <yao.qi@arm.com>
568
569 * arch-utils.c (default_code_of_frame_writable): New function.
570 * arch-utils.h (default_code_of_frame_writable): Declare.
571 * arm-tdep.c (arm_code_of_frame_writable): New function.
572 (arm_gdbarch_init): Install gdbarch method
573 code_of_frame_writable if the target is M-profile.
574 * frame.c (skip_unwritable_frames): New function.
575 * frame.h (skip_unwritable_frames): Declare.
576 * gdbarch.sh (code_of_frame_writable): New.
577 * gdbarch.c, gdbarch.h: Re-generated.
578 * infcmd.c (finish_command): Call skip_unwritable_frames.
579
580 2016-05-23 Tom Tromey <tom@tromey.com>
581
582 PR python/19438, PR python/18393:
583 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
584 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
585
586 2016-05-23 Gary Benson <gbenson@redhat.com>
587
588 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
589 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
590 Remove field.
591 (try_thread_db_load_1): Remove td_thr_validate initialization.
592
593 2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
594
595 * configure.ac: Search for libutil-freebsd as alternative to libutil.
596 * configure: Re-generated.
597
598 2016-05-19 Andreas Schwab <schwab@suse.de>
599
600 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
601 (libunwind_frame_set_descr): Likewise.
602 (libunwind_frame_cache): Likewise.
603 (libunwind_frame_dealloc_cache): Likewise.
604 (libunwind_frame_sniffer): Likewise.
605 (libunwind_search_unwind_table): Likewise.
606 (libunwind_sigtramp_frame_sniffer): Likewise.
607 (libunwind_get_reg_special): Likewise.
608 (libunwind_load): Likewise.
609 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
610 (ia64_linux_store_register): Likewise.
611 (ia64_linux_xfer_partial): Likewise.
612 * ia64-tdep.c (ia64_access_reg): Likewise.
613 (ia64_access_fpreg): Likewise.
614 (ia64_access_rse_reg): Likewise.
615 (ia64_access_rse_fpreg): Likewise.
616
617 2016-05-18 Tom Tromey <tom@tromey.com>
618
619 * rust-lang.c (rust_subscript): Initialize "high".
620
621 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
622
623 PR gdb/20045
624 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
625 of target_is_async_p.
626
627 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
628
629 PR gdb/18077
630 * mi/mi-main.c (run_one_inferior): Use run target to determine
631 whether to run async or not.
632 (mi_cmd_exec_run): Likewise.
633
634 2016-05-17 Tom Tromey <tom@tromey.com>
635
636 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
637 * rust-lang.c: Don't include f-lang.h.
638 (rust_range, rust_compute_range, rust_subscript)
639 (rust_evaluate_subexp): Update.
640 * rust-exp.y: Don't include f-lang.h.
641 (ast_range, convert_ast_to_expression): Update.
642 * parse.c (operator_length_standard): Update.
643 * f-lang.h (enum f90_range_type): Move to expression.h.
644 * f-exp.y: Use OP_RANGE.
645 * expression.h (enum range_type): New enum; renamed from
646 f90_range_type.
647 * expprint.c: Don't include f-lang.h.
648 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
649 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
650
651 2016-05-17 Tom Tromey <tom@tromey.com>
652
653 * NEWS: Add Rust item.
654
655 2016-05-17 Tom Tromey <tom@tromey.com>
656 Manish Goregaokar <manishsmail@gmail.com>
657
658 * symtab.c (symbol_find_demangled_name): Handle Rust.
659 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
660 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
661 constants.
662 * rust-lang.h: New file.
663 * rust-lang.c: New file.
664 * rust-exp.y: New file.
665 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
666 (dwarf2_compute_name, read_func_scope, read_structure_type)
667 (read_base_type, read_subrange_type, set_cu_language)
668 (new_symbol_full, determine_prefix): Handle Rust.
669 * defs.h (enum language) <language_rust>: New constant.
670 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
671 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
672
673 2016-05-17 Tom Tromey <tom@tromey.com>
674
675 * valprint.h (struct generic_val_print_array) <array_start,
676 array_end>: New fields.
677 * valprint.c (generic_val_print_array): Add "decorations"
678 parameter. Use "array_start", "array_end".
679 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
680 * p-valprint.c (p_decorations): Update.
681 * m2-valprint.c (m2_decorations): Update.
682 * f-valprint.c (f_decorations): Update.
683 * c-valprint.c (c_decorations): Update.
684
685 2016-05-17 Tom Tromey <tom@tromey.com>
686
687 * NEWS: Add "maint selftest" entry.
688 * selftest.h: New file.
689 * selftest.c: New file.
690 * maint.c: Include selftest.h.
691 (maintenance_selftest): New function.
692 (_initialize_maint_cmds): Add "maint selftest" command.
693 * configure.ac (GDB_SELF_TEST): Maybe define.
694 * config.in, configure: Rebuild.
695 * Makefile.in (SFILES): Add selftest.c.
696 (COMMON_OBS): Add selftest.o.
697
698 2016-05-17 Tom Tromey <tom@tromey.com>
699
700 * expprint.c: Include f-lang.h.
701 (print_subexp_standard, dump_subexp_body_standard): Handle
702 OP_F90_RANGE.
703
704 2016-05-17 Tom Tromey <tom@tromey.com>
705
706 * Makefile.in (init.c): Search .y files for initialization
707 functions.
708
709 2016-05-12 Doug Evans <dje@google.com>
710
711 PR symtab/19999
712 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
713 add base_offset.
714
715 2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
716
717 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
718 anything.
719 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
720
721 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
722
723 * arm-tdep.c (arm_elf_make_msymbol_special): Use
724 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
725
726 2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
727
728 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
729 variables.
730 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
731 (aarch64_scan_prologue): Likewise.
732 (aarch64_prologue_prev_register): Likewise.
733 (aarch64_dwarf2_prev_register): Likewise.
734 (pass_in_v): Likewise.
735 (aarch64_push_dummy_call): Likewise.
736 (aarch64_breakpoint_from_pc): Likewise.
737 (aarch64_return_in_memory): Likewise.
738 (aarch64_return_value): Likewise.
739 (aarch64_displaced_step_b_cond): Likewise.
740 (aarch64_displaced_step_cb): Likewise.
741 (aarch64_displaced_step_tb): Likewise.
742 (aarch64_gdbarch_init): Likewise.
743 (aarch64_process_record): Likewise.
744 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
745 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
746 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
747 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
748 * amd64-tdep.c (fixup_riprel): Likewise.
749 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
750 (amd64_windows_frame_decode_insns): Likewise.
751 (amd64_windows_frame_cache): Likewise.
752 (amd64_windows_frame_prev_register): Likewise.
753 (amd64_windows_frame_this_id): Likewise.
754 (amd64_windows_init_abi): Likewise.
755 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
756 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
757 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
758 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
759 (arm_epilogue_frame_prev_register): Likewise.
760 (arm_record_vdata_transfer_insn): Likewise.
761 (arm_record_exreg_ld_st_insn): Likewise.
762 * auto-load.c (execute_script_contents): Likewise.
763 (print_scripts): Likewise.
764 * avr-tdep.c (avr_frame_prev_register): Likewise.
765 (avr_push_dummy_call): Likewise.
766 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
767 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
768 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
769 * break-catch-throw.c (fetch_probe_arguments): Likewise.
770 * breakpoint.c (breakpoint_xfer_memory): Likewise.
771 (breakpoint_init_inferior): Likewise.
772 (breakpoint_inserted_here_p): Likewise.
773 (software_breakpoint_inserted_here_p): Likewise.
774 (hardware_breakpoint_inserted_here_p): Likewise.
775 (bpstat_what): Likewise.
776 (break_range_command): Likewise.
777 (save_breakpoints): Likewise.
778 * coffread.c (coff_symfile_read): Likewise.
779 * cris-tdep.c (cris_push_dummy_call): Likewise.
780 (cris_scan_prologue): Likewise.
781 (cris_register_size): Likewise.
782 (_initialize_cris_tdep): Likewise.
783 * d-exp.y: Likewise.
784 * dbxread.c (dbx_read_symtab): Likewise.
785 (process_one_symbol): Likewise.
786 (coffstab_build_psymtabs): Likewise.
787 (elfstab_build_psymtabs): Likewise.
788 * dicos-tdep.c (dicos_init_abi): Likewise.
789 * disasm.c (do_mixed_source_and_assembly): Likewise.
790 (gdb_disassembly): Likewise.
791 * dtrace-probe.c (dtrace_process_dof): Likewise.
792 * dwarf2read.c (error_check_comp_unit_head): Likewise.
793 (build_type_psymtabs_1): Likewise.
794 (skip_one_die): Likewise.
795 (process_imported_unit_die): Likewise.
796 (dwarf2_physname): Likewise.
797 (read_file_scope): Likewise.
798 (setup_type_unit_groups): Likewise.
799 (create_dwo_cu_reader): Likewise.
800 (create_dwo_cu): Likewise.
801 (create_dwo_unit_in_dwp_v1): Likewise.
802 (create_dwo_unit_in_dwp_v2): Likewise.
803 (lookup_dwo_unit_in_dwp): Likewise.
804 (free_dwo_file): Likewise.
805 (check_producer): Likewise.
806 (dwarf2_add_typedef): Likewise.
807 (dwarf2_add_member_fn): Likewise.
808 (read_unsigned_leb128): Likewise.
809 (read_signed_leb128): Likewise.
810 (dwarf2_const_value): Likewise.
811 (follow_die_sig_1): Likewise.
812 (dwarf_decode_macro_bytes): Likewise.
813 * extension.c (restore_active_ext_lang): Likewise.
814 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
815 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
816 * gdbtypes.c (lookup_typename): Likewise.
817 (resolve_dynamic_range): Likewise.
818 (check_typedef): Likewise.
819 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
820 (h8300_gdbarch_init): Likewise.
821 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
822 (hppa_frame_this_id): Likewise.
823 (_initialize_hppa_tdep): Likewise.
824 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
825 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
826 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
827 * i386-tdep.c (i386_bnd_type): Likewise.
828 (i386_gdbarch_init): Likewise.
829 (i386_mpx_bd_base): Likewise.
830 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
831 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
832 * ia64-tdep.c (examine_prologue): Likewise.
833 (ia64_frame_cache): Likewise.
834 (ia64_push_dummy_call): Likewise.
835 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
836 (default_print_one_register_info): Likewise.
837 * infrun.c (infrun_thread_ptid_changed): Likewise.
838 (thread_still_needs_step_over): Likewise.
839 (stop_all_threads): Likewise.
840 (restart_threads): Likewise.
841 (keep_going_stepped_thread): Likewise.
842 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
843 * language.c (language_init_primitive_type_symbols): Likewise.
844 * linespec.c (add_sal_to_sals): Likewise.
845 * linux-nat.c (status_callback): Likewise.
846 (kill_unfollowed_fork_children): Likewise.
847 (linux_nat_kill): Likewise.
848 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
849 * linux-thread-db.c (thread_db_notice_clone): Likewise.
850 (record_thread): Likewise.
851 * location.c (string_to_event_location_basic): Likewise.
852 * m32c-tdep.c (m32c_prev_register): Likewise.
853 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
854 * m32r-tdep.c (decode_prologue): Likewise.
855 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
856 * machoread.c (macho_symtab_read): Likewise.
857 (macho_symfile_read): Likewise.
858 (macho_symfile_offsets): Likewise.
859 * maint.c (set_per_command_cmd): Likewise.
860 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
861 (mi_cmd_stack_list_variables): Likewise.
862 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
863 (output_register): Likewise.
864 (mi_cmd_execute): Likewise.
865 (mi_cmd_trace_define_variable): Likewise.
866 (print_variable_or_computed): Likewise.
867 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
868 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
869 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
870 * mt-tdep.c (mt_registers_info): Likewise.
871 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
872 (nios2_push_dummy_call): Likewise.
873 (nios2_frame_unwind_cache): Likewise.
874 (nios2_stub_frame_cache): Likewise.
875 (nios2_stub_frame_sniffer): Likewise.
876 (nios2_gdbarch_init): Likewise.
877 * ppc-ravenscar-thread.c: Likewise.
878 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
879 * python/py-evts.c (add_new_registry): Likewise.
880 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
881 (bpfinishpy_detect_out_scope_cb): Likewise.
882 * python/py-framefilter.c (py_print_value): Likewise.
883 * python/py-inferior.c (infpy_write_memory): Likewise.
884 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
885 * python/py-infthread.c (thpy_get_ptid): Likewise.
886 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
887 (ltpy_get_all_source_lines): Likewise.
888 (ltpy_is_valid): Likewise.
889 (ltpy_iternext): Likewise.
890 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
891 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
892 (unwind_infopy_str): Likewise.
893 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
894 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
895 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
896 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
897 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
898 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
899 (s390_frame_prev_register): Likewise.
900 (s390_dwarf2_frame_init_reg): Likewise.
901 (s390_record_vr): Likewise.
902 (s390_process_record): Likewise.
903 * score-tdep.c (score_push_dummy_call): Likewise.
904 (score3_analyze_prologue): Likewise.
905 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
906 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
907 (sh64_push_dummy_call): Likewise.
908 (sh64_extract_return_value): Likewise.
909 (sh64_do_fp_register): Likewise.
910 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
911 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
912 (darwin_solib_read_all_image_info_addr): Likewise.
913 * solib-dsbt.c (enable_break): Likewise.
914 * solib-frv.c (enable_break2): Likewise.
915 (frv_fdpic_find_canonical_descriptor): Likewise.
916 * solib-svr4.c (svr4_handle_solib_event): Likewise.
917 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
918 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
919 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
920 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
921 * stack.c (read_frame_local): Likewise.
922 * symfile.c (symbol_file_add_separate): Likewise.
923 (remove_symbol_file_command): Likewise.
924 * symmisc.c (maintenance_print_one_line_table): Likewise.
925 * symtab.c (symbol_cache_flush): Likewise.
926 (basic_lookup_transparent_type): Likewise.
927 (sort_search_symbols_remove_dups): Likewise.
928 * target.c (target_memory_map): Likewise.
929 (target_detach): Likewise.
930 (target_resume): Likewise.
931 (acquire_fileio_fd): Likewise.
932 (target_store_registers): Likewise.
933 * thread.c (print_thread_info_1): Likewise.
934 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
935 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
936 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
937 (tilegx_analyze_prologue): Likewise.
938 (tilegx_stack_frame_destroyed_p): Likewise.
939 (tilegx_frame_cache): Likewise.
940 * tracefile.c (trace_save): Likewise.
941 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
942 (start_tracing): Likewise.
943 (print_one_static_tracepoint_marker): Likewise.
944 * tui/tui.c (tui_enable): Likewise.
945 * valops.c (value_struct_elt_bitpos): Likewise.
946 (find_overload_match): Likewise.
947 (find_oload_champ): Likewise.
948 * value.c (value_contents_copy_raw): Likewise.
949 * windows-tdep.c (windows_get_tlb_type): Likewise.
950 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
951 * xcoffread.c (record_minimal_symbol): Likewise.
952 (scan_xcoff_symtab): Likewise.
953 * xtensa-tdep.c (execute_code): Likewise.
954 (xtensa_gdbarch_init): Likewise.
955 (_initialize_xtensa_tdep): Likewise.
956
957 2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
958
959 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
960 (spu_bfd_open): Likewise.
961
962 2016-05-04 Yao Qi <yao.qi@linaro.org>
963
964 PR gdb/19947
965 * corefile.c (read_memory): Rename it to ...
966 (read_memory_object): ... it. Add parameter object.
967 (read_memory): Call read_memory_object.
968 (read_stack): Likewise.
969 (read_code): Likewise.
970
971 2016-05-03 Yunlian Jiang <yunlian@google.com>
972 Doug Evans <dje@google.com>
973
974 PR symtab/19914
975 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
976 is separate debug file.
977
978 2016-05-03 Don Breazeal <donb@codesourcery.com>
979
980 * serial.h (gdb_pipe): Fix argument names in comment.
981
982 2016-05-03 Pedro Alves <palves@redhat.com>
983
984 PR python/20037
985 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
986 oldloc.
987
988 2016-05-03 Pedro Alves <palves@redhat.com>
989
990 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
991 code.
992
993 2016-05-03 Pedro Alves <palves@redhat.com>
994
995 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
996 * configure: Regenerate.
997
998 2016-05-03 Pedro Alves <palves@redhat.com>
999
1000 * configure.ac (checking for the dynamic export flag): Add
1001 $PYTHON_CPPFLAGS to CPPFLAGS.
1002 * configure: Regenerate.
1003
1004 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1005
1006 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
1007 warning.
1008 (find_pc_mapped_section): Likewise.
1009 (list_overlays_command): Likewise.
1010
1011 2016-05-02 Eli Zaretskii <eliz@gnu.org>
1012
1013 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
1014 error in allocation of space for "$HOME/.gdbinit" string. This
1015 caused GDB to abort on startup whenever a '~/gdb.ini' file was
1016 actually found, because xsnprintf would hit an assertion
1017 violation.
1018
1019 2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
1020
1021 * cli/cli-decode.c (help_cmd_list): Do not list commands that
1022 are deprecated.
1023
1024 2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1025
1026 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
1027
1028 2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
1029
1030 * c-valprint.c (c_value_print): Always convert val back to reference
1031 type if we converted it to a pointer type.
1032
1033 2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
1034
1035 * configure.ac: Enhance configure check for babeltrace to reject
1036 non-C++-enabled versions.
1037 * configure: Regenerate.
1038
1039 2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
1040 Keven Boell <keven.boell@intel.com>
1041 Bernhard Heckel <bernhard.heckel@intel.com>
1042
1043 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1044 function.
1045 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
1046 (f77_print_array_1): Use value_subscript to subscript a
1047 value array.
1048 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
1049 (f_val_print): Use value_field to construct a field value.
1050
1051 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
1052
1053 * valarith.c (value_address): Resolve dynamic types.
1054
1055 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
1056 Keven Boell <kevel.boell@intel.com>
1057
1058 * NEWS: Add new supported features for fortran.
1059 * gdbtypes.c (remove_dyn_prop): New.
1060 (resolve_dynamic_struct): Keep type length for fortran structs.
1061 * gdbtypes.h: Forward declaration of new function.
1062 * value.c (value_address): Return dynamic resolved location of a value.
1063 (set_value_component_location): Adjust the value address
1064 for single value prints.
1065 (value_primitive_field): Support value types with a dynamic location.
1066 (set_internalvar): Remove dynamic location property of
1067 internal variables.
1068
1069 2016-04-25 Pedro Alves <palves@redhat.com>
1070 Yao Qi <yao.qi@linaro.org>
1071
1072 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
1073 object. Insert it if it is not inserted yet. Increase the
1074 refcount and link it into the proc's raw breakpoint list.
1075
1076 2016-04-25 Yao Qi <yao.qi@linaro.org>
1077
1078 * breakpoint.c (should_be_inserted): Return 0 if the location's
1079 owner is not single step breakpoint or single step breakpoint's
1080 thread isn't the thread which is stepping past a breakpoint.
1081 * gdbarch.sh (software_single_step): Update comments.
1082 * gdbarch.h: Regenerated.
1083 * infrun.c (struct step_over_info) <thread>: New field.
1084 (set_step_over_info): New argument 'thread'. Callers updated.
1085 (clear_step_over_info): Set field thread to -1.
1086 (thread_is_stepping_over_breakpoint): New function.
1087 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
1088
1089 2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1090
1091 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
1092 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
1093
1094 2016-04-22 Yao Qi <yao.qi@linaro.org>
1095
1096 * valops.c (read_value_memory): New local variable 'stack'.
1097 Set it to either TARGET_OBJECT_STACK_MEMORY or
1098 TARGET_OBJECT_MEMORY.
1099
1100 2016-04-22 Pedro Alves <palves@redhat.com>
1101
1102 * ada-exp.y: Remove all yy symbol remappings.
1103 (GDB_YY_REMAP_PREFIX): Define.
1104 Include "yy-remap.h".
1105 * ada-lang.c (ada_language_defn): Adjust.
1106 * ada-lang.h (ada_error): Rename to ...
1107 (ada_yyerror): ... this.
1108 * c-exp.y: Remove all yy symbol remappings.
1109 (GDB_YY_REMAP_PREFIX): Define.
1110 Include "yy-remap.h".
1111 * c-lang.c (c_language_defn, cplus_language_defn)
1112 (asm_language_defn, minimal_language_defn): Adjust.
1113 * c-lang.h (c_error): Rename to ...
1114 (c_yyerror): ... this.
1115 * d-exp.y: Remove all yy symbol remappings.
1116 (GDB_YY_REMAP_PREFIX): Define.
1117 Include "yy-remap.h".
1118 * d-lang.c (d_language_defn): Adjust.
1119 * d-lang.h (d_error): Rename to ...
1120 (d_yyerror): ... this.
1121 * f-exp.y: Remove all yy symbol remappings.
1122 (GDB_YY_REMAP_PREFIX): Define.
1123 Include "yy-remap.h".
1124 * f-lang.c (f_language_defn): Adjust.
1125 * f-lang.h (f_error): Rename to ...
1126 (f_yyerror): ... this.
1127 * go-exp.y: Remove all yy symbol remappings.
1128 (GDB_YY_REMAP_PREFIX): Define.
1129 Include "yy-remap.h".
1130 * go-lang.c (go_language_defn): Adjust.
1131 * go-lang.h (go_error): Rename to ...
1132 (go_yyerror): ... this.
1133 * jv-exp.y: Remove all yy symbol remappings.
1134 (GDB_YY_REMAP_PREFIX): Define.
1135 Include "yy-remap.h".
1136 * jv-lang.c (java_language_defn): Adjust.
1137 * jv-lang.h (java_error): Rename to ...
1138 (java_yyerror): ... this.
1139 * m2-exp.y: Remove all yy symbol remappings.
1140 (GDB_YY_REMAP_PREFIX): Define.
1141 Include "yy-remap.h".
1142 * m2-lang.c (m2_language_defn): Adjust.
1143 * m2-lang.h (m2_error): Rename to ...
1144 (m2_yyerror): ... this.
1145 * objc-exp.y: Remove all yy symbol remappings.
1146 (GDB_YY_REMAP_PREFIX): Define.
1147 Include "yy-remap.h".
1148 * objc-lang.c (objc_language_defn): Adjust.
1149 * opencl-lang.c (opencl_language_defn): Adjust.
1150 * p-exp.y: Remove all yy symbol remappings.
1151 (GDB_YY_REMAP_PREFIX): Define.
1152 Include "yy-remap.h".
1153 * p-lang.c (pascal_language_defn): Adjust.
1154 * p-lang.h (pascal_error): Rename to ...
1155 (pascal_yyerror): ... this.
1156 * yy-remap.h: New file.
1157
1158 2016-04-22 Pedro Alves <palves@redhat.com>
1159
1160 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
1161 the foreign frames issue.
1162 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
1163
1164 2016-04-22 Pedro Alves <palves@redhat.com>
1165
1166 * common/common-exceptions.c (enum catcher_state, struct catcher)
1167 (current_catcher): Define in C++ mode too.
1168 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
1169 throw_exception.
1170 (throw_exception_sjlj, throw_exception_cxx): New functions,
1171 factored out from throw_exception.
1172 (throw_exception): Reimplement.
1173 * common/common-exceptions.h (exceptions_state_mc_init)
1174 (exceptions_state_mc_action_iter)
1175 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1176 Declare in C++ mode too.
1177 (TRY): Rename to ...
1178 (TRY_SJLJ): ... this.
1179 (CATCH): Rename to ...
1180 (CATCH_SJLJ): ... this.
1181 (END_CATCH): Rename to ...
1182 (END_CATCH_SJLJ): ... this.
1183 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
1184 equivalents.
1185 (throw_exception): Update comments.
1186 (throw_exception_sjlj): Declare.
1187 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
1188 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
1189 intercepted exception.
1190 (gdb_rl_callback_handler): New function.
1191 (gdb_rl_callback_handler_install): Always install
1192 gdb_rl_callback_handler as readline callback.
1193
1194 2016-04-22 Pedro Alves <palves@redhat.com>
1195
1196 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
1197 (gdb_rl_callback_read_char_wrapper): ... this.
1198 (change_line_handler, gdb_setup_readline): Adjust.
1199
1200 2016-04-22 Yao Qi <yao.qi@linaro.org>
1201
1202 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
1203 bits 20 to 23.
1204
1205 2016-04-22 Joel Brobecker <brobecker@adacore.com>
1206
1207 * MAINTAINER: Remove myself as AIX Maintainer.
1208
1209 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
1210
1211 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
1212 `num_regs' to 90 rather than 79. Where a target description is
1213 present adjust the setting appropriately.
1214
1215 2016-04-21 Pedro Alves <palves@redhat.com>
1216
1217 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
1218 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
1219
1220 2016-04-21 Pedro Alves <palves@redhat.com>
1221
1222 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
1223 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
1224 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
1225 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
1226 pointer, and cast return to gdb_byte pointer.
1227
1228 2016-04-21 Pedro Alves <palves@redhat.com>
1229
1230 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
1231 void * instead of gdb_byte *.
1232
1233 2016-04-21 Pedro Alves <palves@redhat.com>
1234
1235 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
1236 (file_file_name, file_full_name): Add char * cast to sentinel in
1237 concat/reconcat calls.
1238 * event-top.c (top_level_prompt): Likewise.
1239 * guile/guile.c (initialize_scheme_side): Likewise.
1240 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
1241 * macrotab.c (macro_source_fullname): Likewise.
1242 * main.c (get_init_files, captured_main): Likewise.
1243 * psymtab.c (psymtab_to_fullname): Likewise.
1244 * python/python.c (_initialize_python)
1245 (gdbpy_finish_initialization): Likewise.
1246 * source.c (symtab_to_fullname): Likewise.
1247
1248 2016-04-20 Pedro Alves <palves@redhat.com>
1249
1250 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
1251 * configure: Renegerate.
1252
1253 2016-04-20 Pedro Alves <palves@redhat.com>
1254
1255 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
1256
1257 2016-04-20 Pedro Alves <palves@redhat.com>
1258
1259 * aarch64-tdep.c (aarch64_record_load_store): Change type of
1260 'reg_rm_val' local to ULONGEST.
1261
1262 2016-04-20 Pedro Alves <palves@redhat.com>
1263
1264 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
1265
1266 2016-04-20 Doug Evans <xdje42@gmail.com>
1267
1268 * symmisc.c (dump_symtab_1): Print owning compunit for identical
1269 blockvectors.
1270
1271 2016-04-20 Yao Qi <yao.qi@linaro.org>
1272
1273 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
1274
1275 2016-04-20 Yao Qi <yao.qi@linaro.org>
1276
1277 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
1278 * arch/arm-linux.h: ... here.
1279
1280 2016-04-19 John Baldwin <jhb@FreeBSD.org>
1281
1282 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
1283 to void *.
1284 (amd64bsd_store_inferior_registers): Likewise.
1285 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
1286 (resume_all_threads_cb): Likewise.
1287 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
1288 (i386bsd_collect_gregset): Likewise.
1289 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
1290 (i386bsd_store_inferior_registers): Likewise.
1291
1292 2016-04-19 John Baldwin <jhb@FreeBSD.org>
1293
1294 * main.c (setup_alternate_signal_stack): Cast to char *.
1295
1296 2016-04-19 Doug Evans <xdje42@gmail.com>
1297
1298 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
1299 All callers updated.
1300
1301 2016-04-19 Doug Evans <xdje42@gmail.com>
1302
1303 PR gdb/17911
1304 * source.c (is_regular_file): New arg errno_ptr.
1305 All callers updated.
1306
1307 2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
1308
1309 * linux-record.c (record_linux_system_call): Merge handling for
1310 readlink/recv/read and pipe/pipe2.
1311
1312 2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
1313
1314 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
1315 * features/i386/amd64-mpx.xml: Remove AVX feature.
1316 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
1317 * features/i386/i386-mpx.xml: Remove AVX feature.
1318 * features/i386/amd64-mpx-linux.c: Regenerate.
1319 * features/i386/amd64-mpx.c: Regenerate.
1320 * features/i386/i386-mpx-linux.c: Regenerate.
1321 * features/i386/i386-mpx.c: Regenerate.
1322 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1323 * regformats/i386/amd64-mpx.dat: Regenerate.
1324 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1325 * regformats/i386/i386-mpx.dat: Regenerate.
1326
1327 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
1328
1329 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
1330 New include.
1331 (amd64_linux_core_read_description): Add case for
1332 X86_XSTATE_AVX_MPX_MASK.
1333 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
1334 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
1335 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
1336 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
1337 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
1338 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
1339 (X86_XSTATE_AVX_MPX_MASK): New case.
1340 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
1341 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
1342 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
1343 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
1344 New expedites.
1345 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
1346 include.
1347 (i386_linux_core_read_description): Add case
1348 X86_XSTATE_AVX_MPX_MASK.
1349 (_initialize_i386_linux_tdep): Call
1350 initialize_tdesc_i386_avx_mpx_linux.
1351 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
1352 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
1353 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
1354 * x86-linux-nat.c (x86_linux_read_description): Add case for
1355 X86_XSTATE_AVX_MPX_MASK.
1356 * features/i386/amd64-avx-mpx-linux.xml: New file.
1357 * features/i386/i386-avx-mpx-linux.xml: New file.
1358 * features/i386/i386-avx-mpx.xml: New file.
1359 * features/i386/amd64-avx-mpx.xml: New file.
1360 * features/i386/amd64-avx-mpx-linux.c: Generated.
1361 * features/i386/amd64-avx-mpx.c: Generated.
1362 * features/i386/i386-avx-mpx-linux.c: Generated.
1363 * features/i386/i386-avx-mpx.c: Generated.
1364 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
1365 * regformats/i386/amd64-avx-mpx.dat: Generated.
1366 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
1367 * regformats/i386/i386-avx-mpx.dat: Generated.
1368
1369 2016-04-18 Pedro Alves <palves@redhat.com>
1370
1371 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
1372 * configure: Regenerate.
1373
1374 2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
1375
1376 * valops.c (value_addr): For C++ references, set the copied value's
1377 enclosing_type as well.
1378
1379 2016-04-18 Yao Qi <yao.qi@linaro.org>
1380
1381 Revert:
1382 2016-04-15 Yao Qi <yao.qi@linaro.org>
1383
1384 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
1385 PC is far from the end of function.
1386
1387 2016-04-16 Pedro Alves <palves@redhat.com>
1388
1389 * ada-exp.y (yydefred): Define as ada_yydefred.
1390
1391 2016-04-15 Pedro Alves <palves@redhat.com>
1392
1393 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
1394 'name_str' locals.
1395
1396 2016-04-15 Pedro Alves <palves@redhat.com>
1397
1398 * btrace.c (pt_btrace_insn_flags): Change return type to
1399 btrace_insn_flags. Use btrace_insn_flags for local.
1400
1401 2016-04-15 Pedro Alves <palves@redhat.com>
1402
1403 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
1404 accept TRAP_BRKPT.
1405 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
1406
1407 2016-04-15 Yao Qi <yao.qi@linaro.org>
1408
1409 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
1410 PC is far from the end of function.
1411
1412 2016-04-14 Pedro Alves <palves@redhat.com>
1413
1414 * cli/cli-cmds.c (alias_usage_error): New function.
1415 (alias_command): Use it.
1416 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
1417 ctf_save_write_metadata call.
1418
1419 2016-04-14 Pedro Alves <palves@redhat.com>
1420
1421 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
1422 argument to function expecting LONGEST.
1423 * value.c (unpack_long): Add casts to LONGEST.
1424
1425 2016-04-13 Luis Machado <lgustavo@codesourcery.com>
1426
1427 * exec.c (exec_file_locate_attach): Guard a couple functions
1428 that can throw errors.
1429 (exception_print_same): New helper function.
1430
1431 2016-04-13 Pedro Alves <palves@redhat.com>
1432
1433 PR remote/19840
1434 * remote.c (struct remote_state) <last_resume_exec_dir>: New
1435 field.
1436 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
1437 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
1438 (remote_resume): Store the last execution direction.
1439 (remote_execution_direction): New function.
1440 (init_remote_ops): Install it as to_execution_direction target_ops
1441 method.
1442
1443 2016-04-12 Pedro Alves <palves@redhat.com>
1444
1445 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
1446 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
1447
1448 2016-04-12 Pedro Alves <palves@redhat.com>
1449
1450 * common/common-exceptions.c (struct catcher) <buf>: Now a
1451 'jmp_buf' instead of SIGJMP_BUF.
1452 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
1453 (throw_exception): Use longjmp instead of SIGLONGJMP.
1454 * common/common-exceptions.h: Include <setjmp.h> instead of
1455 "gdb_setjmp.h".
1456 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
1457 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
1458 SIGSETJMP.
1459 * cp-support.c: Include "gdb_setjmp.h".
1460
1461 2016-04-12 Pedro Alves <palves@redhat.com>
1462
1463 * common/common-exceptions.c (exception_rethrow): Remove
1464 prepare_to_throw_exception call.
1465 * common/common-exceptions.h (prepare_to_throw_exception): Delete
1466 declaration.
1467 * exceptions.c (prepare_to_throw_exception): Delete.
1468
1469 2016-04-12 Pedro Alves <palves@redhat.com>
1470
1471 * target.c (target_check_pending_interrupt): Delete.
1472 * target.h (struct target_ops) <to_check_pending_interrupt>:
1473 Remove method.
1474 (target_check_pending_interrupt): Remove declaration.
1475 * target-delegates.c: Regenerate.
1476
1477 2016-04-12 Pedro Alves <palves@redhat.com>
1478
1479 * defs.h: Update comments on SIGINT handling.
1480 (immediate_quit): Delete declaration.
1481 * event-loop.c (call_async_signal_handler): Delete.
1482 * event-loop.h (call_async_signal_handler): Delete declaration.
1483 (mark_async_signal_handler): Update comments.
1484 (gdb_call_async_signal_handler): Delete declaration.
1485 * event-top.c (handle_sigint): Call mark_async_signal_handler
1486 instead of gdb_call_async_signal_handler.
1487 * exceptions.c (prepare_to_throw_exception): Remove reference to
1488 immediate_quit.
1489 (exception_fprintf): Remove comments about immediate_quit.
1490 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
1491 (gdb_select): Don't wait on sigint_event.
1492 (gdb_call_async_signal_handler): Delete.
1493 (_initialize_mingw_hdep): Delete.
1494 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
1495 * utils.c (immediate_quit): Delete.
1496
1497 2016-04-12 Pedro Alves <palves@redhat.com>
1498
1499 * defs.h (quit_handler_ftype, quit_handler)
1500 (make_cleanup_override_quit_handler, default_quit_handler): New.
1501 (QUIT): Adjust comments.
1502 * event-top.c (default_quit_handler): New function.
1503 (quit_handler): New global.
1504 (struct quit_handler_cleanup_data): New.
1505 (restore_quit_handler, restore_quit_handler_dtor)
1506 (make_cleanup_override_quit_handler): New.
1507 (async_request_quit): Call QUIT.
1508 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
1509 (async_sigint_remote_twice_token, async_sigint_remote_token):
1510 Delete.
1511 (remote_close): Update comments.
1512 (remote_start_remote): Don't set immediate_quit. Set starting_up
1513 earlier.
1514 (remote_serial_quit_handler, remote_unpush_and_throw): New
1515 functions.
1516 (remote_open_1): Clear got_ctrlc_during_io. Set
1517 remote_async_terminal_ours_p unconditionally.
1518 (async_initialize_sigint_signal_handler)
1519 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
1520 (remote_check_pending_interrupt, async_remote_interrupt)
1521 (async_remote_interrupt_twice)
1522 (async_cleanup_sigint_signal_handler, ofunc)
1523 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
1524 (remote_terminal_inferior, remote_terminal_ours): Remove async
1525 checks.
1526 (remote_wait_as): Don't install a SIGINT handler in sync mode.
1527 (readchar, remote_serial_write): Override the quit handler with
1528 remote_serial_quit_handler.
1529 (getpkt_or_notif_sane_1): Don't call QUIT.
1530 (initialize_remote_ops): Don't install
1531 remote_check_pending_interrupt.
1532 (_initialize_remote): Don't create async_sigint_remote_token and
1533 async_sigint_remote_twice_token.
1534 * ser-base.c (ser_base_wait_for): Call QUIT and use
1535 interruptible_select.
1536 (ser_base_write): Call QUIT.
1537 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
1538 * ser-unix.c (wait_for): Don't use VTIME. Always take the
1539 gdb_select path, but call QUIT and interruptible_select.
1540 * utils.c (maybe_quit): Call the current quit handler. Don't call
1541 target_check_pending_interrupt.
1542 (defaulted_query, prompt_for_continue): Override the quit handler
1543 with the default quit handler.
1544
1545 2016-04-12 Pedro Alves <palves@redhat.com>
1546
1547 * tui/tui-hooks.c (tui_target_has_run): Delete.
1548 (tui_about_to_proceed): Delete.
1549 (tui_about_to_proceed_observer): Delete.
1550 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
1551 about_to_proceed observer.
1552
1553 2016-04-12 Pedro Alves <palves@redhat.com>
1554
1555 * mi/mi-interp.c (mi_new_thread): Put
1556 target_terminal_ours_for_output in effect while outputting.
1557 (mi_thread_exit): Use target_terminal_ours_for_output instead of
1558 target_terminal_ours.
1559 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1560 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1561 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1562 (mi_breakpoint_created, mi_breakpoint_deleted)
1563 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
1564 (mi_command_param_changed, mi_memory_changed)
1565 (report_initial_inferior): Use target_terminal_ours_for_output
1566 instead of target_terminal_ours. Restore terminal settings.
1567 * mi/mi-main.c (mi_execute_command): Use
1568 target_terminal_ours_for_output instead of target_terminal_ours.
1569 Restore terminal settings.
1570
1571 2016-04-12 Pedro Alves <palves@redhat.com>
1572
1573 PR gdb/19828
1574 * gnu-nat.c (inf_validate_task_sc): Don't call
1575 target_terminal_ours / target_terminal_inferior around query.
1576 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
1577 call target_terminal_ours / target_terminal_inferior around
1578 yquery.
1579 * linux-record.c (record_linux_system_call): Don't call
1580 target_terminal_ours / target_terminal_inferior around yquery.
1581 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
1582 / target_terminal_inferior around query.
1583 * record-full.c (record_full_check_insn_num): Remove
1584 'set_terminal' parameter. Don't call target_terminal_ours /
1585 target_terminal_inferior around query.
1586 (record_full_message, record_full_registers_change)
1587 (record_full_xfer_partial): Adjust.
1588 * remote.c (interrupt_query): Don't call target_terminal_ours /
1589 target_terminal_inferior around query.
1590 * utils.c (defaulted_query): Install cleanup to restore target
1591 terminal. Put target_terminal_ours_for_output in effect while
1592 defaulted producing, and target_terminal_ours in in effect while
1593 handling input.
1594 (prompt_for_continue): Install cleanup to restore target terminal.
1595 Put target_terminal_ours in in effect while handling input.
1596
1597 2016-04-12 Pedro Alves <palves@redhat.com>
1598
1599 * utils.c (defaulted_query, prompt_for_continue): Free temporary
1600 strings with cleanups, instead of xfree.
1601
1602 2016-04-12 Pedro Alves <palves@redhat.com>
1603
1604 * utils.c (vwarning, internal_vproblem): Use
1605 make_cleanup_restore_target_terminal and
1606 target_terminal_ours_for_output.
1607
1608 2016-04-12 Pedro Alves <palves@redhat.com>
1609
1610 * infcmd.c (post_create_inferior, prepare_one_step): Use
1611 target_terminal_ours_for_output instead of target_terminal_ours.
1612
1613 2016-04-12 Pedro Alves <palves@redhat.com>
1614
1615 * exceptions.c (print_flush): Use target_terminal_ours_for_output
1616 instead of target_terminal_ours, and restore target terminal with
1617 a cleanup.
1618
1619 2016-04-12 Pedro Alves <palves@redhat.com>
1620
1621 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
1622 instead of target_terminal_ours, and restore target terminal with
1623 a cleanup.
1624
1625 2016-04-12 Pedro Alves <palves@redhat.com>
1626
1627 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
1628 functions.
1629 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
1630
1631 2016-04-12 Pedro Alves <palves@redhat.com>
1632
1633 * ser-base.c (fd_event): Retry read_prim on EINTR.
1634 (do_ser_base_readchar): Retry read_prim on EINTR.
1635 (ser_base_write): Retry write_prim on EINTR.
1636 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
1637 (ser_unix_write_prim): Remove comment.
1638
1639 2016-04-12 Pedro Alves <palves@redhat.com>
1640
1641 * remote.c (remote_pass_ctrlc): New function.
1642 (init_remote_ops): Install it.
1643 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
1644 target.
1645 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
1646 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
1647 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
1648 * target-delegates.c: Regenerate.
1649
1650 2016-04-12 Pedro Alves <palves@redhat.com>
1651
1652 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
1653 mode.
1654 * linux-nat.c (linux_nat_interrupt): Delete.
1655 (linux_nat_add_target): Don't install linux_nat_interrupt.
1656 * remote.c (remote_interrupt_ns): Change return type to void.
1657 Throw error if interrupting the target is not supported.
1658 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
1659
1660 2016-04-12 Pedro Alves <palves@redhat.com>
1661
1662 * defs.h (clear_quit_flag): Remove declaration.
1663 * extension-priv.h (struct extension_language_ops)
1664 <clear_quit_flag>: Remove field and update comments.
1665 * extension.c (clear_quit_flag): Delete.
1666 * guile/guile.c (guile_extension_ops): Adjust.
1667 * python/python.c (python_extension_ops): Adjust.
1668 (gdbpy_clear_quit_flag): Delete.
1669
1670 2016-04-12 Pedro Alves <palves@redhat.com>
1671
1672 * main.c (captured_main): Don't clear the quit flag.
1673
1674 2016-04-12 Pedro Alves <palves@redhat.com>
1675
1676 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
1677 flag.
1678
1679 2016-04-12 Pedro Alves <palves@redhat.com>
1680
1681 * event-top.c (command_handler): Don't call clear_quit_flag.
1682
1683 2016-04-12 Pedro Alves <palves@redhat.com>
1684
1685 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
1686 * remote.c (remote_wait_as): Don't call clear_quit_flag.
1687
1688 2016-04-12 Pedro Alves <palves@redhat.com>
1689
1690 * python/python.c: Include "ser-event.h".
1691 (gdbpy_event_fds): Delete.
1692 (gdbpy_serial_event): New.
1693 (gdbpy_run_events): Change prototype. Use serial_event_clear
1694 instead of serial_readchar.
1695 (gdbpy_post_event): Use serial_event_set instead of serial_write.
1696 (gdbpy_initialize_events): Use make_serial_event instead of
1697 serial_pipe.
1698
1699 2016-04-12 Pedro Alves <palves@redhat.com>
1700
1701 * defs.h: Extend QUIT-related comments to mention
1702 interruptible_select.
1703 (quit_serial_event_set, quit_serial_event_clear): Declare.
1704 * event-top.c: Include "ser-event.h" and "gdb_select.h".
1705 (quit_serial_event): New global.
1706 (async_init_signals): Make quit_serial_event.
1707 (quit_serial_event_set, quit_serial_event_clear)
1708 (quit_serial_event_fd, interruptible_select): New functions.
1709 * extension.c (set_quit_flag): Set the quit serial event.
1710 (check_quit_flag): Clear the quit serial event.
1711 * gdb_select.h (interruptible_select): New declaration.
1712 * guile/scm-ports.c (ioscm_input_waiting): Use
1713 interruptible_select instead of gdb_select.
1714 * top.c (gdb_readline_no_editing): Likewise.
1715 * ui-file.c (stdio_file_read): Likewise.
1716
1717 2016-04-12 Pedro Alves <palves@redhat.com>
1718
1719 * event-loop.c: Include "ser-event.h".
1720 (async_signal_handlers_serial_event): New global.
1721 (async_signals_handler, initialize_async_signal_handlers): New
1722 functions.
1723 (mark_async_signal_handler): Set
1724 async_signal_handlers_serial_event.
1725 (invoke_async_signal_handlers): Clear
1726 async_signal_handlers_serial_event.
1727 * event-top.c (async_init_signals): Call
1728 initialize_async_signal_handlers.
1729
1730 2016-04-12 Pedro Alves <palves@redhat.com>
1731
1732 * Makefile.in (SFILES): Add ser-event.c.
1733 (HFILES_NO_SRCDIR): Add ser-event.h.
1734 (COMMON_OBS): Add ser-event.o.
1735 * ser-event.c, ser-event.h: New files.
1736 * serial.c (new_serial): New function, factored out from
1737 (serial_fdopen_ops): ... this.
1738 (serial_open_ops_1): New function, factored out from
1739 (serial_open): ... this.
1740 (serial_open_ops): New function.
1741 * serial.h (struct serial): Forware declare.
1742 (serial_open_ops): New declaration.
1743
1744 2016-04-12 Pedro Alves <palves@redhat.com>
1745
1746 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
1747 Remove references to name.
1748 * serial.h (struct serial) <name>: Delete.
1749
1750 2016-04-12 Pedro Alves <palves@redhat.com>
1751
1752 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
1753 Delete.
1754 (async_remote_fileio_interrupt): Delete.
1755 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
1756 handler. Instead just always set the ctrl_c flag.
1757 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
1758 re-enabling the SIGINT handler.
1759 (remote_fileio_func_open, remote_fileio_func_close)
1760 (remote_fileio_func_read, remote_fileio_func_write)
1761 (remote_fileio_func_lseek, remote_fileio_func_rename)
1762 (remote_fileio_func_unlink, remote_fileio_func_stat)
1763 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
1764 (remote_fileio_func_isatty, remote_fileio_func_system)
1765 (remote_fileio_request): Remove references to
1766 remote_fio_no_longjmp.
1767 (initialize_remote_fileio): Don't create an async signal handler.
1768
1769 2016-04-12 Pedro Alves <palves@redhat.com>
1770
1771 * event-top.c (stdin_event_handler): Call QUIT;
1772 (prompt_for_continue): Don't run with immediate_quit set.
1773
1774 2016-04-12 Pedro Alves <palves@redhat.com>
1775
1776 * tui/tui-io.c (tui_redisplay_readline): Check
1777 gdb_in_secondary_prompt_p instead of immediate_quit.
1778 * tui/tui.c: Include top.h.
1779 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
1780 immediate_quit.
1781
1782 2016-04-12 Pedro Alves <palves@redhat.com>
1783
1784 * top.c (read_command_file): Inline command_loop here.
1785 (command_loop): Delete.
1786
1787 2016-04-12 Pedro Alves <palves@redhat.com>
1788
1789 * top.c: Include "gdb_select.h".
1790 (gdb_readline_no_editing): Wait for input with gdb_select instead
1791 of blocking in fgetc.
1792 (command_line_input): Don't set immediate_quit.
1793
1794 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
1795
1796 * value.c (value_next): Make pass-by-reference parameters const-correct.
1797 (value_parent): Likewise.
1798 (value_enclosing_type): Likewise.
1799 (value_lazy): Likewise.
1800 (value_stack): Likewise.
1801 (value_embedded_offset): Likewise.
1802 (value_pointed_to_offset): Likewise.
1803 (value_raw_address): Likewise.
1804 (deprecated_value_modifiable): Likewise.
1805 (value_free_to_mark): Likewise.
1806 (value_release_to_mark): Likewise.
1807 (internalvar_name): Likewise.
1808 (readjust_indirect_value_type): Likewise.
1809 (value_initialized): Likewise.
1810 * value.h (value_next): Likewise.
1811 (value_parent): Likewise.
1812 (value_enclosing_type): Likewise.
1813 (value_lazy): Likewise.
1814 (value_stack): Likewise.
1815 (value_embedded_offset): Likewise.
1816 (value_pointed_to_offset): Likewise.
1817 (value_raw_address): Likewise.
1818 (deprecated_value_modifiable): Likewise.
1819 (value_free_to_mark): Likewise.
1820 (value_release_to_mark): Likewise.
1821 (internalvar_name): Likewise.
1822 (readjust_indirect_value_type): Likewise.
1823 (value_initialized): Likewise.
1824
1825 2016-04-07 Yao Qi <yao.qi@linaro.org>
1826
1827 * record-full.c (record_full_insert_breakpoint): Return
1828 early if entry on the address is found in
1829 record_full_breakpoints.
1830
1831 2016-04-07 Yao Qi <yao.qi@linaro.org>
1832
1833 * record-full.c (record_full_insert_breakpoint): Set
1834 bp_tgt->reqstd_address and bp_tgt->placed_size.
1835
1836 2016-04-06 Don Breazeal <donb@codesourcery.com>
1837
1838 * value.c (value_actual_type): Don't try to get rtti type
1839 of the value if it has been optimized out.
1840 (value_optimized_out): If a memory access error occurs,
1841 just check vaue->optimized_out.
1842
1843 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1844
1845 Revert the previous commit adding unknown_v_replies_ok.
1846
1847 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1848
1849 * remote.c (struct remote_state): New field unknown_v_replies_ok.
1850 (packet_config_support): Read it.
1851 (remote_start_remote): Set it.
1852
1853 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1854
1855 * remote.c: Revert check-in by a mistake in the previous commit.
1856
1857 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1858 Pedro Alves <palves@redhat.com>
1859
1860 * exec.c (exec_file_locate_attach): Print warning for unsupported
1861 target_pid_to_exec_file.
1862 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
1863 message part.
1864
1865 2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
1866
1867 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
1868 trailing spaces.
1869
1870 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
1871
1872 PR gdb/19820
1873 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
1874 the type of BINOP_REPEAT's second operand.
1875
1876 2016-03-31 Yichao Yu <yyc1992@gmail.com>
1877
1878 PR gdb/19858
1879 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
1880 got the breakpoint at the right address.
1881 (jit_inferior_created): New function.
1882 (_initialize_jit): Install jit_inferior_created as
1883 inferior_created observer.
1884
1885 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
1886
1887 * NEWS: Mention support for tracepoints on powerpc*-linux.
1888
1889 2016-03-31 Catalin Udma <catalin.udma@freescale.com>
1890
1891 PR python/19743
1892 * python/python.c (execute_gdb_command): Use console uiout
1893 when executing gdb command.
1894 * utils.c (restore_ui_out_closure): New structure.
1895 (do_restore_ui_out): New function.
1896 (make_cleanup_restore_ui_out): Likewise.
1897 * utils.h (make_cleanup_restore_ui_out): Declare.
1898
1899 2016-03-31 Pedro Alves <palves@redhat.com>
1900
1901 * NEWS: Mention that support for "target m32rsdi", "target mips",
1902 "target pmon", "target ddb", "target rockhopper", and "target lsi"
1903 was removed.
1904 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
1905 remote-mips.o.
1906 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
1907 * configure.tgt: Remove all references to remote-m32r-sdi.o and
1908 remote-mips.o.
1909 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
1910 function.
1911 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
1912 declaration.
1913 * remote-m32r-sdi.c, remote-mips.c: Delete files.
1914 * symfile.c (generic_load, generic_load): Remove comments.
1915
1916 2016-03-30 Yao Qi <yao.qi@linaro.org>
1917
1918 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
1919 0 rather than NULL.
1920
1921 2016-03-30 Yao Qi <yao.qi@linaro.org>
1922
1923 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
1924 (arm_epilogue_frame_this_id): New function.
1925 (arm_epilogue_frame_prev_register): New function.
1926 (arm_epilogue_frame_sniffer): New function.
1927 (arm_epilogue_frame_unwind): New.
1928 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
1929
1930 2016-03-30 Yao Qi <yao.qi@linaro.org>
1931
1932 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
1933 (arm_stack_frame_destroyed_p_1): ... here. Don't call
1934 arm_pc_is_thumb.
1935 (arm_stack_frame_destroyed_p): Call
1936 thumb_stack_frame_destroyed_p and
1937 arm_stack_frame_destroyed_p_1.
1938
1939 2016-03-30 Doug Evans <dje@google.com>
1940
1941 * python/py-utils.c (host_string_to_python_string): New function.
1942 * python/python-internal.h (host_string_to_python_string): Declare it.
1943 * python/py-*.c (*): Update all calls to
1944 PyString_Decode (str, strlen (str), host_charset (), NULL);
1945 to use host_string_to_python_string instead.
1946
1947 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
1948
1949 * remote.c (remote_check_symbols): Allocate own buffer for reply.
1950
1951 2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
1952
1953 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
1954 Use safe_read_memory_integer instead of read_memory_integer.
1955
1956 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
1957
1958 * NEWS: Mention support for tracepoints on s390*-linux.
1959
1960 2016-03-29 Don Breazeal <donb@codesourcery.com>
1961
1962 * gdb/value.c (value_actual_type): Fix formatting issue.
1963
1964 2016-03-23 Yao Qi <yao.qi@linaro.org>
1965
1966 * gdbarch.sh (software_single_step): Remove comments.
1967 * gdbarch.h: Regenerated.
1968
1969 2016-03-21 Yao Qi <yao.qi@linaro.org>
1970
1971 * arm-tdep.c (arm_record_media): New.
1972 (arm_record_ld_st_reg_offset): Call arm_record_media.
1973
1974 2016-03-21 Yao Qi <yao.qi@linaro.org>
1975
1976 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
1977 more syscalls.
1978
1979 2016-03-18 Yao Qi <yao.qi@linaro.org>
1980
1981 * sparc-tdep.c (sparc_software_single_step): Make it static.
1982 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
1983
1984 2016-03-18 Yao Qi <yao.qi@linaro.org>
1985
1986 * spu-tdep.c (spu_software_single_step): Throw error when
1987 target_read_memory fails.
1988
1989 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1990
1991 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
1992
1993 2016-03-17 Pedro Alves <palves@redhat.com>
1994 Don Breazeal <donb@codesourcery.com>
1995
1996 PR remote/19496
1997 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
1998 instead of checking the 'non_stop' global.
1999 * remote.c (remote_add_thread): New parameter 'executing'. Use it
2000 to set the new thread's executing state.
2001 (remote_notice_new_inferior): Rename parameter 'running' to
2002 'executing'. Always set the thread state to THREAD_RUNNING in
2003 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
2004 EXECUTING to remote_add_thread and notice_new_inferior.
2005 (remote_update_thread_list): Update to pass executing state, not
2006 running state.
2007
2008 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2009
2010 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
2011 to 374.
2012 * syscalls/s390x-linux.xml: Likewise.
2013
2014 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2015
2016 * linux-record.c (record_mem_at_reg): New helper function.
2017 (record_linux_system_call): Exploit new helper function where
2018 applicable.
2019
2020 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2021
2022 * linux-record.c: Fix whitespace issues; tabify, remove trailing
2023 spaces.
2024
2025 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2026
2027 * linux-record.c (record_linux_system_call): Add missing return
2028 statements to handling of pipe and pipe2 syscalls.
2029
2030 2016-03-16 Doug Evans <dje@google.com>
2031
2032 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
2033
2034 2016-03-16 Yao Qi <yao.qi@linaro.org>
2035
2036 * arm-linux-tdep.c (arm_linux_init_abi): Fix
2037 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
2038 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
2039 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
2040 arm_linux_record_tdep.arg7.
2041
2042 2016-03-15 Keith Seitz <keiths@redhat.com>
2043
2044 PR breakpoints/18303
2045 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
2046 look for "::" instead of simply ":".
2047 (cp_search_static_and_baseclasses): Return null_block_symbol for
2048 malformed input.
2049 Remove assertions.
2050 * cp-support.c (cp_find_first_component_aux): Do not return
2051 a prefix length for ':' unless the next character is also ':'.
2052
2053 2016-03-15 Doug Evans <dje@google.com>
2054
2055 * features/aarch64-core.xml (cpsr_flags): New flags type.
2056 (cpsr): Use it.
2057 * features/aarch64.c: Regenerate.
2058
2059 2016-03-15 Doug Evans <dje@google.com>
2060
2061 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
2062 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
2063 * features/i386/64bit-core.xml (i386_eflags): Ditto.
2064 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
2065 * features/i386/x32-core.xml (i386_eflags): Ditto.
2066
2067 2016-03-15 Doug Evans <dje@google.com>
2068 Wei-cheng Wang <cole945@gmail.com>
2069
2070 Extend flags to support multibit and enum bitfields.
2071 * NEWS: Document new features.
2072 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
2073 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2074 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
2075 (append_flags_type_field): New function.
2076 (append_flags_type_flag): Call it.
2077 * gdbtypes.h (append_flags_type_field): Declare.
2078 * target-descriptions.c (struct tdesc_type_flag): Delete.
2079 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
2080 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
2081 (struct tdesc_type) <u.f>: Delete.
2082 (tdesc_predefined_types): Add "bool".
2083 (tdesc_predefined_type): New function.
2084 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
2085 Update TDESC_TYPE_FLAGS support.
2086 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
2087 (tdesc_create_flags): Update.
2088 (tdesc_create_enum): New function.
2089 (tdesc_add_field): Initialize start,end to -1.
2090 (tdesc_add_typed_bitfield): New function.
2091 (tdesc_add_bitfield): Call it.
2092 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
2093 (tdesc_add_enum_value): New function.
2094 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
2095 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
2096 * target-descriptions.h (tdesc_create_enum): Declare.
2097 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
2098 * valprint.c (generic_val_print_enum_1): New function.
2099 (generic_val_print_enum): Call it.
2100 (val_print_type_code_flags): Make static. Handle multibit bitfields
2101 and enum bitfields.
2102 * valprint.h (val_print_type_code_flags): Delete.
2103 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
2104 Delete. All uses removed.
2105 (tdesc_start_enum): New function.
2106 (tdesc_start_field): Handle multibit and enum bitfields.
2107 (tdesc_start_enum_value): New function.
2108 (enum_value_attributes, enum_children, enum_attributes): New static
2109 globals.
2110 (feature_children): Add "enum".
2111 * features/gdb-target.dtd (enum, evalue): New elements.
2112
2113 2016-03-15 Doug Evans <dje@google.com>
2114
2115 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
2116 from LONGEST to int.
2117 (struct tdesc_type) <u.f.size>: Ditto.
2118 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
2119 to int. Add assertion size > 0.
2120 (tdesc_create_flags): Ditto.
2121 * target-descriptions.h (tdesc_set_struct_size): Update.
2122 (tdesc_create_flags): Update.
2123 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
2124 (MAX_VECTOR_SIZE): New macro.
2125 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
2126 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
2127
2128 2016-03-15 Doug Evans <dje@google.com>
2129
2130 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
2131 TYPE_CODE_FLAGS instead of "field_type", for consistency.
2132 * features/i386/amd64-avx-linux.c: Regenerate.
2133 * features/i386/amd64-avx.c: Regenerate.
2134 * features/i386/amd64-avx512-linux.c: Regenerate.
2135 * features/i386/amd64-avx512.c: Regenerate.
2136 * features/i386/amd64-linux.c: Regenerate.
2137 * features/i386/amd64-mpx-linux.c: Regenerate.
2138 * features/i386/amd64-mpx.c: Regenerate.
2139 * features/i386/amd64.c: Regenerate.
2140 * features/i386/i386-avx-linux.c: Regenerate.
2141 * features/i386/i386-avx.c: Regenerate.
2142 * features/i386/i386-avx512-linux.c: Regenerate.
2143 * features/i386/i386-avx512.c: Regenerate.
2144 * features/i386/i386-linux.c: Regenerate.
2145 * features/i386/i386-mmx-linux.c: Regenerate.
2146 * features/i386/i386-mmx.c: Regenerate.
2147 * features/i386/i386-mpx-linux.c: Regenerate.
2148 * features/i386/i386-mpx.c: Regenerate.
2149 * features/i386/i386.c: Regenerate.
2150 * features/i386/x32-avx-linux.c: Regenerate.
2151 * features/i386/x32-avx.c: Regenerate.
2152 * features/i386/x32-avx512-linux.c: Regenerate.
2153 * features/i386/x32-avx512.c: Regenerate.
2154 * features/i386/x32-linux.c: Regenerate.
2155 * features/i386/x32.c: Regenerate.
2156
2157 2016-03-15 Pedro Alves <palves@redhat.com>
2158
2159 PR gdb/19676
2160 * linux-thread-db.c (try_thread_db_load_1): Leave
2161 info->td_ta_thr_iter_p NULL iff debugging a live process and we
2162 have /proc access.
2163 (find_new_threads_once): Assert that we have a non-NULL
2164 info->td_ta_thr_iter_p instead of checking whether the target has
2165 execution.
2166
2167 2016-03-15 Pedro Alves <palves@redhat.com>
2168
2169 PR gdb/19676
2170 * infrun.c (displaced_step_prepare): Also disable displaced
2171 stepping on NOT_SUPPORTED_ERROR.
2172 * linux-tdep.c (linux_displaced_step_location): If reading auxv
2173 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
2174
2175 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
2176
2177 * s390-linux-tdep.c (s390_gen_return_address): New function.
2178 (s390_gdbarch_init): Fill gen_return_address hook.
2179
2180 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
2181
2182 * symmisc.c (maintenance_info_line_tables): New function.
2183 (maintenance_print_one_line_table): New function.
2184 (_initialize_symmisc): Register 'maint info line-table' command.
2185 * NEWS: Mention new command.
2186
2187 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
2188
2189 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
2190 (s390_ax_pseudo_register_push_stack): New function.
2191 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
2192 ax_pseudo_register_push_stack hooks.
2193
2194 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
2195
2196 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
2197 gdb/function/as_string.py.
2198 * python/lib/gdb/function/as_string.py: New file.
2199 * NEWS: Mention the new $_as_string function.
2200
2201 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
2202
2203 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
2204
2205 2016-03-09 Pedro Alves <palves@redhat.com>
2206
2207 * event-top.c (more_to_come): Delete.
2208 (struct readline_input_state): Delete.
2209 (readline_input_state): Delete.
2210 (get_command_line_buffer): New function.
2211 (command_handler): Update comments. Don't handle NULL commands
2212 here. Do not execute commented lines.
2213 (command_line_append_input_line): New function.
2214 (handle_line_of_input): New function, partly based on
2215 command_line_handler and command_line_input.
2216 (command_line_handler): Rewrite.
2217 * event-top.h (command_handler): New declaration.
2218 (command_loop): Defer command execution to command_handler.
2219 (command_line_input): Update comments. Simplify, using struct
2220 buffer and handle_line_of_input.
2221 * top.h (struct buffer): New forward declaration.
2222 (handle_line_of_input): New declaration.
2223
2224 2016-03-09 Pedro Alves <palves@redhat.com>
2225
2226 * event-top.c (command_line_handler): Use xfree + xstrdup instead
2227 of xrealloc + strcpy.
2228 * main.c (captured_main): Use xstrdup instead of xmalloc plus
2229 manual clear.
2230 * top.c (saved_command_line): Rewrite comment.
2231 (saved_command_line_size): Delete.
2232 (command_line_input): Use xfree + xstrdup instead of xrealloc +
2233 strcpy.
2234 * top.h (saved_command_line_size): Delete declaration.
2235
2236 2016-03-09 Pedro Alves <palves@redhat.com>
2237
2238 * event-top.c: Include buffer.h.
2239 (gdb_readline_no_editing_callback): Use struct buffer instead
2240 of xrealloc.
2241
2242 2016-03-09 Pedro Alves <palves@redhat.com>
2243
2244 * common/buffer.h (buffer_grow_char): New function.
2245 * top.c: Include buffer.h.
2246 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
2247 'prompt'. Use struct buffer instead of xrealloc.
2248
2249 2016-03-09 Pedro Alves <palves@redhat.com>
2250
2251 * defs.h (gdb_readline): Delete declaration.
2252 * top.c (gdb_readline): Rename to ...
2253 (gdb_readline_no_editing): ... this, and make static.
2254
2255 2016-03-09 Pedro Alves <palves@redhat.com>
2256
2257 * utils.c (prompt_for_continue): Update comments.
2258
2259 2016-03-09 Pedro Alves <palves@redhat.com>
2260
2261 * event-top.c (async_annotation_suffix): Delete.
2262 (top_level_prompt, command_line_handler): Don't use
2263 'async_annotation_suffix' and simplify.
2264 * event-top.h (async_annotation_suffix): Delete declaration.
2265 (init_main): Remove reference to 'async_annotation_suffix'.
2266
2267 2016-03-09 Pedro Alves <palves@redhat.com>
2268
2269 * event-top.c (gdb_readline2): Rename to ...
2270 (gdb_readline_no_editing_callback): ... this.
2271 (change_line_handler, stdin_event_handler)
2272 (gdb_setup_readline): Adjust.
2273 * event-top.h (gdb_readline2): Rename to ...
2274 (gdb_readline_no_editing_callback): ... this, and move closer to
2275 other readline-related declarations.
2276 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
2277
2278 2016-03-09 Pedro Alves <palves@redhat.com>
2279
2280 * top.c (window_hook): Delete.
2281 (command_loop): Remove references to window_hook.
2282
2283 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
2284
2285 * corefile.c (safe_read_memory_unsigned_integer): New function.
2286 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
2287 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
2288
2289 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
2290
2291 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
2292 (rs6000_gen_return_address): New function.
2293 (rs6000_gdbarch_init): Wire in the above.
2294
2295 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
2296
2297 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
2298 (rs6000_gdbarch_init): Wire in the above.
2299
2300 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
2301
2302 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
2303 instructions that do nothing or are conditional traps.
2304
2305 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
2306
2307 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
2308 frame func's PC in info->func before any other failure can occur.
2309 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
2310 info->func has been filled out.
2311
2312 2016-03-09 Pedro Alves <palves@redhat.com>
2313
2314 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
2315
2316 2016-03-09 Pedro Alves <palves@redhat.com>
2317
2318 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
2319
2320 2016-03-09 Pedro Alves <palves@redhat.com>
2321
2322 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
2323 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
2324
2325 2016-03-09 Pedro Alves <palves@redhat.com>
2326
2327 * doublest.c: Extend comments.
2328 (floatformat_to_doublest, floatformat_from_doublest): Copy the
2329 floatformat's total size, not the host type's size.
2330
2331 2016-03-09 Pedro Alves <palves@redhat.com>
2332
2333 * doublest.c (floatformat_totalsize_bytes): New function.
2334 (floatformat_from_type): Assert that the type's length is at least
2335 as long as the floatformat's totalsize.
2336 * doublest.h (floatformat_totalsize_bytes): New declaration.
2337 * gdbtypes.c (arch_float_type): Assert that the type's length is
2338 at least as long as the floatformat's totalsize.
2339
2340 2016-03-09 Pedro Alves <palves@redhat.com>
2341
2342 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
2343 format to floatformats_ieee_double.
2344
2345 2016-03-07 Pedro Alves <palves@redhat.com>
2346
2347 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
2348 before calling bfd_get_flavour.
2349
2350 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2351
2352 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
2353 (avr_push_dummy_call): Correct last needed argument register.
2354 Write MSB of argument into register and subsequent bytes into
2355 other registers in decreasing order.
2356
2357 2016-03-04 Yao Qi <yao.qi@linaro.org>
2358
2359 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
2360 condition check. Record the right D register number.
2361
2362 2016-03-04 Yao Qi <yao.qi@linaro.org>
2363
2364 * arm-tdep.c (arm_record_extension_space): Remove code
2365 printing "Process record does not support".
2366 (arm_record_data_proc_misc_ld_str): Likewise.
2367 (decode_insn): Call arm_record_extension_space if condition
2368 is 0xf. Call arm_record_unsupported_insn if ret isn't
2369 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
2370 the value of thumb2_record_decode_insn_handler.
2371
2372 2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
2373
2374 * features/feature_to_c.sh: Print the help when passing no
2375 argument.
2376
2377 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
2378
2379 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
2380
2381 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
2382
2383 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
2384
2385 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
2386
2387 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
2388 exception when attempting to access the inferior's backchain.
2389
2390 2016-02-29 Yao Qi <yao.qi@linaro.org>
2391
2392 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
2393 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
2394 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
2395 for aarch64_sys_epoll_create1.
2396
2397 2016-02-29 Yao Qi <yao.qi@linaro.org>
2398
2399 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
2400 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
2401 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
2402 * linux-record.c (record_linux_system_call): Handle them.
2403
2404 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
2405
2406 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
2407 cyclic imports.
2408
2409 2016-02-26 Keith Seitz <keiths@redhat.com>
2410
2411 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
2412 to avoid invalid conversion from void *.
2413
2414 2016-02-26 Yao Qi <yao.qi@linaro.org>
2415
2416 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
2417 per bit 8. Check bit 20 instead of bit 4 for VMOV
2418 instruction. Record D registers for instructions changing
2419 S registers. Change of the order of length and address
2420 in record_buf_mem array.
2421
2422 2016-02-26 Yao Qi <yao.qi@linaro.org>
2423
2424 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
2425 number of Rd.
2426
2427 2016-02-25 Doug Evans <dje@google.com>
2428
2429 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
2430 compiler warning.
2431 (recv_long_data): Ditto.
2432
2433 2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
2434
2435 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
2436 Initialize variables.
2437
2438 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
2439
2440 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
2441 (ax_reg_mask): Likewise.
2442
2443 2016-02-24 Pedro Alves <palves@redhat.com>
2444
2445 * linux-nat.c (save_sigtrap) Delete.
2446 (stop_wait_callback): Call save_stop_reason instead of
2447 save_sigtrap.
2448 (check_stopped_by_breakpoint): Rename to ...
2449 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
2450 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
2451 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
2452 common code between the USE_SIGTRAP_SIGINFO and
2453 !USE_SIGTRAP_SIGINFO blocks.
2454 (linux_nat_filter_event): Call save_stop_reason instead of
2455 save_sigtrap.
2456 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
2457 si_code for MIPS.
2458 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
2459 comments on MIPS behavior.
2460 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
2461
2462 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
2463
2464 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
2465 to avoid spurious warnings.
2466
2467 2016-02-24 Gary Benson <gbenson@redhat.com>
2468
2469 * exec.c (exec_file_locate_attach): Do not attempt to
2470 locate main executable locally if not found in sysroot.
2471
2472 2016-02-24 Joel Brobecker <brobecker@adacore.com>
2473
2474 GDB 7.11 released.
2475
2476 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
2477
2478 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
2479 unavailable PC/SP to build unavailable frame.
2480
2481 2016-02-23 Doug Evans <dje@google.com>
2482
2483 Extend "skip" command to support -file, -gfile, -function, -rfunction.
2484 * NEWS: Document new features.
2485 * skip.c: #include "fnmatch.h", "gdb_regex.h".
2486 (skiplist_entry) <file>: Renamed from filename.
2487 <function>: Renamed from function_name.
2488 <file_is_glob, function_is_regexp>: New members.
2489 <compiled_function_regexp, compiled_function_regexp_is_valid>:
2490 New members.
2491 (make_skip_entry): New function.
2492 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
2493 (make_free_skiplist_entry_cleanup): New function.
2494 (skip_file_command): Update.
2495 (skip_function, skip_function_command): Update.
2496 (compile_skip_regexp): New functions.
2497 (skip_command): Add support for new options.
2498 (skip_info): Update.
2499 (skip_file_p, skip_gfile_p): New functions.
2500 (skip_function_p, skip_rfunction_p): New functions.
2501 (function_name_is_marked_for_skip): Update and simplify.
2502 (_initialize_step_skip): Update.
2503 * symtab.c: #include "fnmatch.h".
2504 (compare_glob_filenames_for_search): New function.
2505 * symtab.h (compare_glob_filenames_for_search): Declare.
2506 * utils.c (count_path_elements): New function.
2507 (strip_leading_path_elements): New function.
2508 * utils.h (count_path_elements): Declare.
2509 (strip_leading_path_elements): Declare.
2510
2511 2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
2512
2513 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
2514 (thumb_process_displaced_insn): Likewise.
2515 (arm_process_displaced_insn): Adjust calls.
2516
2517 2016-02-23 Yao Qi <yao.qi@linaro.org>
2518
2519 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
2520 Remove.
2521 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
2522 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
2523 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
2524 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
2525 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
2526 <aarch64_sys_faccessat>: New.
2527 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
2528 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
2529 <aarch64_sys_newfstatat>: New.
2530 (UNSUPPORTED_SYSCALL_MAP): New macro.
2531 (aarch64_canonicalize_syscall): Add missing syscalls.
2532
2533 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2534
2535 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
2536
2537 2016-02-22 Yao Qi <yao.qi@linaro.org>
2538
2539 * arm-tdep.c: Fix code format issues.
2540
2541 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
2542
2543 * d-namespace.c (d_lookup_symbol_imports): Remove argument
2544 'search_parents'. All callers updated.
2545
2546 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
2547
2548 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
2549 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
2550
2551 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
2552
2553 * NEWS: Add entry for bound violation.
2554 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
2555 Add handler for segmentation fault.
2556 * gdbarch.sh (handle_segmentation_fault): New.
2557 * gdbarch.c: Regenerate.
2558 * gdbarch.h: Regenerate.
2559 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
2560 (SIG_CODE_BONDARY_FAULT): New define.
2561 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
2562 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
2563 * i386-tdep.c (i386_mpx_enabled): Add as external.
2564 * i386-tdep.c (i386_mpx_enabled): Add as external.
2565 * infrun.c (handle_segmentation_fault): New function.
2566 (print_signal_received_reason): Use handle_segmentation_fault.
2567
2568 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
2569
2570 * arch-utils.c (default_guess_tracepoint_registers): New function.
2571 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
2572 * gdbarch.c: Regenerate.
2573 * gdbarch.h: Regenerate.
2574 * gdbarch.sh: Add guess_tracepoint_registers hook.
2575 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
2576
2577 2016-02-17 Gary Benson <gbenson@redhat.com>
2578
2579 * exec.c (exec_file_locate_attach): Add missing cleanup.
2580
2581 2016-02-16 Don Breazeal <donb@codesourcery.com>
2582
2583 PR remote/19496
2584 * remote.c (remove_new_fork_children): Check for pending
2585 fork status in thread_info.suspend.
2586
2587 2016-02-16 Yao Qi <yao.qi@linaro.org>
2588
2589 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
2590 'old_chain' later.
2591
2592 2016-02-16 Yao Qi <yao.qi@linaro.org>
2593
2594 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
2595 <syscall_next_pc>: Remove argument PC. Callers updated.
2596 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
2597 Remove argument PC. Get pc from regcache_read_pc.
2598 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
2599 argument PC.
2600
2601 2016-02-15 Yao Qi <yao.qi@linaro.org>
2602
2603 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
2604
2605 2016-02-12 Yao Qi <yao.qi@linaro.org>
2606
2607 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
2608 nextpc according to instruction.
2609
2610 2016-02-12 Yao Qi <yao.qi@linaro.org>
2611
2612 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
2613 self->ops->fixup if it isn't NULL.
2614 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
2615 (struct arm_get_next_pcs_ops) <fixup>: New field.
2616 * arch/arm-linux.c: Include common-regcache.h and
2617 arch/arm-get-next-pcs.h.
2618 (arm_linux_get_next_pcs_fixup): New function.
2619 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
2620 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
2621 it with arm_linux_get_next_pcs_fixup.
2622 (arm_linux_software_single_step): Move code to
2623 arm_linux_get_next_pcs_fixup.
2624 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
2625
2626 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
2627
2628 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
2629 and return NULL.
2630
2631 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
2632
2633 * frame.h (skip_tailcall_frames): Update comment.
2634 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
2635 if only artificial frames are found. Update comment.
2636 (frame_unwind_caller_id): Handle NULL return.
2637 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
2638 skip_artificial_frames does not return NULL.
2639 (frame_pop): Add an error if only tailcall frames are found.
2640 * infcmd.c (finish_command): Move skip_tailcall_frames call into
2641 forward-execution case. Add an error if only tailcall frames are
2642 found.
2643
2644 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
2645
2646 * stack.c (frame_info): Check frame_unwind_caller_id.
2647
2648 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
2649
2650 * frame.h (skip_tailcall_frames): New.
2651 * frame.c (skip_tailcall_frames): New.
2652 (frame_pop): Call skip_tailcall_frames.
2653 * infcmd.c (finish_command): Call skip_tailcall_frames.
2654
2655 2016-02-11 Pedro Alves <palves@redhat.com>
2656
2657 * Makefile.in (check-parallel): New rule.
2658
2659 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
2660
2661 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
2662 (arm_analyze_prologue): Likewise.
2663 (arm_scan_prologue): Likewise.
2664 (arm_m_exception_prev_register): Likewise.
2665 (arm_copy_block_xfer): Likewise.
2666 (thumb2_copy_block_xfer): Likewise.
2667 (arm_decode_miscellaneous): Likewise.
2668 (arm_decode_ld_st_word_ubyte): Likewise.
2669 (arm_decode_svc_copro): Likewise.
2670 (thumb2_decode_svc_copro): Likewise.
2671 (thumb_copy_16bit_ldr_literal): Likewise.
2672 (thumb_copy_pop_pc_16bit): Likewise.
2673 (decode_thumb_32bit_ld_mem_hints): Likewise.
2674 (arm_show_force_mode): Likewise.
2675 (_initialize_arm_tdep): Likewise.
2676 (arm_record_strx): Likewise.
2677 (arm_record_extension_space): Likewise.
2678 (arm_record_data_proc_misc_ld_str): Likewise.
2679 (arm_record_exreg_ld_st_insn): Likewise.
2680 (arm_record_vfp_data_proc_insn): Likewise.
2681 (arm_record_coproc_data_proc): Likewise.
2682 (thumb_record_misc): Likewise.
2683 (thumb_record_ldm_stm_swi): Likewise.
2684 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
2685 (thumb2_record_ld_mem_hints): Likewise.
2686 (thumb2_record_lmul_lmla_div): Likewise.
2687 (thumb2_record_asimd_struct_ld_st): Likewise.
2688 (arm_process_record): Likewise.
2689
2690 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
2691
2692 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
2693 (ARM displaced stepping support): Remove reference to
2694 arm_displaced_step_copy_insn in comment.
2695 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
2696 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
2697 reference to arm_displaced_step_copy_insn in comment.
2698
2699 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
2700
2701 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
2702 (thumb_copy_b): Likewise.
2703 (arm_decode_b_bl_ldmstm): Likewise.
2704 (thumb_copy_16bit_ldr_literal): Likewise.
2705 (thumb_copy_pop_pc_16bit): Likewise.
2706
2707 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
2708
2709 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
2710 than loc->gdbarch.
2711
2712 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2713
2714 * tracefile-tfile.c (trace_tdesc): New static variable.
2715 (tfile_open): Clear trace_tdesc, call target_find_description.
2716 (tfile_interp_line): Recognize tdesc lines.
2717 (tfile_close): Clear trace_tdesc.
2718 (tfile_xfer_partial_features): New function.
2719 (tfile_xfer_partial): Call tfile_xfer_partial_features.
2720 (tfile_append_tdesc_line): New function.
2721
2722 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2723
2724 * ctf.c (ctf_write_tdesc): New function.
2725 (ctf_write_ops): Wire in ctf_write_tdesc.
2726 * tracefile-tfile.c (tfile_write_tdesc): New function.
2727 (tfile_write_ops): Wire in tfile_write_tdesc.
2728 * tracefile.c (trace_save): Call write_tdesc method.
2729 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
2730 * xml-tdesc.c (target_fetch_description_xml): New function.
2731 * xml-tdesc.h: Add target_fetch_description_xml prototype.
2732
2733 2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
2734
2735 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
2736 (arm_decode_dp_misc): Likewise.
2737
2738 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2739
2740 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
2741 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
2742 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
2743 misleading comment.
2744 (i386_pseudo_register_write): Ditto.
2745 (i386_ax_pseudo_register_collect): New function.
2746 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
2747 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
2748
2749 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2750
2751 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
2752 instead of gdb order.
2753
2754 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2755
2756 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
2757 check.
2758
2759 2016-02-10 Joel Brobecker <brobecker@adacore.com>
2760
2761 * NEWS: Create a new section for the next release branch.
2762 Rename the section of the current branch, now that it has
2763 been cut.
2764
2765 2016-02-10 Joel Brobecker <brobecker@adacore.com>
2766
2767 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
2768 * version.in: Bump version to 7.11.50.DATE-git.
2769
2770 2016-02-09 Keith Seitz <keiths@redhat.com>
2771
2772 PR breakpoints/19546
2773 * breakpoint.c (breakpoint_event_location_empty_p): New function.
2774 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
2775 instead of event_location_empty_p.
2776
2777 2016-02-09 Keith Seitz <keiths@redhat.com>
2778
2779 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
2780 string_to_event_location_basic instead of string_to_event_location.
2781
2782 2016-02-09 Keith Seitz <keiths@redhat.com>
2783
2784 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
2785 leading whitespace and use string_to_event_location_basic instead
2786 of new_linespec_location.
2787
2788 2016-02-09 Keith Seitz <keiths@redhat.com>
2789
2790 PR python/19506
2791 * python/py-breakpoint.c (bppy_init): Use
2792 string_to_event_location_basic instead of new_linespec_location.
2793
2794 2016-02-09 Keith Seitz <keiths@redhat.com>
2795
2796 * location.c (string_to_explicit_location): Note that "-p" is
2797 reserved for probe locations and return NULL for any input
2798 that starts with that.
2799 (string_to_event_location): Move "legacy" linespec code to ...
2800 (string_to_event_location_basic): ... here.
2801 * location.h (string_to_event_location): Update comment.
2802 (string_to_event_location_basic): New function.
2803
2804 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
2805
2806 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
2807 to AC_OUTPUT. Remove "exit 0" at the end.
2808 * configure: Regenerate.
2809
2810 2016-02-09 Pedro Alves <palves@redhat.com>
2811
2812 PR breakpoints/19548
2813 * breakpoint.c (create_overlay_event_breakpoint): Don't update
2814 global location list here.
2815 (create_longjmp_master_breakpoint)
2816 (create_std_terminate_master_breakpoint)
2817 (create_exception_master_breakpoint, create_jit_event_breakpoint)
2818 (update_breakpoint_locations):
2819 (breakpoint_re_set): Update global location list after all
2820 breakpoints are re-set.
2821
2822 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
2823
2824 * remote.c (remote_register_number_and_offset): Remove unused
2825 variable(s).
2826 (remote_thread_always_alive): Likewise.
2827 (remote_update_thread_list): Likewise.
2828 (process_initial_stop_replies): Likewise.
2829 (remote_start_remote): Likewise.
2830 (remote_check_symbols): Likewise.
2831 (discard_pending_stop_replies): Likewise.
2832 (process_stop_reply): Likewise.
2833 (putpkt_binary): Likewise.
2834 (getpkt): Likewise.
2835 (remote_add_target_side_condition): Likewise.
2836 (remote_insert_breakpoint): Likewise.
2837 (remote_supports_stopped_by_sw_breakpoint): Likewise.
2838 (remote_supports_stopped_by_hw_breakpoint): Likewise.
2839 (remote_xfer_partial): Likewise.
2840 (remote_read_btrace): Likewise.
2841 (remote_async_serial_handler): Likewise.
2842 (remote_thread_events): Likewise.
2843 (_initialize_remote): Likewise.
2844
2845 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
2846
2847 * varobj.h (varobj_delete): Remove dellist parameter, update and
2848 move documentation here.
2849 * varobj.c (struct cpstack, cppush, cppop): Remove.
2850 (delete_variable): Remove resultp (first) parameter.
2851 (delete_variable_1): Likewise.
2852 (varobj_delete): Remove dellist parameter and unused code.
2853 (update_dynamic_varobj_children): Adjust varobj_delete call.
2854 (update_type_if_necessary): Likewise.
2855 (varobj_set_visualizer): Likewise.
2856 (varobj_update): Likewise.
2857 (value_of_root): Likewise.
2858 (varobj_invalidate_iter): Likewise.
2859 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
2860
2861 2016-02-04 Yao Qi <yao.qi@linaro.org>
2862
2863 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
2864 0 before handling 'F' and set it back afterwards.
2865
2866 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
2867
2868 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
2869
2870 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
2871
2872 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
2873 New types.
2874 (compat_siginfo): New bound fields added.
2875 (compat_x32_siginfo): New field added.
2876 (cpt_si_addr_lsb): New define.
2877 (compat_siginfo_from_siginfo): Use nat_siginfo.
2878 (siginfo_from_compat_siginfo): Use nat_siginfo.
2879 (compat_x32_siginfo_from_siginfo): Likewise.
2880 (siginfo_from_compat_x32_siginfo): Likewise.
2881
2882 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
2883
2884 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
2885 structure to the siginfo if extra_fields contains
2886 LINUX_SIGINFO_FIELD_ADDR_BND.
2887
2888 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
2889
2890 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
2891 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
2892 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
2893 function.
2894 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
2895 x86_linux_get_siginfo_type for the amd64 abi.
2896 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
2897 function.
2898 (i386_linux_init_abi): Add new function at the i386 ABI
2899 initialization.
2900
2901 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
2902
2903 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
2904 (linux_siginfo_extra_fields): New enum type.
2905 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
2906 (linux_get_siginfo_type): Use new function.
2907
2908 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
2909
2910 * nat/amd64-linux-siginfo.c: New file.
2911 * nat/amd64-linux-siginfo.h: New file.
2912 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
2913 (amd64-linux-siginfo.o): New rule.
2914 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
2915 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
2916 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
2917 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
2918 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
2919 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
2920 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
2921 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
2922
2923 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2924
2925 * value.c (max_value_size): New variable.
2926 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
2927 (set_max_value_size): New function.
2928 (show_max_value_size): New function.
2929 (check_type_length_before_alloc): New function.
2930 (allocate_value_contents): Call check_type_length_before_alloc.
2931 (set_value_enclosing_type): Likewise.
2932 (_initialize_values): Add set/show handler for max-value-size.
2933 * NEWS: Mention new set/show command.
2934
2935 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
2936
2937 * varobj.h (struct varobj): Fix typos in comments.
2938 (struct lang_varobj_ops): Likewise.
2939 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
2940 (varobj_create): Move misplaced comment.
2941
2942 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
2943
2944 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
2945 to for include additional lines.
2946 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
2947
2948 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
2949
2950 * gnulib/import/Makefile.am: Regenerate.
2951 * gnulib/import/Makefile.in: Regenerate.
2952 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2953 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
2954
2955 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
2956
2957 * remote.c (skip_to_semicolon): Remove.
2958 (remote_parse_stop_reply): Use strchrnul instead of
2959 skip_to_semicolon.
2960 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
2961 strchrnul.
2962 * gnulib/aclocal.m4: Regenerate.
2963 * gnulib/config.in: Regenerate.
2964 * gnulib/configure: Regenerate.
2965 * gnulib/import/Makefile.am: Regenerate.
2966 * gnulib/import/Makefile.in: Regenerate.
2967 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2968 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2969 * gnulib/import/m4/rawmemchr.m4: New file.
2970 * gnulib/import/m4/strchrnul.m4: New file.
2971 * gnulib/import/rawmemchr.c: New file.
2972 * gnulib/import/rawmemchr.valgrind: New file.
2973 * gnulib/import/strchrnul.c: New file.
2974 * gnulib/import/strchrnul.valgrind: New file.
2975
2976 2016-01-28 Yao Qi <yao.qi@linaro.org>
2977
2978 * breakpoint.c (build_target_command_list): Don't call continue
2979 if aexpr is NULL.
2980 (build_target_condition_list): Likewise.
2981
2982 2016-01-27 Kevin Buettner <kevinb@redhat.com>
2983
2984 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
2985 bytes as aggregates.
2986
2987 2016-01-27 Joel Brobecker <brobecker@adacore.com>
2988
2989 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
2990 Linespec Maintainers.
2991
2992 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
2993
2994 * common/common-utils.c (skip_spaces): Fix comment.
2995 (skip_to_space_const): Likewise.
2996
2997 2016-01-25 Yao Qi <yao.qi@linaro.org>
2998
2999 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
3000 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
3001 (arm_deal_with_atomic_sequence_raw): Likewise.
3002 (thumb_get_next_pcs_raw): Likewise.
3003 (arm_get_next_pcs_raw): Likewise.
3004 (arm_get_next_pcs): Remove argument pc. Callers updated.
3005 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
3006
3007 2016-01-25 Mark Wielaard <mjw@redhat.com>
3008
3009 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
3010 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
3011 if statement.
3012 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
3013 statement block by introducing an else.
3014 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
3015 of return statements.
3016 (record_linux_msghdr): Likewise.
3017
3018 2016-01-25 Pedro Alves <palves@redhat.com>
3019
3020 PR threads/19461
3021 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
3022 parent/child running states.
3023
3024 2016-01-25 Pedro Alves <palves@redhat.com>
3025
3026 PR gdb/19494
3027 * linux-nat.c (kill_one_lwp): New, factored out from ...
3028 (kill_callback): ... this.
3029 (kill_wait_callback): New, factored out from ...
3030 (kill_wait_one_lwp): ... this.
3031 (kill_unfollowed_fork_children): New function.
3032 (linux_nat_kill): Use it.
3033
3034 2016-01-22 John Baldwin <jhb@FreeBSD.org>
3035
3036 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
3037
3038 2016-01-22 Yao Qi <yao.qi@linaro.org>
3039
3040 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
3041 instead of warning.
3042 (store_fpregs, fetch_regs, store_regs): Likewise.
3043 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
3044 (fetch_vfp_regs, store_vfp_regs): Likewise.
3045
3046 2016-01-21 Doug Evans <dje@google.com>
3047
3048 * breakpoint.c (init_breakpoint_sal): Add comment.
3049
3050 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
3051
3052 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
3053
3054 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3055
3056 * disasm.c (maybe_add_dis_line_entry): Rename to...
3057 (add_dis_line_entry): ...this, and update header comment.
3058 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
3059
3060 2016-01-21 Pedro Alves <palves@redhat.com>
3061
3062 * Makefile.in (COMPILER_CFLAGS): New.
3063 (CXXFLAGS): Get it from configure.
3064 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
3065 instead of CFLAGS.
3066 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
3067 COMPILER_CFLAGS.
3068 * configure: Regenerate.
3069
3070 2016-01-21 Joel Brobecker <brobecker@adacore.com>
3071
3072 * location.h (new_address_location): Add new parameters
3073 "addr_string" and "addr_string_len".
3074 (get_address_string_location): Add declaration.
3075 * location.c (new_address_location): Add new parameters
3076 "addr_string" and "addr_string_len". If not NULL, store
3077 a copy of the addr_string in the new location as well.
3078 (get_address_string_location): New function.
3079 (string_to_event_location): Update call to new_address_location.
3080 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
3081 Save the event location in the parser's state before
3082 passing it to convert_address_location_to_sals.
3083 * breakpoint.c (create_thread_event_breakpoint): Update call
3084 to new_address_location.
3085 (init_breakpoint_sal): Get the event location's string, if any,
3086 and use it to update call to new_address_location.
3087 * python/py-finishbreakpoint.c (bpfinishpy_init):
3088 Update call to new_address_location.
3089 * spu-tdep.c (spu_catch_start): Likewise.
3090
3091 * config/djgpp/fnchange.lst: Add entries for
3092 gdb/testsuite/gdb.base/break-fun-addr1.c and
3093 gdb/testsuite/gdb.base/break-fun-addr2.c.
3094
3095 2016-01-21 Yao Qi <yao.qi@linaro.org>
3096
3097 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
3098 is_thumb and set it according to CPSR saved on the stack.
3099 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
3100 arm_linux_sigreturn_next_pc.
3101
3102 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3103
3104 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
3105 Fix enumerators sort key function.
3106
3107 2016-01-20 Joel Brobecker <brobecker@adacore.com>
3108
3109 * printcmd.c (print_scalar_formatted): Move binary operator from
3110 end of line to beginning of next line. Adjust formatting
3111 accordingly.
3112
3113 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3114
3115 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
3116 "len" with sysctl.
3117
3118 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3119
3120 * fbsd-tdep.c (find_stop_signal): Remove.
3121 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
3122 <stop_signal>: New field.
3123 <abort_iteration>: New field.
3124 (fbsd_collect_regset_section_cb): Use new fields.
3125 (fbsd_collect_thread_registers): New function.
3126 (struct fbsd_corefile_thread_data): New structure.
3127 (fbsd_corefile_thread): New function.
3128 (fbsd_make_corefile_notes): Use new function to dump notes for each
3129 non-exited thread in a process.
3130
3131 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3132
3133 * configure.ac: Check for support for LWP names on FreeBSD.
3134 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
3135 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
3136 (fbsd_fetch_kinfo_proc): Move function earlier.
3137 [PT_LWPINFO] (fbsd_thread_alive): New function.
3138 [PT_LWPINFO] (fbsd_pid_to_str): New function.
3139 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
3140 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
3141 [PT_LWPINFO] (fbsd_add_threads): New function.
3142 [PT_LWPINFO] (fbsd_update_thread_list): New function.
3143 [PT_LWPINFO] New variable super_resume.
3144 [PT_LWPINFO] (resume_one_thread_cb): New function.
3145 [PT_LWPINFO] (resume_all_threads_cb): New function.
3146 [PT_LWPINFO] (fbsd_resume): New function.
3147 (fbsd_remember_child): Save full ptid instead of plain pid.
3148 (fbsd_is_child_pending): Return ptid of saved child process.
3149 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
3150 first stop.
3151 [PT_LWP_EVENTS] Handle LWP events.
3152 [TDP_RFPPWAIT] Include LWP in child ptid.
3153 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
3154 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
3155 Add threads for existing processes.
3156 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
3157 "fbsd_thread_alive".
3158 Set "to_pid_to_str" to "fbsd_pid_to_str".
3159 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
3160 "fbsd_thread_name".
3161 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
3162 Set "to_has_thread_control" to "tc_schedlock".
3163 Set "to_resume" to "fbsd_resume".
3164 (_initialize_fbsd_nat): New function.
3165 * configure: Regenerate.
3166 * config.in: Regenerate.
3167
3168 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3169
3170 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3171 get_ptrace_pid.
3172 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
3173 (amd64bsd_dr_get): Use get_ptrace_pid.
3174 (amd64bsd_dr_set): Use get_ptrace_pid.
3175 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
3176 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
3177 (i386bsd_dr_get): Use get_ptrace_pid.
3178 (i386bsd_dr_set): Use get_ptrace_pid.
3179 * inf-ptrace.c (get_ptrace_pid): Export.
3180 * inf-ptrace.h (get_ptrace_pid): Declare.
3181 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
3182 (ppcfbsd_store_inferior_registers): Use lwp id.
3183
3184 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3185
3186 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
3187 (fbsd_core_thread_name): New function.
3188 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
3189 Add "core_thread_name" gdbarch method.
3190
3191 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3192
3193 * corelow.c (core_thread_name): New function.
3194 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
3195 target op.
3196 * gdbarch.sh (core_thread_name): New gdbarch callback.
3197 * gdbarch.h: Re-generate.
3198 * gdbarch.c: Re-generate.
3199
3200 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
3201
3202 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
3203 convert gdb.Value to integer type using int().
3204
3205 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3206
3207 * configure.ac: Include <sys/types.h when checking for "r_fs" in
3208 "struct reg".
3209 * configure: Regenerate.
3210
3211 2016-01-19 Pedro Alves <palves@redhat.com>
3212
3213 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
3214 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
3215 current program space down to linespec decoding and breakpoint
3216 location updating.
3217 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
3218 decode_line_full.
3219 (until_break_command): Adjust calls to decode_line_1.
3220 (base_breakpoint_decode_location, bkpt_decode_location): Add
3221 'search_pspace' parameter. Pass it along.
3222 (bkpt_probe_create_sals_from_location): Adjust calls to
3223 parse_probes.
3224 (tracepoint_decode_location, tracepoint_probe_decode_location)
3225 (strace_marker_decode_location): Add 'search_pspace' parameter.
3226 Pass it along.
3227 (all_locations_are_pending): Rewrite to take a breakpoint and
3228 program space as arguments instead.
3229 (hoist_existing_locations): New function.
3230 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
3231 hoist_existing_locations instead of always removing all locations,
3232 and adjust to all_locations_are_pending change.
3233 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
3234 Don't disable the breakpoint if there are other locations in
3235 another program space.
3236 (breakpoint_re_set_default): Adjust to pass down the current
3237 program space as filter program space.
3238 (decode_location_default): Add 'search_pspace' parameter and pass
3239 it along.
3240 (prepare_re_set_context): Don't switch program space here.
3241 (breakpoint_re_set): Use save_current_space_and_thread instead of
3242 save_current_program_space.
3243 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
3244 'search_pspace' parameter.
3245 (update_breakpoint_locations): Add 'filter_pspace' parameter.
3246 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
3247 decode_line_1.
3248 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
3249 program space as filter program space.
3250 * linespec.c (struct linespec_state) <search_pspace>: New field.
3251 (create_sals_line_offset, convert_explicit_location_to_sals)
3252 (parse_linespec): Pass the search program space down.
3253 (linespec_state_constructor): Add 'search_pspace' parameter.
3254 Store it.
3255 (linespec_parser_new): Add 'search_pspace' parameter and pass it
3256 along.
3257 (linespec_lex_to_end): Adjust.
3258 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
3259 and pass it along.
3260 (decode_line_with_last_displayed): Adjust.
3261 (collect_symtabs_from_filename, symtabs_from_filename): New
3262 'search_pspace' parameter. Use it.
3263 (find_function_symbols): Pass the search program space down.
3264 * linespec.h (decode_line_1, decode_line_full): Add
3265 'search_pspace' parameter.
3266 * probe.c (parse_probes_in_pspace): New function, factored out
3267 from ...
3268 (parse_probes): ... this. Add 'search_pspace' parameter and use
3269 it.
3270 * probe.h (parse_probes): Add pspace' parameter.
3271 * python/python.c (gdbpy_decode_line): Adjust.
3272 * tracepoint.c (scope_info): Adjust.
3273
3274 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
3275
3276 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
3277 instruction support.
3278 (micromips_next_pc): Likewise.
3279 (micromips_scan_prologue): Likewise.
3280 (micromips_deal_with_atomic_sequence): Likewise.
3281 (micromips_stack_frame_destroyed_p): Likewise.
3282 (mips_breakpoint_from_pc): Likewise.
3283
3284 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
3285
3286 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
3287 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
3288
3289 2016-01-18 Pedro Alves <palves@redhat.com>
3290
3291 * NEWS: Mention that GDB now displays the ID and name of the
3292 thread that hit a breakpoint or received a signal.
3293 * break-catch-sig.c (signal_catchpoint_print_it): Use
3294 maybe_print_thread_hit_breakpoint.
3295 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
3296 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
3297 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
3298 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
3299 (print_it_catch_exec, print_it_ranged_breakpoint)
3300 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
3301 Use maybe_print_thread_hit_breakpoint.
3302 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
3303 * gdbthread.h (show_thread_that_caused_stop): Declare.
3304 * infrun.c (print_signal_received_reason): Print which thread
3305 received signal.
3306 * thread.c (show_thread_that_caused_stop): New function.
3307
3308 2016-01-18 Gary Benson <gbenson@redhat.com>
3309
3310 * nat/linux-namespaces.c (do_fork): New function.
3311 (linux_mntns_get_helper): Use the above.
3312
3313 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
3314
3315 Pushed by Joel Brobecker <brobecker@adacore.com>.
3316 PR gdb/19208
3317 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
3318 if the function has no name.
3319
3320 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
3321
3322 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
3323 Conditionalize for Windows host.
3324 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
3325 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
3326 (phony_iconv_open): Handle both UTF-32 endiannesses.
3327 (phony_iconv): Likewise. Check for output overflow and clean up
3328 out-of-input cases. Correct adjustment to input buffer pointer.
3329 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
3330 phony_iconv_open.
3331
3332 2016-01-15 Pedro Alves <palves@redhat.com>
3333
3334 * NEWS: Mention star wildcard ranges.
3335 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
3336 (number_range_setup_range): New function.
3337 * cli/cli-utils.h (number_range_setup_range): New declaration.
3338 * thread.c (thread_apply_command): Support star TID ranges.
3339 * tid-parse.c (tid_range_parser_finished)
3340 (tid_range_parser_string, tid_range_parser_skip)
3341 (get_tid_or_range, get_tid_or_range): Handle
3342 TID_RANGE_STATE_STAR_RANGE.
3343 (tid_range_parser_star_range): New function.
3344 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
3345 New value.
3346 (tid_range_parser_star_range): New declaration.
3347
3348 2016-01-15 Pedro Alves <palves@redhat.com>
3349
3350 * thread.c (thread_apply_command): Use the tid range parser to
3351 advance past the thread ID list.
3352 * tid-parse.c (get_positive_number_trailer): New function.
3353 (parse_thread_id): Use it.
3354 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
3355 thread ID error.
3356 (get_tid_or_range): Detect negative values. Return 0 instead of
3357 throwing invalid thread ID error.
3358
3359 2016-01-14 Yao Qi <yao.qi@linaro.org>
3360
3361 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
3362 Declare.
3363 (arm_linux_get_next_pcs_ops): Install
3364 arm_linux_get_next_pcs_syscall_next_pc.
3365 (arm_linux_syscall_next_pc): Change to ...
3366 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
3367 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
3368 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
3369 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
3370 call tdep->syscall_next_pc.
3371 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
3372 (arm_get_next_pcs_syscall_next_pc): Remove.
3373
3374 2016-01-14 Yao Qi <yao.qi@linaro.org>
3375
3376 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
3377 * thread.c (do_captured_thread_select): Cast to const char *.
3378
3379 2016-01-14 Yao Qi <yao.qi@linaro.org>
3380
3381 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
3382 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
3383 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
3384 instead.
3385 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
3386 <arm_thumb2_breakpoint>: Remove.
3387 <has_thumb2_breakpoint>: New field.
3388 (arm_get_next_pcs_ctor): Update declaration.
3389 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
3390 1 to arm_get_next_pcs_ctor.
3391 * arm-tdep.c (arm_software_single_step): Pass 0 to
3392 arm_get_next_pcs_ctor.
3393
3394 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
3395
3396 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
3397
3398 2016-01-13 Yao Qi <yao.qi@linaro.org>
3399
3400 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
3401 byte_order_for_code to read instruction.
3402
3403 2016-01-13 Pedro Alves <palves@redhat.com>
3404
3405 * NEWS: Mention $_gthread.
3406 * gdbthread.h (struct thread_info) <global_num>: Mention
3407 $_gthread.
3408 * thread.c (thread_num_make_value_helper): New function.
3409 (thread_id_make_value): Delete.
3410 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
3411 New.
3412 (thread_funcs): Adjust.
3413 (gthread_funcs): New.
3414 (_initialize_thread): Register $_gthread variable.
3415
3416 2016-01-13 Pedro Alves <palves@redhat.com>
3417
3418 * NEWS: Mention "info threads -gid".
3419 * gdbthread.h (struct thread_info) <global_num>: Mention "info
3420 threads -gid".
3421 * thread.c (info_threads_command): Handle "-gid".
3422 (_initialize_thread): Adjust "info threads" help string to mention
3423 -gid.
3424
3425 2016-01-13 Pedro Alves <palves@redhat.com>
3426
3427 * NEWS: Mention InferiorThread.global_num.
3428 * python/py-infthread.c (thpy_get_global_num): New function.
3429 (thread_object_getset): Register "global_num".
3430
3431 2016-01-13 Pedro Alves <palves@redhat.com>
3432
3433 * NEWS: Mention that thread IDs are now per inferior and global
3434 thread IDs.
3435 * Makefile.in (SFILES): Add tid-parse.c.
3436 (COMMON_OBS): Add tid-parse.o.
3437 (HFILES_NO_SRCDIR): Add tid-parse.h.
3438 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
3439 * breakpoint.c (insert_breakpoint_locations)
3440 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
3441 (print_one_breakpoint_location, set_longjmp_breakpoint)
3442 (check_longjmp_breakpoint_for_call_dummy)
3443 (set_momentary_breakpoint): Adjust to use global IDs.
3444 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
3445 (until_break_command, longjmp_bkpt_dtor)
3446 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
3447 to use global IDs.
3448 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
3449 ptid_to_global_thread_id.
3450 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
3451 * gdbthread.h (struct thread_info): Rename field 'num' to
3452 'global_num. Add new fields 'per_inf_num' and 'inf'.
3453 (thread_id_to_pid): Rename thread_id_to_pid to
3454 global_thread_id_to_ptid.
3455 (pid_to_thread_id): Rename to ...
3456 (ptid_to_global_thread_id): ... this.
3457 (valid_thread_id): Rename to ...
3458 (valid_global_thread_id): ... this.
3459 (find_thread_id): Rename to ...
3460 (find_thread_global_id): ... this.
3461 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
3462 (print_thread_info): Add comment.
3463 * tid-parse.h: New file.
3464 * tid-parse.c: New file.
3465 * infcmd.c (step_command_fsm_prepare)
3466 (step_command_fsm_should_stop): Adjust to use the global thread
3467 ID.
3468 (until_next_command, until_next_command)
3469 (finish_command_fsm_should_stop): Adjust to use the global thread
3470 ID.
3471 (attach_post_wait): Adjust to check the inferior number too.
3472 * inferior.h (struct inferior) <highest_thread_num>: New field.
3473 * infrun.c (handle_signal_stop)
3474 (insert_exception_resume_breakpoint)
3475 (insert_exception_resume_from_probe): Adjust to use the global
3476 thread ID.
3477 * record-btrace.c (record_btrace_open): Use global thread IDs.
3478 * remote.c (process_initial_stop_replies): Also consider the
3479 inferior number.
3480 * target.c (target_pre_inferior): Clear the inferior's highest
3481 thread num.
3482 * thread.c (clear_thread_inferior_resources): Adjust to use the
3483 global thread ID.
3484 (new_thread): New inferior parameter. Adjust to use it. Set both
3485 the thread's global ID and the thread's per-inferior ID.
3486 (add_thread_silent): Adjust.
3487 (find_thread_global_id): New.
3488 (find_thread_id): Make static. Adjust to rename.
3489 (valid_thread_id): Rename to ...
3490 (valid_global_thread_id): ... this.
3491 (pid_to_thread_id): Rename to ...
3492 (ptid_to_global_thread_id): ... this.
3493 (thread_id_to_pid): Rename to ...
3494 (global_thread_id_to_ptid): ... this. Adjust.
3495 (first_thread_of_process): Adjust.
3496 (do_captured_list_thread_ids): Adjust to use global thread IDs.
3497 (should_print_thread): New function.
3498 (print_thread_info): Rename to ...
3499 (print_thread_info_1): ... this, and add new show_global_ids
3500 parameter. Handle it. Iterate over inferiors.
3501 (print_thread_info): Reimplement as wrapper around
3502 print_thread_info_1.
3503 (show_inferior_qualified_tids): New function.
3504 (print_thread_id): Use it.
3505 (tp_array_compar): Compare inferior numbers too.
3506 (thread_apply_command): Use tid_range_parser.
3507 (do_captured_thread_select): Use parse_thread_id.
3508 (thread_id_make_value): Adjust.
3509 (_initialize_thread): Adjust "info threads" help string.
3510 * varobj.c (struct varobj_root): Update comment.
3511 (varobj_create): Adjust to use global thread IDs.
3512 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
3513 * windows-tdep.c (display_tib): No longer accept an argument.
3514 * cli/cli-utils.c (get_number_trailer): Make extern.
3515 * cli/cli-utils.h (get_number_trailer): Declare.
3516 (get_number_const): Adjust documentation.
3517 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
3518 thread IDs.
3519 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3520 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
3521 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
3522 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
3523 Likewise.
3524 * python/py-breakpoint.c (bppy_set_thread): Likewise.
3525 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3526 * python/py-infthread.c (thpy_get_num): Add comment and return the
3527 per-inferior thread ID.
3528 (thread_object_getset): Update comment of "num".
3529
3530 2016-01-13 Pedro Alves <palves@redhat.com>
3531
3532 * breakpoint.c (remove_threaded_breakpoints)
3533 (print_one_breakpoint_location): Use print_thread_id.
3534 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3535 (btrace_fetch, btrace_clear): Use print_thread_id.
3536 * common/print-utils.c (CELLSIZE): Delete.
3537 (get_cell): Rename to ...
3538 (get_print_cell): ... this and made extern. Adjust call callers.
3539 Adjust to use PRINT_CELL_SIZE.
3540 * common/print-utils.h (get_print_cell): Declare.
3541 (PRINT_CELL_SIZE): New.
3542 * gdbthread.h (print_thread_id): Declare.
3543 * infcmd.c (signal_command): Use print_thread_id.
3544 * inferior.c (print_inferior): Use print_thread_id.
3545 * infrun.c (handle_signal_stop)
3546 (insert_exception_resume_breakpoint)
3547 (insert_exception_resume_from_probe)
3548 (print_signal_received_reason): Use print_thread_id.
3549 * record-btrace.c (record_btrace_info)
3550 (record_btrace_resume_thread, record_btrace_cancel_resume)
3551 (record_btrace_step_thread, record_btrace_wait): Use
3552 print_thread_id.
3553 * thread.c (thread_apply_all_command): Use print_thread_id.
3554 (print_thread_id): New function.
3555 (thread_apply_command): Use print_thread_id.
3556 (thread_command, thread_find_command, do_captured_thread_select):
3557 Use print_thread_id.
3558
3559 2016-01-13 Pedro Alves <palves@redhat.com>
3560
3561 * NEWS: Mention InferiorThread.inferior.
3562 * python/py-infthread.c (thpy_get_inferior): New.
3563 (thread_object_getset): Register "inferior".
3564
3565 2016-01-13 Pedro Alves <palves@redhat.com>
3566
3567 * NEWS: Mention $_inferior.
3568 * inferior.c (inferior_id_make_value): New.
3569 (inferior_funcs): New.
3570 (_initialize_inferior): Create $_inferior variable.
3571
3572 2016-01-13 Pedro Alves <palves@redhat.com>
3573
3574 PR breakpoints/19388
3575 * frame.c (get_current_frame): Use validate_registers_access.
3576 * gdbthread.h (validate_registers_access): Declare.
3577 * infrun.c (validate_siginfo_access): Delete.
3578 (siginfo_value_read, siginfo_value_write): Use
3579 validate_registers_access.
3580 * thread.c (validate_registers_access): New function.
3581
3582 2016-01-12 Josh Stone <jistone@redhat.com>
3583 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3584
3585 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
3586 syscall_entry and syscall_return stop reasons. Mention GDB
3587 support for remote catch syscall.
3588 * remote.c (PACKET_QCatchSyscalls): New enum.
3589 (remote_set_syscall_catchpoint): New function.
3590 (remote_protocol_features): New element for QCatchSyscalls.
3591 (remote_parse_stop_reply): Parse syscall_entry/return stops.
3592 (init_remote_ops): Install remote_set_syscall_catchpoint.
3593 (_initialize_remote): Config QCatchSyscalls.
3594 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
3595
3596 2016-01-12 Yao Qi <yao.qi@linaro.org>
3597
3598 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
3599 to gdb_byte * and pass to linux_fork_to_function.
3600
3601 2016-01-12 Yao Qi <yao.qi@linaro.org>
3602
3603 * nat/linux-ptrace.c (linux_fork_to_function): Change type
3604 of argument 'function'.
3605 (linux_grandchild_function): Change return type to 'int'.
3606 Change child_stack's type to 'void *'.
3607 (linux_child_function): Likewise.
3608
3609 2016-01-12 Pedro Alves <palves@redhat.com>
3610
3611 Remove use of the registered trademark symbol throughout.
3612
3613 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
3614
3615 * reply_mig_hack.awk: Rewrite one regular expression.
3616
3617 2016-01-11 Mike Frysinger <vapier@gentoo.org>
3618
3619 * acinclude.m4: Include new warning.m4 file.
3620 * configure: Regenerated.
3621 * configure.ac: Move all warning logic ...
3622 * warning.m4: ... here.
3623
3624 2016-01-08 Yao Qi <yao.qi@linaro.org>
3625
3626 * extension.c: Include target.h.
3627 (set_active_ext_lang): Only call install_gdb_sigint_handler,
3628 check_quit_flag, and set_quit_flag if target_terminal_is_ours
3629 returns false.
3630 (restore_active_ext_lang): Likewise.
3631 * target.c (target_terminal_is_ours): New function.
3632 * target.h (target_terminal_is_ours): Declare.
3633
3634 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
3635
3636 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
3637 to `err' in the little-endian leg.
3638
3639 2016-01-06 Yao Qi <yao.qi@linaro.org>
3640
3641 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
3642 lines below.
3643 (thumb_get_next_pcs_raw): Make it static.
3644 (arm_get_next_pcs_raw): Likewise.
3645 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
3646 declaration.
3647 (arm_get_next_pcs_raw): Likewise.
3648
3649 2016-01-05 Mike Frysinger <vapier@gentoo.org>
3650
3651 * version.in: Change cvs to git.
3652
3653 2016-01-05 Mike Frysinger <vapier@gentoo.org>
3654
3655 * configure.tgt (score-*-*): Delete gdb_sim assignment.
3656
3657 2016-01-05 Pedro Alves <palves@redhat.com>
3658
3659 PR sim/13418
3660 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
3661 the target is powerpc*.
3662 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
3663 of WITH_SIM.
3664 * configure: Regenerate.
3665 * config.in: Regenerate.
3666
3667 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
3668
3669 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
3670
3671 2016-01-02 Mike Frysinger <vapier@gentoo.org>
3672
3673 * configure.tgt (powerpc*-*-*): Delete test call and
3674 always assign gdb_sim.
3675
3676 2016-01-01 Joel Brobecker <brobecker@adacore.com>
3677
3678 Update year range in copyright notice of all files.
3679
3680 2016-01-01 Joel Brobecker <brobecker@adacore.com>
3681
3682 * top.c (print_gdb_version): Change copyright year in version
3683 message.
3684
3685 2016-01-01 Joel Brobecker <brobecker@adacore.com>
3686
3687 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
3688
3689 For older changes see ChangeLog-2015.
3690 \f
3691 Local Variables:
3692 mode: change-log
3693 left-margin: 8
3694 fill-column: 74
3695 version-control: never
3696 coding: utf-8
3697 End:
This page took 0.135327 seconds and 5 git commands to generate.