Avoid "format not a string literal" warnings
[binutils-gdb.git] / gdb / ChangeLog
1 2016-04-14 Pedro Alves <palves@redhat.com>
2
3 * cli/cli-cmds.c (alias_usage_error): New function.
4 (alias_command): Use it.
5 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
6 ctf_save_write_metadata call.
7
8 2016-04-14 Pedro Alves <palves@redhat.com>
9
10 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
11 argument to function expecting LONGEST.
12 * value.c (unpack_long): Add casts to LONGEST.
13
14 2016-04-13 Luis Machado <lgustavo@codesourcery.com>
15
16 * exec.c (exec_file_locate_attach): Guard a couple functions
17 that can throw errors.
18 (exception_print_same): New helper function.
19
20 2016-04-13 Pedro Alves <palves@redhat.com>
21
22 PR remote/19840
23 * remote.c (struct remote_state) <last_resume_exec_dir>: New
24 field.
25 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
26 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
27 (remote_resume): Store the last execution direction.
28 (remote_execution_direction): New function.
29 (init_remote_ops): Install it as to_execution_direction target_ops
30 method.
31
32 2016-04-12 Pedro Alves <palves@redhat.com>
33
34 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
35 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
36
37 2016-04-12 Pedro Alves <palves@redhat.com>
38
39 * common/common-exceptions.c (struct catcher) <buf>: Now a
40 'jmp_buf' instead of SIGJMP_BUF.
41 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
42 (throw_exception): Use longjmp instead of SIGLONGJMP.
43 * common/common-exceptions.h: Include <setjmp.h> instead of
44 "gdb_setjmp.h".
45 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
46 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
47 SIGSETJMP.
48 * cp-support.c: Include "gdb_setjmp.h".
49
50 2016-04-12 Pedro Alves <palves@redhat.com>
51
52 * common/common-exceptions.c (exception_rethrow): Remove
53 prepare_to_throw_exception call.
54 * common/common-exceptions.h (prepare_to_throw_exception): Delete
55 declaration.
56 * exceptions.c (prepare_to_throw_exception): Delete.
57
58 2016-04-12 Pedro Alves <palves@redhat.com>
59
60 * target.c (target_check_pending_interrupt): Delete.
61 * target.h (struct target_ops) <to_check_pending_interrupt>:
62 Remove method.
63 (target_check_pending_interrupt): Remove declaration.
64 * target-delegates.c: Regenerate.
65
66 2016-04-12 Pedro Alves <palves@redhat.com>
67
68 * defs.h: Update comments on SIGINT handling.
69 (immediate_quit): Delete declaration.
70 * event-loop.c (call_async_signal_handler): Delete.
71 * event-loop.h (call_async_signal_handler): Delete declaration.
72 (mark_async_signal_handler): Update comments.
73 (gdb_call_async_signal_handler): Delete declaration.
74 * event-top.c (handle_sigint): Call mark_async_signal_handler
75 instead of gdb_call_async_signal_handler.
76 * exceptions.c (prepare_to_throw_exception): Remove reference to
77 immediate_quit.
78 (exception_fprintf): Remove comments about immediate_quit.
79 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
80 (gdb_select): Don't wait on sigint_event.
81 (gdb_call_async_signal_handler): Delete.
82 (_initialize_mingw_hdep): Delete.
83 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
84 * utils.c (immediate_quit): Delete.
85
86 2016-04-12 Pedro Alves <palves@redhat.com>
87
88 * defs.h (quit_handler_ftype, quit_handler)
89 (make_cleanup_override_quit_handler, default_quit_handler): New.
90 (QUIT): Adjust comments.
91 * event-top.c (default_quit_handler): New function.
92 (quit_handler): New global.
93 (struct quit_handler_cleanup_data): New.
94 (restore_quit_handler, restore_quit_handler_dtor)
95 (make_cleanup_override_quit_handler): New.
96 (async_request_quit): Call QUIT.
97 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
98 (async_sigint_remote_twice_token, async_sigint_remote_token):
99 Delete.
100 (remote_close): Update comments.
101 (remote_start_remote): Don't set immediate_quit. Set starting_up
102 earlier.
103 (remote_serial_quit_handler, remote_unpush_and_throw): New
104 functions.
105 (remote_open_1): Clear got_ctrlc_during_io. Set
106 remote_async_terminal_ours_p unconditionally.
107 (async_initialize_sigint_signal_handler)
108 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
109 (remote_check_pending_interrupt, async_remote_interrupt)
110 (async_remote_interrupt_twice)
111 (async_cleanup_sigint_signal_handler, ofunc)
112 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
113 (remote_terminal_inferior, remote_terminal_ours): Remove async
114 checks.
115 (remote_wait_as): Don't install a SIGINT handler in sync mode.
116 (readchar, remote_serial_write): Override the quit handler with
117 remote_serial_quit_handler.
118 (getpkt_or_notif_sane_1): Don't call QUIT.
119 (initialize_remote_ops): Don't install
120 remote_check_pending_interrupt.
121 (_initialize_remote): Don't create async_sigint_remote_token and
122 async_sigint_remote_twice_token.
123 * ser-base.c (ser_base_wait_for): Call QUIT and use
124 interruptible_select.
125 (ser_base_write): Call QUIT.
126 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
127 * ser-unix.c (wait_for): Don't use VTIME. Always take the
128 gdb_select path, but call QUIT and interruptible_select.
129 * utils.c (maybe_quit): Call the current quit handler. Don't call
130 target_check_pending_interrupt.
131 (defaulted_query, prompt_for_continue): Override the quit handler
132 with the default quit handler.
133
134 2016-04-12 Pedro Alves <palves@redhat.com>
135
136 * tui/tui-hooks.c (tui_target_has_run): Delete.
137 (tui_about_to_proceed): Delete.
138 (tui_about_to_proceed_observer): Delete.
139 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
140 about_to_proceed observer.
141
142 2016-04-12 Pedro Alves <palves@redhat.com>
143
144 * mi/mi-interp.c (mi_new_thread): Put
145 target_terminal_ours_for_output in effect while outputting.
146 (mi_thread_exit): Use target_terminal_ours_for_output instead of
147 target_terminal_ours.
148 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
149 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
150 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
151 (mi_breakpoint_created, mi_breakpoint_deleted)
152 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
153 (mi_command_param_changed, mi_memory_changed)
154 (report_initial_inferior): Use target_terminal_ours_for_output
155 instead of target_terminal_ours. Restore terminal settings.
156 * mi/mi-main.c (mi_execute_command): Use
157 target_terminal_ours_for_output instead of target_terminal_ours.
158 Restore terminal settings.
159
160 2016-04-12 Pedro Alves <palves@redhat.com>
161
162 PR gdb/19828
163 * gnu-nat.c (inf_validate_task_sc): Don't call
164 target_terminal_ours / target_terminal_inferior around query.
165 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
166 call target_terminal_ours / target_terminal_inferior around
167 yquery.
168 * linux-record.c (record_linux_system_call): Don't call
169 target_terminal_ours / target_terminal_inferior around yquery.
170 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
171 / target_terminal_inferior around query.
172 * record-full.c (record_full_check_insn_num): Remove
173 'set_terminal' parameter. Don't call target_terminal_ours /
174 target_terminal_inferior around query.
175 (record_full_message, record_full_registers_change)
176 (record_full_xfer_partial): Adjust.
177 * remote.c (interrupt_query): Don't call target_terminal_ours /
178 target_terminal_inferior around query.
179 * utils.c (defaulted_query): Install cleanup to restore target
180 terminal. Put target_terminal_ours_for_output in effect while
181 defaulted producing, and target_terminal_ours in in effect while
182 handling input.
183 (prompt_for_continue): Install cleanup to restore target terminal.
184 Put target_terminal_ours in in effect while handling input.
185
186 2016-04-12 Pedro Alves <palves@redhat.com>
187
188 * utils.c (defaulted_query, prompt_for_continue): Free temporary
189 strings with cleanups, instead of xfree.
190
191 2016-04-12 Pedro Alves <palves@redhat.com>
192
193 * utils.c (vwarning, internal_vproblem): Use
194 make_cleanup_restore_target_terminal and
195 target_terminal_ours_for_output.
196
197 2016-04-12 Pedro Alves <palves@redhat.com>
198
199 * infcmd.c (post_create_inferior, prepare_one_step): Use
200 target_terminal_ours_for_output instead of target_terminal_ours.
201
202 2016-04-12 Pedro Alves <palves@redhat.com>
203
204 * exceptions.c (print_flush): Use target_terminal_ours_for_output
205 instead of target_terminal_ours, and restore target terminal with
206 a cleanup.
207
208 2016-04-12 Pedro Alves <palves@redhat.com>
209
210 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
211 instead of target_terminal_ours, and restore target terminal with
212 a cleanup.
213
214 2016-04-12 Pedro Alves <palves@redhat.com>
215
216 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
217 functions.
218 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
219
220 2016-04-12 Pedro Alves <palves@redhat.com>
221
222 * ser-base.c (fd_event): Retry read_prim on EINTR.
223 (do_ser_base_readchar): Retry read_prim on EINTR.
224 (ser_base_write): Retry write_prim on EINTR.
225 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
226 (ser_unix_write_prim): Remove comment.
227
228 2016-04-12 Pedro Alves <palves@redhat.com>
229
230 * remote.c (remote_pass_ctrlc): New function.
231 (init_remote_ops): Install it.
232 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
233 target.
234 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
235 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
236 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
237 * target-delegates.c: Regenerate.
238
239 2016-04-12 Pedro Alves <palves@redhat.com>
240
241 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
242 mode.
243 * linux-nat.c (linux_nat_interrupt): Delete.
244 (linux_nat_add_target): Don't install linux_nat_interrupt.
245 * remote.c (remote_interrupt_ns): Change return type to void.
246 Throw error if interrupting the target is not supported.
247 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
248
249 2016-04-12 Pedro Alves <palves@redhat.com>
250
251 * defs.h (clear_quit_flag): Remove declaration.
252 * extension-priv.h (struct extension_language_ops)
253 <clear_quit_flag>: Remove field and update comments.
254 * extension.c (clear_quit_flag): Delete.
255 * guile/guile.c (guile_extension_ops): Adjust.
256 * python/python.c (python_extension_ops): Adjust.
257 (gdbpy_clear_quit_flag): Delete.
258
259 2016-04-12 Pedro Alves <palves@redhat.com>
260
261 * main.c (captured_main): Don't clear the quit flag.
262
263 2016-04-12 Pedro Alves <palves@redhat.com>
264
265 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
266 flag.
267
268 2016-04-12 Pedro Alves <palves@redhat.com>
269
270 * event-top.c (command_handler): Don't call clear_quit_flag.
271
272 2016-04-12 Pedro Alves <palves@redhat.com>
273
274 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
275 * remote.c (remote_wait_as): Don't call clear_quit_flag.
276
277 2016-04-12 Pedro Alves <palves@redhat.com>
278
279 * python/python.c: Include "ser-event.h".
280 (gdbpy_event_fds): Delete.
281 (gdbpy_serial_event): New.
282 (gdbpy_run_events): Change prototype. Use serial_event_clear
283 instead of serial_readchar.
284 (gdbpy_post_event): Use serial_event_set instead of serial_write.
285 (gdbpy_initialize_events): Use make_serial_event instead of
286 serial_pipe.
287
288 2016-04-12 Pedro Alves <palves@redhat.com>
289
290 * defs.h: Extend QUIT-related comments to mention
291 interruptible_select.
292 (quit_serial_event_set, quit_serial_event_clear): Declare.
293 * event-top.c: Include "ser-event.h" and "gdb_select.h".
294 (quit_serial_event): New global.
295 (async_init_signals): Make quit_serial_event.
296 (quit_serial_event_set, quit_serial_event_clear)
297 (quit_serial_event_fd, interruptible_select): New functions.
298 * extension.c (set_quit_flag): Set the quit serial event.
299 (check_quit_flag): Clear the quit serial event.
300 * gdb_select.h (interruptible_select): New declaration.
301 * guile/scm-ports.c (ioscm_input_waiting): Use
302 interruptible_select instead of gdb_select.
303 * top.c (gdb_readline_no_editing): Likewise.
304 * ui-file.c (stdio_file_read): Likewise.
305
306 2016-04-12 Pedro Alves <palves@redhat.com>
307
308 * event-loop.c: Include "ser-event.h".
309 (async_signal_handlers_serial_event): New global.
310 (async_signals_handler, initialize_async_signal_handlers): New
311 functions.
312 (mark_async_signal_handler): Set
313 async_signal_handlers_serial_event.
314 (invoke_async_signal_handlers): Clear
315 async_signal_handlers_serial_event.
316 * event-top.c (async_init_signals): Call
317 initialize_async_signal_handlers.
318
319 2016-04-12 Pedro Alves <palves@redhat.com>
320
321 * Makefile.in (SFILES): Add ser-event.c.
322 (HFILES_NO_SRCDIR): Add ser-event.h.
323 (COMMON_OBS): Add ser-event.o.
324 * ser-event.c, ser-event.h: New files.
325 * serial.c (new_serial): New function, factored out from
326 (serial_fdopen_ops): ... this.
327 (serial_open_ops_1): New function, factored out from
328 (serial_open): ... this.
329 (serial_open_ops): New function.
330 * serial.h (struct serial): Forware declare.
331 (serial_open_ops): New declaration.
332
333 2016-04-12 Pedro Alves <palves@redhat.com>
334
335 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
336 Remove references to name.
337 * serial.h (struct serial) <name>: Delete.
338
339 2016-04-12 Pedro Alves <palves@redhat.com>
340
341 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
342 Delete.
343 (async_remote_fileio_interrupt): Delete.
344 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
345 handler. Instead just always set the ctrl_c flag.
346 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
347 re-enabling the SIGINT handler.
348 (remote_fileio_func_open, remote_fileio_func_close)
349 (remote_fileio_func_read, remote_fileio_func_write)
350 (remote_fileio_func_lseek, remote_fileio_func_rename)
351 (remote_fileio_func_unlink, remote_fileio_func_stat)
352 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
353 (remote_fileio_func_isatty, remote_fileio_func_system)
354 (remote_fileio_request): Remove references to
355 remote_fio_no_longjmp.
356 (initialize_remote_fileio): Don't create an async signal handler.
357
358 2016-04-12 Pedro Alves <palves@redhat.com>
359
360 * event-top.c (stdin_event_handler): Call QUIT;
361 (prompt_for_continue): Don't run with immediate_quit set.
362
363 2016-04-12 Pedro Alves <palves@redhat.com>
364
365 * tui/tui-io.c (tui_redisplay_readline): Check
366 gdb_in_secondary_prompt_p instead of immediate_quit.
367 * tui/tui.c: Include top.h.
368 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
369 immediate_quit.
370
371 2016-04-12 Pedro Alves <palves@redhat.com>
372
373 * top.c (read_command_file): Inline command_loop here.
374 (command_loop): Delete.
375
376 2016-04-12 Pedro Alves <palves@redhat.com>
377
378 * top.c: Include "gdb_select.h".
379 (gdb_readline_no_editing): Wait for input with gdb_select instead
380 of blocking in fgetc.
381 (command_line_input): Don't set immediate_quit.
382
383 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
384
385 * value.c (value_next): Make pass-by-reference parameters const-correct.
386 (value_parent): Likewise.
387 (value_enclosing_type): Likewise.
388 (value_lazy): Likewise.
389 (value_stack): Likewise.
390 (value_embedded_offset): Likewise.
391 (value_pointed_to_offset): Likewise.
392 (value_raw_address): Likewise.
393 (deprecated_value_modifiable): Likewise.
394 (value_free_to_mark): Likewise.
395 (value_release_to_mark): Likewise.
396 (internalvar_name): Likewise.
397 (readjust_indirect_value_type): Likewise.
398 (value_initialized): Likewise.
399 * value.h (value_next): Likewise.
400 (value_parent): Likewise.
401 (value_enclosing_type): Likewise.
402 (value_lazy): Likewise.
403 (value_stack): Likewise.
404 (value_embedded_offset): Likewise.
405 (value_pointed_to_offset): Likewise.
406 (value_raw_address): Likewise.
407 (deprecated_value_modifiable): Likewise.
408 (value_free_to_mark): Likewise.
409 (value_release_to_mark): Likewise.
410 (internalvar_name): Likewise.
411 (readjust_indirect_value_type): Likewise.
412 (value_initialized): Likewise.
413
414 2016-04-07 Yao Qi <yao.qi@linaro.org>
415
416 * record-full.c (record_full_insert_breakpoint): Return
417 early if entry on the address is found in
418 record_full_breakpoints.
419
420 2016-04-07 Yao Qi <yao.qi@linaro.org>
421
422 * record-full.c (record_full_insert_breakpoint): Set
423 bp_tgt->reqstd_address and bp_tgt->placed_size.
424
425 2016-04-06 Don Breazeal <donb@codesourcery.com>
426
427 * value.c (value_actual_type): Don't try to get rtti type
428 of the value if it has been optimized out.
429 (value_optimized_out): If a memory access error occurs,
430 just check vaue->optimized_out.
431
432 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
433
434 Revert the previous commit adding unknown_v_replies_ok.
435
436 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
437
438 * remote.c (struct remote_state): New field unknown_v_replies_ok.
439 (packet_config_support): Read it.
440 (remote_start_remote): Set it.
441
442 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
443
444 * remote.c: Revert check-in by a mistake in the previous commit.
445
446 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
447 Pedro Alves <palves@redhat.com>
448
449 * exec.c (exec_file_locate_attach): Print warning for unsupported
450 target_pid_to_exec_file.
451 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
452 message part.
453
454 2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
455
456 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
457 trailing spaces.
458
459 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
460
461 PR gdb/19820
462 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
463 the type of BINOP_REPEAT's second operand.
464
465 2016-03-31 Yichao Yu <yyc1992@gmail.com>
466
467 PR gdb/19858
468 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
469 got the breakpoint at the right address.
470 (jit_inferior_created): New function.
471 (_initialize_jit): Install jit_inferior_created as
472 inferior_created observer.
473
474 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
475
476 * NEWS: Mention support for tracepoints on powerpc*-linux.
477
478 2016-03-31 Catalin Udma <catalin.udma@freescale.com>
479
480 PR python/19743
481 * python/python.c (execute_gdb_command): Use console uiout
482 when executing gdb command.
483 * utils.c (restore_ui_out_closure): New structure.
484 (do_restore_ui_out): New function.
485 (make_cleanup_restore_ui_out): Likewise.
486 * utils.h (make_cleanup_restore_ui_out): Declare.
487
488 2016-03-31 Pedro Alves <palves@redhat.com>
489
490 * NEWS: Mention that support for "target m32rsdi", "target mips",
491 "target pmon", "target ddb", "target rockhopper", and "target lsi"
492 was removed.
493 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
494 remote-mips.o.
495 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
496 * configure.tgt: Remove all references to remote-m32r-sdi.o and
497 remote-mips.o.
498 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
499 function.
500 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
501 declaration.
502 * remote-m32r-sdi.c, remote-mips.c: Delete files.
503 * symfile.c (generic_load, generic_load): Remove comments.
504
505 2016-03-30 Yao Qi <yao.qi@linaro.org>
506
507 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
508 0 rather than NULL.
509
510 2016-03-30 Yao Qi <yao.qi@linaro.org>
511
512 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
513 (arm_epilogue_frame_this_id): New function.
514 (arm_epilogue_frame_prev_register): New function.
515 (arm_epilogue_frame_sniffer): New function.
516 (arm_epilogue_frame_unwind): New.
517 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
518
519 2016-03-30 Yao Qi <yao.qi@linaro.org>
520
521 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
522 (arm_stack_frame_destroyed_p_1): ... here. Don't call
523 arm_pc_is_thumb.
524 (arm_stack_frame_destroyed_p): Call
525 thumb_stack_frame_destroyed_p and
526 arm_stack_frame_destroyed_p_1.
527
528 2016-03-30 Doug Evans <dje@google.com>
529
530 * python/py-utils.c (host_string_to_python_string): New function.
531 * python/python-internal.h (host_string_to_python_string): Declare it.
532 * python/py-*.c (*): Update all calls to
533 PyString_Decode (str, strlen (str), host_charset (), NULL);
534 to use host_string_to_python_string instead.
535
536 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
537
538 * remote.c (remote_check_symbols): Allocate own buffer for reply.
539
540 2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
541
542 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
543 Use safe_read_memory_integer instead of read_memory_integer.
544
545 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
546
547 * NEWS: Mention support for tracepoints on s390*-linux.
548
549 2016-03-29 Don Breazeal <donb@codesourcery.com>
550
551 * gdb/value.c (value_actual_type): Fix formatting issue.
552
553 2016-03-23 Yao Qi <yao.qi@linaro.org>
554
555 * gdbarch.sh (software_single_step): Remove comments.
556 * gdbarch.h: Regenerated.
557
558 2016-03-21 Yao Qi <yao.qi@linaro.org>
559
560 * arm-tdep.c (arm_record_media): New.
561 (arm_record_ld_st_reg_offset): Call arm_record_media.
562
563 2016-03-21 Yao Qi <yao.qi@linaro.org>
564
565 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
566 more syscalls.
567
568 2016-03-18 Yao Qi <yao.qi@linaro.org>
569
570 * sparc-tdep.c (sparc_software_single_step): Make it static.
571 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
572
573 2016-03-18 Yao Qi <yao.qi@linaro.org>
574
575 * spu-tdep.c (spu_software_single_step): Throw error when
576 target_read_memory fails.
577
578 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
579
580 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
581
582 2016-03-17 Pedro Alves <palves@redhat.com>
583 Don Breazeal <donb@codesourcery.com>
584
585 PR remote/19496
586 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
587 instead of checking the 'non_stop' global.
588 * remote.c (remote_add_thread): New parameter 'executing'. Use it
589 to set the new thread's executing state.
590 (remote_notice_new_inferior): Rename parameter 'running' to
591 'executing'. Always set the thread state to THREAD_RUNNING in
592 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
593 EXECUTING to remote_add_thread and notice_new_inferior.
594 (remote_update_thread_list): Update to pass executing state, not
595 running state.
596
597 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
598
599 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
600 to 374.
601 * syscalls/s390x-linux.xml: Likewise.
602
603 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
604
605 * linux-record.c (record_mem_at_reg): New helper function.
606 (record_linux_system_call): Exploit new helper function where
607 applicable.
608
609 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
610
611 * linux-record.c: Fix whitespace issues; tabify, remove trailing
612 spaces.
613
614 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
615
616 * linux-record.c (record_linux_system_call): Add missing return
617 statements to handling of pipe and pipe2 syscalls.
618
619 2016-03-16 Doug Evans <dje@google.com>
620
621 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
622
623 2016-03-16 Yao Qi <yao.qi@linaro.org>
624
625 * arm-linux-tdep.c (arm_linux_init_abi): Fix
626 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
627 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
628 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
629 arm_linux_record_tdep.arg7.
630
631 2016-03-15 Keith Seitz <keiths@redhat.com>
632
633 PR breakpoints/18303
634 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
635 look for "::" instead of simply ":".
636 (cp_search_static_and_baseclasses): Return null_block_symbol for
637 malformed input.
638 Remove assertions.
639 * cp-support.c (cp_find_first_component_aux): Do not return
640 a prefix length for ':' unless the next character is also ':'.
641
642 2016-03-15 Doug Evans <dje@google.com>
643
644 * features/aarch64-core.xml (cpsr_flags): New flags type.
645 (cpsr): Use it.
646 * features/aarch64.c: Regenerate.
647
648 2016-03-15 Doug Evans <dje@google.com>
649
650 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
651 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
652 * features/i386/64bit-core.xml (i386_eflags): Ditto.
653 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
654 * features/i386/x32-core.xml (i386_eflags): Ditto.
655
656 2016-03-15 Doug Evans <dje@google.com>
657 Wei-cheng Wang <cole945@gmail.com>
658
659 Extend flags to support multibit and enum bitfields.
660 * NEWS: Document new features.
661 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
662 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
663 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
664 (append_flags_type_field): New function.
665 (append_flags_type_flag): Call it.
666 * gdbtypes.h (append_flags_type_field): Declare.
667 * target-descriptions.c (struct tdesc_type_flag): Delete.
668 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
669 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
670 (struct tdesc_type) <u.f>: Delete.
671 (tdesc_predefined_types): Add "bool".
672 (tdesc_predefined_type): New function.
673 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
674 Update TDESC_TYPE_FLAGS support.
675 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
676 (tdesc_create_flags): Update.
677 (tdesc_create_enum): New function.
678 (tdesc_add_field): Initialize start,end to -1.
679 (tdesc_add_typed_bitfield): New function.
680 (tdesc_add_bitfield): Call it.
681 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
682 (tdesc_add_enum_value): New function.
683 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
684 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
685 * target-descriptions.h (tdesc_create_enum): Declare.
686 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
687 * valprint.c (generic_val_print_enum_1): New function.
688 (generic_val_print_enum): Call it.
689 (val_print_type_code_flags): Make static. Handle multibit bitfields
690 and enum bitfields.
691 * valprint.h (val_print_type_code_flags): Delete.
692 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
693 Delete. All uses removed.
694 (tdesc_start_enum): New function.
695 (tdesc_start_field): Handle multibit and enum bitfields.
696 (tdesc_start_enum_value): New function.
697 (enum_value_attributes, enum_children, enum_attributes): New static
698 globals.
699 (feature_children): Add "enum".
700 * features/gdb-target.dtd (enum, evalue): New elements.
701
702 2016-03-15 Doug Evans <dje@google.com>
703
704 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
705 from LONGEST to int.
706 (struct tdesc_type) <u.f.size>: Ditto.
707 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
708 to int. Add assertion size > 0.
709 (tdesc_create_flags): Ditto.
710 * target-descriptions.h (tdesc_set_struct_size): Update.
711 (tdesc_create_flags): Update.
712 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
713 (MAX_VECTOR_SIZE): New macro.
714 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
715 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
716
717 2016-03-15 Doug Evans <dje@google.com>
718
719 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
720 TYPE_CODE_FLAGS instead of "field_type", for consistency.
721 * features/i386/amd64-avx-linux.c: Regenerate.
722 * features/i386/amd64-avx.c: Regenerate.
723 * features/i386/amd64-avx512-linux.c: Regenerate.
724 * features/i386/amd64-avx512.c: Regenerate.
725 * features/i386/amd64-linux.c: Regenerate.
726 * features/i386/amd64-mpx-linux.c: Regenerate.
727 * features/i386/amd64-mpx.c: Regenerate.
728 * features/i386/amd64.c: Regenerate.
729 * features/i386/i386-avx-linux.c: Regenerate.
730 * features/i386/i386-avx.c: Regenerate.
731 * features/i386/i386-avx512-linux.c: Regenerate.
732 * features/i386/i386-avx512.c: Regenerate.
733 * features/i386/i386-linux.c: Regenerate.
734 * features/i386/i386-mmx-linux.c: Regenerate.
735 * features/i386/i386-mmx.c: Regenerate.
736 * features/i386/i386-mpx-linux.c: Regenerate.
737 * features/i386/i386-mpx.c: Regenerate.
738 * features/i386/i386.c: Regenerate.
739 * features/i386/x32-avx-linux.c: Regenerate.
740 * features/i386/x32-avx.c: Regenerate.
741 * features/i386/x32-avx512-linux.c: Regenerate.
742 * features/i386/x32-avx512.c: Regenerate.
743 * features/i386/x32-linux.c: Regenerate.
744 * features/i386/x32.c: Regenerate.
745
746 2016-03-15 Pedro Alves <palves@redhat.com>
747
748 PR gdb/19676
749 * linux-thread-db.c (try_thread_db_load_1): Leave
750 info->td_ta_thr_iter_p NULL iff debugging a live process and we
751 have /proc access.
752 (find_new_threads_once): Assert that we have a non-NULL
753 info->td_ta_thr_iter_p instead of checking whether the target has
754 execution.
755
756 2016-03-15 Pedro Alves <palves@redhat.com>
757
758 PR gdb/19676
759 * infrun.c (displaced_step_prepare): Also disable displaced
760 stepping on NOT_SUPPORTED_ERROR.
761 * linux-tdep.c (linux_displaced_step_location): If reading auxv
762 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
763
764 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
765
766 * s390-linux-tdep.c (s390_gen_return_address): New function.
767 (s390_gdbarch_init): Fill gen_return_address hook.
768
769 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * symmisc.c (maintenance_info_line_tables): New function.
772 (maintenance_print_one_line_table): New function.
773 (_initialize_symmisc): Register 'maint info line-table' command.
774 * NEWS: Mention new command.
775
776 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
777
778 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
779 (s390_ax_pseudo_register_push_stack): New function.
780 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
781 ax_pseudo_register_push_stack hooks.
782
783 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
784
785 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
786 gdb/function/as_string.py.
787 * python/lib/gdb/function/as_string.py: New file.
788 * NEWS: Mention the new $_as_string function.
789
790 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
791
792 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
793
794 2016-03-09 Pedro Alves <palves@redhat.com>
795
796 * event-top.c (more_to_come): Delete.
797 (struct readline_input_state): Delete.
798 (readline_input_state): Delete.
799 (get_command_line_buffer): New function.
800 (command_handler): Update comments. Don't handle NULL commands
801 here. Do not execute commented lines.
802 (command_line_append_input_line): New function.
803 (handle_line_of_input): New function, partly based on
804 command_line_handler and command_line_input.
805 (command_line_handler): Rewrite.
806 * event-top.h (command_handler): New declaration.
807 (command_loop): Defer command execution to command_handler.
808 (command_line_input): Update comments. Simplify, using struct
809 buffer and handle_line_of_input.
810 * top.h (struct buffer): New forward declaration.
811 (handle_line_of_input): New declaration.
812
813 2016-03-09 Pedro Alves <palves@redhat.com>
814
815 * event-top.c (command_line_handler): Use xfree + xstrdup instead
816 of xrealloc + strcpy.
817 * main.c (captured_main): Use xstrdup instead of xmalloc plus
818 manual clear.
819 * top.c (saved_command_line): Rewrite comment.
820 (saved_command_line_size): Delete.
821 (command_line_input): Use xfree + xstrdup instead of xrealloc +
822 strcpy.
823 * top.h (saved_command_line_size): Delete declaration.
824
825 2016-03-09 Pedro Alves <palves@redhat.com>
826
827 * event-top.c: Include buffer.h.
828 (gdb_readline_no_editing_callback): Use struct buffer instead
829 of xrealloc.
830
831 2016-03-09 Pedro Alves <palves@redhat.com>
832
833 * common/buffer.h (buffer_grow_char): New function.
834 * top.c: Include buffer.h.
835 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
836 'prompt'. Use struct buffer instead of xrealloc.
837
838 2016-03-09 Pedro Alves <palves@redhat.com>
839
840 * defs.h (gdb_readline): Delete declaration.
841 * top.c (gdb_readline): Rename to ...
842 (gdb_readline_no_editing): ... this, and make static.
843
844 2016-03-09 Pedro Alves <palves@redhat.com>
845
846 * utils.c (prompt_for_continue): Update comments.
847
848 2016-03-09 Pedro Alves <palves@redhat.com>
849
850 * event-top.c (async_annotation_suffix): Delete.
851 (top_level_prompt, command_line_handler): Don't use
852 'async_annotation_suffix' and simplify.
853 * event-top.h (async_annotation_suffix): Delete declaration.
854 (init_main): Remove reference to 'async_annotation_suffix'.
855
856 2016-03-09 Pedro Alves <palves@redhat.com>
857
858 * event-top.c (gdb_readline2): Rename to ...
859 (gdb_readline_no_editing_callback): ... this.
860 (change_line_handler, stdin_event_handler)
861 (gdb_setup_readline): Adjust.
862 * event-top.h (gdb_readline2): Rename to ...
863 (gdb_readline_no_editing_callback): ... this, and move closer to
864 other readline-related declarations.
865 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
866
867 2016-03-09 Pedro Alves <palves@redhat.com>
868
869 * top.c (window_hook): Delete.
870 (command_loop): Remove references to window_hook.
871
872 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
873
874 * corefile.c (safe_read_memory_unsigned_integer): New function.
875 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
876 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
877
878 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
879
880 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
881 (rs6000_gen_return_address): New function.
882 (rs6000_gdbarch_init): Wire in the above.
883
884 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
885
886 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
887 (rs6000_gdbarch_init): Wire in the above.
888
889 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
890
891 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
892 instructions that do nothing or are conditional traps.
893
894 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
895
896 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
897 frame func's PC in info->func before any other failure can occur.
898 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
899 info->func has been filled out.
900
901 2016-03-09 Pedro Alves <palves@redhat.com>
902
903 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
904
905 2016-03-09 Pedro Alves <palves@redhat.com>
906
907 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
908
909 2016-03-09 Pedro Alves <palves@redhat.com>
910
911 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
912 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
913
914 2016-03-09 Pedro Alves <palves@redhat.com>
915
916 * doublest.c: Extend comments.
917 (floatformat_to_doublest, floatformat_from_doublest): Copy the
918 floatformat's total size, not the host type's size.
919
920 2016-03-09 Pedro Alves <palves@redhat.com>
921
922 * doublest.c (floatformat_totalsize_bytes): New function.
923 (floatformat_from_type): Assert that the type's length is at least
924 as long as the floatformat's totalsize.
925 * doublest.h (floatformat_totalsize_bytes): New declaration.
926 * gdbtypes.c (arch_float_type): Assert that the type's length is
927 at least as long as the floatformat's totalsize.
928
929 2016-03-09 Pedro Alves <palves@redhat.com>
930
931 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
932 format to floatformats_ieee_double.
933
934 2016-03-07 Pedro Alves <palves@redhat.com>
935
936 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
937 before calling bfd_get_flavour.
938
939 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
940
941 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
942 (avr_push_dummy_call): Correct last needed argument register.
943 Write MSB of argument into register and subsequent bytes into
944 other registers in decreasing order.
945
946 2016-03-04 Yao Qi <yao.qi@linaro.org>
947
948 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
949 condition check. Record the right D register number.
950
951 2016-03-04 Yao Qi <yao.qi@linaro.org>
952
953 * arm-tdep.c (arm_record_extension_space): Remove code
954 printing "Process record does not support".
955 (arm_record_data_proc_misc_ld_str): Likewise.
956 (decode_insn): Call arm_record_extension_space if condition
957 is 0xf. Call arm_record_unsupported_insn if ret isn't
958 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
959 the value of thumb2_record_decode_insn_handler.
960
961 2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
962
963 * features/feature_to_c.sh: Print the help when passing no
964 argument.
965
966 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
967
968 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
969
970 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
971
972 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
973
974 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
975
976 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
977 exception when attempting to access the inferior's backchain.
978
979 2016-02-29 Yao Qi <yao.qi@linaro.org>
980
981 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
982 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
983 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
984 for aarch64_sys_epoll_create1.
985
986 2016-02-29 Yao Qi <yao.qi@linaro.org>
987
988 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
989 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
990 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
991 * linux-record.c (record_linux_system_call): Handle them.
992
993 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
994
995 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
996 cyclic imports.
997
998 2016-02-26 Keith Seitz <keiths@redhat.com>
999
1000 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
1001 to avoid invalid conversion from void *.
1002
1003 2016-02-26 Yao Qi <yao.qi@linaro.org>
1004
1005 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
1006 per bit 8. Check bit 20 instead of bit 4 for VMOV
1007 instruction. Record D registers for instructions changing
1008 S registers. Change of the order of length and address
1009 in record_buf_mem array.
1010
1011 2016-02-26 Yao Qi <yao.qi@linaro.org>
1012
1013 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
1014 number of Rd.
1015
1016 2016-02-25 Doug Evans <dje@google.com>
1017
1018 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
1019 compiler warning.
1020 (recv_long_data): Ditto.
1021
1022 2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
1023
1024 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
1025 Initialize variables.
1026
1027 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
1028
1029 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
1030 (ax_reg_mask): Likewise.
1031
1032 2016-02-24 Pedro Alves <palves@redhat.com>
1033
1034 * linux-nat.c (save_sigtrap) Delete.
1035 (stop_wait_callback): Call save_stop_reason instead of
1036 save_sigtrap.
1037 (check_stopped_by_breakpoint): Rename to ...
1038 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
1039 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
1040 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
1041 common code between the USE_SIGTRAP_SIGINFO and
1042 !USE_SIGTRAP_SIGINFO blocks.
1043 (linux_nat_filter_event): Call save_stop_reason instead of
1044 save_sigtrap.
1045 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
1046 si_code for MIPS.
1047 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
1048 comments on MIPS behavior.
1049 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
1050
1051 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
1052
1053 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
1054 to avoid spurious warnings.
1055
1056 2016-02-24 Gary Benson <gbenson@redhat.com>
1057
1058 * exec.c (exec_file_locate_attach): Do not attempt to
1059 locate main executable locally if not found in sysroot.
1060
1061 2016-02-24 Joel Brobecker <brobecker@adacore.com>
1062
1063 GDB 7.11 released.
1064
1065 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
1066
1067 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
1068 unavailable PC/SP to build unavailable frame.
1069
1070 2016-02-23 Doug Evans <dje@google.com>
1071
1072 Extend "skip" command to support -file, -gfile, -function, -rfunction.
1073 * NEWS: Document new features.
1074 * skip.c: #include "fnmatch.h", "gdb_regex.h".
1075 (skiplist_entry) <file>: Renamed from filename.
1076 <function>: Renamed from function_name.
1077 <file_is_glob, function_is_regexp>: New members.
1078 <compiled_function_regexp, compiled_function_regexp_is_valid>:
1079 New members.
1080 (make_skip_entry): New function.
1081 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
1082 (make_free_skiplist_entry_cleanup): New function.
1083 (skip_file_command): Update.
1084 (skip_function, skip_function_command): Update.
1085 (compile_skip_regexp): New functions.
1086 (skip_command): Add support for new options.
1087 (skip_info): Update.
1088 (skip_file_p, skip_gfile_p): New functions.
1089 (skip_function_p, skip_rfunction_p): New functions.
1090 (function_name_is_marked_for_skip): Update and simplify.
1091 (_initialize_step_skip): Update.
1092 * symtab.c: #include "fnmatch.h".
1093 (compare_glob_filenames_for_search): New function.
1094 * symtab.h (compare_glob_filenames_for_search): Declare.
1095 * utils.c (count_path_elements): New function.
1096 (strip_leading_path_elements): New function.
1097 * utils.h (count_path_elements): Declare.
1098 (strip_leading_path_elements): Declare.
1099
1100 2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
1101
1102 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
1103 (thumb_process_displaced_insn): Likewise.
1104 (arm_process_displaced_insn): Adjust calls.
1105
1106 2016-02-23 Yao Qi <yao.qi@linaro.org>
1107
1108 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
1109 Remove.
1110 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
1111 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
1112 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
1113 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
1114 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
1115 <aarch64_sys_faccessat>: New.
1116 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
1117 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
1118 <aarch64_sys_newfstatat>: New.
1119 (UNSUPPORTED_SYSCALL_MAP): New macro.
1120 (aarch64_canonicalize_syscall): Add missing syscalls.
1121
1122 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1123
1124 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
1125
1126 2016-02-22 Yao Qi <yao.qi@linaro.org>
1127
1128 * arm-tdep.c: Fix code format issues.
1129
1130 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
1131
1132 * d-namespace.c (d_lookup_symbol_imports): Remove argument
1133 'search_parents'. All callers updated.
1134
1135 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
1136
1137 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
1138 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
1139
1140 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
1141
1142 * NEWS: Add entry for bound violation.
1143 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
1144 Add handler for segmentation fault.
1145 * gdbarch.sh (handle_segmentation_fault): New.
1146 * gdbarch.c: Regenerate.
1147 * gdbarch.h: Regenerate.
1148 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
1149 (SIG_CODE_BONDARY_FAULT): New define.
1150 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
1151 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
1152 * i386-tdep.c (i386_mpx_enabled): Add as external.
1153 * i386-tdep.c (i386_mpx_enabled): Add as external.
1154 * infrun.c (handle_segmentation_fault): New function.
1155 (print_signal_received_reason): Use handle_segmentation_fault.
1156
1157 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
1158
1159 * arch-utils.c (default_guess_tracepoint_registers): New function.
1160 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
1161 * gdbarch.c: Regenerate.
1162 * gdbarch.h: Regenerate.
1163 * gdbarch.sh: Add guess_tracepoint_registers hook.
1164 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
1165
1166 2016-02-17 Gary Benson <gbenson@redhat.com>
1167
1168 * exec.c (exec_file_locate_attach): Add missing cleanup.
1169
1170 2016-02-16 Don Breazeal <donb@codesourcery.com>
1171
1172 PR remote/19496
1173 * remote.c (remove_new_fork_children): Check for pending
1174 fork status in thread_info.suspend.
1175
1176 2016-02-16 Yao Qi <yao.qi@linaro.org>
1177
1178 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
1179 'old_chain' later.
1180
1181 2016-02-16 Yao Qi <yao.qi@linaro.org>
1182
1183 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
1184 <syscall_next_pc>: Remove argument PC. Callers updated.
1185 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
1186 Remove argument PC. Get pc from regcache_read_pc.
1187 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
1188 argument PC.
1189
1190 2016-02-15 Yao Qi <yao.qi@linaro.org>
1191
1192 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
1193
1194 2016-02-12 Yao Qi <yao.qi@linaro.org>
1195
1196 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
1197 nextpc according to instruction.
1198
1199 2016-02-12 Yao Qi <yao.qi@linaro.org>
1200
1201 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
1202 self->ops->fixup if it isn't NULL.
1203 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
1204 (struct arm_get_next_pcs_ops) <fixup>: New field.
1205 * arch/arm-linux.c: Include common-regcache.h and
1206 arch/arm-get-next-pcs.h.
1207 (arm_linux_get_next_pcs_fixup): New function.
1208 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
1209 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
1210 it with arm_linux_get_next_pcs_fixup.
1211 (arm_linux_software_single_step): Move code to
1212 arm_linux_get_next_pcs_fixup.
1213 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
1214
1215 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
1216
1217 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
1218 and return NULL.
1219
1220 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
1221
1222 * frame.h (skip_tailcall_frames): Update comment.
1223 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
1224 if only artificial frames are found. Update comment.
1225 (frame_unwind_caller_id): Handle NULL return.
1226 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
1227 skip_artificial_frames does not return NULL.
1228 (frame_pop): Add an error if only tailcall frames are found.
1229 * infcmd.c (finish_command): Move skip_tailcall_frames call into
1230 forward-execution case. Add an error if only tailcall frames are
1231 found.
1232
1233 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
1234
1235 * stack.c (frame_info): Check frame_unwind_caller_id.
1236
1237 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
1238
1239 * frame.h (skip_tailcall_frames): New.
1240 * frame.c (skip_tailcall_frames): New.
1241 (frame_pop): Call skip_tailcall_frames.
1242 * infcmd.c (finish_command): Call skip_tailcall_frames.
1243
1244 2016-02-11 Pedro Alves <palves@redhat.com>
1245
1246 * Makefile.in (check-parallel): New rule.
1247
1248 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
1249
1250 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
1251 (arm_analyze_prologue): Likewise.
1252 (arm_scan_prologue): Likewise.
1253 (arm_m_exception_prev_register): Likewise.
1254 (arm_copy_block_xfer): Likewise.
1255 (thumb2_copy_block_xfer): Likewise.
1256 (arm_decode_miscellaneous): Likewise.
1257 (arm_decode_ld_st_word_ubyte): Likewise.
1258 (arm_decode_svc_copro): Likewise.
1259 (thumb2_decode_svc_copro): Likewise.
1260 (thumb_copy_16bit_ldr_literal): Likewise.
1261 (thumb_copy_pop_pc_16bit): Likewise.
1262 (decode_thumb_32bit_ld_mem_hints): Likewise.
1263 (arm_show_force_mode): Likewise.
1264 (_initialize_arm_tdep): Likewise.
1265 (arm_record_strx): Likewise.
1266 (arm_record_extension_space): Likewise.
1267 (arm_record_data_proc_misc_ld_str): Likewise.
1268 (arm_record_exreg_ld_st_insn): Likewise.
1269 (arm_record_vfp_data_proc_insn): Likewise.
1270 (arm_record_coproc_data_proc): Likewise.
1271 (thumb_record_misc): Likewise.
1272 (thumb_record_ldm_stm_swi): Likewise.
1273 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
1274 (thumb2_record_ld_mem_hints): Likewise.
1275 (thumb2_record_lmul_lmla_div): Likewise.
1276 (thumb2_record_asimd_struct_ld_st): Likewise.
1277 (arm_process_record): Likewise.
1278
1279 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
1280
1281 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
1282 (ARM displaced stepping support): Remove reference to
1283 arm_displaced_step_copy_insn in comment.
1284 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
1285 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
1286 reference to arm_displaced_step_copy_insn in comment.
1287
1288 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
1289
1290 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
1291 (thumb_copy_b): Likewise.
1292 (arm_decode_b_bl_ldmstm): Likewise.
1293 (thumb_copy_16bit_ldr_literal): Likewise.
1294 (thumb_copy_pop_pc_16bit): Likewise.
1295
1296 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
1297
1298 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
1299 than loc->gdbarch.
1300
1301 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1302
1303 * tracefile-tfile.c (trace_tdesc): New static variable.
1304 (tfile_open): Clear trace_tdesc, call target_find_description.
1305 (tfile_interp_line): Recognize tdesc lines.
1306 (tfile_close): Clear trace_tdesc.
1307 (tfile_xfer_partial_features): New function.
1308 (tfile_xfer_partial): Call tfile_xfer_partial_features.
1309 (tfile_append_tdesc_line): New function.
1310
1311 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1312
1313 * ctf.c (ctf_write_tdesc): New function.
1314 (ctf_write_ops): Wire in ctf_write_tdesc.
1315 * tracefile-tfile.c (tfile_write_tdesc): New function.
1316 (tfile_write_ops): Wire in tfile_write_tdesc.
1317 * tracefile.c (trace_save): Call write_tdesc method.
1318 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
1319 * xml-tdesc.c (target_fetch_description_xml): New function.
1320 * xml-tdesc.h: Add target_fetch_description_xml prototype.
1321
1322 2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
1323
1324 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
1325 (arm_decode_dp_misc): Likewise.
1326
1327 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1328
1329 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
1330 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
1331 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
1332 misleading comment.
1333 (i386_pseudo_register_write): Ditto.
1334 (i386_ax_pseudo_register_collect): New function.
1335 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
1336 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
1337
1338 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1339
1340 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
1341 instead of gdb order.
1342
1343 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1344
1345 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
1346 check.
1347
1348 2016-02-10 Joel Brobecker <brobecker@adacore.com>
1349
1350 * NEWS: Create a new section for the next release branch.
1351 Rename the section of the current branch, now that it has
1352 been cut.
1353
1354 2016-02-10 Joel Brobecker <brobecker@adacore.com>
1355
1356 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
1357 * version.in: Bump version to 7.11.50.DATE-git.
1358
1359 2016-02-09 Keith Seitz <keiths@redhat.com>
1360
1361 PR breakpoints/19546
1362 * breakpoint.c (breakpoint_event_location_empty_p): New function.
1363 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
1364 instead of event_location_empty_p.
1365
1366 2016-02-09 Keith Seitz <keiths@redhat.com>
1367
1368 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
1369 string_to_event_location_basic instead of string_to_event_location.
1370
1371 2016-02-09 Keith Seitz <keiths@redhat.com>
1372
1373 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
1374 leading whitespace and use string_to_event_location_basic instead
1375 of new_linespec_location.
1376
1377 2016-02-09 Keith Seitz <keiths@redhat.com>
1378
1379 PR python/19506
1380 * python/py-breakpoint.c (bppy_init): Use
1381 string_to_event_location_basic instead of new_linespec_location.
1382
1383 2016-02-09 Keith Seitz <keiths@redhat.com>
1384
1385 * location.c (string_to_explicit_location): Note that "-p" is
1386 reserved for probe locations and return NULL for any input
1387 that starts with that.
1388 (string_to_event_location): Move "legacy" linespec code to ...
1389 (string_to_event_location_basic): ... here.
1390 * location.h (string_to_event_location): Update comment.
1391 (string_to_event_location_basic): New function.
1392
1393 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
1394
1395 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
1396 to AC_OUTPUT. Remove "exit 0" at the end.
1397 * configure: Regenerate.
1398
1399 2016-02-09 Pedro Alves <palves@redhat.com>
1400
1401 PR breakpoints/19548
1402 * breakpoint.c (create_overlay_event_breakpoint): Don't update
1403 global location list here.
1404 (create_longjmp_master_breakpoint)
1405 (create_std_terminate_master_breakpoint)
1406 (create_exception_master_breakpoint, create_jit_event_breakpoint)
1407 (update_breakpoint_locations):
1408 (breakpoint_re_set): Update global location list after all
1409 breakpoints are re-set.
1410
1411 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
1412
1413 * remote.c (remote_register_number_and_offset): Remove unused
1414 variable(s).
1415 (remote_thread_always_alive): Likewise.
1416 (remote_update_thread_list): Likewise.
1417 (process_initial_stop_replies): Likewise.
1418 (remote_start_remote): Likewise.
1419 (remote_check_symbols): Likewise.
1420 (discard_pending_stop_replies): Likewise.
1421 (process_stop_reply): Likewise.
1422 (putpkt_binary): Likewise.
1423 (getpkt): Likewise.
1424 (remote_add_target_side_condition): Likewise.
1425 (remote_insert_breakpoint): Likewise.
1426 (remote_supports_stopped_by_sw_breakpoint): Likewise.
1427 (remote_supports_stopped_by_hw_breakpoint): Likewise.
1428 (remote_xfer_partial): Likewise.
1429 (remote_read_btrace): Likewise.
1430 (remote_async_serial_handler): Likewise.
1431 (remote_thread_events): Likewise.
1432 (_initialize_remote): Likewise.
1433
1434 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
1435
1436 * varobj.h (varobj_delete): Remove dellist parameter, update and
1437 move documentation here.
1438 * varobj.c (struct cpstack, cppush, cppop): Remove.
1439 (delete_variable): Remove resultp (first) parameter.
1440 (delete_variable_1): Likewise.
1441 (varobj_delete): Remove dellist parameter and unused code.
1442 (update_dynamic_varobj_children): Adjust varobj_delete call.
1443 (update_type_if_necessary): Likewise.
1444 (varobj_set_visualizer): Likewise.
1445 (varobj_update): Likewise.
1446 (value_of_root): Likewise.
1447 (varobj_invalidate_iter): Likewise.
1448 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
1449
1450 2016-02-04 Yao Qi <yao.qi@linaro.org>
1451
1452 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
1453 0 before handling 'F' and set it back afterwards.
1454
1455 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
1456
1457 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
1458
1459 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1460
1461 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
1462 New types.
1463 (compat_siginfo): New bound fields added.
1464 (compat_x32_siginfo): New field added.
1465 (cpt_si_addr_lsb): New define.
1466 (compat_siginfo_from_siginfo): Use nat_siginfo.
1467 (siginfo_from_compat_siginfo): Use nat_siginfo.
1468 (compat_x32_siginfo_from_siginfo): Likewise.
1469 (siginfo_from_compat_x32_siginfo): Likewise.
1470
1471 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1472
1473 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
1474 structure to the siginfo if extra_fields contains
1475 LINUX_SIGINFO_FIELD_ADDR_BND.
1476
1477 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1478
1479 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
1480 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
1481 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
1482 function.
1483 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
1484 x86_linux_get_siginfo_type for the amd64 abi.
1485 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
1486 function.
1487 (i386_linux_init_abi): Add new function at the i386 ABI
1488 initialization.
1489
1490 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1491
1492 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
1493 (linux_siginfo_extra_fields): New enum type.
1494 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
1495 (linux_get_siginfo_type): Use new function.
1496
1497 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1498
1499 * nat/amd64-linux-siginfo.c: New file.
1500 * nat/amd64-linux-siginfo.h: New file.
1501 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
1502 (amd64-linux-siginfo.o): New rule.
1503 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
1504 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
1505 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
1506 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
1507 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
1508 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
1509 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
1510 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
1511
1512 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1513
1514 * value.c (max_value_size): New variable.
1515 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
1516 (set_max_value_size): New function.
1517 (show_max_value_size): New function.
1518 (check_type_length_before_alloc): New function.
1519 (allocate_value_contents): Call check_type_length_before_alloc.
1520 (set_value_enclosing_type): Likewise.
1521 (_initialize_values): Add set/show handler for max-value-size.
1522 * NEWS: Mention new set/show command.
1523
1524 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
1525
1526 * varobj.h (struct varobj): Fix typos in comments.
1527 (struct lang_varobj_ops): Likewise.
1528 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
1529 (varobj_create): Move misplaced comment.
1530
1531 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
1532
1533 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
1534 to for include additional lines.
1535 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
1536
1537 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
1538
1539 * gnulib/import/Makefile.am: Regenerate.
1540 * gnulib/import/Makefile.in: Regenerate.
1541 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1542 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
1543
1544 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
1545
1546 * remote.c (skip_to_semicolon): Remove.
1547 (remote_parse_stop_reply): Use strchrnul instead of
1548 skip_to_semicolon.
1549 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1550 strchrnul.
1551 * gnulib/aclocal.m4: Regenerate.
1552 * gnulib/config.in: Regenerate.
1553 * gnulib/configure: Regenerate.
1554 * gnulib/import/Makefile.am: Regenerate.
1555 * gnulib/import/Makefile.in: Regenerate.
1556 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1557 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1558 * gnulib/import/m4/rawmemchr.m4: New file.
1559 * gnulib/import/m4/strchrnul.m4: New file.
1560 * gnulib/import/rawmemchr.c: New file.
1561 * gnulib/import/rawmemchr.valgrind: New file.
1562 * gnulib/import/strchrnul.c: New file.
1563 * gnulib/import/strchrnul.valgrind: New file.
1564
1565 2016-01-28 Yao Qi <yao.qi@linaro.org>
1566
1567 * breakpoint.c (build_target_command_list): Don't call continue
1568 if aexpr is NULL.
1569 (build_target_condition_list): Likewise.
1570
1571 2016-01-27 Kevin Buettner <kevinb@redhat.com>
1572
1573 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
1574 bytes as aggregates.
1575
1576 2016-01-27 Joel Brobecker <brobecker@adacore.com>
1577
1578 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
1579 Linespec Maintainers.
1580
1581 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
1582
1583 * common/common-utils.c (skip_spaces): Fix comment.
1584 (skip_to_space_const): Likewise.
1585
1586 2016-01-25 Yao Qi <yao.qi@linaro.org>
1587
1588 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
1589 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
1590 (arm_deal_with_atomic_sequence_raw): Likewise.
1591 (thumb_get_next_pcs_raw): Likewise.
1592 (arm_get_next_pcs_raw): Likewise.
1593 (arm_get_next_pcs): Remove argument pc. Callers updated.
1594 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
1595
1596 2016-01-25 Mark Wielaard <mjw@redhat.com>
1597
1598 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
1599 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
1600 if statement.
1601 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
1602 statement block by introducing an else.
1603 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
1604 of return statements.
1605 (record_linux_msghdr): Likewise.
1606
1607 2016-01-25 Pedro Alves <palves@redhat.com>
1608
1609 PR threads/19461
1610 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
1611 parent/child running states.
1612
1613 2016-01-25 Pedro Alves <palves@redhat.com>
1614
1615 PR gdb/19494
1616 * linux-nat.c (kill_one_lwp): New, factored out from ...
1617 (kill_callback): ... this.
1618 (kill_wait_callback): New, factored out from ...
1619 (kill_wait_one_lwp): ... this.
1620 (kill_unfollowed_fork_children): New function.
1621 (linux_nat_kill): Use it.
1622
1623 2016-01-22 John Baldwin <jhb@FreeBSD.org>
1624
1625 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
1626
1627 2016-01-22 Yao Qi <yao.qi@linaro.org>
1628
1629 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
1630 instead of warning.
1631 (store_fpregs, fetch_regs, store_regs): Likewise.
1632 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
1633 (fetch_vfp_regs, store_vfp_regs): Likewise.
1634
1635 2016-01-21 Doug Evans <dje@google.com>
1636
1637 * breakpoint.c (init_breakpoint_sal): Add comment.
1638
1639 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
1640
1641 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
1642
1643 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1644
1645 * disasm.c (maybe_add_dis_line_entry): Rename to...
1646 (add_dis_line_entry): ...this, and update header comment.
1647 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
1648
1649 2016-01-21 Pedro Alves <palves@redhat.com>
1650
1651 * Makefile.in (COMPILER_CFLAGS): New.
1652 (CXXFLAGS): Get it from configure.
1653 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
1654 instead of CFLAGS.
1655 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
1656 COMPILER_CFLAGS.
1657 * configure: Regenerate.
1658
1659 2016-01-21 Joel Brobecker <brobecker@adacore.com>
1660
1661 * location.h (new_address_location): Add new parameters
1662 "addr_string" and "addr_string_len".
1663 (get_address_string_location): Add declaration.
1664 * location.c (new_address_location): Add new parameters
1665 "addr_string" and "addr_string_len". If not NULL, store
1666 a copy of the addr_string in the new location as well.
1667 (get_address_string_location): New function.
1668 (string_to_event_location): Update call to new_address_location.
1669 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
1670 Save the event location in the parser's state before
1671 passing it to convert_address_location_to_sals.
1672 * breakpoint.c (create_thread_event_breakpoint): Update call
1673 to new_address_location.
1674 (init_breakpoint_sal): Get the event location's string, if any,
1675 and use it to update call to new_address_location.
1676 * python/py-finishbreakpoint.c (bpfinishpy_init):
1677 Update call to new_address_location.
1678 * spu-tdep.c (spu_catch_start): Likewise.
1679
1680 * config/djgpp/fnchange.lst: Add entries for
1681 gdb/testsuite/gdb.base/break-fun-addr1.c and
1682 gdb/testsuite/gdb.base/break-fun-addr2.c.
1683
1684 2016-01-21 Yao Qi <yao.qi@linaro.org>
1685
1686 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
1687 is_thumb and set it according to CPSR saved on the stack.
1688 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
1689 arm_linux_sigreturn_next_pc.
1690
1691 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1692
1693 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
1694 Fix enumerators sort key function.
1695
1696 2016-01-20 Joel Brobecker <brobecker@adacore.com>
1697
1698 * printcmd.c (print_scalar_formatted): Move binary operator from
1699 end of line to beginning of next line. Adjust formatting
1700 accordingly.
1701
1702 2016-01-19 John Baldwin <jhb@FreeBSD.org>
1703
1704 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
1705 "len" with sysctl.
1706
1707 2016-01-19 John Baldwin <jhb@FreeBSD.org>
1708
1709 * fbsd-tdep.c (find_stop_signal): Remove.
1710 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
1711 <stop_signal>: New field.
1712 <abort_iteration>: New field.
1713 (fbsd_collect_regset_section_cb): Use new fields.
1714 (fbsd_collect_thread_registers): New function.
1715 (struct fbsd_corefile_thread_data): New structure.
1716 (fbsd_corefile_thread): New function.
1717 (fbsd_make_corefile_notes): Use new function to dump notes for each
1718 non-exited thread in a process.
1719
1720 2016-01-19 John Baldwin <jhb@FreeBSD.org>
1721
1722 * configure.ac: Check for support for LWP names on FreeBSD.
1723 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
1724 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
1725 (fbsd_fetch_kinfo_proc): Move function earlier.
1726 [PT_LWPINFO] (fbsd_thread_alive): New function.
1727 [PT_LWPINFO] (fbsd_pid_to_str): New function.
1728 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
1729 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
1730 [PT_LWPINFO] (fbsd_add_threads): New function.
1731 [PT_LWPINFO] (fbsd_update_thread_list): New function.
1732 [PT_LWPINFO] New variable super_resume.
1733 [PT_LWPINFO] (resume_one_thread_cb): New function.
1734 [PT_LWPINFO] (resume_all_threads_cb): New function.
1735 [PT_LWPINFO] (fbsd_resume): New function.
1736 (fbsd_remember_child): Save full ptid instead of plain pid.
1737 (fbsd_is_child_pending): Return ptid of saved child process.
1738 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
1739 first stop.
1740 [PT_LWP_EVENTS] Handle LWP events.
1741 [TDP_RFPPWAIT] Include LWP in child ptid.
1742 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
1743 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
1744 Add threads for existing processes.
1745 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
1746 "fbsd_thread_alive".
1747 Set "to_pid_to_str" to "fbsd_pid_to_str".
1748 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
1749 "fbsd_thread_name".
1750 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
1751 Set "to_has_thread_control" to "tc_schedlock".
1752 Set "to_resume" to "fbsd_resume".
1753 (_initialize_fbsd_nat): New function.
1754 * configure: Regenerate.
1755 * config.in: Regenerate.
1756
1757 2016-01-19 John Baldwin <jhb@FreeBSD.org>
1758
1759 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
1760 get_ptrace_pid.
1761 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
1762 (amd64bsd_dr_get): Use get_ptrace_pid.
1763 (amd64bsd_dr_set): Use get_ptrace_pid.
1764 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
1765 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
1766 (i386bsd_dr_get): Use get_ptrace_pid.
1767 (i386bsd_dr_set): Use get_ptrace_pid.
1768 * inf-ptrace.c (get_ptrace_pid): Export.
1769 * inf-ptrace.h (get_ptrace_pid): Declare.
1770 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
1771 (ppcfbsd_store_inferior_registers): Use lwp id.
1772
1773 2016-01-19 John Baldwin <jhb@FreeBSD.org>
1774
1775 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
1776 (fbsd_core_thread_name): New function.
1777 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
1778 Add "core_thread_name" gdbarch method.
1779
1780 2016-01-19 John Baldwin <jhb@FreeBSD.org>
1781
1782 * corelow.c (core_thread_name): New function.
1783 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
1784 target op.
1785 * gdbarch.sh (core_thread_name): New gdbarch callback.
1786 * gdbarch.h: Re-generate.
1787 * gdbarch.c: Re-generate.
1788
1789 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
1790
1791 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
1792 convert gdb.Value to integer type using int().
1793
1794 2016-01-19 John Baldwin <jhb@FreeBSD.org>
1795
1796 * configure.ac: Include <sys/types.h when checking for "r_fs" in
1797 "struct reg".
1798 * configure: Regenerate.
1799
1800 2016-01-19 Pedro Alves <palves@redhat.com>
1801
1802 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
1803 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
1804 current program space down to linespec decoding and breakpoint
1805 location updating.
1806 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
1807 decode_line_full.
1808 (until_break_command): Adjust calls to decode_line_1.
1809 (base_breakpoint_decode_location, bkpt_decode_location): Add
1810 'search_pspace' parameter. Pass it along.
1811 (bkpt_probe_create_sals_from_location): Adjust calls to
1812 parse_probes.
1813 (tracepoint_decode_location, tracepoint_probe_decode_location)
1814 (strace_marker_decode_location): Add 'search_pspace' parameter.
1815 Pass it along.
1816 (all_locations_are_pending): Rewrite to take a breakpoint and
1817 program space as arguments instead.
1818 (hoist_existing_locations): New function.
1819 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
1820 hoist_existing_locations instead of always removing all locations,
1821 and adjust to all_locations_are_pending change.
1822 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
1823 Don't disable the breakpoint if there are other locations in
1824 another program space.
1825 (breakpoint_re_set_default): Adjust to pass down the current
1826 program space as filter program space.
1827 (decode_location_default): Add 'search_pspace' parameter and pass
1828 it along.
1829 (prepare_re_set_context): Don't switch program space here.
1830 (breakpoint_re_set): Use save_current_space_and_thread instead of
1831 save_current_program_space.
1832 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
1833 'search_pspace' parameter.
1834 (update_breakpoint_locations): Add 'filter_pspace' parameter.
1835 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
1836 decode_line_1.
1837 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
1838 program space as filter program space.
1839 * linespec.c (struct linespec_state) <search_pspace>: New field.
1840 (create_sals_line_offset, convert_explicit_location_to_sals)
1841 (parse_linespec): Pass the search program space down.
1842 (linespec_state_constructor): Add 'search_pspace' parameter.
1843 Store it.
1844 (linespec_parser_new): Add 'search_pspace' parameter and pass it
1845 along.
1846 (linespec_lex_to_end): Adjust.
1847 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
1848 and pass it along.
1849 (decode_line_with_last_displayed): Adjust.
1850 (collect_symtabs_from_filename, symtabs_from_filename): New
1851 'search_pspace' parameter. Use it.
1852 (find_function_symbols): Pass the search program space down.
1853 * linespec.h (decode_line_1, decode_line_full): Add
1854 'search_pspace' parameter.
1855 * probe.c (parse_probes_in_pspace): New function, factored out
1856 from ...
1857 (parse_probes): ... this. Add 'search_pspace' parameter and use
1858 it.
1859 * probe.h (parse_probes): Add pspace' parameter.
1860 * python/python.c (gdbpy_decode_line): Adjust.
1861 * tracepoint.c (scope_info): Adjust.
1862
1863 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
1864
1865 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
1866 instruction support.
1867 (micromips_next_pc): Likewise.
1868 (micromips_scan_prologue): Likewise.
1869 (micromips_deal_with_atomic_sequence): Likewise.
1870 (micromips_stack_frame_destroyed_p): Likewise.
1871 (mips_breakpoint_from_pc): Likewise.
1872
1873 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
1874
1875 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
1876 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
1877
1878 2016-01-18 Pedro Alves <palves@redhat.com>
1879
1880 * NEWS: Mention that GDB now displays the ID and name of the
1881 thread that hit a breakpoint or received a signal.
1882 * break-catch-sig.c (signal_catchpoint_print_it): Use
1883 maybe_print_thread_hit_breakpoint.
1884 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
1885 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
1886 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
1887 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
1888 (print_it_catch_exec, print_it_ranged_breakpoint)
1889 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
1890 Use maybe_print_thread_hit_breakpoint.
1891 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
1892 * gdbthread.h (show_thread_that_caused_stop): Declare.
1893 * infrun.c (print_signal_received_reason): Print which thread
1894 received signal.
1895 * thread.c (show_thread_that_caused_stop): New function.
1896
1897 2016-01-18 Gary Benson <gbenson@redhat.com>
1898
1899 * nat/linux-namespaces.c (do_fork): New function.
1900 (linux_mntns_get_helper): Use the above.
1901
1902 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
1903
1904 Pushed by Joel Brobecker <brobecker@adacore.com>.
1905 PR gdb/19208
1906 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
1907 if the function has no name.
1908
1909 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
1910
1911 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
1912 Conditionalize for Windows host.
1913 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
1914 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
1915 (phony_iconv_open): Handle both UTF-32 endiannesses.
1916 (phony_iconv): Likewise. Check for output overflow and clean up
1917 out-of-input cases. Correct adjustment to input buffer pointer.
1918 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
1919 phony_iconv_open.
1920
1921 2016-01-15 Pedro Alves <palves@redhat.com>
1922
1923 * NEWS: Mention star wildcard ranges.
1924 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
1925 (number_range_setup_range): New function.
1926 * cli/cli-utils.h (number_range_setup_range): New declaration.
1927 * thread.c (thread_apply_command): Support star TID ranges.
1928 * tid-parse.c (tid_range_parser_finished)
1929 (tid_range_parser_string, tid_range_parser_skip)
1930 (get_tid_or_range, get_tid_or_range): Handle
1931 TID_RANGE_STATE_STAR_RANGE.
1932 (tid_range_parser_star_range): New function.
1933 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
1934 New value.
1935 (tid_range_parser_star_range): New declaration.
1936
1937 2016-01-15 Pedro Alves <palves@redhat.com>
1938
1939 * thread.c (thread_apply_command): Use the tid range parser to
1940 advance past the thread ID list.
1941 * tid-parse.c (get_positive_number_trailer): New function.
1942 (parse_thread_id): Use it.
1943 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
1944 thread ID error.
1945 (get_tid_or_range): Detect negative values. Return 0 instead of
1946 throwing invalid thread ID error.
1947
1948 2016-01-14 Yao Qi <yao.qi@linaro.org>
1949
1950 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
1951 Declare.
1952 (arm_linux_get_next_pcs_ops): Install
1953 arm_linux_get_next_pcs_syscall_next_pc.
1954 (arm_linux_syscall_next_pc): Change to ...
1955 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
1956 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
1957 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
1958 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
1959 call tdep->syscall_next_pc.
1960 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
1961 (arm_get_next_pcs_syscall_next_pc): Remove.
1962
1963 2016-01-14 Yao Qi <yao.qi@linaro.org>
1964
1965 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
1966 * thread.c (do_captured_thread_select): Cast to const char *.
1967
1968 2016-01-14 Yao Qi <yao.qi@linaro.org>
1969
1970 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
1971 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
1972 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
1973 instead.
1974 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
1975 <arm_thumb2_breakpoint>: Remove.
1976 <has_thumb2_breakpoint>: New field.
1977 (arm_get_next_pcs_ctor): Update declaration.
1978 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
1979 1 to arm_get_next_pcs_ctor.
1980 * arm-tdep.c (arm_software_single_step): Pass 0 to
1981 arm_get_next_pcs_ctor.
1982
1983 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
1984
1985 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
1986
1987 2016-01-13 Yao Qi <yao.qi@linaro.org>
1988
1989 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
1990 byte_order_for_code to read instruction.
1991
1992 2016-01-13 Pedro Alves <palves@redhat.com>
1993
1994 * NEWS: Mention $_gthread.
1995 * gdbthread.h (struct thread_info) <global_num>: Mention
1996 $_gthread.
1997 * thread.c (thread_num_make_value_helper): New function.
1998 (thread_id_make_value): Delete.
1999 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
2000 New.
2001 (thread_funcs): Adjust.
2002 (gthread_funcs): New.
2003 (_initialize_thread): Register $_gthread variable.
2004
2005 2016-01-13 Pedro Alves <palves@redhat.com>
2006
2007 * NEWS: Mention "info threads -gid".
2008 * gdbthread.h (struct thread_info) <global_num>: Mention "info
2009 threads -gid".
2010 * thread.c (info_threads_command): Handle "-gid".
2011 (_initialize_thread): Adjust "info threads" help string to mention
2012 -gid.
2013
2014 2016-01-13 Pedro Alves <palves@redhat.com>
2015
2016 * NEWS: Mention InferiorThread.global_num.
2017 * python/py-infthread.c (thpy_get_global_num): New function.
2018 (thread_object_getset): Register "global_num".
2019
2020 2016-01-13 Pedro Alves <palves@redhat.com>
2021
2022 * NEWS: Mention that thread IDs are now per inferior and global
2023 thread IDs.
2024 * Makefile.in (SFILES): Add tid-parse.c.
2025 (COMMON_OBS): Add tid-parse.o.
2026 (HFILES_NO_SRCDIR): Add tid-parse.h.
2027 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
2028 * breakpoint.c (insert_breakpoint_locations)
2029 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
2030 (print_one_breakpoint_location, set_longjmp_breakpoint)
2031 (check_longjmp_breakpoint_for_call_dummy)
2032 (set_momentary_breakpoint): Adjust to use global IDs.
2033 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
2034 (until_break_command, longjmp_bkpt_dtor)
2035 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
2036 to use global IDs.
2037 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
2038 ptid_to_global_thread_id.
2039 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
2040 * gdbthread.h (struct thread_info): Rename field 'num' to
2041 'global_num. Add new fields 'per_inf_num' and 'inf'.
2042 (thread_id_to_pid): Rename thread_id_to_pid to
2043 global_thread_id_to_ptid.
2044 (pid_to_thread_id): Rename to ...
2045 (ptid_to_global_thread_id): ... this.
2046 (valid_thread_id): Rename to ...
2047 (valid_global_thread_id): ... this.
2048 (find_thread_id): Rename to ...
2049 (find_thread_global_id): ... this.
2050 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
2051 (print_thread_info): Add comment.
2052 * tid-parse.h: New file.
2053 * tid-parse.c: New file.
2054 * infcmd.c (step_command_fsm_prepare)
2055 (step_command_fsm_should_stop): Adjust to use the global thread
2056 ID.
2057 (until_next_command, until_next_command)
2058 (finish_command_fsm_should_stop): Adjust to use the global thread
2059 ID.
2060 (attach_post_wait): Adjust to check the inferior number too.
2061 * inferior.h (struct inferior) <highest_thread_num>: New field.
2062 * infrun.c (handle_signal_stop)
2063 (insert_exception_resume_breakpoint)
2064 (insert_exception_resume_from_probe): Adjust to use the global
2065 thread ID.
2066 * record-btrace.c (record_btrace_open): Use global thread IDs.
2067 * remote.c (process_initial_stop_replies): Also consider the
2068 inferior number.
2069 * target.c (target_pre_inferior): Clear the inferior's highest
2070 thread num.
2071 * thread.c (clear_thread_inferior_resources): Adjust to use the
2072 global thread ID.
2073 (new_thread): New inferior parameter. Adjust to use it. Set both
2074 the thread's global ID and the thread's per-inferior ID.
2075 (add_thread_silent): Adjust.
2076 (find_thread_global_id): New.
2077 (find_thread_id): Make static. Adjust to rename.
2078 (valid_thread_id): Rename to ...
2079 (valid_global_thread_id): ... this.
2080 (pid_to_thread_id): Rename to ...
2081 (ptid_to_global_thread_id): ... this.
2082 (thread_id_to_pid): Rename to ...
2083 (global_thread_id_to_ptid): ... this. Adjust.
2084 (first_thread_of_process): Adjust.
2085 (do_captured_list_thread_ids): Adjust to use global thread IDs.
2086 (should_print_thread): New function.
2087 (print_thread_info): Rename to ...
2088 (print_thread_info_1): ... this, and add new show_global_ids
2089 parameter. Handle it. Iterate over inferiors.
2090 (print_thread_info): Reimplement as wrapper around
2091 print_thread_info_1.
2092 (show_inferior_qualified_tids): New function.
2093 (print_thread_id): Use it.
2094 (tp_array_compar): Compare inferior numbers too.
2095 (thread_apply_command): Use tid_range_parser.
2096 (do_captured_thread_select): Use parse_thread_id.
2097 (thread_id_make_value): Adjust.
2098 (_initialize_thread): Adjust "info threads" help string.
2099 * varobj.c (struct varobj_root): Update comment.
2100 (varobj_create): Adjust to use global thread IDs.
2101 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
2102 * windows-tdep.c (display_tib): No longer accept an argument.
2103 * cli/cli-utils.c (get_number_trailer): Make extern.
2104 * cli/cli-utils.h (get_number_trailer): Declare.
2105 (get_number_const): Adjust documentation.
2106 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
2107 thread IDs.
2108 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
2109 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
2110 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
2111 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
2112 Likewise.
2113 * python/py-breakpoint.c (bppy_set_thread): Likewise.
2114 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
2115 * python/py-infthread.c (thpy_get_num): Add comment and return the
2116 per-inferior thread ID.
2117 (thread_object_getset): Update comment of "num".
2118
2119 2016-01-13 Pedro Alves <palves@redhat.com>
2120
2121 * breakpoint.c (remove_threaded_breakpoints)
2122 (print_one_breakpoint_location): Use print_thread_id.
2123 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
2124 (btrace_fetch, btrace_clear): Use print_thread_id.
2125 * common/print-utils.c (CELLSIZE): Delete.
2126 (get_cell): Rename to ...
2127 (get_print_cell): ... this and made extern. Adjust call callers.
2128 Adjust to use PRINT_CELL_SIZE.
2129 * common/print-utils.h (get_print_cell): Declare.
2130 (PRINT_CELL_SIZE): New.
2131 * gdbthread.h (print_thread_id): Declare.
2132 * infcmd.c (signal_command): Use print_thread_id.
2133 * inferior.c (print_inferior): Use print_thread_id.
2134 * infrun.c (handle_signal_stop)
2135 (insert_exception_resume_breakpoint)
2136 (insert_exception_resume_from_probe)
2137 (print_signal_received_reason): Use print_thread_id.
2138 * record-btrace.c (record_btrace_info)
2139 (record_btrace_resume_thread, record_btrace_cancel_resume)
2140 (record_btrace_step_thread, record_btrace_wait): Use
2141 print_thread_id.
2142 * thread.c (thread_apply_all_command): Use print_thread_id.
2143 (print_thread_id): New function.
2144 (thread_apply_command): Use print_thread_id.
2145 (thread_command, thread_find_command, do_captured_thread_select):
2146 Use print_thread_id.
2147
2148 2016-01-13 Pedro Alves <palves@redhat.com>
2149
2150 * NEWS: Mention InferiorThread.inferior.
2151 * python/py-infthread.c (thpy_get_inferior): New.
2152 (thread_object_getset): Register "inferior".
2153
2154 2016-01-13 Pedro Alves <palves@redhat.com>
2155
2156 * NEWS: Mention $_inferior.
2157 * inferior.c (inferior_id_make_value): New.
2158 (inferior_funcs): New.
2159 (_initialize_inferior): Create $_inferior variable.
2160
2161 2016-01-13 Pedro Alves <palves@redhat.com>
2162
2163 PR breakpoints/19388
2164 * frame.c (get_current_frame): Use validate_registers_access.
2165 * gdbthread.h (validate_registers_access): Declare.
2166 * infrun.c (validate_siginfo_access): Delete.
2167 (siginfo_value_read, siginfo_value_write): Use
2168 validate_registers_access.
2169 * thread.c (validate_registers_access): New function.
2170
2171 2016-01-12 Josh Stone <jistone@redhat.com>
2172 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2173
2174 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
2175 syscall_entry and syscall_return stop reasons. Mention GDB
2176 support for remote catch syscall.
2177 * remote.c (PACKET_QCatchSyscalls): New enum.
2178 (remote_set_syscall_catchpoint): New function.
2179 (remote_protocol_features): New element for QCatchSyscalls.
2180 (remote_parse_stop_reply): Parse syscall_entry/return stops.
2181 (init_remote_ops): Install remote_set_syscall_catchpoint.
2182 (_initialize_remote): Config QCatchSyscalls.
2183 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
2184
2185 2016-01-12 Yao Qi <yao.qi@linaro.org>
2186
2187 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
2188 to gdb_byte * and pass to linux_fork_to_function.
2189
2190 2016-01-12 Yao Qi <yao.qi@linaro.org>
2191
2192 * nat/linux-ptrace.c (linux_fork_to_function): Change type
2193 of argument 'function'.
2194 (linux_grandchild_function): Change return type to 'int'.
2195 Change child_stack's type to 'void *'.
2196 (linux_child_function): Likewise.
2197
2198 2016-01-12 Pedro Alves <palves@redhat.com>
2199
2200 Remove use of the registered trademark symbol throughout.
2201
2202 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
2203
2204 * reply_mig_hack.awk: Rewrite one regular expression.
2205
2206 2016-01-11 Mike Frysinger <vapier@gentoo.org>
2207
2208 * acinclude.m4: Include new warning.m4 file.
2209 * configure: Regenerated.
2210 * configure.ac: Move all warning logic ...
2211 * warning.m4: ... here.
2212
2213 2016-01-08 Yao Qi <yao.qi@linaro.org>
2214
2215 * extension.c: Include target.h.
2216 (set_active_ext_lang): Only call install_gdb_sigint_handler,
2217 check_quit_flag, and set_quit_flag if target_terminal_is_ours
2218 returns false.
2219 (restore_active_ext_lang): Likewise.
2220 * target.c (target_terminal_is_ours): New function.
2221 * target.h (target_terminal_is_ours): Declare.
2222
2223 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
2224
2225 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
2226 to `err' in the little-endian leg.
2227
2228 2016-01-06 Yao Qi <yao.qi@linaro.org>
2229
2230 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
2231 lines below.
2232 (thumb_get_next_pcs_raw): Make it static.
2233 (arm_get_next_pcs_raw): Likewise.
2234 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
2235 declaration.
2236 (arm_get_next_pcs_raw): Likewise.
2237
2238 2016-01-05 Mike Frysinger <vapier@gentoo.org>
2239
2240 * version.in: Change cvs to git.
2241
2242 2016-01-05 Mike Frysinger <vapier@gentoo.org>
2243
2244 * configure.tgt (score-*-*): Delete gdb_sim assignment.
2245
2246 2016-01-05 Pedro Alves <palves@redhat.com>
2247
2248 PR sim/13418
2249 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
2250 the target is powerpc*.
2251 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
2252 of WITH_SIM.
2253 * configure: Regenerate.
2254 * config.in: Regenerate.
2255
2256 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
2257
2258 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
2259
2260 2016-01-02 Mike Frysinger <vapier@gentoo.org>
2261
2262 * configure.tgt (powerpc*-*-*): Delete test call and
2263 always assign gdb_sim.
2264
2265 2016-01-01 Joel Brobecker <brobecker@adacore.com>
2266
2267 Update year range in copyright notice of all files.
2268
2269 2016-01-01 Joel Brobecker <brobecker@adacore.com>
2270
2271 * top.c (print_gdb_version): Change copyright year in version
2272 message.
2273
2274 2016-01-01 Joel Brobecker <brobecker@adacore.com>
2275
2276 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
2277
2278 For older changes see ChangeLog-2015.
2279 \f
2280 Local Variables:
2281 mode: change-log
2282 left-margin: 8
2283 fill-column: 74
2284 version-control: never
2285 coding: utf-8
2286 End: