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