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