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