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