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