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