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