Constify variables in ada-lang.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
108d56a4
SM
12015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2
3 * ada-lang.c (ada_search_struct_field): Constify parameters
4 and/or variables..
5 (xget_renaming_scope): Likewise.
6 (ada_is_redundant_range_encoding): Likewise.
7 (scan_discrim_bound): Likewise.
8 (to_fixed_range_type): Likewise.
9
dd2e65cc
YQ
102015-09-10 Yao Qi <yao.qi@linaro.org>
11
12 * breakpoint.c (download_tracepoint_locations): New local
13 can_download_tracepoint. Check the result of
14 target_can_download_tracepoint and save it in
15 can_download_tracepoint if there are tracepoints to download.
16 * linux-nat.h (enum tribool): Move it to ...
17 * common/common-types.h: ... here.
18
cfe75703
PA
192015-09-09 Pedro Alves <palves@redhat.com>
20
21 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
22 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
23
a85a3079
PA
242015-09-09 Pedro Alves <palves@redhat.com>
25
26 * continuations.c (add_continuation, restore_thread_cleanup)
27 (do_all_continuations_ptid, do_all_continuations_thread_callback)
28 (do_all_continuations_thread, do_all_continuations)
29 (discard_all_continuations_thread_callback)
30 (discard_all_continuations_thread, discard_all_continuations)
31 (add_intermediate_continuation)
32 (do_all_intermediate_continuations_thread_callback)
33 (do_all_intermediate_continuations_thread)
34 (do_all_intermediate_continuations)
35 (discard_all_intermediate_continuations_thread_callback)
36 (discard_all_intermediate_continuations_thread)
37 (discard_all_intermediate_continuations): Delete.
38 * continuations.h (add_continuation, do_all_continuations)
39 (do_all_continuations_thread, discard_all_continuations)
40 (discard_all_continuations_thread, add_intermediate_continuation)
41 (do_all_intermediate_continuations)
42 (do_all_intermediate_continuations_thread)
43 (discard_all_intermediate_continuations)
44 (discard_all_intermediate_continuations_thread): Delete
45 declarations.
46 * event-top.c (stdin_event_handler): Delete references to
47 continuations.
48 * gdbthread.h (struct thread_info): Delete continuations and
49 intermediate_continuations fields.
50 * inf-loop.c (inferior_event_handler): Remove references to
51 continuations.
52 * infrun.c (infrun_thread_stop_requested_callback): Remove
53 references to continuations.
54 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
55 * thread.c: Don't include "continuations.h".
56 (clear_thread_inferior_resources): Remove references to
57 continuations.
58
0700e23e
PA
592015-09-09 Pedro Alves <palves@redhat.com>
60
61 * infcall.c (struct dummy_frame_context_saver): Delete.
62 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
63 (dummy_frame_context_saver_drop)
64 (dummy_frame_context_saver_cleanup)
65 (dummy_frame_context_saver_get_regs)
66 (dummy_frame_context_saver_setup): Delete.
67 * infcall.h (dummy_frame_context_saver_drop)
68 (dummy_frame_context_saver_cleanup)
69 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
70 Delete.
71 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
72 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
73 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
74
cfc31633
PA
752015-09-09 Pedro Alves <palves@redhat.com>
76
77 * breakpoint.c: Include "thread-fsm.h".
78 (struct until_break_command_continuation_args): Delete.
79 (struct until_break_fsm): New.
80 (until_break_fsm_ops): New global.
81 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
82 (until_break_command_continuation): Delete.
83 (until_break_fsm_clean_up): New function.
84 (until_break_fsm_async_reply_reason): New function.
85 (until_break_command): Adjust to create an until_break_fsm instead
86 of a continuation.
87 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
88 here.
89 * infcmd.c (struct until_next_fsm): New.
90 (until_next_fsm_ops): New global.
91 (new_until_next_fsm, until_next_fsm_should_stop): New function.
92 (until_next_continuation): Delete.
93 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
94 functions.
95 (until_next_command): Adjust to create a new until_next_fsm
96 instead of a continuation.
97
388a7084
PA
982015-09-09 Pedro Alves <palves@redhat.com>
99
100 * infcall.c: Include thread_fsm.h.
101 (struct call_return_meta_info): New.
102 (get_call_return_value): New function, factored out from
103 call_function_by_hand_dummy.
104 (struct call_thread_fsm): New.
105 (call_thread_fsm_ops): New global.
106 (new_call_thread_fsm, call_thread_fsm_should_stop)
107 (call_thread_fsm_should_notify_stop): New functions.
108 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
109 the thread.
110 (call_function_by_hand_dummy): Create a new call_thread_fsm
111 instance, associate it with the thread, and wait for the FSM to
112 finish. If finished successfully, fetch the function's result
113 value out of the FSM.
114 * infrun.c (fetch_inferior_event): If the FSM says the stop
115 shouldn't be notified, don't call normal_stop.
116 (maybe_remove_breakpoints): New function, factored out from ...
117 (normal_stop): ... here. Simplify.
118 * infrun.h (maybe_remove_breakpoints): Declare.
119 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
120 (thread-fsm.h) <struct thread_fsm_ops>: New field.
121 (thread_fsm_should_notify_stop): Declare.
122
243a9253
PA
1232015-09-09 Pedro Alves <palves@redhat.com>
124
125 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
126 * breakpoint.c (handle_jit_event): Print debug output.
127 (bpstat_what): Split event callback handling to ...
128 (bpstat_run_callbacks): ... this new function.
129 (momentary_bkpt_print_it): No longer handle bp_finish here.
130 * breakpoint.h (bpstat_run_callbacks): Declare.
131 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
132 <thread_fsm>: New field.
133 (thread_cancel_execution_command): Declare.
134 * infcmd.c: Include thread-fsm.h.
135 (struct step_command_fsm): New.
136 (step_command_fsm_ops): New global.
137 (new_step_command_fsm, step_command_fsm_prepare): New functions.
138 (step_1): Adjust to use step_command_fsm_prepare and
139 prepare_one_step.
140 (struct step_1_continuation_args): Delete.
141 (step_1_continuation): Delete.
142 (step_command_fsm_should_stop): New function.
143 (step_once): Delete.
144 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
145 (prepare_one_step): New function, based on step_once.
146 (until_next_command): Remove step_multi reference.
147 (struct return_value_info): New.
148 (print_return_value): Rename to ...
149 (print_return_value_1): ... this. New struct return_value_info
150 parameter. Adjust.
151 (print_return_value): Reimplement as wrapper around
152 print_return_value_1.
153 (struct finish_command_fsm): New.
154 (finish_command_continuation): Delete.
155 (finish_command_fsm_ops): New global.
156 (new_finish_command_fsm, finish_command_fsm_should_stop): New
157 functions.
158 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
159 New.
160 (finish_command_continuation_free_arg): Delete.
161 (finish_command_fsm_async_reply_reason): New.
162 (finish_backward, finish_forward): Change symbol parameter to a
163 finish_command_fsm. Adjust.
164 (finish_command): Create a finish_command_fsm. Adjust.
165 * infrun.c: Include "thread-fsm.h".
166 (clear_proceed_status_thread): Delete the thread's FSM.
167 (infrun_thread_stop_requested_callback): Cancel the thread's
168 execution command.
169 (clean_up_just_stopped_threads_fsms): New function.
170 (fetch_inferior_event): Handle the event_thread's should_stop
171 method saying the command isn't done yet.
172 (process_event_stop_test): Run breakpoint callbacks here.
173 (print_stop_event): Rename to ...
174 (print_stop_location): ... this.
175 (restore_current_uiout_cleanup): New function.
176 (print_stop_event): Reimplement.
177 (normal_stop): No longer notify the end_stepping_range observers
178 here handle "step N" nor "finish" here. No longer call
179 print_stop_event here.
180 * infrun.h (struct return_value_info): Forward declare.
181 (print_return_value): Declare.
182 (print_stop_event): Change prototype.
183 * thread-fsm.c: New file.
184 * thread-fsm.h: New file.
185 * thread.c: Include "thread-fsm.h".
186 (thread_cancel_execution_command): New function.
187 (clear_thread_inferior_resources): Call it.
188 * cli/cli-interp.c (cli_on_normal_stop): New function.
189 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
190 observer.
191 * mi/mi-interp.c: Include "thread-fsm.h".
192 (restore_current_uiout_cleanup): Delete.
193 (mi_on_normal_stop): If the thread has an FSM associated, and it
194 finished, ask it for the async-reply-reason to print. Always call
195 print_stop_event here, regardless of the top-level interpreter.
196 Check bpstat_what to tell whether an asynchronous breakpoint hit
197 triggered.
198 * tui/tui-interp.c (tui_on_normal_stop): New function.
199 (tui_init): Install tui_on_normal_stop as normal_stop observer.
200
0b333c5e
PA
2012015-09-09 Pedro Alves <palves@redhat.com>
202
203 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
204 check whether the target can async.
205 * inf-loop.c (inferior_event_handler): Only call target_async if
206 the target can async.
207 * infcall.c: Include top.h and interps.h.
208 (run_inferior_call): For the interpreter to sync mode while
209 running the infcall. Call wait_sync_command_done instead of
210 wait_for_inferior plus normal_stop.
211 * infcmd.c (prepare_execution_command): Don't check whether the
212 target can async when running in the foreground.
213 (step_1): Delete synchronous case handling.
214 (step_once): Always install a continuation, even in sync mode.
215 (until_next_command, finish_forward): Don't check whether the
216 target can async.
217 (attach_command_post_wait, notice_new_inferior): Always install a
218 continuation, even in sync mode.
219 * infrun.c (mark_infrun_async_event_handler): New function.
220 (proceed): In sync mode, mark infrun's event source instead of
221 waiting for events here.
222 (fetch_inferior_event): If the target can't async, do a blocking
223 wait.
224 (prepare_to_wait): In sync mode, mark infrun's event source.
225 (infrun_async_inferior_event_handler): No longer bail out if the
226 target can't async.
227 * infrun.h (mark_infrun_async_event_handler): New declaration.
228 * linux-nat.c (linux_nat_wait_1): Remove calls to
229 set_sigint_trap/clear_sigint_trap.
230 (linux_nat_terminal_inferior): No longer check whether the target
231 can async.
232 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
233 comment.
234 (mi_execute_command_input_handler): No longer check whether the
235 target is async. Update and simplify comment.
236 * target.c (default_target_wait): New function.
237 * target.h (struct target_ops) <to_wait>: Now defaults to
238 default_target_wait.
239 (default_target_wait): Declare.
240 * top.c (wait_sync_command_done): New function, factored out from
241 ...
242 (maybe_wait_sync_command_done): ... this.
243 * top.h (wait_sync_command_done): Declare.
244 * target-delegates.c: Regenerate.
245
0568462b
MM
2462015-09-09 Markus Metzger <markus.t.metzger@intel.com>
247
248 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
249 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
250 Remove include of sys/utsname.h.
251 (linux_determine_kernel_ptr_bits): Remove.
252 (linux_determine_kernel_start): New.
253 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
254 Update check.
255 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
256 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
257 initialization.
258 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
259 assignment.
260
72e02483
PA
2612015-09-07 Pedro Alves <palves@redhat.com>
262
263 * guile/guile-internal.h (as_a_scm_t_subr): New.
264 * guile/guile.c (misc_guile_functions): Use it.
265 * guile/scm-arch.c (arch_functions): Use it.
266 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
267 Use it.
268 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
269 * guile/scm-cmd.c (command_functions): Use it.
270 * guile/scm-disasm.c (disasm_functions): Use it.
271 * guile/scm-exception.c (exception_functions)
272 (private_exception_functions): Use it.
273 * guile/scm-frame.c (frame_functions)
274 * guile/scm-gsmob.c (gsmob_functions): Use it.
275 * guile/scm-iterator.c (iterator_functions): Use it.
276 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
277 * guile/scm-math.c (math_functions): Use it.
278 * guile/scm-objfile.c (objfile_functions): Use it.
279 * guile/scm-param.c (parameter_functions): Use it.
280 * guile/scm-ports.c (port_functions, private_port_functions): Use
281 it.
282 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
283 * guile/scm-progspace.c (pspace_functions): Use it.
284 * guile/scm-string.c (string_functions): Use it.
285 * guile/scm-symbol.c (symbol_functions): Use it.
286 * guile/scm-symtab.c (symtab_functions): Use it.
287 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
288 it.
289 * guile/scm-value.c (value_functions): Use it.
290
e65b5245
AB
2912015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
292
293 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
294 (tui_next_win): Likewise.
295 (tui_prev_win): Likewise.
296 (tui_partial_win_by_name): Likewise.
297 (tui_init_generic_part): Likewise.
298 (init_content_element): Likewise.
299 (tui_del_window): Likewise.
300 (tui_free_window): Likewise.
301 (tui_del_data_windows): Likewise.
302 (tui_free_data_content): Likewise.
303 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
304 * tui/tui-regs.c (tui_show_register_group): Likewise.
305 * tui/tui-win.c (tui_resize_all): Likewise.
306 (tui_set_focus): Likewise.
307 (tui_set_win_height): Likewise.
308 (make_invisible_and_set_new_height): Likewise.
309 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
310 * tui/tui-wingeneral.c (make_visible): Likewise.
311
b03e6ad9
AB
3122015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
313
314 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
315
be903358
AB
3162015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
319 pointer.
320 * dbxread.c (dbx_end_psymtab): Likewise.
321 * gnu-nat.c (gnu_write_inferior): Likewise.
322 * mdebugread.c (cross_ref): Likewise.
323 * p-valprint.c (pascal_val_print): Likewise.
324 * xcoffread.c (xcoff_end_psymtab): Likewise.
325
02f024f9
YQ
3262015-09-04 Yao Qi <yao.qi@linaro.org>
327
328 * NEWS: Mention the aarch64 multi-arch debugging support.
329
cd7c1778
PMR
3302015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
331
332 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
333 type instead of a TYPE_CODE_INT one for the string_char_type
334 and the ada_primitive_type_char types.
335
39edd165
YQ
3362015-09-03 Yao Qi <yao.qi@linaro.org>
337
338 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
339 Move code to aarch64_linux_region_ok_for_watchpoint. Call
340 aarch64_linux_region_ok_for_watchpoint.
341 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
342 New function.
343 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
344 Declare it.
345
6c214e7c
PP
3462015-09-02 Patrick Palka <patrick@parcs.ath.cx>
347
348 * gdb_obstack.h (obstack_strdup): Declare.
349 * gdb_obstack.c (obstack_strdup): Define.
350 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
351 * gdbarch.c: Regenerate.
352 * gdbarch.h: Regenerate.
353 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
354
eed8b28a
PP
3552015-09-02 Patrick Palka <patrick@parcs.ath.cx>
356
357 * gdbtypes.c (copy_type_recursive): Update documentation.
358
73c6b475
SDJ
3592015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
360
361 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
362 as zero.
363
ad1c917a
SDJ
3642015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
365
366 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
367
3bd7e5b7
SDJ
3682015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
369
370 * solib-svr4.c (solib_event_probe_action): Call
371 get_probe_argument_count using TRY...CATCH.
372 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
373
f469e8ce
SDJ
3742015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
375
376 * probe.h (struct probe_ops) <get_probe_argument_count,
377 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
378 the comment that the function can throw an exception.
379 (get_probe_argument_count): Likewise.
380 (evaluate_probe_argument): Likewise.
381 * stap-probe.c (stap_get_opcode): Call error instead of
382 internal_error.
383 (stap_get_expected_argument_type): Likewise. Add argument
384 'probe'. Improve error message by mentioning the probe's name.
385 (stap_parse_probe_arguments): Adjust call to
386 stap_get_expected_argument_type.
387 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
388 not zero. Call internal_error if GDB requests an argument but the
389 probe has no arguments.
390
dc5c8746
PMR
3912015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
392
393 * ada-lang.c (ada_resolve_function): Do not ask the user what
394 match to use when in completion mode.
395
136765ea
AB
3962015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
397
398 * tui/tui-data.c (tui_win_name): Make local variable const, remove
399 cast of NULL.
400
90b81c5f
MF
4012015-08-31 Max Filippov <jcmvbkbc@gmail.com>
402
403 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
404 call_abi using XSHAL_ABI macro.
405
1cd36e54
DE
4062015-08-29 Doug Evans <xdje42@gmail.com>
407
408 * symtab.h (struct symbol): Tweak comment.
409
8f57eec2
PP
4102015-08-29 Patrick Palka <patrick@parcs.ath.cx>
411
412 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
413 gdbarch obstack instead of on the heap. Update commentary
414 accordingly.
415
38eebd71
JB
4162015-08-28 Joel Brobecker <brobecker@adacore.com>
417
418 GDB 7.10 released.
419
d63dd61e
SM
4202015-08-28 Simon Marchi <simon.marchi@ericsson.com>
421
422 * NEWS: Update entry about non-8-bits addressable memory.
423
6f059256
UW
4242015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
425
426 Revert:
427 2014-11-06 Doug Evans <xdje42@gmail.com>
428 * solib.c (solib_global_lookup): Fetch arch from objfile,
429 not target_gdbarch.
430
70987a92 4312015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
432
433 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
434 attempt to relocate a TLS variable offset.
435
70987a92 4362015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
437
438 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
439 registered yet. Set inferior_ptid while calling target_read_memory.
440
70987a92 4412015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
442
443 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
444 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
445 * linux-nat.c (check_stopped_by_breakpoint): Use
446 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
447
70987a92 4482015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
449
450 * linux-thread-db.c (thread_db_get_thread_local_address): If the
451 thread was not yet discovered, use thread_from_lwp instead of
452 calling thread_db_find_new_threads_1.
453
f5cdf498
SM
4542015-08-27 Simon Marchi <simon.marchi@ericsson.com>
455
456 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
457 statements.
458
fd2ae5d6
SM
4592015-08-27 Simon Marchi <simon.marchi@ericsson.com>
460
461 * NEWS: Document support for non-8-bits addressable memory.
462
14d88147
PA
4632015-08-27 Pedro Alves <palves@redhat.com>
464
465 * configure.ac: Remove AC_TYPE_SIGNAL call.
466 * configure, config.in: Regenerate.
467
a40805d4
PA
4682015-08-27 Pedro Alves <palves@redhat.com>
469
470 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
471 * extension-priv.h: Include signal.h.
472 (struct signal_handler) <handler>: Change type to sighandler_t.
473 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
474 * inflow.c (sigint_ours, sigquit_ours): Change type to
475 sighandler_t.
476 (child_terminal_inferior): Remove casts.
477 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
478 (osig): Change type to sighandler_t.
479 * nto-procfs.c (ofunc): Change type to sighandler_t.
480 (procfs_wait): Remove casts.
481 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
482 * remote-sim.c (gdbsim_wait): Use sighandler_t.
483 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
484
0750520d
PA
4852015-08-27 Pedro Alves <palves@redhat.com>
486
487 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
488 * gnulib/aclocal.m4: Renegerate.
489 * gnulib/config.in: Renegerate.
490 * gnulib/configure: Renegerate.
491 * gnulib/import/Makefile.am: Update.
492 * gnulib/import/Makefile.in: Regenerate.
493 * gnulib/import/m4/gnulib-cache.m4: Update.
494 * gnulib/import/m4/gnulib-comp.m4: Update.
495 * gnulib/import/m4/signal_h.m4: New file.
496 * gnulib/import/signal.in.h: New file.
497
a5c0808e
PA
4982015-08-27 Pedro Alves <palves@redhat.com>
499
500 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
501 (MIN_MEMORY_PACKET_SIZE): New.
502 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
503 (get_memory_packet_size): Adjust. No longer limit the max packet
504 size.
505 (set_memory_packet_size): Adjust, and remove dead code.
506 (remote_check_symbols): Use xmalloc and a cleanup instead of
507 alloca.
508 (remote_packet_size): No longer cap the packet size.
509 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
510
cdaec3f3
LM
5112015-08-26 Luis Machado <lgustavo@codesourcery.com>
512
513 * compile/compile.c (compile_to_object): Mention language in
514 error message.
515
e9756d52
PP
5162015-08-26 Patrick Palka <patrick@parcs.ath.cx>
517
518 * target.c (target_pre_inferior): Unset attach_flag.
519
1dc7a623
SM
5202015-08-26 Simon Marchi <simon.marchi@ericsson.com>
521
522 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
523 * gdbarch.c: Re-generate.
524
8d749320
SM
5252015-08-26 Simon Marchi <simon.marchi@ericsson.com>
526
6711b7f8
SM
527 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
528 function with the XNEW-family equivalent.
8d749320
SM
529 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
530 * ada-exp.y (write_ambiguous_var): Likewise.
531 * ada-lang.c (resolve_subexp): Likewise.
532 (user_select_syms): Likewise.
533 (assign_aggregate): Likewise.
534 (ada_evaluate_subexp): Likewise.
535 (cache_symbol): Likewise.
536 * addrmap.c (allocate_key): Likewise.
537 (addrmap_create_mutable): Likewise.
538 * aix-thread.c (sync_threadlists): Likewise.
539 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
540 (alpha_gdbarch_init): Likewise.
541 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
542 * arm-linux-nat.c (arm_linux_add_process): Likewise.
543 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
544 * arm-tdep.c (push_stack_item): Likewise.
545 (arm_displaced_step_copy_insn): Likewise.
546 (arm_gdbarch_init): Likewise.
547 (_initialize_arm_tdep): Likewise.
548 * avr-tdep.c (push_stack_item): Likewise.
549 * ax-general.c (new_agent_expr): Likewise.
550 * block.c (block_initialize_namespace): Likewise.
551 * breakpoint.c (alloc_counted_command_line): Likewise.
552 (update_dprintf_command_list): Likewise.
553 (parse_breakpoint_sals): Likewise.
554 (decode_static_tracepoint_spec): Likewise.
555 (until_break_command): Likewise.
556 (clear_command): Likewise.
557 (update_global_location_list): Likewise.
558 (get_breakpoint_objfile_data) Likewise.
559 * btrace.c (ftrace_new_function): Likewise.
560 (btrace_set_insn_history): Likewise.
561 (btrace_set_call_history): Likewise.
562 * buildsym.c (add_symbol_to_list): Likewise.
563 (record_pending_block): Likewise.
564 (start_subfile): Likewise.
565 (start_buildsym_compunit): Likewise.
566 (push_subfile): Likewise.
567 (end_symtab_get_static_block): Likewise.
568 (buildsym_init): Likewise.
569 * cli/cli-cmds.c (source_command): Likewise.
570 * cli/cli-decode.c (add_cmd): Likewise.
571 * cli/cli-script.c (build_command_line): Likewise.
572 (setup_user_args): Likewise.
573 (realloc_body_list): Likewise.
574 (process_next_line): Likewise.
575 (copy_command_lines): Likewise.
576 * cli/cli-setshow.c (do_set_command): Likewise.
577 * coff-pe-read.c (read_pe_exported_syms): Likewise.
578 * coffread.c (coff_locate_sections): Likewise.
579 (coff_symtab_read): Likewise.
580 (coff_read_struct_type): Likewise.
581 * common/cleanups.c (make_my_cleanup2): Likewise.
582 * common/common-exceptions.c (throw_it): Likewise.
583 * common/filestuff.c (make_cleanup_close): Likewise.
584 * common/format.c (parse_format_string): Likewise.
585 * common/queue.h (DEFINE_QUEUE_P): Likewise.
586 * compile/compile-object-load.c (munmap_list_add): Likewise.
587 (compile_object_load): Likewise.
588 * compile/compile-object-run.c (compile_object_run): Likewise.
589 * compile/compile.c (append_args): Likewise.
590 * corefile.c (specify_exec_file_hook): Likewise.
591 * cp-support.c (make_symbol_overload_list): Likewise.
592 * cris-tdep.c (push_stack_item): Likewise.
593 (cris_gdbarch_init): Likewise.
594 * ctf.c (ctf_trace_file_writer_new): Likewise.
595 * dbxread.c (init_header_files): Likewise.
596 (add_new_header_file): Likewise.
597 (init_bincl_list): Likewise.
598 (dbx_end_psymtab): Likewise.
599 (start_psymtab): Likewise.
600 (dbx_end_psymtab): Likewise.
601 * dcache.c (dcache_init): Likewise.
602 * dictionary.c (dict_create_hashed): Likewise.
603 (dict_create_hashed_expandable): Likewise.
604 (dict_create_linear): Likewise.
605 (dict_create_linear_expandable): Likewise.
606 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
607 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
608 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
609 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
610 (decode_frame_entry_1): Likewise.
611 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
612 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
613 * dwarf2read.c (dwarf2_has_info): Likewise.
614 (create_signatured_type_table_from_index): Likewise.
615 (dwarf2_read_index): Likewise.
616 (dw2_get_file_names_reader): Likewise.
617 (create_all_type_units): Likewise.
618 (read_cutu_die_from_dwo): Likewise.
619 (init_tu_and_read_dwo_dies): Likewise.
620 (init_cutu_and_read_dies): Likewise.
621 (create_all_comp_units): Likewise.
622 (queue_comp_unit): Likewise.
623 (inherit_abstract_dies): Likewise.
624 (read_call_site_scope): Likewise.
625 (dwarf2_add_field): Likewise.
626 (dwarf2_add_typedef): Likewise.
627 (dwarf2_add_member_fn): Likewise.
628 (attr_to_dynamic_prop): Likewise.
629 (abbrev_table_alloc_abbrev): Likewise.
630 (abbrev_table_read_table): Likewise.
631 (add_include_dir): Likewise.
632 (add_file_name): Likewise.
633 (dwarf_decode_line_header): Likewise.
634 (dwarf2_const_value_attr): Likewise.
635 (dwarf_alloc_block): Likewise.
636 (parse_macro_definition): Likewise.
637 (set_die_type): Likewise.
638 (write_psymtabs_to_index): Likewise.
639 (create_cus_from_index): Likewise.
640 (dwarf2_create_include_psymtab): Likewise.
641 (process_psymtab_comp_unit_reader): Likewise.
642 (build_type_psymtab_dependencies): Likewise.
643 (read_comp_units_from_section): Likewise.
644 (compute_compunit_symtab_includes): Likewise.
645 (create_dwo_unit_in_dwp_v1): Likewise.
646 (create_dwo_unit_in_dwp_v2): Likewise.
647 (read_func_scope): Likewise.
648 (process_structure_scope): Likewise.
649 (mark_common_block_symbol_computed): Likewise.
650 (load_partial_dies): Likewise.
651 (dwarf2_symbol_mark_computed): Likewise.
652 * elfread.c (elf_symfile_segments): Likewise.
653 (elf_read_minimal_symbols): Likewise.
654 * environ.c (make_environ): Likewise.
655 * eval.c (evaluate_subexp_standard): Likewise.
656 * event-loop.c (create_file_handler): Likewise.
657 (create_async_signal_handler): Likewise.
658 (create_async_event_handler): Likewise.
659 (create_timer): Likewise.
660 * exec.c (build_section_table): Likewise.
661 * fbsd-nat.c (fbsd_remember_child): Likewise.
662 * fork-child.c (fork_inferior): Likewise.
663 * frv-tdep.c (new_variant): Likewise.
664 * gdbarch.sh (gdbarch_alloc): Likewise.
665 (append_name): Likewise.
666 * gdbtypes.c (rank_function): Likewise.
667 (copy_type_recursive): Likewise.
668 (add_dyn_prop): Likewise.
669 * gnu-nat.c (make_proc): Likewise.
670 (make_inf): Likewise.
671 (gnu_write_inferior): Likewise.
672 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
673 (build_std_type_info_type): Likewise.
674 * guile/scm-param.c (compute_enum_list): Likewise.
675 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
676 * guile/scm-value.c (gdbscm_value_call): Likewise.
677 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
678 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
679 (read_unwind_info): Likewise.
680 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
681 * infcall.c (dummy_frame_context_saver_setup): Likewise.
682 (call_function_by_hand_dummy): Likewise.
683 * infcmd.c (step_once): Likewise.
684 (finish_forward): Likewise.
685 (attach_command): Likewise.
686 (notice_new_inferior): Likewise.
687 * inferior.c (add_inferior_silent): Likewise.
688 * infrun.c (add_displaced_stepping_state): Likewise.
689 (save_infcall_control_state): Likewise.
690 (save_inferior_ptid): Likewise.
691 (_initialize_infrun): Likewise.
692 * jit.c (bfd_open_from_target_memory): Likewise.
693 (jit_gdbarch_data_init): Likewise.
694 * language.c (add_language): Likewise.
695 * linespec.c (decode_line_2): Likewise.
696 * linux-nat.c (add_to_pid_list): Likewise.
697 (add_initial_lwp): Likewise.
698 * linux-thread-db.c (add_thread_db_info): Likewise.
699 (record_thread): Likewise.
700 (info_auto_load_libthread_db): Likewise.
701 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
702 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
703 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
704 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
705 * macrocmd.c (macro_define_command): Likewise.
706 * macroexp.c (gather_arguments): Likewise.
707 * macroscope.c (sal_macro_scope): Likewise.
708 * macrotab.c (new_macro_table): Likewise.
709 * mdebugread.c (push_parse_stack): Likewise.
710 (parse_partial_symbols): Likewise.
711 (parse_symbol): Likewise.
712 (psymtab_to_symtab_1): Likewise.
713 (new_block): Likewise.
714 (new_psymtab): Likewise.
715 (mdebug_build_psymtabs): Likewise.
716 (add_pending): Likewise.
717 (elfmdebug_build_psymtabs): Likewise.
718 * mep-tdep.c (mep_gdbarch_init): Likewise.
719 * mi/mi-main.c (mi_execute_command): Likewise.
720 * mi/mi-parse.c (mi_parse_argv): Likewise.
721 * minidebug.c (lzma_open): Likewise.
722 * minsyms.c (terminate_minimal_symbol_table): Likewise.
723 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
724 * mips-tdep.c (mips_gdbarch_init): Likewise.
725 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
726 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
727 * mt-tdep.c (mt_registers_info): Likewise.
728 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
729 * nat/linux-btrace.c (linux_enable_bts): Likewise.
730 (linux_enable_pt): Likewise.
731 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
732 (linux_xfer_osdata_processgroups): Likewise.
733 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
734 * nto-procfs.c (procfs_meminfo): Likewise.
735 * objc-lang.c (start_msglist): Likewise.
736 (selectors_info): Likewise.
737 (classes_info): Likewise.
738 (find_methods): Likewise.
739 * objfiles.c (allocate_objfile): Likewise.
740 (update_section_map): Likewise.
741 * osabi.c (gdbarch_register_osabi): Likewise.
742 (gdbarch_register_osabi_sniffer): Likewise.
743 * parse.c (start_arglist): Likewise.
744 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
745 (hwdebug_insert_point): Likewise.
746 * printcmd.c (display_command): Likewise.
747 (ui_printf): Likewise.
748 * procfs.c (create_procinfo): Likewise.
749 (load_syscalls): Likewise.
750 (proc_get_LDT_entry): Likewise.
751 (proc_update_threads): Likewise.
752 * prologue-value.c (make_pv_area): Likewise.
753 (pv_area_store): Likewise.
754 * psymtab.c (extend_psymbol_list): Likewise.
755 (init_psymbol_list): Likewise.
756 (allocate_psymtab): Likewise.
757 * python/py-inferior.c (add_thread_object): Likewise.
758 * python/py-param.c (compute_enum_values): Likewise.
759 * python/py-value.c (valpy_call): Likewise.
760 * python/py-varobj.c (py_varobj_iter_next): Likewise.
761 * python/python.c (ensure_python_env): Likewise.
762 * record-btrace.c (record_btrace_start_replaying): Likewise.
763 * record-full.c (record_full_reg_alloc): Likewise.
764 (record_full_mem_alloc): Likewise.
765 (record_full_end_alloc): Likewise.
766 (record_full_core_xfer_partial): Likewise.
767 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
768 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
769 * remote-notif.c (remote_notif_state_allocate): Likewise.
770 * remote.c (demand_private_info): Likewise.
771 (remote_notif_stop_alloc_reply): Likewise.
772 (remote_enable_btrace): Likewise.
773 * reverse.c (save_bookmark_command): Likewise.
774 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
775 * rx-tdep.c (rx_gdbarch_init): Likewise.
776 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
777 * ser-go32.c (dos_get_tty_state): Likewise.
778 (dos_copy_tty_state): Likewise.
779 * ser-mingw.c (ser_windows_open): Likewise.
780 (ser_console_wait_handle): Likewise.
781 (ser_console_get_tty_state): Likewise.
782 (make_pipe_state): Likewise.
783 (net_windows_open): Likewise.
784 * ser-unix.c (hardwire_get_tty_state): Likewise.
785 (hardwire_copy_tty_state): Likewise.
786 * solib-aix.c (solib_aix_new_lm_info): Likewise.
787 * solib-dsbt.c (dsbt_current_sos): Likewise.
788 (dsbt_relocate_main_executable): Likewise.
789 * solib-frv.c (frv_current_sos): Likewise.
790 (frv_relocate_main_executable): Likewise.
791 * solib-spu.c (spu_bfd_fopen): Likewise.
792 * solib-svr4.c (lm_info_read): Likewise.
793 (svr4_copy_library_list): Likewise.
794 (svr4_default_sos): Likewise.
795 * source.c (find_source_lines): Likewise.
796 (line_info): Likewise.
797 (add_substitute_path_rule): Likewise.
798 * spu-linux-nat.c (spu_bfd_open): Likewise.
799 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
800 * stabsread.c (dbx_lookup_type): Likewise.
801 (read_type): Likewise.
802 (read_member_functions): Likewise.
803 (read_struct_fields): Likewise.
804 (read_baseclasses): Likewise.
805 (read_args): Likewise.
806 (_initialize_stabsread): Likewise.
807 * stack.c (func_command): Likewise.
808 * stap-probe.c (handle_stap_probe): Likewise.
809 * symfile.c (addrs_section_sort): Likewise.
810 (addr_info_make_relative): Likewise.
811 (load_section_callback): Likewise.
812 (add_symbol_file_command): Likewise.
813 (init_filename_language_table): Likewise.
814 * symtab.c (create_filename_seen_cache): Likewise.
815 (sort_search_symbols_remove_dups): Likewise.
816 (search_symbols): Likewise.
817 * target.c (make_cleanup_restore_target_terminal): Likewise.
818 * thread.c (new_thread): Likewise.
819 (enable_thread_stack_temporaries): Likewise.
820 (make_cleanup_restore_current_thread): Likewise.
821 (thread_apply_all_command): Likewise.
822 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
823 * top.c (gdb_readline_wrapper): Likewise.
824 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
825 * tracepoint.c (trace_find_line_command): Likewise.
826 (all_tracepoint_actions_and_cleanup): Likewise.
827 (make_cleanup_restore_current_traceframe): Likewise.
828 (get_uploaded_tp): Likewise.
829 (get_uploaded_tsv): Likewise.
830 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
831 (tui_alloc_win_info): Likewise.
832 (tui_alloc_content): Likewise.
833 (tui_add_content_elements): Likewise.
834 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
835 (tui_set_disassem_content): Likewise.
836 * ui-file.c (ui_file_new): Likewise.
837 (stdio_file_new): Likewise.
838 (tee_file_new): Likewise.
839 * utils.c (make_cleanup_restore_integer): Likewise.
840 (add_internal_problem_command): Likewise.
841 * v850-tdep.c (v850_gdbarch_init): Likewise.
842 * valops.c (find_oload_champ): Likewise.
843 * value.c (allocate_value_lazy): Likewise.
844 (record_latest_value): Likewise.
845 (create_internalvar): Likewise.
846 * varobj.c (install_variable): Likewise.
847 (new_variable): Likewise.
848 (new_root_variable): Likewise.
849 (cppush): Likewise.
850 (_initialize_varobj): Likewise.
851 * windows-nat.c (windows_make_so): Likewise.
852 * x86-nat.c (x86_add_process): Likewise.
853 * xcoffread.c (arrange_linetable): Likewise.
854 (allocate_include_entry): Likewise.
855 (process_linenos): Likewise.
856 (SYMBOL_DUP): Likewise.
857 (xcoff_start_psymtab): Likewise.
858 (xcoff_end_psymtab): Likewise.
859 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
860 * xtensa-tdep.c (xtensa_register_type): Likewise.
861 * gdbarch.c: Regenerate.
862 * gdbarch.h: Regenerate.
863
17d8546e
DB
8642015-08-25 Don Breazeal <donb@codesourcery.com>
865
866 * infrun.c (follow_exec): Re-order operations for
867 handling follow-exec-mode "new".
868 (handle_inferior_event_1): Assign ecs->event_thread
869 to the current thread.
870 * remote.c (get_remote_arch_state): Add an assertion.
871
ba49e44b
PA
8722015-08-26 Pedro Alves <palves@redhat.com>
873
874 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
875
7541ab03 8762015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 877
7541ab03 878 PR gdb/18804
abc56d60
PA
879 * defs.h (maybe_quit): Declare.
880 (QUIT): Now calls maybe_quit.
881 * event-loop.c (clear_async_signal_handler)
882 (async_signal_handler_is_marked): New functions.
883 * event-loop.h (async_signal_handler_is_marked)
884 (clear_async_signal_handler): New declarations.
885 * remote.c (remote_check_pending_interrupt): New function.
886 (interrupt_query): Use make_cleanup_restore_target_terminal. No
887 longer check whether the target is async. If waiting for a stop
888 reply, and a Ctrl-C as been sent to the target, offer to
889 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
890 Otherwise do not disconnect and throw a quit.
891 (_initialize_remote): Install remote_check_pending_interrupt as
892 to_check_pending_interrupt.
893 * target.c (target_check_pending_interrupt): New function.
894 * target.h (struct target_ops) <to_check_pending_interrupt>: New
895 field.
896 (target_check_pending_interrupt): New declaration.
897 * utils.c (maybe_quit): New function.
898 * target-delegates.c: Regenerate.
899
dfe7f77c
YQ
9002015-08-25 Yao Qi <yao.qi@linaro.org>
901
902 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
903 Rename local variable pid to tid, and get lwpid of lwp. Update
904 debug output.
905
63e43d3a
PMR
9062015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
907
908 * ada-lang.c (ada_read_var_value): Add a var_block argument
909 and pass it to default_read_var_value.
910 * block.c (block_static_link): New accessor.
911 * block.h (block_static_link): Declare it.
912 * buildsym.c (finish_block_internal): Add a static_link
913 argument. If there is a static link, associate it to the new
914 block.
915 (finish_block): Add a static link argument and pass it to
916 finish_block_internal.
917 (end_symtab_get_static_block): Update calls to finish_block and
918 to finish_block_internal.
919 (end_symtab_with_blockvector): Update call to
920 finish_block_internal.
921 * buildsym.h: Forward-declare struct dynamic_prop.
922 (struct context_stack): Add a static_link field.
923 (finish_block): Add a static link argument.
924 * c-exp.y: Remove an obsolete comment (evaluation of variables
925 already start from the selected frame, and now they climb *up*
926 the call stack) and propagate the block information to the
927 produced expression.
928 * d-exp.y: Likewise.
929 * f-exp.y: Likewise.
930 * go-exp.y: Likewise.
931 * jv-exp.y: Likewise.
932 * m2-exp.y: Likewise.
933 * p-exp.y: Likewise.
934 * coffread.c (coff_symtab_read): Update calls to finish_block.
935 * dbxread.c (process_one_symbol): Likewise.
936 * xcoffread.c (read_xcoff_symtab): Likewise.
937 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
938 "sym" parameter to struct block_symbol, update its uses and pass
939 its block to calls to read_var_value.
940 (convert_symbol_sym): Update the calls to convert_one_symbol.
941 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
942 call to read_var_value.
943 * dwarf2loc.c (block_op_get_frame_base): New.
944 (dwarf2_block_frame_base_locexpr_funcs): Implement the
945 get_frame_base method.
946 (dwarf2_block_frame_base_loclist_funcs): Likewise.
947 (dwarf2locexpr_baton_eval): Add a frame argument and use it
948 instead of the selected frame in order to evaluate the
949 expression.
950 (dwarf2_evaluate_property): Add a frame argument. Update call
951 to dwarf2_locexpr_baton_eval to provide a frame in available and
952 to handle the absence of address stack.
953 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
954 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
955 declaration.
956 (read_func_scope): Record any available static link description.
957 Update call to finish_block.
958 (read_lexical_block_scope): Update call to finish_block.
959 * findvar.c (follow_static_link): New.
960 (get_hosting_frame): New.
961 (default_read_var_value): Add a var_block argument. Use
962 get_hosting_frame to handle non-local references.
963 (read_var_value): Add a var_block argument and pass it to the
964 LA_READ_VAR_VALUE method.
965 * gdbtypes.c (resolve_dynamic_range): Update calls to
966 dwarf2_evaluate_property.
967 (resolve_dynamic_type_internal): Likewise.
968 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
969 read_var_value, passing it the block coming from symbol lookup.
970 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
971 read_var_value (TODO).
972 * infcmd.c (finish_command_continuation): Update call to
973 read_var_value, passing it the block coming from symbol lookup.
974 * infrun.c (insert_exception_resume_breakpoint): Likewise.
975 * language.h (struct language_defn): Add a var_block argument to
976 the LA_READ_VAR_VALUE method.
977 * objfiles.c (struct static_link_htab_entry): New.
978 (static_link_htab_entry_hash): New.
979 (static_link_htab_entry_eq): New.
980 (objfile_register_static_link): New.
981 (objfile_lookup_static_link): New.
982 (free_objfile): Free the STATIC_LINKS hashed map if needed.
983 * objfiles.h: Include hashtab.h.
984 (struct objfile): Add a static_links field.
985 (objfile_register_static_link): New.
986 (objfile_lookup_static_link): New.
987 * printcmd.c (print_variable_and_value): Update call to
988 read_var_value.
989 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
990 * python/py-frame.c (frapy_read_var): Update call to
991 read_var_value, passing it the block coming from symbol lookup.
992 * python/py-framefilter.c (extract_sym): Add a sym_block
993 parameter and set the pointed value to NULL (TODO).
994 (enumerate_args): Update call to extract_sym.
995 (enumerate_locals): Update calls to extract_sym and to
996 read_var_value.
997 * python/py-symbol.c (sympy_value): Update call to
998 read_var_value (TODO).
999 * stack.c (read_frame_local): Update call to read_var_value.
1000 (read_frame_arg): Likewise.
1001 (return_command): Likewise.
1002 * symtab.h (struct symbol_block_ops): Add a get_frame_base
1003 method.
1004 (struct symbol): Add a block field.
1005 (SYMBOL_BLOCK): New accessor.
1006 * valops.c (value_of_variable): Remove frame/block handling and
1007 pass the block argument to read_var_value, which does this job
1008 now.
1009 (value_struct_elt_for_reference): Update calls to
1010 read_var_value.
1011 (value_of_this): Pass the block found to read_var_value.
1012 * value.h (read_var_value): Add a var_block argument.
1013 (default_read_var_value): Likewise.
1014
ed8b7b42
YQ
10152015-08-25 Yao Qi <yao.qi@linaro.org>
1016
1017 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
1018 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
1019 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
1020
db3cb7cb
YQ
10212015-08-25 Yao Qi <yao.qi@linaro.org>
1022
1023 * Makefile.in (aarch64-liunx.o): New rule.
1024 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
1025 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
1026 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
1027 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
1028 extern.
1029 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
1030 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
1031 * nat/aarch64-linux.c: New file.
1032 * nat/aarch64-linux.h: New file.
1033
f6011a1c
YQ
10342015-08-25 Yao Qi <yao.qi@linaro.org>
1035
1036 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
1037 lwp_arch_private_info and ptid_of_lwp.
1038
5e35436e
YQ
10392015-08-25 Yao Qi <yao.qi@linaro.org>
1040
1041 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
1042 Move it to nat/aarch64-linux-hw-point.c.
1043 (debug_reg_change_callback): Likewise.
1044 (aarch64_notify_debug_reg_change): :Likewise.
1045 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
1046 (aarch64_dr_update_callback_param): New.
1047 (debug_reg_change_callback): New function.
1048 (aarch64_notify_debug_reg_change): Likewise.
1049 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
1050 Remove the declaration.
1051
4a8a7965
YQ
10522015-08-25 Yao Qi <yao.qi@linaro.org>
1053
1054 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
1055 Call current_lwp_ptid.
1056
32a271ee
YQ
10572015-08-25 Yao Qi <yao.qi@linaro.org>
1058
1059 * aarch64-linux-nat.c (debug_reg_change_callback): Use
1060 debug_printf.
1061
5e137137
YQ
10622015-08-25 Yao Qi <yao.qi@linaro.org>
1063
1064 * aarch64-linux-nat.c (debug_reg_change_callback): Call
1065 ptid_get_pid rather than ptid_get_lwp.
1066
73b8c1fd
PA
10672015-08-24 Pedro Alves <palves@redhat.com>
1068
1069 * NEWS (New commands): Mention set/show remote
1070 multiprocess-extensions-packet.
1071 * remote.c (remote_query_supported): Only tell the server to use
1072 the multiprocess extensions if the user hasn't force-disabled them
1073 with "set remote multiprocess-extensions-packet off".
1074
4a626d0a
PA
10752015-08-24 Pedro Alves <palves@redhat.com>
1076
1077 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1078 1029a8112290f6eee9d7878a391c49db42c999bd.
1079 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
1080 Regenerate.
1081 * gnulib/import/Makefile.am: Update.
1082 * gnulib/import/Makefile.in: Update.
1083 * gnulib/import/alloca.in.h: Update.
1084 * gnulib/import/basename-lgpl.c: Update.
1085 * gnulib/import/canonicalize-lgpl.c: Update.
1086 * gnulib/import/config.charset: Update.
1087 * gnulib/import/dirent.in.h: Update.
1088 * gnulib/import/dirfd.c: Update.
1089 * gnulib/import/dirname-lgpl.c: Update.
1090 * gnulib/import/dirname.h: Update.
1091 * gnulib/import/dosname.h: Update.
1092 * gnulib/import/errno.in.h: Update.
1093 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
1094 * gnulib/import/extra/snippet/c++defs.h: Update.
1095 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1096 * gnulib/import/extra/update-copyright: Update.
1097 * gnulib/import/float+.h: Update.
1098 * gnulib/import/float.c: Update.
1099 * gnulib/import/float.in.h: Update.
1100 * gnulib/import/fnmatch.c: Update.
1101 * gnulib/import/fnmatch.in.h: Update.
1102 * gnulib/import/fnmatch_loop.c: Update.
1103 * gnulib/import/fpucw.h: Update.
1104 * gnulib/import/frexp.c: Update.
1105 * gnulib/import/frexpl.c: Update.
1106 * gnulib/import/gettimeofday.c: Update.
1107 * gnulib/import/inttypes.in.h: Update.
1108 * gnulib/import/isnan.c: Update.
1109 * gnulib/import/isnand-nolibm.h: Update.
1110 * gnulib/import/isnand.c: Update.
1111 * gnulib/import/isnanl-nolibm.h: Update.
1112 * gnulib/import/isnanl.c: Update.
1113 * gnulib/import/itold.c: Update.
1114 * gnulib/import/localcharset.c: Update.
1115 * gnulib/import/localcharset.h: Update.
1116 * gnulib/import/lstat.c: Update.
1117 * gnulib/import/m4/00gnulib.m4: Update.
1118 * gnulib/import/m4/absolute-header.m4: Update.
1119 * gnulib/import/m4/alloca.m4: Update.
1120 * gnulib/import/m4/canonicalize.m4: Update.
1121 * gnulib/import/m4/codeset.m4: Update.
1122 * gnulib/import/m4/configmake.m4: Update.
1123 * gnulib/import/m4/dirent_h.m4: Update.
1124 * gnulib/import/m4/dirfd.m4: Update.
1125 * gnulib/import/m4/dirname.m4: Update.
1126 * gnulib/import/m4/double-slash-root.m4: Update.
1127 * gnulib/import/m4/eealloc.m4: Update.
1128 * gnulib/import/m4/errno_h.m4: Update.
1129 * gnulib/import/m4/exponentd.m4: Update.
1130 * gnulib/import/m4/exponentl.m4: Update.
1131 * gnulib/import/m4/extensions.m4: Update.
1132 * gnulib/import/m4/extern-inline.m4: Update.
1133 * gnulib/import/m4/fcntl-o.m4: Update.
1134 * gnulib/import/m4/float_h.m4: Update.
1135 * gnulib/import/m4/fnmatch.m4: Update.
1136 * gnulib/import/m4/fpieee.m4: Update.
1137 * gnulib/import/m4/frexp.m4: Update.
1138 * gnulib/import/m4/frexpl.m4: Update.
1139 * gnulib/import/m4/gettimeofday.m4: Update.
1140 * gnulib/import/m4/glibc21.m4: Update.
1141 * gnulib/import/m4/gnulib-cache.m4: Update.
1142 * gnulib/import/m4/gnulib-common.m4: Update.
1143 * gnulib/import/m4/gnulib-comp.m4: Update.
1144 * gnulib/import/m4/gnulib-tool.m4: Update.
1145 * gnulib/import/m4/include_next.m4: Update.
1146 * gnulib/import/m4/inttypes-pri.m4: Update.
1147 * gnulib/import/m4/inttypes.m4: Update.
1148 * gnulib/import/m4/isnand.m4: Update.
1149 * gnulib/import/m4/isnanl.m4: Update.
1150 * gnulib/import/m4/largefile.m4: Update.
1151 * gnulib/import/m4/localcharset.m4: Update.
1152 * gnulib/import/m4/locale-fr.m4: Update.
1153 * gnulib/import/m4/locale-ja.m4: Update.
1154 * gnulib/import/m4/locale-zh.m4: Update.
1155 * gnulib/import/m4/longlong.m4: Update.
1156 * gnulib/import/m4/lstat.m4: Update.
1157 * gnulib/import/m4/malloc.m4: Update.
1158 * gnulib/import/m4/malloca.m4: Update.
1159 * gnulib/import/m4/math_h.m4: Update.
1160 * gnulib/import/m4/mbrtowc.m4: Update.
1161 * gnulib/import/m4/mbsinit.m4: Update.
1162 * gnulib/import/m4/mbsrtowcs.m4: Update.
1163 * gnulib/import/m4/mbstate_t.m4: Update.
1164 * gnulib/import/m4/memchr.m4: Update.
1165 * gnulib/import/m4/memmem.m4: Update.
1166 * gnulib/import/m4/mmap-anon.m4: Update.
1167 * gnulib/import/m4/multiarch.m4: Update.
1168 * gnulib/import/m4/nocrash.m4: Update.
1169 * gnulib/import/m4/off_t.m4: Update.
1170 * gnulib/import/m4/pathmax.m4: Update.
1171 * gnulib/import/m4/readlink.m4: Update.
1172 * gnulib/import/m4/rename.m4: Update.
1173 * gnulib/import/m4/rmdir.m4: Update.
1174 * gnulib/import/m4/ssize_t.m4: Update.
1175 * gnulib/import/m4/stat.m4: Update.
1176 * gnulib/import/m4/stdbool.m4: Update.
1177 * gnulib/import/m4/stddef_h.m4: Update.
1178 * gnulib/import/m4/stdint.m4: Update.
1179 * gnulib/import/m4/stdio_h.m4: Update.
1180 * gnulib/import/m4/stdlib_h.m4: Update.
1181 * gnulib/import/m4/string_h.m4: Update.
1182 * gnulib/import/m4/strstr.m4: Update.
1183 * gnulib/import/m4/strtok_r.m4: Update.
1184 * gnulib/import/m4/sys_socket_h.m4: Update.
1185 * gnulib/import/m4/sys_stat_h.m4: Update.
1186 * gnulib/import/m4/sys_time_h.m4: Update.
1187 * gnulib/import/m4/sys_types_h.m4: Update.
1188 * gnulib/import/m4/time_h.m4: Update.
1189 * gnulib/import/m4/unistd_h.m4: Update.
1190 * gnulib/import/m4/warn-on-use.m4: Update.
1191 * gnulib/import/m4/wchar_h.m4: Update.
1192 * gnulib/import/m4/wchar_t.m4: Update.
1193 * gnulib/import/m4/wctype_h.m4: Update.
1194 * gnulib/import/m4/wint_t.m4: Update.
1195 * gnulib/import/malloc.c: Update.
1196 * gnulib/import/malloca.c: Update.
1197 * gnulib/import/malloca.h: Update.
1198 * gnulib/import/math.in.h: Update.
1199 * gnulib/import/mbrtowc.c: Update.
1200 * gnulib/import/mbsinit.c: Update.
1201 * gnulib/import/mbsrtowcs-impl.h: Update.
1202 * gnulib/import/mbsrtowcs-state.c: Update.
1203 * gnulib/import/mbsrtowcs.c: Update.
1204 * gnulib/import/memchr.c: Update.
1205 * gnulib/import/memmem.c: Update.
1206 * gnulib/import/pathmax.h: Update.
1207 * gnulib/import/readlink.c: Update.
1208 * gnulib/import/ref-add.sin: Update.
1209 * gnulib/import/ref-del.sin: Update.
1210 * gnulib/import/rename.c: Update.
1211 * gnulib/import/rmdir.c: Update.
1212 * gnulib/import/same-inode.h: Update.
1213 * gnulib/import/stat.c: Update.
1214 * gnulib/import/stdbool.in.h: Update.
1215 * gnulib/import/stddef.in.h: Update.
1216 * gnulib/import/stdint.in.h: Update.
1217 * gnulib/import/stdio.c: Update.
1218 * gnulib/import/stdio.in.h: Update.
1219 * gnulib/import/stdlib.in.h: Update.
1220 * gnulib/import/str-two-way.h: Update.
1221 * gnulib/import/streq.h: Update.
1222 * gnulib/import/string.in.h: Update.
1223 * gnulib/import/stripslash.c: Update.
1224 * gnulib/import/strnlen1.c: Update.
1225 * gnulib/import/strnlen1.h: Update.
1226 * gnulib/import/strstr.c: Update.
1227 * gnulib/import/strtok_r.c: Update.
1228 * gnulib/import/sys_stat.in.h: Update.
1229 * gnulib/import/sys_time.in.h: Update.
1230 * gnulib/import/sys_types.in.h: Update.
1231 * gnulib/import/time.in.h: Update.
1232 * gnulib/import/unistd.in.h: Update.
1233 * gnulib/import/verify.h: Update.
1234 * gnulib/import/wchar.in.h: Update.
1235 * gnulib/import/wctype.in.h: Update.
1236 * gnulib/import/gettimeofday.c: New file.
1237 * gnulib/import/m4/absolute-header.m4: New file.
1238 * gnulib/import/m4/gettimeofday.m4: New file.
1239 * gnulib/import/m4/sys_socket_h.m4: New file.
1240 * gnulib/import/m4/sys_time_h.m4: New file.
1241 * gnulib/import/stdio.c: Delete file.
1242 * gnulib/import/sys_time.in.h: New file.
1243
438e1e42
PA
12442015-08-24 Pedro Alves <palves@redhat.com>
1245
1246 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
1247 * common/gdb_sys_time.h: New file.
1248 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
1249 * gdb_select.h: Likewise.
1250 * gdb_usleep.c: Likewise.
1251 * maint.c: Likewise.
1252 * mi/mi-main.c: Likewise.
1253 * mi/mi-parse.h: Likewise.
1254 * remote-fileio.c: Likewise.
1255 * remote-m32r-sdi.c: Likewise.
1256 * remote.c: Likewise.
1257 * ser-base.c: Likewise.
1258 * ser-pipe.c: Likewise.
1259 * ser-tcp.c: Likewise.
1260 * ser-unix.c: Likewise.
1261 * symfile.c: Likewise.
1262 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
1263 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
1264 * utils.c: Likewise.
1265
40e0b271
PA
12662015-08-24 Pedro Alves <palves@redhat.com>
1267
1268 * NEWS: Mention removed support for the various ROM monitors.
1269 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
1270 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
1271 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
1272 gdb_target_obs.
1273 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
1274 gdb_target_obs.
1275 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
1276 dsrec.o from gdb_target_obs.
1277 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
1278 from gdb_target_obs.
1279 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
1280 gdb_target_obs.
1281 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
1282 dink32-rom.o from gdb_target_obs.
1283 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
1284 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
1285 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
1286 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
1287
f8904751
PA
12882015-08-21 Pedro Alves <palves@redhat.com>
1289
1290 * frame.c (null_frame_id): Explicitly zero-initialize.
1291
049412e3
TT
12922015-08-21 Tom Tromey <tromey@redhat.com>
1293
1294 * dwarf2read.c (struct dwarf2_section_info): Rename field
1295 'asection' to 'section'.
1296 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
1297 (dwarf2_locate_sections, dwarf2_locate_sections)
1298 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
1299 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
1300 (dwarf2_locate_v2_dwp_sections): Adjust.
1301
948578a9
PP
13022015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1303
1304 * top.h (gdb_in_secondary_prompt_p): Declare.
1305 * top.c (gdb_secondary_prompt_depth): Define.
1306 (gdb_in_secondary_prompt_p): Define.
1307 (gdb_readline_wrapper_cleanup): Decrement
1308 gdb_secondary_prompt_depth.
1309 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
1310 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
1311 are in a secondary prompt.
1312
7a8bcb88
PP
13132015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1314
1315 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
1316 emit the newline.
1317
2d7711a3
GB
13182015-08-21 Gary Benson <gbenson@redhat.com>
1319
1320 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
1321
4313b8c0
GB
13222015-08-21 Gary Benson <gbenson@redhat.com>
1323
1324 * target.h (struct target_ops) <to_fileio_open>: New argument
1325 warn_if_slow. Update comment. All implementations updated.
1326 (target_fileio_open_warn_if_slow): New declaration.
1327 * target.c (target_fileio_open): Renamed as...
1328 (target_fileio_open_1): ...this. New argument warn_if_slow.
1329 Pass warn_if_slow to implementation. Update debug printing.
1330 (target_fileio_open): New function.
1331 (target_fileio_open_warn_if_slow): Likewise.
1332 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
1333 target_fileio_open_warn_if_slow.
1334
f36b8719
GB
13352015-08-21 Gary Benson <gbenson@redhat.com>
1336
1337 * nat/linux-namespaces.c (linux_mntns_access_fs):
1338 Do not overwrite old_chain.
1339
40045d91
MF
13402015-08-20 Max Filippov <jcmvbkbc@gmail.com>
1341
1342 * arch/xtensa.h: New file.
1343 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
1344 (ps_get_thread_area): New function.
1345 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
1346 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
1347 * xtensa-tdep.c (osabi.h): New #include.
1348 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
1349 xtensa-specific hooks.
1350 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
1351 member and move the structure to arch/xtensa.h.
1352
80152258
PA
13532015-08-21 Pedro Alves <palves@redhat.com>
1354
1355 * remote.c (struct readahead_cache): New.
1356 (struct remote_state) <readahead_cache>: New field.
1357 (remote_open_1): Invalidate the cache.
1358 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
1359 functions.
1360 (remote_hostio_pwrite): Invalidate the readahead cache.
1361 (remote_hostio_pread): Rename to ...
1362 (remote_hostio_pread_vFile): ... this.
1363 (remote_hostio_pread_from_cache): New function.
1364 (remote_hostio_pread): Reimplement.
1365 (remote_hostio_close): Invalidate the readahead cache.
1366
88fc5eb7
MC
13672015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
1368
1369 PR build/18843
1370 * procfs.c: Include "filestuff.h".
1371
6f1cb6ea
PP
13722015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1373
1374 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
1375 curch.
1376 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
1377 cur_line or curch, instead call wmove().
1378 (init_win_info) [CMD_WIN]: Likewise.
1379 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
1380 instead call getcury().
1381 (tui_redisplay_readline): Don't set cur_line or curch.
1382 (tui_mld_erase_entire_line): Don't read cur_line, instead call
1383 getcury().
1384 (tui_cont_sig): Remove call to wmove.
1385 (tui_getc): Don't read cur_line or curch, instead call getcury()
1386 or getyx(). Don't set curch.
1387 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
1388 set cur_line or curch. Always move cursor to (0,0).
1389
221e1a37
PA
13902015-08-20 Pedro Alves <palves@redhat.com>
1391
1392 * infrun.c (print_target_wait_results): Make extern.
1393 * infrun.h (print_target_wait_results): Declare.
1394 * remote.c (set_stop_requested_callback): Delete.
1395 (process_initial_stop_replies): New function.
1396 (remote_start_remote): Use it.
1397 (stop_reply_queue_length): New function.
1398
40e3ad0e
PA
13992015-08-20 Pedro Alves <palves@redhat.com>
1400
1401 * dwarf2read.c (process_full_comp_unit): To tell whether
1402 start_subfile managed to deduce a language, test for
1403 language_unknown instead of language_c.
1404
af39b327
PMR
14052015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
1406
1407 * ada-lex.l: Reset the start condition to INITIAL in the rule that
1408 matches attributes.
1409
7d45c7c3
KB
14102015-08-19 Kevin Buettner <kevinb@redhat.com>
1411
1412 * dwarf2read.c (dwarf2_string_attr): New function.
1413 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
1414 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
1415 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
1416 (anonymous_struct_prefix, prepare_one_comp_unit): Use
1417 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
1418
4d6cceb4
DE
14192015-08-18 Doug Evans <dje@google.com>
1420 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1421
1422 PR mi/18833
1423 * cli/cli-logging.c (pop_output_files): Don't restore redirection
1424 if MI-like.
1425 * mi/mi-out.c: #include "vec.h".
1426 (ui_filep): New type.
1427 (DEV_VEC_P (ui_filep)): New type.
1428 (struct ui_out_data) <buffer, original_buffer>: Delete.
1429 (struct ui_out_data) <streams>: New member.
1430 (mi_ui_out_impl): Add data_destroy field.
1431 (mi_field_string, mi_field_fmt): Update.
1432 (mi_flush, mi_redirect, field_separator): Update.
1433 (mi_open, mi_close): Update.
1434 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
1435 (mi_out_data_ctor, mi_out_data_dtor): New functions.
1436 (mi_out_new): Call mi_out_data_ctor.
1437
26d56a93
SL
14382015-08-18 Sandra Loosemore <sandra@codesourcery.com>
1439
1440 * remote.c (strprefix): New.
1441 (remote_parse_stop_reply): Use strprefix instead of strncmp
1442 to ensure exact match of keyword.
1443
566f5e3b
AB
14442015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1445
1446 * gdb_bfd.c (debug_bfd_cache): New variable.
1447 (show_bfd_cache_debug): New function.
1448 (gdb_bfd_open): Add debug logging.
1449 (gdb_bfd_ref): Likewise.
1450 (gdb_bfd_unref): Likewise.
1451 (_initialize_gdb_bfd): Add new set/show command.
1452 * NEWS: Mention new command.
1453
18989b3c
AB
14542015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1455
1456 * gdb_bfd.c (bfd_sharing): New variable.
1457 (show_bfd_sharing): New function.
1458 (gdb_bfd_open): Check bfd_sharing variable.
1459 (_initialize_gdb_bfd): Add new set/show command.
1460 * NEWS: Mention new command.
1461
c04fe68f
AB
14622015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1463
1464 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
1465 field.
1466 (struct gdb_bfd_cache_search): Likewise.
1467 (eq_bfd): Compare the size, inode, and device id fields.
1468 (gdb_bfd_open): Initialise the size, inode, and device id fields.
1469 (gdb_bfd_ref): Likewise.
1470 (gdb_bfd_unref): Likewise.
1471
b2a33439
PA
14722015-08-18 Pedro Alves <palves@redhat.com>
1473
1474 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
1475 target implements to_always_non_stop_p, call it.
1476 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
1477 (x86_linux_create_target): Install it as to_always_non_stop_p
1478 method.
1479
71b57e37
DE
14802015-08-17 Doug Evans <dje@google.com>
1481
1482 * ui-out.c (default_ui_out_impl): Add comment.
1483
7f3706eb
IB
14842015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
1485
1486 * d-exp.y (type_aggregate_p): New function.
1487 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
1488 (classify_inner_name): Likewise.
1489 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
1490
1762568f
DE
14912015-08-15 Doug Evans <xdje42@gmail.com>
1492
1493 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
1494 updated.
1495 (add_psymbol_to_list): Ditto.
1496
8763cede
DE
14972015-08-15 Doug Evans <xdje42@gmail.com>
1498
1499 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
1500 updated. Call end_psymtab_common.
1501 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
1502 end_psymtab_common.
1503 (build_type_psymtabs_reader): Ditto.
1504 * psympriv.h (sort_pst_symbols): Delete.
1505 (end_psymtab_common): Declare.
1506 * psymtab.c (sort_pst_symbols): Make static.
1507 (end_psymtab_common): New function.
1508 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
1509
51cdc993
DE
15102015-08-15 Doug Evans <xdje42@gmail.com>
1511
1512 * defs.h (LANGUAGE_BITS): Define.
1513 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
1514 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
1515 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
1516 (minimal_symbol_type): Add nr_minsym_types.
1517 (MINSYM_TYPE_BITS): Define.
1518 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
1519 (domain_enum_tag): Add NR_DOMAINS.
1520 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
1521 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
1522
95cf5869
DE
15232015-08-15 Doug Evans <xdje42@gmail.com>
1524
1525 * objfiles.h: Whitespace cleanup.
1526 * psympriv.h: Whitespace cleanup.
1527 * psymtab.c: Whitespace/coding convention cleanup.
1528
e3ae3c43
PP
15292015-08-15 Patrick Palka <patrick@parcs.ath.cx>
1530
1531 * inferior.c (detach_inferior_command): Don't call
1532 any_thread_of_process when pid is 0.
1533 (kill_inferior_command): Likewise.
1534
6ff0ba5f
DE
15352015-08-14 Doug Evans <xdje42@gmail.com>
1536
1537 PR gdb/11833
1538 * NEWS: Document new /s modifier for the disassemble command.
1539 * cli/cli-cmds.c (disassemble_command): Add support for /s.
1540 (_initialize_cli_cmds): Update online docs of disassemble command.
1541 * disasm.c: #include "source.h".
1542 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
1543 All uses updated.
1544 (dis_line_entry): New struct.
1545 (hash_dis_line_entry, eq_dis_line_entry): New functions.
1546 (allocate_dis_line_table): New functions.
1547 (maybe_add_dis_line_entry, line_has_code_p): New functions.
1548 (dump_insns): New arg end_pc. All callers updated.
1549 (do_mixed_source_and_assembly_deprecated): Renamed from
1550 do_mixed_source_and_assembly. All callers updated.
1551 (do_mixed_source_and_assembly): New function.
1552 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
1553 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
1554 DISASSEMBLY_SOURCE. All uses updated.
1555 (DISASSEMBLY_SOURCE): New macro.
1556 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
1557
b56ccc20
KS
15582015-08-14 Keith Seitz <keiths@redhat.com>
1559
1560 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
1561 `typename' to `type_name' to avoid C++ reserved word.
1562
ebdad8fc
KS
15632015-08-14 Keith Seitz <keiths@redhat.com>
1564
1565 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
1566 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
1567 silence ARI errors.
1568
c0fe2ae7
IB
15692015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
1570
1571 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
1572 xstrprintf instead of malloc and sprintf.
1573 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
1574 (lex_one_token): Likewise.
1575
a738da3a
MF
15762015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
1577
1578 * solib-svr4.c (read_program_header): Add base_addr argument to
1579 report the runtime address of the segment.
1580 (find_program_interpreter): Update read_program_header call to pass
1581 a NULL pointer for the new argument.
1582 (scan_dyntag): Add ptr_addr argument to report the runtime address
1583 of the tag payload.
1584 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
1585 read_program_header to get the base address of the dynamic segment.
1586 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
1587 read_program_header.
1588 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
1589
f8edc4ff
MF
15902015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
1591
1592 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
1593
444c1ed8
IB
15942015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
1595
1596 * d-exp.y (%union): Add voidval.
1597 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
1598 name in the lexing stage.
1599 (PostfixExpression): Move symbol completion handling in grammar here
1600 from PrimaryExpression.
1601 (PrimaryExpression): Move routines to handle resolving identifier
1602 tokens in the grammar here from push_expression_name.
1603 (IdentifierExp): Remove the handling of alternating '.' and identifier
1604 tokens.
1605 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
1606 (BasicType): Remove C-style typename rules.
1607 (d_type_from_name, d_module_from_name, push_variable)
1608 (push_fieldnames, push_type_name, push_module_name)
1609 (push_expression_name): Remove.
1610 (lex_one_token): Rename from yylex. Replace pstate with par_state.
1611 (token_and_value): New type.
1612 (token_fifo, popping, name_obstack): New globals.
1613 (classify_name): New function.
1614 (classify_inner_name): Likewise.
1615 (yylex): Likewise.
1616 (d_parse): Initialize token_fifo, popping and name_obstack.
1617
bc7c9fab
IB
16182015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
1619
1620 * Makefile.in (SFILES): Add d-namespace.c.
1621 (COMMON_OBS): Add d-namespace.o.
1622 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
1623 la_lookup_symbol_nonlocal callback function pointer.
1624 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
1625 (d_lookup_nested_symbol): New declaration.
1626 * d-namespace.c: New file.
1627
3207396b
PA
16282015-08-13 Pedro Alves <palves@redhat.com>
1629
1630 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
1631 cleanup after the decref cleanup, not before.
1632
5d8c3ed3
PMR
16332015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
1634
1635 * ada-lang.c: Include namespace.h
1636 (aux_add_nonlocal_symbols): Fix a function name in comment.
1637 (ada_add_block_renamings): New.
1638 (add_nonlocal_symbols): Add global renamings handling.
1639 (ada_lookup_symbol_list_worker): Move the symbol lookup part
1640 to...
1641 (ada_add_all_symbols): ... this new function.
1642 (ada_add_block_symbols): Try to match the input name against the
1643 "using directives list", perform a recursive symbol lookup on
1644 the matched declarations.
1645 * block.h (struct block): Move the_namespace to top-level as
1646 namespace_info. Remove the language_specific field.
1647 (BLOCK_NAMESPACE): Update access to the namespace_info field.
1648 * buildsym.h (using_directives): Rename into...
1649 (local_using_directives): ... this.
1650 (global_using_directives): New.
1651 (struct context_stack): Rename the using_directives field into
1652 local_using_directives.
1653 * buildsym.c (finish_block_internal): Deal with the proper
1654 using directives repository (local or global).
1655 (prepare_for_building): Reset local_using_directives. Assert
1656 that there is no pending global using directive.
1657 (reset_symtab_globals): Reset global_using_directives and
1658 local_using_directives.
1659 (end_symtab_get_static_block): Don't ignore symtabs that have
1660 only using directives.
1661 (push_context): Update references to local_using_directives.
1662 (buildsym_init): Do not reset using_directives.
1663 * cp-support.c: Include namespace.h.
1664 * cp-support.h (struct using_direct): Move to namespace.h.
1665 (cp_add_using_directives): Move to namespace.h.
1666 * cp-namespace.c: Include namespace.h
1667 (cp_add_using_directive): Move to namespace.c, rename it to
1668 add_using_directive, add a "using_directives" argument and use
1669 it as the pending using directives repository. All callers
1670 updated.
1671 * dwarf2read.c (using_directives): New.
1672 (read_import_statement): Call using_directives.
1673 (read_func_scope): Update references to local_using_directives.
1674 (read_lexical_block_scope): Likewise.
1675 (read_namespace): Update the heading comment, call
1676 using_directives.
1677 * namespace.h: New file.
1678 * namespace.c: New file.
1679 * Makefile.in (SFILES): Add namespace.c.
1680 (COMMON_OBS): Add namespace.o
1681
4dafcdeb
JB
16822015-08-12 Joel Brobecker <brobecker@adacore.com>
1683
1684 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
1685 compute RETADDR.
1686
67994074
KS
16872015-08-12 Keith Seitz <keiths@redhat.com>
1688
1689 * break-catch-throw.c (re_set_exception_catchpoint) Rename
1690 reserved C++ keyword "explicit" to "explicit_loc".
1691 * breakpoint.c (create_overlay_event_breakpoint)
1692 (create_longjmp_master_breakpoint)
1693 (create_std_terminate_master_breakpoint)
1694 (create_exception_master_breakpoint, update_static_tracepoint):
1695 Rename reserved C++ keyword "explicit" to "explicit_loc".
1696 * completer.c (collect_explicit_location_matches)
1697 (explicit_location_completer): Rename reserved C++ keyword
1698 "explicit" to "explicit_loc".
1699 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
1700 (canonicalize_linespec, create_sals_line_offset)
1701 (convert_linespec_to_sals, convert_explicit_location_to_sals)
1702 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
1703 "explicit" to "explicit_loc".
1704 * location.c (struct event_location) <explicit>: Rename to
1705 "explicit_loc".
1706 (initialize_explicit_location, new_explicit_location)
1707 (explicit_location_to_string_internal, explicit_location_to_linespec):
1708 Rename reserved C++ keyword "explicit" to "explicit_loc".
1709 * location.h (explicit_location_to_string)
1710 (explicit_location_to_linespec, initialize_explicit_location)
1711 (new_explicit_location): Rename reserved C++ keyword "explicit"
1712 to "explicit_loc".
1713 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
1714 keyword "explicit" to "explicit_loc".
1715
59ecaff3
KS
17162015-08-12 Keith Seitz <keiths@redhat.com>
1717
1718 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
1719 and only call decode_line_1 when it is non-NULL.
1720
244558af
LM
17212015-08-12 Luis Machado <lgustavo@codesourcery.com>
1722
1723 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
1724 location address is not meaningful.
1725 (breakpoint_address_is_meaningful): Update comment.
1726
629500fa
KS
17272015-08-11 Keith Seitz <keiths@redhat.com>
1728
1729 * NEWS: Mention explicit locations.
1730 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
1731 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
1732 (_initialize_breakpoint): Update documentation for
1733 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
1734
eb8c4e2e
KS
17352015-08-11 Keith Seitz <keiths@redhat.com>
1736
1737 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
1738 explicit locations, options "--source", "--function",
1739 "--label", and "--line".
1740
87f0e720
KS
17412015-08-11 Keith Seitz <keiths@redhat.com>
1742
1743 * completer.c: Include location.h.
1744 (enum match_type): New enum.
1745 (location_completer): Rename to ...
1746 (linespec_completer): ... this.
1747 (collect_explicit_location_matches, backup_text_ptr)
1748 (explicit_location_completer): New functions.
1749 (location_completer): "New" function; handle linespec
1750 and explicit location completions.
1751 (complete_line_internal): Remove all location completer-specific
1752 handling.
1753 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
1754 (find_toplevel_char): Export.
1755 (linespec_parse_line_offset): Export.
1756 Issue error if STRING is not numerical.
1757 (gdb_get_linespec_parser_quote_characters): New function.
1758 * linespec.h (linespec_parse_line_offset): Declare.
1759 (get_gdb_linespec_parser_quote_characters): Declare.
1760 (is_ada_operator): Declare.
1761 (find_toplevel_char): Declare.
1762 (linespec_lexer_lex_keyword): Declare.
1763 * location.c (explicit_to_event_location): New function.
1764 (explicit_location_lex_one): New function.
1765 (string_to_explicit_location): New function.
1766 (string_to_event_location): Handle explicit locations.
1767 * location.h (explicit_to_event_location): Declare.
1768 (string_to_explicit_location): Declare.
1769
00e52e53
KS
17702015-08-11 Keith Seitz <keiths@redhat.com>
1771
1772 * break-catch-throw.c (re_set_exception_catchpoint): Convert
1773 linespec into explicit location.
1774 * breakpoint.c (create_overlay_breakpoint)
1775 (create_longjmp_master_breakpoint)
1776 (create_std_terminate_master_breakpoint)
1777 (create_exception_master_breakpoint): Convert linespec into explicit
1778 location.
1779 (update_static_tracepoint): Convert linespec into explicit location.
1780 * linespec.c (enum offset_relative_sign, struct line_offset): Move
1781 location.h.
1782 (struct linespec) <expression, expr_pc, source_filename>
1783 <function_name, label_name, line_offset>: Replace with ...
1784 <explicit>: ... this.
1785 <is_linespec>: New member.
1786 (PARSER_EXPLICIT): New accessor macro.
1787 (undefined_label_error): New function.
1788 (source_file_not_found_error): New function.
1789 (linespec_parse_basic): The parser result is now an explicit location.
1790 Use PARSER_EXPLICIT to access it.
1791 Use undefined_label_error.
1792 (canonicalize_linespec): Convert canonical linespec into explicit
1793 location.
1794 Move string representation of location to explicit_location_to_linespec
1795 and use it and explicit_location_to_string to save string
1796 representations of the canonical location.
1797 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
1798 explicit location. Update all references.
1799 (convert_explicit_location_to_sals): New function.
1800 (parse_linespec): Use PARSER_EXPLICIT to access the parser
1801 result's explicit location.
1802 (linespec_state_constructor): Initialize is_linespec.
1803 Use PARSER_EXPLICIT.
1804 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
1805 result.
1806 (event_location_to_sals): For linespec locations, set is_linespec.
1807 Handle explicit locations.
1808 (decode_objc): 'ls' contains an explicit location now. Update all
1809 references.
1810 (symtabs_from_filename): Use source_file_not_found_error.
1811 * location.c (struct event_location.u) <explicit>: New member.
1812 (initialize_explicit_location): New function.
1813 (initialize_event_location): Initialize explicit locations.
1814 (new_explicit_location, get_explicit_location)
1815 (get_explicit_location_const): New functions.
1816 (explicit_to_string_internal): New function; most of contents moved
1817 from canonicalize_linespec.
1818 (explicit_location_to_string): New function.
1819 (explicit_location_to_linespec): New function.
1820 (copy_event_location, delete_event_location)
1821 (event_location_to_string_const, event_location_empty_p): Handle
1822 explicit locations.
1823 * location.h (enum offset_relative_sign, struct line_offset): Move
1824 here from linespec.h.
1825 (enum event_location_type): Add EXPLICIT_LOCATION.
1826 (struct explicit_location): New structure.
1827 (explicit_location_to_string): Declare.
1828 (explicit_location_to_linespec): Declare.
1829 (new_explicit_location, get_explicit_locationp
1830 (get_explicit_location_const, initialize_explicit_location): Declare.
1831
5b56227b
KS
18322015-08-11 Keith Seitz <keiths@redhat.com>
1833
1834 * break-catch-throw.c (re_set_exception_catchpoint): Convert
1835 linespec for stap probe to probe location.
1836 * breakpoint.c (create_longjmp_master_breakpoint)
1837 (create_exception_master_breakpoint): Likewise.
1838 (break_command_1): Remove local variable `arg_cp'.
1839 Check location type to set appropriate breakpoint ops methods.
1840 (trace_command): Likewise.
1841 * linespec.c (event_location_to_sals): Assert on probe locations.
1842 * location.c (EL_PROBE): Add macro definition.
1843 (new_probe_location, get_probe_location): New functions.
1844 (copy_event_location, delete_event_location, event_location_to_string)
1845 (string_to_event_location, event_location_empty_p): Handle probe
1846 locations.
1847 * location.h (enum event_location_type): Add PROBE_LOCATION.
1848 (new_probe_location, get_probe_location): Declare.
1849 * probe.c (parse_probes): Assert that LOCATION is a probe location.
1850 Convert linespec into probe location.
1851
a06efdd6
KS
18522015-08-11 Keith Seitz <keiths@redhat.com>
1853
1854 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
1855 Convert linespec to address location.
1856 * linespec.c (canonicalize_linespec): Do not handle address
1857 locations here.
1858 (convert_address_location_to_sals): New function; contents moved
1859 from ...
1860 (convert_linespc_to_sals): ... here.
1861 (parse_linespec): Remove address locations from linespec grammar.
1862 Remove handling of address locations.
1863 (linespec_lex_to_end): Remove handling of address linespecs.
1864 (event_location_to_sals): Handle ADDRESS_LOCATION.
1865 (linespec_expression_to_pc): Export.
1866 * linespec.h (linespec_expression_to_pc): Add declaration.
1867 * location.c (struct event_location.u) <address>: New member.
1868 (new_address_location, get_address_location): New functions.
1869 (copy_event_location, delete_event_location, event_location_to_string)
1870 (string_to_event_location, event_location_empty_p): Handle address
1871 locations.
1872 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
1873 (new_address_location, get_address_location): Declare.
1874 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
1875 to address location.
1876 * spu-tdep.c (spu_catch_start): Likewise.
1877
f00aae0f
KS
18782015-08-11 Keith Seitz <keiths@redhat.com>
1879
1880 * ax-gdb.c: Include location.h.
1881 (agent_command_1) Use linespec location instead of address
1882 string.
1883 * break-catch-throw.c: Include location.h.
1884 (re_set_exception_catchpoint): Use linespec locations instead
1885 of address strings.
1886 * breakpoint.c: Include location.h.
1887 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
1888 (create_std_terminate_master_breakpoint)
1889 (create_exception_master_breakpoint, update_breakpoints_after_exec):
1890 Use linespec location instead of address string.
1891 (print_breakpoint_location): Use locations and
1892 event_location_to_string.
1893 Print extra_string for pending locations for non-MI streams.
1894 (print_one_breakpoint_location): Use locations and
1895 event_location_to_string.
1896 (init_raw_breakpoint_without_location): Initialize b->location.
1897 (create_thread_event_breakpoint): Use linespec location instead of
1898 address string.
1899 (init_breakpoint_sal): Likewise.
1900 Only save extra_string if it is non-NULL and not the empty string.
1901 Use event_location_to_string instead of `addr_string'.
1902 Constify `p' and `endp'.
1903 Use skip_spaces_const/skip_space_const instead of non-const versions.
1904 Copy the location into the breakpoint.
1905 If LOCATION is NULL, save the breakpoint address as a linespec location
1906 instead of an address string.
1907 (create_breakpoint_sal): Change `addr_string' parameter to a struct
1908 event_location. All uses updated.
1909 (create_breakpoints_sal): Likewise for local variable `addr_string'.
1910 (parse_breakpoint_sals): Use locations instead of address strings.
1911 Remove check for empty linespec with conditional.
1912 Refactor.
1913 (decode_static_tracepoint_spec): Make argument const and update
1914 function.
1915 (create_breakpoint): Change `arg' to a struct event_location and
1916 rename.
1917 Remove `copy_arg' and `addr_start'.
1918 If EXTRA_STRING is empty, set it to NULL.
1919 Don't populate `canonical' for pending breakpoints.
1920 Pass `extra_string' to find_condition_and_thread.
1921 Clear `extra_string' if `rest' was NULL.
1922 Do not error with "garbage after location" if setting a dprintf
1923 breakpoint.
1924 Copy the location into the breakpoint instead of an address string.
1925 (break_command_1): Use string_to_event_location and pass this to
1926 create_breakpoint instead of an address string.
1927 Check against `arg_cp' for a probe linespec.
1928 (dprintf_command): Use string_to_event_location and pass this to
1929 create_breakpoint instead of an address string.
1930 Throw an exception if no format string was specified.
1931 (print_recreate_ranged_breakpoint): Use event_location_to_string
1932 instead of address strings.
1933 (break_range_command, until_break_command)
1934 (init_ada_exception_breakpoint): Use locations instead
1935 of address strings.
1936 (say_where): Print out extra_string for pending locations.
1937 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
1938 the breakpoint.
1939 (base_breakpoint_create_sals_from_location): Use struct event_location
1940 instead of address string.
1941 Remove `addr_start' and `copy_arg' parameters.
1942 (base_breakpoint_decode_location): Use struct event_location instead of
1943 address string.
1944 (bkpt_re_set): Use locations instead of address strings.
1945 Use event_location_empty_p to check for unset location.
1946 (bkpt_print_recreate): Use event_location_to_string instead of
1947 an address string.
1948 Print out extra_string for pending locations.
1949 (bkpt_create_sals_from_location, bkpt_decode_location)
1950 (bkpt_probe_create_sals_from_location): Use struct event_location
1951 instead of address string.
1952 (bkpt_probe_decode_location): Use struct event_location instead of
1953 address string.
1954 (tracepoint_print_recreate): Use event_location_to_string to
1955 recreate the tracepoint.
1956 (tracepoint_create_sals_from_location, tracepoint_decode_location)
1957 (tracepoint_probe_create_sals_from_location)
1958 (tracepoint_probe_decode_location): Use struct event_location
1959 instead of address string.
1960 (dprintf_print_recreate): Use event_location_to_string to recreate
1961 the dprintf.
1962 (dprintf_re_set): Remove check for valid/missing format string.
1963 (strace_marker_create_sals_from_location)
1964 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
1965 (update_static_tracepoint): Use struct event_location instead of
1966 address string.
1967 (location_to_sals): Likewise.
1968 Pass `extra_string' to find_condition_and_thread.
1969 For newly resolved pending breakpoint locations, clear the location's
1970 string representation.
1971 Assert that the breakpoint's condition string is NULL when
1972 condition_not_parsed.
1973 (breakpoint_re_set_default, create_sals_from_location_default)
1974 (decode_location_default, trace_command, ftrace_command)
1975 (strace_command, create_tracepoint_from_upload): Use locations
1976 instead of address strings.
1977 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
1978 Use struct event_location instead of address string.
1979 Update all uses.
1980 <decode_location>: Likewise.
1981 (struct breakpoint) <addr_string>: Change to struct event_location
1982 and rename `location'.
1983 <addr_string_range_end>: Change to struct event_location and rename
1984 `location_range_end'.
1985 (create_breakpoint): Use struct event_location instead of address
1986 string.
1987 * cli/cli-cmds.c: Include location.h.
1988 (edit_command, list_command): Use locations instead of address strings.
1989 * elfread.c: Include location.h.
1990 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
1991 * guile/scm-breakpoint.c: Include location.h.
1992 (bpscm_print_breakpoint_smob): Use event_location_to_string.
1993 (gdbscm_register_breakpoint): Use locations instead of address
1994 strings.
1995 * linespec.c: Include location.h.
1996 (struct ls_parser) <stream>: Change to const char *.
1997 (PARSER_STREAM): Update.
1998 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
1999 keywords must be followed by whitespace.
2000 (canonicalize_linespec): Save a linespec location into `canonical'.
2001 Save a canonical linespec into `canonical'.
2002 (parse_linespec): Change `argptr' to const char * and rename `arg'.
2003 All uses updated.
2004 Update function description.
2005 (linespec_parser_new): Initialize `parser'.
2006 Update initialization of parsing stream.
2007 (event_location_to_sals): New function.
2008 (decode_line_full): Change `argptr' to a struct event_location and
2009 rename it `location'.
2010 Use locations instead of address strings.
2011 Call event_location_to_sals instead of parse_linespec.
2012 (decode_line_1): Likewise.
2013 (decode_line_with_current_source, decode_line_with_last_displayed)
2014 Use locations instead of address strings.
2015 (decode_objc): Likewise.
2016 Change `argptr' to const char * and rename `arg'.
2017 (destroy_linespec_result): Delete the linespec result's location
2018 instead of freeing the address string.
2019 * linespec.h (struct linespec_result) <addr_string>: Change to
2020 struct event_location and rename to ...
2021 <location>: ... this.
2022 (decode_line_1, decode_line_full): Change `argptr' to struct
2023 event_location. All callers updated.
2024 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
2025 (mi_cmd_break_insert_1): Use locations instead of address strings.
2026 Throw an error if there was "garbage" at the end of the specified
2027 linespec.
2028 * probe.c: Include location.h.
2029 (parse_probes): Change `argptr' to struct event_location.
2030 Use event locations instead of address strings.
2031 * probe.h (parse_probes): Change `argptr' to struct event_location.
2032 * python/py-breakpoint.c: Include location.h.
2033 (bppy_get_location): Constify local variable `str'.
2034 Use event_location_to_string.
2035 (bppy_init): Use locations instead of address strings.
2036 * python/py-finishbreakpoint.c: Include location.h.
2037 (bpfinishpy_init): Remove local variable `addr_str'.
2038 Use locations instead of address strings.
2039 * python/python.c: Include location.h.
2040 (gdbpy_decode_line): Use locations instead of address strings.
2041 * remote.c: Include location.h.
2042 (remote_download_tracepoint): Use locations instead of address
2043 strings.
2044 * spu-tdep.c: Include location.h.
2045 (spu_catch_start): Remove local variable `buf'.
2046 Use locations instead of address strings.
2047 * tracepoint.c: Include location.h.
2048 (scope_info): Use locations instead of address strings.
2049 (encode_source_string): Constify parameter `src'.
2050 * tracepoint.h (encode_source_string): Likewise.
2051
c7c1b3e9
KS
20522015-08-11 Keith Seitz <keiths@redhat.com>
2053
2054 * Makefile.in (SFILES): Add location.c.
2055 (HFILES_NO_SRCDIR): Add location.h.
2056 (COMMON_OBS): Add location.o.
2057 * linespec.c (linespec_lex_to_end): New function.
2058 * linespec.h (linespec_lex_to_end): Declare.
2059 * location.c: New file.
2060 * location.h: New file.
2061
5f700d83
KS
20622015-08-11 Keith Seitz <keiths@redhat.com>
2063
2064 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
2065 Renamed to create_sals_from_location.
2066 <decode_linespec>: Renamed to decode_location.
2067 Update all callers.
2068 * breakpoint.c (create_sals_from_address_default): Renamed to ...
2069 (create_sals_from_location_default): ... this.
2070 (addr_string_to_sals): Renamed to ...
2071 (location_to_sals): ... this.
2072 (decode_linespec_default): Renamed to ...
2073 (decode_location_default): ... this.
2074 (base_breakpoint_create_sals_from_address): Renamed to ...
2075 (base_breakpoint_create_sals_from_location): ... this.
2076 (bkpt_create_sals_from_address): Renamed to ...
2077 (bkpt_create_sals_from_location): ... this.
2078 (bkpt_decode_linespec): Renamed to ...
2079 (bkpt_decode_location): ... this.
2080 (bkpt_probe_create_sals_from_address): Renamed to ...
2081 (bkpt_probe_create_sals_from_location): ... this.
2082 (tracepoint_create_sals_from_address): Renamed to ...
2083 (tracepoint_create_sals_from_location): ... this.
2084 (tracepoint_decode_linespec): Renamed to ...
2085 (tracepoint_decode_location): ... this.
2086 (tracepoint_probe_create_sals_from_address): Renamed to ...
2087 (tracepoint_probe_create_sals_from_location): ... this.
2088 (tracepoint_probe_decode_linespec): Renamed to ...
2089 (tracepoint_probe_decode_location): ... this.
2090 (strace_marker_create_sals_from_address): Renamed to ...
2091 (strace_marker_create_sals_from_location): ... this.
2092 (decode_linespec_default): Renamed to ...
2093 (decode_location_default): ... this.
2094
e27852be
DE
20952015-08-10 Doug Evans <dje@google.com>
2096 Keith Seitz <keiths@redhat.com>
2097
2098 PR gdb/17960
2099 * symtab.c (make_file_symbol_completion_list_1): Renamed from
2100 make_file_symbol_completion_list and made static.
2101 (make_file_symbol_completion_list): New function.
80af41e0 2102
fd7dcb94
JB
21032015-08-10 Joel Brobecker <brobecker@adacore.com>
2104
2105 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
2106 trailing new-line at end of warning message.
2107 (proceed): Add i18n marker to error messages.
2108
f12899e9
PA
21092015-08-07 Pedro Alves <palves@redhat.com>
2110
2111 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
2112
5ac21343
PA
21132015-08-07 Pedro Alves <palves@redhat.com>
2114
2115 * s390-linux-tdep.c (is_non_branch_ril)
2116 (s390_displaced_step_copy_insn): New functions.
2117 (s390_displaced_step_fixup): Update comment.
2118 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
2119 gdbarch_displaced_step_copy_insn hook.
2120
7f03bd92
PA
21212015-08-07 Pedro Alves <palves@redhat.com>
2122
2123 * infrun.c (displaced_step_prepare_throw): Return -1 if
2124 gdbarch_displaced_step_copy_insn returns NULL. Update intro
2125 comment.
2126 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
2127 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
2128 in file.
2129 (ppc_displaced_step_copy_insn): New function.
2130 (ppc_displaced_step_fixup): Update comment.
2131 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
2132 gdbarch_displaced_step_copy_insn hook.
2133 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
2134 NULL return.
2135 * gdbarch.h: Regenerate.
2136
3fc8eb30
PA
21372015-08-07 Pedro Alves <palves@redhat.com>
2138
2139 * inferior.h (struct inferior) <displaced_stepping_failed>: New
2140 field.
2141 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
2142 Return false if dispaced stepping failed before.
2143 (resume): Pass the current inferior to
2144 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
2145 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
2146 displaced_stepping_failed flag, and fall back to an in-line
2147 step-over.
2148
bfedc46a
PA
21492015-08-07 Pedro Alves <palves@redhat.com>
2150
2151 * darwin-nat.c (darwin_stop): Rename to ...
2152 (darwin_interrupt): ... this.
2153 (_initialize_darwin_inferior): Adjust.
2154 * gnu-nat.c (gnu_stop): Delete.
2155 (gnu_target): Don't install gnu_stop.
2156 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
2157 (inf_ptrace_interrupt): ... this.
2158 (inf_ptrace_target): Adjust.
2159 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
2160 target_stop.
2161 * linux-nat (linux_nat_stop): Rename to ...
2162 (linux_nat_interrupt): ... this.
2163 (linux_nat_stop): Reimplement.
2164 (linux_nat_add_target): Install linux_nat_interrupt.
2165 * nto-procfs.c (nto_interrupt_twice): Rename to ...
2166 (nto_handle_sigint_twice): ... this.
2167 (nto_interrupt): Rename to ...
2168 (nto_handle_sigint): ... this. Call target_interrupt instead of
2169 target_stop.
2170 (procfs_wait): Adjust.
2171 (procfs_stop): Rename to ...
2172 (procfs_interrupt): ... this.
2173 (init_procfs_targets): Adjust.
2174 * procfs.c (procfs_stop): Rename to ...
2175 (procfs_interrupt): ... this.
2176 (procfs_target): Adjust.
2177 * remote-m32r-sdi.c (m32r_stop): Rename to ...
2178 (m32r_interrupt): ... this.
2179 (init_m32r_ops): Adjust.
2180 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
2181 (gdbsim_interrupt_inferior): ... this.
2182 (gdbsim_stop): Rename to ...
2183 (gdbsim_interrupt): ... this.
2184 (gdbsim_cntrl_c): Adjust.
2185 (init_gdbsim_ops): Adjust.
2186 * remote.c (sync_remote_interrupt): Adjust comments.
2187 (remote_stop_as): Rename to ...
2188 (remote_interrupt_as): ... this.
2189 (remote_stop): Adjust comment.
2190 (remote_interrupt): New function.
2191 (init_remote_ops): Install remote_interrupt.
2192 * target.c (target_interrupt): New function.
2193 * target.h (struct target_ops) <to_interrupt>: New field.
2194 (target_interrupt): New declaration.
2195 * windows-nat.c (windows_stop): Rename to ...
2196 (windows_interrupt): ... this.
2197 * target-delegates.c: Regenerate.
2198
d55007b5
PA
21992015-08-07 Pedro Alves <palves@redhat.com>
2200
2201 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
2202 threads" as alternative to "switching back to stepped thread".
2203
fbea99ea
PA
22042015-08-07 Pedro Alves <palves@redhat.com>
2205
2206 * NEWS: Mention "maint set/show target-non-stop".
2207 * breakpoint.c (update_global_location_list): Check
2208 target_is_non_stop_p instead of non_stop.
2209 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
2210 * infrun.c (show_can_use_displaced_stepping)
2211 (can_use_displaced_stepping_p, start_step_over_inferior):
2212 Likewise.
2213 (internal_resume_ptid): New function.
2214 (resume): Use it.
2215 (proceed): Check target_is_non_stop_p instead of non_stop. If in
2216 all-stop mode but the target is always in non-stop mode, start all
2217 the other threads that are implicitly resumed too.
2218 (for_each_just_stopped_thread, fetch_inferior_event)
2219 (adjust_pc_after_break, stop_all_threads): Check
2220 target_is_non_stop_p instead of non_stop.
2221 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
2222 with the target always in non-stop mode.
2223 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
2224 instead of non_stop.
2225 (switch_back_to_stepped_thread): Check target_is_non_stop_p
2226 instead of non_stop.
2227 (keep_going_stepped_thread): Use internal_resume_ptid.
2228 (stop_waiting): If in all-stop mode, and the target is in non-stop
2229 mode, stop all threads.
2230 (keep_going_pass): Likewise, when starting a new in-line step-over
2231 sequence.
2232 * linux-nat.c (get_pending_status, select_event_lwp)
2233 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
2234 target_is_non_stop_p instead of non_stop.
2235 (linux_nat_always_non_stop_p): New function.
2236 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
2237 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
2238 * target-delegates.c: Regenerate.
2239 * target.c (target_is_non_stop_p): New function.
2240 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
2241 (maint_set_target_non_stop_command)
2242 (maint_show_target_non_stop_command): New functions.
2243 (_initilize_target): Install "maint set/show target-non-stop"
2244 commands.
2245 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
2246 (target_non_stop_enabled): New declaration.
2247 (target_is_non_stop_p): New declaration.
2248
372316f1
PA
22492015-08-07 Pedro Alves <pedro@codesourcery.com>
2250
2251 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
2252 has a pending status, return true.
2253 * gdbthread.h: Include target/waitstatus.h.
2254 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
2255 stop_pc>: New fields.
2256 (struct thread_info) <resumed>: New field.
2257 (set_resumed): Declare.
2258 * infrun.c: Include "event-loop.h".
2259 (infrun_async_inferior_event_token, infrun_is_async): New globals.
2260 (infrun_async): New function.
2261 (clear_step_over_info): Add debug output.
2262 (displaced_step_in_progress_any_inferior): New function.
2263 (displaced_step_fixup): New returns int.
2264 (start_step_over): Handle in-line step-overs too. Assert the
2265 thread is marked resumed.
2266 (resume_cleanups): Clear the thread's resumed flag.
2267 (resume): Set the thread's resumed flag. Return early if the
2268 thread has a pending status. Allow stepping a breakpoint with no
2269 signal.
2270 (proceed): Adjust to check 'resumed' instead of 'executing'.
2271 (clear_proceed_status_thread): If the thread has a pending status,
2272 and that status is a finished step, discard the pending status.
2273 (clear_proceed_status): Don't clear step_over_info here.
2274 (random_pending_event_thread, do_target_wait): New functions.
2275 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
2276 do_target_wait.
2277 (wait_one): New function.
2278 (THREAD_STOPPED_BY): New macro.
2279 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2280 (thread_stopped_by_hw_breakpoint): New functions.
2281 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
2282 functions.
2283 (handle_inferior_event): Also call set_resumed(false) on all
2284 threads implicitly stopped by the event.
2285 (restart_threads, resumed_thread_with_pending_status): New
2286 functions.
2287 (finish_step_over): If we were doing an in-line step-over before,
2288 and no longer are after trying to start a new step-over, restart
2289 all threads. If we have multiple threads with pending events,
2290 save the current event and go through the event loop again.
2291 (handle_signal_stop): Return early if finish_step_over returns
2292 false.
2293 <random signal>: If we get a signal while stepping over a
2294 breakpoint in-line in non-stop mode, restart all threads. Clear
2295 step_over_info before delivering the signal.
2296 (keep_going_stepped_thread): Use internal_error instead of
2297 gdb_assert. Mark the thread as resumed.
2298 (keep_going_pass_signal): Assert the thread isn't already resumed.
2299 If some other thread is doing an in-line step-over, defer the
2300 resume. If we just started a new in-line step-over, stop all
2301 threads. Don't clear step_over_info.
2302 (infrun_async_inferior_event_handler): New function.
2303 (_initialize_infrun): Create async event handler with
2304 infrun_async_inferior_event_handler as callback.
2305 (infrun_async): New declaration.
2306 * target.c (target_async): New function.
2307 * target.h (target_async): Declare macro and readd as function
2308 declaration.
2309 * target/waitstatus.h (enum target_stop_reason)
2310 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2311 * thread.c (new_thread): Clear the new waitstatus field.
2312 (set_resumed): New function.
2313
2ac7589c
PA
23142015-08-07 Pedro Alves <palves@redhat.com>
2315
2316 * infrun.c (keep_going_stepped_thread): New function, factored out
2317 from ...
2318 (switch_back_to_stepped_thread): ... here.
2319
8b061563
PA
23202015-08-07 Pedro Alves <palves@redhat.com>
2321
2322 * infrun.c (currently_stepping): Extend intro comment.
2323 * target.h (target_resume): Extend intro comment.
2324
1afd5965
PA
23252015-08-07 Pedro Alves <palves@redhat.com>
2326
2327 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
2328 of inferior_ptid. If the stepped thread vanished, return 0
2329 instead of resuming here. Use reset_ecs. Print the prev_pc and
2330 the current stop_pc in log message. Clear trap_expected if the
2331 thread advanced. Don't pass currently_stepping to
2332 do_target_resume.
2333
4d9d9d04
PA
23342015-08-07 Pedro Alves <palves@redhat.com>
2335
2336 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
2337 * infrun.c (struct execution_control_state): Move higher up in the
2338 file.
2339 (reset_ecs): New function.
2340 (start_step_over): Now returns int. Rewrite to use
2341 keep_going_pass_signal instead of manually starting a displaced step.
2342 (resume): Don't call set_running here. If displaced stepping
2343 can't start now, clear trap_expected.
2344 (find_thread_needs_step_over): Delete function.
2345 (proceed): Set up finish_thread_state_cleanup. Call set_running.
2346 If the current thread needs a step over, push it in the step-over
2347 chain. Don't set insert breakpoints nor call resume directly
2348 here. Instead rewrite to use start_step_over and
2349 keep_going_pass_signal.
2350 (finish_step_over): New function.
2351 (handle_signal_stop): Call finish_step_over instead of
2352 start_step_over.
2353 (switch_back_to_stepped_thread): If the event thread needs another
2354 step-over do that first. Use start_step_over.
2355 (keep_going_pass_signal): New function, factored out from ...
2356 (keep_going): ... here.
2357 (_initialize_infrun): Comment moved here.
2358 * thread.c (set_running_thread): New function.
2359 (set_running, finish_thread_state): Use set_running_thread.
2360
c2829269
PA
23612015-08-07 Pedro Alves <palves@redhat.com>
2362
2363 * gdbthread.h (struct thread_info) <step_over_prev,
2364 step_over_next>: New fields.
2365 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
2366 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
2367 declarations.
2368 * infrun.c (struct displaced_step_request): Delete.
2369 (struct displaced_step_inferior_state) <step_request_queue>:
2370 Delete field.
2371 (displaced_step_prepare): Assert that trap_expected is set. Use
2372 thread_step_over_chain_enqueue. Split starting a new displaced
2373 step to ...
2374 (start_step_over): ... this new function.
2375 (resume): Assert the thread isn't waiting for a step over already.
2376 (proceed): Assert the thread isn't waiting for a step over
2377 already.
2378 (infrun_thread_stop_requested): Adjust to remove threads from the
2379 embedded step-over chain.
2380 (handle_inferior_event) <fork/vfork>: Call start_step_over after
2381 displaced_step_fixup.
2382 (handle_signal_stop): Call start_step_over after
2383 displaced_step_fixup.
2384 * infrun.h (step_over_queue_head): New declaration.
2385 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
2386 (thread_step_over_chain_next, thread_is_in_step_over_chain)
2387 (thread_step_over_chain_enqueue)
2388 (thread_step_over_chain_remove): New functions.
2389 (delete_thread_1): Remove thread from the step-over chain.
2390
6c4cfb24
PA
23912015-08-07 Pedro Alves <palves@redhat.com>
2392
2393 * infrun.c (thread_still_needs_step_over): Rename to ...
2394 (thread_still_needs_step_over_bp): ... this.
2395 (enum step_over_what): New.
2396 (thread_still_needs_step_over): Reimplement.
2397
567420d1
PA
23982015-08-07 Pedro Alves <palves@redhat.com>
2399
2400 * remote.c (remote_wait_as): If not waiting for a stop reply,
2401 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
2402 requested, don't block waiting forever.
2403
d8dd4d5f
PA
24042015-08-07 Pedro Alves <pedro@codesourcery.com>
2405
2406 * infrun.c (adjust_pc_after_break): Now takes thread_info and
2407 waitstatus pointers instead of an ecs. Adjust.
2408 (handle_inferior_event): Adjust caller.
2409
e1316e60
PA
24102015-08-07 Pedro Alves <palves@redhat.com>
2411
2412 * infrun.c (handle_inferior_event): If we get
2413 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
2414 mode, mark all threads of the exiting process as not-executing.
2415 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
2416 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
2417 exiting process, if inferior_ptid still points at a process.
2418 * thread.c (struct current_thread_cleanup) <next>: New field.
2419 (current_thread_cleanup_chain): New global.
2420 (restore_current_thread_ptid_changed): New function.
2421 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
2422 current_thread_cleanup_chain list.
2423 (make_cleanup_restore_current_thread): Add the cleanup data to the
2424 current_thread_cleanup_chain list.
2425 (_initialize_thread): Install restore_current_thread_ptid_changed
2426 as thread_ptid_changed observer.
2427
47e9c225
JB
24282015-08-07 Joel Brobecker <brobecker@adacore.com>
2429
2430 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
2431 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
2432 smaller than expected.
2433
06096720
AB
24342015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * stack.c (get_frame_language): Moved ...
2437 * frame.c (get_frame_language): ... to here.
2438 * language.h (get_frame_language): Declaration moved to frame.h.
2439 * frame.h: Add language.h include, for language enum.
2440 (get_frame_language): Declaration moved from language.h.
2441 * language.c: Add frame.h include.
2442 * top.c: Add frame.h include.
2443 * symtab.h (struct obj_section): Declare.
2444 (struct cmd_list_element): Declare.
2445
7ff38b1c
AB
24462015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2447
2448 * language.c (show_language_command): Find selected frame before
2449 asking for the language of that frame.
2450 (set_language_command): Likewise.
2451 * language.h (get_frame_language): Add frame parameter.
2452 * stack.c (get_frame_language): Add frame parameter, assert
2453 parameter is not NULL, update comment and reindent.
2454 * top.c (check_frame_language_change): Pass the selected frame
2455 into get_frame_language.
2456
da8c46d2
MM
24572015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2458
2459 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
2460 (pt_btrace_insn_flags): New.
2461 (ftrace_add_pt): Call pt_btrace_insn_flags.
2462 * btrace.h (btrace_insn_flag): New.
2463 (btrace_insn) <flags>: New.
2464 * record-btrace.c (btrace_insn_history): Print insn prefix.
2465 * NEWS: Announce it.
2466
5599c404
MM
24672015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2468
2469 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
2470 * configure: Regenerate.
2471
016a3251
DD
24722015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
2473
2474 * Makefile.in (LIBICONV): Define.
2475 (CLIBS): Add LIBICONV.
2476 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
2477 * configure: Regenerate.
2478
aead7601
SM
24792015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2480 Pedro Alves <palves@redhat.com>
2481
2482 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
2483 (arm_set_abi): Likewise.
2484 * ax-general.c (ax_print): Likewise.
2485 * c-exp.y (exp : string_exp): Likewise.
2486 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
2487 (do_compile_dwarf_expr_to_c): Likewise.
2488 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
2489 Likewise.
2490 * dwarf2expr.c (execute_stack_op): Likewise.
2491 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2492 (disassemble_dwarf_expression): Likewise.
2493 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
2494 (read_array_order): Likewise.
2495 (abbrev_table_read_table): Likewise.
2496 (read_attribute_value): Likewise.
2497 (skip_unknown_opcode): Likewise.
2498 (dwarf_decode_macro_bytes): Likewise.
2499 (dwarf_decode_macros): Likewise.
2500 * eval.c (value_f90_subarray): Likewise.
2501 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2502 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2503 * infrun.c (handle_command): Likewise.
2504 * memory-map.c (memory_map_start_memory): Likewise.
2505 * osabi.c (set_osabi): Likewise.
2506 * parse.c (operator_length_standard): Likewise.
2507 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
2508 single return point.
2509 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2510 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2511 (gdbpy_lookup_global_symbol): Likewise.
2512 * record-full.c (record_full_restore): Likewise.
2513 * regcache.c (regcache_register_status): Likewise.
2514 (regcache_raw_read): Likewise.
2515 (regcache_cooked_read): Likewise.
2516 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2517 * symtab.c (initialize_ordinary_address_classes): Likewise.
2518 * target-debug.h (target_debug_print_signals): Likewise.
2519 * utils.c (do_restore_current_language): Likewise.
2520
ca0a5f0b
CD
25212015-08-06 Clem Dickey <clemd@acm.org>
2522
2523 PR python/17136
2524 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
2525
05d999b0
SM
25262015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2527
2528 * complaints.c (enum complaint_series): Add newlines and remove
2529 out of date comment.
2530 (struct complaints) <series>: Change type to enum
2531 complaint_series and remove out of date comment.
2532 (symfile_complaint_hook): Use equivalent enum value
2533 ISOLATED_MESSAGE instead of 0.
2534
bf47e248
PA
25352015-08-06 Pedro Alves <palves@redhat.com>
2536
2537 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
2538 returned > 0.
2539
b6b9ffcc
PL
25402015-08-06 Pierre Langlois <pierre.langlois@arm.com>
2541
2542 * common/agent.c (symbol_list) <required>: Remove.
2543
863d01bd
PA
25442015-08-06 Pedro Alves <palves@redhat.com>
2545
2546 * target/waitstatus.h (enum target_stop_reason)
2547 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2548
0a39bb32
PA
25492015-08-05 Pedro Alves <palves@redhat.com>
2550 Joel Brobecker <brobecker@adacore.com>
2551
9d996aba 2552 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
2553 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
2554 case where BS->STOP is not set.
2555
260439cb
UW
25562015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
2557
2558 * nat/gdb_thread_db.h: Add copyright header.
2559 Protect against multiple inclusion.
2560
d89fa914
YQ
25612015-08-05 Yao Qi <yao.qi@linaro.org>
2562
2563 * aarch64-linux-nat.c (get_thread_id): Remove.
2564 (debug_reg_change_callback): Call ptid_get_lwp instead of
2565 get_thread_id.
2566 (fetch_gregs_from_thread): Likewise.
2567 (store_gregs_to_thread): Likewise.
2568 (fetch_fpregs_from_thread): Likewise.
2569 (store_fpregs_to_thread): Likewise.
2570 (aarch64_linux_get_debug_reg_capacity): Likewise.
2571 * arm-linux-nat.c (get_thread_id): Remove.
2572 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2573 * xtensa-linux-nat.c (get_thread_id): Remove.
2574 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2575 * arm-linux-nat.c (get_thread_id): Remove.
2576 (GET_THREAD_ID): Remove.
2577 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
2578 (store_fpregs, fetch_regs, store_regs): Likewise.
2579 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
2580 (fetch_vfp_regs, store_vfp_regs): Likewise.
2581 (arm_linux_read_description): Likewise.
2582 (arm_linux_get_hwbp_cap): Likewise.
2583 * xtensa-linux-nat.c (get_thread_id): Remove.
2584 (GET_THREAD_ID): Remove.
2585 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
2586 GET_THREAD_ID.
2587
4efd80aa
CS
25882015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
2589
2590 * python/py-linetable.c: Fix case of Linetable to LineTable
2591 in docstrings and code comments.
2592 * python/py-symtab.c: Same.
2593
c6343a91
JK
25942015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2595
2596 * infcmd.c (signal_command): Call do_cleanups for args_chain.
2597
978b9495
JK
25982015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2599
2600 PR gdb/18767
2601 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
2602 use.
2603
96e9210f
PA
26042015-08-04 Pedro Alves <palves@redhat.com>
2605
2606 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
2607 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
2608 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
2609 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
2610 (td_thr_validate_ftype, td_thr_get_info_ftype)
2611 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
2612 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
2613 New typedefs.
2614 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
2615 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
2616 local macros and use them instead of verbose_dlsym and dlsym
2617 calls.
2618
af60a1ef
SL
26192015-08-03 Sandra Loosemore <sandra@codesourcery.com>
2620
2621 * nios2-tdep.h: Include opcode/nios2.h here.
2622 (NIOS2_CDX_OPCODE_SIZE): New.
2623 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
2624 * nios2-tdep.c: Don't include opcode/nios2.h here.
2625 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
2626 4-byte read fails.
2627 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
2628 (nios2_match_addi, nios2_match_orhi): Likewise.
2629 (nios2_match_stw, nios2_match_ldw): Likewise.
2630 (nios2_match_rdctl): Likewise.
2631 (nios2_match_stwm, nios2_match_ldwm): New.
2632 (nios2_match_branch): Add cases for R2 encodings.
2633 (nios2_match_jmpi, nios2_match_calli): Likewise.
2634 (nios2_match_jmpr, nios2_match_callr): Likewise.
2635 (nios2_match_break, nios2_match_trap): Likewise.
2636 (nios2_in_epilogue_p): Add R2 support.
2637 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
2638 prologues.
2639 (nios2_breakpoint_from_pc): Handle R2 instructions.
2640 (nios2_get_next_pc): Likewise. Adjust call to
2641 tdep->syscall_next_pc.
2642 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
2643 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
2644 instruction field macros instead of literal hex values.
2645 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
2646 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
2647 Use size field from OP instead of assuming all instructions
2648 are the same size.
2649 (nios2_linux_init_abi): Register appropriate unwinder for mach.
2650
1da03605
UW
26512015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
2652
2653 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
2654 variable warning with some compilers.
2655
8156fe7f
YQ
26562015-08-03 Yao Qi <yao.qi@linaro.org>
2657
2658 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
2659 in comment. Replace "rw" with "type".
2660 (arm_linux_remove_watchpoint): Change type of "rw" to
2661 "enum target_hw_bp_type".
2662
835a09d9
PMR
26632015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
2664
2665 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
2666 lookup_symbol.
2667 * ft32-tdep.c (ft32_skip_prologue): Likewise.
2668 * moxie-tdep.c (moxie_skip_prologue): Likewise.
2669 * mt-tdep.c (mt_skip_prologue): Likewise.
2670 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
2671
d12307c1
PMR
26722015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
2673
2674 * ada-exp.y (write_object_renaming): Replace struct
2675 ada_symbol_info with struct block_symbol. Update field
2676 references accordingly.
2677 (block_lookup, select_possible_type_sym): Likewise.
2678 (find_primitive_type): Likewise. Also update call to
2679 ada_lookup_symbol to extract the symbol itself.
2680 (write_var_or_type, write_name_assoc): Likewise.
2681 * ada-lang.h (struct ada_symbol_info): Remove.
2682 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
2683 struct block_symbol.
2684 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
2685 (ada_lookup_symbol): Return struct block_symbol instead of a
2686 mere symbol.
2687 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
2688 with struct block_symbol.
2689 (resolve_subexp, ada_resolve_function, sort_choices,
2690 user_select_syms, is_nonfunction, add_defn_to_vec,
2691 num_defns_collected, defns_collected,
2692 symbols_are_identical_enums, remove_extra_symbols,
2693 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
2694 ada_lookup_symbol_list, ada_iterate_over_symbols,
2695 ada_lookup_encoded_symbol, get_var_value): Likewise.
2696 (ada_lookup_symbol): Return a block_symbol instead of a mere
2697 symbol. Replace struct ada_symbol_info with struct
2698 block_symbol.
2699 (ada_lookup_symbol_nonlocal): Likewise.
2700 (standard_lookup): Make block passing explicit through
2701 lookup_symbol_in_language.
2702 * ada-tasks.c (get_tcb_types_info): Update the calls to
2703 lookup_symbol_in_language to extract the mere symbol out of the
2704 returned value.
2705 (ada_tasks_inferior_data_sniffer): Likewise.
2706 * ax-gdb.c (gen_static_field): Likewise for the call to
2707 lookup_symbol.
a5fdf78a 2708 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
2709 lookup functions.
2710 (gen_expr): Likewise.
2711 * c-exp.y: Likewise. Remove uses of block_found.
2712 (lex_one_token, classify_inner_name, c_print_token): Likewise.
2713 (classify_name): Likewise. Rename the "sym" local variable to
2714 "bsym".
2715 * c-valprint.c (print_unpacked_pointer): Likewise.
2716 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
2717 "sym" parameter from struct symbol * to struct block_symbol.
2718 Use it to remove uses of block_found. Deal with struct
a5fdf78a 2719 block_symbol from lookup functions.
d12307c1
PMR
2720 (gcc_convert_symbol): Likewise. Update the call to
2721 convert_symbol_sym.
2722 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 2723 struct block_symbol from lookup functions.
d12307c1
PMR
2724 * cp-namespace.c (cp_lookup_nested_symbol_1,
2725 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
2726 cp_search_static_and_baseclasses,
2727 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
2728 cp_lookup_symbol_imports_or_template,
2729 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
2730 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
2731 find_symbol_in_baseclass): Return struct block_symbol instead of
2732 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
2733 functions.
2734 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 2735 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
2736 lookup functions.
2737 * cp-support.h (cp_lookup_symbol_nonlocal,
2738 cp_lookup_symbol_from_namespace,
2739 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 2740 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
2741 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
2742 push_module_name):
a5fdf78a 2743 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
2744 uses of block_found.
2745 * eval.c (evaluate_subexp_standard): Update call to
2746 cp_lookup_symbol_namespace.
a5fdf78a
PMR
2747 * f-exp.y: Deal with struct block_symbol from lookup functions.
2748 Remove uses of block_found.
d12307c1
PMR
2749 (yylex): Likewise.
2750 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
2751 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 2752 struct block_symbol from lookup functions.
d12307c1
PMR
2753 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
2754 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
2755 (gdbscm_lookup_global_symbol): Likewise.
2756 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
2757 * go-exp.y: Likewise. Remove uses of block_found.
2758 (package_name_p, classify_packaged_name, classify_name):
2759 Likewise.
2760 * infrun.c (insert_exception_resume_breakpoint): Likewise.
2761 * jv-exp.y (push_variable): Likewise.
2762 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
2763 * language.c (language_bool_type): Likewise.
2764 * language.h (struct language_defn): Update
a5fdf78a
PMR
2765 la_lookup_symbol_nonlocal to return a struct block_symbol rather
2766 than a mere symbol.
2767 * linespec.c (find_label_symbols): Deal with struct block_symbol
2768 from lookup functions.
d12307c1
PMR
2769 * m2-exp.y: Likewise. Remove uses of block_found.
2770 (yylex): Likewise.
2771 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2772 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
2773 * p-exp.y: Likewise. Remove uses of block_found.
2774 (yylex): Likewise.
2775 * p-valprint.c (pascal_val_print): Likewise.
2776 * parse.c (write_dollar_variable): Likewise. Remove uses of
2777 block_found.
2778 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
2779 struct block_symbol.
2780 * printcmd.c (address_info): Deal with struct block_symbol from
2781 lookup functions.
d12307c1
PMR
2782 * python/py-frame.c (frapy_read_var): Likewise.
2783 * python/py-symbol.c (gdbpy_lookup_symbol,
2784 gdbpy_lookup_global_symbol): Likewise.
2785 * skip.c (skip_function_command): Likewise.
2786 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 2787 block_symbol instead of a mere symbol.
d12307c1
PMR
2788 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
2789 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
2790 * solib.c (solib_global_lookup): Likewise.
2791 * solist.h (solib_global_lookup): Likewise.
2792 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
2793 return a struct block_symbol rather than a mere symbol.
2794 * source.c (select_source_symtab): Deal with struct block_symbol
2795 from lookup functions.
d12307c1
PMR
2796 * stack.c (print_frame_args, iterate_over_block_arg_vars):
2797 Likewise.
2798 * symfile.c (set_initial_language): Likewise.
2799 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 2800 block_symbol.
d12307c1
PMR
2801 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
2802 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 2803 block_symbol.
d12307c1 2804 (block_found): Remove.
a5fdf78a 2805 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 2806 cache slots.
a5fdf78a
PMR
2807 (symbol_cache_lookup): Return a struct block_symbol rather than
2808 a mere symbol.
d12307c1
PMR
2809 (symbol_cache_mark_found): Add a BLOCK parameter to fill
2810 appropriately the cache slots. Update callers.
2811 (symbol_cache_dump): Update cache slots handling to the type
2812 change.
2813 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
2814 lookup_symbol_aux, lookup_local_symbol,
2815 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
2816 lookup_symbol_in_objfile_symtabs,
2817 lookup_symbol_in_objfile_from_linkage_name,
2818 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
2819 lookup_symbol_in_static_block, lookup_static_symbol,
2820 lookup_global_symbol):
a5fdf78a
PMR
2821 Return a struct block_symbol rather than a mere symbol. Deal
2822 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
2823 uses of block_found.
2824 (lookup_symbol_in_block): Remove uses of block_found.
2825 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 2826 struct block_symbol.
d12307c1
PMR
2827 (lookup_symbol_global_iterator_cb): Update references to the
2828 RESULT field.
a5fdf78a 2829 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 2830 functions.
a5fdf78a 2831 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
2832 (block_found): Remove.
2833 (lookup_symbol_in_language, lookup_symbol,
2834 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
2835 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
2836 lookup_global_symbol_from_objfile): Return a struct block_symbol
2837 rather than just a mere symbol. Update comments to remove
2838 mentions of block_found.
d12307c1
PMR
2839 * valops.c (find_function_in_inferior,
2840 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 2841 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
2842 functions.
2843 * value.c (value_static_field, value_fn_field): Likewise.
2844
b1c59ddc
SM
28452015-07-31 Simon Marchi <simon.marchi@ericsson.com>
2846
2847 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
2848 instead of integer.
2849
f486487f 28502015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 2851 Pedro Alves <palves@redhat.com>
f486487f
SM
2852
2853 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
2854 type or value instead of integer.
2855 (aarch64_linux_insert_watchpoint): Likewise.
2856 (aarch64_linux_remove_watchpoint): Likewise.
2857 * ada-lang.c (ada_op_print_tab): Likewise.
2858 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
2859 (amd64_linux_syscall_record_common): Likewise.
2860 * arch-utils.c (target_byte_order_user): Likewise.
2861 (default_byte_order): Likewise.
2862 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
2863 (arm_linux_get_hwbp_type): Likewise.
2864 (arm_linux_hw_watchpoint_initialize): Likewise.
2865 (arm_linux_insert_watchpoint): Likewise.
2866 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
2867 (arm_linux_syscall_record): Likewise.
2868 * breakpoint.c (update_watchpoint): Likewise.
2869 (breakpoint_here_p): Likewise.
2870 (bpstat_print): Likewise.
2871 (enable_breakpoint_disp): Likewise.
2872 * c-lang.c (c_op_print_tab): Likewise.
2873 * cli/cli-decode.c (add_info_alias): Likewise.
2874 * d-lang.c (d_op_print_tab): Likewise.
2875 * eval.c (evaluate_subexp_standard): Likewise.
2876 * f-exp.y (dot_ops): Likewise.
2877 (f77_keywords): Likewise.
2878 * f-lang.c (f_op_print_tab): Likewise.
2879 * go-lang.c (go_op_print_tab): Likewise.
2880 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
2881 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
2882 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2883 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
2884 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
2885 (struct scm_from_stringn_data): Likewise.
2886 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2887 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2888 (ia64_linux_remove_watchpoint): Likewise.
2889 (ia64_linux_can_use_hw_breakpoint): Likewise.
2890 * infrun.c (print_stop_event): Likewise.
2891 * jv-lang.c (java_op_print_tab): Likewise.
2892 * linux-nat.c (linux_proc_xfer_partial): Likewise.
2893 * linux-nat.h (struct lwp_info): Likewise.
2894 * linux-thread-db.c (enable_thread_event): Likewise.
2895 * m2-lang.c (m2_op_print_tab): Likewise.
2896 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
2897 (mi_cmd_stack_list_variables): Likewise.
2898 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
2899 * mi/mi-out.c (mi_table_begin): Likewise.
2900 (mi_table_header): Likewise.
2901 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
2902 (mips_linux_insert_watchpoint): Likewise.
2903 (mips_linux_remove_watchpoint): Likewise.
2904 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
2905 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
2906 (mips_linux_watch_type_to_irw): Likewise.
2907 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
2908 (procfs_insert_hw_watchpoint): Likewise.
2909 (procfs_remove_hw_watchpoint): Likewise.
2910 (procfs_hw_watchpoint): Likewise.
2911 (procfs_can_use_hw_breakpoint): Likewise.
2912 (procfs_remove_hw_watchpoint): Likewise.
2913 (procfs_insert_hw_watchpoint): Likewise.
2914 * p-lang.c (pascal_op_print_tab): Likewise.
2915 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
2916 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
2917 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
2918 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
2919 (procfs_insert_watchpoint): Likewise.
2920 (procfs_remove_watchpoint): Likewise.
2921 * psymtab.c (recursively_search_psymtabs): Likewise.
2922 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
2923 (m32r_insert_watchpoint): Likewise.
2924 * remote-mips.c (mips_can_use_watchpoint): Likewise.
2925 (mips_insert_watchpoint): Likewise.
2926 (mips_remove_watchpoint): Likewise.
2927 * remote.c (watchpoint_to_Z_packet): Likewise.
2928 (remote_insert_watchpoint): Likewise.
2929 (remote_remove_watchpoint): Likewise.
2930 (remote_check_watch_resources): Likewise.
2931 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2932 (s390_remove_watchpoint): Likewise.
2933 (s390_can_use_hw_breakpoint): Likewise.
2934 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2935 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
2936 * target.h (struct target_ops): Likewise.
2937 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2938 * ui-out.c (struct ui_out_hdr): Likewise.
2939 (append_header_to_list): Likewise.
2940 (get_next_header): Likewise.
2941 (verify_field): Likewise.
2942 (ui_out_begin): Likewise.
2943 (ui_out_field_int): Likewise.
2944 (ui_out_field_fmt_int): Likewise.
2945 (ui_out_field_skip): Likewise.
2946 (ui_out_field_string): Likewise.
2947 (ui_out_field_fmt): Likewise.
2948 * varobj.c (new_variable): Likewise.
2949 * x86-nat.c (x86_insert_watchpoint): Likewise.
2950 (x86_remove_watchpoint): Likewise.
2951 (x86_can_use_hw_breakpoint): Likewise.
2952 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
2953 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
2954 previously anonymous enumeration type..
2955 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
2956 value.
2957 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
2958 (target_debug_print_enum_bptype): New.
2959 * target-delegates.c: Regenerate.
2960
e1b5381f
SL
29612015-07-30 Sandra Loosemore <sandra@codesourcery.com>
2962
2963 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
2964 already says and disallow non-stack memory writes in the prologue.
2965
9aaf8e3a
SL
29662015-07-30 Sandra Loosemore <sandra@codesourcery.com>
2967
2968 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
2969 reflect how current GCC emits stack overflow checks. Match
2970 both trap and break instructions for backward compatbility.
2971 Disallow other trap and break instructions in the prologue.
2972
69dde7dc
PA
29732015-07-30 Pedro Alves <palves@redhat.com>
2974
2975 PR threads/18600
2976 * linux-nat.c (wait_lwp): Report to the core when thread group
2977 leader exits.
2978
4dd63d48
PA
29792015-07-30 Pedro Alves <palves@redhat.com>
2980 Simon Marchi <simon.marchi@ericsson.com>
2981
2982 PR threads/18600
2983 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
2984 mark the new thread as resumed. Remove STOPPING parameter.
2985 (wait_lwp): Adjust call to linux_handle_extended_wait.
2986 (linux_nat_filter_event): Adjust call to
2987 linux_handle_extended_wait.
2988 (resume_stopped_resumed_lwps): Add debug output.
2989
6b940e6a
PL
29902015-07-30 Pierre Langlois <pierre.langlois@arm.com>
2991
2992 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
2993 isize argument.
2994 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
2995 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
2996 gdbarch_fast_tracepoint_valid_at.
2997 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
2998 * gdbarch.h: Regenerate.
2999 * gdbarch.c: Regenerate.
3000 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
3001 argument. Do not set it.
3002 * remote.c (remote_download_tracepoint): Adjust call to
3003 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
3004 the instruction length.
3005
ec741292
YQ
30062015-07-30 Yao Qi <yao.qi@linaro.org>
3007
3008 * arm-tdep.h (enum gdb_regnum): Move it to ...
3009 * arch/arm.h: ... here. New file.
3010 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
3011
0ea6402e
PL
30122015-07-30 Pierre Langlois <pierre.langlois@arm.com>
3013
3014 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
3015 Change its type to int *.
3016 (decode_br): Rename link argument to is_blr. Change its type to
3017 int *.
3018 (decode_cb): Rename op argument to is_cbnz. Change its type to
3019 int *.
3020 (decode_tb): Rename op argument to is_tbnz. Change its type to
3021 int *. Set is_tbnz to either 1 or 0.
3022 (aarch64_analyze_prologue): Change type of is_link to int. Add
3023 new variables is_cbnz and is_tbnz. Adjust call to
3024 aarch64_decode_cb and aarch64_decode_tb.
3025
aa58a496
SM
30262015-07-29 Simon Marchi <simon.marchi@ericsson.com>
3027
3028 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
3029 parameter.
3030 (mips_linux_new_thread): Likewise.
3031 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
3032
18206ca3
PP
30332015-07-29 Patrick Palka <patrick@parcs.ath.cx>
3034
3035 * top.c: Include "tui/tui.h".
3036 (undo_terminal_modifications_before_exit): New static function.
3037 (quit_force): Use it.
3038
7afa63c6
PP
30392015-07-29 Patrick Palka <patrick@parcs.ath.cx>
3040
3041 * target.c (terminal_state): Initialize to terminal_is_ours.
3042
cc9f16aa
YQ
30432015-07-29 Yao Qi <yao.qi@linaro.org>
3044
3045 PR record/18691
3046 * dcache.c (dcache_read_memory_partial): Call
3047 raw_memory_xfer_partial.
3048 * target.c (raw_memory_xfer_partial): Make it non-static.
3049 * target.h (raw_memory_xfer_partial): Declare.
3050
3ae385af
SM
30512015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3052
3053 * c-valprint.c (c_val_print_array): Consider addressable memory
3054 unit size.
3055 (c_val_print_ptr): Likewise.
3056 (c_val_print_int): Likewise.
3057 * findvar.c (read_frame_register_value): Likewise.
3058 * valarith.c (find_size_for_pointer_math): Likewise.
3059 (value_ptrdiff): Likewise.
3060 (value_subscripted_rvalue): Likewise.
3061 * valops.c (read_value_memory): Likewise (and rename variables).
3062 (value_assign): Likewise.
3063 (value_repeat): Likewise.
3064 (value_array): Likewise.
3065 (value_slice): Likewise.
3066 * valprint.c (generic_val_print_ptr): Likewise.
3067 (generic_val_print_enum): Likewise.
3068 (generic_val_print_bool): Likewise.
3069 (generic_val_print_int): Likewise.
3070 (generic_val_print_char): Likewise.
3071 (generic_val_print_float): Likewise.
3072 (generic_val_print_decfloat): Likewise.
3073 (generic_val_print_complex): Likewise.
3074 (val_print_scalar_formatted): Likewise.
3075 (val_print_array_elements): Likewise.
3076 * value.c (set_value_parent): Likewise.
3077 (value_contents_copy_raw): Likewise.
3078 (set_internalvar_component): Likewise.
3079 (value_primitive_field): Likewise.
3080 (value_fetch_lazy): Likewise.
3081 * value.h (read_value_memory): Update comment.
3082
e512cdbd
SM
30832015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3084
3085 * value.c (get_value_arch): New function.
3086 * value.h (get_value_arch): New declaration.
3087
3723fda8
SM
30882015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3089
3090 * value.c (struct value): Update comments.
3091
2e056931
SM
30922015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3093
3094 * gdbtypes.c (type_length_units): New function.
3095 * gdbtypes.h (type_length_units): New declaration.
3096 (struct type) <length>: Update comment.
3097
0c87c0bf
SM
30982015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3099
3100 * valprint.c (generic_val_print): Factor out complex
3101 printing code to ...
3102 (generic_val_print_complex): ... this new function.
3103
9550ae5e
SM
31042015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3105
3106 * valprint.c (generic_val_print): Factor out decfloat
3107 printing code to ...
3108 (generic_val_print_decfloat): ... this new function.
3109
7784724b
SM
31102015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3111
3112 * valprint.c (generic_val_print): Factor out float
3113 printing code to ...
3114 (generic_val_print_float): ... this new function.
3115
385f5aff
SM
31162015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3117
3118 * valprint.c (generic_val_print): Factor out char
3119 printing code to ...
3120 (generic_val_print_char): ... this new function.
3121
b21b6342
SM
31222015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3123
3124 * valprint.c (generic_val_print): Factor out integer
3125 printing code to ...
3126 (generic_val_print_int): ... this new function.
3127
e5bead4b
SM
31282015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3129
3130 * valprint.c (generic_val_print): Factor out bool
3131 printing code to ...
3132 (generic_val_print_bool): ... this new function.
3133
4a8c372f
SM
31342015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3135
3136 * valprint.c (generic_val_print): Factor out function/method
3137 printing code to ...
3138 (generic_val_print_func): ... this new function.
3139
d93880bd
SM
31402015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3141
3142 * valprint.c (generic_val_print): Factor out flags
3143 printing code to ...
3144 (generic_val_print_flags): ... this new function.
3145
ef0bc0dd
SM
31462015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3147
3148 * valprint.c (generic_val_print): Factor out enum
3149 printing code to ...
3150 (generic_val_print_enum): ... this new function.
3151
fe43fede
SM
31522015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3153
3154 * valprint.c (generic_val_print): Factor out reference
3155 printing code to ...
3156 (generic_val_print_ref): ... this new function.
3157
45000ea2
SM
31582015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3159
3160 * valprint.c (generic_val_print): Factor out memberptr
3161 printing code to ...
3162 (generic_val_print_memberptr): ... this new function.
3163
81eb921a
SM
31642015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3165
3166 * valprint.c (generic_val_print): Factor out pointer
3167 printing code to ...
3168 (generic_val_print_ptr): ... this new function.
3169
557dbe8a
SM
31702015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3171
3172 * valprint.c (generic_val_print): Factor out array
3173 printing code to ...
3174 (generic_val_print_array): ... this new function.
3175
9f436164
SM
31762015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3177
3178 * valprint.c (generic_val_print): Factor out
3179 print_unpacked_pointer code to ...
3180 (print_unpacked_pointer): ... this new function.
3181
077836f7
PP
31822015-07-27 Patrick Palka <patrick@parcs.ath.cx>
3183
3184 * event-top.c (handle_sigterm): Don't inspect
3185 target_can_async_p. Always set the quit flag and always mark
3186 the async signal handler.
3187
3a60804f
YQ
31882015-07-27 Yao Qi <yao.qi@linaro.org>
3189
3190 * Makefile.in (REMOTE_EXAMPLES): Remove it.
3191
c9f35b34
KB
31922015-07-25 Kevin Buettner <kevinb@redhat.com>
3193
3194 * remote.c (read_ptid): Return null_ptid when no thread id
3195 is found.
3196 (remote_current_thread): Add log warning for malformed
3197 qC reply.
3198 (remote_start_remote): Add log warning when current thread
3199 not found.
3200
2b4cab86
PA
32012015-07-24 Pedro Alves <palves@redhat.com>
3202
3203 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
3204 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
3205 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
3206
77598427
PA
32072015-07-24 Pedro Alves <palves@redhat.com>
3208
3209 PR gdb/18717
3210 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
3211 is resumed, and extend the debug log.
3212
fe23c31f
PA
32132015-07-24 Pedro Alves <palves@redhat.com>
3214
3215 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
3216
5826e159
PA
32172015-07-24 Pedro Alves <palves@redhat.com>
3218
3219 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
3220 sys/ptrace.h.
3221 * alpha-linux-nat.c: Likewise.
3222 * amd64-linux-nat.c: Likewise.
3223 * arm-linux-nat.c: Likewise.
3224 * hppa-linux-nat.c: Likewise.
3225 * i386-linux-nat.c: Likewise.
3226 * ia64-linux-nat.c: Likewise.
3227 * linux-fork.c: Likewise.
3228 * linux-nat.c: Likewise.
3229 * m32r-linux-nat.c: Likewise.
3230 * m68klinux-nat.c: Likewise.
3231 * mips-linux-nat.c: Likewise.
3232 * nat/linux-btrace.c: Likewise.
3233 * nat/linux-ptrace.c: Likewise.
3234 * nat/linux-ptrace.h
3235 * nat/mips-linux-watch.c: Likewise.
3236 * nat/x86-linux-dregs.c: Likewise.
3237 * ppc-linux-nat.c: Likewise.
3238 * s390-linux-nat.c: Likewise.
3239 * spu-linux-nat.c: Likewise.
3240 * tilegx-linux-nat.c: Likewise.
3241 * x86-linux-nat.c: Likewise.
3242 * xtensa-linux-nat.c: Likewise.
3243
54019719
PA
32442015-07-24 Pedro Alves <palves@redhat.com>
3245
3246 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
3247 __ptrace_request as first parameter type instead of int.
3248 (PTRACE_TYPE_ARG1): Define.
3249 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
3250 that casts first argument to PTRACE_TYPE_ARG1.
3251 * config.in: Regenerate.
3252 * configure: Regenerate.
3253
e3790375
PA
32542015-07-24 Pedro Alves <palves@redhat.com>
3255
3256 * gdb_ptrace.h: Move ...
3257 * nat/gdb_ptrace.h: ... here.
3258 * inf-ptrace.c: Adjust.
3259
eb7aa561
PA
32602015-07-24 Pedro Alves <palves@redhat.com>
3261
3262 * acinclude.m4: Include ptrace.m4.
3263 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
3264 * ptrace.m4: ... to this new file.
3265
cc12ce38
DE
32662015-07-23 Doug Evans <dje@google.com>
3267
3268 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
3269 (load_cu): Handle dummy CUs.
3270 (dw2_do_instantiate_symtab, process_queuef): Ditto.
3271 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
3272
7b849db4
CS
32732015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
3274
3275 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
3276 documentation to say that it returns a list rather than
3277 a FrozenSet.
3278 (linetable_object_methods): Update the docstring of the
3279 "source_line" entry.
3280
d0d84780
PMR
32812015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
3282
3283 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
3284 type to the recursive call instead of the original (maybe
3285 TYPE_CODE_TYPEDEF) type.
3286
c2fbdc59
YQ
32872015-07-23 Yao Qi <yao.qi@linaro.org>
3288
3289 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
3290 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
3291 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
3292
af1b22f3
YQ
32932015-07-21 Yao Qi <yao.qi@linaro.org>
3294
3295 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
3296 Move it to nat/aarch64-linux-hw-point.c.
3297 (aarch64_linux_child_post_startup_inferior): Update.
3298 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
3299 New function.
3300 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
3301 Declare it.
3302
40e050d2
MM
33032015-07-21 Markus Metzger <markus.t.metzger@intel.com>
3304
3305 * common/btrace-common.c (btrace_data_append): Change case label.
3306
3675a06a
YQ
33072015-07-20 Yao Qi <yao.qi@linaro.org>
3308
3309 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
3310 Re-indent the code.
3311 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
3312 "unsigned long long".
3313
b4e1fd61
KB
33142015-07-18 Kevin Buettner <kevinb@redhat.com>
3315
3316 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
3317 to be set for SEC_ALLOC sections too.
3318
554717a3
YQ
33192015-07-17 Yao Qi <yao.qi@linaro.org>
3320
3321 * Makefile.in (HFILES_NO_SRCDIR): Add
3322 nat/aarch64-linux-hw-point.h.
3323 (aarch64-linux-hw-point.o): New rule.
3324 * nat/aarch64-linux-hw-point.h: New file.
3325 * nat/aarch64-linux-hw-point.c: New file.
3326 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
3327 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
3328 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
3329 (AARCH64_HWP_ALIGNMENT): Likewise.
3330 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
3331 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
3332 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
3333 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
3334 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
3335 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
3336 (struct aarch64_debug_reg_state): Likewise.
3337 (struct arch_lwp_info): Likewise.
3338 (aarch64_linux_set_debug_regs): Likewise.
3339 (aarch64_notify_debug_reg_change): Remove static.
3340 (aarch64_align_watchpoint): Likewise.
3341 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
3342 (aarch64_watchpoint_length): Likewise.
3343 (aarch64_point_encode_ctrl_reg): Likewise
3344 (aarch64_point_is_aligned): Likewise.
3345 (aarch64_dr_state_insert_one_point): Likewise.
3346 (aarch64_dr_state_remove_one_point): Likewise.
3347 (aarch64_handle_breakpoint): Likewise.
3348 (aarch64_handle_aligned_watchpoint): Likewise.
3349 (aarch64_handle_unaligned_watchpoint): Likewise.
3350 (aarch64_handle_watchpoint): Likewise.
3351 * config/aarch64/linux.mh (NAT_FILE): Add
3352 aarch64-linux-hw-point.o.
3353
c67ca4de
YQ
33542015-07-17 Yao Qi <yao.qi@linaro.org>
3355
3356 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
3357 state and don't call aarch64_get_debug_reg_state. All callers
3358 update.
3359 (aarch64_linux_insert_hw_breakpoint): Call
3360 aarch64_get_debug_reg_state earlier.
3361 (aarch64_linux_remove_hw_breakpoint): Likewise.
3362 (aarch64_handle_aligned_watchpoint): Add argument state and
3363 don't call aarch64_get_debug_reg_state. All callers update.
3364 (aarch64_handle_unaligned_watchpoint): Likewise.
3365 (aarch64_handle_watchpoint): Add argument state.
3366 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
3367 earlier.
3368 (aarch64_linux_remove_watchpoint): Likewise.
3369
25abf979
YQ
33702015-07-17 Yao Qi <yao.qi@linaro.org>
3371
3372 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
3373 debug_printf.
3374 (aarch64_handle_unaligned_watchpoint): Likewise.
3375
2ecd81c2
YQ
33762015-07-17 Yao Qi <yao.qi@linaro.org>
3377
3378 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
3379 argument type's type to 'enum target_hw_bp_type'.
3380 (aarch64_dr_state_remove_one_point): Likewise.
3381 (aarch64_handle_breakpoint): Likewise.
3382 (aarch64_linux_insert_hw_breakpoint): Likewise.
3383 (aarch64_linux_remove_hw_breakpoint): Likewise.
3384 (aarch64_handle_aligned_watchpoint): Likewise.
3385
e53b6938
YQ
33862015-07-17 Yao Qi <yao.qi@linaro.org>
3387
3388 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
3389 ptid_get_pid instead of get_thread_id.
3390
6a49a997
YQ
33912015-07-17 Yao Qi <yao.qi@linaro.org>
3392
3393 * remote.c (get_current_thread): Initialise ptid to null_ptid.
3394 (add_current_inferior_and_thread): Don't initialise ptid.
3395
4bcddace
PL
33962015-07-16 Pierre Langlois <pierre.langlois@arm.com>
3397
3398 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
3399 unavailable if invalid.
3400
db1ff28b
JK
34012015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3402
3403 Revert the previous 6 commits:
3404 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3405 Move gdb_regex* to common/
3406 Prepare linux_find_memory_regions_full & co. for move
3407 Move linux_find_memory_regions_full & co.
3408 gdbserver build-id attribute generator
3409 Validate symbol file using build-id
3410
ca5268b6
JK
34112015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3412 Jan Kratochvil <jan.kratochvil@redhat.com>
3413
3414 Validate symbol file using build-id.
3415 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
3416 and 'show validate-build-id'. Add build-id attribute.
3417 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
3418 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
3419 * solib-frv.c (_initialize_frv_solib): Ditto.
3420 * solib-spu.c (set_spu_solib_ops): Ditto.
3421 * solib-svr4.c: Include rsp-low.h.
3422 (NOTE_GNU_BUILD_ID_NAME): New define.
3423 (svr4_validate): New function.
3424 (svr4_copy_library_list): Duplicate field build_id.
3425 (library_list_start_library): Parse 'build-id' attribute.
3426 (svr4_library_attributes): Add 'build-id' attribute.
3427 (_initialize_svr4_solib): Assign validate value.
3428 * solib-target.c (solib.h): Include.
3429 (_initialize_solib_target): Assign validate value.
3430 * solib.c (validate_build_id, show_validate_build_id): New.
3431 (solib_map_sections): Use ops->validate.
3432 (clear_so): Free build_id.
3433 (default_solib_validate): New function.
3434 (_initialize_solib): Add "validate-build-id".
3435 * solib.h (default_solib_validate): New declaration.
3436 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
3437 (target_so_ops): New field 'validate'.
3438
700ca40f
JK
34392015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3440 Jan Kratochvil <jan.kratochvil@redhat.com>
3441
3442 gdbserver build-id attribute generator.
3443 * features/library-list-svr4.dtd (library-list-svr4): New
3444 'build-id' attribute.
3445
9904185c
JK
34462015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3447 Jan Kratochvil <jan.kratochvil@redhat.com>
3448
3449 Move linux_find_memory_regions_full & co.
3450 * linux-tdep.c (nat/linux-maps.h): Include.
3451 (gdb_regex.h): Remove the include.
3452 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
3453 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
3454 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
3455 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
3456 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
3457 and target/target.h.
3458 (struct smaps_vmflags, read_mapping, decode_vmflags)
3459 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
3460 (linux_find_memory_regions_full): Move from linux-tdep.c.
3461 * nat/linux-maps.h (read_mapping): New declaration.
3462 (linux_find_memory_region_ftype, enum filterflags): Moved from
3463 linux-tdep.c.
3464 (linux_find_memory_regions_full): New declaration.
3465 * target.c (target/target-utils.h): Include.
3466 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
3467 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
3468 definitions to target/target-utils.c.
3469 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
3470 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
3471 from target.c.
3472 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
3473 (read_alloc): New declaration.
3474 (read_stralloc_func_ftype): New typedef.
3475 (read_stralloc): New declaration.
3476 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
3477
f7af1fcd
JK
34782015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3479 Jan Kratochvil <jan.kratochvil@redhat.com>
3480
3481 Prepare linux_find_memory_regions_full & co. for move.
3482 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
3483 (linux_find_memory_regions_full): Change signature and prepare
3484 for moving to linux-maps.
3485 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
3486 (linux_find_memory_regions_thunk): New.
3487 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
3488 (linux_find_memory_regions_gdb): New.
3489 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
3490 (linux_make_mappings_corefile_notes): Use
3491 linux_find_memory_regions_gdb.
3492 * target.c (read_alloc_pread_ftype): New typedef.
3493 (target_fileio_read_alloc_1_pread): New function.
3494 (read_alloc): Refactor from target_fileio_read_alloc_1.
3495 (read_stralloc_func_ftype): New typedef.
3496 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
3497 (read_stralloc): Refactored from target_fileio_read_stralloc.
3498 (target_fileio_read_stralloc): New implementation, use read_stralloc.
3499
6e5b4429
JK
35002015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3501
3502 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
3503 common/gdb_regex.h.
3504 (COMMON_OBS): Add gdb_regex.o.
3505 (gdb_regex.o): New.
3506 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
3507 --without-included-regex and USE_INCLUDED_REGEX.
3508 * common/gdb_regex.c: New file from utils.c functions.
3509 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
3510 file wrapping define name.
3511 * configure: Rebuilt.
3512 * configure.ac (gdb_use_included_regex, --without-included-regex)
3513 (USE_INCLUDED_REGEX): Move them to common/common.m4.
3514 * gdb_regex.h: Move it to common/gdb_regex.h.
3515 * utils.c: Remove include gdb_regex.h.
3516 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
3517 (compile_rx_or_error): Move them to common/gdb_regex.c.
3518
ddc98fbf
JK
35192015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3520 Jan Kratochvil <jan.kratochvil@redhat.com>
3521
3522 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3523 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
3524 common/target-utils.h.
3525 (COMMON_OBS): Add target-utils.o.
3526 (linux-maps.o, target-utils.o): New.
3527 * target/target-utils.c: New file.
3528 * target/target-utils.h: New file.
3529 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
3530 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3531 * nat/linux-maps.c: New file.
3532 * nat/linux-maps.h: New file.
3533
e7b01ce0
MM
35342015-07-15 Markus Metzger <markus.t.metzger@intel.com>
3535 Pedro Alves <palves@redhat.com>
3536
3537 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
3538 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
3539 (perf_event_read_bts): Change the type of SIZE and READ.
3540 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
3541 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
3542 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
3543 mmap page.
3544 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
3545 buffer size to UINT_MAX.
3546 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
3547 DATA_TAIL.
3548 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
3549 <last_head>: Change type.
3550 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
3551 * common/btrace-common.c (btrace_data_append): Change the type of
3552 SIZE.
3553 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
3554 check.
3555
f168693b
SM
35562015-07-14 Simon Marchi <simon.marchi@ericsson.com>
3557
3558 * gdbtypes.h (CHECK_TYPEDEF): Remove.
3559 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
3560 with check_typedef.
3561 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
3562 (ada_array_length): Likewise.
3563 (find_parallel_type_by_descriptive_type): Likewise.
3564 (ada_check_typedef): Likewise.
3565 * arm-tdep.c (arm_return_in_memory): Likewise.
3566 * ax-gdb.c (gen_trace_static_fields): Likewise.
3567 (gen_struct_ref_recursive): Likewise.
3568 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3569 (variable: block COLONCOLON name): Likewise.
3570 (qualified_name: TYPENAME COLONCOLON name): Likewise.
3571 * c-lang.c (classify_type): Likewise.
3572 * c-typeprint.c (c_print_type): Likewise.
3573 (c_print_typedef): Likewise.
3574 (c_type_print_base): Likewise.
3575 * c-valprint.c (c_val_print): Likewise.
3576 * compile/compile-c-types.c (convert_type): Likewise.
3577 * compile/compile-object-load.c (get_out_value_type): Likewise.
3578 * completer.c (add_struct_fields): Likewise.
3579 (expression_completer): Likewise.
3580 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
3581 (cp_lookup_nested_symbol_1): Likewise.
3582 (cp_lookup_nested_symbol): Likewise.
3583 * cp-valprint.c (cp_print_value_fields): Likewise.
3584 (cp_print_static_field): Likewise.
3585 * d-valprint.c (d_val_print): Likewise.
3586 * eval.c (evaluate_subexp_standard): Likewise.
3587 (evaluate_subexp_for_sizeof): Likewise.
3588 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3589 * f-typeprint.c (f_type_print_base): Likewise.
3590 * f-valprint.c (f_val_print): Likewise.
3591 * gdbtypes.c (get_discrete_bounds): Likewise.
3592 (create_array_type_with_stride): Likewise.
3593 (type_name_no_tag_or_error): Likewise.
3594 (lookup_struct_elt_type): Likewise.
3595 (get_unsigned_type_max): Likewise.
3596 (internal_type_vptr_fieldno): Likewise.
3597 (set_type_vptr_fieldno): Likewise.
3598 (internal_type_vptr_basetype): Likewise.
3599 (set_type_vptr_basetype): Likewise.
3600 (get_vptr_fieldno): Likewise.
3601 (is_integral_type): Likewise.
3602 (is_scalar_type): Likewise.
3603 (is_scalar_type_recursive): Likewise.
3604 (distance_to_ancestor): Likewise.
3605 (is_unique_ancestor_worker): Likewise.
3606 (check_types_equal): Likewise.
3607 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3608
45280282
IB
36092015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
3610
3611 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
3612 also test for language_d.
3613 (dwarf2_compute_name): Likewise.
3614 (read_func_scope): Likewise.
3615 (read_structure_type): Likewise.
3616 (new_symbol_full): Likewise.
3617 (determine_prefix): Likewise.
3618 (read_import_statement): Use dot as the separator for language_d.
3619 (typename_concat): Likewise, but don't prefix the D main function.
3620
99fe86f7
PB
36212015-07-14 Peter Bergner <bergner@vnet.ibm.com>
3622
3623 * nat/linux-namespaces.c (setns): Rename from this ...
3624 (do_setns): ... to this. Support calling setns if it exists.
3625 (mnsh_handle_setns): Call do_setns.
3626
d5131498
YQ
36272015-07-13 Yao Qi <yao.qi@linaro.org>
3628
3629 * exec.c (exec_file_attach): Add period at the end of error
3630 message.
3631
97605e61
AB
36322015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
3633
3634 * tui/tui-win.c (window_name_completer): New function.
3635 (focus_completer): Call window_name_completer. All old content
3636 moved into window_name_completer.
3637 (winheight_completer): New function.
3638 (_initialize_tui_win): Rename variable. Add completer to
3639 winheight command. Update doc string on winheight.
3640
8d6dbeb4
SL
36412015-07-12 Sandra Loosemore <sandra@codesourcery.com>
3642
3643 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
3644 all nios2 mach variants.
3645
a0e28e54
KB
36462015-07-10 Kevin Buettner <kevinb@redhat.com>
3647
3648 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
3649 of target_read_memory.
3650
c101f28f
AB
36512015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3652
3653 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
3654 string copy.
3655 (parse_scrolling_args): Likewise.
3656
150375dc
AB
36572015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3658
3659 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
3660 names in this function.
3661
6dce28e4
AB
36622015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3663
3664 * tui/tui-data.h (SRC_NAME): Convert to lower case.
3665 (CMD_NAME): Likewise.
3666 (DATA_NAME): Likewise.
3667 (DISASSEM_NAME): Likewise.
3668 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
3669 (tui_set_win_height): Likewise.
3670 (parse_scrolling_args): Likewise.
3671
485668e5
MM
36722015-07-10 Markus Metzger <markus.t.metzger@intel.com>
3673
3674 * record-btrace.c (record_btrace_goto_begin)
3675 (record_btrace_goto_end, record_btrace_goto): Move call to
3676 print_stack_frame ...
3677 (record_btrace_set_replay): ... here. Set stop_pc.
3678 * record-full.c (record_full_goto_entry): Set stop_pc.
3679
58d2eda5
PL
36802015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3681
3682 * NEWS: Mention support for tracepoints on aarch64-linux.
3683
7671bf47
PL
36842015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3685
3686 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
3687 function. Return 1.
3688 (the_low_target): Install it.
3689
7890fb45
PL
36902015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3691
3692 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
3693 * gdb.trace/collection.exp: Likewise.
3694 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
3695 * gdb.trace/mi-trace-unavailable.exp: Likewise.
3696 * gdb.trace/report.exp: Likewise.
3697 * gdb.trace/trace-break.exp: Likewise.
3698 * gdb.trace/unavailable.exp: Likewise.
3699 * gdb.trace/while-dyn.exp: Likewise.
3700
ea873d8e
PL
37012015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3702
3703 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
3704 (aarch64_gen_return_address): New function.
3705 (aarch64_gdbarch_init): Hook it.
3706
02a2a705
PL
37072015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3708
3709 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
3710 swallow NOT_AVAILABLE_ERROR.
3711 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
3712 available_p is not set.
3713 (aarch64_stub_frame_unwind_stop_reason): New function.
3714 (aarch64_stub_unwind): Install it.
3715
7dfa3edc
PL
37162015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3717
3718 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
3719 field.
3720 (aarch64_make_prologue_cache_1): New function, factored out from
3721 aarch64_make_prologue_cache. Do not allocate cache. Set
3722 available_p.
3723 (aarch64_make_prologue_cache): Reimplement wrapping
3724 aarch64_make_prologue_cache_1, and swallowing
3725 NOT_AVAILABLE_ERROR.
3726 (aarch64_prologue_frame_unwind_stop_reason): New function.
3727 Return UNWIND_UNAVAILABLE if available_p is not set.
3728 (aarch64_prologue_unwind): Install it.
3729 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
3730 checks into aarch64_prologue_frame_unwind_stop_reason. Call
3731 frame_id_build_unavailable_stack if available_p is not set.
3732
db634143
PL
37332015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3734
3735 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
3736 fields.
3737 (aarch64_scan_prologue): Set prev_pc.
3738 (aarch64_make_prologue_cache): Set func.
3739 (aarch64_make_stub_cache): Set prev_pc.
3740 (aarch64_prologue_this_id): Remove local variables id, pc and
3741 func. Read prev_pc and func from cache.
3742 (aarch64_stub_this_id): Read prev_pc from cache.
3743
8b61f75d
PL
37442015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3745
3746 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
3747 argument this_cache. Remove unused local variables reg and
3748 unwound_fp. Return early if this_cache is already set. Set
3749 this_cache.
3750 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
3751
7c8edfae
PL
37522015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3753
3754 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
3755 New argument this_cache. Return early if this_cache is already
3756 set. Set this_cache.
3757 (aarch64_prologue_this_id): Update call to
3758 aarch64_make_prologue_cache.
3759 (aarch64_prologue_prev_register): Likewise.
3760 (aarch64_normal_frame_base): Likewise.
3761
938c69a1
SM
37622015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3763
3764 * c-valprint.c (c_val_print): Factor out memberptr printing code
3765 from c_val_print to ...
3766 (c_val_print_memberptr): ... this new function.
3767
49f7fe28
SM
37682015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3769
3770 * c-valprint.c (c_val_print): Factor out int printing code to ...
3771 (c_val_print_int): ... this new function.
3772
9e4f353c
SM
37732015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3774
3775 * c-valprint.c (c_val_print): Factor out struct and union
3776 printing code to ...
3777 (c_val_print_struct): ... this new function ...
3778 (c_val_print_union): ... and this new function.
3779
1c67f032
SM
37802015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3781
3782 * c-valprint.c (c_val_print): Factor out pointer printing code
3783 to ...
3784 (c_val_print_ptr): ... this new function.
3785
0b6ef777
SM
37862015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3787
3788 * c-valprint.c (c_valprint): Factor our array printing code from
3789 c_val_print to ...
3790 (c_val_print_array): ... this new function.
3791
1033c33c
SM
37922015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3793
3794 * c-valprint.c (c_val_print): Factor out pointer printing code
3795 to ...
3796 (print_unpacked_pointer): ... this new function.
3797
f6b93c34
SM
37982015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3799
3800 * c-valprint.c (c_val_print): Remove an assignment to i and move
3801 its declaration.
3802
0f4576e3
YQ
38032015-07-09 Yao Qi <yao.qi@linaro.org>
3804
3805 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
3806 argument ptid. Update comments. Caller update.
3807
37fdfe4c
MM
38082015-07-09 Markus Metzger <markus.t.metzger@intel.com>
3809
3810 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
3811 mnt packets.
3812
80a2b330
MM
38132015-07-09 Markus Metzger <markus.t.metzger@intel.com>
3814
3815 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
3816
4ab31498
SM
38172015-07-08 Simon Marchi <simon.marchi@ericsson.com>
3818
3819 * progspace.c (delete_program_space): Add missing spaces.
3820
7a41607e
SM
38212015-07-08 Simon Marchi <simon.marchi@ericsson.com>
3822
3823 * inferior.c (delete_inferior_1): Rename to ...
3824 (delete_inferior): ..., remove 'silent' parameter, delete
3825 program space when unused and remove call to prune_program_spaces.
3826 Remove the old, unused, delete_inferior.
3827 (delete_inferior_silent): Remove.
3828 (prune_inferiors): Change call from delete_inferior_1 to
3829 delete_inferior and remove 'silent' parameter. Remove call to
3830 prune_program_spaces.
3831 (remove_inferior_command): Idem.
3832 * inferior.h (delete_inferior_1): Rename to...
3833 (delete_inferior): ..., remove 'silent' parameter and remove the
3834 original delete_inferior.
3835 (delete_inferior_silent): Remove.
3836 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
3837 delete_inferior_1 to delete_inferior and remove 'silent'
3838 parameter.
3839 * progspace.c (prune_program_spaces): Remove.
3840 (pspace_empty_p): Rename to...
3841 (program_space_empty_p): ... and make non-static.
3842 (delete_program_space): New.
3843 * progspace.h (prune_program_spaces): Remove declaration.
3844 (program_space_empty_p): New declaration.
3845 (delete_program_space): New declaration.
3846 * monitor.c (monitor_close): Replace call to
3847 delete_thread_silent and delete_inferior_silent with
3848 discard_all_inferiors.
3849
a9bd710f
PP
38502015-07-08 Patrick Palka <patrick@parcs.ath.cx>
3851
3852 * defs.h (deprecated_register_changed_hook): Remove prototype.
3853 * interps.c (clear_iterpreter_hooks): Remove reference to
3854 deprecated_register_changed_hook.
3855 * top.c (deprecated_register_changed_hook): Remove prototype.
3856 * valops.c (value_assign): Remove reference to
3857 deprecated_register_changed_hook.
3858 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
3859 Add comment documenting the function.
3860 (tui_register_changed_observer): Define.
3861 (tui_install_hooks): Remove reference to
3862 deprecated_register_changed_hook. Set
3863 tui_register_changed_observer.
3864 (tui_remove_hooks): Remove reference to
3865 deprecated_register_changed_hook. Unset
3866 tui_register_changed_observer.
3867
08464196
JK
38682015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3869
3870 PR compile/18484
3871 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
3872
bcf5c1d9
RC
38732015-07-08 Robert O'Callahan <robert@ocallahan.org>
3874
3875 PR exp/18617
3876 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
3877
e8643a45
MM
38782015-07-08 Markus Metzger <markus.t.metzger@intel.com>
3879
3880 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
3881
76fb6829
MM
38822015-07-08 Markus Metzger <markus.t.metzger@intel.com>
3883
3884 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
3885 Use safe_strerror() instead of strerror().
3886
82c40d4b
YQ
38872015-07-07 Yao Qi <yao.qi@linaro.org>
3888
3889 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
3890 * features/arm-with-m-fpa-layout.c: Regenerated.
3891 * features/arm-with-m-vfp-d16.xml: Likewise.
3892 * features/arm-with-m-vfp-d16.c: Regenerated.
3893 * features/arm-with-m.xml: Likewise.
3894 * features/arm-with-m.c: Regenerated.
3895 * features/arm-with-neon.xml: Likewise.
3896 * features/arm-with-neon.c: Regenerated.
3897 * features/arm-with-vfpv2.xml: Likewise.
3898 * features/arm-with-vfpv2.c: Regenerated.
3899 * features/arm-with-vfpv3.xml: Likewise.
3900 * features/arm-with-vfpv3.c: Regenerated.
3901
607685ec
YQ
39022015-07-07 Yao Qi <yao.qi@linaro.org>
3903
3904 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
3905 arm-linux-nat.c.
3906 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
3907 elf/external.h.
3908 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
3909 if target is 32-bit.
3910 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
3911 if target is 32-bit.
3912 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
3913 if target is 32-bit.
3914 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
3915 if target is 32-bit.
3916 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
3917 (aarch64_linux_read_description): Return the right target
3918 description.
3919 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
3920 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
3921 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
3922 arm-linux-tdep.o.
3923
f1b67888
YQ
39242015-07-07 Yao Qi <yao.qi@linaro.org>
3925
3926 * aarch32-linux-nat.c: New file.
3927 * aarch32-linux-nat.h: New file.
3928 * arm-linux-nat.c: Include aarch32-linux-nat.h.
3929 (fetch_regs): Move code to aarch32-linux-nat.c. Call
3930 aarch32_gp_regcache_supply.
3931 (store_regs): Move code to aarch32-linux-nat.c. Call
3932 aarch32_gp_regcache_collect.
3933 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
3934 aarch32_vfp_regcache_supply.
3935 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
3936 aarch32_vfp_regcache_collect.
3937 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
3938
179bfe82
YQ
39392015-07-07 Yao Qi <yao.qi@linaro.org>
3940
3941 * arm-linux-nat.c (store_fpregister): Remove.
3942 (store_register): Likewise.
3943 (fetch_fpregister): Likewise.
3944 (fetch_register): Likewise.
3945 (arm_linux_store_inferior_registers): Call store_regs and
3946 store_fpregs instead.
3947 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
3948 fetch_regs instead.
3949
6008fc5f
AB
39502015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3951
3952 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
3953 and focus commands.
3954
7c79d316
JB
39552015-07-06 Joel Brobecker <brobecker@adacore.com>
3956
3957 * NEWS: Create a new section for the next release branch.
3958 Rename the section of the current branch, now that it has
3959 been cut.
3960
f2232bea
JB
39612015-07-06 Joel Brobecker <brobecker@adacore.com>
3962
3963 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
3964 * version.in: Bump version to 7.10.50.DATE-cvs.
3965
66c4b3e8
LM
39662015-07-06 Luis Machado <lgustavo@codesourcery.com>
3967
3968 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
3969 breakpoints in a special way.
3970 (remove_breakpoint): Likewise.
3971 (mark_breakpoints_out): Likewise.
3972
bcd8537c
AB
39732015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3974
3975 * doc/gdb.texinfo (TUI): Add comma after @xref.
3976
10e9aaa3
AB
39772015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
3980 instead of casting the structure type.
3981
8a13d42d
SM
39822015-07-06 Simon Marchi <simon.marchi@ericsson.com>
3983
3984 * valops.c (search_struct_field): Remove OFFSET parameter.
3985 (value_cast_structs): Adjust calls to search_struct_field.
3986 (value_struct_elt): Same.
3987 (find_overload_match): Same.
3988
a844296a
SM
39892015-07-06 Simon Marchi <simon.marchi@ericsson.com>
3990
3991 * value.c (value_fetch_lazy): Update comment, change return
3992 value to void.
3993 * value.h (value_fetch_lazy): Change return value to void.
3994
f41cbf58
AB
39952015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3996
3997 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
3998 (tui_win_name): Make parameter and result const.
3999 * tui/tui-data.h (tui_win_name): Make parameter and result const.
4000
118ca224
PP
40012015-07-06 Patrick Palka <patrick@parcs.ath.cx>
4002
4003 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
4004 use printf_unfiltered.
4005 (set_mpx_cmd): Add missing trailing space to command string
4006 literal.
4007 (_initialize_i386_tdep): Give the "mpx" prefix command its
4008 correct name.
4009
1b485e67
KB
40102015-07-02 Kevin Buettner <kevinb@redhat.com>
4011
4012 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
4013 (enum rx_frame_type): New.
4014 (struct rx_prologue): Add new field `frame_type'.
4015 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
4016 parameter in the prologue struct. Add code for recording
4017 locations of PC and PSW for fast interrupt and exception frames.
4018 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
4019 (rx_analyze_frame_prologue): Add `frame_type' parameter.
4020 (rx_frame_type): New function.
4021 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
4022 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
4023 `this_cache'.
4024 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 4025 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
4026 RX_FRAME_TYPE_FAST_INTERRUPT.
4027 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
4028 (rx_frame_sniffer, rx_exception_sniffer): New functions.
4029 (rx_frame_unwind): Use rx_frame_sniffer instead of
4030 default_frame_sniffer.
4031 (rx_frame_unwind): New unwinder.
4032 (rx_gdbarch_init): Register new unwinder.
4033
0561fea4
KB
40342015-07-02 Kevin Buettner <kevinb@redhat.com>
4035
4036 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
4037 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
4038 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
4039 and RX_FPSW_REGNUM.
4040 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
4041
decf8d9a
JK
40422015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4043
4044 Fix GCC false warning.
4045 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
4046
2fd0f80d
YQ
40472015-07-02 Yao Qi <yao.qi@linaro.org>
4048
4049 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
4050 typo in the debugging message.
4051
b0627500
MM
40522015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4053
4054 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
4055 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
4056 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
4057 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
4058 (btrace_maint_clear): New.
4059 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
4060 (pt_print_packet, btrace_maint_decode_pt)
4061 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
4062 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
4063 (maint_btrace_packet_history_cmd)
4064 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
4065 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
4066 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
4067 (maint_info_btrace_cmd, _initialize_btrace): New.
4068 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
4069 (btrace_maint_packet_history, btrace_maint_info): New.
4070 (btrace_thread_info) <maint>: New.
4071 * NEWS: Announce it.
4072
9be54cae
MM
40732015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4074
4075 * btrace.c (btrace_fetch): Append the new trace data.
4076 (btrace_clear): Clear the stored trace data.
4077 * btrace.h (btrace_thread_info) <data>: New.
4078 * common/btrace-common.h (btrace_data_clear)
4079 (btrace_data_append): New.
4080 * common/btrace-common.c (btrace_data_clear)
4081 (btrace_data_append): New.
4082
010a18a1
MM
40832015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4084
4085 * nat/linux-btrace.c (linux_enable_bts): Check for
4086 PERF_ATTR_SIZE_VER5.
4087 Check for data_offset and data_size fields. Use them.
4088
b20a6524
MM
40892015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4090
4091 * NEWS: Announce new commands "record btrace pt" and "record pt".
4092 Announce new options "set|show record btrace pt buffer-size".
4093 * btrace.c: Include "rsp-low.h".
4094 Include "inttypes.h".
4095 (btrace_add_pc): Add forward declaration.
4096 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
4097 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
4098 (btrace_compute_ftrace_pt): New.
4099 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
4100 (check_xml_btrace_version): Update version check.
4101 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
4102 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
4103 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
4104 (btrace_pt_children): New.
4105 (btrace_children): Add support for "pt".
4106 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
4107 (btrace_conf_children): Add support for "pt".
4108 * btrace.h: Include "intel-pt.h".
4109 (btrace_pt_error): New.
4110 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
4111 (btrace_data_empty): Support BTRACE_FORMAT_PT.
4112 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
4113 (struct btrace_config_pt): New.
4114 (struct btrace_config)<pt>: New.
4115 (struct btrace_data_pt_config, struct btrace_data_pt): New.
4116 (struct btrace_data)<pt>: New.
4117 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
4118 (pt): New.
4119 * features/btrace.dtd (btrace)<pt>: New.
4120 (pt, pt-config, cpu): New.
4121 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
4122 (perf_event_pt_event_type, kernel_supports_pt)
4123 (linux_supports_pt): New.
4124 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
4125 (linux_enable_bts): Free tinfo on error.
4126 (linux_enable_pt): New.
4127 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
4128 (linux_disable_pt): New.
4129 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
4130 (linux_fill_btrace_pt_config, linux_read_pt): New.
4131 (linux_read_btrace): Support BTRACE_FORMAT_PT.
4132 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
4133 (struct btrace_target_info)<pt>: New.
4134 * record-btrace.c (set_record_btrace_pt_cmdlist)
4135 (show_record_btrace_pt_cmdlist): New.
4136 (record_btrace_print_pt_conf): New.
4137 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
4138 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
4139 (cmd_record_btrace_pt_start): New.
4140 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
4141 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
4142 (_initialize_record_btrace): Add new commands.
4143 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
4144 (remote_protocol_features): Add "Qbtrace:pt".
4145 Add "Qbtrace-conf:pt:size".
4146 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
4147 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
4148 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
4149 (_initialize_remote): Add new commands.
4150
58bfce93
MM
41512015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4152
4153 * configure.ac: check for libipt
4154 * configure: Regenerate.
4155 * config.in: Regenerate.
4156 * Makefile.in (LIBIPT): New.
4157 (CLIBS): Add $LIBIPT.
4158 * NEWS: document new configure options
4159
b0fd6b30
JK
41602015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4161
4162 * compile/compile-object-load.c (compile_object_load): Replace debug
4163 message "lookup undefined ELF symbol" by 3 more specific messages.
4164
e6280369
KB
41652015-07-01 Kevin Buettner <kevinb@redhat.com>
4166
4167 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
4168 (rl78_register_type): Add case for RL78_PSW_REGNUM.
4169 (rl78_gdbarch_init): Initialize rl78_psw_type.
4170
bbcbf914
PP
41712015-07-01 Patrick Palka <patrick@parcs.ath.cx>
4172
4173 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4174 Update commentary. Always refresh the registers when frame
4175 information has changed.
4176 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
4177 Change return type to int. Return 1 if frame information has
4178 changed, 0 otherwise.
4179 (tui_before_prompt): Update commentary.
4180 * tui/tui-stack.h (tui_show_frame_info): Change return type to
4181 int.
4182
0986c744
PP
41832015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4184
4185 PR tui/13378
4186 * frame.c (select_frame): Remove reference to
4187 deprecated_selected_frame_level_changed_hook.
4188 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
4189 declaration.
4190 * stack.c (deprecated_selected_frame_level_changed_hook):
4191 Likewise.
4192 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
4193 Rename to ...
4194 (tui_refresh_frame_and_register_information): ... this. Bail
4195 out if there is no stack. Don't update register information
4196 unless registers_too_p is true.
4197 (tui_print_frame_info_listing_hook): Rename to ...
4198 (tui_dummy_print_frame_info_listing_hook): ... this.
4199 (tui_before_prompt): New function.
4200 (tui_normal_stop): New function.
4201 (tui_before_prompt_observer): New observer.
4202 (tui_normal_stop_observer): New observer.
4203 (tui_install_hooks): Set
4204 deprecated_print_frame_info_listing_hook to
4205 tui_dummy_print_frame_info_listing_hook. Register
4206 tui_before_prompt_observer to call tui_before_prompt and
4207 tui_normal_stop_observer to call tui_normal_stop. Remove
4208 reference to deprecated_selected_frame_level_changed_hook.
4209 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
4210 and tui_normal_stop_observer. Remove reference to
4211 deprecated_selected_frame_level_changed_hook.
4212
b5fca6d7
PP
42132015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4214
4215 PR tui/13378
4216 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
4217 return an int instead of void. Return whether the locator
4218 window has changed.
4219 (tui_show_frame_info): If the locator info has not changed, then
4220 bail out early to avoid refreshing the windows.
4221
c45613e3
PP
42222015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4223
4224 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
4225 LOCATOR_WIN to tui_alloc_content.
4226
7b9be803
YQ
42272015-06-30 Yao Qi <yao.qi@linaro.org>
4228
4229 PR tdep/18605
4230 * arm-tdep.c (arm_get_next_pc_raw): Break for media
4231 instructions.
4232
fd6e021d
KB
42332015-06-29 Kevin Buettner <kevinb@redhat.com>
4234
78ab7e9d
KB
4235 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
4236 (rx_dwarf_reg_to_regnum): New function.
4237 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
4238 unwinding.
fd6e021d 4239
28bf096c
PA
42402015-06-29 Pedro Alves <palves@redhat.com>
4241
4242 PR threads/18127
4243 * infcall.c (run_inferior_call): On infcall success, if the thread
4244 was marked stopped before, reset it back to stopped.
4245 * infrun.c (resume): Don't suppress the set_running calls when
4246 doing an infcall.
4247 (normal_stop): Only discard the finish_thread_state cleanup if the
4248 infcall succeeded.
4249
2880b51c 42502015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
4251
4252 * MAINTAINERS (Write After Approval): Update my email address.
4253
ee93cd5e
KS
42542015-06-26 Keith Seitz <keiths@redhat.com>
4255 Doug Evans <dje@google.com>
4256
4257 PR 16253
4258 * block.c (block_lookup_symbol): For non-function blocks,
4259 continue to search for a symbol with an exact domain match
4260 Otherwise, return any previously found "best domain" symbol.
4261 (block_lookup_symbol_primary): Likewise.
4262
fc637f04
PP
42632015-06-26 Patrick Palka <patrick@parcs.ath.cx>
4264
4265 * NEWS: Mention the new option "history remove-duplicates".
4266 * top.c (history_remove_duplicates): New static variable.
4267 (show_history_remove_duplicates): New static function.
4268 (gdb_add_history): Conditionally remove duplicate history
4269 entries.
4270 (init_main): Add "history remove-duplicates" option.
4271
2e52ae68
PP
42722015-06-26 Patrick Palka <patrick@parcs.ath.cx>
4273
4274 * tui/tui-win.c (focus_completer): New static function.
4275 (_initialize_tui_win): Set the completion function of the
4276 "focus" command to focus_completer.
4277
6e22494e
JK
42782015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4279
4280 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
4281 and language_asm..
4282 * symtab.c (find_function_start_sal): Likewise.
4283
f8773be1
GB
42842015-06-25 Gary Benson <gbenson@redhat.com>
4285
4286 * solib.c (solib_find_1): Set local variable sysroot to NULL if
4287 it is the empty string after trailing slashes have been stripped.
4288
a3be80c3
GB
42892015-06-25 Gary Benson <gbenson@redhat.com>
4290
4291 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
4292 * infrun.c (follow_exec): Likewise.
4293 * remote.c (remote_filesystem_is_local): Likewise.
4294 * solib.c (solib_find_1): Likewise.
4295
32fad71f
KS
42962015-06-24 Keith Seitz <keiths@redhat.com>
4297
4298 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
4299 return value from lrealpath.
4300
87d1b309
MF
43012015-06-24 Mike Frysinger <vapier@gentoo.org>
4302
4303 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
4304
23bf70af
MF
43052015-06-24 Mike Frysinger <vapier@gentoo.org>
4306
4307 * remote-sim.c: Include gdb_bfd.h.
4308 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
4309 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
4310
5cd867b4
YQ
43112015-06-24 Yao Qi <yao.qi@linaro.org>
4312
4313 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
4314 set_gdbarch_get_siginfo_type.
4315 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
4316 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4317 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4318 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
4319 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
4320 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4321 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
4322 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
4323 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
4324 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
4325
dc06243f
GB
43262015-06-24 Gary Benson <gbenson@redhat.com>
4327
4328 * common/buffer.c (stdint.h): Do not include.
4329 * common/print-utils.c (stdint.h): Likewise.
4330 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
4331 * compile/compile-c-types.c (gdb_assert.h): Likewise.
4332 * ft32-tdep.c (gdb_assert.h): Likewise.
4333 * guile/scm-utils.c (stdint.h): Likewise.
4334 * i386-linux-tdep.c (stdint.h): Likewise.
4335 * i386-tdep.c (stdint.h): Likewise.
4336 * nat/linux-btrace.c (stdint.h): Likewise.
4337 * nat/linux-btrace.h (stdint.h): Likewise.
4338 * nat/linux-ptrace.c (stdint.h): Likewise.
4339 * nat/mips-linux-watch.h (stdint.h): Likewise.
4340 * ppc-linux-nat.c (stdint.h): Likewise.
4341 * python/python-internal.h (stdint.h): Likewise.
4342 * stub-termcap.c (stdlib.h): Likewise.
4343 * target/target.h (stdint.h): Likewise.
4344 * xtensa-linux-nat.c (stdint.h): Likewise.
4345
0fc26caf
PP
43462015-06-23 Patrick Palka <patrick@parcs.ath.cx>
4347
4348 * top.c (init_history): Look at errno after calling strtol to
4349 properly map large GDBHISTSIZE values to infinity.
4350
a38fe4fe
DE
43512015-06-23 Doug Evans <dje@google.com>
4352
4353 * inferior.h (struct inferior_suspend_state): Delete, unused.
4354 All references deleted.
4355
7564fe45
MF
43562015-06-23 Mike Frysinger <vapier@gentoo.org>
4357
4358 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
4359 (microblaze_push_dummy_call): Likewise.
4360 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
4361 and set_gdbarch_push_dummy_call.
4362
0bdb2f78
YQ
43632015-06-23 Yao Qi <yao.qi@linaro.org>
4364
4365 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4366 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
4367 (amd64_linux_store_inferior_registers): Likewise.
4368 * arm-linux-nat.c (fetch_fpregister): Likewise.
4369 (fetch_fpregs, store_fpregister): Likewise.
4370 (store_fpregister, store_fpregs): Likewise.
4371 (fetch_register, fetch_regs): Likewise.
4372 (store_register, store_regs): Likewise.
4373 (fetch_vfp_regs, store_vfp_regs): Likewise.
4374 (arm_linux_read_description): Check have_ptrace_getregset is
4375 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
4376 or TRIBOOL_FALSE.
4377 * i386-linux-nat.c (fetch_xstateregs): Check
4378 have_ptrace_getregset is not TRIBOOL_TRUE.
4379 (store_xstateregs): Likewise.
4380 * linux-nat.c (have_ptrace_getregset): Change its type to
4381 enum tribool.
4382 * linux-nat.h (tribool): New enum.
4383 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
4384 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
4385
18a94d75
DE
43862015-06-19 Doug Evans <dje@google.com>
4387
4388 * NEWS: Mention Sun's version of stabs is no longer supported.
4389 * elfread.c (free_elfinfo): Delete. All uses updated.
4390 (elfstab_offset_sections): Delete. All uses updated.
4391 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
4392 * psympriv.h (partial_symtab) <section_offsets>: Delete.
4393 All uses updated.
4394 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
4395 All callers updated.
4396
124e13d9
SM
43972015-06-18 Simon Marchi <simon.marchi@ericsson.com>
4398
4399 * common/rsp-low.c (needs_escaping): New.
4400 (remote_escape_output): Add unit_size parameter. Refactor to
4401 support multi-byte addressable units. Rename parameters.
4402 * common/rsp-low.h (remote_escape_output): Add unit_size
4403 parameter and rename others. Update doc.
4404 * remote.c (align_for_efficient_write): New.
4405 (remote_write_bytes_aux): Add unit_size parameter and use it.
4406 Rename some variables. Update doc.
4407 (remote_xfer_partial): Get unit size and use it.
4408 (remote_read_bytes_1): Add unit_size parameter and use it.
4409 Rename some variables. Update doc.
4410 (remote_write_bytes): Same.
4411 (remote_xfer_live_readonly_partial): Same.
4412 (remote_read_bytes): Same.
4413 (remote_flash_write): Update call to remote_write_bytes_aux.
4414 (remote_write_qxfer): Update call to remote_escape_output.
4415 (remote_search_memory): Same.
4416 (remote_hostio_pwrite): Same.
4417
6ae88661
LM
44182015-06-17 Luis Machado <lgustavo@codesourcery.com>
4419
4420 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
4421 locations as inserted.
4422 Update and expand comment about permanent locations.
4423 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
4424 Move comment to add_location_to_breakpoint.
4425 (update_global_location_list): Don't error out if a permanent
4426 breakpoint is not marked inserted.
4427 Don't error out if a non-permanent breakpoint location is inserted on
4428 top of a permanent breakpoint.
4429
da4616f6
LM
44302015-06-17 Luis Machado <lgustavo@codesourcery.com>
4431
4432 * breakpoint.c (make_breakpoint_permanent): Remove unused
4433 function.
4434 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
4435
bc460514
PP
44362015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4437
4438 PR gdb/16999
4439 * NEWS: Mention new GDBHISTSIZE behavior.
4440 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
4441 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
4442
b58c513b
PP
44432015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4444
4445 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
4446 * top.c (init_history): Read from GDBHISTSIZE instead of
4447 HISTSIZE.
4448 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
4449
2093d2d3
PP
44502015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4451
4452 * top.c (gdb_safe_append_history): Do not call
4453 history_truncate_file if the history is not stifled.
4454
fc248485
AA
44552015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4456
4457 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
4458 * syscalls/s390x-linux.xml: Likewise.
4459
4da680ad
ME
44602015-06-16 Michael Eager <eager@eagercon.com>
4461
4462 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
4463
0a75489f
PP
44642015-06-16 Patrick Palka <patrick@parcs.ath.cx>
4465
4466 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
4467 target_terminal_ours_for_output() before calling
4468 tui_show_frame_info(), and restore the original terminal
4469 settings afterwards.
4470
95855ca8
MS
44712015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
4472
4473 * arm-linux-nat.c: Include nat/linux-ptrace.h.
4474
cfc32360
SM
44752015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4476
4477 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
4478 memory unit size.
4479 (mi_cmd_data_write_memory_bytes): Same.
4480
cb6f16cf
SM
44812015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4482
4483 * corefile.c (write_memory): Update doc.
4484 * gdbcore.h (write_memory): Same.
4485
31b7833d
JK
44862015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4487
4488 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
4489 (dump_mapping_p): Use it for parameter filterflags.
4490 (linux_find_memory_regions_full): Use it for variable filterflags.
4491
909c2cda
JK
44922015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4493 Jan Kratochvil <jan.kratochvil@redhat.com>
4494
4495 Merge multiple hex conversions.
4496 * monitor.c: Include rsp-low.h.
4497 (fromhex): Remove definition.
4498
03aef70f
JK
44992015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4500 Jan Kratochvil <jan.kratochvil@redhat.com>
4501
4502 Move utility functions to common/.
4503 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
4504 Move defs to common/common-utils.c.
4505 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
4506 (skip_to_space_const): Move decls to common/common-utils.h.
4507 * common/common-defs.h: Move include of common-types.h before
4508 common-utils.h.
4509 * common/common-utils.c: Include host-defs.h and ctype.h.
4510 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
4511 from utils.c.
4512 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
4513 cli/cli-utils.c.
4514 * common/common-utils.h (strtoulst): Move decl from utils.h.
4515 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
4516 Move from cli/cli-utils.h.
4517 * common/host-defs.h: Include limits.h.
4518 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
4519 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
4520 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
4521 common/common-utils.h.
4522 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
4523 (strtoulst): Move to common/common-utils.c.
4524 * utils.h (strtoulst): Moved decl to common/common-utils.h.
4525
d1168cc1
YQ
45262015-06-15 Yao Qi <yao.qi@linaro.org>
4527
4528 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
4529
c74f7d1c
JT
45302015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
4531
4532 * build-id.c: Don't include elf-bfd.h.
4533 (build_id_bfd_get): Use bfd_build_id.
4534 (build_id_verify): Ditto.
4535 * build-id.h: Ditto.
4536 (find_separate_debug_file_by_buildid): Ditto.
4537 * python/py-objfile.c: Don't include elf-bfd.h.
4538 (objfpy_get_build_id) Use bfd_build_id.
4539 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
4540 * coffread.c: Include build-id.h.
4541 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
4542
f20c58f5
JT
45432015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4544
4545 * windows-nat.c (do_windows_fetch_inferior_registers)
4546 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
4547 conditional with __CYGWIN__.
4548
51f0e40d
AB
45492015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
4550
4551 * completer.c: Add arch-utils.h include.
4552 (enum reg_completer_targets): New enum.
4553 (reg_or_group_completer_1): New function containing old
4554 reg_or_group_completer, add and use new parameter to control what
4555 is completed on. Use get_current_arch rather than architecture of
4556 currently selected frame.
4557 (reg_or_group_completer): Call new reg_or_group_completer_1.
4558 (reggroup_completer): Call new reg_or_group_completer_1.
4559 * completer.h (reggroup_completer): Add declaration.
4560 * tui/tui-regs.c: Add 'completer.h' include.
4561 (tui_reg_next_command): Renamed to...
4562 (tui_reg_next): ...this. Adjust parameters and return rather than
4563 display new group.
4564 (tui_reg_prev_command): Renamed to...
4565 (tui_reg_prev): ...this. Adjust parameters and return rather than
4566 display new group.
4567 (tui_reg_float_command): Delete.
4568 (tui_reg_general_command): Delete.
4569 (tui_reg_system_command): Delete.
4570 (tui_reg_command): Rewrite to perform switching of register group.
4571 Add header comment.
4572 (tuireglist): Remove.
4573 (tui_reggroup_completer): New function.
4574 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
4575 creation of 'tui reg' command.
4576 * NEWS: Add comment about 'tui reg' changes.
4577
d309493c
SM
45782015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4579
4580 * target.c (target_read): Consider addressable unit size when
4581 reading from a memory object.
4582 (read_memory_robust): Same.
4583 (read_whatever_is_readable): Same.
4584 (target_write_with_progress): Consider addressable unit size
4585 when writing to a memory object.
4586 * target.h (target_read): Update documentation.
4587 (target_write): Add documentation.
4588
3374165f
SM
45892015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4590
4591 * arch-utils.h (default_addressable_memory_unit_size): New.
4592 * arch-utils.c (default_addressable_memory_unit_size): New.
4593 * gdbarch.sh (addressable_memory_unit_size): New.
4594 * gdbarch.h: Re-generate.
4595 * gdbarch.c: Re-generate.
4596
279a6fed
SM
45972015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4598
4599 * target.c (target_read): Rename variables and use
4600 TARGET_XFER_E_IO.
4601 (target_read_with_progress): Same.
4602 (read_memory_robust): Constify parameters and rename
4603 variables.
4604 (read_whatever_is_readable): Constify parameters,
4605 rename variables, adjust formatting.
4606 * target.h (read_memory_robust): Constify parameters.
4607
1e5338b6 46082015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
4609
4610 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
4611 synthetic (non-AltiVec) vector types.
4612 (ppc64_sysv_abi_return_value): Likewise.
4613
98aa42ee
AT
46142015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
4615
4616 PR breakpoints/16465
4617 * breakpoint.c (create_breakpoint): Save extra_string for
4618 pending breakpoints.
4619
966f0aef
WT
46202015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
4621
4622 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
4623 and bt_mask to CORE_ADDR.
4624
6449ed0d
GB
46252015-06-11 Gary Benson <gbenson@redhat.com>
4626
4627 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
4628 (mnsh_recv_message): Likewise.
4629
34f8ac9f
WT
46302015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
4631
4632 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
4633 long long int and plongest instead of %ll.
4634
198c808c
GB
46352015-06-11 Gary Benson <gbenson@redhat.com>
4636
4637 * nat/linux-namespaces.c (gdb_wait.h): New include.
4638 (sys/wait.h): Do not include.
4639
e815d2d2
SM
46402015-06-10 Simon Marchi <simon.marchi@ericsson.com>
4641
4642 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
4643 end_sequence is true.
4644
8847cac2
JK
46452015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4646
4647 Code cleanup.
4648 * solib-target.c (library_list_start_list): Use explicit NULL
4649 comparison.
4650
24c05f46
JK
46512015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4652
4653 * solib-target.c (library_list_start_list): Do not dereference
4654 variable version in its initialization. Make the VERSION check handle
4655 NULL.
4656 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
4657
51aad7cc
GB
46582015-06-10 Gary Benson <gbenson@redhat.com>
4659
4660 * NEWS: Announce support for direct access of executable and
4661 shared library files when attaching to inferiors in containers
4662 on GNU/Linux systems.
4663
15a201c8
GB
46642015-06-10 Gary Benson <gbenson@redhat.com>
4665
4666 * remote.c (struct remote_state) <fs_pid>: New field.
4667 (new_remote_state): Initialize the above.
4668 (PACKET_vFile_setfs): New enum value.
4669 (remote_hostio_set_filesystem): New function.
4670 (remote_hostio_open): Call the above.
4671 (remote_hostio_unlink): Likewise.
4672 (remote_hostio_readlink): Likewise.
4673 (_initialize_remote): Register new "set/show remote
4674 hostio-setfs-packet" command.
4675 * NEWS: Announce new vFile:setfs packet.
4676
7a6a1731
GB
46772015-06-10 Gary Benson <gbenson@redhat.com>
4678
4679 * linux-nat.c (nat/linux-namespaces.h): New include.
4680 (fileio.h): Likewise.
4681 (linux_nat_filesystem_is_local): New function.
4682 (linux_nat_fileio_pid_of): Likewise.
4683 (linux_nat_fileio_open): Likewise.
4684 (linux_nat_fileio_readlink): Likewise.
4685 (linux_nat_fileio_unlink): Likewise.
4686 (linux_nat_add_target): Initialize to_filesystem_is_local,
4687 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
4688 (_initialize_linux_nat): New "set/show debug linux-namespaces"
4689 commands.
4690 * NEWS: Mention new "set/show debug linux-namespaces" commands.
4691
07c138c8
GB
46922015-06-10 Gary Benson <gbenson@redhat.com>
4693
4694 * target.h (struct inferior): New forward declaration.
4695 (struct target_ops) <to_filesystem_is_local>: Update comment.
4696 (struct target_ops) <to_fileio_open>: New argument inf.
4697 Update comment. All implementations updated.
4698 (struct target_ops) <to_fileio_unlink>: Likewise.
4699 (struct target_ops) <to_fileio_readlink>: Likewise.
4700 (target_filesystem_is_local): Update comment.
4701 (target_fileio_open): New argument inf. Update comment.
4702 (target_fileio_unlink): Likewise.
4703 (target_fileio_readlink): Likewise.
4704 (target_fileio_read_alloc): Likewise.
4705 (target_fileio_read_stralloc): Likewise.
4706 * target.c (target_fileio_open): New argument inf.
4707 Pass inf to implementation. Update debug printing.
4708 (target_fileio_unlink): Likewise.
4709 (target_fileio_readlink): Likewise.
4710 (target_fileio_read_alloc_1): New argument inf. Pass inf
4711 to target_fileio_open.
4712 (target_fileio_read_alloc): New argument inf. Pass inf to
4713 target_fileio_read_alloc_1.
4714 (target_fileio_read_stralloc): Likewise.
4715 * gdb_bfd.c (inferior.h): New include.
4716 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
4717 argument with new argument "inferior". Pass inferior to
4718 target_fileio_open.
4719 (gdb_bfd_open): Supply inferior argument to
4720 gdb_bfd_iovec_fileio_open.
4721 * linux-tdep.c (linux_info_proc): Supply inf argument to
4722 relevant target_fileio calls.
4723 (linux_find_memory_regions_full): Likewise.
4724 (linux_fill_prpsinfo): Likewise.
4725 * remote.c (remote_filesystem_is_local): Supply inf
4726 argument to remote_hostio_open.
4727 (remote_file_put): Likewise.
4728 (remote_file_get): Likewise.
4729 (remote_file_delete): Supply inf argument to
4730 remote_hostio_unlink.
4731
12e2a5fd
GB
47322015-06-10 Gary Benson <gbenson@redhat.com>
4733
4734 * inf-child.c (inf_child_fileio_open): Replace comment.
4735 (inf_child_fileio_pwrite): Likewise.
4736 (inf_child_fileio_pread): Likewise.
4737 (inf_child_fileio_fstat): Insert blank line before comment.
4738 (inf_child_fileio_close): Replace comment.
4739 (inf_child_fileio_unlink): Likewise.
4740 (inf_child_fileio_readlink): Likewise.
4741 * remote.c (remote_hostio_open): Likewise.
4742 (remote_hostio_pread): Likewise.
4743 (remote_hostio_pwrite): Likewise.
4744 (remote_hostio_close): Likewise.
4745 (remote_hostio_unlink): Likewise.
4746 (remote_hostio_readlink): Likewise.
4747 (remote_hostio_fstat): Likewise.
4748 (remote_filesystem_is_local): Likewise.
4749 * target.c (target_fileio_open): Likewise.
4750 (target_fileio_pwrite): Likewise.
4751 (target_fileio_pread): Likewise.
4752 (target_fileio_fstat): Insert blank line before comment.
4753 (target_fileio_close): Replace comment.
4754 (target_fileio_unlink): Likewise.
4755 (target_fileio_readlink): Likewise.
4756 (target_fileio_read_alloc): Likewise.
4757 (target_fileio_read_stralloc): Likewise.
4758
9bc3a976
GB
47592015-06-10 Gary Benson <gbenson@redhat.com>
4760
4761 * linux-thread-db.c (nat/linux-namespaces.h): New include.
4762 (check_pid_namespace_match): Use linux_ns_same rather than
4763 linux_proc_pid_get_ns to spot PID namespace mismatches.
4764 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
4765 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
4766
4b8b5e72
GB
47672015-06-10 Gary Benson <gbenson@redhat.com>
4768
4769 * configure.ac (AC_CHECK_FUNCS): Add setns.
4770 * config.in: Regenerate.
4771 * configure: Likewise.
4772 * nat/linux-namespaces.h: New file.
4773 * nat/linux-namespaces.c: Likewise.
4774 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
4775 (linux-namespaces.o): New rule.
4776 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
4777 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4778 * config/arm/linux.mh (NATDEPFILES): Likewise.
4779 * config/i386/linux.mh (NATDEPFILES): Likewise.
4780 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4781 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4782 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4783 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4784 * config/mips/linux.mh (NATDEPFILES): Likewise.
4785 * config/pa/linux.mh (NATDEPFILES): Likewise.
4786 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4787 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4788 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4789 * config/s390/linux.mh (NATDEPFILES): Likewise.
4790 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4791 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4792 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4793 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4794
ca095836
GB
47952015-06-10 Gary Benson <gbenson@redhat.com>
4796
4797 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
4798 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
4799 (make_cleanup_close): Likewise.
4800 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
4801 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
4802 (make_cleanup_close): Likewise.
4803
5d9c55d3
JT
48042015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4805
4806 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
4807 from SuspendThread().
4808
040ea00b
JT
48092015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4810
4811 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
4812 from OutputDebugString.
4813
7d73c23c
WT
48142015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
4815 Mircea Gherzan <mircea.gherzan@intel.com>
4816
4817 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
4818 MPX_BT_MASK_32): New macros.
4819 (i386_mpx_set_bounds): New function that implements
4820 the command "set-mpx-bound".
4821 (i386_mpx_enabled): Helper function to test MPX availability.
4822 (i386_mpx_bd_base): Helper function to calculate the base directory
4823 address.
4824 (i386_mpx_get_bt_entry): Helper function to access a bound
4825 table entry.
4826 (i386_mpx_print_bounds): Effectively display bound information.
4827 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
4828 "show mpx".
4829 (_initialize_i386_tdep):
4830 Add "bound" to the commands "show mpx" and "set mpx" commands.
4831 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
4832 and "show mpx" commands.
4833 * NEWS: List new commands for MPX support.
4834
3ac2e371
GB
48352015-06-09 Gary Benson <gbenson@redhat.com>
4836
4837 * common/fileio.h (fileio_to_host_mode): New declaration.
4838 * common/fileio.c (fileio_to_host_mode): New Function.
4839 * inf-child.c (inf_child_fileio_open): Process mode argument
4840 with fileio_to_host_mode.
4841
ecef18c5
GB
48422015-06-09 Gary Benson <gbenson@redhat.com>
4843
4844 * common/fileio.c (fileio_mode_pack): Fix preprocessor
4845 conditional.
4846
e3dd7556
GB
48472015-06-05 Gary Benson <gbenson@redhat.com>
4848
4849 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
4850 * remote.c (remote_filesystem_is_local): ...here.
4851
5b74bf7d
YQ
48522015-06-04 Yao Qi <yao.qi@linaro.org>
4853
4854 * gdbarch.c: Regenerate it.
4855
7f361056
JK
48562015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4857
4858 * arch-utils.c (default_infcall_munmap): New.
4859 * arch-utils.h (default_infcall_munmap): New declaration.
4860 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
4861 (munmap_list_free, munmap_listp_free_cleanup): New.
4862 (struct setup_sections_data): Add field munmap_list_headp.
4863 (setup_sections): Call munmap_list_add.
4864 (compile_object_load): New variable munmap_list_head, initialize
4865 setup_sections_data.munmap_list_headp, return munmap_list_head.
4866 * compile/compile-object-load.h (struct munmap_list): New declaration.
4867 (struct compile_module): Add field munmap_list_head.
4868 (munmap_list_free): New declaration.
4869 * compile/compile-object-run.c (struct do_module_cleanup): Add field
4870 munmap_list_head.
4871 (do_module_cleanup): Call munmap_list_free.
4872 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
4873 * gdbarch.c: Regenerate.
4874 * gdbarch.h: Regenerate.
4875 * gdbarch.sh (infcall_munmap): New.
4876 * linux-tdep.c (linux_infcall_munmap): New.
4877 (linux_init_abi): Install it.
4878
3b462ec2
SM
48792015-06-02 Simon Marchi <simon.marchi@ericsson.com>
4880
4881 PR gdb/15564
4882 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
4883
8d683210
YQ
48842015-06-02 Yao Qi <yao.qi@linaro.org>
4885
4886 * i386-linux-nat.c: Include linux-nat.h.
4887
e0619de6
JK
48882015-06-01 Andreas Schwab <schwab@linux-m68k.org>
4889 Jan Kratochvil <jan.kratochvil@redhat.com>
4890
4891 PR symtab/18392
4892 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
4893 assertion.
4894 * dwarf2loc.c (chain_candidate): Likewise.
4895
bd16da51
YQ
48962015-06-01 Yao Qi <yao.qi@linaro.org>
4897
4898 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
4899 (store_vfp_regs): Use PTRACE_SETREGSET.
4900
df9d7ec9
YQ
49012015-06-01 Yao Qi <yao.qi@linaro.org>
4902
4903 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
4904 (fetch_fpregs): Likewise.
4905 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
4906 (store_fpregs): Likewise.
4907
10766686
YQ
49082015-06-01 Yao Qi <yao.qi@linaro.org>
4909
4910 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
4911 (fetch_regs): Likewise.
4912 (store_regs): Use PTRACE_SETREGSET.
4913 (store_register): Likewise.
4914
7efe48d1
YQ
49152015-06-01 Yao Qi <yao.qi@linaro.org>
4916
4917 * arm-linux-nat.c (arm_linux_read_description): Check whether
4918 kernel supports PTRACE_GETREGSET.
4919
433bbbf8
YQ
49202015-06-01 Yao Qi <yao.qi@linaro.org>
4921
4922 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
4923 * linux-nat.c: ... here.
4924 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
4925 to ...
4926 * linux-nat.h: ... here.
4927
ca9b78ce
YQ
49282015-06-01 Yao Qi <yao.qi@linaro.org>
4929
4930 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
4931 * i386-linux-nat.c: Likewise.
4932 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
4933 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
4934 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
4935 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
4936 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
4937
99cee7b7
EZ
49382015-05-30 Eli Zaretskii <eliz@gnu.org>
4939
4940 * go32-nat.c (go32_xfer_memory): Fix the return value to be
4941 compatible to what read_child and write_child return. This
4942 unbreaks that DJGPP build of GDB which was broken since v7.7.
4943
2147f5bd
MG
49442015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
4945
4946 * MAINTAINERS (Write After Approval): Add Martin Galvan.
4947
c8f6c93c
RM
49482015-05-29 Roland McGrath <mcgrathr@google.com>
4949
4950 PR gdb/18464
4951 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
4952 rather than internal_error for an unrecognized value.
4953
8c6a948d
MF
49542015-05-29 Max Filippov <jcmvbkbc@gmail.com>
4955
4956 * xtensa-tdep.c (xtensa_pseudo_register_read)
4957 (xtensa_pseudo_register_write): Don't alias last pseudo register
4958 to a1.
4959
8dd06f7a
DB
49602015-05-28 Don Breazeal <donb@codesourcery.com>
4961
4962 * infrun.c (follow_fork_inferior): Ensure the use of
4963 process-style ptids (pid,0,0) in verbose/debug "Detaching"
4964 messages.
4965
a051152b
DE
49662015-05-28 Doug Evans <dje@google.com>
4967
4968 * dwarf2read.c (record_line_ftype): Remove, duplicate.
4969
a56cc1ce
YQ
49702015-05-28 Yao Qi <yao.qi@linaro.org>
4971
4972 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
4973 (arm_linux_fetch_inferior_registers): Use
4974 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
4975 (arm_linux_store_inferior_registers): Likewise.
4976 (arm_linux_read_description): Don't set
4977 arm_linux_has_wmmx_registers.
4978 * arm-tdep.c (arm_gdbarch_init): Set
4979 tdep->have_wmmx_registers according target descriptions.
4980 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
4981 field.
4982
330c6ca9
YQ
49832015-05-28 Yao Qi <yao.qi@linaro.org>
4984
4985 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
4986 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
4987 instead of arm_linux_vfp_register_count.
4988 (store_vfp_regs): Likewise.
4989 (arm_linux_fetch_inferior_registers): Likewise.
4990 (arm_linux_store_inferior_registers): Likewise.
4991 (arm_linux_read_description): Don't set
4992 arm_linux_vfp_register_count.
4993 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
4994 Adjust.
4995 * arm-tdep.c (arm_gdbarch_init): Add assert on
4996 vfp_register_count.
4997 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
4998 field to vfp_register_count. All users updated.
4999
d403db27
KH
50002015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
5001
5002 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
5003 ELFOSABI_GNU binaries.
5004
d9b3de22
DE
50052015-05-27 Doug Evans <dje@google.com>
5006
5007 * dwarf2read.c (lnp_state_machine): New typedef.
5008 (lnp_reader_state): New typedef.
5009 (dwarf_record_line_1): Renamed from dwarf_record_line.
5010 All callers updated.
5011 (dwarf_record_line): New function.
5012 (init_lnp_state_machine): New function.
5013 (check_line_address): Replace p_record_line parameter with state.
5014 All callers updated.
5015 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
5016 Update to record state in lnp_state_machine.
5017
924c2928
DE
50182015-05-27 Doug Evans <dje@google.com>
5019
5020 * dwarf2read.c (record_line_ftype): New typedef.
5021 (check_line_address): New function.
5022 (dwarf_decode_lines_1): Call it.
5023
27e0867f
DE
50242015-05-27 Doug Evans <dje@google.com>
5025
5026 * NEWS: Mention "set debug dwarf-line".
5027 * dwarf2read.c (dwarf_line_debug): New static global.
5028 (add_include_dir): Add debug dwarf-line support.
5029 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
5030 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
5031
4dcabcc2
DE
50322015-05-27 Doug Evans <dje@google.com>
5033
5034 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
5035 All callers updated.
5036 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
5037 * cp-support.h (cp_lookup_nested_symbol): Update.
5038
b2e2f908
DE
50392015-05-27 Doug Evans <dje@google.com>
5040
5041 PR symtab/18258
5042 * block.c (block_find_symbol): New function.
5043 (block_find_non_opaque_type): Ditto.
5044 (block_find_non_opaque_type_preferred): Ditto.
5045 * block.h (block_symbol_matcher_ftype): New typedef.
5046 (block_find_symbol): Declare.
5047 (block_find_non_opaque_type): Ditto.
5048 (block_find_non_opaque_type_preferred): Ditto.
5049 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
5050 * psymtab.c (psym_lookup_symbol): Ditto.
5051 * symtab.c (basic_lookup_transparent_type_1): New function.
5052 (basic_lookup_transparent_type): Call it.
5053
f62fce35
YQ
50542015-05-27 Yao Qi <yao.qi@linaro.org>
5055
5056 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
5057 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
5058
5d98d3cd
YQ
50592015-05-27 Yao Qi <yao.qi@linaro.org>
5060
5061 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
5062 before operator &&.
5063 (aarch64_record_load_store): Likewise.
5064
82c7be31
DE
50652015-05-26 Doug Evans <dje@google.com>
5066
5067 PR c++/18141, c++/18417.
5068 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
5069 a typedef.
5070
b4f54984
DE
50712015-05-26 Doug Evans <dje@google.com>
5072
5073 * NEWS: Add entries for command renamings.
5074 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
5075 All uses updated.
5076 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
5077 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
5078 All uses updated.
5079 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
5080 All callers updated. Fix spelling of DWARF in help text.
5081 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
5082 All uses updated.
5083 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
5084 All uses updated.
5085 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
5086 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
5087 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
5088 All uses updated.
5089 (show_dwarf_always_disassemble): Renamed from
5090 show_dwarf2_always_disassemble. All callers updated.
5091 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
5092 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
5093 "set/show dwarf max-cache-age". Rename
5094 "set/show dwarf2 always-disassemble" to
5095 "set/show dwarf always-disassemble". Rename
5096 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
5097 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
5098
4ea6efe9
DE
50992015-05-26 Doug Evans <dje@google.com>
5100
5101 PR python/18438
5102 * python/py-lazy-string.c (stpy_convert_to_value): Use
5103 gdbpy_gdb_memory_error not PyExc_MemoryError.
5104 (gdbpy_create_lazy_string_object): Ditto.
5105
b93fd21d
AB
51062015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
5107
5108 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
5109
55b40027
AB
51102015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
5111
5112 * tui/tui-regs.c (tui_reg_prev_command): New function.
5113 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
5114 * reggroups.c (reggroup_prev): New function.
5115 * reggroups.h (reggroup_prev): Add declaration. Update comment.
5116
99afc88b
OJ
51172015-05-26 Omair Javaid <omair.javaid@linaro.org>
5118 Yao Qi <yao.qi@linaro.org>
5119
5120 * aarch64-linux-tdep.c: Include linux-record.h and
5121 record-full.h.
5122 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
5123 (aarch64_syscall): New enum.
5124 (aarch64_canonicalize_syscall): New function.
5125 (aarch64_all_but_pc_registers_record): New function.
5126 (aarch64_linux_syscall_record): New function.
5127 (aarch64_linux_init_abi): Install AArch64 process record
5128 handler. Update to handle syscall recording.
5129 * aarch64-tdep.c: Include record.h and record-full.h.
5130 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
5131 (struct aarch64_mem_r): Define.
5132 (aarch64_record_result): New enum.
5133 (struct insn_decode_record): Define.
5134 (insn_decode_record): New typedef.
5135 (aarch64_record_data_proc_reg): New function.
5136 (aarch64_record_data_proc_imm): New function.
5137 (aarch64_record_branch_except_sys): New function.
5138 (aarch64_record_load_store): New function.
5139 (aarch64_record_data_proc_simd_fp): New function.
5140 (aarch64_record_asimd_load_store): New function.
5141 (aarch64_record_decode_insn_handler): New function.
5142 (deallocate_reg_mem): New function.
5143 (aarch64_process_record): New function.
5144 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
5145 New field.
5146 (aarch64_process_record): New extern declaration.
5147 * configure.tgt: Add linux-record.o to gdb_target_obs.
5148 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
5149
c16a3f52
OJ
51502015-05-26 Omair Javaid <omair.javaid@linaro.org>
5151
5152 * NEWS: Add a note on process record-replay support on aarch64*-linux*
5153 targets.
5154
c9cf6e20
MG
51552015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
5156
5157 * amd64-tdep.c: Replace in_function_epilogue_p with
5158 stack_frame_destroyed_p throughout.
5159 * arch-utils.c: Ditto.
5160 * arch-utils.h: Ditto.
5161 * arm-tdep.c: Ditto.
5162 * breakpoint.c: Ditto.
5163 * gdbarch.sh: Ditto.
5164 * hppa-tdep.c: Ditto.
5165 * i386-tdep.c: Ditto.
5166 * mips-tdep.c: Ditto.
5167 * nios2-tdep.c: Ditto.
5168 * rs6000-tdep.c: Ditto.
5169 * s390-linux-tdep.c: Ditto.
5170 * score-tdep.c: Ditto.
5171 * sh-tdep.c: Ditto.
5172 * sparc-tdep.c: Ditto.
5173 * sparc-tdep.h: Ditto.
5174 * sparc64-tdep.c: Ditto.
5175 * spu-tdep.c: Ditto.
5176 * tic6x-tdep.c: Ditto.
5177 * tilegx-tdep.c: Ditto.
5178 * xstormy16-tdep.c: Ditto.
5179 * gdbarch.c, gdbarch.h: Re-generated.
5180
a4ea0946
AB
51812015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5182
5183 * NEWS: Mention 'tui enable' and 'tui disable'.
5184 * tui/tui.c (tui_enable_command): New function.
5185 (tui_disable_command): New function.
5186 (_initialize_tui): New function.
5187
b75c69bb
AB
51882015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5189
5190 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
5191
c1b009ee
AB
51922015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5193
5194 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
5195 buf_ptr is freed.
5196
880d1e40
AB
51972015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
5200 into ...
5201 (tui_set_layout_for_display_command): ...here, before calling
5202 tui_set_layout. Only set the layout if gdb has not already
5203 entered the TUI_FAILURE state.
5204
a0145030
AB
52052015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5206
5207 * tui/tui-layout.c (layout_completer): New function.
5208 (_initialize_tui_layout): Set completer on layout command.
5209
7bd0be3a
AB
52102015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5211
5212 * tui/tui-layout.c (tui_set_layout): Remove
5213 tui_register_display_type parameter. Remove all checking of this
5214 parameter, and reindent function. Update header comment.
5215 (tui_set_layout_for_display_command): Rename to...
5216 (tui_set_layout_by_name): ...this, and don't check for different
5217 register class types, don't pass a tui_register_display_type to
5218 tui_set_layout. Update header comment.
5219 (layout_names): Remove register set specific names.
5220 * tui/tui-layout.h (tui_set_layout): Remove
5221 tui_register_display_type parameter.
5222 * tui/tui.c (tui_rl_change_windows): Don't pass a
5223 tui_register_display_type to tui_set_layout.
5224 (tui_rl_delete_other_windows): Likewise.
5225 (tui_enable): Likewise.
5226 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
5227 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
5228 (TUI_GENERAL_REGS_NAME): Remove.
5229 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
5230 (TUI_SPECIAL_REGS_NAME): Remove.
5231 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
5232 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
5233 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
5234 (enum tui_register_display_type): Remove.
5235 (struct tui_layout_def): Remove regs_display_type and
5236 float_regs_display_type fields.
5237 (struct tui_data_info): Remove regs_display_type field.
5238 (tui_layout_command): Use new name for
5239 tui_set_layout_for_display_command.
5240 * tui/tui-data.c (layout_def): Don't initialise removed fields.
5241 (tui_clear_win_detail): Don't initialise removed fields of
5242 win_info.
5243 * tui/tui-regs.c (tui_show_registers): Use new name for
5244 tui_set_layout_for_display_command.
5245 * tui/tui.h (tui_set_layout_for_display_command): Rename
5246 declaration to...
5247 (tui_set_layout_by_name): ...this.
5248 * printcmd.c (display_command): Remove tui related layout call,
5249 and reindent.
5250
0b6e5e10
JB
52512015-05-20 Joel Brobecker <brobecker@adacore.com>
5252
5253 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
5254 (handle_inferior_event): New function.
5255
1da0522e
JB
52562015-05-20 Joel Brobecker <brobecker@adacore.com>
5257
5258 * ada-lang.c (to_fixed_array_type): Rename local variable
5259 typename into type_name.
5260
5fe75eec
JK
52612015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5262
5263 Fix ASAN crash for gdb.compile/compile.exp.
5264 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
5265
a4063588
JK
52662015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5267
5268 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
5269 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
5270 * compile/compile-object-load.c (setup_sections, compile_object_load):
5271 Likewise.
5272 * compile/compile.c (compile_to_object): Likewise.
5273
37442ce1
DE
52742015-05-16 Doug Evans <xdje42@gmail.com>
5275
5276 * NEWS: Mention support for unbuffered Guile memory ports.
5277 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
5278 (ioscm_lseek_address): Improve overflow calculation.
5279 (gdbscm_memory_port_fill_input): Add assert.
5280 (gdbscm_memory_port_write): Handle unbuffered ports.
5281 Handle large writes identical to Guile's fport_write.
5282 (gdbscm_memory_port_seek): Fix seeking past end check.
5283 (gdbscm_memory_port_close): Handle closing unbuffered port.
5284 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
5285 (ioscm_init_memory_port): Handle unbuffered ports.
5286 (ioscm_reinit_memory_port): Ditto.
5287 (ioscm_init_memory_port): Update size calculation.
5288 (gdbscm_open_memory): Support zero sized ports.
5289
d976bace
JK
52902015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5291
5292 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
5293 variable compiler warnings.
5294
4d18dfad
JK
52952015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5296
5297 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
5298
36de76f9
JK
52992015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5300 Phil Muldoon <pmuldoon@redhat.com>
5301
5302 * NEWS (Changes since GDB 7.9): Add compile print.
5303 * compile/compile-c-support.c (add_code_header, add_code_footer)
5304 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
5305 COMPILE_I_PRINT_VALUE_SCOPE.
5306 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
5307 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
5308 New.
5309 * compile/compile-object-load.c: Include block.h.
5310 (get_out_value_type): New function.
5311 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5312 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
5313 OUT_VALUE_TYPE.
5314 * compile/compile-object-load.h (struct compile_module): Add fields
5315 out_value_addr and out_value_type.
5316 * compile/compile-object-run.c: Include valprint.h and compile.h.
5317 (struct do_module_cleanup): Add fields out_value_addr and
5318 out_value_type.
5319 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5320 COMPILE_I_PRINT_VALUE_SCOPE.
5321 (compile_object_run): Propagate out_value_addr and out_value_type.
5322 Pass OUT_VALUE_ADDR.
5323 * compile/compile.c: Include valprint.h.
5324 (compile_print_value, compile_print_command): New functions.
5325 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
5326 (_initialize_compile): Update compile code help text. Install
5327 compile_print_command.
5328 * compile/compile.h (compile_print_value): New prototype.
5329 * defs.h (enum compile_i_scope_types): Add
5330 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
5331
83d3415e
JK
53322015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5333
5334 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
5335 Rely on its parameter count.
5336 (compile_object_load): Replace lookup_minimal_symbol_text by
5337 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
5338 return value.
5339 * compile/compile-object-load.h (struct compile_module): Replace
5340 func_addr by func_sym.
5341 * compile/compile-object-run.c: Include block.h.
5342 (compile_object_run): Reset module variable after it is freed. Use
5343 FUNC_SYM instead of FUNC_ADDR. Rely on it.
5344
3a9558c4
JK
53452015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5346
5347 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
5348 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
5349 (c_compute_program): Call generate_register_struct after typedefs.
5350 * compile/compile-loc2c.c (push, pushf_register_address)
5351 (pushf_register): Cast to GCC_UINTPTR.
5352 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
5353 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
5354 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
5355 * compile/compile.c (_initialize_compile): Enable warnings for
5356 COMPILE_ARGS.
5357
5c65b58a
JK
53582015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5359
5360 * cli/cli-script.c (execute_control_command): Update
5361 eval_compile_command caller.
5362 * compile/compile-object-load.c (compile_object_load): Add parameters
5363 scope and scope_data. Set them.
5364 * compile/compile-object-load.h (struct compile_module): Add fields
5365 scope and scope_data.
5366 (compile_object_load): Add parameters scope and scope_data.
5367 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
5368 scope and scope_data.
5369 (compile_object_run): Propagate the fields scope and scope_data.
5370 * compile/compile.c (compile_file_command, compile_code_command):
5371 Update eval_compile_command callers.
5372 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
5373 * compile/compile.h (eval_compile_command): Add parameter scope_data.
5374 * defs.h (struct command_line): Add field scope_data.
5375
1c88ceb1
JK
53762015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5377
5378 * printcmd.c (struct format_data): Move it to valprint.h.
5379 (print_command_parse_format, print_value): New functions from ...
5380 (print_command_1): ... here. Call them.
5381 * valprint.h (struct format_data): Move it here from printcmd.c.
5382 (print_command_parse_format, print_value): New declarations.
5383
0b738f27
JK
53842015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5385
5386 * compile/compile-object-load.c (compile_object_load): Add
5387 COMPILE_DEBUG message.
5388
aa715135
JG
53892015-05-15 Jerome Guitton <guitton@adacore.com>
5390
5391 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
5392 index to get element instead of enum value.
5393 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
5394 of index to compute length, but enum values to compute bounds.
5395 (ada_array_length): Use enum position of index instead of enum value.
5396 (pos_atr): Move position computation to...
5397 (ada_evaluate_subexp): Use enum values to compute bounds.
5398 * gdbtypes.c (discrete_position): ...this new function.
5399 * gdbtypes.h (discrete_position): New function declaration.
5400 * valprint.c (val_print_array_elements): Call discrete_position
5401 to handle array indexed by non-contiguous enumeration types.
5402
931e5bc3
JG
54032015-05-15 Jerome Guitton <guitton@adacore.com>
5404
5405 * ada-lang.c (find_parallel_type_by_descriptive_type):
5406 Go through typedefs during lookup.
5407 (to_fixed_array_type): Add support for non-bit packed arrays
5408 as variable-length fields.
5409
4e63d0ac
PA
54102015-05-15 Pedro Alves <palves@redhat.com>
5411 Simon Marchi <simon.marchi@ericsson.com>
5412
5413 * event-loop.c (gdb_notifier) <next_file_handler,
5414 next_poll_fds_index>: New fields.
5415 (get_next_file_handler_to_handle_and_advance): New function.
5416 (delete_file_handler): If deleting the next file handler to
5417 handle, advance to the next file handler.
5418 (gdb_wait_for_event): Bail early if no event fired. Poll file
5419 handlers in round-robin fashion.
5420
52e48b36
PA
54212015-05-15 Pedro Alves <palves@redhat.com>
5422
5423 * linux-tdep.c (linux_find_memory_regions_full): Rename local
5424 'private' to 'priv'.
5425
2465e12e
PA
54262015-05-15 Pedro Alves <palves@redhat.com>
5427
5428 * nat/linux-nat.h: Include "target/waitstatus.h".
5429
13fa0398
YZ
54302015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
5431
5432 * python/py-unwind.c (struct reg_info): Move out of ...
5433 (struct cached_frame_info): ... this scope.
5434 (pending_frame_object_type, unwind_info_object_type): Make extern.
5435
9cd4d857
JB
54362015-05-15 Joel Brobecker <brobecker@adacore.com>
5437
5438 * ada-lang.c (ada_value_primitive_packed_val): Make sure
5439 accumSize is never negative.
5440
e3555239
PP
54412015-05-14 Patrick Palka <patrick@parcs.ath.cx>
5442
5443 * tui/tui-command.c: Remove include of <ctype.h>.
5444 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
5445
08a76f8a
MG
54462015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
5447
5448 * dwarf2read.c (die_needs_namespace): Return 1 for
5449 DW_TAG_inlined_subroutine.
5450
bd49952b
JK
54512015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5452
5453 * regcache.c (regcache_cpy_no_passthrough): New declaration.
5454 (regcache_cpy_no_passthrough): Make it static, add function comment.
5455 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
5456 (regcache_cpy_no_passthrough): Remove declaration.
5457
46c03469
JK
54582015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5459
5460 * gdbthread.h (struct thread_control_state): Update comment for
5461 proceed_to_finish.
5462 * infcall.c (run_inferior_call): Update comment about
5463 proceed_to_finish.
5464 * infcmd.c (get_return_value): Update comment about stop_registers.
5465 (finish_forward): Update comment about proceed_to_finish.
5466 * infrun.c (stop_registers): Remove.
5467 (clear_proceed_status, normal_stop): Remove stop_registers handling.
5468 * infrun.h (stop_registers): Remove.
5469
8a6c4031
JK
54702015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5471
5472 * infcall.c (struct dummy_frame_context_saver)
5473 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
5474 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5475 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5476 New.
5477 (call_function_by_hand_dummy): Move discard_cleanups of
5478 inf_status_cleanup before dummy_frame_push. Call
5479 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
5480 Use dummy_frame_context_saver_get_regs instead of stop_registers.
5481 * infcall.h (struct dummy_frame_context_saver)
5482 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5483 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5484 New declarations.
5485 * infcmd.c: Include infcall.h.
5486 (get_return_value): Add parameter ctx_saver, use it instead of
5487 stop_registers.
5488 (print_return_value): Add parameter ctx_saver, pass it.
5489 (struct finish_command_continuation_args): Add field ctx_saver.
5490 (finish_command_continuation): Update print_return_value caller.
5491 (finish_command_continuation_free_arg): Free also ctx_saver.
5492 (finish_forward): Call dummy_frame_context_saver_setup.
5493 * inferior.h (struct dummy_frame_context_saver): New declaration.
5494 (get_return_value): Add parameter ctx_saver.
5495 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
5496 get_return_value caller.
5497
10989690
JK
54982015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5499
5500 * dummy-frame.c (struct dummy_frame_dtor_list): New.
5501 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
5502 (remove_dummy_frame): Process dtor_list.
5503 (pop_dummy_frame): Process dtor_list.
5504 (register_dummy_frame_dtor): Maintain dtor_list.
5505 (find_dummy_frame_dtor): Handle dtor_list.
5506 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
5507 Update comments.
5508
5e970501
JK
55092015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5510
5511 * compile/compile-object-run.c (do_module_cleanup): Add parameter
5512 registers_valid.
5513 (compile_object_run): Update do_module_cleanup caller.
5514 * dummy-frame.c: Include infcall.h.
5515 (struct dummy_frame): Update dtor comment.
5516 (remove_dummy_frame): Call dtor.
5517 (pop_dummy_frame): Update dtor caller.
5518 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
5519 registers_valid.
5520
1c4eb778
JB
55212015-05-13 Joel Brobecker <brobecker@adacore.com>
5522
5523 GDB 7.9.1 released.
5524
f5f85ab9
JB
55252015-05-13 Joel Brobecker <brobecker@adacore.com>
5526
5527 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
5528 Xmethods now being able to specify a result type to that new
5529 sectioin.
5530
242cd84c
PP
55312015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5532
5533 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
5534 first before resizing the window.
e3555239 5535 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
5536
55372015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
5538
5539 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
5540 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
5541 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
5542 dummy_dtor parameter.
5543 * infcall.h: Include dummy-frame.h.
5544 (call_function_by_hand_dummy_dtor_ftype): Remove.
5545 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
5546 parameter.
5547
ebfd00d2
PP
55482015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5549
5550 PR gdb/17820
5551 * top.c (history_size_setshow_var): Change type to signed.
5552 Initialize to -2. Update documentation.
5553 (set_readline_history_size): Define.
5554 (set_history_size_command): Use it. Remove logic for handling
5555 out-of-range sizes.
5556 (init_history): Use set_readline_history_size(). Test for a
5557 value of -2 instead of 0 when determining whether to set a
5558 default history size.
5559 (init_main): Decode the argument of the "size" command as a
5560 zuinteger_unlimited.
5561
83769d0b
DE
55622015-05-12 Doug Evans <dje@google.com>
5563
5564 * dwarf2read.c (struct file_entry): Tweak comments.
5565 (get_debug_line_section): Tweak comments.
5566
0d71eef5
DB
55672015-05-12 Don Breazeal <donb@codesourcery.com>
5568
5569 * NEWS: Announce fork support in the RSP and support
5570 for fork debugging in extended mode.
5571
cbb8991c
DB
55722015-05-12 Don Breazeal <donb@codesourcery.com>
5573
5574 * remote.c (remote_insert_fork_catchpoint): New function.
5575 (remote_remove_fork_catchpoint): New function.
5576 (remote_insert_vfork_catchpoint): New function.
5577 (remote_remove_vfork_catchpoint): New function.
5578 (pending_fork_parent_callback): New function.
5579 (remove_new_fork_child): New function.
5580 (remote_update_thread_list): Call remote_notif_get_pending_events
5581 and remove_new_fork_child.
5582 (extended_remote_kill): Kill fork child when killing the
5583 parent before follow_fork completes.
5584 (init_extended_remote_ops): Initialize target vector with
5585 new fork catchpoint functions.
5586
c269dbdb
DB
55872015-05-12 Don Breazeal <donb@codesourcery.com>
5588
5589 * remote.c (remove_vfork_event_p): New function.
5590 (remote_follow_fork): Add vfork event type to event checking.
5591 (remote_parse_stop_reply): New stop reasons "vfork" and
5592 "vforkdone" for RSP 'T' Stop Reply Packet.
5593
de0d863e
DB
55942015-05-12 Don Breazeal <donb@codesourcery.com>
5595
5596 * linux-nat.c (linux_nat_ptrace_options): New function.
5597 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
5598 Call linux_nat_ptrace_options and use different argument to
5599 linux_enable_event_reporting.
5600 (_initialize_linux_nat): Delete call to
5601 linux_ptrace_set_additional_flags.
c8f6c93c 5602 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
5603 supported_ptrace_options.
5604 (additional_flags): Delete variable.
5605 (linux_check_ptrace_features): Use supported_ptrace_options.
5606 (linux_test_for_tracesysgood, linux_test_for_tracefork):
5607 Likewise, and remove additional_flags check.
5608 (linux_enable_event_reporting): Change 'attached' argument to
5609 'options'. Use supported_ptrace_options.
c8f6c93c 5610 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
5611 supported_ptrace_options.
5612 (linux_ptrace_set_additional_flags): Delete function.
5613 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5614 Delete function prototype.
5615 * remote.c (remote_fork_event_p): New function.
5616 (remote_detach_pid): New function.
5617 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
5618 if doing detach-on-fork.
5619 (remote_follow_fork): New function.
5620 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
5621 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
5622 (init_extended_remote_ops): Initialize to_follow_fork.
5623
89245bc0
DB
56242015-05-12 Don Breazeal <donb@codesourcery.com>
5625
5626 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
5627 from static to extern.
5628 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
5629 * remote.c (anonymous enum): <PACKET_fork_event_feature,
5630 * PACKET_vfork_event_feature>: New enumeration constants.
5631 (remote_protocol_features): Add table entries for new packets.
5632 (remote_query_supported): Add new feature queries to qSupported
5633 packet.
5634
835205d0
GB
56352015-05-12 Gary Benson <gbenson@redhat.com>
5636
5637 * remote.c (remote_add_inferior): Call exec_file_locate_attach
5638 for fake PIDs as well as real ones.
5639 (remote_pid_to_exec_file): Send empty annex if PID is fake.
5640
4c082a81
SC
56412015-05-09 Siva Chandra Reddy <sivachandra@google.com>
5642
5643 * NEWS (Python Scripting): Mention the new gdb.Value methods.
5644 * python/py-value.c (valpy_reference_value): New function.
5645 (valpy_const_value): Likewise.
5646 (value_object_methods): Add new methods.
5647 * value.c (make_cv_value): New function.
5648 * value.h (make_cv_value): Declare.
5649
afa6c9ab
SL
56502015-05-08 Yao Qi <yao@codesourcery.com>
5651 Sandra Loosemore <sandra@codesourcery.com>
5652
5653 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
5654 to 'lh->include_dirs' before accessing to it.
5655 (psymtab_include_file_name): Likewise.
5656 (dwarf_decode_lines_1): Likewise.
5657 (dwarf_decode_lines): Likewise.
5658 (file_file_name): Likewise.
5659
35d54293
SL
56602015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5661
5662 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
5663 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
5664 (nios2_linux_rt_sigreturn_init): Adjust base address of
5665 register save area.
5666
b73c49b7
SL
56672015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5668
5669 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
5670 "trap 31" as the breakpoint instruction on all targets.
5671
dd9f02a0
JK
56722015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5673
5674 * infcmd.c (print_return_value): Remove unused declaration.
5675
6ad395a7
JB
56762015-05-08 Joel Brobecker <brobecker@adacore.com>
5677
5678 * dwarf2read.c (attr_to_dynamic_prop)
5679 <DW_AT_data_member_location>: Use read_type_die isntead of
5680 get_die_type.
5681
8344af1e
JB
56822015-05-08 Joel Brobecker <brobecker@adacore.com>
5683
5684 * ada-lang.c (ada_convert_actual): Add handling of formals
5685 passed inside an aligner type.
5686
80b0912b
JB
56872015-05-08 Joel Brobecker <brobecker@adacore.com>
5688
5689 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
5690
df2eb078
SC
56912015-05-08 Siva Chandra Reddy <sivachandra@google.com>
5692
5693 PR python/18291
5694 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
5695 Print xmethod matcher status.
5696
2492f0d0
AA
56972015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
5698
5699 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
5700 register in the regcache when treating the PSWM register, and vice
5701 versa.
5702
1c56a84d
GB
57032015-05-07 Gary Benson <gbenson@redhat.com>
5704
5705 * linux-thread-db.c (struct thread_db_info)
5706 <td_ta_map_id2thr_p>: Remove field.
5707 (try_thread_db_load_1): Remove initialization for the above.
5708
74850322
GB
57092015-05-07 Gary Benson <gbenson@redhat.com>
5710
5711 * linux-thread-db.c (struct thread_db_info)
5712 <td_thr_validate_p>: Remove field.
5713 (try_thread_db_load_1): Remove initialization for the above.
5714
e26efa40
JK
57152015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5716
5717 * compile/compile-object-load.c (compile_object_load): Support
5718 mst_text_gnu_ifunc.
5719
851c9091
JK
57202015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5721
5722 * compile/compile.c (compile_to_object): Make the cmd_string parameter
5723 const. Use new variables for the const compatibility.
5724 (eval_compile_command): Make the cmd_string parameter const.
5725 * compile/compile.h (eval_compile_command): Make the cmd_string
5726 parameter const.
5727
f218b647
JB
57282015-05-06 Joel Brobecker <brobecker@adacore.com>
5729
5730 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
5731 comment.
5732 * top.c (deprecated_init_ui_hook): Delete.
5733 (gdb_init): Remove handling of deprecated_init_ui_hook.
5734 * interps.c (clear_interpreter_hooks): Remove handling of
5735 deprecated_init_ui_hook.
5736 * main.c (captured_main): Update comment.
5737
b30a0bc3
JB
57382015-05-06 Joel Brobecker <brobecker@adacore.com>
5739
5740 * solib.c (_initialize_solib): Add "info dll" alias creation.
5741 * windows-nat.c (set_windows_aliases): Delete.
5742 (_initialize_windows_nat): Remove deprecated_init_ui_hook
5743 assignment.
5744 * NEWS: Add news entry about "info dll" now being available
5745 on all platforms.
5746
7c512744
JB
57472015-05-05 Joel Brobecker <brobecker@adacore.com>
5748
5749 * ada-lang.c (value_assign_to_component): Reformat and improve
5750 documentation. Remove all trailing spaces.
5751
0fa7fe50
JB
57522015-05-05 Joel Brobecker <brobecker@adacore.com>
5753
5754 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5755 Stop counting inlined frames as soon as an out-of-line function
5756 is found.
5757
3ea89b92
PMR
57582014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
5759
5760 * dwarf2read.c (inherit_abstract_dies): Skip
5761 DW_TAG_GNU_call_site dies while inheriting children of an
5762 abstract DIE into a scope.
5763 (read_lexical_block_scope): Inherit abstract DIE's for
5764 lexical scopes.
5765
2478d075
JB
57662015-05-05 Joel Brobecker <brobecker@adacore.com>
5767
5768 * ada-valprint.c (val_print_packed_array_elements): Delete
5769 variable "len". Add a type-length check when comparing two
5770 consecutive elements of the array. Use the element's actual
5771 length in call to value_contents_eq.
5772 * ada-lang.c (ada_value_primitive_packed_val): Always return
5773 a value whose type has been resolved.
5774
fc958966
JB
57752015-05-05 Joel Brobecker <brobecker@adacore.com>
5776
5777 * ada-lang.c (ada_value_primitive_packed_val): Recompute
5778 BIT_SIZE and LEN if the size of the resolved type is smaller
5779 than BIT_SIZE * HOST_CHAR_BIT.
5780
ca34b84f
JB
57812015-05-05 Joel Brobecker <brobecker@adacore.com>
5782
5783 * ada-lang.c (ada_value_primitive_packed_val): Use a more
5784 correct address in call to value_at. Adjust call to
5785 value_address accordingly.
5786
62c67f3c
JB
57872015-05-05 Joel Brobecker <brobecker@adacore.com>
5788
5789 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
5790 to print it.
5791
c3345124
JB
57922015-05-05 Joel Brobecker <brobecker@adacore.com>
5793
5794 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
5795 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
5796 pinfo->valaddr.
5797 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
5798 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
5799 (resolve_dynamic_type_internal): Set pinfo.valaddr.
5800 Add handling of addr_stack->valaddr.
5801 (resolve_dynamic_type): Add "valaddr" parameter.
5802 Set pinfo.valaddr field.
5803 * ada-lang.c (ada_discrete_type_high_bound): Update call to
5804 resolve_dynamic_type.
5805 (ada_discrete_type_low_bound): Likewise.
5806 * findvar.c (default_read_var_value): Likewise.
5807 * value.c (value_from_contents_and_address): Likewise.
5808
75ea5859
JB
58092015-05-05 Joel Brobecker <brobecker@adacore.com>
5810
5811 * gdbtypes.c (resolve_dynamic_array): Use
5812 create_array_type_with_stride instead of create_array_type.
5813
0952813b
DD
58142015-04-30 DJ Delorie <dj@redhat.com>
5815
5816 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
5817 rl78_decode_opcode
5818
2ce1cdbf
DE
58192015-04-29 Doug Evans <dje@google.com>
5820
5821 PR python/18285
5822 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
5823 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
5824 EVAL_AVOID_SIDE_EFFECTS for xmethods.
5825 * extension-priv.h (struct extension_language_ops)
5826 <get_xmethod_result_type>: New member.
5827 * extension.c (get_xmethod_result_type): New function.
5828 * extension.h (get_xmethod_result_type): Declare.
5829 * python/py-xmethods.c (get_result_type_method_name): New static
5830 global.
5831 (py_get_result_type_method_name): Ditto.
5832 (gdbpy_get_xmethod_result_type): New function.
5833 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
5834 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
5835 * python/python.c (python_extension_ops): Add
5836 gdbpy_get_xmethod_result_type.
5837 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
5838 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
5839 xmethods.
5840 (value_x_unop): Ditto.
5841 * value.c (result_type_of_xmethod): New function.
5842 * value.h (result_type_of_xmethod): Declare.
5843
998d2a3e
GB
58442015-04-29 Gary Benson <gbenson@redhat.com>
5845
5846 * solib.c (solib_find_1): Allow fd argument to be NULL.
5847 (exec_file_find): Update comment.
5848 (solib_find): Likewise.
5849 * exec.c (exec_file_locate_attach): Use NULL as fd
5850 argument to exec_file_find to avoid having to close
5851 the opened file.
5852 * infrun.c (follow_exec): Likewise.
5853
34f5f757
DE
58542015-04-28 Doug Evans <dje@google.com>
5855
5856 PR python/18299
5857 * python/lib/gdb/printing.py (register_pretty_printer): Handle
5858 name or __name__ attributes. Handle gdb module as first argument.
5859
69b4374a
DE
58602015-04-28 Doug Evans <dje@google.com>
5861
5862 PR python/18089
5863 * python/py-prettyprint.c (print_children): Verify result of children
5864 iterator. Provide better error message.
5865 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
5866 * python/python.c (gdbpy_print_python_errors_p): New function.
5867
5e7cf078
DE
58682015-04-28 Doug Evans <dje@google.com>
5869
5870 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
5871
59fb7612
SS
58722015-04-28 Sasha Smundak <asmundak@google.com>
5873
5874 * NEWS: Mention gdb.Type.optimized_out method.
5875 * python/py-type.c (typy_optimized_out): New function.
5876
cea6e4f1
JB
58772015-04-28 John Baldwin <jhb@FreeBSD.org>
5878
5879 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5880
24b73f8e
PP
58812015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5882
5883 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
5884 (initialize_utils): Move call of init_page_info() to ...
5885 * top.c (gdb_init): ... here.
5886
a88d0bb3
PP
58872015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5888
5889 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
5890 (tui_sigwinch_handler): Still update our idea of
5891 the terminal's width and height even when TUI is not active.
5892
d6e5e7f7
PP
58932015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5894
5895 * utils.h (set_screen_width_and_height): Declare.
5896 * utils.c (set_screen_width_and_height): Define.
5897 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
5898
ff862be4
GB
58992015-04-28 Gary Benson <gbenson@redhat.com>
5900
5901 * infrun.c (solist.h): New include.
5902 (follow_exec): Use exec_file_find to prefix execd_pathname
5903 with gdb_sysroot.
5904
2eb639cb
PP
59052015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5906
5907 * tui/tui-source.c (tui_set_source_content): Avoid calling
5908 strcpy() when offset is 0.
5909
97206799
PP
59102015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5911
5912 PR gdb/18155
5913 * tui/tui-data.c (tui_free_window): Don't free the locator
5914 window when passed an SRC_WIN or a DISASSEM_WIN.
5915
63ed8182
PP
59162015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5917
5918 * tui/tui-data.h (struct tui_win_element): Forward-declare.
5919 (tui_win_content): Move declaration.
5920 (struct tui_gen_win_info): Give 'content' field the
5921 type tui_win_content.
5922 * tui/tui-data.c (init_content_element): Remove redundant and
5923 erroneous casts.
5924 (tui_add_content_elements): Remove erroneous cast.
5925 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
5926 casts.
5927 (tui_get_begin_asm_address): Likewise.
5928 * tui/tui-regs.c (tui_show_registers): Likewise.
5929 (tui_show_register_group): Likewise.
5930 (tui_display_registers_from): Likewise.
5931 (tui_check_register_values): Likewise.
5932 * tui/tui-source.c (tui_set_source_content): Likewise.
5933 (tui_set_source_content_nil): Likewise.
5934 (tui_source_is_displayed): Likewise.
5935 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5936 (tui_set_locator_fullname): Likewise.
5937 (tui_set_locator_info): Likewise.
5938 (tui_show_frame_info): Likewise.
5939 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
5940 (tui_show_source_line): Likewise.
5941 (tui_horizontal_source_scroll): Likewise.
5942 (tui_update_breakpoint_info): Likewise.
5943 (tui_set_exec_info_content): Likewise.
5944 (tui_show_exec_info_content): Likewise.
5945 (tui_alloc_source_buffer): Likewise.
5946 (tui_line_is_displayed): Likewise.
5947 (tui_addr_is_displayed): Likewise.
5948
d2b41ca0
JB
59492015-04-27 John Baldwin <jhb@FreeBSD.org>
5950
5951 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
5952 event if PL_FLAG_EXEC is set.
5953 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
5954 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
5955 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
5956 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
5957 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
5958
e58e05d6
JB
59592015-04-27 John Baldwin <jhb@FreeBSD.org>
5960
5961 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
5962 [TDP_RFPPWAIT] New variable fbsd_pending_children.
5963 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
5964 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
5965 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
5966 [PT_LWPINFO] (fbsd_wait): New function.
5967 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
5968 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
5969 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
5970 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
5971 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
5972 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
5973 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
5974 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
5975 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
5976 "fbsd_wait".
5977 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
5978 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
5979 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
5980 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
5981 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
5982 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
5983 Set "to_post_attach" to "fbsd_post_attach".
5984
8f60fe01
JB
59852015-04-27 John Baldwin <jhb@FreeBSD.org>
5986
5987 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
5988 (fbsd_find_memory_regions): Mark static.
5989 (fbsd_nat_add_target): New function.
5990 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
5991 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
5992 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
5993 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
5994 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
5995 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
5996
5fbae7d1
GB
59972015-04-27 Gary Benson <gbenson@redhat.com>
5998
5999 * objfiles.c (allocate_objfile): Do not attempt to expand name
6000 if name is a "target:" filename.
6001 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
6002 to load auto-load scripts for objfiles with "target:" filenames.
6003
417c80f9
AA
60042015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6005
6006 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
6007 (enum s390_vector_abi_kind): New enum.
6008 (struct gdbarch_tdep)<vector_abi>: New field.
6009 (s390_effective_inner_type): Add parameter min_size. Stop
6010 unwrapping if the inner type is smaller than min_size.
6011 (s390_function_arg_float): Adjust call to
6012 s390_effective_inner_type.
6013 (s390_function_arg_vector): New function.
6014 (s390_function_arg_integer): Adjust comment.
6015 (struct s390_arg_state)<vr>: New field.
6016 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
6017 arguments according to vector ABI when appropriate.
6018 (s390_push_dummy_call): Initialize the argument state's field
6019 'vr'. Adjust calls to s390_handle_arg.
6020 (s390_register_return_value): Handle vector return values.
6021 (s390_return_value): Apply the "register" return value convention
6022 to a vector when appropriate.
6023 (s390_gdbarch_init): Initialize tdep->vector_abi.
6024 * NEWS: Announce S390 vector ABI support.
6025
4e65a17e
AA
60262015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6027
6028 * s390-linux-tdep.c (s390_return_value_convention): Remove
6029 function. Inline its logic...
6030 (s390_return_value): ...here. Instead, move the handling of the
6031 "register" return value convention...
6032 (s390_register_return_value): ...here. New function.
6033
80f75320
AA
60342015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6035
6036 * s390-linux-tdep.c
6037 (is_float_singleton): Remove function. Move the "singleton" part
6038 of the logic...
6039 (s390_effective_inner_type): ...here. New function.
6040 (is_float_like): Remove function. Inline its logic...
6041 (s390_function_arg_float): ...here.
6042 (is_pointer_like, is_integer_like, is_struct_like): Remove
6043 functions. Inline their logic...
6044 (s390_function_arg_integer): ...here.
6045 (s390_function_arg_pass_by_reference): Remove function.
6046 (extend_simple_arg): Remove function.
6047 (alignment_of): Remove function.
6048 (struct s390_arg_state): New structure.
6049 (s390_handle_arg): New function.
6050 (s390_push_dummy_call): Move parameter placement logic to the new
6051 function s390_handle_arg. Call it for calculating the stack area
6052 sizes first, and again for actually writing the parameters.
6053
6dbc9c04
AA
60542015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6055
6056 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
6057 false if the argument is zero.
6058
9e195661
PMR
60592015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
6060
6061 * ada-lang.c (template_to_static_fixed_type): Return input type
6062 when it is already fixed. Cache the input type itself when not
6063 creating a static fixed copy. Make it explicit that we never
6064 molestate the input type.
6065 * gdbtypes.c (resolve_dynamic_struct): Reset the
6066 TYPE_TARGET_TYPE field for resolved copies.
6067
460efde1
JB
60682015-04-27 Joel Brobecker <brobecker@adacore.com>
6069
6070 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
6071 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
6072 (template_to_static_fixed_type): Call ada_check_typedef only
6073 when necessary.
6074
6faec16b
AB
60752015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
6076
6077 * cli/cli-dump.c (srec_dump_command): Add internationalization
6078 mark ups.
6079 (ihex_dump_command): Likewise.
6080 (tekhex_dump_command): Likewise.
6081 (binary_dump_command): Likewise.
6082 (binary_append_command): Likewise.
6083
cf75d6c3
AB
60842015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
6085
6086 * cli/cli-dump.c (verilog_cmdlist): New variable.
6087 (dump_verilog_memory): New function.
6088 (dump_verilog_value): New function.
6089 (verilog_dump_command): New function.
6090 (_initialize_cli_dump): Add new commands to support verilog dump
6091 format.
6092 * NEWS: Add entry for "dump verilog".
6093
8cd00c59
PMR
60942015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
6095
6096 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
6097 descriptive type when there is none.
6098
8900d71e
PP
60992015-04-23 Patrick Palka <patrick@parcs.ath.cx>
6100
6101 * tui/tui-win.c (tui_async_resize_screen): Call
6102 rl_resize_terminal().
6103
f16eab5f
JT
61042015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
6105
6106 * windows-nat.c (handle_output_debug_string): Don't change
6107 current_event.dwThreadId.
6108 (get_windows_debug_event): Use thread_id, rather than relying on
6109 current_event.dwThreadId being changed.
6110
68ffc902
JT
61112015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
6112
6113 * windows-nat.c (windows_continue): Report an error if
6114 ContinueDebugEvent() fails.
6115
23942819
JT
61162015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6117
6118 * windows-nat.c (windows_resume): Fix misspelling in debug output.
6119
e6ad66bd
JT
61202015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6121
6122 * windows-nat.c (get_windows_debug_event): Replace retval with
6123 thread_id throughout. Update stale comment.
6124
776704b9
JT
61252015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6126
6127 * windows-nat.c (get_windows_debug_event): Don't use ternary
6128 conditional operator.
6129
8aae4344
PM
61302015-04-21 Pierre Muller <muller@sourceware.org>
6131
6132 PR pascal/17815
6133 p-exp.y (yylex): Reorganize code to return the matched pattern
6134 for a field of this.
6135
819843c7
GB
61362015-04-21 Gary Benson <gbenson@redhat.com>
6137
6138 * common/fileio.h (fileio_to_host_openflags): New declaration.
6139 * common/fileio.c (fcntl.h): New include.
6140 (fileio_to_host_openflags): New function, factored out from...
6141 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
6142 Single use updated.
6143
0bca7f99
KB
61442015-04-21 Kevin Buettner <kevinb@redhat.com>
6145
6146 * rl78-tdep.c (RL78_SP_ADDR): Define.
6147 (opc_reg_to_gdb_regnum): New static function.
6148 (rl78_analyze_prologue): Recognize instructions forming slightly
6149 more interesting prologues.
6150
e771e4be
PMR
61512015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
6152
6153 Revert:
6154 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6155 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6156 TYPE_CODE_REF types so that they are not considered as dynamic
6157 depending on the referenced type.
6158 (resolve_dynamic_type_internal): Likewise.
6159
ee715b5a
PMR
61602015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
6161
6162 Revert:
6163 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6164 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6165 "top_level" parameter.
6166 (resolve_dynamic_type_internal): Remove the unused "top_level"
6167 parameter. Update call to is_dynamic_type_internal.
6168 (is_dynamic_type): Update call to is_dynamic_type_internal.
6169 (resolve_dynamic_range): Update call to
6170 resolve_dynamic_type_internal.
6171 (resolve_dynamic_union): Likewise.
6172 (resolve_dynamic_struct): Likewise.
6173 (resolve_dynamic_type): Likewise.
6174
e31d7699
GKB
61752015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
6176
6177 * breakpoint.c (update_dprintf_command_list): Remove duplicated
6178 xmalloc.
6179
d214e5e7
TS
61802015-04-20 Thomas Schwinge <thomas@codesourcery.com>
6181
110f9112
TS
6182 * reply_mig_hack.awk: Robustify parsing.
6183
d214e5e7
TS
6184 * reply_mig_hack.awk: Don't bother to declare an intermediate
6185 function pointer variable.
6186
8f61baf8
DE
61872015-04-17 Doug Evans <dje@google.com>
6188
6189 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
6190 to "exec_displacement" to avoid confusion with inner use of the name.
6191
dbbf180a
YQ
61922015-04-17 Pedro Alves <palves@redhat.com>
6193
6194 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
6195 if HW point of TYPE isn't supported.
6196
059790a0
YQ
61972015-04-17 Yao Qi <yao.qi@linaro.org>
6198 Pedro Alves <palves@redhat.com>
6199
6200 * target.h (target_can_use_hardware_watchpoint): Update comments.
6201 Remove trailing ";".
6202
1b6e6f5c
GB
62032015-04-17 Gary Benson <gbenson@redhat.com>
6204
6205 * remote.c (remote_add_inferior): New argument try_open_exec.
6206 If nonzero, attempt to open the inferior's executable file as
6207 the main executable if no main executable is open already.
6208 All callers updated.
6209 * NEWS: Mention that GDB now supports automatic location and
6210 retrieval of executable + files from remote targets.
6211
c78fa86a
GB
62122015-04-17 Gary Benson <gbenson@redhat.com>
6213
6214 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
6215 * remote.c (PACKET_qXfer_exec_file): Likewise.
6216 (remote_protocol_features): Register the
6217 "qXfer:exec-file:read" feature.
6218 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
6219 (remote_pid_to_exec_file): New function.
6220 (init_remote_ops): Initialize to_pid_to_exec_file.
6221 (_initialize_remote): Register new "set/show remote
6222 pid-to-exec-file-packet" command.
6223 * NEWS: Announce new qXfer:exec-file:read packet.
6224
e0d86d2c
GB
62252015-04-17 Gary Benson <gbenson@redhat.com>
6226
6227 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
6228 New declaration.
6229 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
6230 New function, factored out from...
6231 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
6232
a9a5a3d1
GB
62332015-04-17 Gary Benson <gbenson@redhat.com>
6234
6235 * exec.c (solist.h): New include.
6236 (exec_file_locate_attach): Prefix absolute executable
6237 paths with gdb_sysroot if set.
6238 * NEWS: Mention that executable paths may be prepended
6239 with sysroot.
6240
af1900b0
GB
62412015-04-17 Gary Benson <gbenson@redhat.com>
6242
6243 * solist.h (exec_file_find): New declaration.
6244 * solib.c (solib_find_1): New function, factored out from...
6245 (solib_find): ...here.
6246 (exec_file_find): New function.
6247
a10de604
GB
62482015-04-17 Gary Benson <gbenson@redhat.com>
6249
6250 * gdbcore.h (exec_file_locate_attach): New declaration.
6251 * exec.c (exec_file_locate_attach): New function, factored
6252 out from...
6253 * infcmd.c (attach_command_post_wait): ...here.
6254
92209ddf
MF
62552015-04-17 Mike Frysinger <vapier@gentoo.org>
6256
6257 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
6258
8550d3b3
YQ
62592015-04-16 Yao Qi <yao.qi@linaro.org>
6260
6261 * infrun.c (maybe_software_singlestep): Declare.
6262 (displaced_step_fixup): Call maybe_software_singlestep.
6263
30b3dd9d
DE
62642015-04-15 Doug Evans <dje@google.com>
6265
6266 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
6267
61d96d7e
DE
62682015-04-15 Doug Evans <dje@google.com>
6269
6270 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
6271
40d2f8d6
SM
62722015-04-15 Simon Marchi <simon.marchi@ericsson.com>
6273
6274 * python/lib/gdb/command/unwinders.py: Add parentheses.
6275
6bbbba9b
YQ
62762015-04-15 Yao Qi <yao.qi@linaro.org>
6277
6278 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
6279
2bb2dcab
YQ
62802015-04-15 Yao Qi <yao.qi@linaro.org>
6281
6282 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
6283
41f071ef
YQ
62842015-04-15 Yao Qi <yao.qi@linaro.org>
6285
6286 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6287 dsc->insn_size instead of 4.
6288
326a5c7e
GB
62892015-04-14 Gary Benson <gbenson@redhat.com>
6290
6291 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
6292 * minidebug.c (lzma_stat): Likewise.
6293 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
6294 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
6295
dd177e81
SS
62962015-04-13 Stan Shebs <stanshebs@google.com>
6297
6298 * MAINTAINERS: Update my email address.
6299
97de3545
JB
63002015-04-13 John Baldwin <jhb@FreeBSD.org>
6301
6302 * amd64-tdep.c (amd64_target_description): New function.
6303 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
6304 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
6305 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6306 x86 extended save area.
6307 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6308 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
6309 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
6310 (_initialize_amd64fbsd_nat): Set "to_read_description" to
6311 "amd64fbsd_read_description".
6312 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
6313 (amd64fbsd_supply_xstateregset): New function.
6314 (amd64fbsd_collect_xstateregset): New function.
6315 Add "amd64fbsd_xstateregset".
6316 (amd64fbsd_iterate_over_regset_sections): New function.
6317 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
6318 "I386_FBSD_XSAVE_XCR0_OFFSET".
6319 Add "iterate_over_regset_sections" gdbarch method.
6320 Add "core_read_description" gdbarch method.
6321 * i386-tdep.c (i386_target_description): New function.
6322 * i386-tdep.h: Export i386_target_description and tdesc_i386.
6323 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
6324 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6325 x86 extended save area.
6326 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6327 * i386bsd-nat.h: Export i386bsd_xsave_len.
6328 * i386fbsd-nat.c (i386fbsd_read_description): New function.
6329 (_initialize_i386fbsd_nat): Set "to_read_description" to
6330 "i386fbsd_read_description".
6331 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
6332 (i386fbsd_core_read_description): New function.
6333 (i386fbsd_supply_xstateregset): New function.
6334 (i386fbsd_collect_xstateregset): New function.
6335 Add "i386fbsd_xstateregset".
6336 (i386fbsd_iterate_over_regset_sections): New function.
6337 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
6338 "I386_FBSD_XSAVE_XCR0_OFFSET".
6339 Add "iterate_over_regset_sections" gdbarch method.
6340 Add "core_read_description" gdbarch method.
6341 * i386fbsd-tdep.h: New file.
6342
4f45d445
JK
63432015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6344
6345 * NEWS (Changes since GDB 7.9): Add removed -xdb.
6346 * breakpoint.c (command_line_is_silent): Remove xdb_commands
6347 conditional.
6348 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
6349 and lb.
6350 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
6351 va.
6352 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
6353 conditional.
6354 * defs.h (xdb_commands): Remove declaration.
6355 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
6356 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
6357 * infcmd.c (run_no_args_command, go_command): Remove.
6358 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
6359 * infrun.c (xdb_handle_command): Remove.
6360 (_initialize_infrun): Remove xdb_commands for lz and z.
6361 * main.c (xdb_commands): Remove variable.
6362 (captured_main): Remove "xdb" from long_options.
6363 (print_gdb_help): Remove --xdb from help.
6364 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
6365 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
6366 * stack.c (backtrace_full_command, args_plus_locals_info)
6367 (current_frame_command): Remove.
6368 (_initialize_stack): Remove xdb_commands for t, T and l.
6369 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
6370 * thread.c (_initialize_thread): Remove xdb_commands condition.
6371 * tui/tui-layout.c (tui_toggle_layout_command)
6372 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
6373 (_initialize_tui_layout): Remove xdb_commands for td and ts.
6374 * tui/tui-regs.c (tui_scroll_regs_forward_command)
6375 (tui_scroll_regs_backward_command): Remove.
6376 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
6377 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
6378 (_initialize_tui_win): Remove xdb_commands for U and w.
6379 * utils.c (pagination_on_command, pagination_off_command): Remove.
6380 (initialize_utils): Remove xdb_commands for am and sm.
6381
cb71640d
PA
63822015-04-10 Pedro Alves <palves@redhat.com>
6383
6384 * infrun.c (displaced_step_fixup): Switch to the event ptid
6385 earlier. If the thread stopped for a watchpoint and the
6386 target/arch has non-continuable watchpoints, cancel the displaced
6387 step.
6388 (resume): Don't start a displaced step if in-line step-over info
6389 is valid.
6390
8f572e5c
PA
63912015-04-10 Pedro Alves <palves@redhat.com>
6392
6393 * infrun.c (displaced_step_in_progress): New function.
6394 (do_target_resume): Advise target to report all signals if
6395 displaced stepping.
6396
8d707a12
PA
63972015-04-10 Pedro Alves <palves@redhat.com>
6398
6399 PR gdb/18216
6400 * infrun.c (process_event_stop_test): Don't assume a step-resume
6401 is set if tp->stepped_breakpoint is true.
6402
ef713951
YQ
64032015-04-10 Yao Qi <yao.qi@linaro.org>
6404
6405 * arm-tdep.c (install_alu_reg): Update comment.
6406 (thumb_copy_alu_reg): Remove local variable rn. Update
6407 debugging message. Use r2 instead of r1 in the modified
6408 instruction.
6409
906d60cf
PA
64102015-04-10 Pedro Alves <palves@redhat.com>
6411
6412 PR gdb/13858
6413 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
6414 linux_displaced_step_location as gdbarch_displaced_step_location
6415 hook.
6416 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6417 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6418 * linux-tdep.c (linux_displaced_step_location): New function,
6419 based on ppc_linux_displaced_step_location.
6420 * linux-tdep.h (linux_displaced_step_location): New declaration.
6421 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
6422 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
6423 Delete.
6424 (ppc_linux_init_abi): Install linux_displaced_step_location as
6425 gdbarch_displaced_step_location hook, even without Cell/B.E..
6426 (_initialize_ppc_linux_tdep): Don't install
6427 ppc_linux_inferior_created as inferior_created observer.
6428 * s390-linux-tdep.c (s390_gdbarch_init): Install
6429 linux_displaced_step_location as gdbarch_displaced_step_location
6430 hook.
6431
7823a941
GB
64322015-04-09 Gary Benson <gbenson@redhat.com>
6433
6434 * common/common-remote-fileio.h: Rename to...
6435 * common/fileio.h: ...this. Update all references.
6436 (remote_fileio_to_fio_error): Rename to...
6437 (host_to_fileio_error): ...this.
6438 (remote_fileio_to_be): Rename to...
6439 (host_to_bigendian): ...this. Update all callers.
6440 (remote_fileio_to_fio_uint): Rename to...
6441 (host_to_fileio_uint): ...this. Update all callers.
6442 (remote_fileio_to_fio_time): Rename to...
6443 (host_to_fileio_time): ...this. Update all callers.
6444 (remote_fileio_to_fio_stat): Rename to...
6445 (host_to_fileio_stat): ...this.
6446 Update all references.
6447 * common/common-remote-fileio.c: Rename to...
6448 * common/fileio.c: ...this. Update all references.
6449 (remote_fileio_to_fio_error): Rename to...
6450 (host_to_fileio_error): ...this. Update all callers.
6451 (remote_fileio_mode_to_target): Rename to...
6452 (fileio_mode_pack): ...this. Update all callers.
6453 (remote_fileio_to_fio_mode): Rename to...
6454 (host_to_fileio_mode): ...this. Update all callers.
6455 (remote_fileio_to_fio_ulong): Rename to...
6456 (host_to_fileio_ulong): ...this. Update all callers.
6457 (remote_fileio_to_fio_stat): Rename to...
6458 (host_to_fileio_stat): ...this. Update all callers.
6459
f2983cc3
AW
64602015-04-09 Andy Wingo <wingo@igalia.com>
6461
6462 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
6463 (frame_functions): Bind gdbscm_frame_read_register to
6464 frame-read-register.
6465 * guile/lib/gdb.scm (frame-read-register): Export.
6466
b88bb450
GB
64672015-04-09 Gary Benson <gbenson@redhat.com>
6468
6469 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
6470 New declaration.
6471 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
6472 New function, factored out the named functions below.
6473 * inf-child.c (gdb/fileio.h): Remove include.
6474 (common-remote-fileio.h): New include.
6475 (inf_child_errno_to_fileio_error): Remove function. Update
6476 all callers to use remote_fileio_to_fio_error.
6477 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
6478
2f2680f3
AW
64792015-04-09 Andy Wingo <wingo@igalia.com>
6480
6481 * MAINTAINERS (Write After Approval): Add Andy Wingo.
6482
5a2d4533
L
64832015-04-09 H.J. Lu <hongjiu.lu@intel.com>
6484
6485 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
6486 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
6487 * configure: Regenerated.
6488
421693b0
PA
64892015-04-09 Pedro Alves <palves@redhat.com>
6490
6491 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
6492 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
6493 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
6494 * gnulib/import/Makefile.am: Update.
6495 * gnulib/import/Makefile.in: Update.
6496 * gnulib/import/m4/gnulib-cache.m4: Update.
6497 * gnulib/import/m4/gnulib-comp.m4: Update.
6498 * gnulib/import/m4/strtok_r.m4: New file.
6499 * gnulib/import/strtok_r.c: New file.
6500
f543dc83
PA
65012015-04-09 Pedro Alves <palves@redhat.com>
6502
6503 * gnulib/update-gnulib.sh (aclocal version check): Filter out
6504 "called too early to check prototype".
6505
6d62641c
SDJ
65062015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
6507
6508 PR python/16699
6509 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
6510 use a caching mechanism. Adjust comments and code to reflect
6511 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
6512 (cmdpy_completer_handle_brkchars): Adjust call to
6513 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
6514 (cmdpy_completer): Likewise.
6515
85558555
YQ
65162015-04-08 Yao Qi <yao.qi@linaro.org>
6517
6518 * spu-tdep.c (spu_gdbarch_init): Don't call
6519 set_gdbarch_cannot_step_breakpoint.
6520
d249a14a
SDJ
65212015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
6522
6523 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
6524
8a06aea7
PA
65252015-04-07 Pedro Alves <palves@redhat.com>
6526
6527 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
6528 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
6529 (delete_exited_threads): New declaration.
6530 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
6531 * linux-nat.c (linux_nat_update_thread_list): New function.
6532 (linux_nat_add_target): Install it.
6533 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
6534 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
6535 (delete_exited_threads): New function.
6536
d9b67d9f
PA
65372015-04-07 Pedro Alves <pedro@codesourcery.com>
6538
6539 * infrun.c (resume) <displaced stepping debug output>: Get the
6540 leader thread's regcache, not resume_ptid's.
6541
2c26b84f
DE
65422015-04-06 Doug Evans <xdje42@gmail.com>
6543
6544 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
6545 VAR_DOMAIN.
6546 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
6547 Include symbol domain in debugging output.
6548
7a85168d
PA
65492015-04-06 Pedro Alves <palves@redhat.com>
6550 Bernd Edlinger <bernd.edlinger@hotmail.de>
6551
6552 * configure.ac: Remove the mingw32-specific stub-termcap.o
6553 fallback, and instead fallback to the stub termcap on all hosts.
6554 * configure: Regenerate.
6555 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
6556 symbols.
6557
25755e2b
PMR
65582015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6559
6560 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6561 "top_level" parameter.
6562 (resolve_dynamic_type_internal): Remove the unused "top_level"
6563 parameter. Update call to is_dynamic_type_internal.
6564 (is_dynamic_type): Update call to is_dynamic_type_internal.
6565 (resolve_dynamic_range): Update call to
6566 resolve_dynamic_type_internal.
6567 (resolve_dynamic_union): Likewise.
6568 (resolve_dynamic_struct): Likewise.
6569 (resolve_dynamic_type): Likewise.
6570
961f4160
PMR
65712015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6572
6573 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6574 TYPE_CODE_REF types so that they are not considered as dynamic
6575 depending on the referenced type.
6576 (resolve_dynamic_type_internal): Likewise.
6577
39f3de7c
L
65782015-04-02 H.J. Lu <hongjiu.lu@intel.com>
6579
6580 * Makefile.in (top_srcdir): New.
6581 * configure: Regenerated.
6582
599bd15c
GB
65832015-04-02 Gary Benson <gbenson@redhat.com>
6584
6585 * NEWS: Announce the new default sysroot of "target:".
6586
fed040c6
GB
65872015-04-02 Gary Benson <gbenson@redhat.com>
6588
6589 * main.c (captured_main): Set gdb_sysroot to "target:"
6590 if not otherwise set.
6591
64c0b5de
GB
65922015-04-02 Gary Benson <gbenson@redhat.com>
6593
6594 * exec.c (exec_file_attach): Support "target:" filenames.
6595
b57fbfba
GB
65962015-04-02 Gary Benson <gbenson@redhat.com>
6597
6598 * solib.c (solib_find): Strip "target:" prefix from sysroot
6599 if accessing local files.
6600
97a41605
GB
66012015-04-02 Gary Benson <gbenson@redhat.com>
6602
6603 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
6604 checks and error messages.
6605
2938e6cf
GB
66062015-04-02 Gary Benson <gbenson@redhat.com>
6607
6608 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
6609 (remote_filename_p): Remove declaration.
6610 (remote_bfd_open): Likewise.
6611 * remote.c (remote_bfd_iovec_open): Remove function.
6612 (remote_bfd_iovec_close): Likewise.
6613 (remote_bfd_iovec_pread): Likewise.
6614 (remote_bfd_iovec_stat): Likewise.
6615 (remote_filename_p): Likewise.
6616 (remote_bfd_open): Likewise.
6617 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
6618 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
6619 (gdb_bfd_open_maybe_remote): Remove function.
6620 (symfile_bfd_open): Replace remote filename check with
6621 target filename check.
6622 (reread_symbols): Use gdb_bfd_open.
6623 * build-id.c (gdbcore.h): New include.
6624 (build_id_to_debug_bfd): Use gdb_bfd_open.
6625 * infcmd.c (attach_command_post_wait): Remove remote filename
6626 check.
6627 * solib.c (solib_find): Replace remote-specific handling with
6628 target-specific handling. Update comments where necessary.
6629 (solib_bfd_open): Replace remote-specific handling with
6630 target-specific handling.
6631 (gdb_sysroot_changed): New function.
6632 (_initialize_solib): Call the above when gdb_sysroot changes.
6633 * windows-tdep.c (gdbcore.h): New include.
6634 (windows_xfer_shared_library): Use gdb_bfd_open.
6635
f08e97fe
GB
66362015-04-02 Gary Benson <gbenson@redhat.com>
6637
6638 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
6639 (is_target_filename): New declaration.
6640 (gdb_bfd_has_target_filename): Likewise.
6641 (gdb_bfd_open): Update documentation comment.
6642 * gdb_bfd.c (target.h): New include.
6643 (gdb/fileio.h): Likewise.
6644 (is_target_filename): New function.
6645 (gdb_bfd_has_target_filename): Likewise.
6646 (fileio_errno_to_host): Likewise.
6647 (gdb_bfd_iovec_fileio_open): Likewise.
6648 (gdb_bfd_iovec_fileio_pread): Likewise.
6649 (gdb_bfd_iovec_fileio_close): Likewise.
6650 (gdb_bfd_iovec_fileio_fstat): Likewise.
6651 (gdb_bfd_open): Use target fileio to access paths prefixed
6652 with "target:" where necessary.
6653
4bd7dc42
GB
66542015-04-02 Gary Benson <gbenson@redhat.com>
6655
6656 * target.h (struct target_ops) <to_filesystem_is_local>:
6657 New field.
6658 (target_filesystem_is_local): New macro.
6659 * target-delegates.c: Regenerate.
6660 * remote.c (remote_filesystem_is_local): New function.
6661 (init_remote_ops): Initialize to_filesystem_is_local.
6662
9b15c1f0
GB
66632015-04-02 Gary Benson <gbenson@redhat.com>
6664
6665 * target.h (struct target_ops) <to_fileio_fstat>: New field.
6666 (target_fileio_fstat): New declaration.
6667 * target.c (target_fileio_fstat): New function.
6668 * inf-child.c (inf_child_fileio_fstat): Likewise.
6669 (inf_child_target): Initialize to_fileio_fstat.
6670 * remote.c (init_remote_ops): Likewise.
6671
d11916aa
SS
66722015-04-01 Sasha Smundak <asmundak@google.com>
6673
6674 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
6675 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
6676 (py-unwind.o): New recipe.
6677 * NEWS: mention Python frame unwinding.
6678 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
6679 gdb/unwinder.py and gdb/command/unwinder.py
6680 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
6681 list.
6682 (execute_unwinders): New function.
6683 * python/lib/gdb/command/unwinders.py: New file.
6684 * python/lib/gdb/unwinder.py: New file.
6685 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
6686 (objfpy_dealloc): Decrement frame_unwinders reference count.
6687 (objfpy_initialize): Create frame_unwinders list.
6688 (objfpy_get_frame_unwinders): New function.
6689 (objfpy_set_frame_unwinders): Ditto.
6690 (objfile_getset): Add frame_unwinders attribute to Objfile.
6691 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
6692 (pspy_dealloc): Decrement frame_unwinders reference count.
6693 (pspy_initialize): Create frame_unwinders list.
6694 (pspy_get_frame_unwinders): New function.
6695 (pspy_set_frame_unwinders): Ditto.
6696 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
6697 * python/py-unwind.c: New file.
6698 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
6699 (objpy_get_frame_unwinders): New prototype.
6700 (gdbpy_initialize_unwind): New prototype.
6701 * python/python.c (gdbpy_apply_type_printers): Call
6702 gdbpy_initialize_unwind.
6703
6b403daa
PA
67042015-04-01 Pedro Alves <palves@redhat.com>
6705
6706 * infrun.c (resume): Check currently_stepping after clearing
6707 stepped_breakpoint, not before.
6708
1176ecec
PA
67092015-04-01 Pedro Alves <palves@redhat.com>
6710
6711 * infrun.c (print_target_wait_results): Print all the ptid
6712 elements.
6713
de1fe8c8
PA
67142015-04-01 Pedro Alves <palves@redhat.com>
6715
6716 * infrun.c (keep_going): Also discard cleanups if inserting
6717 breakpoints fails.
6718
e6f5c25b
PA
67192015-04-01 Pedro Alves <palves@redhat.com>
6720
6721 * infrun.c (wait_for_inferior): Install the
6722 finish_thread_state_cleanup cleanup across the whole function, not
6723 just around handle_inferior_event.
6724
1ac806b8
PA
67252015-04-01 Pedro Alves <palves@redhat.com>
6726
6727 * infrun.c (resume) <step past permanent breakpoint>: Use
6728 do_target_resume.
6729
2ee52aa4
PA
67302015-04-01 Pedro Alves <palves@redhat.com>
6731
6732 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
6733
5445da1b
PMR
67342015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
6735
6736 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
6737
4eec2deb
PA
67382015-04-01 Pedro Alves <palves@redhat.com>
6739
6740 * linux-thread-db.c (record_thread): Readd the thread to gdb's
6741 list if it was marked exited.
6742
afa59b79
L
67432015-04-01 H.J. Lu <hongjiu.lu@intel.com>
6744
6745 * configure: Regenerated.
6746
df8411da
SDJ
67472015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
6748 Jan Kratochvil <jan.kratochvil@redhat.com>
6749 Oleg Nesterov <oleg@redhat.com>
6750
6751 PR corefiles/16092
6752 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
6753 New enum identifying the various options of the coredump_filter
6754 file.
6755 (struct smaps_vmflags): New struct.
6756 (use_coredump_filter): New variable.
6757 (decode_vmflags): New function.
6758 (mapping_is_anonymous_p): Likewise.
6759 (dump_mapping_p): Likewise.
6760 (linux_find_memory_regions_full): New variables
6761 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
6762 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
6763 parsing of its information. Implement memory mapping filtering
6764 based on its contents.
6765 (show_use_coredump_filter): New function.
6766 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
6767 * NEWS: Mention the possibility of using the
6768 '/proc/PID/coredump_filter' file when generating a corefile.
6769 Mention new command 'set use-coredump-filter'.
6770
416f679e
SDJ
67712015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
6772
6773 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
6774 read_memory_unsigned_integer.
6775
711a72d3
L
67762015-03-31 H.J. Lu <hongjiu.lu@intel.com>
6777
6778 * Makefile.in (ZLIB): New.
6779 (ZLIBINC): Likewise.
6780 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
6781 (CLIBS): Add $(ZLIB).
6782 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
6783 Add -lz to LIBS.
6784 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
6785 * top.c (print_gdb_configuration): Remove --with-zlib and
6786 --without-zlib.
6787 * config.in: Regenerated.
6788 * configure: Likewise.
6789
d33279b3
AT
67902015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6791
6792 * NEWS: Mention info os cpus support.
6793 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
6794 (struct osdata_type): Add cpus entry, reorder the entries in
6795 alphabetical order.
6796
71b30f27
MK
67972015-03-31 Matthias Klose <doko@ubuntu.com>
6798
6799 * compile/compile.c (compile_to_object): Allow triplets with or
6800 without vendor set.
6801
13ce9222
DE
68022015-03-30 Doug Evans <dje@google.com>
6803
6804 PR c++/18141
6805 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
6806 klass in VAR_DOMAIN.
6807
20f796c9
GB
68082015-03-30 Gary Benson <gbenson@redhat.com>
6809
6810 * remote.c (remote_mourn_1): Remove function. Update all callers
6811 to use remote_mourn.
6812 (extended_remote_mourn_1): Remove function. Update all callers
6813 to use extended_remote_mourn.
6814 (extended_remote_attach_1): Remove function. Update all callers
6815 to use extended_remote_attach.
6816
49d45b20
JB
68172015-03-28 James Bowman <james.bowman@ftdichip.com>
6818
6819 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
6820 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
6821 (ALLDEPFILES): Add ft32-tdep.c.
6822 * configure.tgt: Add FT32 entry.
6823 * ft32-tdep.c: New file, FT32 target-dependent code.
6824 * ft32-tdep.h: New file, FT32 target-dependent code.
6825
1c4ff080
JK
68262015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6827
6828 Revert:
6829 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6830 Code cleanup.
6831 * printcmd.c (print_command_1): Move expr variable scope.
6832
79498702
JB
68332015-03-27 Joel Brobecker <brobecker@adacore.com>
6834
6835 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
6836
ce9c0ca1
AK
68372015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
6838
6839 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
6840 sections.
6841
429e1e81
JB
68422015-03-26 Joel Brobecker <brobecker@adacore.com>
6843
6844 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
6845 exception raised while parsing the probe arguments.
6846 Force parsing to be done using the C language parser.
6847 * expression.h (parse_expression_with_language): Declare.
6848 * parse.c (parse_expression_with_language): New function.
6849
4593441b
JT
68502015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
6851
6852 * MAINTAINERS (Write After Approval): Add "Jon Turney".
6853
ff908ebf
AW
68542015-03-26 Andy Wingo <wingo@igalia.com>
6855
6856 PR symtab/18148
6857 * dwarf2read.c (struct partial_die_info): Add has_const_value
6858 member.
6859 (add_partial_symbol): Don't punt on symbols that have const_value
6860 attributes.
6861 (read_partial_die): Detect DW_AT_const_value.
6862
f30d5c78
JK
68632015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6864
6865 Code cleanup.
6866 * printcmd.c (print_command_1): Move expr variable scope.
6867
8d89f51a
JK
68682015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6869
6870 Code cleanup.
6871 * printcmd.c (validate_format): Make the parameter cmdname const.
6872
0b736949
DB
68732015-03-26 Don Breazeal <donb@codesourcery.com>
6874
6875 * remote.c (_initialize_remote): Update comment.
6876
20d35291
PA
68772015-03-26 Pedro Alves <palves@redhat.com>
6878 Jon TURNEY <jon.turney@dronecode.org.uk>
6879
6880 * coffread.c (coff_symfile_read): When constructing the name of an
6881 import stub symbol from import symbol for amd64, only skip the
6882 char after _imp_ if the target is underscored (like i386) and the
6883 char is indeed the target's leading char.
6884
6a3753b3
PA
68852015-03-25 Pedro Alves <palves@redhat.com>
6886
6887 * target.h <to_async>: Replace 'callback' and 'context' parameters
6888 with boolean 'enable' parameter.
6889 (target_async): Replace CALLBACK and CONTEXT parameters with
6890 boolean ENABLE parameter.
6891 * inf-loop.c (inferior_event_handler): Adjust.
6892 * linux-nat.c (linux_nat_attach, linux_nat_resume)
6893 (linux_nat_resume): Adjust.
6894 (async_client_callback, async_client_context): Delete.
6895 (handle_target_event): Call inferior_event_handler directly.
6896 (linux_nat_async): Replace 'callback' and 'context' parameters
6897 with boolean 'enable' parameter. Adjust. Remove references to
6898 async_client_callback and async_client_context.
6899 (linux_nat_close): Adjust.
6900 * record-btrace.c (record_btrace_async): Replace 'callback' and
6901 'context' parameters with boolean 'enable' parameter. Adjust.
6902 (record_btrace_resume): Adjust.
6903 * record-full.c (record_full_async): Replace 'callback' and
6904 'context' parameters with boolean 'enable' parameter. Adjust.
6905 (record_full_resume, record_full_core_resume): Adjust.
6906 * remote.c (struct remote_state) <async_client_callback,
6907 async_client_context>: Delete fields.
6908 (remote_start_remote, extended_remote_attach_1, remote_resume)
6909 (extended_remote_create_inferior): Adjust.
6910 (remote_async_serial_handler): Call inferior_event_handler
6911 directly.
6912 (remote_async): Replace 'callback' and 'context' parameters with
6913 boolean 'enable' parameter. Adjust.
6914 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
6915 Adjust.
6916 * target-delegates.c: Regenerate.
6917
1c4b552b
GB
69182015-03-25 Gary Benson <gbenson@redhat.com>
6919 Pedro Alves <palves@redhat.com>
6920
6921 * target.c (fileio_ft_t): New typedef, define object vector.
6922 (fileio_fhandles): New static variable.
6923 (is_closed_fileio_fh): New macro.
6924 (lowest_closed_fd): New static variable.
6925 (acquire_fileio_fd): New function.
6926 (release_fileio_fd): Likewise.
6927 (fileio_fd_to_fh): New macro.
6928 (target_fileio_open): Wrap the file descriptor on success.
6929 (target_fileio_pwrite): Updated to use wrapped file descriptor.
6930 (target_fileio_pread): Likewise.
6931 (target_fileio_close): Likewise.
6932
a25d8bf9
PA
69332015-03-24 Pedro Alves <palves@redhat.com>
6934
6935 * thread.c (thread_apply_all_command): Take exited threads into
6936 account.
6937
44a1ee51
PA
69382015-03-24 Pedro Alves <palves@redhat.com>
6939
6940 * infrun.c (resume, proceed): Mention
6941 switch_back_to_stepped_thread, not switch_back_to_stepping.
6942
f3263aa4
PA
69432015-03-24 Pedro Alves <palves@redhat.com>
6944
6945 * infrun.c (user_visible_resume_ptid): Rewrite going from
6946 most-locked to unlocked instead of the opposite. Move comment ...
6947 * infrun.h (user_visible_resume_ptid): ... here.
6948
2bf6fb9d
PA
69492015-03-24 Pedro Alves <palves@redhat.com>
6950
6951 * linux-nat.c (linux_nat_resume): Output debug logs before trying
6952 to resume the event lwp. Use the lwp's ptid instead of the passed
6953 in (maybe wildcard) ptid.
6954 (stop_wait_callback): Tweak debug log output.
6955 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
6956 TRAP_TRACE.
6957 (linux_nat_filter_event): In debug output, distinguish a
6958 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
6959 before trying to resume the lwp.
6960
283a9958
JB
69612015-03-24 Joel Brobecker <brobecker@adacore.com>
6962
6963 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
6964 pointer indirection.
6965 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
6966 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
6967
93a8e227
JB
69682015-03-24 Joel Brobecker <brobecker@adacore.com>
6969
6970 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
6971 Renames DYN_ATTR_DATA_LOCATION.
6972 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
6973 DYN_ATTR_DATA_LOCATION.
6974 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
6975 instead of DYN_ATTR_DATA_LOCATION.
6976
64ce06e4
PA
69772015-03-24 Pedro Alves <palves@redhat.com>
6978
6979 * breakpoint.c (until_break_command): Adjust call to proceed.
6980 * gdbthread.h (struct thread_control_state) <stepping_command>:
6981 New field.
6982 * infcall.c (run_inferior_call): Adjust call to proceed.
6983 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
6984 Adjust calls to proceed.
6985 (set_step_frame): Set the current thread's step_start_function
6986 here.
6987 (step_once): Adjust calls to proceed.
6988 (jump_command, signal_command, until_next_command)
6989 (finish_backward, finish_forward, proceed_after_attach_callback)
6990 (attach_command_post_wait): Adjust calls to proceed.
6991 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
6992 (do_target_resume): New function, factored out from ...
6993 (resume): ... here. Remove 'step' parameter. Instead, check
6994 currently_stepping to determine whether the thread should be
6995 single-stepped.
6996 (proceed): Remove 'step' parameter and don't set the thread's
6997 step_start_function here. Adjust call to 'resume'.
6998 (handle_inferior_event): Adjust calls to 'resume'.
6999 (switch_back_to_stepped_thread): Use do_target_resume instead of
7000 'resume'.
7001 (keep_going): Adjust calls to 'resume'.
7002 * infrun.h (proceed): Remove 'step' parameter.
7003 (resume): Likewise.
7004 * windows-nat.c (do_initial_windows_stuff): Adjust call to
7005 'resume'.
7006 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
7007
856e7dd6
PA
70082015-03-24 Pedro Alves <palves@redhat.com>
7009
7010 * gdbthread.h (struct thread_control_state) <stepping_command>:
7011 New field.
7012 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
7013 the thread's stepping_command field.
7014 * infrun.c (resume): Check the thread's stepping_command flag to
7015 determine which threads should be resumed. Rename 'entry_step'
7016 local to user_step.
7017 (clear_proceed_status_thread): Clear 'stepping_command'.
7018 (schedlock_applies): Change parameter type to struct thread_info
7019 pointer. Adjust.
7020 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
7021 (switch_back_to_stepped_thread): Adjust calls to
7022 'schedlock_applies'.
7023 (_initialize_infrun): Adjust "set scheduler-locking step" help.
7024
885eeb5b
PA
70252015-03-24 Pedro Alves <palves@redhat.com>
7026
7027 * infrun.c (step_start_function): Delete and ...
7028 * gdbthread.h (struct thread_control_state) <step_start_function>:
7029 ... now a field here.
7030 * infrun.c (clear_proceed_status_thread): Clear the thread's
7031 step_start_function.
7032 (proceed, process_event_stop_test, print_stop_event): Adjust.
7033
3333f03a
PA
70342015-03-24 Pedro Alves <palves@redhat.com>
7035
7036 * infrun.c (proceed): No longer handle negative step.
7037
369f6daa
GB
70382015-03-24 Gary Benson <gbenson@redhat.com>
7039
7040 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
7041 (x86_linux_prepare_to_resume): Likewise.
7042 * x86-linux-nat.c (x86_linux_new_thread):
7043 Moved to nat/x86-linux.c.
7044 (x86_linux_prepare_to_resume): Likewise.
7045 * nat/x86-linux.c (x86_linux_new_thread): New function.
7046 (x86_linux_prepare_to_resume): Likewise.
7047
8e5d4070
GB
70482015-03-24 Gary Benson <gbenson@redhat.com>
7049
7050 * nat/x86-linux-dregs.h: New file.
7051 * nat/x86-linux-dregs.c: Likewise.
7052 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
7053 (x86-linux-dregs.o): New rule.
7054 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
7055 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7056 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
7057 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7058 (x86_linux_dr_get): Likewise.
7059 (x86_linux_dr_set): Likewise.
7060 (x86_linux_dr_get_addr): Likewise.
7061 (x86_linux_dr_get_control): Likewise.
7062 (x86_linux_dr_get_status): Likewise.
7063 (update_debug_registers_callback): Likewise.
7064 (x86_linux_dr_set_control): Likewise.
7065 (x86_linux_dr_set_addr): Likewise.
7066 (x86_linux_update_debug_registers): Likewise.
7067
2b95d440
GB
70682015-03-24 Gary Benson <gbenson@redhat.com>
7069
7070 * x86-linux-nat.c (x86_linux_update_debug_registers):
7071 New function, factored out from...
7072 (x86_linux_prepare_to_resume): ...this.
7073
14b0bc68
GB
70742015-03-24 Gary Benson <gbenson@redhat.com>
7075
7076 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
7077 (x86_linux_dr_set): Likewise.
7078 (x86_linux_dr_get_addr): Likewise.
7079 (x86_linux_dr_get_control): Likewise.
7080 (x86_linux_dr_get_status): Likewise.
7081 (update_debug_registers_callback): Likewise.
7082 (x86_linux_dr_set_control): Likewise.
7083 (x86_linux_dr_set_addr): Likewise.
7084 (x86_linux_prepare_to_resume): Likewise.
7085 (x86_linux_new_thread): Likewise.
7086
5dfe6ca8
GB
70872015-03-24 Gary Benson <gbenson@redhat.com>
7088
7089 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
7090 (x86_linux_new_thread): Rename argument.
7091
4b134ca1
GB
70922015-03-24 Gary Benson <gbenson@redhat.com>
7093
7094 * nat/x86-linux.h: New file.
7095 * nat/x86-linux.c: Likewise.
7096 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
7097 (x86-linux.o): New rule.
7098 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
7099 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7100 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
7101 (lwp_set_arch_private_info): New declaration.
7102 (lwp_arch_private_info): Likewise.
7103 * linux-nat.c (lwp_set_arch_private_info): New function.
7104 (lwp_arch_private_info): Likewise.
7105 * x86-linux-nat.c: Include nat/x86-linux.h.
7106 (arch_lwp_info): Removed structure.
7107 (update_debug_registers_callback):
7108 Use lwp_set_debug_registers_changed.
7109 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7110 and lwp_set_debug_registers_changed.
7111 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7112
cff068da
GB
71132015-03-24 Gary Benson <gbenson@redhat.com>
7114
7115 * nat/linux-nat.h (ptid_of_lwp): New declaration.
7116 (lwp_is_stopped): Likewise.
7117 (lwp_stop_reason): Likewise.
7118 * linux-nat.c (ptid_of_lwp): New function.
7119 (lwp_is_stopped): Likewise.
7120 (lwp_is_stopped_by_watchpoint): Likewise.
7121 * x86-linux-nat.c (update_debug_registers_callback):
7122 Use lwp_is_stopped.
7123 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7124 lwp_stop_reason.
7125
b2f7c7e8
GB
71262015-03-24 Gary Benson <gbenson@redhat.com>
7127
7128 * linux-nat.h (linux_stop_lwp): Move declaration to...
7129 * nat/linux-nat.h (linux_stop_lwp): New declaration.
7130
6d4ee8c6
GB
71312015-03-24 Gary Benson <gbenson@redhat.com>
7132
7133 * linux-nat.h: Include nat/linux-nat.h.
7134 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
7135 * nat/linux-nat.h (struct lwp_info): New forward declaration.
7136 (iterate_over_lwps_ftype): New typedef.
7137 (iterate_over_lwps): New declaration.
7138 * linux-nat.h (iterate_over_lwps): Update comment. Use
7139 iterate_over_lwps_ftype. Update callback return value check.
7140
70a0bb6b
GB
71412015-03-24 Gary Benson <gbenson@redhat.com>
7142
7143 * x86-nat.h (x86_debug_reg_state): Move declaration to...
7144 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
7145
7b669087
GB
71462015-03-24 Gary Benson <gbenson@redhat.com>
7147
7148 * nat/linux-nat.h (current_lwp_ptid): New declaration.
7149 * linux-nat.c (current_lwp_ptid): New function.
7150 * x86-linux-nat.c: Include nat/linux-nat.h.
7151 (x86_linux_dr_get_addr): Use current_lwp_ptid.
7152 (x86_linux_dr_get_control): Likewise.
7153 (x86_linux_dr_get_status): Likewise.
7154 (x86_linux_dr_set_control): Likewise.
7155 (x86_linux_dr_set_addr): Likewise.
7156
15630549
AT
71572015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
7158
7159 PR breakpoints/16466
7160 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
7161
8a4506c0
JB
71622015-03-23 Joel Brobecker <brobecker@adacore.com>
7163
7164 * ser-mingw.c (ser_windows_setparity): Fix indentation.
7165 * ser-unix.c (hardwire_setparity): Likewise.
7166
236af5e3
YG
71672015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
7168
7169 * NEWS: Mention set/show serial parity command.
7170 * monitor.c (monitor_open): Call serial_setparity.
7171 * remote.c (remote_open_1): Likewise.
7172 * ser-base.c (ser_base_serparity): New function.
7173 * ser-base.h (ser_base_setparity): Add declaration.
7174 * ser-go32.c (dos_ops): Set "setparity" field.
7175 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
7176 state.Parity.
7177 (ser_windows_setparity): New function.
7178 (hardwire_ops): Add ser_windows_setparity.
7179 (tty_ops): Add NULL for setparity field.
7180 (pipe_ops): Add ser_base_setparity.
7181 (tcp_ops): Likewise.
7182 * ser-pipe.c (pipe_ops): Likewise.
7183 * ser-tcp.c (tcp_ops): Likewise.
7184 * ser-unix.c (hardwire_setparity): Add declaration.
7185 (hardwire_raw): Don't reset PARENB flag.
7186 (hardwire_setparity): New function.
7187 (hardwire_ops): Add hardwire_setparity.
7188 * serial.c (serial_setparity): New function.
7189 (serial_parity): New global.
7190 (parity_none, parity_odd, parity_even, parity_enums, parity):
7191 New static globals.
7192 (set_parity): New function.
7193 (_initialize_serial): Add set/show serial parity commands.
7194 * serial.h (GDBPARITY_NONE): Define.
7195 (GDBPARITY_ODD): Define.
7196 (GDBPARITY_EVEN): Define.
7197 (serial_setparity) Add declaration.
7198 (struct serial_ops): Add setparity field.
7199 * target.h (serial_parity): Add declaration.
7200
32b40af9
KS
72012015-03-23 Keith Seitz <keiths@redhat.com>
7202
7203 * linespec.c (linespec_lexer_lex_keyword): Update comment.
7204
693dca06
KS
72052015-03-23 Keith Seitz <keiths@redhat.com>
7206
7207 * breakpoint.c (parse_breakpoint_sals): Use
7208 linespec_lexer_lex_keyword to ascertain if the user specified
7209 a NULL location.
7210 * linespec.c [IF_KEYWORD_INDEX]: Define.
7211 (linespec_lexer_lex_keyword): Export.
7212 (struct ls_parser) <keyword_ok>: Remove.
7213 A keyword is only a keyword if not followed by another keyword.
7214 (linespec_lexer_lex_one): Remove keyword_ok handling.
7215 Add comment explaining why the parsing stream is not advanced
7216 when a keyword is seen.
7217 (parse_linespec): Remove parser->keyword_ok.
7218 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
7219
7e993ebf
KS
72202015-03-23 Keith Seitz <keiths@redhat.com>
7221
7222 PR gdb/18021
7223 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
7224 if we find a static method with DW_AT_vtable_elem_location.
7225
b1a0f704
EZ
72262015-03-21 Eli Zaretskii <eliz@gnu.org>
7227
7228 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
7229 before the second loop, to avoid undefined behavior. Reported by
7230 Anton Blanchard <anton@samba.org>.
7231
d9823cbb
KB
72322015-03-20 Keven Boell <keven.boell@intel.com>
7233
7234 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
7235 data_location usage to linked list.
7236 (resolve_dynamic_type_internal): Adapt data_location to
7237 linked list.
7238 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
7239 (copy_type_recursive, copy_type): Add copy of linked list.
7240 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
7241 (struct dynamic_prop_list): New struct.
7242 * dwarf2read.c (set_die_type): Set data_location data.
7243
2e7bf1d7
PA
72442015-03-20 Pedro Alves <palves@redhat.com>
7245
7246 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
7247 inner block and make it const.
7248 * machoread.c (get_archive_prefix_len): Make "lparen" const.
7249
7a26bd4d
PA
72502015-03-20 Pedro Alves <palves@redhat.com>
7251
7252 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
7253 * breakpoint.h (set_breakpoint_condition): Update declaration.
7254
cd46431b
PA
72552015-03-20 Pedro Alves <palves@redhat.com>
7256
7257 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
7258
e28566f7
PA
72592015-03-20 Pedro Alves <palves@redhat.com>
7260
7261 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
7262
f6fc92f6
PA
72632015-03-20 Pedro Alves <palves@redhat.com>
7264
7265 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
7266
c32ed3ef
PA
72672015-03-20 Pedro Alves <palves@redhat.com>
7268
7269 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
7270 (nto_init_solib_absolute_prefix): Likewise.
7271
53e78085
PA
72722015-03-20 Pedro Alves <palves@redhat.com>
7273
7274 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
7275 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
7276
bc23328c
JK
72772015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7278
7279 * config/djgpp/README: Remove gdb.hp.
7280
e8ffc436
YQ
72812015-03-20 Yao Qi <yao.qi@linaro.org>
7282
7283 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7284 set_gdbarch_cannot_step_breakpoint.
7285
23f238d3
PA
72862015-03-19 Pedro Alves <palves@redhat.com>
7287
7288 * linux-nat.c (linux_resume_one_lwp): Rename to ...
7289 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
7290 instead call perror_with_name.
7291 (check_ptrace_stopped_lwp_gone): New function.
7292 (linux_resume_one_lwp): Reimplement as wrapper around
7293 linux_resume_one_lwp_throw that swallows errors if the LWP is
7294 gone.
7295 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
7296 swallows errors if the LWP is gone. Use
7297 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
7298
eb54c8bf
PA
72992015-03-19 Pedro Alves <palves@redhat.com>
7300
7301 * linux-nat.c (status_callback): Return early if the LWP has no
7302 status pending.
7303
b90fc188
PA
73042015-03-19 Pedro Alves <palves@redhat.com>
7305
7306 * linux-nat.c (select_event_lwp_callback): Update comment to no
7307 longer mention SIGTRAP.
7308
670f82d4
TG
73092015-03-18 Tristan Gingold <gingold@adacore.com>
7310
72f4393d
L
7311 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
7312 redirection code to ...
7313 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
7314 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 7315
464b0089
GB
73162015-03-18 Gary Benson <gbenson@redhat.com>
7317
7318 (remote_protocol_features): Remove the "vFile:fstat" feature.
7319 (remote_hostio_fstat): Probe for "vFile:fstat" support.
7320
f68f11b7
YQ
73212015-03-11 Yao Qi <yao.qi@linaro.org>
7322
7323 PR tdep/18107
7324 * aarch64-linux-tdep.c: Include xml-syscall.h
7325 (aarch64_linux_get_syscall_number): New function.
7326 (aarch64_linux_init_abi): Call
7327 set_gdbarch_get_syscall_number.
7328 * syscalls/aarch64-linux.xml: New file.
7329
393bd0c0
YG
73302015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
7331
7332 * ser-base.h (ser_base_setstopbits): Change second argument name
7333 from "rate" to "num".
7334
7f3647e2
GB
73352015-03-17 Gary Benson <gbenson@redhat.com>
7336 Luke Allardyce <lukeallardyce@gmail.com>
7337
7338 PR gdb/18131
7339 * common/common-remote-fileio.h (sys/stat.h): New include.
7340 (stuct stat): Remove forward declaration.
7341
3ce5b6e2
JB
73422015-03-16 John Baldwin <jhb@FreeBSD.org>
7343
7344 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
7345 before writing core register notes.
7346
d053f6be
YZ
73472015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7348 Pedro Alves <palves@redhat.com>
7349
7350 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
7351 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
7352 (tgoto): Wrap with extern "C".
7353
b1a921c8
PA
73542015-03-16 Pedro Alves <palves@redhat.com>
7355 Yuanhui Zhang <asmwarrior@gmail.com>
7356
7357 * stub-termcap.c (tputs): Change prototype.
7358
876d1cd7
YZ
73592015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7360 Pedro Alves <palves@redhat.com>
7361
7362 * windows-nat.c (struct thread_info_struct): Rename to ...
7363 (struct windows_thread_info_struct): ... this.
7364 (thread_info): Rename to ...
7365 (windows_thread_info): ... this.
7366 All users updated.
7367
0800b440
JK
73682015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7369 Pedro Alves <palves@redhat.com>
7370
7371 * NEWS: New Removed targets and native configurations.
7372
73732015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
7374
7375 Remove HPUX.
7376 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
7377 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
7378 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
7379 ia64-hpux-tdep.h, solib-ia64-hpux.h.
7380 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
7381 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
7382 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
7383 hppa-hpux-tdep.c.
7384 * config/ia64/hpux.mh: Remove file.
7385 * config/pa/hpux.mh: Remove file.
7386 * configure: Rebuilt.
7387 * configure.ac (dlgetmodinfo, somread.o): Remove.
7388 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7389 (ia64-*-hpux*): Remove its float format exception.
7390 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7391 * hppa-hpux-nat.c: Remove file.
7392 * hppa-hpux-tdep.c: Remove file.
7393 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
7394 Move them here from hppa-tdep.h
7395 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
7396 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
7397 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
7398 Move them to hppa-tdep.c.
7399 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
7400 declarations.
7401 * ia64-hpux-nat.c: Remove file.
7402 * ia64-hpux-tdep.c: Remove file.
7403 * ia64-hpux-tdep.h: Remove file.
7404 * inf-ttrace.c: Remove file.
7405 * inf-ttrace.h: Remove file.
7406 * solib-ia64-hpux.c: Remove file.
7407 * solib-ia64-hpux.h: Remove file.
7408 * solib-pa64.c: Remove file.
7409 * solib-pa64.h: Remove file.
7410 * solib-som.c: Remove file.
7411 * solib-som.h: Remove file.
7412 * somread.c: Remove file.
7413
25268153
JB
74142015-03-13 John Baldwin <jhb@FreeBSD.org>
7415
7416 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
7417 * config.in: Regenerate.
7418 * configure: Regenerate.
7419 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 7420 define.
25268153
JB
7421 (fbsd_find_memory_regions): Use kinfo_getvmmap to
7422 enumerate memory regions if present.
7423
773eacf5
JB
74242015-03-13 John Baldwin <jhb@FreeBSD.org>
7425
7426 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
7427 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
7428 expressions.
7429 (i386fbsd_sigtramp_p): Likewise.
7430
01b6bdb0
JB
74312015-03-12 John Baldwin <jhb@FreeBSD.org>
7432
7433 * MAINTAINERS (Write After Approval): Add John Baldwin.
7434
811a659a
GB
74352015-03-12 Gary Benson <gbenson@redhat.com>
7436
7437 * solib.c (_initialize_solib): Make "set/show sysroot" use
7438 add_setshow_optional_filename_cmd so it can be restored to
7439 empty after being set.
7440
10304ef3
SDJ
74412015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7442
7443 * Makefile.in (SFILES): New source break-catch-syscall.c.
7444 (COMMON_OBS): New object break-catch-syscall.o.
7445 * break-catch-syscall.c: New file.
7446 * breakpoint.c: Remove inclusion of "xml-syscall.h".
7447 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
7448 (struct syscall_catchpoint): Likewise.
7449 (dtor_catch_syscall): Likewise.
7450 (catch_syscall_inferior_data): Likewise.
7451 (struct catch_syscall_inferior_data): Likewise.
7452 (get_catch_syscall_inferior_data): Likewise.
7453 (catch_syscall_inferior_data_cleanup): Likewise.
7454 (insert_catch_syscall): Likewise.
7455 (remove_catch_syscall): Likewise.
7456 (breakpoint_hit_catch_syscall): Likewise.
7457 (print_it_catch_syscall): Likewise.
7458 (print_one_catch_syscall): Likewise.
7459 (print_mention_catch_syscall): Likewise.
7460 (print_recreate_catch_syscall): Likewise.
7461 (catch_syscall_breakpoint_ops): Likewise.
7462 (syscall_catchpoint_p): Likewise.
7463 (create_syscall_event_catchpoint): Likewise.
7464 (catch_syscall_split_args): Likewise.
7465 (catch_syscall_command_1): Likewise.
7466 (is_syscall_catchpoint_enabled): Likewise.
7467 (catch_syscall_enabled): Likewise.
7468 (catching_syscall_number): Likewise.
7469 (catch_syscall_completer): Likewise.
7470 (clear_syscall_counts): Likewise.
7471 (initialize_breakpoint_ops): Move initialization of syscall
7472 catchpoints to break-catch-syscall.c.
7473 (_initialize_breakpoint): Move code related to syscall catchpoints
7474 to break-catch-syscall.c.
7475
badd37ce
SDJ
74762015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7477
7478 * breakpoint.c (breakpoint_find_if): New function.
7479 * breakpoint.h (breakpoint_find_if): New prototype.
7480
0a93529c
GB
74812015-03-11 Gary Benson <gbenson@redhat.com>
7482
7483 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
7484 * remote-fileio.c (remote_fileio_to_host_uint): New function.
7485 (remote_fileio_to_host_ulong): Likewise.
7486 (remote_fileio_to_host_mode): Likewise.
7487 (remote_fileio_to_host_time): Likewise.
7488 (remote_fileio_to_host_stat): Likewise.
7489 * remote.c (PACKET_vFile_fstat): New enum value.
7490 (remote_protocol_features): Register the "vFile:fstat" feature.
7491 (remote_hostio_fstat): New function.
7492 (remote_bfd_iovec_stat): Use the above.
7493 (_initialize_remote): Register new "set/show remote
7494 hostio-fstat-packet" command.
7495 * symfile.c (separate_debug_file_exists): Update comment.
7496 * NEWS: Announce new vFile:fstat packet.
7497
791c0056
GB
74982015-03-11 Gary Benson <gbenson@redhat.com>
7499
7500 * common/common-remote-fileio.h: New file.
7501 * common/common-remote-fileio.c: Likewise.
7502 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7503 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
7504 (COMMON_OBS): Add common-remote-fileio.o.
7505 (common-remote-fileio.o): New rule.
7506 * remote-fileio.h (common-remote-fileio.h): New include.
7507 * remote-fileio.c (gdb/fileio.h): Do not include.
7508 (remote_fileio_to_be): Moved to common-remote-fileio.h.
7509 (remote_fileio_to_fio_uint): Likewise.
7510 (remote_fileio_to_fio_time): Likewise.
7511 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
7512 (remote_fileio_to_fio_mode): Likewise.
7513 (remote_fileio_to_fio_ulong): Likewise.
7514 (remote_fileio_to_fio_stat): Likewise.
7515
1390d0ef
AW
75162015-03-11 Andy Wingo <wingo@igalia.com>
7517
7518 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
7519 we were checking the cached type, not the cached dynamic type.
7520
84a4591a
AW
75212015-03-11 Andy Wingo <wingo@igalia.com>
7522
7523 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
7524 other strings, as these are on the GC'd heap, and will be
7525 collected along with the smob.
7526
85642ba0
AW
75272015-03-11 Andy Wingo <wingo@igalia.com>
7528
7529 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
7530 (objfile_functions): Bind gdbscm_objfile_progspace to
7531 objfile-progspace.
7532 * guile/lib/gdb.scm: Add objfile-progspace to exports.
7533
92fab5a6
AW
75342015-03-11 Andy Wingo <wingo@igalia.com>
7535
7536 * guile/guile.c (_initialize_guile): Disable automatic
7537 finalization, if Guile offers us that possibility.
7538 * guile/guile.c (call_initialize_gdb_module):
7539 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
7540 finalizers in appropriate places.
7541 * configure.ac (AC_TRY_LIBGUILE): Add a check for
7542 scm_set_automatic_finalization_enabled.
7543 * configure: Regenerated.
7544
f054145e
AA
75452015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
7546
7547 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
7548 SAL, if possible.
7549
18396193
AA
75502015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
7551
7552 * s390-linux-nat.c (struct arch_lwp_info): New.
7553 (s390_fix_watch_points): Rename to...
7554 (s390_prepare_to_resume): ...this. Skip the PER info update
7555 unless the watch points have changed.
7556 (s390_refresh_per_info, s390_new_thread): New functions.
7557 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
7558 s390_fix_watch_points.
7559 (s390_remove_watchpoint): Likewise.
7560 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
7561 Register s390_prepare_to_resume.
7562
9eb1356e
PA
75632015-03-09 Pedro Alves <palves@redhat.com>
7564
7565 Revert:
7566 2015-03-07 Pedro Alves <palves@redhat.com>
7567 * common/gdb_socket.h: New file.
7568 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
7569 sys/socket.h.
7570 (net_open): Use union gdb_sockaddr_u.
7571
aac331e4
PA
75722015-03-07 Pedro Alves <palves@redhat.com>
7573
7574 * configure.ac (build_warnings): Move -Wmissing-prototypes
7575 -Wdeclaration-after-statement -Wmissing-parameter-type
7576 -Wold-style-declaration -Wold-style-definition to the C-specific
7577 set.
7578 * configure: Regenerate.
7579
366c75fc
PA
75802015-03-07 Pedro Alves <palves@redhat.com>
7581
7582 * common/gdb_socket.h: New file.
7583 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
7584 sys/socket.h.
7585 (net_open): Use union gdb_sockaddr_u.
7586
72df25b2
PA
75872015-03-07 Pedro Alves <palves@redhat.com>
7588
7589 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
7590 (exceptions_state_mc_action_iter)
7591 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7592 Don't define.
7593 [__cplusplus] (try_scope_depth): New global.
7594 [__cplusplus] (exception_try_scope_entry)
7595 (exception_try_scope_exit, gdb_exception_sliced_copy)
7596 (exception_rethrow): New functions.
7597 (throw_exception): In C++ mode, throw
7598 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
7599 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
7600 (throw_it): In C++ mode, use try_scope_depth.
7601 * common/common-exceptions.h [!__cplusplus]
7602 (exceptions_state_mc_action_iter)
7603 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7604 Don't declare.
7605 [__cplusplus] (exception_try_scope_entry)
7606 (exception_try_scope_exit, exception_rethrow): Declare.
7607 [__cplusplus] (struct exception_try_scope): New struct.
7608 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
7609 C++ exceptions.
7610 (struct gdb_exception_RETURN_MASK_ALL)
7611 (struct gdb_exception_RETURN_MASK_ERROR)
7612 (struct gdb_exception_RETURN_MASK_QUIT): New types.
7613
284e6217
PA
76142015-03-07 Pedro Alves <palves@redhat.com>
7615
7616 * main.c (handle_command_errors): Remove volatile qualifier from
7617 parameter.
7618
6c63c96a
PA
76192015-03-07 Pedro Alves <palves@redhat.com>
7620
7621 * breakpoint.c (save_breakpoints): Adjust to avoid code between
7622 TRY and CATCH.
7623 * gdbtypes.c (safe_parse_type): Remove empty line.
7624 (types_deeply_equal):
7625 * guile/scm-frame.c (gdbscm_frame_name):
7626 * linux-thread-db.c (find_new_threads_once):
7627 * python/py-breakpoint.c (bppy_get_commands):
7628 * record-btrace.c (record_btrace_insert_breakpoint)
7629 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
7630 (record_btrace_start_replaying): Adjust to avoid code between TRY
7631 and CATCH.
7632
492d29ea
PA
76332015-03-07 Pedro Alves <palves@redhat.com>
7634
7635 * common/common-exceptions.c (struct catcher) <exception>: No
7636 longer a pointer to volatile exception. Now an exception value.
7637 <mask>: Delete field.
7638 (exceptions_state_mc_init): Remove all parameters. Adjust.
7639 (exceptions_state_mc): No longer pop the catcher here.
7640 (exceptions_state_mc_catch): New function.
7641 (throw_exception): Adjust.
7642 * common/common-exceptions.h (exceptions_state_mc_init): Remove
7643 all parameters.
7644 (exceptions_state_mc_catch): Declare.
7645 (TRY_CATCH): Rename to ...
7646 (TRY): ... this. Remove EXCEPTION and MASK parameters.
7647 (CATCH, END_CATCH): New.
7648 All callers adjusted.
7649
ece957c8
TT
76502015-03-07 Tom Tromey <tromey@redhat.com>
7651
7652 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
7653
7556d4a4
PA
76542015-03-07 Pedro Alves <palves@redhat.com>
7655
7656 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7657 (amd64_epilogue_frame_cache): Normal exception handling code.
7658 * break-catch-throw.c (check_status_exception_catchpoint)
7659 (re_set_exception_catchpoint): Ditto.
7660 * cli/cli-interp.c (safe_execute_command):
7661 * cli/cli-script.c (script_from_file): Ditto.
7662 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
7663 Ditto.
7664 * compile/compile-object-run.c (compile_object_run): Ditto.
7665 * cp-abi.c (baseclass_offset): Ditto.
7666 * cp-valprint.c (cp_print_value): Ditto.
7667 * exceptions.c (catch_exceptions_with_msg):
7668 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
7669 * frame.c (get_frame_address_in_block_if_available): Ditto.
7670 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7671 (i386_sigtramp_frame_cache): Ditto.
7672 * infcmd.c (post_create_inferior): Ditto.
7673 * linespec.c (parse_linespec, find_linespec_symbols):
7674 * p-valprint.c (pascal_object_print_value): Ditto.
7675 * parse.c (parse_expression_for_completion): Ditto.
7676 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7677 * remote.c (remote_get_noisy_reply): Ditto.
7678 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
7679 * solib-svr4.c (solib_svr4_r_map): Ditto.
7680
f873665f 76812015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
7682
7683 * common/common-utils.h (startswith): New inline function.
7684 All places where this logic was used updated to use the above.
7685
68901c4d
PA
76862015-03-05 Pedro Alves <palves@redhat.com>
7687
7688 PR gdb/18002
7689 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
7690 after reading the breakpoint's shadow memory.
7691
2dcb2b1a
MK
76922015-03-05 Mark Kettenis <kettenis@gnu.org>
7693
7694 * hppabsd-nat.c: Remove file.
7695 * hppaobsd-nat.c: New file.
7696 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
7697 hppaobsd-nat.c.
7698 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
7699 hppaobsd-nat.o.
7700
527a273a
PA
77012015-03-04 Pedro Alves <palves@redhat.com>
7702
7703 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
7704 (target_decr_pc_after_break): Delete declaration.
7705 * target.c (default_target_decr_pc_after_break)
7706 (target_decr_pc_after_break): Delete.
7707 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
7708 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
7709 * linux-thread-db.c (check_event): Likewise.
7710 * infrun.c (adjust_pc_after_break): Likewise.
7711 * darwin-nat.c (cancel_breakpoint): Likewise.
7712 * aix-thread.c (aix_thread_wait): Likewise.
7713 * target-delegates.c: Regenerate.
7714
faf09f01
PA
77152015-03-04 Pedro Alves <palves@redhat.com>
7716
7717 * linux-nat.c (save_sigtrap): Check for breakpoints before
7718 checking watchpoints.
7719 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
7720 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
7721 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
7722 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
7723 (linux_nat_stopped_by_sw_breakpoint)
7724 (linux_nat_supports_stopped_by_sw_breakpoint)
7725 (linux_nat_stopped_by_hw_breakpoint)
7726 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
7727 (linux_nat_wait_1): Don't re-increment the PC if relying on
7728 SIGTRAP's siginfo->si_code.
7729 (linux_nat_add_target): Install new target methods.
7730 * linux-thread-db.c (check_event): Don't account for breakpoint PC
7731 offset if the target already adjusted the PC.
7732 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
7733 (GDB_ARCH_TRAP_BRKPT): New.
7734 (TRAP_HWBKPT): Define if not already defined.
7735
f7e6eed5
PA
77362015-03-04 Pedro Alves <palves@redhat.com>
7737
7738 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
7739 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
7740 Delete field.
7741 <stop_reason>: New field.
7742 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
7743 (packet_set_cmd_state): New function.
7744 (remote_protocol_features): Register the "swbreak" and "hwbreak"
7745 features.
7746 (remote_query_supported): If not disabled with the corresponding
7747 "set remote foo-packet" command, report support for the swbreak
7748 and hwbreak features.
7749 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
7750 field.
7751 <stop_reason>: New field.
7752 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
7753 (remote_wait_as): Adjust.
7754 (remote_stopped_by_sw_breakpoint)
7755 (remote_supports_stopped_by_sw_breakpoint)
7756 (remote_stopped_by_hw_breakpoint)
7757 (remote_supports_stopped_by_hw_breakpoint): New functions.
7758 (remote_stopped_by_watchpoint): New function.
7759 (init_remote_ops): Install them.
7760 (_initialize_remote): Register new "set/show remote
7761 swbreak-feature-packet" and "set/show remote
7762 swbreak-feature-packet" commands.
7763
9e8915c6
PA
77642015-03-04 Pedro Alves <palves@redhat.com>
7765
7766 * btrace.h: Include target/waitstatus.h.
7767 (struct btrace_thread_info) <stop_reason>: New field.
7768 * record-btrace.c (record_btrace_step_thread): Use
7769 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7770 (record_btrace_decr_pc_after_break): Delete.
7771 (record_btrace_stopped_by_sw_breakpoint)
7772 (record_btrace_supports_stopped_by_sw_breakpoint)
7773 (record_btrace_stopped_by_hw_breakpoint)
7774 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
7775 (init_record_btrace_ops): Install them.
7776 * record-full.c (record_full_hw_watchpoint): Delete and replace
7777 with ...
7778 (record_full_stop_reason): ... this throughout.
7779 (record_full_exec_insn): Adjust.
7780 (record_full_wait_1): Adjust. No longer re-increment the PC.
7781 (record_full_wait_1): Adjust. Use
7782 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7783 (record_full_stopped_by_watchpoint): Adjust.
7784 (record_full_stopped_by_sw_breakpoint)
7785 (record_full_supports_stopped_by_sw_breakpoint)
7786 (record_full_supports_stopped_by_sw_breakpoint)
7787 (record_full_stopped_by_hw_breakpoint)
7788 (record_full_supports_stopped_by_hw_breakpoint): New functions.
7789 (init_record_full_ops, init_record_full_core_ops): Install them.
7790 * record.c (record_check_stopped_by_breakpoint): New function.
7791 * record.h: Include target/waitstatus.h.
7792 (record_check_stopped_by_breakpoint): New declaration.
7793
15c66dd6
PA
77942015-03-04 Pedro Alves <palves@redhat.com>
7795
7796 enum lwp_stop_reason -> enum target_stop_reason
7797 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
7798 (linux_nat_stopped_by_watchpoint, status_callback)
7799 (linux_nat_wait_1): Adjust.
7800 * linux-nat.h (enum lwp_stop_reason): Delete.
7801 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
7802 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
7803 * target/waitstatus.h (enum target_stop_reason): New.
7804
1cf4d951
PA
78052015-03-04 Pedro Alves <palves@redhat.com>
7806
7807 * breakpoint.c (need_moribund_for_location_type): New function.
7808 (bpstat_stop_status): Don't skipping checking moribund locations
7809 of breakpoint types which the target tell caused a stop.
7810 (program_breakpoint_here_p): New function, factored out from ...
7811 (bp_loc_is_permanent): ... this.
7812 (update_global_location_list): Don't create a moribund location if
7813 the target supports reporting stops of the type of the removed
7814 breakpoint.
7815 * breakpoint.h (program_breakpoint_here_p): New declaration.
7816 * infrun.c (adjust_pc_after_break): Return early if the target has
7817 already adjusted the PC. Add comments.
7818 (handle_signal_stop): If nothing explains a signal, and the target
7819 tells us the stop was caused by a software breakpoint, check if
7820 there's a breakpoint instruction in the memory. If so, adjust the
7821 PC before presenting the stop to the user. Otherwise, ignore the
7822 trap. If nothing explains a signal, and the target tells us the
7823 stop was caused by a hardware breakpoint, ignore the trap.
7824 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
7825 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
7826 to_supports_stopped_by_hw_breakpoint>: New fields.
7827 (target_stopped_by_sw_breakpoint)
7828 (target_supports_stopped_by_sw_breakpoint)
7829 (target_stopped_by_hw_breakpoint)
7830 (target_supports_stopped_by_hw_breakpoint): Define.
7831 * target-delegates.c: Regenerate.
7832
79639e11
PA
78332015-03-04 Pedro Alves <palves@redhat.com>
7834
7835 * infrun.c (follow_fork_inferior): Use the whole of the
7836 inferior_ptid and pending_follow.related_pid ptids instead of
7837 building ptids from the process components. Adjust verbose output
7838 to use target_pid_to_str.
7839 * linux-nat.c (linux_child_follow_fork): Use the whole of the
7840 inferior_ptid and pending_follow.related_pid ptids instead of
7841 building ptids from the process components.
7842
e85e8e5e
MK
78432015-03-04 Mark Kettenis <kettenis@gnu.org>
7844
7845 * inf-ptrace.c [PT_GET_PROCESS_STATE]
7846 (inf_ptrace_insert_fork_catchpoint): New function.
7847 (inf_ptrace_remove_fork_catchpoint): New function.
7848 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
7849
87de11c0
AA
78502015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7851
7852 * s390-linux-tdep.c (s390_register_name): Return empty string
7853 instead of NULL for registers that shouldn't be visible.
7854
d851a69a
AA
78552015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7856
7857 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
7858 XML file for 64-bit targets.
7859
b072f6c1
SM
78602015-03-03 Simon Marchi <simon.marchi@ericsson.com>
7861
7862 * target.h (find_default_create_inferior): Remove declaration.
7863 (find_default_attach): Likewise.
7864
c1593e4f
PA
78652015-03-03 Pedro Alves <palves@redhat.com>
7866
7867 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
7868 Use ptid_get_pid to get the overall process id when resuming all
7869 threads.
7870
90ad5e1d
PA
78712015-03-03 Pedro Alves <palves@redhat.com>
7872
7873 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
7874 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
7875 * inf-ptrace.c (get_ptrace_pid): New function.
7876 (inf_ptrace_resume): Use it.
7877 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
7878 to the lower layer.
7879
d68e53f4
MM
78802015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7881
7882 * nat/linux-btrace.c: Include sys/utsname.h.
7883 (linux_determine_kernel_ptr_bits): New.
7884 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
7885 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
7886 ptr_bits.
7887
986b6601
MM
78882015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7889
7890 * btrace.c (ftrace_update_function): Treat return as tailcall for
7891 "_dl_runtime_resolve".
7892
ce0dfbea
MM
78932015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7894
7895 * btrace.h (btrace_function) <lbegin, lend>: Remove.
7896 * btrace.c (ftrace_debug): Do not print the line range.
7897 (ftrace_skip_file, ftrace_update_lines): Remove.
7898 (ftrace_new_function): Remove lbegin and lend initialization.
7899 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
7900 * record-btrace.c (btrace_compute_src_line_range): New.
7901 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
7902
95e50b27
PA
79032015-03-02 Pedro Alves <palves@redhat.com>
7904
7905 * infrun.c (follow_exec): Delete all threads of the process except
7906 the event thread. Extended comments.
7907
00e474c2
JB
79082015-03-02 Joel Brobecker <brobecker@adacore.com>
7909
7910 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
7911
cc7039d3
JB
79122015-03-02 Joel Brobecker <brobecker@adacore.com>
7913
7914 * utils.h: Remove <stdbool.h> #include.
7915 (producer_is_gcc): Change return type to "int".
7916 * utils.c (producer_is_gcc): Change return type to int.
7917 Return 1 instead of true, and 0 instead of false.
7918 Adjust function documentation accordingly.
7919
550bdf96
AA
79202015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7921
7922 * s390-linux-nat.c (have_regset_vxrs): New static variable.
7923 (s390_linux_fetch_inferior_registers): Handle vector registers, if
7924 present.
7925 (s390_linux_store_inferior_registers): Likewise.
7926 (s390_get_hwcap): Remove function. Embed its logic...
7927 (s390_read_description): ...here. Yield a target description with
7928 vector registers if applicable.
7929 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
7930 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
7931 "features/s390x-tevx-linux64.c".
7932 (struct gdbarch_tdep) <v0_full_regnum>: New field.
7933 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
7934 for "GNU/Linux-specific registers".
7935 (s390_dwarf_reg_r0l): New enum value.
7936 (s390_dwarf_reg_to_regnum): Support vector registers.
7937 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
7938 of GPR lower halves.
7939 (regnum_is_vxr_full): New function.
7940 (s390_register_name): New function.
7941 (s390_pseudo_register_name): Handle v0-v15, which are composed of
7942 f0-f15 and v0l-v15l.
7943 (s390_pseudo_register_type): Likewise.
7944 (s390_pseudo_register_read): Likewise.
7945 (s390_pseudo_register_write): Likewise.
7946 (s390_value_from_register): Account for the fact that values are
7947 placed left-justified in vector registers.
7948 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
7949 the vector reggroup and omit them from the general reggroup.
7950 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
7951 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
7952 (s390_iterate_over_regset_sections): Add iterations for the two
7953 new vector regsets.
7954 (s390_core_read_description): Yield a target description with
7955 vector registers if applicable.
7956 (s390_gdbarch_init): Handle target descriptions with vector
7957 registers. Add "register_name" gdbarch method.
7958 (_initialize_s390_tdep): Call new tdesc initialization functions.
7959 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
7960 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
7961 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
7962 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
7963 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
7964 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
7965 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
7966 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
7967 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
7968 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
7969 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
7970 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
7971 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
7972 (S390_NUM_REGS): Adjust value.
7973 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
7974 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
7975 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
7976 * NEWS: Announce S/390 vector register support.
7977
446899e4
AA
79782015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7979
7980 * features/s390-tevx-linux64.xml: New file.
7981 * features/s390-vx-linux64.xml: New file.
7982 * features/s390-vx.xml: New file.
7983 * features/s390x-tevx-linux64.xml: New file.
7984 * features/s390x-vx-linux64.xml: New file.
7985 * features/Makefile (WHICH): Add s390-vx-linux64,
7986 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
7987 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
7988 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
7989 macros.
7990 * features/s390-tevx-linux64.c: New generated file.
7991 * features/s390-vx-linux64.c: Likewise.
7992 * features/s390x-tevx-linux64.c: Likewise.
7993 * features/s390x-vx-linux64.c: Likewise.
7994 * regformats/s390-tevx-linux64.dat: Likewise.
7995 * regformats/s390-vx-linux64.dat: Likewise.
7996 * regformats/s390x-tevx-linux64.dat: Likewise.
7997 * regformats/s390x-vx-linux64.dat: Likewise.
7998
b7236fbe
DE
79992015-02-28 Doug Evans <xdje42@gmail.com>
8000
8001 * symtab.h (struct symtab) <next>: Fix comment.
8002
02e62830
SM
80032015-02-27 Simon Marchi <simon.marchi@ericsson.com>
8004
8005 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
8006 python_GdbMethods.
8007
bf36a1e7
PA
80082015-02-27 Pedro Alves <palves@redhat.com>
8009
8010 * dtrace-probe.c (dtrace_probe_ops): Make extern.
8011
ad6aff7d
PA
80122015-02-27 Pedro Alves <palves@redhat.com>
8013
8014 * common/common-exceptions.h (exception_none): Declare.
8015 * common/common-exceptions.c (exception_none): Moved from
8016 exceptions.c.
8017 (exceptions_state_mc_init): Use exception_none.
8018 * exceptions.c (exception_none): Move to
8019 common/common-exceptions.c.
8020 * exceptions.h (exception_none): Move to
8021 common/common-exceptions.h.
8022
97c18565
PA
80232015-02-27 Pedro Alves <palves@redhat.com>
8024
8025 * main.c (catch_command_errors, catch_command_errors_const):
8026 Remove 'mask' argument. Adjust.
8027 (captured_main): Adjust callers.
8028
e992c591
PA
80292015-02-27 Pedro Alves <palves@redhat.com>
8030
8031 * python/python-internal.h: Include "extension-priv.h".
8032
64166036
PA
80332015-02-27 Pedro Alves <palves@redhat.com>
8034
8035 * breakpoint.h (enum print_stop_action): Move further up in the
8036 file.
8037
8a526fa6
PA
80382015-02-27 Pedro Alves <palves@redhat.com>
8039
8040 * gdbarch.sh: Include regcache.h.
8041 * gdbarch.h: Regenerate.
8042
0fa9c223
PA
80432015-02-27 Pedro Alves <palves@redhat.com>
8044
8045 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
8046 Remove duplicate const.
8047 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
8048 duplicate const.
8049
7cf99fb1
PA
80502015-02-27 Pedro Alves <palves@redhat.com>
8051
8052 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
8053 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
8054 * features/feature_to_c.sh: Tag the generated xml_builtin array
8055 with extern const in C++ mode.
8056
1424c16e
TT
80572015-02-27 Tom Tromey <tromey@redhat.com>
8058
8059 * minidebug.c (struct lzma_stream): Rename to ...
8060 (struct gdb_lzma_stream): ... this.
8061 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
8062
10367c7c
PA
80632015-02-27 Pedro Alves <palves@redhat.com>
8064
8065 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
8066 function.
8067 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8068 (mi_cmd_stack_list_variables): Use it.
8069
4180215b
PA
80702015-02-27 Pedro Alves <palves@redhat.com>
8071
8072 * x86-linux-nat.c (u_debugreg_offset): New function.
8073 (x86_linux_dr_get, x86_linux_dr_set): Use it.
8074
2f56f7c3
PA
80752015-02-27 Pedro Alves <palves@redhat.com>
8076
8077 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
8078 declaration.
8079 Include break-common.h.
8080
570dc176
TT
80812015-02-27 Tom Tromey <tromey@redhat.com>
8082 Pedro Alves <palves@redhat.com>
8083
8084 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
8085 local used to iterate over enums.
8086 * completer.c (signal_completer): Likewise.
8087 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
8088 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
8089 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
8090 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
8091 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
8092 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
8093 * tui-wingeneral.c (tui_refresh_all): Likewise.
8094
68c14faa
PA
80952015-02-27 Pedro Alves <palves@redhat.com>
8096
8097 * target.h: Include "infrun.h".
8098
749bab01
PA
80992015-02-27 Pedro Alves <palves@redhat.com>
8100
8101 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8102
3c14e5a3
PA
81032015-02-27 Pedro Alves <palves@redhat.com>
8104
8105 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
8106 (IPA_SYM): Use it.
8107 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
8108
56000a98
PA
81092015-02-27 Pedro Alves <palves@redhat.com>
8110
8111 * cli-out.c (_rl_erase_entire_line): Move declaration out of
8112 cli_mld_erase_entire_line, and make it extern "C".
8113 * common/common-defs.h (EXTERN_C): New.
8114 * completer.c (_rl_completion_prefix_display_length)
8115 (_rl_print_completions_horizontally, QSFUNC): Move declarations
8116 out of gdb_display_match_list_1.
8117 (_rl_qsort_string_compare): Move declaration out of
8118 gdb_display_match_list_1, and make it extern "C".
8119 * defs.h (re_comp): Use EXTERN_C.
8120 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
8121 and make it extern "C".
8122 (monstartup): Move declaration out of maintenance_set_profile_cmd,
8123 and make it extern "C".
8124 (main): Move declaration out of maintenance_set_profile_cmd.
8125 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
8126 EXTERN_C.
8127
bcabf420
PA
81282015-02-27 Pedro Alves <palves@redhat.com>
8129
8130 * python/python.c (GdbMethods): Rename to ...
8131 (python_GdbMethods): ... this and make extern.
8132 (GdbModuleDef): Rename to ...
8133 (python_GdbModuleDef): ... this and make extern.
8134
928dbe07
PA
81352015-02-27 Pedro Alves <palves@redhat.com>
8136
8137 * record-btrace.c (set_record_btrace_cmdlist)
8138 (show_record_btrace_cmdlist): Remove redefinitions.
8139
52059ffd
TT
81402015-02-27 Tom Tromey <tromey@redhat.com>
8141 Pedro Alves <palves@redhat.com>
8142
8143 * dwarf2-frame.c (enum cfa_how_kind, struct
8144 dwarf2_frame_state_reg_info): Move out of struct
8145 dwarf2_frame_state.
8146 * dwarf2read.c (struct tu_stats): Move out of struct
8147 dwarf2_per_objfile.
8148 (struct file_entry): Move out of struct line_header.
8149 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
8150 typedef_field_list): Move out of struct field_info.
8151 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
8152 Move out of struct dynamic_prop.
8153 (union type_owner, union field_location, struct field, struct
8154 range_bounds, union type_specific): Move out of struct main_type.
8155 (struct fn_fieldlist, struct fn_field, struct typedef_field)
8156 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
8157 (struct call_site_target, union call_site_parameter_u, struct
8158 call_site_parameter): Move out of struct call_site.
8159 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
8160 m32c_prologue.
8161 (enum srcdest_kind): Move out of struct srcdest.
8162 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
8163 * prologue-value.h (enum prologue_value_kind): Move out of struct
8164 prologue_value.
8165 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
8166 gdbarch_tdep.
8167 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
8168 out of struct field_info.
8169 * symfile.h (struct other_sections): Move out of struct
8170 section_addr_info.
8171 * symtab.c (struct symbol_cache_slot): Move out struct
8172 block_symbol_cache.
8173 * target-descriptions.c (enum tdesc_type_kind): Move out of
8174 typedef struct tdesc_type.
8175 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
8176 struct tui_line_or_address.
8177 * value.c (enum internalvar_kind, union internalvar_data): Move
8178 out of struct internalvar.
8179 * xtensa-tdep.h (struct ctype_cache): Move out of struct
8180 gdbarch_tdep.
8181
fe978cb0
PA
81822015-02-27 Tom Tromey <tromey@redhat.com>
8183 Pedro Alves <palves@redhat.com>
8184
8185 Rename symbols whose names are reserved C++ keywords throughout.
8186
3bc3d82a
PA
81872015-02-27 Pedro Alves <palves@redhat.com>
8188
8189 * Makefile.in (COMPILER): New, get it from autoconf.
8190 (COMPILE.pre, CC_LD): Use COMPILER.
8191 (CXX): Get from autoconf instead.
8192 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8193 * acinclude.m4: Include build-with-cxx.m4.
8194 * build-with-cxx.m4: New file.
8195 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8196 Disable -Werror by default if building in C++ mode.
8197 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8198 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
8199 Run supported-warning-flags tests with the C++ compiler.
8200 Save/restore CXXFLAGS too.
8201 * configure: Regenerate.
8202
07697489
PA
82032015-02-27 Pedro Alves <palves@redhat.com>
8204
8205 * libiberty.m4: New file.
8206 * acinclude.m4: Include libiberty.m4.
8207 * configure.ac: Call libiberty_INIT.
8208 * config.in, configure: Regenerate.
8209
60abeae4
AA
82102015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8211
8212 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
8213 31-bit targets, but 64-bit targets as well.
8214 (s390_gnu_triplet_regexp): New function.
8215 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
8216 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
8217 method.
8218
f44466fb 82192015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
8220
8221 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
8222 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
8223 from CONTEXT_DEBUGGER.
8224
0def5aaa
DE
82252015-02-26 Doug Evans <dje@google.com>
8226
8227 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
8228 CHECK_TYPEDEF.
8229 (set_type_vptr_fieldno): Ditto.
8230 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
8231 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
8232
77b64a49
PA
82332015-02-26 Pedro Alves <palves@redhat.com>
8234
8235 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
8236 * complaints.c (vcomplaint): Pass argument FMT directly to
8237 printf-like functions instead of complaint->fmt.
8238 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
8239 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
8240 * compile/compile-loc2c.c (pushf, unary, binary): Add
8241 ATTRIBUTE_PRINTF.
8242 (do_compile_dwarf_expr_to_c): Pass string literal as format string
8243 to pushf.
8244 (BINARY): Pass string literal as format string to 'binary'.
8245 * compile/compile-object-load.c (link_callbacks_einfo): Add
8246 ATTRIBUTE_PRINTF.
8247 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
8248
532f44ed
PA
82492015-02-26 Pedro Alves <palves@redhat.com>
8250
8251 * windows-termcap.c: Rename to ...
8252 * stub-termcap.c: ... this. Adjust header line.
8253 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
8254 windows-termcap.c.
8255 * configure: Regenerate.
8256 * configure.ac: Refer to stub-termcap.o instead of
8257 windows-termcap.o.
8258 * gdb_curses.h: Mention stub-termcap.c instead of
8259 windows-termcap.c.
8260
081a1c2c
JK
82612015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8262
8263 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
8264 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
8265
2f41223f
AT
82662015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
8267
8268 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
8269
80c57053
JK
82702015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8271
8272 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
8273 bfd_canonicalize_symtab.
8274
cf424aef
JB
82752015-02-25 John Baldwin <jhb@FreeBSD.org>
8276
8277 * amd64fbsd-nat.c: Include sys/user.h.
8278 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8279 instead of KERN_PS_STRINGS to locate the signal trampoline.
8280 * i386fbsd-nat.c: Include sys/user.h.
8281 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8282 instead of KERN_PS_STRINGS to locate the signal trampoline.
8283 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
8284 (amd64fbsd_sigtramp_p): New.
8285 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
8286 longer set default values.
8287 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
8288 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
8289 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
8290 (i386fbsd_freebsd4_sigtramp_start)
8291 (i386fbsd_freebsd4_sigtramp_middle)
8292 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
8293 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
8294 (i386fbsd_sigtramp_p): New.
8295 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
8296 longer set default values.
8297 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
8298
c5cb74ee
JB
82992015-02-25 John Baldwin <jhb@freebsd.org>
8300
8301 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
8302 get_frame_register instead of frame_unwind_register_unsigned.
8303
17487d85
JK
83042015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8305
8306 PR build/18033
8307 * compile/compile-c-support.c (c_compute_program): Change // comment.
8308 * compile/compile-object-load.c (setup_sections): Change // comment.
8309
9357a9e6
JB
83102015-02-26 Joel Brobecker <brobecker@adacore.com>
8311
8312 PR build/18033:
8313 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
8314
1f10ba14
PA
83152015-02-23 Pedro Alves <palves@redhat.com>
8316
8317 * remote.c (skip_to_semicolon): New function.
8318 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
8319 special case the stop reasons that look like hex numbers
8320 upfront. Instead handle real register numbers after matching
8321 all the known stop reasons.
8322
96553a0c
DE
83232015-02-21 Doug Evans <dje@google.com>
8324
8325 PR c++/17976, symtab/17821
8326 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
8327 is_in_anonymous. All callers updated.
8328 (find_symbol_in_baseclass): Ditto.
8329 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
8330 for symbols in an anonymous namespace.
8331 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
8332 DW_AT_name directly.
8333 (dwarf2_name): Convert missing namespace name to
8334 CP_ANONYMOUS_NAMESPACE_STR.
8335
2db9a427
PA
83362015-02-20 Pedro Alves <palves@redhat.com>
8337
8338 * linux-nat.c (linux_handle_extended_wait): Call
8339 thread_db_notice_clone whenever a new clone LWP is detected.
8340 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
8341 functions.
8342 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
8343 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
8344 (linux_unstop_all_lwps): Declare.
8345 * linux-thread-db.c (struct thread_get_info_inout): Delete.
8346 (thread_get_info_callback): Delete.
8347 (thread_from_lwp): Use td_thr_get_info and record_thread.
8348 (thread_db_attach_lwp): Delete.
8349 (thread_db_notice_clone): New function.
8350 (try_thread_db_load_1): If /proc is mounted and shows the
8351 process'es task list, walk over all LWPs and call thread_from_lwp
8352 instead of relying on td_ta_thr_iter.
8353 (attach_thread): Don't call check_thread_signals here. Split the
8354 tail part of the function (which adds the thread to the core GDB
8355 thread list) to ...
8356 (record_thread): ... this function. Call check_thread_signals
8357 here.
8358 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
8359 call thread_from_lwp.
8360 (thread_db_update_thread_list): Rename to ...
8361 (thread_db_update_thread_list_org): ... this.
8362 (thread_db_update_thread_list): New function.
8363 (thread_db_find_thread_from_tid): Delete.
8364 (thread_db_get_ada_task_ptid): Simplify.
8365 * nat/linux-procfs.c: Include <sys/stat.h>.
8366 (linux_proc_task_list_dir_exists): New function.
8367 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
8368
3b27ef47
PA
83692015-02-20 Pedro Alves <palves@redhat.com>
8370
8371 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
8372 main LWP. Handle the case of waitpid returning 0 if we're already
8373 attached to the LWP. Don't set the LWP's last_resume_kind to
8374 resume_stop if we already knew about the LWP.
8375 (linux_nat_filter_event): Add debug logs.
8376
1cc28231
PA
83772015-02-20 Pedro Alves <palves@redhat.com>
8378
8379 * target.h (forward_target_decr_pc_after_break): Delete
8380 declaration.
8381
5c5019c2
PA
83822015-02-20 Pedro Alves <palves@redhat.com>
8383
8384 PR threads/18006
8385 * linux-thread-db.c (thread_get_info_callback): Return early if
8386 the thread's lwp id is -1.
8387
f3978e91
JB
83882015-02-20 Joel Brobecker <brobecker@adacore.com>
8389
8390 GDB 7.9 released.
8391
ffdf88ec
SE
83922015-02-19 Steve Ellcey <sellcey@imgtec.com>
8393
8394 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
8395 (dtrace_get_probes) Change type of variable 'dof'.
8396
c9587f88
AT
83972015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8398
8399 PR breakpoints/16812
8400 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
8401 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
8402 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
8403
53cf2ee0
DT
84042015-02-19 David Taylor <dtaylor@emc.com>
8405
8406 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
8407
acfe0940
PP
84082015-02-18 Patrick Palka <patrick@parcs.ath.cx>
8409
8410 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
8411 function.
8412 (tui_putc): Don't call tui_handle_resize_during_io.
8413 (tui_getc): Likewise.
8414 (tui_mld_getc): Likewise.
8415 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
8416 (tui_sigwinch_token): New static variable.
8417 (tui_initialize_win): Adjust documentation. Set
8418 tui_sigwinch_token.
8419 (tui_async_resize_screen): New asynchronous callback.
8420 (tui_sigwinch_handler): Adjust documentation. Asynchronously
8421 invoke tui_async_resize_screen.
8422
f6a88844
JM
84232015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
8424
8425 * configure: Regenerated.
8426 * configure.ac: Use GDB_AC_TRANSFORM.
8427 * Makefile.in (aclocal_m4_deps): Added transform.m4.
8428 * acinclude.m4: sinclude transform.m4.
8429 * transform.m4: New file.
8430 (GDB_AC_TRANSFORM): New macro.
8431
b05e3b0d
JM
84322015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8433
8434 * NEWS: Announce the support for DTrace SDT probes.
8435
c3e3045e
JM
84362015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8437
8438 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
8439 (amd64_dtrace_parse_probe_argument): New function.
8440 (amd64_dtrace_probe_is_enabled): Likewise.
8441 (amd64_dtrace_enable_probe): Likewise.
8442 (amd64_dtrace_disable_probe): Likewise.
8443 (amd64_linux_init_abi): Register the
8444 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
8445 `gdbarch_dtrace_disable_probe' and
8446 `gdbarch_dtrace_probe_is_enabled' hooks.
8447 (amd64_dtrace_disabled_probe_sequence_1): New constant.
8448 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
8449 (amd64_dtrace_enable_probe_sequence): Likewise.
8450 (amd64_dtrace_disable_probe_sequence): Likewise.
8451
d4777acb
JM
84522015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8453
8454 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
8455 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
8456 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
8457 handle ELF files.
8458 * Makefile.in (SFILES): dtrace-probe.c added.
8459 * configure: Regenerate.
8460 * dtrace-probe.c: New file.
8461 (SHT_SUNW_dof): New constant.
8462 (dtrace_probe_type): New enum.
8463 (dtrace_probe_arg): New struct.
8464 (dtrace_probe_arg_s): New typedef.
8465 (struct dtrace_probe_enabler): New struct.
8466 (dtrace_probe_enabler_s): New typedef.
8467 (dtrace_probe): New struct.
8468 (dtrace_probe_is_linespec): New function.
8469 (dtrace_dof_sect_type): New enum.
8470 (dtrace_dof_dofh_ident): Likewise.
8471 (dtrace_dof_encoding): Likewise.
8472 (DTRACE_DOF_ENCODE_LSB): Likewise.
8473 (DTRACE_DOF_ENCODE_MSB): Likewise.
8474 (dtrace_dof_hdr): New struct.
8475 (dtrace_dof_sect): Likewise.
8476 (dtrace_dof_provider): Likewise.
8477 (dtrace_dof_probe): Likewise.
8478 (DOF_UINT): New macro.
8479 (DTRACE_DOF_PTR): Likewise.
8480 (DTRACE_DOF_SECT): Likewise.
8481 (dtrace_process_dof_probe): New function.
8482 (dtrace_process_dof): Likewise.
8483 (dtrace_build_arg_exprs): Likewise.
8484 (dtrace_get_arg): Likewise.
8485 (dtrace_get_probes): Likewise.
8486 (dtrace_get_probe_argument_count): Likewise.
8487 (dtrace_can_evaluate_probe_arguments): Likewise.
8488 (dtrace_evaluate_probe_argument): Likewise.
8489 (dtrace_compile_to_ax): Likewise.
8490 (dtrace_probe_destroy): Likewise.
8491 (dtrace_gen_info_probes_table_header): Likewise.
8492 (dtrace_gen_info_probes_table_values): Likewise.
8493 (dtrace_probe_is_enabled): Likewise.
8494 (dtrace_probe_ops): New variable.
8495 (info_probes_dtrace_command): New function.
8496 (_initialize_dtrace_probe): Likewise.
8497 (dtrace_type_name): Likewise.
8498
8b367e17
JM
84992015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8500
8501 * gdbarch.sh (dtrace_parse_probe_argument): New.
8502 (dtrace_probe_is_enabled): Likewise.
8503 (dtrace_enable_probe): Likewise.
8504 (dtrace_disable_probe): Likewise.
8505 * gdbarch.c: Regenerate.
8506 * gdbarch.h: Regenerate.
8507
9aca2ff8
JM
85082015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8509
8510 * stap-probe.c (stap_probe_ops): Add NULLs in the static
8511 stap_probe_ops for `enable_probe' and `disable_probe'.
8512 * probe.c (enable_probes_command): New function.
8513 (disable_probes_command): Likewise.
8514 (_initialize_probe): Define the cli commands `enable probe' and
8515 `disable probe'.
8516 (parse_probe_linespec): New function.
8517 (info_probes_for_ops): Use parse_probe_linespec.
8518 * probe.h (probe_ops): New hooks `enable_probe' and
8519 `disable_probe'.
8520
03e98035
JM
85212015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8522
8523 * probe.c (compute_probe_arg): Moved from stap-probe.c
8524 (compile_probe_arg): Likewise.
8525 (probe_funcs): Likewise.
8526 * stap-probe.c (compute_probe_arg): Moved to probe.c.
8527 (compile_probe_arg): Likewise.
8528 (probe_funcs): Likewise.
8529
6f9b8491
JM
85302015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8531
8532 * probe.c (print_ui_out_not_applicables): New function.
8533 (exists_probe_with_pops): Likewise.
8534 (info_probes_for_ops): Do not include column headers for probe
8535 types for which no probe has been actually found on any object.
8536 Also invoke `print_ui_out_not_applicables' in order to match the
8537 column rows with the header when probes of several types are
8538 listed.
8539 Print the "Type" column.
8540 * probe.h (probe_ops): Added a new probe operation `type_name'.
8541 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
8542 (stap_type_name): New function.
8543
69efdff1
PP
85442015-02-17 Patrick Palka <patrick@parcs.ath.cx>
8545
8546 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
8547 (key_is_command_char): Delete.
8548
f8e5e23e
PA
85492015-02-17 Pedro Alves <palves@redhat.com>
8550
8551 * tui/tui.c (tui_enable): Resize windows before anything
8552 might show a window.
8553
9f2e0721
MO
85542015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
8555
8556 PR gdb/17984
8557 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
8558 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
8559 call.
8560 * aarch64-tdep.h (tdesc_aarch64): Declare.
8561
171e6b1c
MW
85622015-02-12 Mark Wielaard <mjw@redhat.com>
8563
8564 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
8565
d5ff0482
DE
85662015-02-13 Doug Evans <dje@google.com>
8567
8568 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
8569 anonymous_namespace to is_in_anonymous for consistency with the rest
8570 of the file.
8571 (cp_lookup_bare_symbol): Fix typo in comment.
8572 (cp_search_static_and_baseclasses): Ditto.
8573 (search_symbol_list): Use vertical space in comment better.
8574 (reset_directive_searched): Ditto. Fix typo.
8575 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
8576
9f04ac5f
YQ
85772015-02-13 Yao Qi <yao.qi@arm.com>
8578
8579 * MAINTAINERS: Update my email address.
8580
013d0319
DE
85812015-02-12 Doug Evans <dje@google.com>
8582
b615dd20 8583 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 8584
9a7e538e
DE
85852015-02-12 Doug Evans <dje@google.com>
8586
8587 * completer.c (complete_line): Remove incorrect comment.
8588
e1fcd575
JK
85892015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8590
8591 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
8592 (py_print_frame): Use RETURN_MASK_ERROR.
8593
b99bf4e3
JK
85942015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8595
8596 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
8597 function comment. Wrap all function that can throw in cleanups.
8598 (gdbpy_apply_frame_filter): Wrap all function that can throw in
8599 cleanups.
8600
800eb1ce
JK
86012015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8602
8603 * python/py-framefilter.c (py_print_frame): Substitute goto error.
8604 Remove the error label.
8605
34019068
JK
86062015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8607
8608 * python/py-framefilter.c (py_print_frame): Put conditional code paths
8609 with goto first, indent the former else codepath left. Put variable
8610 'elided' to a new inner block.
8611
8d4a54e2
JK
86122015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8613
8614 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
8615
18ad82c1
PA
86162015-02-11 Pedro Alves <palves@redhat.com>
8617
8618 * xcoffread.c (within_function): Delete.
8619
e36122e9
TT
86202015-02-11 Tom Tromey <tromey@redhat.com>
8621 Pedro Alves <palves@redhat.com>
8622
8623 * breakpoint.c (base_breakpoint_ops): Delete.
8624 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
8625 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
8626 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
8627 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
8628 * python/py-arch.c (arch_object_type): Make extern.
8629 * python/py-block.c (block_syms_iterator_object_type): Make extern.
8630 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
8631 * python/py-cmd.c (cmdpy_object_type): Make extern.
8632 * python/py-continueevent.c (continue_event_object_type)
8633 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
8634 parameter. Update all callers.
8635 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
8636 * python/py-exitedevent.c (exited_event_object_type): Make extern.
8637 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
8638 * python/py-function.c (fnpy_object_type): Make extern.
8639 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
8640 * python/py-infevents.c (call_pre_event_object_type)
8641 (inferior_call_post_event_object_type).
8642 (memory_changed_event_object_type): Make extern.
8643 * python/py-infthread.c (thread_object_type): Make extern.
8644 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
8645 * python/py-linetable.c (linetable_entry_object_type)
8646 (linetable_object_type, ltpy_iterator_object_type): Make extern.
8647 * python/py-newobjfileevent.c (new_objfile_event_object_type)
8648 (clear_objfiles_event_object_type): Make extern.
8649 * python/py-objfile.c (objfile_object_type): Make extern.
8650 * python/py-param.c (parmpy_object_type): Make extern.
8651 * python/py-progspace.c (pspace_object_type): Make extern.
8652 * python/py-signalevent.c (signal_event_object_type): Make extern.
8653 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
8654 * python/py-type.c (type_object_type, field_object_type)
8655 (type_iterator_object_type): Make extern.
8656 * python/python.c (python_extension_script_ops)
8657 (python_extension_ops): Make extern.
8658 * stap-probe.c (stap_probe_ops): Make extern.
8659
0703599a
PA
86602015-02-11 Pedro Alves <pedro@codesourcery.com>
8661
8662 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
8663 because the event thread is not the current thread.
8664
eaaf76ab
DE
86652015-02-11 Doug Evans <xdje42@gmail.com>
8666
8667 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
8668 been initialized yet, return NULL.
8669
e7d52ed3
DE
86702015-02-11 Doug Evans <dje@google.com>
8671
8672 * symfile.h (new_symfile_objfile): Delete.
8673 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
8674 All callers updated.
8675
fc6b1256
PP
86762015-02-11 Patrick Palka <patrick@parcs.ath.cx>
8677
8678 * tui/tui-io.c (tui_handle_resize_during_io): Call
8679 tui_update_gdb_sizes() after resizing the screen.
8680 * tui/tui.c (tui_enable): Resize the terminal before
8681 calling tui_update_gdb_sizes().
8682
d9080678
PP
86832015-02-11 Patrick Palka <patrick@parcs.ath.cx>
8684
8685 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
8686 line before printing a newline.
8687
9f615e3a
MW
86882015-02-11 Mark Wielaard <mjw@redhat.com>
8689
8690 * utils.c (producer_is_gcc): Return true or false.
8691
d9080678 86922015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
8693
8694 * utils.h (producer_is_gcc): Change return type to bool. Add major
8695 argument.
8696 * utils.c (producer_is_gcc): Likewise.
8697 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
8698 * dwarf2read.c (check_producer): Likewise.
8699
b052c4fb
PA
87002015-02-10 Pedro Alves <palves@redhat.com>
8701
8702 * infrun.c (displaced_step_fixup): Switch to the event thread
8703 before calling gdbarch_displaced_step_fixup.
8704
3ac240d4
AT
87052015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8706
8707 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
8708
c1cc6152
SM
87092015-02-10 Simon Marchi <simon.marchi@ericsson.com>
8710
8711 * ada-varobj.c (ada_name_of_child): Constify parent.
8712 (ada_path_expr_of_child): Same.
8713 (ada_value_of_child): Same.
8714 (ada_type_of_child): Same.
8715 * c-varobj.c (c_is_path_expr_parent): Same.
8716 (c_describe_child): Same.
8717 (c_name_of_child): Same.
8718 (c_value_of_child): Same.
8719 (c_type_of_child): Same.
8720 (cplus_number_of_children): Same.
8721 (cplus_describe_child): Constify var.
8722 (cplus_name_of_child): Constify parent.
8723 (cplus_value_of_child): Same.
8724 (cplus_type_of_child): Same.
8725 * jv-varobj.c (java_name_of_child): Same.
8726 (java_value_of_child): Same.
8727 (java_type_of_child): Same.
8728 * varobj.c (value_of_child): Same.
8729 (varobj_default_is_path_expr_parent): Constify var, parent and return
8730 value.
8731 (varobj_get_path_expr): Constify var, modify path_expr through
8732 mutable_var.
8733 (install_new_value): Constify parent.
8734 (value_of_child): Constify parent.
8735 * varobj.h (struct varobj): Constify parent.
8736 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
8737 type_of_child.
8738 (varobj_get_path_expr): Constify var.
8739 (varobj_get_path_expr_parent): Constify var and return value.
8740
c1ee9414
LM
87412015-02-10 Luis Machado <lgustavo@codesourcery.com>
8742
8743 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
8744 (arm_prologue_this_id): Move PC and SP limit checks to
8745 arm_prologue_unwind_stop_reason.
8746 (arm_prologue_unwind) <stop_reason> : Set to
8747 arm_prologue_unwind_stop_reason.
8748
f7de9aab
MW
87492015-02-09 Mark Wielaard <mjw@redhat.com>
8750
8751 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
8752 DW_LANG_Fortran08 as language_fortran.
8753
0b24eb2d
SDJ
87542015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
8755
8756 PR remote/17946
8757 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
8758 of pointer against char.
8759
a2c2acaf
MW
87602015-02-09 Mark Wielaard <mjw@redhat.com>
8761
8762 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
8763 (c_type_print_modifier): Likewise.
8764 * dwarf2read.c (read_tag_atomic_type): New function.
8765 (read_type_die_1): Handle DW_TAG_atomic_type.
8766 * gdbtypes.c (make_atomic_type): New function.
8767 (recursive_dump_type): Handle TYPE_ATOMIC.
8768 * gdbtypes.h (enum type_flag_values): Renumber.
8769 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
8770 (TYPE_ATOMIC): New macro.
8771 (make_atomic_type): Declare.
8772
31fd9caa
MM
87732015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8774
8775 * btrace.c (ftrace_find_call): Skip gaps.
8776 (ftrace_new_function): Initialize level.
8777 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
8778 (ftrace_new_switch): Update
8779 level computation.
8780 (ftrace_new_gap): New.
8781 (ftrace_update_function): Create new function after gap.
8782 (btrace_compute_ftrace_bts): Create gap on error.
8783 (btrace_stitch_bts): Update parameters. Clear trace if it
8784 becomes empty.
8785 (btrace_stitch_trace): Update parameters. Update callers.
8786 (btrace_clear): Reset the number of gaps.
8787 (btrace_insn_get): Return NULL if the iterator points to a gap.
8788 (btrace_insn_number): Return zero if the iterator points to a gap.
8789 (btrace_insn_end): Allow gaps at the end.
8790 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
8791 (btrace_find_insn_by_number): Assert that the found iterator does
8792 not point to a gap.
8793 (btrace_call_next, btrace_call_prev): Assert that the last function
8794 is not a gap.
8795 * btrace.h (btrace_bts_error): New.
8796 (btrace_function): Update comment.
8797 (btrace_function) <insn, insn_offset, number>: Update comment.
8798 (btrace_function) <errcode>: New.
8799 (btrace_thread_info) <ngaps>: New.
8800 (btrace_thread_info) <replay>: Update comment.
8801 (btrace_insn_get): Update comment.
8802 * record-btrace.c (btrace_ui_out_decode_error): New.
8803 (record_btrace_info): Print number of gaps.
8804 (btrace_insn_history, btrace_call_history): Call
8805 btrace_ui_out_decode_error for gaps.
8806 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
8807
afb778a2
MM
88082015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8809
8810 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
8811 * nat/linux-btrace.c: (btrace_this_cpu): New.
8812 (cpu_supports_bts): Call btrace_this_cpu.
8813 (intel_supports_bts): Add cpu parameter.
8814
7d5c24b3
MM
88152015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8816
8817 * btrace.h (btrace_insn_class): New.
8818 (btrace_insn) <size, iclass>: New.
8819 * btrace.c (ftrace_find_call): Update parameters. Update users.
8820 Use instruction classification.
8821 (ftrace_new_return): Update parameters. Update users.
8822 (ftrace_update_function): Update parameters. Update users. Use
8823 instruction classification.
8824 (ftrace_update_insns): Update parameters. Update users.
8825 (ftrace_classify_insn): New.
8826 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
8827 TRY_CATCH around call to gdb_insn_length.
8828
76235df1
MM
88292015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8830
8831 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
8832 Update parameters. Update users.
8833
d33501a5
MM
88342015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8835
8836 * btrace.c (parse_xml_btrace_conf_bts): Add size.
8837 (btrace_conf_bts_attributes): New.
8838 (btrace_conf_children): Add attributes.
8839 * common/btrace-common.h (btrace_config_bts): New.
8840 (btrace_config)<bts>: New.
8841 (btrace_config): Update comment.
8842 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
8843 Use config.
8844 * features/btrace-conf.dtd: Increment version. Add size
8845 attribute to bts element.
8846 * record-btrace.c (set_record_btrace_bts_cmdlist,
8847 show_record_btrace_bts_cmdlist): New.
8848 (record_btrace_adjust_size, record_btrace_print_bts_conf,
8849 record_btrace_print_conf, cmd_set_record_btrace_bts,
8850 cmd_show_record_btrace_bts): New.
8851 (record_btrace_info): Call record_btrace_print_conf.
8852 (_initialize_record_btrace): Add commands.
8853 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
8854 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
8855 (btrace_sync_conf): Synchronize bts size.
8856 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
8857 * NEWS: Announce new commands and new packets.
8858
f4abbc16
MM
88592015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8860
8861 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
8862 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
8863 (x86_linux_btrace_conf): New.
8864 (x86_linux_create_target): Initialize to_btrace_conf.
8865 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
8866 Check format. Split into this and ...
8867 (linux_enable_bts): ... this.
8868 (linux_btrace_conf): New.
8869 (perf_event_skip_record): Renamed into ...
8870 (perf_event_skip_bts_record): ... this. Updated users.
8871 (linux_disable_btrace): Split into this and ...
8872 (linux_disable_bts): ... this.
8873 (linux_read_btrace): Check format.
8874 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
8875 (linux_btrace_conf): New.
8876 (btrace_target_info)<ptid>: Moved.
8877 (btrace_target_info)<conf>: New.
8878 (btrace_target_info): Split into this and ...
8879 (btrace_tinfo_bts): ... this. Updated users.
8880 * btrace.c (btrace_enable): Update parameters.
8881 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
8882 (btrace_conf_children, btrace_conf_attributes)
8883 (btrace_conf_elements): New.
8884 * btrace.h (btrace_enable): Update parameters.
8885 (btrace_conf, parse_xml_btrace_conf): New.
8886 * common/btrace-common.h (btrace_config): New.
8887 * feature/btrace-conf.dtd: New.
8888 * record-btrace.c (record_btrace_conf): New.
8889 (record_btrace_cmdlist): New.
8890 (record_btrace_enable_warn, record_btrace_open): Pass
8891 &record_btrace_conf.
8892 (record_btrace_info): Print recording format.
8893 (cmd_record_btrace_bts_start): New.
8894 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
8895 (_initialize_record_btrace): Add "record btrace bts" subcommand.
8896 Add "record bts" alias command.
8897 * remote.c (remote_state)<btrace_config>: New.
8898 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
8899 (remote_protocol_features): Add qXfer:btrace-conf:read.
8900 (remote_open_1): Call remote_btrace_reset.
8901 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
8902 (btrace_target_info)<conf>: New.
8903 (btrace_sync_conf, btrace_read_config): New.
8904 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
8905 btrace_read_conf.
8906 (remote_btrace_conf): New.
8907 (init_remote_ops): Initialize to_btrace_conf.
8908 (_initialize_remote): Add qXfer:btrace-conf packet.
8909 * target.c (target_enable_btrace): Update parameters.
8910 (target_btrace_conf): New.
8911 * target.h (target_enable_btrace): Update parameters.
8912 (target_btrace_conf): New.
8913 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
8914 (target_ops)<to_enable_btrace>: Update parameters and comment.
8915 (target_ops)<to_btrace_conf>: New.
8916 * target-delegates: Regenerate.
8917 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
8918 (target_debug_print_const_struct_btrace_target_info_p): New.
8919 * NEWS: Announce new command and new packet.
8920
aadf7753
MM
89212015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8922
8923 * nat/linux-btrace.h (perf_event_buffer): New.
8924 (btrace_target_info) <buffer, size, data_head>: Replace with ...
8925 <bts>: ... this.
8926 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
8927 (perf_event_buffer_size, perf_event_buffer_begin)
8928 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
8929 Updated users.
8930 (perf_event_new_data): New.
8931
043c3577
MM
89322015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8933
8934 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
8935 * record-btrace.c (record_btrace_open): Remove call to
8936 target_supports_btrace.
8937 * remote.c (remote_supports_btrace): Update parameters.
8938 * target.c (target_supports_btrace): Update parameters.
8939 * target.h (to_supports_btrace, target_supports_btrace): Update
8940 parameters.
8941 * target-delegates.c: Regenerate.
8942 * target-debug.h (target_debug_print_enum_btrace_format): New.
8943 * nat/linux-btrace.c
8944 (kernel_supports_btrace): Rename into ...
8945 (kernel_supports_bts): ... this. Update users. Update warning text.
8946 (intel_supports_btrace): Rename into ...
8947 (intel_supports_bts): ... this. Update users.
8948 (cpu_supports_btrace): Rename into ...
8949 (cpu_supports_bts): ... this. Update users.
8950 (linux_supports_btrace): Update parameters. Split into this and ...
8951 (linux_supports_bts): ... this.
8952 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
8953
734b0e4b
MM
89542015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8955
8956 * Makefile.in (SFILES): Add common/btrace-common.c.
8957 (COMMON_OBS): Add common/btrace-common.o.
8958 (btrace-common.o): Add build rules.
8959 * btrace.c (parse_xml_btrace): Update parameters.
8960 (parse_xml_btrace_block): Set format field.
8961 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
8962 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
8963 (btrace_compute_ftrace): Split into this and...
8964 (btrace_compute_ftrace_bts): ...this.
8965 (btrace_stitch_trace): Split into this and...
8966 (btrace_stitch_bts): ...this.
8967 * btrace.h (parse_xml_btrace): Update parameters.
8968 (make_cleanup_btrace_data): New.
8969 * common/btrace-common.c: New.
8970 * common/btrace-common.h: Include common-defs.h.
8971 (btrace_block_s): Update comment.
8972 (btrace_format): New.
8973 (btrace_format_string): New.
8974 (btrace_data_bts): New.
8975 (btrace_data): New.
8976 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
8977 * remote.c (remote_read_btrace): Update parameters.
8978 * target.c (target_read_btrace): Update parameters.
8979 * target.h (target_read_btrace): Update parameters.
8980 (target_ops)<to_read_btrace>: Update parameters.
8981 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
8982 * target-delegates.c: Regenerate.
8983 * target-debug (target_debug_print_struct_btrace_data_p): New.
8984 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
8985 (linux_read_bts): ...this.
8986 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
8987
bd2e0e9e
DE
89882015-02-06 Doug Evans <dje@google.com>
8989
8990 * remote-m32r-sdi.c: Include symfile.h.
8991
f176c4b5
DE
89922015-02-06 Doug Evans <dje@google.com>
8993
8994 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
8995 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
8996 to here.
8997
d6c146e9
PA
89982015-02-06 Pedro Alves <palves@redhat.com>
8999
9000 * linux-thread-db.c (find_new_threads_callback): Add debug output.
9001
b9d61307
SM
90022015-02-06 Simon Marchi <simon.marchi@ericsson.com>
9003
9004 PR gdb/15678
9005 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
9006 (enable_count_command): Check args for NULL value.
9007
e9fbd043
DE
90082015-02-05 Doug Evans <xdje42@gmail.com>
9009
9010 * guile/scm-frame.c: Fix spelling errors in a comment.
9011
881d5d5d
JK
90122015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9013
9014 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
9015 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
9016 return type.
9017
20ba1ce6
PA
90182015-02-04 Pedro Alves <palves@redhat.com>
9019
9020 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
9021 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
9022 returns true.
9023 (resume_stopped_resumed_lwps): Don't check whether the thread is
9024 marked as executing.
9025 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
9026
f962539a
AA
90272015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9028
9029 * regset.h (struct regset): Add flags field.
9030 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
9031 * corelow.c (get_core_register_section): Add warning if the size
9032 exceeds the requested size and the regset does not have the
9033 REGSET_VARIABLE_SIZE flag set.
9034 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
9035 flag.
9036 * armbsd-tdep.c (armbsd_gregset): Likewise.
9037 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
9038 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
9039 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
9040 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
9041
dde9acd6
AA
90422015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9043
9044 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
9045 For ".reg-xstate", explicitly specify the requested section size
9046 via X86_XSTATE_SIZE instead of just 0 on input and
9047 X86_XSTATE_MAX_SIZE on output.
9048 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
9049 Likewise.
9050
1528345d
AA
90512015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9052
9053 PR corefiles/17808:
9054 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
9055 function type, particularly its SIZE parameter.
9056 * gdbarch.h: Regenerate.
9057 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
9058 actual against required size using ">=" instead of "==".
9059 (amd64_collect_fpregset): Likewise.
9060 * i386-tdep.c (i386_supply_gregset): Likewise.
9061 (i386_collect_gregset): Likewise.
9062 (i386_supply_fpregset): Likewise.
9063 (i386_collect_fpregset): Likewise.
9064 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
9065 (mips_fill_gregset_wrapper): Likewise.
9066 (mips_supply_fpregset_wrapper): Likewise.
9067 (mips_fill_fpregset_wrapper): Likewise.
9068 (mips64_supply_gregset_wrapper): Likewise.
9069 (mips64_fill_gregset_wrapper): Likewise.
9070 (mips64_supply_fpregset_wrapper): Likewise.
9071 (mips64_fill_fpregset_wrapper): Likewise.
9072 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
9073 (am33_supply_fpregset_method): Likewise.
9074 (am33_collect_gregset_method): Likewise.
9075 (am33_collect_fpregset_method): Likewise.
9076
518be979
DE
90772015-02-04 Doug Evans <dje@google.com>
9078 Pedro Alves <palves@redhat.com>
9079 Eli Zaretskii <eliz@gnu.org>
9080
9081 PR tui/17810
9082 * tui/tui-command.c (tui_refresh_cmd_win): New function.
9083 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
9084 * tui/tui-file.c: #include tui/tui-command.h.
9085 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
9086 (tui_file_flush): Refresh command window if stream is gdb_stdout.
9087 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
9088
80bd5fab
PA
90892015-02-04 Pedro Alves <palves@redhat.com>
9090
9091 Fix build breakage.
9092 * event-loop.c (gdb_do_one_event): Add default switch case.
9093
a7606d80
JK
90942015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9095
9096 Filter out inferior gcc option -fpreprocessed.
9097 * compile/compile.c (filter_args): New function.
9098 (get_args): Use it.
9099
70b66289
PA
91002015-02-03 Pedro Alves <palves@redhat.com>
9101
9102 * event-loop.c: Don't declare nor define a queue type for
9103 gdb_event_p.
9104 (event_queue): Delete.
9105 (create_event, create_file_event, gdb_event_xfree)
9106 (initialize_event_loop, process_event): Delete.
9107 (gdb_do_one_event): Return as soon as one event is handled.
9108 (handle_file_event): Change prototype. Used the passed in
9109 file_handler pointer and ready_mask instead of looping over all
9110 file handlers.
9111 (gdb_wait_for_event): Update the poll/select timeouts before
9112 blocking. Run event handlers directly instead of queueing events.
9113 Return as soon as one event is handled.
9114 (struct async_event_handler_data): Delete.
9115 (invoke_async_event_handler): Delete.
9116 (check_async_event_handlers): Change return type to int. Run
9117 event handlers directly instead of queueing events. Return as
9118 soon as one event is handled.
9119 (handle_timer_event): Delete.
9120 (update_wait_timeout): New function, factored out from
9121 poll_timers.
9122 (poll_timers): Reimplement.
9123 * event-loop.h (initialize_event_loop): Delete declaration.
9124 * top.c (gdb_init): Don't call initialize_event_loop.
9125
b7d2e916
PA
91262015-02-03 Pedro Alves <palves@redhat.com>
9127
9128 * event-loop.c (clear_async_event_handler): New function.
9129 * event-loop.h (clear_async_event_handler): New declaration.
9130 * record-btrace.c (record_btrace_async): New function.
9131 (init_record_btrace_ops): Install record_btrace_async.
9132 * record-full.c (record_full_async): New function.
9133 (record_full_resume): Don't mark the async event source here.
9134 (init_record_full_ops): Install record_full_async.
9135 (record_full_core_resume): Don't mark the async event source here.
9136 (init_record_full_core_ops): Install record_full_async.
9137 * remote.c (remote_async): Mark and clear the async stop reply
9138 queue event-loop token as appropriate.
9139
d9d41e78
PA
91402015-02-03 Pedro Alves <palves@redhat.com>
9141
9142 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
9143 target_is_async_p instead of target_can_async.
9144 (linux_nat_wait): Use target_is_async_p instead of
9145 target_can_async. Don't enable async here.
9146 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
9147 target_is_async_p instead of target_can_async.
9148
aa3de267
SM
91492015-02-02 Simon Marchi <simon.marchi@ericsson.com>
9150
9151 * varobj.h (lang_varobj_ops): Mention which return values need
9152 to be freed.
9153
2c811c0f
JB
91542015-02-02 Joel Brobecker <brobecker@adacore.com>
9155
9156 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
9157
b1eedac9
JB
91582015-02-02 Joel Brobecker <brobecker@adacore.com>
9159
9160 PR gdb/17856:
9161 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
9162 results found in the cache.
9163
66c168ae
JB
91642015-02-02 Joel Brobecker <brobecker@adacore.com>
9165
9166 PR gdb/17854:
9167 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
9168 when allocating a new one.
9169
4bdc02b2
TT
91702015-02-01 Tom Tromey <tom@tromey.com>
9171
9172 * MAINTAINERS: Remove myself.
9173
ae6ae975
DE
91742015-01-31 Doug Evans <xdje42@gmail.com>
9175
9176 * dwarf2read.c (process_structure_scope): Update setting of
9177 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
9178 * gdbtypes.c (internal_type_vptr_fieldno): New function.
9179 (set_type_vptr_fieldno): New function.
9180 (internal_type_vptr_basetype): New function.
9181 (set_type_vptr_basetype): New function.
9182 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
9183 TYPE_VPTR_BASETYPE.
9184 (allocate_cplus_struct_type): Initialize vptr_fieldno.
9185 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
9186 (print_cplus_stuff): ... moved here.
9187 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
9188 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
9189 moved to ...
9190 (struct cplus_struct_type): ... here. All uses updated.
9191 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
9192 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
9193 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
9194 * stabsread.c (read_tilde_fields): Update setting of
9195 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
9196
09e2d7c7
DE
91972015-01-31 Doug Evans <xdje42@gmail.com>
9198
9199 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
9200 to self_p.
9201 (cp_print_class_member): Rename local domain to self_type.
9202 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
9203 domain_type to self_type.
9204 (set_die_type) <need_gnat_info>: Handle
9205 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
9206 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
9207 TYPE_SPECIFIC_SELF_TYPE.
9208 * gdbtypes.c (internal_type_self_type): New function.
9209 (set_type_self_type): New function.
9210 (smash_to_memberptr_type): Rename parameter domain to self_type.
9211 Update setting of TYPE_SELF_TYPE.
9212 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
9213 (smash_to_method_type): Rename parameter domain to self_type.
9214 Update setting of TYPE_SELF_TYPE.
9215 (check_stub_method): Call smash_to_method_type.
9216 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
9217 (copy_type_recursive): Ditto.
9218 * gdbtypes.h (enum type_specific_kind): New value
9219 TYPE_SPECIFIC_SELF_TYPE.
9220 (struct main_type) <type_specific>: New member self_type.
9221 (struct cplus_struct_type) <fn_field.type>: Update comment.
9222 (TYPE_SELF_TYPE): Rewrite.
9223 (internal_type_self_type, set_type_self_type): Declare.
9224 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
9225 self_type.
9226 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
9227 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
9228 TYPE_TARGET_TYPE.
9229 * stabsread.c (read_member_functions): Mark methods with
9230 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
9231 TYPE_SELF_TYPE.
9232
4bfb94b8
DE
92332015-01-31 Doug Evans <xdje42@gmail.com>
9234
9235 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
9236 All uses updated.
9237
5f4ce105
DE
92382015-01-31 Doug Evans <xdje42@gmail.com>
9239
9240 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
9241 or unions. Return zero if union.
9242 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
9243 (gnuv3_rtti_type): Pass already-check_typedef'd value to
9244 gnuv3_get_vtable.
9245 (compute_vtable_size): Assert only passed structs.
9246 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
9247
f6b3afbf
DE
92482015-01-31 Doug Evans <xdje42@gmail.com>
9249
9250 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
9251 kinds.
9252
cfb069a8
GB
92532015-01-31 Gary Benson <gbenson@redhat.com>
9254 Doug Evans <dje@google.com>
9255
9256 PR cli/9007
9257 PR cli/11920
9258 PR cli/15548
9259 * cli/cli-cmds.c (complete_command): Notify user if max-completions
9260 reached.
9261 * common/common-exceptions.h (enum errors)
9262 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
9263 * completer.h (get_max_completions_reached_message): New declaration.
9264 (max_completions): Likewise.
9265 (completion_tracker_t): New typedef.
9266 (new_completion_tracker): New declaration.
9267 (make_cleanup_free_completion_tracker): Likewise.
9268 (maybe_add_completion_enum): New enum.
9269 (maybe_add_completion): New declaration.
9270 (throw_max_completions_reached_error): Likewise.
9271 * completer.c (max_completions): New global variable.
9272 (new_completion_tracker): New function.
9273 (free_completion_tracker): Likewise.
9274 (make_cleanup_free_completion_tracker): Likewise.
9275 (maybe_add_completions): Likewise.
9276 (throw_max_completions_reached_error): Likewise.
9277 (complete_line): Remove duplicates and limit result to max_completions
9278 entries.
9279 (get_max_completions_reached_message): New function.
9280 (gdb_display_match_list): Handle max_completions.
9281 (_initialize_completer): New declaration and function.
9282 * symtab.c: Include completer.h.
9283 (completion_tracker): New static variable.
9284 (completion_list_add_name): Call maybe_add_completion.
9285 (default_make_symbol_completion_list_break_on_1): Renamed from
9286 default_make_symbol_completion_list_break_on. Maintain
9287 completion_tracker across calls to completion_list_add_name.
9288 (default_make_symbol_completion_list_break_on): New function.
9289 * top.c (init_main): Set rl_completion_display_matches_hook.
9290 * tui/tui-io.c: Include completer.h.
9291 (tui_old_rl_display_matches_hook): New static global.
9292 (tui_rl_display_match_list): Notify user if max-completions reached.
9293 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
9294 * NEWS (New Options): Mention set/show max-completions.
9295
e11c72c7
GB
92962015-01-31 Gary Benson <gbenson@redhat.com>
9297
9298 * symtab.c (struct add_name_data) <code>: New field.
9299 Updated comments.
9300 (add_symtab_completions): New function.
9301 (symtab_expansion_callback): Likewise.
9302 (default_make_symbol_completion_list_break_on): Set datum.code.
9303 Move minimal symbol scan before calling expand_symtabs_matching.
9304 Scan known primary symtabs for externs and statics before calling
9305 expand_symtabs_matching. Pass symtab_expansion_callback as
9306 expansion_notify argument to expand_symtabs_matching. Do not scan
9307 primary symtabs for externs and statics after calling
9308 expand_symtabs_matching.
9309
276d885b
GB
93102015-01-31 Gary Benson <gbenson@redhat.com>
9311
9312 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
9313 (struct quick_symbol_functions) <expand_symtabs_matching>:
9314 New argument expansion_notify. All uses updated.
9315 (expand_symtabs_matching): New argument expansion_notify.
9316 All uses updated.
9317 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9318 Also print expansion notify.
9319 * symtab.c (expand_symtabs_matching_via_partial): Call
9320 expansion_notify whenever a partial symbol table is expanded.
9321 * dwarf2read.c (dw2_expand_symtabs_matching): Call
9322 expansion_notify whenever a symbol table is instantiated.
9323
82083d6d
DE
93242015-01-31 Doug Evans <xdje42@gmail.com>
9325
9326 * cli-out.c: #include completer.h, readline/readline.h.
9327 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
9328 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
9329 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
9330 * cli-out.h (cli_display_match_list): Declare.
9331 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
9332 (ELLIPSIS_LEN): Ditto.
9333 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
9334 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
9335 (gdb_fnprint, gdb_print_filename): Ditto.
9336 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
9337 (gdb_display_match_list): Ditto.
9338 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
9339 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
9340 (mld_beep_ftype, mld_read_key_ftype): Ditto.
9341 (match_list_displayer): New struct.
9342 (gdb_display_match_list): Declare.
9343 * top.c (init_main): Set rl_completion_display_matches_hook.
9344 * tui/tui-io.c: #include completer.h.
9345 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
9346 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
9347 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
9348 (tui_mld_getc, tui_mld_read_key): Ditto.
9349 (tui_rl_display_match_list): Rewrite.
9350 (tui_handle_resize_during_io): New arg for_completion. All callers
9351 updated.
9352
f57d2163
DE
93532015-01-31 Doug Evans <xdje42@gmail.com>
9354
9355 Add symbol lookup cache.
9356 * NEWS: Document new options and commands.
9357 * symtab.c (symbol_cache_key): New static global.
9358 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
9359 (SYMBOL_LOOKUP_FAILED): New macro.
9360 (symbol_cache_slot_state): New enum.
9361 (block_symbol_cache): New struct.
9362 (symbol_cache): New struct.
9363 (new_symbol_cache_size, symbol_cache_size): New static globals.
9364 (hash_symbol_entry, eq_symbol_entry): New functions.
9365 (symbol_cache_byte_size, resize_symbol_cache): New functions.
9366 (make_symbol_cache, free_symbol_cache): New functions.
9367 (get_symbol_cache, symbol_cache_cleanup): New function.
9368 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
9369 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
9370 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
9371 (symbol_cache_flush, symbol_cache_dump): New functions.
9372 (maintenance_print_symbol_cache): New function.
9373 (maintenance_flush_symbol_cache): New function.
9374 (symbol_cache_stats): New function.
9375 (maintenance_print_symbol_cache_statistics): New function.
9376 (symtab_new_objfile_observer): New function.
9377 (symtab_free_objfile_observer): New function.
9378 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
9379 (_initialize_symtab): Init symbol_cache_key. New parameter
9380 maint symbol-cache-size. New maint commands print symbol-cache,
9381 print symbol-cache-statistics, flush-symbol-cache.
9382 Install new_objfile, free_objfile observers.
9383
e700d1b2
JB
93842015-01-31 Joel Brobecker <brobecker@adacore.com>
9385
9386 PR symtab/17855
9387 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
9388 to end.
9389
9f050062
DE
93902015-01-31 Doug Evans <xdje42@gmail.com>
9391
9392 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
9393 * auto-load.c: #include ctype.h.
9394 (struct auto_load_pspace_info): Replace member loaded_scripts with
9395 new members loaded_script_files, loaded_script_texts.
9396 (auto_load_pspace_data_cleanup): Update.
9397 (init_loaded_scripts_info): Update.
9398 (get_auto_load_pspace_data_for_loading): Update.
9399 (maybe_add_script_file): Renamed from maybe_add_script. All callers
9400 updated.
9401 (maybe_add_script_text): New function.
9402 (clear_section_scripts): Update.
9403 (source_script_file, execute_script_contents): New functions.
9404 (source_section_scripts): Add support for
9405 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
9406 (print_scripts): New function.
9407 (auto_load_info_scripts): Also print inlined scripts.
9408 (maybe_print_unsupported_script_warning): Renamed from
9409 unsupported_script_warning_print. All callers updated.
9410 (maybe_print_script_not_found_warning): Renamed from
9411 script_not_found_warning_print. All callers updated.
9412 * extension-priv.h (struct extension_language_script_ops): New member
9413 objfile_script_executor.
9414 * extension.c (ext_lang_objfile_script_executor): New function.
9415 * extension.h (objfile_script_executor_func): New typedef.
9416 (ext_lang_objfile_script_executor): Declare.
9417 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
9418 * guile/guile.c (guile_extension_script_ops): Update.
9419 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
9420 * python/python.c (python_extension_script_ops): Update.
9421 (gdbpy_execute_objfile_script): New function.
9422
312809f8
EZ
94232015-01-31 Eli Zaretskii <eliz@gnu.org>
9424
9425 * tui/tui-io.c (tui_expand_tabs): New function.
9426 (tui_puts, tui_redisplay_readline): Expand TABs into the
9427 appropriate number of spaces.
9428 * tui/tui-regs.c: Include tui-io.h.
9429 (tui_register_format): Call tui_expand_tabs to expand TABs into
9430 the appropriate number of spaces.
9431 * tui/tui-io.h: Add prototype for tui_expand_tabs.
9432
b6577aab
DE
94332015-01-30 Doug Evans <dje@google.com>
9434
9435 * NEWS: "info source" command now display producer string if present.
9436 * source.c (source_info): Print producer string if present.
9437
6da58d3e
SM
94382015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9439
9440 * varobj.c (varobj_delete): Fix comment.
9441
837ce252
SM
94422015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9443
9444 * varobj.c (create_child): Modify comment.
9445
b09e2c59
SM
94462015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9447
9448 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
9449 parameter.
9450 (ada_name_of_variable): Same.
9451 (ada_path_expr_of_child): Same.
9452 (ada_value_of_variable): Same.
9453 (ada_value_is_changeable_p): Same.
9454 (ada_value_has_mutated): Same.
9455 * c-varobj.c (varobj_is_anonymous_child): Same.
9456 (c_is_path_expr_parent): Same.
9457 (c_number_of_children): Same.
9458 (c_name_of_variable): Same.
9459 (c_path_expr_of_child): Same.
9460 (get_type): Same.
9461 (c_value_of_variable): Same.
9462 (cplus_number_of_children): Same.
9463 (cplus_name_of_variable): Same.
9464 (cplus_path_expr_of_child): Same.
9465 (cplus_value_of_variable): Same.
9466 * jv-varobj.c (java_number_of_children): Same.
9467 (java_name_of_variable): Same.
9468 (java_path_expr_of_child): Same.
9469 (java_value_of_variable): Same.
9470 * varobj.c (number_of_children): Same.
9471 (name_of_variable): Same.
9472 (is_root_p): Same.
9473 (varobj_ensure_python_env): Same.
9474 (varobj_get_objname): Same.
9475 (varobj_get_expression): Same.
9476 (varobj_get_display_format): Same.
9477 (varobj_get_display_hint): Same.
9478 (varobj_has_more): Same.
9479 (varobj_get_thread_id): Same.
9480 (varobj_get_frozen): Same.
9481 (dynamic_varobj_has_child_method): Same.
9482 (varobj_get_gdb_type): Same.
9483 (is_path_expr_parent): Same.
9484 (varobj_default_is_path_expr_parent): Same.
9485 (varobj_get_language): Same.
9486 (varobj_get_attributes): Same.
9487 (varobj_is_dynamic_p): Same.
9488 (varobj_get_child_range): Same.
9489 (varobj_value_has_mutated): Same.
9490 (varobj_get_value_type): Same.
9491 (number_of_children): Same.
9492 (name_of_variable): Same.
9493 (check_scope): Same.
9494 (varobj_editable_p): Same.
9495 (varobj_value_is_changeable_p): Same.
9496 (varobj_floating_p): Same.
9497 (varobj_default_value_is_changeable_p): Same.
9498
2568868e
SM
94992015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9500
9501 * varobj.c (varobj_get_path_expr): Set var->path_expr.
9502 * c-varobj.c (c_path_expr_of_child): Set local var instead of
9503 child->path_expr.
9504 (cplus_path_expr_of_child): Same.
9505
ca83fa81
SM
95062015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9507
9508 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
9509 result.
9510 (mi_cmd_var_info_expression): Same.
9511 * varobj.c (varobj_get_expression): Mention in the comment that
9512 the result must by freed by the caller.
9513
afa269ae
SM
95142015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9515
9516 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
9517 varobj_get_type.
9518 (varobj_update_one): Same.
9519 * varobj.c (update_type_if_necessary): Free curr_type_str and
9520 new_type_str.
9521 (varobj_get_type): Specify in comment that the result needs to be
9522 freed by the caller.
9523
cd366ee8
DE
95242015-01-29 Doug Evans <dje@google.com>
9525
9526 PR symtab/17890
9527 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
9528
38360086
MW
95292015-01-25 Mark Wielaard <mjw@redhat.com>
9530
9531 * dwarf2read.c (checkproducer): Call producer_is_gcc.
9532 * utils.c (producer_is_gcc_ge_4): Likewise.
9533 (producer_is_gcc): New function.
9534 * utils.h (producer_is_gcc): New declaration.
9535
df25ebbd
JB
95362015-01-29 Joel Brobecker <brobecker@adacore.com>
9537
9538 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
9539 kind.
9540 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
9541 parameter by "addr_stack" parameter.
9542 (resolve_dynamic_range): Replace "addr" parameter by
9543 "stack_addr" parameter. Update function documentation.
9544 Update code accordingly.
9545 (resolve_dynamic_array, resolve_dynamic_union)
9546 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
9547 (resolve_dynamic_type): Update code, following the changes made
9548 to resolve_dynamic_type_internal's interface.
9549 * dwarf2loc.h (struct property_addr_info): New.
9550 (dwarf2_evaluate_property): Replace "address" parameter
9551 by "addr_stack" parameter. Adjust function documentation.
9552 (struct dwarf2_offset_baton): New.
9553 (struct dwarf2_property_baton): Update documentation of
9554 field "referenced_type" to be more general. New field
9555 "offset_info" in union data field.
9556 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
9557 parameter by "addr_stack" parameter. Adjust code accordingly.
9558 Add support for PROP_ADDR_OFFSET properties.
9559 * dwarf2read.c (attr_to_dynamic_prop): Add support for
9560 DW_AT_data_member_location attributes as well. Use case
9561 statements instead of if/else condition.
9562
4a0ca9ec
JB
95632015-01-29 Joel Brobecker <brobecker@adacore.com>
9564
9565 * ada-varobj.c (ada_varobj_get_array_number_of_children):
9566 Return zero if PARENT_VALUE is NULL and parent_type's
9567 range type is dynamic.
9568
ddb87a81
JB
95692015-01-29 Joel Brobecker <brobecker@adacore.com>
9570
9571 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
9572 nonzero if the type's subtype is dynamic.
9573 (resolve_dynamic_range): Also resolve the range's subtype.
9574
3d7ad9b4 95752015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 9576
3d7ad9b4 9577 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
9578 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
9579
3a8b707a
DE
95802015-01-27 Doug Evans <dje@google.com>
9581
9582 * NEWS: Mention gdb.Objfile.username.
9583 * python/py-objfile.c (objfpy_get_username): New function.
9584 (objfile_getset): Add "username".
9585
d35b90fb
MW
95862015-01-24 Mark Wielaard <mjw@redhat.com>
9587
9588 * stack.c (return_command): Markup warning message with _.
9589
734ae125
DE
95902015-01-24 Doug Evans <xdje42@gmail.com>
9591
9592 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
9593
527f3840
JK
95942015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9595
9596 Fix 100x slowdown regression on DWZ files.
9597 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
9598 (struct line_header): Add offset and offset_in_dwz.
9599 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
9600 (free_line_header_voidp): New declaration.
9601 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
9602 functions.
9603 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
9604 (handle_DW_AT_stmt_list): Use line_header_hash.
9605 (free_line_header_voidp): New function.
9606 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
9607 (dwarf_decode_lines): New parameter decode_mapping, use it.
9608 (dwarf2_free_objfile): Free line_header_hash.
9609
f7e5394d
SM
96102015-01-23 Simon Marchi <simon.marchi@ericsson.com>
9611
9612 PR gdb/17416
9613 * valops.c (value_rtti_indirect_type): Catch exception thrown by
9614 value_ind.
9615
743649fd
MW
96162015-01-15 Mark Wielaard <mjw@redhat.com>
9617
9618 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
9619 DW_AT_noreturn.
9620 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
9621 calling_convention an 8 bit bit field.
9622 (TYPE_NO_RETURN): New macro.
9623 * infcmd.c (finish_command): Query if function does not return
9624 normally.
9625 * stack.c (return_command): Likewise.
9626
198297aa
PA
96272015-01-23 Pedro Alves <palves@redhat.com>
9628
9629 * linux-nat.c (linux_is_async_p): New macro.
9630 (linux_nat_is_async_p):
9631 (linux_nat_terminal_inferior): Check whether the target can async
9632 instead of whether it is already async.
9633 (linux_nat_terminal_ours): Don't check whether the target is
9634 async.
9635 (linux_async_pipe): Use linux_is_async_p.
9636
253828f1
JK
96372015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9638
9639 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
9640 '-ascending'.
9641 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
9642 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
9643 Sort tp_array using tp_array_compar.
9644 (_initialize_thread): Extend thread_apply_all_command help.
9645
f0e8c4c5
JK
96462015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9647
9648 * corelow.c (core_open): Call also thread_command.
9649 * gdbthread.h (thread_command): New prototype moved from ...
9650 * thread.c (thread_command): ... here.
9651 (thread_command): Make it global.
9652
03b79603
PA
96532015-01-22 Pedro Alves <palves@redhat.com>
9654
9655 * configure.ac [*mingw32*]: Check $curses_found instead of
9656 $prefer_curses.
9657 * configure: Regenerate.
9658 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
9659 HAVE_NCURSES_NCURSES_H checks.
9660
6b8a872f
EZ
96612015-01-22 Eli Zaretskii <eliz@gnu.org>
9662
bbbbffbb 9663 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
9664 fails with the 1st arg NULL, try again with "unknown". Don't test
9665 the "cup" capability: it isn't supported by the Windows port of
9666 ncurses, but the Windows console driver is still capable of
9667 supporting TUI.
9668
4b62a76e
JK
96692015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9670
9671 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
9672
82a864f9
EZ
96732015-01-22 Eli Zaretskii <eliz@gnu.org>
9674
9675 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
9676 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
9677 reason that "make TAGS" is broken.
9678
b35018fd
CG
96792015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
9680
9681 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
9682 and check additional store instructions.
9683
ffbc4646
WW
96842015-01-21 Wei-cheng Wang <cole945@gmail.com>
9685
9686 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
9687
ddeca1df
WW
96882015-01-21 Wei-cheng Wang <cole945@gmail.com>
9689
9690 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
9691 ppc_canonicalize_syscall, ppc_linux_syscall_record,
9692 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
9693 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9694 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
9695 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
9696 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
9697 ppc_process_record_op19, ppc_process_record_op31,
9698 ppc_process_record_op59, ppc_process_record_op60,
9699 ppc_process_record_op63): Likewise.
9700
049bb5de
JB
97012015-01-20 Joel Brobecker <brobecker@adacore.com>
9702
9703 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
9704 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
9705 strerror.
9706
42b87c63 97072015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
9708
9709 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
9710 ppc_process_record_op31, ppc_process_record_op59,
9711 ppc_process_record_op60, ppc_process_record_op63,
9712 ppc_process_record): Fix -Wformat warning.
9713 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
9714 Remove unused variables.
9715
569340fc
CG
97162015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
9717
9718 * MAINTAINERS (Write After Approval): Add "Chen Gang".
9719
63413d85
EZ
97202015-01-19 Eli Zaretskii <eliz@gnu.org>
9721
9722 * configure.ac [*mingw32*]: Only add windows-termcap.o to
9723 CONFIG_OBS if not building with a curses library.
9724 * configure: Regenerate.
9725
9726 * windows-termcap.c: Include defs.h. Make the whole body empty if
9727 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
9728 HAVE_NCURSES_NCURSES_H is defined.
9729
16d8013c
JB
97302015-01-19 Joel Brobecker <brobecker@adacore.com>
9731
9732 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
9733 from end of line to start of next line.
9734
cf90fd9a
WW
97352015-01-17 Wei-cheng Wang <cole945@gmail.com>
9736
9737 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
9738 Scan PLT stub backward for reverse debugging.
9739 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9740
b4cdae6f
WW
97412015-01-17 Wei-cheng Wang <cole945@gmail.com>
9742 Ulrich Weigand <uweigand@de.ibm.com>
9743
9744 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
9745 gdb_target_obs.
9746 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
9747 record.
9748 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
9749 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
9750 (ppc_linux_init_abi): Set process_record, process_record_signal.
9751 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
9752 ppc_linux_record_tdep to gdbarch_tdep.
9753 (ppc_process_record): New declaration.
9754 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
9755 ppc_process_record_op19, ppc_process_record_op31,
9756 ppc_process_record_op59, ppc_process_record_op60,
9757 ppc_process_record_op63, ppc_process_record): New functions.
9758
2608dbf8
WW
97592015-01-17 Wei-cheng Wang <cole945@gmail.com>
9760
9761 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
9762 rs6000_in_function_epilogue_frame_p and add an argument
9763 for frame_info.
9764 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
9765 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
9766 New functions.
9767 (rs6000_epilogue_frame_unwind): New.
9768 (rs6000_gdbarch_init): Append epilogue unwinder.
9769
4c347be6
SDJ
97702015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9771
9772 * nat/linux-personality.c: Replace "#ifndef
9773 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
9774 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
9775 systems.
9776
9f2850ba
EZ
97772015-01-16 Eli Zaretskii <eliz@gnu.org>
9778
6cdb25f4
EZ
9779 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
9780 functions.
9781 (_initialize_tui_win) <border-kind, border-mode>:
9782 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
9783 (tui_set_tab_width_command): Fix the commentary.
9784
6cdb25f4
EZ
9785 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
9786
bf555842
EZ
9787 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
9788 Doc fix.
cb86fcc1
EZ
9789 (tui_set_tab_width_command): Delete and recreate the source and
9790 the disassembly windows, to show the effect of the changed tab
9791 size immediately.
bf555842 9792
9f2850ba
EZ
9793 * tui/tui-data.h (LINE_PREFIX): Make shorter
9794 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
9795 "Thread NNNNN.XXXX" thread ID notation on Windows.
9796
95761b2d
JK
97972015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9798
9799 Fix gcc-5 compilation.
9800 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
9801
8cc73a39
SDJ
98022015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9803
9804 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
9805 (linux-personality.o): New rule.
9806 * common/common-defs.h: Include <stdint.h>.
9807 * config/aarch64/linux.mh (NATDEPFILES): Include
9808 linux-personality.o.
9809 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
9810 * config/arm/linux.mh (NATDEPFILES): Likewise.
9811 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9812 * config/i386/linux.mh (NATDEPFILES): Likewise.
9813 * config/ia64/linux.mh (NATDEPFILES): Likewise.
9814 * config/m32r/linux.mh (NATDEPFILES): Likewise.
9815 * config/m68k/linux.mh (NATDEPFILES): Likewise.
9816 * config/mips/linux.mh (NATDEPFILES): Likewise.
9817 * config/pa/linux.mh (NATDEPFILES): Likewise.
9818 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
9819 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
9820 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
9821 * config/s390/linux.mh (NATDEPFILES): Likewise.
9822 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
9823 * config/sparc/linux.mh (NATDEPFILES): Likewise.
9824 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
9825 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
9826 * defs.h: Remove #include <stdint.h> (moved to
9827 common/common-defs.h).
9828 * linux-nat.c: Include nat/linux-personality.h. Remove #include
9829 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
9830 nat/linux-personality.c).
9831 (linux_nat_create_inferior): Remove code to disable address space
9832 randomization (moved to nat/linux-personality.c). Create cleanup
9833 to disable address space randomization.
9834 * nat/linux-personality.c: New file.
9835 * nat/linux-personality.h: Likewise.
9836
fb23d554
SDJ
98372015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9838
9839 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
9840 common/posix-strerror.c.
9841 (posix-strerror.o): New rule.
9842 (mingw-strerror.o): Likewise.
9843 * common/common-utils.h (safe_strerror): Move prototype to here,
9844 from utils.h.
9845 * common/common.host: New file.
9846 * common/mingw-strerror.c: Likewise.
9847 * common/posix-strerror.c: Likewise.
9848 * configure: Regenerated.
9849 * configure.ac: Source common/common.host. Add variable
9850 common_host_obs to gdb_host_obs.
9851 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
9852 gdb/common/posix-strerror.c when warning about the use of
9853 strerror.
9854 * mingw-hdep.c (safe_strerror): Remove definition; move it to
9855 common/mingw-strerror.c.
9856 * posix-hdep.c (safe_strerror): Remove definition; move it to
9857 common/posix-hdep.c.
9858 * utils.h (safe_strerror): Remove prototype; move to
9859 common/common-utils.h.
9860
3af8af43
JB
98612015-01-15 Joel Brobecker <brobecker@adacore.com>
9862
9863 GDB 7.8.2 released.
9864
bafffb51
JB
98652015-01-15 Joel Brobecker <brobecker@adacore.com>
9866
9867 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
9868 ___XA type if the array has already been fixed.
9869
cdf43629
YQ
98702015-01-14 Yao Qi <yao@codesourcery.com>
9871
9872 * Makefile.in (ppc-linux.o): New rule.
9873 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
9874 * configure.ac: AC_CHECK_FUNCS(getauxval).
9875 * config.in: Re-generated.
9876 * configure: Re-generated.
9877 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
9878 Declare.
9879 * nat/ppc-linux.c: New file.
9880 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
9881 Call ppc64_64bit_inferior_p.
9882
514c5338
YQ
98832015-01-14 Yao Qi <yao@codesourcery.com>
9884
9885 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
9886 nat/ppc-linux.h.
9887 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
9888 (PPC_FEATURE_HAS_DFP): Likewise.
9889 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9890 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9891 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9892 Include "nat/ppc-linux.h".
9893 * nat/ppc-linux.h: New file.
9894 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
9895
5589af0e
PA
98962015-01-14 Pedro Alves <palves@redhat.com>
9897
9898 PR gdb/17525
9899 * breakpoint.c: Include "interps.h".
9900 (bpstat_do_actions_1): Also check whether the interpreter is
9901 async.
9902
6c400b59
PA
99032015-01-14 Pedro Alves <palves@redhat.com>
9904
9905 PR cli/17828
9906 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
9907 reinstall if the interpreter is sync.
9908
e02c96a7
DE
99092015-01-13 Doug Evans <dje@google.com>
9910
9911 * objfiles.c (objfile_filename): New function.
9912 * objfiles.h (objfile_filename): Declare it.
9913 (objfile_name): Add function comment.
9914 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
9915 bfd file name (which may be realpath'd), and the original name.
9916
3b2f13ff
JB
99172015-01-13 Joel Brobecker <brobecker@adacore.com>
9918
9919 * NEWS: Create a new section for the next release branch.
9920 Rename the section of the current branch, now that it has
9921 been cut.
9922
b4cfe7f8
JB
99232015-01-13 Joel Brobecker <brobecker@adacore.com>
9924
9925 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
9926 * version.in: Bump version to 7.9.50.DATE-cvs.
9927
92fc2e69
JB
99282015-01-13 Joel Brobecker <brobecker@adacore.com>
9929
9930 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
9931 Remove trailing new-line in argument of call to warning.
9932
f71f0b0d
JB
99332015-01-13 Joel Brobecker <brobecker@adacore.com>
9934
9935 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
9936 new-line in argument of call to "warning".
9937
04dccad0
JB
99382015-01-13 Joel Brobecker <brobecker@adacore.com>
9939
9940 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
9941 in static block, then try searching for primitive types.
9942
08b13bdd
PP
99432015-01-12 Patrick Palka <patrick@parcs.ath.cx>
9944
9945 * top.h (gdb_add_history): Declare.
9946 * top.c (command_count): New variable.
9947 (gdb_add_history): New function.
9948 (gdb_safe_append_history): New static function.
9949 (quit_force): Call it.
9950 (command_line_input): Use gdb_add_history instead of
9951 add_history.
9952 * event-top.c (command_line_handler): Likewise.
9953
4ac15b59
JC
99542015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
9955
9956 PR gdb/17046
9957 * darwin-nat.c: Replace <machine/setjmp.h> #include by
9958 <setjmp.h> #include.
9959
005e54bb
DE
99602015-01-11 Doug Evans <xdje42@gmail.com>
9961
9962 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
9963
439250fb
DE
99642015-01-11 Doug Evans <xdje42@gmail.com>
9965
9966 PR gdb/15830
9967 * NEWS: The "maint demangle" command is renamed as "demangle".
9968 * demangle.c: #include cli/cli-utils.h, language.h.
9969 (demangle_command): New function.
9970 (_initialize_demangle): Add new command "demangle".
9971 * maint.c (maintenance_demangle): Stub out.
9972 (_initialize_maint_cmds): Update help text for "maint demangle",
9973 and mark as deprecated.
9974
ebf3aa72
MK
99752015-01-11 Mark Kettenis <kettenis@gnu.org>
9976
9977 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
9978 inferior_thread is a function.
9979
6bf045cd
PP
99802015-01-09 Patrick Palka <patrick@parcs.ath.cx>
9981
9982 * Makefile.in (.y.c): Don't munge yacc's #line
9983 directives.
9984
588dcc3e
PP
99852015-01-09 Patrick Palka <patrick@parcs.ath.cx>
9986
9987 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
9988 to prompt for input.
9989 * tui/tui-hooks.c (tui_query_hook): Remove.
9990 (tui_install_hooks): Don't set deprecated_query_hook.
9991 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
9992 height calculation. Always update the command window's cur_line.
9993
9c02b525
PA
99942015-01-09 Pedro Alves <palves@redhat.com>
9995
9996 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
9997 function.
9998 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
9999 declaration.
10000 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
10001 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
10002 stop_reason.
10003 (check_stopped_by_watchpoint): New function.
10004 (save_sigtrap): Reimplement.
10005 (linux_nat_stopped_by_watchpoint): Adjust.
10006 (linux_nat_lp_status_is_event): Delete.
10007 (stop_wait_callback): Only call save_sigtrap after storing the
10008 pending status.
10009 (status_callback): If the thread had been stopped for a breakpoint
10010 that has since been removed, discard the event and resume the LWP.
10011 (count_events_callback, select_event_lwp_callback): Use
10012 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
10013 (cancel_breakpoint): Rename to ...
10014 (check_stopped_by_breakpoint): ... this. Record whether the LWP
10015 stopped for a software breakpoint or hardware breakpoint.
10016 (select_event_lwp): Only give preference to the stepping LWP in
10017 all-stop mode. Adjust comments.
10018 (stop_and_resume_callback): Remove references to new_pending_p.
10019 (linux_nat_filter_event): Likewise. Leave exit events of the
10020 leader thread pending here. Handle signal short circuiting here.
10021 Only call save_sigtrap after storing the pending waitstatus.
10022 (linux_nat_wait_1): Remove 'retry' label. Remove references to
10023 new_pending. Don't handle leaving events the caller is not
10024 interested in pending here, nor handle signal short-circuiting
10025 here. Also give equal priority to all LWPs that have had events
10026 in non-stop mode. If reporting a software breakpoint event,
10027 unadjust the LWP's PC.
10028 * linux-nat.h (enum lwp_stop_reason): New.
10029 (struct lwp_info) <stop_pc>: New field.
10030 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
10031 (struct lwp_info) <stop_reason>: New field.
10032 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10033
8af756ef
PA
100342015-01-09 Pedro Alves <palves@redhat.com>
10035
10036 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
10037 Set the LWP's 'resumed' flag.
10038
8a99810d
PA
100392015-01-09 Pedro Alves <palves@redhat.com>
10040
10041 * linux-nat.c (linux_resume_one_lwp): New function.
10042 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
10043 (linux_nat_resume): Use lwp_status_pending_p and
10044 linux_resume_one_lwp.
10045 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
10046 (linux_handle_extended_wait): Use linux_resume_one_lwp.
10047 (status_callback, running_callback): Use lwp_status_pending_p.
10048 (lwp_status_pending_p): New function.
10049 (stop_and_resume_callback): Use lwp_status_pending_p.
10050 (linux_nat_filter_event): Use linux_resume_one_lwp.
10051 (linux_nat_wait_1): Always use status_callback to look for an LWP
10052 with a pending status. Use linux_resume_one_lwp.
10053 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
10054 linux_resume_one_lwp.
10055
f7ce857f
PA
100562015-01-09 Pedro Alves <palves@redhat.com>
10057
10058 * breakpoint.c (bp_location_inserted_here_p): New function,
10059 factored out from ...
10060 (breakpoint_inserted_here_p): ... here. Use
10061 ALL_BP_LOCATIONS_AT_ADDR.
10062 (software_breakpoint_inserted_here_p): Use
10063 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
10064
c1a747c1
PA
100652014-01-09 Pedro Alves <palves@redhat.com>
10066
10067 Skip enabling event reporting if the kernel supports
10068 PTRACE_EVENT_CLONE.
10069 * linux-thread-db.c: Include "nat/linux-ptrace.h".
10070 (thread_db_use_events): New function.
10071 (try_thread_db_load_1): Check thread_db_use_events before enabling
10072 event reporting.
10073 (update_thread_state): New function.
10074 (attach_thread): Use it. Check thread_db_use_events before
10075 enabling event reporting.
10076 (thread_db_detach): Check thread_db_use_events before disabling
10077 event reporting.
10078 (find_new_threads_callback): Check thread_db_use_events before
10079 enabling event reporting. Update the thread's state if not using
10080 libthread_db events.
10081
a33e3959
PA
100822015-01-09 Pedro Alves <palves@redhat.com>
10083
10084 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
10085 about to wait for is > 0.
10086 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
10087 the kernel thread ID is -1.
10088
8784d563
PA
100892015-01-09 Pedro Alves <palves@redhat.com>
10090
10091 * linux-nat.c (attach_proc_task_lwp_callback): New function.
10092 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
10093 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
10094 ptrace option flags.
10095 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
10096 field.
10097 * nat/linux-procfs.c: Include <dirent.h>.
10098 (linux_proc_get_int): New parameter "warn". Handle it.
10099 (linux_proc_get_tgid): Adjust.
10100 (linux_proc_get_tracerpid): Rename to ...
10101 (linux_proc_get_tracerpid_nowarn): ... this.
10102 (linux_proc_pid_get_state): New function, factored out from
10103 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
10104 and handle it.
10105 (linux_proc_pid_is_gone): New function.
10106 (linux_proc_pid_is_stopped): Adjust.
10107 (linux_proc_pid_is_zombie_maybe_warn)
10108 (linux_proc_pid_is_zombie_nowarn): New functions.
10109 (linux_proc_pid_is_zombie): Use
10110 linux_proc_pid_is_zombie_maybe_warn.
10111 (linux_proc_attach_tgid_threads): New function.
10112 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
10113 (linux_proc_get_tracerpid): Rename to ...
10114 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
10115 (linux_proc_pid_is_gone): New declaration.
10116 (linux_proc_pid_is_zombie): Update comment.
10117 (linux_proc_pid_is_zombie_nowarn): New declaration.
10118 (linux_proc_attach_lwp_func): New typedef.
10119 (linux_proc_attach_tgid_threads): New declaration.
10120 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
10121 use nowarn functions.
10122 (linux_ptrace_attach_fail_reason_string): Move here from
10123 gdbserver/linux-low.c and rename.
10124 (ptrace_supports_feature): If the current ptrace options are not
10125 known yet, check them now, instead of asserting.
10126 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
10127 Declare.
10128
883ed13e
PA
101292015-01-09 Pedro Alves <palves@redhat.com>
10130
10131 * linux-thread-db.c (thread_db_find_new_threads_silently)
10132 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
10133 (find_new_threads_once): Print debug output on gdb_stdlog.
10134
1710aab8
CG
101352015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
10136 Pedro Alves <palves@redhat.com>
10137
10138 * compile/compile.c: Include "gdb_wait.h".
10139 (do_rmdir): Check return value, and free 'zap'.
10140
b597c318
YQ
101412015-01-08 Pedro Alves <palves@redhat.com>
10142 Yao Qi <yao@codesourcery.com>
10143
10144 * dwarf2loc.c (indirect_pieced_value): Don't call
10145 gdb_sign_extend. Call extract_signed_integer instead.
10146 * utils.c (gdb_sign_extend): Remove.
10147 * utils.h (gdb_sign_extend): Remove declaration.
10148
025ac414
PM
101492015-01-07 Pierre Muller <muller@sourceware.org>
10150
10151 PR symtab/17811
10152 * stabsread.c (define_symbol): Set language for C++ special symbols.
10153
fa5af12a
PP
101542015-01-07 Patrick Palka <patrick@parcs.ath.cx>
10155
10156 * inflow.c (initial_gdb_ttystate): Tweak comment.
10157
ea42d6f8
JB
101582015-01-07 Joel Brobecker <brobecker@adacore.com>
10159
10160 * inflow.c (set_initial_gdb_ttystate): Add empty line after
10161 comment documenting function.
10162
6a06d660
PP
101632015-01-07 Patrick Palka <patrick@parcs.ath.cx>
10164
10165 * terminal.h (set_initial_gdb_ttystate): Declare.
10166 * inflow.c (initial_gdb_ttystate): New static variable.
10167 (set_initial_gdb_ttystate): New setter.
10168 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
10169 instead of our current terminal state.
10170 * top.c (gdb_init): Call set_initial_gdb_ttystate.
10171
e810d75b
JB
101722015-01-07 Joel Brobecker <brobecker@adacore.com>
10173
10174 * guile/scm-type.c (tyscm_array_1): Add comment.
10175 * python/py-type.c (typy_array_1): Add comment.
10176
fce10a84
JB
101772015-01-06 Joel Brobecker <brobecker@adacore.com>
10178
10179 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
10180 error if N2 is equal to N1 - 1.
10181
8503d6e1
JB
101822015-01-06 Joel Brobecker <brobecker@adacore.com>
10183
10184 * python/py-type.c (typy_array_1): Do not raise negative-length
10185 exception if N2 is equal to N1 - 1.
10186
4d29c0a8
DE
101872015-01-03 Doug Evans <xdje42@gmail.com>
10188
10189 * c-exp.y: Whitespace cleanup.
10190 (classify_inner_name): Remove extra ;.
10191
eaa6a9a4
MR
101922015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
10193
10194 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
10195 offset signed.
10196
02fe9972
DE
101972015-01-02 Doug Evans <dje@google.com>
10198
10199 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
10200
e2ada9cb
DE
102012015-01-02 Doug Evans <dje@google.com>
10202
10203 * symtab.h (struct symbol): Fix typo in comment.
10204
32d0add0
JB
102052015-01-01 Joel Brobecker <brobecker@adacore.com>
10206
10207 Update year range in copyright notice of all files.
10208
76f2b779
JB
102092015-01-01 Joel Brobecker <brobecker@adacore.com>
10210
10211 * top.c (print_gdb_version): Update copyright year to 2015.
10212
077309e2 102132015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 10214
077309e2 10215 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 10216
077309e2 10217For older changes see ChangeLog-2014.
c906108c
SS
10218\f
10219Local Variables:
10220mode: change-log
10221left-margin: 8
10222fill-column: 74
10223version-control: never
57da7796 10224coding: utf-8
c906108c 10225End:
This page took 2.249691 seconds and 4 git commands to generate.