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