PR 17185
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-07-26 Doug Evans <xdje42@gmail.com>
2
3 PR 17185
4 * configure.ac: Add check for header gc/gc.h.
5 Add check for function setenv.
6 * configure: Regenerate.
7 * config.in: Regenerate.
8 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
9
10 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
11
12 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
13 variation in gdbarch matching.
14
15 2014-07-25 Tom Tromey <tromey@redhat.com>
16
17 * exec.c (using_exec_ops): Remove.
18 (exec_close_1): Update. Remove extraneous block, reindent.
19 (add_target_sections): Use target_is_pushed.
20
21 2014-07-25 Pedro Alves <palves@redhat.com>
22
23 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
24 * monitor.c (monitor_create_inferior): Likewise.
25 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
26 * remote-sim.c (gdbsim_create_inferior): Likewise.
27 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
28 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
29 * windows-nat.c (do_initial_windows_stuff): Likewise.
30
31 2014-07-25 Pedro Alves <palves@redhat.com>
32
33 * NEWS: Mention signal passing and "signal" command changes.
34 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
35 comment.
36 * breakpoint.c (until_break_command): Adjust clear_proceed_status
37 call.
38 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
39 * infcmd.c (proceed_thread_callback, continue_1, step_once)
40 (jump_command): Adjust clear_proceed_status call.
41 (signal_command): Warn if other thread that are resumed have
42 signals that will be delivered. Adjust clear_proceed_status call.
43 (until_next_command, finish_command)
44 (proceed_after_attach_callback, attach_command_post_wait)
45 (attach_command): Adjust clear_proceed_status call.
46 * infrun.c (proceed_after_vfork_done): Likewise.
47 (proceed_after_attach_callback): Adjust comment.
48 (clear_proceed_status_thread): Clear stop_signal if not in pass
49 state.
50 (clear_proceed_status_callback): Delete.
51 (clear_proceed_status): New 'step' parameter. Only clear the
52 proceed status of threads the command being prepared is about to
53 resume.
54 (proceed): If passed in an explicit signal, override stop_signal
55 with it. Don't pass the last stop signal to the thread we're
56 resuming.
57 (init_wait_for_inferior): Adjust clear_proceed_status call.
58 (switch_back_to_stepped_thread): Clear the signal if it should not
59 be passed.
60 * infrun.h (clear_proceed_status): New 'step' parameter.
61 (user_visible_resume_ptid): Add comment.
62 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
63 signal is in pass state.
64 * remote.c (append_pending_thread_resumptions): Likewise.
65 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
66
67 2014-07-25 Tom Tromey <tromey@redhat.com>
68
69 * target.h (target_stopped_data_address)
70 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
71 parentheses.
72
73 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
74
75 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
76 comments.
77 (avr_pointer_to_address): Likewise.
78
79 2014-07-24 Tom Tromey <tromey@redhat.com>
80
81 * monitor.c (compile_pattern): Update.
82 * target.h (struct target_ops) <to_shortname, to_longname,
83 to_doc>: Now const.
84
85 2014-07-24 Tom Tromey <tromey@redhat.com>
86
87 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
88 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
89 (add_info_alias, add_com): Make "doc" const.
90 (print_doc_line): Make "str" const.
91 (delete_cmd): Update.
92 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
93 (print_doc_line): Update.
94 * cli/cli-script.c (document_command): Update.
95 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
96 (add_com, add_info, add_info_alias): Update.
97 * guile/scm-cmd.c (cmdscm_destroyer): Update.
98 * python/py-cmd.c (cmdpy_destroyer): Update.
99
100 2014-07-24 Tom Tromey <tromey@redhat.com>
101
102 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
103 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
104 (help_cmd_list): Constify.
105 (lookup_cmd): Update.
106 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
107 const.
108 (help_cmd_list, apropos_cmd): Update.
109 * cli/cli-script.c (show_user): Update.
110 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
111 * cli/cli-setshow.h (cmd_show_list): Update.
112 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
113 (cmd_show_list): Update.
114 * guile/scm-cmd.c (cmdscm_destroyer): Update.
115 * python/py-cmd.c (cmdpy_destroyer): Update.
116
117 2014-07-24 Tom Tromey <tromey@redhat.com>
118
119 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
120 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
121 const.
122 * command.h (deprecate_cmd): Update.
123 * maint.c (maintenance_do_deprecate): Add casts.
124
125 2014-07-24 Tom Tromey <tromey@redhat.com>
126
127 * cli/cli-decode.c (help_cmd): Make parameter "const".
128 * cli/cli-decode.h (help_cmd): Update.
129
130 2014-07-24 Tom Tromey <tromey@redhat.com>
131
132 * stack.c (up_silently_base, down_silently_base): Make argument
133 const.
134
135 2014-07-24 Tom Tromey <tromey@redhat.com>
136
137 * solib.c (solib_add): Make "pattern" const.
138 * solib.h (solib_add): Update.
139
140 2014-07-24 Tom Tromey <tromey@redhat.com>
141
142 * remote.c (remote_serial_open, print_packet, putpkt)
143 (putpkt_binary): Constify.
144 * remote.h (putpkt): Update.
145
146 2014-07-24 Tom Tromey <tromey@redhat.com>
147
148 * monitor.c (monitor_open): Make "args" const.
149 * monitor.h (monitor_open): Update.
150
151 2014-07-24 Tom Tromey <tromey@redhat.com>
152
153 * maint.c (match_bfd_flags): Make "string" const.
154 (print_bfd_section_info): Remove casts.
155 (print_objfile_section_info): Make "string" const.
156
157 2014-07-24 Tom Tromey <tromey@redhat.com>
158
159 * inf-child.c (inf_child_open_target): Make "arg" const.
160 * inf-child.h (inf_child_open_target): Update.
161
162 2014-07-24 Tom Tromey <tromey@redhat.com>
163
164 * environ.c (unset_in_environ): Make "var" const.
165 * environ.h (unset_in_environ): Update.
166
167 2014-07-24 Tom Tromey <tromey@redhat.com>
168
169 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
170 Make "cmd" const.
171 (scan_filename_with_cleanup): Likewise.
172 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
173 Make arguments const.
174 (restore_command): Update.
175
176 2014-07-24 Pedro Alves <palves@redhat.com>
177
178 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
179
180 2014-07-24 Tom Tromey <tromey@redhat.com>
181 Gary Benson <gbenson@redhat.com>
182
183 * nat/linux-ptrace.c (additional_flags): New global.
184 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
185 additional_flags; don't check GDBSERVER.
186 (linux_ptrace_set_additional_flags): New function.
187 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
188 Declare.
189 * linux-nat.c (_initialize_linux_nat): Call
190 linux_ptrace_set_additional_flags.
191
192 2014-07-24 Tom Tromey <tromey@redhat.com>
193
194 * make-target-delegates (munge_type, write_debugmethod): New
195 functions.
196 (debug_names): New global.
197 ($TARGET_DEBUG_PRINTER): New global.
198 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
199 name.
200 Write debug methods. Generate init_debug_target.
201 * target-debug.h: New file.
202 * target-delegates.c: Rebuild.
203 * target.c: Include target-debug.h.
204 (debug_target): Hoist definition.
205 (target_kill, target_get_section_table, target_memory_map)
206 (target_flash_erase, target_flash_done, target_detach)
207 (target_disconnect, target_wait, target_resume)
208 (target_pass_signals, target_program_signals, target_follow_fork)
209 (target_mourn_inferior, target_search_memory)
210 (target_thread_address_space, target_close)
211 (target_find_new_threads, target_core_of_thread)
212 (target_verify_memory, target_insert_mask_watchpoint)
213 (target_remove_mask_watchpoint): Remove targetdebug code.
214 (debug_to_post_attach, debug_to_prepare_to_store)
215 (debug_to_files_info, debug_to_insert_breakpoint)
216 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
217 (debug_to_region_ok_for_hw_watchpoint)
218 (debug_to_can_accel_watchpoint_condition)
219 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
220 (debug_to_watchpoint_addr_within_range)
221 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
222 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
223 (debug_to_terminal_init, debug_to_terminal_inferior)
224 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
225 (debug_to_terminal_save_ours, debug_to_terminal_info)
226 (debug_to_load, debug_to_post_startup_inferior)
227 (debug_to_insert_fork_catchpoint)
228 (debug_to_remove_fork_catchpoint)
229 (debug_to_insert_vfork_catchpoint)
230 (debug_to_remove_vfork_catchpoint)
231 (debug_to_insert_exec_catchpoint)
232 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
233 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
234 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
235 (setup_target_debug): Call init_debug_target.
236 * target.h (TARGET_DEBUG_PRINTER): New macro.
237 (struct target_ops) <to_resume, to_wait, to_pass_signals,
238 to_program_signals>: Use TARGET_DEBUG_PRINTER.
239
240 2014-07-24 Gary Benson <gbenson@redhat.com>
241
242 * exceptions.h (throw_vfatal): Renamed to...
243 (throw_vquit): New declaration.
244 (throw_quit): Likewise.
245 * exceptions.c (throw_vfatal): Renamed to...
246 (throw_vquit): New function.
247 (throw_quit): Likewise.
248 (throw_error): Call throw_verror rather than throw_it.
249 * utils.h (vfatal): Removed.
250 (fatal): Likewise.
251 * utils.c (vfatal): Removed.
252 (fatal): Likewise.
253 (internal_verror): Replaced call to fatal with call to throw_quit.
254 (quit): Replaced calls to fatal with calls to throw_quit.
255
256 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
257
258 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
259 target_read_code.
260
261 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
262
263 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
264 less than zero in conditional expression.
265
266 2014-07-23 Tom Tromey <tromey@redhat.com>
267
268 * make-target-delegates ($ARGS_PART): Match trailing close paren.
269 ($INTRO_PART): Don't match whitespace.
270 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
271 argument matching.
272 ($METHOD): Add $METHOD_TRAILER.
273 (trim): Rewrite.
274 (scan_target_h): New sub.
275 Change main loop not to collect state.
276 * target-delegates.c: Rebuild.
277
278 2014-07-23 Gary Benson <gbenson@redhat.com>
279
280 * cp-support.c (gdb_demangle): Fix build on systems without
281 sigaltstack.
282
283 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
284
285 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
286 for reference entry value target data value.
287
288 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
289
290 * stack.c (read_frame_arg): Verify value_optimized_out before calling
291 value_available_contents_eq.
292
293 2014-07-22 Pedro Alves <palves@redhat.com>
294
295 * value.c (allocate_optimized_out_value): Don't mark value as
296 non-lazy.
297
298 2014-07-22 Jiong Wang <jiong.wang@arm.com>
299
300 * MAINTAINERS (Write After Approval): Update my email address.
301
302 2014-07-20 Doug Evans <dje@google.com>
303
304 PR server/17147
305 * remote.c (putpkt_binary): Add text to error message.
306
307 2014-07-20 Yao Qi <yao@codesourcery.com>
308
309 * eval.c: Remove "Chill" from comments.
310 * gdbtypes.h: Likewise.
311 * symtab.h: Likewise.
312
313 2014-07-20 Yao Qi <yao@codesourcery.com>
314
315 * std-operator.def: Update comments to TERNOP_SLICE.
316
317 2014-07-20 Yao Qi <yao@codesourcery.com>
318
319 * std-operator.def: Remove BINOP_RANGE.
320 * breakpoint.c (watchpoint_exp_is_const): Update.
321 * expprint.c (dump_subexp_body_standard): Likewise.
322 * eval.c (init_array_element): Remove dead code.
323 (evaluate_subexp_standard): Likewise.
324
325 2014-07-20 Yao Qi <yao@codesourcery.com>
326
327 * std-operator.def: Remove BINOP_IN.
328 * breakpoint.c (watchpoint_exp_is_const): Update.
329 * eval.c (evaluate_subexp_standard): Likewise.
330 * expprint.c (dump_subexp_body_standard): Likewise.
331
332 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
333
334 * microblaze-tdep.c (microblaze_register_names): Add
335 the rshr and rslr register names.
336 (microblaze_gdbarch_init): Use of tdesc_has_registers.
337 Use of tdesc_find_feature. Use of tdesc_data_alloc.
338 Use of tdesc_numbered_register. Use of
339 microblaze_register_g_packet_guesses. Use of
340 tdesc_use_registers. Use of set_gdbarch_register_type.
341 (microblaze_register_g_packet_guesses): New.
342 * microblaze-tdep.h (microblaze_reg_num): Add
343 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
344 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
345 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
346 * features/microblaze-core.xml: New file.
347 * features/microblaze-stack-protect.xml: New file.
348 * features/microblaze-with-stack-protect.c: New file.
349 * features/microblaze-with-stack-protect.xml: New file.
350 * features/microblaze.xml: New file.
351 * features/microblaze.c: New file.
352 * features/Makefile (microblaze-with-stack-protect): Add
353 microblaze-with-stack-protect microblaze and microblaze-expedite.
354 * regformats/microblaze-with-stack-protect.dat: New file.
355 * regformats/microblaze.dat: New file.
356 * doc/gdb.texinfo (MicroBlaze Features): Added.
357
358 2014-07-18 Tom Tromey <tromey@redhat.com>
359
360 * exec.c (exec_ops): Now static.
361 * exec.h (exec_ops): Don't declare.
362
363 2014-07-18 Tom Tromey <tromey@redhat.com>
364
365 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
366 to find_target_beneath.
367 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
368 find_target_beneath.
369 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
370
371 2014-07-18 Tom Tromey <tromey@redhat.com>
372
373 PR gdb/17130:
374 * utils.c (quit): Use target_supports_terminal_ours.
375 * target.h (target_supports_terminal_ours): Declare.
376 * target.c (target_supports_delete_record): Don't check
377 to_delete_record against NULL.
378 (target_supports_terminal_ours): New function.
379
380 2014-07-18 Tom Tromey <tromey@redhat.com>
381
382 PR gdb/17130:
383 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
384 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
385 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
386 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
387 * windows-nat.c (windows_xfer_partial): Always delegate.
388 * record-btrace.c (record_btrace_xfer_partial): Simplify
389 delegation.
390 (record_btrace_fetch_registers, record_btrace_store_registers)
391 (record_btrace_prepare_to_store, record_btrace_resume)
392 (record_btrace_wait, record_btrace_find_new_threads)
393 (record_btrace_thread_alive): Likewise.
394 * procfs.c (procfs_xfer_partial): Always delegate.
395 * corelow.c (core_xfer_partial): Always delegate.
396 * sol-thread.c (sol_find_new_threads): Simplify delegation.
397
398 2014-07-18 Tom Tromey <tromey@redhat.com>
399
400 * exec.c (exec_make_note_section): Move earlier.
401
402 2014-07-17 Doug Evans <dje@google.com>
403
404 PR gdb/17170
405 * maint.c (count_symtabs_and_blocks): Handle NULL
406 current_program_space.
407 (report_command_stats): Check global enabled flag in addition to
408 recorded enabled flag.
409 (make_command_stats_cleanup): Handle msg_type == 0, startup.
410
411 2014-07-16 Pedro Alves <palves@redhat.com>
412
413 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
414
415 2014-07-16 Tom Tromey <tromey@redhat.com>
416
417 * target.h (struct target_ops) <to_delete_record>: Reformat
418 comment.
419
420 2014-07-16 Tom Tromey <tromey@redhat.com>
421
422 * target-delegates.c: Rebuild.
423
424 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
425
426 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
427 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
428 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
429 (avr_pointer_to_address): Likewise.
430 (avr_address_class_type_flags): New function.
431 (avr_address_class_type_flags_to_name): Likewise.
432 (avr_address_class_name_to_type_flags): Likewise.
433 (avr_gdbarch_init): Set address_class_type_flags,
434 address_class_type_flags_to_name and
435 address_class_name_to_type_flags.
436
437 2014-07-15 Pedro Alves <palves@redhat.com>
438
439 * linux-nat.c (kill_callback): Save errno and work with saved
440 copy.
441
442 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
443
444 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
445
446 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
447
448 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
449 breakpoint support correctly.
450
451 2014-07-14 Pedro Alves <palves@redhat.com>
452
453 * utils.c (prompt_for_continue): Call target_terminal_ours.
454
455 2014-07-14 Pedro Alves <palves@redhat.com>
456
457 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
458 catch_errors. Don't re-enable stdin or notify observers where,
459 and rethrow error.
460 (fetch_inferior_event_wrapper): Delete.
461
462 2014-07-14 Pedro Alves <palves@redhat.com>
463
464 PR gdb/17072
465 * top.c: Include "inf-loop.h".
466 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
467 field.
468 (gdb_readline_wrapper_cleanup): Make the target async again, if it
469 was async before.
470 (gdb_readline_wrapper): Store whether the target is async, and
471 make it sync.
472
473 2014-07-14 Pedro Alves <palves@redhat.com>
474
475 PR gdb/17072
476 * top.c (gdb_readline_wrapper_line): Tweak comment.
477 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
478 the input handler callback.
479
480 2014-07-14 Pedro Alves <palves@redhat.com>
481
482 PR gdb/17072
483 * main.c: Include event-top.h.
484 (handle_command_errors): New function.
485 (catch_command_errors, catch_command_errors_const): Use it.
486
487 2014-07-14 Pedro Alves <palves@redhat.com>
488
489 * exceptions.c (catch_command_errors, catch_command_errors_const):
490 Moved to main.c.
491 * exceptions.h (catch_command_errors_ftype)
492 (catch_command_errors_const_ftype): Moved to main.c.
493 (catch_command_errors, catch_command_errors_const): Delete
494 declarations.
495 * main.c (catch_command_errors_ftype)
496 (catch_command_errors_const_ftype): Moved here from exceptions.h.
497 (catch_command_errors, catch_command_errors_const)): Moved here
498 from exceptions.c and make static.
499
500 2014-07-14 Pedro Alves <palves@redhat.com>
501
502 * exceptions.c (print_any_exception): Delete.
503 (catch_exceptions_with_msg): Use exception_print instead of
504 print_any_exception.
505 (catch_errors): Use exception_fprintf instead of
506 print_any_exception.
507 (catch_command_errors, catch_command_errors_const): Use
508 exception_print instead of print_any_exception.
509
510 2014-07-14 Pedro Alves <palves@redhat.com>
511
512 * infcall.c (run_inferior_call): Set 'sync_execution' while
513 running the inferior call.
514
515 2014-07-14 Pedro Alves <palves@redhat.com>
516
517 * value.c (value_contents_equal): Delete function.
518 * value.h (value_contents_equal): Delete declaration.
519
520 2014-07-14 Tom Tromey <tromey@redhat.com>
521
522 PR exp/17106:
523 * gdbtypes.c (is_dynamic_type_internal): New function, from
524 is_dynamic_type.
525 (is_dynamic_type): Rewrite.
526 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
527 (resolve_dynamic_struct): Likewise.
528 (resolve_dynamic_type_internal): New function, from
529 resolve_dynamic_type.
530 (resolve_dynamic_type): Rewrite.
531
532 2014-07-14 Tom Tromey <tromey@redhat.com>
533
534 * target.c (target_require_runnable): Also check record_stratum.
535 Update comment.
536
537 2014-07-11 Yao Qi <yao@codesourcery.com>
538
539 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
540 thumb_instruction_restores_sp return true.
541
542 2014-07-11 Yao Qi <yao@codesourcery.com>
543
544 * arm-tdep.c (thumb_instruction_restores_sp): New function.
545 (thumb_in_function_epilogue_p): Call
546 thumb_instruction_restores_sp.
547
548 2014-07-11 Yao Qi <yao@codesourcery.com>
549
550 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
551 'add sp, #imm'.
552 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
553
554 2014-07-11 Gary Benson <gbenson@redhat.com>
555
556 * amd64-linux-nat.c (gdbcore.h): Remove include.
557 (regset.h): Likewise.
558 (nat/linux-btrace.h): Likewise.
559 (btrace.h): Likewise.
560 (gdb_assert.h): Likewise.
561 (string.h): Likewise.
562 (sys/uio.h): Likewise.
563 (sys/debugreg.h): Likewise.
564 (sys/syscall.h): Likewise.
565 (sys/procfs.h): Likewise.
566 (sys/user.h): Likewise.
567 (asm/ptrace.h): Likewise.
568 (i386-nat.h): Likewise.
569 * i386-linux-nat.c (i386-nat.h): Likewise.
570 (regset.h): Likewise.
571 (target.h): Likewise.
572 (linux-nat.h): Likewise.
573 (nat/linux-btrace.h): Likewise.
574 (btrace.h): Likewise.
575 (gdb_assert.h): Likewise.
576 (string.h): Likewise.
577 (sys/uio.h): Likewise.
578 (sys/user.h): Likewise.
579 (sys/procfs.h): Likewise.
580 (sys/reg.h): Likewise.
581 (sys/debugreg.h): Likewise.
582 (ORIG_EAX): Remove definition.
583
584 2014-07-11 Gary Benson <gbenson@redhat.com>
585
586 * i386-linux-nat.h: New file.
587 * x86-linux-nat.h: Likewise.
588 * x86-linux-nat.c: Likewise.
589 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
590 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
591 * config/i386/linux64.mh (NATDEPFILES): Likewise.
592 * amd64-linux-nat.c (x86-linux-nat.h): New include.
593 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
594 (PTRACE_SETREGSET): Likewise.
595 (arch_lwp_info): Now in x86-linux-nat.c.
596 (have_ptrace_getregset): Now in x86-linux-nat.h.
597 (x86_linux_dr_get): Now in x86-linux-nat.c.
598 (x86_linux_dr_set): Likewise.
599 (x86_linux_dr_get_addr): Likewise.
600 (x86_linux_dr_get_control): Likewise.
601 (x86_linux_dr_get_status): Likewise.
602 (update_debug_registers_callback): Likewise.
603 (x86_linux_dr_set_control): Likewise.
604 (x86_linux_dr_set_addr): Likewise.
605 (x86_linux_prepare_to_resume): Likewise.
606 (x86_linux_new_thread): Likewise.
607 (x86_linux_new_fork): Likewise.
608 (x86_linux_get_thread_area): Likewise.
609 (super_post_startup_inferior): Likewise.
610 (x86_linux_child_post_startup_inferior): Likewise.
611 (AMD64_LINUX_USER64_CS): Likewise.
612 (AMD64_LINUX_X32_DS): Likewise.
613 (x86_linux_read_description): Likewise.
614 (x86_linux_enable_btrace): Likewise.
615 (x86_linux_disable_btrace): Likewise.
616 (x86_linux_teardown_btrace): Likewise.
617 (x86_linux_read_btrace): Likewise.
618 (x86_linux_create_target): Likewise.
619 (x86_linux_add_target): Likewise.
620 * i386-linux-nat.c (x86-linux-nat.h): New include.
621 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
622 (PTRACE_SETREGSET): Likewise.
623 (arch_lwp_info): Now in x86-linux-nat.c.
624 (have_ptrace_getregset): Now in x86-linux-nat.h.
625 (x86_linux_dr_get): Now in x86-linux-nat.c.
626 (x86_linux_dr_set): Likewise.
627 (x86_linux_dr_get_addr): Likewise.
628 (x86_linux_dr_get_control): Likewise.
629 (x86_linux_dr_get_status): Likewise.
630 (update_debug_registers_callback): Likewise.
631 (x86_linux_dr_set_control): Likewise.
632 (x86_linux_dr_set_addr): Likewise.
633 (x86_linux_prepare_to_resume): Likewise.
634 (x86_linux_new_thread): Likewise.
635 (x86_linux_new_fork): Likewise.
636 (x86_linux_get_thread_area): Likewise.
637 (super_post_startup_inferior): Likewise.
638 (x86_linux_child_post_startup_inferior): Likewise.
639 (AMD64_LINUX_USER64_CS): Likewise.
640 (AMD64_LINUX_X32_DS): Likewise.
641 (x86_linux_read_description): Likewise.
642 (x86_linux_enable_btrace): Likewise.
643 (x86_linux_disable_btrace): Likewise.
644 (x86_linux_teardown_btrace): Likewise.
645 (x86_linux_read_btrace): Likewise.
646 (x86_linux_create_target): Likewise.
647 (x86_linux_add_target): Likewise.
648
649 2014-07-11 Gary Benson <gbenson@redhat.com>
650
651 * amd64-linux-nat.c: Comment and whitespace changes.
652 * i386-linux-nat.c: Comment and whitespace changes.
653
654 2014-07-11 Gary Benson <gbenson@redhat.com>
655
656 * amd64-linux-nat.c (x86_linux_create_target): New function.
657 (x86_linux_add_target): Likewise.
658 (_initialize_amd64_linux_nat): Delegate to the above new functions.
659 * i386-linux-nat.c (x86_linux_create_target): New function.
660 (x86_linux_add_target): Likewise.
661 (_initialize_i386_linux_nat): Delegate to the above new functions.
662
663 2014-07-11 Gary Benson <gbenson@redhat.com>
664
665 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
666 (ps_get_thread_area): Delegate to the above in 32-bit mode.
667 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
668 (ps_get_thread_area): Delegate to the above.
669
670 2014-07-11 Gary Benson <gbenson@redhat.com>
671
672 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
673 x86_linux_read_description. All uses updated. amd64-specific
674 code conditionalized. Conditionalized i386-specific code added.
675 Redundant cast removed.
676 * i386-linux-nat.c (i386_linux_read_description): Renamed to
677 x86_linux_read_description. All uses updated. i386-specific
678 code conditionalized. Conditionalized amd64-specific code added.
679 One sizeof replaced with the actual type it is describing.
680
681 2014-07-11 Gary Benson <gbenson@redhat.com>
682
683 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
684 x86_linux_dr_get. All uses updated.
685 (amd64_linux_dr_set): Renamed to
686 x86_linux_dr_set. All uses updated.
687 (amd64_linux_dr_get_addr): Renamed to
688 x86_linux_dr_get_addr. All uses updated.
689 (amd64_linux_dr_get_control): Renamed to
690 x86_linux_dr_get_control. All uses updated.
691 (amd64_linux_dr_get_status): Renamed to
692 x86_linux_dr_get_status. All uses updated.
693 (amd64_linux_dr_set_control): Renamed to
694 x86_linux_dr_set_control. All uses updated.
695 (amd64_linux_dr_set_addr): Renamed to
696 x86_linux_dr_set_addr. All uses updated.
697 (amd64_linux_prepare_to_resume): Renamed to
698 x86_linux_prepare_to_resume. All uses updated.
699 (amd64_linux_new_thread): Renamed to
700 x86_linux_new_thread. All uses updated.
701 (amd64_linux_new_fork): Renamed to
702 x86_linux_new_fork. All uses updated.
703 (amd64_linux_child_post_startup_inferior): Renamed to
704 x86_linux_child_post_startup_inferior. All uses updated.
705 (amd64_linux_enable_btrace): Renamed to
706 x86_linux_enable_btrace. All uses updated.
707 (amd64_linux_disable_btrace): Renamed to
708 x86_linux_disable_btrace. All uses updated.
709 (amd64_linux_teardown_btrace): Renamed to
710 x86_linux_teardown_btrace. All uses updated.
711 (amd64_linux_read_btrace): Renamed to
712 x86_linux_read_btrace. All uses updated.
713 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
714 x86_linux_dr_get. All uses updated.
715 (i386_linux_dr_set): Renamed to
716 x86_linux_dr_set. All uses updated.
717 (i386_linux_dr_get_addr): Renamed to
718 x86_linux_dr_get_addr. All uses updated.
719 (i386_linux_dr_get_control): Renamed to
720 x86_linux_dr_get_control. All uses updated.
721 (i386_linux_dr_get_status): Renamed to
722 x86_linux_dr_get_status. All uses updated.
723 (i386_linux_dr_set_control): Renamed to
724 x86_linux_dr_set_control. All uses updated.
725 (i386_linux_dr_set_addr): Renamed to
726 x86_linux_dr_set_addr. All uses updated.
727 (i386_linux_prepare_to_resume): Renamed to
728 x86_linux_prepare_to_resume. All uses updated.
729 (i386_linux_new_thread): Renamed to
730 x86_linux_new_thread. All uses updated.
731 (i386_linux_new_fork): Renamed to
732 x86_linux_new_fork. All uses updated.
733 (i386_linux_child_post_startup_inferior): Renamed to
734 x86_linux_child_post_startup_inferior. All uses updated.
735 (i386_linux_enable_btrace): Renamed to
736 x86_linux_enable_btrace. All uses updated.
737 (i386_linux_disable_btrace): Renamed to
738 x86_linux_disable_btrace. All uses updated.
739 (i386_linux_teardown_btrace): Renamed to
740 x86_linux_teardown_btrace. All uses updated.
741 (i386_linux_read_btrace): Renamed to
742 x86_linux_read_btrace. All uses updated.
743
744 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
745
746 * remote.c (extended_remote_post_attach): New function.
747 (init_extended_remote_ops): Install it as to_post_attach method.
748
749 2014-07-09 Pedro Alves <palves@redhat.com>
750
751 * infcmd.c (attach_command_post_wait): Don't call
752 target_terminal_inferior here.
753 (attach_command): Call it here instead.
754
755 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
758 field.
759 * c-varobj.c (c_is_path_expr_parent): New function, moved core
760 from varobj.c, with additional checks.
761 (c_varobj_ops): Fill in is_path_expr_parent field.
762 (cplus_varobj_ops): Fill in is_path_expr_parent field.
763 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
764 field.
765 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
766 ops method.
767 (varobj_default_is_path_expr_parent): New function.
768 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
769 (varobj_default_is_path_expr_parent): Declare new function.
770
771 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
772
773 * infcmd.c (finish_backward): Turn internal error into normal error.
774
775 2014-07-07 Pedro Alves <palves@redhat.com>
776
777 PR gdb/17096
778 * remote.c (async_handle_remote_sigint)
779 (async_handle_remote_sigint_twice): Call
780 gdb_call_async_signal_handler instead of
781 mark_async_signal_handler.
782
783 2014-07-07 Tom Tromey <tromey@redhat.com>
784
785 * target-delegates.c: Rebuild.
786 * target.c (target_info_record): Remove.
787 * record.c (info_record_command): Unconditionally call
788 to_info_record.
789 * target.h (struct target_ops) <to_info_record>: Use
790 TARGET_DEFAULT_IGNORE.
791 (target_info_record): Remove.
792
793 2014-07-07 Tom Tromey <tromey@redhat.com>
794
795 * target.h (struct target_ops) <to_get_thread_local_address>: Use
796 TARGET_DEFAULT_NORETURN.
797 * target.c (generic_tls_error): New function.
798 (target_translate_tls_address): Don't search target stack.
799 * target-delegates.c: Rebuild.
800 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
801 stack.
802 * linux-thread-db.c (thread_db_get_thread_local_address):
803 Unconditionally call beneath target.
804
805 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
806
807 * cli/cli-logging.c (pop_output_files): Assign targerr to
808 gdb_stdtargerr.
809
810 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
811
812 * MAINTAINERS (Write After Approval): Update my email address.
813
814 2014-07-02 Gary Benson <gbenson@redhat.com>
815
816 * proc-service.c (ps_xfer_memory): Update comment.
817 (ps_pstop): Remove unused function.
818 (ps_pcontinue): Likewise.
819 (ps_lstop): Likewise.
820 (ps_lcontinue): Likewise.
821 (ps_lgetxregsize): Likewise.
822 (ps_lgetxregs): Likewise.
823 (ps_lsetxregs): Likewise.
824 (ps_plog): Likewise.
825 (ps_ptread): Likewise.
826 (ps_ptwrite): Likewise.
827
828 2014-07-01 Mark Wielaard <mjw@redhat.com>
829
830 * dwarf2read.c (add_array_cv_type): New function.
831 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
832 (read_tag_volatile_type): Likewise.
833
834 2014-07-01 Tom Tromey <tromey@redhat.com>
835
836 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
837 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
838 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
839 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
840 * command.h (cmd_cfunc_ftype): Move earlier.
841 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
842 (add_com, add_info): Use cmd_cfunc_ftype.
843
844 2014-06-30 Tom Tromey <tromey@redhat.com>
845
846 * symtab.c (operator_chars): Make parameters and return type
847 const.
848 (file_matches): Make "files" const.
849 (struct search_symbols_data) <files>: Now const.
850 (search_symbols): Make "regexp" and "files" parameters const.
851 Update.
852 (symtab_symbol_info): Remove cast.
853 (rbreak_command): Update.
854 * symtab.h (search_symbols): Update.
855
856 2014-06-27 Yao Qi <yao@codesourcery.com>
857
858 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
859 Change parameter type to 'struct thread_info *'. Caller
860 updated.
861 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
862 Update declaration.
863 * dummy-frame.c (struct dummy_frame_id): New.
864 (dummy_frame_id_eq): New function.
865 (struct dummy_frame) <id>: Change its type to 'struct
866 dummy_frame_id'.
867 (dummy_frame_push): Add parameter ptid and save it in
868 dummy_frame_id.
869 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
870 inferior_ptid.
871 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
872 to inferior_ptid.
873 (lookup_dummy_frame): Change parameter type to 'struct
874 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
875 instead of frame_id_eq.
876 (dummy_frame_pop): Add parameter ptid. Callers updated.
877 Update comments. Compose dummy_frame_id and pass it to
878 lookup_dummy_frame.
879 (dummy_frame_discard): Add parameter ptid.
880 (dummy_frame_sniffer): Compose dummy_frame_id and call
881 dummy_frame_id_eq instead of frame_id_eq.
882 (fprint_dummy_frames): Print ptid.
883 * dummy-frame.h: Remove comments.
884 (dummy_frame_push): Add ptid in declaration.
885 (dummy_frame_pop, dummy_frame_discard): Likewise.
886
887 2014-06-26 Tom Tromey <tromey@redhat.com>
888
889 * cli/cli-cmds.c (error_no_arg): Make "why" const.
890 * command.h (error_no_arg): Update.
891
892 2014-06-26 Tom Tromey <tromey@redhat.com>
893
894 * cli/cli-setshow.c (do_set_command): Make "arg" const.
895 (do_show_command): Make "arg" const.
896 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
897
898 2014-06-26 Tom Tromey <tromey@redhat.com>
899
900 * record-full.c (record_full_get_bookmark): Make "args" const.
901 (record_full_goto_bookmark): Make "raw_bookmark" const.
902 * record.c (record_goto): New function.
903 (cmd_record_goto): Use it. Now static.
904 * record.h (record_goto): Declare.
905 (cmd_record_goto): Remove declaration.
906 * target-delegates.c: Rebuild.
907 * target.h (struct target_ops) <to_get_bookmark,
908 to_goto_bookmark>: Make parameter const.
909
910 2014-06-26 Tom Tromey <tromey@redhat.com>
911
912 * defs.h (generic_load): Update.
913 * m32r-rom.c (m32r_load_gen): Make "filename" const.
914 * monitor.c (monitor_load): Make "args" const.
915 * remote-m32r-sdi.c (m32r_load): Make "args" const.
916 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
917 const.
918 (mips_load): Make "file" const.
919 * remote-sim.c (gdbsim_load): Make "args" const.
920 * remote.c (remote_load): Make "name" const.
921 * symfile.c (generic_load): Make "args" const.
922 * target-delegates.c: Rebuild.
923 * target.c (target_load): Make "arg" const.
924 (debug_to_load): Make "args" const.
925 * target.h (struct target_ops) <to_load>: Make parameter const.
926 (target_load): Update.
927
928 2014-06-26 Tom Tromey <tromey@redhat.com>
929
930 PR symtab/16902:
931 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
932 (dwarf2_physname, read_partial_die)
933 (guess_partial_die_structure_name, fixup_partial_die)
934 (guess_full_die_structure_name, anonymous_struct_prefix)
935 (dwarf2_name): Use per-BFD obstack.
936
937 2014-06-26 Yao Qi <yao@codesourcery.com>
938
939 * dummy-frame.c (dummy_frame_sniffer): Move local variables
940 dummyframe and this_id into inner block below.
941
942 2014-06-26 Yao Qi <yao@codesourcery.com>
943
944 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
945 with "signal_pass[0]" in the initialization of signal_pass.
946
947 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
948
949 * record-btrace.c (record_btrace_generating_corefile)
950 (record_btrace_prepare_to_generate_core)
951 (record_btrace_done_generating_core): New.
952 (record_btrace_xfer_partial, record_btrace_fetch_registers)
953 (record_btrace_store_registers, record_btrace_prepare_to_store):
954 Forward request when generating a core file.
955 (record_btrace_open): Set record_btrace_generating_corefile to zero.
956 (init_record_btrace_ops): Set to_prepare_to_generate_core and
957 to_done_generating_core.
958
959 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
960
961 * target.h (target_ops) <to_prepare_to_generate_core>
962 <to_done_generating_core>: New.
963 (target_prepare_to_generate_core, target_done_generating_core): New.
964 * target.c (target_prepare_to_generate_core)
965 (target_done_generating_core): New.
966 * target-delegates.c: Regenerate.
967 * gcore.c: (write_gcore_file): Rename to ...
968 (write_gcore_file_1): ...this.
969 (write_gcore_file): Call target_prepare_to_generate_core
970 and target_done_generating_core.
971
972 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
973
974 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
975 * gcore.c (write_gcore_file): Free memory returned from
976 make_corefile_notes.
977 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
978 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
979
980 2014-06-24 Yao Qi <yao@codesourcery.com>
981
982 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
983 (arm_linux_init_abi): Set skip_trampoline_code with
984 gdbarch_skip_trampoline_code instead of
985 find_solib_trampoline_target.
986
987 2014-06-24 Yao Qi <yao@codesourcery.com>
988
989 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
990 arm_skip_bx_reg returns non-zero.
991
992 2014-06-24 Yao Qi <yao@codesourcery.com>
993
994 * arm-tdep.c (arm_skip_bx_reg): New function.
995 (arm_skip_stub): Call arm_skip_bx_reg.
996
997 2014-06-23 Don Breazeal <donb@codesourcery.com>
998
999 * MAINTAINERS: Add myself as write-after-approval maintainer.
1000
1001 2014-06-23 Pedro Alves <palves@redhat.com>
1002
1003 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1004 DR_CONTROL before setting DR0..DR3.
1005 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1006 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1007 bits of DR_CONTROL related to the debug register slot being
1008 disabled. If all slots are vacant, clear local slowdown as well,
1009 and assert DR_CONTROL is 0.
1010
1011 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1012
1013 * python/lib/gdb/command/xmethods.py
1014 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1015 current progspace only if the string "progspace" matches LOCUS_RE.
1016
1017 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1018
1019 Fix --with-system-readline with readline-6.3 patch 5.
1020 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1021 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1022 types.
1023
1024 2014-06-20 Tom Tromey <tromey@redhat.com>
1025
1026 * dwarf2read.c (dw2_get_real_path): Use correct type in
1027 OBSTACK_CALLOC.
1028 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1029
1030 2014-06-20 Gary Benson <gbenson@redhat.com>
1031
1032 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1033 * common/glibc_thread_db.h: Likewise.
1034 * common/i386-cpuid.h: Likewise.
1035 * common/i386-gcc-cpuid.h: Likewise.
1036 * common/linux-btrace.h: Likewise.
1037 * common/linux-osdata.h: Likewise.
1038 * common/linux-procfs.h: Likewise.
1039 * common/linux-ptrace.h: Likewise.
1040 * common/mips-linux-watch.h: Likewise.
1041 * common/linux-btrace.c: Moved to nat.
1042 * common/linux-osdata.c: Likewise.
1043 * common/linux-procfs.c: Likewise.
1044 * common/linux-ptrace.c: Likewise.
1045 * common/mips-linux-watch.c: Likewise.
1046 * nat/gdb_thread_db.h: Moved from common.
1047 * nat/glibc_thread_db.h: Likewise.
1048 * nat/i386-cpuid.h: Likewise.
1049 * nat/i386-gcc-cpuid.h: Likewise.
1050 * nat/linux-btrace.c: Likewise.
1051 * nat/linux-btrace.h: Likewise.
1052 * nat/linux-osdata.c: Likewise.
1053 * nat/linux-osdata.h: Likewise.
1054 * nat/linux-procfs.c: Likewise.
1055 * nat/linux-procfs.h: Likewise.
1056 * nat/linux-ptrace.c: Likewise.
1057 * nat/linux-ptrace.h: Likewise.
1058 * nat/mips-linux-watch.c: Likewise.
1059 * nat/mips-linux-watch.h: Likewise.
1060 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1061 (object file files): Reordered.
1062 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1063 of glibc_thread_db.h.
1064
1065 2014-06-20 Gary Benson <gbenson@redhat.com>
1066
1067 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1068 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1069 (i386_dr_low): Likewise.
1070 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1071 (i386_dr_low_set_addr): Likewise.
1072 (i386_dr_low_get_addr): Likewise.
1073 (i386_dr_low_can_set_control): Likewise.
1074 (i386_dr_low_set_control): Likewise.
1075 (i386_dr_low_get_control): Likewise.
1076 (i386_dr_low_get_status): Likewise.
1077 (i386_get_debug_register_length): Likewise.
1078 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1079 (i386_dr_low): Likewise.
1080 * nat/i386-dregs.c (i386-low.h): Remove include.
1081 (i386-nat.h): Likewise.
1082 (nat/i386-dregs.h): New include.
1083 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1084 (i386_dr_low_set_addr): Likewise.
1085 (i386_dr_low_get_addr): Likewise.
1086 (i386_dr_low_can_set_control): Likewise.
1087 (i386_dr_low_set_control): Likewise.
1088 (i386_dr_low_get_control): Likewise.
1089 (i386_dr_low_get_status): Likewise.
1090 (i386_get_debug_register_length): Likewise.
1091 (debug_hw_points): Likewise.
1092
1093 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1094
1095 * Makefile.in (SFILES): Add d-exp.y.
1096 (YYFILES): Add d-exp.c.
1097 (YYOBJ): Add d-exp.o.
1098 (local-maintainer-clean): Delete d-exp.c.
1099 * d-exp.y: New file.
1100 * d-lang.h (d_parse): New declaration.
1101 (d_error): New declaration.
1102 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1103 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1104 PREC_ORDER operators.
1105 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1106
1107 2014-06-19 Yao Qi <yao@codesourcery.com>
1108
1109 * gdbthread.h (any_running): Remove the declaration.
1110 * thread.c (any_running): Remove.
1111
1112 2014-06-19 Yao Qi <yao@codesourcery.com>
1113
1114 * gdbthread.h (struct thread_info) <state>: Change its type to
1115 'enum thread_state'. Update comments.
1116
1117 2014-06-19 Pedro Alves <palves@redhat.com>
1118
1119 * gdbthread.h (ALL_THREADS): Delete.
1120 (ALL_NON_EXITED_THREADS): New macro.
1121 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1122 instead of ALL_THREADS.
1123 * infrun.c (find_thread_needs_step_over)
1124 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1125 instead of ALL_THREADS.
1126 * record-btrace.c (record_btrace_open)
1127 (record_btrace_stop_recording, record_btrace_close)
1128 (record_btrace_is_replaying, record_btrace_resume)
1129 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1130 * remote.c (append_pending_thread_resumptions): Likewise.
1131 * thread.c (thread_apply_all_command): Likewise.
1132
1133 2014-06-19 Gary Benson <gbenson@redhat.com>
1134
1135 * i386-nat.c (i386_stopped_by_watchpoint):
1136 Use i386_dr_stopped_by_watchpoint.
1137 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1138 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1139
1140 2014-06-19 Gary Benson <gbenson@redhat.com>
1141
1142 * nat/i386-dregs.c: New file.
1143 * Makefile.in (i386-dregs.o): New rule.
1144 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1145 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1146 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1147 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1148 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1149 * config/i386/go32.mh (NATDEPFILES): Likewise.
1150 * config/i386/linux.mh (NATDEPFILES): Likewise.
1151 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1152 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1153 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1154 * i386-nat.h (debug_hw_points): New declaration.
1155 * i386-nat.c (breakpoint.h): Remove include.
1156 (command.h): Likewise.
1157 (target.h): Likewise.
1158 (gdb_assert.h): Likewise.
1159 (debug_hw_points): Made nonstatic.
1160 (debug_printf): Now in i386-dregs.c.
1161 (TARGET_HAS_DR_LEN_8): Likewise.
1162 (DR_CONTROL_SHIFT): Likewise.
1163 (DR_CONTROL_SIZE): Likewise.
1164 (DR_RW_EXECUTE): Likewise.
1165 (DR_RW_WRITE): Likewise.
1166 (DR_RW_READ): Likewise.
1167 (DR_RW_IORW): Likewise.
1168 (DR_LEN_1): Likewise.
1169 (DR_LEN_2): Likewise.
1170 (DR_LEN_4): Likewise.
1171 (DR_LEN_8): Likewise.
1172 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1173 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1174 (DR_ENABLE_SIZE): Likewise.
1175 (DR_LOCAL_SLOWDOWN): Likewise.
1176 (DR_GLOBAL_SLOWDOWN): Likewise.
1177 (DR_CONTROL_RESERVED): Likewise.
1178 (I386_DR_CONTROL_MASK): Likewise.
1179 (I386_DR_VACANT): Likewise.
1180 (I386_DR_LOCAL_ENABLE): Likewise.
1181 (I386_DR_GLOBAL_ENABLE): Likewise.
1182 (I386_DR_DISABLE): Likewise.
1183 (I386_DR_SET_RW_LEN): Likewise.
1184 (I386_DR_GET_RW_LEN): Likewise.
1185 (I386_DR_WATCH_HIT): Likewise.
1186 (i386_wp_op_t): Likewise.
1187 (i386_show_dr): Likewise.
1188 (i386_length_and_rw_bits): Likewise.
1189 (i386_insert_aligned_watchpoint): Likewise.
1190 (i386_remove_aligned_watchpoint): Likewise.
1191 (i386_handle_nonaligned_watchpoint): Likewise.
1192 (i386_update_inferior_debug_regs): Likewise.
1193 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1194 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1195 (i386_region_ok_for_watchpoint):
1196 Use i386_dr_region_ok_for_watchpoint.
1197 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1198
1199 2014-06-19 Gary Benson <gbenson@redhat.com>
1200
1201 * i386-nat.c (i386_insert_hw_breakpoint): Use
1202 i386_insert_watchpoint.
1203 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1204
1205 2014-06-19 Gary Benson <gbenson@redhat.com>
1206
1207 * i386-nat.c (i386_dr_show): Renamed to
1208 i386_show_dr and made static. All uses updated.
1209 (i386_dr_length_and_rw_bits): Renamed to
1210 i386_length_and_rw_bits and made static.
1211 All uses updated.
1212 (i386_dr_insert_aligned_watchpoint): Renamed to
1213 i386_insert_aligned_watchpoint and made static.
1214 All uses updated.
1215 (i386_dr_remove_aligned_watchpoint): Renamed to
1216 i386_remove_aligned_watchpoint and made static.
1217 All uses updated.
1218 (i386_dr_update_inferior_debug_regs): Renamed to
1219 i386_update_inferior_debug_regs and made static.
1220 All uses updated.
1221 * nat/i386-dregs.h (i386_dr_show): Removed.
1222 (i386_dr_length_and_rw_bits): Likewise.
1223 (i386_dr_insert_aligned_watchpoint): Likewise.
1224 (i386_dr_remove_aligned_watchpoint): Likewise.
1225 (i386_dr_update_inferior_debug_regs): Likewise.
1226
1227 2014-06-19 Gary Benson <gbenson@redhat.com>
1228
1229 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1230 * configure: Regenerate.
1231 * config.in: Likewise.
1232 * main.c (signal.h): New include.
1233 (setup_alternate_signal_stack): New function.
1234 (captured_main): Call the above.
1235 * cp-support.c (signal.h): New include.
1236 (catch_demangler_crashes): New flag.
1237 (SIGJMP_BUF): New define.
1238 (SIGSETJMP): Likewise.
1239 (SIGLONGJMP): Likewise.
1240 (gdb_demangle_jmp_buf): New static global.
1241 (gdb_demangle_attempt_core_dump): Likewise.
1242 (gdb_demangle_signal_handler): New function.
1243 (gdb_demangle): If catch_demangler_crashes is set, install the
1244 above signal handler before calling bfd_demangle, and restore
1245 the original signal handler afterwards. Display the offending
1246 symbol and call demangler_warning the first time a segmentation
1247 fault is caught.
1248 (_initialize_cp_support): New maint set/show command.
1249
1250 2014-06-19 Gary Benson <gbenson@redhat.com>
1251
1252 * utils.h (resource_limit_kind): New enum.
1253 (can_dump_core): New declaration.
1254 (warn_cant_dump_core): Likewise.
1255 (dump_core): Likewise.
1256 * utils.c (dump_core): Made nonstatic. Added new
1257 parameter "limit_kind".
1258 (can_dump_core): Made nonstatic. Moved printing code to...
1259 (warn_cant_dump_core): New function.
1260 (can_dump_core_warn): Likewise.
1261 (internal_vproblem): Replace calls to can_dump_core with
1262 calls to can_dump_core_warn. Supply new argument to each.
1263
1264 2014-06-19 Gary Benson <gbenson@redhat.com>
1265
1266 * utils.h (demangler_vwarning): New declaration.
1267 (demangler_warning): Likewise.
1268 * utils.c (struct internal_problem)
1269 <user_settable_should_quit>: New field.
1270 <user_settable_should_dump_core>: Likewise
1271 (internal_error_problem): Add values for above new fields.
1272 (internal_warning_problem): Likewise.
1273 (demangler_warning_problem): New static global.
1274 (demangler_vwarning): New function.
1275 (demangler_warning): Likewise.
1276 (add_internal_problem_command): Selectively add commands.
1277 (_initialize_utils): New internal problem command.
1278 * maint.c (maintenance_demangler_warning): New function.
1279 (_initialize_maint_cmds): New command.
1280
1281 2014-06-18 Tom Tromey <tromey@redhat.com>
1282
1283 * f-valprint.c (info_common_command_for_block): Update.
1284 * symtab.h (struct general_symbol_info) <common_block>: Now
1285 const.
1286
1287 2014-06-18 Tom Tromey <tromey@redhat.com>
1288
1289 * symtab.h (struct symtab) <blockvector>: Now const.
1290 * ada-lang.c (ada_add_global_exceptions): Update.
1291 * buildsym.c (augment_type_symtab): Update.
1292 * dwarf2read.c (dw2_lookup_symbol): Update.
1293 * jit.c (finalize_symtab): Update.
1294 * jv-lang.c (add_class_symtab_symbol): Update.
1295 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1296 Update.
1297 * objfiles.c (objfile_relocate1): Update.
1298 * psymtab.c (lookup_symbol_aux_psymtabs)
1299 (maintenance_check_psymtabs): Update.
1300 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1301 Update.
1302 * spu-tdep.c (spu_catch_start): Update.
1303 * symmisc.c (dump_symtab_1): Update.
1304 * symtab.c (lookup_global_symbol_from_objfile)
1305 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1306 (basic_lookup_transparent_type_quick)
1307 (basic_lookup_transparent_type, find_pc_sect_symtab)
1308 (find_pc_sect_line, search_symbols): Update.
1309 * block.c (find_block_in_blockvector): Make "bl" const.
1310 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1311 const.
1312 (blockvector_contains_pc): Make "bv" const.
1313 (block_for_pc_sect): Update.
1314 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1315 (blockvector_contains_pc): Update.
1316 * breakpoint.c (resolve_sal_pc): Update.
1317 * inline-frame.c (block_starting_point_at): Update.
1318
1319 2014-06-18 Tom Tromey <tromey@redhat.com>
1320
1321 * completer.c (complete_line): Make "line_buffer" const.
1322 * completer.h (complete_line): Update.
1323
1324 2014-06-18 Tom Tromey <tromey@redhat.com>
1325
1326 * symtab.c (add_macro_name): Remove unneeded cast.
1327
1328 2014-06-18 Tom Tromey <tromey@redhat.com>
1329
1330 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1331 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1332
1333 2014-06-18 Tom Tromey <tromey@redhat.com>
1334
1335 * probe.c (info_probes_for_ops): Make "arg" const.
1336 * probe.h (info_probes_for_ops): Update.
1337
1338 2014-06-18 Tom Tromey <tromey@redhat.com>
1339
1340 * varobj.c (varobj_create): Update.
1341 * valops.c (value_of_this): Update.
1342 * tracepoint.c (add_local_symbols, scope_info): Update.
1343 * symtab.h (struct general_symbol_info) <block>: Now const.
1344 * symtab.c (skip_prologue_sal)
1345 (default_make_symbol_completion_list_break_on)
1346 (skip_prologue_using_sal): Update.
1347 * stack.h (iterate_over_block_locals)
1348 (iterate_over_block_local_vars): Update.
1349 * stack.c (print_frame_args): Update.
1350 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1351 parameter const.
1352 (get_selected_block): Make return type const.
1353 * python/py-frame.c (frapy_block): Update.
1354 * python/py-block.c (gdbpy_block_for_pc): Update.
1355 * p-exp.y (%union) <bval>: Now const.
1356 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1357 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1358 * m2-exp.y (%union) <bval>: Now const.
1359 * linespec.c (get_current_search_block): Make return type const.
1360 (create_sals_line_offset, find_label_symbols): Update.
1361 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1362 Update.
1363 (block_starting_point_at): Make "block" const.
1364 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1365 (check_exception_resume): Update.
1366 * guile/scm-frame.c (gdbscm_frame_block): Update.
1367 * guile/scm-block.c (gdbscm_lookup_block): Update.
1368 * frame.h (get_frame_block): Update.
1369 (get_selected_block): Make return type const.
1370 * frame.c (frame_id_inner): Update.
1371 * f-valprint.c (info_common_command_for_block)
1372 (info_common_command): Update.
1373 * dwarf2loc.c (dwarf2_find_location_expression)
1374 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1375 (locexpr_describe_location_piece): Update.
1376 * c-exp.y (%union) <bval>: Now const.
1377 * breakpoint.c (resolve_sal_pc): Update.
1378 * blockframe.c (get_frame_block):Make return type const.
1379 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1380 (block_innermost_frame): Update.
1381 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1382 (block_for_pc, block_for_pc_sect): Update.
1383 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1384 'pblock' const.
1385 (block_for_pc_sect, block_for_pc): Make return type const.
1386 * ax-gdb.c (gen_expr): Update.
1387 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1388 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1389 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1390 (ada_read_var_value): Update.
1391 * ada-exp.y (struct name_info) <block>: Now const.
1392 (%union): Likewise.
1393 (block_lookup): Constify.
1394
1395 2014-06-18 Gary Benson <gbenson@redhat.com>
1396
1397 * nat/i386-dregs.h: New file.
1398 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1399 * i386-nat.h (i386-dregs.h): New include.
1400 (DR_FIRSTADDR): Now in i386-dregs.h.
1401 (DR_LASTADDR): Likewise.
1402 (DR_NADDR): Likewise.
1403 (DR_STATUS): Likewise.
1404 (DR_CONTROL): Likewise.
1405 (i386_debug_reg_state): Likewise.
1406 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1407
1408 2014-06-18 Don Breazeal <donb@codesourcery.com>
1409
1410 * breakpoint.c (set_longjmp_breakpoint): Call
1411 momentary_breakpoint_from_master with additional argument.
1412 (set_longjmp_breakpoint_for_call_dummy): Call
1413 momentary_breakpoint_from_master with additional argument.
1414 (set_std_terminate_breakpoint): Call
1415 momentary_breakpoint_from_master with additional argument.
1416 (momentary_breakpoint_from_master): Add argument to function
1417 definition and use it to initialize structure member flag.
1418 (clone_momentary_breakpoint): Call
1419 momentary_breakpoint_from_master with additional argument.
1420 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1421 member flags set in momentary_breakpoint_from_master.
1422
1423 2014-06-18 Gary Benson <gbenson@redhat.com>
1424
1425 * i386-nat.c (i386_show_dr): Renamed to
1426 i386_dr_show and made nonstatic. All uses updated.
1427 (i386_length_and_rw_bits): Renamed to
1428 i386_dr_length_and_rw_bits and made nonstatic.
1429 All uses updated.
1430 (i386_insert_aligned_watchpoint): Renamed to
1431 i386_dr_insert_aligned_watchpoint and made nonstatic.
1432 All uses updated.
1433 (i386_remove_aligned_watchpoint): Renamed to
1434 i386_dr_remove_aligned_watchpoint and made nonstatic.
1435 All uses updated.
1436 (i386_update_inferior_debug_regs): Renamed to
1437 i386_dr_update_inferior_debug_regs and made nonstatic.
1438 All uses updated.
1439
1440 2014-06-18 Gary Benson <gbenson@redhat.com>
1441
1442 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1443 (i386_dr_low_can_set_control): Likewise.
1444 (i386_dr_low_set_addr): Likewise.
1445 (i386_dr_low_set_control): Likewise.
1446 (i386_dr_low_get_addr): Likewise.
1447 (i386_dr_low_get_status): Likewise.
1448 (i386_dr_low_get_control): Likewise.
1449 (i386_insert_aligned_watchpoint): Use new macros.
1450 (i386_update_inferior_debug_regs): Likewise.
1451 (i386_stopped_data_address): Likewise.
1452
1453 2014-06-18 Gary Benson <gbenson@redhat.com>
1454
1455 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1456 New parameter. All uses updated.
1457
1458 2014-06-18 Gary Benson <gbenson@redhat.com>
1459
1460 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1461 All uses updated.
1462
1463 2014-06-18 Gary Benson <gbenson@redhat.com>
1464
1465 * i386-nat.c (debug_printf): New macro.
1466 (i386_get_debug_register_length): Likewise.
1467 (TARGET_HAS_DR_LEN_8): Use above macro.
1468 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1469 and printf_unfiltered. Use phex to format values.
1470
1471 2014-06-18 Gary Benson <gbenson@redhat.com>
1472
1473 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1474 Make const.
1475
1476 2014-06-18 Gary Benson <gbenson@redhat.com>
1477
1478 * i386-nat.c: Comment changes.
1479
1480 2014-06-18 Gary Benson <gbenson@redhat.com>
1481
1482 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1483
1484 2014-06-18 Gary Benson <gbenson@redhat.com>
1485
1486 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1487 (i386_insert_aligned_watchpoint): Likewise.
1488 (i386_remove_aligned_watchpoint): Likewise.
1489 (i386_handle_nonaligned_watchpoint): Likewise.
1490
1491 2014-06-18 Gary Benson <gbenson@redhat.com>
1492
1493 * i386-nat.c: Whitespace changes.
1494
1495 2014-06-17 Samuel Bronson <naesten@gmail.com>
1496
1497 * MAINTAINERS: Update Roland McGrath's email address.
1498 Thanks to Sergio Durigan Junior for pointing out that he left
1499 Red Hat a while ago, and giving me a current address.
1500
1501 2014-06-17 Tom Tromey <tromey@redhat.com>
1502
1503 * utils.h (savestring): Remove declaration.
1504
1505 2014-06-17 Tom Tromey <tromey@redhat.com>
1506
1507 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1508
1509 2014-06-16 Keith Seitz <keiths@redhat.com>
1510
1511 PR mi/15863
1512 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1513 to update the varobj if inferior_ptid is null_ptid.
1514
1515 2014-06-16 Tom Tromey <tromey@redhat.com>
1516
1517 * target.h (struct target_ops) <to_info_proc>: Make parameter
1518 const.
1519 (target_info_proc): Update.
1520 * target.c (target_info_proc): Make "args" const.
1521 * procfs.c (procfs_info_proc): Update.
1522 * linux-tdep.c (linux_info_proc): Update.
1523 (linux_core_info_proc_mappings): Make "args" const.
1524 (linux_core_info_proc): Update.
1525 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1526 * gdbarch.c: Rebuild.
1527 * gdbarch.h: Rebuild.
1528 * corelow.c (core_info_proc): Update.
1529
1530 2014-06-16 Tom Tromey <tromey@redhat.com>
1531
1532 * target.h (struct target_ops) <to_disconnect>: Make parameter
1533 const.
1534 (target_disconnect): Update.
1535 * target.c (target_disconnect): Make "args" const.
1536 * target-delegates.c: Rebuild.
1537 * remote.c (remote_disconnect): Update.
1538 * record.h (record_disconnect): Update.
1539 * record.c (record_disconnect): Update.
1540 * inf-child.c (inf_child_disconnect): Update.
1541
1542 2014-06-16 Tom Tromey <tromey@redhat.com>
1543
1544 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1545 * target.c (debug_to_rcmd, default_rcmd): Update.
1546 * target-delegates.c: Rebuild.
1547 * remote.c (remote_rcmd): Update.
1548 * monitor.c (monitor_rcmd): Update.
1549
1550 2014-06-16 Pedro Alves <palves@redhat.com>
1551
1552 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1553 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1554 have OBJF_SHARED set.
1555 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1556 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1557 instead of OBJF_USERLOADED.
1558 * objfiles.h (OBJF_SHARED): Update comment.
1559 (userloaded_objfile_contains_address_p): Rename to ...
1560 (shared_objfile_contains_address_p): ... this, and update
1561 comments.
1562 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1563 new objfile.
1564 (remove_symbol_file_command): Skip objfiles that don't have
1565 OBJF_SHARED set.
1566
1567 2014-06-16 Tom Tromey <tromey@redhat.com>
1568
1569 * minsyms.h (prim_record_minimal_symbol)
1570 (prim_record_minimal_symbol_and_info): Update comments.
1571
1572 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1573
1574 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1575 or --without-guile, according to how GDB was built.
1576
1577 2014-06-13 Tom Tromey <tromey@redhat.com>
1578
1579 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1580 to help_list.
1581 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1582 to help_list.
1583 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1584 help_list.
1585 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1586 help_list.Pass all_commands, not -1, to help_list.
1587 * cli/cli-dump.c (dump_command, append_command)
1588 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1589 (binary_dump_command, binary_append_command): Pass all_commands,
1590 not -1, to help_list.
1591 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1592 -1, to help_list.
1593 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1594 -1, to help_list.
1595 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1596 help_list.
1597 * top.c (set_history): Pass all_commands, not -1, to help_list.
1598 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1599 all_commands, not -1, to help_list.
1600 * symfile.c (overlay_command): Pass all_commands, not -1, to
1601 help_list.
1602 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1603 help_list.
1604 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1605 help_list.
1606 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1607 -1, to help_list.
1608 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1609 not -1, to help_list.
1610 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1611 not -1, to help_list.
1612 * maint.c (maintenance_command, maintenance_info_command)
1613 (maintenance_print_command, maintenance_set_cmd): Pass
1614 all_commands, not -1, to help_list.
1615 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1616 help_list.
1617 * language.c (set_check): Pass all_commands, not -1, to help_list.
1618 * infcmd.c (unset_command): Pass all_commands, not -1, to
1619 help_list.
1620 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1621 help_list.
1622 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1623 help_list.
1624 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1625 help_list.
1626 * breakpoint.c (save_command): Pass all_commands, not -1, to
1627 help_list.
1628 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1629 all_commands, not -1, to help_list.
1630
1631 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1632
1633 * regcache.c (struct register_to_invalidate): New structure.
1634 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1635 functions.
1636 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1637
1638 2014-06-12 Yao Qi <yao@codesourcery.com>
1639
1640 * varobj.c (varobj_get_num_children): Call
1641 varobj_is_dynamic_p.
1642 (varobj_list_children): Likewise.
1643 (varobj_update): Likewise. Update comments.
1644
1645 2014-06-12 Yao Qi <yao@codesourcery.com>
1646
1647 * varobj.c (varobj_pretty_printed_p): Rename to ...
1648 (varobj_is_dynamic_p): ... this. New function.
1649 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1650 (varobj_is_dynamic_p): Declare.
1651 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1652 (mi_print_value_p, varobj_update_one): Likewise.
1653
1654 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1655 Yao Qi <yao@codesourcery.com>
1656
1657 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1658 (varobj_get_iterator): Wrap up code for pretty-printer by
1659 "#if HAVE_PYTHON" and "#endif".
1660 (update_dynamic_varobj_children): Likewise.
1661
1662 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1663 Yao Qi <yao@codesourcery.com>
1664
1665 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1666 gdb_python_initialized is false. Move some code from varobj.c.
1667 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1668 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1669 (struct varobj_item): Moved to varobj-iter.h".
1670 (varobj_clear_saved_item): New function.
1671 (update_dynamic_varobj_children): Move python-related code to
1672 py-varobj.c.
1673 (free_variable): Call varobj_clear_saved_item and
1674 varobj_iter_delete.
1675
1676 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1677 Yao Qi <yao@codesourcery.com>
1678
1679 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1680 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1681 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1682 (py-varobj.o): New rule.
1683 * python/py-varobj.c: New file.
1684 * python/python-internal.h (py_varobj_get_iterator): Declare.
1685 * varobj-iter.h: New file.
1686 * varobj.c: Include "varobj-iter.h"
1687 (struct varobj) <child_iter>: Change its type from "PyObject *"
1688 to "struct varobj_iter *".
1689 <saved_item>: Likewise.
1690 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1691 [HAVE_PYTHON] (varobj_get_iterator): New function.
1692 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1693 python-specific code to python/py-varobj.c.
1694 (install_visualizer): Call varobj_iter_delete instead of
1695 Py_XDECREF.
1696 * varobj.h (varobj_ensure_python_env): Declare.
1697
1698 2014-06-12 Yao Qi <yao@codesourcery.com>
1699
1700 * varobj.c (struct varobj_item): New structure.
1701 (create_child_with_value): Update declaration.
1702 (varobj_add_child): Replace arguments 'name' and 'value' with
1703 'item'. All callers updated.
1704 (install_dynamic_child): Likewise.
1705 (update_dynamic_varobj_children): Likewise.
1706 (varobj_add_child): Likewise.
1707 (create_child_with_value): Likewise.
1708
1709 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1710
1711 * NEWS: Create a new section for the next release branch.
1712 Rename the section of the current branch, now that it has
1713 been cut.
1714
1715 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1716
1717 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1718 * version.in: Bump version to 7.8.50.DATE-cvs.
1719
1720 2014-06-11 Pedro Alves <palves@redhat.com>
1721
1722 PR remote/17028
1723 * ser-mingw.c (net_windows_socket_check_pending): New function.
1724 (net_windows_select_thread): Ignore spurious wakeups. Use
1725 net_windows_socket_check_pending.
1726 (net_windows_wait_handle): Check for pending events with
1727 ioctlsocket, through net_windows_socket_check_pending, instead of
1728 checking the socket's event.
1729
1730 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1731
1732 * python/python-internal.h (gdb_PyObject_GetAttrString)
1733 (gdb_PyObject_HasAttrString): New inline function definitions.
1734 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1735 char * of the second argument to PyObject_GetAttrString.
1736
1737 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1738
1739 * serial.c (serial_write): Fix index of character to be printed
1740 in call to serial_logchar when serial debug traces are enabled.
1741
1742 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1743
1744 * gdbtypes (resolve_dynamic_range): Add function description.
1745
1746 2014-06-09 Pedro Alves <palves@redhat.com>
1747
1748 * linux-nat.c (linux_child_follow_fork): Initialize status with
1749 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1750 inner block. Only pass the signal to PTRACE_DETACH if in pass
1751 state.
1752
1753 2014-06-09 Gary Benson <gbenson@redhat.com>
1754
1755 * common/signals.c (gdb_signal_from_host): Reorder to separate
1756 the always-available ANSI-standard signals from the signals that
1757 require checking.
1758 (do_gdb_signal_to_host): Likewise.
1759 * proc-events.c (signal_table): Likewise.
1760
1761 2014-06-08 Hui Zhu <hui@codesourcery.com>
1762
1763 * common/linux-ptrace.c (linux_disable_event_reporting): New
1764 function.
1765 * common/linux-ptrace.h (linux_disable_event_reporting): New
1766 declaration.
1767 * linux-nat.c (linux_child_follow_fork): Do a single step before
1768 detach.
1769
1770 2014-06-07 Keith Seitz <keiths@redhat.com>
1771
1772 Revert:
1773 PR c++/16253
1774 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1775 from symbol_matches_domain in symtab.c. All local callers
1776 of symbol_matches_domain updated.
1777 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1778 search STRUCT_DOMAIN.
1779 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1780 independently. standard_lookup will do that automatically.
1781 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1782 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1783 (cp_lookup_symbol_in_namespace): Likewise.
1784 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1785 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1786 may return a STRUCT_DOMAIN match.
1787 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1788 * cp-support.c: Include language.h.
1789 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1790 VAR_DOMAIN.
1791 * psymtab.c (match_partial_symbol): Compare the requested
1792 domain with the symbol's domain directly.
1793 (lookup_partial_symbol): Likewise.
1794 * symtab.c (lookup_symbol_in_language): Explain when/why
1795 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1796 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1797 appropriate languages.
1798 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1799 and moved to ada-lang.c
1800 (lookup_block_symbol): Explain that this function only returns
1801 symbol matching the requested DOMAIN.
1802 Compare the requested domain with the symbol's domain directly.
1803 (iterate_over_symbols): Compare the requested domain with the
1804 symbol's domain directly.
1805 * symtab.h (symbol_matches_domain): Remove.
1806
1807 2014-06-06 Doug Evans <xdje42@gmail.com>
1808
1809 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1810 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1811 (gdbscm_guile_version_is_at_least): Declare.
1812 (gdbscm_scm_string_to_int): Declare.
1813 * guile/guile.c (gdbscm_guile_major_version): New global.
1814 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1815 (guile_datadir): New static global.
1816 (gdbscm_guile_data_directory): New function.
1817 (initialize_scheme_side): Update.
1818 (misc_guile_functions): Add guile-data-directory.
1819 (initialize_gdb_module): Fetch guile version number.
1820 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1821 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1822 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1823 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1824 comments.
1825 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1826 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1827 * guile/scm-value.c (gdbscm_value_to_string): Only call
1828 scm_port_conversion_strategy if Guile version >= 2.0.6.
1829
1830 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1831
1832 * main.c (print_gdb_help): Add -q and --silent.
1833
1834 2014-06-06 Gary Benson <gbenson@redhat.com>
1835
1836 * common/signals.c: Remove preprocessor conditionals for
1837 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1838 SIGSEGV and SIGTERM.
1839 * proc-events.c: Likewise.
1840
1841 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1842
1843 * symfile.c (symfile_free_objfile): Remove restriction to
1844 OBJF_USERLOADED.
1845 * symfile-mem.c (symbol_file_add_from_memory): Call
1846 add_target_sections_of_objfile.
1847
1848 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1849
1850 * guile/scm-value.c (gdbscm_history_append_x): Use
1851 'vlscm_get_value_smob_arg_unsafe' instead of
1852 'vlscm_scm_to_value'.
1853
1854 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1855
1856 PR mi/15806
1857 * utils.c (printchar): Don't escape at all if quoter is NUL.
1858 Update function documentation to clarify effect of parameter
1859 QUOTER.
1860 * remote.c (escape_buffer): Pass '\\' as the quoter to
1861 fputstrn_unfiltered.
1862 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1863 generate the output.
1864 (mi_solib_unloaded): Same.
1865
1866 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1867
1868 * development.sh: Delete.
1869 * Makefile.in (config.status): Adjust dependency on development.sh.
1870 * configure.ac: Adjust development.sh source call.
1871 * configure: Regenerate.
1872
1873 2014-06-04 Doug Evans <xdje42@gmail.com>
1874
1875 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1876 is_scheme_bkpt, spec.
1877 (bpscm_make_breakpoint_smob): Initialize new members.
1878 (gdbscm_create_breakpoint_x): Split into two ...
1879 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1880 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1881 (scheme_function breakpoint_functions): Update.
1882 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1883 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1884 register-breakpoint!.
1885
1886 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1887
1888 PR server/17023
1889 * mem-break.c (z_type_supported): Return zero if
1890 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1891
1892 2014-06-04 Tom Tromey <tromey@redhat.com>
1893
1894 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1895 value_from_contents_and_address_unresolved.
1896 (ada_template_to_fixed_record_type_1): Likewise.
1897 (ada_which_variant_applies): Likewise.
1898 * value.h (value_from_contents_and_address_unresolved): Declare.
1899 * value.c (value_from_contents_and_address_unresolved): New
1900 function.
1901 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1902 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1903 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1904
1905 2014-06-04 Tom Tromey <tromey@redhat.com>
1906
1907 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1908
1909 2014-06-04 Tom Tromey <tromey@redhat.com>
1910
1911 * procfs.c (procfs_attach): Make "args" const.
1912 * windows-nat.c (windows_attach): Make "args" const.
1913 * nto-procfs.c (procfs_attach): Make "args" const.
1914 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1915 * go32-nat.c (go32_attach): Make "args" const.
1916 * gnu-nat.c (gnu_attach): Make "args" const.
1917 * darwin-nat.c (darwin_attach): Make "args" const.
1918 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1919 * linux-nat.c (linux_nat_attach): Make "args" const.
1920 * remote.c (extended_remote_attach_1, extended_remote_attach):
1921 Make "args" const.
1922 * target.h (struct target_ops) <to_attach>: Make "args" const.
1923 (find_default_attach): Likewise.
1924 * utils.c (parse_pid_to_attach): Make "args" const.
1925 * utils.h (parse_pid_to_attach): Update.
1926
1927 2014-06-04 Tom Tromey <tromey@redhat.com>
1928
1929 * target-delegates.c: Rebuild.
1930 * target.c (default_thread_address_space): New function.
1931 (target_thread_address_space): Simplify.
1932 * target.h (struct target_ops) <to_thread_address_space>: Add
1933 TARGET_DEFAULT_FUNC.
1934
1935 2014-06-04 Doug Evans <xdje42@gmail.com>
1936
1937 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1938
1939 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1940
1941 * record-btrace.c: Include event-loop.h and inf-loop.h.
1942 (record_btrace_resume_exec_dir)
1943 (record_btrace_async_inferior_event_handler)
1944 (record_btrace_handle_async_inferior_event): New.
1945 (record_btrace_open): Create async event handler.
1946 (record_btrace_close): Delete async event handler.
1947 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1948 Mark async event handler.
1949 (record_btrace_execution_direction): New.
1950 (init_record_btrace_ops): Initialize to_execution_direction.
1951
1952 2014-06-03 Doug Evans <xdje42@gmail.com>
1953
1954 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1955 (gdbscm_make_parameter): Ditto.
1956
1957 2014-06-03 Doug Evans <dje@google.com>
1958
1959 * exec.c (exec_close_1): Call clear_section_table instead of
1960 resize_section_table.
1961 (clear_section_table): New function.
1962 (resize_section_table): Make static. Rename arg num_added to
1963 adjustment.
1964 * exec.h (clear_section_table): Declare.
1965 (resize_section_table): Delete.
1966 * progspace.c (release_program_space): Call clear_section_table
1967 instead of resize_section_table.
1968
1969 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1970
1971 * NEWS (Python Scripting): Add entry about the new xmethods
1972 feature.
1973
1974 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1975
1976 * python/py-xmethods.c: New file.
1977 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1978 (objfpy_dealloc): XDECREF on the new xmethods field.
1979 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1980 field.
1981 (objfpy_get_xmethods): New function.
1982 (objfile_getset): New entry 'xmethods'.
1983 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1984 (pspy_dealloc): XDECREF on the new xmethods field.
1985 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1986 field.
1987 (pspy_get_xmethods): New function.
1988 (pspace_getset): New entry 'xmethods'.
1989 * python/python-internal.h: Add declarations for new functions.
1990 * python/python.c (_initialize_python): Invoke
1991 gdbpy_initialize_xmethods.
1992 * python/lib/gdb/__init__.py (xmethods): New
1993 attribute.
1994 * python/lib/gdb/xmethod.py: New file.
1995 * python/lib/gdb/command/xmethods.py: New file.
1996
1997 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1998
1999 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2000 best match method returned by find_overload_match is an xmethod.
2001 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2002 the best matching operator returned by find_overload_match is an
2003 xmethod.
2004 * valops.c: #include "extension.h".
2005 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2006 Return void. The list of matching source methods is returned in
2007 "fn_list" and a vector of matching debug method workers is
2008 returned in "xm_worker_vec". Update all callers.
2009 (value_find_oload_method_list): Likewise.
2010 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2011 non-NULL, then the index of the best matching method in this
2012 vector is returned. Update all callers.
2013 (find_overload_match): Include xmethods while performing overload
2014 resolution.
2015
2016 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2017
2018 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2019 * extension-priv.h (struct extension_language_ops): Add the
2020 xmethod interface.
2021 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2022 get_matching_xmethod_workers, get_xmethod_argtypes,
2023 invoke_xmethod, free_xmethod_worker,
2024 free_xmethod_worker_vec): New functions.
2025 * extension.h: #include "common/vec.h".
2026 New function declarations.
2027 (struct xmethod_worker): New struct.
2028 (VEC (xmethod_worker_ptr)): New vector type.
2029 (xmethod_worker_ptr): New typedef.
2030 (xmethod_worker_vec): Likewise.
2031 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2032 builtin_type.
2033 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2034 (struct builtin_type): New field "xmethod".
2035 * valarith.c (value_ptradd): Assert that the value argument is not
2036 lval_xcallable.
2037 * valops.c (value_must_coerce_to_target): Return 0 for
2038 lval_xcallable values.
2039 * value.c (struct value): New field XM_WORKER in the field
2040 LOCATION.
2041 (value_address, value_raw_address): Return 0 for lval_xcallable
2042 values.
2043 (set_value_address): Assert that the value is not an
2044 lval_xcallable.
2045 (value_free): Free the associated xmethod worker when freeing
2046 lval_xcallable values.
2047 (set_value_component_location): Assert that the WHOLE value is not
2048 lval_xcallable.
2049 (value_of_xmethod, call_xmethod): New functions.
2050 * value.h: Declare "struct xmethod_worker".
2051 Declare new functions value_of_xmethod, call_xmethod.
2052
2053 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2054 Pedro Alves <palves@redhat.com>
2055
2056 PR breakpoints/17000
2057 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2058 New function, extracted from software_breakpoint_inserted_here_p.
2059 (software_breakpoint_inserted_here_p): Replace factored out code
2060 by call to find_non_raw_software_breakpoint_inserted_here.
2061 (bp_target_info_copy_insertion_state): New function.
2062 (bkpt_insert_location): Handle the case of a single-step
2063 breakpoint already inserted at the same address.
2064 (bkpt_remove_location): Handle the case of a single-step
2065 breakpoint still inserted at the same address.
2066 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2067 breakpoint already inserted at the same address.
2068 (deprecated_remove_raw_breakpoint): Handle the case of a
2069 non-raw breakpoint still inserted at the same address.
2070 (find_single_step_breakpoint): New function, extracted from
2071 single_step_breakpoint_inserted_here_p.
2072 (find_single_step_breakpoint): New function,
2073 factored out from single_step_breakpoint_inserted_here_p.
2074 (single_step_breakpoint_inserted_here_p): Reimplement.
2075
2076 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2077
2078 Pushed by Joel Brobecker <brobecker@adacore.com>
2079 * source.c (show_substitute_path_command): Fix display of matching
2080 substitution rules.
2081
2082 2014-06-03 Gary Benson <gbenson@redhat.com>
2083
2084 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2085
2086 2014-06-02 Doug Evans <xdje42@gmail.com>
2087
2088 Add parameter support for Guile.
2089 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2090 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2091 (scm-param.o): New rule.
2092 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2093 (gdbscm_misc_error): Declare.
2094 (gdbscm_canonicalize_command_name): Declare.
2095 (gdbscm_scm_to_host_string): Declare.
2096 (gdbscm_scm_from_host_string): Declare.
2097 (gdbscm_initialize_parameters): Declare.
2098 * guile/guile.c (initialize_gdb_module): Call
2099 gdbscm_initialize_parameters.
2100 * guile/lib/gdb.scm: Export parameter symbols.
2101 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2102 cmdscm_canonicalize_name and made public. All callers updated.
2103 * guile/scm-exception.c (gdbscm_misc_error): New function.
2104 * guile/scm-param.c: New file.
2105 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2106 (gdbscm_scm_to_host_string): New function.
2107 (gdbscm_scm_from_host_string): New function.
2108 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2109
2110 2014-06-02 Doug Evans <xdje42@gmail.com>
2111
2112 Add command support for Guile.
2113 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2114 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2115 (scm-cmd.o): New rule.
2116 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2117 (gdbscm_user_error_p): Declare.
2118 (gdbscm_parse_command_name): Declare.
2119 (gdbscm_valid_command_class_p): Declare.
2120 (gdbscm_initialize_commands): Declare.
2121 * guile/guile.c (initialize_gdb_module): Call
2122 gdbscm_initialize_commands.
2123 * guile/lib/gdb.scm: Export command symbols.
2124 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2125 (throw-user-error): New function.
2126 * guile/scm-cmd.c: New file.
2127 * guile/scm-exception.c (user_error_symbol): New static global.
2128 (gdbscm_user_error_p): New function.
2129 (gdbscm_initialize_exceptions): Set user_error_symbol.
2130 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2131
2132 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2133
2134 * top.c (command_loop): Handle comments here...
2135 (command_line_input): ... not here.
2136
2137 2014-06-02 Doug Evans <xdje42@gmail.com>
2138
2139 Add progspace support for Guile.
2140 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2141 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2142 (scm-progspace.o): New rule.
2143 * guile/guile-internal.h (pspace_smob): New typedef.
2144 (psscm_pspace_smob_pretty_printers): Declare.
2145 (psscm_pspace_smob_from_pspace): Declare.
2146 (psscm_scm_from_pspace): Declare.
2147 * guile/guile.c (initialize_gdb_module): Call
2148 gdbscm_initialize_pspaces.
2149 * guile/lib/gdb.scm: Export progspace symbols.
2150 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2151 support.
2152 (append-pretty-printer!): Ditto.
2153 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2154 Implement.
2155 * guile/scm-progspace.c: New file.
2156
2157 2014-06-03 Alan Modra <amodra@gmail.com>
2158
2159 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2160 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2161
2162 2014-06-02 Doug Evans <dje@google.com>
2163
2164 Add support for skeletonless type units.
2165 * dwarf2read.c (struct dwarf2_per_objfile): New member
2166 n_allocated_type_units.
2167 (struct dwarf2_per_objfile) <tu_stats>: New member
2168 nr_all_type_units_reallocs.
2169 (create_signatured_type_table_from_index): Initialize
2170 n_allocated_type_units
2171 (create_all_type_units): Ditto.
2172 (add_type_unit): Move up in file. New arg slot.
2173 All callers updated. Increase space for all_type_units more
2174 efficiently.
2175 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2176 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2177 (lookup_dwp_signatured_type): Ditto.
2178 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2179 All callers updated.
2180 (build_type_psymtabs_1): Leave type_unit_groups as
2181 NULL if no TUs present.
2182 (print_tu_stats): New function.
2183 (process_skeletonless_type_unit): New function.
2184 (process_dwo_file_for_skeletonless_type_units): New
2185 function.
2186 (process_skeletonless_type_units): New function.
2187 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2188 Call print tu_stats if debugging enabled.
2189
2190 2014-06-02 Pedro Alves <palves@redhat.com>
2191
2192 * breakpoint.c (build_target_command_list): Don't build a command
2193 list if we have any duplicate location that isn't a dprintf.
2194
2195 2014-06-02 Pedro Alves <palves@redhat.com>
2196
2197 * breakpoint.c (dprintf_breakpoint_hit): New function.
2198 (initialize_breakpoint_ops): Install it as dprintf's
2199 breakpoint_hit method.
2200
2201 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2202
2203 * source.c (substitute_path_rule_matches): Simplify using
2204 filename_ncmp instead of FILENAME_CMP.
2205
2206 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2207
2208 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2209
2210 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2211
2212 * configure.ac: When Guile is available, check for the
2213 availability of 'scm_new_smob'.
2214 * configure, config.h.in: Regenerate.
2215 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2216 function.
2217
2218 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2219
2220 * frame.c (struct frame_info): Add stop_string field.
2221 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2222 (get_prev_frame_always): Old content moved into
2223 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2224 TRY_CATCH, handle MEMORY_ERROR exceptions.
2225 (frame_stop_reason_string): New function definition.
2226 * frame.h (unwind_stop_reason_to_string): Extend comment to
2227 mention frame_stop_reason_string.
2228 (frame_stop_reason_string): New function declaration.
2229 * stack.c (frame_info): Switch to frame_stop_reason_string.
2230 (backtrace_command_1): Switch to frame_stop_reason_string.
2231 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2232 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2233 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2234
2235 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2236
2237 * frame.c (frame_stop_reason_string): Rename to ...
2238 (unwind_stop_reason_to_string): this.
2239 * frame.h (frame_stop_reason_string): Rename to ...
2240 (unwind_stop_reason_to_string): this.
2241 * stack.c (frame_info): Update call to frame_stop_reason_string.
2242 (backtrace_command_1): Likewise.
2243 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2244 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2245
2246 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2247
2248 * frame.c (remove_prev_frame): New function.
2249 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2250 remove_prev_frame.
2251
2252 2014-05-29 Pedro Alves <palves@redhat.com>
2253
2254 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2255 and make it const. When a single-step decays to a continue,
2256 clear 'step', not 'hw_step'. Pass whether the caller wanted
2257 to step to user_visible_resume_ptid, not what we ask the
2258 target to do.
2259
2260 2014-05-29 Pedro Alves <palves@redhat.com>
2261
2262 * infrun.c (process_event_stop_test, handle_step_into_function)
2263 (handle_step_into_function_backward): Adjust.
2264 Don't set the even thread's stop_step and call stop_waiting before
2265 calling end_stepping_range. Instead do that ...
2266 (end_stepping_range): ... here. Take an ecs pointer parameter.
2267
2268 2014-05-29 Pedro Alves <palves@redhat.com>
2269
2270 * infrun.c (stop_stepping): Rename to ...
2271 (stop_waiting): ... this.
2272 (proceed): Update comment.
2273 (process_event_stop_test, handle_inferior_event)
2274 (handle_signal_stop, handle_step_into_function)
2275 (handle_step_into_function_backward): Update.
2276
2277 2014-05-29 Pedro Alves <palves@redhat.com>
2278
2279 * infcall.c (run_inferior_call): Don't check whether the current
2280 thread is running after the proceed call.
2281
2282 2014-05-29 Pedro Alves <palves@redhat.com>
2283 Tom Tromey <tromey@redhat.com>
2284
2285 * NEWS: Mention "maint set target-async", "set mi-async", and that
2286 background execution commands are now always available.
2287 * target.h (target_async_permitted): Update comment.
2288 * target.c (target_async_permitted, target_async_permitted_1):
2289 Default to 1.
2290 (set_target_async_command): Rename to ...
2291 (maint_set_target_async_command): ... this.
2292 (show_target_async_command): Rename to ...
2293 (maint_show_target_async_command): ... this.
2294 (_initialize_target): Adjust.
2295 * infcmd.c (prepare_execution_command): Make extern.
2296 * inferior.h (prepare_execution_command): Declare.
2297 * infrun.c (set_observer_mode): Leave target async alone.
2298 * mi/mi-interp.c (mi_interpreter_init): Install
2299 mi_on_sync_execution_done as sync_execution_done observer.
2300 (mi_on_sync_execution_done): New function.
2301 (mi_execute_command_input_handler): Don't print the prompt if we
2302 just started a synchronous command with an async target.
2303 (mi_on_resume): Check sync_execution before printing prompt.
2304 * mi/mi-main.h (mi_async_p): Declare.
2305 * mi/mi-main.c: Include gdbcmd.h.
2306 (mi_async_p): New function.
2307 (mi_async, mi_async_1): New globals.
2308 (set_mi_async_command, show_mi_async_command, mi_async): New
2309 functions.
2310 (exec_continue): Call prepare_execution_command.
2311 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2312 (mi_execute_async_cli_command): Use mi_async_p.
2313 (_initialize_mi_main): Install "set mi-async". Make
2314 "target-async" a deprecated alias.
2315
2316 2014-05-29 Pedro Alves <palves@redhat.com>
2317
2318 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2319 (_initialize_cli_interp): Adjust.
2320 * event-loop.c: Include "observer.h".
2321 (start_event_loop): Notify 'command_error' observers instead of
2322 calling display_gdb_prompt. Remove FIXME comment.
2323 * event-top.c (display_gdb_prompt): Remove call into the
2324 interpreters.
2325 * inf-loop.c: Include "observer.h".
2326 (inferior_event_handler): Notify 'command_error' observers instead
2327 of calling display_gdb_prompt.
2328 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2329 observers instead of calling display_gdb_prompt.
2330 * interps.c (interp_set): Don't call display_gdb_prompt.
2331 (current_interp_display_prompt_p): Delete.
2332 * interps.h (interp_prompt_p): Delete declaration.
2333 (interp_prompt_p_ftype): Delete.
2334 (struct interp_procs) <prompt_proc_p>: Delete field.
2335 (current_interp_display_prompt_p): Delete declaration.
2336 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2337 (_initialize_mi_interp): Adjust.
2338 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2339 'command_error' observers.
2340 (tui_on_sync_execution_done, tui_on_command_error): New
2341 functions.
2342 (tui_display_prompt_p): Delete.
2343 (_initialize_tui_interp): Adjust.
2344
2345 2014-05-29 Pedro Alves <palves@redhat.com>
2346
2347 PR gdb/13860
2348 * cli/cli-interp.c: Include infrun.h and observer.h.
2349 (cli_uiout, cli_interp): New globals.
2350 (cli_on_signal_received, cli_on_end_stepping_range)
2351 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2352 functions.
2353 (cli_interpreter_init): Install them as 'end_stepping_range',
2354 'signal_received' 'signal_exited', 'exited' and 'no_history'
2355 observers.
2356 (_initialize_cli_interp): Remove cli_interp local.
2357 * infrun.c (handle_inferior_event): Call the several stop reason
2358 observers instead of printing the stop reason directly.
2359 (end_stepping_range): New function.
2360 (print_end_stepping_range_reason, print_signal_exited_reason)
2361 (print_exited_reason, print_signal_received_reason)
2362 (print_no_history_reason): Make static, and add an uiout
2363 parameter. Print to that instead of to CURRENT_UIOUT.
2364 * infrun.h (print_end_stepping_range_reason)
2365 (print_signal_exited_reason, print_exited_reason)
2366 (print_signal_received_reason print_no_history_reason): New
2367 declarations.
2368 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2369 'mi_uiout'.
2370 <cli_uiout>: New field.
2371 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2372 uiout for CLI output. Install 'signal_received',
2373 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2374 observers.
2375 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2376 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2377 (mi_on_no_history): New functions.
2378 (ui_out_free_cleanup): Delete function.
2379 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2380 instead use the one already stored in the MI interpreter data.
2381 (mi_ui_out): Adjust.
2382 * tui/tui-interp.c: Include infrun.h and observer.h.
2383 (tui_interp): New global.
2384 (tui_on_signal_received, tui_on_end_stepping_range)
2385 (tui_on_signal_exited, tui_on_exited)
2386 (tui_on_no_history): New functions.
2387 (tui_init): Install them as 'end_stepping_range',
2388 'signal_received' 'signal_exited', 'exited' and 'no_history'
2389 observers.
2390 (_initialize_tui_interp): Delete tui_interp local.
2391
2392 2014-05-29 Pedro Alves <palves@redhat.com>
2393
2394 PR gdb/15713
2395 * linux-nat.c (linux_nat_resume_callback): Rename the second
2396 parameter to 'except'. Skip LP if it points to EXCEPT.
2397 (linux_nat_resume): Don't mark the event lwp as not stopped
2398 before resuming sibling lwps. Instead ask
2399 linux_nat_resume_callback to skip the event lwp. Mark it as not
2400 stopped after actually resuming it.
2401 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2402 resuming it.
2403 (wait_lwp): Mark the lwp as stopped here.
2404 (stop_wait_callback): Mark the lwp as not stopped right after
2405 resuming it. Don't mark lwps as stopped here.
2406 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2407 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2408
2409 2014-05-29 Pedro Alves <palves@redhat.com>
2410
2411 PR PR15693
2412 * infrun.c (resume): Determine how much to resume depending on
2413 whether the caller wanted a step, not whether we can hardware step
2414 the target. Mark all threads that we intend to run as running,
2415 unless we're calling an inferior function.
2416 (normal_stop): If the thread is running an infcall, don't finish
2417 thread state.
2418 * target.c (target_resume): Don't mark threads as running here.
2419
2420 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2421
2422 * serial.c (_initialize_serial): Remove support for
2423 the "set remotebaud" and "show remotebaud" commands.
2424 * NEWS: Add entry documenting the removal of that command.
2425
2426 2014-05-28 Yao Qi <yao@codesourcery.com>
2427
2428 * charset.c: Fix typo in comments.
2429
2430 2014-05-27 Gary Benson <gbenson@redhat.com>
2431
2432 * utils.c (internal_vproblem): Prompt for a bug report.
2433
2434 2014-05-26 Andy Wingo <wingo@igalia.com>
2435
2436 * guile/scm-arch.c (arscm_mark_arch_smob):
2437 * guile/scm-block.c (bkscm_mark_block_smob)
2438 (bkscm_mark_block_syms_progress_smob):
2439 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2440 * guile/scm-exception.c (exscm_mark_exception_smob):
2441 * guile/scm-frame.c (frscm_mark_frame_smob):
2442 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2443 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2444 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2445 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2446 (ppscm_mark_pretty_printer_worker_smob):
2447 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2448 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2449 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2450 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2451 mark functions.
2452 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2453 function.
2454
2455 2014-05-26 Andy Wingo <wingo@igalia.com>
2456 Doug Evans <xdje42@gmail.com>
2457
2458 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2459 empty_base_class. All uses updated.
2460 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2461 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2462 Adapt all callers.
2463 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2464 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2465 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2466 (gdbscm_gsmob_has_property_p, add_property_name)
2467 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2468 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2469 (gdb-object-has-property?, gdb-object-properties): Remove.
2470 (gdb-object-kind): Renamed from gsmob-kind.
2471
2472 2014-05-26 Andy Wingo <wingo@igalia.com>
2473
2474 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2475 * configure: Regenerate.
2476
2477 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2478
2479 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2480
2481 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2482
2483 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2484 (replay_memory_access_read_only, replay_memory_access_read_write)
2485 (replay_memory_access_types, replay_memory_access)
2486 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2487 (cmd_set_record_btrace, cmd_show_record_btrace)
2488 (cmd_show_replay_memory_access): New.
2489 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2490 (record_btrace_remove_breakpoint): Replace
2491 record_btrace_allow_memory_access with replay_memory_access.
2492 (_initialize_record_btrace): Add commands.
2493 * NEWS: Announce it.
2494
2495 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2496
2497 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2498
2499 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2500
2501 * MAINTAINERS (Write After Approval): Move self back from
2502 paper trail.
2503
2504 2014-05-22 Pedro Alves <palves@redhat.com>
2505
2506 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2507 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2508 (disable_randomization, enum exec_direction_kind)
2509 (execution_direction, stop_registers, start_remote)
2510 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2511 (wait_for_inferior, normal_stop, get_last_target_status)
2512 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2513 (insert_step_resume_breakpoint_at_sal)
2514 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2515 (set_step_info, print_stop_event, signal_stop_state)
2516 (signal_print_state, signal_pass_state, signal_stop_update)
2517 (signal_print_update, signal_pass_update)
2518 (update_signals_program_target, clear_exit_convenience_vars)
2519 (displaced_step_dump_bytes, update_observer_mode)
2520 (signal_catch_update, gdb_signal_from_command): Move
2521 declarations ...
2522 * infrun.h: ... to this new file.
2523 * amd64-tdep.c: Include infrun.h.
2524 * annotate.c: Include infrun.h.
2525 * arch-utils.c: Include infrun.h.
2526 * arm-linux-tdep.c: Include infrun.h.
2527 * arm-tdep.c: Include infrun.h.
2528 * break-catch-sig.c: Include infrun.h.
2529 * breakpoint.c: Include infrun.h.
2530 * common/agent.c: Include infrun.h instead of inferior.h.
2531 * corelow.c: Include infrun.h.
2532 * event-top.c: Include infrun.h.
2533 * go32-nat.c: Include infrun.h.
2534 * i386-tdep.c: Include infrun.h.
2535 * inf-loop.c: Include infrun.h.
2536 * infcall.c: Include infrun.h.
2537 * infcmd.c: Include infrun.h.
2538 * infrun.c: Include infrun.h.
2539 * linux-fork.c: Include infrun.h.
2540 * linux-nat.c: Include infrun.h.
2541 * linux-thread-db.c: Include infrun.h.
2542 * monitor.c: Include infrun.h.
2543 * nto-tdep.c: Include infrun.h.
2544 * procfs.c: Include infrun.h.
2545 * record-btrace.c: Include infrun.h.
2546 * record-full.c: Include infrun.h.
2547 * remote-m32r-sdi.c: Include infrun.h.
2548 * remote-mips.c: Include infrun.h.
2549 * remote-notif.c: Include infrun.h.
2550 * remote-sim.c: Include infrun.h.
2551 * remote.c: Include infrun.h.
2552 * reverse.c: Include infrun.h.
2553 * rs6000-tdep.c: Include infrun.h.
2554 * s390-linux-tdep.c: Include infrun.h.
2555 * solib-irix.c: Include infrun.h.
2556 * solib-osf.c: Include infrun.h.
2557 * solib-svr4.c: Include infrun.h.
2558 * target.c: Include infrun.h.
2559 * top.c: Include infrun.h.
2560 * windows-nat.c: Include infrun.h.
2561 * mi/mi-interp.c: Include infrun.h.
2562 * mi/mi-main.c: Include infrun.h.
2563 * python/py-threadevent.c: Include infrun.h.
2564
2565 2014-05-22 Pedro Alves <palves@redhat.com>
2566
2567 * infrun.c (handle_inferior_event): Store the exit code for
2568 --return-child-result here, instead of ...
2569 (print_exited_reason): ... here.
2570
2571 2014-05-21 Pedro Alves <palves@redhat.com>
2572
2573 PR gdb/13860
2574 * gdbthread.h (struct thread_control_state): New field
2575 `command_interp'.
2576 * infrun.c (follow_fork): Copy the new thread control field to the
2577 child fork thread.
2578 (clear_proceed_status_thread): Clear the new thread control field.
2579 (proceed): Set the new thread control field.
2580 * interps.h (command_interp): Declare.
2581 * interps.c (command_interpreter): New global.
2582 (command_interp): New function.
2583 (interp_exec): Set `command_interpreter' while here.
2584 * cli-out.c (cli_uiout_dtor): New function.
2585 (cli_ui_out_impl): Install it.
2586 * mi/mi-interp.c: Include cli-out.h.
2587 (mi_cmd_interpreter_exec): Add comment.
2588 (restore_current_uiout_cleanup): New function.
2589 (ui_out_free_cleanup): New function.
2590 (mi_on_normal_stop): If finishing an execution command started by
2591 a CLI command, or any kind of breakpoint-like event triggered,
2592 print the stop event to the output (CLI) stream.
2593 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2594
2595 2014-05-21 Pedro Alves <palves@redhat.com>
2596
2597 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2598 current source line having changed.
2599 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2600 * infrun.c (normal_stop): Adjust call to
2601 set_current_sal_from_frame.
2602 * source.c (clear_lines_listed_range): New function.
2603 (set_current_source_symtab_and_line, identify_source_line): Clear
2604 the lines listed range.
2605 (line_info): Handle the first "info line" after the current source
2606 line having changed.
2607 * stack.c (print_stack_frame): Remove center handling.
2608 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2609 center sal.line.
2610
2611 2014-05-21 Pedro Alves <palves@redhat.com>
2612
2613 * inf-child.c (inf_child_mourn_inferior): New function.
2614 * inf-child.h (inf_child_mourn_inferior): New declaration.
2615 * darwin-nat.c (darwin_mourn_inferior): Use
2616 inf_child_mourn_inferior.
2617 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2618 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2619 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2620 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2621 * windows-nat.c (windows_mourn_inferior): Likewise.
2622
2623 2014-05-21 Doug Evans <xdje42@gmail.com>
2624
2625 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2626
2627 2014-05-21 Doug Evans <xdje42@gmail.com>
2628
2629 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2630 (gdbscm_out_of_range_error): Ditto.
2631 (gdbscm_memory_error): Ditto.
2632 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2633 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2634 (gdbscm_out_of_range_error): Update.
2635 (gdbscm_memory_error): Update.
2636 (gdbscm_scm_to_target_string_unsafe): Delete.
2637
2638 2014-05-21 Pedro Alves <palves@redhat.com>
2639
2640 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2641 globals.
2642 (inf_child_open_target): New function.
2643 (inf_child_open): Use inf_child_open_target to push the target
2644 instead of erroring out.
2645 (inf_child_disconnect, inf_child_close)
2646 (inf_child_maybe_unpush_target): New functions.
2647 (inf_child_target): Install inf_child_disconnect and
2648 inf_child_close. Store a pointer to the returned object.
2649 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2650 declarations.
2651 * target.c (auto_connect_native_target): New global.
2652 (show_default_run_target): New function.
2653 (find_default_run_target): Return NULL if automatically connecting
2654 to the native target is disabled.
2655 (_initialize_target): Install set/show auto-connect-native-target.
2656 * NEWS: Mention "set auto-connect-native-target", and "target
2657 native".
2658 * linux-nat.c (super_close): New global.
2659 (linux_nat_close): Call super_close.
2660 (linux_nat_add_target): Store a pointer to the base class's
2661 to_close method.
2662 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2663 inf_child_maybe_unpush.
2664 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2665 already pushed.
2666 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2667 the inferior. Use inf_child_maybe_unpush_target.
2668 (inf_ttrace_attach): Don't push the target if it is already
2669 pushed.
2670 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2671 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2672 after mourning the inferior. Use inf_child_maybe_unpush_target.
2673 (darwin_attach_pid): Don't push the target if it is already
2674 pushed.
2675 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2676 mourning the inferior. Use inf_child_maybe_unpush_target.
2677 (gnu_detach): Use inf_child_maybe_unpush_target.
2678 * go32-nat.c (go32_create_inferior): Don't push the target if it
2679 is already pushed.
2680 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2681 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2682 (procfs_open): Rename to ...
2683 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2684 comments. Can target_preopen before changing node. Call
2685 inf_child_open_target to push the target explicitly.
2686 (procfs_attach): Don't push the target if it is already pushed.
2687 (procfs_detach): Use inf_child_maybe_unpush_target.
2688 (procfs_create_inferior): Don't push the target if it is already
2689 pushed.
2690 (nto_native_ops): New global.
2691 (procfs_open): Reimplement.
2692 (procfs_native_open): New function.
2693 (init_procfs_targets): Install procfs_native_open as to_open of
2694 "target native". Store a pointer to the "native" target in
2695 nto_native_ops.
2696 * procfs.c (procfs_attach): Don't push the target if it is already
2697 pushed.
2698 (procfs_detach): Use inf_child_maybe_unpush_target.
2699 (procfs_mourn_inferior): Only unpush the target after mourning the
2700 inferior. Use inf_child_maybe_unpush_target.
2701 (procfs_init_inferior): Don't push the target if it is already
2702 pushed.
2703 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2704 if it is already pushed.
2705
2706 2014-05-21 Pedro Alves <palves@redhat.com>
2707
2708 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2709 and "procfs" targets are now called "native" instead.
2710
2711 2014-05-21 Pedro Alves <palves@redhat.com>
2712
2713 * go32-nat.c (go32_open): Delete.
2714 (go32_target): Don't override the to_open method.
2715
2716 2014-05-21 Pedro Alves <palves@redhat.com>
2717
2718 * nto-procfs.c (procfs_can_run): New function.
2719 (nto_procfs_ops): New global.
2720 (init_procfs_targets): New, based on procfs_target. Install
2721 "target native" in addition to "target procfs".
2722 (_initialize_procfs): Call init_procfs_targets instead of adding
2723 the target here.
2724
2725 2014-05-21 Pedro Alves <palves@redhat.com>
2726
2727 * windows-nat.c (windows_target): Don't override to_shortname,
2728 to_longname or to_doc.
2729
2730 2014-05-21 Pedro Alves <palves@redhat.com>
2731
2732 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2733 to_doc.
2734
2735 2014-05-21 Pedro Alves <palves@redhat.com>
2736
2737 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2738 to_shortname, to_longname or to_doc.
2739
2740 2014-05-21 Pedro Alves <palves@redhat.com>
2741
2742 * go32-nat.c (go32_target): Don't override to_shortname,
2743 to_longname or to_doc.
2744
2745 2014-05-21 Pedro Alves <palves@redhat.com>
2746
2747 * inf-child.c (inf_child_open): Remove mention of "child".
2748 (inf_child_target): Rename target to "native" instead of "child".
2749
2750 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2751
2752 * Makefile.in (SFILES): Delete "regset.c".
2753 (COMMON_OBS): Delete "regset.o".
2754 * regset.c: Remove.
2755 * regset.h (regset_alloc): Delete prototype.
2756
2757 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2758
2759 * sparc-linux-tdep.c (sparc32_linux_gregset)
2760 (sparc32_linux_fpregset): New static regset structures.
2761 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2762 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2763 'fpregset' fields.
2764 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2765 (sparc64_linux_fpregset): New static regset structures.
2766 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2767 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2768 New static regset structures.
2769 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2770 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2771 New static regset structures.
2772 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2773 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2774 New static regset structures.
2775 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2776 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2777 New static regset structures.
2778 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2779
2780 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2781
2782 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2783 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2784 register maps ("regmaps") from "*regset" to "*regmap". Do this
2785 for all regmap types and variables.
2786 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2787 (sparc32_linux_supply_core_gregset)
2788 (sparc32_linux_collect_core_gregset)
2789 (sparc32_linux_supply_core_fpregset)
2790 (sparc32_linux_collect_core_fpregset): Likewise.
2791 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2792 (sparc_gregmap, sparc_fpregmap): ... these.
2793 (sparc_supply_gregset, sparc_collect_gregset)
2794 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2795 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2796 (_initialize_sparc_nat): Rename regmaps.
2797 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2798 (sparc_gregmap, sparc_fpregmap): ... these.
2799 (sparc_supply_gregset, sparc_collect_gregset)
2800 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2801 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2802 Rename macros to...
2803 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2804 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2805 Likewise.
2806 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2807 Rename to...
2808 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2809 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2810 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2811 regmaps.
2812 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2813 (sparc32_bsd_fpregset): Rename to...
2814 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2815 (sparc32_bsd_fpregmap): ... these.
2816 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2817 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2818 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2819 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2820 (struct sparc_gregmap, struct sparc_fpregmap)
2821 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2822 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2823 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2824 (sparc32_supply_regset, sparc32_collect_gregset)
2825 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2826 prototypes.
2827 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2828 (sparc64_linux_ptrace_gregmap): ... this.
2829 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2830 (_initialize_sparc64_linux_nat): Rename regmaps.
2831 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2832 (sparc64_linux_core_gregmap): ... this.
2833 (sparc64_linux_supply_core_gregset)
2834 (sparc64_linux_collect_core_gregset)
2835 (sparc64_linux_supply_core_fpregset)
2836 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2837 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2838 (sparc64_sol2_fpregset): Rename to...
2839 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2840 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2841 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2842 regmaps.
2843 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2844 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2845 (sparc64_bsd_fpregset): Rename to...
2846 (struct sparc_gregmap, sparc64_sol2_gregmap)
2847 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2848 (sparc64_bsd_fpregmap): ... these.
2849 (sparc64_supply_gregset, sparc64_collect_gregset)
2850 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2851 prototypes.
2852 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2853 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2854 (sparc64fbsd_gregmap): ... this.
2855 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2856 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2857 Rename regmaps.
2858 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2859 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2860 (sparc64nbsd_collect_fpregset): Likewise.
2861 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2862 (sparc64nbsd_gregmap): ... this.
2863 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2864 regmaps.
2865 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2866 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2867 (sparc64obsd_gregmap): ... this.
2868 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2869 regmaps.
2870 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2871 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2872 (sparc32nbsd_gregmap): ... this.
2873 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2874 regmaps.
2875
2876 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2877
2878 * score-tdep.c (score7_linux_gregset): New static regset
2879 structure.
2880 (score7_linux_regset_from_core_section): Remove dynamic regset
2881 allocation.
2882 (score_gdbarch_init): Drop allocation of tdep structure.
2883 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2884
2885 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2886
2887 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2888 regset structures.
2889 (am33_regset_from_core_section): Remove dynamic regset
2890 allocations.
2891
2892 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2893
2894 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2895 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2896 structures.
2897 (mips_linux_regset_from_core_section): Remove dynamic regset
2898 allocations.
2899 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2900 'gregset64', 'fpregset', and 'fpregset64'.
2901 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2902 deleted tdep fields.
2903
2904 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2905
2906 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2907 regset structures.
2908 (amd64_regset_from_core_section): Remove dynamic regset
2909 allocations.
2910 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2911 structure.
2912 (amd64obsd_regset_from_core_section): Remove dynamic regset
2913 allocation.
2914 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2915 Likewise.
2916 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2917 x86-common regset supply function.
2918 * i386-tdep.c (i386_collect_gregset): Make static.
2919 (i386_gregset): New global regset structure.
2920 (i386_fpregset, i386_xstateregset): New static regset structures.
2921 (i386_regset_from_core_section): Remove dynamic regset
2922 allocations.
2923 (i386_gdbarch_init): Remove initialization of tdep fields
2924 'gregset', 'fpregset', and 'xstateregset'.
2925 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2926 'fpregset', and 'xstateregset'.
2927 (i386_collect_gregset): Remove prototype.
2928 (i386_gregset): New declaration.
2929 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2930 structure.
2931 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2932 allocation.
2933
2934 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2935
2936 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2937 (arm_linux_vfpregset): New static regset structures.
2938 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2939 regset structures.
2940 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2941 and 'vfpregset' fields.
2942
2943 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2944
2945 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2946 (aarch64_linux_fpregset): New static regset structures.
2947 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2948 of regset structures.
2949 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2950 'fpregset' fields.
2951
2952 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2953
2954 * regset.h (struct regset): Remove gdbarch field.
2955 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2956 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2957 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2958 Likewise.
2959 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2960 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2961 (ppc32_linux_vsxregset): Likewise.
2962 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2963 via the regcache instead of the regset.
2964 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2965 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2966 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2967 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2968 Likewise.
2969
2970 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2971
2972 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2973 Constify structures.
2974 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2975 (alphanbsd_aout_gregset): Likewise.
2976 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2977 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2978 Likewise.
2979 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2980 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2981 Likewise.
2982 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2983 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2984 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2985 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2986 * m88k-tdep.c (m88k_gregset): Likewise.
2987 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2988 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2989 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2990 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2991 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2992 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2993 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2994 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2995 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2996 Likewise.
2997 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2998 * sh-tdep.h (sh_corefile_gregset): Likewise.
2999 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3000 * vax-tdep.c (vax_gregset): Likewise.
3001
3002 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3003
3004 Fix TLS access for -static -pthread.
3005 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3006 (try_thread_db_load_1): Initialize it.
3007 (thread_db_get_thread_local_address): Call it if LM is zero.
3008 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3009 * target.h (struct target_ops) (to_get_thread_local_address): Add
3010 load_module_addr comment.
3011
3012 2014-05-21 Pedro Alves <palves@redhat.com>
3013
3014 * dcache.c (dcache_read_memory_partial): If reading the cache line
3015 fails, fallback to reading just the memory the caller wanted.
3016
3017 2014-05-20 Doug Evans <dje@google.com>
3018
3019 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3020 instead of get_current_arch.
3021
3022 2014-05-20 Pedro Alves <palves@redhat.com>
3023
3024 * NEWS: Mention that compare-sections now works with all targets.
3025
3026 * remote.c (PACKET_qCRC): New enum value.
3027 (remote_verify_memory): Don't send qCRC if the target has no
3028 execution. Use packet_support/packet_ok. If the target doesn't
3029 support the qCRC packet, fallback to a deep memory copy.
3030 (compare_sections_command): Say "target image" instead of "remote
3031 executable".
3032 (_initialize_remote): Add PACKET_qCRC to the list of config
3033 packets that have no associated command. Extend comment.
3034 * target.c (simple_verify_memory, default_verify_memory): New
3035 function.
3036 * target.h (struct target_ops) <to_verify_memory>: Default to
3037 default_verify_memory.
3038 (simple_verify_memory): New declaration.
3039 * target-delegates.c: Regenerate.
3040
3041 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3042
3043 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3044
3045 2014-05-20 Hui Zhu <hui@codesourcery.com>
3046 Yao Qi <yao@codesourcery.com>
3047
3048 PR backtrace/16558
3049 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3050 and change address of sp and pc.
3051
3052 2014-05-19 Tom Tromey <tromey@redhat.com>
3053
3054 * gdbtypes.c (rank_function): Use XNEWVEC.
3055 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3056
3057 2014-05-19 Doug Evans <dje@google.com>
3058
3059 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3060 build_type_unit_groups and moved closer to only caller. Remove
3061 arguments. All references updated. Remove outdated .gdb_index
3062 comment.
3063 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3064 build_type_psymtabs_1.
3065
3066 2014-05-19 Doug Evans <dje@google.com>
3067
3068 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3069 n_type_unit_groups, all_type_unit_groups. All uses removed.
3070 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3071 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3072 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3073 (add_type_unit_group_to_table): Delete.
3074
3075 2014-05-19 Doug Evans <dje@google.com>
3076
3077 * eval.c (evaluate_subexp_standard): Add some comments.
3078
3079 2014-05-17 Doug Evans <xdje42@gmail.com>
3080
3081 * progspace.c (remove_program_space): Delete, unused.
3082 * progspace.h (remove_program_space): Ditto.
3083
3084 2014-05-17 Doug Evans <xdje42@gmail.com>
3085
3086 * inferior.c (prune_inferiors): Fix comment.
3087 (remove_inferior_command): Call prune_program_spaces.
3088
3089 2014-05-16 Doug Evans <dje@google.com>
3090
3091 New command line option -D.
3092 * NEWS: Mention it.
3093 * main.c (set_gdb_data_directory): New function.
3094 (captured_main): Recognize -D. Flag error for --data-directory "".
3095 Call set_gdb_data_directory.
3096 (print_gdb_help): Print --data-directory, -D.
3097 * main.h (set_gdb_data_directory): Declare.
3098 * top.c (staged_gdb_datadir): New static global.
3099 (set_gdb_datadir): Call set_gdb_data_directory
3100 (show_gdb_datadir): New function.
3101 (init_main): Update init of data-directory parameter.
3102
3103 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3104
3105 Import the "dirfd" gnulib module.
3106 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3107 * gnulib/aclocal.m4: Update.
3108 * gnulib/config.in: Update.
3109 * gnulib/configure: Update.
3110 * gnulib/import/Makefile.am: Update.
3111 * gnulib/import/Makefile.in: Update.
3112 * gnulib/import/dirfd.c: New.
3113 * gnulib/import/m4/dirfd.m4: New.
3114 * gnulib/import/m4/gnulib-cache.m4: Update.
3115 * gnulib/import/m4/gnulib-comp.m4: Update.
3116
3117 2014-05-16 Pierre Muller <muller@sourceware.org>
3118 Yao Qi <yao@codesourcery.com>
3119
3120 * valprint.c (print_wchar): Move the code on checking whether
3121 W is a printable wide char to the default branch of switch
3122 statement below. Call wchar_printable instead of gdb_iswprint.
3123
3124 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3125
3126 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3127 ldr.w and ldrd instructions.
3128
3129 2014-05-15 Doug Evans <dje@google.com>
3130
3131 * dwarf2read.c (read_structure_type): Delete outdated comments.
3132
3133 2014-05-14 Tom Tromey <tromey@redhat.com>
3134
3135 * macrocmd.c (print_macro_definition): Reindent.
3136
3137 2014-05-13 Doug Evans <xdje42@gmail.com>
3138
3139 * python/py-cmd.c (cmdpy_completer): Add comment.
3140 (completers): Make const.
3141
3142 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3143
3144 * infrun.c (resume): Remove should_resume (unused). Move up
3145 declaration of resume_ptid.
3146
3147 2014-05-13 Tom Tromey <tromey@redhat.com>
3148
3149 * language.h (unop_type_check): Remove.
3150 (binop_type_check): Don't declare.
3151
3152 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3153
3154 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3155 call to regcache_raw_collect.
3156
3157 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3158
3159 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3160 mi_console->quote as the quoting character.
3161
3162 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3163
3164 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3165
3166 2014-04-29 Tom Tromey <tromey@redhat.com>
3167
3168 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3169 "show debug varobj".
3170
3171 2014-05-07 Kyle McMartin <kyle@redhat.com>
3172
3173 Pushed by Joel Brobecker <brobecker@adacore.com>.
3174 * aarch64-tdep.c (aarch64_software_single_step): New function.
3175 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3176 with aarch64_software_single_step.
3177
3178 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3179
3180 GDB 7.7.1 released.
3181
3182 2014-05-05 Keith Seitz <keiths@redhat.com>
3183
3184 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3185 variable or history value is successfully parsed.
3186
3187 2014-05-05 Yao Qi <yao@codesourcery.com>
3188 Pedro Alves <palves@redhat.com>
3189
3190 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3191 address of blocks that intersects the requested range. Trim
3192 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3193 sections.
3194 * ctf.c (ctf_xfer_partial): Likewise.
3195
3196 2014-05-05 Yao Qi <yao@codesourcery.com>
3197
3198 * printcmd.c (display_command): Remove the check to
3199 target_has_execution.
3200
3201 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3202
3203 * ppcobsd-nat.c: Include "obsd-nat.h".
3204 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3205 add_target.
3206 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3207
3208 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3209
3210 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3211 and 16-bit signed and unsigned arguments. Update comment.
3212 (stap_parse_probe_arguments): Extend code to handle such
3213 arguments. Use warning instead of complaint to notify about
3214 unrecognized bitness.
3215
3216 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3217
3218 PR breakpoints/16889
3219 * stap-probe.c (stap_parse_probe_arguments): Simplify
3220 check for non-prefixed probes (i.e., probes whose
3221 arguments do not start with "N@"). Always set the
3222 argument type to a sane value.
3223
3224 2014-05-01 David Taylor <dtaylor@emc.com>
3225
3226 * remote.c (compare_sections_command): Add -r option to compare
3227 all loadable read-only sections.
3228
3229 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3230
3231 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3232 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3233 Update all callers.
3234 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3235 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3236 Remove unused CORE_ADDR argument. Update all callers.
3237
3238 2014-04-29 Pedro Alves <palves@redhat.com>
3239
3240 * remote.c (struct packet_config) <detect>: Extend comment.
3241 (add_packet_config_cmd): Don't set the config's detect or support
3242 fields here.
3243 (init_all_packet_configs): Also initialize the config's 'detect'
3244 field.
3245 (reset_all_packet_configs_support): New function.
3246 (remote_open_1): Call reset_all_packet_configs_support instead of
3247 init_all_packet_configs.
3248 (_initialize_remote): Initialize all packet configs. Assert that
3249 all packets have an associated command, except a few known
3250 outliers.
3251
3252 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3253
3254 * dwarf2read.c (read_subrange_type): Handle dynamic
3255 DW_AT_lower_bound attributes.
3256
3257 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3258
3259 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3260 dynamic bounds before computing its upper bound.
3261 (ada_discrete_type_low_bound): Same as above with the lower bound.
3262
3263 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3264
3265 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3266 range types. Adjust the array handling implementation to
3267 take advantage of this change.
3268 (resolve_dynamic_range): New function, mostly extracted from
3269 resolve_dynamic_bounds.
3270 (resolve_dynamic_array): New function, mostly extracted from
3271 resolve_dynamic_bounds.
3272 (resolve_dynamic_bounds): Delete.
3273 (resolve_dynamic_type): Reimplement. Add handling of
3274 TYPE_CODE_RANGE types.
3275
3276 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3277
3278 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3279 handling of parallel ___XA types.
3280
3281 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3282
3283 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3284 unnecessary second call to static_unwrap_type.
3285
3286 2014-04-27 Hui Zhu <hui@codesourcery.com>
3287
3288 * stack.c (print_frame_info): Call do_gdb_disassembly with
3289 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3290
3291 2014-04-26 Doug Evans <xdje42@gmail.com>
3292
3293 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3294
3295 2014-04-25 Pedro Alves <palves@redhat.com>
3296
3297 PR server/16255
3298 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3299 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3300 and newline from built string.
3301 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3302 (linux_ptrace_attach_fail_reason): ... this.
3303 * linux-nat.c (linux_nat_attach): Adjust to use
3304 linux_ptrace_attach_fail_reason.
3305
3306 2014-04-25 Pedro Alves <palves@redhat.com>
3307
3308 * remote.c (struct remote_state): Remove multi_process_aware,
3309 non_stop_aware, cond_tracepoints, cond_breakpoints,
3310 breakpoint_commands, fast_tracepoints, static_tracepoints,
3311 install_in_trace, disconnected_tracing,
3312 enable_disable_tracepoints, string_tracing, and
3313 augmented_libraries_svr4_read fields.
3314 (remote_multi_process_p): Move further below in the file.
3315 (struct packet_config): Add comments.
3316 (update_packet_config): Delete function.
3317 (show_packet_config_cmd): Use packet_config_support.
3318 (add_packet_config_cmd): Use NULL as set callback.
3319 (packet_ok): "set remote foo-packet"-style commands no longer
3320 change config->supported -- adjust.
3321 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3322 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3323 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3324 (PACKET_QNonStop, PACKET_multiprocess_feature)
3325 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3326 (PACKET_DisconnectedTracing_feature)
3327 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3328 (set_remote_protocol_packet_cmd): Delete function.
3329 (packet_config_support, packet_support): New functions.
3330 (set_remote_protocol_Z_packet_cmd): Don't call
3331 update_packet_config.
3332 (remote_query_attached, remote_pass_signals)
3333 (remote_program_signals, remote_threads_info)
3334 (remote_threads_extra_info, remote_start_remote): Use
3335 packet_support.
3336 (remote_start_remote): Use packet_config_support and
3337 packet_support.
3338 (init_all_packet_configs): Set all packets to unknown support,
3339 instead of calling update_packet_config.
3340 (remote_check_symbols): Use packet_support.
3341 (remote_supported_packet): Unconditionally set the packet config's
3342 support status.
3343 (remote_multi_process_feature, remote_non_stop_feature)
3344 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3345 (remote_breakpoint_commands_feature)
3346 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3347 (remote_install_in_trace_feature)
3348 (remote_disconnected_tracing_feature)
3349 (remote_enable_disable_tracepoint_feature)
3350 (remote_string_tracing_feature)
3351 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3352 (remote_protocol_features): Adjust to use remote_supported_packet
3353 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3354 "ConditionalTracepoints", "ConditionalBreakpoints",
3355 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3356 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3357 "EnableDisableTracepoints", and "tracenz".
3358 (remote_query_supported): Use packet_support.
3359 (remote_open_1): Adjust.
3360 (extended_remote_attach_1): Use packet_support. Switch on the
3361 result of packet_ok instead of checking whether the packet ended
3362 up disabled.
3363 (remote_vcont_resume): Use packet_support.
3364 (remote_resume, remote_stop_ns, fetch_register_using_p)
3365 (remote_prepare_to_store, store_register_using_P)
3366 (check_binary_download, remote_write_bytes): Use packet_support.
3367 (remote_vkill): Use packet_support. Switch on the result of
3368 packet_ok instead of checking whether the packet ended up
3369 disabled.
3370 (extended_remote_supports_disable_randomization): Use
3371 packet_support.
3372 (extended_remote_run): Switch on the result of packet_ok instead
3373 of checking whether the packet ended up disabled.
3374 (remote_insert_breakpoint, remote_remove_breakpoint)
3375 (remote_insert_watchpoint, remote_remove_watchpoint)
3376 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3377 packet_support.
3378 (remote_search_memory): Use packet_config_support.
3379 (remote_get_thread_local_address, remote_get_tib_address)
3380 (remote_hostio_send_command, remote_can_execute_reverse): Use
3381 packet_support.
3382 (remote_supports_cond_tracepoints)
3383 (remote_supports_cond_breakpoints)
3384 (remote_supports_fast_tracepoints)
3385 (remote_supports_static_tracepoints)
3386 (remote_supports_install_in_trace)
3387 (remote_supports_enable_disable_tracepoint)
3388 (remote_supports_string_tracing)
3389 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3390 the packet config says the feature is enabled or disabled.
3391 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3392 (remote_get_trace_status): Use packet_support.
3393 (remote_set_disconnected_tracing): Adjust to check whether the
3394 feature is enabled with packet_support.
3395 (remote_set_trace_buffer_size, remote_use_agent)
3396 (remote_can_use_agent, remote_supports_btrace): Use
3397 packet_support.
3398 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3399 Use packet_config_support.
3400 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3401 the packet config says the feature is enabled or disabled.
3402 (set_range_stepping): Use packet_support.
3403
3404 2014-04-25 Tom Tromey <tromey@redhat.com>
3405
3406 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3407 argument.
3408
3409 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3410
3411 * NEWS: Mention support for C99 variable length arrays.
3412
3413 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3414
3415 * ada-lang.c (standard_exc): Expand introductory comment.
3416
3417 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3418 Walfred Tedeschi <walfred.tedeschi@intel.com>
3419
3420 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3421 AVX512 registers.
3422 (amd64_linux_read_description): Add code to handle AVX512 xstate
3423 mask and return respective tdesc.
3424 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3425 and features/i386/x32-avx512-linux.c.
3426 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3427 (amd64_linux_core_read_description): Add code to handle AVX512
3428 xstate mask and return respective tdesc.
3429 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3430 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3431 calculation.
3432 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3433 (tdesc_amd64_avx512_linux): New prototype.
3434 (tdesc_x32_avx512_linux): Likewise.
3435 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3436 features/i386/x32-avx512.c.
3437 (amd64_ymm_avx512_names): New register names for pseudo
3438 registers YMM16-31.
3439 (amd64_ymmh_avx512_names): New register names for raw registers
3440 YMMH16-31.
3441 (amd64_k_names): New register names for K registers.
3442 (amd64_zmmh_names): New register names for ZMM raw registers.
3443 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3444 (amd64_xmm_avx512_names): New register names for XMM16-31
3445 registers.
3446 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3447 registers.
3448 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3449 if feature is present.
3450 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3451 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3452 (AMD64_NUM_REGS): Adjust to new number of registers.
3453 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3454 registers supplied via XSTATE by AVX512 registers.
3455 (i386_linux_read_description): Add case for AVX512.
3456 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3457 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3458 (i386_linux_core_read_description): Add case for AVX512.
3459 (i386_linux_init_abi): Install supported register note section
3460 for AVX512.
3461 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3462 AVX512.
3463 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3464 registers to be number of zmm7h + 1.
3465 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3466 * i386-tdep.c: Include features/i386/i386-avx512.c.
3467 (i386_zmm_names): Add ZMM pseudo register names array.
3468 (i386_zmmh_names): Add ZMM raw register names array.
3469 (i386_k_names): Add K raw register names array.
3470 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3471 registers. AVX512 has 16 more ZMM registers than there are YMM
3472 registers.
3473 (i386_zmmh_regnum_p): Add function to look up register number of
3474 ZMM raw registers.
3475 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3476 (i386_k_regnum_p): Likewise for K raw registers.
3477 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3478 registers added by AVX512.
3479 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3480 registers added by AVX512.
3481 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3482 added by AVX512.
3483 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3484 (i386_pseudo_register_name): Add ZMM pseudo registers.
3485 (i386_zmm_type): Construct and return vector registers type for ZMM
3486 registers.
3487 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3488 ZMM0-31 pseudo registers and K registers.
3489 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3490 and YMM16-31 registers from register cache.
3491 (i386_pseudo_register_write): Add code to write K, ZMM and
3492 YMM16-31 registers.
3493 (i386_register_reggroup_p): Add code to include/exclude AVX512
3494 registers in/from respective register groups.
3495 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3496 registers if feature is present in xcr0.
3497 (i386_gdbarch_init): Add code to initialize AVX512 feature
3498 variables in tdep structure, wire in pseudo registers and call
3499 initialize_tdesc_i386_avx512.
3500 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3501 variables.
3502 (i386_regnum): Add AVX512 registers.
3503 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3504 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3505 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3506 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3507 512 bits wide.
3508 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3509 (i386_ymm_avx512_regnum_p): Likewise.
3510 (i386_k_regnum_p): Likewise.
3511 (i386_zmm_regnum_p): Likewise.
3512 (i386_zmmh_regnum_p): Likewise.
3513 * i387-tdep.c : Update year in copyright notice.
3514 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3515 XSAVE buffer.
3516 (XSAVE_YMM_AVX512_ADDR): New macro.
3517 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3518 XSAVE buffer.
3519 (XSAVE_XMM_AVX512_ADDR): New macro.
3520 (xsave_avx512_k_offset): New table for K register offsets in
3521 XSAVE buffer.
3522 (XSAVE_AVX512_K_ADDR): New macro.
3523 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3524 in XSAVE buffer.
3525 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3526 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3527 buffer.
3528 (i387_collect_xsave): Add code to collect AVX512 registers from
3529 XSAVE buffer.
3530 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3531 of XMM16-31 registers.
3532 (I387_NUM_K_REGS): New define for number of K registers.
3533 (I387_K0_REGNUM): New define for K0 register number.
3534 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3535 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3536 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3537 registers.
3538 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3539 (I387_XMM16_REGNUM): New define for XMM16 register number.
3540 (I387_YMM0_REGNUM): New define for YMM0 register number.
3541 (I387_KEND_REGNUM): New define for last K register number.
3542 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3543 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3544 number.
3545 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3546 number.
3547 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3548 size.
3549 * features/Makefile: Add AVX512 related files.
3550 * features/i386/32bit-avx512.xml: New file.
3551 * features/i386/64bit-avx512.xml: Likewise.
3552 * features/i386/amd64-avx512-linux.c: Likewise.
3553 * features/i386/amd64-avx512-linux.xml: Likewise.
3554 * features/i386/amd64-avx512.c: Likewise.
3555 * features/i386/amd64-avx512.xml: Likewise.
3556 * features/i386/i386-avx512-linux.c: Likewise.
3557 * features/i386/i386-avx512-linux.xml: Likewise.
3558 * features/i386/i386-avx512.c: Likewise.
3559 * features/i386/i386-avx512.xml: Likewise.
3560 * features/i386/x32-avx512-linux.c: Likewise.
3561 * features/i386/x32-avx512-linux.xml: Likewise.
3562 * features/i386/x32-avx512.c: Likewise.
3563 * features/i386/x32-avx512.xml: Likewise.
3564 * regformats/i386/amd64-avx512-linux.dat: New file.
3565 * regformats/i386/amd64-avx512.dat: Likewise.
3566 * regformats/i386/i386-avx512-linux.dat: Likewise.
3567 * regformats/i386/i386-avx512.dat: Likewise.
3568 * regformats/i386/x32-avx512-linux.dat: Likewise.
3569 * regformats/i386/x32-avx512.dat: Likewise.
3570 * NEWS: Add note about new support for AVX512.
3571
3572
3573 2014-04-23 Pedro Alves <palves@redhat.com>
3574
3575 * breakpoint.c (insert_bp_location): Tolerate errors if the
3576 breakpoint is set in a user-loaded objfile.
3577 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3578 location is marked shlib_disabled. If the breakpoint is set in a
3579 user-loaded objfile is a GDB-side memory breakpoint, validate it
3580 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3581 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3582 flag.
3583 * mem-break.c (memory_validate_breakpoint): New function.
3584 * objfiles.c (userloaded_objfile_contains_address_p): New
3585 function.
3586 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3587 * target.h (memory_validate_breakpoint): New declaration.
3588
3589 2014-04-23 Pedro Alves <palves@redhat.com>
3590
3591 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3592 the breakpoint is set in a shared library, only suppress
3593 errors for software breakpoints, not hardware breakpoints.
3594
3595 2014-04-22 Pedro Alves <palves@redhat.com>
3596
3597 * infrun.c (schedlock_applies): New function, factored out from
3598 find_thread_needs_step_over.
3599 (find_thread_needs_step_over): Use it.
3600 (switch_back_to_stepped_thread): Always clear trap_expected if the
3601 step over is finished. Return early if scheduler locking applies.
3602 Look for the stepping thread and a potential step-over thread with
3603 a single loop.
3604 (currently_stepping_or_nexting_callback): Delete.
3605
3606 2014-04-22 Nick Clifton <nickc@redhat.com>
3607
3608 * NEWS: Mention that ARM sim now supports tracing.
3609
3610 2014-04-22 Yao Qi <yao@codesourcery.com>
3611
3612 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3613 to ...
3614 * tracefile.c (tracefile_fetch_registers): ... it. New
3615 function.
3616 * tracefile.h (tracefile_fetch_registers): Declare.
3617 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3618 tracefile_fetch_registers.
3619
3620 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3621
3622 PR gdb/14018
3623 * windows-nat.c (thread_rec): Don't display a warning when
3624 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3625 fails for any reason, set th->suspended to -1, so that we don't
3626 try to resume such a thread. Also, don't return NULL in these
3627 cases, to avoid completely ruin the session due to "PC register is
3628 not available" error.
3629 (do_windows_fetch_inferior_registers): Check errors in
3630 GetThreadContext call.
3631 (windows_continue): Accept an additional argument KILLED; if not
3632 zero, ignore errors in the SetThreadContext call, since the
3633 inferior was killed and is shutting down.
3634 (windows_resume, get_windows_debug_event)
3635 (windows_create_inferior, windows_mourn_inferior)
3636 (windows_kill_inferior): All callers of windows_continue changed
3637 to adjust to its new calling sequence.
3638
3639 2014-04-19 Yao Qi <yao@codesourcery.com>
3640
3641 * ctf.c (ctf_open): Call post_create_inferior.
3642
3643 2014-04-19 Yao Qi <yao@codesourcery.com>
3644
3645 * ctf.c (handle_id): New static variable.
3646 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3647 value. Get the declaration of event "register" and get length
3648 of field "contents".
3649
3650 2014-04-19 Yao Qi <yao@codesourcery.com>
3651
3652 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3653
3654 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3655
3656 * valops.c (oload_method_static): Remove unnecessary argument
3657 METHOD. Update all callers.
3658
3659 2014-04-18 Pedro alves <palves@redhat.com>
3660 Tom Tromey <tromey@redhat.com>
3661
3662 PR backtrace/15558
3663 * frame.c (get_prev_frame_1): Rename to ...
3664 (get_prev_frame_always): ... this, and make extern. Adjust.
3665 (skip_artificial_frames): Use get_prev_frame_always.
3666 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3667 (get_frame_unwind_stop_reason): Adjust to rename.
3668 * frame.h (get_prev_frame_always): Declare.
3669 * inline-frame.c: Include frame.h.
3670 (inline_frame_this_id): Use get_prev_frame_always.
3671
3672 2014-04-18 Tristan Gingold <gingold@adacore.com>
3673
3674 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3675 code by using bfd_mach_o_get_base_address.
3676
3677 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
3678
3679 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3680 (spu_ax_pseudo_register_collect): New function.
3681 (spu_ax_pseudo_register_push_stack): Likewise.
3682 (spu_dwarf_reg_to_regnum): Likewise.
3683 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3684
3685 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
3686
3687 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3688 Replace FRAME argument with FRAME_ID.
3689 * gdbarch.c, gdbarch.h: Regenerate.
3690 * findvar.c (default_value_from_register): Add GDBARCH argument;
3691 replace FRAME by FRAME_ID. No longer call get_frame_id.
3692 (value_from_register): Update call to gdbarch_value_from_register.
3693 * value.h (default_value_from_register): Update prototype.
3694 * s390-linux-tdep.c (s390_value_from_register): Update interface
3695 and call to default_value_from_register.
3696 * spu-tdep.c (spu_value_from_register): Likewise.
3697
3698 * findvar.c (address_from_register): Remove TYPE argument.
3699 Do not call value_from_register; use gdbarch_value_from_register
3700 with null_frame_id instead.
3701 * value.h (address_from_register): Update prototype.
3702 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3703 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3704 address_from_register interface change.
3705
3706 2014-04-17 Yao Qi <yao@codesourcery.com>
3707
3708 * gdbtypes.h: Update comments to link to types and macros'
3709 definitions.
3710
3711 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3712
3713 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3714
3715 2014-04-16 Keith Seitz <keiths@redhat.com>
3716
3717 PR gdb/15827
3718 * dwarf2read.c (skip_one_die): Check that all relative-offset
3719 sibling DIEs fall within range of the current reader's buffer.
3720 (read_partial_die): Likewise.
3721
3722 2014-04-16 Keith Seitz <keiths@redhat.com>
3723
3724 PR c++/16597
3725 * cp-namespace.c (lookup_symbol_file): If the type name of
3726 `this' is NULL, return immediately.
3727
3728 2014-04-14 Keith Seitz <keiths@redhat.com>
3729
3730 PR c++/16253
3731 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3732 from symbol_matches_domain in symtab.c. All local callers
3733 of symbol_matches_domain updated.
3734 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3735 search STRUCT_DOMAIN.
3736 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3737 independently. standard_lookup will do that automatically.
3738 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3739 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3740 (cp_lookup_symbol_in_namespace): Likewise.
3741 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3742 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3743 may return a STRUCT_DOMAIN match.
3744 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3745 * cp-support.c: Include language.h.
3746 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3747 VAR_DOMAIN.
3748 * psymtab.c (match_partial_symbol): Compare the requested
3749 domain with the symbol's domain directly.
3750 (lookup_partial_symbol): Likewise.
3751 * symtab.c (lookup_symbol_in_language): Explain when/why
3752 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3753 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3754 appropriate languages.
3755 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3756 and moved to ada-lang.c
3757 (lookup_block_symbol): Explain that this function only returns
3758 symbol matching the requested DOMAIN.
3759 Compare the requested domain with the symbol's domain directly.
3760 (iterate_over_symbols): Compare the requested domain with the
3761 symbol's domain directly.
3762 * symtab.h (symbol_matches_domain): Remove.
3763
3764 2014-04-14 Tom Tromey <tromey@redhat.com>
3765
3766 PR c++/15246:
3767 * c-exp.y (type_aggregate_p): New function.
3768 (qualified_name, classify_inner_name): Use it.
3769 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3770 and TYPE_TARGET_TYPE of an enum type.
3771 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3772 an enum type.
3773 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3774 handle TYPE_DECLARED_CLASS.
3775 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3776 types.
3777 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3778 * valops.c (enum_constant_from_type): New function.
3779 (value_aggregate_elt): Use it.
3780 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3781 TYPE_CODE_ENUM.
3782
3783 2014-04-14 Tom Tromey <tromey@redhat.com>
3784
3785 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3786 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3787 const.
3788 * value.h (value_aggregate_elt): Update.
3789
3790 2014-04-14 Tom Tromey <tromey@redhat.com>
3791
3792 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3793
3794 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3795
3796 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3797 (evaluate_subexp_standard): Pass noside argument.
3798 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3799 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3800 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3801 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3802 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3803
3804 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3805
3806 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3807 points to a constant blob.
3808
3809 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3810
3811 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3812 property and store it as the high bound and flag the range accordingly.
3813 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3814 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3815 * gdbtypes.h (enum range_flags): New enum.
3816 (struct range_bounds): Add flags member.
3817
3818 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3819
3820 * c-typeprint.c (c_type_print_varspec_suffix): Added
3821 check for not yet resolved high bound. If unresolved, print
3822 "variable length" string to the console instead of random
3823 length.
3824
3825 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3826
3827 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3828 value.
3829 (ada_template_to_fixed_record_type_1): Likewise.
3830 (ada_to_fixed_type_1): Likewise.
3831 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3832 (cp_print_value): Likewise.
3833 * d-valprint.c (dynamic_array_type): Likewise.
3834 * findvar.c (address_of_variable): Likewise.
3835 * jv-valprint.c (java_value_print): Likewise.
3836 * valops.c (value_ind): Likewise.
3837 * value.c (coerce_ref): Likewise.
3838
3839 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3840
3841 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3842 value and retrieve the dynamic type size.
3843
3844 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3845
3846 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3847 passed to sizeof is dynamic evaluate the argument to compute the length.
3848
3849 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3850 Joel Brobecker <brobecker@adacore.com>
3851
3852 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3853 (dwarf2_evaluate_property): New function.
3854 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3855 * dwarf2read.c (attr_to_dynamic_prop): New function.
3856 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3857 attribute.
3858 * gdbtypes.c: Include dwarf2loc.h.
3859 (is_dynamic_type): New function.
3860 (resolve_dynamic_type): New function.
3861 (resolve_dynamic_bounds): New function.
3862 (get_type_length): New function.
3863 (check_typedef): Use get_type_length to compute type length.
3864 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3865 (TYPE_LOW_BOUND_KIND): New macro.
3866 (is_dynamic_type): New function prototype.
3867 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3868 to resolve dynamic properties of the type. Update comment.
3869 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3870
3871 2014-04-14 Richard Henderson <rth@redhat.com>
3872
3873 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3874
3875 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3876 Doug Evans <xdje42@gmail.com>
3877
3878 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3879 dereference TYPE_CODE_REF values.
3880
3881 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3882
3883 Revert the following changes due to regressions:
3884
3885 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3886 (dwarf2_evaluate_property): New function.
3887 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3888 * dwarf2read.c (attr_to_dynamic_prop): New function.
3889 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3890 attribute.
3891 * gdbtypes.c: Include dwarf2loc.h.
3892 (is_dynamic_type): New function.
3893 (resolve_dynamic_type): New function.
3894 (resolve_dynamic_bounds): New function.
3895 (get_type_length): New function.
3896 (check_typedef): Use get_type_length to compute type length.
3897 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3898 (TYPE_LOW_BOUND_KIND): New macro.
3899 (is_dynamic_type): New function prototype.
3900 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3901 to resolve dynamic properties of the type. Update comment.
3902 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3903
3904 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3905 passed to sizeof is dynamic evaluate the argument to compute the length.
3906
3907 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3908 value and retrieve the dynamic type size.
3909
3910 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3911 (ada_template_to_fixed_record_type_1): Likewise.
3912 (ada_to_fixed_type_1): Likewise.
3913 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3914 (cp_print_value): Likewise.
3915 * d-valprint.c (dynamic_array_type): Likewise.
3916 * eval.c (evaluate_subexp_with_coercion): Likewise.
3917 * findvar.c (address_of_variable): Likewise.
3918 * jv-valprint.c (java_value_print): Likewise.
3919 * valops.c (value_ind): Likewise.
3920 * value.c (coerce_ref): Likewise.
3921
3922 * c-typeprint.c (c_type_print_varspec_suffix): Added
3923 check for not yet resolved high bound. If unresolved, print
3924 "variable length" string to the console instead of random
3925 length.
3926
3927 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3928 property and store it as the high bound and flag the range accordingly.
3929 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3930 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3931 * gdbtypes.h (enum range_flags): New enum.
3932 (struct range_bounds): Add flags member.
3933
3934 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3935 points to a constant blob.
3936
3937 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3938 (evaluate_subexp_standard): Pass noside argument.
3939 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3940 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3941 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3942 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3943 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3944
3945 2014-04-11 Keith Seitz <keiths@redhat.com>
3946
3947 PR c++/16675
3948 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3949 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3950 reference types.
3951
3952 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3953
3954 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3955 (evaluate_subexp_standard): Pass noside argument.
3956 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3957 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3958 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3959 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3960 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3961
3962 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3963
3964 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3965 points to a constant blob.
3966
3967 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3968
3969 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3970 property and store it as the high bound and flag the range accordingly.
3971 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3972 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3973 * gdbtypes.h (enum range_flags): New enum.
3974 (struct range_bounds): Add flags member.
3975
3976 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3977
3978 * c-typeprint.c (c_type_print_varspec_suffix): Added
3979 check for not yet resolved high bound. If unresolved, print
3980 "variable length" string to the console instead of random
3981 length.
3982
3983 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3984
3985 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3986 (ada_template_to_fixed_record_type_1): Likewise.
3987 (ada_to_fixed_type_1): Likewise.
3988 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3989 (cp_print_value): Likewise.
3990 * d-valprint.c (dynamic_array_type): Likewise.
3991 * eval.c (evaluate_subexp_with_coercion): Likewise.
3992 * findvar.c (address_of_variable): Likewise.
3993 * jv-valprint.c (java_value_print): Likewise.
3994 * valops.c (value_ind): Likewise.
3995 * value.c (coerce_ref): Likewise.
3996
3997 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3998
3999 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4000 value and retrieve the dynamic type size.
4001
4002 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4003
4004 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4005 passed to sizeof is dynamic evaluate the argument to compute the length.
4006
4007 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4008
4009 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4010 (dwarf2_evaluate_property): New function.
4011 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4012 * dwarf2read.c (attr_to_dynamic_prop): New function.
4013 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4014 attribute.
4015 * gdbtypes.c: Include dwarf2loc.h.
4016 (is_dynamic_type): New function.
4017 (resolve_dynamic_type): New function.
4018 (resolve_dynamic_bounds): New function.
4019 (get_type_length): New function.
4020 (check_typedef): Use get_type_length to compute type length.
4021 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4022 (TYPE_LOW_BOUND_KIND): New macro.
4023 (is_dynamic_type): New function prototype.
4024 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4025 to resolve dynamic properties of the type. Update comment.
4026 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4027
4028 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4029
4030 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4031 declaring high/low bounds and change uses accordingly. Call
4032 create_range_type instead of create_static_range_type.
4033 * gdbtypes.c (create_range_type): New function.
4034 (create_range_type): Convert bounds into struct bound_prop and pass
4035 them to create_range_type.
4036 * gdbtypes.h (struct bound_prop): New struct.
4037 (create_range_type): New function prototype.
4038 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4039 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4040 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4041 part of the bound.
4042 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4043
4044 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4045
4046 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4047 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4048 * ada-lang.c: All uses of create_range_type updated.
4049 * coffread.c: All uses of create_range_type updated.
4050 * dwarf2read.c: All uses of create_range_type updated.
4051 * f-exp.y: All uses of create_range_type updated.
4052 * m2-valprint.c: All uses of create_range_type updated.
4053 * mdebugread.c: All uses of create_range_type updated.
4054 * stabsread.c: All uses of create_range_type updated.
4055 * valops.c: All uses of create_range_type updated.
4056 * valprint.c: All uses of create_range_type updated.
4057
4058 2014-04-10 Pedro Alves <palves@redhat.com>
4059
4060 * breakpoint.c (single_step_breakpoints)
4061 (single_step_gdbarch): Move up in the file.
4062 (one_breakpoint_xfer_memory): New function, factored out from ...
4063 (breakpoint_xfer_memory): ... here. Also process single-step
4064 breakpoints.
4065
4066 2014-04-09 Tristan Gingold <gingold@adacore.com>
4067
4068 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4069 comments.
4070 (darwin_decode_exception_message): Free port only after use.
4071
4072 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4073
4074 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4075 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4076 when setting the size of call_length.
4077
4078 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4079
4080 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4081 dereference TYPE_CODE_REF values.
4082
4083 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4084
4085 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4086 end of warning message.
4087
4088 2014-04-03 Doug Evans <dje@google.com>
4089
4090 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4091 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4092
4093 2014-04-02 Alan Modra <amodra@gmail.com>
4094
4095 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4096 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4097 (struct symbol_file_add_from_memory_args): Add size field.
4098 (find_vdso_size): New function.
4099 (add_vsyscall_page): Attempt to find vdso size.
4100
4101 2014-04-01 Doug Evans <dje@google.com>
4102
4103 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4104
4105 2014-04-01 Tristan Gingold <gingold@adacore.com>
4106
4107 * darwin-nat.c (darwin_encode_reply): Add prototype.
4108 (darwin_decode_exception_message): Reply to unknown inferiors.
4109 (darwin_decode_message): Handle message by id. Ignore message
4110 to unknown inferior.
4111 (darwin_wait): Discard unknown messages, add debug trace.
4112
4113 2014-03-31 Doug Evans <dje@google.com>
4114
4115 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4116 comp_dir_string.
4117
4118 2014-03-31 Doug Evans <dje@google.com>
4119
4120 New option "set print symbol-loading".
4121 * NEWS: Mention it.
4122 * solib.c (solib_read_symbols): Only print symbol loading messages
4123 if requested.
4124 (solib_add): If symbol loading is in "brief" mode, notify user
4125 symbols are being loaded.
4126 (reload_shared_libraries_1): Ditto.
4127 * symfile.c (print_symbol_loading_off): New static global.
4128 (print_symbol_loading_brief): New static global.
4129 (print_symbol_loading_full): New static global.
4130 (print_symbol_loading_enums): New static global.
4131 (print_symbol_loading): New static global.
4132 (print_symbol_loading_p): New function.
4133 (symbol_file_add_with_addrs): Only print symbol loading messages
4134 if requested.
4135 (_initialize_symfile): Register "print symbol-loading" set/show
4136 command.
4137 * symfile.h (print_symbol_loading_p): Declare.
4138
4139 2014-03-30 Doug Evans <xdje42@gmail.com>
4140
4141 * infrun.c (set_last_target_status): New function.
4142 (handle_inferior_event): Call it.
4143
4144 2014-03-30 Doug Evans <xdje42@gmail.com>
4145
4146 * inferior.h (enum stop_kind): Improve comment.
4147
4148 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4149
4150 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4151 a reference, strip the reference layer before calling
4152 the lang_ops value_has_mutated callback.
4153
4154 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4155
4156 Remove some globals from our parser.
4157 * language.c (unk_lang_parser): Add "struct parser_state"
4158 argument.
4159 * language.h (struct language_defn) <la_parser>: Likewise.
4160 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4161 (initialize_expout): Add "struct parser_state" argument.
4162 Rewrite function to use the parser state.
4163 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4164 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4165 write_exp_elt_longcst, write_exp_elt_dblcst,
4166 write_exp_elt_decfloatcst, write_exp_elt_type,
4167 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4168 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4169 write_dollar_variable): Likewise.
4170 (parse_exp_in_context_1): Use parser state.
4171 (insert_type_address_space): Add "struct parser_state" argument.
4172 Use parser state.
4173 (increase_expout_size): New function.
4174 * parser-defs.h: Forward declare "struct language_defn" and
4175 "struct parser_state".
4176 (expout, expout_size, expout_ptr): Remove extern declarations.
4177 (parse_gdbarch, parse_language): Rewrite macro declarations to
4178 accept the parser state.
4179 (struct parser_state): New struct.
4180 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4181 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4182 write_exp_elt_decfloatcst, write_exp_elt_type,
4183 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4184 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4185 write_exp_msymbol, write_dollar_variable,
4186 mark_struct_expression, insert_type_address_space): Add "struct
4187 parser_state" argument.
4188 (increase_expout_size): New function.
4189 * utils.c (do_clear_parser_state): New function.
4190 (make_cleanup_clear_parser_state): Likewise.
4191 * utils.h (make_cleanup_clear_parser_state): New function
4192 prototype.
4193 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4194 Update calls to write_exp* in order to pass the parser state.
4195 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4196 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4197 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4198 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4199 * stap-probe.c (stap_parse_register_operand): Likewise.
4200 (stap_parse_single_operand): Likewise.
4201 (stap_parse_argument_1): Likewise.
4202 (stap_parse_argument): Use parser state.
4203 * stap-probe.h: Include "parser-defs.h".
4204 (struct stap_parse_info) <pstate>: New field.
4205 * c-exp.y (parse_type): Rewrite to use parser state.
4206 (yyparse): Redefine to c_parse_internal.
4207 (pstate): New global variable.
4208 (parse_number): Add "struct parser_state" argument.
4209 (write_destructor_name): Likewise.
4210 (type_exp): Update calls to write_exp* and similars in order to
4211 use parser state.
4212 (exp1, exp, variable, qualified_name, space_identifier,
4213 typename, typebase): Likewise.
4214 (write_destructor_name, parse_number, lex_one_token,
4215 classify_name, classify_inner_name, c_parse): Add "struct
4216 parser_state" argument. Update function to use parser state.
4217 * c-lang.h: Forward declare "struct parser_state".
4218 (c_parse): Add "struct parser_state" argument.
4219 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4220 (yyparse): Redefine macro to ada_parse_internal.
4221 (pstate): New variable.
4222 (write_int, write_object_renaming, write_var_or_type,
4223 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4224 type_int, type_long, type_long_long, type_float, type_double,
4225 type_long_double, type_char, type_boolean, type_system_address):
4226 Add "struct parser_state" argument.
4227 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4228 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4229 var_or_type, aggregate, aggregate_component_list,
4230 positional_list, others, component_group,
4231 component_associations): Update calls to write_exp* and similar
4232 functions in order to use parser state.
4233 (ada_parse, write_var_from_sym, write_int,
4234 write_exp_op_with_string, write_object_renaming,
4235 find_primitive_type, write_selectors, write_ambiguous_var,
4236 write_var_or_type, write_name_assoc, type_int, type_long,
4237 type_long_long, type_float, type_double, type_long_double,
4238 type_char, type_boolean, type_system_address): Add "struct
4239 parser_state" argument. Adjust function to use parser state.
4240 * ada-lang.c (parse): Likewise.
4241 * ada-lang.h: Forward declare "struct parser_state".
4242 (ada_parse): Add "struct parser_state" argument.
4243 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4244 calls to both functions.
4245 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4246 parser state.
4247 (yyparse): Redefine macro to f_parse_internal.
4248 (pstate): New variable.
4249 (parse_number): Add "struct parser_state" argument.
4250 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4251 and similars in order to use parser state.
4252 (parse_number): Adjust code to use parser state.
4253 (yylex): Likewise.
4254 (f_parse): New function.
4255 * f-lang.h: Forward declare "struct parser_state".
4256 (f_parse): Add "struct parser_state" argument.
4257 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4258 parser state.
4259 (yyparse): Redefine macro for java_parse_internal.
4260 (pstate): New variable.
4261 (push_expression_name, push_expression_name, insert_exp): Add
4262 "struct parser_state" argument.
4263 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4264 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4265 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4266 PostIncrementExpression, PostDecrementExpression,
4267 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4268 UnaryExpressionNotPlusMinus, CastExpression,
4269 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4270 RelationalExpression, EqualityExpression, AndExpression,
4271 ExclusiveOrExpression, InclusiveOrExpression,
4272 ConditionalAndExpression, ConditionalOrExpression,
4273 ConditionalExpression, Assignment, LeftHandSide): Update
4274 calls to write_exp* and similars in order to use parser state.
4275 (parse_number): Ajust code to use parser state.
4276 (yylex): Likewise.
4277 (java_parse): New function.
4278 (push_variable): Add "struct parser_state" argument. Adjust
4279 code to user parser state.
4280 (push_fieldnames, push_qualified_expression_name,
4281 push_expression_name, insert_exp): Likewise.
4282 * jv-lang.h: Forward declare "struct parser_state".
4283 (java_parse): Add "struct parser_state" argument.
4284 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4285 parser state.
4286 (yyparse): Redefine macro to m2_parse_internal.
4287 (pstate): New variable.
4288 (type_exp, exp, fblock, variable, type): Update calls to
4289 write_exp* and similars to use parser state.
4290 (yylex): Likewise.
4291 (m2_parse): New function.
4292 * m2-lang.h: Forward declare "struct parser_state".
4293 (m2_parse): Add "struct parser_state" argument.
4294 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4295 * objc-lang.h: Forward declare "struct parser_state".
4296 (end_msglist): Add "struct parser_state" argument.
4297 * p-exp.y (parse_type): Rewrite macro to use parser state.
4298 (yyparse): Redefine macro to pascal_parse_internal.
4299 (pstate): New variable.
4300 (parse_number): Add "struct parser_state" argument.
4301 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4302 write_exp* and similars in order to use parser state.
4303 (parse_number, yylex): Adjust code to use parser state.
4304 (pascal_parse): New function.
4305 * p-lang.h: Forward declare "struct parser_state".
4306 (pascal_parse): Add "struct parser_state" argument.
4307 * go-exp.y (parse_type): Rewrite macro to use parser state.
4308 (yyparse): Redefine macro to go_parse_internal.
4309 (pstate): New variable.
4310 (parse_number): Add "struct parser_state" argument.
4311 (type_exp, exp1, exp, variable, type): Update calls to
4312 write_exp* and similars in order to use parser state.
4313 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4314 to use parser state.
4315 (go_parse): Likewise.
4316 * go-lang.h: Forward declare "struct parser_state".
4317 (go_parse): Add "struct parser_state" argument.
4318
4319 2014-03-27 Doug Evans <dje@google.com>
4320
4321 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4322
4323 2014-03-27 Doug Evans <dje@google.com>
4324
4325 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4326 Remove argument abbrev_section. All callers updated.
4327
4328 2014-03-27 Doug Evans <dje@google.com>
4329
4330 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4331 addr_base, ranges_base.
4332
4333 2014-03-26 Keith Seitz <keiths@redhat.com>
4334
4335 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4336 types, not VAR_DOMAIN.
4337
4338 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4339
4340 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4341 "ra" registers.
4342 * features/nios2-linux.c: Regenerated.
4343 * features/nios2.c: Regenerated.
4344
4345 2014-03-25 Pedro Alves <palves@redhat.com>
4346
4347 * cli/cli-script.c (script_from_file): Force the interpreter to
4348 sync mode.
4349
4350 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4351
4352 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4353 small stack allocation.
4354
4355 2014-03-24 Tristan Gingold <gingold@adacore.com>
4356
4357 * darwin-nat.c (exc_server): Remove unused prototype.
4358 (darwin_dump_message): Correctly display data on x86_64.
4359 (darwin_encode_reply): Fix style.
4360 Add comments and fix indentation.
4361
4362 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4363
4364 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4365
4366 2014-03-22 Doug Evans <xdje42@gmail.com>
4367
4368 * infcmd.c: Whitespace fixes.
4369 (interrupt_command): Merge two function comments into one.
4370
4371 2014-03-22 Doug Evans <xdje42@gmail.com>
4372
4373 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4374 All uses updated.
4375
4376 2014-03-22 Yao Qi <yao@codesourcery.com>
4377
4378 * remote.c (target_read_live_memory): Remove.
4379 (memory_xfer_live_readonly_partial): Rename it to
4380 remote_xfer_live_readonly_partial. Remove argument 'object'.
4381 All callers updated. Call remote_read_bytes_1
4382 instead of target_read_live_memory.
4383 * tracepoint.c (set_traceframe_number): Remove.
4384 (make_cleanup_restore_traceframe_number): Likewise .
4385 * tracepoint.h (set_traceframe_number): Remove declaration.
4386 (make_cleanup_restore_traceframe_number): Likewise.
4387
4388 2014-03-22 Yao Qi <yao@codesourcery.com>
4389
4390 * remote.c (remote_read_bytes): Move code on reading from the
4391 remote stub to ...
4392 (remote_read_bytes_1): ... here. New function.
4393
4394 2014-03-22 Yao Qi <yao@codesourcery.com>
4395
4396 * ctf.c (ctf_xfer_partial): Check the return value of
4397 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4398 return TARGET_XFER_UNAVAILABLE.
4399 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4400 * target.c (target_read_live_memory): Move it to remote.c.
4401 (memory_xfer_live_readonly_partial): Likewise.
4402 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4403 * remote.c (target_read_live_memory): Moved from target.c.
4404 (memory_xfer_live_readonly_partial): Likewise.
4405 (remote_read_bytes): Factored out from
4406 memory_xfer_partial_1.
4407
4408 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4409
4410 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4411 NULL pointer.
4412
4413 2014-03-21 Pedro Alves <palves@redhat.com>
4414
4415 * infrun.c (normal_stop): Extend comment.
4416
4417 2014-03-21 Hui Zhu <hui@codesourcery.com>
4418 Pedro Alves <palves@redhat.com>
4419
4420 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4421 static buffer.
4422 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4423 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4424 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4425
4426 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4427
4428 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4429 `z' formatted output modifier.
4430
4431 2014-03-20 Tom Tromey <tromey@redhat.com>
4432 Sergio Durigan Junior <sergiodj@redhat.com>
4433
4434 * probe.c (parse_probes): Turn assert into an ordinary error.
4435 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4436 exceptions when parsing probes. Rearrange the code for clarity.
4437
4438 2014-03-20 Tom Tromey <tromey@redhat.com>
4439
4440 PR gdb/14135
4441 * top.c (execute_command): Only dispatch events if the command
4442 started the target.
4443
4444 2014-03-20 Tom Tromey <tromey@redhat.com>
4445
4446 PR cli/15718
4447 * infcall.c: Include event-top.h.
4448 (run_inferior_call): Call async_disable_stdin if needed.
4449
4450 2014-03-20 Pedro Alves <palves@redhat.com>
4451
4452 * infrun.c (prepare_to_proceed): Delete.
4453 (thread_still_needs_step_over): New function.
4454 (find_thread_needs_step_over): New function.
4455 (proceed): If the current thread needs a step-over, set its
4456 steping_over_breakpoint flag. Adjust to use
4457 find_thread_needs_step_over instead of prepare_to_proceed.
4458 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4459 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4460 breakpoint.
4461 (switch_back_to_stepped_thread): Step over breakpoints of all
4462 threads not the stepping thread, before switching back to the
4463 stepping thread.
4464
4465 2014-03-20 Pedro Alves <palves@redhat.com>
4466
4467 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4468 extern.
4469 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4470 * infrun.c (saved_singlestep_ptid)
4471 (stepping_past_singlestep_breakpoint): Delete.
4472 (resume): Remove stepping_past_singlestep_breakpoint handling.
4473 (proceed): Store the prev_pc of the stepping thread too.
4474 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4475 singlestep_pc.
4476 (enum infwait_states): Delete infwait_thread_hop_state.
4477 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4478 field.
4479 (handle_inferior_event): Adjust.
4480 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4481 handling and the thread-hop code. Before removing single-step
4482 breakpoints, check whether the thread hit a single-step breakpoint
4483 of another thread. If it did, the trap is not a random signal.
4484 (switch_back_to_stepped_thread): If the event thread hit a
4485 single-step breakpoint, unblock it before switching to the
4486 stepping thread. Handle the case of the stepped thread having
4487 advanced already.
4488 (keep_going): Handle the case of the current thread moving past a
4489 single-step breakpoint.
4490
4491 2014-03-20 Pedro Alves <palves@redhat.com>
4492
4493 PR breakpoints/7143
4494 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4495 are being stepped over.
4496 (breakpoint_address_match): Make extern.
4497 * breakpoint.h (breakpoint_address_match): New declaration.
4498 * inferior.h (stepping_past_instruction_at): New declaration.
4499 * infrun.c (struct step_over_info): New type.
4500 (step_over_info): New global.
4501 (set_step_over_info, clear_step_over_info)
4502 (stepping_past_instruction_at): New functions.
4503 (handle_inferior_event): Clear the step-over info when
4504 trap_expected is cleared.
4505 (resume): Remove now stale comment.
4506 (clear_proceed_status): Clear step-over info.
4507 (proceed): Adjust step-over handling to set or clear the step-over
4508 info instead of removing all breakpoints.
4509 (handle_signal_stop): When setting up a thread-hop, don't remove
4510 breakpoints here.
4511 (stop_stepping): Clear step-over info.
4512 (keep_going): Adjust step-over handling to set or clear step-over
4513 info and then always inserting breakpoints, instead of removing
4514 all breakpoints when stepping over one.
4515
4516 2014-03-20 Pedro Alves <palves@redhat.com>
4517
4518 * infrun.c (previous_inferior_ptid): Adjust comment.
4519 (deferred_step_ptid): Delete.
4520 (infrun_thread_ptid_changed, prepare_to_proceed)
4521 (init_wait_for_inferior): Adjust.
4522 (handle_signal_stop): Delete deferred_step_ptid handling.
4523
4524 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4525
4526 PR gdb/15358
4527 * defs.h (sync_quit_force_run): New declaration.
4528 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4529 * event-top.c (async_sigterm_handler): New declaration.
4530 (async_sigterm_token): New variable.
4531 (async_init_signals): Create also async_sigterm_token.
4532 (async_sigterm_handler): New function.
4533 (sync_quit_force_run): New variable.
4534 (handle_sigterm): Replace quit_force call by other calls.
4535 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4536
4537 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4538
4539 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4540 offset into SPE pseudo registers.
4541
4542 2014-03-18 Pedro Alves <palves@redhat.com>
4543
4544 PR gdb/13860
4545 * inferior.h (print_stop_event): Declare.
4546 * infrun.c (print_stop_event): New, factored out from ...
4547 (normal_stop): ... this.
4548 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4549 of bpstat_print/print_stack_frame.
4550
4551 2014-03-17 Tom Tromey <tromey@redhat.com>
4552
4553 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4554
4555 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4556
4557 * ada-lang.c (decode_constrained_packed_array): Perform a
4558 minimal coercion for reference with coerce_ref instead of
4559 ada_coerce_ref.
4560
4561 2014-03-17 Tristan Gingold <gingold@adacore.com>
4562
4563 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4564 (darwin_solib_create_inferior_hook): Emit a warning if version
4565 is unhandled.
4566
4567 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
4568
4569 * python/py-value.c (get_field_flag): Cast flag_name argument to
4570 PyObject_GetAttrString to support Python 2.4.
4571
4572 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4573
4574 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4575 (Global Maintainers): Remove Jan Kratochvil.
4576
4577 2014-03-14 Pedro Alves <palves@redhat.com>
4578
4579 * inferior.h (terminal_ours_for_output): Rename to ...
4580 (child_terminal_ours_for_output): ... this.
4581 (terminal_save_ours): Rename to ...
4582 (child_terminal_save_ours): ... this.
4583 (terminal_ours): Rename to ...
4584 (child_terminal_ours): ... this.
4585 (terminal_inferior): Rename to ...
4586 (child_terminal_inferior): ... this.
4587 (terminal_init_inferior): Rename to ...
4588 (child_terminal_init_inferior): ... this.
4589 (terminal_init_inferior_with_pgrp): Rename to ...
4590 (child_terminal_init_inferior_with_pgrp): ... this.
4591 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4592 (child_terminal_init_with_pgrp): ... this.
4593 (terminal_save_ours): Rename to ...
4594 (child_terminal_save_ours): ... this.
4595 (terminal_init_inferior): Rename to ...
4596 (child_terminal_init): ... this. Adjust.
4597 (terminal_inferior): Rename to ...
4598 (child_terminal_inferior): ... this.
4599 (terminal_ours_for_output): Rename to ...
4600 (child_terminal_ours_for_output): ... this. Adjust.
4601 (terminal_ours): Rename to ...
4602 (child_terminal_ours): ... this.
4603 (terminal_ours_1): Rename to ...
4604 (child_terminal_ours_1): ... this. Adjust.
4605 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4606 * windows-nat.c (do_initial_windows_stuff): Adjust.
4607 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4608 (gnu_terminal_init): ... this. Adjust.
4609 (gnu_target): Adjust.
4610 * inf-child.c (inf_child_target): Adjust.
4611
4612 2014-03-13 Doug Evans <xdje42@gmail.com>
4613
4614 PR guile/16612
4615 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4616 new eq?-hashtab.
4617
4618 2014-03-13 Doug Evans <xdje42@gmail.com>
4619
4620 * value.c (record_latest_value): Call release_value_or_incref
4621 instead of release_value.
4622
4623 2014-03-13 Pedro Alves <palves@redhat.com>
4624
4625 * procfs.c (procfs_target): Don't override to_shortname,
4626 to_longname or to_doc.
4627
4628 2014-03-13 Pedro Alves <palves@redhat.com>
4629
4630 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4631 Unix in user visible strings.
4632
4633 2014-03-12 Stan Shebs <stan@codesourcery.com>
4634
4635 * gdbtypes.h: Annotate comments for Doxygen, add a page
4636 block comment with some general info.
4637
4638 2014-03-12 Pedro Alves <palves@redhat.com>
4639
4640 * infcmd.c (prepare_execution_command): New function, factored out
4641 from several execution commands.
4642 (run_command_1, continue_command, step_1, jump_command)
4643 (signal_command, until_command, advance_command, finish_command)
4644 (attach_command): Use prepare_execution_command.
4645
4646 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4647
4648 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4649 (MAX_BPTS): Define.
4650 (MAX_WPTS): Define.
4651 (struct arm_linux_thread_points): Removed.
4652 (struct arm_linux_process_info): New.
4653 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4654 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4655 (arm_linux_find_breakpoints_by_tid): Removed.
4656 (struct arch_lwp_info): New.
4657 (arm_linux_find_process_pid): New functions.
4658 (arm_linux_add_process): New functions.
4659 (arm_linux_process_info_get): New functions.
4660 (arm_linux_forget_process): New function.
4661 (arm_linux_get_debug_reg_state): New function.
4662 (struct update_registers_data): New.
4663 (update_registers_callback): New function.
4664 (arm_linux_insert_hw_breakpoint1): Updated.
4665 (arm_linux_remove_hw_breakpoint1): Updated.
4666 (arm_linux_insert_hw_breakpoint): Updated.
4667 (arm_linux_remove_hw_breakpoint): Updated.
4668 (arm_linux_insert_watchpoint): Updated.
4669 (arm_linux_remove_watchpoint): Updated.
4670 (arm_linux_new_thread): Updated.
4671 (arm_linux_prepare_to_resume): New function.
4672 (arm_linux_new_fork): New function.
4673 (_initialize_arm_linux_nat): Updated.
4674
4675 2014-03-12 Pedro Alves <palves@redhat.com>
4676
4677 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4678
4679 2014-03-12 Tom Tromey <tromey@redhat.com>
4680
4681 * inf-child.c (return_zero): New function.
4682 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4683 * aix-thread.c (aix_thread_inferior_created): New function.
4684 (aix_thread_attach): Remove.
4685 (init_aix_thread_ops): Don't set to_attach.
4686 (_initialize_aix_thread): Register inferior_created observer.
4687 * corelow.c (init_core_ops): Don't set to_attach or
4688 to_create_inferior.
4689 * exec.c (init_exec_ops): Don't set to_attach or
4690 to_create_inferior.
4691 * infcmd.c (run_command_1): Use find_run_target. Make direct
4692 target calls.
4693 (attach_command): Use find_attach_target. Make direct target
4694 calls.
4695 * record-btrace.c (init_record_btrace_ops): Don't set
4696 to_create_inferior.
4697 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4698 Remove.
4699 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4700 set to_create_inferior.
4701 * target.c (complete_target_initialization): Add assertion.
4702 (target_create_inferior): Remove.
4703 (find_default_attach, find_default_create_inferior): Remove.
4704 (find_attach_target, find_run_target): New functions.
4705 (find_default_is_async_p, find_default_can_async_p)
4706 (target_supports_non_stop, target_attach): Remove.
4707 (init_dummy_target): Don't set to_create_inferior or
4708 to_supports_non_stop.
4709 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4710 TARGET_DEFAULT_FUNC.
4711 <to_create_inferior>: Add comment.
4712 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4713 TARGET_DEFAULT_RETURN.
4714 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4715 (find_attach_target, find_run_target): Declare.
4716 (target_create_inferior): Remove.
4717 (target_has_execution_1): Update comment.
4718 (target_supports_non_stop): Remove.
4719 * target-delegates.c: Rebuild.
4720
4721 2014-03-12 Pedro Alves <palves@redhat.com>
4722
4723 * inf-child.h: Update comment to not mention Unix.
4724
4725 2014-03-12 Pedro Alves <palves@redhat.com>
4726
4727 * inf-child.c: Update top comment to not mention Unix. Add
4728 generic comment describing how this target is meant to be used.
4729 (inf_child_post_attach, inf_child_post_startup_inferior)
4730 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4731 Unix in comment.
4732
4733 2014-03-12 Pedro Alves <palves@redhat.com>
4734
4735 * nto-procfs.c: Include inf-child.h.
4736 (procfs_ops): Delete global.
4737 (procfs_can_run): Delete method.
4738 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4739 target pointer instead of referencing procfs_ops.
4740 (procfs_prepare_to_store): Delete.
4741 (init_procfs_ops): Delete function.
4742 (procfs_target): New function, based on init_procfs_ops, but
4743 inherit inf_child_target.
4744 (_initialize_procfs): Use procfs_target.
4745
4746 2014-03-12 Pedro Alves <palves@redhat.com>
4747
4748 * windows-nat.c: Include inf-child.h.
4749 (windows_ops): Delete global.
4750 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4751 methods.
4752 (init_windows_ops): Delete function.
4753 (windows_target): New function, based on init_windows_ops, but
4754 inherit inf_child_target.
4755 (_initialize_windows_nat): Use windows_target. Install x86
4756 specific target methods here.
4757
4758 2014-03-10 Doug Evans <xdje42@gmail.com>
4759
4760 * guile/guile.c (call_initialize_gdb_module): New function.
4761 (initialize_guile): Replace call to scm_init_guile with call to
4762 scm_with_guile.
4763
4764 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4765
4766 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4767 in call to TYPE_CODE macro.
4768
4769 2014-03-10 Jerome Guitton <guitton@adacore.com>
4770
4771 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4772 Resolve tagged types to full view.
4773
4774 2014-03-10 Hui Zhu <hui@codesourcery.com>
4775
4776 * target.h (target_insert_breakpoint): Remove "hardware" from its
4777 comments.
4778
4779 2014-03-07 Doug Evans <dje@google.com>
4780
4781 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4782
4783 2014-03-07 Doug Evans <dje@google.com>
4784
4785 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4786 Remove unused local comp_dir_attr. Assert exactly one of
4787 stub_comp_unit_die, stub_comp_dir is non-NULL.
4788
4789 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4790
4791 * target.h (complete_target_initialization, add_target):
4792 Add comment.
4793
4794 2014-03-07 Pedro Alves <palves@redhat.com>
4795
4796 * go32-nat.c: Include inf-child.h.
4797 (go32_ops): Delete global.
4798 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4799 Delete methods.
4800 (go32_create_inferior): Push the passed in target pointer instead
4801 of referencing go32_ops.
4802 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4803 (go32_target): New function, based on init_go32_ops, but inherit
4804 inf_child_target.
4805 (_initialize_go32_nat): Use go32_target. Move parts of
4806 init_go32_ops here.
4807
4808 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4809
4810 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4811 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4812 SYMBOL_VALUE_ADDRESS.
4813 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4814
4815 2014-03-06 Yao Qi <yao@codesourcery.com>
4816
4817 * breakpoint.c (get_tracepoint_by_number): Remove argument
4818 optional_p. All callers updated. Adjust comments. Update
4819 output message.
4820 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4821
4822 2014-03-06 Yao Qi <yao@codesourcery.com>
4823
4824 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4825 early if get_number returns zero. Use 'p' instead of 'args'.
4826
4827 2014-03-06 Yao Qi <yao@codesourcery.com>
4828
4829 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4830 message.
4831
4832 2014-03-06 Yao Qi <yao@codesourcery.com>
4833
4834 PR breakpoints/16508
4835 * tracepoint.c (check_trace_running): New function.
4836 (trace_find_command): Move code to check_trace_running and
4837 call check_trace_running.
4838 (trace_find_pc_command): Likewise.
4839 (trace_find_tracepoint_command): Likewise.
4840 (trace_find_line_command): Likewise.
4841 (trace_find_range_command): Likewise.
4842 * tracepoint.h (check_trace_running): Likewise.
4843 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4844
4845 2014-03-06 Yao Qi <yao@codesourcery.com>
4846
4847 * target.h (struct target_ops) <to_traceframe_info>: Use
4848 TARGET_DEFAULT_NORETURN (tcomplain ()).
4849 * target-delegates.c: Regenerated.
4850
4851 2014-03-05 Pedro Alves <palves@redhat.com>
4852
4853 PR gdb/16575
4854 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4855 void. Update comment.
4856 (dcache_xfer_memory): Delete.
4857 (dcache_read_memory_partial): New, based on the read bits of
4858 dcache_xfer_memory.
4859 (dcache_update): Add status parameter. Use ULONGEST for len, and
4860 adjust. Discard cache lines if the reason for the update was
4861 error.
4862 * dcache.h (dcache_xfer_memory): Delete declaration.
4863 (dcache_read_memory_partial): New declaration.
4864 (dcache_update): Update prototype.
4865 * target.c (raw_memory_xfer_partial): Update the dcache here.
4866 (memory_xfer_partial_1): Don't handle dcache writes here.
4867
4868 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4869
4870 * remote-sim.c (gdbsim_load): Add const to prog.
4871
4872 2014-03-03 Tom Tromey <tromey@redhat.com>
4873
4874 * elfread.c (probe_key): Change to bfd_data.
4875 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4876 now per-BFD, not per-objfile.
4877 * stap-probe.c (stap_probe_destroy): Update comment.
4878 (handle_stap_probe): Allocate on the per-BFD obstack.
4879
4880 2014-03-03 Tom Tromey <tromey@redhat.com>
4881
4882 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4883 * breakpoint.c (create_longjmp_master_breakpoint): Use
4884 get_probe_address.
4885 (add_location_to_breakpoint, bkpt_probe_insert_location)
4886 (bkpt_probe_remove_location): Update.
4887 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4888 * elfread.c (elf_symfile_relocate_probe): Remove.
4889 (elf_probe_fns): Update.
4890 (insert_exception_resume_breakpoint): Change type of "probe"
4891 parameter to bound_probe.
4892 (check_exception_resume): Update.
4893 * objfiles.c (objfile_relocate1): Don't relocate probes.
4894 * probe.c (bound_probe_s): New typedef.
4895 (parse_probes): Use get_probe_address. Set sal's objfile.
4896 (find_probe_by_pc): Return a bound_probe.
4897 (collect_probes): Return a VEC(bound_probe_s).
4898 (compare_probes): Update.
4899 (gen_ui_out_table_header_info): Change type of "probes"
4900 parameter. Update.
4901 (info_probes_for_ops): Update.
4902 (get_probe_address): New function.
4903 (probe_safe_evaluate_at_pc): Update.
4904 * probe.h (struct probe_ops) <get_probe_address>: New field.
4905 <set_semaphore, clear_semaphore>: Add objfile parameter.
4906 (struct probe) <objfile>: Remove field.
4907 <arch>: New field.
4908 <address>: Update comment.
4909 (struct bound_probe): New.
4910 (find_probe_by_pc): Return a bound_probe.
4911 (get_probe_address): Declare.
4912 * solib-svr4.c (struct probe_and_action) <address>: New field.
4913 (hash_probe_and_action, equal_probe_and_action): Update.
4914 (register_solib_event_probe): Add address parameter.
4915 (solib_event_probe_at): Update.
4916 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4917 get_probe_address.
4918 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4919 (stap_get_probe_address): New function.
4920 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4921 (compile_probe_arg): Update.
4922 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4923 address.
4924 (handle_stap_probe): Don't relocate the probe.
4925 (stap_relocate): Remove.
4926 (stap_gen_info_probes_table_values): Update.
4927 (stap_probe_ops): Remove stap_relocate.
4928 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4929 (debug_sym_probe_fns): Update.
4930 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4931 * symtab.c (init_sal): Use memset.
4932 * symtab.h (struct symtab_and_line) <objfile>: New field.
4933 * tracepoint.c (start_tracing, stop_tracing): Update.
4934
4935 2014-03-03 Tom Tromey <tromey@redhat.com>
4936
4937 * probe.h (parse_probes, find_probe_by_pc)
4938 (find_probes_in_objfile): Fix comments.
4939
4940 2014-03-02 Doug Evans <xdje42@gmail.com>
4941
4942 * infrun.c (handle_signal_stop): Replace test for
4943 TARGET_WAITKIND_STOPPED with an assert.
4944
4945 2014-03-02 Doug Evans <xdje42@gmail.com>
4946
4947 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4948
4949 2014-03-02 Doug Evans <xdje42@gmail.com>
4950
4951 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4952
4953 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4954
4955 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4956
4957 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4958
4959 * i386obsd-nat.c: Include "obsd-nat.h".
4960 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4961 add_target.
4962 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4963
4964 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4965
4966 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4967
4968 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4969
4970 * mips64obsd-nat.c: Include "obsd-nath".
4971 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4972 add_target
4973 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4974
4975 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4976
4977 * amd64obsd-nat.c: Include "obsd-nat,h.
4978 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4979 add_target.
4980 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4981
4982 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4983
4984 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4985 (find_overload_match): Update call to find_oload_champ.
4986 (find_oload_champ_namespace_loop): Likewise
4987
4988 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4989
4990 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4991
4992 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4993 * config/sparc/obsd64.mh: New file.
4994 * sparc64obsd-nat.c: New file.
4995
4996 * obsd-nat.h: New file.
4997 * obsd-nat.c: New file.
4998 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4999 (ALLDEPFILES): Add obsd-nat.c.
5000
5001 2014-02-28 Tom Tromey <tromey@redhat.com>
5002
5003 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5004 * cli-out.h (cli_ui_out_impl): Now const.
5005 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5006 * ui-out.c (struct ui_out) <impl>: Now const.
5007 (default_ui_out_impl): Now const.
5008 (ui_out_new): Make 'impl' parameter const.
5009 * ui-out.h (ui_out_new): Update.
5010
5011 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5012
5013 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5014
5015 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5016
5017 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5018
5019 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5020
5021 Additional PR 8882 fix.
5022 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5023
5024 2014-02-27 Pedro Alves <palves@redhat.com>
5025
5026 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5027 isn't set.
5028
5029 2014-02-27 Pedro Alves <palves@redhat.com>
5030
5031 PR 12702
5032 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5033 * nat/linux-waitpid.c: Include string.h.
5034 (status_to_str): Moved here and made extern.
5035 * nat/linux-waitpid.h (status_to_str): New declaration.
5036
5037 2014-02-27 Hui Zhu <hui@codesourcery.com>
5038
5039 PR 12702
5040 * infrun.c (ptid_match): Move ...
5041 * common/ptid.c (ptid_match): ... here.
5042 * inferior.h (ptid_match): Move ...
5043 * common/ptid.h (ptid_match): ... here.
5044
5045 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5046
5047 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5048 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5049 gdb_target_obs.
5050
5051 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5052
5053 * obsd-tdep.c (obsd_auxv_parse): New function.
5054 (obsd_init_abi): Set auxv_parse.
5055
5056 * gdbarch.sh (auxv_parse): New.
5057 * gdbarch.h: Regenerated.
5058 * gdbarch.c: Regenerated.
5059 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5060
5061 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5062
5063 * guile/scm-value.c (gdbscm_history_append_x): New function.
5064 (value_functions): Add it.
5065
5066 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5067
5068 * dwarf2read.c (attr_value_as_address): New function.
5069 (dwarf2_find_base_address, read_call_site_scope): Use
5070 attr_value_as_address in place of DW_ADDR.
5071 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5072 the low and high addresses. Slight rework of the handling
5073 of the high pc being a constant form, and limit it to
5074 DWARF verson 4 or higher.
5075 (dwarf2_record_block_ranges): Likewise.
5076 (read_partial_die): Likewise.
5077 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5078
5079 2014-02-26 Tom Tromey <tromey@redhat.com>
5080
5081 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5082
5083 2014-02-26 Tom Tromey <tromey@redhat.com>
5084
5085 * elfread.c (elf_read_minimal_symbols): Return early if
5086 minimal symbols have already been read. Add "ei" parameter.
5087 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5088 * minsyms.c (prim_record_minimal_symbol_full): Update.
5089 * objfiles.h (struct objstats) <n_minsyms>: Move...
5090 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5091 * symmisc.c (print_objfile_statistics): Update.
5092
5093 2014-02-26 Tom Tromey <tromey@redhat.com>
5094
5095 * elfread.c (elf_read_minimal_symbols): New function, from
5096 elf_symfile_read.
5097 (elf_symfile_read): Call it.
5098
5099 2014-02-26 Tom Tromey <tromey@redhat.com>
5100
5101 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5102 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5103 (lookup_minimal_symbol_solib_trampoline)
5104 (lookup_minimal_symbol_by_pc_section_1)
5105 (lookup_minimal_symbol_and_objfile): Update.
5106 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5107 Don't allocate a minimal symbol if minsyms have already been read.
5108 (build_minimal_symbol_hash_tables): Update.
5109 (install_minimal_symbols): Do nothing if minsyms already read.
5110 Use the per-BFD obstack.
5111 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5112 * objfiles.c (allocate_objfile): Call
5113 terminate_minimal_symbol_table later.
5114 (have_minimal_symbols): Update.
5115 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5116 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5117 Move from struct objfile.
5118 <minsyms_read>: New field.
5119 (struct objfile) <msymbols, minimal_symbol_count,
5120 msymbol_hash, msymbol_demangled_hash>: Move.
5121 (ALL_OBJFILE_MSYMBOLS): Update.
5122 * symfile.c (read_symbols): Set minsyms_read.
5123 (reread_symbols): Update.
5124 * symmisc.c (dump_objfile, dump_msymbols): Update.
5125
5126 2014-02-26 Tom Tromey <tromey@redhat.com>
5127
5128 * minsyms.c (msymbols_sort): Remove.
5129 * minsyms.h (msymbols_sort): Remove.
5130 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5131 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5132 * elfread.c (elf_symtab_read): Don't add section offsets.
5133 * xcoffread.c (record_minimal_symbol): Don't add section offset
5134 to minimal symbol address.
5135 * somread.c (text_offset, data_offset): Remove.
5136 (som_symtab_read): Don't add section offsets to minimal symbol
5137 addresses.
5138 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5139 Don't add section offsets to minimal symbols.
5140 * coffread.c (coff_symtab_read): Don't add section offsets
5141 to minimal symbol addresses.
5142 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5143 to minimal symbol addresses.
5144 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5145 section offset to minimal symbol addresses.
5146 * mdebugread.c (parse_partial_symbols): Don't add section
5147 offset to minimal symbol addresses.
5148 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5149 offset to minimal symbol addresses.
5150
5151 2014-02-26 Tom Tromey <tromey@redhat.com>
5152
5153 * ada-lang.c (ada_main_name): Update.
5154 (ada_add_standard_exceptions): Update.
5155 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5156 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5157 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5158 * auxv.c (ld_so_xfer_auxv): Update.
5159 * avr-tdep.c (avr_scan_prologue): Update.
5160 * ax-gdb.c (gen_var_ref): Update.
5161 * blockframe.c (get_pc_function_start)
5162 (find_pc_partial_function_gnu_ifunc): Update.
5163 * breakpoint.c (create_overlay_event_breakpoint)
5164 (create_longjmp_master_breakpoint)
5165 (create_std_terminate_master_breakpoint)
5166 (create_exception_master_breakpoint): Update.
5167 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5168 * c-valprint.c (c_val_print): Update.
5169 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5170 * common/agent.c (agent_look_up_symbols): Update.
5171 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5172 * dwarf2loc.c (call_site_to_target_addr): Update.
5173 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5174 * elfread.c (elf_gnu_ifunc_record_cache)
5175 (elf_gnu_ifunc_resolve_by_got): Update.
5176 * findvar.c (default_read_var_value): Update.
5177 * frame.c (inside_main_func): Update.
5178 * frv-tdep.c (frv_frame_this_id): Update.
5179 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5180 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5181 Update.
5182 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5183 (hppa_hpux_find_dummy_bpaddr): Update.
5184 * hppa-tdep.c (hppa_symbol_address): Update.
5185 * infcmd.c (until_next_command): Update.
5186 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5187 Update.
5188 * linespec.c (minsym_found, add_minsym): Update.
5189 * linux-nat.c (get_signo): Update.
5190 * linux-thread-db.c (inferior_has_bug): Update.
5191 * m32c-tdep.c (m32c_return_value)
5192 (m32c_m16c_address_to_pointer): Update.
5193 * m32r-tdep.c (m32r_frame_this_id): Update.
5194 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5195 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5196 * maint.c (maintenance_translate_address): Update.
5197 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5198 (frob_address): New function.
5199 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5200 frob_address. Rename parameter to "pc_in".
5201 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5202 addresses.
5203 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5204 Update.
5205 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5206 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5207 * objc-lang.c (find_objc_msgsend): Update.
5208 * objfiles.c (objfile_relocate1): Update.
5209 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5210 * p-valprint.c (pascal_val_print): Update.
5211 * parse.c (write_exp_msymbol): Update.
5212 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5213 (ppc_elfv2_skip_entrypoint): Update.
5214 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5215 * printcmd.c (build_address_symbolic, msym_info)
5216 (address_info): Update.
5217 * proc-service.c (ps_pglobal_lookup): Update.
5218 * psymtab.c (find_pc_sect_psymtab_closer)
5219 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5220 Change msymbol parameter to bound_minimal_symbol.
5221 * ravenscar-thread.c (get_running_thread_id): Update.
5222 * remote.c (remote_check_symbols): Update.
5223 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5224 address.
5225 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5226 * solib-dsbt.c (lm_base): Update.
5227 * solib-frv.c (lm_base, main_got): Update.
5228 * solib-irix.c (locate_base): Update.
5229 * solib-som.c (som_solib_create_inferior_hook)
5230 (link_map_start): Update.
5231 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5232 * solib-svr4.c (elf_locate_base, enable_break): Update.
5233 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5234 (flush_ea_cache): Update.
5235 * stabsread.c (define_symbol, scan_file_globals): Update.
5236 * stack.c (find_frame_funname): Update.
5237 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5238 (debug_qf_find_pc_sect_symtab): Update.
5239 * symfile.c (simple_read_overlay_table)
5240 (simple_overlay_update): Update.
5241 * symfile.h (struct quick_symbol_functions)
5242 <find_pc_sect_symtab>: Change type of msymbol to
5243 bound_minimal_symbol.
5244 * symmisc.c (dump_msymbols): Update.
5245 * symtab.c (find_pc_sect_symtab_via_partial)
5246 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5247 (search_symbols, print_msymbol_info): Update.
5248 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5249 (MSYMBOL_VALUE_ADDRESS): Redefine.
5250 (BMSYMBOL_VALUE_ADDRESS): New macro.
5251 * tracepoint.c (scope_info): Update.
5252 * tui/tui-disasm.c (tui_find_disassembly_address)
5253 (tui_get_begin_asm_address): Update.
5254 * valops.c (find_function_in_inferior): Update.
5255 * value.c (value_static_field, value_fn_field): Update.
5256
5257 2014-02-26 Tom Tromey <tromey@redhat.com>
5258
5259 * ada-lang.c (ada_update_initial_language): Update.
5260 (ada_main_name, ada_has_this_exception_support): Update.
5261 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5262 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5263 * arm-tdep.c (arm_skip_stub): Update.
5264 * auxv.c (ld_so_xfer_auxv): Update.
5265 * avr-tdep.c (avr_scan_prologue): Update.
5266 * ax-gdb.c (gen_var_ref): Update.
5267 * breakpoint.c (struct breakpoint_objfile_data)
5268 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5269 type to bound_minimal_symbol.
5270 (create_overlay_event_breakpoint)
5271 (create_longjmp_master_breakpoint)
5272 (create_std_terminate_master_breakpoint)
5273 (create_exception_master_breakpoint): Update.
5274 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5275 * c-exp.y (classify_name): Update.
5276 * coffread.c (coff_symfile_read): Update.
5277 * common/agent.c (agent_look_up_symbols): Update.
5278 * d-lang.c (d_main_name): Update.
5279 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5280 * dec-thread.c (enable_dec_thread): Update.
5281 * dwarf2loc.c (call_site_to_target_addr): Update.
5282 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5283 * eval.c (evaluate_subexp_standard): Update.
5284 * findvar.c (struct minsym_lookup_data) <result>: Change type
5285 to bound_minimal_symbol.
5286 <objfile>: Remove.
5287 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5288 * frame.c (inside_main_func): Update.
5289 * frv-tdep.c (frv_frame_this_id): Update.
5290 * gcore.c (call_target_sbrk): Update.
5291 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5292 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5293 Update.
5294 * go-lang.c (go_main_name): Update.
5295 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5296 (hppa_hpux_find_import_stub_for_addr): Update.
5297 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5298 Update. Change return type.
5299 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5300 type.
5301 * jit.c (jit_breakpoint_re_set_internal): Update.
5302 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5303 Update.
5304 * linux-nat.c (get_signo): Update.
5305 * linux-thread-db.c (inferior_has_bug): Update
5306 * m32c-tdep.c (m32c_return_value)
5307 (m32c_m16c_address_to_pointer): Update.
5308 * m32r-tdep.c (m32r_frame_this_id): Update.
5309 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5310 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5311 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5312 lookup_minimal_symbol. Change return type.
5313 (lookup_minimal_symbol): Remove.
5314 (lookup_bound_minimal_symbol): Update.
5315 (lookup_minimal_symbol_text): Change return type.
5316 (lookup_minimal_symbol_solib_trampoline): Change return type.
5317 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5318 (lookup_minimal_symbol_solib_trampoline): Change return type.
5319 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5320 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5321 (value_nsstring, find_imps): Update.
5322 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5323 * p-lang.c (pascal_main_name): Update.
5324 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5325 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5326 * proc-service.c (ps_pglobal_lookup): Update.
5327 * ravenscar-thread.c (get_running_thread_msymbol): Change
5328 return type.
5329 (has_ravenscar_runtime, get_running_thread_id): Update.
5330 * remote.c (remote_check_symbols): Update.
5331 * sol-thread.c (ps_pglobal_lookup): Update.
5332 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5333 * solib-dsbt.c (lm_base): Update.
5334 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5335 Update.
5336 * solib-irix.c (locate_base): Update.
5337 * solib-som.c (som_solib_create_inferior_hook)
5338 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5339 Update.
5340 * solib-spu.c (spu_enable_break): Update.
5341 * solib-svr4.c (elf_locate_base, enable_break): Update.
5342 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5343 (flush_ea_cache): Update.
5344 * stabsread.c (define_symbol): Update.
5345 * symfile.c (simple_read_overlay_table): Update.
5346 * symtab.c (find_pc_sect_line): Update.
5347 * tracepoint.c (scope_info): Update.
5348 * tui-disasm.c (tui_get_begin_asm_address): Update.
5349 * value.c (value_static_field): Update.
5350
5351 2014-02-26 Tom Tromey <tromey@redhat.com>
5352
5353 * minsyms.c (prim_record_minimal_symbol_full): Use
5354 SET_MSYMBOL_VALUE_ADDRESS.
5355 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5356 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5357 SET_MSYMBOL_VALUE_ADDRESS.
5358 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5359 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5360
5361 2014-02-26 Tom Tromey <tromey@redhat.com>
5362
5363 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5364 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5365 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5366 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5367 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5368 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5369 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5370 * ada-lang.c (ada_main_name): Update.
5371 (ada_lookup_simple_minsym): Update.
5372 (ada_make_symbol_completion_list): Update.
5373 (ada_add_standard_exceptions): Update.
5374 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5375 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5376 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5377 * arm-tdep.c (skip_prologue_function): Update.
5378 (arm_skip_stack_protector, arm_skip_stub): Update.
5379 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5380 (arm_wince_skip_main_prologue): Update.
5381 * auxv.c (ld_so_xfer_auxv): Update.
5382 * avr-tdep.c (avr_scan_prologue): Update.
5383 * ax-gdb.c (gen_var_ref): Update.
5384 * block.c (call_site_for_pc): Update.
5385 * blockframe.c (get_pc_function_start): Update.
5386 (find_pc_partial_function_gnu_ifunc): Update.
5387 * breakpoint.c (create_overlay_event_breakpoint): Update.
5388 (create_longjmp_master_breakpoint): Update.
5389 (create_std_terminate_master_breakpoint): Update.
5390 (create_exception_master_breakpoint): Update.
5391 (resolve_sal_pc): Update.
5392 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5393 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5394 Update.
5395 * c-valprint.c (c_val_print): Update.
5396 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5397 * coffread.c (coff_symfile_read): Update.
5398 * common/agent.c (agent_look_up_symbols): Update.
5399 * dbxread.c (find_stab_function_addr): Update.
5400 (end_psymtab): Update.
5401 * dwarf2loc.c (call_site_to_target_addr): Update.
5402 (func_verify_no_selftailcall): Update.
5403 (tailcall_dump): Update.
5404 (call_site_find_chain_1): Update.
5405 (dwarf_expr_reg_to_entry_parameter): Update.
5406 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5407 (elf_gnu_ifunc_resolve_by_got): Update.
5408 * f-valprint.c (info_common_command): Update.
5409 * findvar.c (read_var_value): Update.
5410 * frame.c (get_prev_frame_1): Update.
5411 (inside_main_func): Update.
5412 * frv-tdep.c (frv_skip_main_prologue): Update.
5413 (frv_frame_this_id): Update.
5414 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5415 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5416 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5417 (gnuv3_skip_trampoline): Update.
5418 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5419 (hppa64_hpux_in_solib_call_trampoline): Update.
5420 (hppa_hpux_skip_trampoline_code): Update.
5421 (hppa64_hpux_search_dummy_call_sequence): Update.
5422 (hppa_hpux_find_import_stub_for_addr): Update.
5423 (hppa_hpux_find_dummy_bpaddr): Update.
5424 * hppa-tdep.c (hppa_symbol_address)
5425 (hppa_lookup_stub_minimal_symbol): Update.
5426 * i386-tdep.c (i386_skip_main_prologue): Update.
5427 (i386_pe_skip_trampoline_code): Update.
5428 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5429 * infcall.c (get_function_name): Update.
5430 * infcmd.c (until_next_command): Update.
5431 * jit.c (jit_breakpoint_re_set_internal): Update.
5432 (jit_inferior_init): Update.
5433 * linespec.c (minsym_found): Update.
5434 (add_minsym): Update.
5435 * linux-fork.c (info_checkpoints_command): Update.
5436 * linux-nat.c (get_signo): Update.
5437 * linux-thread-db.c (inferior_has_bug): Update.
5438 * m32c-tdep.c (m32c_return_value): Update.
5439 (m32c_m16c_address_to_pointer): Update.
5440 (m32c_m16c_pointer_to_address): Update.
5441 * m32r-tdep.c (m32r_frame_this_id): Update.
5442 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5443 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5444 * maint.c (maintenance_translate_address): Update.
5445 * minsyms.c (add_minsym_to_hash_table): Update.
5446 (add_minsym_to_demangled_hash_table): Update.
5447 (msymbol_objfile): Update.
5448 (lookup_minimal_symbol): Update.
5449 (iterate_over_minimal_symbols): Update.
5450 (lookup_minimal_symbol_text): Update.
5451 (lookup_minimal_symbol_by_pc_name): Update.
5452 (lookup_minimal_symbol_solib_trampoline): Update.
5453 (lookup_minimal_symbol_by_pc_section_1): Update.
5454 (lookup_minimal_symbol_and_objfile): Update.
5455 (prim_record_minimal_symbol_full): Update.
5456 (compare_minimal_symbols): Update.
5457 (compact_minimal_symbols): Update.
5458 (build_minimal_symbol_hash_tables): Update.
5459 (install_minimal_symbols): Update.
5460 (terminate_minimal_symbol_table): Update.
5461 (find_solib_trampoline_target): Update.
5462 (minimal_symbol_upper_bound): Update.
5463 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5464 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5465 (mips_skip_pic_trampoline_code): Update.
5466 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5467 * objc-lang.c (selectors_info): Update.
5468 (classes_info): Update.
5469 (find_methods): Update.
5470 (find_imps): Update.
5471 (find_objc_msgsend): Update.
5472 * objfiles.c (objfile_relocate1): Update.
5473 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5474 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5475 * p-valprint.c (pascal_val_print): Update.
5476 * parse.c (write_exp_msymbol): Update.
5477 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5478 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5479 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5480 * printcmd.c (build_address_symbolic): Update.
5481 (sym_info): Update.
5482 (address_info): Update.
5483 * proc-service.c (ps_pglobal_lookup): Update.
5484 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5485 (find_pc_sect_psymtab): Update.
5486 * python/py-framefilter.c (py_print_frame): Update.
5487 * ravenscar-thread.c (get_running_thread_id): Update.
5488 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5489 Update.
5490 * remote.c (remote_check_symbols): Update.
5491 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5492 (rs6000_skip_trampoline_code): Update.
5493 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5494 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5495 * solib-dsbt.c (lm_base): Update.
5496 * solib-frv.c (lm_base): Update.
5497 (main_got): Update.
5498 * solib-irix.c (locate_base): Update.
5499 * solib-som.c (som_solib_create_inferior_hook): Update.
5500 (som_solib_desire_dynamic_linker_symbols): Update.
5501 (link_map_start): Update.
5502 * solib-spu.c (spu_enable_break): Update.
5503 (ocl_enable_break): Update.
5504 * solib-svr4.c (elf_locate_base): Update.
5505 (enable_break): Update.
5506 * spu-tdep.c (spu_get_overlay_table): Update.
5507 (spu_catch_start): Update.
5508 (flush_ea_cache): Update.
5509 * stabsread.c (define_symbol): Update.
5510 (scan_file_globals): Update.
5511 * stack.c (find_frame_funname): Update.
5512 (frame_info): Update.
5513 * symfile.c (simple_read_overlay_table): Update.
5514 (simple_overlay_update): Update.
5515 * symmisc.c (dump_msymbols): Update.
5516 * symtab.c (fixup_section): Update.
5517 (find_pc_sect_line): Update.
5518 (skip_prologue_sal): Update.
5519 (search_symbols): Update.
5520 (print_msymbol_info): Update.
5521 (rbreak_command): Update.
5522 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5523 (completion_list_objc_symbol): Update.
5524 (default_make_symbol_completion_list_break_on): Update.
5525 * tracepoint.c (scope_info): Update.
5526 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5527 (tui_get_begin_asm_address): Update.
5528 * valops.c (find_function_in_inferior): Update.
5529 * value.c (value_static_field): Update.
5530 (value_fn_field): Update.
5531
5532 2014-02-26 Tom Tromey <tromey@redhat.com>
5533
5534 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5535 bound minimal symbols. Move code that knows about minsym
5536 table layout...
5537 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5538 function.
5539 * minsyms.h (minimal_symbol_upper_bound): Declare.
5540 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5541 minimal_symbol_upper_bound.
5542
5543 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5544
5545 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5546 Use the type's name if its basic type does not have a tag.
5547
5548 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5549
5550 * dwarf2read.c (read_subrange_type): Add comment.
5551
5552 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5553
5554 * dwarf2read.c (update_enumeration_type_from_children): New
5555 function, mostly extracted from process_structure_scope.
5556 (read_enumeration_type): Call update_enumeration_type_from_children.
5557 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5558 and flag_flag_enum fields.
5559
5560 2014-02-26 Pedro Alves <palves@redhat.com>
5561
5562 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5563 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5564 to_xfer_partial method.
5565
5566 2014-02-26 Pedro Alves <palves@redhat.com>
5567
5568 * target.c (complete_target_initialization): Don't install
5569 default_xfer_partial as to_xfer_partial hook.
5570 (nomemory): Delete.
5571 (update_current_target): Don't INHERIT nor de_fault
5572 deprecated_xfer_memory. Delete de_fault macro.
5573 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5574 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5575 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5576 field.
5577
5578 2014-02-26 Pedro Alves <palves@redhat.com>
5579
5580 * go32-nat.c (my_write_child): New function.
5581 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5582 (go32_xfer_partial): New function.
5583 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5584 Instead install a to_xfer_partial hook.
5585
5586 2014-02-26 Pedro Alves <palves@redhat.com>
5587
5588 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5589 to_xfer_partial helper. Rewrite.
5590 (procfs_xfer_partial): New function.
5591 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5592 Install a to_xfer_partial hook.
5593
5594 2014-02-26 Pedro Alves <palves@redhat.com>
5595
5596 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5597 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5598 (m32r_xfer_partial): New function.
5599 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5600 Install a to_xfer_partial hook.
5601
5602 2014-02-26 Pedro Alves <palves@redhat.com>
5603
5604 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5605 helper.
5606 (mips_xfer_partial): New function.
5607 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5608 hook. Install a to_xfer_partial hook.
5609
5610 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5611
5612 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5613 * gdbtypes.c (create_array_type_with_stride): New function,
5614 renaming create_array_type, but with an added parameter
5615 called "bit_stride".
5616 (create_array_type): Re-implement using
5617 create_array_type_with_stride.
5618 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5619 and DW_AT_bit_stride attributes.
5620
5621 2014-02-26 Pedro Alves <palves@redhat.com>
5622
5623 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5624 task-specific breakpoints.
5625
5626 2014-02-25 Pedro Alves <palves@redhat.com>
5627
5628 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5629 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5630
5631 2014-02-25 Stan Shebs <stan@codesourcery.com>
5632
5633 * defs.h: Annotate comments for Doxygen.
5634
5635 2014-02-25 Tom Tromey <tromey@redhat.com>
5636
5637 * target.h (target_ignore): Don't declare.
5638 * target.c (target_ignore): Remove.
5639
5640 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5641
5642 PR gdb/16626
5643 * auto-load.c (auto_load_objfile_script_1): Change filename to
5644 debugfile.
5645
5646 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5647
5648 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5649 documentation. Adjust prototype to match the target_ops
5650 to_xfer_partial method. Adjust implementation accordingly.
5651
5652 2014-02-25 Hui Zhu <hui@codesourcery.com>
5653
5654 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5655 to_traceframe_info.
5656
5657 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5658
5659 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5660 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5661 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5662 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5663 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5664 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5665 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5666 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5667 New constants.
5668 (rl78_register_type): Use a data pointer type for SP and
5669 new pseudo registers mentioned above. Use a 16 bit integer
5670 type for all other register pairs.
5671 (rl78_register_name, rl78_g10_register_name): Update for
5672 new pseudo registers.
5673 (rl78_pseudo_register_read): Likewise.
5674 (rl78_pseudo_register_write): Likewise.
5675 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5676 to the newly added pseudo registers.
5677
5678 2014-02-24 Doug Evans <dje@google.com>
5679
5680 * value.c (record_latest_value): Fix comment.
5681 * printcmd.c (print_command_1): Remove code to handle -1 return from
5682 record_latest_value.
5683
5684 2014-02-24 Pedro Alves <palves@redhat.com>
5685
5686 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5687 deprecated_xfer_memory hook.
5688 (procfs_xfer_partial): Call procfs_xfer_memory instead
5689 of the deprecated_xfer_memory target hook.
5690 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5691 helper.
5692
5693 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5694
5695 * windows-nat.c (windows_xfer_shared_libraries): Return
5696 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5697 requested object is TARGET_OBJECT_LIBRARIES.
5698
5699 2014-02-24 Yao Qi <yao@codesourcery.com>
5700
5701 * target.h (enum target_xfer_status)
5702 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5703 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5704 explicitly. New.
5705 * corefile.c (memory_error_message): User updated.
5706 * exec.c (section_table_read_available_memory): Likewise.
5707 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5708 * target.c (target_xfer_status_to_string): Likewise.
5709 (raw_memory_xfer_partial): Likewise.
5710 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5711 * valops.c (read_value_memory): Likewise.
5712 * exec.h: Update comments.
5713
5714 2014-02-24 Yao Qi <yao@codesourcery.com>
5715
5716 * target.c (target_xfer_status_to_string): Rename argument err
5717 to status.
5718 * target.h (target_xfer_status_to_string): Update declaration.
5719 Replace target_xfer_error_to_string with
5720 target_xfer_status_to_string in comment.
5721
5722 2014-02-24 Yao Qi <yao@codesourcery.com>
5723
5724 * mips-linux-nat.c (super_close): Update its type.
5725 (mips_linux_close): Pass 'self' to super_close.
5726
5727 2014-02-24 Yao Qi <yao@codesourcery.com>
5728
5729 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5730 * corefile.c (read_memory): Adjusted.
5731 * target.c (target_write_with_progress): Adjusted.
5732
5733 2014-02-23 Yao Qi <yao@codesourcery.com>
5734
5735 Revert two patches:
5736
5737 2013-10-25 Yao Qi <yao@codesourcery.com>
5738
5739 * remote.c (remote_traceframe_info): Return early if
5740 traceframe is not selected.
5741
5742 2013-07-19 Yao Qi <yao@codesourcery.com>
5743
5744 * target.c (update_current_target): Change the default action
5745 of 'to_traceframe_info' from tcomplain to return_zero.
5746 * target.h (struct target_ops) <to_traceframe_info>: Add more
5747 comments.
5748
5749 2014-02-23 Yao Qi <yao@codesourcery.com>
5750
5751 * valops.c (read_value_memory): Rewrite it. Call
5752 target_xfer_partial in a loop.
5753 * exec.h (section_table_available_memory): Remove declaration.
5754 Move comments to ...
5755 * exec.c (section_table_available_memory): ... here. Make it
5756 static.
5757
5758 2014-02-23 Yao Qi <yao@codesourcery.com>
5759
5760 * exec.c (section_table_read_available_memory): New function.
5761 * exec.h (section_table_read_available_memory): Declare.
5762 * ctf.c (ctf_xfer_partial): Call
5763 section_table_read_available_memory.
5764 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5765
5766 2014-02-23 Yao Qi <yao@codesourcery.com>
5767
5768 * ctf.c (ctf_xfer_partial): Move code to ...
5769 * exec.c (exec_read_partial_read_only): ... it. New function.
5770 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5771 * tracefile.c: Include "exec.h".
5772 * exec.h (exec_read_partial_read_only): Declare.
5773
5774 2014-02-23 Yao Qi <yao@codesourcery.com>
5775
5776 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5777 (tfile_has_memory): Remove.
5778 (init_tfile_ops): Don't set fields to_has_all_memory and
5779 to_has_memory of tfile_ops.
5780 * tracefile.c (tracefile_has_all_memory): New function.
5781 (tracefile_has_memory): New function.
5782 (init_tracefile_ops): Initialize fields to_has_all_memory and
5783 to_has_memory of 'ops'.
5784
5785 2014-02-23 Yao Qi <yao@codesourcery.com>
5786
5787 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5788 (ctf_thread_alive, ctf_get_trace_status): Remove.
5789 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5790 init_tracefile_ops.
5791 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5792 (tfile_has_stack, tfile_has_registers): Remove.
5793 (tfile_thread_alive): Remove.
5794 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5795 init_tracefile_ops.
5796 * tracefile.c (tracefile_has_stack): New function.
5797 (tracefile_has_registers): New function.
5798 (tracefile_thread_alive): New function.
5799 (tracefile_get_trace_status): New function.
5800 (init_tracefile_ops): New function.
5801 * tracefile.h (init_tracefile_ops): Declare.
5802
5803 2014-02-23 Yao Qi <yao@codesourcery.com>
5804
5805 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5806 (O_LARGEFILE): Likewise.
5807 (tfile_ops): Likewise.
5808 (TRACE_HEADER_SIZE): Likewise.
5809 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5810 (cur_data_size): Likewise.
5811 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5812 (tfile_close, tfile_files_info): Likewise.
5813 (tfile_get_trace_status): Likewise.
5814 (tfile_get_tracepoint_status): Likewise.
5815 (tfile_get_traceframe_address): Likewise.
5816 (tfile_trace_find, match_blocktype): Likewise.
5817 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5818 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5819 (tfile_get_trace_state_variable_value): Likewise.
5820 (tfile_has_all_memory, tfile_has_memory): Likewise.
5821 (tfile_has_stack, tfile_has_registers): Likewise.
5822 (tfile_thread_alive, build_traceframe_info): Likewise.
5823 (tfile_traceframe_info, init_tfile_ops): Likewise.
5824 (_initialize_tracepoint): Don't call init_tfile_ops
5825 and add_target_with_completer.
5826 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5827 exec.h, completer.h and filenames.h.
5828 (_initialize_tracefile_tfile): New function.
5829
5830 2014-02-23 Yao Qi <yao@codesourcery.com>
5831
5832 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5833 tracefile-tfile.o.
5834 (HFILES_NO_SRCDIR): Add tracefile.h.
5835 * ctf.c: Include "tracefile.h".
5836 * tracefile.h: New file.
5837 * tracefile.c: New file
5838 * tracefile-tfile.c: New file.
5839 * tracepoint.c: Include "tracefile.h".
5840 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5841 (stop_reason_names): Add const.
5842 (trace_file_writer_xfree): Move it to tracefile.c.
5843 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5844 (trace_save_ctf): Likewise.
5845 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5846 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5847 (tfile_write_header, tfile_write_regblock_type): Likewise.
5848 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5849 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5850 (tfile_write_raw_data, tfile_end): Likewise.
5851 (tfile_trace_file_writer_new): Likewise.
5852 (free_uploaded_tp): Make it extern.
5853 (free_uploaded_tsv): Make it extern.
5854 (_initialize_tracepoint): Move code to register command 'tsave'
5855 to tracefile.c.
5856 * tracepoint.h (stop_reason_names): Declare.
5857 (struct trace_frame_write_ops): Move it to tracefile.h.
5858 (struct trace_file_write_ops): Likewise.
5859 (struct trace_file_writer): Likewise.
5860 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5861
5862 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5863
5864 PR gdb/16594
5865 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5866 process name.
5867 (get_cores_used_by_process): New parameter num_cores, use it.
5868 (linux_xfer_osdata_processes): Pass num_cores to it.
5869 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5870 process name.
5871
5872 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5873
5874 * target.c (memory_xfer_partial): Fix length arg in call to
5875 breakpoint_xfer_memory.
5876
5877 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5878
5879 PR tdep/16397
5880 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5881 number comes after the + or - signs. Adjust length of register
5882 name to be extracted.
5883
5884 2014-02-20 Tom Tromey <tromey@redhat.com>
5885
5886 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5887 (ada_varobj_ops): Mark "extern".
5888
5889 2014-02-20 Tom Tromey <tromey@redhat.com>
5890
5891 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5892
5893 2014-02-20 Doug Evans <xdje42@gmail.com>
5894
5895 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5896 All callers updated.
5897 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5898 All callers updated.
5899 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5900 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5901
5902 2014-02-20 lin zuojian <manjian2006@gmail.com>
5903 Joel Brobecker <brobecker@adacore.com>
5904 Doug Evans <xdje42@gmail.com>
5905
5906 PR symtab/16581
5907 * dwarf2read.c (struct die_info): New member in_process.
5908 (reset_die_in_process): New function.
5909 (process_die): Set it at the start, reset when returning.
5910 (inherit_abstract_dies): Only call process_die if origin_child_die
5911 not already being processed.
5912
5913 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5914
5915 * windows-nat.c (handle_unload_dll): Add function documentation.
5916 (do_initial_windows_stuff): Add comment explaining why we wait
5917 until after inferior initialization has finished before
5918 processing all DLLs.
5919
5920 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5921
5922 * windows-nat.c (get_module_name): Delete.
5923 (windows_get_exec_module_filename): New function, mostly
5924 inspired from get_module_name.
5925 (windows_pid_to_exec_file): Replace call to get_module_name
5926 by call to windows_get_exec_module_filename.
5927
5928 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5929
5930 * windows-nat.c (handle_load_dll): Rewrite this function's
5931 introductory comment. Remove code using get_module_name
5932 to get the DLL's name.
5933
5934 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5935
5936 * windows-nat.c (get_windows_debug_event): Ignore
5937 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5938 if windows_initialization_done == 0.
5939 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5940 Adjust implementation to always load all DLLs.
5941 (do_initial_windows_stuff): Replace call to
5942 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5943
5944 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5945
5946 * windows-nat.c (_initialize_windows_nat): Deprecate the
5947 "dll-symbols" command. Turn the "add-shared-symbol-files"
5948 and "assf" aliases into commands, and deprecate them as well.
5949 * NEWS: Add entry explaining that "dll-symbols" and its two
5950 aliases are now deprecated.
5951
5952 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5953
5954 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5955 new-line in debug string. Remove trailing spaces.
5956
5957 2014-02-19 Stan Shebs <stan@codesourcery.com>
5958
5959 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5960
5961 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5962
5963 * NEWS: Add entry for the new feature
5964 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5965 and class values.
5966
5967 2014-02-19 Stan Shebs <stan@codesourcery.com>
5968
5969 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5970
5971 2014-02-19 Pedro Alves <palves@redhat.com>
5972
5973 * common/ptid.h (struct ptid): Mention that process_stratum
5974 targets should prefer ptid.lwp.
5975
5976 2014-02-19 Pedro Alves <palves@redhat.com>
5977
5978 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5979 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5980 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5981 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5982 store remote thread ids rather than ptid.tid.
5983 (_initialize_remote): Adjust.
5984
5985 2014-02-19 Tom Tromey <tromey@redhat.com>
5986
5987 * target.c (target_get_unwinder): Rewrite.
5988 (target_get_tailcall_unwinder): Rewrite.
5989 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5990 (record_btrace_to_get_tailcall_unwinder): New function.
5991 (init_record_btrace_ops): Update.
5992 * target.h (struct target_ops) <to_get_unwinder,
5993 to_get_tailcall_unwinder>: Now function pointers. Use
5994 TARGET_DEFAULT_RETURN.
5995
5996 2014-02-19 Tom Tromey <tromey@redhat.com>
5997
5998 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5999 argument.
6000 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6001
6002 2014-02-19 Tom Tromey <tromey@redhat.com>
6003
6004 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6005 directly.
6006 * target-delegates.c: Rebuild.
6007 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6008 TARGET_DEFAULT_FUNC.
6009 * target.c (default_target_decr_pc_after_break): Rename from
6010 forward_target_decr_pc_after_break. Simplify.
6011 (target_decr_pc_after_break): Rely on delegation.
6012
6013 2014-02-19 Tom Tromey <tromey@redhat.com>
6014
6015 * target.c (update_current_target): Do not INHERIT to_doc or
6016 to_magic. Do not de_fault to_open or to_close.
6017
6018 2014-02-19 Tom Tromey <tromey@redhat.com>
6019
6020 * gcore.h (objfile_find_memory_regions): Declare.
6021 * gcore.c (objfile_find_memory_regions): No longer static. Add
6022 "self" argument.
6023 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6024 * exec.c: Include gcore.h.
6025 (exec_set_find_memory_regions): Remove.
6026 (exec_find_memory_regions): Remove.
6027 (exec_do_find_memory_regions): Remove.
6028 (init_exec_ops): Update.
6029 * defs.h (exec_set_find_memory_regions): Remove.
6030
6031 2014-02-19 Tom Tromey <tromey@redhat.com>
6032
6033 * target-delegates.c: Rebuild.
6034 * target.h (struct target_ops) <to_extra_thread_info,
6035 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6036 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6037 not 0, in TARGET_DEFAULT_RETURN.
6038
6039 2014-02-19 Tom Tromey <tromey@redhat.com>
6040
6041 * target.c (complete_target_initialization): Remove casts. Use
6042 return_zero_has_execution.
6043 (return_zero): Add "ignore" argument.
6044 (return_zero_has_execution): New function.
6045 (init_dummy_target): Remove casts. Use
6046 return_zero_has_execution.
6047
6048 2014-02-19 Tom Tromey <tromey@redhat.com>
6049
6050 * target.c (update_current_target): Update comments. Do not
6051 INHERIT to_stratum.
6052
6053 2014-02-19 Tom Tromey <tromey@redhat.com>
6054
6055 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6056 needed.
6057 * corelow.c (core_read_description): Delegate when needed.
6058 * remote.c (remote_read_description): Delegate when needed.
6059 * target-delegates.c: Rebuild.
6060 * target.c (target_read_description): Rewrite.
6061 * target.h (struct target_ops) <to_read_description>: Update
6062 comment. Use TARGET_DEFAULT_RETURN.
6063
6064 2014-02-19 Tom Tromey <tromey@redhat.com>
6065
6066 * target-delegates.c: Rebuild.
6067 * target.c (update_current_target): Don't inherit or default
6068 to_can_run.
6069 (find_default_run_target): Check against delegate_can_run.
6070 * target.h (struct target_ops) <to_can_run>: Use
6071 TARGET_DEFAULT_RETURN.
6072
6073 2014-02-19 Tom Tromey <tromey@redhat.com>
6074
6075 * target-delegates.c: Rebuild.
6076 * target.c (target_disconnect): Unconditionally delegate.
6077 * target.h (struct target_ops) <to_disconnect>: Use
6078 TARGET_DEFAULT_NORETURN.
6079
6080 2014-02-19 Tom Tromey <tromey@redhat.com>
6081
6082 * record.c (record_stop): Unconditionally delegate.
6083 * target-delegates.c: Rebuild.
6084 * target.c (target_stop_recording): Unconditionally delegate.
6085 * target.h (struct target_ops) <to_stop_recording>: Use
6086 TARGET_DEFAULT_IGNORE.
6087
6088 2014-02-19 Tom Tromey <tromey@redhat.com>
6089
6090 * target-delegates.c: Rebuild.
6091 * target.c (target_enable_btrace): Unconditionally delegate.
6092 * target.h (struct target_ops) <to_enable_btrace>: Use
6093 TARGET_DEFAULT_NORETURN.
6094
6095 2014-02-19 Tom Tromey <tromey@redhat.com>
6096
6097 * target-delegates.c: Rebuild.
6098 * target.c (target_read_btrace): Unconditionally delegate.
6099 * target.h (struct target_ops) <to_read_btrace>: Use
6100 TARGET_DEFAULT_NORETURN.
6101
6102 2014-02-19 Tom Tromey <tromey@redhat.com>
6103
6104 * target-delegates.c: Rebuild.
6105 * target.c (target_teardown_btrace): Unconditionally delegate.
6106 * target.h (struct target_ops) <to_teardown_btrace>: Use
6107 TARGET_DEFAULT_NORETURN.
6108
6109 2014-02-19 Tom Tromey <tromey@redhat.com>
6110
6111 * target-delegates.c: Rebuild.
6112 * target.c (target_disable_btrace): Unconditionally delegate.
6113 * target.h (struct target_ops) <to_disable_btrace>: Use
6114 TARGET_DEFAULT_NORETURN.
6115
6116 2014-02-19 Tom Tromey <tromey@redhat.com>
6117
6118 * target-delegates.c: Rebuild.
6119 * target.c (default_search_memory): New function.
6120 (simple_search_memory): Update comment.
6121 (target_search_memory): Unconditionally delegate.
6122 * target.h (struct target_ops) <to_search_memory>: Use
6123 TARGET_DEFAULT_FUNC.
6124
6125 2014-02-19 Tom Tromey <tromey@redhat.com>
6126
6127 * auxv.c (default_auxv_parse): No longer static.
6128 (target_auxv_parse): Unconditionally delegate.
6129 * auxv.h (default_auxv_parse): Declare.
6130 * target-delegates.c: Rebuild.
6131 * target.c: Include auxv.h.
6132 * target.h (struct target_ops) <to_auxv_parse>: Use
6133 TARGET_DEFAULT_FUNC.
6134
6135 2014-02-19 Tom Tromey <tromey@redhat.com>
6136
6137 * target-delegates.c: Rebuild.
6138 * target.c (target_memory_map): Unconditionally delegate.
6139 * target.h (struct target_ops) <to_memory_map>: Use
6140 TARGET_DEFAULT_RETURN.
6141
6142 2014-02-19 Tom Tromey <tromey@redhat.com>
6143
6144 * target-delegates.c: Rebuild.
6145 * target.c (target_thread_alive): Unconditionally delegate.
6146 * target.h (struct target_ops) <to_thread_alive>: Use
6147 TARGET_DEFAULT_RETURN.
6148
6149 2014-02-19 Tom Tromey <tromey@redhat.com>
6150
6151 * target-delegates.c: Rebuild.
6152 * target.c (target_save_record): Unconditionally delegate.
6153 * target.h (struct target_ops) <to_save_record>: Use
6154 TARGET_DEFAULT_NORETURN.
6155
6156 2014-02-19 Tom Tromey <tromey@redhat.com>
6157
6158 * target-delegates.c: Rebuild.
6159 * target.c (target_delete_record): Unconditionally delegate.
6160 * target.h (struct target_ops) <to_delete_record>: Use
6161 TARGET_DEFAULT_NORETURN.
6162
6163 2014-02-19 Tom Tromey <tromey@redhat.com>
6164
6165 * target-delegates.c: Rebuild.
6166 * target.c (target_record_is_replaying): Unconditionally
6167 delegate.
6168 * target.h (struct target_ops) <to_record_is_replaying>: Use
6169 TARGET_DEFAULT_RETURN.
6170
6171 2014-02-19 Tom Tromey <tromey@redhat.com>
6172
6173 * target-delegates.c: Rebuild.
6174 * target.c (target_goto_record_begin): Unconditionally delegate.
6175 * target.h (struct target_ops) <to_goto_record_begin>: Use
6176 TARGET_DEFAULT_NORETURN.
6177
6178 2014-02-19 Tom Tromey <tromey@redhat.com>
6179
6180 * target-delegates.c: Rebuild.
6181 * target.c (target_goto_record_end): Unconditionally delegate.
6182 * target.h (struct target_ops) <to_goto_record_end>: Use
6183 TARGET_DEFAULT_NORETURN.
6184
6185 2014-02-19 Tom Tromey <tromey@redhat.com>
6186
6187 * target-delegates.c: Rebuild.
6188 * target.c (target_goto_record): Unconditionally delegate.
6189 * target.h (struct target_ops) <to_goto_record>: Use
6190 TARGET_DEFAULT_NORETURN.
6191
6192 2014-02-19 Tom Tromey <tromey@redhat.com>
6193
6194 * target-delegates.c: Rebuild.
6195 * target.c (target_insn_history): Unconditionally delegate.
6196 * target.h (struct target_ops) <to_insn_history>: Use
6197 TARGET_DEFAULT_NORETURN.
6198
6199 2014-02-19 Tom Tromey <tromey@redhat.com>
6200
6201 * target-delegates.c: Rebuild.
6202 * target.c (target_insn_history_from): Unconditionally delegate.
6203 * target.h (struct target_ops) <to_insn_history_from>: Use
6204 TARGET_DEFAULT_NORETURN.
6205
6206 2014-02-19 Tom Tromey <tromey@redhat.com>
6207
6208 * target-delegates.c: Rebuild.
6209 * target.c (target_insn_history_range): Unconditionally delegate.
6210 * target.h (struct target_ops) <to_insn_history_range>: Use
6211 TARGET_DEFAULT_NORETURN.
6212
6213 2014-02-19 Tom Tromey <tromey@redhat.com>
6214
6215 * target-delegates.c: Rebuild.
6216 * target.c (target_call_history): Unconditionally delegate.
6217 * target.h (struct target_ops) <to_call_history>: Use
6218 TARGET_DEFAULT_NORETURN.
6219
6220 2014-02-19 Tom Tromey <tromey@redhat.com>
6221
6222 * target-delegates.c: Rebuild.
6223 * target.c (target_call_history_from): Unconditionally delegate.
6224 * target.h (struct target_ops) <to_call_history_from>: Use
6225 TARGET_DEFAULT_NORETURN.
6226
6227 2014-02-19 Tom Tromey <tromey@redhat.com>
6228
6229 * target-delegates.c: Rebuild.
6230 * target.c (target_call_history_range): Unconditionally delegate.
6231 * target.h (struct target_ops) <to_call_history_range>: Use
6232 TARGET_DEFAULT_NORETURN.
6233
6234 2014-02-19 Tom Tromey <tromey@redhat.com>
6235
6236 * target-delegates.c: Rebuild.
6237 * target.c (target_verify_memory): Unconditionally delegate.
6238 * target.h (struct target_ops) <to_verify_memory>: Use
6239 TARGET_DEFAULT_NORETURN.
6240
6241 2014-02-19 Tom Tromey <tromey@redhat.com>
6242
6243 * target-delegates.c: Rebuild.
6244 * target.c (target_core_of_thread): Unconditionally delegate.
6245 * target.h (struct target_ops) <to_core_of_thread>: Use
6246 TARGET_DEFAULT_RETURN.
6247
6248 2014-02-19 Tom Tromey <tromey@redhat.com>
6249
6250 * target-delegates.c: Rebuild.
6251 * target.c (target_flash_done): Unconditionally delegate.
6252 * target.h (struct target_ops) <to_flash_done>: Use
6253 TARGET_DEFAULT_NORETURN.
6254
6255 2014-02-19 Tom Tromey <tromey@redhat.com>
6256
6257 * target-delegates.c: Rebuild.
6258 * target.c (target_flash_erase): Unconditionally delegate.
6259 * target.h (struct target_ops) <to_flash_erase>: Use
6260 TARGET_DEFAULT_NORETURN.
6261
6262 2014-02-19 Tom Tromey <tromey@redhat.com>
6263
6264 * target-delegates.c: Rebuild.
6265 * target.c (target_get_section_table): Unconditionally delegate.
6266 * target.h (struct target_ops) <to_get_section_table>: Use
6267 TARGET_DEFAULT_RETURN.
6268
6269 2014-02-19 Tom Tromey <tromey@redhat.com>
6270
6271 * target-delegates.c: Rebuild.
6272 * target.c (target_pid_to_str): Unconditionally delegate.
6273 (init_dummy_target): Don't initialize to_pid_to_str.
6274 (default_pid_to_str): Rename from dummy_pid_to_str.
6275 * target.h (struct target_ops) <to_pid_to_str>: Use
6276 TARGET_DEFAULT_FUNC.
6277
6278 2014-02-19 Tom Tromey <tromey@redhat.com>
6279
6280 * target-delegates.c: Rebuild.
6281 * target.c (target_find_new_threads): Unconditionally delegate.
6282 * target.h (struct target_ops) <to_find_new_threads>: Use
6283 TARGET_DEFAULT_RETURN.
6284
6285 2014-02-19 Tom Tromey <tromey@redhat.com>
6286
6287 * target-delegates.c: Rebuild.
6288 * target.c (target_program_signals): Unconditionally delegate.
6289 * target.h (struct target_ops) <to_program_signals>: Use
6290 TARGET_DEFAULT_IGNORE.
6291
6292 2014-02-19 Tom Tromey <tromey@redhat.com>
6293
6294 * target-delegates.c: Rebuild.
6295 * target.c (target_pass_signals): Unconditionally delegate.
6296 * target.h (struct target_ops) <to_pass_signals>: Use
6297 TARGET_DEFAULT_IGNORE.
6298
6299 2014-02-19 Tom Tromey <tromey@redhat.com>
6300
6301 * target-delegates.c: Rebuild.
6302 * target.c (default_mourn_inferior): New function.
6303 (target_mourn_inferior): Unconditionally delegate.
6304 * target.h (struct target_ops) <to_mourn_inferior>: Use
6305 TARGET_DEFAULT_FUNC.
6306
6307 2014-02-19 Tom Tromey <tromey@redhat.com>
6308
6309 * target-delegates.c: Rebuild.
6310 * target.c (default_follow_fork): New function.
6311 (target_follow_fork): Unconditionally delegate.
6312 * target.h (struct target_ops) <to_follow_fork>: Use
6313 TARGET_DEFAULT_FUNC.
6314
6315 2014-02-19 Tom Tromey <tromey@redhat.com>
6316
6317 * target-delegates.c: Rebuild.
6318 * target.c (target_kill): Unconditionally delegate.
6319 * target.h (struct target_ops) <to_kill>: Use
6320 TARGET_DEFAULT_NORETURN.
6321
6322 2014-02-19 Tom Tromey <tromey@redhat.com>
6323
6324 * target-delegates.c: Rebuild.
6325 * target.c (target_masked_watch_num_registers): Unconditionally
6326 delegate.
6327 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6328 Use TARGET_DEFAULT_RETURN.
6329
6330 2014-02-19 Tom Tromey <tromey@redhat.com>
6331
6332 * target-delegates.c: Rebuild.
6333 * target.c (target_remove_mask_watchpoint): Unconditionally
6334 delegate.
6335 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6336 TARGET_DEFAULT_RETURN.
6337
6338 2014-02-19 Tom Tromey <tromey@redhat.com>
6339
6340 * target-delegates.c: Rebuild.
6341 * target.c (target_insert_mask_watchpoint): Unconditionally
6342 delegate.
6343 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6344 TARGET_DEFAULT_RETURN.
6345
6346 2014-02-19 Tom Tromey <tromey@redhat.com>
6347
6348 * target-delegates.c: Rebuild.
6349 * target.c (target_ranged_break_num_registers): Unconditionally
6350 delegate.
6351 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6352 Use TARGET_DEFAULT_RETURN.
6353
6354 2014-02-19 Tom Tromey <tromey@redhat.com>
6355
6356 * target-delegates.c: Rebuild.
6357 * target.c (target_fetch_registers): Unconditionally delegate.
6358 * target.h (struct target_ops) <to_fetch_registers>: Use
6359 TARGET_DEFAULT_NORETURN.
6360
6361 2014-02-19 Tom Tromey <tromey@redhat.com>
6362
6363 * target-delegates.c: Rebuild.
6364 * target.c (update_current_target): Don't inherit or default
6365 to_stop.
6366 * target.h (struct target_ops) <to_stop>: Use
6367 TARGET_DEFAULT_IGNORE.
6368
6369 2014-02-19 Tom Tromey <tromey@redhat.com>
6370
6371 * target-delegates.c: Rebuild.
6372 * target.c (update_current_target): Don't inherit or default
6373 to_can_run_breakpoint_commands.
6374 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6375 Use TARGET_DEFAULT_RETURN.
6376
6377 2014-02-19 Tom Tromey <tromey@redhat.com>
6378
6379 * target-delegates.c: Rebuild.
6380 * target.c (update_current_target): Don't inherit or default
6381 to_supports_evaluation_of_breakpoint_conditions.
6382 * target.h (struct target_ops)
6383 <to_supports_evaluation_of_breakpoint_conditions>: Use
6384 TARGET_DEFAULT_RETURN.
6385
6386 2014-02-19 Tom Tromey <tromey@redhat.com>
6387
6388 * target-delegates.c: Rebuild.
6389 * target.c (update_current_target): Don't inherit or default
6390 to_augmented_libraries_svr4_read.
6391 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6392 Use TARGET_DEFAULT_RETURN.
6393
6394 2014-02-19 Tom Tromey <tromey@redhat.com>
6395
6396 * target-delegates.c: Rebuild.
6397 * target.c (update_current_target): Don't inherit or default
6398 to_can_use_agent.
6399 * target.h (struct target_ops) <to_can_use_agent>: Use
6400 TARGET_DEFAULT_RETURN.
6401
6402 2014-02-19 Tom Tromey <tromey@redhat.com>
6403
6404 * target-delegates.c: Rebuild.
6405 * target.c (update_current_target): Don't inherit or default
6406 to_use_agent.
6407 * target.h (struct target_ops) <to_use_agent>: Use
6408 TARGET_DEFAULT_NORETURN.
6409
6410 2014-02-19 Tom Tromey <tromey@redhat.com>
6411
6412 * target-delegates.c: Rebuild.
6413 * target.c (update_current_target): Don't inherit or default
6414 to_traceframe_info.
6415 (return_null): Remove.
6416 * target.h (struct target_ops) <to_traceframe_info>: Use
6417 TARGET_DEFAULT_RETURN.
6418
6419 2014-02-19 Tom Tromey <tromey@redhat.com>
6420
6421 * target-delegates.c: Rebuild.
6422 * target.c (update_current_target): Don't inherit or default
6423 to_static_tracepoint_markers_by_strid.
6424 * target.h (struct target_ops)
6425 <to_static_tracepoint_markers_by_strid>: Use
6426 TARGET_DEFAULT_NORETURN.
6427
6428 2014-02-19 Tom Tromey <tromey@redhat.com>
6429
6430 * target-delegates.c: Rebuild.
6431 * target.c (update_current_target): Don't inherit or default
6432 to_static_tracepoint_marker_at.
6433 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6434 Use TARGET_DEFAULT_RETURN.
6435
6436 2014-02-19 Tom Tromey <tromey@redhat.com>
6437
6438 * target-delegates.c: Rebuild.
6439 * target.c (update_current_target): Don't inherit or default
6440 to_set_permissions.
6441 * target.h (struct target_ops) <to_set_permissions>: Use
6442 TARGET_DEFAULT_IGNORE.
6443
6444 2014-02-19 Tom Tromey <tromey@redhat.com>
6445
6446 * target-delegates.c: Rebuild.
6447 * target.c (update_current_target): Don't inherit or default
6448 to_get_tib_address.
6449 * target.h (struct target_ops) <to_get_tib_address>: Use
6450 TARGET_DEFAULT_NORETURN.
6451
6452 2014-02-19 Tom Tromey <tromey@redhat.com>
6453
6454 * target-delegates.c: Rebuild.
6455 * target.c (update_current_target): Don't inherit or default
6456 to_set_trace_notes.
6457 * target.h (struct target_ops) <to_set_trace_notes>: Use
6458 TARGET_DEFAULT_RETURN.
6459
6460 2014-02-19 Tom Tromey <tromey@redhat.com>
6461
6462 * target-delegates.c: Rebuild.
6463 * target.c (update_current_target): Don't initialize
6464 to_set_trace_buffer_size.
6465 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6466 TARGET_DEFAULT_IGNORE.
6467
6468 2014-02-19 Tom Tromey <tromey@redhat.com>
6469
6470 * target-delegates.c: Rebuild.
6471 * target.c (update_current_target): Don't inherit or default
6472 to_set_circular_trace_buffer.
6473 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6474 TARGET_DEFAULT_IGNORE.
6475
6476 2014-02-19 Tom Tromey <tromey@redhat.com>
6477
6478 * target-delegates.c: Rebuild.
6479 * target.c (update_current_target): Don't inherit or default
6480 to_set_disconnected_tracing.
6481 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6482 TARGET_DEFAULT_IGNORE.
6483
6484 2014-02-19 Tom Tromey <tromey@redhat.com>
6485
6486 * target-delegates.c: Rebuild.
6487 * target.c (update_current_target): Don't inherit or default
6488 to_get_min_fast_tracepoint_insn_len.
6489 (return_minus_one): Remove.
6490 * target.h (struct target_ops)
6491 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6492
6493 2014-02-19 Tom Tromey <tromey@redhat.com>
6494
6495 * target-delegates.c: Rebuild.
6496 * target.c (update_current_target): Don't inherit or default
6497 to_get_raw_trace_data.
6498 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6499 TARGET_DEFAULT_NORETURN.
6500
6501 2014-02-19 Tom Tromey <tromey@redhat.com>
6502
6503 * target-delegates.c: Rebuild.
6504 * target.c (update_current_target): Don't inherit or default
6505 to_upload_trace_state_variables.
6506 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6507 Use TARGET_DEFAULT_RETURN.
6508
6509 2014-02-19 Tom Tromey <tromey@redhat.com>
6510
6511 * target-delegates.c: Rebuild.
6512 * target.c (update_current_target): Don't inherit or default
6513 to_upload_tracepoints.
6514 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6515 TARGET_DEFAULT_RETURN.
6516
6517 2014-02-19 Tom Tromey <tromey@redhat.com>
6518
6519 * target-delegates.c: Rebuild.
6520 * target.c (update_current_target): Don't inherit or default
6521 to_save_trace_data.
6522 * target.h (struct target_ops) <to_save_trace_data>: Use
6523 TARGET_DEFAULT_NORETURN.
6524
6525 2014-02-19 Tom Tromey <tromey@redhat.com>
6526
6527 * target-delegates.c: Rebuild.
6528 * target.c (update_current_target): Don't inherit or default
6529 to_get_trace_state_variable_value.
6530 * target.h (struct target_ops)
6531 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6532
6533 2014-02-19 Tom Tromey <tromey@redhat.com>
6534
6535 * target-delegates.c: Rebuild.
6536 * target.c (update_current_target): Don't inherit or default
6537 to_trace_find.
6538 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6539
6540 2014-02-19 Tom Tromey <tromey@redhat.com>
6541
6542 * target-delegates.c: Rebuild.
6543 * target.c (update_current_target): Don't inherit or default
6544 to_trace_stop.
6545 * target.h (struct target_ops) <to_trace_stop>: Use
6546 TARGET_DEFAULT_NORETURN.
6547
6548 2014-02-19 Tom Tromey <tromey@redhat.com>
6549
6550 * target-delegates.c: Rebuild.
6551 * target.c (update_current_target): Don't inherit or default
6552 to_get_tracepoint_status.
6553 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6554 TARGET_DEFAULT_NORETURN.
6555
6556 2014-02-19 Tom Tromey <tromey@redhat.com>
6557
6558 * target-delegates.c: Rebuild.
6559 * target.c (update_current_target): Don't inherit or default
6560 to_get_trace_status.
6561 * target.h (struct target_ops) <to_get_trace_status>: Use
6562 TARGET_DEFAULT_RETURN.
6563
6564 2014-02-19 Tom Tromey <tromey@redhat.com>
6565
6566 * target-delegates.c: Rebuild.
6567 * target.c (update_current_target): Don't inherit or default
6568 to_trace_start.
6569 * target.h (struct target_ops) <to_trace_start>: Use
6570 TARGET_DEFAULT_NORETURN.
6571
6572 2014-02-19 Tom Tromey <tromey@redhat.com>
6573
6574 * target-delegates.c: Rebuild.
6575 * target.c (update_current_target): Don't inherit or default
6576 to_trace_set_readonly_regions.
6577 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6578 Use TARGET_DEFAULT_NORETURN.
6579
6580 2014-02-19 Tom Tromey <tromey@redhat.com>
6581
6582 * target-delegates.c: Rebuild.
6583 * target.c (update_current_target): Don't inherit or default
6584 to_disable_tracepoint.
6585 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6586 TARGET_DEFAULT_NORETURN.
6587
6588 2014-02-19 Tom Tromey <tromey@redhat.com>
6589
6590 * target-delegates.c: Rebuild.
6591 * target.c (update_current_target): Don't inherit or default
6592 to_enable_tracepoint.
6593 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6594 TARGET_DEFAULT_NORETURN.
6595
6596 2014-02-19 Tom Tromey <tromey@redhat.com>
6597
6598 * target-delegates.c: Rebuild.
6599 * target.c (update_current_target): Don't inherit or default
6600 to_download_trace_state_variable.
6601 * target.h (struct target_ops) <to_download_trace_state_variable>:
6602 Use TARGET_DEFAULT_NORETURN.
6603
6604 2014-02-19 Tom Tromey <tromey@redhat.com>
6605
6606 * target-delegates.c: Rebuild.
6607 * target.c (update_current_target): Don't inherit or default
6608 to_can_download_tracepoint.
6609 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6610 TARGET_DEFAULT_RETURN.
6611
6612 2014-02-19 Tom Tromey <tromey@redhat.com>
6613
6614 * target-delegates.c: Rebuild.
6615 * target.c (update_current_target): Don't inherit or default
6616 to_download_tracepoint.
6617 * target.h (struct target_ops) <to_download_tracepoint>: Use
6618 TARGET_DEFAULT_NORETURN.
6619
6620 2014-02-19 Tom Tromey <tromey@redhat.com>
6621
6622 * target-delegates.c: Rebuild.
6623 * target.c (update_current_target): Don't inherit or default
6624 to_trace_init.
6625 * target.h (struct target_ops) <to_trace_init>: Use
6626 TARGET_DEFAULT_RETURN.
6627
6628 2014-02-19 Tom Tromey <tromey@redhat.com>
6629
6630 * target-delegates.c: Rebuild.
6631 * target.c (update_current_target): Don't inherit or default
6632 to_supports_string_tracing.
6633 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6634 TARGET_DEFAULT_RETURN.
6635
6636 2014-02-19 Tom Tromey <tromey@redhat.com>
6637
6638 * target-delegates.c: Rebuild.
6639 * target.c (update_current_target): Don't inherit or default
6640 to_supports_enable_disable_tracepoint.
6641 * target.h (struct target_ops)
6642 <to_supports_enable_disable_tracepoint>: Use
6643 TARGET_DEFAULT_RETURN.
6644
6645 2014-02-19 Tom Tromey <tromey@redhat.com>
6646
6647 * target-delegates.c: Rebuild.
6648 * target.c (update_current_target): Don't inherit or default
6649 to_supports_multi_process.
6650 * target.h (struct target_ops) <to_supports_multi_process>: Use
6651 TARGET_DEFAULT_RETURN.
6652
6653 2014-02-19 Tom Tromey <tromey@redhat.com>
6654
6655 * target-delegates.c: Rebuild.
6656 * target.c (update_current_target): Don't inherit or default
6657 to_get_ada_task_ptid.
6658 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6659 TARGET_DEFAULT_FUNC.
6660
6661 2014-02-19 Tom Tromey <tromey@redhat.com>
6662
6663 * target-delegates.c: Rebuild.
6664 * target.c (update_current_target): Don't inherit or default
6665 to_thread_architecture.
6666 * target.h (struct target_ops) <to_thread_architecture>: Use
6667 TARGET_DEFAULT_FUNC.
6668
6669 2014-02-19 Tom Tromey <tromey@redhat.com>
6670
6671 * target-delegates.c: Rebuild.
6672 * target.c (update_current_target): Don't inherit or default
6673 to_execution_direction.
6674 * target.h (struct target_ops) <to_execution_direction>: Use
6675 TARGET_DEFAULT_FUNC.
6676
6677 2014-02-19 Tom Tromey <tromey@redhat.com>
6678
6679 * target-delegates.c: Rebuild.
6680 * target.c (update_current_target): Don't inherit or default
6681 to_can_execute_reverse.
6682 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6683 TARGET_DEFAULT_RETURN.
6684 (target_can_execute_reverse): Unconditionally delegate.
6685
6686 2014-02-19 Tom Tromey <tromey@redhat.com>
6687
6688 * target-delegates.c: Rebuild.
6689 * target.c (update_current_target): Don't inherit or default
6690 to_goto_bookmark.
6691 (dummy_goto_bookmark): Remove.
6692 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6693 * target.h (struct target_ops) <to_goto_bookmark>: Use
6694 TARGET_DEFAULT_NORETURN.
6695
6696 2014-02-19 Tom Tromey <tromey@redhat.com>
6697
6698 * target-delegates.c: Rebuild.
6699 * target.c (update_current_target): Don't inherit or default
6700 to_get_bookmark.
6701 (dummy_get_bookmark): Remove.
6702 (init_dummy_target): Don't inherit or default to_get_bookmark.
6703 * target.h (struct target_ops) <to_get_bookmark>: Use
6704 TARGET_DEFAULT_NORETURN
6705
6706 2014-02-19 Tom Tromey <tromey@redhat.com>
6707
6708 * target-delegates.c: Rebuild.
6709 * target.c (update_current_target): Don't inherit or default
6710 to_make_corefile_notes.
6711 (init_dummy_target): Don't initialize to_make_corefile_notes.
6712 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6713 TARGET_DEFAULT_FUNC.
6714
6715 2014-02-19 Tom Tromey <tromey@redhat.com>
6716
6717 * target-delegates.c: Rebuild.
6718 * target.c (update_current_target): Don't inherit or default
6719 to_find_memory_regions.
6720 (init_dummy_target): Don't initialize to_find_memory_regions.
6721 * target.h (struct target_ops) <to_find_memory_regions>: Use
6722 TARGET_DEFAULT_FUNC.
6723
6724 2014-02-19 Tom Tromey <tromey@redhat.com>
6725
6726 * target-delegates.c: Rebuild.
6727 * target.c (update_current_target): Don't inherit or default
6728 to_log_command.
6729 * target.h (struct target_ops) <to_log_command>: Use
6730 TARGET_DEFAULT_IGNORE.
6731 (target_log_command): Unconditionally delegate.
6732
6733 2014-02-19 Tom Tromey <tromey@redhat.com>
6734
6735 * target-delegates.c: Rebuild.
6736 * target.c (update_current_target): Don't inherit or default
6737 to_pid_to_exec_file.
6738 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6739 TARGET_DEFAULT_RETURN.
6740
6741 2014-02-19 Tom Tromey <tromey@redhat.com>
6742
6743 * target-delegates.c: Rebuild.
6744 * target.c (update_current_target): Don't inherit or default
6745 to_thread_name.
6746 (target_thread_name): Unconditionally delegate.
6747 * target.h (struct target_ops) <to_thread_name>: Use
6748 TARGET_DEFAULT_RETURN.
6749
6750 2014-02-19 Tom Tromey <tromey@redhat.com>
6751
6752 * target-delegates.c: Rebuild.
6753 * target.c (update_current_target): Don't inherit or default
6754 to_extra_thread_info.
6755 * target.h (struct target_ops) <to_extra_thread_info>: Use
6756 TARGET_DEFAULT_RETURN.
6757
6758 2014-02-19 Tom Tromey <tromey@redhat.com>
6759
6760 * target-delegates.c: Rebuild.
6761 * target.c (update_current_target): Don't inherit or default
6762 to_has_exited.
6763 * target.h (struct target_ops) <to_has_exited>: Use
6764 TARGET_DEFAULT_RETURN..
6765
6766 2014-02-19 Tom Tromey <tromey@redhat.com>
6767
6768 * target-delegates.c: Rebuild.
6769 * target.c (update_current_target): Don't inherit or default
6770 to_set_syscall_catchpoint.
6771 (return_one): Remove.
6772 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6773 TARGET_DEFAULT_RETURN.
6774
6775 2014-02-19 Tom Tromey <tromey@redhat.com>
6776
6777 * target-delegates.c: Rebuild.
6778 * target.c (update_current_target): Don't inherit or default
6779 to_insert_exec_catchpoint.
6780 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6781 TARGET_DEFAULT_RETURN.
6782
6783 2014-01-08 Tom Tromey <tromey@redhat.com>
6784
6785 * target-delegates.c: Rebuild.
6786 * target.c (update_current_target): Don't inherit or default
6787 to_insert_exec_catchpoint.
6788 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6789 TARGET_DEFAULT_RETURN.
6790
6791 2014-02-19 Tom Tromey <tromey@redhat.com>
6792
6793 * target-delegates.c: Rebuild.
6794 * target.c (update_current_target): Don't inherit or default
6795 to_remove_vfork_catchpoint.
6796 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6797 TARGET_DEFAULT_RETURN.
6798
6799 2014-02-19 Tom Tromey <tromey@redhat.com>
6800
6801 * target-delegates.c: Rebuild.
6802 * target.c (update_current_target): Don't inherit or default
6803 to_insert_vfork_catchpoint.
6804 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6805 TARGET_DEFAULT_RETURN.
6806
6807 2014-02-19 Tom Tromey <tromey@redhat.com>
6808
6809 * target-delegates.c: Rebuild.
6810 * target.c (update_current_target): Don't inherit or default
6811 to_remove_fork_catchpoint.
6812 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6813 TARGET_DEFAULT_RETURN.
6814
6815 2014-02-19 Tom Tromey <tromey@redhat.com>
6816
6817 * target-delegates.c: Rebuild.
6818 * target.c (update_current_target): Don't inherit or default
6819 to_insert_fork_catchpoint.
6820 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6821 TARGET_DEFAULT_RETURN.
6822
6823 2014-02-19 Tom Tromey <tromey@redhat.com>
6824
6825 * target-delegates.c: Rebuild.
6826 * target.c (update_current_target): Don't inherit or default
6827 to_post_startup_inferior.
6828 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6829 TARGET_DEFAULT_IGNORE.
6830
6831 2014-02-19 Tom Tromey <tromey@redhat.com>
6832
6833 * target-delegates.c: Rebuild.
6834 * target.c (update_current_target): Don't inherit or default
6835 to_load.
6836 * target.h (struct target_ops) <to_load>: Use
6837 TARGET_DEFAULT_NORETURN.
6838
6839 2014-02-19 Tom Tromey <tromey@redhat.com>
6840
6841 * target-delegates.c: Rebuild.
6842 * target.c (update_current_target): Don't inherit or default
6843 to_terminal_info.
6844 * target.h (struct target_ops) <to_terminal_info>: Use
6845 TARGET_DEFAULT_FUNC.
6846
6847 2014-02-19 Tom Tromey <tromey@redhat.com>
6848
6849 * target-delegates.c: Rebuild.
6850 * target.c (update_current_target): Don't inherit or default
6851 to_terminal_save_ours.
6852 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6853 TARGET_DEFAULT_IGNORE.
6854
6855 2014-02-19 Tom Tromey <tromey@redhat.com>
6856
6857 * target-delegates.c: Rebuild.
6858 * target.c (update_current_target): Don't inherit or default
6859 to_terminal_ours.
6860 * target.h (struct target_ops) <to_terminal_ours>: Use
6861 TARGET_DEFAULT_IGNORE.
6862
6863 2014-02-19 Tom Tromey <tromey@redhat.com>
6864
6865 * target-delegates.c: Rebuild.
6866 * target.c (update_current_target): Don't inherit or default
6867 to_terminal_ours_for_output.
6868 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6869 TARGET_DEFAULT_IGNORE.
6870
6871 2014-02-19 Tom Tromey <tromey@redhat.com>
6872
6873 * target-delegates.c: Rebuild.
6874 * target.c (update_current_target): Don't inherit or default
6875 to_terminal_inferior.
6876 * target.h (struct target_ops) <to_terminal_inferior>: Use
6877 TARGET_DEFAULT_IGNORE.
6878
6879 2014-02-19 Tom Tromey <tromey@redhat.com>
6880
6881 * target-delegates.c: Rebuild.
6882 * target.c (update_current_target): Don't inherit or default
6883 to_terminal_init.
6884 * target.h (struct target_ops) <to_terminal_init>: Use
6885 TARGET_DEFAULT_IGNORE.
6886
6887 2014-02-19 Tom Tromey <tromey@redhat.com>
6888
6889 * target-delegates.c: Rebuild.
6890 * target.c (update_current_target): Don't inherit or default
6891 to_can_accel_watchpoint_condition.
6892 * target.h (struct target_ops)
6893 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6894
6895 2014-02-19 Tom Tromey <tromey@redhat.com>
6896
6897 * target-delegates.c: Rebuild.
6898 * target.c (update_current_target): Don't inherit or default
6899 to_region_ok_for_hw_watchpoint.
6900 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6901 Use TARGET_DEFAULT_FUNC.
6902
6903 2014-02-19 Tom Tromey <tromey@redhat.com>
6904
6905 * target-delegates.c: Rebuild.
6906 * target.c (update_current_target): Don't inherit or default
6907 to_watchpoint_addr_within_range.
6908 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6909 Use TARGET_DEFAULT_FUNC.
6910
6911 2014-02-19 Tom Tromey <tromey@redhat.com>
6912
6913 * target-delegates.c: Rebuild.
6914 * target.c (update_current_target): Don't inherit or default
6915 to_remove_watchpoint.
6916 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6917 TARGET_DEFAULT_NORETURN.
6918
6919 2014-02-19 Tom Tromey <tromey@redhat.com>
6920
6921 * target-delegates.c: Rebuild.
6922 * target.c (update_current_target): Don't inherit or default
6923 to_insert_watchpoint.
6924 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6925 TARGET_DEFAULT_RETURN.
6926
6927 2014-02-19 Tom Tromey <tromey@redhat.com>
6928
6929 * target-delegates.c: Rebuild.
6930 * target.c (update_current_target): Don't inherit or default
6931 to_remove_hw_breakpoint.
6932 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6933 TARGET_DEFAULT_RETURN.
6934
6935 2014-02-19 Tom Tromey <tromey@redhat.com>
6936
6937 * target-delegates.c: Rebuild.
6938 * target.c (update_current_target): Don't inherit or default
6939 to_insert_hw_breakpoint.
6940 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6941 TARGET_DEFAULT_RETURN.
6942
6943 2014-02-19 Tom Tromey <tromey@redhat.com>
6944
6945 * target-delegates.c: Rebuild.
6946 * target.c (update_current_target): Don't inherit or default
6947 to_can_use_hw_breakpoint.
6948 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6949 TARGET_DEFAULT_RETURN.
6950
6951 2014-02-19 Tom Tromey <tromey@redhat.com>
6952
6953 * target-delegates.c: Rebuild.
6954 * target.c (update_current_target): Don't inherit or default
6955 to_files_info.
6956 * target.h (struct target_ops) <to_files_info>: Use
6957 TARGET_DEFAULT_IGNORE.
6958
6959 2014-02-19 Tom Tromey <tromey@redhat.com>
6960
6961 * target-delegates.c: Rebuild.
6962 * target.c (update_current_target): Don't inherit or default
6963 to_store.
6964 * target.h (struct target_ops) <to_store>: Use
6965 TARGET_DEFAULT_NORETURN.
6966
6967 2014-02-19 Tom Tromey <tromey@redhat.com>
6968
6969 * target-delegates.c: Rebuild.
6970 * target.c (update_current_target): Don't inherit or default
6971 to_post_attach.
6972 * target.h (struct target_ops) <to_post_attach>: Use
6973 TARGET_DEFAULT_IGNORE.
6974
6975 2014-02-19 Tom Tromey <tromey@redhat.com>
6976
6977 * target-delegates.c: Rebuild.
6978 * target.c (update_current_target): Don't inherit or default
6979 to_rcmd.
6980 (default_rcmd): New function.
6981 (do_monitor_command): Unconditionally delegate.
6982 * target.h (struct target_ops) <to_rmcd>: Use
6983 TARGET_DEFAULT_FUNC.
6984
6985 2014-02-19 Tom Tromey <tromey@redhat.com>
6986
6987 * target-delegates.c: Rebuild.
6988 * target.c (init_dummy_target): Don't initialize to_attach.
6989 (target_attach): Unconditionally delegate.
6990 * target.h (struct target_ops) <to_attach>: Use
6991 TARGET_DEFAULT_FUNC.
6992
6993 2014-02-19 Tom Tromey <tromey@redhat.com>
6994
6995 * target-delegates.c: Rebuild.
6996 * target.c (target_detach): Unconditionally delegate.
6997 (init_dummy_target): Don't initialize to_detach.
6998 * target.h (struct target_ops) <to_detach>: Use
6999 TARGET_DEFAULT_IGNORE.
7000
7001 2014-02-19 Tom Tromey <tromey@redhat.com>
7002
7003 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7004 Add argument.
7005 (target_augmented_libraries_svr4_read): Add argument.
7006 * target.c (update_current_target): Update.
7007 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7008 argument.
7009
7010 2014-02-19 Tom Tromey <tromey@redhat.com>
7011
7012 * target.h (struct target_ops) <to_call_history_range>: Add
7013 argument.
7014 * target.c (target_call_history_range): Add argument.
7015 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7016 argument.
7017 (record_btrace_call_history_from): Update.
7018
7019 2014-02-19 Tom Tromey <tromey@redhat.com>
7020
7021 * target.h (struct target_ops) <to_call_history_from>: Add
7022 argument.
7023 * target.c (target_call_history_from): Add argument.
7024 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7025 argument.
7026
7027 2014-02-19 Tom Tromey <tromey@redhat.com>
7028
7029 * target.h (struct target_ops) <to_call_history>: Add argument.
7030 * target.c (target_call_history): Add argument.
7031 * record-btrace.c (record_btrace_call_history): Add 'self'
7032 argument.
7033
7034 2014-02-19 Tom Tromey <tromey@redhat.com>
7035
7036 * target.h (struct target_ops) <to_insn_history_range>: Add
7037 argument.
7038 * target.c (target_insn_history_range): Add argument.
7039 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7040 argument.
7041 (record_btrace_insn_history_from): Update.
7042
7043 2014-02-19 Tom Tromey <tromey@redhat.com>
7044
7045 * target.h (struct target_ops) <to_insn_history_from>: Add
7046 argument.
7047 * target.c (target_insn_history_from): Add argument.
7048 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7049 argument.
7050
7051 2014-02-19 Tom Tromey <tromey@redhat.com>
7052
7053 * target.h (struct target_ops) <to_insn_history>: Add argument.
7054 * target.c (target_insn_history): Add argument.
7055 * record-btrace.c (record_btrace_insn_history): Add 'self'
7056 argument.
7057
7058 2014-02-19 Tom Tromey <tromey@redhat.com>
7059
7060 * target.h (struct target_ops) <to_goto_record>: Add argument.
7061 * target.c (target_goto_record): Add argument.
7062 * record-full.c (record_full_goto): Add 'self' argument.
7063 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7064
7065 2014-02-19 Tom Tromey <tromey@redhat.com>
7066
7067 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7068 * target.c (target_goto_record_end): Add argument.
7069 * record-full.c (record_full_goto_end): Add 'self' argument.
7070 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7071
7072 2014-02-19 Tom Tromey <tromey@redhat.com>
7073
7074 * target.h (struct target_ops) <to_goto_record_begin>: Add
7075 argument.
7076 * target.c (target_goto_record_begin): Add argument.
7077 * record-full.c (record_full_goto_begin): Add 'self' argument.
7078 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7079 argument.
7080
7081 2014-02-19 Tom Tromey <tromey@redhat.com>
7082
7083 * target.h (struct target_ops) <to_record_is_replaying>: Add
7084 argument.
7085 * target.c (target_record_is_replaying): Add argument.
7086 * record-full.c (record_full_is_replaying): Add 'self' argument.
7087 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7088 argument.
7089 (record_btrace_xfer_partial, record_btrace_store_registers)
7090 (record_btrace_prepare_to_store, record_btrace_resume)
7091 (record_btrace_wait, record_btrace_decr_pc_after_break)
7092 (record_btrace_find_new_threads, record_btrace_thread_alive):
7093 Update.
7094
7095 2014-02-19 Tom Tromey <tromey@redhat.com>
7096
7097 * target.h (struct target_ops) <to_delete_record>: Add argument.
7098 * target.c (target_delete_record): Add argument.
7099 * record-full.c (record_full_delete): Add 'self' argument.
7100
7101 2014-02-19 Tom Tromey <tromey@redhat.com>
7102
7103 * target.h (struct target_ops) <to_save_record>: Add argument.
7104 * target.c (target_save_record): Add argument.
7105 * record-full.c (record_full_save): Add 'self' argument.
7106 (record_full_save): Add 'self' argument.
7107
7108 2014-02-19 Tom Tromey <tromey@redhat.com>
7109
7110 * target.h (struct target_ops) <to_info_record>: Add argument.
7111 * target.c (target_info_record): Add argument.
7112 * record.c (info_record_command): Add argument.
7113 * record-full.c (record_full_info): Add 'self' argument.
7114 * record-btrace.c (record_btrace_info): Add 'self' argument.
7115
7116 2014-02-19 Tom Tromey <tromey@redhat.com>
7117
7118 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7119 * target.c (target_stop_recording): Add argument.
7120 * record.c (record_stop): Add argument.
7121 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7122 argument.
7123
7124 2014-02-19 Tom Tromey <tromey@redhat.com>
7125
7126 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7127 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7128 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7129 argument.
7130 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7131 (_initialize_amd64_linux_nat): Use it.
7132 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7133 (_initialize_i386_linux_nat): Use it.
7134
7135 2014-02-19 Tom Tromey <tromey@redhat.com>
7136
7137 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7138 * target.c (target_teardown_btrace): Add argument.
7139 * remote.c (remote_teardown_btrace): Add 'self' argument.
7140 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7141 argument.
7142 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7143 argument.
7144
7145 2014-02-19 Tom Tromey <tromey@redhat.com>
7146
7147 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7148 * target.c (target_disable_btrace): Add argument.
7149 * remote.c (remote_disable_btrace): Add 'self' argument.
7150 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7151 argument.
7152 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7153 argument.
7154
7155 2014-02-19 Tom Tromey <tromey@redhat.com>
7156
7157 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7158 * target.c (target_enable_btrace): Add argument.
7159 * remote.c (remote_enable_btrace): Add 'self' argument.
7160 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7161 argument.
7162 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7163 argument.
7164
7165 2014-02-19 Tom Tromey <tromey@redhat.com>
7166
7167 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7168 (target_can_use_agent): Add argument.
7169 * target.c (update_current_target): Update.
7170 * remote.c (remote_can_use_agent): Add 'self' argument.
7171 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7172
7173 2014-02-19 Tom Tromey <tromey@redhat.com>
7174
7175 * target.h (struct target_ops) <to_use_agent>: Add argument.
7176 (target_use_agent): Add argument.
7177 * target.c (update_current_target): Update.
7178 * remote.c (remote_use_agent): Add 'self' argument.
7179 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7180
7181 2014-02-19 Tom Tromey <tromey@redhat.com>
7182
7183 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7184 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7185 (target_traceframe_info): Add argument.
7186 * target.c (update_current_target): Update.
7187 * remote.c (remote_traceframe_info): Add 'self' argument.
7188 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7189
7190 2014-02-19 Tom Tromey <tromey@redhat.com>
7191
7192 * target.h (target_static_tracepoint_markers_by_strid): Add
7193 argument.
7194 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7195 'self' argument.
7196 * target.c (update_current_target): Update.
7197 * remote.c (struct target_ops)
7198 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7199 * linux-nat.c (struct target_ops)
7200 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7201
7202 2014-02-19 Tom Tromey <tromey@redhat.com>
7203
7204 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7205 Add argument.
7206 (target_static_tracepoint_marker_at): Add argument.
7207 * target.c (update_current_target): Update.
7208 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7209 argument.
7210
7211 2014-02-19 Tom Tromey <tromey@redhat.com>
7212
7213 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7214 (target_set_permissions): Add argument.
7215 * target.c (update_current_target): Update.
7216 * remote.c (remote_set_permissions): Add 'self' argument.
7217 (remote_start_remote): Update.
7218
7219 2014-02-19 Tom Tromey <tromey@redhat.com>
7220
7221 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7222 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7223 (target_get_tib_address): Add argument.
7224 * target.c (update_current_target): Update.
7225 * remote.c (remote_get_tib_address): Add 'self' argument.
7226
7227 2014-02-19 Tom Tromey <tromey@redhat.com>
7228
7229 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7230 (target_set_trace_notes): Add argument.
7231 * target.c (update_current_target): Update.
7232 * remote.c (remote_set_trace_notes): Add 'self' argument.
7233
7234 2014-02-19 Tom Tromey <tromey@redhat.com>
7235
7236 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7237 argument.
7238 (target_set_trace_buffer_size): Add argument.
7239 * target.c (update_current_target): Update.
7240 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7241
7242 2014-02-19 Tom Tromey <tromey@redhat.com>
7243
7244 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7245 argument.
7246 (target_set_circular_trace_buffer): Add argument.
7247 * target.c (update_current_target): Update.
7248 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7249 argument.
7250
7251 2014-02-19 Tom Tromey <tromey@redhat.com>
7252
7253 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7254 argument.
7255 (target_set_disconnected_tracing): Add argument.
7256 * target.c (update_current_target): Update.
7257 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7258
7259 2014-02-19 Tom Tromey <tromey@redhat.com>
7260
7261 * target.h (struct target_ops)
7262 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7263 (target_get_min_fast_tracepoint_insn_len): Add argument.
7264 * target.c (update_current_target): Update.
7265 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7266 argument.
7267
7268 2014-02-19 Tom Tromey <tromey@redhat.com>
7269
7270 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7271 argument.
7272 (target_get_raw_trace_data): Add argument.
7273 * target.c (update_current_target): Update.
7274 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7275
7276 2014-02-19 Tom Tromey <tromey@redhat.com>
7277
7278 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7279 Add argument.
7280 (target_upload_trace_state_variables): Add argument.
7281 * target.c (update_current_target): Update.
7282 * remote.c (remote_upload_trace_state_variables): Add 'self'
7283 argument.
7284 (remote_start_remote): Update.
7285
7286 2014-02-19 Tom Tromey <tromey@redhat.com>
7287
7288 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7289 argument.
7290 (target_upload_tracepoints): Add argument.
7291 * target.c (update_current_target): Update.
7292 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7293 (remote_start_remote): Update.
7294
7295 2014-02-19 Tom Tromey <tromey@redhat.com>
7296
7297 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7298 (target_save_trace_data): Add argument.
7299 * target.c (update_current_target): Update.
7300 * remote.c (remote_save_trace_data): Add 'self' argument.
7301
7302 2014-02-19 Tom Tromey <tromey@redhat.com>
7303
7304 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7305 argument.
7306 * target.h (struct target_ops)
7307 <to_get_trace_state_variable_value>: Add argument.
7308 (target_get_trace_state_variable_value): Add argument.
7309 * target.c (update_current_target): Update.
7310 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7311 argument.
7312 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7313
7314 2014-02-19 Tom Tromey <tromey@redhat.com>
7315
7316 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7317 * target.h (struct target_ops) <to_trace_find>: Add argument.
7318 (target_trace_find): Add argument.
7319 * target.c (update_current_target): Update.
7320 * remote.c (remote_trace_find): Add 'self' argument.
7321 * ctf.c (ctf_trace_find): Add 'self' argument.
7322
7323 2014-02-19 Tom Tromey <tromey@redhat.com>
7324
7325 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7326 (target_trace_stop): Add argument.
7327 * target.c (update_current_target): Update.
7328 * remote.c (remote_trace_stop): Add 'self' argument.
7329
7330 2014-02-19 Tom Tromey <tromey@redhat.com>
7331
7332 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7333 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7334 argument.
7335 (target_get_tracepoint_status): Add argument.
7336 * target.c (update_current_target): Update.
7337 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7338
7339 2014-02-19 Tom Tromey <tromey@redhat.com>
7340
7341 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7342 * target.h (struct target_ops) <to_get_trace_status>: Add
7343 argument.
7344 (target_get_trace_status): Add argument.
7345 * target.c (update_current_target): Update.
7346 * remote.c (remote_get_trace_status): Add 'self' argument.
7347 (remote_start_remote, remote_can_download_tracepoint): Update.
7348 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7349
7350 2014-02-19 Tom Tromey <tromey@redhat.com>
7351
7352 * target.h (struct target_ops) <to_trace_start>: Add argument.
7353 (target_trace_start): Add argument.
7354 * target.c (update_current_target): Update.
7355 * remote.c (remote_trace_start): Add 'self' argument.
7356
7357 2014-02-19 Tom Tromey <tromey@redhat.com>
7358
7359 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7360 Add argument.
7361 (target_trace_set_readonly_regions): Add argument.
7362 * target.c (update_current_target): Update.
7363 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7364 argument.
7365
7366 2014-02-19 Tom Tromey <tromey@redhat.com>
7367
7368 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7369 argument.
7370 (target_disable_tracepoint): Add argument.
7371 * target.c (update_current_target): Update.
7372 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7373
7374 2014-02-19 Tom Tromey <tromey@redhat.com>
7375
7376 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7377 argument.
7378 (target_enable_tracepoint): Add argument.
7379 * target.c (update_current_target): Update.
7380 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7381
7382 2014-02-19 Tom Tromey <tromey@redhat.com>
7383
7384 * target.h (struct target_ops) <to_download_trace_state_variable>:
7385 Add argument.
7386 (target_download_trace_state_variable): Add argument.
7387 * target.c (update_current_target): Update.
7388 * remote.c (remote_download_trace_state_variable): Add 'self'
7389 argument.
7390
7391 2014-02-19 Tom Tromey <tromey@redhat.com>
7392
7393 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7394 argument.
7395 (target_can_download_tracepoint): Add argument.
7396 * target.c (update_current_target): Update.
7397 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7398
7399 2014-02-19 Tom Tromey <tromey@redhat.com>
7400
7401 * target.h (struct target_ops) <to_download_tracepoint>: Add
7402 argument.
7403 (target_download_tracepoint): Add argument.
7404 * target.c (update_current_target): Update.
7405 * remote.c (remote_download_tracepoint): Add 'self' argument.
7406
7407 2014-02-19 Tom Tromey <tromey@redhat.com>
7408
7409 * target.h (struct target_ops) <to_trace_init>: Add argument.
7410 (target_trace_init): Add argument.
7411 * target.c (update_current_target): Update.
7412 * remote.c (remote_trace_init): Add 'self' argument.
7413
7414 2014-02-19 Tom Tromey <tromey@redhat.com>
7415
7416 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7417 * target.c (target_fileio_readlink): Add argument.
7418 * remote.c (remote_hostio_readlink): Add 'self' argument.
7419 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7420
7421 2014-02-19 Tom Tromey <tromey@redhat.com>
7422
7423 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7424 * target.c (target_fileio_unlink): Add argument.
7425 * remote.c (remote_hostio_unlink): Add 'self' argument.
7426 (remote_file_delete): Update.
7427 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7428
7429 2014-02-19 Tom Tromey <tromey@redhat.com>
7430
7431 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7432 * target.c (target_fileio_close): Add argument.
7433 * remote.c (remote_hostio_close): Add 'self' argument.
7434 (remote_hostio_close_cleanup): Update.
7435 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7436 Update.
7437 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7438
7439 2014-02-19 Tom Tromey <tromey@redhat.com>
7440
7441 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7442 * target.c (target_fileio_pread): Add argument.
7443 * remote.c (remote_hostio_pread): Add 'self' argument.
7444 (remote_bfd_iovec_pread, remote_file_get): Update.
7445 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7446
7447 2014-02-19 Tom Tromey <tromey@redhat.com>
7448
7449 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7450 * target.c (target_fileio_pwrite): Add argument.
7451 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7452 (remote_file_put): Update.
7453 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7454
7455 2014-02-19 Tom Tromey <tromey@redhat.com>
7456
7457 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7458 * target.c (target_fileio_open): Add argument.
7459 * remote.c (remote_hostio_open): Add 'self' argument.
7460 (remote_bfd_iovec_open): Add 'self' argument.
7461 (remote_file_put): Add 'self' argument.
7462 (remote_file_get): Add 'self' argument.
7463 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7464
7465 2014-02-19 Tom Tromey <tromey@redhat.com>
7466
7467 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7468 Add argument.
7469 (target_can_run_breakpoint_commands): Add argument.
7470 * target.c (update_current_target): Update.
7471 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7472 argument.
7473 (remote_insert_breakpoint): Add 'self' argument.
7474 (remote_insert_hw_breakpoint): Add 'self' argument.
7475 (remote_can_run_breakpoint_commands): Add 'self' argument.
7476
7477 2014-02-19 Tom Tromey <tromey@redhat.com>
7478
7479 * target.h (struct target_ops)
7480 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7481 (target_supports_evaluation_of_breakpoint_conditions): Add
7482 argument.
7483 * target.c (update_current_target): Update.
7484 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7485 argument.
7486 (remote_insert_breakpoint): Add 'self' argument.
7487 (remote_insert_hw_breakpoint): Add 'self' argument.
7488 (remote_supports_cond_breakpoints): Add 'self' argument.
7489
7490 2014-02-19 Tom Tromey <tromey@redhat.com>
7491
7492 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7493 argument.
7494 (target_supports_string_tracing): Add argument.
7495 * target.c (update_current_target): Update.
7496 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7497
7498 2014-02-19 Tom Tromey <tromey@redhat.com>
7499
7500 * target.h (struct target_ops)
7501 <to_supports_disable_randomization>: Add argument.
7502 * target.c (find_default_supports_disable_randomization): Add
7503 argument.
7504 (target_supports_disable_randomization): Add argument.
7505 (find_default_supports_disable_randomization): Add 'self'
7506 argument.
7507 * remote.c (extended_remote_supports_disable_randomization): Add
7508 'self' argument.
7509 (remote_supports_disable_randomization): Add 'self' argument.
7510 (extended_remote_create_inferior): Update.
7511 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7512 'self' argument.
7513
7514 2014-02-19 Tom Tromey <tromey@redhat.com>
7515
7516 * target.h (struct target_ops)
7517 <to_supports_enable_disable_tracepoint>: Add argument.
7518 (target_supports_enable_disable_tracepoint): Add argument.
7519 * target.c (update_current_target): Update.
7520 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7521 argument.
7522
7523 2014-02-19 Tom Tromey <tromey@redhat.com>
7524
7525 * target.h (struct target_ops) <to_supports_multi_process>: Add
7526 argument.
7527 (target_supports_multi_process): Add argument.
7528 * target.c (update_current_target): Update.
7529 * remote.c (remote_supports_multi_process): Add 'self' argument.
7530 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7531 argument.
7532 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7533 argument.
7534
7535 2014-02-19 Tom Tromey <tromey@redhat.com>
7536
7537 * target.h (struct target_ops) <to_execution_direction>: Add
7538 argument.
7539 (target_execution_direction): Add argument.
7540 * target.c (default_execution_direction): Add 'self' argument.
7541 * record-full.c (record_full_execution_direction): Add 'self'
7542 argument.
7543
7544 2014-02-19 Tom Tromey <tromey@redhat.com>
7545
7546 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7547 argument.
7548 (target_can_execute_reverse): Add argument.
7549 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7550 * record-full.c (record_full_can_execute_reverse): Add 'self'
7551 argument.
7552 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7553 argument.
7554
7555 2014-02-19 Tom Tromey <tromey@redhat.com>
7556
7557 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7558 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7559 argument.
7560 (target_get_ada_task_ptid): Add argument.
7561 * target.c (update_current_target): Update.
7562 (default_get_ada_task_ptid): Add 'self' argument.
7563 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7564 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7565 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7566 argument.
7567 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7568 argument.
7569 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7570 argument.
7571 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7572 argument.
7573 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7574 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7575 argument.
7576
7577 2014-02-19 Tom Tromey <tromey@redhat.com>
7578
7579 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7580 (target_goto_bookmark): Add argument.
7581 * target.c (dummy_goto_bookmark): Add 'self' argument.
7582 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7583
7584 2014-02-19 Tom Tromey <tromey@redhat.com>
7585
7586 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7587 (target_get_bookmark): Add argument.
7588 * target.c (dummy_get_bookmark): Add 'self' argument.
7589 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7590
7591 2014-02-19 Tom Tromey <tromey@redhat.com>
7592
7593 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7594 argument.
7595 (target_make_corefile_notes): Add argument.
7596 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7597 * procfs.c (procfs_make_note_section): Add 'self' argument.
7598 (procfs_make_note_section): Add 'self' argument.
7599 (procfs_make_note_section): Add 'self' argument.
7600 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7601 argument.
7602 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7603 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7604 * exec.c (exec_make_note_section): Add 'self' argument.
7605 (exec_make_note_section): Add 'self' argument.
7606
7607 2014-02-19 Tom Tromey <tromey@redhat.com>
7608
7609 * target.h (struct target_ops) <to_find_memory_regions>: Add
7610 argument.
7611 (target_find_memory_regions): Add argument.
7612 * target.c (dummy_find_memory_regions): Add 'self' argument.
7613 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7614 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7615 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7616 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7617 * exec. (exec_do_find_memory_regions): New global.
7618 (exec_set_find_memory_regions): Rewrite.
7619 (exec_find_memory_regions): New function.
7620 (init_exec_ops): Use exec_find_memory_regions.
7621
7622 2014-02-19 Tom Tromey <tromey@redhat.com>
7623
7624 * target.h (struct target_ops) <to_supports_non_stop>: Add
7625 argument.
7626 * target.c (find_default_supports_non_stop): Add argument.
7627 (target_supports_non_stop): Add argument.
7628 (find_default_supports_non_stop): Add 'self' argument.
7629 * remote.c (remote_supports_non_stop): Add 'self' argument.
7630 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7631
7632 2014-02-19 Tom Tromey <tromey@redhat.com>
7633
7634 * target.h (struct target_ops) <to_log_command>: Add argument.
7635 (target_log_command): Add argument.
7636 * serial.h (serial_log_command): Add 'self' argument.
7637 * serial.c (serial_log_command): Add 'self' argument.
7638
7639 2014-02-19 Tom Tromey <tromey@redhat.com>
7640
7641 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7642 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7643 argument.
7644 (target_pid_to_exec_file): Add argument.
7645 * target.c (debug_to_pid_to_exec_file): Add argument.
7646 (update_current_target): Update.
7647 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7648 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7649 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7650 (linux_handle_extended_wait): Update.
7651 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7652 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7653 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7654 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7655
7656 2014-02-19 Tom Tromey <tromey@redhat.com>
7657
7658 * target.h (struct target_ops) <to_rcmd>: Add argument.
7659 (target_rcmd): Add argument.
7660 * target.c (debug_to_rcmd): Add argument.
7661 (update_current_target, do_monitor_command): Update.
7662 * remote.c (remote_rcmd): Add 'self' argument.
7663 * monitor.c (monitor_rcmd): Add 'self' argument.
7664
7665 2014-02-19 Tom Tromey <tromey@redhat.com>
7666
7667 * windows-nat.c (windows_stop): Add 'self' argument.
7668 * target.h (struct target_ops) <to_stop>: Add argument.
7669 * target.c (target_stop): Add argument.
7670 (debug_to_stop): Add argument.
7671 (update_current_target): Update.
7672 * remote.c (remote_stop): Add 'self' argument.
7673 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7674 (gdbsim_cntrl_c): Update.
7675 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7676 * procfs.c (procfs_stop): Add 'self' argument.
7677 * nto-procfs.c (procfs_stop): Add 'self' argument.
7678 * monitor.c (monitor_stop): Add 'self' argument.
7679 (monitor_open): Update.
7680 * linux-nat.c (linux_nat_stop): Add argument.
7681 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7682 * gnu-nat.c (gnu_stop): Add 'self' argument.
7683 * darwin-nat.c (darwin_stop): Add 'self' argument.
7684
7685 2014-02-19 Tom Tromey <tromey@redhat.com>
7686
7687 * target.h (struct target_ops) <to_thread_name>: Add argument.
7688 * target.c (target_thread_name): Add argument.
7689 (update_current_target): Update.
7690 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7691
7692 2014-02-19 Tom Tromey <tromey@redhat.com>
7693
7694 * target.h (struct target_ops) <to_extra_thread_info>: Add
7695 argument.
7696 (target_extra_thread_info): Add argument.
7697 * target.c (update_current_target): Update.
7698 * remote.c (remote_threads_extra_info): Add 'self' argument.
7699 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7700 argument.
7701 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7702 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7703 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7704 argument.
7705 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7706 argument.
7707 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7708 argument.
7709 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7710 argument.
7711
7712 2014-02-19 Tom Tromey <tromey@redhat.com>
7713
7714 * target.h (struct target_ops) <to_program_signals>: Add argument.
7715 * target.c (target_program_signals): Add argument.
7716 * remote.c (remote_program_signals): Add 'self' argument.
7717
7718 2014-02-19 Tom Tromey <tromey@redhat.com>
7719
7720 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7721 * target.c (target_pass_signals): Add argument.
7722 * remote.c (remote_pass_signals): Add 'self' argument.
7723 (remote_start_remote): Update.
7724 * procfs.c (procfs_pass_signals): Add 'self' argument.
7725 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7726 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7727 (linux_nat_create_inferior, linux_nat_attach): Update.
7728
7729 2014-02-19 Tom Tromey <tromey@redhat.com>
7730
7731 * windows-nat.c (windows_can_run): Add 'self' argument.
7732 * target.h (struct target_ops) <to_can_run>: Add argument.
7733 (target_can_run): Add argument.
7734 * target.c (debug_to_can_run): Add argument.
7735 (update_current_target): Update.
7736 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7737 * inf-child.c (inf_child_can_run): Add 'self' argument.
7738 * go32-nat.c (go32_can_run): Add 'self' argument.
7739
7740 2014-02-19 Tom Tromey <tromey@redhat.com>
7741
7742 * target.h (struct target_ops) <to_has_exited>: Add argument.
7743 (target_has_exited): Add argument.
7744 * target.c (debug_to_has_exited): Add argument.
7745 (update_current_target): Update.
7746
7747 2014-02-19 Tom Tromey <tromey@redhat.com>
7748
7749 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7750 argument.
7751 (target_set_syscall_catchpoint): Add argument.
7752 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7753 argument.
7754 * target.c (update_current_target): Update.
7755
7756 2014-02-19 Tom Tromey <tromey@redhat.com>
7757
7758 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7759 argument.
7760 (target_remove_exec_catchpoint): Add argument.
7761 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7762 (update_current_target): Update.
7763 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7764 argument.
7765
7766 2014-02-19 Tom Tromey <tromey@redhat.com>
7767
7768 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7769 argument.
7770 (target_insert_exec_catchpoint): Add argument.
7771 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7772 (update_current_target): Update.
7773 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7774 argument.
7775
7776 2014-02-19 Tom Tromey <tromey@redhat.com>
7777
7778 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7779 argument.
7780 (target_remove_vfork_catchpoint): Add argument.
7781 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7782 (update_current_target): Update.
7783 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7784 argument.
7785
7786 2014-02-19 Tom Tromey <tromey@redhat.com>
7787
7788 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7789 argument.
7790 (target_insert_vfork_catchpoint): Add argument.
7791 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7792 (update_current_target): Update.
7793 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7794 argument.
7795
7796 2014-02-19 Tom Tromey <tromey@redhat.com>
7797
7798 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7799 argument.
7800 (target_remove_fork_catchpoint): Add argument.
7801 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7802 (update_current_target): Update.
7803 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7804 argument.
7805
7806 2014-02-19 Tom Tromey <tromey@redhat.com>
7807
7808 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7809 argument.
7810 (target_insert_fork_catchpoint): Add argument.
7811 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7812 (update_current_target): Update.
7813 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7814 argument.
7815
7816 2014-02-19 Tom Tromey <tromey@redhat.com>
7817
7818 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7819 argument.
7820 (target_post_startup_inferior): Add argument.
7821 * target.c (debug_to_post_startup_inferior): Add argument.
7822 (update_current_target): Update.
7823 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7824 argument.
7825 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7826 argument.
7827 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7828 argument.
7829 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7830 argument.
7831 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7832 'self' argument.
7833 (super_post_startup_inferior): Likewise.
7834 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7835 'self' argument.
7836 (super_post_startup_inferior): Likewise.
7837 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7838 Add 'self' argument.
7839 (super_post_startup_inferior): Likewise.
7840
7841 2014-02-19 Tom Tromey <tromey@redhat.com>
7842
7843 * target.h (struct target_ops) <to_load>: Add argument.
7844 * target.c (target_load): Add argument.
7845 (debug_to_load): Add argument.
7846 (update_current_target): Update.
7847 * remote.c (remote_load): Add 'self' argument.
7848 * remote-sim.c (gdbsim_load): Add 'self' argument.
7849 * remote-mips.c (mips_load): Add 'self' argument.
7850 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7851 * monitor.c (monitor_load): Add 'self' argument.
7852 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7853
7854 2014-02-19 Tom Tromey <tromey@redhat.com>
7855
7856 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7857 (target_terminal_info): Add argument.
7858 * target.c (debug_to_terminal_info): Add argument.
7859 (default_terminal_info): Likewise.
7860 * inflow.c (child_terminal_info): Add 'self' argument.
7861 * inferior.h (child_terminal_info): Add 'self' argument.
7862 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7863
7864 2014-02-19 Tom Tromey <tromey@redhat.com>
7865
7866 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7867 argument.
7868 (target_terminal_save_ours): Add argument.
7869 * target.c (debug_to_terminal_save_ours): Add argument.
7870 (update_current_target): Update.
7871 * inflow.c (terminal_save_ours): Add 'self' argument.
7872 * inferior.h (terminal_save_ours): Add 'self' argument.
7873
7874 2014-02-19 Tom Tromey <tromey@redhat.com>
7875
7876 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7877 (target_terminal_ours): Add argument.
7878 * target.c (debug_to_terminal_ours): Add argument.
7879 (update_current_target): Update.
7880 * remote.c (remote_terminal_ours): Add 'self' argument.
7881 (remote_close): Update.
7882 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7883 * inflow.c (terminal_ours): Add 'self' argument.
7884 * inferior.h (terminal_ours): Add 'self' argument.
7885 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7886
7887 2014-02-19 Pedro Alves <palves@redhat.com>
7888 Tom Tromey <tromey@redhat.com>
7889
7890 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7891 argument.
7892 (target_terminal_ours_for_output): Add argument.
7893 * target.c (debug_to_terminal_ours_for_output): Add argument.
7894 (update_current_target): Update.
7895 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7896 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7897 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7898
7899 2014-02-19 Tom Tromey <tromey@redhat.com>
7900
7901 * target.h (struct target_ops) <to_terminal_inferior>: Add
7902 argument.
7903 * target.c (target_terminal_inferior): Add argument.
7904 (update_current_target): Update.
7905 * remote.c (remote_terminal_inferior): Add 'self' argument.
7906 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7907 * inflow.c (terminal_inferior): Add 'self' argument.
7908 * inferior.h (terminal_inferior): Add 'self' argument.
7909 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7910 (go32_terminal_inferior): Add 'self' argument.
7911
7912 2014-02-19 Tom Tromey <tromey@redhat.com>
7913
7914 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7915 (target_terminal_init): Add argument.
7916 * target.c (debug_to_terminal_init): Add argument.
7917 (update_current_target): Update.
7918 * inflow.c (terminal_init_inferior): Add 'self' argument.
7919 * inferior.h (terminal_init_inferior): Add 'self' argument.
7920 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7921 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7922
7923 2014-02-19 Tom Tromey <tromey@redhat.com>
7924
7925 * target.h (struct target_ops)
7926 <to_can_accel_watchpoint_condition>: Add argument.
7927 (target_can_accel_watchpoint_condition): Add argument.
7928 * target.c (debug_to_can_accel_watchpoint_condition): Add
7929 argument.
7930 (update_current_target): Update.
7931 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7932 'self' argument.
7933
7934 2014-02-19 Tom Tromey <tromey@redhat.com>
7935
7936 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7937 Add argument.
7938 (target_region_ok_for_hw_watchpoint): Add argument.
7939 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7940 (default_region_ok_for_hw_watchpoint): Add argument.
7941 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7942 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7943 argument.
7944 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7945 argument.
7946 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7947 argument.
7948 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7949 'self' argument.
7950 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7951 'self' argument.
7952 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7953 'self' argument.
7954 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7955 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7956 'self' argument.
7957 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7958 Add 'self' argument.
7959
7960 2014-02-19 Tom Tromey <tromey@redhat.com>
7961
7962 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7963 argument.
7964 (target_insert_watchpoint): Add argument.
7965 * target.c (debug_to_insert_watchpoint): Add argument.
7966 (update_current_target): Update.
7967 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7968 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7969 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7970 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7971 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7972 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7973 argument.
7974 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7975 (procfs_insert_hw_watchpoint): Add 'self' argument.
7976 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7977 argument.
7978 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7979 argument.
7980 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7981 argument.
7982 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7983 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7984 argument.
7985 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7986 'self' argument.
7987
7988 2014-02-19 Tom Tromey <tromey@redhat.com>
7989
7990 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7991 argument.
7992 (target_remove_watchpoint): Add argument.
7993 * target.c (debug_to_remove_watchpoint): Add argument.
7994 (update_current_target): Update.
7995 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7996 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7997 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7998 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7999 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8000 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8001 argument.
8002 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8003 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8004 argument.
8005 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8006 argument.
8007 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8008 argument.
8009 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8010 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8011 argument.
8012 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8013 'self' argument.
8014
8015 2014-02-19 Tom Tromey <tromey@redhat.com>
8016
8017 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8018 argument.
8019 (target_remove_hw_breakpoint): Add argument.
8020 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8021 (update_current_target): Update.
8022 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8023 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8024 argument.
8025 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8026 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8027 argument.
8028 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8029 'self' argument.
8030
8031 2014-02-19 Tom Tromey <tromey@redhat.com>
8032
8033 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8034 argument.
8035 (target_insert_hw_breakpoint): Add argument.
8036 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8037 (update_current_target): Update.
8038 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8039 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8040 argument.
8041 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8042 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8043 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8044 argument.
8045 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8046 'self' argument.
8047
8048 2014-02-19 Tom Tromey <tromey@redhat.com>
8049
8050 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8051 argument.
8052 (target_can_use_hardware_watchpoint): Add argument.
8053 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8054 (update_current_target): Update.
8055 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8056 argument.
8057 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8058 argument.
8059 * remote.c (remote_check_watch_resources): Add 'self' argument.
8060 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8061 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8062 argument.
8063 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8064 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8065 argument.
8066 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8067 argument.
8068 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8069 argument.
8070 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8071 argument.
8072 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8073 argument.
8074 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8075 argument.
8076 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8077 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8078 argument.
8079 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8080 'self' argument.
8081
8082 2014-02-19 Tom Tromey <tromey@redhat.com>
8083
8084 * target.h (struct target_ops) <to_post_attach>: Add argument.
8085 (target_post_attach): Add argument.
8086 * target.c (debug_to_post_attach): Add argument.
8087 (update_current_target): Update.
8088 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8089 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8090 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8091 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8092 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8093
8094 2014-02-19 Tom Tromey <tromey@redhat.com>
8095
8096 * windows-nat.c (windows_close): Add 'self' argument.
8097 * tracepoint.c (tfile_close): Add 'self' argument.
8098 * target.h (struct target_ops) <to_close>: Add argument.
8099 * target.c (target_close): Add argument.
8100 (update_current_target): Update.
8101 * remote.c (remote_close): Add 'self' argument.
8102 * remote-sim.c (gdbsim_close): Add 'self' argument.
8103 * remote-mips.c (mips_close): Add 'self' argument.
8104 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8105 * record-full.c (record_full_close): Add 'self' argument.
8106 * record-btrace.c (record_btrace_close): Add 'self' argument.
8107 * monitor.h (monitor_close): Add 'self' argument.
8108 * monitor.c (monitor_close): Add 'self' argument.
8109 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8110 * linux-nat.c (linux_nat_close): Add argument.
8111 * go32-nat.c (go32_close): Add 'self' argument.
8112 * exec.c (exec_close_1): Add 'self' argument.
8113 * ctf.c (ctf_close): Add 'self' argument.
8114 * corelow.c (core_close): Add 'self' argument.
8115 (core_close_cleanup): Update.
8116 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8117 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8118
8119 2014-02-19 Tom Tromey <tromey@redhat.com>
8120
8121 * remote.c (remote_load): New function.
8122 (init_remote_ops): Use it.
8123
8124 2014-02-19 Tom Tromey <tromey@redhat.com>
8125
8126 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8127 argument.
8128 * common/linux-btrace.h (linux_supports_btrace): Update.
8129 * remote.c (remote_supports_btrace): Add "self" argument.
8130 * target-delegates.c: Rebuild.
8131 * target.c (target_supports_btrace): Remove.
8132 * target.h (struct target_ops) <to_supports_btrace>: Add
8133 target_ops argument.
8134 (target_supports_btrace): New define.
8135
8136 2014-02-19 Tom Tromey <tromey@redhat.com>
8137
8138 * record-full.c (record_full_beneath_to_resume_ops)
8139 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8140 (record_full_beneath_to_wait)
8141 (record_full_beneath_to_store_registers_ops)
8142 (record_full_beneath_to_store_registers)
8143 (record_full_beneath_to_xfer_partial_ops)
8144 (record_full_beneath_to_xfer_partial)
8145 (record_full_beneath_to_insert_breakpoint_ops)
8146 (record_full_beneath_to_insert_breakpoint)
8147 (record_full_beneath_to_remove_breakpoint_ops)
8148 (record_full_beneath_to_remove_breakpoint)
8149 (record_full_beneath_to_stopped_by_watchpoint)
8150 (record_full_beneath_to_stopped_data_address)
8151 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8152 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8153 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8154 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8155 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8156 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8157 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8158 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8159 (record_full_resume, record_full_wait_1)
8160 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8161 (record_full_store_registers, record_full_xfer_partial)
8162 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8163 (record_full_async, record_full_core_xfer_partial): Use target
8164 delegation.
8165 * target-delegates.c: Rebuild.
8166 * target.c (current_xfer_partial): Remove.
8167 (update_current_target): Do not INHERIT or de_fault
8168 to_insert_breakpoint, to_remove_breakpoint,
8169 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8170 to_is_async_p, to_async. Do not set to_xfer_partial field.
8171 (default_xfer_partial): Simplify.
8172 (current_xfer_partial): Remove.
8173 (target_wait, target_resume): Simplify.
8174 (find_default_can_async_p, find_default_is_async_p): Update.
8175 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8176 to_xfer_partial, to_stopped_by_watchpoint,
8177 to_stopped_data_address.
8178 (target_store_registers): Simplify.
8179 (forward_target_remove_breakpoint)
8180 (forward_target_insert_breakpoint): Remove.
8181 (target_remove_breakpoint, target_insert_breakpoint)
8182 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8183 * target.h (struct target_ops) <to_resume, to_wait,
8184 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8185 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8186 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8187 markup.
8188 (forward_target_remove_breakpoint)
8189 (forward_target_insert_breakpoint): Remove.
8190 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8191 directly.
8192 (record_btrace_insert_breakpoint): Delegate directly.
8193
8194 2014-02-19 Tom Tromey <tromey@redhat.com>
8195
8196 PR build/7701:
8197 * target-delegates.c: New file.
8198 * target.c: Include target-delegates.c.
8199 (init_dummy_target): Call install_dummy_methods.
8200 (complete_target_initialization): Call install_delegators.
8201 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8202 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8203 * make-target-delegates: New file.
8204
8205 2014-02-19 Tom Tromey <tromey@redhat.com>
8206
8207 * record.c (find_record_target): Use find_target_at.
8208 * target.c (find_target_at): New function.
8209 * target.h (find_target_at): Declare.
8210
8211 2014-02-19 Tom Tromey <tromey@redhat.com>
8212
8213 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8214 Add 'ops' argument.
8215 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8216 'ops' argument.
8217 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8218 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8219 'ops' argument.
8220 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8221 argument.
8222 * linux-nat.c (save_sigtrap): Update.
8223 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8224 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8225 (linux_nat_close): Update.
8226 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8227 argument.
8228 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8229 argument.
8230 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8231 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8232 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8233 (tmp_to_async): Add 'ops' argument.
8234 (record_full_stopped_by_watchpoint, record_full_async)
8235 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8236 argument.
8237 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8238 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8239 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8240 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8241 (remote_is_async_p, remote_async): Add 'ops' argument.
8242 (remote_stopped_data_address): Update.
8243 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8244 * target.c (update_current_target)
8245 (find_default_can_async_p, find_default_is_async_p): Update.
8246 (init_dummy_target): Update.
8247 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8248 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8249 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8250 (target_can_async_p, target_is_async_p, target_async)
8251 (target_stopped_by_watchpoint): Update.
8252
8253 2014-02-19 Yao Qi <yao@codesourcery.com>
8254
8255 PR gdb/16220
8256 * gdbarch.sh: Remove startup_gdbarch.
8257 * gdbarch.c: Regenerated.
8258 * gdbarch.h: Likewise.
8259
8260 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8261
8262 * rl78-tdep.c (rl78_g10_register_name): New function.
8263 (rl78_return_value): Add g10 support.
8264 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8265 g10.
8266
8267 2014-02-17 Doug Evans <xdje42@gmail.com>
8268
8269 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8270 (SUBDIR_GUILE_SRCS): Ditto.
8271 (scm-gsmob.o): Ditto.
8272
8273 2014-02-17 Yao Qi <yao@codesourcery.com>
8274
8275 * gnu-nat.c (ILL_RPC): Declare defined function.
8276
8277 2014-02-17 Yao Qi <yao@codesourcery.com>
8278
8279 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8280 mach_msg_type_number_t.
8281 (gnu_write_inferior): Likewise.
8282
8283 2014-02-17 Yao Qi <yao@codesourcery.com>
8284
8285 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8286 in format string.
8287 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8288 (inf_validate_procs, inf_signal): Likewise.
8289 (S_exception_raise_request): Likewise.
8290 (do_mach_notify_dead_name): Likewise.
8291 (steal_exc_port): Likewise.
8292 (gnu_read_inferior): Change 'copy_count''s type to
8293 mach_msg_type_number_t.
8294 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8295 format string.
8296
8297 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8298
8299 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8300 flag. Adjust all users; in particular...
8301 (gnu_wait): ..., don't decrement its value in here...
8302 (gnu_create_inferior): ..., and instead set the flag in here,
8303 around the startup_inferior call, and call that one with
8304 START_INFERIOR_TRAPS_EXPECTED.
8305
8306 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8307 (ILL_RPC): ... new macro.
8308 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8309 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8310 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8311 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8312 functions with ILL_RPC macro.
8313 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8314 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8315 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8316 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8317 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8318 (S_proc_getlogin_reply, S_proc_getsid_reply)
8319 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8320 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8321 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8322 (S_proc_getnports_reply, S_proc_is_important_reply)
8323 (S_proc_get_code_reply): New stub functions, generated with
8324 ILL_RPC macro.
8325
8326 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8327 collected the type check structures.
8328
8329 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8330
8331 2014-02-14 Doug Evans <dje@google.com>
8332
8333 * target.c (target_write_partial): Fix result type.
8334
8335 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8336
8337 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8338 the proper offsets to access fpregset_t.
8339
8340 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8341
8342 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8343 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8344 * h8300-tdep.c (setmachinelist): Remove global.
8345 * hppa-tdep.c (hppa_sigtramp): Remove global.
8346 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8347 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8348 * ravenscar-thread.c (update_target_observer): Remove global.
8349 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8350
8351 2014-02-12 Tom Tromey <tromey@redhat.com>
8352
8353 * common/rsp-low.c: Update comments.
8354 * common/rsp-low.h: Update comments.
8355
8356 2014-02-12 Tom Tromey <tromey@redhat.com>
8357
8358 * common/rsp-low.c (convert_ascii_to_int): Remove.
8359 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8360
8361 2014-02-12 Tom Tromey <tromey@redhat.com>
8362
8363 * common/rsp-low.h (unhexify): Don't declare.
8364 * common/rsp-low.c (unhexify): Remove.
8365
8366 2014-02-12 Tom Tromey <tromey@redhat.com>
8367
8368 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8369 * common/rsp-low.c (convert_int_to_ascii): Remove.
8370
8371 2014-02-12 Tom Tromey <tromey@redhat.com>
8372
8373 * common/rsp-low.h (hexify): Don't declare.
8374 * common/rsp-low.c (hexify): Remove.
8375
8376 2014-02-12 Tom Tromey <tromey@redhat.com>
8377
8378 * common/rsp-low.c (hexify): Never take strlen of argument.
8379
8380 2014-02-12 Tom Tromey <tromey@redhat.com>
8381
8382 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8383 * remote.c (extended_remote_run, remote_rcmd)
8384 (remote_download_trace_state_variable, remote_save_trace_data)
8385 (remote_set_trace_notes): Update.
8386 * tracepoint.c (encode_source_string, tfile_write_status)
8387 (tfile_write_uploaded_tsv): Update.
8388
8389 2014-02-12 Tom Tromey <tromey@redhat.com>
8390
8391 * tracepoint.c: Include rsp-low.h.
8392 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8393 * remote.c: Include rsp-low.h.
8394 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8395 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8396 (remote_unescape_input): Move to common/rsp-low.c.
8397 * common/rsp-low.h: New file.
8398 * common/rsp-low.c: New file.
8399 * Makefile.in (SFILES): Add common/rsp-low.c.
8400 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8401 (COMMON_OBS): Add rsp-low.o.
8402 (rsp-low.o): New target.
8403
8404 2014-02-12 Tom Tromey <tromey@redhat.com>
8405
8406 * utils.h: Include print-utils.h.
8407 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8408 (int_string, core_addr_to_string, core_addr_to_string_nz)
8409 (hex_string, hex_string_custom): Don't declare.
8410 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8411 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8412 (hex_string_custom, int_string, core_addr_to_string)
8413 (core_addr_to_string_nz, host_address_to_string): Move to
8414 common/print-utils.c.
8415 * common/print-utils.h: New file.
8416 * common/print-utils.c: New file
8417 * Makefile.in (SFILES): Add common/print-utils.c.
8418 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8419 (COMMON_OBS): Add print-utils.o.
8420 (print-utils.o): New target.
8421
8422 2014-02-12 Tom Tromey <tromey@redhat.com>
8423
8424 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8425
8426 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8427
8428 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8429
8430 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8431
8432 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8433 if a PT_IO ptrace request returns sucessfully but indicates that 0
8434 bytes were transferred.
8435
8436 2014-02-12 Pedro Alves <palves@redhat.com>
8437 Kevin Buettner <kevinb@redhat.com>
8438
8439 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8440 TYPE_INSTANCE_FLAG_CODE_SPACE.
8441
8442 2014-02-12 Pedro Alves <palves@redhat.com>
8443
8444 * h8300-tdep.c (pseudo_from_raw_register)
8445 (raw_from_pseudo_register): New functions.
8446 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8447 them.
8448
8449 2014-02-12 Pedro Alves <palves@redhat.com>
8450
8451 * h8300-tdep.c (h8300_register_sim_regno): New function.
8452 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8453 gdbarch_register_sim_regno hook.
8454
8455 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8456
8457 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8458
8459 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8460
8461 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8462
8463 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8464
8465 * obsd-tdep.h (obsd_init_abi): New prototype.
8466 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8467 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8468 (obsd_init_abi): New functions.
8469 * i386obsd-tdep.c: Include "obsd-tdep.h".
8470 (i386obsd_init_abi): Call obsd_init_abi.
8471 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8472 (amd64obsd_init_abi): Call obsd_init_abi.
8473 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8474 obsd-tdep.c to gdb_target_obs.
8475
8476 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8477
8478 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8479 double float arguments to 16-byte in the argument slots.
8480
8481 2014-02-11 Doug Evans <xdje42@gmail.com>
8482
8483 * configure.ac: Don't crash if pkg-config is not found and guile
8484 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8485 in guile checks.
8486 * configure: Regenerate.
8487
8488 2014-02-11 Yao Qi <yao@codesourcery.com>
8489
8490 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8491 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8492 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8493 * gnu-nat.c (gnu_xfer_memory): Likewise.
8494 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8495 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8496 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8497 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8498
8499 2014-02-11 Yao Qi <yao@codesourcery.com>
8500
8501 * target.h (enum target_xfer_error): Rename to ...
8502 (enum target_xfer_status): ... it. New. All users updated.
8503 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8504 New.
8505 (TARGET_XFER_STATUS_ERROR_P): New macro.
8506 (target_xfer_error_to_string): Remove declaration.
8507 (target_xfer_status_to_string): Declare.
8508 (target_xfer_partial_ftype): Adjust it.
8509 (struct target_ops) <to_xfer_partial>: Return
8510 target_xfer_status. Add argument xfered_len. Update
8511 comments.
8512 * target.c (target_xfer_error_to_string): Rename to ...
8513 (target_xfer_status_to_string): ... it. New. All callers
8514 updated.
8515 (target_read_live_memory): Likewise. Call target_xfer_partial
8516 instead of target_read.
8517 (memory_xfer_live_readonly_partial): Return
8518 target_xfer_status. Add argument xfered_len.
8519 (raw_memory_xfer_partial): Likewise.
8520 (memory_xfer_partial_1): Likewise.
8521 (memory_xfer_partial): Likewise.
8522 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8523 properly. Update debug message.
8524 (default_xfer_partial, current_xfer_partial): Likewise.
8525 (target_write_partial): Likewise.
8526 (target_read_partial): Likewise. All callers updated.
8527 (read_whatever_is_readable): Likewise.
8528 (target_write_with_progress): Likewise.
8529 (target_read_alloc_1): Likewise.
8530
8531 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8532 * auxv.c (procfs_xfer_auxv): Likewise.
8533 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8534 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8535 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8536 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8537 * corefile.c (read_memory): Adjust.
8538 * corelow.c (core_xfer_partial): Likewise.
8539 * ctf.c (ctf_xfer_partial): Likewise.
8540 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8541 updated.
8542 (darwin_xfer_partial): Likewise.
8543 * exec.c (section_table_xfer_memory_partial): Likewise. All
8544 callers updated.
8545 (exec_xfer_partial): Likewise.
8546 * exec.h (section_table_xfer_memory_partial): Update
8547 declaration.
8548 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8549 negative.
8550 (gnu_xfer_partial): Likewise.
8551 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8552 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8553 (ia64_hpux_xfer_solib_got): Likewise.
8554 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8555 type of 'partial_len' to ULONGEST.
8556 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8557 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8558 (linux_nat_xfer_partial): Likewise.
8559 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8560 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8561 * monitor.c (monitor_xfer_memory): Likewise.
8562 (monitor_xfer_partial): Likewise.
8563 * procfs.c (procfs_xfer_partial): Likewise.
8564 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8565 * record-full.c (record_full_xfer_partial): Likewise.
8566 (record_full_core_xfer_partial): Likewise.
8567 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8568 (gdbsim_xfer_partial): Likewise.
8569 * remote.c (remote_write_bytes_aux): Likewise. All callers
8570 updated.
8571 (remote_write_bytes, remote_read_bytes): Likewise. All
8572 callers updated.
8573 (remote_flash_erase): Likewise. All callers updated.
8574 (remote_write_qxfer): Likewise. All callers updated.
8575 (remote_read_qxfer): Likewise. All callers updated.
8576 (remote_xfer_partial): Likewise.
8577 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8578 (rs6000_xfer_shared_libraries): Likewise.
8579 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8580 (sol_thread_xfer_partial): Likewise.
8581 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8582 (sparc_xfer_partial): Likewise.
8583 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8584 updated.
8585 (spu_xfer_partial): Likewise.
8586 * spu-multiarch.c (spu_xfer_partial): Likewise.
8587 * tracepoint.c (tfile_xfer_partial): Likewise.
8588 * windows-nat.c (windows_xfer_memory): Likewise.
8589 (windows_xfer_shared_libraries): Likewise.
8590 (windows_xfer_partial): Likewise.
8591 * valprint.c: Replace 'target_xfer_error' with
8592 'target_xfer_status' in comments.
8593
8594 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8595
8596 Checked in by Joel Brobecker <brobecker@adacore.com>.
8597 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8598
8599 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8600
8601 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8602 function parameters.
8603
8604 2014-02-10 Will Newton <will.newton@linaro.org>
8605
8606 * elfread.c (elf_rel_plt_read): Look for a .got section if
8607 looking up .got.plt fails.
8608 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8609 on address passed to elf_gnu_ifunc_record_cache.
8610 (elf_gnu_ifunc_resolve_addr): Likewise.
8611 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8612
8613 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8614
8615 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8616 (X_RETTURN): New macro.
8617 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8618
8619 * sparc64-tdep.c (sparc64_init_abi): Hook
8620 sparc_in_function_epilogue_p.
8621
8622 2014-02-10 Gary Benson <gbenson@redhat.com>
8623
8624 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8625 Rename name_matcher to symbol_matcher.
8626
8627 2014-02-10 Gary Benson <gbenson@redhat.com>
8628
8629 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8630 Use expand_symtabs_file_matcher_ftype and
8631 expand_symtabs_symbol_matcher_ftype.
8632
8633 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8634
8635 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8636 (struct ada_symbol_cache): New.
8637 (ada_free_symbol_cache): Forward declare.
8638 (struct ada_pspace_data): New.
8639 (ada_pspace_data_handle): New static global.
8640 (get_ada_pspace_data, ada_pspace_data_cleanup)
8641 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8642 (cache_space, cache): Delete, now folded inside struct
8643 ada_pspace_data.
8644 (ada_get_symbol_cache): New function.
8645 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8646 implementation.
8647 (_initialize_ada_language): Remove initialization of cache_space.
8648 Move call to observer_attach_inferior_exit up, grouping it
8649 with the other observer registrations inside this function.
8650 Rename command to be more general. Add call to
8651 register_program_space_data_with_cleanup.
8652
8653 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8654
8655 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8656 ada_new_objfile_observer.
8657 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8658 (_initialize_tasks): Update uses of ada_new_objfile_observer
8659 and ada_tasks_normal_stop_observer.
8660
8661 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8662
8663 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8664 returned by the 'Length attribute to integer.
8665
8666 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8667
8668 * ada-lang.c (_initialize_ada_language): Initialize
8669 cache_space obstack.
8670
8671 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8672
8673 * ada-lang.c (HASH_SIZE): New macro.
8674 (struct cache_entry): New type.
8675 (cache_space, cache): New static globals.
8676 (ada_clear_symbol_cache, find_entry): New functions.
8677 (lookup_cached_symbol, cache_symbol): Implement.
8678 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8679 (_initialize_ada_language): Attach ada_new_objfile_observer
8680 and ada_free_objfile_observer.
8681
8682 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8683
8684 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8685 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8686 struct block * parameter.
8687 (ada_lookup_symbol_list_worker): Constify local variable "block".
8688 Remove cast which is no longer necessary.
8689
8690 2014-02-10 Doug Evans <xdje42@gmail.com>
8691
8692 Add Guile as an extension language.
8693 * NEWS: Mention Guile scripting.
8694 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8695 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8696 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8697 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8698 (CLIBS): Add GUILE_LIBS.
8699 (install-guile): New rule.
8700 (guile.o): New rule.
8701 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8702 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8703 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8704 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8705 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8706 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8707 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8708 * configure.ac: New option --with-guile.
8709 * configure: Regenerate.
8710 * config.in: Regenerate.
8711 * auto-load.c: Remove #include "python/python.h". Add #include
8712 "gdb/section-scripts.h".
8713 (source_section_scripts): Handle Guile scripts.
8714 (_initialize_auto_load): Add name of Guile objfile script to
8715 scripts-directory help text.
8716 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8717 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8718 (struct breakpoint): New member scm_bp_object.
8719 * defs.h (enum command_control_type): New value guile_control.
8720 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8721 "extension.h".
8722 (show_user): Update comment.
8723 (_initialize_cli_cmds): Update help text for "show user". Update help
8724 text for max-user-call-depth.
8725 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8726 "extension.h".
8727 (multi_line_command_p): Add guile_control.
8728 (print_command_lines): Handle guile_control.
8729 (execute_control_command, recurse_read_control_structure): Ditto.
8730 (process_next_line): Recognize "guile" commands.
8731 * disasm.c (gdb_disassemble_info): Make non-static.
8732 * disasm.h: #include "dis-asm.h".
8733 (struct gdbarch): Add forward decl.
8734 (gdb_disassemble_info): Declare.
8735 * extension.c: #include "guile/guile.h".
8736 (extension_languages): Add guile.
8737 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8738 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8739 * gdbtypes.c (get_unsigned_type_max): New function.
8740 (get_signed_type_minmax): New function.
8741 * gdbtypes.h (get_unsigned_type_max): Declare.
8742 (get_signed_type_minmax): Declare.
8743 * guile/README: New file.
8744 * guile/guile-internal.h: New file.
8745 * guile/guile.c: New file.
8746 * guile/guile.h: New file.
8747 * guile/scm-arch.c: New file.
8748 * guile/scm-auto-load.c: New file.
8749 * guile/scm-block.c: New file.
8750 * guile/scm-breakpoint.c: New file.
8751 * guile/scm-disasm.c: New file.
8752 * guile/scm-exception.c: New file.
8753 * guile/scm-frame.c: New file.
8754 * guile/scm-gsmob.c: New file.
8755 * guile/scm-iterator.c: New file.
8756 * guile/scm-lazy-string.c: New file.
8757 * guile/scm-math.c: New file.
8758 * guile/scm-objfile.c: New file.
8759 * guile/scm-ports.c: New file.
8760 * guile/scm-pretty-print.c: New file.
8761 * guile/scm-safe-call.c: New file.
8762 * guile/scm-string.c: New file.
8763 * guile/scm-symbol.c: New file.
8764 * guile/scm-symtab.c: New file.
8765 * guile/scm-type.c: New file.
8766 * guile/scm-utils.c: New file.
8767 * guile/scm-value.c: New file.
8768 * guile/lib/gdb.scm: New file.
8769 * guile/lib/gdb/boot.scm: New file.
8770 * guile/lib/gdb/experimental.scm: New file.
8771 * guile/lib/gdb/init.scm: New file.
8772 * guile/lib/gdb/iterator.scm: New file.
8773 * guile/lib/gdb/printing.scm: New file.
8774 * guile/lib/gdb/types.scm: New file.
8775 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8776 (VPATH): Add $(GUILE_SRCDIR).
8777 (GUILE_DIR): New variable.
8778 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8779 (all): Add stamp-guile dependency.
8780 (stamp-guile): New rule.
8781 (clean-guile, install-guile, uninstall-guile): New rules.
8782 (install-only): Add install-guile dependency.
8783 (uninstall): Add uninstall-guile dependency.
8784 (clean): Add clean-guile dependency.
8785
8786 2014-02-09 Doug Evans <xdje42@gmail.com>
8787
8788 Revert this patch (which I approved, mea culpa).
8789
8790 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8791
8792 * Makefile.in (all-lib): Remove.
8793 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8794
8795 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8796
8797 Fix Python stack corruption.
8798 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8799 gdb_py_longest.
8800
8801 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8802
8803 * Makefile.in (all-lib): Remove.
8804 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8805
8806 2014-02-07 Doug Evans <dje@google.com>
8807
8808 * extension-priv.h (extension_language_script_ops): Add comment.
8809 (extension_language_ops): Add comment.
8810 (active_ext_lang_state): Fix typo in comment.
8811
8812 2014-02-07 Pedro Alves <palves@redhat.com>
8813
8814 PR breakpoints/16292
8815 * infrun.c (handle_signal_stop) <signal arrives while stepping
8816 over a breakpoint>: Switch back to the stepping thread.
8817
8818 2014-02-07 Yao Qi <yao@codesourcery.com>
8819
8820 * target.c (target_xfer_partial): Return zero if LEN is zero.
8821
8822 2014-02-07 Yao Qi <yao@codesourcery.com>
8823
8824 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8825 (ld_so_xfer_auxv): Likewise.
8826 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8827 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8828 * corelow.c (core_xfer_partial): Likewise.
8829 * ctf.c (ctf_xfer_partial): Likewise.
8830 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8831 (darwin_xfer_partial): Likewise.
8832 * exec.c (exec_xfer_partial): Likewise.
8833 * gnu-nat.c (gnu_xfer_partial): Likewise.
8834 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8835 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8836 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8837 * linux-nat.c (linux_xfer_siginfo): Likewise.
8838 (linux_proc_xfer_spu): Likewise.
8839 * procfs.c (procfs_xfer_partial): Likewise.
8840 * record-full.c (record_full_xfer_partial): Likewise.
8841 (record_full_core_xfer_partial): Likewise.
8842 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8843 * remote.c (remote_write_qxfer): Likewise.
8844 (remote_write_qxfer, remote_read_qxfer): Likewise.
8845 (remote_xfer_partial): Likewise.
8846 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8847 (rs6000_xfer_shared_libraries): Likewise.
8848 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8849 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8850 (spu_xfer_partial): Likewise.
8851 * target.c (memory_xfer_partial_1): Likewise.
8852 * tracepoint.c (tfile_xfer_partial): Likewise.
8853 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8854 (windows_xfer_partial): Likewise.
8855
8856 2014-02-07 Yao Qi <yao@codesourcery.com>
8857
8858 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8859 comments.
8860 (core_xfer_shared_libraries_aix): Likewise.
8861 * gdbarch.c, gdbarch.h: Regenerated.
8862 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8863 ULONGEST. Change 'len_avail' type to ULONGEST.
8864 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8865 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8866 declaration.
8867 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8868
8869 2014-02-07 Yao Qi <yao@codesourcery.com>
8870
8871 * corefile.c (memory_error): Get 'exception' from ERR and pass
8872 'exception' to throw_error.
8873
8874 2014-02-06 Doug Evans <xdje42@gmail.com>
8875
8876 * configure.ac (libpython checking): Remove all but python.o from
8877 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8878 * configure: Regenerate.
8879
8880 * Makefile.in (SFILES): Add extension.c.
8881 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8882 (COMMON_OBS): Add extension.o.
8883 * extension.h: New file.
8884 * extension-priv.h: New file.
8885 * extension.c: New file.
8886
8887 * python/python-internal.h: #include "extension.h".
8888 (gdbpy_auto_load_enabled): Declare.
8889 (gdbpy_apply_val_pretty_printer): Declare.
8890 (gdbpy_apply_frame_filter): Declare.
8891 (gdbpy_preserve_values): Declare.
8892 (gdbpy_breakpoint_cond_says_stop): Declare.
8893 (gdbpy_breakpoint_has_cond): Declare.
8894 (void source_python_script_for_objfile): Delete.
8895 * python/python.c: #include "extension-priv.h".
8896 Delete inclusion of "observer.h".
8897 (extension_language_python): Moved here and renamed from
8898 script_language_python in py-auto-load.c.
8899 Redefined to be of type extension_language_defn.
8900 (python_extension_script_ops): New global.
8901 (python_extension_ops): New global.
8902 (struct python_env): New member previous_active.
8903 (restore_python_env): Call restore_active_ext_lang.
8904 (ensure_python_env): Call set_active_ext_lang.
8905 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8906 New arg extlang.
8907 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8908 New arg extlang.
8909 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8910 New arg extlang.
8911 (gdbpy_eval_from_control_command): Renamed from
8912 eval_python_from_control_command, made static. New arg extlang.
8913 (gdbpy_source_script) Renamed from source_python_script, made static.
8914 New arg extlang.
8915 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8916 result to int. New arg extlang.
8917 (gdbpy_source_objfile_script): Renamed from
8918 source_python_script_for_objfile, made static. New arg extlang.
8919 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8920 static. New args extlang, extlang_printers. Change result type to
8921 "void".
8922 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8923 static. New arg extlang. Rename arg printers to extlang_printers
8924 and change type to ext_lang_type_printers *.
8925 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8926 static. Replace argument arg with extlang, extlang_printers.
8927 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8928 (!HAVE_PYTHON, source_python_script): Delete.
8929 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8930 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8931 (!HAVE_PYTHON, start_type_printers): Delete.
8932 (!HAVE_PYTHON, apply_type_printers): Delete.
8933 (!HAVE_PYTHON, free_type_printers): Delete.
8934 (_initialize_python): Delete call to observer_attach_before_prompt.
8935 (finalize_python): Set/restore active extension language.
8936 (gdbpy_finish_initialization) Renamed from
8937 finish_python_initialization, made static. New arg extlang.
8938 (gdbpy_initialized): New function.
8939 * python/python.h: #include "extension.h". Delete #include
8940 "value.h", "mi/mi-cmds.h".
8941 (extension_language_python): Declare.
8942 (GDBPY_AUTO_FILE_NAME): Delete.
8943 (enum py_bt_status): Moved to extension.h and renamed to
8944 ext_lang_bt_status.
8945 (enum frame_filter_flags): Moved to extension.h.
8946 (enum py_frame_args): Moved to extension.h and renamed to
8947 ext_lang_frame_args.
8948 (finish_python_initialization): Delete.
8949 (eval_python_from_control_command): Delete.
8950 (source_python_script): Delete.
8951 (apply_val_pretty_printer): Delete.
8952 (apply_frame_filter): Delete.
8953 (preserve_python_values): Delete.
8954 (gdbpy_script_language_defn): Delete.
8955 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8956 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8957
8958 * auto-load.c: #include "extension.h".
8959 (GDB_AUTO_FILE_NAME): Delete.
8960 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8961 (script_language_gdb): Delete, moved to extension.c and renamed to
8962 extension_language_gdb.
8963 (source_gdb_script_for_objfile): Delete.
8964 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8965 (loaded_script): Change type of language member to
8966 struct extension_language_defn *.
8967 (init_loaded_scripts_info): Initialize
8968 unsupported_script_warning_printed.
8969 (maybe_add_script): Make static. Change type of language arg to
8970 struct extension_language_defn *.
8971 (clear_section_scripts): Reset unsupported_script_warning_printed.
8972 (auto_load_objfile_script_1): Rewrite to use extension language API.
8973 (auto_load_objfile_script): Make public. Remove support-compiled-in
8974 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8975 (source_section_scripts): Rewrite to use extension language API.
8976 (load_auto_scripts_for_objfile): Rewrite to use
8977 auto_load_scripts_for_objfile.
8978 (collect_matching_scripts_data): Change type of language member to
8979 struct extension_language_defn *.
8980 (auto_load_info_scripts): Change type of language arg to
8981 struct extension_language_defn *.
8982 (unsupported_script_warning_print): New function.
8983 (script_not_found_warning_print): Make static.
8984 (_initialize_auto_load): Rewrite construction of scripts-directory
8985 help.
8986 * auto-load.h (struct objfile): Add forward decl.
8987 (struct script_language): Delete.
8988 (struct auto_load_pspace_info): Add forward decl.
8989 (struct extension_language_defn): Add forward decl.
8990 (maybe_add_script): Delete.
8991 (auto_load_objfile_script): Declare.
8992 (script_not_found_warning_print): Delete.
8993 (auto_load_info_scripts): Update prototype.
8994 (auto_load_gdb_scripts_enabled): Declare.
8995 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8996 auto_load_python_scripts_enabled and made public.
8997 (script_language_python): Delete, moved to python.c.
8998 (gdbpy_script_language_defn): Delete.
8999 (info_auto_load_python_scripts): Update to use
9000 extension_language_python.
9001
9002 * breakpoint.c (condition_command): Replace call to
9003 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9004 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9005 with call to breakpoint_ext_lang_cond_says_stop.
9006 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9007 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9008 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9009 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9010 New arg slang.
9011 (local_setattro): Print name of extension language with existing
9012 stop condition.
9013
9014 * valprint.c (val_print, value_print): Update to call
9015 apply_ext_lang_val_pretty_printer.
9016 * cp-valprint.c (cp_print_value): Update call to
9017 apply_ext_lang_val_pretty_printer.
9018 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9019 (gdbpy_apply_val_pretty_printer): Renamed from
9020 apply_val_pretty_printer. New arg extlang.
9021 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9022
9023 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9024 extension language API.
9025 * cli/cli-script.c (execute_control_command): Update to call
9026 eval_ext_lang_from_control_command.
9027
9028 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9029 enum ext_lang_bt_status values. Update call to
9030 apply_ext_lang_frame_filter.
9031 (mi_cmd_stack_list_locals): Ditto.
9032 (mi_cmd_stack_list_args): Ditto.
9033 (mi_cmd_stack_list_variables): Ditto.
9034 * mi/mi-main.c: Delete #include "python/python-internal.h".
9035 Add #include "extension.h".
9036 (mi_cmd_list_features): Replace reference to python internal variable
9037 gdb_python_initialized with call to ext_lang_initialized_p.
9038
9039 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9040 Update to use enum ext_lang_frame_args. Update to call
9041 apply_ext_lang_frame_filter.
9042 * python/py-framefilter.c (extract_sym): Update to use enum
9043 ext_lang_bt_status.
9044 (extract_value, py_print_type, py_print_value): Ditto.
9045 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9046 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9047 (py_print_frame): Ditto.
9048 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9049 New arg extlang. Update to use enum ext_lang_bt_status.
9050
9051 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9052 finish_python_initialization. Replace with call to
9053 finish_ext_lang_initialization.
9054
9055 * typeprint.c (do_free_global_table): Update to call
9056 free_ext_lang_type_printers.
9057 (create_global_typedef_table): Update to call
9058 start_ext_lang_type_printers.
9059 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9060 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9061 (type_print_options): Change type of global_printers from "void *"
9062 to "struct ext_lang_type_printers *".
9063
9064 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9065 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9066 (gdbpy_preserve_values): Renamed from preserve_python_values.
9067 New arg extlang.
9068 (!HAVE_PYTHON, preserve_python_values): Delete.
9069
9070 * utils.c (quit_flag): Delete, moved to extension.c.
9071 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9072 extension.c.
9073
9074 * eval.c: Delete #include "python/python.h".
9075 * main.c: Delete #include "python/python.h".
9076
9077 * defs.h: Update comment.
9078
9079 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9080
9081 GDB 7.7 released.
9082
9083 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9084
9085 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9086 defined.
9087
9088 2014-02-05 Yao Qi <yao@codesourcery.com>
9089
9090 * remote.c (remote_pass_signals): Remove local 'buf' and use
9091 rs->buf.
9092 (remote_program_signals): Likewise.
9093
9094 2014-02-05 Yao Qi <yao@codesourcery.com>
9095
9096 * ctf.c: Include "inferior.h" and "gdbthread.h".
9097 (CTF_PID): A new macro.
9098 (ctf_open): Call inferior_appeared and add_thread_silent.
9099 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9100 (ctf_thread_alive): New function.
9101 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9102
9103 2014-02-05 Yao Qi <yao@codesourcery.com>
9104
9105 Revert this patch:
9106
9107 2013-05-24 Yao Qi <yao@codesourcery.com>
9108
9109 * tracepoint.c (TFILE_PID): Remove.
9110 (tfile_open): Don't add thread and inferior.
9111 (tfile_close): Don't set 'inferior_ptid'. Don't call
9112 exit_inferior_silent.
9113 (tfile_thread_alive): Remove.
9114 (init_tfile_ops): Don't set field 'to_thread_alive' of
9115 tfile_ops.
9116
9117 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9118
9119 * remote.c (remote_start_remote): Call remote_check_symbols even
9120 if only symbol-file (not file) has been given.
9121
9122 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9123
9124 * gdbarch.sh (skip_entrypoint): New callback.
9125 * gdbarch.c, gdbarch.h: Regenerate.
9126 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9127 * infrun.c (fill_in_stop_func): Likewise.
9128 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9129 (ppc_elfv2_elf_make_msymbol_special): New function.
9130 (ppc_elfv2_skip_entrypoint): Likewise.
9131 (ppc_linux_init_abi): Install them for ELFv2.
9132
9133 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9134
9135 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9136 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9137 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9138 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9139 structures returned in GPRs.
9140
9141 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9142
9143 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9144 offset to the stack parameter list for the ELFv2 ABI.
9145
9146 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9147
9148 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9149 set_gdbarch_convert_from_func_ptr_addr and
9150 set_gdbarch_elf_make_msymbol_special for ELFv1.
9151 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9152 function descriptors on ELFv1.
9153 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9154 set up r12 at function entry.
9155
9156 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9157
9158 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9159 (struct gdbarch_tdep): New member elf_abi.
9160
9161 * rs6000-tdep.c: Include "elf/ppc64.h".
9162 (rs6000_gdbarch_init): Detect ELF ABI version.
9163
9164 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9165
9166 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9167 within a register pair holding a DFP 128-bit value on little-endian.
9168 (ppc64_sysv_abi_return_value_base): Likewise.
9169 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9170 (dfp_pseudo_register_write): Likewise.
9171
9172 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9173
9174 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9175 offset on little-endian when passing _Decimal32.
9176 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9177
9178 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9179
9180 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9181 of the overlapped FP register within the VSX register on little-
9182 endian platforms.
9183 (efpr_pseudo_register_write): Likewise.
9184
9185 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9186
9187 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9188 offset on little-endian when passing small structures.
9189
9190 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9191
9192 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9193 (struct ppc64_sysv_argpos): New data structure.
9194 (ppc64_sysv_abi_push_float): Remove.
9195 (ppc64_sysv_abi_push_val): New function.
9196 (ppc64_sysv_abi_push_integer): Likewise.
9197 (ppc64_sysv_abi_push_freg): Likewise.
9198 (ppc64_sysv_abi_push_vreg): Likewise.
9199 (ppc64_sysv_abi_push_param): Likewise.
9200 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9201 (ppc64_sysv_abi_return_value_base): New function.
9202 (ppc64_sysv_abi_return_value): Refactor to use it.
9203
9204 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9205
9206 * NEWS: Document new target powerpc64le-*-linux*.
9207
9208 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9209
9210 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9211 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9212 core dumps.
9213 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9214 register set used in ELF core dumps. Add floating-point register set.
9215
9216 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9217
9218 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9219 dwarf2_to_gdb[] table using symbolic constants. Adjust
9220 penultimate entry from number representing the PC register
9221 to symbolic constant representing the MDR register. Add
9222 constant for the PC register to the end of the table.
9223
9224 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9225
9226 * bsd-kvm.c: Include <sys/param.h>
9227
9228 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9229
9230 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9231
9232 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9233
9234 * ada-lang.h (clear_ada_sym_cache): Delete.
9235
9236 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
9237
9238 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9239
9240 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9241
9242 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9243 the sigreturn register save area only if the syscall is
9244 sigreturn.
9245
9246 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9247
9248 * valops.c (value_slice): Minor reformatting.
9249
9250 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
9251
9252 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9253
9254 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9255
9256 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9257 New static globals.
9258 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9259 (ada_ignore_descriptive_types_p): New static global.
9260 (find_parallel_type_by_descriptive_type): Return immediately
9261 if ada_ignore_descriptive_types_p is set.
9262 (_initialize_ada_language): Register new commands "maintenance
9263 set ada", "maintenance show ada", "maintenance set ada
9264 ignore-descriptive-types" and "maintenance show ada
9265 ignore-descriptive-types".
9266 * NEWS: Add entry for new "maint ada set/show
9267 ignore-descriptive-types" commands.
9268
9269 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9270
9271 * record-btrace.c (record_btrace_close): Call btrace_teardown
9272 for all threads.
9273
9274 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9275
9276 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9277 "ui-out.h".
9278
9279 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9280
9281 * ada-typeprint (type_is_full_subrange_of_target_type):
9282 New function.
9283 (print_range): Add parameter bounds_prefered_p. If not set,
9284 try printing range types using the name of their base type.
9285 (print_range_type): Add parameter bounds_prefered_p.
9286 Use it in call to print_range.
9287 (print_array_type, ada_print_type): Update calls to print_range
9288 and print_range_type.
9289
9290 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9291
9292 * ada-typeprint.c (print_array_type, print_choices, print_range)
9293 (print_range_bound, print_dynamic_range_bound, print_range_type):
9294 Remove declaration.
9295
9296 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9297
9298 * ada-typeprint.c (print_range): Add missing empty line
9299 after local declaration.
9300
9301 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9302
9303 * ada-valprint.c (print_optional_low_bound): Get index_type's
9304 target type for as long as it is a TYPE_CODE_RANGE.
9305
9306 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9307
9308 * procfs.c (procfs_make_note_section): Remove assertion and
9309 associated comment.
9310
9311 2014-01-24 Yao Qi <yao@codesourcery.com>
9312
9313 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9314 * corelow.c (get_core_siginfo): Likewise.
9315
9316 2014-01-24 Yao Qi <yao@codesourcery.com>
9317
9318 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9319 ULONGEST. Don't check 'len' is negative.
9320 (remote_write_bytes): Change type of 'len' to ULONGEST.
9321
9322 2014-01-23 Tom Tromey <tromey@redhat.com>
9323
9324 PR python/16485:
9325 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9326 Handle exception from frame.block.
9327 (FrameVars.fetch_frame_locals): Likewise.
9328
9329 2014-01-23 Tom Tromey <tromey@redhat.com>
9330
9331 PR python/16487:
9332 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9333 on a NULL pointer. Move "goto error" to correct place.
9334
9335 2014-01-23 Tom Tromey <tromey@redhat.com>
9336
9337 PR python/16491:
9338 * python/py-framefilter.c (apply_frame_filter): Call
9339 ensure_python_env after computing gdbarch.
9340
9341 2014-01-23 Yao Qi <yao@codesourcery.com>
9342
9343 * target.c (raw_memory_xfer_partial): Change argument type
9344 from void * to gdb_byte *.
9345 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9346
9347 2014-01-22 Doug Evans <dje@google.com>
9348
9349 New gdbserver option --debug-format=timestamp.
9350 * NEWS: Mention it.
9351
9352 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9353
9354 * syscalls/s390x-linux.xml: New file.
9355 * syscalls/s390-linux.xml: New file.
9356 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9357 (XML_SYSCALL_FILENAME_S390X): Likewise.
9358 (op_svc): New enum value for SVC opcode.
9359 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9360 (s390_linux_get_syscall_number): New function.
9361 (s390_gdbarch_init): Register '*get_syscall_number' and the
9362 syscall xml file name.
9363 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9364 "s390-linux.xml" and "s390x-linux.xml".
9365 * NEWS: Announce new feature.
9366
9367 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9368
9369 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9370
9371 2014-01-22 Pedro Alves <palves@redhat.com>
9372
9373 * xtensa-config.c: Include defs.h.
9374
9375 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9376
9377 * common/common-utils.h: Add "ARI:" comment beside __func__
9378 reference.
9379
9380 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9381
9382 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9383 documentation a bit.
9384
9385 2014-01-21 Roland McGrath <mcgrathr@google.com>
9386
9387 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9388 * configure: Regenerate.
9389 * aclocal.m4: Regenerate.
9390 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9391 New substituted variables.
9392 (install-strip): New target.
9393 (INSTALL_SCRIPT): New substituted variable.
9394 (FLAGS_TO_PASS): Add it.
9395 (install-only): Use $(INSTALL_SCRIPT) rather than
9396 $(INSTALL_PROGRAM) for gcore.
9397
9398 2014-01-20 Tom Tromey <tromey@redhat.com>
9399
9400 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9401 together.
9402
9403 2014-01-20 Tom Tromey <tromey@redhat.com>
9404
9405 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9406 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9407 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9408 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9409 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9410 (struct cmd_list_element) <flags>: Remove.
9411 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9412 doc_allocated>: New fields.
9413 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9414 bitfields.
9415 * maint.c (maintenance_do_deprecate): Update.
9416 * top.c (execute_command): Update.
9417
9418 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9419
9420 * xtensa-linux-nat.c: Include asm/ptrace.h.
9421
9422 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9423
9424 * Makefile.in (SFILES): Add d-support.c.
9425 (COMMON_OBS): Add d-support.o.
9426 * d-lang.h (d_parse_symbol): Add comment, now defined in
9427 d-support.c.
9428 * d-lang.c (parse_call_convention)
9429 (parse_attributes, parse_function_types)
9430 (parse_function_args, parse_type, parse_identifier)
9431 (call_convention_p, d_parse_symbol): Move functions to ...
9432 * d-support.c: ... New file.
9433
9434 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9435
9436 * d-lang.h (d_parse_symbol): Add declaration.
9437 * d-lang.c (extract_identifiers)
9438 (extract_type_info): Remove functions.
9439 (parse_call_convention, parse_attributes)
9440 (parse_function_types, parse_function_args)
9441 (parse_type, parse_identifier, call_convention_p)
9442 (d_parse_symbol): New functions.
9443 (d_demangle): Use d_parse_symbol to demangle D symbols.
9444
9445 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9446
9447 * d-lang.h (struct builtin_d_type): New data type.
9448 (builtin_d_type): Add declaration.
9449 * d-lang.c (d_language_arch_info, build_d_types)
9450 (builtin_d_type): New functions.
9451 (enum d_primitive_types): New data type.
9452 (d_language_defn): Change c_language_arch_info to
9453 d_language_arch_info.
9454 (d_type_data): New static variable.
9455 (_initialize_d_language): Initialize d_type_data.
9456
9457 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9458
9459 * d-lang.h (d_main_name): Add declaration.
9460 * d-lang.c (d_main_name): New function.
9461 * symtab.c (find_main_name): Add call to d_main_name.
9462
9463 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9464
9465 * d-lang.c (d_language_defn): Change macro_expansion_c to
9466 macro_expansion_no.
9467
9468 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9469
9470 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9471
9472 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9473
9474 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9475 gdb_exception" declaration.
9476 * remote.c (getpkt_or_notif_sane): Likewise.
9477
9478 2014-01-17 Doug Evans <dje@google.com>
9479
9480 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9481 function, contents of dirnames_to_char_ptr_vec_append moved here.
9482 (delim_string_to_char_ptr_vec): New function.
9483 (dirnames_to_char_ptr_vec_append): Rewrite.
9484 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9485
9486 2014-01-17 Doug Evans <dje@google.com>
9487
9488 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9489 and moved here ...
9490 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9491 #include "common-utils.h".
9492 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9493 * common/vec.h (VEC_ASSERT_PASS): Update.
9494 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9495 (MACH_CHECK_ERROR): Update.
9496
9497 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9498
9499 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9500 comments.
9501 * gdbarch.h: Regenerate.
9502
9503 2014-01-16 Tom Tromey <tromey@redhat.com>
9504
9505 * value.c (struct value) <regnum>: Move earlier.
9506
9507 2014-01-16 Tom Tromey <tromey@redhat.com>
9508
9509 * remote.c (extended_remote_create_inferior): Rename from
9510 extended_remote_create_inferior_1. Add "ops" argument. Remove
9511 old implementation.
9512
9513 2014-01-16 Pedro Alves <palves@redhat.com>
9514
9515 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9516 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9517 the backchain.
9518
9519 2014-01-16 Doug Evans <dje@google.com>
9520
9521 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9522
9523 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9524
9525 * btrace.h (btrace_thread_flag): New.
9526 (struct btrace_thread_info) <flags>: New.
9527 * record-btrace.c (record_btrace_resume_thread)
9528 (record_btrace_find_thread_to_move, btrace_step_no_history)
9529 (btrace_step_stopped, record_btrace_start_replaying)
9530 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9531 (record_btrace_find_resume_thread): New.
9532 (record_btrace_resume, record_btrace_wait): Extend.
9533 (record_btrace_can_execute_reverse): New.
9534 (record_btrace_open): Fail in non-stop mode.
9535 (record_btrace_set_replay): Split into this, ...
9536 (record_btrace_stop_replaying): ... this, ...
9537 (record_btrace_clear_histories): ... and this.
9538 (init_record_btrace_ops): Init to_can_execute_reverse.
9539 * NEWS: Announce it.
9540
9541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9542
9543 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9544 (forward_target_decr_pc_after_break)
9545 (target_decr_pc_after_break): New.
9546 * target.c (forward_target_decr_pc_after_break)
9547 (target_decr_pc_after_break): New.
9548 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9549 instead of gdbarch_decr_pc_after_break.
9550 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9551 instead of gdbarch_decr_pc_after_break.
9552 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9553 instead of gdbarch_decr_pc_after_break.
9554 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9555 instead of gdbarch_decr_pc_after_break.
9556 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9557 instead of gdbarch_decr_pc_after_break.
9558 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9559 instead of gdbarch_decr_pc_after_break.
9560
9561 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9562
9563 * btrace.c: Include regcache.h.
9564 (btrace_add_pc): New.
9565 (btrace_enable): Call btrace_add_pc.
9566 (btrace_is_empty): New.
9567 * btrace.h (btrace_is_empty): New.
9568 * record-btrace.c (require_btrace, record_btrace_info): Call
9569 btrace_is_empty.
9570
9571 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9572
9573 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9574 Support delta reads.
9575 (linux_disable_btrace): Change return type.
9576 * common/linux-btrace.h (linux_read_btrace): Change parameters
9577 and return type to allow error reporting. Update users.
9578 (linux_disable_btrace): Change return type. Update users.
9579 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9580 New.
9581 (btrace_error): New.
9582 (btrace_block) <begin>: Comment on BEGIN == 0.
9583 * btrace.c (btrace_compute_ftrace): Start from the end of
9584 the current trace.
9585 (btrace_stitch_trace, btrace_clear_history): New.
9586 (btrace_fetch): Read delta trace, return if replaying.
9587 (btrace_clear): Move clear history code to btrace_clear_history.
9588 (parse_xml_btrace): Throw an error if parsing failed.
9589 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9590 and return type to allow error reporting.
9591 (target_read_btrace): Change parameters and return type to allow
9592 error reporting.
9593 * target.c (target_read_btrace): Update.
9594 * remote.c (remote_read_btrace): Support delta reads. Pass
9595 errors on.
9596 * NEWS: Announce it.
9597
9598 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9599
9600 * record.h (record_btrace_frame_unwind)
9601 (record_btrace_tailcall_frame_unwind): New declarations.
9602 * dwarf2-frame: Include record.h
9603 (dwarf2_frame_cfa): Throw an error for btrace frames.
9604 * record-btrace.c: Include hashtab.h.
9605 (btrace_get_bfun_name): New.
9606 (btrace_call_history): Call btrace_get_bfun_name.
9607 (struct btrace_frame_cache): New.
9608 (bfcache): New.
9609 (bfcache_hash, bfcache_eq, bfcache_new): New.
9610 (btrace_get_frame_function): New.
9611 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9612 (record_btrace_frame_this_id): Compute own id.
9613 (record_btrace_frame_prev_register): Provide PC, throw_error
9614 for all other registers.
9615 (record_btrace_frame_sniffer): Detect btrace frames.
9616 (record_btrace_tailcall_frame_sniffer): New.
9617 (record_btrace_frame_dealloc_cache): New.
9618 (record_btrace_frame_unwind): Add new functions.
9619 (record_btrace_tailcall_frame_unwind): New.
9620 (_initialize_record_btrace): Allocate cache.
9621 * btrace.c (btrace_clear): Call reinit_frame_cache.
9622 * NEWS: Announce it.
9623
9624 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9625
9626 * record-btrace.c (record_btrace_set_replay)
9627 (record_btrace_goto_begin, record_btrace_goto_end)
9628 (record_btrace_goto): New.
9629 (init_record_btrace_ops): Initialize them.
9630 * NEWS: Announce it.
9631
9632 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9633
9634 * record-btrace.c (record_btrace_find_new_threads)
9635 (record_btrace_thread_alive): New.
9636 (init_record_btrace_ops): Initialize to_find_new_threads and
9637 to_thread_alive.
9638
9639 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9640
9641 * record-btrace.c (record_btrace_resume): New.
9642 (record_btrace_wait): New.
9643 (init_record_btrace_ops): Initialize to_wait and to_resume.
9644
9645 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9646
9647 * record-btrace.c (record_btrace_xfer_partial)
9648 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9649 (record_btrace_allow_memory_access): New.
9650 (init_record_btrace_ops): Initialize new methods.
9651 * target.c (raw_memory_xfer_partial): Bail out if target reports
9652 that this memory is not available.
9653
9654 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9655
9656 * target.h (target_ops) <to_insert_breakpoint>
9657 <to_remove_breakpoint>: Add target_ops parameter.
9658 (forward_target_insert_breakpoint): New.
9659 (forward_target_remove_breakpoint): New.
9660 (memory_remove_breakpoint, memory_insert_breakpoint):
9661 Add target_ops parameter.
9662 * target.c (target_insert_breakpoint): Split into this and ...
9663 (forward_target_insert_breakpoint): ... this.
9664 (target_remove_breakpoint): Split into this and ...
9665 (forward_target_remove_breakpoint): ... this.
9666 (debug_to_insert_breakpoint): Add target_ops parameter.
9667 Call forward_target_insert_breakpoint.
9668 (debug_to_remove_breakpoint): Add target_ops parameter.
9669 Call forward_target_remove_breakpoint.
9670 (update_current_target): Do not inherit or default to_insert_breakpoint
9671 and to_remove_breakpoint.
9672 * corelow.c (ignore): Add target_ops parameter.
9673 * exec.c (ignore): Add target_ops parameter.
9674 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9675 Add target_ops parameter.
9676 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9677 Add target_ops parameter.
9678 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9679 Add target_ops parameter.
9680 * record-full.c (record_full_beneath_to_insert_breakpoint)
9681 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9682 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9683 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9684 (record_full_core_remove_breakpoint): Add target_ops parameter.
9685 Update users.
9686 (record_full_beneath_to_insert_breakpoint_ops)
9687 (record_full_beneath_to_remove_breakpoint_ops)
9688 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9689 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9690 tmp_to_remove_breakpoint_ops,
9691 record_full_beneath_to_insert_breakpoint_ops, and
9692 record_full_beneath_to_remove_breakpoint_ops.
9693 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9694 (m32r_remove_breakpoint): Add target_ops parameter.
9695 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9696 Add target_ops parameter.
9697 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9698 Add target_ops parameter.
9699
9700 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9701 Markus Metzger <markus.t.metzger@intel.com>
9702
9703 * record-btrace.c: Include frame-unwind.h.
9704 (record_btrace_frame_unwind_stop_reason)
9705 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9706 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9707 New.
9708 (init_record_btrace_ops): Install it.
9709
9710 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9711
9712 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9713 get_prev_frame_1.
9714
9715 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9716
9717 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9718 earlier.
9719
9720 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9721
9722 * frame-unwind.c: Include target.h.
9723 (frame_unwind_try_unwinder): New function with code from ...
9724 (frame_unwind_find_by_frame): ... here. New variable
9725 unwinder_from_target, call also target_get_unwinder)
9726 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9727 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9728 * target.h (struct target_ops): New fields to_get_unwinder and
9729 to_get_tailcall_unwinder.
9730 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9731
9732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9733
9734 * record-btrace.c (record_btrace_fetch_registers)
9735 (record_btrace_store_registers)
9736 (record_btrace_to_prepare_to_store): New.
9737 (init_record_btrace_ops): Add the above.
9738
9739 2014-01-16 Tom Tromey <tromey@redhat.com>
9740
9741 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9742 * target.h (struct target_ops) <to_prepare_to_store>: Add
9743 argument.
9744 (target_prepare_to_store): Add argument.
9745 * target.c (debug_to_prepare_to_store): Add argument.
9746 (update_current_target): Update.
9747 * remote.c (remote_prepare_to_store): Add 'self' argument.
9748 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9749 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9750 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9751 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9752 argument.
9753 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9754 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9755 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9756 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9757 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9758
9759 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9760
9761 * btrace.h (replay) <replay>: New.
9762 (btrace_is_replaying): New.
9763 * btrace.c (btrace_clear): Free replay iterator.
9764 (btrace_is_replaying): New.
9765 * record-btrace.c (record_btrace_is_replaying): New.
9766 (record_btrace_info): Print insn number if replaying.
9767 (record_btrace_insn_history): Start at replay position.
9768 (record_btrace_call_history): Start at replay position.
9769 (init_record_btrace_ops): Init to_record_is_replaying.
9770
9771 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9772
9773 * record-btrace.c (record_btrace_insn_history_range): Include
9774 end.
9775 (record_btrace_insn_history_from): Adjust range.
9776 (record_btrace_call_history_range): Include
9777 end.
9778 (record_btrace_call_history_from): Adjust range.
9779 * NEWS: Announce changes.
9780
9781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9782
9783 * record.h (enum record_print_flag)
9784 <record_print_indent_calls>: New.
9785 * record.c (get_call_history_modifiers): Recognize /c modifier.
9786 (_initialize_record): Document /c modifier.
9787 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9788 Reorder fields. Optionally indent the function name. Update
9789 all users.
9790 * NEWS: Announce changes.
9791
9792 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9793
9794 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9795
9796 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9797
9798 * btrace.c (ftrace_new_function): Start counting at one.
9799 * record-btrace.c (record_btrace_info): Adjust number of calls
9800 and insns.
9801 * NEWS: Announce it.
9802
9803 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9804
9805 * record-btrace.c (btrace_call_history_insn_range): Print
9806 insn range as [begin, end].
9807
9808 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9809
9810 * btrace.h (struct btrace_func_link): New.
9811 (enum btrace_function_flag): New.
9812 (struct btrace_inst): Rename to ...
9813 (struct btrace_insn): ...this. Update all users.
9814 (struct btrace_func) <ibegin, iend>: Remove.
9815 (struct btrace_func_link): New.
9816 (struct btrace_func): Rename to ...
9817 (struct btrace_function): ...this. Update all users.
9818 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9819 (number, level, flags>: New.
9820 (struct btrace_insn_iterator): Rename to ...
9821 (struct btrace_insn_history): ...this.
9822 Update all users.
9823 (struct btrace_insn_iterator, btrace_call_iterator): New.
9824 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9825 (struct btrace_target_info) <begin, end, level>
9826 <insn_history, call_history>: New.
9827 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9828 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9829 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9830 (btrace_call_number, btrace_call_begin, btrace_call_end)
9831 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9832 (btrace_find_function_by_number, btrace_set_insn_history)
9833 (btrace_set_call_history): New.
9834 * btrace.c (btrace_init_insn_iterator)
9835 (btrace_init_func_iterator, compute_itrace): Remove.
9836 (ftrace_print_function_name, ftrace_print_filename)
9837 (ftrace_skip_file): Change
9838 parameter to const.
9839 (ftrace_init_func): Remove.
9840 (ftrace_debug): Use new btrace_function fields.
9841 (ftrace_function_switched): Also consider gaining and
9842 losing symbol information).
9843 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9844 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9845 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9846 New.
9847 (ftrace_new_function): Move. Remove debug print.
9848 (ftrace_update_lines, ftrace_update_insns): New.
9849 (ftrace_update_function): Check for call, ret, and jump.
9850 (compute_ftrace): Renamed to ...
9851 (btrace_compute_ftrace): ...this. Rewritten to compute call
9852 stack.
9853 (btrace_fetch, btrace_clear): Updated.
9854 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9855 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9856 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9857 (btrace_call_number, btrace_call_begin, btrace_call_end)
9858 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9859 (btrace_find_function_by_number, btrace_set_insn_history)
9860 (btrace_set_call_history): New.
9861 * record-btrace.c (require_btrace): Use new btrace thread
9862 info fields.
9863 (record_btrace_info, btrace_insn_history)
9864 (record_btrace_insn_history, record_btrace_insn_history_range):
9865 Use new btrace thread info fields and new iterator.
9866 (btrace_func_history_src_line): Rename to ...
9867 (btrace_call_history_src_line): ...this. Use new btrace
9868 thread info fields.
9869 (btrace_func_history): Rename to ...
9870 (btrace_call_history): ...this. Use new btrace thread info
9871 fields and new iterator.
9872 (record_btrace_call_history, record_btrace_call_history_range):
9873 Use new btrace thread info fields and new iterator.
9874
9875 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9876
9877 * frame.h (frame_id_build_unavailable_stack_special): New.
9878 * frame.c (frame_id_build_unavailable_stack_special): New.
9879
9880 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9881
9882 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9883 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9884 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9885 to gdbarch.
9886 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9887 (i386_insn_is_jump, i386_jmp_p): New.
9888 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9889 insn_is_jump to gdbarch.
9890 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9891 * gdbarch.h: Regenerated.
9892 * gdbarch.c: Regenerated.
9893 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9894 (default_insn_is_jump): New.
9895 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9896 (default_insn_is_jump): New.
9897
9898 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9899
9900 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9901 Change to ...
9902 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9903 (btrace_read_type) <btrace_read_new>: Change to ...
9904 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9905
9906 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9907
9908 * common/linux-btrace.c (linux_read_btrace): Free trace from
9909 previous iteration.
9910
9911 2014-01-15 Doug Evans <dje@google.com>
9912
9913 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9914 uint32_t.
9915
9916 2014-01-15 Tom Tromey <tromey@redhat.com>
9917
9918 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9919 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9920 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9921 (set_objfile_main_name): New function.
9922 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9923 language_of_main>: New fields.
9924 (set_objfile_main_name): Declare.
9925 * symtab.c (find_main_name): Loop over objfiles to find the main
9926 name and language.
9927 (set_main_name): Now static.
9928 (get_main_info): Add comment.
9929 * symtab.h (set_main_name): Don't declare.
9930
9931 2014-01-15 Tom Tromey <tromey@redhat.com>
9932
9933 * symtab.c (main_progspace_key): New global.
9934 (struct main_info): New.
9935 (name_of_main, language_of_main): Remove.
9936 (get_main_info, main_info_cleanup): New function.
9937 (set_main_name, main_name, main_language): Use get_main_info.
9938 (_initialize_symtab): Initialize main_progspace_key.
9939
9940 2014-01-15 Tom Tromey <tromey@redhat.com>
9941
9942 * dbxread.c (process_one_symbol): Update.
9943 * dwarf2read.c (read_partial_die): Update.
9944 * symfile.c (set_initial_language): Call main_language.
9945 * symtab.c (language_of_main): Now static.
9946 (set_main_name): Add 'lang' parameter.
9947 (find_main_name): Update.
9948 (main_language): New function.
9949 (symtab_observer_executable_changed): Update.
9950 * symtab.h (set_main_name): Update.
9951 (language_of_main): Remove.
9952 (main_language): Declare.
9953
9954 2014-01-15 Tom Tromey <tromey@redhat.com>
9955
9956 * symfile.c (init_entry_point_info): Use new "initialized" field.
9957 Update.
9958 * objfiles.h (struct entry_point) <initialized>: New field.
9959 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9960 (struct objfile) <ei>: ...here. Remove.
9961 * objfiles.c (entry_point_address_query): Update.
9962
9963 2014-01-15 Tom Tromey <tromey@redhat.com>
9964
9965 * objfiles.c (entry_point_address_query): Relocate entry point
9966 address.
9967 (objfile_relocate1): Do not relocate entry point address.
9968 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9969 <the_bfd_section_index>: New field.
9970 * symfile.c (init_entry_point_info): Find the entry point's
9971 section.
9972
9973 2014-01-15 Tom Tromey <tromey@redhat.com>
9974
9975 * solib-frv.c (enable_break): Use entry_point_address_query.
9976
9977 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9978
9979 * NEWS: Add note on improved process record-replay on
9980 arm*-linux* targets.
9981
9982 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9983
9984 * arm-tdep.c (enum arm_record_result): New enum.
9985 (arm_record_unsupported_insn): New function.
9986 (arm_record_coproc_data_proc): Removed.
9987 (thumb2_record_ld_st_multiple): New function.
9988 (thumb2_record_ld_st_dual_ex_tbb): New function.
9989 (thumb2_record_data_proc_sreg_mimm): New function.
9990 (thumb2_record_ps_dest_generic): New function.
9991 (thumb2_record_branch_misc_cntrl): New function.
9992 (thumb2_record_str_single_data): New function.
9993 (thumb2_record_ld_mem_hints): New function.
9994 (thumb2_record_ld_word): New function.
9995 (thumb2_record_lmul_lmla_div): New function.
9996 (thumb2_record_decode_insn_handler): New function.
9997 (decode_insn): Add thumb32 instruction handlers.
9998
9999 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10000
10001 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10002 (struct arm_linux_record_tdep): Declare.
10003 (arm_canonicalize_syscall): New function.
10004 (arm_all_but_pc_registers_record): New function.
10005 (arm_linux_syscall_record): New function.
10006 (arm_linux_init_abi): Add syscall recording constructs.
10007 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10008 decoding. (arm_record_coproc_data_proc): Update arm syscall
10009 decoding.
10010 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10011 <arm_syscall_record>: New field.
10012 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10013 gdb_target_obs.
10014
10015 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10016
10017 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10018 register for push instruction recording.
10019
10020 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10021
10022 * arm-tdep.c (thumb_record_misc): Update to correct logical
10023 error while recording ldm, ldmia and pop instructions.
10024
10025 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10026
10027 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10028
10029 2014-01-15 Pedro Alves <palves@redhat.com>
10030
10031 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10032 (go32_resume, go32_fetch_registers, store_register)
10033 (go32_store_registers, go32_prepare_to_store)
10034 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10035 (go32_create_inferior, go32_can_run, go32_terminal_init)
10036 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10037 declarations.
10038
10039 2014-01-15 Tom Tromey <tromey@redhat.com>
10040
10041 * target.h (async_callback_ftype): New typedef.
10042 (struct target_ops) <to_async>: Use it.
10043
10044 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10045
10046 * python/py-value.c (get_field_type): Remove unnecessary curly
10047 braces for single-statement if block.
10048
10049 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10050
10051 * python/py-type.c (convert_field): Add missing empty line
10052 after declarations.
10053
10054 2014-01-14 Doug Evans <dje@google.com>
10055
10056 * symfile.h (expand_symtabs_matching): Renamed from
10057 expand_partial_symbol_names. Update prototype.
10058 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10059 * symfile.c (expand_symtabs_matching): Renamed from
10060 expand_partial_symbol_names. New args file_matcher, kind.
10061 Rename arg fun to symbol_matcher.
10062 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10063 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10064 ada_expand_partial_symbol_name.
10065 (ada_make_symbol_completion_list): Update to call
10066 expand_symtabs_matching.
10067 (ada_add_global_exceptions): Call expand_symtabs_matching.
10068 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10069 call map_symbol_filenames.
10070 * symtab.c (sources_info): Update to call map_symbol_filenames.
10071 (search_symbols): Call expand_symtabs_matching.
10072 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10073 (default_make_symbol_completion_list_break_on): Update to call
10074 expand_symtabs_matching.
10075 (make_source_files_completion_list): Update to call
10076 map_symbol_filenames.
10077
10078 2014-01-14 Doug Evans <dje@google.com>
10079
10080 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10081 (expand_symtabs_symbol_matcher_ftype): New typedef.
10082 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10083 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10084 * symfile.c (expand_partial_symbol_names): Update to use
10085 expand_symtabs_symbol_matcher_ftype.
10086 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10087 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10088 Arg name_matcher renamed to symbol_matcher.
10089 * psymtab.c (recursively_search_psymtabs): Update to use
10090 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10091 sym_matcher.
10092 (expand_symtabs_matching_via_partial): Update to use
10093 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10094 Arg name_matcher renamed to symbol_matcher.
10095
10096 2014-01-14 Doug Evans <dje@google.com>
10097
10098 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10099 (map_partial_symbol_filenames): Ditto.
10100 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10101 (map_partial_symbol_filenames): Ditto.
10102 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10103 (map_partial_symbol_filenames): Ditto.
10104 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10105 (map_partial_symbol_filenames): Ditto.
10106 * symtab.c: Delete #include "psymtab.h".
10107
10108 2014-01-14 Pedro Alves <palves@redhat.com>
10109 Tom Tromey <tromey@redhat.com>
10110
10111 * infrun.c (use_displaced_stepping): Use find_record_target
10112 instead of RECORD_IS_USED.
10113 (adjust_pc_after_break): Use record_full_is_used instead of
10114 RECORD_IS_USED.
10115 * record-btrace.c (record_btrace_open): Call record_preopen
10116 instead of checking RECORD_IS_USED.
10117 * record-full.c (record_full_shortname)
10118 (record_full_core_shortname): New globals.
10119 (record_full_is_used): New function.
10120 (find_full_open): Call record_preopen instead of checking
10121 RECORD_IS_USED.
10122 (init_record_full_ops): Set the target's shortname to
10123 record_full_shortname.
10124 (init_record_full_core_ops): Set the target's shortname to
10125 record_full_core_shortname.
10126 * record-full.h (record_full_is_used): Declare.
10127 * record.c (find_record_target): Make extern.
10128 (record_preopen): New function.
10129 * record.h (RECORD_IS_USED): Delete macro.
10130 (find_record_target, record_preopen): Declare functions.
10131
10132 2014-01-14 Yao Qi <yao@codesourcery.com>
10133
10134 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10135 'len''s type to ULONGEST.
10136 (core_xfer_shared_libraries_aix): Likewise.
10137 * gdbarch.c, gdbarch.h: Regenerated.
10138 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10139 Change type of 'len' to ULONGEST.
10140 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10141 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10142
10143 2014-01-14 Yao Qi <yao@codesourcery.com>
10144
10145 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10146 type of 'len' to ULONGEST.
10147 (linux_xfer_osdata_processgroups): Likewise.
10148 (linux_xfer_osdata_threads): Likewise.
10149 (linux_xfer_osdata_fds): Likewise.
10150 (linux_xfer_osdata_isockets): Likewise.
10151 (linux_xfer_osdata_shm): Likewise.
10152 (linux_xfer_osdata_sem): Likewise.
10153 (linux_xfer_osdata_msg): Likewise.
10154 (linux_common_xfer_osdata): Likewise.
10155 (struct osdata_type) <getter>: Likewise.
10156 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10157 the declaration.
10158
10159 2014-01-14 Yao Qi <yao@codesourcery.com>
10160
10161 * target.h (target_xfer_partial_ftype): Update.
10162 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10163 ULONGEST.
10164 * aix-thread.c (aix_thread_xfer_partial): Change type of
10165 argument 'len' to ULONGEST.
10166 * auxv.c (procfs_xfer_auxv): Likewise.
10167 (ld_so_xfer_auxv): Likewise.
10168 (memory_xfer_auxv): Likewise.
10169 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10170 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10171 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10172 * corelow.c (core_xfer_partial): Likewise.
10173 * ctf.c (ctf_xfer_partial): Likewise.
10174 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10175 '%u'.
10176 (darwin_read_dyld_info): Likewise.
10177 (darwin_xfer_partial): Likewise.
10178 * exec.c (section_table_xfer_memory_partial): Likewise.
10179 (exec_xfer_partial): Likewise.
10180 * exec.h (section_table_xfer_memory_partial): Update
10181 declaration.
10182 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10183 instead of plongest.
10184 (gnu_xfer_partial): Likewise.
10185 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10186 (ia64_hpux_xfer_solib_got): Likewise.
10187 (ia64_hpux_xfer_partial): Likewise.
10188 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10189 * inf-ptrace.c (inf_ptrace_xfer_partial):
10190 * inf-ttrace.c (inf_ttrace_xfer_partial):
10191 * linux-nat.c (linux_xfer_siginfo): Likewise.
10192 (linux_nat_xfer_partial): Likewise.
10193 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10194 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10195 * monitor.c (monitor_xfer_memory): Likewise.
10196 (monitor_xfer_partial): Likewise.
10197 * procfs.c (procfs_xfer_partial): Likewise.
10198 * record-full.c (record_full_xfer_partial): Likewise.
10199 (record_full_core_xfer_partial): Likewise.
10200 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10201 instead of plongest.
10202 (gdbsim_xfer_partial): Likewise.
10203 * remote.c (remote_xfer_partial): Likewise.
10204 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10205 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10206 declaration.
10207 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10208 (rs6000_xfer_shared_libraries): Likewise.
10209 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10210 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10211 (sparc_xfer_partial): Likewise.
10212 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10213 (spu_xfer_partial): Likewise.
10214 * spu-multiarch.c (spu_xfer_partial): Likewise.
10215 * target.c (target_read_live_memory): Likewise.
10216 (memory_xfer_live_readonly_partial): Likewise.
10217 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10218 (target_xfer_partial, default_xfer_partial): Likewise.
10219 (current_xfer_partial): Likewise.
10220 * tracepoint.c (tfile_xfer_partial): Likewise.
10221 * windows-nat.c (windows_xfer_memory): Likewise. Call
10222 pulongest instead of plongest.
10223 (windows_xfer_partial): Likewise.
10224 (windows_xfer_shared_libraries): Likewise.
10225
10226 2014-01-14 Yao Qi <yao@codesourcery.com>
10227
10228 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10229 target_xfer_partial_ftype.
10230
10231 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10232
10233 PR python/15464
10234 PR python/16113
10235 * valops.c (value_struct_elt_bitpos): New function
10236 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10237 object to 'None' if the field name is an empty string ("").
10238 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10239 attribute to look for a field when 'name' is 'None'.
10240 (get_field_type): New function
10241
10242 2014-01-13 Doug Evans <dje@google.com>
10243
10244 PR symtab/16426
10245 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10246 (try_open_dwop_file): Ditto.
10247 * gdb_bfd.c: #include "vec.h".
10248 (bfdp): New typedef.
10249 (struct gdb_bfd_data): New member included_bfds.
10250 (gdb_bfd_unref): Unref all included bfds.
10251 (gdb_bfd_record_inclusion): New function.
10252 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10253
10254 2014-01-13 Tom Tromey <tromey@redhat.com>
10255
10256 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10257
10258 2014-01-13 Tom Tromey <tromey@redhat.com>
10259
10260 * defs.h (use_windows): Remove.
10261 * gdb.c (main): Update.
10262 * main.c (captured_main, gdb_main): Update.
10263 * main.h (struct captured_main_args) <use_windows>: Remove.
10264 * top.c (use_windows): Remove.
10265
10266 2014-01-13 Tom Tromey <tromey@redhat.com>
10267
10268 * defs.h (deprecated_flush_hook): Remove.
10269
10270 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10271
10272 PR threads/16216
10273 * linux-thread-db.c (try_thread_db_load): Add parameter
10274 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10275 (try_thread_db_load_from_pdir_1): Move it there from here.
10276 (try_thread_db_load_from_sdir): Update caller.
10277 (try_thread_db_load_from_dir): Move it there from here.
10278
10279 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10280
10281 * regformats/regdat.sh: Always rewrite the register file.
10282
10283 2014-01-13 Pedro Alves <palves@redhat.com>
10284
10285 * Makefile.in (CHECK_HEADERS): New variable.
10286 (check-headers:): New rule.
10287
10288 2014-01-13 Tom Tromey <tromey@redhat.com>
10289
10290 * cli/cli-setshow.c (do_set_command): Update.
10291 * defs.h (deprecated_set_hook): Remove.
10292 * top.c (deprecated_set_hook): Remove.
10293
10294 2014-01-13 Pedro Alves <palves@redhat.com>
10295
10296 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10297 the tracepoint if the PC is a pseudo-register.
10298
10299 2014-01-13 Tom Tromey <tromey@redhat.com>
10300
10301 * defs.h (XCALLOC): Remove.
10302 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10303 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10304 * dwarf2loc.c (allocate_piece_closure): Likewise.
10305 * elfread.c (elf_symfile_segments): Likewise.
10306 (elf_symfile_segments): Likewise.
10307 * gdbtypes.c (copy_type_recursive): Likewise.
10308 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10309 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10310 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10311 XCALLOC.
10312 * mt-tdep.c (mt_gdbarch_init): Likewise.
10313 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10314 XCALLOC.
10315 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10316 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10317 * registry.c (registry_alloc_data): Likewise.
10318 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10319 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10320 * serial.c (serial_fdopen_ops): Likewise.
10321 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10322 XCALLOC.
10323 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10324 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10325 not XCALLOC.
10326
10327 2014-01-13 Tom Tromey <tromey@redhat.com>
10328
10329 * defs.h (XMALLOC): Remove.
10330 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10331 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10332 * cli-out.c (struct ui_out *): Likewise.
10333 * cli/cli-dump.c (add_dump_command): Likewise.
10334 (add_dump_command): Likewise.
10335 * complaints.c (get_complaints): Likewise.
10336 (find_complaint): Likewise.
10337 * dwarf2-frame.c (execute_cfa_program): Likewise.
10338 * dwarf2read.c (abbrev_table_read_table): Likewise.
10339 * gdbarch.sh: Likewise.
10340 * gdbarch.c: Rebuild.
10341 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10342 * interps.c (interp_new): Likewise.
10343 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10344 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10345 * mi/mi-console.c (mi_console_file_new): Likewise.
10346 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10347 * mi/mi-out.c (mi_out_new): Likewise.
10348 * mi/mi-parse.c (mi_parse): Likewise.
10349 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10350 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10351 * observer.c (xalloc_observer_list_node): Likewise.
10352 * regcache.c (regcache_xmalloc_1): Likewise.
10353 * reggroups.c (reggroup_new): Likewise.
10354 (_initialize_reggroup): Likewise.
10355 * registry.c (register_data_with_cleanup): Likewise.
10356 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10357 * ser-base.c (serial_ttystate): Likewise.
10358 * ser-mingw.c (make_pipe_state): Likewise.
10359 * ser-pipe.c (pipe_open): Likewise.
10360 * serial.c (serial_open): Likewise.
10361 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10362 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10363 (tui_alloc_win_info): Likewise.
10364 (tui_add_content_elements): Likewise.
10365 * tui/tui-file.c (tui_file_new): Likewise.
10366 * tui/tui-out.c (tui_out_new): Likewise.
10367 * ui-file.c (mem_file_new): Likewise.
10368 * ui-out.c (push_level): Likewise.
10369 (make_cleanup_ui_out_end): Likewise.
10370 (append_header_to_list): Likewise.
10371 (ui_out_new): Likewise.
10372 * user-regs.c (user_reg_add_builtin): Likewise.
10373
10374 2014-01-13 Tom Tromey <tromey@redhat.com>
10375
10376 * defs.h (XZALLOC): Remove.
10377 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10378 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10379 (get_ada_tasks_inferior_data): Likewise.
10380 * auto-load.c (get_auto_load_pspace_data): Likewise.
10381 * auxv.c (get_auxv_inferior_data): Likewise.
10382 * bfd-target.c (target_bfd_reopen): Likewise.
10383 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10384 (deprecated_insert_raw_breakpoint): Likewise.
10385 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10386 * corelow.c (core_open): Likewise.
10387 * darwin-nat.c (darwin_check_new_threads): Likewise.
10388 (darwin_attach_pid): Likewise.
10389 * dummy-frame.c (dummy_frame_push): Likewise.
10390 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10391 * dwarf2loc.c (allocate_piece_closure): Likewise.
10392 * elfread.c (elf_symfile_segments): Likewise.
10393 * eval.c (ptrmath_type_p): Likewise.
10394 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10395 * gdbtypes.c (alloc_type_arch): Likewise.
10396 (alloc_type_instance): Likewise.
10397 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10398 * inf-child.c (inf_child_can_use_agent): Likewise.
10399 * inflow.c (get_inflow_inferior_data): Likewise.
10400 * infrun.c (save_infcall_suspend_state): Likewise.
10401 * jit.c (jit_reader_load): Likewise.
10402 (get_jit_objfile_data): Likewise.
10403 (get_jit_program_space_data): Likewise.
10404 (jit_object_open_impl): Likewise.
10405 (jit_symtab_open_impl): Likewise.
10406 (jit_block_open_impl): Likewise.
10407 (jit_frame_sniffer): Likewise.
10408 * linux-fork.c (add_fork): Likewise.
10409 * maint.c (make_command_stats_cleanup): Likewise.
10410 * objfiles.c (get_objfile_pspace_data): Likewise.
10411 * opencl-lang.c (struct lval_closure): Likewise.
10412 * osdata.c (osdata_start_osdata): Likewise.
10413 * progspace.c (new_address_space): Likewise.
10414 (add_program_space): Likewise.
10415 * remote-sim.c (get_sim_inferior_data): Likewise.
10416 * sh-tdep.c (sh_gdbarch_init): Likewise.
10417 * skip.c (Ignore): Likewise.
10418 (skip_delete_command): Likewise.
10419 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10420 (library_list_start_library): Likewise.
10421 (solib_aix_current_sos): Likewise.
10422 * solib-darwin.c (get_darwin_info): Likewise.
10423 (darwin_current_sos): Likewise.
10424 * solib-dsbt.c (get_dsbt_info): Likewise.
10425 * solib-ia64-hpux.c (new_so_list): Likewise.
10426 (ia64_hpux_get_solib_linkage_addr): Likewise.
10427 * solib-spu.c (append_ocl_sos): Likewise.
10428 (spu_current_sos): Likewise.
10429 * solib-svr4.c (get_svr4_info): Likewise.
10430 (svr4_keep_data_in_core): Likewise.
10431 (library_list_start_library): Likewise.
10432 (svr4_default_sos): Likewise.
10433 (svr4_read_so_list): Likewise.
10434 * solib-target.c (library_list_start_library): Likewise.
10435 (solib_target_current_sos): Likewise.
10436 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10437 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10438 * symfile.c (default_symfile_segments): Likewise.
10439 * target-descriptions.c (tdesc_data_init): Likewise.
10440 (tdesc_create_reg): Likewise.
10441 (struct tdesc_type *): Likewise.
10442 (tdesc_create_vector): Likewise.
10443 (tdesc_set_struct_size): Likewise.
10444 (struct tdesc_type *): Likewise.
10445 (tdesc_free_feature): Likewise.
10446 (tdesc_create_feature): Likewise.
10447 * windows-nat.c (windows_add_thread): Likewise.
10448 (windows_make_so): Likewise.
10449 * xml-support.c (gdb_xml_body_text): Likewise.
10450 (gdb_xml_create_parser_and_cleanup): Likewise.
10451 (xml_process_xincludes): Likewise.
10452 * xml-syscall.c (allocate_syscalls_info): Likewise.
10453 (syscall_create_syscall_desc): Likewise.
10454
10455 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10456
10457 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10458 function, with code from i386_stap_parse_special_token.
10459 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10460 (i386_stap_parse_special_token): Move code to the two functions
10461 above; simplify it.
10462
10463 2014-01-09 Pedro Alves <palves@redhat.com>
10464 Hui Zhu <hui@codesourcery.com>
10465
10466 PR gdb/16101
10467 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10468 bp_err_string. Don't mark the location shlib_disabled if the
10469 error thrown wasn't a generic or memory error. Catch errors
10470 thrown while inserting breakpoints in overlayed code. Output
10471 error message of software breakpoints.
10472 * remote.c (remote_insert_breakpoint): If this breakpoint has
10473 target-side commands but this stub doesn't support Z0 packets,
10474 throw NOT_SUPPORTED_ERROR error.
10475 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10476 * target.h (target_insert_breakpoint): Extend comment.
10477 (target_insert_hw_breakpoint): Add comment.
10478
10479 2014-01-08 Pedro Alves <palves@redhat.com>
10480
10481 * remote.c (remote_add_thread): Add threads silently if starting
10482 up.
10483 (remote_notice_new_inferior): If in all-stop, and starting up,
10484 don't call notice_new_inferior.
10485 (get_current_thread): New function, factored out from ...
10486 (add_current_inferior_and_thread): ... this. Adjust.
10487 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10488 found any thread, then select the remote's current thread as GDB's
10489 current thread too.
10490
10491 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10492
10493 * NEWS: Create a new section for the next release branch.
10494 Rename the section of the current branch, now that it has
10495 been cut.
10496
10497 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10498
10499 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10500 * version.in: Bump version to 7.7.50.DATE-cvs.
10501
10502 2014-01-08 Yao Qi <yao@codesourcery.com>
10503
10504 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10505 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10506 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10507
10508 2014-01-08 Yao Qi <yao@codesourcery.com>
10509
10510 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10511 return value of bfd_get_filename to symbol_file_add_from_bfd.
10512
10513 2014-01-08 Pierre Muller <muller@sourceware.org>
10514
10515 Fix PR16201.
10516 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10517 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10518 to prim_record_mininal_symbol_and_info.
10519 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10520 in call to prim_record_minimal_symbol_and_info.
10521 (read_pe_exported_syms): Set index field of section_data.
10522
10523 2014-01-07 Andrew Pinski <apinski@cavium.com>
10524
10525 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10526 * features/aarch64.c: Regenerate.
10527
10528 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10529
10530 * target.c (return_null): Define.
10531 (update_current_target): Use it instead of return_zero for
10532 functions that return a pointer.
10533
10534 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10535
10536 * source.c (add_path): Fix check for duplicated paths in the previously
10537 included paths.
10538
10539 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10540
10541 * ada-lang.c: Remove duplicated include statements.
10542 * alphabsd-nat.c: Ditto.
10543 * amd64-darwin-tdep.c: Ditto.
10544 * amd64fbsd-nat.c: Ditto.
10545 * auto-load.c: Ditto.
10546 * ax-gdb.c: Ditto.
10547 * breakpoint.c: Ditto.
10548 * dbxread.c: Ditto.
10549 * fork-child.c: Ditto.
10550 * gdb_usleep.c: Ditto.
10551 * i386-darwin-tdep.c: Ditto.
10552 * i386fbsd-nat.c: Ditto.
10553 * infcmd.c: Ditto.
10554 * inferior.c: Ditto.
10555 * jv-lang.c: Ditto.
10556 * linux-nat.c: Ditto.
10557 * linux-tdep.c: Ditto.
10558 * m68kbsd-nat.c: Ditto.
10559 * m68klinux-nat.c: Ditto.
10560 * microblaze-tdep.c: Ditto.
10561 * mips-linux-tdep.c: Ditto.
10562 * mn10300-tdep.c: Ditto.
10563 * nto-tdep.c: Ditto.
10564 * opencl-lang.c: Ditto.
10565 * osdata.c: Ditto.
10566 * printcmd.c: Ditto.
10567 * regcache.c: Ditto.
10568 * remote-m32r-sdi.c: Ditto.
10569 * remote.c: Ditto.
10570 * symfile.c: Ditto.
10571 * symtab.c: Ditto.
10572 * tilegx-linux-nat.c: Ditto.
10573 * tilegx-tdep.c: Ditto.
10574 * tracepoint.c: Ditto.
10575 * valops.c: Ditto.
10576 * vaxbsd-nat.c: Ditto.
10577 * windows-nat.c: Ditto.
10578 * xtensa-tdep.c: Ditto.
10579
10580 2014-01-07 Yao Qi <yao@codesourcery.com>
10581
10582 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10583
10584 2014-01-07 Yao Qi <yao@codesourcery.com>
10585 Joel Brobecker <brobecker@adacore.com>
10586
10587 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10588 (pdc_write_regs): Likewise.
10589 (fetch_regs_kernel_thread): Likewise.
10590 (store_regs_kernel_thread): Likewise.
10591
10592 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10593
10594 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10595 tagged type objects to their actual type.
10596
10597 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10598
10599 * ada-valprint.c (print_field_values): Add "language" parameter.
10600 Update calls to print_field_values and print_variant_part.
10601 Pass new parameter "language" in call to val_print instead
10602 of "current_language". Replace call to ada_val_print by call
10603 to val_print.
10604 (print_variant_part): Add "language" parameter.
10605 (ada_val_print_struct_union): Update call to print_field_values.
10606
10607 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10608
10609 * ada-valprint.c (ui_memcpy): Delete.
10610 (ada_print_floating): Update documentation. Add empty line
10611 between between function documentation and implementation.
10612 Delete variable "buffer". Use ui_file_xstrdup in place of
10613 ui_file_put. Minor adjustments following this change.
10614
10615 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10616
10617 * ada-valprint.c (ada_val_print_string): New function,
10618 extracted from ada_val_print_array.
10619 (ada_val_print_array): Replace extracted code by call
10620 to ada_val_print_string followed by a return. Move
10621 "else" branch to the function's top block.
10622
10623 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10624
10625 * ada-valprint.c (ada_val_print_array): Move implementation
10626 down. Rename parameter "offset" and "val" into "offset_aligned"
10627 and "original_value" respectively. Add parameter "offset".
10628
10629 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10630
10631 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10632 re-organizing the code. Change the "???" message printed
10633 when target type is a TYPE_CODE_UNDEF into
10634 "<ref to undefined type>".
10635
10636 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10637
10638 * ada-valprint.c (print_record): Delete, implementation inlined...
10639 (ada_val_print_struct_union): ... here. Remove call to
10640 ada_check_typedef in inlined implementation.
10641
10642 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10643
10644 * ada-valprint.c (ada_val_print_gnat_array): New function,
10645 extracted from ada_val_print_1;
10646 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10647 (ada_val_print_flt, ada_val_print_struct_union)
10648 (ada_val_print_ref): Likewise.
10649 (ada_val_print_1): Delete variables i and elttype.
10650 Replace extracted-out code by call to corresponding
10651 new functions.
10652
10653 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10654
10655 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10656
10657 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10658
10659 * ada-valprint.c (ada_val_print_1): Replace calls to
10660 ada_val_print_1 by calls to val_print.
10661
10662 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10663
10664 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10665 Update calls to self accordingly. Replace calls to c_val_print
10666 by calls to val_print.
10667
10668 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10669
10670 * ada-valprint.c (print_record): Delete declaration.
10671 (adjust_type_signedness, ada_val_print_1): Likewise.
10672 (ada_val_print): Move function implementation down.
10673 (print_variant_part, print_field_values, print_record):
10674 Move function implementation up.
10675
10676 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10677
10678 * python/py-type.c (typy_get_name): New function.
10679 (type_object_getset): Add entry for attribute "name".
10680 * NEWS: Add entry mentioning this new attribute.
10681
10682 2014-01-07 Yao Qi <yao@codesourcery.com>
10683
10684 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10685 statement.
10686
10687 2014-01-07 Yao Qi <yao@codesourcery.com>
10688
10689 * gnu-nat.c (info_port_rights): Add qualifier const to
10690 argument args.
10691
10692 2014-01-07 Yao Qi <yao@codesourcery.com>
10693
10694 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10695
10696 2014-01-07 Yao Qi <yao@codesourcery.com>
10697
10698 * gnu-nat.c (make_inf) Update declaration.
10699 (make_inf): Make it static.
10700 (inf_set_traced): Likewise.
10701 (inf_port_to_thread, inf_task_died_status): Likewise.
10702
10703 2014-01-07 Yao Qi <yao@codesourcery.com>
10704
10705 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10706
10707 2014-01-07 Yao Qi <yao@codesourcery.com>
10708
10709 * gnu-nat.c (_initialize_gnu_nat): Declare.
10710
10711 2014-01-07 Yao Qi <yao@codesourcery.com>
10712
10713 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10714 'enum bfd_endian'.
10715 (struct gdbarch_info) <byte_order>: Change type to
10716 'enum bfd_endian'.
10717 <byte_order_for_code>: Likewise.
10718 * gdbarch.c, gdbarch.h: Regenerated.
10719
10720 2014-01-06 Sasha Smundak <asmundak@google.com>
10721
10722 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10723
10724 2014-01-06 Tom Tromey <tromey@redhat.com>
10725
10726 * doublest.c (convert_doublest_to_floatformat): Use const, not
10727 CONST.
10728 * somread.c (som_symtab_read): Likewise.
10729
10730 2014-01-07 Hui Zhu <hui@codesourcery.com>
10731
10732 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10733 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10734 (gdb_bfd_fopen): Ditto.
10735 (gdb_bfd_openr): Ditto.
10736 (gdb_bfd_openw): Ditto.
10737 (gdb_bfd_openr_iovec): Ditto.
10738 (gdb_bfd_fdopenr): Ditto.
10739 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10740 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10741 with xstrdup.
10742 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10743 with xstrdup.
10744 * symfile-mem.c (symbol_file_add_from_memory): Removed
10745 gdb_bfd_stash_filename.
10746
10747 2014-01-03 Doug Evans <dje@google.com>
10748
10749 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10750 output.
10751
10752 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10753
10754 Update year range in copyright notice of all files.
10755
10756 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10757
10758 * top.c (print_gdb_version): Set copyright year to 2014.
10759
10760 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10761
10762 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10763
10764 For older changes see ChangeLog-2013.
10765 \f
10766 Local Variables:
10767 mode: change-log
10768 left-margin: 8
10769 fill-column: 74
10770 version-control: never
10771 coding: utf-8
10772 End:
This page took 0.254724 seconds and 4 git commands to generate.