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