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