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