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