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