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