Move block_found decl to symtab.h.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f08e8df3
DE
12014-10-26 Doug Evans <xdje42@gmail.com>
2
3 * parser-defs.h (block_found): Move decl from here ...
4 * symtab.h (block_found): ... to here.
5
cf901d3b
DE
62014-10-26 Doug Evans <xdje42@gmail.com>
7
8 * symtab.h (struct field_of_this_result): Fix typo in comment.
9 (lookup_symbol_in_language): Move function comment here.
10 (lookup_symbol): Improve function comment.
11 (basic_lookup_symbol_nonlocal): Ditto.
12 (lookup_symbol_static, lookup_symbol_global): Ditto.
13 (lookup_symbol_aux_block): Ditto.
14 (lookup_language_this): Add function comment.
15 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
16 function comment.
17 (lookup_block_symbol): Improve function comment.
18 (lookup_struct): Fix capitalization in function comment.
19 (lookup_transparent_type): Add function comment.
20 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
21 Improve function comment.
22 (lookup_objfile_from_block): Add function comment.
23 * symtab.c (lookup_symbol_in_language): Update function comment.
24 (lookup_symbol, lookup_language_this): Ditto.
25 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
26 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
27 (basic_lookup_symbol_nonlocal): Ditto.
28 (lookup_symbol_static, lookup_symbol_global): Ditto.
29 (lookup_transparent_type, lookup_block_symbol): Ditto.
30
ff6c39cf
DE
312014-10-25 Doug Evans <xdje42@gmail.com>
32
33 * symtab.c (types_info): Delete forward decl.
34 (functions_info, variables_info, sources_info): Ditto.
35 (_initialize_symtab): Rewrite forward decl to use
36 initialize_file_ftype.
37
ec201f0c
DE
382014-10-25 Doug Evans <xdje42@gmail.com>
39
40 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
41
ca040673
DE
422014-10-25 Doug Evans <xdje42@gmail.com>
43
44 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
45 of local var child_die.
46
6f259a23
DB
472014-10-24 Don Breazeal <donb@codesourcery.com>
48
49 * infrun.c (follow_fork_inferior): Update fork message printing
50 to use target_terminal_ours_for_output instead of
51 target_terminal_ours, to use _() for all format strings, to print
52 "vfork" instead of "fork" for vforks, and to add a detach message.
53 (handle_vfork_child_exec_or_exit): Update message printing to use
54 target_terminal_ours_for_output instead of target_terminal_ours, to
55 use _() for all format strings, and to fix some formatting.
56
09dd9a69
PA
572014-10-24 Pedro Alves <palves@redhat.com>
58
59 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
60 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
61 * config/vax/vax.mh: Delete.
62 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
63 obsolete configurations section.
64 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
65 * vax-nat.c: Delete file.
66
5ab806de
PA
672014-10-24 Pedro Alves <palves@redhat.com>
68
69 * NEWS (Removed targets): Add OS/arch column.
70
3433cfa5
SC
712014-10-24 Siva Chandra Reddy <sivachandra@google.com>
72
73 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
74 on the arg type of a constructor only if it is of reference type.
75
96ba4233
SL
762014-10-23 Sandra Loosemore <sandra@codesourcery.com>
77
78 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
79 accessors and constants from nios2 opcodes update.
80 (nios2_get_next_pc): Likewise.
81
28153fd3
DE
822014-10-19 Doug Evans <xdje42@gmail.com>
83
84 * gdbthread.h (set_running): Fix comment.
85 (set_executing, finish_thread_state): Fix comment.
86
fc9b8e47
DE
872014-10-18 Doug Evans <xdje42@gmail.com>
88
89 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
90
4ffbba72
DE
912014-10-17 Doug Evans <dje@google.com>
92
93 * NEWS: Mention new event gdb.clear_objfiles.
94 * python/py-event.h (emit_clear_objfiles_event): Clear
95 * python/py-events.h (events_object): New member clear_objfiles.
96 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
97 event.
98 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
99 emit clear_objfiles event.
100 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
101 function.
102 (emit_clear_objfiles_event): New function.
103 (clear_objfiles): New event.
104 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
105 Declare.
106 * python/python.c (_initialize_python): Call
107 gdbpy_initialize_clear_objfiles_event.
108
d096d8c1
DE
1092014-10-17 Doug Evans <dje@google.com>
110
111 * NEWS: Mention new gdb.Objfile.progspace attribute.
112 * python/py-objfile.c (objfpy_get_progspace): New function.
113 (objfile_getset): New entry for "progspace".
114
6c4486e6
PA
1152014-10-17 Pedro Alves <palves@redhat.com>
116
117 PR gdb/17471
118 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
119 returns a copy of the input.
120 (run_command_1, continue_command, step_1, jump_command)
121 (signal_command, until_command, advance_command, finish_command)
122 (attach_command): Adjust and install a cleanup to free the
123 stripped args.
124
0ff33695
PA
1252014-10-17 Pedro Alves <palves@redhat.com>
126
127 PR gdb/17300
128 * infcmd.c (continue_1): If continuing all threads in the
129 foreground, make sure the inferior's terminal settings are put in
130 effect.
131
6fdebc3d
PA
1322014-10-17 Pedro Alves <palves@redhat.com>
133
134 PR gdb/17472
135 * annotate.c (annotate_breakpoints_invalid): Use
136 target_terminal_our_for_output instead of target_terminal_ours.
137 Give back the terminal to the target.
138 (annotate_frames_invalid): Likewise.
139
5842f62a
PA
1402014-10-17 Pedro Alves <palves@redhat.com>
141
142 * target.c (enum terminal_state): New enum.
143 (terminal_state): New global.
144 (target_terminal_init): New function.
145 (target_terminal_inferior): Skip if inferior already owns the
146 terminal.
147 (target_terminal_ours, target_terminal_ours_for_output): New
148 functions.
149 * target.h (target_terminal_init): Convert to function prototype.
150 (target_terminal_ours_for_output): Convert to function prototype
151 and tweak comment.
152 (target_terminal_ours): Convert to function prototype and tweak
153 comment.
154 * windows-nat.c (do_initial_windows_stuff): Call
155 target_terminal_init instead of child_terminal_init_with_pgrp.
156
32a8097b
PA
1572014-10-17 Pedro Alves <palves@redhat.com>
158
159 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
160 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
161 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
162 solib-osf.c.
163 * NEWS: Mention that support for alpha*-*-osf* has been removed.
164 * ada-lang.h [__alpha__ && __osf__]
165 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
166 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
167 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
168 GDB_OSABI_OSF1.
169 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
170 files.
171 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
172 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
173 * configure: Regenerate.
174 * configure.ac: Remove references to osf.
175 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
176 section. Remove all other references to osf.
177 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
178 Remove all other references to osf.
179 * dec-thread.c: Delete file.
180 * defs.h (GDB_OSABI_OSF1): Delete.
181 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
182 defined.
183 * osabi.c (gdb_osabi_names): Delete "OSF/1".
184 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
185 Delete code.
186 (unconditionally_kill_inferior)
187 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
188 * solib-osf.c: Delete file.
189
80134cf5
PA
1902014-10-17 Pedro Alves <palves@redhat.com>
191
192 * remote.c (clear_threads_listing_context): Move higher up, out of
193 the HAVE_LIBEXPAT guard.
194
89c7137f
TG
1952014-10-16 Tristan Gingold <gingold@adacore.com>
196
197 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
198 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
199 on amd64.
200
44ee4a52
PA
2012014-10-15 Pedro Alves <palves@redhat.com>
202
203 * dec-thread.c (dec_thread_count_gdb_threads)
204 (dec_thread_add_gdb_thread): Delete.
205 (dec_thread_update_thread_list): Delete.
206 (dec_thread_find_new_threads): Rename to ...
207 (dec_thread_update_thread_list): ... this. Delete GDB-size
208 threads that are no longer found in dec_thread_list.
209 (resync_thread_list): Delete.
210 (dec_thread_wait): Call dec_thread_update_thread_list instead of
211 resync_thread_list.
212
ab970af1
PA
2132014-10-15 Pedro Alves <palves@redhat.com>
214
215 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
216 * remote.c (remote_update_thread_list): Skip calling prune_threads
217 if any thread listing method is supported, and instead walk over
218 the set of remote threads listed, deleting those that are not
219 found in GDB's thread list.
220
e8032dde
PA
2212014-10-15 Pedro Alves <palves@redhat.com>
222
223 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
224 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
225 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
226 (bsd_uthread_target): Adjust.
227 * corelow.c (core_open): Adjust.
228 * dec-thread.c (dec_thread_find_new_threads): Update comment.
229 (dec_thread_update_thread_list): New function.
230 (init_dec_thread_ops): Adjust.
231 * gdbthread.h (prune_threads): New declaration.
232 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
233 (thread_db_update_thread_list): ... this. Call prune_threads.
234 (init_thread_db_ops): Adjust.
235 * nto-procfs.c (procfs_find_new_threads): Rename to ...
236 (procfs_update_thread_list): ... this. Call prune_threads.
237 (procfs_attach, procfs_create_inferior, init_procfs_targets):
238 Adjust.
239 * obsd-nat.c (obsd_find_new_threads): Rename to ...
240 (obsd_update_thread_list): ... this. Call prune_threads.
241 (obsd_add_target): Adjust.
242 * procfs.c (procfs_target): Adjust.
243 (procfs_notice_thread): Update comment.
244 (procfs_find_new_threads): Rename to ...
245 (procfs_update_thread_list): ... this. Call prune_threads.
246 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
247 comment.
248 (ravenscar_wait): Adjust.
249 (ravenscar_find_new_threads): Rename to ...
250 (ravenscar_update_thread_list): ... this. Call prune_threads.
251 (init_ravenscar_thread_ops): Adjust.
252 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
253 (record_btrace_update_thread_list): ... this. Adjust comment.
254 (init_record_btrace_ops): Adjust.
255 * remote.c (remote_threads_info): Rename to ...
256 (remote_update_thread_list): ... this. Call prune_threads.
257 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
258 Adjust.
259 * sol-thread.c (check_for_thread_db): Adjust.
260 (sol_find_new_threads_callback): Rename to ...
261 (sol_update_thread_list_callback): ... this.
262 (sol_find_new_threads): Rename to ...
263 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
264 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
265 * target-delegates.c: Regenerate.
266 * target.c (target_find_new_threads): Rename to ...
267 (target_update_thread_list): ... this.
268 * target.h (struct target_ops): Rename to_find_new_threads field
269 to to_update_thread_list.
270 (target_find_new_threads): Rename to ...
271 (target_update_thread_list): ... this.
272 * thread.c (prune_threads): Make extern.
273 (update_thread_list): Adjust.
274
6dc54d91
PA
2752014-10-15 Pedro Alves <palves@redhat.com>
276
277 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
278 Add describing comment. Return -1 if the qL packet is not
279 supported.
280 (struct thread_item, thread_item_t): Move higher up in
281 the file. Add comments.
282 (struct threads_parsing_context): Move higher up in
283 the file, add comments, and remote to ...
284 (struct threads_listing_context): ... this.
285 (remote_newthread_step): Don't add the thread to GDB's thread
286 database here. Instead push it to the thread_listing_context
287 list.
288 (remote_find_new_threads): Rename to ...
289 (remote_get_threads_with_ql): ... this. Add target_ops and
290 targets_listing_context parameters. Pass down context.
291 (start_thread): Adjust.
292 (clear_threads_parsing_context): Rename to ...
293 (clear_threads_listing_context): ... this.
294 (remote_get_threads_with_qxfer): New, with parts salvaged from old
295 remote_threads_info.
296 (remote_get_threads_with_qthreadinfo): Ditto.
297 (remote_threads_info): Reimplement.
298
36728e82
PA
2992014-10-15 Pedro Alves <palves@redhat.com>
300
301 * infrun.c (resume): Don't force displaced-stepping for all
302 single-steps on software single-stepping archs.
303
34b7e8a6
PA
3042014-10-15 Pedro Alves <palves@redhat.com>
305
306 * breakpoint.c (single_step_breakpoints): Delete global.
307 (insert_single_step_breakpoint): Adjust to store the breakpoint
308 pointer in the current thread.
309 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
310 (cancel_single_step_breakpoints): Delete functions.
311 (breakpoint_has_location_inserted_here): Make extern.
312 (single_step_breakpoint_inserted_here_p): Adjust to walk the
313 breakpoint list.
314 * breakpoint.h (breakpoint_has_location_inserted_here): New
315 declaration.
316 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
317 (cancel_single_step_breakpoints): Remove declarations.
318 * gdbthread.h (struct thread_control_state)
319 <single_step_breakpoints>: New field.
320 (delete_single_step_breakpoints)
321 (thread_has_single_step_breakpoints_set)
322 (thread_has_single_step_breakpoint_here): New declarations.
323 * infrun.c (follow_exec): Also clear the single-step breakpoints.
324 (singlestep_breakpoints_inserted_p, singlestep_ptid)
325 (singlestep_pc): Delete globals.
326 (infrun_thread_ptid_changed): Remove references to removed
327 globals.
328 (resume_cleanups): Delete the current thread's single-step
329 breakpoints.
330 (maybe_software_singlestep): Remove references to removed globals.
331 (resume): Adjust to use thread_has_single_step_breakpoints_set and
332 delete_single_step_breakpoints.
333 (init_wait_for_inferior): Remove references to removed globals.
334 (delete_thread_infrun_breakpoints): Delete the thread's
335 single-step breakpoints too.
336 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
337 single-step breakpoints here.
338 (delete_stopped_threads_single_step_breakpoints): New function.
339 (adjust_pc_after_break): Adjust to use
340 thread_has_single_step_breakpoints_set.
341 (handle_inferior_event): Remove references to removed globals.
342 Use delete_stopped_threads_single_step_breakpoints.
343 (handle_signal_stop): Adjust to per-thread single-step
344 breakpoints. Swap test order to do cheaper tests first.
345 (switch_back_to_stepped_thread): Extend debug output. Remove
346 references to removed globals.
347 * record-full.c (record_full_wait_1): Adjust to per-thread
348 single-step breakpoints.
349 * thread.c (delete_single_step_breakpoints)
350 (thread_has_single_step_breakpoints_set)
351 (thread_has_single_step_breakpoint_here): New functions.
352 (clear_thread_inferior_resources): Also delete the thread's
353 single-step breakpoints.
354
5b834a0a
PA
3552014-10-15 Pedro Alves <palves@redhat.com>
356
357 * thread.c (delete_thread_breakpoint): New function.
358 (delete_step_resume_breakpoint)
359 (delete_exception_resume_breakpoint): Use it.
360 (delete_at_next_stop): New function.
361 (clear_thread_inferior_resources): Use delete_at_next_stop.
362
a1fd2fa5
PA
3632014-10-15 Pedro Alves <palves@redhat.com>
364
365 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
366 (breakpoint_inserted_here_p): ... here. Remove special case for
367 software single-step breakpoints.
368 (find_non_raw_software_breakpoint_inserted_here): Inline ...
369 (software_breakpoint_inserted_here_p): ... here. Remove special
370 case for software single-step breakpoints.
371 (bp_target_info_copy_insertion_state)
372 (deprecated_insert_raw_breakpoint)
373 (deprecated_remove_raw_breakpoint): Delete functions.
374 * breakpoint.h (deprecated_insert_raw_breakpoint)
375 (deprecated_remove_raw_breakpoint): Remove declarations.
376
7c16b83e
PA
3772014-10-15 Pedro Alves <palves@redhat.com>
378
379 PR breakpoints/9649
380 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
381 Delete array globals.
382 (single_step_breakpoints): New global.
383 (breakpoint_xfer_memory): Remove special handling for single-step
384 breakpoints.
385 (update_breakpoints_after_exec): Delete bp_single_step
386 breakpoints.
387 (detach_breakpoints): Remove special handling for single-step
388 breakpoints.
389 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
390 (bpstat_stop_status): Add comment.
391 (bpstat_what, bptype_string, print_one_breakpoint_location)
392 (adjust_breakpoint_address, init_bp_location): Handle
393 bp_single_step.
394 (new_single_step_breakpoint): New function.
395 (set_momentary_breakpoint, bkpt_remove_location): Remove special
396 handling for single-step breakpoints.
397 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
398 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
399 Rewrite.
400 (detach_single_step_breakpoints, find_single_step_breakpoint):
401 Delete functions.
402 (breakpoint_has_location_inserted_here): New function.
403 (single_step_breakpoint_inserted_here_p): Rewrite.
404 * breakpoint.h: Remove FIXME.
405 (enum bptype) <bp_single_step>: New enum value.
406 (insert_single_step_breakpoint): Update comment.
407 * infrun.c (resume_cleanups)
408 (delete_step_thread_step_resume_breakpoint): Remove single-step
409 breakpoints.
410 (fetch_inferior_event): Install a cleanup that removes infrun
411 breakpoints.
412 (switch_back_to_stepped_thread) <expect thread advanced also>:
413 Clear step-over info.
414
0cbcdb96
PA
4152014-10-15 Pedro Alves <palves@redhat.com>
416
417 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
418 (delete_thread_infrun_breakpoints): New function, with parts
419 salvaged from delete_step_resume_breakpoint_callback.
420 (delete_step_thread_step_resume_breakpoint): Delete.
421 (for_each_just_stopped_thread_callback_func): New typedef.
422 (for_each_just_stopped_thread): New function.
423 (delete_just_stopped_threads_infrun_breakpoints): New function.
424 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
425 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
426 ... this. Adjust.
427 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
428
963f9c80
PA
4292014-10-15 Pedro Alves <palves@redhat.com>
430
431 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
432 trying to step past a non-steppable watchpoint.
433 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
434 field.
435 * infrun.c (struct step_over_info): Add new field
436 'nonsteppable_watchpoint_p' and adjust comments.
437 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
438 Adjust.
439 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
440 (stepping_past_nonsteppable_watchpoint): New function.
441 (step_over_info_valid_p): Also return true if stepping past a
442 nonsteppable watchpoint.
443 (proceed): Adjust call to set_step_over_info. Remove reference to
444 init_infwait_state.
445 (init_wait_for_inferior): Remove reference to init_infwait_state.
446 (waiton_ptid): Delete global.
447 (struct execution_control_state)
448 <stepped_after_stopped_by_watchpoint>: Delete field.
449 (wait_for_inferior, fetch_inferior_event): Always pass
450 minus_one_ptid to target_wait.
451 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
452 field.
453 (init_infwait_state): Delete function.
454 (handle_inferior_event): Remove infwait_state handling.
455 (handle_signal_stop) <watchpoints handling>: Adjust after
456 stepped_after_stopped_by_watchpoint removal. Don't remove
457 breakpoints here nor set infwait_state. Set the thread's
458 stepping_over_watchpoint flag, and call keep_going instead.
459 (keep_going): Handle stepping_over_watchpoint. Adjust
460 set_step_over_info calls.
461 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
462 function.
463
6cc83d2a
PA
4642014-10-15 Pedro Alves <palves@redhat.com>
465
466 * infrun.c (step_over_info_valid_p): New function.
467 (resume): Use step_over_info_valid_p instead of checking the
468 threads's trap_expected flag.
469
6979730b
DE
4702014-10-15 Doug Evans <dje@google.com>
471 Walfred Tedeschi <walfred.tedeschi@intel.com>
472
473 PR python/17364
474 * python/lib/gdb/__init__.py (packages): Add "printer".
475 * python/lib/gdb/command/bound_registers.py: Moved to ...
476 * python/lib/gdb/printer/bound_registers.py: ... here.
477 Add printer to global set of builtin printers. Rename printer from
478 "bound" to "mpx_bound128".
479 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
480 registered as global "builtin" printer.
481 (add_builtin_pretty_printer): New function.
482 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
483 gdb/printer/__init__.py.
484
35a49624
IB
4852014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
486
487 * Makefile.in (SFILES): Remove d-support.c.
488 (COMMON_OBS): Remove d-support.o.
489 * d-lang.h (d_parse_symbol): Remove declaration.
490 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
491 * d-support.c: Remove file.
492
8fa0c4f8
AA
4932014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
494
495 * gdb/infrun.c (process_event_stop_test): Apply
496 gdbarch_addr_bits_remove to longjmp resume address.
497
3666da81
PA
4982014-10-15 Pedro Alves <palves@redhat.com>
499
500 * regformats/microblaze.dat: Delete file.
501
449aa9df
AKA
5022014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
503
504 * features/Makefile (microblaze-expedite): Replace pc with rpc.
505 * regformats/microblaze-with-stack-protect.dat: Regenerate.
506
ebb8ece2
SC
5072014-10-15 Siva Chandra Reddy <sivachandra@google.com>
508
509 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
510 as non-trivial.
511
82c48ac7
SC
5122014-10-15 Siva Chandra Reddy <sivachandra@google.com>
513
514 PR c++/13403
515 PR c++/15154
516 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
517 with qualified args.
518
c40cc657
JB
5192014-10-14 Joel Brobecker <brobecker@adacore.com>
520
521 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
522 of the case where the second operand is a pointer.
523 <BINOP_SUB>: Likewise.
524
0ea5cda8
SDJ
5252014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
526
527 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
528 only if it is not NULL.
529 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
530 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
531 (struct probe_ops) <clear_semaphore>: Likewise.
532 * tracepoint.c (start_tracing): Call set_semaphore only if it is
533 not NULL.
534 (stop_tracing): Likewise, for clear_semaphore.
535
f7088df3
SDJ
5362014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
537
538 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
539 using language_c, instead of current_language.
540
4e1bbde0
DE
5412014-10-13 Doug Evans <dje@google.com>
542
6ff5a0f6 543 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 544 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 545 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
546 (pspy_new, pspace_to_pspace_object): Call it.
547
c780cc2f
JK
5482014-10-13 Miroslav Franc <mfranc@redhat.com>
549 Jan Kratochvil <jan.kratochvil@redhat.com>
550
551 Fix "save breakpoints" for "catch" command.
552 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
553 newline.
554
99894e11
JK
5552014-10-12 Miroslav Franc <mfranc@redhat.com>
556
557 Fix "save breakpoints" for "disable $bpnum" command.
558 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
559
3831839c
PA
5602014-10-10 Pedro Alves <palves@redhat.com>
561
562 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
563 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
564 (HFILES_NO_SRCDIR): Remove solib-irix.h.
565 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
566 and been removed.
567 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
568 * configure.ac: Remove references to IRIX.
569 * configure.host: Add *-*-irix* to the obsolete hosts section.
570 Remove all other references to irix.
571 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
572 Delete files.
573
cc3afae2
AKA
5742014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
575
576 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
577 isn't valid, release the tdesc arch data and return NULL.
578
cdfa0b0a
PA
5792014-10-10 Pedro Alves <palves@redhat.com>
580
581 * linux-tdep.c: Include observer.h.
582 (linux_inferior_data): New global.
583 (struct linux_info): New structure.
584 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
585 (get_linux_inferior_data): New functions.
586 (linux_vsyscall_range): Rename to ...
587 (linux_vsyscall_range_raw): ... this.
588 (linux_vsyscall_range): New function; handles caching.
589 (_initialize_linux_tdep): Register linux_inferior_data. Install
590 inferior_exit and inferior_appeared observers.
591
8b9a549d
PA
5922014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
593 Pedro Alves <palves@redhat.com>
594
595 PR symtab/14466
596 * solib-svr4.c (svr4_read_so_list): Rename to ...
597 (svr4_current_sos_1): ... this and change the function comment.
598 (svr4_current_sos): New function.
599
3437254d
PA
6002014-10-10 Pedro Alves <palves@redhat.com>
601
602 * arch-utils.c (default_vsyscall_range): New function.
603 * arch-utils.h (default_vsyscall_range): New declaration.
604 * gdbarch.sh (vsyscall_range): New hook.
605 * gdbarch.h, gdbarch.c: Regenerate.
606 * linux-tdep.c (linux_vsyscall_range): New function.
607 (linux_init_abi): Install linux_vsyscall_range as
608 vsyscall_range gdbarch hook.
609 * memrange.c (address_in_mem_range): New function.
610 * memrange.h (address_in_mem_range): New declaration.
611 * symfile-mem.c (find_vdso_size): Delete function.
612 (add_vsyscall_page): Use gdbarch_vsyscall_range.
613
31cc0b80
PA
6142014-10-10 Pedro Alves <palves@redhat.com>
615
616 * infrun.c (normal_stop): Fix typo in comment.
617
3e3286a2
SDJ
6182014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
619
620 PR tdep/9390
621 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
622 typo when using logical AND to determine instruction type.
623
fcbdedf8
YQ
6242014-10-09 Yao Qi <yao@codesourcery.com>
625
626 * infrun.c (handle_signal_stop): Remove local variable
627 'printed'.
628
db984616
SS
6292014-10-08 Stan Shebs <stan@codesourcery.com>
630
631 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
632
3ba37e6c
GB
6332014-10-08 Gary Benson <gbenson@redhat.com>
634
635 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
636
a442d071
GB
6372014-10-08 Gary Benson <gbenson@redhat.com>
638
639 * common/common-defs.h: Include common-exceptions.h.
640 * exceptions.h: Do not include common-exceptions.h.
641
6f1947e8
GB
6422014-10-08 Gary Benson <gbenson@redhat.com>
643
644 * common/common-defs.h: Include cleanups.h.
645 * common/common-exceptions.c: Do not include cleanups.h.
646 * utils.h: Likewise.
647
c765fdb9
GB
6482014-10-08 Gary Benson <gbenson@redhat.com>
649
650 * ada-lang.c: Do not include exceptions.h.
651 * ada-valprint.c: Likewise.
652 * amd64-tdep.c: Likewise.
653 * auto-load.c: Likewise.
654 * block.c: Likewise.
655 * break-catch-throw.c: Likewise.
656 * breakpoint.c: Likewise.
657 * btrace.c: Likewise.
658 * c-lang.c: Likewise.
659 * cli/cli-cmds.c: Likewise.
660 * cli/cli-interp.c: Likewise.
661 * cli/cli-script.c: Likewise.
662 * completer.c: Likewise.
663 * corefile.c: Likewise.
664 * corelow.c: Likewise.
665 * cp-abi.c: Likewise.
666 * cp-support.c: Likewise.
667 * cp-valprint.c: Likewise.
668 * darwin-nat.c: Likewise.
669 * dwarf2-frame-tailcall.c: Likewise.
670 * dwarf2-frame.c: Likewise.
671 * dwarf2loc.c: Likewise.
672 * dwarf2read.c: Likewise.
673 * eval.c: Likewise.
674 * event-loop.c: Likewise.
675 * event-top.c: Likewise.
676 * f-valprint.c: Likewise.
677 * frame-unwind.c: Likewise.
678 * frame.c: Likewise.
679 * gdbtypes.c: Likewise.
680 * gnu-v2-abi.c: Likewise.
681 * gnu-v3-abi.c: Likewise.
682 * guile/scm-auto-load.c: Likewise.
683 * guile/scm-breakpoint.c: Likewise.
684 * guile/scm-cmd.c: Likewise.
685 * guile/scm-frame.c: Likewise.
686 * guile/scm-lazy-string.c: Likewise.
687 * guile/scm-param.c: Likewise.
688 * guile/scm-symbol.c: Likewise.
689 * guile/scm-type.c: Likewise.
690 * hppa-hpux-tdep.c: Likewise.
691 * i386-tdep.c: Likewise.
692 * inf-loop.c: Likewise.
693 * infcall.c: Likewise.
694 * infcmd.c: Likewise.
695 * infrun.c: Likewise.
696 * interps.c: Likewise.
697 * interps.h: Likewise.
698 * jit.c: Likewise.
699 * linespec.c: Likewise.
700 * linux-nat.c: Likewise.
701 * linux-thread-db.c: Likewise.
702 * m32r-rom.c: Likewise.
703 * main.c: Likewise.
704 * memory-map.c: Likewise.
705 * mi/mi-cmd-break.c: Likewise.
706 * mi/mi-cmd-stack.c: Likewise.
707 * mi/mi-interp.c: Likewise.
708 * mi/mi-main.c: Likewise.
709 * monitor.c: Likewise.
710 * nto-procfs.c: Likewise.
711 * objc-lang.c: Likewise.
712 * p-valprint.c: Likewise.
713 * parse.c: Likewise.
714 * ppc-linux-tdep.c: Likewise.
715 * printcmd.c: Likewise.
716 * probe.c: Likewise.
717 * python/py-auto-load.c: Likewise.
718 * python/py-breakpoint.c: Likewise.
719 * python/py-cmd.c: Likewise.
720 * python/py-finishbreakpoint.c: Likewise.
721 * python/py-frame.c: Likewise.
722 * python/py-framefilter.c: Likewise.
723 * python/py-function.c: Likewise.
724 * python/py-gdb-readline.c: Likewise.
725 * python/py-inferior.c: Likewise.
726 * python/py-infthread.c: Likewise.
727 * python/py-lazy-string.c: Likewise.
728 * python/py-linetable.c: Likewise.
729 * python/py-param.c: Likewise.
730 * python/py-prettyprint.c: Likewise.
731 * python/py-symbol.c: Likewise.
732 * python/py-type.c: Likewise.
733 * python/py-value.c: Likewise.
734 * python/python-internal.h: Likewise.
735 * python/python.c: Likewise.
736 * record-btrace.c: Likewise.
737 * record-full.c: Likewise.
738 * regcache.c: Likewise.
739 * remote-fileio.c: Likewise.
740 * remote-mips.c: Likewise.
741 * remote.c: Likewise.
742 * rs6000-aix-tdep.c: Likewise.
743 * rs6000-nat.c: Likewise.
744 * skip.c: Likewise.
745 * solib-darwin.c: Likewise.
746 * solib-dsbt.c: Likewise.
747 * solib-frv.c: Likewise.
748 * solib-ia64-hpux.c: Likewise.
749 * solib-spu.c: Likewise.
750 * solib-svr4.c: Likewise.
751 * solib.c: Likewise.
752 * spu-tdep.c: Likewise.
753 * stack.c: Likewise.
754 * stap-probe.c: Likewise.
755 * symfile-mem.c: Likewise.
756 * symmisc.c: Likewise.
757 * target.c: Likewise.
758 * thread.c: Likewise.
759 * top.c: Likewise.
760 * tracepoint.c: Likewise.
761 * tui/tui-interp.c: Likewise.
762 * typeprint.c: Likewise.
763 * utils.c: Likewise.
764 * valarith.c: Likewise.
765 * valops.c: Likewise.
766 * valprint.c: Likewise.
767 * value.c: Likewise.
768 * varobj.c: Likewise.
769 * windows-nat.c: Likewise.
770 * xml-support.c: Likewise.
771
484933d1
MR
7722014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
773
774 * mips-tdep.c (add_offset_16): Rewrite to implement what the
775 name implies.
776 (extended_mips16_next_pc): Update accordingly.
777
ab50adb6
MR
7782014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
779
780 * mips-tdep.c (mips16_instruction_is_compact_branch): New
781 function.
782 (micromips_instruction_is_compact_branch): Likewise.
783 (mips16_scan_prologue): Terminate scanning upon seeing a branch
784 or a compact jump, reaching a jump delay slot, or seeing a
785 second non-prologue instruction.
786 (micromips_scan_prologue): Also terminate scanning upon seeing a
787 compact branch or jump, or reaching a branch or jump delay slot.
788 (mips32_scan_prologue): Terminate scanning upon reaching a branch
789 or jump delay slot, or seeing a second non-prologue instruction.
790 (mips32_instruction_has_delay_slot): Retain instruction
791 examination code only, update arguments accordingly and move
792 instruction fetch pieces to...
793 (mips32_insn_at_pc_has_delay_slot): ... this new function.
794 (micromips_instruction_has_delay_slot): Likewise and to...
795 (micromips_insn_at_pc_has_delay_slot): ... this new function.
796 (mips16_instruction_has_delay_slot): Likewise and to...
797 (mips16_insn_at_pc_has_delay_slot): ... this new function.
798 (mips_single_step_through_delay): Update accordingly.
799 (mips_adjust_breakpoint_address): Likewise.
800
ae790652
MR
8012014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
802
803 * mips-tdep.c (micromips_instruction_has_delay_slot): When
804 !mustbe32 also return 1 for 32-bit instructions.
805 (mips16_instruction_has_delay_slot): Likewise. Add an
806 explanatory comment.
807
9b807e7b
MR
8082014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
809
810 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
811 symbols special.
812
0d5ed153
MR
8132014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
814
815 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
816 update comments.
817 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
818 for the breakpoint's address. Don't preinitialize `placed_size'.
819 (insert_bp_location): Set `reqstd_address' rather than
820 `placed_address'.
821 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
822 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
823 address.
824 (bkpt_remove_location): Likewise.
825 (deprecated_insert_raw_breakpoint): Likewise.
826 (deprecated_remove_raw_breakpoint): Likewise.
827 (find_single_step_breakpoint): Likewise.
828 * mem-break.c (default_memory_insert_breakpoint): Use
829 `reqstd_address' for the breakpoint's address. Don't set
830 `placed_address' or `placed_size' if breakpoint contents couldn't
831 have been determined.
832 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
833 the breakpoint's address.
834 (remote_insert_hw_breakpoint): Likewise. Don't set
835 `placed_address' or `placed_size' if breakpoint couldn't have been
836 set.
837 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
838 `reqstd_address' for the breakpoint's address.
839 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
840 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
841 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
842 * microblaze-linux-tdep.c
843 (microblaze_linux_memory_remove_breakpoint): Likewise.
844 * monitor.c (monitor_insert_breakpoint): Likewise.
845 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
846 (procfs_insert_hw_breakpoint): Likewise.
847 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
848 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
849 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
850 * remote-mips.c (mips_insert_breakpoint): Likewise.
851 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
852
3e871532
LM
8532014-10-03 Luis Machado <lgustavo@codesourcery.com>
854
855 * valops.c (value_assign): Check for bit field assignments
856 before calling architecture-specific register value
857 conversion functions.
858
ec48dc8b
PM
8592014-10-03 Pierre Muller <muller@sourceware.org>
860
861 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
862
b57bacec
PA
8632014-10-02 Pedro Alves <palves@redhat.com>
864
865 * breakpoint.c (breakpoints_should_be_inserted_now): Use
866 threads_are_executing.
867 * breakpoint.h (breakpoints_should_be_inserted_now): Add
868 describing comment.
869 * gdbthread.h (threads_are_executing): Declare.
870 (handle_signal_stop) <random signals>: Don't print about the
871 signal here if stopping.
872 (end_stepping_range): Don't notify observers here.
873 (normal_stop): Update the thread list. If stopped by a random
874 signal or a stepping range ended, notify observers.
875 * thread.c (threads_executing): New global.
876 (init_thread_list): Clear 'threads_executing'.
877 (set_executing): Set or clear 'threads_executing'.
878 (threads_are_executing): New function.
879 (update_threads_executing): New function.
880 (update_thread_list): Use it.
881
13fd3ff3
PA
8822014-10-02 Pedro Alves <palves@redhat.com>
883
884 PR breakpoints/17431
885 * breakpoint.c (update_breakpoints_after_exec): Don't create
886 overlay, longjmp, std terminate nor exception breakpoints here.
887
32990ada
PA
8882014-10-02 Pedro Alves <palves@redhat.com>
889
890 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
891 Adjust comments.
892 * inferior.c (find_inferior_for_program_space): Give preference to
893 the current inferior.
894 * inferior.h (find_inferior_for_program_space): Update comment.
895 * progspace.c (switch_to_program_space_and_thread): Prefer the
896 current inferior if it's bound to the program space requested. If
897 the inferior found doesn't have a PID yet, don't bother looking up
898 a thread.
899 * progspace.h (switch_to_program_space_and_thread): Adjust
900 comment.
901 * thread.c (any_thread_of_process, any_live_thread_of_process):
902 Give preference to the current thread.
903
0fec99e8
PA
9042014-10-01 Pedro Alves <palves@redhat.com>
905
906 * breakpoint.c (insert_bp_location): Error out if inserting a
907 software breakpoint at a read-only address.
908 * target.c (memory_xfer_check_region): New function, factored out
909 from ...
910 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
911 ULONGEST.
912 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
913 against the memory region attributes.
914
2ddf4301
SM
9152014-10-01 Simon Marchi <simon.marchi@ericsson.com>
916
917 * NEWS: Announce new exit-code field in -list-thread-groups
918 output.
919 * inferior.c (exit_inferior_1): Don't clear exit code.
920 (inferior_appeared): Clear exit code.
921 * mi/mi-main.c (print_one_inferior): Add printing of the exit
922 code.
923
5fdeec1d
PA
9242014-10-01 Pedro Alves <palves@redhat.com>
925
926 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
927 GENERATED" along with emacs/vi read-only markers.
928 * regformats/aarch64.dat: Regenerate.
929 * regformats/arm-with-iwmmxt.dat: Regenerate.
930 * regformats/arm-with-neon.dat: Regenerate.
931 * regformats/arm-with-vfpv2.dat: Regenerate.
932 * regformats/arm-with-vfpv3.dat: Regenerate.
933 * regformats/i386/amd64-avx-linux.dat: Regenerate.
934 * regformats/i386/amd64-avx.dat: Regenerate.
935 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
936 * regformats/i386/amd64-avx512.dat: Regenerate.
937 * regformats/i386/amd64-linux.dat: Regenerate.
938 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
939 * regformats/i386/amd64-mpx.dat: Regenerate.
940 * regformats/i386/amd64.dat: Regenerate.
941 * regformats/i386/i386-avx-linux.dat: Regenerate.
942 * regformats/i386/i386-avx.dat: Regenerate.
943 * regformats/i386/i386-avx512-linux.dat: Regenerate.
944 * regformats/i386/i386-avx512.dat: Regenerate.
945 * regformats/i386/i386-linux.dat: Regenerate.
946 * regformats/i386/i386-mmx-linux.dat: Regenerate.
947 * regformats/i386/i386-mmx.dat: Regenerate.
948 * regformats/i386/i386-mpx-linux.dat: Regenerate.
949 * regformats/i386/i386-mpx.dat: Regenerate.
950 * regformats/i386/i386.dat: Regenerate.
951 * regformats/i386/x32-avx-linux.dat: Regenerate.
952 * regformats/i386/x32-avx.dat: Regenerate.
953 * regformats/i386/x32-avx512-linux.dat: Regenerate.
954 * regformats/i386/x32-avx512.dat: Regenerate.
955 * regformats/i386/x32-linux.dat: Regenerate.
956 * regformats/i386/x32.dat: Regenerate.
957 * regformats/microblaze-with-stack-protect.dat: Regenerate.
958 * regformats/mips-dsp-linux.dat: Regenerate.
959 * regformats/mips-linux.dat: Regenerate.
960 * regformats/mips64-dsp-linux.dat: Regenerate.
961 * regformats/mips64-linux.dat: Regenerate.
962 * regformats/nios2-linux.dat: Regenerate.
963 * regformats/rs6000/powerpc-32.dat: Regenerate.
964 * regformats/rs6000/powerpc-32l.dat: Regenerate.
965 * regformats/rs6000/powerpc-64l.dat: Regenerate.
966 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
967 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
968 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
969 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
970 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
971 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
972 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
973 * regformats/s390-linux32.dat: Regenerate.
974 * regformats/s390-linux32v1.dat: Regenerate.
975 * regformats/s390-linux32v2.dat: Regenerate.
976 * regformats/s390-linux64.dat: Regenerate.
977 * regformats/s390-linux64v1.dat: Regenerate.
978 * regformats/s390-linux64v2.dat: Regenerate.
979 * regformats/s390-te-linux64.dat: Regenerate.
980 * regformats/s390x-linux64.dat: Regenerate.
981 * regformats/s390x-linux64v1.dat: Regenerate.
982 * regformats/s390x-linux64v2.dat: Regenerate.
983 * regformats/s390x-te-linux64.dat: Regenerate.
984 * regformats/tic6x-c62x-linux.dat: Regenerate.
985 * regformats/tic6x-c62x.dat: Regenerate.
986 * regformats/tic6x-c64x-linux.dat: Regenerate.
987 * regformats/tic6x-c64x.dat: Regenerate.
988 * regformats/tic6x-c64xp-linux.dat: Regenerate.
989 * regformats/tic6x-c64xp.dat: Regenerate.
990
db74e4ba
PA
9912014-10-01 Pedro Alves <palves@redhat.com>
992
993 * features/Makefile: Update comments.
994 (XMLTOC): List all xml files we build C files from.
995 (clean-cfiles): New rule.
996
d63f2f84
PA
9972014-10-01 Pedro Alves <palves@redhat.com>
998
999 * features/i386/amd64-avx512-linux.c: Regenerate.
1000 * features/i386/amd64-avx512.c: Regenerate.
1001 * features/i386/x32-avx512-linux.c: Regenerate.
1002 * features/i386/x32-avx512.c: Regenerate.
1003
20ad026d
PA
10042014-10-01 Pedro Alves <palves@redhat.com>
1005
1006 * features/Makefile (WHICH): Remove arm-with-m,
1007 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1008
acc9fe45
PA
10092014-10-01 Pedro Alves <palves@redhat.com>
1010
1011 * features/Makefile (clean): New rule.
1012
e001e535
PA
10132014-10-01 Pedro Alves <palves@redhat.com>
1014
1015 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1016 (zmm14h): Add missing end quotes.
1017
bdc14417
PA
10182014-10-01 Pedro Alves <palves@redhat.com>
1019
1020 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1021 * features/aarch64.c: Regenerate.
1022
d83ad864
DB
10232014-09-30 Don Breazeal <donb@codesourcery.com>
1024
1025 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1026 code so as to work with follow_fork_inferior.
1027 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1028 (inf_ttrace_create_inferior): Remove reference to
1029 inf_ttrace_vfork_ppid.
1030 (inf_ttrace_attach): Ditto.
1031 (inf_ttrace_detach): Ditto.
1032 (inf_ttrace_kill): Use current_inferior instead of
1033 inf_ttrace_vfork_ppid.
1034 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1035 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1036 inferior away from the parent.
1037 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1038 target_follow_fork.
1039 (follow_fork_inferior): New function.
1040 (follow_inferior_reset_breakpoints): Make function static.
1041 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1042 * linux-nat.c (linux_child_follow_fork): Move target-independent
1043 code to infrun.c:follow_fork_inferior.
1044
29082443
AA
10452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1046
1047 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1048 * gdbarch.c: Regenerate.
1049 * gdbarch.h: Likewise.
1050 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1051 gdbarch method 'regset_from_core_section'.
1052 (get_core_register_section): Remove handling for the case that
1053 regset == NULL and regset_from_core_section is defined.
1054 (get_core_registers): Drop check for deleted method.
1055 * procfs.c (procfs_do_thread_registers): Adjust comment.
1056
f968fe80
AA
10572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1058
1059 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1060 (linux_nat_make_corefile_notes): Remove.
1061 (linux_target_install_ops): Do not set target method
1062 'make_corefile_notes'.
1063 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1064 Remove field.
1065 (linux_corefile_thread_callback): Instead of args->collect, call
1066 linux_collect_thread_registers.
1067 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1068 NULL unless there is a regset iterator.
1069 (linux_make_corefile_notes_1): Remove.
1070 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1071 by linux_make_corefile_notes.
1072 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1073
174ad59a
AA
10742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1075
1076 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1077 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1078 Remove.
1079 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1080
97094034
AA
10812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1082
1083 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1084 (xtensa_iterate_over_regset_sections): New.
1085 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1086
f73d3ce7
AA
10872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1088
1089 * vax-tdep.c (vax_regset_from_core_section): Remove.
1090 (vax_iterate_over_regset_sections): New.
1091 (vax_gdbarch_init): Adjust gdbarch initialization.
1092
cb24567a
AA
10932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1094
1095 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1096 (tilegx_regset_from_core_section): Remove.
1097 (tilegx_iterate_over_regset_sections): New.
1098 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1099
e5139de8
AA
11002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1101
1102 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1103 (sparc_iterate_over_regset_sections): New.
1104 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1105 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1106 targets.
1107 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1108 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1109 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1110 target method 'make_corefile_notes'.
1111
c6d41a6f
AA
11122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1113
1114 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1115 'sizeof_gregset' and 'sizeof_fpregset'.
1116 * sh-tdep.c (sh_regset_from_core_section): Remove.
1117 (sh_iterate_over_regset_sections): New.
1118 (sh_gdbarch_init): Adjust gdbarch initialization.
1119 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1120 sizeof_fpregset.
1121 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1122 'sizeof_gregset'.
1123
9845a0b5
AA
11242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1125
1126 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1127 (score7_linux_iterate_over_regset_sections): New.
1128 (score_gdbarch_init): Adjust gdbarch initialization.
1129
23ea9aeb
AA
11302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1131
1132 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1133 FreeBSD targets.
1134 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1135 method 'make_corefile_notes'.
1136 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1137 (ppcfbsd_regset_from_core_section): Remove.
1138 (ppcfbsd_iterate_over_regset_sections): New.
1139 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1140 initialization.
1141 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1142 (ppcnbsd_iterate_over_regset_sections): New.
1143 (ppcnbsd_init_abi): Adjust.
1144 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1145 (ppcobsd_iterate_over_regset_sections): New.
1146 (ppcobsd_init_abi): Adjust.
1147 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1148 (rs6000_aix_iterate_over_regset_sections): New.
1149 (rs6000_aix_init_osabi): Adjust.
1150
c5b8d704
AA
11512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1152
1153 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1154 (nios2_regset_from_core_section): Remove.
1155 (nios2_iterate_over_regset_sections): New.
1156 (nios2_linux_init_abi): Adjust gdbarch initialization.
1157
3636e608
AA
11582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1159
1160 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1161 (am33_iterate_over_regset_sections): New.
1162 (am33_linux_init_osabi): Adjust gdbarch initialization.
1163
d4036235
AA
11642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1165
1166 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1167 (mips_linux_iterate_over_regset_sections): New.
1168 (mips_linux_init_abi): Adjust gdbarch initialization.
1169 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1170 (mips64obsd_iterate_over_regset_sections): New.
1171 (mips64obsd_init_abi): Adjust.
1172 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1173 (mipsnbsd_iterate_over_regset_sections): New.
1174 (mipsnbsd_init_abi): Adjust.
1175
b61ddd6e
AA
11762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1177
1178 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1179 (m88k_iterate_over_regset_sections): New.
1180 (m88k_gdbarch_init): Adjust gdbarch initialization.
1181
55a2906a
AA
11822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1183
1184 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1185 (ia64_linux_iterate_over_regset_sections): New.
1186 (ia64_linux_init_abi): Adjust gdbarch initialization.
1187
022c98ab
AA
11882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1189
1190 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1191 (m68kbsd_iterate_over_regset_sections): New.
1192 (m68kbsd_init_abi): Adjust gdbarch initialization.
1193 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1194 (m68k_linux_iterate_over_regset_sections): New.
1195 (m68k_linux_init_abi): Adjust gdbarch initialization.
1196
5fac247f
AA
11972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1198
1199 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1200 (m32r_linux_regset_from_core_section): Remove.
1201 (m32r_linux_iterate_over_regset_sections): New.
1202 (m32r_linux_init_abi): Adjust gdbarch initialization.
1203
490496c3
AA
12042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1205
1206 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1207 (amd64obsd_iterate_over_regset_sections): New.
1208 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1209 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1210 Remove.
1211 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1212 regset_from_core_section initialization.
1213 * i386-tdep.c (i386_regset_from_core_section): Remove.
1214 (i386_iterate_over_regset_sections): New.
1215 (i386_gdbarch_init): Adjust gdbarch initialization.
1216 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1217 (i386_iterate_over_regset_sections): New prototype.
1218 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1219 Remove.
1220 (i386obsd_aout_iterate_over_regset_sections): New.
1221 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1222 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1223 targets.
1224 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1225 (amd64fbsd_init_abi): Call fbsd_init_abi.
1226 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1227 (i386fbsd4_init_abi): Call fbsd_init_abi.
1228 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1229 target method 'make_corefile_notes'.
1230 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1231
50c5eb53
AA
12322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1233
1234 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1235 (hppa_hpux_iterate_over_regset_sections): New.
1236 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1237 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1238 (hppa_linux_iterate_over_regset_sections): New.
1239 (hppa_linux_init_abi): Adjust.
1240 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1241 (hppanbsd_iterate_over_regset_sections): New.
1242 (hppanbsd_init_abi): Adjust.
1243 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1244 (hppaobsd_iterate_over_regset_sections): New.
1245 (hppaobsd_init_abi): Adjust.
1246
66afae4f
AA
12472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1248
1249 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1250 (frv_linux_iterate_over_regset_sections): New.
1251 (frv_linux_init_abi): Adjust gdbarch initialization.
1252
ed09174e
AA
12532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1254
1255 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1256 (armbsd_iterate_over_regset_sections): New prototype.
1257 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1258 (armbsd_iterate_over_regset_sections): New.
1259 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1260 initialization.
1261
dff2166e
AA
12622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1263
1264 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1265 (alpha_linux_iterate_over_regset_sections): New.
1266 (alpha_linux_init_abi): Adjust gdbarch initialization.
1267 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1268 prototype.
1269 (alphanbsd_iterate_over_regset_sections): New prototype.
1270
4108500a
AA
12712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1272
1273 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1274 Remove.
1275 (aarch64_linux_iterate_over_regset_sections): New.
1276 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1277
a904c024
AA
12782014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1279
1280 * fbsd-tdep.c: New file.
1281 * fbsd-tdep.h: New file.
1282 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1283 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1284 (ALLDEPFILES): Add fbsd-tdep.c.
1285
8f0435f7
AA
12862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1287
1288 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1289 parameter.
1290 * gdbarch.h: Regenerate.
1291 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1292 iterator.
1293 (get_core_register_section): Add parameter 'regset' and use it, if
1294 set. Add parameter 'min_size' and verify the bfd section size
1295 against it.
1296 (get_core_registers_cb): Add parameter 'regset' and pass it to
1297 get_core_register section. For the "standard" register sections
1298 ".reg" and ".reg2", set an appropriate default for human_name.
1299 (get_core_registers): Don't abort when the gdbarch has an iterator
1300 but no regset_from_core_section. Add NULL/0 for parameters
1301 'regset'/'min_size' in calls to get_core_register_section.
1302 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1303 'regset' and use it instead of calling the
1304 regset_from_core_section gdbarch method.
1305 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1306 * i386-tdep.c (i386_supply_xstateregset)
1307 (i386_collect_xstateregset, i386_xstateregset): Moved to
1308 i386-linux-tdep.c.
1309 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1310 .reg-xstate.
1311 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1312 core file support only if the regset iterator hasn't been set.
1313 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1314 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1315 Moved from i386-tdep.c and renamed to *_linux*.
1316 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1317 each callback invocation. Allow any .reg-xstate size when reading
1318 from a core file.
1319 * amd64-tdep.c (amd64_supply_xstateregset)
1320 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1321 amd64-linux-tdep.c.
1322 (amd64_regset_from_core_section): Remove.
1323 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1324 install an amd64-specific regset_from_core_section gdbarch method.
1325 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1326 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1327 Moved from amd64-tdep.c and renamed to *_linux*.
1328 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1329 to each callback invocation. Allow any .reg-xstate size when
1330 reading from a core file.
1331 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1332 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1333 each callback invocation.
1334 (arm_linux_init_abi): No longer set the regset_from_core_section
1335 gdbarch method.
1336 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1337 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1338 each callback invocation.
1339 (ppc_linux_init_abi): No longer set the regset_from_core_section
1340 gdbarch method.
1341 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1342 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1343 (s390_regset_from_core_section): Remove.
1344 (s390_iterate_over_regset_sections): Add regset parameter to each
1345 callback invocation.
1346 (s390_gdbarch_init): No longer set the regset_from_core_section
1347 gdbarch method. Drop initialization of deleted tdep fields.
1348
5aa82d05
AA
13492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1350
1351 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1352 (amd64_linux_iterate_over_regset_sections): New.
1353 (amd64_linux_init_abi_common): Don't install the regset section
1354 list, but the new iterator in gdbarch.
1355 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1356 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1357 (arm_linux_iterate_over_regset_sections): ...here. New function.
1358 (arm_linux_init_abi): Set iterator instead of section list.
1359 * corelow.c (get_core_registers_cb): New function, logic moved
1360 from...
1361 (get_core_registers): ...loop body here. Use new iterator method
1362 instead of walking through the regset section list.
1363 * gdbarch.sh: Remove 'core_regset_sections'. New method
1364 'iterate_over_regset_sections'. New typedef
1365 'iterate_over_regset_sections_cb'.
1366 * gdbarch.c: Regenerate.
1367 * gdbarch.h: Likewise.
1368 * i386-linux-tdep.c (i386_linux_regset_sections)
1369 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1370 Remove.
1371 (i386_linux_iterate_over_regset_sections): New.
1372 (i386_linux_init_abi): Don't choose a regset section list, but
1373 install new iterator in gdbarch.
1374 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1375 (linux_collect_regset_section_cb): New function, logic moved
1376 from...
1377 (linux_collect_thread_registers): ...loop body here. Use iterator
1378 method instead of walking through list.
1379 (linux_make_corefile_notes_1): Check for presence of iterator
1380 method instead of regset section list.
1381 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1382 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1383 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1384 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1385 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1386 (ppc_linux_init_abi): Don't choose from above regset section
1387 lists, but install new iterator in gdbarch.
1388 * regset.h (struct core_regset_section): Remove.
1389 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1390 have_linux_v1, have_linux_v2, and have_tdb.
1391 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1392 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1393 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1394 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1395 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1396 (s390_iterate_over_regset_sections): ...here. New function. Use
1397 new tdep fields.
1398 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1399 regset section lists, but install new iterator.
1400
2eca4a8d
JK
14012014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1402
1403 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1404
a73c2b56
SM
14052014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1406
1407 * progspace.c (print_program_space): Don't prune program spaces
1408 before printing them.
1409
03d46957
PA
14102014-09-25 Pedro Alves <palves@redhat.com>
1411
1412 * infrun.c (user_visible_resume_ptid): Don't check
1413 singlestep_breakpoints_inserted_p.
1414
e558d7c1
PA
14152014-09-25 Pedro Alves <palves@redhat.com>
1416
1417 * breakpoint.c (should_be_inserted): Add debug output.
1418
7f89fd65
PA
14192014-09-25 Pedro Alves <palves@redhat.com>
1420
1421 * infrun.c (stepping_past_instruction_at)
1422 (clear_exit_convenience_vars): Point at infrun.h instead of
1423 inferior.h.
1424 (handle_signal_stop): Fix typo.
1425
b7576e5c
YQ
14262014-09-24 Yao Qi <yao@codesourcery.com>
1427
1428 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1429 bitmask.
1430
9a6cf368
GB
14312014-09-22 Gary Benson <gbenson@redhat.com>
1432
1433 * target.c (target_stop): Updated comment.
1434
03f4463b
GB
14352014-09-22 Gary Benson <gbenson@redhat.com>
1436
1437 * target/target.h (target_stop_ptid): Renamed as...
1438 (target_stop_and_wait): New function. Updated comment.
1439 All uses updated.
1440 (target_continue_ptid): Renamed as...
1441 (target_continue_no_signal): New function. Updated comment.
1442 All uses updated.
1443
a25a5a45
PA
14442014-09-22 Pedro Alves <palves@redhat.com>
1445
1446 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1447 and "auto" merged.
1448 * breakpoint.c (enum ugll_insert_mode): New enum.
1449 (always_inserted_mode): Now a plain boolean.
1450 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1451 (breakpoints_always_inserted_mode): Delete.
1452 (breakpoints_should_be_inserted_now): New function.
1453 (insert_breakpoints): Pass UGLL_INSERT to
1454 update_global_location_list instead of calling
1455 insert_breakpoint_locations manually.
1456 (create_solib_event_breakpoint_1): New, factored out from ...
1457 (create_solib_event_breakpoint): ... this.
1458 (create_and_insert_solib_event_breakpoint): Use
1459 create_solib_event_breakpoint_1 instead of calling
1460 insert_breakpoint_locations manually.
1461 (update_global_location_list): Change parameter type from boolean
1462 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1463 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1464 (update_global_location_list_nothrow): Change parameter type from
1465 boolean to enum ugll_insert_mode.
1466 (_initialize_breakpoint): "breakpoint always-inserted" option is
1467 now a boolean command. Update help text.
1468 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1469 (breakpoints_should_be_inserted_now): New declaration.
1470 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1471 Remove breakpoints_always_inserted_mode check.
1472 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1473 * remote.c (remote_start_remote): Likewise.
1474
04086b45
PA
14752014-09-22 Pedro Alves <palves@redhat.com>
1476
1477 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1478 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1479 Instead, pass UGLL_INSERT to update_global_location_list.
1480 (update_global_location_list): Change parameter type from boolean
1481 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1482 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1483 (create_solib_event_breakpoint_1): New, factored out from ...
1484 (create_solib_event_breakpoint): ... this.
1485 (create_and_insert_solib_event_breakpoint): Use
1486 create_solib_event_breakpoint_1 instead of calling
1487 insert_breakpoint_locations manually.
1488 (update_global_location_list): Handle UGLL_INSERT.
1489
44702360
PA
14902014-09-22 Pedro Alves <palves@redhat.com>
1491
1492 * breakpoint.c (enum ugll_insert_mode): New enum.
1493 (update_global_location_list)
1494 (update_global_location_list_nothrow): Change parameter type from
1495 boolean to enum ugll_insert_mode. All callers adjusted.
1496
93c6145a
JB
14972014-09-19 Joel Brobecker <brobecker@adacore.com>
1498
1499 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1500 SystemTap support in GDB.
1501
89a5711c
DB
15022014-09-19 Don Breazeal <donb@codesourcery.com>
1503
1504 * linux-nat.c (linux_handle_extended_wait): Call
1505 linux_ptrace_get_extended_event.
1506 (wait_lwp): Call linux_is_extended_waitstatus.
1507 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1508 and linux_is_extended_waitstatus.
1509 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1510 linux_ptrace_get_extended_event.
1511 (linux_ptrace_get_extended_event): New function.
1512 (linux_is_extended_waitstatus): New function.
1513 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1514 (linux_is_extended_waitstatus): New declarations.
1515
c3b7b696
YQ
15162014-09-19 Yao Qi <yao@codesourcery.com>
1517
1518 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1519 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1520 comments. Callers update.
1521 (dwarf_decode_lines): Likewise.
1522 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1523 comments. Skip the line table if 'lowpc' is greater than
1524 'address'. Don't check
1525 dwarf2_per_objfile->has_section_at_zero.
1526
2b4fd423
DE
15272014-09-18 Doug Evans <dje@google.com>
1528
1529 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1530 * python/py-symtab.c (stpy_get_producer): New function.
1531 (symtab_object_getset): Add "producer" attribute.
1532
5e43d467
UW
15332014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1534
1535 PR gdb/17384
1536 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1537 (do_captured_read_memory_integer): Remove.
1538 (safe_read_memory_integer): Use target_read_memory directly instead
1539 of catching errors in do_captured_read_memory_integer.
1540
04e79979
MR
15412014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1542
1543 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1544 not gdb/doc.
1545
76aeec5b
SDJ
15462014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1547
1548 * objc-lang.c (find_implementation_from_class): Remove dead code.
1549
2f693f9d
SDJ
15502014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1551
1552 PR cli/7233
1553 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1554 "fprintf_unfiltered (gdb_stdlog...)".
1555
bb9d5f81
PP
15562014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1557
1558 PR breakpoints/12526
1559 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1560 val_bitsize.
1561 * breakpoint.c (watch_command_1): Use these fields to retain
1562 bitfield information.
1563 (extract_bitfield_from_watchpoint_value): New function.
1564 (watchpoint_check): Use it.
1565 (update_watchpoint): Use it. Optimize the address and length of a
1566 HW watchpoint pointing to a bitfield.
1567 * value.h (unpack_value_bitfield): New prototype.
1568 * value.c (unpack_value_bitfield): Make extern.
1569
05db5edd
ST
15702014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1571
1572 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1573 x86-dregs.o.
1574 * gnu-nat.c (inf_threads): New function.
1575 * gnu-nat.h (inf_threads_ftype): New typedef.
1576 (inf_threads): New declaration.
1577 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1578 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1579 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1580 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1581 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1582 (i386_gnu_dr_get_control): New functions.
1583 (reg_addr): New structure.
1584 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1585 i386 debugging register hooks.
1586 * NEWS: Mention this.
1587
5a578da5
OJ
15882014-08-13 Omair Javaid <omair.javaid@linaro.org>
1589
1590 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1591 vector data transfer instructions.
1592 (arm_record_coproc_data_proc): Updated.
1593
f20f80dd
OJ
15942014-08-13 Omair Javaid <omair.javaid@linaro.org>
1595
1596 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1597 arm_record_exreg_ld_st_insn.
1598 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1599 load/store insns.
1600
851f26ae
OJ
16012014-08-13 Omair Javaid <omair.javaid@linaro.org>
1602
1603 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1604 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1605 processing instructions.
1606
1e1b6563
OJ
16072014-08-13 Omair Javaid <omair.javaid@linaro.org>
1608
1609 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1610 for advance SIMD struct ld/st insn.
1611 (thumb2_record_decode_insn_handler): Replace stub handler with
1612 thumb2_record_asimd_struct_ld_st.
1613
60cc5e93
OJ
16142014-08-13 Omair Javaid <omair.javaid@linaro.org>
1615
1616 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1617 for asimd, vfp and coprocessor insns.
1618 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1619 and coprocessor insns.
1620 (thumb2_record_coproc_insn): New function.
1621 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1622 handlers.
1623 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1624 opcode 110 insns.
1625
81219e53
DE
16262014-09-13 Doug Evans <xdje42@gmail.com>
1627
1628 * NEWS: Mention new "queue-signal" command.
1629 * infcmd.c (queue_signal_command): New function.
1630 (_initialize_infcmd): Add new queue-signal command.
1631
d36bf488
DE
16322014-09-13 Doug Evans <xdje42@gmail.com>
1633
1634 * linux-nat.c (wait_lwp): Add debugging printf.
1635 (linux_nat_wait_1): Ditto.
1636
f37f681c
PA
16372014-09-12 Pedro Alves <palves@redhat.com>
1638
1639 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1640 (create_and_insert_solib_event_breakpoint): New functions.
1641 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1642 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1643 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1644 (remove_dbx_link_breakpoint): Delete function.
1645 (insert_dbx_link_bpt_in_file): Use
1646 create_and_insert_solib_event_breakpoint instead of
1647 deprecated_insert_raw_breakpoint.
1648 (procfs_wait): Don't check whether we hit __dbx_link here.
1649 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1650 here.
1651 * solib-irix.c (base_breakpoint): Delete global.
1652 (disable_break): Delete function.
1653 (enable_break): Use create_solib_event_breakpoint
1654 instead of deprecated_insert_raw_breakpoint.
1655 (irix_solib_handle_event): New function.
1656 (irix_solib_create_inferior_hook): Don't run the target or disable
1657 the mapping-complete breakpoint here.
1658 (_initialize_irix_solib): Install irix_solib_handle_event as
1659 so_ops->handle_event hook.
1660
9d9bf2df
EBM
16612014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1662 Ulrich Weigand  <uweigand@de.ibm.com>
1663
1664 PR tdep/17379
1665 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1666 instead of read_memory_unsigned_integer.
1667
b006a80e
GB
16682014-09-12 Gary Benson <gbenson@redhat.com>
1669
1670 * nat/linux-waitpid.c: Include common-defs.h.
1671 [GDBSERVER]: Add FIXME comment.
1672 [!GDBSERVER]: Don't include defs.h or signal.h.
1673 (linux_debug) [!GDBSERVER]: Remove empty block.
1674
296b1496
GB
16752014-09-12 Gary Benson <gbenson@redhat.com>
1676
1677 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1678 Don't include defs.h or server.h.
1679
53f81362
GB
16802014-09-12 Gary Benson <gbenson@redhat.com>
1681
1682 * nat/linux-btrace.c: Include common-defs.h.
1683 Don't include defs.h, server.h or gdbthread.h.
1684 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1685
727605ca
GB
16862014-09-12 Gary Benson <gbenson@redhat.com>
1687
1688 * common/agent.c: Include common-defs.h.
1689 Don't include defs.h or server.h.
1690 * common/buffer.c: Likewise.
1691 * common/common-debug.c: Likewise.
1692 * common/common-utils.c: Likewise.
1693 * common/errors.c: Likewise.
1694 * common/filestuff.c: Likewise.
1695 * common/format.c: Likewise.
1696 * common/gdb_vecs.c: Likewise.
1697 * common/print-utils.c: Likewise.
1698 * common/ptid.c: Likewise.
1699 * common/rsp-low.c: Likewise.
1700 * common/signals.c: Likewise.
1701 * common/vec.c: Likewise.
1702 * common/xml-utils.c: Likewise.
1703 * nat/linux-osdata.c: Likewise.
1704 * nat/linux-procfs.c: Likewise.
1705 * nat/linux-ptrace.c: Likewise.
1706 * nat/mips-linux-watch.c: Likewise.
1707 * target/waitstatus.c: Likewise.
1708
361c8ade
GB
17092014-09-12 Tom Tromey <tromey@redhat.com>
1710 Gary Benson <gbenson@redhat.com>
1711
1712 * common/common-regcache.h: New file.
1713 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1714 * regcache.h: Include common-regcache.h.
1715 (regcache_read_pc): Don't declare.
1716 * regcache.c (get_thread_regcache_for_ptid): New function.
1717 * nat/linux-btrace.c: Don't include regcache.h.
1718 Include common-regcache.h.
1719 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1720
a01cbb49
TS
17212014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1722
1723 * regcache.h (struct regset): Declare.
1724
98880d46
PA
17252014-09-11 Pedro Alves <palves@redhat.com>
1726
1727 PR gdb/17347
1728 * main.c: Include "infrun.h".
1729 (catch_command_errors, catch_command_errors_const): Wait for the
1730 foreground command to complete.
1731 * top.c (maybe_wait_sync_command_done): New function, factored out
1732 from ...
1733 (maybe_wait_sync_command_done): ... here.
1734 * top.h (maybe_wait_sync_command_done): New declaration.
1735
bd9269f7
GB
17362014-09-11 Tom Tromey <tromey@redhat.com>
1737 Gary Benson <gbenson@redhat.com>
1738
1739 * common/symbol.h: New file.
1740 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1741 * minsyms.c (find_minimal_symbol_address): New function.
1742 * common/agent.c: Include common/symbol.h.
1743 [!GDBSERVER]: Don't include objfiles.h.
1744 (agent_look_up_symbols): Use find_minimal_symbol_address.
1745
f8c1d06b
GB
17462014-09-11 Gary Benson <gbenson@redhat.com>
1747
1748 * target/target.h (target_stop_ptid, target_continue_ptid):
1749 Declare.
1750 * target.c (target_stop_ptid, target_continue_ptid): New
1751 functions.
1752 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1753 (agent_run_command): Always use target_stop_ptid and
1754 target_continue_ptid.
1755
721ec300
GB
17562014-09-11 Tom Tromey <tromey@redhat.com>
1757 Gary Benson <gbenson@redhat.com>
1758
1759 * target/target.h: New file.
1760 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1761 * target.h: Include target/target.h.
1762 (target_read_memory, target_write_memory): Don't declare.
1763 * target.c (target_read_uint32): New function.
1764 * common/agent.c: Include target/target.h.
1765 [!GDBSERVER]: Don't include target.h.
1766 (helper_thread_id): Type changed to uint32_t.
1767 (agent_get_helper_thread_id): Use target_read_uint32.
1768 (agent_run_command): Always use target_read_memory and
1769 target_write_memory.
1770 (agent_capability): Type changed to uint32_t.
1771 (agent_capability_check): Use target_read_uint32.
1772
c5e92cca
GB
17732014-09-11 Gary Benson <gbenson@redhat.com>
1774
1775 * common/common-debug.h (show_debug_regs): Declare.
1776 * common/common-debug.c (show_debug_regs): Define.
1777 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1778 all uses with show_debug_regs. Replace all uses that considered
1779 debug_hw_points as a multi-value integer with straight boolean
1780 uses.
1781 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1782 with show_debug_regs.
1783 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1784 all uses with show_debug_regs.
1785 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1786 uses with show_debug_regs.
1787
eeef931a
UW
17882014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1789
1790 * findvar.c (address_from_register): Handle targets requiring
1791 a special conversion routine even for plain pointer types.
1792
8efa9855
UW
17932014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1794
1795 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1796 (store_register): Do not call exec_one_dummy_insn.
1797
eb479039
JB
17982014-09-10 Joel Brobecker <brobecker@adacore.com>
1799
1800 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1801 dereference it first. Use value_enclosing_type instead of
1802 value_type.
1803 (ada_array_length): Likewise.
1804
deede10c
JB
18052014-09-10 Joel Brobecker <brobecker@adacore.com>
1806
1807 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1808 Adjust function implementation and documentation accordingly.
1809 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1810 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1811 Update call to ada_value_ptr_subscript.
1812
7828a5f5
JB
18132014-09-10 Joel Brobecker <brobecker@adacore.com>
1814
1815 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1816 instead of VAL's type.
1817
35782f14
JB
18182014-09-10 Joel Brobecker <brobecker@adacore.com>
1819
1820 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1821
d342a0da
DE
18222014-09-09 Doug Evans <xdje42@gmail.com>
1823
1824 PR guile/17367
1825 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1826 last parameter to pkg-config, not first.
1827 * configure.ac: Pass --with-guile provided pkg-config path to
1828 GDB_GUILE_PROGRAM_NAMES.
1829 * configure: Regenerate.
1830
b4a3d263
GKB
18312014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1832
1833 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1834 Bertazi".
1835
6e466374
MR
18362014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1837
1838 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1839 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1840 the list of sections determining GDB_OSABI_IRIX.
1841
a1ada89a
JH
18422014-09-09 James Hogan <james.hogan@imgtec.com>
1843
1844 * MAINTAINERS (Write After Approval): Add "James Hogan".
1845
86db008d
JH
18462014-09-09 James Hogan <james.hogan@imgtec.com>
1847
1848 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1849
72fde3df
JB
18502014-09-09 Joel Brobecker <brobecker@adacore.com>
1851
1852 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1853
92d8d229
DE
18542014-09-08 Doug Evans <xdje42@gmail.com>
1855
1856 PR 17247
1857 * guile.c: #include <signal.h>.
1858 (_initialize_guile): Block SIGCHLD while initializing Guile.
1859
1860 Replaces the following, which is reverted.
1861
1862 2014-07-26 Doug Evans <xdje42@gmail.com>
1863
1864 PR 17185
1865 * configure.ac: Add check for header gc/gc.h.
1866 Add check for function setenv.
1867 * configure: Regenerate.
1868 * config.in: Regenerate.
1869 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1870
d81412aa
DE
18712014-09-08 Doug Evans <xdje42@gmail.com>
1872
1873 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1874 with named constant. Fix style of pointer comparison.
1875 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1876
a9f116cb
GKB
18772014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1878
1879 PR gdb/17035
1880 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1881 decide whether we display the command on "show user".
1882 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1883 printing command name.
1884 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1885 * cli/cli-decode.c (cli_user_command_p): Create helper function
1886 to verify whether cmd_list_element is a user-defined command.
1887
c75bd3a2
JK
18882014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1889
1890 PR python/17355
1891 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1892 Fix goto out of TRY_CATCH.
1893
faa42425 18942014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1895 Tom Tromey <tromey@redhat.com>
faa42425
DE
1896
1897 PR 15276
1898 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1899 $_any_caller_matches.
1900 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1901 * python/lib/gdb/function/caller_is.py: New file.
1902
0d41ba00
DE
19032014-09-06 Doug Evans <xdje42@gmail.com>
1904
1905 * infcmd.c (program_info): Fix typo.
1906
474ca4f6
SDJ
19072014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1908
1909 PR gdb/17235
1910 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1911 'number'. New variable 'has_digit'. Rewrite code to deal with
1912 subexpressions on SDT probes.
1913
ebf13736
PA
19142014-09-04 Pedro Alves <palves@redhat.com>
1915
1916 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1917 the input is only one character long.
1918
eb0b0463
SDJ
19192014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1920
1921 PR fortran/17237
1922 * f-valprint.c (f_val_print): Specify the correct print option to
1923 use when printing integer values.
1924
5ee44bfa
GB
19252014-09-04 Gary Benson <gbenson@redhat.com>
1926
1927 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1928 Remove code to cope with LWPs wrapped as PIDs.
1929 Add assertions to ensure no wrapped LWPs are passed.
1930
4875ffdb
PA
19312014-09-04 Pedro Alves <palves@redhat.com>
1932
1933 * value.c (value_ranges_copy_adjusted): New function, factored out
1934 from ...
1935 (value_contents_copy_raw): ... here.
1936 (unpack_value_bits_as_long_1): Rename back to ...
1937 (unpack_bits_as_long): ... this. Remove 'original_value' and
1938 'result' parameters. Change return type to LONGEST.
1939 (unpack_value_bits_as_long): Delete.
1940 (unpack_value_field_as_long_1): Delete.
1941 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1942 (unpack_value_bitfield): New function.
1943 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1944 (value_fetch_lazy): Use unpack_value_bitfield.
1945 * value.h (unpack_value_bits_as_long): Delete declaration.
1946
5f3b99cf
SS
19472014-09-03 Sasha Smundak <asmundak@google.com>
1948
1949 * python/py-frame.c (frapy_read_register): New function.
1950
ac740bc7
JH
19512014-09-03 James Hogan <james.hogan@imgtec.com>
1952
1953 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1954 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1955
7d793aa9
SDJ
19562014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1957
1958 PR python/16699
1959 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1960 function.
1961 (add_cmd): Set "completer_handle_brkchars" to NULL.
1962 * cli/cli-decode.h (struct cmd_list_element)
1963 <completer_handle_brkchars>: New field.
1964 * command.h (completer_ftype_void): New typedef.
1965 (set_cmd_completer_handle_brkchars): New prototype.
1966 * completer.c (set_gdb_completion_word_break_characters): New
1967 function.
1968 (complete_line_internal): Call "completer_handle_brkchars"
1969 callback from command.
1970 * completer.h: Include "command.h".
1971 (set_gdb_completion_word_break_characters): New prototype.
1972 * python/py-cmd.c (cmdpy_completer_helper): New function.
1973 (cmdpy_completer_handle_brkchars): New function.
1974 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1975 (cmdpy_init): Set completer_handle_brkchars to
1976 cmdpy_completer_handle_brkchars.
1977
97ea6506
GB
19782014-09-03 Gary Benson <gbenson@redhat.com>
1979
1980 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1981 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1982 Loop conditions changed to equivalent form.
1983 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1984 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1985 ALL_DEBUG_ADDRESS_REGISTERS.
1986
d1437815
JB
19872014-09-03 Joel Brobecker <brobecker@adacore.com>
1988
1989 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1990 description fix.
1991
9b94fcf1
DE
19922014-09-02 Doug Evans <dje@google.com>
1993
1994 * typeprint.c (find_global_typedef): Fix comment.
1995
df7e5265
GB
19962014-09-02 Gary Benson <gbenson@redhat.com>
1997
1998 * i386-nat.h: Renamed as...
1999 * x86-nat.h: New file. All type, function and variable name
2000 prefixes changed from "i386_" to "x86_". All references updated.
2001 * i386-nat.c: Renamed as...
2002 * x86-nat.c: New file. All type, function and variable name
2003 prefixes changed from "i386_" to "x86_". All references updated.
2004 * common/i386-xstate.h: Renamed as...
2005 * common/x86-xstate.h: New file. All type, function and variable
2006 name prefixes changed from "i386_" to "x86_". All references
2007 updated.
2008 * nat/i386-cpuid.h: Renamed as...
2009 * nat/x86-cpuid.h: New file. All type, function and variable name
2010 prefixes changed from "i386_" to "x86_". All references updated.
2011 * nat/i386-gcc-cpuid.h: Renamed as...
2012 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2013 name prefixes changed from "i386_" to "x86_". All references
2014 updated.
2015 * nat/i386-dregs.h: Renamed as...
2016 * nat/x86-dregs.h: New file. All type, function and variable name
2017 prefixes changed from "i386_" to "x86_". All references updated.
2018 * nat/i386-dregs.c: Renamed as...
2019 * nat/x86-dregs.c: New file. All type, function and variable name
2020 prefixes changed from "i386_" to "x86_". All references updated.
2021
1c3569d4
MR
20222014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2023
2024 * varobj.c (_initialize_varobj): Move to the end of file.
2025
ff55e1b5
GB
20262014-08-29 Gary Benson <gbenson@redhat.com>
2027
2028 * common/common-exceptions.h: New file.
2029 * common/common-exceptions.c: Likewise.
2030 * Makefile.in (SFILES): Add common/common-exceptions.c.
2031 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2032 (COMMON_OBS): Add common-exceptions.o.
2033 (common-exceptions.o): New rule.
2034 * exceptions.h (common-exceptions.h): Include.
2035 (gdb_setjmp.h): Do not include.
2036 (return_reason): Moved to common-exceptions.h.
2037 (enum return_reason): Likewise.
2038 (RETURN_MASK): Likewise.
2039 (typedef return_mask): Likewise.
2040 (enum errors): Likewise.
2041 (struct gdb_exception): Likewise.
2042 (exceptions_state_mc_init): Likewise.
2043 (exceptions_state_mc_action_iter): Likewise.
2044 (exceptions_state_mc_action_iter_1): Likewise.
2045 (TRY_CATCH): Likewise.
2046 (throw_exception): Likewise.
2047 (throw_verror): Likewise.
2048 (throw_vquit): Likewise.
2049 (throw_error): Likewise.
2050 (throw_quit): Likewise.
2051 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2052 (enum catcher_action): Likewise.
2053 (struct catcher): Likewise.
2054 (current_catcher): Likewise.
2055 (catcher_list_size): Likewise.
2056 (exceptions_state_mc_init): Likewise.
2057 (catcher_pop): Likewise.
2058 (exceptions_state_mc): Likewise.
2059 (exceptions_state_mc_action_iter): Likewise.
2060 (exceptions_state_mc_action_iter_1): Likewise.
2061 (throw_exception): Likewise.
2062 (exception_messages): Likewise.
2063 (exception_messages_size): Likewise.
2064 (throw_it): Likewise.
2065 (throw_verror): Likewise.
2066 (throw_vquit): Likewise.
2067 (throw_error): Likewise.
2068 (throw_quit): Likewise.
2069 (prepare_to_throw_exception): New function.
2070
e9bcb658
GB
20712014-08-29 Gary Benson <gbenson@redhat.com>
2072
2073 * common/gdb_setjmp.h: New file.
2074 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2075 * configure.ac: Move sigsetjmp check...
2076 * common/common.m4: ...here.
2077 * configure: Regenerate.
2078 * cp-support.c (SIGJMP_BUF): Delete.
2079 (SIGSETJMP): Likewise.
2080 (SIGLONGJMP): Likewise.
2081 * exceptions.h (gdb_setjmp.h): Include.
2082 (setjmp.h): Do not include.
2083 (EXCEPTIONS_SIGJMP_BUF): Delete.
2084 (EXCEPTIONS_SIGSETJMP): Likewise.
2085 (EXCEPTIONS_SIGLONGJMP): Likewise.
2086 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2087 from gdb_setjmp.h.
2088 * exceptions.c: Likewise.
2089
e3180625
GB
20902014-08-29 Gary Benson <gbenson@redhat.com>
2091
2092 * cleanups.h: Moved to...
2093 * common/cleanups.h: New file.
2094 * cleanups.c: Moved to...
2095 * common/cleanups.c: New file. Include common-defs.h and
2096 cleanups.h. Do not include defs.h.
2097 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2098 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2099 (cleanups.o): New rule.
2100
e3d6ba5d
GB
21012014-08-29 Gary Benson <gbenson@redhat.com>
2102
2103 * common/errors.h (internal_warning): New declaration.
2104 (internal_vwarning): Likewise.
2105 * common/errors.c (internal_warning): New function.
2106 * utils.h (internal_warning): Don't declare.
2107 (internal_vwarning): Likewise.
2108 * utils.c (internal_warning): Removed.
2109
075c7033
GB
21102014-08-29 Gary Benson <gbenson@redhat.com>
2111
2112 * main.c (captured_main): Use warning during startup.
2113 Prefix startup warning messages with command name.
2114
91b35fd0
GB
21152014-08-29 Gary Benson <gbenson@redhat.com>
2116
2117 * main.c (captured_main): Handle usage errors with error.
2118
b1ec390e
GB
21192014-08-29 Gary Benson <gbenson@redhat.com>
2120
2121 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2122 exit pair with a call to error. Wrap the message with _().
2123
fd0ef3dd
GB
21242014-08-29 Gary Benson <gbenson@redhat.com>
2125
2126 * main.c (captured_main): Replace a fprintf/exit
2127 pair with a call to error. Wrap the message with _().
2128
e0e6bcab
GB
21292014-08-29 Gary Benson <gbenson@redhat.com>
2130
2131 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2132 pairs with calls to error. Wrap the message with _().
2133
0d2f5c07
GB
21342014-08-29 Gary Benson <gbenson@redhat.com>
2135
2136 * utils.c (vwarning): Protect calls to target_terminal_ours
2137 and wrap_here.
2138
5df43998
GB
21392014-08-29 Gary Benson <gbenson@redhat.com>
2140
2141 * exceptions.c (print_flush): Protect calls to
2142 target_terminal_ours and wrap_here.
2143
2437fd32
GB
21442014-08-29 Gary Benson <gbenson@redhat.com>
2145
2146 * utils.h (filtered_printing_initialized): New declaration.
2147 * utils.c (abort_with_message): New function.
2148 (internal_vproblem): Use abort_with_message for first level
2149 recursive internal problems, and if gdb_stderr is not set up.
2150 Protect calls to target_terminal_ours, begin_line and query.
2151
f1f58506
DE
21522014-08-28 Doug Evans <dje@google.com>
2153
2154 * symtab.c (in_prologue): Move definition to better spot.
2155 (skip_prologue_using_sal): Ditto.
2156
aab2f208
DE
21572014-08-28 Doug Evans <dje@google.com>
2158
2159 * symtab.c (find_function_start_sal): Move definition to better spot.
2160
6b65d1b6
YQ
21612014-08-28 Yao Qi <yao@codesourcery.com>
2162
2163 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2164 found_stack_adjust in forward scan. Remove condition check
2165 on found_stack_adjust which is always true. Indent the code.
2166
a1b34d15
YQ
21672014-08-28 Yao Qi <yao@codesourcery.com>
2168
2169 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2170 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2171 (dwarf_decode_lines): Remove argument
2172 want_line_info. Remove condition check on want_line_info.
2173 Callers update.
2174
d5962de5
DE
21752014-08-27 Doug Evans <dje@google.com>
2176
2177 * dwarf2read.c (dwarf_record_line): Fix typo.
2178
9b139002
SDJ
21792014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2180
2181 * target.h (struct target_ops::to_terminal_save_ours): Remove
2182 declaration.
2183 (target_terminal_save_ours): Remove macro.
2184 * target-delegates.c: Regenerate.
2185 * inf-child.c (inf_child_target): Don't set the nonexistent
2186 field to_terminal_save_ours.
2187 * inferior.h (child_terminal_save_ours): Remove declaration.
2188 * terminal.h (gdb_save_tty_state): New declaration.
2189 * inflow.c (child_terminal_save_ours): Rename to ...
2190 (gdb_save_tty_state): ... this.
2191 * tui/tui.c: Include terminal.h.
2192 (tui_enable): Use gdb_save_tty_state instead of
2193 target_terminal_save_ours.
2194 (tui_disable): Likewise.
2195
9debeba0
DE
21962014-08-25 Doug Evans <dje@google.com>
2197
2198 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2199 Pass NULL instead of 0 for context pointer.
2200
428fc5fc
YQ
22012014-08-25 Yao Qi <yao@codesourcery.com>
2202
2203 * dwarf2read.c: Fix grammatical error.
2204
cdc07690
YQ
22052014-08-24 Yao Qi <yao@codesourcery.com>
2206
2207 * dwarf2read.c (scan_partial_symbols): Update comments.
2208 Rename argument 'need_pc' with 'set_addrmap'.
2209 (add_partial_namespace): Rename argument 'need_pc' with
2210 'set_addrmap'.
2211 (add_partial_module): Likewise.
2212 (add_partial_subprogram): Likewise. Update comments.
2213 (dwarf2_name): Fix typo.
2214
a05a36a5
DE
22152014-08-22 Doug Evans <dje@google.com>
2216
2217 PR 17276
2218 * dwarf2read.c (dwarf_record_line_p): New function.
2219 (dwarf_decode_lines_1): Ignore subsequent line number entries
2220 for the same line if any entry had a non-zero discriminator.
2221
252a6764
DE
22222014-08-22 Doug Evans <dje@google.com>
2223
2224 * buildsym.h (record_line_ftype): New typedef.
2225 (record_line): Use it.
2226 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2227 (dwarf_decode_lines_1): Call them.
2228
510db052
YQ
22292014-08-22 Yao Qi <yao@codesourcery.com>
2230
2231 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2232 (ctf_end): Remove code.
2233
22fd09ae
JK
22342014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2235
2236 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2237 (linux_make_corefile_notes): call update_thread_list, protected against
2238 exceptions.
2239
656e8868
PA
22402014-08-21 Pedro Alves <palves@redhat.com>
2241
2242 * infcmd.c (attach_command): Remove comment.
2243
de589d04
WN
22442014-08-21 Bin Cheng <bin.cheng@arm.com>
2245
2246 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2247 unsigned LONGEST to ULONGEST.
2248
2a31c623
PA
22492014-08-20 Pedro Alves <palves@redhat.com>
2250
2251 * Makefile.in (check-read1): New rule.
2252
d36430db
JB
22532014-08-20 Joel Brobecker <brobecker@adacore.com>
2254
2255 * value.c (value_from_contents_and_address): Strip resolved_type's
2256 typedef layers before checking its TYPE_DATA_LOCATION.
2257
000339af
PA
22582014-08-20 Pedro Alves <palves@redhat.com>
2259
2260 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2261
5f52445b
YQ
22622014-08-20 Yao Qi <yao@codesourcery.com>
2263
2264 * amd64-tdep.c (amd64_classify): Add a blank line after the
2265 example. Move "*/" to a new line.
2266 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2267 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2268 * dwarf2read.c (psymtab_include_file_name): Likewise.
2269
9a0dc9e3
PA
22702014-08-19 Andrew Burgess <aburgess@broadcom.com>
2271 Pedro Alves <palves@redhat.com>
2272
2273 PR symtab/14604
2274 PR symtab/14605
2275 * ada-lang.c (coerce_unspec_val_to_type): Use
2276 value_contents_copy_raw.
2277 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2278 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2279 * cp-valprint.c (cp_print_value_fields): Let the common printing
2280 code handle optimized out values.
2281 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2282 * d-valprint.c (dynamic_array_type): Use
2283 value_bits_any_optimized_out.
2284 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2285 check_any_valid fields.
2286 (check_pieced_value_bits): Delete and inline ...
2287 (check_pieced_synthetic_pointer): ... here.
2288 (check_pieced_value_validity): Delete.
2289 (check_pieced_value_invalid): Delete.
2290 (pieced_value_funcs): Remove check_validity and check_any_valid
2291 fields.
2292 (read_pieced_value): Use mark_value_bits_optimized_out.
2293 (write_pieced_value): Switch to use
2294 mark_value_bytes_optimized_out.
2295 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2296 of assuming the whole value is optimized out.
2297 * findvar.c (read_frame_register_value): Remove special handling
2298 of optimized out registers.
2299 (value_from_register): Use mark_value_bytes_optimized_out.
2300 * frame-unwind.c (frame_unwind_got_optimized): Use
2301 mark_value_bytes_optimized_out.
2302 * jv-valprint.c (java_value_print): Adjust.
2303 (java_print_value_fields): Let the common printing code handle
2304 optimized out values.
2305 * mips-tdep.c (mips_print_register): Remove special handling of
2306 optimized out registers.
2307 * opencl-lang.c (lval_func_check_validity): Delete.
2308 (lval_func_check_any_valid): Delete.
2309 (opencl_value_funcs): Remove check_validity and check_any_valid
2310 fields.
2311 * p-valprint.c (pascal_object_print_value_fields): Let the common
2312 printing code handle optimized out values.
2313 * stack.c (read_frame_arg): Remove special handling of optimized
2314 out values. Fetch both VAL and ENTRYVAL before comparing
2315 contents. Adjust to value_available_contents_eq rename.
2316 * valprint.c (valprint_check_validity)
2317 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2318 (val_print_array_elements): Adjust.
2319 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2320 (value_bits_any_optimized_out): New function.
2321 (value_entirely_covered_by_range_vector): New function, factored
2322 out from value_entirely_unavailable.
2323 (value_entirely_unavailable): Reimplement.
2324 (value_entirely_optimized_out): New function.
2325 (insert_into_bit_range_vector): New function, factored out from
2326 mark_value_bits_unavailable.
2327 (mark_value_bits_unavailable): Reimplement.
2328 (struct ranges_and_idx): New struct.
2329 (find_first_range_overlap_and_match): New function, factored out
2330 from value_available_contents_bits_eq.
2331 (value_available_contents_bits_eq): Rename to ...
2332 (value_contents_bits_eq): ... this. Check both unavailable
2333 contents and optimized out contents.
2334 (value_available_contents_eq): Rename to ...
2335 (value_contents_eq): ... this.
2336 (allocate_value_lazy): Remove reference to the old optimized_out
2337 boolean.
2338 (allocate_optimized_out_value): Use
2339 mark_value_bytes_optimized_out.
2340 (require_not_optimized_out): Adjust to check whether the
2341 optimized_out vec is empty.
2342 (ranges_copy_adjusted): New function, factored out from
2343 value_contents_copy_raw.
2344 (value_contents_copy_raw): Also copy the optimized out ranges.
2345 Assert the destination ranges aren't optimized out.
2346 (value_contents_copy): Update comment, remove call to
2347 require_not_optimized_out.
2348 (value_contents_equal): Adjust to check whether the optimized_out
2349 vec is empty.
2350 (set_value_optimized_out, value_optimized_out_const): Delete.
2351 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2352 New functions.
2353 (value_entirely_optimized_out, value_bits_valid): Delete.
2354 (value_copy): Take a VEC copy of the 'optimized_out' field.
2355 (value_primitive_field): Remove special handling of optimized out.
2356 (value_fetch_lazy): Assert that lazy values have no unavailable
2357 regions. Use value_bits_any_optimized_out. Remove some special
2358 handling for optimized out values.
2359 * value.h: Add intro comment about <optimized out> and
2360 <unavailable>.
2361 (struct lval_funcs): Remove check_validity and check_any_valid
2362 fields.
2363 (set_value_optimized_out, value_optimized_out_const): Remove.
2364 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2365 New declarations.
2366 (value_bits_any_optimized_out): New declaration.
2367 (value_bits_valid): Delete declaration.
2368 (value_available_contents_eq): Rename to ...
2369 (value_contents_eq): ... this, and extend comments.
2370
6694c411
JK
23712014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2372
2373 Fix -fsanitize=address on unreadable inferior strings.
2374 * valprint.c (val_print_string): Fix access before BUFFER.
2375
89a1c21a
SM
23762014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2377
2378 * target.c (target_struct_size): Remove.
2379 (target_struct_allocsize): Remove.
2380 (DEFAULT_ALLOCSIZE): Remove.
2381 (target_ops_p): New typedef.
2382 (DEF_VEC_P (target_ops_p)): New vector type.
2383 (target_structs): Change type to VEC (target_ops_p).
2384 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2385 (find_default_run_target): Rewrite for loop following changes to
2386 target_structs.
2387
cb417230
JB
23882014-08-19 Joel Brobecker <brobecker@adacore.com>
2389
2390 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2391 Adjust code accordingly. Adjust function description comment.
2392
817e0957
YQ
23932014-08-19 Yao Qi <yao@codesourcery.com>
2394
2395 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2396 types.
2397
2974be62
AM
23982014-08-19 Alan Modra <amodra@gmail.com>
2399
2400 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2401 * config.in: Regenerate.
2402 * configure: Regenerate.
2403
34abf635
GB
24042014-08-19 Tom Tromey <tromey@redhat.com>
2405 Gary Benson <gbenson@redhat.com>
2406
2407 * common/common-debug.h: New file.
2408 * common/common-debug.c: Likewise.
2409 * debug.c: Likewise.
2410 * Makefile.in (SFILES): Add common/common-debug.c.
2411 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2412 (COMMON_OBS): Add common-debug.o and debug.o.
2413 (common-debug.o): New rule.
2414 * common/common-defs.h: Include common-debug.h.
2415 * common/agent.c (debug_agent_printf): New function.
2416 (DEBUG_AGENT): Redefine.
2417 * nat/i386-dregs.c (debug_printf): Undefine.
2418
f6e94d78
GB
24192014-08-19 Gary Benson <gbenson@redhat.com>
2420
2421 * common/common-defs.h: Include print-utils.h.
2422 * utils.h: Do not include print-utils.h.
2423
9239eeab
GB
24242014-08-19 Tom Tromey <tromey@redhat.com>
2425 Gary Benson <gbenson@redhat.com>
2426
2427 * common/common-types.h: New file.
2428 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2429 * common/common-defs.h: Include common-types.h.
2430 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2431 (ULONGEST): Remove.
2432
ef87c8bb
GB
24332014-08-19 Tom Tromey <tromey@redhat.com>
2434 Gary Benson <gbenson@redhat.com>
2435
2436 * common/errors.h: New file.
2437 * common/errors.c: Likewise.
2438 * Makefile.in (SFILES): Add common/errors.c.
2439 (HFILES_NO_SRCDIR): Add common/errors.h.
2440 (COMMON_OBS): Add errors.o.
2441 (errors.o): New rule.
2442 * common/common-defs.h: Include errors.h.
2443 * utils.h (perror_with_name, error, verror, warning, vwarning):
2444 Don't declare.
2445 * common/common-utils.h: (malloc_failure, internal_error):
2446 Likewise.
2447
196a707b
GB
24482014-08-19 Gary Benson <gbenson@redhat.com>
2449
2450 * utils.c (internal_vproblem): Always print the message.
2451
ded4fc8f
DE
24522014-08-18 Doug Evans <dje@google.com>
2453
2454 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2455
950c97d8
JB
24562014-08-18 Joel Brobecker <brobecker@adacore.com>
2457
2458 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2459 Return 0 if TYPE is dynamic.
2460 (print_range): Add handling of dynamic ranges.
2461
3cdcd0ce
JB
24622014-08-18 Keven Boell <keven.boell@intel.com>
2463 Joel Brobecker <brobecker@adacore.com>
2464
2465 * gdbtypes.h (struct main_type): Add field "data_location".
2466 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2467 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2468 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2469 a dynamic data location.
2470 (resolve_dynamic_type): Add DW_AT_data_location handling.
2471 (copy_recursive, copy_type): Copy the data_location information
2472 when present.
2473 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2474 * value.c (value_from_contents_and_address): Add
2475 DW_AT_data_location handling.
2476
08412b07
JB
24772014-08-18 Keven Boell <keven.boell@intel.com>
2478 Joel Brobecker <brobecker@adacore.com>
2479
2480 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2481 field "get_object_address".
2482 * dwarf2expr.c (execute_stack_op): Add handling for
2483 DW_OP_push_object_address.
2484 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2485 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2486 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2487 (dwarf_expr_get_obj_addr): New function.
2488 (dwarf_expr_ctx_funcs): Add get_object_address field.
2489 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2490 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2491 (dwarf2_evaluate_property): Add parameter "address". Use it.
2492 (needs_get_obj_addr): New function.
2493 (needs_frame_ctx_funcs): Add get_object_address field.
2494 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2495 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2496 (resolve_dynamic_array): Likewise.
2497
84754697
JB
24982014-08-18 Joel Brobecker <brobecker@adacore.com>
2499
2500 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2501 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2502 fixed value for records and unions for which some GNAT encodings
2503 are present.
2504
da5c522f
JB
25052014-08-18 Joel Brobecker <brobecker@adacore.com>
2506
2507 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2508 rewrite to avoid "else if" and "else" constructs. Should be
2509 a no-op in practice.
2510
0d72a7c3
JB
25112014-08-18 Joel Brobecker <brobecker@adacore.com>
2512
2513 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2514 of lexical block.
2515
e66d4446
SC
25162014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2517
2518 PR c++/17132
2519 * eval.c: Update all calls to find_overload_match.
2520 * valarith.c: Likewise.
2521 (value_user_defined_cpp_op, value_user_defined_op): New
2522 argument NOSIDE. Update all callers.
2523 * valops.c (find_overload_match): New argument NOSIDE.
2524 * value.h (find_overload_match): Update signature.
2525
940df408
SC
25262014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2527
2528 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2529 'items' methods instead of 'iteritems' method on dictionaries.
2530
699ca60a
DE
25312014-08-15 Doug Evans <dje@google.com>
2532
2533 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2534 closer to use.
2535
37780ee5
DE
25362014-08-15 Doug Evans <dje@google.com>
2537
2538 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2539
0ad93d4f
DE
25402014-08-15 Doug Evans <dje@google.com>
2541
2542 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2543
20d8c372
DE
25442014-08-15 Doug Evans <dje@google.com>
2545
2546 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2547 unused.
2548
cb039ba4
EZ
25492014-08-15 Eli Zaretskii <eliz@gnu.org>
2550
2551 * dcache.h: Include target.h, to avoid compile time warnings.
2552
eb7a547a
JB
25532014-08-15 Joel Brobecker <brobecker@adacore.com>
2554
2555 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2556 frame_info" partial declaration.
2557 * gdbarch.h: Regenerate.
2558
783cecc8
YQ
25592014-08-15 Yao Qi <yao@codesourcery.com>
2560
2561 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2562 Add parameter 'decode_for_pst_p'. Callers update.
2563
65c749e7
YQ
25642014-08-13 Yao Qi <yao@codesourcery.com>
2565
2566 PR build/17104
2567 * configure.ac: Use local variable 'pos'.
2568 * configure: Regenerated.
2569
d769e349
DE
25702014-08-11 Doug Evans <dje@google.com>
2571
2572 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2573 message, it is redundant with "Reading symbols from ..." message.
2574
24f1235e
DE
25752014-08-10 Doug Evans <xdje42@gmail.com>
2576
2577 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2578
dcd2e6ef
YQ
25792014-08-09 Yao Qi <yao@codesourcery.com>
2580
2581 PR remote/9053
2582 * remote.c (remote_xfer_partial): Remove dead code.
2583
070bdf0b
AA
25842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2585
2586 * ia64-linux-tdep.c: Include "regset.h".
2587 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2588 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2589 (ia64_linux_supply_fpregset): New function.
2590 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2591 (ia64_linux_regset_from_core_section): New function.
2592 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2593 method.
2594
08f9f542
AA
25952014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2596
2597 * m68klinux-tdep.c: Include "regset.h".
2598 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2599 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2600 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2601 (m68k_linux_regset_from_core_section): New function.
2602 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2603 method.
2604
8f1cee41
AA
26052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2606
2607 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2608 function. Move logic to...
2609 (tilegx_linux_regmap): ... this new register map.
2610 (tilegx_linux_regset): Refer to register map, replace supply
2611 method by regcache_supply_regset, and add collect method.
2612 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2613 TILEGX_FIRST_EASY_REGNUM.
2614
c5741217
AA
26152014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2616
2617 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2618 that calls regcache_supply_regset and handles the EPC register
2619 separately. Move main logic to...
2620 (score7_linux_gregmap): ... this new register map.
2621 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2622 (score7_linux_gregset): Refer to register map. Add collect method.
2623 (score7_linux_regset_from_core_section): Replace
2624 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2625 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2626 (struct regset): Delete unused forward declaraction.
2627 (struct pt_regs): Delete structure definition.
2628 (elf_gregset_t): Delete typedef.
2629
81580573
AA
26302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2631
2632 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2633 (nios2_core_regset): Add collect method.
2634
ba199d7d
AA
26352014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2636
2637 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2638 platform-independent and don't write to read-only input buffer.
2639 (m32r_linux_collect_gregset): New function.
2640 (m32r_linux_gregset): Add collect method.
2641
0006a9da
AA
26422014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2643
2644 * hppa-linux-tdep.c (greg_map): Rename to...
2645 (hppa_linux_gregmap): ... this. Also convert to
2646 regcache_map_entry format.
2647 (hppa_linux_supply_regset): Delete function.
2648 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2649 (hppa_linux_fpregmap): ... this new register map.
2650 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2651 register map, replace supply method by regcache_supply_regset, and
2652 add collect method regcache_collect_regset.
2653
901e1b23
AA
26542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2655
2656 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2657 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2658 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2659 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2660 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2661 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2662 (frv_linux_supply_gregset): Replace main logic by call to
2663 regcache_supply_regset, but keep clearing gr32-gr63.
2664 (frv_linux_supply_fpregset): Delete function.
2665 (frv_linux_gregset): Refer to appropriate register map and add
2666 regcache_collect_regset as the collect method.
2667 (frv_linux_fpregset): Likewise. Also exchange the supply method
2668 by regcache_supply_regset.
2669
1d6e7555
AA
26702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2671
2672 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2673 by call to alpha_supply_int_regs.
2674 (alpha_linux_collect_gregset): New function.
2675 (alpha_linux_supply_fpregset): Replace logic by call to
2676 alpha_supply_fp_regs.
2677 (alpha_linux_collect_fpregset): New function.
2678 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2679
d4d793bf
AA
26802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2681
2682 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2683 by call to regcache_collect_regset.
2684 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2685 instead of aarch64_linux_supply_gregset/_fpregset.
2686 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2687 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2688 header file instead.
2689 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2690 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2691 functions. Move logic to ...
2692 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2693 register maps.
2694 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2695 refer to new register maps, replace *_regset_from_core by
2696 regcache_supply_regset, and also use regcache_collect_regset.
2697 * aarch64-linux-tdep.h: Include "regset.h".
2698 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2699 Delete prototypes.
2700 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2701 macros, moved from C source file.
2702 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2703 variable declarations.
2704
99b7da5d
AA
27052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2706
2707 * s390-linux-nat.c: Include "regset.h".
2708 (regmap_gregset): Delete macro.
2709 (s390_64_regmap_gregset): New register map for
2710 regcache_supply/_collect_regset.
2711 (s390_64_gregset): New regset.
2712 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2713 (regmap_fpregset): Delete macro.
2714 (s390_native_supply, s390_native_collect): Delete functions.
2715 (supply_gregset, fill_gregset): Replace s390-specific regmap
2716 handling by a call to regcache_supply/_collect_regset.
2717 (supply_fpregset, fill_fpregset): Call regcache_supply/
2718 _collect_regset instead of s390_native_supply/_collect.
2719 (fetch_regset, store_regset): Likewise. Also change the last
2720 parameter to a regset instead of a regmap.
2721 (s390_linux_fetch_inferior_registers)
2722 (390_linux_store_inferior_registers): Adjust last parameter in
2723 calls to fetch_regset and store_regset.
2724 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2725 (s390_gregmap): ... this. Also make static const and convert to
2726 regcache_map_entry format.
2727 (s390x_regmap_gregset): Delete.
2728 (s390_regmap_fpregset): Rename to...
2729 (s390_fpregmap): ... this. Make static const and convert to
2730 regcache_map_entry format.
2731 (s390_regmap_upper, s390_regmap_last_break)
2732 (s390x_regmap_last_break, s390_regmap_system_call)
2733 (s390_regmap_tdb): Likewise.
2734 (s390_supply_regset, s390_collect_regset): Remove functions.
2735 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2736 s390_supply_regset.
2737 (s390_gregset, s390_fpregset, s390_upper_regset)
2738 (s390_last_break_regset, s390x_last_break_regset)
2739 (s390_system_call_regset, s390_tdb_regset): Make global and
2740 replace s390_supply/_collect_regset by regcache_supply/
2741 _collect_regset.
2742 (s390x_gregset): Delete.
2743 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2744 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2745 (s390_regmap_fpregset, s390_regmap_last_break)
2746 (s390x_regmap_last_break, s390_regmap_system_call)
2747 (s390_regmap_tdb): Delete global variable declarations.
2748 (s390_gregset, s390_fpregset, s390_last_break_regset)
2749 (s390x_last_break_regset, s390_system_call_regset)
2750 (s390_tdb_regset): New global variable declarations.
2751
0b309272
AA
27522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2753
2754 * regcache.c: Include "regset.h".
2755 (regcache_transfer_regset): New local function.
2756 (regcache_supply_regset, regcache_collect_regset): New functions.
2757 * regcache.h (struct regcache_map_entry): New structure.
2758 (REGCACHE_MAP_SKIP): New enum value.
2759 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2760
7fefa8d7
AA
27612014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2762
2763 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2764 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2765 (ppc_linux_collect_gregset ): Likewise.
2766 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2767 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2768 (ppc_collect_vrregset): Likewise.
2769 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2770 Likewise.
2771
96c4f946
YQ
27722014-08-07 Yao Qi <yao@codesourcery.com>
2773
2774 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2775 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2776 * remote.c (remote_read_bytes): Likewise.
2777
fffbe6a8
YQ
27782014-08-07 Yao Qi <yao@codesourcery.com>
2779
2780 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2781
5ee8a82c
YQ
27822014-08-07 Yao Qi <yao@codesourcery.com>
2783
2784 PR remote/17230
2785 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2786 TARGET_XFER_OK instead of 0.
2787
bb974a24
GB
27882014-08-07 Gary Benson <gbenson@redhat.com>
2789
2790 * common/common-defs.h: Include errno.h.
2791 * defs.h: Do not include errno.h.
2792 * ada-typeprint.c: Likewise.
2793 * c-typeprint.c: Likewise.
2794 * core-regset.c: Likewise.
2795 * corefile.c: Likewise.
2796 * corelow.c: Likewise.
2797 * event-loop.c: Likewise.
2798 * f-typeprint.c: Likewise.
2799 * gnu-nat.c: Likewise.
2800 * go32-nat.c: Likewise.
2801 * i386gnu-nat.c: Likewise.
2802 * m2-typeprint.c: Likewise.
2803 * nat/linux-btrace.c: Likewise.
2804 * p-typeprint.c: Likewise.
2805 * procfs.c: Likewise.
2806 * remote-sim.c: Likewise.
2807 * rs6000-nat.c: Likewise.
2808 * target.c: Likewise.
2809 * typeprint.c: Likewise.
2810 * ui-file.c: Likewise.
2811 * valops.c: Likewise.
2812 * valprint.c: Likewise.
2813
6d3d12eb
GB
28142014-08-07 Gary Benson <gbenson@redhat.com>
2815
2816 * common/common-defs.h: Include string.h.
2817 * aarch64-tdep.c: Do not include string.h.
2818 * ada-exp.y: Likewise.
2819 * ada-lang.c: Likewise.
2820 * ada-lex.l: Likewise.
2821 * ada-typeprint.c: Likewise.
2822 * ada-valprint.c: Likewise.
2823 * aix-thread.c: Likewise.
2824 * alpha-linux-tdep.c: Likewise.
2825 * alpha-mdebug-tdep.c: Likewise.
2826 * alpha-nat.c: Likewise.
2827 * alpha-osf1-tdep.c: Likewise.
2828 * alpha-tdep.c: Likewise.
2829 * alphanbsd-tdep.c: Likewise.
2830 * amd64-dicos-tdep.c: Likewise.
2831 * amd64-linux-tdep.c: Likewise.
2832 * amd64-nat.c: Likewise.
2833 * amd64-sol2-tdep.c: Likewise.
2834 * amd64fbsd-tdep.c: Likewise.
2835 * amd64obsd-tdep.c: Likewise.
2836 * arch-utils.c: Likewise.
2837 * arm-linux-nat.c: Likewise.
2838 * arm-linux-tdep.c: Likewise.
2839 * arm-tdep.c: Likewise.
2840 * arm-wince-tdep.c: Likewise.
2841 * armbsd-tdep.c: Likewise.
2842 * armnbsd-nat.c: Likewise.
2843 * armnbsd-tdep.c: Likewise.
2844 * armobsd-tdep.c: Likewise.
2845 * avr-tdep.c: Likewise.
2846 * ax-gdb.c: Likewise.
2847 * ax-general.c: Likewise.
2848 * bcache.c: Likewise.
2849 * bfin-tdep.c: Likewise.
2850 * breakpoint.c: Likewise.
2851 * build-id.c: Likewise.
2852 * buildsym.c: Likewise.
2853 * c-exp.y: Likewise.
2854 * c-lang.c: Likewise.
2855 * c-typeprint.c: Likewise.
2856 * c-valprint.c: Likewise.
2857 * charset.c: Likewise.
2858 * cli-out.c: Likewise.
2859 * cli/cli-cmds.c: Likewise.
2860 * cli/cli-decode.c: Likewise.
2861 * cli/cli-dump.c: Likewise.
2862 * cli/cli-interp.c: Likewise.
2863 * cli/cli-logging.c: Likewise.
2864 * cli/cli-script.c: Likewise.
2865 * cli/cli-setshow.c: Likewise.
2866 * cli/cli-utils.c: Likewise.
2867 * coffread.c: Likewise.
2868 * common/agent.c: Likewise.
2869 * common/buffer.c: Likewise.
2870 * common/buffer.h: Likewise.
2871 * common/common-utils.c: Likewise.
2872 * common/filestuff.c: Likewise.
2873 * common/filestuff.c: Likewise.
2874 * common/format.c: Likewise.
2875 * common/print-utils.c: Likewise.
2876 * common/rsp-low.c: Likewise.
2877 * common/signals.c: Likewise.
2878 * common/vec.h: Likewise.
2879 * common/xml-utils.c: Likewise.
2880 * core-regset.c: Likewise.
2881 * corefile.c: Likewise.
2882 * corelow.c: Likewise.
2883 * cp-abi.c: Likewise.
2884 * cp-name-parser.y: Likewise.
2885 * cp-support.c: Likewise.
2886 * cp-valprint.c: Likewise.
2887 * cris-tdep.c: Likewise.
2888 * d-exp.y: Likewise.
2889 * darwin-nat.c: Likewise.
2890 * dbxread.c: Likewise.
2891 * dcache.c: Likewise.
2892 * demangle.c: Likewise.
2893 * dicos-tdep.c: Likewise.
2894 * disasm.c: Likewise.
2895 * doublest.c: Likewise.
2896 * dsrec.c: Likewise.
2897 * dummy-frame.c: Likewise.
2898 * dwarf2-frame.c: Likewise.
2899 * dwarf2loc.c: Likewise.
2900 * dwarf2read.c: Likewise.
2901 * elfread.c: Likewise.
2902 * environ.c: Likewise.
2903 * eval.c: Likewise.
2904 * event-loop.c: Likewise.
2905 * exceptions.c: Likewise.
2906 * exec.c: Likewise.
2907 * expprint.c: Likewise.
2908 * f-exp.y: Likewise.
2909 * f-lang.c: Likewise.
2910 * f-typeprint.c: Likewise.
2911 * f-valprint.c: Likewise.
2912 * fbsd-nat.c: Likewise.
2913 * findcmd.c: Likewise.
2914 * findvar.c: Likewise.
2915 * fork-child.c: Likewise.
2916 * frame.c: Likewise.
2917 * frv-linux-tdep.c: Likewise.
2918 * frv-tdep.c: Likewise.
2919 * gdb.c: Likewise.
2920 * gdb_bfd.c: Likewise.
2921 * gdbarch.c: Likewise.
2922 * gdbarch.sh: Likewise.
2923 * gdbtypes.c: Likewise.
2924 * gnu-nat.c: Likewise.
2925 * gnu-v2-abi.c: Likewise.
2926 * gnu-v3-abi.c: Likewise.
2927 * go-exp.y: Likewise.
2928 * go-lang.c: Likewise.
2929 * go32-nat.c: Likewise.
2930 * guile/guile.c: Likewise.
2931 * guile/scm-auto-load.c: Likewise.
2932 * hppa-hpux-tdep.c: Likewise.
2933 * hppa-linux-nat.c: Likewise.
2934 * hppanbsd-tdep.c: Likewise.
2935 * hppaobsd-tdep.c: Likewise.
2936 * i386-cygwin-tdep.c: Likewise.
2937 * i386-dicos-tdep.c: Likewise.
2938 * i386-linux-tdep.c: Likewise.
2939 * i386-nto-tdep.c: Likewise.
2940 * i386-sol2-tdep.c: Likewise.
2941 * i386-tdep.c: Likewise.
2942 * i386bsd-tdep.c: Likewise.
2943 * i386gnu-nat.c: Likewise.
2944 * i386nbsd-tdep.c: Likewise.
2945 * i386obsd-tdep.c: Likewise.
2946 * i387-tdep.c: Likewise.
2947 * ia64-libunwind-tdep.c: Likewise.
2948 * ia64-linux-nat.c: Likewise.
2949 * inf-child.c: Likewise.
2950 * inf-ptrace.c: Likewise.
2951 * inf-ttrace.c: Likewise.
2952 * infcall.c: Likewise.
2953 * infcmd.c: Likewise.
2954 * inflow.c: Likewise.
2955 * infrun.c: Likewise.
2956 * interps.c: Likewise.
2957 * iq2000-tdep.c: Likewise.
2958 * irix5-nat.c: Likewise.
2959 * jv-exp.y: Likewise.
2960 * jv-lang.c: Likewise.
2961 * jv-typeprint.c: Likewise.
2962 * jv-valprint.c: Likewise.
2963 * language.c: Likewise.
2964 * linux-fork.c: Likewise.
2965 * linux-nat.c: Likewise.
2966 * lm32-tdep.c: Likewise.
2967 * m2-exp.y: Likewise.
2968 * m2-typeprint.c: Likewise.
2969 * m32c-tdep.c: Likewise.
2970 * m32r-linux-nat.c: Likewise.
2971 * m32r-linux-tdep.c: Likewise.
2972 * m32r-rom.c: Likewise.
2973 * m32r-tdep.c: Likewise.
2974 * m68hc11-tdep.c: Likewise.
2975 * m68k-tdep.c: Likewise.
2976 * m68kbsd-tdep.c: Likewise.
2977 * m68klinux-nat.c: Likewise.
2978 * m68klinux-tdep.c: Likewise.
2979 * m88k-tdep.c: Likewise.
2980 * machoread.c: Likewise.
2981 * macrocmd.c: Likewise.
2982 * main.c: Likewise.
2983 * mdebugread.c: Likewise.
2984 * mem-break.c: Likewise.
2985 * memattr.c: Likewise.
2986 * memory-map.c: Likewise.
2987 * mep-tdep.c: Likewise.
2988 * mi/mi-cmd-break.c: Likewise.
2989 * mi/mi-cmd-disas.c: Likewise.
2990 * mi/mi-cmd-env.c: Likewise.
2991 * mi/mi-cmd-stack.c: Likewise.
2992 * mi/mi-cmd-var.c: Likewise.
2993 * mi/mi-cmds.c: Likewise.
2994 * mi/mi-console.c: Likewise.
2995 * mi/mi-getopt.c: Likewise.
2996 * mi/mi-interp.c: Likewise.
2997 * mi/mi-main.c: Likewise.
2998 * mi/mi-parse.c: Likewise.
2999 * microblaze-rom.c: Likewise.
3000 * microblaze-tdep.c: Likewise.
3001 * mingw-hdep.c: Likewise.
3002 * minidebug.c: Likewise.
3003 * minsyms.c: Likewise.
3004 * mips-irix-tdep.c: Likewise.
3005 * mips-linux-tdep.c: Likewise.
3006 * mips-tdep.c: Likewise.
3007 * mips64obsd-tdep.c: Likewise.
3008 * mipsnbsd-tdep.c: Likewise.
3009 * mipsread.c: Likewise.
3010 * mn10300-linux-tdep.c: Likewise.
3011 * mn10300-tdep.c: Likewise.
3012 * monitor.c: Likewise.
3013 * moxie-tdep.c: Likewise.
3014 * mt-tdep.c: Likewise.
3015 * nat/linux-btrace.c: Likewise.
3016 * nat/linux-osdata.c: Likewise.
3017 * nat/linux-procfs.c: Likewise.
3018 * nat/linux-ptrace.c: Likewise.
3019 * nat/linux-waitpid.c: Likewise.
3020 * nbsd-tdep.c: Likewise.
3021 * nios2-linux-tdep.c: Likewise.
3022 * nto-procfs.c: Likewise.
3023 * nto-tdep.c: Likewise.
3024 * objc-lang.c: Likewise.
3025 * objfiles.c: Likewise.
3026 * opencl-lang.c: Likewise.
3027 * osabi.c: Likewise.
3028 * osdata.c: Likewise.
3029 * p-exp.y: Likewise.
3030 * p-lang.c: Likewise.
3031 * p-typeprint.c: Likewise.
3032 * parse.c: Likewise.
3033 * posix-hdep.c: Likewise.
3034 * ppc-linux-nat.c: Likewise.
3035 * ppc-sysv-tdep.c: Likewise.
3036 * ppcfbsd-tdep.c: Likewise.
3037 * ppcnbsd-tdep.c: Likewise.
3038 * ppcobsd-tdep.c: Likewise.
3039 * printcmd.c: Likewise.
3040 * procfs.c: Likewise.
3041 * prologue-value.c: Likewise.
3042 * python/py-auto-load.c: Likewise.
3043 * python/py-gdb-readline.c: Likewise.
3044 * ravenscar-thread.c: Likewise.
3045 * regcache.c: Likewise.
3046 * registry.c: Likewise.
3047 * remote-fileio.c: Likewise.
3048 * remote-m32r-sdi.c: Likewise.
3049 * remote-mips.c: Likewise.
3050 * remote-notif.c: Likewise.
3051 * remote-sim.c: Likewise.
3052 * remote.c: Likewise.
3053 * reverse.c: Likewise.
3054 * rs6000-aix-tdep.c: Likewise.
3055 * ser-base.c: Likewise.
3056 * ser-go32.c: Likewise.
3057 * ser-mingw.c: Likewise.
3058 * ser-pipe.c: Likewise.
3059 * ser-tcp.c: Likewise.
3060 * ser-unix.c: Likewise.
3061 * serial.c: Likewise.
3062 * sh-tdep.c: Likewise.
3063 * sh64-tdep.c: Likewise.
3064 * shnbsd-tdep.c: Likewise.
3065 * skip.c: Likewise.
3066 * sol-thread.c: Likewise.
3067 * solib-dsbt.c: Likewise.
3068 * solib-frv.c: Likewise.
3069 * solib-osf.c: Likewise.
3070 * solib-som.c: Likewise.
3071 * solib-spu.c: Likewise.
3072 * solib-target.c: Likewise.
3073 * solib.c: Likewise.
3074 * somread.c: Likewise.
3075 * source.c: Likewise.
3076 * sparc-nat.c: Likewise.
3077 * sparc-sol2-tdep.c: Likewise.
3078 * sparc-tdep.c: Likewise.
3079 * sparc64-tdep.c: Likewise.
3080 * sparc64fbsd-tdep.c: Likewise.
3081 * sparc64nbsd-tdep.c: Likewise.
3082 * sparcnbsd-tdep.c: Likewise.
3083 * spu-linux-nat.c: Likewise.
3084 * spu-multiarch.c: Likewise.
3085 * spu-tdep.c: Likewise.
3086 * stabsread.c: Likewise.
3087 * stack.c: Likewise.
3088 * std-regs.c: Likewise.
3089 * symfile.c: Likewise.
3090 * symmisc.c: Likewise.
3091 * symtab.c: Likewise.
3092 * target.c: Likewise.
3093 * thread.c: Likewise.
3094 * tilegx-linux-nat.c: Likewise.
3095 * tilegx-tdep.c: Likewise.
3096 * top.c: Likewise.
3097 * tracepoint.c: Likewise.
3098 * tui/tui-command.c: Likewise.
3099 * tui/tui-data.c: Likewise.
3100 * tui/tui-disasm.c: Likewise.
3101 * tui/tui-file.c: Likewise.
3102 * tui/tui-layout.c: Likewise.
3103 * tui/tui-out.c: Likewise.
3104 * tui/tui-regs.c: Likewise.
3105 * tui/tui-source.c: Likewise.
3106 * tui/tui-stack.c: Likewise.
3107 * tui/tui-win.c: Likewise.
3108 * tui/tui-windata.c: Likewise.
3109 * tui/tui-winsource.c: Likewise.
3110 * typeprint.c: Likewise.
3111 * ui-file.c: Likewise.
3112 * ui-out.c: Likewise.
3113 * user-regs.c: Likewise.
3114 * utils.c: Likewise.
3115 * v850-tdep.c: Likewise.
3116 * valarith.c: Likewise.
3117 * valops.c: Likewise.
3118 * valprint.c: Likewise.
3119 * value.c: Likewise.
3120 * varobj.c: Likewise.
3121 * vax-tdep.c: Likewise.
3122 * vaxnbsd-tdep.c: Likewise.
3123 * vaxobsd-tdep.c: Likewise.
3124 * windows-nat.c: Likewise.
3125 * xcoffread.c: Likewise.
3126 * xml-support.c: Likewise.
3127 * xstormy16-tdep.c: Likewise.
3128 * xtensa-linux-nat.c: Likewise.
3129
dccbb609
GB
31302014-08-07 Gary Benson <gbenson@redhat.com>
3131
3132 * common/common-defs.h: Include gdb_assert.h.
3133 * aarch64-tdep.c: Do not include gdb_assert.h.
3134 * addrmap.c: Likewise.
3135 * aix-thread.c: Likewise.
3136 * alpha-linux-tdep.c: Likewise.
3137 * alpha-mdebug-tdep.c: Likewise.
3138 * alphanbsd-tdep.c: Likewise.
3139 * amd64-nat.c: Likewise.
3140 * amd64-tdep.c: Likewise.
3141 * amd64bsd-nat.c: Likewise.
3142 * amd64fbsd-nat.c: Likewise.
3143 * amd64fbsd-tdep.c: Likewise.
3144 * amd64nbsd-nat.c: Likewise.
3145 * amd64nbsd-tdep.c: Likewise.
3146 * amd64obsd-nat.c: Likewise.
3147 * amd64obsd-tdep.c: Likewise.
3148 * arch-utils.c: Likewise.
3149 * arm-tdep.c: Likewise.
3150 * armbsd-tdep.c: Likewise.
3151 * auxv.c: Likewise.
3152 * bcache.c: Likewise.
3153 * bfin-tdep.c: Likewise.
3154 * blockframe.c: Likewise.
3155 * breakpoint.c: Likewise.
3156 * bsd-kvm.c: Likewise.
3157 * bsd-uthread.c: Likewise.
3158 * buildsym.c: Likewise.
3159 * c-exp.y: Likewise.
3160 * c-lang.c: Likewise.
3161 * charset.c: Likewise.
3162 * cleanups.c: Likewise.
3163 * cli-out.c: Likewise.
3164 * cli/cli-decode.c: Likewise.
3165 * cli/cli-dump.c: Likewise.
3166 * cli/cli-logging.c: Likewise.
3167 * cli/cli-script.c: Likewise.
3168 * cli/cli-utils.c: Likewise.
3169 * coffread.c: Likewise.
3170 * common/common-utils.c: Likewise.
3171 * common/queue.h: Likewise.
3172 * common/signals.c: Likewise.
3173 * common/vec.h: Likewise.
3174 * complaints.c: Likewise.
3175 * completer.c: Likewise.
3176 * corelow.c: Likewise.
3177 * cp-abi.c: Likewise.
3178 * cp-name-parser.y: Likewise.
3179 * cp-namespace.c: Likewise.
3180 * cp-support.c: Likewise.
3181 * cris-tdep.c: Likewise.
3182 * dbxread.c: Likewise.
3183 * dictionary.c: Likewise.
3184 * doublest.c: Likewise.
3185 * dsrec.c: Likewise.
3186 * dummy-frame.c: Likewise.
3187 * dwarf2-frame-tailcall.c: Likewise.
3188 * dwarf2-frame.c: Likewise.
3189 * dwarf2expr.c: Likewise.
3190 * dwarf2loc.c: Likewise.
3191 * dwarf2read.c: Likewise.
3192 * eval.c: Likewise.
3193 * event-loop.c: Likewise.
3194 * exceptions.c: Likewise.
3195 * expprint.c: Likewise.
3196 * f-valprint.c: Likewise.
3197 * fbsd-nat.c: Likewise.
3198 * findvar.c: Likewise.
3199 * frame-unwind.c: Likewise.
3200 * frame.c: Likewise.
3201 * frv-tdep.c: Likewise.
3202 * gcore.c: Likewise.
3203 * gdb-dlfcn.c: Likewise.
3204 * gdb_bfd.c: Likewise.
3205 * gdbarch.c: Likewise.
3206 * gdbarch.sh: Likewise.
3207 * gdbtypes.c: Likewise.
3208 * gnu-nat.c: Likewise.
3209 * gnu-v3-abi.c: Likewise.
3210 * go-lang.c: Likewise.
3211 * guile/scm-exception.c: Likewise.
3212 * guile/scm-gsmob.c: Likewise.
3213 * guile/scm-lazy-string.c: Likewise.
3214 * guile/scm-math.c: Likewise.
3215 * guile/scm-pretty-print.c: Likewise.
3216 * guile/scm-safe-call.c: Likewise.
3217 * guile/scm-utils.c: Likewise.
3218 * guile/scm-value.c: Likewise.
3219 * h8300-tdep.c: Likewise.
3220 * hppa-hpux-nat.c: Likewise.
3221 * hppa-tdep.c: Likewise.
3222 * hppanbsd-tdep.c: Likewise.
3223 * hppaobsd-tdep.c: Likewise.
3224 * i386-darwin-nat.c: Likewise.
3225 * i386-darwin-tdep.c: Likewise.
3226 * i386-nto-tdep.c: Likewise.
3227 * i386-tdep.c: Likewise.
3228 * i386bsd-nat.c: Likewise.
3229 * i386fbsd-tdep.c: Likewise.
3230 * i386gnu-nat.c: Likewise.
3231 * i386nbsd-tdep.c: Likewise.
3232 * i386obsd-tdep.c: Likewise.
3233 * i387-tdep.c: Likewise.
3234 * ia64-libunwind-tdep.c: Likewise.
3235 * ia64-tdep.c: Likewise.
3236 * inf-ptrace.c: Likewise.
3237 * inf-ttrace.c: Likewise.
3238 * infcall.c: Likewise.
3239 * infcmd.c: Likewise.
3240 * infrun.c: Likewise.
3241 * inline-frame.c: Likewise.
3242 * interps.c: Likewise.
3243 * jv-lang.c: Likewise.
3244 * jv-typeprint.c: Likewise.
3245 * linux-fork.c: Likewise.
3246 * linux-nat.c: Likewise.
3247 * linux-thread-db.c: Likewise.
3248 * m32c-tdep.c: Likewise.
3249 * m32r-linux-nat.c: Likewise.
3250 * m32r-tdep.c: Likewise.
3251 * m68k-tdep.c: Likewise.
3252 * m68kbsd-nat.c: Likewise.
3253 * m68kbsd-tdep.c: Likewise.
3254 * m88k-tdep.c: Likewise.
3255 * machoread.c: Likewise.
3256 * macroexp.c: Likewise.
3257 * macrotab.c: Likewise.
3258 * maint.c: Likewise.
3259 * mdebugread.c: Likewise.
3260 * memory-map.c: Likewise.
3261 * mep-tdep.c: Likewise.
3262 * mi/mi-common.c: Likewise.
3263 * microblaze-tdep.c: Likewise.
3264 * mingw-hdep.c: Likewise.
3265 * mips-linux-nat.c: Likewise.
3266 * mips-linux-tdep.c: Likewise.
3267 * mips-tdep.c: Likewise.
3268 * mips64obsd-tdep.c: Likewise.
3269 * mipsnbsd-tdep.c: Likewise.
3270 * mn10300-linux-tdep.c: Likewise.
3271 * mn10300-tdep.c: Likewise.
3272 * moxie-tdep.c: Likewise.
3273 * mt-tdep.c: Likewise.
3274 * nat/linux-btrace.c: Likewise.
3275 * nat/linux-osdata.c: Likewise.
3276 * nat/linux-ptrace.c: Likewise.
3277 * nat/mips-linux-watch.c: Likewise.
3278 * nios2-linux-tdep.c: Likewise.
3279 * nios2-tdep.c: Likewise.
3280 * objc-lang.c: Likewise.
3281 * objfiles.c: Likewise.
3282 * obsd-nat.c: Likewise.
3283 * opencl-lang.c: Likewise.
3284 * osabi.c: Likewise.
3285 * parse.c: Likewise.
3286 * ppc-linux-nat.c: Likewise.
3287 * ppc-sysv-tdep.c: Likewise.
3288 * ppcfbsd-nat.c: Likewise.
3289 * ppcfbsd-tdep.c: Likewise.
3290 * ppcnbsd-nat.c: Likewise.
3291 * ppcnbsd-tdep.c: Likewise.
3292 * ppcobsd-nat.c: Likewise.
3293 * ppcobsd-tdep.c: Likewise.
3294 * printcmd.c: Likewise.
3295 * procfs.c: Likewise.
3296 * prologue-value.c: Likewise.
3297 * psymtab.c: Likewise.
3298 * python/py-lazy-string.c: Likewise.
3299 * python/py-value.c: Likewise.
3300 * regcache.c: Likewise.
3301 * reggroups.c: Likewise.
3302 * registry.c: Likewise.
3303 * remote-sim.c: Likewise.
3304 * remote.c: Likewise.
3305 * rs6000-aix-tdep.c: Likewise.
3306 * rs6000-tdep.c: Likewise.
3307 * s390-linux-tdep.c: Likewise.
3308 * score-tdep.c: Likewise.
3309 * ser-base.c: Likewise.
3310 * ser-mingw.c: Likewise.
3311 * sh-tdep.c: Likewise.
3312 * sh64-tdep.c: Likewise.
3313 * solib-darwin.c: Likewise.
3314 * solib-spu.c: Likewise.
3315 * solib-svr4.c: Likewise.
3316 * source.c: Likewise.
3317 * sparc-nat.c: Likewise.
3318 * sparc-sol2-tdep.c: Likewise.
3319 * sparc-tdep.c: Likewise.
3320 * sparc64-sol2-tdep.c: Likewise.
3321 * sparc64-tdep.c: Likewise.
3322 * sparc64fbsd-tdep.c: Likewise.
3323 * sparc64nbsd-tdep.c: Likewise.
3324 * sparc64obsd-tdep.c: Likewise.
3325 * sparcnbsd-tdep.c: Likewise.
3326 * sparcobsd-tdep.c: Likewise.
3327 * spu-multiarch.c: Likewise.
3328 * spu-tdep.c: Likewise.
3329 * stabsread.c: Likewise.
3330 * stack.c: Likewise.
3331 * symfile.c: Likewise.
3332 * symtab.c: Likewise.
3333 * target-descriptions.c: Likewise.
3334 * target-memory.c: Likewise.
3335 * target.c: Likewise.
3336 * tic6x-linux-tdep.c: Likewise.
3337 * tic6x-tdep.c: Likewise.
3338 * tilegx-linux-nat.c: Likewise.
3339 * tilegx-tdep.c: Likewise.
3340 * top.c: Likewise.
3341 * tramp-frame.c: Likewise.
3342 * tui/tui-out.c: Likewise.
3343 * tui/tui-winsource.c: Likewise.
3344 * ui-out.c: Likewise.
3345 * user-regs.c: Likewise.
3346 * utils.c: Likewise.
3347 * v850-tdep.c: Likewise.
3348 * valops.c: Likewise.
3349 * value.c: Likewise.
3350 * varobj.c: Likewise.
3351 * vax-nat.c: Likewise.
3352 * xml-syscall.c: Likewise.
3353 * xml-tdesc.c: Likewise.
3354 * xstormy16-tdep.c: Likewise.
3355 * xtensa-linux-nat.c: Likewise.
3356 * xtensa-tdep.c: Likewise.
3357
e76df0d0
GB
33582014-08-07 Gary Benson <gbenson@redhat.com>
3359
3360 * common/common-defs.h: Include common-utils.h.
3361 * defs.h: Do not include common-utils.h.
3362 * common/gdb_assert.h: Likewise.
3363 * darwin-nat.h: Likewise.
3364 * nat/linux-btrace.c: Likewise.
3365 * target/waitstatus.h: Likewise.
3366
4cb9c816
GB
33672014-08-07 Gary Benson <gbenson@redhat.com>
3368
3369 * common/common-defs.h: Include ptid.h.
3370 * defs.h: Do not include ptid.h.
3371 * inferior.h: Likewise.
3372 * infrun.h: Likewise.
3373 * nat/linux-btrace.h: Likewise.
3374 * nat/linux-osdata.h: Likewise.
3375 * target/waitstatus.h: Likewise.
3376
3995eeee
GB
33772014-08-07 Gary Benson <gbenson@redhat.com>
3378
3379 * common/common-defs.h: Include gdb_locale.h.
3380 * defs.h: Do not include gdb_locale.h.
3381
cb9f1a9b
GB
33822014-08-07 Gary Benson <gbenson@redhat.com>
3383
3384 * common/common-defs.h: Include gdb/signals.h.
3385 * defs.h: Do not include gdb/signals.h.
3386
a5fceff8
GB
33872014-08-07 Gary Benson <gbenson@redhat.com>
3388
3389 * common/common-defs.h: Include pathmax.h.
3390 * defs.h: Do not include pathmax.h.
3391
b9391142
GB
33922014-08-07 Gary Benson <gbenson@redhat.com>
3393
3394 * common/common-defs.h: Include libiberty.h.
3395 * defs.h: Do not include libiberty.h.
3396 * common/queue.h: Likewise.
3397 * cp-name-parser.y: Likewise.
3398 * mi/mi-cmd-catch.c: Likewise.
3399 * python/python.c: Likewise.
3400
0e443c87
GB
34012014-08-07 Gary Benson <gbenson@redhat.com>
3402
3403 * common/common-defs.h: Include ansidecl.h.
3404 * defs.h: Do not include ansidecl.h.
3405 * common/buffer.h: Likewise.
3406 * common/common-utils.h: Likewise.
3407
8ebb3f56
GB
34082014-08-07 Gary Benson <gbenson@redhat.com>
3409
3410 * common/common-defs.h: Include stddef.h.
3411 * defs.h: Do not include stddef.h.
3412 * common/common-utils.h: Likewise.
3413 * amd64fbsd-nat.c: Likewise.
3414 * bcache.c: Likewise.
3415 * charset.c: Likewise.
3416 * common/buffer.h: Likewise.
3417 * common/vec.h: Likewise.
3418 * i386bsd-nat.c: Likewise.
3419 * nat/linux-btrace.h: Likewise.
3420 * ppcfbsd-nat.c: Likewise.
3421 * ppcnbsd-tdep.h: Likewise.
3422 * ppcobsd-nat.c: Likewise.
3423 * ppcobsd-tdep.h: Likewise.
3424 * python/py-gdb-readline.c: Likewise.
3425
8980bdf6
GB
34262014-08-07 Gary Benson <gbenson@redhat.com>
3427
3428 * common/common-defs.h: Include stdarg.h.
3429 * defs.h: Do not include stdarg.h.
3430 * ada-lang.c: Likewise.
3431 * common/common-utils.h: Likewise.
3432 * guile/scm-string.c: Likewise.
3433 * guile/scm-utils.c: Likewise.
3434 * m32c-tdep.c: Likewise.
3435
d7096f71
GB
34362014-08-07 Gary Benson <gbenson@redhat.com>
3437
3438 * common/common-defs.h: Include stdlib.h.
3439 * defs.h: Do not include stdlib.h.
3440 * addrmap.c: Likewise.
3441 * bcache.c: Likewise.
3442 * common/buffer.c: Likewise.
3443 * common/common-utils.c: Likewise.
3444 * cp-name-parser.y: Likewise.
3445 * go32-nat.c: Likewise.
3446 * mn10300-linux-tdep.c: Likewise.
3447 * nat/linux-osdata.c: Likewise.
3448 * tui/tui.c: Likewise.
3449 * windows-nat.c: Likewise.
3450
d02f550d
GB
34512014-08-07 Gary Benson <gbenson@redhat.com>
3452
3453 * common/common-defs.h: Include stdio.h.
3454 * defs.h: Do not include stdio.h.
3455 * ada-lang.c: Likewise.
3456 * common/buffer.c: Likewise.
3457 * common/common-utils.c: Likewise.
3458 * cp-name-parser.y: Likewise.
3459 * gnu-nat.c: Likewise.
3460 * go32-nat.c: Likewise.
3461 * i386gnu-nat.c: Likewise.
3462 * proc-api.c: Likewise.
3463 * proc-events.c: Likewise.
3464 * proc-flags.c: Likewise.
3465 * proc-why.c: Likewise.
3466 * python/python-internal.h: Likewise.
3467 * target-memory.c: Likewise.
3468 * tui/tui-io.c: Likewise.
3469 * tui/tui.c: Likewise.
3470
b6d7a4bf
SM
34712014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3472
3473 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3474 (scan_dyntag_auxv): Same.
3475
af19829b
YQ
34762014-08-06 Yao Qi <yao@codesourcery.com>
3477
3478 * amd64-linux-nat.c: Remove duplicated include
3479 "x86-linux-nat.h".
3480 * i386-linux-nat.c: Likewise.
3481
8e07a239
YQ
34822014-08-06 Yao Qi <yao@codesourcery.com>
3483
3484 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3485 operand" with "Special opcode" in comments.
3486
7bfe8241
GB
34872014-08-05 Gary Benson <gbenson@redhat.com>
3488
3489 * interps.c (initialize_interps): Remove prototype.
3490 (interpreter_initialized): Remove static global.
3491 (interp_add): Do not call initialize_interps.
3492 (initialize_interps): Remove function.
3493
d6c95504
GB
34942014-08-05 Gary Benson <gbenson@redhat.com>
3495
3496 * utils.c (vwarning): Remove spurious va_end.
3497
241fd515
AM
34982014-08-05 Alan Modra <amodra@gmail.com>
3499
3500 * charset.c (convert_between_encodings): Cast result of obstack_base.
3501 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3502 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3503 (read_unwind_info): Use size_t for some locals.
3504 * jit.c (finalize_symtab): Likewise.
3505 * utils.c (hashtab_obstack_allocate): Likewise.
3506 * symmisc.c (print_objfile_statistics): Update format strings.
3507
dc304a94
JK
35082014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3509
3510 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3511 (Changes in GDB 7.8): ... here.
3512
3cecbbbe
TT
35132014-08-04 Tom Tromey <tromey@redhat.com>
3514
3515 * target.c (set_targetdebug): New function.
3516 (initialize_targets): Pass set_targetdebug when creating "set
3517 debug target".
3518
6908c509
JB
35192014-08-01 Joel Brobecker <brobecker@adacore.com>
3520
3521 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3522 if detecting a variable-sized field that is not the last field.
3523 Fix struct type length computation.
3524
53e8f97d
JB
35252014-08-01 Joel Brobecker <brobecker@adacore.com>
3526
3527 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3528 Add debug trace.
3529
e068c55d
JB
35302014-08-01 Joel Brobecker <brobecker@adacore.com>
3531
3532 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3533 Remove "+ 8" offset in computation of CHAIN_VMA.
3534
4d4ca2a1
DE
35352014-07-31 Doug Evans <dje@google.com>
3536
3537 * inflow.c (child_terminal_inferior): Add comment.
3538 (child_terminal_ours_for_output): Add comment.
3539 (child_terminal_ours): Add comment.
3540 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3541 (linux_nat_terminal_ours): Add comment.
3542
462f517e
GB
35432014-07-31 Gary Benson <gbenson@redhat.com>
3544
3545 * common/btrace-common.h: Do not include defs.h or server.h.
3546 * nat/mips-linux-watch.h: Likewise.
3547 * gdb-dlfcn.h: Do not include defs.h.
3548 * tracefile.h: Likewise.
3549
74228e77
RM
35502014-07-30 Roland McGrath <mcgrathr@google.com>
3551
3552 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3553
014f9477
TT
35542014-07-30 Tom Tromey <tromey@redhat.com>
3555
3556 * bsd-kvm.c (bsd_kvm_open): Constify.
3557 * corelow.c (core_open): Constify.
3558 * ctf.c (ctf_open): Constify.
3559 * dbug-rom.c (dbug_open): Constify.
3560 * exec.c (exec_open): Constify.
3561 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3562 * microblaze-rom.c (picobug_open): Constify.
3563 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3564 Constify.
3565 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3566 * record-btrace.c (record_btrace_open): Constify.
3567 * record-full.c (record_full_core_open_1, record_full_open_1)
3568 (record_full_open): Constify.
3569 * remote-m32r-sdi.c (m32r_open): Constify.
3570 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3571 (rockhopper_open, lsi_open): Constify.
3572 * remote-sim.c (gdbsim_open): Constify.
3573 * remote.c (remote_open, extended_remote_open, remote_open_1):
3574 Constify.
3575 * target.h (struct target_ops) <to_open>: Make "arg" const.
3576 * tracefile-tfile.c (tfile_open): Constify.
3577
e799154c
TT
35782014-07-30 Tom Tromey <tromey@redhat.com>
3579
3580 * breakpoint.c (map_breakpoint_numbers): Update.
3581 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3582 (get_number_const): New function.
3583 (get_number): Rewrite using get_number_const.
3584 (init_number_or_range): Make "string" const.
3585 (number_is_in_list): Make "list" const.
3586 * cli/cli-utils.h (get_number_const): Declare.
3587 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3588 (init_number_or_range, number_is_in_list): Update.
3589 * printcmd.c (map_display_numbers): Update.
3590 * value.c (value_from_history_ref): Constify.
3591 * value.h (value_from_history_ref): Update.
3592
5f08566b
TT
35932014-07-30 Tom Tromey <tromey@redhat.com>
3594
3595 * corefile.c (hook_type, call_extra_exec_file_hooks)
3596 (specify_exec_file_hook): Constify.
3597 * exec.c (exec_file_attach): Make "filename" const.
3598 * gdbcore.h (deprecated_exec_file_display_hook)
3599 (specify_exec_file_hook, exec_file_attach): Constify.
3600 * main.c (captured_main): Use catch_command_errors_const.
3601
8981c758
TT
36022014-07-30 Tom Tromey <tromey@redhat.com>
3603
3604 * target.c (open_target): New function.
3605 (add_target_with_completer, add_deprecated_target_alias): Use
3606 set_cmd_sfunc, set_cmd_context.
3607 (debug_to_open): Remove.
3608 (setup_target_debug): Update.
3609
a1c7835a
YQ
36102014-07-30 Yao Qi <yao@codesourcery.com>
3611
3612 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3613 comments.
3614 * parse.c (exp_iterate): Update comments.
3615
976411d6
GB
36162014-07-30 Gary Benson <gbenson@redhat.com>
3617
3618 * common/common-defs.h: New file.
3619 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3620 * defs.h: Include common-defs.h.
3621 Do not include config.h or build-gnulib/config.h.
3622
5d4848a4
GB
36232014-07-30 Gary Benson <gbenson@redhat.com>
3624
3625 * common/common-utils.h: Do not include config.h.
3626 * nat/linux-btrace.h: Likewise.
3627
d41f6d8e
GB
36282014-07-30 Gary Benson <gbenson@redhat.com>
3629
3630 * btrace.c: Include defs.h.
3631 * common/ptid.c: Include defs.h or server.h as appropriate.
3632 * nat/mips-linux-watch.c: Likewise.
3633
84202f9c
TT
36342014-07-29 Tom Tromey <tromey@redhat.com>
3635
3636 * target.c (target_is_pushed): Simplify.
3637
2530441c
JB
36382014-07-29 Joel Brobecker <brobecker@adacore.com>
3639
3640 GDB 7.8 released.
3641
7e09a223
YQ
36422014-07-29 Yao Qi <yao@codesourcery.com>
3643
3644 PR gdb/17206
3645 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3646
7ebdbe92
DE
36472014-07-28 Doug Evans <xdje42@gmail.com>
3648
3649 PR guile/17203
3650 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3651 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3652 parameters.
3653
f347ffc9
WN
36542014-07-28 Will Newton <will.newton@linaro.org>
3655
3656 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3657 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3658 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3659 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3660 (THUMB2_EABI_SYSCALL): Likewise.
3661 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3662 struct tramp_frame.
3663 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3664 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3665
37c5f1f7
DE
36662014-07-27 Doug Evans <xdje42@gmail.com>
3667
3668 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3669
0c3abbc7
DE
36702014-07-27 Doug Evans <xdje42@gmail.com>
3671
3672 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3673
e76c5d17
DE
36742014-07-26 Ludovic Courtès <ludo@gnu.org>
3675 Doug Evans <xdje42@gmail.com>
3676
3677 PR guile/17146
3678 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3679 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3680 * configure.ac: Try to use guild to compile an scm file, if it fails
3681 then disable guile support.
3682 * configure: Regenerate.
3683 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3684 GUILE_FILE_LIST.
3685 (GUILE_COMPILED_FILES): New variable.
3686 (GUILE_FILES) Update.
3687 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3688 (stamp-guile): Compile scm files.
3689 * guile/guile.c (boot_guile_support): New function.
3690 (standard_throw_args_p): New function.
3691 (print_standard_throw_error, print_throw_error): New functions.
3692 (handle_boot_error): New function.
3693 (initialize_scheme_side): Rewrite to call boot_guile_support.
3694 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3695 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3696
186fcde0
DE
36972014-07-26 Ludovic Courtès <ludo@gnu.org>
3698 Doug Evans <xdje42@gmail.com>
3699
3700 PR guile/17146
3701 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3702 * guile/lib/gdb/support.scm: New file.
3703 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3704 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3705 All uses updated.
3706 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3707 All uses updated.
3708 (%assert-type): Ditto, and renamed to assert-type.
3709 (%exception-print-style): Delete.
3710
4df42755
DE
37112014-07-26 Doug Evans <xdje42@gmail.com>
3712
3713 PR build/17105
3714 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3715 * configure: Regenerate.
3716 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3717 PYTHON_FILES.
3718 (PYTHON_FILES): New variable.
3719 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3720 (GUILE_FILES): New variable.
3721 (stamp-python, install-python, uninstall-python): Handle empty
3722 file list.
3723 (stamp-guile, install-guile, uninstall-guile): Ditto.
3724
ee7333ae
DE
37252014-07-26 Doug Evans <xdje42@gmail.com>
3726
3727 PR guile/17177
3728 * guile/lib/gdb.scm (pretty-printers): Export.
3729 (set-pretty-printers!): Export.
3730 * guile/lib/gdb/printing.scm (gdb module): Update.
3731 (prepend-pretty-printer!, append-pretty-printer!): Update.
3732 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3733 (pretty_printer_list_var): Delete.
3734 (pretty_printer_list): New static global.
3735 (gdbscm_pretty_printers): New function.
3736 (gdbscm_set_pretty_printers_x): New function.
3737 (ppscm_find_pretty_printer_from_gdb): Update.
3738 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3739 (gdbscm_initialize_pretty_printers): Update.
3740
74edf516
DE
37412014-07-26 Doug Evans <xdje42@gmail.com>
3742
3743 PR 17185
3744 * configure.ac: Add check for header gc/gc.h.
3745 Add check for function setenv.
3746 * configure: Regenerate.
3747 * config.in: Regenerate.
3748 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3749
d54398a7
MR
37502014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3751
3752 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3753 variation in gdbarch matching.
3754
ab16fce8
TT
37552014-07-25 Tom Tromey <tromey@redhat.com>
3756
3757 * exec.c (using_exec_ops): Remove.
3758 (exec_close_1): Update. Remove extraneous block, reindent.
3759 (add_target_sections): Use target_is_pushed.
3760
88056fbb
PA
37612014-07-25 Pedro Alves <palves@redhat.com>
3762
3763 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3764 * monitor.c (monitor_create_inferior): Likewise.
3765 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3766 * remote-sim.c (gdbsim_create_inferior): Likewise.
3767 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3768 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3769 * windows-nat.c (do_initial_windows_stuff): Likewise.
3770
70509625
PA
37712014-07-25 Pedro Alves <palves@redhat.com>
3772
3773 * NEWS: Mention signal passing and "signal" command changes.
3774 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3775 comment.
3776 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3777 call.
3778 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3779 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3780 (jump_command): Adjust clear_proceed_status call.
3781 (signal_command): Warn if other thread that are resumed have
3782 signals that will be delivered. Adjust clear_proceed_status call.
3783 (until_next_command, finish_command)
3784 (proceed_after_attach_callback, attach_command_post_wait)
3785 (attach_command): Adjust clear_proceed_status call.
3786 * infrun.c (proceed_after_vfork_done): Likewise.
3787 (proceed_after_attach_callback): Adjust comment.
3788 (clear_proceed_status_thread): Clear stop_signal if not in pass
3789 state.
3790 (clear_proceed_status_callback): Delete.
3791 (clear_proceed_status): New 'step' parameter. Only clear the
3792 proceed status of threads the command being prepared is about to
3793 resume.
3794 (proceed): If passed in an explicit signal, override stop_signal
3795 with it. Don't pass the last stop signal to the thread we're
3796 resuming.
3797 (init_wait_for_inferior): Adjust clear_proceed_status call.
3798 (switch_back_to_stepped_thread): Clear the signal if it should not
3799 be passed.
3800 * infrun.h (clear_proceed_status): New 'step' parameter.
3801 (user_visible_resume_ptid): Add comment.
3802 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3803 signal is in pass state.
3804 * remote.c (append_pending_thread_resumptions): Likewise.
3805 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3806
d8be2939
TT
38072014-07-25 Tom Tromey <tromey@redhat.com>
3808
3809 * target.h (target_stopped_data_address)
3810 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3811 parentheses.
3812
7d0d9d2b
PL
38132014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3814
3815 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3816 comments.
3817 (avr_pointer_to_address): Likewise.
3818
e9e7f724
TT
38192014-07-24 Tom Tromey <tromey@redhat.com>
3820
3821 * monitor.c (compile_pattern): Update.
3822 * target.h (struct target_ops) <to_shortname, to_longname,
3823 to_doc>: Now const.
3824
1947513d
TT
38252014-07-24 Tom Tromey <tromey@redhat.com>
3826
3827 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3828 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3829 (add_info_alias, add_com): Make "doc" const.
3830 (print_doc_line): Make "str" const.
3831 (delete_cmd): Update.
3832 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3833 (print_doc_line): Update.
3834 * cli/cli-script.c (document_command): Update.
3835 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3836 (add_com, add_info, add_info_alias): Update.
3837 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3838 * python/py-cmd.c (cmdpy_destroyer): Update.
3839
64e61d29
TT
38402014-07-24 Tom Tromey <tromey@redhat.com>
3841
3842 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3843 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3844 (help_cmd_list): Constify.
3845 (lookup_cmd): Update.
3846 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3847 const.
3848 (help_cmd_list, apropos_cmd): Update.
3849 * cli/cli-script.c (show_user): Update.
3850 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3851 * cli/cli-setshow.h (cmd_show_list): Update.
3852 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3853 (cmd_show_list): Update.
3854 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3855 * python/py-cmd.c (cmdpy_destroyer): Update.
3856
429e55ea
TT
38572014-07-24 Tom Tromey <tromey@redhat.com>
3858
3859 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3860 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3861 const.
3862 * command.h (deprecate_cmd): Update.
3863 * maint.c (maintenance_do_deprecate): Add casts.
3864
64669f3b
TT
38652014-07-24 Tom Tromey <tromey@redhat.com>
3866
3867 * cli/cli-decode.c (help_cmd): Make parameter "const".
3868 * cli/cli-decode.h (help_cmd): Update.
3869
d3d3328b
TT
38702014-07-24 Tom Tromey <tromey@redhat.com>
3871
3872 * stack.c (up_silently_base, down_silently_base): Make argument
3873 const.
3874
414842dc
TT
38752014-07-24 Tom Tromey <tromey@redhat.com>
3876
3877 * solib.c (solib_add): Make "pattern" const.
3878 * solib.h (solib_add): Update.
3879
baa336ce
TT
38802014-07-24 Tom Tromey <tromey@redhat.com>
3881
3882 * remote.c (remote_serial_open, print_packet, putpkt)
3883 (putpkt_binary): Constify.
3884 * remote.h (putpkt): Update.
3885
5a19e2d0
TT
38862014-07-24 Tom Tromey <tromey@redhat.com>
3887
3888 * monitor.c (monitor_open): Make "args" const.
3889 * monitor.h (monitor_open): Update.
3890
fc4baa5e
TT
38912014-07-24 Tom Tromey <tromey@redhat.com>
3892
3893 * maint.c (match_bfd_flags): Make "string" const.
3894 (print_bfd_section_info): Remove casts.
3895 (print_objfile_section_info): Make "string" const.
3896
0d5f0dbe
TT
38972014-07-24 Tom Tromey <tromey@redhat.com>
3898
3899 * inf-child.c (inf_child_open_target): Make "arg" const.
3900 * inf-child.h (inf_child_open_target): Update.
3901
41c77899
TT
39022014-07-24 Tom Tromey <tromey@redhat.com>
3903
3904 * environ.c (unset_in_environ): Make "var" const.
3905 * environ.h (unset_in_environ): Update.
3906
93db0d79
TT
39072014-07-24 Tom Tromey <tromey@redhat.com>
3908
3909 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3910 Make "cmd" const.
3911 (scan_filename_with_cleanup): Likewise.
3912 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3913 Make arguments const.
3914 (restore_command): Update.
3915
36d6eb95
PA
39162014-07-24 Pedro Alves <palves@redhat.com>
3917
3918 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3919
8009206a
TT
39202014-07-24 Tom Tromey <tromey@redhat.com>
3921 Gary Benson <gbenson@redhat.com>
3922
3923 * nat/linux-ptrace.c (additional_flags): New global.
3924 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3925 additional_flags; don't check GDBSERVER.
3926 (linux_ptrace_set_additional_flags): New function.
3927 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3928 Declare.
3929 * linux-nat.c (_initialize_linux_nat): Call
3930 linux_ptrace_set_additional_flags.
3931
a7068b60
TT
39322014-07-24 Tom Tromey <tromey@redhat.com>
3933
3934 * make-target-delegates (munge_type, write_debugmethod): New
3935 functions.
3936 (debug_names): New global.
3937 ($TARGET_DEBUG_PRINTER): New global.
3938 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3939 name.
3940 Write debug methods. Generate init_debug_target.
3941 * target-debug.h: New file.
3942 * target-delegates.c: Rebuild.
3943 * target.c: Include target-debug.h.
3944 (debug_target): Hoist definition.
3945 (target_kill, target_get_section_table, target_memory_map)
3946 (target_flash_erase, target_flash_done, target_detach)
3947 (target_disconnect, target_wait, target_resume)
3948 (target_pass_signals, target_program_signals, target_follow_fork)
3949 (target_mourn_inferior, target_search_memory)
3950 (target_thread_address_space, target_close)
3951 (target_find_new_threads, target_core_of_thread)
3952 (target_verify_memory, target_insert_mask_watchpoint)
3953 (target_remove_mask_watchpoint): Remove targetdebug code.
3954 (debug_to_post_attach, debug_to_prepare_to_store)
3955 (debug_to_files_info, debug_to_insert_breakpoint)
3956 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3957 (debug_to_region_ok_for_hw_watchpoint)
3958 (debug_to_can_accel_watchpoint_condition)
3959 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3960 (debug_to_watchpoint_addr_within_range)
3961 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3962 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3963 (debug_to_terminal_init, debug_to_terminal_inferior)
3964 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3965 (debug_to_terminal_save_ours, debug_to_terminal_info)
3966 (debug_to_load, debug_to_post_startup_inferior)
3967 (debug_to_insert_fork_catchpoint)
3968 (debug_to_remove_fork_catchpoint)
3969 (debug_to_insert_vfork_catchpoint)
3970 (debug_to_remove_vfork_catchpoint)
3971 (debug_to_insert_exec_catchpoint)
3972 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3973 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3974 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3975 (setup_target_debug): Call init_debug_target.
3976 * target.h (TARGET_DEBUG_PRINTER): New macro.
3977 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3978 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3979
2c51604d
GB
39802014-07-24 Gary Benson <gbenson@redhat.com>
3981
3982 * exceptions.h (throw_vfatal): Renamed to...
3983 (throw_vquit): New declaration.
3984 (throw_quit): Likewise.
3985 * exceptions.c (throw_vfatal): Renamed to...
3986 (throw_vquit): New function.
3987 (throw_quit): Likewise.
3988 (throw_error): Call throw_verror rather than throw_it.
3989 * utils.h (vfatal): Removed.
3990 (fatal): Likewise.
3991 * utils.c (vfatal): Removed.
3992 (fatal): Likewise.
3993 (internal_verror): Replaced call to fatal with call to throw_quit.
3994 (quit): Replaced calls to fatal with calls to throw_quit.
3995
34211963
ME
39962014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3997
3998 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3999 target_read_code.
4000
a52b4d3e
ME
40012014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4002
4003 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4004 less than zero in conditional expression.
4005
a8bdc56b
TT
40062014-07-23 Tom Tromey <tromey@redhat.com>
4007
4008 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4009 ($INTRO_PART): Don't match whitespace.
4010 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4011 argument matching.
4012 ($METHOD): Add $METHOD_TRAILER.
4013 (trim): Rewrite.
4014 (scan_target_h): New sub.
4015 Change main loop not to collect state.
4016 * target-delegates.c: Rebuild.
4017
91b52240
GB
40182014-07-23 Gary Benson <gbenson@redhat.com>
4019
4020 * cp-support.c (gdb_demangle): Fix build on systems without
4021 sigaltstack.
4022
45326f6f
JK
40232014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4024
4025 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4026 for reference entry value target data value.
4027
e214cf6c
JK
40282014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4029
4030 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4031 value_available_contents_eq.
4032
bddbbedd
PA
40332014-07-22 Pedro Alves <palves@redhat.com>
4034
4035 * value.c (allocate_optimized_out_value): Don't mark value as
4036 non-lazy.
4037
45c71484
JW
40382014-07-22 Jiong Wang <jiong.wang@arm.com>
4039
4040 * MAINTAINERS (Write After Approval): Update my email address.
4041
9597b22a
DE
40422014-07-20 Doug Evans <dje@google.com>
4043
4044 PR server/17147
4045 * remote.c (putpkt_binary): Add text to error message.
4046
91101fe5
YQ
40472014-07-20 Yao Qi <yao@codesourcery.com>
4048
4049 * eval.c: Remove "Chill" from comments.
4050 * gdbtypes.h: Likewise.
4051 * symtab.h: Likewise.
4052
c9402c95
YQ
40532014-07-20 Yao Qi <yao@codesourcery.com>
4054
4055 * std-operator.def: Update comments to TERNOP_SLICE.
4056
ae8fddda
YQ
40572014-07-20 Yao Qi <yao@codesourcery.com>
4058
4059 * std-operator.def: Remove BINOP_RANGE.
4060 * breakpoint.c (watchpoint_exp_is_const): Update.
4061 * expprint.c (dump_subexp_body_standard): Likewise.
4062 * eval.c (init_array_element): Remove dead code.
4063 (evaluate_subexp_standard): Likewise.
4064
9c816640
YQ
40652014-07-20 Yao Qi <yao@codesourcery.com>
4066
4067 * std-operator.def: Remove BINOP_IN.
4068 * breakpoint.c (watchpoint_exp_is_const): Update.
4069 * eval.c (evaluate_subexp_standard): Likewise.
4070 * expprint.c (dump_subexp_body_standard): Likewise.
4071
164224e9
ME
40722014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4073
4074 * microblaze-tdep.c (microblaze_register_names): Add
4075 the rshr and rslr register names.
4076 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4077 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4078 Use of tdesc_numbered_register. Use of
4079 microblaze_register_g_packet_guesses. Use of
4080 tdesc_use_registers. Use of set_gdbarch_register_type.
4081 (microblaze_register_g_packet_guesses): New.
4082 * microblaze-tdep.h (microblaze_reg_num): Add
4083 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4084 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4085 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4086 * features/microblaze-core.xml: New file.
4087 * features/microblaze-stack-protect.xml: New file.
4088 * features/microblaze-with-stack-protect.c: New file.
4089 * features/microblaze-with-stack-protect.xml: New file.
4090 * features/microblaze.xml: New file.
4091 * features/microblaze.c: New file.
4092 * features/Makefile (microblaze-with-stack-protect): Add
4093 microblaze-with-stack-protect microblaze and microblaze-expedite.
4094 * regformats/microblaze-with-stack-protect.dat: New file.
4095 * regformats/microblaze.dat: New file.
4096 * doc/gdb.texinfo (MicroBlaze Features): Added.
4097
e8b2341c
TT
40982014-07-18 Tom Tromey <tromey@redhat.com>
4099
4100 * exec.c (exec_ops): Now static.
4101 * exec.h (exec_ops): Don't declare.
4102
44e89118
TT
41032014-07-18 Tom Tromey <tromey@redhat.com>
4104
4105 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4106 to find_target_beneath.
4107 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4108 find_target_beneath.
4109 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4110
b0ed115f
TT
41112014-07-18 Tom Tromey <tromey@redhat.com>
4112
4113 PR gdb/17130:
4114 * utils.c (quit): Use target_supports_terminal_ours.
4115 * target.h (target_supports_terminal_ours): Declare.
4116 * target.c (target_supports_delete_record): Don't check
4117 to_delete_record against NULL.
4118 (target_supports_terminal_ours): New function.
4119
e75fdfca
TT
41202014-07-18 Tom Tromey <tromey@redhat.com>
4121
4122 PR gdb/17130:
4123 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4124 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4125 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4126 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4127 * windows-nat.c (windows_xfer_partial): Always delegate.
4128 * record-btrace.c (record_btrace_xfer_partial): Simplify
4129 delegation.
4130 (record_btrace_fetch_registers, record_btrace_store_registers)
4131 (record_btrace_prepare_to_store, record_btrace_resume)
4132 (record_btrace_wait, record_btrace_find_new_threads)
4133 (record_btrace_thread_alive): Likewise.
4134 * procfs.c (procfs_xfer_partial): Always delegate.
4135 * corelow.c (core_xfer_partial): Always delegate.
4136 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4137
83814951
TT
41382014-07-18 Tom Tromey <tromey@redhat.com>
4139
4140 * exec.c (exec_make_note_section): Move earlier.
4141
b8b8facf
DE
41422014-07-17 Doug Evans <dje@google.com>
4143
74b49205 4144 PR gdb/17170
b8b8facf
DE
4145 * maint.c (count_symtabs_and_blocks): Handle NULL
4146 current_program_space.
4147 (report_command_stats): Check global enabled flag in addition to
4148 recorded enabled flag.
4149 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4150
69ff6be5
PA
41512014-07-16 Pedro Alves <palves@redhat.com>
4152
4153 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4154
252db1b5
TT
41552014-07-16 Tom Tromey <tromey@redhat.com>
4156
4157 * target.h (struct target_ops) <to_delete_record>: Reformat
4158 comment.
4159
a432721e
TT
41602014-07-16 Tom Tromey <tromey@redhat.com>
4161
4162 * target-delegates.c: Rebuild.
4163
487d9753
PL
41642014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4165
4166 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4167 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4168 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4169 (avr_pointer_to_address): Likewise.
4170 (avr_address_class_type_flags): New function.
4171 (avr_address_class_type_flags_to_name): Likewise.
4172 (avr_address_class_name_to_type_flags): Likewise.
4173 (avr_gdbarch_init): Set address_class_type_flags,
4174 address_class_type_flags_to_name and
4175 address_class_name_to_type_flags.
4176
57745c90
PA
41772014-07-15 Pedro Alves <palves@redhat.com>
4178
4179 * linux-nat.c (kill_callback): Save errno and work with saved
4180 copy.
4181
2d40be18
SM
41822014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4183
4184 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4185
572f6555
EBM
41862014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4187
4188 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4189 breakpoint support correctly.
4190
cc1c52ad
PA
41912014-07-14 Pedro Alves <palves@redhat.com>
4192
4193 * utils.c (prompt_for_continue): Call target_terminal_ours.
4194
1e973570
PA
41952014-07-14 Pedro Alves <palves@redhat.com>
4196
4197 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4198 catch_errors. Don't re-enable stdin or notify observers where,
4199 and rethrow error.
4200 (fetch_inferior_event_wrapper): Delete.
4201
93d6eb10
PA
42022014-07-14 Pedro Alves <palves@redhat.com>
4203
4204 PR gdb/17072
4205 * top.c: Include "inf-loop.h".
4206 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4207 field.
4208 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4209 was async before.
4210 (gdb_readline_wrapper): Store whether the target is async, and
4211 make it sync.
4212
0017922d
PA
42132014-07-14 Pedro Alves <palves@redhat.com>
4214
4215 PR gdb/17072
4216 * top.c (gdb_readline_wrapper_line): Tweak comment.
4217 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4218 the input handler callback.
4219
94696ad3
PA
42202014-07-14 Pedro Alves <palves@redhat.com>
4221
4222 PR gdb/17072
4223 * main.c: Include event-top.h.
4224 (handle_command_errors): New function.
4225 (catch_command_errors, catch_command_errors_const): Use it.
4226
9d1e69a2
PA
42272014-07-14 Pedro Alves <palves@redhat.com>
4228
4229 * exceptions.c (catch_command_errors, catch_command_errors_const):
4230 Moved to main.c.
4231 * exceptions.h (catch_command_errors_ftype)
4232 (catch_command_errors_const_ftype): Moved to main.c.
4233 (catch_command_errors, catch_command_errors_const): Delete
4234 declarations.
4235 * main.c (catch_command_errors_ftype)
4236 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4237 (catch_command_errors, catch_command_errors_const)): Moved here
4238 from exceptions.c and make static.
4239
feefc97b
PA
42402014-07-14 Pedro Alves <palves@redhat.com>
4241
4242 * exceptions.c (print_any_exception): Delete.
4243 (catch_exceptions_with_msg): Use exception_print instead of
4244 print_any_exception.
4245 (catch_errors): Use exception_fprintf instead of
4246 print_any_exception.
4247 (catch_command_errors, catch_command_errors_const): Use
4248 exception_print instead of print_any_exception.
4249
c933f875
PA
42502014-07-14 Pedro Alves <palves@redhat.com>
4251
4252 * infcall.c (run_inferior_call): Set 'sync_execution' while
4253 running the inferior call.
4254
feb6f816
PA
42552014-07-14 Pedro Alves <palves@redhat.com>
4256
4257 * value.c (value_contents_equal): Delete function.
4258 * value.h (value_contents_equal): Delete declaration.
4259
d98b7a16
TT
42602014-07-14 Tom Tromey <tromey@redhat.com>
4261
4262 PR exp/17106:
4263 * gdbtypes.c (is_dynamic_type_internal): New function, from
4264 is_dynamic_type.
4265 (is_dynamic_type): Rewrite.
4266 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4267 (resolve_dynamic_struct): Likewise.
4268 (resolve_dynamic_type_internal): New function, from
4269 resolve_dynamic_type.
4270 (resolve_dynamic_type): Rewrite.
4271
548740d6
TT
42722014-07-14 Tom Tromey <tromey@redhat.com>
4273
4274 * target.c (target_require_runnable): Also check record_stratum.
4275 Update comment.
4276
808f7ab1
YQ
42772014-07-11 Yao Qi <yao@codesourcery.com>
4278
4279 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4280 thumb_instruction_restores_sp return true.
4281
540314bd
YQ
42822014-07-11 Yao Qi <yao@codesourcery.com>
4283
4284 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4285 (thumb_in_function_epilogue_p): Call
4286 thumb_instruction_restores_sp.
4287
1db01f22
YQ
42882014-07-11 Yao Qi <yao@codesourcery.com>
4289
4290 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4291 'add sp, #imm'.
4292 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4293
3116063b
GB
42942014-07-11 Gary Benson <gbenson@redhat.com>
4295
4296 * amd64-linux-nat.c (gdbcore.h): Remove include.
4297 (regset.h): Likewise.
4298 (nat/linux-btrace.h): Likewise.
4299 (btrace.h): Likewise.
4300 (gdb_assert.h): Likewise.
4301 (string.h): Likewise.
4302 (sys/uio.h): Likewise.
4303 (sys/debugreg.h): Likewise.
4304 (sys/syscall.h): Likewise.
4305 (sys/procfs.h): Likewise.
4306 (sys/user.h): Likewise.
4307 (asm/ptrace.h): Likewise.
4308 (i386-nat.h): Likewise.
4309 * i386-linux-nat.c (i386-nat.h): Likewise.
4310 (regset.h): Likewise.
4311 (target.h): Likewise.
4312 (linux-nat.h): Likewise.
4313 (nat/linux-btrace.h): Likewise.
4314 (btrace.h): Likewise.
4315 (gdb_assert.h): Likewise.
4316 (string.h): Likewise.
4317 (sys/uio.h): Likewise.
4318 (sys/user.h): Likewise.
4319 (sys/procfs.h): Likewise.
4320 (sys/reg.h): Likewise.
4321 (sys/debugreg.h): Likewise.
4322 (ORIG_EAX): Remove definition.
4323
040baaf6
GB
43242014-07-11 Gary Benson <gbenson@redhat.com>
4325
4326 * i386-linux-nat.h: New file.
4327 * x86-linux-nat.h: Likewise.
4328 * x86-linux-nat.c: Likewise.
4329 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4330 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4331 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4332 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4333 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4334 (PTRACE_SETREGSET): Likewise.
4335 (arch_lwp_info): Now in x86-linux-nat.c.
4336 (have_ptrace_getregset): Now in x86-linux-nat.h.
4337 (x86_linux_dr_get): Now in x86-linux-nat.c.
4338 (x86_linux_dr_set): Likewise.
4339 (x86_linux_dr_get_addr): Likewise.
4340 (x86_linux_dr_get_control): Likewise.
4341 (x86_linux_dr_get_status): Likewise.
4342 (update_debug_registers_callback): Likewise.
4343 (x86_linux_dr_set_control): Likewise.
4344 (x86_linux_dr_set_addr): Likewise.
4345 (x86_linux_prepare_to_resume): Likewise.
4346 (x86_linux_new_thread): Likewise.
4347 (x86_linux_new_fork): Likewise.
4348 (x86_linux_get_thread_area): Likewise.
4349 (super_post_startup_inferior): Likewise.
4350 (x86_linux_child_post_startup_inferior): Likewise.
4351 (AMD64_LINUX_USER64_CS): Likewise.
4352 (AMD64_LINUX_X32_DS): Likewise.
4353 (x86_linux_read_description): Likewise.
4354 (x86_linux_enable_btrace): Likewise.
4355 (x86_linux_disable_btrace): Likewise.
4356 (x86_linux_teardown_btrace): Likewise.
4357 (x86_linux_read_btrace): Likewise.
4358 (x86_linux_create_target): Likewise.
4359 (x86_linux_add_target): Likewise.
4360 * i386-linux-nat.c (x86-linux-nat.h): New include.
4361 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4362 (PTRACE_SETREGSET): Likewise.
4363 (arch_lwp_info): Now in x86-linux-nat.c.
4364 (have_ptrace_getregset): Now in x86-linux-nat.h.
4365 (x86_linux_dr_get): Now in x86-linux-nat.c.
4366 (x86_linux_dr_set): Likewise.
4367 (x86_linux_dr_get_addr): Likewise.
4368 (x86_linux_dr_get_control): Likewise.
4369 (x86_linux_dr_get_status): Likewise.
4370 (update_debug_registers_callback): Likewise.
4371 (x86_linux_dr_set_control): Likewise.
4372 (x86_linux_dr_set_addr): Likewise.
4373 (x86_linux_prepare_to_resume): Likewise.
4374 (x86_linux_new_thread): Likewise.
4375 (x86_linux_new_fork): Likewise.
4376 (x86_linux_get_thread_area): Likewise.
4377 (super_post_startup_inferior): Likewise.
4378 (x86_linux_child_post_startup_inferior): Likewise.
4379 (AMD64_LINUX_USER64_CS): Likewise.
4380 (AMD64_LINUX_X32_DS): Likewise.
4381 (x86_linux_read_description): Likewise.
4382 (x86_linux_enable_btrace): Likewise.
4383 (x86_linux_disable_btrace): Likewise.
4384 (x86_linux_teardown_btrace): Likewise.
4385 (x86_linux_read_btrace): Likewise.
4386 (x86_linux_create_target): Likewise.
4387 (x86_linux_add_target): Likewise.
4388
1aa7e42c
GB
43892014-07-11 Gary Benson <gbenson@redhat.com>
4390
4391 * amd64-linux-nat.c: Comment and whitespace changes.
4392 * i386-linux-nat.c: Comment and whitespace changes.
4393
c1e246a0
GB
43942014-07-11 Gary Benson <gbenson@redhat.com>
4395
4396 * amd64-linux-nat.c (x86_linux_create_target): New function.
4397 (x86_linux_add_target): Likewise.
4398 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4399 * i386-linux-nat.c (x86_linux_create_target): New function.
4400 (x86_linux_add_target): Likewise.
4401 (_initialize_i386_linux_nat): Delegate to the above new functions.
4402
8c420b8d
GB
44032014-07-11 Gary Benson <gbenson@redhat.com>
4404
4405 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4406 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4407 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4408 (ps_get_thread_area): Delegate to the above.
4409
cb1da100
GB
44102014-07-11 Gary Benson <gbenson@redhat.com>
4411
4412 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4413 x86_linux_read_description. All uses updated. amd64-specific
4414 code conditionalized. Conditionalized i386-specific code added.
4415 Redundant cast removed.
4416 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4417 x86_linux_read_description. All uses updated. i386-specific
4418 code conditionalized. Conditionalized amd64-specific code added.
4419 One sizeof replaced with the actual type it is describing.
4420
2acf3cd0
GB
44212014-07-11 Gary Benson <gbenson@redhat.com>
4422
4423 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4424 x86_linux_dr_get. All uses updated.
4425 (amd64_linux_dr_set): Renamed to
4426 x86_linux_dr_set. All uses updated.
4427 (amd64_linux_dr_get_addr): Renamed to
4428 x86_linux_dr_get_addr. All uses updated.
4429 (amd64_linux_dr_get_control): Renamed to
4430 x86_linux_dr_get_control. All uses updated.
4431 (amd64_linux_dr_get_status): Renamed to
4432 x86_linux_dr_get_status. All uses updated.
4433 (amd64_linux_dr_set_control): Renamed to
4434 x86_linux_dr_set_control. All uses updated.
4435 (amd64_linux_dr_set_addr): Renamed to
4436 x86_linux_dr_set_addr. All uses updated.
4437 (amd64_linux_prepare_to_resume): Renamed to
4438 x86_linux_prepare_to_resume. All uses updated.
4439 (amd64_linux_new_thread): Renamed to
4440 x86_linux_new_thread. All uses updated.
4441 (amd64_linux_new_fork): Renamed to
4442 x86_linux_new_fork. All uses updated.
4443 (amd64_linux_child_post_startup_inferior): Renamed to
4444 x86_linux_child_post_startup_inferior. All uses updated.
4445 (amd64_linux_enable_btrace): Renamed to
4446 x86_linux_enable_btrace. All uses updated.
4447 (amd64_linux_disable_btrace): Renamed to
4448 x86_linux_disable_btrace. All uses updated.
4449 (amd64_linux_teardown_btrace): Renamed to
4450 x86_linux_teardown_btrace. All uses updated.
4451 (amd64_linux_read_btrace): Renamed to
4452 x86_linux_read_btrace. All uses updated.
4453 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4454 x86_linux_dr_get. All uses updated.
4455 (i386_linux_dr_set): Renamed to
4456 x86_linux_dr_set. All uses updated.
4457 (i386_linux_dr_get_addr): Renamed to
4458 x86_linux_dr_get_addr. All uses updated.
4459 (i386_linux_dr_get_control): Renamed to
4460 x86_linux_dr_get_control. All uses updated.
4461 (i386_linux_dr_get_status): Renamed to
4462 x86_linux_dr_get_status. All uses updated.
4463 (i386_linux_dr_set_control): Renamed to
4464 x86_linux_dr_set_control. All uses updated.
4465 (i386_linux_dr_set_addr): Renamed to
4466 x86_linux_dr_set_addr. All uses updated.
4467 (i386_linux_prepare_to_resume): Renamed to
4468 x86_linux_prepare_to_resume. All uses updated.
4469 (i386_linux_new_thread): Renamed to
4470 x86_linux_new_thread. All uses updated.
4471 (i386_linux_new_fork): Renamed to
4472 x86_linux_new_fork. All uses updated.
4473 (i386_linux_child_post_startup_inferior): Renamed to
4474 x86_linux_child_post_startup_inferior. All uses updated.
4475 (i386_linux_enable_btrace): Renamed to
4476 x86_linux_enable_btrace. All uses updated.
4477 (i386_linux_disable_btrace): Renamed to
4478 x86_linux_disable_btrace. All uses updated.
4479 (i386_linux_teardown_btrace): Renamed to
4480 x86_linux_teardown_btrace. All uses updated.
4481 (i386_linux_read_btrace): Renamed to
4482 x86_linux_read_btrace. All uses updated.
4483
b9c1d481
AS
44842014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4485
4486 * remote.c (extended_remote_post_attach): New function.
4487 (init_extended_remote_ops): Install it as to_post_attach method.
4488
7180e04a
PA
44892014-07-09 Pedro Alves <palves@redhat.com>
4490
4491 * infcmd.c (attach_command_post_wait): Don't call
4492 target_terminal_inferior here.
4493 (attach_command): Call it here instead.
4494
9a9a7608
AB
44952014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4496
4497 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4498 field.
4499 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4500 from varobj.c, with additional checks.
4501 (c_varobj_ops): Fill in is_path_expr_parent field.
4502 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4503 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4504 field.
4505 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4506 ops method.
4507 (varobj_default_is_path_expr_parent): New function.
4508 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4509 (varobj_default_is_path_expr_parent): Declare new function.
4510
1f267ae3
MM
45112014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4512
4513 * infcmd.c (finish_backward): Turn internal error into normal error.
4514
b2ee242b
PA
45152014-07-07 Pedro Alves <palves@redhat.com>
4516
8a869bca 4517 PR gdb/17096
b2ee242b
PA
4518 * remote.c (async_handle_remote_sigint)
4519 (async_handle_remote_sigint_twice): Call
4520 gdb_call_async_signal_handler instead of
4521 mark_async_signal_handler.
4522
38e229b2
TT
45232014-07-07 Tom Tromey <tromey@redhat.com>
4524
4525 * target-delegates.c: Rebuild.
4526 * target.c (target_info_record): Remove.
4527 * record.c (info_record_command): Unconditionally call
4528 to_info_record.
4529 * target.h (struct target_ops) <to_info_record>: Use
4530 TARGET_DEFAULT_IGNORE.
4531 (target_info_record): Remove.
4532
f0f9ff95
TT
45332014-07-07 Tom Tromey <tromey@redhat.com>
4534
4535 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4536 TARGET_DEFAULT_NORETURN.
4537 * target.c (generic_tls_error): New function.
4538 (target_translate_tls_address): Don't search target stack.
4539 * target-delegates.c: Rebuild.
4540 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4541 stack.
4542 * linux-thread-db.c (thread_db_get_thread_local_address):
4543 Unconditionally call beneath target.
4544
4a5be5ee
MK
45452014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4546
4547 * cli/cli-logging.c (pop_output_files): Assign targerr to
4548 gdb_stdtargerr.
4549
92c3b204
AB
45502014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4551
4552 * MAINTAINERS (Write After Approval): Update my email address.
4553
9b11e3a7
GB
45542014-07-02 Gary Benson <gbenson@redhat.com>
4555
4556 * proc-service.c (ps_xfer_memory): Update comment.
4557 (ps_pstop): Remove unused function.
4558 (ps_pcontinue): Likewise.
4559 (ps_lstop): Likewise.
4560 (ps_lcontinue): Likewise.
4561 (ps_lgetxregsize): Likewise.
4562 (ps_lgetxregs): Likewise.
4563 (ps_lsetxregs): Likewise.
4564 (ps_plog): Likewise.
4565 (ps_ptread): Likewise.
4566 (ps_ptwrite): Likewise.
4567
cf363f18
MW
45682014-07-01 Mark Wielaard <mjw@redhat.com>
4569
4570 * dwarf2read.c (add_array_cv_type): New function.
4571 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4572 (read_tag_volatile_type): Likewise.
4573
82ae6c8d
TT
45742014-07-01 Tom Tromey <tromey@redhat.com>
4575
4576 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4577 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4578 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4579 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4580 * command.h (cmd_cfunc_ftype): Move earlier.
4581 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4582 (add_com, add_info): Use cmd_cfunc_ftype.
4583
96142726
TT
45842014-06-30 Tom Tromey <tromey@redhat.com>
4585
4586 * symtab.c (operator_chars): Make parameters and return type
4587 const.
4588 (file_matches): Make "files" const.
4589 (struct search_symbols_data) <files>: Now const.
4590 (search_symbols): Make "regexp" and "files" parameters const.
4591 Update.
4592 (symtab_symbol_info): Remove cast.
4593 (rbreak_command): Update.
4594 * symtab.h (search_symbols): Update.
4595
b67a2c6f
YQ
45962014-06-27 Yao Qi <yao@codesourcery.com>
4597
4598 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4599 Change parameter type to 'struct thread_info *'. Caller
4600 updated.
4601 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4602 Update declaration.
4603 * dummy-frame.c (struct dummy_frame_id): New.
4604 (dummy_frame_id_eq): New function.
4605 (struct dummy_frame) <id>: Change its type to 'struct
4606 dummy_frame_id'.
4607 (dummy_frame_push): Add parameter ptid and save it in
4608 dummy_frame_id.
4609 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4610 inferior_ptid.
4611 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4612 to inferior_ptid.
4613 (lookup_dummy_frame): Change parameter type to 'struct
4614 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4615 instead of frame_id_eq.
4616 (dummy_frame_pop): Add parameter ptid. Callers updated.
4617 Update comments. Compose dummy_frame_id and pass it to
4618 lookup_dummy_frame.
4619 (dummy_frame_discard): Add parameter ptid.
4620 (dummy_frame_sniffer): Compose dummy_frame_id and call
4621 dummy_frame_id_eq instead of frame_id_eq.
4622 (fprint_dummy_frames): Print ptid.
4623 * dummy-frame.h: Remove comments.
4624 (dummy_frame_push): Add ptid in declaration.
4625 (dummy_frame_pop, dummy_frame_discard): Likewise.
4626
5b10184c
TT
46272014-06-26 Tom Tromey <tromey@redhat.com>
4628
4629 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4630 * command.h (error_no_arg): Update.
4631
06900326
TT
46322014-06-26 Tom Tromey <tromey@redhat.com>
4633
4634 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4635 (do_show_command): Make "arg" const.
4636 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4637
c2bcbb1d
TT
46382014-06-26 Tom Tromey <tromey@redhat.com>
4639
4640 * record-full.c (record_full_get_bookmark): Make "args" const.
4641 (record_full_goto_bookmark): Make "raw_bookmark" const.
4642 * record.c (record_goto): New function.
4643 (cmd_record_goto): Use it. Now static.
4644 * record.h (record_goto): Declare.
4645 (cmd_record_goto): Remove declaration.
4646 * target-delegates.c: Rebuild.
4647 * target.h (struct target_ops) <to_get_bookmark,
4648 to_goto_bookmark>: Make parameter const.
4649
9cbe5fff
TT
46502014-06-26 Tom Tromey <tromey@redhat.com>
4651
4652 * defs.h (generic_load): Update.
4653 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4654 * monitor.c (monitor_load): Make "args" const.
4655 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4656 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4657 const.
4658 (mips_load): Make "file" const.
4659 * remote-sim.c (gdbsim_load): Make "args" const.
4660 * remote.c (remote_load): Make "name" const.
4661 * symfile.c (generic_load): Make "args" const.
4662 * target-delegates.c: Rebuild.
4663 * target.c (target_load): Make "arg" const.
4664 (debug_to_load): Make "args" const.
4665 * target.h (struct target_ops) <to_load>: Make parameter const.
4666 (target_load): Update.
4667
34a68019
TT
46682014-06-26 Tom Tromey <tromey@redhat.com>
4669
4670 PR symtab/16902:
4671 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4672 (dwarf2_physname, read_partial_die)
4673 (guess_partial_die_structure_name, fixup_partial_die)
4674 (guess_full_die_structure_name, anonymous_struct_prefix)
4675 (dwarf2_name): Use per-BFD obstack.
4676
efc889c1
YQ
46772014-06-26 Yao Qi <yao@codesourcery.com>
4678
4679 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4680 dummyframe and this_id into inner block below.
4681
4395285e
YQ
46822014-06-26 Yao Qi <yao@codesourcery.com>
4683
4684 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4685 with "signal_pass[0]" in the initialization of signal_pass.
4686
aef92902
MM
46872014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4688
4689 * record-btrace.c (record_btrace_generating_corefile)
4690 (record_btrace_prepare_to_generate_core)
4691 (record_btrace_done_generating_core): New.
4692 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4693 (record_btrace_store_registers, record_btrace_prepare_to_store):
4694 Forward request when generating a core file.
4695 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4696 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4697 to_done_generating_core.
4698
5fff78c4
MM
46992014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4700
4701 * target.h (target_ops) <to_prepare_to_generate_core>
4702 <to_done_generating_core>: New.
4703 (target_prepare_to_generate_core, target_done_generating_core): New.
4704 * target.c (target_prepare_to_generate_core)
4705 (target_done_generating_core): New.
4706 * target-delegates.c: Regenerate.
4707 * gcore.c: (write_gcore_file): Rename to ...
4708 (write_gcore_file_1): ...this.
4709 (write_gcore_file): Call target_prepare_to_generate_core
4710 and target_done_generating_core.
4711
1d1f1ccb
MM
47122014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4713
4714 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4715 * gcore.c (write_gcore_file): Free memory returned from
4716 make_corefile_notes.
4717 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4718 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4719
3343ef86
YQ
47202014-06-24 Yao Qi <yao@codesourcery.com>
4721
4722 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4723 (arm_linux_init_abi): Set skip_trampoline_code with
4724 gdbarch_skip_trampoline_code instead of
4725 find_solib_trampoline_target.
4726
18d18ac8
YQ
47272014-06-24 Yao Qi <yao@codesourcery.com>
4728
4729 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4730 arm_skip_bx_reg returns non-zero.
4731
80d8d390
YQ
47322014-06-24 Yao Qi <yao@codesourcery.com>
4733
4734 * arm-tdep.c (arm_skip_bx_reg): New function.
4735 (arm_skip_stub): Call arm_skip_bx_reg.
4736
6a18a01c
DB
47372014-06-23 Don Breazeal <donb@codesourcery.com>
4738
4739 * MAINTAINERS: Add myself as write-after-approval maintainer.
4740
8e9db26e
PA
47412014-06-23 Pedro Alves <palves@redhat.com>
4742
4743 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4744 DR_CONTROL before setting DR0..DR3.
4745 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4746 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4747 bits of DR_CONTROL related to the debug register slot being
4748 disabled. If all slots are vacant, clear local slowdown as well,
4749 and assert DR_CONTROL is 0.
4750
70afc5b7
SC
47512014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4752
4753 * python/lib/gdb/command/xmethods.py
4754 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4755 current progspace only if the string "progspace" matches LOCUS_RE.
4756
840ed64d
JK
47572014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4758
4759 Fix --with-system-readline with readline-6.3 patch 5.
4760 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4761 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4762 types.
4763
26f2dc30
TT
47642014-06-20 Tom Tromey <tromey@redhat.com>
4765
4766 * dwarf2read.c (dw2_get_real_path): Use correct type in
4767 OBSTACK_CALLOC.
4768 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4769
125f8a3d
GB
47702014-06-20 Gary Benson <gbenson@redhat.com>
4771
4772 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4773 * common/glibc_thread_db.h: Likewise.
4774 * common/i386-cpuid.h: Likewise.
4775 * common/i386-gcc-cpuid.h: Likewise.
4776 * common/linux-btrace.h: Likewise.
4777 * common/linux-osdata.h: Likewise.
4778 * common/linux-procfs.h: Likewise.
4779 * common/linux-ptrace.h: Likewise.
4780 * common/mips-linux-watch.h: Likewise.
4781 * common/linux-btrace.c: Moved to nat.
4782 * common/linux-osdata.c: Likewise.
4783 * common/linux-procfs.c: Likewise.
4784 * common/linux-ptrace.c: Likewise.
4785 * common/mips-linux-watch.c: Likewise.
4786 * nat/gdb_thread_db.h: Moved from common.
4787 * nat/glibc_thread_db.h: Likewise.
4788 * nat/i386-cpuid.h: Likewise.
4789 * nat/i386-gcc-cpuid.h: Likewise.
4790 * nat/linux-btrace.c: Likewise.
4791 * nat/linux-btrace.h: Likewise.
4792 * nat/linux-osdata.c: Likewise.
4793 * nat/linux-osdata.h: Likewise.
4794 * nat/linux-procfs.c: Likewise.
4795 * nat/linux-procfs.h: Likewise.
4796 * nat/linux-ptrace.c: Likewise.
4797 * nat/linux-ptrace.h: Likewise.
4798 * nat/mips-linux-watch.c: Likewise.
4799 * nat/mips-linux-watch.h: Likewise.
4800 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4801 (object file files): Reordered.
4802 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4803 of glibc_thread_db.h.
4804
42995dbd
GB
48052014-06-20 Gary Benson <gbenson@redhat.com>
4806
4807 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4808 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4809 (i386_dr_low): Likewise.
4810 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4811 (i386_dr_low_set_addr): Likewise.
4812 (i386_dr_low_get_addr): Likewise.
4813 (i386_dr_low_can_set_control): Likewise.
4814 (i386_dr_low_set_control): Likewise.
4815 (i386_dr_low_get_control): Likewise.
4816 (i386_dr_low_get_status): Likewise.
4817 (i386_get_debug_register_length): Likewise.
4818 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4819 (i386_dr_low): Likewise.
4820 * nat/i386-dregs.c (i386-low.h): Remove include.
4821 (i386-nat.h): Likewise.
4822 (nat/i386-dregs.h): New include.
4823 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4824 (i386_dr_low_set_addr): Likewise.
4825 (i386_dr_low_get_addr): Likewise.
4826 (i386_dr_low_can_set_control): Likewise.
4827 (i386_dr_low_set_control): Likewise.
4828 (i386_dr_low_get_control): Likewise.
4829 (i386_dr_low_get_status): Likewise.
4830 (i386_get_debug_register_length): Likewise.
4831 (debug_hw_points): Likewise.
4832
3ed9baed
IB
48332014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4834
4835 * Makefile.in (SFILES): Add d-exp.y.
4836 (YYFILES): Add d-exp.c.
4837 (YYOBJ): Add d-exp.o.
4838 (local-maintainer-clean): Delete d-exp.c.
4839 * d-exp.y: New file.
4840 * d-lang.h (d_parse): New declaration.
4841 (d_error): New declaration.
4842 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4843 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4844 PREC_ORDER operators.
4845 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4846
78c164b0
YQ
48472014-06-19 Yao Qi <yao@codesourcery.com>
4848
4849 * gdbthread.h (any_running): Remove the declaration.
4850 * thread.c (any_running): Remove.
4851
f6e29b6e
YQ
48522014-06-19 Yao Qi <yao@codesourcery.com>
4853
4854 * gdbthread.h (struct thread_info) <state>: Change its type to
4855 'enum thread_state'. Update comments.
4856
034f788c
PA
48572014-06-19 Pedro Alves <palves@redhat.com>
4858
4859 * gdbthread.h (ALL_THREADS): Delete.
4860 (ALL_NON_EXITED_THREADS): New macro.
4861 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4862 instead of ALL_THREADS.
4863 * infrun.c (find_thread_needs_step_over)
4864 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4865 instead of ALL_THREADS.
4866 * record-btrace.c (record_btrace_open)
4867 (record_btrace_stop_recording, record_btrace_close)
4868 (record_btrace_is_replaying, record_btrace_resume)
4869 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4870 * remote.c (append_pending_thread_resumptions): Likewise.
4871 * thread.c (thread_apply_all_command): Likewise.
4872
46e33252
GB
48732014-06-19 Gary Benson <gbenson@redhat.com>
4874
4875 * i386-nat.c (i386_stopped_by_watchpoint):
4876 Use i386_dr_stopped_by_watchpoint.
4877 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4878 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4879
3a8ee006
GB
48802014-06-19 Gary Benson <gbenson@redhat.com>
4881
4882 * nat/i386-dregs.c: New file.
4883 * Makefile.in (i386-dregs.o): New rule.
4884 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4885 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4886 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4887 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4888 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4889 * config/i386/go32.mh (NATDEPFILES): Likewise.
4890 * config/i386/linux.mh (NATDEPFILES): Likewise.
4891 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4892 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4893 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4894 * i386-nat.h (debug_hw_points): New declaration.
4895 * i386-nat.c (breakpoint.h): Remove include.
4896 (command.h): Likewise.
4897 (target.h): Likewise.
4898 (gdb_assert.h): Likewise.
4899 (debug_hw_points): Made nonstatic.
4900 (debug_printf): Now in i386-dregs.c.
4901 (TARGET_HAS_DR_LEN_8): Likewise.
4902 (DR_CONTROL_SHIFT): Likewise.
4903 (DR_CONTROL_SIZE): Likewise.
4904 (DR_RW_EXECUTE): Likewise.
4905 (DR_RW_WRITE): Likewise.
4906 (DR_RW_READ): Likewise.
4907 (DR_RW_IORW): Likewise.
4908 (DR_LEN_1): Likewise.
4909 (DR_LEN_2): Likewise.
4910 (DR_LEN_4): Likewise.
4911 (DR_LEN_8): Likewise.
4912 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4913 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4914 (DR_ENABLE_SIZE): Likewise.
4915 (DR_LOCAL_SLOWDOWN): Likewise.
4916 (DR_GLOBAL_SLOWDOWN): Likewise.
4917 (DR_CONTROL_RESERVED): Likewise.
4918 (I386_DR_CONTROL_MASK): Likewise.
4919 (I386_DR_VACANT): Likewise.
4920 (I386_DR_LOCAL_ENABLE): Likewise.
4921 (I386_DR_GLOBAL_ENABLE): Likewise.
4922 (I386_DR_DISABLE): Likewise.
4923 (I386_DR_SET_RW_LEN): Likewise.
4924 (I386_DR_GET_RW_LEN): Likewise.
4925 (I386_DR_WATCH_HIT): Likewise.
4926 (i386_wp_op_t): Likewise.
4927 (i386_show_dr): Likewise.
4928 (i386_length_and_rw_bits): Likewise.
4929 (i386_insert_aligned_watchpoint): Likewise.
4930 (i386_remove_aligned_watchpoint): Likewise.
4931 (i386_handle_nonaligned_watchpoint): Likewise.
4932 (i386_update_inferior_debug_regs): Likewise.
4933 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4934 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4935 (i386_region_ok_for_watchpoint):
4936 Use i386_dr_region_ok_for_watchpoint.
4937 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4938
322a8e06
GB
49392014-06-19 Gary Benson <gbenson@redhat.com>
4940
4941 * i386-nat.c (i386_insert_hw_breakpoint): Use
4942 i386_insert_watchpoint.
4943 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4944
8f26655c
GB
49452014-06-19 Gary Benson <gbenson@redhat.com>
4946
4947 * i386-nat.c (i386_dr_show): Renamed to
4948 i386_show_dr and made static. All uses updated.
4949 (i386_dr_length_and_rw_bits): Renamed to
4950 i386_length_and_rw_bits and made static.
4951 All uses updated.
4952 (i386_dr_insert_aligned_watchpoint): Renamed to
4953 i386_insert_aligned_watchpoint and made static.
4954 All uses updated.
4955 (i386_dr_remove_aligned_watchpoint): Renamed to
4956 i386_remove_aligned_watchpoint and made static.
4957 All uses updated.
4958 (i386_dr_update_inferior_debug_regs): Renamed to
4959 i386_update_inferior_debug_regs and made static.
4960 All uses updated.
4961 * nat/i386-dregs.h (i386_dr_show): Removed.
4962 (i386_dr_length_and_rw_bits): Likewise.
4963 (i386_dr_insert_aligned_watchpoint): Likewise.
4964 (i386_dr_remove_aligned_watchpoint): Likewise.
4965 (i386_dr_update_inferior_debug_regs): Likewise.
4966
992c7d70
GB
49672014-06-19 Gary Benson <gbenson@redhat.com>
4968
4969 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4970 * configure: Regenerate.
4971 * config.in: Likewise.
4972 * main.c (signal.h): New include.
4973 (setup_alternate_signal_stack): New function.
4974 (captured_main): Call the above.
4975 * cp-support.c (signal.h): New include.
4976 (catch_demangler_crashes): New flag.
4977 (SIGJMP_BUF): New define.
4978 (SIGSETJMP): Likewise.
4979 (SIGLONGJMP): Likewise.
4980 (gdb_demangle_jmp_buf): New static global.
4981 (gdb_demangle_attempt_core_dump): Likewise.
4982 (gdb_demangle_signal_handler): New function.
4983 (gdb_demangle): If catch_demangler_crashes is set, install the
4984 above signal handler before calling bfd_demangle, and restore
4985 the original signal handler afterwards. Display the offending
4986 symbol and call demangler_warning the first time a segmentation
4987 fault is caught.
4988 (_initialize_cp_support): New maint set/show command.
4989
eae7090b
GB
49902014-06-19 Gary Benson <gbenson@redhat.com>
4991
4992 * utils.h (resource_limit_kind): New enum.
4993 (can_dump_core): New declaration.
4994 (warn_cant_dump_core): Likewise.
4995 (dump_core): Likewise.
4996 * utils.c (dump_core): Made nonstatic. Added new
4997 parameter "limit_kind".
4998 (can_dump_core): Made nonstatic. Moved printing code to...
4999 (warn_cant_dump_core): New function.
5000 (can_dump_core_warn): Likewise.
5001 (internal_vproblem): Replace calls to can_dump_core with
5002 calls to can_dump_core_warn. Supply new argument to each.
5003
57fcfb1b
GB
50042014-06-19 Gary Benson <gbenson@redhat.com>
5005
5006 * utils.h (demangler_vwarning): New declaration.
5007 (demangler_warning): Likewise.
5008 * utils.c (struct internal_problem)
5009 <user_settable_should_quit>: New field.
5010 <user_settable_should_dump_core>: Likewise
5011 (internal_error_problem): Add values for above new fields.
5012 (internal_warning_problem): Likewise.
5013 (demangler_warning_problem): New static global.
5014 (demangler_vwarning): New function.
5015 (demangler_warning): Likewise.
5016 (add_internal_problem_command): Selectively add commands.
5017 (_initialize_utils): New internal problem command.
5018 * maint.c (maintenance_demangler_warning): New function.
5019 (_initialize_maint_cmds): New command.
5020
17a40b44
TT
50212014-06-18 Tom Tromey <tromey@redhat.com>
5022
5023 * f-valprint.c (info_common_command_for_block): Update.
5024 * symtab.h (struct general_symbol_info) <common_block>: Now
5025 const.
5026
346d1dfe
TT
50272014-06-18 Tom Tromey <tromey@redhat.com>
5028
5029 * symtab.h (struct symtab) <blockvector>: Now const.
5030 * ada-lang.c (ada_add_global_exceptions): Update.
5031 * buildsym.c (augment_type_symtab): Update.
5032 * dwarf2read.c (dw2_lookup_symbol): Update.
5033 * jit.c (finalize_symtab): Update.
5034 * jv-lang.c (add_class_symtab_symbol): Update.
5035 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5036 Update.
5037 * objfiles.c (objfile_relocate1): Update.
5038 * psymtab.c (lookup_symbol_aux_psymtabs)
5039 (maintenance_check_psymtabs): Update.
5040 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5041 Update.
5042 * spu-tdep.c (spu_catch_start): Update.
5043 * symmisc.c (dump_symtab_1): Update.
5044 * symtab.c (lookup_global_symbol_from_objfile)
5045 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5046 (basic_lookup_transparent_type_quick)
5047 (basic_lookup_transparent_type, find_pc_sect_symtab)
5048 (find_pc_sect_line, search_symbols): Update.
5049 * block.c (find_block_in_blockvector): Make "bl" const.
5050 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5051 const.
5052 (blockvector_contains_pc): Make "bv" const.
5053 (block_for_pc_sect): Update.
5054 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5055 (blockvector_contains_pc): Update.
5056 * breakpoint.c (resolve_sal_pc): Update.
5057 * inline-frame.c (block_starting_point_at): Update.
5058
1834676b
TT
50592014-06-18 Tom Tromey <tromey@redhat.com>
5060
5061 * completer.c (complete_line): Make "line_buffer" const.
5062 * completer.h (complete_line): Update.
5063
ac1a991b
TT
50642014-06-18 Tom Tromey <tromey@redhat.com>
5065
5066 * symtab.c (add_macro_name): Remove unneeded cast.
5067
5bc98e52
TT
50682014-06-18 Tom Tromey <tromey@redhat.com>
5069
5070 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5071 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5072
8236def8
TT
50732014-06-18 Tom Tromey <tromey@redhat.com>
5074
5075 * probe.c (info_probes_for_ops): Make "arg" const.
5076 * probe.h (info_probes_for_ops): Update.
5077
3977b71f
TT
50782014-06-18 Tom Tromey <tromey@redhat.com>
5079
5080 * varobj.c (varobj_create): Update.
5081 * valops.c (value_of_this): Update.
5082 * tracepoint.c (add_local_symbols, scope_info): Update.
5083 * symtab.h (struct general_symbol_info) <block>: Now const.
5084 * symtab.c (skip_prologue_sal)
5085 (default_make_symbol_completion_list_break_on)
5086 (skip_prologue_using_sal): Update.
5087 * stack.h (iterate_over_block_locals)
5088 (iterate_over_block_local_vars): Update.
5089 * stack.c (print_frame_args): Update.
5090 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5091 parameter const.
5092 (get_selected_block): Make return type const.
5093 * python/py-frame.c (frapy_block): Update.
5094 * python/py-block.c (gdbpy_block_for_pc): Update.
5095 * p-exp.y (%union) <bval>: Now const.
5096 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5097 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5098 * m2-exp.y (%union) <bval>: Now const.
5099 * linespec.c (get_current_search_block): Make return type const.
5100 (create_sals_line_offset, find_label_symbols): Update.
5101 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5102 Update.
5103 (block_starting_point_at): Make "block" const.
5104 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5105 (check_exception_resume): Update.
5106 * guile/scm-frame.c (gdbscm_frame_block): Update.
5107 * guile/scm-block.c (gdbscm_lookup_block): Update.
5108 * frame.h (get_frame_block): Update.
5109 (get_selected_block): Make return type const.
5110 * frame.c (frame_id_inner): Update.
5111 * f-valprint.c (info_common_command_for_block)
5112 (info_common_command): Update.
5113 * dwarf2loc.c (dwarf2_find_location_expression)
5114 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5115 (locexpr_describe_location_piece): Update.
5116 * c-exp.y (%union) <bval>: Now const.
5117 * breakpoint.c (resolve_sal_pc): Update.
5118 * blockframe.c (get_frame_block):Make return type const.
5119 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5120 (block_innermost_frame): Update.
5121 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5122 (block_for_pc, block_for_pc_sect): Update.
5123 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5124 'pblock' const.
5125 (block_for_pc_sect, block_for_pc): Make return type const.
5126 * ax-gdb.c (gen_expr): Update.
5127 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5128 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5129 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5130 (ada_read_var_value): Update.
5131 * ada-exp.y (struct name_info) <block>: Now const.
5132 (%union): Likewise.
5133 (block_lookup): Constify.
5134
b9228891
GB
51352014-06-18 Gary Benson <gbenson@redhat.com>
5136
5137 * nat/i386-dregs.h: New file.
5138 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5139 * i386-nat.h (i386-dregs.h): New include.
5140 (DR_FIRSTADDR): Now in i386-dregs.h.
5141 (DR_LASTADDR): Likewise.
5142 (DR_NADDR): Likewise.
5143 (DR_STATUS): Likewise.
5144 (DR_CONTROL): Likewise.
5145 (i386_debug_reg_state): Likewise.
5146 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5147
a1aa2221
LM
51482014-06-18 Don Breazeal <donb@codesourcery.com>
5149
5150 * breakpoint.c (set_longjmp_breakpoint): Call
5151 momentary_breakpoint_from_master with additional argument.
5152 (set_longjmp_breakpoint_for_call_dummy): Call
5153 momentary_breakpoint_from_master with additional argument.
5154 (set_std_terminate_breakpoint): Call
5155 momentary_breakpoint_from_master with additional argument.
5156 (momentary_breakpoint_from_master): Add argument to function
5157 definition and use it to initialize structure member flag.
74228e77 5158 (clone_momentary_breakpoint): Call
a1aa2221
LM
5159 momentary_breakpoint_from_master with additional argument.
5160 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5161 member flags set in momentary_breakpoint_from_master.
5162
4be83cc2
GB
51632014-06-18 Gary Benson <gbenson@redhat.com>
5164
5165 * i386-nat.c (i386_show_dr): Renamed to
5166 i386_dr_show and made nonstatic. All uses updated.
5167 (i386_length_and_rw_bits): Renamed to
5168 i386_dr_length_and_rw_bits and made nonstatic.
5169 All uses updated.
5170 (i386_insert_aligned_watchpoint): Renamed to
5171 i386_dr_insert_aligned_watchpoint and made nonstatic.
5172 All uses updated.
5173 (i386_remove_aligned_watchpoint): Renamed to
5174 i386_dr_remove_aligned_watchpoint and made nonstatic.
5175 All uses updated.
5176 (i386_update_inferior_debug_regs): Renamed to
5177 i386_dr_update_inferior_debug_regs and made nonstatic.
5178 All uses updated.
5179
131aa0d4
GB
51802014-06-18 Gary Benson <gbenson@redhat.com>
5181
5182 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5183 (i386_dr_low_can_set_control): Likewise.
5184 (i386_dr_low_set_addr): Likewise.
5185 (i386_dr_low_set_control): Likewise.
5186 (i386_dr_low_get_addr): Likewise.
5187 (i386_dr_low_get_status): Likewise.
5188 (i386_dr_low_get_control): Likewise.
5189 (i386_insert_aligned_watchpoint): Use new macros.
5190 (i386_update_inferior_debug_regs): Likewise.
5191 (i386_stopped_data_address): Likewise.
5192
d9305f7f
GB
51932014-06-18 Gary Benson <gbenson@redhat.com>
5194
5195 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5196 New parameter. All uses updated.
5197
ea008da4
GB
51982014-06-18 Gary Benson <gbenson@redhat.com>
5199
5200 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5201 All uses updated.
5202
1b6d4134
GB
52032014-06-18 Gary Benson <gbenson@redhat.com>
5204
5205 * i386-nat.c (debug_printf): New macro.
5206 (i386_get_debug_register_length): Likewise.
5207 (TARGET_HAS_DR_LEN_8): Use above macro.
5208 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5209 and printf_unfiltered. Use phex to format values.
5210
9b4550ef
GB
52112014-06-18 Gary Benson <gbenson@redhat.com>
5212
5213 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5214 Make const.
5215
6e62758f
GB
52162014-06-18 Gary Benson <gbenson@redhat.com>
5217
5218 * i386-nat.c: Comment changes.
5219
51c79e94
GB
52202014-06-18 Gary Benson <gbenson@redhat.com>
5221
5222 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5223
3e11889a
GB
52242014-06-18 Gary Benson <gbenson@redhat.com>
5225
5226 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5227 (i386_insert_aligned_watchpoint): Likewise.
5228 (i386_remove_aligned_watchpoint): Likewise.
5229 (i386_handle_nonaligned_watchpoint): Likewise.
5230
fc6e2f03
GB
52312014-06-18 Gary Benson <gbenson@redhat.com>
5232
5233 * i386-nat.c: Whitespace changes.
5234
2afe7d50
SB
52352014-06-17 Samuel Bronson <naesten@gmail.com>
5236
5237 * MAINTAINERS: Update Roland McGrath's email address.
5238 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5239 Red Hat a while ago, and giving me a current address.
2afe7d50 5240
3bca49ee
TT
52412014-06-17 Tom Tromey <tromey@redhat.com>
5242
5243 * utils.h (savestring): Remove declaration.
5244
6e366df1
TT
52452014-06-17 Tom Tromey <tromey@redhat.com>
5246
5247 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5248
6be47f0c
KS
52492014-06-16 Keith Seitz <keiths@redhat.com>
5250
5251 PR mi/15863
5252 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5253 to update the varobj if inferior_ptid is null_ptid.
5254
7bc112c1
TT
52552014-06-16 Tom Tromey <tromey@redhat.com>
5256
5257 * target.h (struct target_ops) <to_info_proc>: Make parameter
5258 const.
5259 (target_info_proc): Update.
5260 * target.c (target_info_proc): Make "args" const.
5261 * procfs.c (procfs_info_proc): Update.
5262 * linux-tdep.c (linux_info_proc): Update.
5263 (linux_core_info_proc_mappings): Make "args" const.
5264 (linux_core_info_proc): Update.
5265 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5266 * gdbarch.c: Rebuild.
5267 * gdbarch.h: Rebuild.
5268 * corelow.c (core_info_proc): Update.
5269
fee354ee
TT
52702014-06-16 Tom Tromey <tromey@redhat.com>
5271
5272 * target.h (struct target_ops) <to_disconnect>: Make parameter
5273 const.
5274 (target_disconnect): Update.
5275 * target.c (target_disconnect): Make "args" const.
5276 * target-delegates.c: Rebuild.
5277 * remote.c (remote_disconnect): Update.
5278 * record.h (record_disconnect): Update.
5279 * record.c (record_disconnect): Update.
5280 * inf-child.c (inf_child_disconnect): Update.
5281
a30bf1f1
TT
52822014-06-16 Tom Tromey <tromey@redhat.com>
5283
5284 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5285 * target.c (debug_to_rcmd, default_rcmd): Update.
5286 * target-delegates.c: Rebuild.
5287 * remote.c (remote_rcmd): Update.
5288 * monitor.c (monitor_rcmd): Update.
5289
d03de421
PA
52902014-06-16 Pedro Alves <palves@redhat.com>
5291
5292 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5293 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5294 have OBJF_SHARED set.
5295 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5296 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5297 instead of OBJF_USERLOADED.
5298 * objfiles.h (OBJF_SHARED): Update comment.
5299 (userloaded_objfile_contains_address_p): Rename to ...
5300 (shared_objfile_contains_address_p): ... this, and update
5301 comments.
5302 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5303 new objfile.
5304 (remove_symbol_file_command): Skip objfiles that don't have
5305 OBJF_SHARED set.
5306
99f4262f
TT
53072014-06-16 Tom Tromey <tromey@redhat.com>
5308
5309 * minsyms.h (prim_record_minimal_symbol)
5310 (prim_record_minimal_symbol_and_info): Update comments.
5311
97d66cc6
EZ
53122014-06-14 Eli Zaretskii <eliz@gnu.org>
5313
5314 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5315 or --without-guile, according to how GDB was built.
5316
635c7e8a
TT
53172014-06-13 Tom Tromey <tromey@redhat.com>
5318
5319 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5320 to help_list.
5321 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5322 to help_list.
5323 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5324 help_list.
5325 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5326 help_list.Pass all_commands, not -1, to help_list.
5327 * cli/cli-dump.c (dump_command, append_command)
5328 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5329 (binary_dump_command, binary_append_command): Pass all_commands,
5330 not -1, to help_list.
5331 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5332 -1, to help_list.
5333 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5334 -1, to help_list.
5335 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5336 help_list.
5337 * top.c (set_history): Pass all_commands, not -1, to help_list.
5338 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5339 all_commands, not -1, to help_list.
5340 * symfile.c (overlay_command): Pass all_commands, not -1, to
5341 help_list.
5342 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5343 help_list.
5344 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5345 help_list.
5346 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5347 -1, to help_list.
5348 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5349 not -1, to help_list.
5350 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5351 not -1, to help_list.
5352 * maint.c (maintenance_command, maintenance_info_command)
5353 (maintenance_print_command, maintenance_set_cmd): Pass
5354 all_commands, not -1, to help_list.
5355 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5356 help_list.
5357 * language.c (set_check): Pass all_commands, not -1, to help_list.
5358 * infcmd.c (unset_command): Pass all_commands, not -1, to
5359 help_list.
5360 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5361 help_list.
5362 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5363 help_list.
5364 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5365 help_list.
5366 * breakpoint.c (save_command): Pass all_commands, not -1, to
5367 help_list.
5368 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5369 all_commands, not -1, to help_list.
5370
b94ade42
PL
53712014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5372
5373 * regcache.c (struct register_to_invalidate): New structure.
5374 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5375 functions.
5376 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5377
31f628ae
YQ
53782014-06-12 Yao Qi <yao@codesourcery.com>
5379
5380 * varobj.c (varobj_get_num_children): Call
5381 varobj_is_dynamic_p.
5382 (varobj_list_children): Likewise.
5383 (varobj_update): Likewise. Update comments.
5384
cde5ef40
YQ
53852014-06-12 Yao Qi <yao@codesourcery.com>
5386
5387 * varobj.c (varobj_pretty_printed_p): Rename to ...
5388 (varobj_is_dynamic_p): ... this. New function.
5389 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5390 (varobj_is_dynamic_p): Declare.
5391 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5392 (mi_print_value_p, varobj_update_one): Likewise.
5393
576ea091
YQ
53942014-06-12 Pedro Alves <pedro@codesourcery.com>
5395 Yao Qi <yao@codesourcery.com>
5396
5397 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5398 (varobj_get_iterator): Wrap up code for pretty-printer by
5399 "#if HAVE_PYTHON" and "#endif".
5400 (update_dynamic_varobj_children): Likewise.
5401
827f100c
YQ
54022014-06-12 Pedro Alves <pedro@codesourcery.com>
5403 Yao Qi <yao@codesourcery.com>
5404
5405 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5406 gdb_python_initialized is false. Move some code from varobj.c.
5407 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5408 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5409 (struct varobj_item): Moved to varobj-iter.h".
5410 (varobj_clear_saved_item): New function.
5411 (update_dynamic_varobj_children): Move python-related code to
5412 py-varobj.c.
5413 (free_variable): Call varobj_clear_saved_item and
5414 varobj_iter_delete.
5415
e5250216
YQ
54162014-06-12 Pedro Alves <pedro@codesourcery.com>
5417 Yao Qi <yao@codesourcery.com>
5418
5419 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5420 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5421 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5422 (py-varobj.o): New rule.
5423 * python/py-varobj.c: New file.
5424 * python/python-internal.h (py_varobj_get_iterator): Declare.
5425 * varobj-iter.h: New file.
5426 * varobj.c: Include "varobj-iter.h"
5427 (struct varobj) <child_iter>: Change its type from "PyObject *"
5428 to "struct varobj_iter *".
5429 <saved_item>: Likewise.
5430 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5431 [HAVE_PYTHON] (varobj_get_iterator): New function.
5432 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5433 python-specific code to python/py-varobj.c.
5434 (install_visualizer): Call varobj_iter_delete instead of
5435 Py_XDECREF.
5436 * varobj.h (varobj_ensure_python_env): Declare.
5437
5a2e0d6e
YQ
54382014-06-12 Yao Qi <yao@codesourcery.com>
5439
5440 * varobj.c (struct varobj_item): New structure.
5441 (create_child_with_value): Update declaration.
5442 (varobj_add_child): Replace arguments 'name' and 'value' with
5443 'item'. All callers updated.
5444 (install_dynamic_child): Likewise.
5445 (update_dynamic_varobj_children): Likewise.
5446 (varobj_add_child): Likewise.
5447 (create_child_with_value): Likewise.
5448
919b9a93
JB
54492014-06-11 Joel Brobecker <brobecker@adacore.com>
5450
5451 * NEWS: Create a new section for the next release branch.
5452 Rename the section of the current branch, now that it has
5453 been cut.
5454
71a55bdf
JB
54552014-06-11 Joel Brobecker <brobecker@adacore.com>
5456
5457 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5458 * version.in: Bump version to 7.8.50.DATE-cvs.
5459
364fe1f7
PA
54602014-06-11 Pedro Alves <palves@redhat.com>
5461
5462 PR remote/17028
5463 * ser-mingw.c (net_windows_socket_check_pending): New function.
5464 (net_windows_select_thread): Ignore spurious wakeups. Use
5465 net_windows_socket_check_pending.
5466 (net_windows_wait_handle): Check for pending events with
5467 ioctlsocket, through net_windows_socket_check_pending, instead of
5468 checking the socket's event.
5469
5a6c7709
SC
54702014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5471
5472 * python/python-internal.h (gdb_PyObject_GetAttrString)
5473 (gdb_PyObject_HasAttrString): New inline function definitions.
5474 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5475 char * of the second argument to PyObject_GetAttrString.
74228e77 5476
0e58ee40
JB
54772014-06-10 Joel Brobecker <brobecker@adacore.com>
5478
5479 * serial.c (serial_write): Fix index of character to be printed
5480 in call to serial_logchar when serial debug traces are enabled.
5481
d190df30
JB
54822014-06-10 Joel Brobecker <brobecker@adacore.com>
5483
5484 * gdbtypes (resolve_dynamic_range): Add function description.
5485
b4b01d36
PA
54862014-06-09 Pedro Alves <palves@redhat.com>
5487
5488 * linux-nat.c (linux_child_follow_fork): Initialize status with
5489 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5490 inner block. Only pass the signal to PTRACE_DETACH if in pass
5491 state.
5492
3657956b
GB
54932014-06-09 Gary Benson <gbenson@redhat.com>
5494
5495 * common/signals.c (gdb_signal_from_host): Reorder to separate
5496 the always-available ANSI-standard signals from the signals that
5497 require checking.
5498 (do_gdb_signal_to_host): Likewise.
5499 * proc-events.c (signal_table): Likewise.
5500
c077881a
HZ
55012014-06-08 Hui Zhu <hui@codesourcery.com>
5502
5503 * common/linux-ptrace.c (linux_disable_event_reporting): New
5504 function.
5505 * common/linux-ptrace.h (linux_disable_event_reporting): New
5506 declaration.
5507 * linux-nat.c (linux_child_follow_fork): Do a single step before
5508 detach.
5509
4186eb54
KS
55102014-06-07 Keith Seitz <keiths@redhat.com>
5511
5512 Revert:
5513 PR c++/16253
5514 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5515 from symbol_matches_domain in symtab.c. All local callers
5516 of symbol_matches_domain updated.
5517 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5518 search STRUCT_DOMAIN.
5519 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5520 independently. standard_lookup will do that automatically.
5521 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5522 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5523 (cp_lookup_symbol_in_namespace): Likewise.
5524 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5525 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5526 may return a STRUCT_DOMAIN match.
5527 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5528 * cp-support.c: Include language.h.
5529 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5530 VAR_DOMAIN.
5531 * psymtab.c (match_partial_symbol): Compare the requested
5532 domain with the symbol's domain directly.
5533 (lookup_partial_symbol): Likewise.
5534 * symtab.c (lookup_symbol_in_language): Explain when/why
5535 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5536 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5537 appropriate languages.
5538 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5539 and moved to ada-lang.c
5540 (lookup_block_symbol): Explain that this function only returns
5541 symbol matching the requested DOMAIN.
5542 Compare the requested domain with the symbol's domain directly.
5543 (iterate_over_symbols): Compare the requested domain with the
5544 symbol's domain directly.
5545 * symtab.h (symbol_matches_domain): Remove.
5546
25326a28 55472014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5548
5549 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5550 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5551 (gdbscm_guile_version_is_at_least): Declare.
5552 (gdbscm_scm_string_to_int): Declare.
5553 * guile/guile.c (gdbscm_guile_major_version): New global.
5554 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5555 (guile_datadir): New static global.
5556 (gdbscm_guile_data_directory): New function.
5557 (initialize_scheme_side): Update.
5558 (misc_guile_functions): Add guile-data-directory.
5559 (initialize_gdb_module): Fetch guile version number.
5560 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5561 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5562 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5563 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5564 comments.
5565 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5566 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5567 * guile/scm-value.c (gdbscm_value_to_string): Only call
5568 scm_port_conversion_strategy if Guile version >= 2.0.6.
5569
0a770bb2 55702014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5571
5572 * main.c (print_gdb_help): Add -q and --silent.
5573
73ba372c
GB
55742014-06-06 Gary Benson <gbenson@redhat.com>
5575
5576 * common/signals.c: Remove preprocessor conditionals for
5577 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5578 SIGSEGV and SIGTERM.
5579 * proc-events.c: Likewise.
5580
c33b2f12
MM
55812014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5582
5583 * symfile.c (symfile_free_objfile): Remove restriction to
5584 OBJF_USERLOADED.
5585 * symfile-mem.c (symbol_file_add_from_memory): Call
5586 add_target_sections_of_objfile.
5587
fb934770
LC
55882014-06-05 Ludovic Courtès <ludo@gnu.org>
5589
5590 * guile/scm-value.c (gdbscm_history_append_x): Use
5591 'vlscm_get_value_smob_arg_unsafe' instead of
5592 'vlscm_scm_to_value'.
5593
6ef284bd
SM
55942014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5595
5596 PR mi/15806
5597 * utils.c (printchar): Don't escape at all if quoter is NUL.
5598 Update function documentation to clarify effect of parameter
5599 QUOTER.
5600 * remote.c (escape_buffer): Pass '\\' as the quoter to
5601 fputstrn_unfiltered.
5602 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5603 generate the output.
5604 (mi_solib_unloaded): Same.
5605
270c9937
JB
56062014-06-05 Joel Brobecker <brobecker@adacore.com>
5607
5608 * development.sh: Delete.
5609 * Makefile.in (config.status): Adjust dependency on development.sh.
5610 * configure.ac: Adjust development.sh source call.
5611 * configure: Regenerate.
5612
16f691fb
DE
56132014-06-04 Doug Evans <xdje42@gmail.com>
5614
5615 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5616 is_scheme_bkpt, spec.
5617 (bpscm_make_breakpoint_smob): Initialize new members.
5618 (gdbscm_create_breakpoint_x): Split into two ...
5619 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5620 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5621 (scheme_function breakpoint_functions): Update.
5622 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5623 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5624 register-breakpoint!.
5625
ef7cab6b
JB
56262014-06-04 Joel Brobecker <brobecker@adacorer.com>
5627
5628 PR server/17023
5629 * mem-break.c (z_type_supported): Return zero if
5630 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5631
012370f6
TT
56322014-06-04 Tom Tromey <tromey@redhat.com>
5633
5634 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5635 value_from_contents_and_address_unresolved.
5636 (ada_template_to_fixed_record_type_1): Likewise.
5637 (ada_which_variant_applies): Likewise.
5638 * value.h (value_from_contents_and_address_unresolved): Declare.
5639 * value.c (value_from_contents_and_address_unresolved): New
5640 function.
5641 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5642 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5643 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5644
92e2a17f
TT
56452014-06-04 Tom Tromey <tromey@redhat.com>
5646
5647 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5648
c0939df1
TT
56492014-06-04 Tom Tromey <tromey@redhat.com>
5650
5651 * procfs.c (procfs_attach): Make "args" const.
5652 * windows-nat.c (windows_attach): Make "args" const.
5653 * nto-procfs.c (procfs_attach): Make "args" const.
5654 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5655 * go32-nat.c (go32_attach): Make "args" const.
5656 * gnu-nat.c (gnu_attach): Make "args" const.
5657 * darwin-nat.c (darwin_attach): Make "args" const.
5658 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5659 * linux-nat.c (linux_nat_attach): Make "args" const.
5660 * remote.c (extended_remote_attach_1, extended_remote_attach):
5661 Make "args" const.
5662 * target.h (struct target_ops) <to_attach>: Make "args" const.
5663 (find_default_attach): Likewise.
5664 * utils.c (parse_pid_to_attach): Make "args" const.
5665 * utils.h (parse_pid_to_attach): Update.
5666
8eaff7cd
TT
56672014-06-04 Tom Tromey <tromey@redhat.com>
5668
5669 * target-delegates.c: Rebuild.
5670 * target.c (default_thread_address_space): New function.
5671 (target_thread_address_space): Simplify.
5672 * target.h (struct target_ops) <to_thread_address_space>: Add
5673 TARGET_DEFAULT_FUNC.
5674
1913f160
DE
56752014-06-04 Doug Evans <xdje42@gmail.com>
5676
5677 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5678
70ad5bff
MM
56792014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5680
5681 * record-btrace.c: Include event-loop.h and inf-loop.h.
5682 (record_btrace_resume_exec_dir)
5683 (record_btrace_async_inferior_event_handler)
5684 (record_btrace_handle_async_inferior_event): New.
5685 (record_btrace_open): Create async event handler.
5686 (record_btrace_close): Delete async event handler.
5687 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5688 Mark async event handler.
5689 (record_btrace_execution_direction): New.
5690 (init_record_btrace_ops): Initialize to_execution_direction.
5691
b6210538
DE
56922014-06-03 Doug Evans <xdje42@gmail.com>
5693
5694 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5695 (gdbscm_make_parameter): Ditto.
5696
a5b1fd27
DE
56972014-06-03 Doug Evans <dje@google.com>
5698
5699 * exec.c (exec_close_1): Call clear_section_table instead of
5700 resize_section_table.
5701 (clear_section_table): New function.
5702 (resize_section_table): Make static. Rename arg num_added to
5703 adjustment.
5704 * exec.h (clear_section_table): Declare.
5705 (resize_section_table): Delete.
5706 * progspace.c (release_program_space): Call clear_section_table
5707 instead of resize_section_table.
5708
0c6e92a5
SC
57092014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5710
5711 * NEWS (Python Scripting): Add entry about the new xmethods
5712 feature.
5713
883964a7
SC
57142014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5715
5716 * python/py-xmethods.c: New file.
5717 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5718 (objfpy_dealloc): XDECREF on the new xmethods field.
5719 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5720 field.
5721 (objfpy_get_xmethods): New function.
5722 (objfile_getset): New entry 'xmethods'.
5723 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5724 (pspy_dealloc): XDECREF on the new xmethods field.
5725 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5726 field.
5727 (pspy_get_xmethods): New function.
5728 (pspace_getset): New entry 'xmethods'.
5729 * python/python-internal.h: Add declarations for new functions.
5730 * python/python.c (_initialize_python): Invoke
5731 gdbpy_initialize_xmethods.
5732 * python/lib/gdb/__init__.py (xmethods): New
5733 attribute.
5734 * python/lib/gdb/xmethod.py: New file.
5735 * python/lib/gdb/command/xmethods.py: New file.
5736
58992dc5
SC
57372014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5738
5739 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5740 best match method returned by find_overload_match is an xmethod.
5741 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5742 the best matching operator returned by find_overload_match is an
5743 xmethod.
5744 * valops.c: #include "extension.h".
5745 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5746 Return void. The list of matching source methods is returned in
5747 "fn_list" and a vector of matching debug method workers is
5748 returned in "xm_worker_vec". Update all callers.
5749 (value_find_oload_method_list): Likewise.
5750 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5751 non-NULL, then the index of the best matching method in this
5752 vector is returned. Update all callers.
5753 (find_overload_match): Include xmethods while performing overload
5754 resolution.
5755
e81e7f5e
SC
57562014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5757
5758 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5759 * extension-priv.h (struct extension_language_ops): Add the
5760 xmethod interface.
5761 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5762 get_matching_xmethod_workers, get_xmethod_argtypes,
5763 invoke_xmethod, free_xmethod_worker,
5764 free_xmethod_worker_vec): New functions.
5765 * extension.h: #include "common/vec.h".
5766 New function declarations.
5767 (struct xmethod_worker): New struct.
5768 (VEC (xmethod_worker_ptr)): New vector type.
5769 (xmethod_worker_ptr): New typedef.
5770 (xmethod_worker_vec): Likewise.
5771 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5772 builtin_type.
5773 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5774 (struct builtin_type): New field "xmethod".
5775 * valarith.c (value_ptradd): Assert that the value argument is not
5776 lval_xcallable.
5777 * valops.c (value_must_coerce_to_target): Return 0 for
5778 lval_xcallable values.
5779 * value.c (struct value): New field XM_WORKER in the field
5780 LOCATION.
5781 (value_address, value_raw_address): Return 0 for lval_xcallable
5782 values.
5783 (set_value_address): Assert that the value is not an
5784 lval_xcallable.
5785 (value_free): Free the associated xmethod worker when freeing
5786 lval_xcallable values.
5787 (set_value_component_location): Assert that the WHOLE value is not
5788 lval_xcallable.
5789 (value_of_xmethod, call_xmethod): New functions.
5790 * value.h: Declare "struct xmethod_worker".
5791 Declare new functions value_of_xmethod, call_xmethod.
5792
ef370185
JB
57932014-06-03 Joel Brobecker <brobecker@adacore.com>
5794 Pedro Alves <palves@redhat.com>
5795
5796 PR breakpoints/17000
5797 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5798 New function, extracted from software_breakpoint_inserted_here_p.
5799 (software_breakpoint_inserted_here_p): Replace factored out code
5800 by call to find_non_raw_software_breakpoint_inserted_here.
5801 (bp_target_info_copy_insertion_state): New function.
5802 (bkpt_insert_location): Handle the case of a single-step
5803 breakpoint already inserted at the same address.
5804 (bkpt_remove_location): Handle the case of a single-step
5805 breakpoint still inserted at the same address.
5806 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5807 breakpoint already inserted at the same address.
5808 (deprecated_remove_raw_breakpoint): Handle the case of a
5809 non-raw breakpoint still inserted at the same address.
5810 (find_single_step_breakpoint): New function, extracted from
5811 single_step_breakpoint_inserted_here_p.
5812 (find_single_step_breakpoint): New function,
5813 factored out from single_step_breakpoint_inserted_here_p.
5814 (single_step_breakpoint_inserted_here_p): Reimplement.
5815
1e2ccb61
BM
58162014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5817
5818 Pushed by Joel Brobecker <brobecker@adacore.com>
5819 * source.c (show_substitute_path_command): Fix display of matching
5820 substitution rules.
5821
d3448d85
GB
58222014-06-03 Gary Benson <gbenson@redhat.com>
5823
5824 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5825
06eb1586
DE
58262014-06-02 Doug Evans <xdje42@gmail.com>
5827
5828 Add parameter support for Guile.
5829 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5830 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5831 (scm-param.o): New rule.
5832 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5833 (gdbscm_misc_error): Declare.
5834 (gdbscm_canonicalize_command_name): Declare.
5835 (gdbscm_scm_to_host_string): Declare.
5836 (gdbscm_scm_from_host_string): Declare.
5837 (gdbscm_initialize_parameters): Declare.
5838 * guile/guile.c (initialize_gdb_module): Call
5839 gdbscm_initialize_parameters.
5840 * guile/lib/gdb.scm: Export parameter symbols.
5841 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5842 cmdscm_canonicalize_name and made public. All callers updated.
5843 * guile/scm-exception.c (gdbscm_misc_error): New function.
5844 * guile/scm-param.c: New file.
5845 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5846 (gdbscm_scm_to_host_string): New function.
5847 (gdbscm_scm_from_host_string): New function.
5848 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5849
e698b8c4
DE
58502014-06-02 Doug Evans <xdje42@gmail.com>
5851
5852 Add command support for Guile.
5853 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5854 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5855 (scm-cmd.o): New rule.
5856 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5857 (gdbscm_user_error_p): Declare.
5858 (gdbscm_parse_command_name): Declare.
5859 (gdbscm_valid_command_class_p): Declare.
5860 (gdbscm_initialize_commands): Declare.
5861 * guile/guile.c (initialize_gdb_module): Call
5862 gdbscm_initialize_commands.
5863 * guile/lib/gdb.scm: Export command symbols.
5864 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5865 (throw-user-error): New function.
5866 * guile/scm-cmd.c: New file.
5867 * guile/scm-exception.c (user_error_symbol): New static global.
5868 (gdbscm_user_error_p): New function.
5869 (gdbscm_initialize_exceptions): Set user_error_symbol.
5870 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5871
fb1f94b0
PM
58722014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5873
5874 * top.c (command_loop): Handle comments here...
5875 (command_line_input): ... not here.
5876
ded03782
DE
58772014-06-02 Doug Evans <xdje42@gmail.com>
5878
5879 Add progspace support for Guile.
5880 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5881 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5882 (scm-progspace.o): New rule.
5883 * guile/guile-internal.h (pspace_smob): New typedef.
5884 (psscm_pspace_smob_pretty_printers): Declare.
5885 (psscm_pspace_smob_from_pspace): Declare.
5886 (psscm_scm_from_pspace): Declare.
5887 * guile/guile.c (initialize_gdb_module): Call
5888 gdbscm_initialize_pspaces.
5889 * guile/lib/gdb.scm: Export progspace symbols.
5890 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5891 support.
5892 (append-pretty-printer!): Ditto.
5893 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5894 Implement.
5895 * guile/scm-progspace.c: New file.
5896
397998fc
AM
58972014-06-03 Alan Modra <amodra@gmail.com>
5898
5899 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5900 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5901
6aa5f3a6
DE
59022014-06-02 Doug Evans <dje@google.com>
5903
5904 Add support for skeletonless type units.
5905 * dwarf2read.c (struct dwarf2_per_objfile): New member
5906 n_allocated_type_units.
5907 (struct dwarf2_per_objfile) <tu_stats>: New member
5908 nr_all_type_units_reallocs.
5909 (create_signatured_type_table_from_index): Initialize
5910 n_allocated_type_units
5911 (create_all_type_units): Ditto.
5912 (add_type_unit): Move up in file. New arg slot.
5913 All callers updated. Increase space for all_type_units more
5914 efficiently.
5915 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5916 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5917 (lookup_dwp_signatured_type): Ditto.
5918 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5919 All callers updated.
5920 (build_type_psymtabs_1): Leave type_unit_groups as
5921 NULL if no TUs present.
5922 (print_tu_stats): New function.
5923 (process_skeletonless_type_unit): New function.
5924 (process_dwo_file_for_skeletonless_type_units): New
5925 function.
5926 (process_skeletonless_type_units): New function.
5927 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5928 Call print tu_stats if debugging enabled.
5929
41fac0cf
PA
59302014-06-02 Pedro Alves <palves@redhat.com>
5931
5932 * breakpoint.c (build_target_command_list): Don't build a command
5933 list if we have any duplicate location that isn't a dprintf.
5934
cd1608cc
PA
59352014-06-02 Pedro Alves <palves@redhat.com>
5936
5937 * breakpoint.c (dprintf_breakpoint_hit): New function.
5938 (initialize_breakpoint_ops): Install it as dprintf's
5939 breakpoint_hit method.
5940
486ef3b9
JB
59412014-06-02 Joel Brobecker <brobecker@adacore.com>
5942
5943 * source.c (substitute_path_rule_matches): Simplify using
5944 filename_ncmp instead of FILENAME_CMP.
5945
230cd560
JB
59462014-06-02 Joel Brobecker <brobecker@adacore.com>
5947
5948 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5949
16954d5d
LC
59502014-06-01 Ludovic Courtès <ludo@gnu.org>
5951
5952 * configure.ac: When Guile is available, check for the
5953 availability of 'scm_new_smob'.
5954 * configure, config.h.in: Regenerate.
5955 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5956 function.
5957
53e8a631
AB
59582014-05-30 Andrew Burgess <aburgess@broadcom.com>
5959
5960 * frame.c (struct frame_info): Add stop_string field.
5961 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5962 (get_prev_frame_always): Old content moved into
5963 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5964 TRY_CATCH, handle MEMORY_ERROR exceptions.
5965 (frame_stop_reason_string): New function definition.
5966 * frame.h (unwind_stop_reason_to_string): Extend comment to
5967 mention frame_stop_reason_string.
5968 (frame_stop_reason_string): New function declaration.
5969 * stack.c (frame_info): Switch to frame_stop_reason_string.
5970 (backtrace_command_1): Switch to frame_stop_reason_string.
5971 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5972 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5973 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5974
70e38b8e
AB
59752014-05-30 Andrew Burgess <aburgess@broadcom.com>
5976
5977 * frame.c (frame_stop_reason_string): Rename to ...
5978 (unwind_stop_reason_to_string): this.
5979 * frame.h (frame_stop_reason_string): Rename to ...
5980 (unwind_stop_reason_to_string): this.
5981 * stack.c (frame_info): Update call to frame_stop_reason_string.
5982 (backtrace_command_1): Likewise.
5983 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5984 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5985
938f0e2f
AB
59862014-05-30 Andrew Burgess <aburgess@broadcom.com>
5987
5988 * frame.c (remove_prev_frame): New function.
5989 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5990 remove_prev_frame.
5991
a09dd441
PA
59922014-05-29 Pedro Alves <palves@redhat.com>
5993
5994 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5995 and make it const. When a single-step decays to a continue,
5996 clear 'step', not 'hw_step'. Pass whether the caller wanted
5997 to step to user_visible_resume_ptid, not what we ask the
5998 target to do.
5999
bdc36728
PA
60002014-05-29 Pedro Alves <palves@redhat.com>
6001
6002 * infrun.c (process_event_stop_test, handle_step_into_function)
6003 (handle_step_into_function_backward): Adjust.
6004 Don't set the even thread's stop_step and call stop_waiting before
6005 calling end_stepping_range. Instead do that ...
6006 (end_stepping_range): ... here. Take an ecs pointer parameter.
6007
22bcd14b
PA
60082014-05-29 Pedro Alves <palves@redhat.com>
6009
6010 * infrun.c (stop_stepping): Rename to ...
6011 (stop_waiting): ... this.
6012 (proceed): Update comment.
6013 (process_event_stop_test, handle_inferior_event)
6014 (handle_signal_stop, handle_step_into_function)
6015 (handle_step_into_function_backward): Update.
6016
4ae57c05
PA
60172014-05-29 Pedro Alves <palves@redhat.com>
6018
6019 * infcall.c (run_inferior_call): Don't check whether the current
6020 thread is running after the proceed call.
6021
329ea579
PA
60222014-05-29 Pedro Alves <palves@redhat.com>
6023 Tom Tromey <tromey@redhat.com>
6024
6025 * NEWS: Mention "maint set target-async", "set mi-async", and that
6026 background execution commands are now always available.
6027 * target.h (target_async_permitted): Update comment.
6028 * target.c (target_async_permitted, target_async_permitted_1):
6029 Default to 1.
6030 (set_target_async_command): Rename to ...
6031 (maint_set_target_async_command): ... this.
6032 (show_target_async_command): Rename to ...
6033 (maint_show_target_async_command): ... this.
6034 (_initialize_target): Adjust.
6035 * infcmd.c (prepare_execution_command): Make extern.
6036 * inferior.h (prepare_execution_command): Declare.
6037 * infrun.c (set_observer_mode): Leave target async alone.
6038 * mi/mi-interp.c (mi_interpreter_init): Install
6039 mi_on_sync_execution_done as sync_execution_done observer.
6040 (mi_on_sync_execution_done): New function.
6041 (mi_execute_command_input_handler): Don't print the prompt if we
6042 just started a synchronous command with an async target.
6043 (mi_on_resume): Check sync_execution before printing prompt.
6044 * mi/mi-main.h (mi_async_p): Declare.
6045 * mi/mi-main.c: Include gdbcmd.h.
6046 (mi_async_p): New function.
6047 (mi_async, mi_async_1): New globals.
6048 (set_mi_async_command, show_mi_async_command, mi_async): New
6049 functions.
6050 (exec_continue): Call prepare_execution_command.
6051 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6052 (mi_execute_async_cli_command): Use mi_async_p.
6053 (_initialize_mi_main): Install "set mi-async". Make
6054 "target-async" a deprecated alias.
6055
92bcb5f9
PA
60562014-05-29 Pedro Alves <palves@redhat.com>
6057
6058 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6059 (_initialize_cli_interp): Adjust.
6060 * event-loop.c: Include "observer.h".
6061 (start_event_loop): Notify 'command_error' observers instead of
6062 calling display_gdb_prompt. Remove FIXME comment.
6063 * event-top.c (display_gdb_prompt): Remove call into the
6064 interpreters.
6065 * inf-loop.c: Include "observer.h".
6066 (inferior_event_handler): Notify 'command_error' observers instead
6067 of calling display_gdb_prompt.
6068 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6069 observers instead of calling display_gdb_prompt.
6070 * interps.c (interp_set): Don't call display_gdb_prompt.
6071 (current_interp_display_prompt_p): Delete.
6072 * interps.h (interp_prompt_p): Delete declaration.
6073 (interp_prompt_p_ftype): Delete.
6074 (struct interp_procs) <prompt_proc_p>: Delete field.
6075 (current_interp_display_prompt_p): Delete declaration.
6076 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6077 (_initialize_mi_interp): Adjust.
6078 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6079 'command_error' observers.
6080 (tui_on_sync_execution_done, tui_on_command_error): New
6081 functions.
6082 (tui_display_prompt_p): Delete.
6083 (_initialize_tui_interp): Adjust.
6084
fd664c91
PA
60852014-05-29 Pedro Alves <palves@redhat.com>
6086
6087 PR gdb/13860
6088 * cli/cli-interp.c: Include infrun.h and observer.h.
6089 (cli_uiout, cli_interp): New globals.
6090 (cli_on_signal_received, cli_on_end_stepping_range)
6091 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6092 functions.
6093 (cli_interpreter_init): Install them as 'end_stepping_range',
6094 'signal_received' 'signal_exited', 'exited' and 'no_history'
6095 observers.
6096 (_initialize_cli_interp): Remove cli_interp local.
6097 * infrun.c (handle_inferior_event): Call the several stop reason
6098 observers instead of printing the stop reason directly.
6099 (end_stepping_range): New function.
6100 (print_end_stepping_range_reason, print_signal_exited_reason)
6101 (print_exited_reason, print_signal_received_reason)
6102 (print_no_history_reason): Make static, and add an uiout
6103 parameter. Print to that instead of to CURRENT_UIOUT.
6104 * infrun.h (print_end_stepping_range_reason)
6105 (print_signal_exited_reason, print_exited_reason)
6106 (print_signal_received_reason print_no_history_reason): New
6107 declarations.
6108 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6109 'mi_uiout'.
6110 <cli_uiout>: New field.
6111 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6112 uiout for CLI output. Install 'signal_received',
6113 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6114 observers.
6115 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6116 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6117 (mi_on_no_history): New functions.
6118 (ui_out_free_cleanup): Delete function.
6119 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6120 instead use the one already stored in the MI interpreter data.
6121 (mi_ui_out): Adjust.
6122 * tui/tui-interp.c: Include infrun.h and observer.h.
6123 (tui_interp): New global.
6124 (tui_on_signal_received, tui_on_end_stepping_range)
6125 (tui_on_signal_exited, tui_on_exited)
6126 (tui_on_no_history): New functions.
6127 (tui_init): Install them as 'end_stepping_range',
6128 'signal_received' 'signal_exited', 'exited' and 'no_history'
6129 observers.
6130 (_initialize_tui_interp): Delete tui_interp local.
6131
8817a6f2
PA
61322014-05-29 Pedro Alves <palves@redhat.com>
6133
6134 PR gdb/15713
6135 * linux-nat.c (linux_nat_resume_callback): Rename the second
6136 parameter to 'except'. Skip LP if it points to EXCEPT.
6137 (linux_nat_resume): Don't mark the event lwp as not stopped
6138 before resuming sibling lwps. Instead ask
6139 linux_nat_resume_callback to skip the event lwp. Mark it as not
6140 stopped after actually resuming it.
6141 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6142 resuming it.
6143 (wait_lwp): Mark the lwp as stopped here.
6144 (stop_wait_callback): Mark the lwp as not stopped right after
6145 resuming it. Don't mark lwps as stopped here.
6146 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6147 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6148
251bde03
PA
61492014-05-29 Pedro Alves <palves@redhat.com>
6150
6151 PR PR15693
6152 * infrun.c (resume): Determine how much to resume depending on
6153 whether the caller wanted a step, not whether we can hardware step
6154 the target. Mark all threads that we intend to run as running,
6155 unless we're calling an inferior function.
6156 (normal_stop): If the thread is running an infcall, don't finish
6157 thread state.
6158 * target.c (target_resume): Don't mark threads as running here.
6159
7f3c0343
JB
61602014-05-28 Joel Brobecker <brobecker@adacore.com>
6161
6162 * serial.c (_initialize_serial): Remove support for
6163 the "set remotebaud" and "show remotebaud" commands.
6164 * NEWS: Add entry documenting the removal of that command.
6165
ee34b3f9
YQ
61662014-05-28 Yao Qi <yao@codesourcery.com>
6167
6168 * charset.c: Fix typo in comments.
6169
add6c04d
GB
61702014-05-27 Gary Benson <gbenson@redhat.com>
6171
6172 * utils.c (internal_vproblem): Prompt for a bug report.
6173
92c48fc5
AW
61742014-05-26 Andy Wingo <wingo@igalia.com>
6175
6176 * guile/scm-arch.c (arscm_mark_arch_smob):
6177 * guile/scm-block.c (bkscm_mark_block_smob)
6178 (bkscm_mark_block_syms_progress_smob):
6179 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6180 * guile/scm-exception.c (exscm_mark_exception_smob):
6181 * guile/scm-frame.c (frscm_mark_frame_smob):
6182 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6183 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6184 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6185 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6186 (ppscm_mark_pretty_printer_worker_smob):
6187 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6188 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6189 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6190 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6191 mark functions.
6192 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6193 function.
6194
b2715b27
AW
61952014-05-26 Andy Wingo <wingo@igalia.com>
6196 Doug Evans <xdje42@gmail.com>
6197
6198 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6199 empty_base_class. All uses updated.
6200 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6201 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6202 Adapt all callers.
6203 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6204 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6205 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6206 (gdbscm_gsmob_has_property_p, add_property_name)
6207 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6208 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6209 (gdb-object-has-property?, gdb-object-properties): Remove.
6210 (gdb-object-kind): Renamed from gsmob-kind.
6211
214ab2da
AW
62122014-05-26 Andy Wingo <wingo@igalia.com>
6213
6214 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6215 * configure: Regenerate.
6216
589fdceb
MM
62172014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6218
6219 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6220
67b5c0c1
MM
62212014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6222
6223 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6224 (replay_memory_access_read_only, replay_memory_access_read_write)
6225 (replay_memory_access_types, replay_memory_access)
6226 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6227 (cmd_set_record_btrace, cmd_show_record_btrace)
6228 (cmd_show_replay_memory_access): New.
6229 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6230 (record_btrace_remove_breakpoint): Replace
6231 record_btrace_allow_memory_access with replay_memory_access.
6232 (_initialize_record_btrace): Add commands.
6233 * NEWS: Announce it.
6234
036cd381
RR
62352014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6236
6237 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6238
c77c1e42
RR
62392014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6240
6241 * MAINTAINERS (Write After Approval): Move self back from
6242 paper trail.
6243
45741a9c
PA
62442014-05-22 Pedro Alves <palves@redhat.com>
6245
6246 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6247 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6248 (disable_randomization, enum exec_direction_kind)
6249 (execution_direction, stop_registers, start_remote)
6250 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6251 (wait_for_inferior, normal_stop, get_last_target_status)
6252 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6253 (insert_step_resume_breakpoint_at_sal)
6254 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6255 (set_step_info, print_stop_event, signal_stop_state)
6256 (signal_print_state, signal_pass_state, signal_stop_update)
6257 (signal_print_update, signal_pass_update)
6258 (update_signals_program_target, clear_exit_convenience_vars)
6259 (displaced_step_dump_bytes, update_observer_mode)
6260 (signal_catch_update, gdb_signal_from_command): Move
6261 declarations ...
6262 * infrun.h: ... to this new file.
6263 * amd64-tdep.c: Include infrun.h.
6264 * annotate.c: Include infrun.h.
6265 * arch-utils.c: Include infrun.h.
6266 * arm-linux-tdep.c: Include infrun.h.
6267 * arm-tdep.c: Include infrun.h.
6268 * break-catch-sig.c: Include infrun.h.
6269 * breakpoint.c: Include infrun.h.
6270 * common/agent.c: Include infrun.h instead of inferior.h.
6271 * corelow.c: Include infrun.h.
6272 * event-top.c: Include infrun.h.
6273 * go32-nat.c: Include infrun.h.
6274 * i386-tdep.c: Include infrun.h.
6275 * inf-loop.c: Include infrun.h.
6276 * infcall.c: Include infrun.h.
6277 * infcmd.c: Include infrun.h.
6278 * infrun.c: Include infrun.h.
6279 * linux-fork.c: Include infrun.h.
6280 * linux-nat.c: Include infrun.h.
6281 * linux-thread-db.c: Include infrun.h.
6282 * monitor.c: Include infrun.h.
6283 * nto-tdep.c: Include infrun.h.
6284 * procfs.c: Include infrun.h.
6285 * record-btrace.c: Include infrun.h.
6286 * record-full.c: Include infrun.h.
6287 * remote-m32r-sdi.c: Include infrun.h.
6288 * remote-mips.c: Include infrun.h.
6289 * remote-notif.c: Include infrun.h.
6290 * remote-sim.c: Include infrun.h.
6291 * remote.c: Include infrun.h.
6292 * reverse.c: Include infrun.h.
6293 * rs6000-tdep.c: Include infrun.h.
6294 * s390-linux-tdep.c: Include infrun.h.
6295 * solib-irix.c: Include infrun.h.
6296 * solib-osf.c: Include infrun.h.
6297 * solib-svr4.c: Include infrun.h.
6298 * target.c: Include infrun.h.
6299 * top.c: Include infrun.h.
6300 * windows-nat.c: Include infrun.h.
6301 * mi/mi-interp.c: Include infrun.h.
6302 * mi/mi-main.c: Include infrun.h.
6303 * python/py-threadevent.c: Include infrun.h.
6304
98eb56a4
PA
63052014-05-22 Pedro Alves <palves@redhat.com>
6306
6307 * infrun.c (handle_inferior_event): Store the exit code for
6308 --return-child-result here, instead of ...
6309 (print_exited_reason): ... here.
6310
17b2616c
PA
63112014-05-21 Pedro Alves <palves@redhat.com>
6312
6313 PR gdb/13860
6314 * gdbthread.h (struct thread_control_state): New field
6315 `command_interp'.
6316 * infrun.c (follow_fork): Copy the new thread control field to the
6317 child fork thread.
6318 (clear_proceed_status_thread): Clear the new thread control field.
6319 (proceed): Set the new thread control field.
6320 * interps.h (command_interp): Declare.
6321 * interps.c (command_interpreter): New global.
6322 (command_interp): New function.
6323 (interp_exec): Set `command_interpreter' while here.
6324 * cli-out.c (cli_uiout_dtor): New function.
6325 (cli_ui_out_impl): Install it.
6326 * mi/mi-interp.c: Include cli-out.h.
6327 (mi_cmd_interpreter_exec): Add comment.
6328 (restore_current_uiout_cleanup): New function.
6329 (ui_out_free_cleanup): New function.
6330 (mi_on_normal_stop): If finishing an execution command started by
6331 a CLI command, or any kind of breakpoint-like event triggered,
6332 print the stop event to the output (CLI) stream.
6333 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6334
5166082f
PA
63352014-05-21 Pedro Alves <palves@redhat.com>
6336
6337 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6338 current source line having changed.
6339 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6340 * infrun.c (normal_stop): Adjust call to
6341 set_current_sal_from_frame.
6342 * source.c (clear_lines_listed_range): New function.
6343 (set_current_source_symtab_and_line, identify_source_line): Clear
6344 the lines listed range.
6345 (line_info): Handle the first "info line" after the current source
6346 line having changed.
6347 * stack.c (print_stack_frame): Remove center handling.
6348 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6349 center sal.line.
6350
c1ee2fb3
PA
63512014-05-21 Pedro Alves <palves@redhat.com>
6352
6353 * inf-child.c (inf_child_mourn_inferior): New function.
6354 * inf-child.h (inf_child_mourn_inferior): New declaration.
6355 * darwin-nat.c (darwin_mourn_inferior): Use
6356 inf_child_mourn_inferior.
6357 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6358 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6359 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6360 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6361 * windows-nat.c (windows_mourn_inferior): Likewise.
6362
5c6d4fb2
DE
63632014-05-21 Doug Evans <xdje42@gmail.com>
6364
250748cb 6365 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6366
4a2722c5
DE
63672014-05-21 Doug Evans <xdje42@gmail.com>
6368
17292b30 6369 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6370 (gdbscm_out_of_range_error): Ditto.
6371 (gdbscm_memory_error): Ditto.
250748cb
DE
6372 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6373 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6374 (gdbscm_out_of_range_error): Update.
6375 (gdbscm_memory_error): Update.
6376 (gdbscm_scm_to_target_string_unsafe): Delete.
6377
6a3cb8e8
PA
63782014-05-21 Pedro Alves <palves@redhat.com>
6379
6380 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6381 globals.
6382 (inf_child_open_target): New function.
6383 (inf_child_open): Use inf_child_open_target to push the target
6384 instead of erroring out.
6385 (inf_child_disconnect, inf_child_close)
6386 (inf_child_maybe_unpush_target): New functions.
6387 (inf_child_target): Install inf_child_disconnect and
6388 inf_child_close. Store a pointer to the returned object.
6389 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6390 declarations.
6391 * target.c (auto_connect_native_target): New global.
6392 (show_default_run_target): New function.
6393 (find_default_run_target): Return NULL if automatically connecting
6394 to the native target is disabled.
6395 (_initialize_target): Install set/show auto-connect-native-target.
6396 * NEWS: Mention "set auto-connect-native-target", and "target
6397 native".
6398 * linux-nat.c (super_close): New global.
6399 (linux_nat_close): Call super_close.
6400 (linux_nat_add_target): Store a pointer to the base class's
6401 to_close method.
6402 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6403 inf_child_maybe_unpush.
6404 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6405 already pushed.
6406 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6407 the inferior. Use inf_child_maybe_unpush_target.
6408 (inf_ttrace_attach): Don't push the target if it is already
6409 pushed.
6410 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6411 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6412 after mourning the inferior. Use inf_child_maybe_unpush_target.
6413 (darwin_attach_pid): Don't push the target if it is already
6414 pushed.
6415 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6416 mourning the inferior. Use inf_child_maybe_unpush_target.
6417 (gnu_detach): Use inf_child_maybe_unpush_target.
6418 * go32-nat.c (go32_create_inferior): Don't push the target if it
6419 is already pushed.
6420 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6421 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6422 (procfs_open): Rename to ...
6423 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6424 comments. Can target_preopen before changing node. Call
6425 inf_child_open_target to push the target explicitly.
6426 (procfs_attach): Don't push the target if it is already pushed.
6427 (procfs_detach): Use inf_child_maybe_unpush_target.
6428 (procfs_create_inferior): Don't push the target if it is already
6429 pushed.
6430 (nto_native_ops): New global.
6431 (procfs_open): Reimplement.
6432 (procfs_native_open): New function.
6433 (init_procfs_targets): Install procfs_native_open as to_open of
6434 "target native". Store a pointer to the "native" target in
6435 nto_native_ops.
6436 * procfs.c (procfs_attach): Don't push the target if it is already
6437 pushed.
6438 (procfs_detach): Use inf_child_maybe_unpush_target.
6439 (procfs_mourn_inferior): Only unpush the target after mourning the
6440 inferior. Use inf_child_maybe_unpush_target.
6441 (procfs_init_inferior): Don't push the target if it is already
6442 pushed.
6443 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6444 if it is already pushed.
6445
930ee1b1
PA
64462014-05-21 Pedro Alves <palves@redhat.com>
6447
6448 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6449 and "procfs" targets are now called "native" instead.
6450
1f5d1b13
PA
64512014-05-21 Pedro Alves <palves@redhat.com>
6452
6453 * go32-nat.c (go32_open): Delete.
6454 (go32_target): Don't override the to_open method.
6455
132f8e03
PA
64562014-05-21 Pedro Alves <palves@redhat.com>
6457
6458 * nto-procfs.c (procfs_can_run): New function.
6459 (nto_procfs_ops): New global.
6460 (init_procfs_targets): New, based on procfs_target. Install
6461 "target native" in addition to "target procfs".
6462 (_initialize_procfs): Call init_procfs_targets instead of adding
6463 the target here.
6464
03c136c3
PA
64652014-05-21 Pedro Alves <palves@redhat.com>
6466
6467 * windows-nat.c (windows_target): Don't override to_shortname,
6468 to_longname or to_doc.
6469
a635d0f3
PA
64702014-05-21 Pedro Alves <palves@redhat.com>
6471
6472 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6473 to_doc.
6474
4f9b5133
PA
64752014-05-21 Pedro Alves <palves@redhat.com>
6476
6477 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6478 to_shortname, to_longname or to_doc.
6479
bc85afde
PA
64802014-05-21 Pedro Alves <palves@redhat.com>
6481
6482 * go32-nat.c (go32_target): Don't override to_shortname,
6483 to_longname or to_doc.
6484
4ebfc96e
PA
64852014-05-21 Pedro Alves <palves@redhat.com>
6486
6487 * inf-child.c (inf_child_open): Remove mention of "child".
6488 (inf_child_target): Rename target to "native" instead of "child".
6489
2648dfed
AA
64902014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6491
6492 * Makefile.in (SFILES): Delete "regset.c".
6493 (COMMON_OBS): Delete "regset.o".
6494 * regset.c: Remove.
6495 * regset.h (regset_alloc): Delete prototype.
6496
b13feb94
AA
64972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6498
6499 * sparc-linux-tdep.c (sparc32_linux_gregset)
6500 (sparc32_linux_fpregset): New static regset structures.
6501 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6502 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6503 'fpregset' fields.
6504 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6505 (sparc64_linux_fpregset): New static regset structures.
6506 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6507 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6508 New static regset structures.
6509 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6510 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6511 New static regset structures.
6512 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6513 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6514 New static regset structures.
6515 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6516 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6517 New static regset structures.
6518 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6519
b4fd25c9
AA
65202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6521
6522 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6523 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6524 register maps ("regmaps") from "*regset" to "*regmap". Do this
6525 for all regmap types and variables.
6526 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6527 (sparc32_linux_supply_core_gregset)
6528 (sparc32_linux_collect_core_gregset)
6529 (sparc32_linux_supply_core_fpregset)
6530 (sparc32_linux_collect_core_fpregset): Likewise.
6531 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6532 (sparc_gregmap, sparc_fpregmap): ... these.
6533 (sparc_supply_gregset, sparc_collect_gregset)
6534 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6535 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6536 (_initialize_sparc_nat): Rename regmaps.
6537 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6538 (sparc_gregmap, sparc_fpregmap): ... these.
6539 (sparc_supply_gregset, sparc_collect_gregset)
6540 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6541 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6542 Rename macros to...
6543 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6544 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6545 Likewise.
6546 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6547 Rename to...
6548 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6549 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6550 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6551 regmaps.
6552 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6553 (sparc32_bsd_fpregset): Rename to...
6554 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6555 (sparc32_bsd_fpregmap): ... these.
6556 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6557 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6558 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6559 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6560 (struct sparc_gregmap, struct sparc_fpregmap)
6561 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6562 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6563 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6564 (sparc32_supply_regset, sparc32_collect_gregset)
6565 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6566 prototypes.
6567 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6568 (sparc64_linux_ptrace_gregmap): ... this.
6569 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6570 (_initialize_sparc64_linux_nat): Rename regmaps.
6571 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6572 (sparc64_linux_core_gregmap): ... this.
6573 (sparc64_linux_supply_core_gregset)
6574 (sparc64_linux_collect_core_gregset)
6575 (sparc64_linux_supply_core_fpregset)
6576 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6577 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6578 (sparc64_sol2_fpregset): Rename to...
6579 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6580 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6581 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6582 regmaps.
6583 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6584 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6585 (sparc64_bsd_fpregset): Rename to...
6586 (struct sparc_gregmap, sparc64_sol2_gregmap)
6587 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6588 (sparc64_bsd_fpregmap): ... these.
6589 (sparc64_supply_gregset, sparc64_collect_gregset)
6590 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6591 prototypes.
6592 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6593 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6594 (sparc64fbsd_gregmap): ... this.
6595 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6596 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6597 Rename regmaps.
6598 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6599 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6600 (sparc64nbsd_collect_fpregset): Likewise.
6601 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6602 (sparc64nbsd_gregmap): ... this.
6603 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6604 regmaps.
6605 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6606 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6607 (sparc64obsd_gregmap): ... this.
6608 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6609 regmaps.
6610 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6611 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6612 (sparc32nbsd_gregmap): ... this.
6613 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6614 regmaps.
6615
8fea3224
AA
66162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6617
6618 * score-tdep.c (score7_linux_gregset): New static regset
6619 structure.
6620 (score7_linux_regset_from_core_section): Remove dynamic regset
6621 allocation.
6622 (score_gdbarch_init): Drop allocation of tdep structure.
6623 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6624
24534243
AA
66252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6626
6627 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6628 regset structures.
6629 (am33_regset_from_core_section): Remove dynamic regset
6630 allocations.
6631
b7195f27
AA
66322014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6633
6634 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6635 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6636 structures.
6637 (mips_linux_regset_from_core_section): Remove dynamic regset
6638 allocations.
6639 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6640 'gregset64', 'fpregset', and 'fpregset64'.
6641 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6642 deleted tdep fields.
6643
ecc37a5a
AA
66442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6645
6646 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6647 regset structures.
6648 (amd64_regset_from_core_section): Remove dynamic regset
6649 allocations.
6650 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6651 structure.
6652 (amd64obsd_regset_from_core_section): Remove dynamic regset
6653 allocation.
6654 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6655 Likewise.
6656 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6657 x86-common regset supply function.
6658 * i386-tdep.c (i386_collect_gregset): Make static.
6659 (i386_gregset): New global regset structure.
6660 (i386_fpregset, i386_xstateregset): New static regset structures.
6661 (i386_regset_from_core_section): Remove dynamic regset
6662 allocations.
6663 (i386_gdbarch_init): Remove initialization of tdep fields
6664 'gregset', 'fpregset', and 'xstateregset'.
6665 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6666 'fpregset', and 'xstateregset'.
6667 (i386_collect_gregset): Remove prototype.
6668 (i386_gregset): New declaration.
6669 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6670 structure.
6671 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6672 allocation.
6673
b7611c43
AA
66742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6675
6676 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6677 (arm_linux_vfpregset): New static regset structures.
6678 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6679 regset structures.
6680 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6681 and 'vfpregset' fields.
6682
a069a2bd
AA
66832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6684
6685 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6686 (aarch64_linux_fpregset): New static regset structures.
6687 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6688 of regset structures.
6689 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6690 'fpregset' fields.
6691
09424cff
AA
66922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6693
6694 * regset.h (struct regset): Remove gdbarch field.
6695 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6696 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6697 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6698 Likewise.
6699 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6700 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6701 (ppc32_linux_vsxregset): Likewise.
6702 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6703 via the regcache instead of the regset.
6704 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6705 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6706 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6707 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6708 Likewise.
6709
3ca7dae4
AA
67102014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6711
6712 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6713 Constify structures.
6714 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6715 (alphanbsd_aout_gregset): Likewise.
6716 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6717 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6718 Likewise.
6719 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6720 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6721 Likewise.
6722 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6723 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6724 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6725 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6726 * m88k-tdep.c (m88k_gregset): Likewise.
6727 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6728 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6729 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6730 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6731 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6732 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6733 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6734 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6735 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6736 Likewise.
6737 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6738 * sh-tdep.h (sh_corefile_gregset): Likewise.
6739 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6740 * vax-tdep.c (vax_gregset): Likewise.
6741
5876f503
JK
67422014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6743
6744 Fix TLS access for -static -pthread.
6745 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6746 (try_thread_db_load_1): Initialize it.
6747 (thread_db_get_thread_local_address): Call it if LM is zero.
6748 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6749 * target.h (struct target_ops) (to_get_thread_local_address): Add
6750 load_module_addr comment.
6751
0256a6ac
PA
67522014-05-21 Pedro Alves <palves@redhat.com>
6753
6754 * dcache.c (dcache_read_memory_partial): If reading the cache line
6755 fails, fallback to reading just the memory the caller wanted.
6756
227533ac
DE
67572014-05-20 Doug Evans <dje@google.com>
6758
6759 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6760 instead of get_current_arch.
6761
936d2992
PA
67622014-05-20 Pedro Alves <palves@redhat.com>
6763
6764 * NEWS: Mention that compare-sections now works with all targets.
6765
6766 * remote.c (PACKET_qCRC): New enum value.
6767 (remote_verify_memory): Don't send qCRC if the target has no
6768 execution. Use packet_support/packet_ok. If the target doesn't
6769 support the qCRC packet, fallback to a deep memory copy.
6770 (compare_sections_command): Say "target image" instead of "remote
6771 executable".
6772 (_initialize_remote): Add PACKET_qCRC to the list of config
6773 packets that have no associated command. Extend comment.
6774 * target.c (simple_verify_memory, default_verify_memory): New
6775 function.
6776 * target.h (struct target_ops) <to_verify_memory>: Default to
6777 default_verify_memory.
6778 (simple_verify_memory): New declaration.
6779 * target-delegates.c: Regenerate.
6780
e59fa00f
MM
67812014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6782
6783 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6784
f2205de0
HZ
67852014-05-20 Hui Zhu <hui@codesourcery.com>
6786 Yao Qi <yao@codesourcery.com>
6787
6788 PR backtrace/16558
6789 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6790 and change address of sp and pc.
6791
c4e54771
TT
67922014-05-19 Tom Tromey <tromey@redhat.com>
6793
6794 * gdbtypes.c (rank_function): Use XNEWVEC.
6795 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6796
73051182
DE
67972014-05-19 Doug Evans <dje@google.com>
6798
6799 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6800 build_type_unit_groups and moved closer to only caller. Remove
6801 arguments. All references updated. Remove outdated .gdb_index
6802 comment.
6803 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6804 build_type_psymtabs_1.
6805
8832e7e3
DE
68062014-05-19 Doug Evans <dje@google.com>
6807
6808 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6809 n_type_unit_groups, all_type_unit_groups. All uses removed.
6810 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6811 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6812 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6813 (add_type_unit_group_to_table): Delete.
6814
cd8ae15e
DE
68152014-05-19 Doug Evans <dje@google.com>
6816
6817 * eval.c (evaluate_subexp_standard): Add some comments.
6818
08f4850b
DE
68192014-05-17 Doug Evans <xdje42@gmail.com>
6820
6821 * progspace.c (remove_program_space): Delete, unused.
6822 * progspace.h (remove_program_space): Ditto.
6823
bed8455c
DE
68242014-05-17 Doug Evans <xdje42@gmail.com>
6825
6826 * inferior.c (prune_inferiors): Fix comment.
6827 (remove_inferior_command): Call prune_program_spaces.
6828
8d551b02
DE
68292014-05-16 Doug Evans <dje@google.com>
6830
6831 New command line option -D.
6832 * NEWS: Mention it.
6833 * main.c (set_gdb_data_directory): New function.
6834 (captured_main): Recognize -D. Flag error for --data-directory "".
6835 Call set_gdb_data_directory.
6836 (print_gdb_help): Print --data-directory, -D.
6837 * main.h (set_gdb_data_directory): Declare.
6838 * top.c (staged_gdb_datadir): New static global.
6839 (set_gdb_datadir): Call set_gdb_data_directory
6840 (show_gdb_datadir): New function.
6841 (init_main): Update init of data-directory parameter.
6842
18848e28
GF
68432014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6844
6845 Import the "dirfd" gnulib module.
6846 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6847 * gnulib/aclocal.m4: Update.
6848 * gnulib/config.in: Update.
6849 * gnulib/configure: Update.
6850 * gnulib/import/Makefile.am: Update.
6851 * gnulib/import/Makefile.in: Update.
6852 * gnulib/import/dirfd.c: New.
6853 * gnulib/import/m4/dirfd.m4: New.
6854 * gnulib/import/m4/gnulib-cache.m4: Update.
6855 * gnulib/import/m4/gnulib-comp.m4: Update.
6856
95c64f92
YQ
68572014-05-16 Pierre Muller <muller@sourceware.org>
6858 Yao Qi <yao@codesourcery.com>
6859
6860 * valprint.c (print_wchar): Move the code on checking whether
6861 W is a printable wide char to the default branch of switch
6862 statement below. Call wchar_printable instead of gdb_iswprint.
6863
cac395ea
TM
68642014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6865
19679eca 6866 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6867 ldr.w and ldrd instructions.
6868
83655187
DE
68692014-05-15 Doug Evans <dje@google.com>
6870
6871 * dwarf2read.c (read_structure_type): Delete outdated comments.
6872
dd756689
TT
68732014-05-14 Tom Tromey <tromey@redhat.com>
6874
6875 * macrocmd.c (print_macro_definition): Reindent.
6876
75ddda77
DE
68772014-05-13 Doug Evans <xdje42@gmail.com>
6878
6879 * python/py-cmd.c (cmdpy_completer): Add comment.
6880 (completers): Make const.
6881
b0f16a3e
SM
68822014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6883
6884 * infrun.c (resume): Remove should_resume (unused). Move up
6885 declaration of resume_ptid.
6886
033c3379
TT
68872014-05-13 Tom Tromey <tromey@redhat.com>
6888
6889 * language.h (unop_type_check): Remove.
6890 (binop_type_check): Don't declare.
6891
9b44a3a5
AA
68922014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6893
6894 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6895 call to regcache_raw_collect.
6896
303a33fa
SM
68972014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6898
6899 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6900 mi_console->quote as the quoting character.
6901
196100a0
SM
69022014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6903
6904 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6905
f989a1c8
TT
69062014-04-29 Tom Tromey <tromey@redhat.com>
6907
6908 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6909 "show debug varobj".
6910
9404b58f
KM
69112014-05-07 Kyle McMartin <kyle@redhat.com>
6912
6913 Pushed by Joel Brobecker <brobecker@adacore.com>.
6914 * aarch64-tdep.c (aarch64_software_single_step): New function.
6915 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6916 with aarch64_software_single_step.
6917
5e49ba57
JB
69182014-05-05 Joel Brobecker <brobecker@adacore.com>
6919
6920 GDB 7.7.1 released.
6921
c888a17d
KS
69222014-05-05 Keith Seitz <keiths@redhat.com>
6923
6924 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6925 variable or history value is successfully parsed.
6926
290a839c
YQ
69272014-05-05 Yao Qi <yao@codesourcery.com>
6928 Pedro Alves <palves@redhat.com>
6929
6930 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6931 address of blocks that intersects the requested range. Trim
6932 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6933 sections.
6934 * ctf.c (ctf_xfer_partial): Likewise.
6935
91256dc2
YQ
69362014-05-05 Yao Qi <yao@codesourcery.com>
6937
6938 * printcmd.c (display_command): Remove the check to
6939 target_has_execution.
6940
07284463
MK
69412014-05-03 Mark Kettenis <kettenis@gnu.org>
6942
6943 * ppcobsd-nat.c: Include "obsd-nat.h".
6944 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6945 add_target.
6946 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6947
30a1e6cc
SDJ
69482014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6949
6950 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6951 and 16-bit signed and unsigned arguments. Update comment.
6952 (stap_parse_probe_arguments): Extend code to handle such
6953 arguments. Use warning instead of complaint to notify about
6954 unrecognized bitness.
6955
f33da99a
SDJ
69562014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6957
6958 PR breakpoints/16889
6959 * stap-probe.c (stap_parse_probe_arguments): Simplify
6960 check for non-prefixed probes (i.e., probes whose
6961 arguments do not start with "N@"). Always set the
6962 argument type to a sane value.
6963
95cf3b38
DT
69642014-05-01 David Taylor <dtaylor@emc.com>
6965
6966 * remote.c (compare_sections_command): Add -r option to compare
6967 all loadable read-only sections.
6968
1cfdf534
SC
69692014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6970
6971 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6972 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6973 Update all callers.
6974 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6975 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6976 Remove unused CORE_ADDR argument. Update all callers.
6977
ca4f7f8b
PA
69782014-04-29 Pedro Alves <palves@redhat.com>
6979
6980 * remote.c (struct packet_config) <detect>: Extend comment.
6981 (add_packet_config_cmd): Don't set the config's detect or support
6982 fields here.
6983 (init_all_packet_configs): Also initialize the config's 'detect'
6984 field.
6985 (reset_all_packet_configs_support): New function.
6986 (remote_open_1): Call reset_all_packet_configs_support instead of
6987 init_all_packet_configs.
6988 (_initialize_remote): Initialize all packet configs. Assert that
6989 all packets have an associated command, except a few known
6990 outliers.
6991
11c1ba78
JB
69922014-04-28 Joel Brobecker <brobecker@adacore.com>
6993
6994 * dwarf2read.c (read_subrange_type): Handle dynamic
6995 DW_AT_lower_bound attributes.
6996
8739bc53
JB
69972014-04-28 Joel Brobecker <brobecker@adacore.com>
6998
6999 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7000 dynamic bounds before computing its upper bound.
7001 (ada_discrete_type_low_bound): Same as above with the lower bound.
7002
6f8a3220
JB
70032014-04-28 Joel Brobecker <brobecker@adacore.com>
7004
7005 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7006 range types. Adjust the array handling implementation to
7007 take advantage of this change.
7008 (resolve_dynamic_range): New function, mostly extracted from
7009 resolve_dynamic_bounds.
7010 (resolve_dynamic_array): New function, mostly extracted from
7011 resolve_dynamic_bounds.
7012 (resolve_dynamic_bounds): Delete.
7013 (resolve_dynamic_type): Reimplement. Add handling of
7014 TYPE_CODE_RANGE types.
7015
4d072ce4
JB
70162014-04-28 Joel Brobecker <brobecker@adacore.com>
7017
7018 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7019 handling of parallel ___XA types.
7020
52865325
JB
70212014-04-28 Joel Brobecker <brobecker@adacore.com>
7022
7023 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7024 unnecessary second call to static_unwrap_type.
7025
433e77fa
HZ
70262014-04-27 Hui Zhu <hui@codesourcery.com>
7027
7028 * stack.c (print_frame_info): Call do_gdb_disassembly with
7029 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7030
b51a69ee
DE
70312014-04-26 Doug Evans <xdje42@gmail.com>
7032
7033 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7034
7ae1a6a6
PA
70352014-04-25 Pedro Alves <palves@redhat.com>
7036
7037 PR server/16255
7038 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7039 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7040 and newline from built string.
7041 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7042 (linux_ptrace_attach_fail_reason): ... this.
7043 * linux-nat.c (linux_nat_attach): Adjust to use
7044 linux_ptrace_attach_fail_reason.
7045
4082afcc
PA
70462014-04-25 Pedro Alves <palves@redhat.com>
7047
7048 * remote.c (struct remote_state): Remove multi_process_aware,
7049 non_stop_aware, cond_tracepoints, cond_breakpoints,
7050 breakpoint_commands, fast_tracepoints, static_tracepoints,
7051 install_in_trace, disconnected_tracing,
7052 enable_disable_tracepoints, string_tracing, and
7053 augmented_libraries_svr4_read fields.
7054 (remote_multi_process_p): Move further below in the file.
7055 (struct packet_config): Add comments.
7056 (update_packet_config): Delete function.
7057 (show_packet_config_cmd): Use packet_config_support.
7058 (add_packet_config_cmd): Use NULL as set callback.
7059 (packet_ok): "set remote foo-packet"-style commands no longer
7060 change config->supported -- adjust.
7061 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7062 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7063 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7064 (PACKET_QNonStop, PACKET_multiprocess_feature)
7065 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7066 (PACKET_DisconnectedTracing_feature)
7067 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7068 (set_remote_protocol_packet_cmd): Delete function.
7069 (packet_config_support, packet_support): New functions.
7070 (set_remote_protocol_Z_packet_cmd): Don't call
7071 update_packet_config.
7072 (remote_query_attached, remote_pass_signals)
7073 (remote_program_signals, remote_threads_info)
7074 (remote_threads_extra_info, remote_start_remote): Use
7075 packet_support.
7076 (remote_start_remote): Use packet_config_support and
7077 packet_support.
7078 (init_all_packet_configs): Set all packets to unknown support,
7079 instead of calling update_packet_config.
7080 (remote_check_symbols): Use packet_support.
7081 (remote_supported_packet): Unconditionally set the packet config's
7082 support status.
7083 (remote_multi_process_feature, remote_non_stop_feature)
7084 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7085 (remote_breakpoint_commands_feature)
7086 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7087 (remote_install_in_trace_feature)
7088 (remote_disconnected_tracing_feature)
7089 (remote_enable_disable_tracepoint_feature)
7090 (remote_string_tracing_feature)
7091 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7092 (remote_protocol_features): Adjust to use remote_supported_packet
7093 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7094 "ConditionalTracepoints", "ConditionalBreakpoints",
7095 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7096 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7097 "EnableDisableTracepoints", and "tracenz".
7098 (remote_query_supported): Use packet_support.
7099 (remote_open_1): Adjust.
7100 (extended_remote_attach_1): Use packet_support. Switch on the
7101 result of packet_ok instead of checking whether the packet ended
7102 up disabled.
7103 (remote_vcont_resume): Use packet_support.
7104 (remote_resume, remote_stop_ns, fetch_register_using_p)
7105 (remote_prepare_to_store, store_register_using_P)
7106 (check_binary_download, remote_write_bytes): Use packet_support.
7107 (remote_vkill): Use packet_support. Switch on the result of
7108 packet_ok instead of checking whether the packet ended up
7109 disabled.
7110 (extended_remote_supports_disable_randomization): Use
7111 packet_support.
7112 (extended_remote_run): Switch on the result of packet_ok instead
7113 of checking whether the packet ended up disabled.
7114 (remote_insert_breakpoint, remote_remove_breakpoint)
7115 (remote_insert_watchpoint, remote_remove_watchpoint)
7116 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7117 packet_support.
7118 (remote_search_memory): Use packet_config_support.
7119 (remote_get_thread_local_address, remote_get_tib_address)
7120 (remote_hostio_send_command, remote_can_execute_reverse): Use
7121 packet_support.
7122 (remote_supports_cond_tracepoints)
7123 (remote_supports_cond_breakpoints)
7124 (remote_supports_fast_tracepoints)
7125 (remote_supports_static_tracepoints)
7126 (remote_supports_install_in_trace)
7127 (remote_supports_enable_disable_tracepoint)
7128 (remote_supports_string_tracing)
7129 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7130 the packet config says the feature is enabled or disabled.
7131 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7132 (remote_get_trace_status): Use packet_support.
7133 (remote_set_disconnected_tracing): Adjust to check whether the
7134 feature is enabled with packet_support.
7135 (remote_set_trace_buffer_size, remote_use_agent)
7136 (remote_can_use_agent, remote_supports_btrace): Use
7137 packet_support.
7138 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7139 Use packet_config_support.
7140 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7141 the packet config says the feature is enabled or disabled.
7142 (set_range_stepping): Use packet_support.
7143
bdb52a22
TT
71442014-04-25 Tom Tromey <tromey@redhat.com>
7145
7146 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7147 argument.
7148
e9475ead
SA
71492014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7150
7151 * NEWS: Mention support for C99 variable length arrays.
7152
82eacd52
JB
71532014-04-24 Joel Brobecker <brobecker@adacore.com>
7154
7155 * ada-lang.c (standard_exc): Expand introductory comment.
7156
01f9f808
MS
71572014-04-24 Michael Sturm <michael.sturm@mintel.com>
7158 Walfred Tedeschi <walfred.tedeschi@intel.com>
7159
7160 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7161 AVX512 registers.
7162 (amd64_linux_read_description): Add code to handle AVX512 xstate
7163 mask and return respective tdesc.
7164 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7165 and features/i386/x32-avx512-linux.c.
7166 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7167 (amd64_linux_core_read_description): Add code to handle AVX512
7168 xstate mask and return respective tdesc.
7169 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7170 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7171 calculation.
7172 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7173 (tdesc_amd64_avx512_linux): New prototype.
7174 (tdesc_x32_avx512_linux): Likewise.
7175 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7176 features/i386/x32-avx512.c.
7177 (amd64_ymm_avx512_names): New register names for pseudo
7178 registers YMM16-31.
7179 (amd64_ymmh_avx512_names): New register names for raw registers
7180 YMMH16-31.
7181 (amd64_k_names): New register names for K registers.
7182 (amd64_zmmh_names): New register names for ZMM raw registers.
7183 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7184 (amd64_xmm_avx512_names): New register names for XMM16-31
7185 registers.
7186 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7187 registers.
7188 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7189 if feature is present.
7190 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7191 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7192 (AMD64_NUM_REGS): Adjust to new number of registers.
7193 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7194 registers supplied via XSTATE by AVX512 registers.
7195 (i386_linux_read_description): Add case for AVX512.
7196 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7197 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7198 (i386_linux_core_read_description): Add case for AVX512.
7199 (i386_linux_init_abi): Install supported register note section
7200 for AVX512.
7201 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7202 AVX512.
7203 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7204 registers to be number of zmm7h + 1.
7205 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7206 * i386-tdep.c: Include features/i386/i386-avx512.c.
7207 (i386_zmm_names): Add ZMM pseudo register names array.
7208 (i386_zmmh_names): Add ZMM raw register names array.
7209 (i386_k_names): Add K raw register names array.
7210 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7211 registers. AVX512 has 16 more ZMM registers than there are YMM
7212 registers.
7213 (i386_zmmh_regnum_p): Add function to look up register number of
7214 ZMM raw registers.
7215 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7216 (i386_k_regnum_p): Likewise for K raw registers.
7217 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7218 registers added by AVX512.
7219 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7220 registers added by AVX512.
7221 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7222 added by AVX512.
7223 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7224 (i386_pseudo_register_name): Add ZMM pseudo registers.
7225 (i386_zmm_type): Construct and return vector registers type for ZMM
7226 registers.
7227 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7228 ZMM0-31 pseudo registers and K registers.
7229 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7230 and YMM16-31 registers from register cache.
7231 (i386_pseudo_register_write): Add code to write K, ZMM and
7232 YMM16-31 registers.
7233 (i386_register_reggroup_p): Add code to include/exclude AVX512
7234 registers in/from respective register groups.
7235 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7236 registers if feature is present in xcr0.
7237 (i386_gdbarch_init): Add code to initialize AVX512 feature
7238 variables in tdep structure, wire in pseudo registers and call
7239 initialize_tdesc_i386_avx512.
7240 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7241 variables.
7242 (i386_regnum): Add AVX512 registers.
7243 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7244 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7245 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7246 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7247 512 bits wide.
7248 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7249 (i386_ymm_avx512_regnum_p): Likewise.
7250 (i386_k_regnum_p): Likewise.
7251 (i386_zmm_regnum_p): Likewise.
7252 (i386_zmmh_regnum_p): Likewise.
7253 * i387-tdep.c : Update year in copyright notice.
7254 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7255 XSAVE buffer.
7256 (XSAVE_YMM_AVX512_ADDR): New macro.
7257 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7258 XSAVE buffer.
7259 (XSAVE_XMM_AVX512_ADDR): New macro.
7260 (xsave_avx512_k_offset): New table for K register offsets in
7261 XSAVE buffer.
7262 (XSAVE_AVX512_K_ADDR): New macro.
7263 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7264 in XSAVE buffer.
7265 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7266 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7267 buffer.
7268 (i387_collect_xsave): Add code to collect AVX512 registers from
7269 XSAVE buffer.
7270 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7271 of XMM16-31 registers.
7272 (I387_NUM_K_REGS): New define for number of K registers.
7273 (I387_K0_REGNUM): New define for K0 register number.
7274 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7275 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7276 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7277 registers.
7278 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7279 (I387_XMM16_REGNUM): New define for XMM16 register number.
7280 (I387_YMM0_REGNUM): New define for YMM0 register number.
7281 (I387_KEND_REGNUM): New define for last K register number.
7282 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7283 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7284 number.
7285 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7286 number.
7287 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7288 size.
7289 * features/Makefile: Add AVX512 related files.
7290 * features/i386/32bit-avx512.xml: New file.
7291 * features/i386/64bit-avx512.xml: Likewise.
7292 * features/i386/amd64-avx512-linux.c: Likewise.
7293 * features/i386/amd64-avx512-linux.xml: Likewise.
7294 * features/i386/amd64-avx512.c: Likewise.
7295 * features/i386/amd64-avx512.xml: Likewise.
7296 * features/i386/i386-avx512-linux.c: Likewise.
7297 * features/i386/i386-avx512-linux.xml: Likewise.
7298 * features/i386/i386-avx512.c: Likewise.
7299 * features/i386/i386-avx512.xml: Likewise.
7300 * features/i386/x32-avx512-linux.c: Likewise.
7301 * features/i386/x32-avx512-linux.xml: Likewise.
7302 * features/i386/x32-avx512.c: Likewise.
7303 * features/i386/x32-avx512.xml: Likewise.
7304 * regformats/i386/amd64-avx512-linux.dat: New file.
7305 * regformats/i386/amd64-avx512.dat: Likewise.
7306 * regformats/i386/i386-avx512-linux.dat: Likewise.
7307 * regformats/i386/i386-avx512.dat: Likewise.
7308 * regformats/i386/x32-avx512-linux.dat: Likewise.
7309 * regformats/i386/x32-avx512.dat: Likewise.
7310 * NEWS: Add note about new support for AVX512.
7311
7312
08351840
PA
73132014-04-23 Pedro Alves <palves@redhat.com>
7314
7315 * breakpoint.c (insert_bp_location): Tolerate errors if the
7316 breakpoint is set in a user-loaded objfile.
7317 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7318 location is marked shlib_disabled. If the breakpoint is set in a
7319 user-loaded objfile is a GDB-side memory breakpoint, validate it
7320 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7321 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7322 flag.
7323 * mem-break.c (memory_validate_breakpoint): New function.
7324 * objfiles.c (userloaded_objfile_contains_address_p): New
7325 function.
7326 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7327 * target.h (memory_validate_breakpoint): New declaration.
7328
076855f9
PA
73292014-04-23 Pedro Alves <palves@redhat.com>
7330
7331 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7332 the breakpoint is set in a shared library, only suppress
7333 errors for software breakpoints, not hardware breakpoints.
7334
483805cf
PA
73352014-04-22 Pedro Alves <palves@redhat.com>
7336
7337 * infrun.c (schedlock_applies): New function, factored out from
7338 find_thread_needs_step_over.
7339 (find_thread_needs_step_over): Use it.
7340 (switch_back_to_stepped_thread): Always clear trap_expected if the
7341 step over is finished. Return early if scheduler locking applies.
7342 Look for the stepping thread and a potential step-over thread with
7343 a single loop.
7344 (currently_stepping_or_nexting_callback): Delete.
7345
a75fef0e
NC
73462014-04-22 Nick Clifton <nickc@redhat.com>
7347
7348 * NEWS: Mention that ARM sim now supports tracing.
7349
48b6e87e
YQ
73502014-04-22 Yao Qi <yao@codesourcery.com>
7351
7352 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7353 to ...
7354 * tracefile.c (tracefile_fetch_registers): ... it. New
7355 function.
7356 * tracefile.h (tracefile_fetch_registers): Declare.
7357 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7358 tracefile_fetch_registers.
7359
17617f2d
EZ
73602014-04-19 Eli Zaretskii <eliz@gnu.org>
7361
7362 PR gdb/14018
7363 * windows-nat.c (thread_rec): Don't display a warning when
7364 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7365 fails for any reason, set th->suspended to -1, so that we don't
7366 try to resume such a thread. Also, don't return NULL in these
7367 cases, to avoid completely ruin the session due to "PC register is
7368 not available" error.
7369 (do_windows_fetch_inferior_registers): Check errors in
7370 GetThreadContext call.
7371 (windows_continue): Accept an additional argument KILLED; if not
7372 zero, ignore errors in the SetThreadContext call, since the
7373 inferior was killed and is shutting down.
7374 (windows_resume, get_windows_debug_event)
7375 (windows_create_inferior, windows_mourn_inferior)
7376 (windows_kill_inferior): All callers of windows_continue changed
7377 to adjust to its new calling sequence.
7378
5723a6fd
YQ
73792014-04-19 Yao Qi <yao@codesourcery.com>
7380
7381 * ctf.c (ctf_open): Call post_create_inferior.
7382
614d5099
YQ
73832014-04-19 Yao Qi <yao@codesourcery.com>
7384
7385 * ctf.c (handle_id): New static variable.
7386 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7387 value. Get the declaration of event "register" and get length
7388 of field "contents".
7389
dac3e710
YQ
73902014-04-19 Yao Qi <yao@codesourcery.com>
7391
7392 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7393
2bca57ba
SC
73942014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7395
7396 * valops.c (oload_method_static): Remove unnecessary argument
7397 METHOD. Update all callers.
7398
51d48146
PA
73992014-04-18 Pedro alves <palves@redhat.com>
7400 Tom Tromey <tromey@redhat.com>
7401
7402 PR backtrace/15558
7403 * frame.c (get_prev_frame_1): Rename to ...
7404 (get_prev_frame_always): ... this, and make extern. Adjust.
7405 (skip_artificial_frames): Use get_prev_frame_always.
7406 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7407 (get_frame_unwind_stop_reason): Adjust to rename.
7408 * frame.h (get_prev_frame_always): Declare.
7409 * inline-frame.c: Include frame.h.
7410 (inline_frame_this_id): Use get_prev_frame_always.
7411
1bdad2e0
TG
74122014-04-18 Tristan Gingold <gingold@adacore.com>
7413
7414 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7415 code by using bfd_mach_o_get_base_address.
7416
7ce16bd4
UW
74172014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7418
7419 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7420 (spu_ax_pseudo_register_collect): New function.
7421 (spu_ax_pseudo_register_push_stack): Likewise.
7422 (spu_dwarf_reg_to_regnum): Likewise.
7423 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7424
2ed3c037
UW
74252014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7426
7427 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7428 Replace FRAME argument with FRAME_ID.
7429 * gdbarch.c, gdbarch.h: Regenerate.
7430 * findvar.c (default_value_from_register): Add GDBARCH argument;
7431 replace FRAME by FRAME_ID. No longer call get_frame_id.
7432 (value_from_register): Update call to gdbarch_value_from_register.
7433 * value.h (default_value_from_register): Update prototype.
7434 * s390-linux-tdep.c (s390_value_from_register): Update interface
7435 and call to default_value_from_register.
7436 * spu-tdep.c (spu_value_from_register): Likewise.
7437
7438 * findvar.c (address_from_register): Remove TYPE argument.
7439 Do not call value_from_register; use gdbarch_value_from_register
7440 with null_frame_id instead.
7441 * value.h (address_from_register): Update prototype.
7442 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7443 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7444 address_from_register interface change.
7445
71e50e83
YQ
74462014-04-17 Yao Qi <yao@codesourcery.com>
7447
7448 * gdbtypes.h: Update comments to link to types and macros'
7449 definitions.
7450
7a23c549
SC
74512014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7452
7453 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7454
22869d73
KS
74552014-04-16 Keith Seitz <keiths@redhat.com>
7456
7457 PR gdb/15827
7458 * dwarf2read.c (skip_one_die): Check that all relative-offset
7459 sibling DIEs fall within range of the current reader's buffer.
7460 (read_partial_die): Likewise.
7461
c4f87ca6
KS
74622014-04-16 Keith Seitz <keiths@redhat.com>
7463
7464 PR c++/16597
7465 * cp-namespace.c (lookup_symbol_file): If the type name of
7466 `this' is NULL, return immediately.
7467
b50c8614
KS
74682014-04-14 Keith Seitz <keiths@redhat.com>
7469
7470 PR c++/16253
7471 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7472 from symbol_matches_domain in symtab.c. All local callers
7473 of symbol_matches_domain updated.
7474 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7475 search STRUCT_DOMAIN.
7476 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7477 independently. standard_lookup will do that automatically.
7478 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7479 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7480 (cp_lookup_symbol_in_namespace): Likewise.
7481 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7482 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7483 may return a STRUCT_DOMAIN match.
7484 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7485 * cp-support.c: Include language.h.
7486 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7487 VAR_DOMAIN.
7488 * psymtab.c (match_partial_symbol): Compare the requested
7489 domain with the symbol's domain directly.
7490 (lookup_partial_symbol): Likewise.
7491 * symtab.c (lookup_symbol_in_language): Explain when/why
7492 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7493 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7494 appropriate languages.
7495 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7496 and moved to ada-lang.c
7497 (lookup_block_symbol): Explain that this function only returns
7498 symbol matching the requested DOMAIN.
7499 Compare the requested domain with the symbol's domain directly.
7500 (iterate_over_symbols): Compare the requested domain with the
7501 symbol's domain directly.
7502 * symtab.h (symbol_matches_domain): Remove.
7503
3d567982
TT
75042014-04-14 Tom Tromey <tromey@redhat.com>
7505
7506 PR c++/15246:
7507 * c-exp.y (type_aggregate_p): New function.
7508 (qualified_name, classify_inner_name): Use it.
7509 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7510 and TYPE_TARGET_TYPE of an enum type.
7511 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7512 an enum type.
7513 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7514 handle TYPE_DECLARED_CLASS.
7515 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7516 types.
7517 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7518 * valops.c (enum_constant_from_type): New function.
7519 (value_aggregate_elt): Use it.
7520 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7521 TYPE_CODE_ENUM.
7522
c848d642
TT
75232014-04-14 Tom Tromey <tromey@redhat.com>
7524
7525 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7526 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7527 const.
7528 * value.h (value_aggregate_elt): Update.
7529
0626fc76
TT
75302014-04-14 Tom Tromey <tromey@redhat.com>
7531
7532 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7533
5ecaaa66
SA
75342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7535
7536 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7537 (evaluate_subexp_standard): Pass noside argument.
7538 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7539 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7540 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7541 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7542 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7543
1612e0c0
SA
75442014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7545
7546 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7547 points to a constant blob.
7548
c451ebe5
SA
75492014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7550
7551 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7552 property and store it as the high bound and flag the range accordingly.
7553 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7554 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7555 * gdbtypes.h (enum range_flags): New enum.
7556 (struct range_bounds): Add flags member.
7557
1d42e4c4
SA
75582014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7559
7560 * c-typeprint.c (c_type_print_varspec_suffix): Added
7561 check for not yet resolved high bound. If unresolved, print
7562 "variable length" string to the console instead of random
7563 length.
7564
9f1f738a
SA
75652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7566
7567 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7568 value.
7569 (ada_template_to_fixed_record_type_1): Likewise.
7570 (ada_to_fixed_type_1): Likewise.
7571 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7572 (cp_print_value): Likewise.
7573 * d-valprint.c (dynamic_array_type): Likewise.
7574 * findvar.c (address_of_variable): Likewise.
7575 * jv-valprint.c (java_value_print): Likewise.
7576 * valops.c (value_ind): Likewise.
7577 * value.c (coerce_ref): Likewise.
7578
3c8452d4
SA
75792014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7580
7581 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7582 value and retrieve the dynamic type size.
7583
4ad88275
SA
75842014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7585
7586 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7587 passed to sizeof is dynamic evaluate the argument to compute the length.
7588
80180f79
SA
75892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7590 Joel Brobecker <brobecker@adacore.com>
7591
7592 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7593 (dwarf2_evaluate_property): New function.
7594 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7595 * dwarf2read.c (attr_to_dynamic_prop): New function.
7596 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7597 attribute.
7598 * gdbtypes.c: Include dwarf2loc.h.
7599 (is_dynamic_type): New function.
7600 (resolve_dynamic_type): New function.
7601 (resolve_dynamic_bounds): New function.
7602 (get_type_length): New function.
7603 (check_typedef): Use get_type_length to compute type length.
7604 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7605 (TYPE_LOW_BOUND_KIND): New macro.
7606 (is_dynamic_type): New function prototype.
7607 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7608 to resolve dynamic properties of the type. Update comment.
7609 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7610
a1556843
RH
76112014-04-14 Richard Henderson <rth@redhat.com>
7612
7613 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7614
0be03e84
DE
76152014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7616 Doug Evans <xdje42@gmail.com>
7617
7618 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7619 dereference TYPE_CODE_REF values.
7620
6b662e19
JB
76212014-04-11 Joel Brobecker <brobecker@adacore.com>
7622
7623 Revert the following changes due to regressions:
7624
7625 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7626 (dwarf2_evaluate_property): New function.
7627 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7628 * dwarf2read.c (attr_to_dynamic_prop): New function.
7629 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7630 attribute.
7631 * gdbtypes.c: Include dwarf2loc.h.
7632 (is_dynamic_type): New function.
7633 (resolve_dynamic_type): New function.
7634 (resolve_dynamic_bounds): New function.
7635 (get_type_length): New function.
7636 (check_typedef): Use get_type_length to compute type length.
7637 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7638 (TYPE_LOW_BOUND_KIND): New macro.
7639 (is_dynamic_type): New function prototype.
7640 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7641 to resolve dynamic properties of the type. Update comment.
7642 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7643
7644 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7645 passed to sizeof is dynamic evaluate the argument to compute the length.
7646
7647 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7648 value and retrieve the dynamic type size.
7649
7650 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7651 (ada_template_to_fixed_record_type_1): Likewise.
7652 (ada_to_fixed_type_1): Likewise.
7653 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7654 (cp_print_value): Likewise.
7655 * d-valprint.c (dynamic_array_type): Likewise.
7656 * eval.c (evaluate_subexp_with_coercion): Likewise.
7657 * findvar.c (address_of_variable): Likewise.
7658 * jv-valprint.c (java_value_print): Likewise.
7659 * valops.c (value_ind): Likewise.
7660 * value.c (coerce_ref): Likewise.
7661
7662 * c-typeprint.c (c_type_print_varspec_suffix): Added
7663 check for not yet resolved high bound. If unresolved, print
7664 "variable length" string to the console instead of random
7665 length.
7666
7667 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7668 property and store it as the high bound and flag the range accordingly.
7669 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7670 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7671 * gdbtypes.h (enum range_flags): New enum.
7672 (struct range_bounds): Add flags member.
7673
7674 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7675 points to a constant blob.
7676
7677 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7678 (evaluate_subexp_standard): Pass noside argument.
7679 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7680 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7681 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7682 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7683 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7684
245a5f0b
KS
76852014-04-11 Keith Seitz <keiths@redhat.com>
7686
7687 PR c++/16675
7688 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7689 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7690 reference types.
7691
3bce8237
SA
76922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7693
7694 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7695 (evaluate_subexp_standard): Pass noside argument.
7696 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7697 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7698 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7699 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7700 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7701
92b09522
SA
77022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7703
7704 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7705 points to a constant blob.
7706
e1969afb
SA
77072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7708
7709 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7710 property and store it as the high bound and flag the range accordingly.
7711 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7712 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7713 * gdbtypes.h (enum range_flags): New enum.
7714 (struct range_bounds): Add flags member.
7715
b86138fb
SA
77162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7717
7718 * c-typeprint.c (c_type_print_varspec_suffix): Added
7719 check for not yet resolved high bound. If unresolved, print
7720 "variable length" string to the console instead of random
7721 length.
7722
bcd629a4
SA
77232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7724
7725 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7726 (ada_template_to_fixed_record_type_1): Likewise.
7727 (ada_to_fixed_type_1): Likewise.
7728 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7729 (cp_print_value): Likewise.
7730 * d-valprint.c (dynamic_array_type): Likewise.
7731 * eval.c (evaluate_subexp_with_coercion): Likewise.
7732 * findvar.c (address_of_variable): Likewise.
7733 * jv-valprint.c (java_value_print): Likewise.
7734 * valops.c (value_ind): Likewise.
7735 * value.c (coerce_ref): Likewise.
7736
04b19544
SA
77372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7738
7739 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7740 value and retrieve the dynamic type size.
7741
26cb189f
SA
77422014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7743
7744 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7745 passed to sizeof is dynamic evaluate the argument to compute the length.
7746
37c1ab67
SA
77472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7748
7749 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7750 (dwarf2_evaluate_property): New function.
7751 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7752 * dwarf2read.c (attr_to_dynamic_prop): New function.
7753 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7754 attribute.
7755 * gdbtypes.c: Include dwarf2loc.h.
7756 (is_dynamic_type): New function.
7757 (resolve_dynamic_type): New function.
7758 (resolve_dynamic_bounds): New function.
7759 (get_type_length): New function.
7760 (check_typedef): Use get_type_length to compute type length.
7761 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7762 (TYPE_LOW_BOUND_KIND): New macro.
7763 (is_dynamic_type): New function prototype.
7764 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7765 to resolve dynamic properties of the type. Update comment.
7766 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7767
729efb13
SA
77682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7769
7770 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7771 declaring high/low bounds and change uses accordingly. Call
7772 create_range_type instead of create_static_range_type.
7773 * gdbtypes.c (create_range_type): New function.
7774 (create_range_type): Convert bounds into struct bound_prop and pass
7775 them to create_range_type.
7776 * gdbtypes.h (struct bound_prop): New struct.
7777 (create_range_type): New function prototype.
7778 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7779 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7780 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7781 part of the bound.
7782 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7783
0c9c3474
SA
77842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7785
7786 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7787 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7788 * ada-lang.c: All uses of create_range_type updated.
7789 * coffread.c: All uses of create_range_type updated.
7790 * dwarf2read.c: All uses of create_range_type updated.
7791 * f-exp.y: All uses of create_range_type updated.
7792 * m2-valprint.c: All uses of create_range_type updated.
7793 * mdebugread.c: All uses of create_range_type updated.
7794 * stabsread.c: All uses of create_range_type updated.
7795 * valops.c: All uses of create_range_type updated.
7796 * valprint.c: All uses of create_range_type updated.
7797
9d497a19
PA
77982014-04-10 Pedro Alves <palves@redhat.com>
7799
7800 * breakpoint.c (single_step_breakpoints)
7801 (single_step_gdbarch): Move up in the file.
7802 (one_breakpoint_xfer_memory): New function, factored out from ...
7803 (breakpoint_xfer_memory): ... here. Also process single-step
7804 breakpoints.
7805
15a9128a
TG
78062014-04-09 Tristan Gingold <gingold@adacore.com>
7807
7808 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7809 comments.
7810 (darwin_decode_exception_message): Free port only after use.
7811
9c97a070
PL
78122014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7813
7814 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7815 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7816 when setting the size of call_length.
7817
7af389b8
SC
78182014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7819
7820 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7821 dereference TYPE_CODE_REF values.
7822
86ad98c3
JB
78232014-04-07 Joel Brobecker <brobecker@adacore.com>
7824
7825 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7826 end of warning message.
7827
b0aeadb3
DE
78282014-04-03 Doug Evans <dje@google.com>
7829
7830 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7831 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7832
5979d6b6
AM
78332014-04-02 Alan Modra <amodra@gmail.com>
7834
7835 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7836 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7837 (struct symbol_file_add_from_memory_args): Add size field.
7838 (find_vdso_size): New function.
7839 (add_vsyscall_page): Attempt to find vdso size.
7840
0d60c288
DE
78412014-04-01 Doug Evans <dje@google.com>
7842
7843 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7844
a41f2563
TG
78452014-04-01 Tristan Gingold <gingold@adacore.com>
7846
7847 * darwin-nat.c (darwin_encode_reply): Add prototype.
7848 (darwin_decode_exception_message): Reply to unknown inferiors.
7849 (darwin_decode_message): Handle message by id. Ignore message
7850 to unknown inferior.
7851 (darwin_wait): Discard unknown messages, add debug trace.
7852
11a865c8
DE
78532014-03-31 Doug Evans <dje@google.com>
7854
7855 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7856 comp_dir_string.
7857
770e7fc7
DE
78582014-03-31 Doug Evans <dje@google.com>
7859
7860 New option "set print symbol-loading".
7861 * NEWS: Mention it.
7862 * solib.c (solib_read_symbols): Only print symbol loading messages
7863 if requested.
7864 (solib_add): If symbol loading is in "brief" mode, notify user
7865 symbols are being loaded.
7866 (reload_shared_libraries_1): Ditto.
7867 * symfile.c (print_symbol_loading_off): New static global.
7868 (print_symbol_loading_brief): New static global.
7869 (print_symbol_loading_full): New static global.
7870 (print_symbol_loading_enums): New static global.
7871 (print_symbol_loading): New static global.
7872 (print_symbol_loading_p): New function.
7873 (symbol_file_add_with_addrs): Only print symbol loading messages
7874 if requested.
7875 (_initialize_symfile): Register "print symbol-loading" set/show
7876 command.
7877 * symfile.h (print_symbol_loading_p): Declare.
7878
c32c64b7
DE
78792014-03-30 Doug Evans <xdje42@gmail.com>
7880
7881 * infrun.c (set_last_target_status): New function.
7882 (handle_inferior_event): Call it.
7883
7c0bc051
DE
78842014-03-30 Doug Evans <xdje42@gmail.com>
7885
7886 * inferior.h (enum stop_kind): Improve comment.
7887
8776cfe9
JB
78882014-03-28 Joel Brobecker <brobecker@adacore.com>
7889
7890 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7891 a reference, strip the reference layer before calling
7892 the lang_ops value_has_mutated callback.
7893
410a0ff2
SDJ
78942014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7895
7896 Remove some globals from our parser.
7897 * language.c (unk_lang_parser): Add "struct parser_state"
7898 argument.
7899 * language.h (struct language_defn) <la_parser>: Likewise.
7900 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7901 (initialize_expout): Add "struct parser_state" argument.
7902 Rewrite function to use the parser state.
7903 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7904 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7905 write_exp_elt_longcst, write_exp_elt_dblcst,
7906 write_exp_elt_decfloatcst, write_exp_elt_type,
7907 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7908 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7909 write_dollar_variable): Likewise.
7910 (parse_exp_in_context_1): Use parser state.
7911 (insert_type_address_space): Add "struct parser_state" argument.
7912 Use parser state.
7913 (increase_expout_size): New function.
7914 * parser-defs.h: Forward declare "struct language_defn" and
7915 "struct parser_state".
7916 (expout, expout_size, expout_ptr): Remove extern declarations.
7917 (parse_gdbarch, parse_language): Rewrite macro declarations to
7918 accept the parser state.
7919 (struct parser_state): New struct.
7920 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7921 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7922 write_exp_elt_decfloatcst, write_exp_elt_type,
7923 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7924 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7925 write_exp_msymbol, write_dollar_variable,
7926 mark_struct_expression, insert_type_address_space): Add "struct
7927 parser_state" argument.
7928 (increase_expout_size): New function.
7929 * utils.c (do_clear_parser_state): New function.
7930 (make_cleanup_clear_parser_state): Likewise.
7931 * utils.h (make_cleanup_clear_parser_state): New function
7932 prototype.
7933 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7934 Update calls to write_exp* in order to pass the parser state.
7935 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7936 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7937 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7938 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7939 * stap-probe.c (stap_parse_register_operand): Likewise.
7940 (stap_parse_single_operand): Likewise.
7941 (stap_parse_argument_1): Likewise.
7942 (stap_parse_argument): Use parser state.
7943 * stap-probe.h: Include "parser-defs.h".
7944 (struct stap_parse_info) <pstate>: New field.
7945 * c-exp.y (parse_type): Rewrite to use parser state.
7946 (yyparse): Redefine to c_parse_internal.
7947 (pstate): New global variable.
7948 (parse_number): Add "struct parser_state" argument.
7949 (write_destructor_name): Likewise.
7950 (type_exp): Update calls to write_exp* and similars in order to
7951 use parser state.
7952 (exp1, exp, variable, qualified_name, space_identifier,
7953 typename, typebase): Likewise.
7954 (write_destructor_name, parse_number, lex_one_token,
7955 classify_name, classify_inner_name, c_parse): Add "struct
7956 parser_state" argument. Update function to use parser state.
7957 * c-lang.h: Forward declare "struct parser_state".
7958 (c_parse): Add "struct parser_state" argument.
7959 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7960 (yyparse): Redefine macro to ada_parse_internal.
7961 (pstate): New variable.
7962 (write_int, write_object_renaming, write_var_or_type,
7963 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7964 type_int, type_long, type_long_long, type_float, type_double,
7965 type_long_double, type_char, type_boolean, type_system_address):
7966 Add "struct parser_state" argument.
7967 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7968 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7969 var_or_type, aggregate, aggregate_component_list,
7970 positional_list, others, component_group,
7971 component_associations): Update calls to write_exp* and similar
7972 functions in order to use parser state.
7973 (ada_parse, write_var_from_sym, write_int,
7974 write_exp_op_with_string, write_object_renaming,
7975 find_primitive_type, write_selectors, write_ambiguous_var,
7976 write_var_or_type, write_name_assoc, type_int, type_long,
7977 type_long_long, type_float, type_double, type_long_double,
7978 type_char, type_boolean, type_system_address): Add "struct
7979 parser_state" argument. Adjust function to use parser state.
7980 * ada-lang.c (parse): Likewise.
7981 * ada-lang.h: Forward declare "struct parser_state".
7982 (ada_parse): Add "struct parser_state" argument.
7983 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7984 calls to both functions.
7985 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7986 parser state.
7987 (yyparse): Redefine macro to f_parse_internal.
7988 (pstate): New variable.
7989 (parse_number): Add "struct parser_state" argument.
7990 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7991 and similars in order to use parser state.
7992 (parse_number): Adjust code to use parser state.
7993 (yylex): Likewise.
7994 (f_parse): New function.
7995 * f-lang.h: Forward declare "struct parser_state".
7996 (f_parse): Add "struct parser_state" argument.
7997 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7998 parser state.
7999 (yyparse): Redefine macro for java_parse_internal.
8000 (pstate): New variable.
8001 (push_expression_name, push_expression_name, insert_exp): Add
8002 "struct parser_state" argument.
8003 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8004 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8005 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8006 PostIncrementExpression, PostDecrementExpression,
8007 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8008 UnaryExpressionNotPlusMinus, CastExpression,
8009 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8010 RelationalExpression, EqualityExpression, AndExpression,
8011 ExclusiveOrExpression, InclusiveOrExpression,
8012 ConditionalAndExpression, ConditionalOrExpression,
8013 ConditionalExpression, Assignment, LeftHandSide): Update
8014 calls to write_exp* and similars in order to use parser state.
8015 (parse_number): Ajust code to use parser state.
8016 (yylex): Likewise.
8017 (java_parse): New function.
8018 (push_variable): Add "struct parser_state" argument. Adjust
8019 code to user parser state.
8020 (push_fieldnames, push_qualified_expression_name,
8021 push_expression_name, insert_exp): Likewise.
8022 * jv-lang.h: Forward declare "struct parser_state".
8023 (java_parse): Add "struct parser_state" argument.
8024 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8025 parser state.
8026 (yyparse): Redefine macro to m2_parse_internal.
8027 (pstate): New variable.
8028 (type_exp, exp, fblock, variable, type): Update calls to
8029 write_exp* and similars to use parser state.
8030 (yylex): Likewise.
8031 (m2_parse): New function.
8032 * m2-lang.h: Forward declare "struct parser_state".
8033 (m2_parse): Add "struct parser_state" argument.
8034 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8035 * objc-lang.h: Forward declare "struct parser_state".
8036 (end_msglist): Add "struct parser_state" argument.
8037 * p-exp.y (parse_type): Rewrite macro to use parser state.
8038 (yyparse): Redefine macro to pascal_parse_internal.
8039 (pstate): New variable.
8040 (parse_number): Add "struct parser_state" argument.
8041 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8042 write_exp* and similars in order to use parser state.
8043 (parse_number, yylex): Adjust code to use parser state.
8044 (pascal_parse): New function.
8045 * p-lang.h: Forward declare "struct parser_state".
8046 (pascal_parse): Add "struct parser_state" argument.
8047 * go-exp.y (parse_type): Rewrite macro to use parser state.
8048 (yyparse): Redefine macro to go_parse_internal.
8049 (pstate): New variable.
8050 (parse_number): Add "struct parser_state" argument.
8051 (type_exp, exp1, exp, variable, type): Update calls to
8052 write_exp* and similars in order to use parser state.
8053 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8054 to use parser state.
8055 (go_parse): Likewise.
8056 * go-lang.h: Forward declare "struct parser_state".
8057 (go_parse): Add "struct parser_state" argument.
8058
342587c4
DE
80592014-03-27 Doug Evans <dje@google.com>
8060
8061 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8062
33e80786
DE
80632014-03-27 Doug Evans <dje@google.com>
8064
8065 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8066 Remove argument abbrev_section. All callers updated.
8067
1dbab08b
DE
80682014-03-27 Doug Evans <dje@google.com>
8069
8070 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8071 addr_base, ranges_base.
8072
318d3177
KS
80732014-03-26 Keith Seitz <keiths@redhat.com>
8074
8075 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8076 types, not VAR_DOMAIN.
8077
1e54db15
SL
80782014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8079
8080 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8081 "ra" registers.
8082 * features/nios2-linux.c: Regenerated.
8083 * features/nios2.c: Regenerated.
8084
d3839ede
PA
80852014-03-25 Pedro Alves <palves@redhat.com>
8086
8087 * cli/cli-script.c (script_from_file): Force the interpreter to
8088 sync mode.
8089
7588d2ec
PL
80902014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8091
8092 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8093 small stack allocation.
8094
a6290449
TG
80952014-03-24 Tristan Gingold <gingold@adacore.com>
8096
8097 * darwin-nat.c (exc_server): Remove unused prototype.
8098 (darwin_dump_message): Correctly display data on x86_64.
8099 (darwin_encode_reply): Fix style.
8100 Add comments and fix indentation.
8101
31ae9d24 81022014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8103
8104 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8105
6339bfc4
DE
81062014-03-22 Doug Evans <xdje42@gmail.com>
8107
8108 * infcmd.c: Whitespace fixes.
8109 (interrupt_command): Merge two function comments into one.
8110
0a07590b
DE
81112014-03-22 Doug Evans <xdje42@gmail.com>
8112
8113 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8114 All uses updated.
8115
b55fbac4
YQ
81162014-03-22 Yao Qi <yao@codesourcery.com>
8117
8118 * remote.c (target_read_live_memory): Remove.
8119 (memory_xfer_live_readonly_partial): Rename it to
8120 remote_xfer_live_readonly_partial. Remove argument 'object'.
8121 All callers updated. Call remote_read_bytes_1
8122 instead of target_read_live_memory.
8123 * tracepoint.c (set_traceframe_number): Remove.
8124 (make_cleanup_restore_traceframe_number): Likewise .
8125 * tracepoint.h (set_traceframe_number): Remove declaration.
8126 (make_cleanup_restore_traceframe_number): Likewise.
8127
9217e74e
YQ
81282014-03-22 Yao Qi <yao@codesourcery.com>
8129
8130 * remote.c (remote_read_bytes): Move code on reading from the
8131 remote stub to ...
8132 (remote_read_bytes_1): ... here. New function.
8133
8acf9577
YQ
81342014-03-22 Yao Qi <yao@codesourcery.com>
8135
8136 * ctf.c (ctf_xfer_partial): Check the return value of
8137 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8138 return TARGET_XFER_UNAVAILABLE.
8139 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8140 * target.c (target_read_live_memory): Move it to remote.c.
8141 (memory_xfer_live_readonly_partial): Likewise.
8142 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8143 * remote.c (target_read_live_memory): Moved from target.c.
8144 (memory_xfer_live_readonly_partial): Likewise.
8145 (remote_read_bytes): Factored out from
8146 memory_xfer_partial_1.
8147
feef67ab
DE
81482014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8149
8150 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8151 NULL pointer.
8152
b65dc60b
PA
81532014-03-21 Pedro Alves <palves@redhat.com>
8154
8155 * infrun.c (normal_stop): Extend comment.
8156
b4ab256d
HZ
81572014-03-21 Hui Zhu <hui@codesourcery.com>
8158 Pedro Alves <palves@redhat.com>
8159
8160 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8161 static buffer.
8162 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8163 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8164 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8165
deba7593
MR
81662014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8167
8168 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8169 `z' formatted output modifier.
8170
1bff71c3
SDJ
81712014-03-20 Tom Tromey <tromey@redhat.com>
8172 Sergio Durigan Junior <sergiodj@redhat.com>
8173
8174 * probe.c (parse_probes): Turn assert into an ordinary error.
8175 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8176 exceptions when parsing probes. Rearrange the code for clarity.
8177
90e28950
TT
81782014-03-20 Tom Tromey <tromey@redhat.com>
8179
8180 PR gdb/14135
8181 * top.c (execute_command): Only dispatch events if the command
8182 started the target.
8183
beb460e8
PA
81842014-03-20 Tom Tromey <tromey@redhat.com>
8185
8186 PR cli/15718
8187 * infcall.c: Include event-top.h.
8188 (run_inferior_call): Call async_disable_stdin if needed.
8189
99619bea
PA
81902014-03-20 Pedro Alves <palves@redhat.com>
8191
8192 * infrun.c (prepare_to_proceed): Delete.
8193 (thread_still_needs_step_over): New function.
8194 (find_thread_needs_step_over): New function.
8195 (proceed): If the current thread needs a step-over, set its
8196 steping_over_breakpoint flag. Adjust to use
8197 find_thread_needs_step_over instead of prepare_to_proceed.
8198 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8199 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8200 breakpoint.
8201 (switch_back_to_stepped_thread): Step over breakpoints of all
8202 threads not the stepping thread, before switching back to the
8203 stepping thread.
8204
2adfaa28
PA
82052014-03-20 Pedro Alves <palves@redhat.com>
8206
8207 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8208 extern.
8209 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8210 * infrun.c (saved_singlestep_ptid)
8211 (stepping_past_singlestep_breakpoint): Delete.
8212 (resume): Remove stepping_past_singlestep_breakpoint handling.
8213 (proceed): Store the prev_pc of the stepping thread too.
8214 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8215 singlestep_pc.
8216 (enum infwait_states): Delete infwait_thread_hop_state.
8217 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8218 field.
8219 (handle_inferior_event): Adjust.
8220 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8221 handling and the thread-hop code. Before removing single-step
8222 breakpoints, check whether the thread hit a single-step breakpoint
8223 of another thread. If it did, the trap is not a random signal.
8224 (switch_back_to_stepped_thread): If the event thread hit a
8225 single-step breakpoint, unblock it before switching to the
8226 stepping thread. Handle the case of the stepped thread having
8227 advanced already.
8228 (keep_going): Handle the case of the current thread moving past a
8229 single-step breakpoint.
8230
31e77af2
PA
82312014-03-20 Pedro Alves <palves@redhat.com>
8232
8233 PR breakpoints/7143
8234 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8235 are being stepped over.
8236 (breakpoint_address_match): Make extern.
8237 * breakpoint.h (breakpoint_address_match): New declaration.
8238 * inferior.h (stepping_past_instruction_at): New declaration.
8239 * infrun.c (struct step_over_info): New type.
8240 (step_over_info): New global.
8241 (set_step_over_info, clear_step_over_info)
8242 (stepping_past_instruction_at): New functions.
8243 (handle_inferior_event): Clear the step-over info when
8244 trap_expected is cleared.
8245 (resume): Remove now stale comment.
8246 (clear_proceed_status): Clear step-over info.
8247 (proceed): Adjust step-over handling to set or clear the step-over
8248 info instead of removing all breakpoints.
8249 (handle_signal_stop): When setting up a thread-hop, don't remove
8250 breakpoints here.
8251 (stop_stepping): Clear step-over info.
8252 (keep_going): Adjust step-over handling to set or clear step-over
8253 info and then always inserting breakpoints, instead of removing
8254 all breakpoints when stepping over one.
8255
b9f437de
PA
82562014-03-20 Pedro Alves <palves@redhat.com>
8257
8258 * infrun.c (previous_inferior_ptid): Adjust comment.
8259 (deferred_step_ptid): Delete.
8260 (infrun_thread_ptid_changed, prepare_to_proceed)
8261 (init_wait_for_inferior): Adjust.
8262 (handle_signal_stop): Delete deferred_step_ptid handling.
8263
06c868a8
JK
82642014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8265
8266 PR gdb/15358
8267 * defs.h (sync_quit_force_run): New declaration.
8268 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8269 * event-top.c (async_sigterm_handler): New declaration.
8270 (async_sigterm_token): New variable.
8271 (async_init_signals): Create also async_sigterm_token.
8272 (async_sigterm_handler): New function.
8273 (sync_quit_force_run): New variable.
8274 (handle_sigterm): Replace quit_force call by other calls.
8275 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8276
dea80df0
MR
82772014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8278
8279 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8280 offset into SPE pseudo registers.
8281
0c7e1a46
PA
82822014-03-18 Pedro Alves <palves@redhat.com>
8283
8284 PR gdb/13860
8285 * inferior.h (print_stop_event): Declare.
8286 * infrun.c (print_stop_event): New, factored out from ...
8287 (normal_stop): ... this.
8288 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8289 of bpstat_print/print_stack_frame.
8290
9c1fcd01
TT
82912014-03-17 Tom Tromey <tromey@redhat.com>
8292
8293 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8294
11aa919a
PMR
82952014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8296
8297 * ada-lang.c (decode_constrained_packed_array): Perform a
8298 minimal coercion for reference with coerce_ref instead of
8299 ada_coerce_ref.
8300
d4ccb5e0
TG
83012014-03-17 Tristan Gingold <gingold@adacore.com>
8302
8303 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8304 (darwin_solib_create_inferior_hook): Emit a warning if version
8305 is unhandled.
8306
49840f2a
UW
83072014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8308
8309 * python/py-value.c (get_field_flag): Cast flag_name argument to
8310 PyObject_GetAttrString to support Python 2.4.
8311
ed4123e5
JK
83122014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8313
8314 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8315 (Global Maintainers): Remove Jan Kratochvil.
8316
d6b64346
PA
83172014-03-14 Pedro Alves <palves@redhat.com>
8318
8319 * inferior.h (terminal_ours_for_output): Rename to ...
8320 (child_terminal_ours_for_output): ... this.
8321 (terminal_save_ours): Rename to ...
8322 (child_terminal_save_ours): ... this.
8323 (terminal_ours): Rename to ...
8324 (child_terminal_ours): ... this.
8325 (terminal_inferior): Rename to ...
8326 (child_terminal_inferior): ... this.
8327 (terminal_init_inferior): Rename to ...
8328 (child_terminal_init_inferior): ... this.
8329 (terminal_init_inferior_with_pgrp): Rename to ...
8330 (child_terminal_init_inferior_with_pgrp): ... this.
8331 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8332 (child_terminal_init_with_pgrp): ... this.
8333 (terminal_save_ours): Rename to ...
8334 (child_terminal_save_ours): ... this.
8335 (terminal_init_inferior): Rename to ...
8336 (child_terminal_init): ... this. Adjust.
8337 (terminal_inferior): Rename to ...
8338 (child_terminal_inferior): ... this.
8339 (terminal_ours_for_output): Rename to ...
8340 (child_terminal_ours_for_output): ... this. Adjust.
8341 (terminal_ours): Rename to ...
8342 (child_terminal_ours): ... this.
8343 (terminal_ours_1): Rename to ...
8344 (child_terminal_ours_1): ... this. Adjust.
8345 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8346 * windows-nat.c (do_initial_windows_stuff): Adjust.
8347 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8348 (gnu_terminal_init): ... this. Adjust.
8349 (gnu_target): Adjust.
8350 * inf-child.c (inf_child_target): Adjust.
8351
5a1e8c7a
DE
83522014-03-13 Doug Evans <xdje42@gmail.com>
8353
8354 PR guile/16612
8355 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8356 new eq?-hashtab.
8357
350e1a76
DE
83582014-03-13 Doug Evans <xdje42@gmail.com>
8359
8360 * value.c (record_latest_value): Call release_value_or_incref
8361 instead of release_value.
8362
a69900ae
PA
83632014-03-13 Pedro Alves <palves@redhat.com>
8364
8365 * procfs.c (procfs_target): Don't override to_shortname,
8366 to_longname or to_doc.
8367
5db9f0bd
PA
83682014-03-13 Pedro Alves <palves@redhat.com>
8369
8370 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8371 Unix in user visible strings.
8372
5e3a2c38
SS
83732014-03-12 Stan Shebs <stan@codesourcery.com>
8374
8375 * gdbtypes.h: Annotate comments for Doxygen, add a page
8376 block comment with some general info.
8377
8bc2fe48
PA
83782014-03-12 Pedro Alves <palves@redhat.com>
8379
8380 * infcmd.c (prepare_execution_command): New function, factored out
8381 from several execution commands.
8382 (run_command_1, continue_command, step_1, jump_command)
8383 (signal_command, until_command, advance_command, finish_command)
8384 (attach_command): Use prepare_execution_command.
8385
638c5f49
OJ
83862014-03-12 Omair Javaid <omair.javaid@linaro.org>
8387
8388 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8389 (MAX_BPTS): Define.
8390 (MAX_WPTS): Define.
8391 (struct arm_linux_thread_points): Removed.
8392 (struct arm_linux_process_info): New.
8393 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8394 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8395 (arm_linux_find_breakpoints_by_tid): Removed.
8396 (struct arch_lwp_info): New.
8397 (arm_linux_find_process_pid): New functions.
8398 (arm_linux_add_process): New functions.
8399 (arm_linux_process_info_get): New functions.
8400 (arm_linux_forget_process): New function.
8401 (arm_linux_get_debug_reg_state): New function.
8402 (struct update_registers_data): New.
8403 (update_registers_callback): New function.
8404 (arm_linux_insert_hw_breakpoint1): Updated.
8405 (arm_linux_remove_hw_breakpoint1): Updated.
8406 (arm_linux_insert_hw_breakpoint): Updated.
8407 (arm_linux_remove_hw_breakpoint): Updated.
8408 (arm_linux_insert_watchpoint): Updated.
8409 (arm_linux_remove_watchpoint): Updated.
8410 (arm_linux_new_thread): Updated.
8411 (arm_linux_prepare_to_resume): New function.
8412 (arm_linux_new_fork): New function.
8413 (_initialize_arm_linux_nat): Updated.
8414
6d03af93
PA
84152014-03-12 Pedro Alves <palves@redhat.com>
8416
8417 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8418
b3ccfe11
TT
84192014-03-12 Tom Tromey <tromey@redhat.com>
8420
8421 * inf-child.c (return_zero): New function.
8422 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8423 * aix-thread.c (aix_thread_inferior_created): New function.
8424 (aix_thread_attach): Remove.
8425 (init_aix_thread_ops): Don't set to_attach.
8426 (_initialize_aix_thread): Register inferior_created observer.
8427 * corelow.c (init_core_ops): Don't set to_attach or
8428 to_create_inferior.
8429 * exec.c (init_exec_ops): Don't set to_attach or
8430 to_create_inferior.
8431 * infcmd.c (run_command_1): Use find_run_target. Make direct
8432 target calls.
8433 (attach_command): Use find_attach_target. Make direct target
8434 calls.
8435 * record-btrace.c (init_record_btrace_ops): Don't set
8436 to_create_inferior.
8437 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8438 Remove.
8439 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8440 set to_create_inferior.
8441 * target.c (complete_target_initialization): Add assertion.
8442 (target_create_inferior): Remove.
8443 (find_default_attach, find_default_create_inferior): Remove.
8444 (find_attach_target, find_run_target): New functions.
8445 (find_default_is_async_p, find_default_can_async_p)
8446 (target_supports_non_stop, target_attach): Remove.
8447 (init_dummy_target): Don't set to_create_inferior or
8448 to_supports_non_stop.
8449 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8450 TARGET_DEFAULT_FUNC.
8451 <to_create_inferior>: Add comment.
8452 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8453 TARGET_DEFAULT_RETURN.
8454 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8455 (find_attach_target, find_run_target): Declare.
8456 (target_create_inferior): Remove.
8457 (target_has_execution_1): Update comment.
8458 (target_supports_non_stop): Remove.
8459 * target-delegates.c: Rebuild.
8460
91f83b02
PA
84612014-03-12 Pedro Alves <palves@redhat.com>
8462
8463 * inf-child.h: Update comment to not mention Unix.
8464
f1aea813
PA
84652014-03-12 Pedro Alves <palves@redhat.com>
8466
8467 * inf-child.c: Update top comment to not mention Unix. Add
8468 generic comment describing how this target is meant to be used.
8469 (inf_child_post_attach, inf_child_post_startup_inferior)
8470 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8471 Unix in comment.
8472
ee8e9165
PA
84732014-03-12 Pedro Alves <palves@redhat.com>
8474
8475 * nto-procfs.c: Include inf-child.h.
8476 (procfs_ops): Delete global.
8477 (procfs_can_run): Delete method.
8478 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8479 target pointer instead of referencing procfs_ops.
8480 (procfs_prepare_to_store): Delete.
8481 (init_procfs_ops): Delete function.
8482 (procfs_target): New function, based on init_procfs_ops, but
8483 inherit inf_child_target.
8484 (_initialize_procfs): Use procfs_target.
8485
51a9c8c5
PA
84862014-03-12 Pedro Alves <palves@redhat.com>
8487
8488 * windows-nat.c: Include inf-child.h.
8489 (windows_ops): Delete global.
8490 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8491 methods.
8492 (init_windows_ops): Delete function.
8493 (windows_target): New function, based on init_windows_ops, but
8494 inherit inf_child_target.
8495 (_initialize_windows_nat): Use windows_target. Install x86
8496 specific target methods here.
8497
c1966e26
DE
84982014-03-10 Doug Evans <xdje42@gmail.com>
8499
8500 * guile/guile.c (call_initialize_gdb_module): New function.
8501 (initialize_guile): Replace call to scm_init_guile with call to
8502 scm_with_guile.
8503
023db19c
JB
85042014-03-10 Joel Brobecker <brobecker@adacore.com>
8505
8506 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8507 in call to TYPE_CODE macro.
8508
5ec18f2b
JG
85092014-03-10 Jerome Guitton <guitton@adacore.com>
8510
8668be63
JB
8511 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8512 Resolve tagged types to full view.
5ec18f2b 8513
7d03f2eb
HZ
85142014-03-10 Hui Zhu <hui@codesourcery.com>
8515
8516 * target.h (target_insert_breakpoint): Remove "hardware" from its
8517 comments.
8518
c5164cbc
DE
85192014-03-07 Doug Evans <dje@google.com>
8520
8521 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8522
c4a3fee2
DE
85232014-03-07 Doug Evans <dje@google.com>
8524
8525 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8526 Remove unused local comp_dir_attr. Assert exactly one of
8527 stub_comp_unit_die, stub_comp_dir is non-NULL.
8528
3156469c
JB
85292014-03-07 Joel Brobecker <brobecker@adacore.com>
8530
8531 * target.h (complete_target_initialization, add_target):
8532 Add comment.
8533
c1a7b7c6
PA
85342014-03-07 Pedro Alves <palves@redhat.com>
8535
8536 * go32-nat.c: Include inf-child.h.
8537 (go32_ops): Delete global.
8538 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8539 Delete methods.
8540 (go32_create_inferior): Push the passed in target pointer instead
8541 of referencing go32_ops.
8542 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8543 (go32_target): New function, based on init_go32_ops, but inherit
8544 inf_child_target.
8545 (_initialize_go32_nat): Use go32_target. Move parts of
8546 init_go32_ops here.
8547
d3c1a85f
JB
85482014-03-06 Joel Brobecker <brobecker@adacore.com>
8549
8550 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8551 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8552 SYMBOL_VALUE_ADDRESS.
8553 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8554
5fa1d40e
YQ
85552014-03-06 Yao Qi <yao@codesourcery.com>
8556
8557 * breakpoint.c (get_tracepoint_by_number): Remove argument
8558 optional_p. All callers updated. Adjust comments. Update
8559 output message.
8560 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8561
0c13193f
YQ
85622014-03-06 Yao Qi <yao@codesourcery.com>
8563
8564 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8565 early if get_number returns zero. Use 'p' instead of 'args'.
8566
2217da06
YQ
85672014-03-06 Yao Qi <yao@codesourcery.com>
8568
8569 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8570 message.
8571
cc3da688
YQ
85722014-03-06 Yao Qi <yao@codesourcery.com>
8573
8574 PR breakpoints/16508
8575 * tracepoint.c (check_trace_running): New function.
8576 (trace_find_command): Move code to check_trace_running and
8577 call check_trace_running.
8578 (trace_find_pc_command): Likewise.
8579 (trace_find_tracepoint_command): Likewise.
8580 (trace_find_line_command): Likewise.
8581 (trace_find_range_command): Likewise.
8582 * tracepoint.h (check_trace_running): Likewise.
8583 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8584
6a5f844b
YQ
85852014-03-06 Yao Qi <yao@codesourcery.com>
8586
8587 * target.h (struct target_ops) <to_traceframe_info>: Use
8588 TARGET_DEFAULT_NORETURN (tcomplain ()).
8589 * target-delegates.c: Regenerated.
8590
0f26cec1
PA
85912014-03-05 Pedro Alves <palves@redhat.com>
8592
8593 PR gdb/16575
8594 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8595 void. Update comment.
8596 (dcache_xfer_memory): Delete.
8597 (dcache_read_memory_partial): New, based on the read bits of
8598 dcache_xfer_memory.
8599 (dcache_update): Add status parameter. Use ULONGEST for len, and
8600 adjust. Discard cache lines if the reason for the update was
8601 error.
8602 * dcache.h (dcache_xfer_memory): Delete declaration.
8603 (dcache_read_memory_partial): New declaration.
8604 (dcache_update): Update prototype.
8605 * target.c (raw_memory_xfer_partial): Update the dcache here.
8606 (memory_xfer_partial_1): Don't handle dcache writes here.
8607
b2b255bd
MF
86082014-03-05 Mike Frysinger <vapier@gentoo.org>
8609
8610 * remote-sim.c (gdbsim_load): Add const to prog.
8611
5d9cf8a4
TT
86122014-03-03 Tom Tromey <tromey@redhat.com>
8613
8614 * elfread.c (probe_key): Change to bfd_data.
8615 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8616 now per-BFD, not per-objfile.
8617 * stap-probe.c (stap_probe_destroy): Update comment.
8618 (handle_stap_probe): Allocate on the per-BFD obstack.
8619
729662a5
TT
86202014-03-03 Tom Tromey <tromey@redhat.com>
8621
8622 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8623 * breakpoint.c (create_longjmp_master_breakpoint): Use
8624 get_probe_address.
8625 (add_location_to_breakpoint, bkpt_probe_insert_location)
8626 (bkpt_probe_remove_location): Update.
8627 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8628 * elfread.c (elf_symfile_relocate_probe): Remove.
8629 (elf_probe_fns): Update.
8630 (insert_exception_resume_breakpoint): Change type of "probe"
8631 parameter to bound_probe.
8632 (check_exception_resume): Update.
8633 * objfiles.c (objfile_relocate1): Don't relocate probes.
8634 * probe.c (bound_probe_s): New typedef.
8635 (parse_probes): Use get_probe_address. Set sal's objfile.
8636 (find_probe_by_pc): Return a bound_probe.
8637 (collect_probes): Return a VEC(bound_probe_s).
8638 (compare_probes): Update.
8639 (gen_ui_out_table_header_info): Change type of "probes"
8640 parameter. Update.
8641 (info_probes_for_ops): Update.
8642 (get_probe_address): New function.
8643 (probe_safe_evaluate_at_pc): Update.
8644 * probe.h (struct probe_ops) <get_probe_address>: New field.
8645 <set_semaphore, clear_semaphore>: Add objfile parameter.
8646 (struct probe) <objfile>: Remove field.
8647 <arch>: New field.
8648 <address>: Update comment.
8649 (struct bound_probe): New.
8650 (find_probe_by_pc): Return a bound_probe.
8651 (get_probe_address): Declare.
8652 * solib-svr4.c (struct probe_and_action) <address>: New field.
8653 (hash_probe_and_action, equal_probe_and_action): Update.
8654 (register_solib_event_probe): Add address parameter.
8655 (solib_event_probe_at): Update.
8656 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8657 get_probe_address.
8658 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8659 (stap_get_probe_address): New function.
8660 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8661 (compile_probe_arg): Update.
8662 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8663 address.
8664 (handle_stap_probe): Don't relocate the probe.
8665 (stap_relocate): Remove.
8666 (stap_gen_info_probes_table_values): Update.
8667 (stap_probe_ops): Remove stap_relocate.
8668 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8669 (debug_sym_probe_fns): Update.
8670 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8671 * symtab.c (init_sal): Use memset.
8672 * symtab.h (struct symtab_and_line) <objfile>: New field.
8673 * tracepoint.c (start_tracing, stop_tracing): Update.
8674
ff887920
TT
86752014-03-03 Tom Tromey <tromey@redhat.com>
8676
8677 * probe.h (parse_probes, find_probe_by_pc)
8678 (find_probes_in_objfile): Fix comments.
8679
f0407826
DE
86802014-03-02 Doug Evans <xdje42@gmail.com>
8681
8682 * infrun.c (handle_signal_stop): Replace test for
8683 TARGET_WAITKIND_STOPPED with an assert.
8684
35e6a711
DE
86852014-03-02 Doug Evans <xdje42@gmail.com>
8686
8687 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8688
667f9d0b
DE
86892014-03-02 Doug Evans <xdje42@gmail.com>
8690
8691 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8692
dc92ace0
MK
86932014-03-01 Mark Kettenis <kettenis@gnu.org>
8694
8695 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8696
a900370f
MK
86972014-03-01 Mark Kettenis <kettenis@gnu.org>
8698
8699 * i386obsd-nat.c: Include "obsd-nat.h".
8700 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8701 add_target.
8702 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8703
b72a7981
MK
87042014-03-01 Mark Kettenis <kettenis@gnu.org>
8705
8706 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8707
96c70aba
MK
87082014-03-01 Mark Kettenis <kettenis@gnu.org>
8709
8710 * mips64obsd-nat.c: Include "obsd-nath".
8711 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8712 add_target
8713 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8714
874a80af
MK
87152014-03-01 Mark Kettenis <kettenis@gnu.org>
8716
8fd408f1
MK
8717 * amd64obsd-nat.c: Include "obsd-nat,h.
8718 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8719 add_target.
874a80af
MK
8720 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8721
9cf95373
SC
87222014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8723
8724 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8725 (find_overload_match): Update call to find_oload_champ.
8726 (find_oload_champ_namespace_loop): Likewise
8727
863e4da4
MK
87282014-02-28 Mark Kettenis <kettenis@gnu.org>
8729
025cac40
MK
8730 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8731
1ed586ce
MK
8732 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8733 * config/sparc/obsd64.mh: New file.
8734 * sparc64obsd-nat.c: New file.
8735
863e4da4
MK
8736 * obsd-nat.h: New file.
8737 * obsd-nat.c: New file.
8738 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8739 (ALLDEPFILES): Add obsd-nat.c.
8740
89de4da4
TT
87412014-02-28 Tom Tromey <tromey@redhat.com>
8742
8743 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8744 * cli-out.h (cli_ui_out_impl): Now const.
8745 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8746 * ui-out.c (struct ui_out) <impl>: Now const.
8747 (default_ui_out_impl): Now const.
8748 (ui_out_new): Make 'impl' parameter const.
8749 * ui-out.h (ui_out_new): Update.
8750
c725e7b6
MK
87512014-02-27 Mark Kettenis <kettenis@gnu.org>
8752
8753 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8754
670b46b3
MK
87552014-02-27 Mark Kettenis <kettenis@gnu.org>
8756
8757 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8758
c91550fc
JK
87592014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8760
8761 Additional PR 8882 fix.
8762 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8763
2fa0369e
PA
87642014-02-27 Pedro Alves <palves@redhat.com>
8765
8766 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8767 isn't set.
8768
d632a097
PA
87692014-02-27 Pedro Alves <palves@redhat.com>
8770
8771 PR 12702
8772 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8773 * nat/linux-waitpid.c: Include string.h.
8774 (status_to_str): Moved here and made extern.
8775 * nat/linux-waitpid.h (status_to_str): New declaration.
8776
2ebd5a35
HZ
87772014-02-27 Hui Zhu <hui@codesourcery.com>
8778
8779 PR 12702
8780 * infrun.c (ptid_match): Move ...
8781 * common/ptid.c (ptid_match): ... here.
8782 * inferior.h (ptid_match): Move ...
8783 * common/ptid.h (ptid_match): ... here.
8784
3cdd631f
MK
87852014-02-27 Mark Kettenis <kettenis@gnu.org>
8786
8787 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8788 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8789 gdb_target_obs.
8790
bee30a64
MK
87912014-02-27 Mark Kettenis <kettenis@gnu.org>
8792
8793 * obsd-tdep.c (obsd_auxv_parse): New function.
8794 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8795
8796 * gdbarch.sh (auxv_parse): New.
8797 * gdbarch.h: Regenerated.
8798 * gdbarch.c: Regenerated.
8799 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8800
7a5a839f
LC
88012014-02-26 Ludovic Courtès <ludo@gnu.org>
8802
8803 * guile/scm-value.c (gdbscm_history_append_x): New function.
8804 (value_functions): Add it.
8805
31aa7e4e
JB
88062014-02-27 Joel Brobecker <brobecker@adacore.com>
8807
8808 * dwarf2read.c (attr_value_as_address): New function.
8809 (dwarf2_find_base_address, read_call_site_scope): Use
8810 attr_value_as_address in place of DW_ADDR.
8811 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8812 the low and high addresses. Slight rework of the handling
8813 of the high pc being a constant form, and limit it to
8814 DWARF verson 4 or higher.
8815 (dwarf2_record_block_ranges): Likewise.
8816 (read_partial_die): Likewise.
8817 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8818
9b333ba3
TT
88192014-02-26 Tom Tromey <tromey@redhat.com>
8820
8821 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8822
5f6cac40
TT
88232014-02-26 Tom Tromey <tromey@redhat.com>
8824
8825 * elfread.c (elf_read_minimal_symbols): Return early if
8826 minimal symbols have already been read. Add "ei" parameter.
8827 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8828 * minsyms.c (prim_record_minimal_symbol_full): Update.
8829 * objfiles.h (struct objstats) <n_minsyms>: Move...
8830 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8831 * symmisc.c (print_objfile_statistics): Update.
8832
2750ef27
TT
88332014-02-26 Tom Tromey <tromey@redhat.com>
8834
8835 * elfread.c (elf_read_minimal_symbols): New function, from
8836 elf_symfile_read.
8837 (elf_symfile_read): Call it.
8838
34643a32
TT
88392014-02-26 Tom Tromey <tromey@redhat.com>
8840
8841 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8842 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8843 (lookup_minimal_symbol_solib_trampoline)
8844 (lookup_minimal_symbol_by_pc_section_1)
8845 (lookup_minimal_symbol_and_objfile): Update.
8846 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8847 Don't allocate a minimal symbol if minsyms have already been read.
8848 (build_minimal_symbol_hash_tables): Update.
8849 (install_minimal_symbols): Do nothing if minsyms already read.
8850 Use the per-BFD obstack.
8851 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8852 * objfiles.c (allocate_objfile): Call
8853 terminate_minimal_symbol_table later.
8854 (have_minimal_symbols): Update.
8855 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8856 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8857 Move from struct objfile.
8858 <minsyms_read>: New field.
8859 (struct objfile) <msymbols, minimal_symbol_count,
8860 msymbol_hash, msymbol_demangled_hash>: Move.
8861 (ALL_OBJFILE_MSYMBOLS): Update.
8862 * symfile.c (read_symbols): Set minsyms_read.
8863 (reread_symbols): Update.
8864 * symmisc.c (dump_objfile, dump_msymbols): Update.
8865
2273f0ac
TT
88662014-02-26 Tom Tromey <tromey@redhat.com>
8867
8868 * minsyms.c (msymbols_sort): Remove.
8869 * minsyms.h (msymbols_sort): Remove.
8870 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8871 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8872 * elfread.c (elf_symtab_read): Don't add section offsets.
8873 * xcoffread.c (record_minimal_symbol): Don't add section offset
8874 to minimal symbol address.
8875 * somread.c (text_offset, data_offset): Remove.
8876 (som_symtab_read): Don't add section offsets to minimal symbol
8877 addresses.
8878 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8879 Don't add section offsets to minimal symbols.
8880 * coffread.c (coff_symtab_read): Don't add section offsets
8881 to minimal symbol addresses.
8882 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8883 to minimal symbol addresses.
8884 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8885 section offset to minimal symbol addresses.
8886 * mdebugread.c (parse_partial_symbols): Don't add section
8887 offset to minimal symbol addresses.
8888 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8889 offset to minimal symbol addresses.
8890
77e371c0
TT
88912014-02-26 Tom Tromey <tromey@redhat.com>
8892
8893 * ada-lang.c (ada_main_name): Update.
8894 (ada_add_standard_exceptions): Update.
8895 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8896 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8897 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8898 * auxv.c (ld_so_xfer_auxv): Update.
8899 * avr-tdep.c (avr_scan_prologue): Update.
8900 * ax-gdb.c (gen_var_ref): Update.
8901 * blockframe.c (get_pc_function_start)
8902 (find_pc_partial_function_gnu_ifunc): Update.
8903 * breakpoint.c (create_overlay_event_breakpoint)
8904 (create_longjmp_master_breakpoint)
8905 (create_std_terminate_master_breakpoint)
8906 (create_exception_master_breakpoint): Update.
8907 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8908 * c-valprint.c (c_val_print): Update.
8909 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8910 * common/agent.c (agent_look_up_symbols): Update.
8911 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8912 * dwarf2loc.c (call_site_to_target_addr): Update.
8913 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8914 * elfread.c (elf_gnu_ifunc_record_cache)
8915 (elf_gnu_ifunc_resolve_by_got): Update.
8916 * findvar.c (default_read_var_value): Update.
8917 * frame.c (inside_main_func): Update.
8918 * frv-tdep.c (frv_frame_this_id): Update.
8919 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8920 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8921 Update.
8922 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8923 (hppa_hpux_find_dummy_bpaddr): Update.
8924 * hppa-tdep.c (hppa_symbol_address): Update.
8925 * infcmd.c (until_next_command): Update.
8926 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8927 Update.
8928 * linespec.c (minsym_found, add_minsym): Update.
8929 * linux-nat.c (get_signo): Update.
8930 * linux-thread-db.c (inferior_has_bug): Update.
8931 * m32c-tdep.c (m32c_return_value)
8932 (m32c_m16c_address_to_pointer): Update.
8933 * m32r-tdep.c (m32r_frame_this_id): Update.
8934 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8935 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8936 * maint.c (maintenance_translate_address): Update.
8937 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8938 (frob_address): New function.
8939 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8940 frob_address. Rename parameter to "pc_in".
8941 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8942 addresses.
8943 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8944 Update.
8945 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8946 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8947 * objc-lang.c (find_objc_msgsend): Update.
8948 * objfiles.c (objfile_relocate1): Update.
8949 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8950 * p-valprint.c (pascal_val_print): Update.
8951 * parse.c (write_exp_msymbol): Update.
8952 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8953 (ppc_elfv2_skip_entrypoint): Update.
8954 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8955 * printcmd.c (build_address_symbolic, msym_info)
8956 (address_info): Update.
8957 * proc-service.c (ps_pglobal_lookup): Update.
8958 * psymtab.c (find_pc_sect_psymtab_closer)
8959 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8960 Change msymbol parameter to bound_minimal_symbol.
8961 * ravenscar-thread.c (get_running_thread_id): Update.
8962 * remote.c (remote_check_symbols): Update.
8963 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8964 address.
8965 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8966 * solib-dsbt.c (lm_base): Update.
8967 * solib-frv.c (lm_base, main_got): Update.
8968 * solib-irix.c (locate_base): Update.
8969 * solib-som.c (som_solib_create_inferior_hook)
8970 (link_map_start): Update.
8971 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8972 * solib-svr4.c (elf_locate_base, enable_break): Update.
8973 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8974 (flush_ea_cache): Update.
8975 * stabsread.c (define_symbol, scan_file_globals): Update.
8976 * stack.c (find_frame_funname): Update.
8977 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8978 (debug_qf_find_pc_sect_symtab): Update.
8979 * symfile.c (simple_read_overlay_table)
8980 (simple_overlay_update): Update.
8981 * symfile.h (struct quick_symbol_functions)
8982 <find_pc_sect_symtab>: Change type of msymbol to
8983 bound_minimal_symbol.
8984 * symmisc.c (dump_msymbols): Update.
8985 * symtab.c (find_pc_sect_symtab_via_partial)
8986 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8987 (search_symbols, print_msymbol_info): Update.
8988 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8989 (MSYMBOL_VALUE_ADDRESS): Redefine.
8990 (BMSYMBOL_VALUE_ADDRESS): New macro.
8991 * tracepoint.c (scope_info): Update.
8992 * tui/tui-disasm.c (tui_find_disassembly_address)
8993 (tui_get_begin_asm_address): Update.
8994 * valops.c (find_function_in_inferior): Update.
8995 * value.c (value_static_field, value_fn_field): Update.
8996
3b7344d5
TT
89972014-02-26 Tom Tromey <tromey@redhat.com>
8998
8999 * ada-lang.c (ada_update_initial_language): Update.
9000 (ada_main_name, ada_has_this_exception_support): Update.
9001 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9002 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9003 * arm-tdep.c (arm_skip_stub): Update.
9004 * auxv.c (ld_so_xfer_auxv): Update.
9005 * avr-tdep.c (avr_scan_prologue): Update.
9006 * ax-gdb.c (gen_var_ref): Update.
9007 * breakpoint.c (struct breakpoint_objfile_data)
9008 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9009 type to bound_minimal_symbol.
9010 (create_overlay_event_breakpoint)
9011 (create_longjmp_master_breakpoint)
9012 (create_std_terminate_master_breakpoint)
9013 (create_exception_master_breakpoint): Update.
9014 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9015 * c-exp.y (classify_name): Update.
9016 * coffread.c (coff_symfile_read): Update.
9017 * common/agent.c (agent_look_up_symbols): Update.
9018 * d-lang.c (d_main_name): Update.
9019 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9020 * dec-thread.c (enable_dec_thread): Update.
9021 * dwarf2loc.c (call_site_to_target_addr): Update.
9022 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9023 * eval.c (evaluate_subexp_standard): Update.
9024 * findvar.c (struct minsym_lookup_data) <result>: Change type
9025 to bound_minimal_symbol.
9026 <objfile>: Remove.
9027 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9028 * frame.c (inside_main_func): Update.
9029 * frv-tdep.c (frv_frame_this_id): Update.
9030 * gcore.c (call_target_sbrk): Update.
9031 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9032 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9033 Update.
9034 * go-lang.c (go_main_name): Update.
9035 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9036 (hppa_hpux_find_import_stub_for_addr): Update.
9037 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9038 Update. Change return type.
9039 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9040 type.
9041 * jit.c (jit_breakpoint_re_set_internal): Update.
9042 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9043 Update.
9044 * linux-nat.c (get_signo): Update.
9045 * linux-thread-db.c (inferior_has_bug): Update
9046 * m32c-tdep.c (m32c_return_value)
9047 (m32c_m16c_address_to_pointer): Update.
9048 * m32r-tdep.c (m32r_frame_this_id): Update.
9049 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9050 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9051 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9052 lookup_minimal_symbol. Change return type.
9053 (lookup_minimal_symbol): Remove.
9054 (lookup_bound_minimal_symbol): Update.
9055 (lookup_minimal_symbol_text): Change return type.
9056 (lookup_minimal_symbol_solib_trampoline): Change return type.
9057 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9058 (lookup_minimal_symbol_solib_trampoline): Change return type.
9059 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9060 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9061 (value_nsstring, find_imps): Update.
9062 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9063 * p-lang.c (pascal_main_name): Update.
9064 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9065 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9066 * proc-service.c (ps_pglobal_lookup): Update.
9067 * ravenscar-thread.c (get_running_thread_msymbol): Change
9068 return type.
9069 (has_ravenscar_runtime, get_running_thread_id): Update.
9070 * remote.c (remote_check_symbols): Update.
9071 * sol-thread.c (ps_pglobal_lookup): Update.
9072 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9073 * solib-dsbt.c (lm_base): Update.
9074 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9075 Update.
9076 * solib-irix.c (locate_base): Update.
9077 * solib-som.c (som_solib_create_inferior_hook)
9078 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9079 Update.
9080 * solib-spu.c (spu_enable_break): Update.
9081 * solib-svr4.c (elf_locate_base, enable_break): Update.
9082 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9083 (flush_ea_cache): Update.
9084 * stabsread.c (define_symbol): Update.
9085 * symfile.c (simple_read_overlay_table): Update.
9086 * symtab.c (find_pc_sect_line): Update.
9087 * tracepoint.c (scope_info): Update.
9088 * tui-disasm.c (tui_get_begin_asm_address): Update.
9089 * value.c (value_static_field): Update.
9090
40c1a007
TT
90912014-02-26 Tom Tromey <tromey@redhat.com>
9092
9093 * minsyms.c (prim_record_minimal_symbol_full): Use
9094 SET_MSYMBOL_VALUE_ADDRESS.
9095 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9096 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9097 SET_MSYMBOL_VALUE_ADDRESS.
9098 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9099 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9100
efd66ac6
TT
91012014-02-26 Tom Tromey <tromey@redhat.com>
9102
9103 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9104 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9105 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9106 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9107 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9108 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9109 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9110 * ada-lang.c (ada_main_name): Update.
9111 (ada_lookup_simple_minsym): Update.
9112 (ada_make_symbol_completion_list): Update.
9113 (ada_add_standard_exceptions): Update.
9114 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9115 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9116 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9117 * arm-tdep.c (skip_prologue_function): Update.
9118 (arm_skip_stack_protector, arm_skip_stub): Update.
9119 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9120 (arm_wince_skip_main_prologue): Update.
9121 * auxv.c (ld_so_xfer_auxv): Update.
9122 * avr-tdep.c (avr_scan_prologue): Update.
9123 * ax-gdb.c (gen_var_ref): Update.
9124 * block.c (call_site_for_pc): Update.
9125 * blockframe.c (get_pc_function_start): Update.
9126 (find_pc_partial_function_gnu_ifunc): Update.
9127 * breakpoint.c (create_overlay_event_breakpoint): Update.
9128 (create_longjmp_master_breakpoint): Update.
9129 (create_std_terminate_master_breakpoint): Update.
9130 (create_exception_master_breakpoint): Update.
9131 (resolve_sal_pc): Update.
9132 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9133 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9134 Update.
9135 * c-valprint.c (c_val_print): Update.
9136 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9137 * coffread.c (coff_symfile_read): Update.
9138 * common/agent.c (agent_look_up_symbols): Update.
9139 * dbxread.c (find_stab_function_addr): Update.
9140 (end_psymtab): Update.
9141 * dwarf2loc.c (call_site_to_target_addr): Update.
9142 (func_verify_no_selftailcall): Update.
9143 (tailcall_dump): Update.
9144 (call_site_find_chain_1): Update.
9145 (dwarf_expr_reg_to_entry_parameter): Update.
9146 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9147 (elf_gnu_ifunc_resolve_by_got): Update.
9148 * f-valprint.c (info_common_command): Update.
9149 * findvar.c (read_var_value): Update.
9150 * frame.c (get_prev_frame_1): Update.
9151 (inside_main_func): Update.
9152 * frv-tdep.c (frv_skip_main_prologue): Update.
9153 (frv_frame_this_id): Update.
9154 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9155 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9156 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9157 (gnuv3_skip_trampoline): Update.
9158 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9159 (hppa64_hpux_in_solib_call_trampoline): Update.
9160 (hppa_hpux_skip_trampoline_code): Update.
9161 (hppa64_hpux_search_dummy_call_sequence): Update.
9162 (hppa_hpux_find_import_stub_for_addr): Update.
9163 (hppa_hpux_find_dummy_bpaddr): Update.
9164 * hppa-tdep.c (hppa_symbol_address)
9165 (hppa_lookup_stub_minimal_symbol): Update.
9166 * i386-tdep.c (i386_skip_main_prologue): Update.
9167 (i386_pe_skip_trampoline_code): Update.
9168 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9169 * infcall.c (get_function_name): Update.
9170 * infcmd.c (until_next_command): Update.
9171 * jit.c (jit_breakpoint_re_set_internal): Update.
9172 (jit_inferior_init): Update.
9173 * linespec.c (minsym_found): Update.
9174 (add_minsym): Update.
9175 * linux-fork.c (info_checkpoints_command): Update.
9176 * linux-nat.c (get_signo): Update.
9177 * linux-thread-db.c (inferior_has_bug): Update.
9178 * m32c-tdep.c (m32c_return_value): Update.
9179 (m32c_m16c_address_to_pointer): Update.
9180 (m32c_m16c_pointer_to_address): Update.
9181 * m32r-tdep.c (m32r_frame_this_id): Update.
9182 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9183 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9184 * maint.c (maintenance_translate_address): Update.
9185 * minsyms.c (add_minsym_to_hash_table): Update.
9186 (add_minsym_to_demangled_hash_table): Update.
9187 (msymbol_objfile): Update.
9188 (lookup_minimal_symbol): Update.
9189 (iterate_over_minimal_symbols): Update.
9190 (lookup_minimal_symbol_text): Update.
9191 (lookup_minimal_symbol_by_pc_name): Update.
9192 (lookup_minimal_symbol_solib_trampoline): Update.
9193 (lookup_minimal_symbol_by_pc_section_1): Update.
9194 (lookup_minimal_symbol_and_objfile): Update.
9195 (prim_record_minimal_symbol_full): Update.
9196 (compare_minimal_symbols): Update.
9197 (compact_minimal_symbols): Update.
9198 (build_minimal_symbol_hash_tables): Update.
9199 (install_minimal_symbols): Update.
9200 (terminate_minimal_symbol_table): Update.
9201 (find_solib_trampoline_target): Update.
9202 (minimal_symbol_upper_bound): Update.
9203 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9204 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9205 (mips_skip_pic_trampoline_code): Update.
9206 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9207 * objc-lang.c (selectors_info): Update.
9208 (classes_info): Update.
9209 (find_methods): Update.
9210 (find_imps): Update.
9211 (find_objc_msgsend): Update.
9212 * objfiles.c (objfile_relocate1): Update.
9213 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9214 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9215 * p-valprint.c (pascal_val_print): Update.
9216 * parse.c (write_exp_msymbol): Update.
9217 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9218 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9219 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9220 * printcmd.c (build_address_symbolic): Update.
9221 (sym_info): Update.
9222 (address_info): Update.
9223 * proc-service.c (ps_pglobal_lookup): Update.
9224 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9225 (find_pc_sect_psymtab): Update.
9226 * python/py-framefilter.c (py_print_frame): Update.
9227 * ravenscar-thread.c (get_running_thread_id): Update.
9228 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9229 Update.
9230 * remote.c (remote_check_symbols): Update.
9231 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9232 (rs6000_skip_trampoline_code): Update.
9233 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9234 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9235 * solib-dsbt.c (lm_base): Update.
9236 * solib-frv.c (lm_base): Update.
9237 (main_got): Update.
9238 * solib-irix.c (locate_base): Update.
9239 * solib-som.c (som_solib_create_inferior_hook): Update.
9240 (som_solib_desire_dynamic_linker_symbols): Update.
9241 (link_map_start): Update.
9242 * solib-spu.c (spu_enable_break): Update.
9243 (ocl_enable_break): Update.
9244 * solib-svr4.c (elf_locate_base): Update.
9245 (enable_break): Update.
9246 * spu-tdep.c (spu_get_overlay_table): Update.
9247 (spu_catch_start): Update.
9248 (flush_ea_cache): Update.
9249 * stabsread.c (define_symbol): Update.
9250 (scan_file_globals): Update.
9251 * stack.c (find_frame_funname): Update.
9252 (frame_info): Update.
9253 * symfile.c (simple_read_overlay_table): Update.
9254 (simple_overlay_update): Update.
9255 * symmisc.c (dump_msymbols): Update.
9256 * symtab.c (fixup_section): Update.
9257 (find_pc_sect_line): Update.
9258 (skip_prologue_sal): Update.
9259 (search_symbols): Update.
9260 (print_msymbol_info): Update.
9261 (rbreak_command): Update.
9262 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9263 (completion_list_objc_symbol): Update.
9264 (default_make_symbol_completion_list_break_on): Update.
9265 * tracepoint.c (scope_info): Update.
9266 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9267 (tui_get_begin_asm_address): Update.
9268 * valops.c (find_function_in_inferior): Update.
9269 * value.c (value_static_field): Update.
9270 (value_fn_field): Update.
9271
50e65b17
TT
92722014-02-26 Tom Tromey <tromey@redhat.com>
9273
9274 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9275 bound minimal symbols. Move code that knows about minsym
9276 table layout...
9277 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9278 function.
9279 * minsyms.h (minimal_symbol_upper_bound): Declare.
9280 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9281 minimal_symbol_upper_bound.
9282
1b588015
JB
92832014-02-27 Joel Brobecker <brobecker@adacore.com>
9284
9285 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9286 Use the type's name if its basic type does not have a tag.
9287
dbb9c2b1
JB
92882014-02-27 Joel Brobecker <brobecker@adacore.com>
9289
9290 * dwarf2read.c (read_subrange_type): Add comment.
9291
55426c9d
JB
92922014-02-27 Joel Brobecker <brobecker@adacore.com>
9293
9294 * dwarf2read.c (update_enumeration_type_from_children): New
9295 function, mostly extracted from process_structure_scope.
9296 (read_enumeration_type): Call update_enumeration_type_from_children.
9297 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9298 and flag_flag_enum fields.
9299
f2fce0ca
PA
93002014-02-26 Pedro Alves <palves@redhat.com>
9301
9302 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9303 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9304 to_xfer_partial method.
9305
7a44e40e
PA
93062014-02-26 Pedro Alves <palves@redhat.com>
9307
9308 * target.c (complete_target_initialization): Don't install
9309 default_xfer_partial as to_xfer_partial hook.
9310 (nomemory): Delete.
9311 (update_current_target): Don't INHERIT nor de_fault
9312 deprecated_xfer_memory. Delete de_fault macro.
9313 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9314 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9315 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9316 field.
9317
bd265cd0
PA
93182014-02-26 Pedro Alves <palves@redhat.com>
9319
9320 * go32-nat.c (my_write_child): New function.
9321 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9322 (go32_xfer_partial): New function.
9323 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9324 Instead install a to_xfer_partial hook.
9325
9d46c4e5
PA
93262014-02-26 Pedro Alves <palves@redhat.com>
9327
9328 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9329 to_xfer_partial helper. Rewrite.
9330 (procfs_xfer_partial): New function.
9331 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9332 Install a to_xfer_partial hook.
9333
a1583b1f
PA
93342014-02-26 Pedro Alves <palves@redhat.com>
9335
9336 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9337 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9338 (m32r_xfer_partial): New function.
9339 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9340 Install a to_xfer_partial hook.
9341
6df1b29f
PA
93422014-02-26 Pedro Alves <palves@redhat.com>
9343
9344 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9345 helper.
9346 (mips_xfer_partial): New function.
9347 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9348 hook. Install a to_xfer_partial hook.
9349
dc53a7ad
JB
93502014-02-26 Joel Brobecker <brobecker@adacore.com>
9351
9352 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9353 * gdbtypes.c (create_array_type_with_stride): New function,
9354 renaming create_array_type, but with an added parameter
9355 called "bit_stride".
9356 (create_array_type): Re-implement using
9357 create_array_type_with_stride.
9358 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9359 and DW_AT_bit_stride attributes.
9360
12ab52e9
PA
93612014-02-26 Pedro Alves <palves@redhat.com>
9362
9363 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9364 task-specific breakpoints.
9365
d16461ae
PA
93662014-02-25 Pedro Alves <palves@redhat.com>
9367
9368 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9369 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9370
a8b16220
SS
93712014-02-25 Stan Shebs <stan@codesourcery.com>
9372
9373 * defs.h: Annotate comments for Doxygen.
9374
b9e795ee
TT
93752014-02-25 Tom Tromey <tromey@redhat.com>
9376
9377 * target.h (target_ignore): Don't declare.
9378 * target.c (target_ignore): Remove.
9379
849c862e
JK
93802014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9381
9382 PR gdb/16626
9383 * auto-load.c (auto_load_objfile_script_1): Change filename to
9384 debugfile.
9385
475109d8
JB
93862014-02-25 Joel Brobecker <brobecker@adacore.com>
9387
9388 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9389 documentation. Adjust prototype to match the target_ops
9390 to_xfer_partial method. Adjust implementation accordingly.
9391
e186c3bd
HZ
93922014-02-25 Hui Zhu <hui@codesourcery.com>
9393
9394 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9395 to_traceframe_info.
9396
6d451942
KB
93972014-02-25 Kevin Buettner <kevinb@redhat.com>
9398
041ab8b4 9399 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9400 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9401 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9402 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9403 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9404 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9405 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9406 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9407 New constants.
9408 (rl78_register_type): Use a data pointer type for SP and
9409 new pseudo registers mentioned above. Use a 16 bit integer
9410 type for all other register pairs.
9411 (rl78_register_name, rl78_g10_register_name): Update for
9412 new pseudo registers.
9413 (rl78_pseudo_register_read): Likewise.
9414 (rl78_pseudo_register_write): Likewise.
9415 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9416 to the newly added pseudo registers.
9417
eddf0bae
DE
94182014-02-24 Doug Evans <dje@google.com>
9419
9420 * value.c (record_latest_value): Fix comment.
9421 * printcmd.c (print_command_1): Remove code to handle -1 return from
9422 record_latest_value.
9423
e96027e0
PA
94242014-02-24 Pedro Alves <palves@redhat.com>
9425
9426 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9427 deprecated_xfer_memory hook.
9428 (procfs_xfer_partial): Call procfs_xfer_memory instead
9429 of the deprecated_xfer_memory target hook.
9430 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9431 helper.
9432
0837c976
YZ
94332014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9434
9435 * windows-nat.c (windows_xfer_shared_libraries): Return
9436 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9437 requested object is TARGET_OBJECT_LIBRARIES.
9438
bc113b4e
YQ
94392014-02-24 Yao Qi <yao@codesourcery.com>
9440
9441 * target.h (enum target_xfer_status)
9442 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9443 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9444 explicitly. New.
9445 * corefile.c (memory_error_message): User updated.
9446 * exec.c (section_table_read_available_memory): Likewise.
9447 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9448 * target.c (target_xfer_status_to_string): Likewise.
9449 (raw_memory_xfer_partial): Likewise.
9450 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9451 * valops.c (read_value_memory): Likewise.
9452 * exec.h: Update comments.
9453
01cb8804
YQ
94542014-02-24 Yao Qi <yao@codesourcery.com>
9455
9456 * target.c (target_xfer_status_to_string): Rename argument err
9457 to status.
9458 * target.h (target_xfer_status_to_string): Update declaration.
9459 Replace target_xfer_error_to_string with
9460 target_xfer_status_to_string in comment.
9461
93063aa6
YQ
94622014-02-24 Yao Qi <yao@codesourcery.com>
9463
9464 * mips-linux-nat.c (super_close): Update its type.
9465 (mips_linux_close): Pass 'self' to super_close.
9466
5c328c05
YQ
94672014-02-24 Yao Qi <yao@codesourcery.com>
9468
9469 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9470 * corefile.c (read_memory): Adjusted.
9471 * target.c (target_write_with_progress): Adjusted.
9472
f73023dd
YQ
94732014-02-23 Yao Qi <yao@codesourcery.com>
9474
9475 Revert two patches:
9476
9477 2013-10-25 Yao Qi <yao@codesourcery.com>
9478
9479 * remote.c (remote_traceframe_info): Return early if
9480 traceframe is not selected.
9481
9482 2013-07-19 Yao Qi <yao@codesourcery.com>
9483
9484 * target.c (update_current_target): Change the default action
9485 of 'to_traceframe_info' from tcomplain to return_zero.
9486 * target.h (struct target_ops) <to_traceframe_info>: Add more
9487 comments.
9488
5a2eb0ef
YQ
94892014-02-23 Yao Qi <yao@codesourcery.com>
9490
9491 * valops.c (read_value_memory): Rewrite it. Call
9492 target_xfer_partial in a loop.
9493 * exec.h (section_table_available_memory): Remove declaration.
9494 Move comments to ...
9495 * exec.c (section_table_available_memory): ... here. Make it
9496 static.
9497
1ee79381
YQ
94982014-02-23 Yao Qi <yao@codesourcery.com>
9499
9500 * exec.c (section_table_read_available_memory): New function.
9501 * exec.h (section_table_read_available_memory): Declare.
9502 * ctf.c (ctf_xfer_partial): Call
9503 section_table_read_available_memory.
9504 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9505
1ca49d37
YQ
95062014-02-23 Yao Qi <yao@codesourcery.com>
9507
9508 * ctf.c (ctf_xfer_partial): Move code to ...
9509 * exec.c (exec_read_partial_read_only): ... it. New function.
9510 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9511 * tracefile.c: Include "exec.h".
9512 * exec.h (exec_read_partial_read_only): Declare.
9513
a283690e
YQ
95142014-02-23 Yao Qi <yao@codesourcery.com>
9515
9516 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9517 (tfile_has_memory): Remove.
9518 (init_tfile_ops): Don't set fields to_has_all_memory and
9519 to_has_memory of tfile_ops.
9520 * tracefile.c (tracefile_has_all_memory): New function.
9521 (tracefile_has_memory): New function.
9522 (init_tracefile_ops): Initialize fields to_has_all_memory and
9523 to_has_memory of 'ops'.
9524
12e03cd0
YQ
95252014-02-23 Yao Qi <yao@codesourcery.com>
9526
9527 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9528 (ctf_thread_alive, ctf_get_trace_status): Remove.
9529 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9530 init_tracefile_ops.
9531 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9532 (tfile_has_stack, tfile_has_registers): Remove.
9533 (tfile_thread_alive): Remove.
9534 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9535 init_tracefile_ops.
9536 * tracefile.c (tracefile_has_stack): New function.
9537 (tracefile_has_registers): New function.
9538 (tracefile_thread_alive): New function.
9539 (tracefile_get_trace_status): New function.
9540 (init_tracefile_ops): New function.
9541 * tracefile.h (init_tracefile_ops): Declare.
9542
11395323
YQ
95432014-02-23 Yao Qi <yao@codesourcery.com>
9544
9545 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9546 (O_LARGEFILE): Likewise.
9547 (tfile_ops): Likewise.
9548 (TRACE_HEADER_SIZE): Likewise.
9549 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9550 (cur_data_size): Likewise.
9551 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9552 (tfile_close, tfile_files_info): Likewise.
9553 (tfile_get_trace_status): Likewise.
9554 (tfile_get_tracepoint_status): Likewise.
9555 (tfile_get_traceframe_address): Likewise.
9556 (tfile_trace_find, match_blocktype): Likewise.
9557 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9558 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9559 (tfile_get_trace_state_variable_value): Likewise.
9560 (tfile_has_all_memory, tfile_has_memory): Likewise.
9561 (tfile_has_stack, tfile_has_registers): Likewise.
9562 (tfile_thread_alive, build_traceframe_info): Likewise.
9563 (tfile_traceframe_info, init_tfile_ops): Likewise.
9564 (_initialize_tracepoint): Don't call init_tfile_ops
9565 and add_target_with_completer.
9566 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9567 exec.h, completer.h and filenames.h.
9568 (_initialize_tracefile_tfile): New function.
9569
7951c4eb
YQ
95702014-02-23 Yao Qi <yao@codesourcery.com>
9571
9572 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9573 tracefile-tfile.o.
9574 (HFILES_NO_SRCDIR): Add tracefile.h.
9575 * ctf.c: Include "tracefile.h".
9576 * tracefile.h: New file.
9577 * tracefile.c: New file
9578 * tracefile-tfile.c: New file.
9579 * tracepoint.c: Include "tracefile.h".
9580 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9581 (stop_reason_names): Add const.
9582 (trace_file_writer_xfree): Move it to tracefile.c.
9583 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9584 (trace_save_ctf): Likewise.
9585 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9586 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9587 (tfile_write_header, tfile_write_regblock_type): Likewise.
9588 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9589 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9590 (tfile_write_raw_data, tfile_end): Likewise.
9591 (tfile_trace_file_writer_new): Likewise.
9592 (free_uploaded_tp): Make it extern.
9593 (free_uploaded_tsv): Make it extern.
9594 (_initialize_tracepoint): Move code to register command 'tsave'
9595 to tracefile.c.
9596 * tracepoint.h (stop_reason_names): Declare.
9597 (struct trace_frame_write_ops): Move it to tracefile.h.
9598 (struct trace_file_write_ops): Likewise.
9599 (struct trace_file_writer): Likewise.
9600 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9601
184cd072
JK
96022014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9603
9604 PR gdb/16594
9605 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9606 process name.
9607 (get_cores_used_by_process): New parameter num_cores, use it.
9608 (linux_xfer_osdata_processes): Pass num_cores to it.
9609 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9610 process name.
9611
c63528fc
AK
96122014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9613
9614 * target.c (memory_xfer_partial): Fix length arg in call to
9615 breakpoint_xfer_memory.
9616
d7b30f67
SDJ
96172014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9618
9619 PR tdep/16397
9620 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9621 number comes after the + or - signs. Adjust length of register
9622 name to be extracted.
9623
8838afaf
TT
96242014-02-20 Tom Tromey <tromey@redhat.com>
9625
9626 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9627 (ada_varobj_ops): Mark "extern".
9628
05227d14
TT
96292014-02-20 Tom Tromey <tromey@redhat.com>
9630
9631 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9632
1254eefc
DE
96332014-02-20 Doug Evans <xdje42@gmail.com>
9634
9635 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9636 All callers updated.
9637 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9638 All callers updated.
9639 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9640 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9641
adde2bff
DE
96422014-02-20 lin zuojian <manjian2006@gmail.com>
9643 Joel Brobecker <brobecker@adacore.com>
9644 Doug Evans <xdje42@gmail.com>
9645
9646 PR symtab/16581
9647 * dwarf2read.c (struct die_info): New member in_process.
9648 (reset_die_in_process): New function.
9649 (process_die): Set it at the start, reset when returning.
9650 (inherit_abstract_dies): Only call process_die if origin_child_die
9651 not already being processed.
9652
3be75f87
JB
96532014-02-20 Joel Brobecker <brobecker@adacore.com>
9654
9655 * windows-nat.c (handle_unload_dll): Add function documentation.
9656 (do_initial_windows_stuff): Add comment explaining why we wait
9657 until after inferior initialization has finished before
9658 processing all DLLs.
9659
47f7ffdb
JB
96602014-02-20 Joel Brobecker <brobecker@adacore.com>
9661
9662 * windows-nat.c (get_module_name): Delete.
9663 (windows_get_exec_module_filename): New function, mostly
9664 inspired from get_module_name.
9665 (windows_pid_to_exec_file): Replace call to get_module_name
9666 by call to windows_get_exec_module_filename.
9667
1cd9feab
JB
96682014-02-20 Joel Brobecker <brobecker@adacore.com>
9669
9670 * windows-nat.c (handle_load_dll): Rewrite this function's
9671 introductory comment. Remove code using get_module_name
9672 to get the DLL's name.
9673
ea39ad35
JB
96742014-02-20 Joel Brobecker <brobecker@adacore.com>
9675
9676 * windows-nat.c (get_windows_debug_event): Ignore
9677 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9678 if windows_initialization_done == 0.
9679 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9680 Adjust implementation to always load all DLLs.
9681 (do_initial_windows_stuff): Replace call to
9682 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9683
95060284
JB
96842014-02-20 Joel Brobecker <brobecker@adacore.com>
9685
9686 * windows-nat.c (_initialize_windows_nat): Deprecate the
9687 "dll-symbols" command. Turn the "add-shared-symbol-files"
9688 and "assf" aliases into commands, and deprecate them as well.
9689 * NEWS: Add entry explaining that "dll-symbols" and its two
9690 aliases are now deprecated.
9691
8d4fdb12
JB
96922014-02-20 Joel Brobecker <brobecker@adacore.com>
9693
9694 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9695 new-line in debug string. Remove trailing spaces.
9696
1b281443
SS
96972014-02-19 Stan Shebs <stan@codesourcery.com>
9698
9699 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9700
f7bd0f78
SC
97012014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9702
9703 * NEWS: Add entry for the new feature
9704 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9705 and class values.
9706
399ebc3d
SS
97072014-02-19 Stan Shebs <stan@codesourcery.com>
9708
9709 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9710
c658158d
PA
97112014-02-19 Pedro Alves <palves@redhat.com>
9712
9713 * common/ptid.h (struct ptid): Mention that process_stratum
9714 targets should prefer ptid.lwp.
9715
ba348170
PA
97162014-02-19 Pedro Alves <palves@redhat.com>
9717
9718 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9719 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9720 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9721 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9722 store remote thread ids rather than ptid.tid.
9723 (_initialize_remote): Adjust.
9724
ac01945b
TT
97252014-02-19 Tom Tromey <tromey@redhat.com>
9726
9727 * target.c (target_get_unwinder): Rewrite.
9728 (target_get_tailcall_unwinder): Rewrite.
9729 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9730 (record_btrace_to_get_tailcall_unwinder): New function.
9731 (init_record_btrace_ops): Update.
9732 * target.h (struct target_ops) <to_get_unwinder,
9733 to_get_tailcall_unwinder>: Now function pointers. Use
9734 TARGET_DEFAULT_RETURN.
9735
8476dc92
TT
97362014-02-19 Tom Tromey <tromey@redhat.com>
9737
9738 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9739 argument.
9740 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9741
c0eca49f
TT
97422014-02-19 Tom Tromey <tromey@redhat.com>
9743
9744 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9745 directly.
9746 * target-delegates.c: Rebuild.
9747 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9748 TARGET_DEFAULT_FUNC.
9749 * target.c (default_target_decr_pc_after_break): Rename from
9750 forward_target_decr_pc_after_break. Simplify.
9751 (target_decr_pc_after_break): Rely on delegation.
9752
596b6b39
TT
97532014-02-19 Tom Tromey <tromey@redhat.com>
9754
9755 * target.c (update_current_target): Do not INHERIT to_doc or
9756 to_magic. Do not de_fault to_open or to_close.
9757
b427c1bc
TT
97582014-02-19 Tom Tromey <tromey@redhat.com>
9759
9760 * gcore.h (objfile_find_memory_regions): Declare.
9761 * gcore.c (objfile_find_memory_regions): No longer static. Add
9762 "self" argument.
9763 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9764 * exec.c: Include gcore.h.
9765 (exec_set_find_memory_regions): Remove.
9766 (exec_find_memory_regions): Remove.
9767 (exec_do_find_memory_regions): Remove.
9768 (init_exec_ops): Update.
9769 * defs.h (exec_set_find_memory_regions): Remove.
9770
9b144037
TT
97712014-02-19 Tom Tromey <tromey@redhat.com>
9772
9773 * target-delegates.c: Rebuild.
9774 * target.h (struct target_ops) <to_extra_thread_info,
9775 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9776 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9777 not 0, in TARGET_DEFAULT_RETURN.
9778
555bbdeb
TT
97792014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * target.c (complete_target_initialization): Remove casts. Use
9782 return_zero_has_execution.
9783 (return_zero): Add "ignore" argument.
9784 (return_zero_has_execution): New function.
9785 (init_dummy_target): Remove casts. Use
9786 return_zero_has_execution.
9787
be4ddd36
TT
97882014-02-19 Tom Tromey <tromey@redhat.com>
9789
9790 * target.c (update_current_target): Update comments. Do not
9791 INHERIT to_stratum.
9792
2117c711
TT
97932014-02-19 Tom Tromey <tromey@redhat.com>
9794
9795 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9796 needed.
9797 * corelow.c (core_read_description): Delegate when needed.
9798 * remote.c (remote_read_description): Delegate when needed.
9799 * target-delegates.c: Rebuild.
9800 * target.c (target_read_description): Rewrite.
9801 * target.h (struct target_ops) <to_read_description>: Update
9802 comment. Use TARGET_DEFAULT_RETURN.
9803
e88ef65c
TT
98042014-02-19 Tom Tromey <tromey@redhat.com>
9805
9806 * target-delegates.c: Rebuild.
9807 * target.c (update_current_target): Don't inherit or default
9808 to_can_run.
9809 (find_default_run_target): Check against delegate_can_run.
9810 * target.h (struct target_ops) <to_can_run>: Use
9811 TARGET_DEFAULT_RETURN.
9812
86a0854a
TT
98132014-02-19 Tom Tromey <tromey@redhat.com>
9814
9815 * target-delegates.c: Rebuild.
9816 * target.c (target_disconnect): Unconditionally delegate.
9817 * target.h (struct target_ops) <to_disconnect>: Use
9818 TARGET_DEFAULT_NORETURN.
9819
ee97f592
TT
98202014-02-19 Tom Tromey <tromey@redhat.com>
9821
9822 * record.c (record_stop): Unconditionally delegate.
9823 * target-delegates.c: Rebuild.
9824 * target.c (target_stop_recording): Unconditionally delegate.
9825 * target.h (struct target_ops) <to_stop_recording>: Use
9826 TARGET_DEFAULT_IGNORE.
9827
6dc7fcf4
TT
98282014-02-19 Tom Tromey <tromey@redhat.com>
9829
9830 * target-delegates.c: Rebuild.
9831 * target.c (target_enable_btrace): Unconditionally delegate.
9832 * target.h (struct target_ops) <to_enable_btrace>: Use
9833 TARGET_DEFAULT_NORETURN.
9834
eb5b20d4
TT
98352014-02-19 Tom Tromey <tromey@redhat.com>
9836
9837 * target-delegates.c: Rebuild.
9838 * target.c (target_read_btrace): Unconditionally delegate.
9839 * target.h (struct target_ops) <to_read_btrace>: Use
9840 TARGET_DEFAULT_NORETURN.
9841
9ace480d
TT
98422014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * target-delegates.c: Rebuild.
9845 * target.c (target_teardown_btrace): Unconditionally delegate.
9846 * target.h (struct target_ops) <to_teardown_btrace>: Use
9847 TARGET_DEFAULT_NORETURN.
9848
8dc292d3
TT
98492014-02-19 Tom Tromey <tromey@redhat.com>
9850
9851 * target-delegates.c: Rebuild.
9852 * target.c (target_disable_btrace): Unconditionally delegate.
9853 * target.h (struct target_ops) <to_disable_btrace>: Use
9854 TARGET_DEFAULT_NORETURN.
9855
58a5184e
TT
98562014-02-19 Tom Tromey <tromey@redhat.com>
9857
9858 * target-delegates.c: Rebuild.
9859 * target.c (default_search_memory): New function.
9860 (simple_search_memory): Update comment.
9861 (target_search_memory): Unconditionally delegate.
9862 * target.h (struct target_ops) <to_search_memory>: Use
9863 TARGET_DEFAULT_FUNC.
9864
8de71aab
TT
98652014-02-19 Tom Tromey <tromey@redhat.com>
9866
9867 * auxv.c (default_auxv_parse): No longer static.
9868 (target_auxv_parse): Unconditionally delegate.
9869 * auxv.h (default_auxv_parse): Declare.
9870 * target-delegates.c: Rebuild.
9871 * target.c: Include auxv.h.
9872 * target.h (struct target_ops) <to_auxv_parse>: Use
9873 TARGET_DEFAULT_FUNC.
9874
6b2c5a57
TT
98752014-02-19 Tom Tromey <tromey@redhat.com>
9876
9877 * target-delegates.c: Rebuild.
9878 * target.c (target_memory_map): Unconditionally delegate.
9879 * target.h (struct target_ops) <to_memory_map>: Use
9880 TARGET_DEFAULT_RETURN.
9881
cbffc065
TT
98822014-02-19 Tom Tromey <tromey@redhat.com>
9883
9884 * target-delegates.c: Rebuild.
9885 * target.c (target_thread_alive): Unconditionally delegate.
9886 * target.h (struct target_ops) <to_thread_alive>: Use
9887 TARGET_DEFAULT_RETURN.
9888
f09e2107
TT
98892014-02-19 Tom Tromey <tromey@redhat.com>
9890
9891 * target-delegates.c: Rebuild.
9892 * target.c (target_save_record): Unconditionally delegate.
9893 * target.h (struct target_ops) <to_save_record>: Use
9894 TARGET_DEFAULT_NORETURN.
9895
07366925
TT
98962014-02-19 Tom Tromey <tromey@redhat.com>
9897
9898 * target-delegates.c: Rebuild.
9899 * target.c (target_delete_record): Unconditionally delegate.
9900 * target.h (struct target_ops) <to_delete_record>: Use
9901 TARGET_DEFAULT_NORETURN.
9902
dd2e9d25
TT
99032014-02-19 Tom Tromey <tromey@redhat.com>
9904
9905 * target-delegates.c: Rebuild.
9906 * target.c (target_record_is_replaying): Unconditionally
9907 delegate.
9908 * target.h (struct target_ops) <to_record_is_replaying>: Use
9909 TARGET_DEFAULT_RETURN.
9910
671e76cc
TT
99112014-02-19 Tom Tromey <tromey@redhat.com>
9912
9913 * target-delegates.c: Rebuild.
9914 * target.c (target_goto_record_begin): Unconditionally delegate.
9915 * target.h (struct target_ops) <to_goto_record_begin>: Use
9916 TARGET_DEFAULT_NORETURN.
9917
e9179bb3
TT
99182014-02-19 Tom Tromey <tromey@redhat.com>
9919
9920 * target-delegates.c: Rebuild.
9921 * target.c (target_goto_record_end): Unconditionally delegate.
9922 * target.h (struct target_ops) <to_goto_record_end>: Use
9923 TARGET_DEFAULT_NORETURN.
9924
05969c84
TT
99252014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target-delegates.c: Rebuild.
9928 * target.c (target_goto_record): Unconditionally delegate.
9929 * target.h (struct target_ops) <to_goto_record>: Use
9930 TARGET_DEFAULT_NORETURN.
9931
3679abfa
TT
99322014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * target-delegates.c: Rebuild.
9935 * target.c (target_insn_history): Unconditionally delegate.
9936 * target.h (struct target_ops) <to_insn_history>: Use
9937 TARGET_DEFAULT_NORETURN.
9938
8444ab58
TT
99392014-02-19 Tom Tromey <tromey@redhat.com>
9940
9941 * target-delegates.c: Rebuild.
9942 * target.c (target_insn_history_from): Unconditionally delegate.
9943 * target.h (struct target_ops) <to_insn_history_from>: Use
9944 TARGET_DEFAULT_NORETURN.
9945
c29302cc
TT
99462014-02-19 Tom Tromey <tromey@redhat.com>
9947
9948 * target-delegates.c: Rebuild.
9949 * target.c (target_insn_history_range): Unconditionally delegate.
9950 * target.h (struct target_ops) <to_insn_history_range>: Use
9951 TARGET_DEFAULT_NORETURN.
9952
170049d4
TT
99532014-02-19 Tom Tromey <tromey@redhat.com>
9954
9955 * target-delegates.c: Rebuild.
9956 * target.c (target_call_history): Unconditionally delegate.
9957 * target.h (struct target_ops) <to_call_history>: Use
9958 TARGET_DEFAULT_NORETURN.
9959
16fc27d6
TT
99602014-02-19 Tom Tromey <tromey@redhat.com>
9961
9962 * target-delegates.c: Rebuild.
9963 * target.c (target_call_history_from): Unconditionally delegate.
9964 * target.h (struct target_ops) <to_call_history_from>: Use
9965 TARGET_DEFAULT_NORETURN.
9966
115d9817
TT
99672014-02-19 Tom Tromey <tromey@redhat.com>
9968
9969 * target-delegates.c: Rebuild.
9970 * target.c (target_call_history_range): Unconditionally delegate.
9971 * target.h (struct target_ops) <to_call_history_range>: Use
9972 TARGET_DEFAULT_NORETURN.
9973
eb276a6b
TT
99742014-02-19 Tom Tromey <tromey@redhat.com>
9975
9976 * target-delegates.c: Rebuild.
9977 * target.c (target_verify_memory): Unconditionally delegate.
9978 * target.h (struct target_ops) <to_verify_memory>: Use
9979 TARGET_DEFAULT_NORETURN.
9980
9e538d0d
TT
99812014-02-19 Tom Tromey <tromey@redhat.com>
9982
9983 * target-delegates.c: Rebuild.
9984 * target.c (target_core_of_thread): Unconditionally delegate.
9985 * target.h (struct target_ops) <to_core_of_thread>: Use
9986 TARGET_DEFAULT_RETURN.
9987
f6fb2925
TT
99882014-02-19 Tom Tromey <tromey@redhat.com>
9989
9990 * target-delegates.c: Rebuild.
9991 * target.c (target_flash_done): Unconditionally delegate.
9992 * target.h (struct target_ops) <to_flash_done>: Use
9993 TARGET_DEFAULT_NORETURN.
9994
e8a6c6ac
TT
99952014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * target-delegates.c: Rebuild.
9998 * target.c (target_flash_erase): Unconditionally delegate.
9999 * target.h (struct target_ops) <to_flash_erase>: Use
10000 TARGET_DEFAULT_NORETURN.
10001
7e35c012
TT
100022014-02-19 Tom Tromey <tromey@redhat.com>
10003
10004 * target-delegates.c: Rebuild.
10005 * target.c (target_get_section_table): Unconditionally delegate.
10006 * target.h (struct target_ops) <to_get_section_table>: Use
10007 TARGET_DEFAULT_RETURN.
10008
770234d3
TT
100092014-02-19 Tom Tromey <tromey@redhat.com>
10010
10011 * target-delegates.c: Rebuild.
10012 * target.c (target_pid_to_str): Unconditionally delegate.
10013 (init_dummy_target): Don't initialize to_pid_to_str.
10014 (default_pid_to_str): Rename from dummy_pid_to_str.
10015 * target.h (struct target_ops) <to_pid_to_str>: Use
10016 TARGET_DEFAULT_FUNC.
10017
09b0dc2b
TT
100182014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * target-delegates.c: Rebuild.
10021 * target.c (target_find_new_threads): Unconditionally delegate.
10022 * target.h (struct target_ops) <to_find_new_threads>: Use
10023 TARGET_DEFAULT_RETURN.
10024
7d4f8efa
TT
100252014-02-19 Tom Tromey <tromey@redhat.com>
10026
10027 * target-delegates.c: Rebuild.
10028 * target.c (target_program_signals): Unconditionally delegate.
10029 * target.h (struct target_ops) <to_program_signals>: Use
10030 TARGET_DEFAULT_IGNORE.
10031
035cad7f
TT
100322014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * target-delegates.c: Rebuild.
10035 * target.c (target_pass_signals): Unconditionally delegate.
10036 * target.h (struct target_ops) <to_pass_signals>: Use
10037 TARGET_DEFAULT_IGNORE.
10038
8d657035
TT
100392014-02-19 Tom Tromey <tromey@redhat.com>
10040
10041 * target-delegates.c: Rebuild.
10042 * target.c (default_mourn_inferior): New function.
10043 (target_mourn_inferior): Unconditionally delegate.
10044 * target.h (struct target_ops) <to_mourn_inferior>: Use
10045 TARGET_DEFAULT_FUNC.
10046
098dba18
TT
100472014-02-19 Tom Tromey <tromey@redhat.com>
10048
10049 * target-delegates.c: Rebuild.
10050 * target.c (default_follow_fork): New function.
10051 (target_follow_fork): Unconditionally delegate.
10052 * target.h (struct target_ops) <to_follow_fork>: Use
10053 TARGET_DEFAULT_FUNC.
10054
423a4807
TT
100552014-02-19 Tom Tromey <tromey@redhat.com>
10056
10057 * target-delegates.c: Rebuild.
10058 * target.c (target_kill): Unconditionally delegate.
10059 * target.h (struct target_ops) <to_kill>: Use
10060 TARGET_DEFAULT_NORETURN.
10061
6c7e5e5c
TT
100622014-02-19 Tom Tromey <tromey@redhat.com>
10063
10064 * target-delegates.c: Rebuild.
10065 * target.c (target_masked_watch_num_registers): Unconditionally
10066 delegate.
10067 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10068 Use TARGET_DEFAULT_RETURN.
10069
8b1c364c
TT
100702014-02-19 Tom Tromey <tromey@redhat.com>
10071
10072 * target-delegates.c: Rebuild.
10073 * target.c (target_remove_mask_watchpoint): Unconditionally
10074 delegate.
10075 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10076 TARGET_DEFAULT_RETURN.
10077
cd4ae029
TT
100782014-02-19 Tom Tromey <tromey@redhat.com>
10079
10080 * target-delegates.c: Rebuild.
10081 * target.c (target_insert_mask_watchpoint): Unconditionally
10082 delegate.
10083 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10084 TARGET_DEFAULT_RETURN.
10085
a134316b
TT
100862014-02-19 Tom Tromey <tromey@redhat.com>
10087
10088 * target-delegates.c: Rebuild.
10089 * target.c (target_ranged_break_num_registers): Unconditionally
10090 delegate.
10091 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10092 Use TARGET_DEFAULT_RETURN.
10093
ad5989bd
TT
100942014-02-19 Tom Tromey <tromey@redhat.com>
10095
10096 * target-delegates.c: Rebuild.
10097 * target.c (target_fetch_registers): Unconditionally delegate.
10098 * target.h (struct target_ops) <to_fetch_registers>: Use
10099 TARGET_DEFAULT_NORETURN.
10100
46ee7e8d
TT
101012014-02-19 Tom Tromey <tromey@redhat.com>
10102
10103 * target-delegates.c: Rebuild.
10104 * target.c (update_current_target): Don't inherit or default
10105 to_stop.
10106 * target.h (struct target_ops) <to_stop>: Use
10107 TARGET_DEFAULT_IGNORE.
10108
843f59ed
TT
101092014-02-19 Tom Tromey <tromey@redhat.com>
10110
10111 * target-delegates.c: Rebuild.
10112 * target.c (update_current_target): Don't inherit or default
10113 to_can_run_breakpoint_commands.
10114 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10115 Use TARGET_DEFAULT_RETURN.
10116
ccfde2a0
TT
101172014-02-19 Tom Tromey <tromey@redhat.com>
10118
10119 * target-delegates.c: Rebuild.
10120 * target.c (update_current_target): Don't inherit or default
10121 to_supports_evaluation_of_breakpoint_conditions.
10122 * target.h (struct target_ops)
10123 <to_supports_evaluation_of_breakpoint_conditions>: Use
10124 TARGET_DEFAULT_RETURN.
10125
0de91722
TT
101262014-02-19 Tom Tromey <tromey@redhat.com>
10127
10128 * target-delegates.c: Rebuild.
10129 * target.c (update_current_target): Don't inherit or default
10130 to_augmented_libraries_svr4_read.
10131 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10132 Use TARGET_DEFAULT_RETURN.
10133
9a7d8b48
TT
101342014-02-19 Tom Tromey <tromey@redhat.com>
10135
10136 * target-delegates.c: Rebuild.
10137 * target.c (update_current_target): Don't inherit or default
10138 to_can_use_agent.
10139 * target.h (struct target_ops) <to_can_use_agent>: Use
10140 TARGET_DEFAULT_RETURN.
10141
d9db5b21
TT
101422014-02-19 Tom Tromey <tromey@redhat.com>
10143
10144 * target-delegates.c: Rebuild.
10145 * target.c (update_current_target): Don't inherit or default
10146 to_use_agent.
10147 * target.h (struct target_ops) <to_use_agent>: Use
10148 TARGET_DEFAULT_NORETURN.
10149
92155eeb
TT
101502014-02-19 Tom Tromey <tromey@redhat.com>
10151
10152 * target-delegates.c: Rebuild.
10153 * target.c (update_current_target): Don't inherit or default
10154 to_traceframe_info.
10155 (return_null): Remove.
10156 * target.h (struct target_ops) <to_traceframe_info>: Use
10157 TARGET_DEFAULT_RETURN.
10158
d6522a22
TT
101592014-02-19 Tom Tromey <tromey@redhat.com>
10160
10161 * target-delegates.c: Rebuild.
10162 * target.c (update_current_target): Don't inherit or default
10163 to_static_tracepoint_markers_by_strid.
10164 * target.h (struct target_ops)
10165 <to_static_tracepoint_markers_by_strid>: Use
10166 TARGET_DEFAULT_NORETURN.
10167
4c3e4425
TT
101682014-02-19 Tom Tromey <tromey@redhat.com>
10169
10170 * target-delegates.c: Rebuild.
10171 * target.c (update_current_target): Don't inherit or default
10172 to_static_tracepoint_marker_at.
10173 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10174 Use TARGET_DEFAULT_RETURN.
10175
dcd6917f
TT
101762014-02-19 Tom Tromey <tromey@redhat.com>
10177
10178 * target-delegates.c: Rebuild.
10179 * target.c (update_current_target): Don't inherit or default
10180 to_set_permissions.
10181 * target.h (struct target_ops) <to_set_permissions>: Use
10182 TARGET_DEFAULT_IGNORE.
10183
22bcceee
TT
101842014-02-19 Tom Tromey <tromey@redhat.com>
10185
10186 * target-delegates.c: Rebuild.
10187 * target.c (update_current_target): Don't inherit or default
10188 to_get_tib_address.
10189 * target.h (struct target_ops) <to_get_tib_address>: Use
10190 TARGET_DEFAULT_NORETURN.
10191
8586ccaa
TT
101922014-02-19 Tom Tromey <tromey@redhat.com>
10193
10194 * target-delegates.c: Rebuild.
10195 * target.c (update_current_target): Don't inherit or default
10196 to_set_trace_notes.
10197 * target.h (struct target_ops) <to_set_trace_notes>: Use
10198 TARGET_DEFAULT_RETURN.
10199
91df8d1d
TT
102002014-02-19 Tom Tromey <tromey@redhat.com>
10201
10202 * target-delegates.c: Rebuild.
10203 * target.c (update_current_target): Don't initialize
10204 to_set_trace_buffer_size.
10205 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10206 TARGET_DEFAULT_IGNORE.
10207
8d526939
TT
102082014-02-19 Tom Tromey <tromey@redhat.com>
10209
10210 * target-delegates.c: Rebuild.
10211 * target.c (update_current_target): Don't inherit or default
10212 to_set_circular_trace_buffer.
10213 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10214 TARGET_DEFAULT_IGNORE.
10215
0bcfeddf
TT
102162014-02-19 Tom Tromey <tromey@redhat.com>
10217
10218 * target-delegates.c: Rebuild.
10219 * target.c (update_current_target): Don't inherit or default
10220 to_set_disconnected_tracing.
10221 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10222 TARGET_DEFAULT_IGNORE.
10223
9249843f
TT
102242014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * target-delegates.c: Rebuild.
10227 * target.c (update_current_target): Don't inherit or default
10228 to_get_min_fast_tracepoint_insn_len.
10229 (return_minus_one): Remove.
10230 * target.h (struct target_ops)
10231 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10232
ace92e7d
TT
102332014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * target-delegates.c: Rebuild.
10236 * target.c (update_current_target): Don't inherit or default
10237 to_get_raw_trace_data.
10238 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10239 TARGET_DEFAULT_NORETURN.
10240
08120467
TT
102412014-02-19 Tom Tromey <tromey@redhat.com>
10242
10243 * target-delegates.c: Rebuild.
10244 * target.c (update_current_target): Don't inherit or default
10245 to_upload_trace_state_variables.
10246 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10247 Use TARGET_DEFAULT_RETURN.
10248
1e949b00
TT
102492014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target-delegates.c: Rebuild.
10252 * target.c (update_current_target): Don't inherit or default
10253 to_upload_tracepoints.
10254 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10255 TARGET_DEFAULT_RETURN.
10256
a2e6c147
TT
102572014-02-19 Tom Tromey <tromey@redhat.com>
10258
10259 * target-delegates.c: Rebuild.
10260 * target.c (update_current_target): Don't inherit or default
10261 to_save_trace_data.
10262 * target.h (struct target_ops) <to_save_trace_data>: Use
10263 TARGET_DEFAULT_NORETURN.
10264
959bcd0b
TT
102652014-02-19 Tom Tromey <tromey@redhat.com>
10266
10267 * target-delegates.c: Rebuild.
10268 * target.c (update_current_target): Don't inherit or default
10269 to_get_trace_state_variable_value.
10270 * target.h (struct target_ops)
10271 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10272
afc94e66
TT
102732014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * target-delegates.c: Rebuild.
10276 * target.c (update_current_target): Don't inherit or default
10277 to_trace_find.
10278 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10279
e51c07ea
TT
102802014-02-19 Tom Tromey <tromey@redhat.com>
10281
10282 * target-delegates.c: Rebuild.
10283 * target.c (update_current_target): Don't inherit or default
10284 to_trace_stop.
10285 * target.h (struct target_ops) <to_trace_stop>: Use
10286 TARGET_DEFAULT_NORETURN.
10287
6fea14cd
TT
102882014-02-19 Tom Tromey <tromey@redhat.com>
10289
10290 * target-delegates.c: Rebuild.
10291 * target.c (update_current_target): Don't inherit or default
10292 to_get_tracepoint_status.
10293 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10294 TARGET_DEFAULT_NORETURN.
10295
4072d4ff
TT
102962014-02-19 Tom Tromey <tromey@redhat.com>
10297
10298 * target-delegates.c: Rebuild.
10299 * target.c (update_current_target): Don't inherit or default
10300 to_get_trace_status.
10301 * target.h (struct target_ops) <to_get_trace_status>: Use
10302 TARGET_DEFAULT_RETURN.
10303
25da2e80
TT
103042014-02-19 Tom Tromey <tromey@redhat.com>
10305
10306 * target-delegates.c: Rebuild.
10307 * target.c (update_current_target): Don't inherit or default
10308 to_trace_start.
10309 * target.h (struct target_ops) <to_trace_start>: Use
10310 TARGET_DEFAULT_NORETURN.
10311
86dd181d
TT
103122014-02-19 Tom Tromey <tromey@redhat.com>
10313
10314 * target-delegates.c: Rebuild.
10315 * target.c (update_current_target): Don't inherit or default
10316 to_trace_set_readonly_regions.
10317 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10318 Use TARGET_DEFAULT_NORETURN.
10319
05c41993
TT
103202014-02-19 Tom Tromey <tromey@redhat.com>
10321
10322 * target-delegates.c: Rebuild.
10323 * target.c (update_current_target): Don't inherit or default
10324 to_disable_tracepoint.
10325 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10326 TARGET_DEFAULT_NORETURN.
10327
151f70f1
TT
103282014-02-19 Tom Tromey <tromey@redhat.com>
10329
10330 * target-delegates.c: Rebuild.
10331 * target.c (update_current_target): Don't inherit or default
10332 to_enable_tracepoint.
10333 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10334 TARGET_DEFAULT_NORETURN.
10335
94eb98b9
TT
103362014-02-19 Tom Tromey <tromey@redhat.com>
10337
10338 * target-delegates.c: Rebuild.
10339 * target.c (update_current_target): Don't inherit or default
10340 to_download_trace_state_variable.
10341 * target.h (struct target_ops) <to_download_trace_state_variable>:
10342 Use TARGET_DEFAULT_NORETURN.
10343
719acc4a
TT
103442014-02-19 Tom Tromey <tromey@redhat.com>
10345
10346 * target-delegates.c: Rebuild.
10347 * target.c (update_current_target): Don't inherit or default
10348 to_can_download_tracepoint.
10349 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10350 TARGET_DEFAULT_RETURN.
10351
9a980a22
TT
103522014-02-19 Tom Tromey <tromey@redhat.com>
10353
10354 * target-delegates.c: Rebuild.
10355 * target.c (update_current_target): Don't inherit or default
10356 to_download_tracepoint.
10357 * target.h (struct target_ops) <to_download_tracepoint>: Use
10358 TARGET_DEFAULT_NORETURN.
10359
5536135b
TT
103602014-02-19 Tom Tromey <tromey@redhat.com>
10361
10362 * target-delegates.c: Rebuild.
10363 * target.c (update_current_target): Don't inherit or default
10364 to_trace_init.
10365 * target.h (struct target_ops) <to_trace_init>: Use
10366 TARGET_DEFAULT_RETURN.
10367
9409d39e
TT
103682014-02-19 Tom Tromey <tromey@redhat.com>
10369
10370 * target-delegates.c: Rebuild.
10371 * target.c (update_current_target): Don't inherit or default
10372 to_supports_string_tracing.
10373 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10374 TARGET_DEFAULT_RETURN.
10375
aab1b22d
TT
103762014-02-19 Tom Tromey <tromey@redhat.com>
10377
10378 * target-delegates.c: Rebuild.
10379 * target.c (update_current_target): Don't inherit or default
10380 to_supports_enable_disable_tracepoint.
10381 * target.h (struct target_ops)
10382 <to_supports_enable_disable_tracepoint>: Use
10383 TARGET_DEFAULT_RETURN.
10384
a7304748
TT
103852014-02-19 Tom Tromey <tromey@redhat.com>
10386
10387 * target-delegates.c: Rebuild.
10388 * target.c (update_current_target): Don't inherit or default
10389 to_supports_multi_process.
10390 * target.h (struct target_ops) <to_supports_multi_process>: Use
10391 TARGET_DEFAULT_RETURN.
10392
4229b31d
TT
103932014-02-19 Tom Tromey <tromey@redhat.com>
10394
10395 * target-delegates.c: Rebuild.
10396 * target.c (update_current_target): Don't inherit or default
10397 to_get_ada_task_ptid.
10398 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10399 TARGET_DEFAULT_FUNC.
10400
43eba180
TT
104012014-02-19 Tom Tromey <tromey@redhat.com>
10402
10403 * target-delegates.c: Rebuild.
10404 * target.c (update_current_target): Don't inherit or default
10405 to_thread_architecture.
10406 * target.h (struct target_ops) <to_thread_architecture>: Use
10407 TARGET_DEFAULT_FUNC.
10408
fe31bf5b
TT
104092014-02-19 Tom Tromey <tromey@redhat.com>
10410
10411 * target-delegates.c: Rebuild.
10412 * target.c (update_current_target): Don't inherit or default
10413 to_execution_direction.
10414 * target.h (struct target_ops) <to_execution_direction>: Use
10415 TARGET_DEFAULT_FUNC.
10416
53e1cfc7
TT
104172014-02-19 Tom Tromey <tromey@redhat.com>
10418
10419 * target-delegates.c: Rebuild.
10420 * target.c (update_current_target): Don't inherit or default
10421 to_can_execute_reverse.
10422 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10423 TARGET_DEFAULT_RETURN.
10424 (target_can_execute_reverse): Unconditionally delegate.
10425
9bb9d61d
TT
104262014-02-19 Tom Tromey <tromey@redhat.com>
10427
10428 * target-delegates.c: Rebuild.
10429 * target.c (update_current_target): Don't inherit or default
10430 to_goto_bookmark.
10431 (dummy_goto_bookmark): Remove.
10432 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10433 * target.h (struct target_ops) <to_goto_bookmark>: Use
10434 TARGET_DEFAULT_NORETURN.
10435
3dbafbbb
TT
104362014-02-19 Tom Tromey <tromey@redhat.com>
10437
10438 * target-delegates.c: Rebuild.
10439 * target.c (update_current_target): Don't inherit or default
10440 to_get_bookmark.
10441 (dummy_get_bookmark): Remove.
10442 (init_dummy_target): Don't inherit or default to_get_bookmark.
10443 * target.h (struct target_ops) <to_get_bookmark>: Use
10444 TARGET_DEFAULT_NORETURN
10445
16f796b1
TT
104462014-02-19 Tom Tromey <tromey@redhat.com>
10447
10448 * target-delegates.c: Rebuild.
10449 * target.c (update_current_target): Don't inherit or default
10450 to_make_corefile_notes.
10451 (init_dummy_target): Don't initialize to_make_corefile_notes.
10452 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10453 TARGET_DEFAULT_FUNC.
10454
0b5a2719
TT
104552014-02-19 Tom Tromey <tromey@redhat.com>
10456
10457 * target-delegates.c: Rebuild.
10458 * target.c (update_current_target): Don't inherit or default
10459 to_find_memory_regions.
10460 (init_dummy_target): Don't initialize to_find_memory_regions.
10461 * target.h (struct target_ops) <to_find_memory_regions>: Use
10462 TARGET_DEFAULT_FUNC.
10463
d9cb0195
TT
104642014-02-19 Tom Tromey <tromey@redhat.com>
10465
10466 * target-delegates.c: Rebuild.
10467 * target.c (update_current_target): Don't inherit or default
10468 to_log_command.
10469 * target.h (struct target_ops) <to_log_command>: Use
10470 TARGET_DEFAULT_IGNORE.
10471 (target_log_command): Unconditionally delegate.
10472
830ca330
TT
104732014-02-19 Tom Tromey <tromey@redhat.com>
10474
10475 * target-delegates.c: Rebuild.
10476 * target.c (update_current_target): Don't inherit or default
10477 to_pid_to_exec_file.
10478 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10479 TARGET_DEFAULT_RETURN.
10480
825828fc
TT
104812014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target-delegates.c: Rebuild.
10484 * target.c (update_current_target): Don't inherit or default
10485 to_thread_name.
10486 (target_thread_name): Unconditionally delegate.
10487 * target.h (struct target_ops) <to_thread_name>: Use
10488 TARGET_DEFAULT_RETURN.
10489
4a7e6dda
TT
104902014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target-delegates.c: Rebuild.
10493 * target.c (update_current_target): Don't inherit or default
10494 to_extra_thread_info.
10495 * target.h (struct target_ops) <to_extra_thread_info>: Use
10496 TARGET_DEFAULT_RETURN.
10497
0db88c1d
TT
104982014-02-19 Tom Tromey <tromey@redhat.com>
10499
10500 * target-delegates.c: Rebuild.
10501 * target.c (update_current_target): Don't inherit or default
10502 to_has_exited.
10503 * target.h (struct target_ops) <to_has_exited>: Use
10504 TARGET_DEFAULT_RETURN..
10505
6a9fa051
TT
105062014-02-19 Tom Tromey <tromey@redhat.com>
10507
10508 * target-delegates.c: Rebuild.
10509 * target.c (update_current_target): Don't inherit or default
10510 to_set_syscall_catchpoint.
10511 (return_one): Remove.
10512 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10513 TARGET_DEFAULT_RETURN.
10514
62f64d7a
TT
105152014-02-19 Tom Tromey <tromey@redhat.com>
10516
10517 * target-delegates.c: Rebuild.
10518 * target.c (update_current_target): Don't inherit or default
10519 to_insert_exec_catchpoint.
10520 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10521 TARGET_DEFAULT_RETURN.
10522
cda0f38c
TT
105232014-01-08 Tom Tromey <tromey@redhat.com>
10524
10525 * target-delegates.c: Rebuild.
10526 * target.c (update_current_target): Don't inherit or default
10527 to_insert_exec_catchpoint.
10528 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10529 TARGET_DEFAULT_RETURN.
10530
95c3375e
TT
105312014-02-19 Tom Tromey <tromey@redhat.com>
10532
10533 * target-delegates.c: Rebuild.
10534 * target.c (update_current_target): Don't inherit or default
10535 to_remove_vfork_catchpoint.
10536 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10537 TARGET_DEFAULT_RETURN.
10538
7e18a8dc
TT
105392014-02-19 Tom Tromey <tromey@redhat.com>
10540
10541 * target-delegates.c: Rebuild.
10542 * target.c (update_current_target): Don't inherit or default
10543 to_insert_vfork_catchpoint.
10544 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10545 TARGET_DEFAULT_RETURN.
10546
e1a21fb7
TT
105472014-02-19 Tom Tromey <tromey@redhat.com>
10548
10549 * target-delegates.c: Rebuild.
10550 * target.c (update_current_target): Don't inherit or default
10551 to_remove_fork_catchpoint.
10552 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10553 TARGET_DEFAULT_RETURN.
10554
5958ebeb
TT
105552014-02-19 Tom Tromey <tromey@redhat.com>
10556
10557 * target-delegates.c: Rebuild.
10558 * target.c (update_current_target): Don't inherit or default
10559 to_insert_fork_catchpoint.
10560 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10561 TARGET_DEFAULT_RETURN.
10562
340ba4bf
TT
105632014-02-19 Tom Tromey <tromey@redhat.com>
10564
10565 * target-delegates.c: Rebuild.
10566 * target.c (update_current_target): Don't inherit or default
10567 to_post_startup_inferior.
10568 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10569 TARGET_DEFAULT_IGNORE.
10570
7634da87
TT
105712014-02-19 Tom Tromey <tromey@redhat.com>
10572
10573 * target-delegates.c: Rebuild.
10574 * target.c (update_current_target): Don't inherit or default
10575 to_load.
10576 * target.h (struct target_ops) <to_load>: Use
10577 TARGET_DEFAULT_NORETURN.
10578
e19e919f
TT
105792014-02-19 Tom Tromey <tromey@redhat.com>
10580
10581 * target-delegates.c: Rebuild.
10582 * target.c (update_current_target): Don't inherit or default
10583 to_terminal_info.
10584 * target.h (struct target_ops) <to_terminal_info>: Use
10585 TARGET_DEFAULT_FUNC.
10586
c6ea8f79
TT
105872014-02-19 Tom Tromey <tromey@redhat.com>
10588
10589 * target-delegates.c: Rebuild.
10590 * target.c (update_current_target): Don't inherit or default
10591 to_terminal_save_ours.
10592 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10593 TARGET_DEFAULT_IGNORE.
10594
e4a733f1
TT
105952014-02-19 Tom Tromey <tromey@redhat.com>
10596
10597 * target-delegates.c: Rebuild.
10598 * target.c (update_current_target): Don't inherit or default
10599 to_terminal_ours.
10600 * target.h (struct target_ops) <to_terminal_ours>: Use
10601 TARGET_DEFAULT_IGNORE.
10602
74fcbef9
TT
106032014-02-19 Tom Tromey <tromey@redhat.com>
10604
10605 * target-delegates.c: Rebuild.
10606 * target.c (update_current_target): Don't inherit or default
10607 to_terminal_ours_for_output.
10608 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10609 TARGET_DEFAULT_IGNORE.
10610
ddeaacc9
TT
106112014-02-19 Tom Tromey <tromey@redhat.com>
10612
10613 * target-delegates.c: Rebuild.
10614 * target.c (update_current_target): Don't inherit or default
10615 to_terminal_inferior.
10616 * target.h (struct target_ops) <to_terminal_inferior>: Use
10617 TARGET_DEFAULT_IGNORE.
10618
0343661d
TT
106192014-02-19 Tom Tromey <tromey@redhat.com>
10620
10621 * target-delegates.c: Rebuild.
10622 * target.c (update_current_target): Don't inherit or default
10623 to_terminal_init.
10624 * target.h (struct target_ops) <to_terminal_init>: Use
10625 TARGET_DEFAULT_IGNORE.
10626
77cdffe9
TT
106272014-02-19 Tom Tromey <tromey@redhat.com>
10628
10629 * target-delegates.c: Rebuild.
10630 * target.c (update_current_target): Don't inherit or default
10631 to_can_accel_watchpoint_condition.
10632 * target.h (struct target_ops)
10633 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10634
d03655e4
TT
106352014-02-19 Tom Tromey <tromey@redhat.com>
10636
10637 * target-delegates.c: Rebuild.
10638 * target.c (update_current_target): Don't inherit or default
10639 to_region_ok_for_hw_watchpoint.
10640 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10641 Use TARGET_DEFAULT_FUNC.
10642
65f160a9
TT
106432014-02-19 Tom Tromey <tromey@redhat.com>
10644
10645 * target-delegates.c: Rebuild.
10646 * target.c (update_current_target): Don't inherit or default
10647 to_watchpoint_addr_within_range.
10648 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10649 Use TARGET_DEFAULT_FUNC.
10650
61dd109f
TT
106512014-02-19 Tom Tromey <tromey@redhat.com>
10652
10653 * target-delegates.c: Rebuild.
10654 * target.c (update_current_target): Don't inherit or default
10655 to_remove_watchpoint.
10656 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10657 TARGET_DEFAULT_NORETURN.
10658
016facd4
TT
106592014-02-19 Tom Tromey <tromey@redhat.com>
10660
10661 * target-delegates.c: Rebuild.
10662 * target.c (update_current_target): Don't inherit or default
10663 to_insert_watchpoint.
10664 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10665 TARGET_DEFAULT_RETURN.
10666
418dabac
TT
106672014-02-19 Tom Tromey <tromey@redhat.com>
10668
10669 * target-delegates.c: Rebuild.
10670 * target.c (update_current_target): Don't inherit or default
10671 to_remove_hw_breakpoint.
10672 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10673 TARGET_DEFAULT_RETURN.
10674
61b371f9
TT
106752014-02-19 Tom Tromey <tromey@redhat.com>
10676
10677 * target-delegates.c: Rebuild.
10678 * target.c (update_current_target): Don't inherit or default
10679 to_insert_hw_breakpoint.
10680 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10681 TARGET_DEFAULT_RETURN.
10682
52b51d06
TT
106832014-02-19 Tom Tromey <tromey@redhat.com>
10684
10685 * target-delegates.c: Rebuild.
10686 * target.c (update_current_target): Don't inherit or default
10687 to_can_use_hw_breakpoint.
10688 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10689 TARGET_DEFAULT_RETURN.
10690
f86e59b2
TT
106912014-02-19 Tom Tromey <tromey@redhat.com>
10692
10693 * target-delegates.c: Rebuild.
10694 * target.c (update_current_target): Don't inherit or default
10695 to_files_info.
10696 * target.h (struct target_ops) <to_files_info>: Use
10697 TARGET_DEFAULT_IGNORE.
10698
6c628163
TT
106992014-02-19 Tom Tromey <tromey@redhat.com>
10700
10701 * target-delegates.c: Rebuild.
10702 * target.c (update_current_target): Don't inherit or default
10703 to_store.
10704 * target.h (struct target_ops) <to_store>: Use
10705 TARGET_DEFAULT_NORETURN.
10706
bebd3233
TT
107072014-02-19 Tom Tromey <tromey@redhat.com>
10708
10709 * target-delegates.c: Rebuild.
10710 * target.c (update_current_target): Don't inherit or default
10711 to_post_attach.
10712 * target.h (struct target_ops) <to_post_attach>: Use
10713 TARGET_DEFAULT_IGNORE.
10714
a53f3625
TT
107152014-02-19 Tom Tromey <tromey@redhat.com>
10716
10717 * target-delegates.c: Rebuild.
10718 * target.c (update_current_target): Don't inherit or default
10719 to_rcmd.
10720 (default_rcmd): New function.
10721 (do_monitor_command): Unconditionally delegate.
10722 * target.h (struct target_ops) <to_rmcd>: Use
10723 TARGET_DEFAULT_FUNC.
10724
e9a29200
TT
107252014-02-19 Tom Tromey <tromey@redhat.com>
10726
10727 * target-delegates.c: Rebuild.
10728 * target.c (init_dummy_target): Don't initialize to_attach.
10729 (target_attach): Unconditionally delegate.
10730 * target.h (struct target_ops) <to_attach>: Use
10731 TARGET_DEFAULT_FUNC.
10732
09da0d0a
TT
107332014-02-19 Tom Tromey <tromey@redhat.com>
10734
10735 * target-delegates.c: Rebuild.
10736 * target.c (target_detach): Unconditionally delegate.
10737 (init_dummy_target): Don't initialize to_detach.
10738 * target.h (struct target_ops) <to_detach>: Use
10739 TARGET_DEFAULT_IGNORE.
10740
5436ff03
TT
107412014-02-19 Tom Tromey <tromey@redhat.com>
10742
10743 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10744 Add argument.
10745 (target_augmented_libraries_svr4_read): Add argument.
10746 * target.c (update_current_target): Update.
10747 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10748 argument.
10749
f0d960ea
TT
107502014-02-19 Tom Tromey <tromey@redhat.com>
10751
10752 * target.h (struct target_ops) <to_call_history_range>: Add
10753 argument.
10754 * target.c (target_call_history_range): Add argument.
10755 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10756 argument.
10757 (record_btrace_call_history_from): Update.
10758
ec0aea04
TT
107592014-02-19 Tom Tromey <tromey@redhat.com>
10760
10761 * target.h (struct target_ops) <to_call_history_from>: Add
10762 argument.
10763 * target.c (target_call_history_from): Add argument.
10764 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10765 argument.
10766
5df2fcba
TT
107672014-02-19 Tom Tromey <tromey@redhat.com>
10768
10769 * target.h (struct target_ops) <to_call_history>: Add argument.
10770 * target.c (target_call_history): Add argument.
10771 * record-btrace.c (record_btrace_call_history): Add 'self'
10772 argument.
10773
4e99c6b7
TT
107742014-02-19 Tom Tromey <tromey@redhat.com>
10775
10776 * target.h (struct target_ops) <to_insn_history_range>: Add
10777 argument.
10778 * target.c (target_insn_history_range): Add argument.
10779 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10780 argument.
10781 (record_btrace_insn_history_from): Update.
10782
9abc3ff3
TT
107832014-02-19 Tom Tromey <tromey@redhat.com>
10784
10785 * target.h (struct target_ops) <to_insn_history_from>: Add
10786 argument.
10787 * target.c (target_insn_history_from): Add argument.
10788 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10789 argument.
10790
7a6c5609
TT
107912014-02-19 Tom Tromey <tromey@redhat.com>
10792
10793 * target.h (struct target_ops) <to_insn_history>: Add argument.
10794 * target.c (target_insn_history): Add argument.
10795 * record-btrace.c (record_btrace_insn_history): Add 'self'
10796 argument.
10797
606183ac
TT
107982014-02-19 Tom Tromey <tromey@redhat.com>
10799
10800 * target.h (struct target_ops) <to_goto_record>: Add argument.
10801 * target.c (target_goto_record): Add argument.
10802 * record-full.c (record_full_goto): Add 'self' argument.
10803 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10804
307a1b91
TT
108052014-02-19 Tom Tromey <tromey@redhat.com>
10806
10807 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10808 * target.c (target_goto_record_end): Add argument.
10809 * record-full.c (record_full_goto_end): Add 'self' argument.
10810 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10811
08475817
TT
108122014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * target.h (struct target_ops) <to_goto_record_begin>: Add
10815 argument.
10816 * target.c (target_goto_record_begin): Add argument.
10817 * record-full.c (record_full_goto_begin): Add 'self' argument.
10818 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10819 argument.
10820
1c63c994
TT
108212014-02-19 Tom Tromey <tromey@redhat.com>
10822
10823 * target.h (struct target_ops) <to_record_is_replaying>: Add
10824 argument.
10825 * target.c (target_record_is_replaying): Add argument.
10826 * record-full.c (record_full_is_replaying): Add 'self' argument.
10827 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10828 argument.
10829 (record_btrace_xfer_partial, record_btrace_store_registers)
10830 (record_btrace_prepare_to_store, record_btrace_resume)
10831 (record_btrace_wait, record_btrace_decr_pc_after_break)
10832 (record_btrace_find_new_threads, record_btrace_thread_alive):
10833 Update.
10834
d1b55219
TT
108352014-02-19 Tom Tromey <tromey@redhat.com>
10836
10837 * target.h (struct target_ops) <to_delete_record>: Add argument.
10838 * target.c (target_delete_record): Add argument.
10839 * record-full.c (record_full_delete): Add 'self' argument.
10840
1390f529
TT
108412014-02-19 Tom Tromey <tromey@redhat.com>
10842
10843 * target.h (struct target_ops) <to_save_record>: Add argument.
10844 * target.c (target_save_record): Add argument.
10845 * record-full.c (record_full_save): Add 'self' argument.
10846 (record_full_save): Add 'self' argument.
10847
630d6a4a
TT
108482014-02-19 Tom Tromey <tromey@redhat.com>
10849
10850 * target.h (struct target_ops) <to_info_record>: Add argument.
10851 * target.c (target_info_record): Add argument.
10852 * record.c (info_record_command): Add argument.
10853 * record-full.c (record_full_info): Add 'self' argument.
10854 * record-btrace.c (record_btrace_info): Add 'self' argument.
10855
c6cd7c02
TT
108562014-02-19 Tom Tromey <tromey@redhat.com>
10857
10858 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10859 * target.c (target_stop_recording): Add argument.
10860 * record.c (record_stop): Add argument.
10861 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10862 argument.
10863
39c49f83
TT
108642014-02-19 Tom Tromey <tromey@redhat.com>
10865
10866 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10867 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10868 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10869 argument.
10870 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10871 (_initialize_amd64_linux_nat): Use it.
10872 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10873 (_initialize_i386_linux_nat): Use it.
10874
1777056d
TT
108752014-02-19 Tom Tromey <tromey@redhat.com>
10876
10877 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10878 * target.c (target_teardown_btrace): Add argument.
10879 * remote.c (remote_teardown_btrace): Add 'self' argument.
10880 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10881 argument.
10882 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10883 argument.
10884
25e95349
TT
108852014-02-19 Tom Tromey <tromey@redhat.com>
10886
10887 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10888 * target.c (target_disable_btrace): Add argument.
10889 * remote.c (remote_disable_btrace): Add 'self' argument.
10890 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10891 argument.
10892 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10893 argument.
10894
e3c49f88
TT
108952014-02-19 Tom Tromey <tromey@redhat.com>
10896
10897 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10898 * target.c (target_enable_btrace): Add argument.
10899 * remote.c (remote_enable_btrace): Add 'self' argument.
10900 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10901 argument.
10902 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10903 argument.
10904
fe38f897
TT
109052014-02-19 Tom Tromey <tromey@redhat.com>
10906
10907 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10908 (target_can_use_agent): Add argument.
10909 * target.c (update_current_target): Update.
10910 * remote.c (remote_can_use_agent): Add 'self' argument.
10911 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10912
2c152180
TT
109132014-02-19 Tom Tromey <tromey@redhat.com>
10914
10915 * target.h (struct target_ops) <to_use_agent>: Add argument.
10916 (target_use_agent): Add argument.
10917 * target.c (update_current_target): Update.
10918 * remote.c (remote_use_agent): Add 'self' argument.
10919 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10920
a893e81f
TT
109212014-02-19 Tom Tromey <tromey@redhat.com>
10922
10923 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10924 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10925 (target_traceframe_info): Add argument.
10926 * target.c (update_current_target): Update.
10927 * remote.c (remote_traceframe_info): Add 'self' argument.
10928 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10929
c686c57f
TT
109302014-02-19 Tom Tromey <tromey@redhat.com>
10931
10932 * target.h (target_static_tracepoint_markers_by_strid): Add
10933 argument.
10934 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10935 'self' argument.
10936 * target.c (update_current_target): Update.
10937 * remote.c (struct target_ops)
10938 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10939 * linux-nat.c (struct target_ops)
10940 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10941
61fc905d
TT
109422014-02-19 Tom Tromey <tromey@redhat.com>
10943
10944 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10945 Add argument.
10946 (target_static_tracepoint_marker_at): Add argument.
10947 * target.c (update_current_target): Update.
10948 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10949 argument.
10950
c378d69d
TT
109512014-02-19 Tom Tromey <tromey@redhat.com>
10952
10953 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10954 (target_set_permissions): Add argument.
10955 * target.c (update_current_target): Update.
10956 * remote.c (remote_set_permissions): Add 'self' argument.
10957 (remote_start_remote): Update.
10958
bd7ae0f5
TT
109592014-02-19 Tom Tromey <tromey@redhat.com>
10960
10961 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10962 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10963 (target_get_tib_address): Add argument.
10964 * target.c (update_current_target): Update.
10965 * remote.c (remote_get_tib_address): Add 'self' argument.
10966
d9e68a2c
TT
109672014-02-19 Tom Tromey <tromey@redhat.com>
10968
10969 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10970 (target_set_trace_notes): Add argument.
10971 * target.c (update_current_target): Update.
10972 * remote.c (remote_set_trace_notes): Add 'self' argument.
10973
4da384be
TT
109742014-02-19 Tom Tromey <tromey@redhat.com>
10975
10976 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10977 argument.
10978 (target_set_trace_buffer_size): Add argument.
10979 * target.c (update_current_target): Update.
10980 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10981
736d5b1f
TT
109822014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10985 argument.
10986 (target_set_circular_trace_buffer): Add argument.
10987 * target.c (update_current_target): Update.
10988 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10989 argument.
10990
37b25738
TT
109912014-02-19 Tom Tromey <tromey@redhat.com>
10992
10993 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10994 argument.
10995 (target_set_disconnected_tracing): Add argument.
10996 * target.c (update_current_target): Update.
10997 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10998
0e67620a
TT
109992014-02-19 Tom Tromey <tromey@redhat.com>
11000
11001 * target.h (struct target_ops)
11002 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11003 (target_get_min_fast_tracepoint_insn_len): Add argument.
11004 * target.c (update_current_target): Update.
11005 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11006 argument.
11007
88ee6f45
TT
110082014-02-19 Tom Tromey <tromey@redhat.com>
11009
11010 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11011 argument.
11012 (target_get_raw_trace_data): Add argument.
11013 * target.c (update_current_target): Update.
11014 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11015
181e3713
TT
110162014-02-19 Tom Tromey <tromey@redhat.com>
11017
11018 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11019 Add argument.
11020 (target_upload_trace_state_variables): Add argument.
11021 * target.c (update_current_target): Update.
11022 * remote.c (remote_upload_trace_state_variables): Add 'self'
11023 argument.
11024 (remote_start_remote): Update.
11025
ab6617cc
TT
110262014-02-19 Tom Tromey <tromey@redhat.com>
11027
11028 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11029 argument.
11030 (target_upload_tracepoints): Add argument.
11031 * target.c (update_current_target): Update.
11032 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11033 (remote_start_remote): Update.
11034
dc3decaf
TT
110352014-02-19 Tom Tromey <tromey@redhat.com>
11036
11037 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11038 (target_save_trace_data): Add argument.
11039 * target.c (update_current_target): Update.
11040 * remote.c (remote_save_trace_data): Add 'self' argument.
11041
4011015b
TT
110422014-02-19 Tom Tromey <tromey@redhat.com>
11043
11044 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11045 argument.
11046 * target.h (struct target_ops)
11047 <to_get_trace_state_variable_value>: Add argument.
11048 (target_get_trace_state_variable_value): Add argument.
11049 * target.c (update_current_target): Update.
11050 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11051 argument.
11052 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11053
bd4c6793
TT
110542014-02-19 Tom Tromey <tromey@redhat.com>
11055
11056 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11057 * target.h (struct target_ops) <to_trace_find>: Add argument.
11058 (target_trace_find): Add argument.
11059 * target.c (update_current_target): Update.
11060 * remote.c (remote_trace_find): Add 'self' argument.
11061 * ctf.c (ctf_trace_find): Add 'self' argument.
11062
74499f1b
TT
110632014-02-19 Tom Tromey <tromey@redhat.com>
11064
11065 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11066 (target_trace_stop): Add argument.
11067 * target.c (update_current_target): Update.
11068 * remote.c (remote_trace_stop): Add 'self' argument.
11069
db90e85c
TT
110702014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11073 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11074 argument.
11075 (target_get_tracepoint_status): Add argument.
11076 * target.c (update_current_target): Update.
11077 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11078
8bd200f1
TT
110792014-02-19 Tom Tromey <tromey@redhat.com>
11080
11081 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11082 * target.h (struct target_ops) <to_get_trace_status>: Add
11083 argument.
11084 (target_get_trace_status): Add argument.
11085 * target.c (update_current_target): Update.
11086 * remote.c (remote_get_trace_status): Add 'self' argument.
11087 (remote_start_remote, remote_can_download_tracepoint): Update.
11088 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11089
e2d1aae3
TT
110902014-02-19 Tom Tromey <tromey@redhat.com>
11091
11092 * target.h (struct target_ops) <to_trace_start>: Add argument.
11093 (target_trace_start): Add argument.
11094 * target.c (update_current_target): Update.
11095 * remote.c (remote_trace_start): Add 'self' argument.
11096
583f9a86
TT
110972014-02-19 Tom Tromey <tromey@redhat.com>
11098
11099 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11100 Add argument.
11101 (target_trace_set_readonly_regions): Add argument.
11102 * target.c (update_current_target): Update.
11103 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11104 argument.
11105
780b049c
TT
111062014-02-19 Tom Tromey <tromey@redhat.com>
11107
11108 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11109 argument.
11110 (target_disable_tracepoint): Add argument.
11111 * target.c (update_current_target): Update.
11112 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11113
46670d57
TT
111142014-02-19 Tom Tromey <tromey@redhat.com>
11115
11116 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11117 argument.
11118 (target_enable_tracepoint): Add argument.
11119 * target.c (update_current_target): Update.
11120 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11121
559d2b81
TT
111222014-02-19 Tom Tromey <tromey@redhat.com>
11123
11124 * target.h (struct target_ops) <to_download_trace_state_variable>:
11125 Add argument.
11126 (target_download_trace_state_variable): Add argument.
11127 * target.c (update_current_target): Update.
11128 * remote.c (remote_download_trace_state_variable): Add 'self'
11129 argument.
11130
a52a8357
TT
111312014-02-19 Tom Tromey <tromey@redhat.com>
11132
11133 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11134 argument.
11135 (target_can_download_tracepoint): Add argument.
11136 * target.c (update_current_target): Update.
11137 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11138
548f7808
TT
111392014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * target.h (struct target_ops) <to_download_tracepoint>: Add
11142 argument.
11143 (target_download_tracepoint): Add argument.
11144 * target.c (update_current_target): Update.
11145 * remote.c (remote_download_tracepoint): Add 'self' argument.
11146
ecae04e1
TT
111472014-02-19 Tom Tromey <tromey@redhat.com>
11148
11149 * target.h (struct target_ops) <to_trace_init>: Add argument.
11150 (target_trace_init): Add argument.
11151 * target.c (update_current_target): Update.
11152 * remote.c (remote_trace_init): Add 'self' argument.
11153
fab5aa7c
TT
111542014-02-19 Tom Tromey <tromey@redhat.com>
11155
11156 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11157 * target.c (target_fileio_readlink): Add argument.
11158 * remote.c (remote_hostio_readlink): Add 'self' argument.
11159 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11160
dbbca37d
TT
111612014-02-19 Tom Tromey <tromey@redhat.com>
11162
11163 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11164 * target.c (target_fileio_unlink): Add argument.
11165 * remote.c (remote_hostio_unlink): Add 'self' argument.
11166 (remote_file_delete): Update.
11167 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11168
df39ea25
TT
111692014-02-19 Tom Tromey <tromey@redhat.com>
11170
11171 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11172 * target.c (target_fileio_close): Add argument.
11173 * remote.c (remote_hostio_close): Add 'self' argument.
11174 (remote_hostio_close_cleanup): Update.
11175 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11176 Update.
11177 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11178
a3be983c
TT
111792014-02-19 Tom Tromey <tromey@redhat.com>
11180
11181 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11182 * target.c (target_fileio_pread): Add argument.
11183 * remote.c (remote_hostio_pread): Add 'self' argument.
11184 (remote_bfd_iovec_pread, remote_file_get): Update.
11185 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11186
0d866f62
TT
111872014-02-19 Tom Tromey <tromey@redhat.com>
11188
11189 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11190 * target.c (target_fileio_pwrite): Add argument.
11191 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11192 (remote_file_put): Update.
11193 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11194
cd897586
TT
111952014-02-19 Tom Tromey <tromey@redhat.com>
11196
11197 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11198 * target.c (target_fileio_open): Add argument.
11199 * remote.c (remote_hostio_open): Add 'self' argument.
11200 (remote_bfd_iovec_open): Add 'self' argument.
11201 (remote_file_put): Add 'self' argument.
11202 (remote_file_get): Add 'self' argument.
11203 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11204
78eff0ec
TT
112052014-02-19 Tom Tromey <tromey@redhat.com>
11206
11207 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11208 Add argument.
11209 (target_can_run_breakpoint_commands): Add argument.
11210 * target.c (update_current_target): Update.
11211 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11212 argument.
11213 (remote_insert_breakpoint): Add 'self' argument.
11214 (remote_insert_hw_breakpoint): Add 'self' argument.
11215 (remote_can_run_breakpoint_commands): Add 'self' argument.
11216
efcc2da7
TT
112172014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * target.h (struct target_ops)
11220 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11221 (target_supports_evaluation_of_breakpoint_conditions): Add
11222 argument.
11223 * target.c (update_current_target): Update.
11224 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11225 argument.
11226 (remote_insert_breakpoint): Add 'self' argument.
11227 (remote_insert_hw_breakpoint): Add 'self' argument.
11228 (remote_supports_cond_breakpoints): Add 'self' argument.
11229
6de37a3a
TT
112302014-02-19 Tom Tromey <tromey@redhat.com>
11231
11232 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11233 argument.
11234 (target_supports_string_tracing): Add argument.
11235 * target.c (update_current_target): Update.
11236 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11237
2bfc0540
TT
112382014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target.h (struct target_ops)
11241 <to_supports_disable_randomization>: Add argument.
11242 * target.c (find_default_supports_disable_randomization): Add
11243 argument.
11244 (target_supports_disable_randomization): Add argument.
11245 (find_default_supports_disable_randomization): Add 'self'
11246 argument.
11247 * remote.c (extended_remote_supports_disable_randomization): Add
11248 'self' argument.
11249 (remote_supports_disable_randomization): Add 'self' argument.
11250 (extended_remote_create_inferior): Update.
11251 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11252 'self' argument.
11253
7d178d6a
TT
112542014-02-19 Tom Tromey <tromey@redhat.com>
11255
11256 * target.h (struct target_ops)
11257 <to_supports_enable_disable_tracepoint>: Add argument.
11258 (target_supports_enable_disable_tracepoint): Add argument.
11259 * target.c (update_current_target): Update.
11260 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11261 argument.
11262
86ce2668
TT
112632014-02-19 Tom Tromey <tromey@redhat.com>
11264
11265 * target.h (struct target_ops) <to_supports_multi_process>: Add
11266 argument.
11267 (target_supports_multi_process): Add argument.
11268 * target.c (update_current_target): Update.
11269 * remote.c (remote_supports_multi_process): Add 'self' argument.
11270 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11271 argument.
11272 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11273 argument.
11274
4c612759
TT
112752014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target.h (struct target_ops) <to_execution_direction>: Add
11278 argument.
11279 (target_execution_direction): Add argument.
11280 * target.c (default_execution_direction): Add 'self' argument.
11281 * record-full.c (record_full_execution_direction): Add 'self'
11282 argument.
11283
19db3e69
TT
112842014-02-19 Tom Tromey <tromey@redhat.com>
11285
11286 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11287 argument.
11288 (target_can_execute_reverse): Add argument.
11289 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11290 * record-full.c (record_full_can_execute_reverse): Add 'self'
11291 argument.
11292 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11293 argument.
11294
1e6b91a4
TT
112952014-02-19 Tom Tromey <tromey@redhat.com>
11296
11297 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11298 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11299 argument.
11300 (target_get_ada_task_ptid): Add argument.
11301 * target.c (update_current_target): Update.
11302 (default_get_ada_task_ptid): Add 'self' argument.
11303 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11304 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11305 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11306 argument.
11307 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11308 argument.
11309 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11310 argument.
11311 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11312 argument.
11313 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11314 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11315 argument.
11316
3c80fb48
TT
113172014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11320 (target_goto_bookmark): Add argument.
11321 * target.c (dummy_goto_bookmark): Add 'self' argument.
11322 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11323
dd0e2830
TT
113242014-02-19 Tom Tromey <tromey@redhat.com>
11325
11326 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11327 (target_get_bookmark): Add argument.
11328 * target.c (dummy_get_bookmark): Add 'self' argument.
11329 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11330
fc6691b2
TT
113312014-02-19 Tom Tromey <tromey@redhat.com>
11332
11333 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11334 argument.
11335 (target_make_corefile_notes): Add argument.
11336 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11337 * procfs.c (procfs_make_note_section): Add 'self' argument.
11338 (procfs_make_note_section): Add 'self' argument.
11339 (procfs_make_note_section): Add 'self' argument.
11340 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11341 argument.
11342 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11343 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11344 * exec.c (exec_make_note_section): Add 'self' argument.
11345 (exec_make_note_section): Add 'self' argument.
11346
2e73927c
TT
113472014-02-19 Tom Tromey <tromey@redhat.com>
11348
11349 * target.h (struct target_ops) <to_find_memory_regions>: Add
11350 argument.
11351 (target_find_memory_regions): Add argument.
11352 * target.c (dummy_find_memory_regions): Add 'self' argument.
11353 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11354 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11355 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11356 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11357 * exec. (exec_do_find_memory_regions): New global.
11358 (exec_set_find_memory_regions): Rewrite.
11359 (exec_find_memory_regions): New function.
11360 (init_exec_ops): Use exec_find_memory_regions.
11361
2a9a2795
TT
113622014-02-19 Tom Tromey <tromey@redhat.com>
11363
11364 * target.h (struct target_ops) <to_supports_non_stop>: Add
11365 argument.
11366 * target.c (find_default_supports_non_stop): Add argument.
11367 (target_supports_non_stop): Add argument.
11368 (find_default_supports_non_stop): Add 'self' argument.
11369 * remote.c (remote_supports_non_stop): Add 'self' argument.
11370 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11371
4ab76ea3
TT
113722014-02-19 Tom Tromey <tromey@redhat.com>
11373
11374 * target.h (struct target_ops) <to_log_command>: Add argument.
11375 (target_log_command): Add argument.
11376 * serial.h (serial_log_command): Add 'self' argument.
11377 * serial.c (serial_log_command): Add 'self' argument.
11378
8dd27370
TT
113792014-02-19 Tom Tromey <tromey@redhat.com>
11380
11381 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11382 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11383 argument.
11384 (target_pid_to_exec_file): Add argument.
11385 * target.c (debug_to_pid_to_exec_file): Add argument.
11386 (update_current_target): Update.
11387 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11388 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11389 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11390 (linux_handle_extended_wait): Update.
11391 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11392 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11393 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11394 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11395
1aac633b
TT
113962014-02-19 Tom Tromey <tromey@redhat.com>
11397
11398 * target.h (struct target_ops) <to_rcmd>: Add argument.
11399 (target_rcmd): Add argument.
11400 * target.c (debug_to_rcmd): Add argument.
11401 (update_current_target, do_monitor_command): Update.
11402 * remote.c (remote_rcmd): Add 'self' argument.
11403 * monitor.c (monitor_rcmd): Add 'self' argument.
11404
1eab8a48
TT
114052014-02-19 Tom Tromey <tromey@redhat.com>
11406
11407 * windows-nat.c (windows_stop): Add 'self' argument.
11408 * target.h (struct target_ops) <to_stop>: Add argument.
11409 * target.c (target_stop): Add argument.
11410 (debug_to_stop): Add argument.
11411 (update_current_target): Update.
11412 * remote.c (remote_stop): Add 'self' argument.
11413 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11414 (gdbsim_cntrl_c): Update.
11415 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11416 * procfs.c (procfs_stop): Add 'self' argument.
11417 * nto-procfs.c (procfs_stop): Add 'self' argument.
11418 * monitor.c (monitor_stop): Add 'self' argument.
11419 (monitor_open): Update.
11420 * linux-nat.c (linux_nat_stop): Add argument.
11421 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11422 * gnu-nat.c (gnu_stop): Add 'self' argument.
11423 * darwin-nat.c (darwin_stop): Add 'self' argument.
11424
503a628d
TT
114252014-02-19 Tom Tromey <tromey@redhat.com>
11426
11427 * target.h (struct target_ops) <to_thread_name>: Add argument.
11428 * target.c (target_thread_name): Add argument.
11429 (update_current_target): Update.
11430 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11431
c15906d8
TT
114322014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target.h (struct target_ops) <to_extra_thread_info>: Add
11435 argument.
11436 (target_extra_thread_info): Add argument.
11437 * target.c (update_current_target): Update.
11438 * remote.c (remote_threads_extra_info): Add 'self' argument.
11439 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11440 argument.
11441 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11442 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11443 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11444 argument.
11445 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11446 argument.
11447 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11448 argument.
11449 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11450 argument.
11451
daf5e9b6
TT
114522014-02-19 Tom Tromey <tromey@redhat.com>
11453
11454 * target.h (struct target_ops) <to_program_signals>: Add argument.
11455 * target.c (target_program_signals): Add argument.
11456 * remote.c (remote_program_signals): Add 'self' argument.
11457
94bedb42
TT
114582014-02-19 Tom Tromey <tromey@redhat.com>
11459
11460 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11461 * target.c (target_pass_signals): Add argument.
11462 * remote.c (remote_pass_signals): Add 'self' argument.
11463 (remote_start_remote): Update.
11464 * procfs.c (procfs_pass_signals): Add 'self' argument.
11465 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11466 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11467 (linux_nat_create_inferior, linux_nat_attach): Update.
11468
da82bd6b
TT
114692014-02-19 Tom Tromey <tromey@redhat.com>
11470
11471 * windows-nat.c (windows_can_run): Add 'self' argument.
11472 * target.h (struct target_ops) <to_can_run>: Add argument.
11473 (target_can_run): Add argument.
11474 * target.c (debug_to_can_run): Add argument.
11475 (update_current_target): Update.
11476 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11477 * inf-child.c (inf_child_can_run): Add 'self' argument.
11478 * go32-nat.c (go32_can_run): Add 'self' argument.
11479
d796e1d6
TT
114802014-02-19 Tom Tromey <tromey@redhat.com>
11481
11482 * target.h (struct target_ops) <to_has_exited>: Add argument.
11483 (target_has_exited): Add argument.
11484 * target.c (debug_to_has_exited): Add argument.
11485 (update_current_target): Update.
11486
ff214e67
TT
114872014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11490 argument.
11491 (target_set_syscall_catchpoint): Add argument.
11492 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11493 argument.
11494 * target.c (update_current_target): Update.
11495
758e29d2
TT
114962014-02-19 Tom Tromey <tromey@redhat.com>
11497
11498 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11499 argument.
11500 (target_remove_exec_catchpoint): Add argument.
11501 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11502 (update_current_target): Update.
11503 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11504 argument.
11505
ba025e51
TT
115062014-02-19 Tom Tromey <tromey@redhat.com>
11507
11508 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11509 argument.
11510 (target_insert_exec_catchpoint): Add argument.
11511 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11512 (update_current_target): Update.
11513 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11514 argument.
11515
e98cf0cd
TT
115162014-02-19 Tom Tromey <tromey@redhat.com>
11517
11518 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11519 argument.
11520 (target_remove_vfork_catchpoint): Add argument.
11521 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11522 (update_current_target): Update.
11523 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11524 argument.
11525
3ecc7da0
TT
115262014-02-19 Tom Tromey <tromey@redhat.com>
11527
11528 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11529 argument.
11530 (target_insert_vfork_catchpoint): Add argument.
11531 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11532 (update_current_target): Update.
11533 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11534 argument.
11535
973fc227
TT
115362014-02-19 Tom Tromey <tromey@redhat.com>
11537
11538 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11539 argument.
11540 (target_remove_fork_catchpoint): Add argument.
11541 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11542 (update_current_target): Update.
11543 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11544 argument.
11545
a863b201
TT
115462014-02-19 Tom Tromey <tromey@redhat.com>
11547
11548 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11549 argument.
11550 (target_insert_fork_catchpoint): Add argument.
11551 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11552 (update_current_target): Update.
11553 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11554 argument.
11555
2e97a79e
TT
115562014-02-19 Tom Tromey <tromey@redhat.com>
11557
11558 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11559 argument.
11560 (target_post_startup_inferior): Add argument.
11561 * target.c (debug_to_post_startup_inferior): Add argument.
11562 (update_current_target): Update.
11563 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11564 argument.
11565 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11566 argument.
11567 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11568 argument.
11569 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11570 argument.
11571 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11572 'self' argument.
11573 (super_post_startup_inferior): Likewise.
11574 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11575 'self' argument.
11576 (super_post_startup_inferior): Likewise.
11577 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11578 Add 'self' argument.
11579 (super_post_startup_inferior): Likewise.
11580
71a9f134
TT
115812014-02-19 Tom Tromey <tromey@redhat.com>
11582
11583 * target.h (struct target_ops) <to_load>: Add argument.
11584 * target.c (target_load): Add argument.
11585 (debug_to_load): Add argument.
11586 (update_current_target): Update.
11587 * remote.c (remote_load): Add 'self' argument.
11588 * remote-sim.c (gdbsim_load): Add 'self' argument.
11589 * remote-mips.c (mips_load): Add 'self' argument.
11590 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11591 * monitor.c (monitor_load): Add 'self' argument.
11592 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11593
0a4f40a2
TT
115942014-02-19 Tom Tromey <tromey@redhat.com>
11595
11596 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11597 (target_terminal_info): Add argument.
11598 * target.c (debug_to_terminal_info): Add argument.
11599 (default_terminal_info): Likewise.
11600 * inflow.c (child_terminal_info): Add 'self' argument.
11601 * inferior.h (child_terminal_info): Add 'self' argument.
11602 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11603
ae3bd431
TT
116042014-02-19 Tom Tromey <tromey@redhat.com>
11605
11606 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11607 argument.
11608 (target_terminal_save_ours): Add argument.
11609 * target.c (debug_to_terminal_save_ours): Add argument.
11610 (update_current_target): Update.
11611 * inflow.c (terminal_save_ours): Add 'self' argument.
11612 * inferior.h (terminal_save_ours): Add 'self' argument.
11613
e3594fd1
TT
116142014-02-19 Tom Tromey <tromey@redhat.com>
11615
11616 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11617 (target_terminal_ours): Add argument.
11618 * target.c (debug_to_terminal_ours): Add argument.
11619 (update_current_target): Update.
11620 * remote.c (remote_terminal_ours): Add 'self' argument.
11621 (remote_close): Update.
11622 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11623 * inflow.c (terminal_ours): Add 'self' argument.
11624 * inferior.h (terminal_ours): Add 'self' argument.
11625 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11626
2e1e1a19
TT
116272014-02-19 Pedro Alves <palves@redhat.com>
11628 Tom Tromey <tromey@redhat.com>
11629
11630 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11631 argument.
11632 (target_terminal_ours_for_output): Add argument.
11633 * target.c (debug_to_terminal_ours_for_output): Add argument.
11634 (update_current_target): Update.
11635 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11636 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11637 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11638
d2f640d4
TT
116392014-02-19 Tom Tromey <tromey@redhat.com>
11640
11641 * target.h (struct target_ops) <to_terminal_inferior>: Add
11642 argument.
11643 * target.c (target_terminal_inferior): Add argument.
11644 (update_current_target): Update.
11645 * remote.c (remote_terminal_inferior): Add 'self' argument.
11646 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11647 * inflow.c (terminal_inferior): Add 'self' argument.
11648 * inferior.h (terminal_inferior): Add 'self' argument.
11649 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11650 (go32_terminal_inferior): Add 'self' argument.
11651
c42bf286
TT
116522014-02-19 Tom Tromey <tromey@redhat.com>
11653
11654 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11655 (target_terminal_init): Add argument.
11656 * target.c (debug_to_terminal_init): Add argument.
11657 (update_current_target): Update.
11658 * inflow.c (terminal_init_inferior): Add 'self' argument.
11659 * inferior.h (terminal_init_inferior): Add 'self' argument.
11660 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11661 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11662
c3a5ff89
TT
116632014-02-19 Tom Tromey <tromey@redhat.com>
11664
11665 * target.h (struct target_ops)
11666 <to_can_accel_watchpoint_condition>: Add argument.
11667 (target_can_accel_watchpoint_condition): Add argument.
11668 * target.c (debug_to_can_accel_watchpoint_condition): Add
11669 argument.
11670 (update_current_target): Update.
11671 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11672 'self' argument.
11673
31568a15
TT
116742014-02-19 Tom Tromey <tromey@redhat.com>
11675
11676 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11677 Add argument.
11678 (target_region_ok_for_hw_watchpoint): Add argument.
11679 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11680 (default_region_ok_for_hw_watchpoint): Add argument.
11681 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11682 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11683 argument.
11684 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11685 argument.
11686 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11687 argument.
11688 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11689 'self' argument.
11690 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11691 'self' argument.
11692 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11693 'self' argument.
11694 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11695 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11696 'self' argument.
11697 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11698 Add 'self' argument.
11699
7bb99c53
TT
117002014-02-19 Tom Tromey <tromey@redhat.com>
11701
11702 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11703 argument.
11704 (target_insert_watchpoint): Add argument.
11705 * target.c (debug_to_insert_watchpoint): Add argument.
11706 (update_current_target): Update.
11707 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11708 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11709 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11710 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11711 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11712 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11713 argument.
11714 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11715 (procfs_insert_hw_watchpoint): Add 'self' argument.
11716 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11717 argument.
11718 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11719 argument.
11720 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11721 argument.
11722 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11723 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11724 argument.
11725 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11726 'self' argument.
11727
11b5219a
TT
117282014-02-19 Tom Tromey <tromey@redhat.com>
11729
11730 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11731 argument.
11732 (target_remove_watchpoint): Add argument.
11733 * target.c (debug_to_remove_watchpoint): Add argument.
11734 (update_current_target): Update.
11735 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11736 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11737 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11738 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11739 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11740 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11741 argument.
11742 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11743 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11744 argument.
11745 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11746 argument.
11747 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11748 argument.
11749 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11750 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11751 argument.
11752 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11753 'self' argument.
11754
a64dc96c
TT
117552014-02-19 Tom Tromey <tromey@redhat.com>
11756
11757 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11758 argument.
11759 (target_remove_hw_breakpoint): Add argument.
11760 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11761 (update_current_target): Update.
11762 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11763 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11764 argument.
11765 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11766 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11767 argument.
11768 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11769 'self' argument.
11770
23a26771
TT
117712014-02-19 Tom Tromey <tromey@redhat.com>
11772
11773 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11774 argument.
11775 (target_insert_hw_breakpoint): Add argument.
11776 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11777 (update_current_target): Update.
11778 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11779 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11780 argument.
11781 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11782 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11783 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11784 argument.
11785 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11786 'self' argument.
11787
5461485a
TT
117882014-02-19 Tom Tromey <tromey@redhat.com>
11789
11790 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11791 argument.
11792 (target_can_use_hardware_watchpoint): Add argument.
11793 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11794 (update_current_target): Update.
11795 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11796 argument.
11797 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11798 argument.
11799 * remote.c (remote_check_watch_resources): Add 'self' argument.
11800 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11801 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11802 argument.
11803 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11804 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11805 argument.
11806 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11807 argument.
11808 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11809 argument.
11810 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11811 argument.
11812 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11813 argument.
11814 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11815 argument.
11816 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11817 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11818 argument.
11819 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11820 'self' argument.
11821
f045800c
TT
118222014-02-19 Tom Tromey <tromey@redhat.com>
11823
11824 * target.h (struct target_ops) <to_post_attach>: Add argument.
11825 (target_post_attach): Add argument.
11826 * target.c (debug_to_post_attach): Add argument.
11827 (update_current_target): Update.
11828 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11829 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11830 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11831 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11832 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11833
de90e03d
TT
118342014-02-19 Tom Tromey <tromey@redhat.com>
11835
11836 * windows-nat.c (windows_close): Add 'self' argument.
11837 * tracepoint.c (tfile_close): Add 'self' argument.
11838 * target.h (struct target_ops) <to_close>: Add argument.
11839 * target.c (target_close): Add argument.
11840 (update_current_target): Update.
11841 * remote.c (remote_close): Add 'self' argument.
11842 * remote-sim.c (gdbsim_close): Add 'self' argument.
11843 * remote-mips.c (mips_close): Add 'self' argument.
11844 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11845 * record-full.c (record_full_close): Add 'self' argument.
11846 * record-btrace.c (record_btrace_close): Add 'self' argument.
11847 * monitor.h (monitor_close): Add 'self' argument.
11848 * monitor.c (monitor_close): Add 'self' argument.
11849 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11850 * linux-nat.c (linux_nat_close): Add argument.
11851 * go32-nat.c (go32_close): Add 'self' argument.
11852 * exec.c (exec_close_1): Add 'self' argument.
11853 * ctf.c (ctf_close): Add 'self' argument.
11854 * corelow.c (core_close): Add 'self' argument.
11855 (core_close_cleanup): Update.
11856 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11857 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11858
9dd130a0
TT
118592014-02-19 Tom Tromey <tromey@redhat.com>
11860
11861 * remote.c (remote_load): New function.
11862 (init_remote_ops): Use it.
11863
46917d26
TT
118642014-02-19 Tom Tromey <tromey@redhat.com>
11865
11866 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11867 argument.
11868 * common/linux-btrace.h (linux_supports_btrace): Update.
11869 * remote.c (remote_supports_btrace): Add "self" argument.
11870 * target-delegates.c: Rebuild.
11871 * target.c (target_supports_btrace): Remove.
11872 * target.h (struct target_ops) <to_supports_btrace>: Add
11873 target_ops argument.
11874 (target_supports_btrace): New define.
11875
6b84065d
TT
118762014-02-19 Tom Tromey <tromey@redhat.com>
11877
11878 * record-full.c (record_full_beneath_to_resume_ops)
11879 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11880 (record_full_beneath_to_wait)
11881 (record_full_beneath_to_store_registers_ops)
11882 (record_full_beneath_to_store_registers)
11883 (record_full_beneath_to_xfer_partial_ops)
11884 (record_full_beneath_to_xfer_partial)
11885 (record_full_beneath_to_insert_breakpoint_ops)
11886 (record_full_beneath_to_insert_breakpoint)
11887 (record_full_beneath_to_remove_breakpoint_ops)
11888 (record_full_beneath_to_remove_breakpoint)
11889 (record_full_beneath_to_stopped_by_watchpoint)
11890 (record_full_beneath_to_stopped_data_address)
11891 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11892 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11893 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11894 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11895 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11896 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11897 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11898 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11899 (record_full_resume, record_full_wait_1)
11900 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11901 (record_full_store_registers, record_full_xfer_partial)
11902 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11903 (record_full_async, record_full_core_xfer_partial): Use target
11904 delegation.
11905 * target-delegates.c: Rebuild.
11906 * target.c (current_xfer_partial): Remove.
11907 (update_current_target): Do not INHERIT or de_fault
11908 to_insert_breakpoint, to_remove_breakpoint,
11909 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11910 to_is_async_p, to_async. Do not set to_xfer_partial field.
11911 (default_xfer_partial): Simplify.
11912 (current_xfer_partial): Remove.
11913 (target_wait, target_resume): Simplify.
11914 (find_default_can_async_p, find_default_is_async_p): Update.
11915 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11916 to_xfer_partial, to_stopped_by_watchpoint,
11917 to_stopped_data_address.
11918 (target_store_registers): Simplify.
11919 (forward_target_remove_breakpoint)
11920 (forward_target_insert_breakpoint): Remove.
11921 (target_remove_breakpoint, target_insert_breakpoint)
11922 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11923 * target.h (struct target_ops) <to_resume, to_wait,
11924 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11925 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11926 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11927 markup.
11928 (forward_target_remove_breakpoint)
11929 (forward_target_insert_breakpoint): Remove.
11930 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11931 directly.
11932 (record_btrace_insert_breakpoint): Delegate directly.
11933
1101cb7b
TT
119342014-02-19 Tom Tromey <tromey@redhat.com>
11935
11936 PR build/7701:
11937 * target-delegates.c: New file.
11938 * target.c: Include target-delegates.c.
11939 (init_dummy_target): Call install_dummy_methods.
11940 (complete_target_initialization): Call install_delegators.
11941 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11942 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11943 * make-target-delegates: New file.
11944
8b06beed
TT
119452014-02-19 Tom Tromey <tromey@redhat.com>
11946
11947 * record.c (find_record_target): Use find_target_at.
11948 * target.c (find_target_at): New function.
11949 * target.h (find_target_at): Declare.
11950
6a109b6b
TT
119512014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11954 Add 'ops' argument.
11955 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11956 'ops' argument.
11957 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11958 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11959 'ops' argument.
11960 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11961 argument.
11962 * linux-nat.c (save_sigtrap): Update.
11963 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11964 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11965 (linux_nat_close): Update.
11966 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11967 argument.
11968 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11969 argument.
11970 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11971 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11972 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11973 (tmp_to_async): Add 'ops' argument.
11974 (record_full_stopped_by_watchpoint, record_full_async)
11975 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11976 argument.
11977 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11978 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11979 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11980 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11981 (remote_is_async_p, remote_async): Add 'ops' argument.
11982 (remote_stopped_data_address): Update.
11983 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11984 * target.c (update_current_target)
11985 (find_default_can_async_p, find_default_is_async_p): Update.
11986 (init_dummy_target): Update.
11987 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11988 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11989 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11990 (target_can_async_p, target_is_async_p, target_async)
11991 (target_stopped_by_watchpoint): Update.
11992
e095146b
YQ
119932014-02-19 Yao Qi <yao@codesourcery.com>
11994
11995 PR gdb/16220
11996 * gdbarch.sh: Remove startup_gdbarch.
11997 * gdbarch.c: Regenerated.
11998 * gdbarch.h: Likewise.
11999
bc3c6b36
KB
120002014-02-17 Kevin Buettner <kevinb@redhat.com>
12001
12002 * rl78-tdep.c (rl78_g10_register_name): New function.
12003 (rl78_return_value): Add g10 support.
12004 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12005 g10.
12006
98dc0167 120072014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12008
12009 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12010 (SUBDIR_GUILE_SRCS): Ditto.
12011 (scm-gsmob.o): Ditto.
12012
842c05cd
YQ
120132014-02-17 Yao Qi <yao@codesourcery.com>
12014
12015 * gnu-nat.c (ILL_RPC): Declare defined function.
12016
25c0bd04
YQ
120172014-02-17 Yao Qi <yao@codesourcery.com>
12018
12019 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12020 mach_msg_type_number_t.
12021 (gnu_write_inferior): Likewise.
12022
a9a758e3
YQ
120232014-02-17 Yao Qi <yao@codesourcery.com>
12024
12025 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12026 in format string.
12027 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12028 (inf_validate_procs, inf_signal): Likewise.
12029 (S_exception_raise_request): Likewise.
12030 (do_mach_notify_dead_name): Likewise.
12031 (steal_exc_port): Likewise.
12032 (gnu_read_inferior): Change 'copy_count''s type to
12033 mach_msg_type_number_t.
12034 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12035 format string.
12036
bae8023e
TS
120372014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12038
c82f56d9
TS
12039 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12040 flag. Adjust all users; in particular...
12041 (gnu_wait): ..., don't decrement its value in here...
12042 (gnu_create_inferior): ..., and instead set the flag in here,
12043 around the startup_inferior call, and call that one with
12044 START_INFERIOR_TRAPS_EXPECTED.
12045
3398af6a
TS
12046 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12047 (ILL_RPC): ... new macro.
12048 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12049 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12050 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12051 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12052 functions with ILL_RPC macro.
12053 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12054 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12055 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12056 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12057 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12058 (S_proc_getlogin_reply, S_proc_getsid_reply)
12059 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12060 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12061 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12062 (S_proc_getnports_reply, S_proc_is_important_reply)
12063 (S_proc_get_code_reply): New stub functions, generated with
12064 ILL_RPC macro.
12065
d47642c9
TS
12066 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12067 collected the type check structures.
12068
bae8023e
TS
12069 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12070
8a55ffb0
DE
120712014-02-14 Doug Evans <dje@google.com>
12072
12073 * target.c (target_write_partial): Fix result type.
12074
c2853f3d
JM
120752014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12076
12077 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12078 the proper offsets to access fpregset_t.
12079
ac61d2db
SA
120802014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12081
12082 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12083 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12084 * h8300-tdep.c (setmachinelist): Remove global.
12085 * hppa-tdep.c (hppa_sigtramp): Remove global.
12086 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12087 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12088 * ravenscar-thread.c (update_target_observer): Remove global.
12089 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12090
9d2d0b8b
TT
120912014-02-12 Tom Tromey <tromey@redhat.com>
12092
12093 * common/rsp-low.c: Update comments.
12094 * common/rsp-low.h: Update comments.
12095
a7191e8b
TT
120962014-02-12 Tom Tromey <tromey@redhat.com>
12097
12098 * common/rsp-low.c (convert_ascii_to_int): Remove.
12099 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12100
ff0e980e
TT
121012014-02-12 Tom Tromey <tromey@redhat.com>
12102
12103 * common/rsp-low.h (unhexify): Don't declare.
12104 * common/rsp-low.c (unhexify): Remove.
12105
e9371aff
TT
121062014-02-12 Tom Tromey <tromey@redhat.com>
12107
12108 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12109 * common/rsp-low.c (convert_int_to_ascii): Remove.
12110
971dc0b8
TT
121112014-02-12 Tom Tromey <tromey@redhat.com>
12112
12113 * common/rsp-low.h (hexify): Don't declare.
12114 * common/rsp-low.c (hexify): Remove.
12115
0a822afb
TT
121162014-02-12 Tom Tromey <tromey@redhat.com>
12117
12118 * common/rsp-low.c (hexify): Never take strlen of argument.
12119
9f1b45b0
TT
121202014-02-12 Tom Tromey <tromey@redhat.com>
12121
12122 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12123 * remote.c (extended_remote_run, remote_rcmd)
12124 (remote_download_trace_state_variable, remote_save_trace_data)
12125 (remote_set_trace_notes): Update.
12126 * tracepoint.c (encode_source_string, tfile_write_status)
12127 (tfile_write_uploaded_tsv): Update.
12128
9c3d6531
TT
121292014-02-12 Tom Tromey <tromey@redhat.com>
12130
12131 * tracepoint.c: Include rsp-low.h.
12132 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12133 * remote.c: Include rsp-low.h.
12134 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12135 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12136 (remote_unescape_input): Move to common/rsp-low.c.
12137 * common/rsp-low.h: New file.
12138 * common/rsp-low.c: New file.
12139 * Makefile.in (SFILES): Add common/rsp-low.c.
12140 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12141 (COMMON_OBS): Add rsp-low.o.
12142 (rsp-low.o): New target.
12143
01fd3ea5
TT
121442014-02-12 Tom Tromey <tromey@redhat.com>
12145
12146 * utils.h: Include print-utils.h.
12147 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12148 (int_string, core_addr_to_string, core_addr_to_string_nz)
12149 (hex_string, hex_string_custom): Don't declare.
12150 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12151 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12152 (hex_string_custom, int_string, core_addr_to_string)
12153 (core_addr_to_string_nz, host_address_to_string): Move to
12154 common/print-utils.c.
12155 * common/print-utils.h: New file.
12156 * common/print-utils.c: New file
12157 * Makefile.in (SFILES): Add common/print-utils.c.
12158 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12159 (COMMON_OBS): Add print-utils.o.
12160 (print-utils.o): New target.
12161
9fb50108
TT
121622014-02-12 Tom Tromey <tromey@redhat.com>
12163
12164 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12165
0548b5db
MK
121662014-02-12 Mark Kettenis <kettenis@gnu.org>
12167
12168 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12169
493443a4
MK
121702014-02-12 Mark Kettenis <kettenis@gnu.org>
12171
12172 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12173 if a PT_IO ptrace request returns sucessfully but indicates that 0
12174 bytes were transferred.
12175
706d0883
PA
121762014-02-12 Pedro Alves <palves@redhat.com>
12177 Kevin Buettner <kevinb@redhat.com>
12178
12179 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12180 TYPE_INSTANCE_FLAG_CODE_SPACE.
12181
5caa2f0b
PA
121822014-02-12 Pedro Alves <palves@redhat.com>
12183
12184 * h8300-tdep.c (pseudo_from_raw_register)
12185 (raw_from_pseudo_register): New functions.
12186 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12187 them.
12188
76fd5f74
PA
121892014-02-12 Pedro Alves <palves@redhat.com>
12190
12191 * h8300-tdep.c (h8300_register_sim_regno): New function.
12192 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12193 gdbarch_register_sim_regno hook.
12194
8f008406
SA
121952014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12196
12197 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12198
195abc10
SA
121992014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12200
12201 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12202
93ffa5b9
MK
122032014-02-12 Mark Kettenis <kettenis@gnu.org>
12204
12205 * obsd-tdep.h (obsd_init_abi): New prototype.
12206 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12207 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12208 (obsd_init_abi): New functions.
12209 * i386obsd-tdep.c: Include "obsd-tdep.h".
12210 (i386obsd_init_abi): Call obsd_init_abi.
12211 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12212 (amd64obsd_init_abi): Call obsd_init_abi.
12213 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12214 obsd-tdep.c to gdb_target_obs.
12215
49caec94
JM
122162014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12217
12218 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12219 double float arguments to 16-byte in the argument slots.
12220
e1402065
DE
122212014-02-11 Doug Evans <xdje42@gmail.com>
12222
12223 * configure.ac: Don't crash if pkg-config is not found and guile
12224 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12225 in guile checks.
12226 * configure: Regenerate.
12227
edcc890f
YQ
122282014-02-11 Yao Qi <yao@codesourcery.com>
12229
12230 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12231 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12232 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12233 * gnu-nat.c (gnu_xfer_memory): Likewise.
12234 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12235 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12236 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12237 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12238
9b409511
YQ
122392014-02-11 Yao Qi <yao@codesourcery.com>
12240
12241 * target.h (enum target_xfer_error): Rename to ...
12242 (enum target_xfer_status): ... it. New. All users updated.
12243 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12244 New.
12245 (TARGET_XFER_STATUS_ERROR_P): New macro.
12246 (target_xfer_error_to_string): Remove declaration.
12247 (target_xfer_status_to_string): Declare.
12248 (target_xfer_partial_ftype): Adjust it.
12249 (struct target_ops) <to_xfer_partial>: Return
12250 target_xfer_status. Add argument xfered_len. Update
12251 comments.
12252 * target.c (target_xfer_error_to_string): Rename to ...
12253 (target_xfer_status_to_string): ... it. New. All callers
12254 updated.
12255 (target_read_live_memory): Likewise. Call target_xfer_partial
12256 instead of target_read.
12257 (memory_xfer_live_readonly_partial): Return
12258 target_xfer_status. Add argument xfered_len.
12259 (raw_memory_xfer_partial): Likewise.
12260 (memory_xfer_partial_1): Likewise.
12261 (memory_xfer_partial): Likewise.
12262 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12263 properly. Update debug message.
12264 (default_xfer_partial, current_xfer_partial): Likewise.
12265 (target_write_partial): Likewise.
12266 (target_read_partial): Likewise. All callers updated.
12267 (read_whatever_is_readable): Likewise.
12268 (target_write_with_progress): Likewise.
12269 (target_read_alloc_1): Likewise.
12270
12271 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12272 * auxv.c (procfs_xfer_auxv): Likewise.
12273 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12274 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12275 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12276 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12277 * corefile.c (read_memory): Adjust.
12278 * corelow.c (core_xfer_partial): Likewise.
12279 * ctf.c (ctf_xfer_partial): Likewise.
12280 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12281 updated.
12282 (darwin_xfer_partial): Likewise.
12283 * exec.c (section_table_xfer_memory_partial): Likewise. All
12284 callers updated.
12285 (exec_xfer_partial): Likewise.
12286 * exec.h (section_table_xfer_memory_partial): Update
12287 declaration.
12288 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12289 negative.
12290 (gnu_xfer_partial): Likewise.
12291 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12292 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12293 (ia64_hpux_xfer_solib_got): Likewise.
12294 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12295 type of 'partial_len' to ULONGEST.
12296 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12297 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12298 (linux_nat_xfer_partial): Likewise.
12299 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12300 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12301 * monitor.c (monitor_xfer_memory): Likewise.
12302 (monitor_xfer_partial): Likewise.
12303 * procfs.c (procfs_xfer_partial): Likewise.
12304 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12305 * record-full.c (record_full_xfer_partial): Likewise.
12306 (record_full_core_xfer_partial): Likewise.
12307 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12308 (gdbsim_xfer_partial): Likewise.
12309 * remote.c (remote_write_bytes_aux): Likewise. All callers
12310 updated.
12311 (remote_write_bytes, remote_read_bytes): Likewise. All
12312 callers updated.
12313 (remote_flash_erase): Likewise. All callers updated.
12314 (remote_write_qxfer): Likewise. All callers updated.
12315 (remote_read_qxfer): Likewise. All callers updated.
12316 (remote_xfer_partial): Likewise.
12317 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12318 (rs6000_xfer_shared_libraries): Likewise.
12319 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12320 (sol_thread_xfer_partial): Likewise.
12321 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12322 (sparc_xfer_partial): Likewise.
12323 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12324 updated.
12325 (spu_xfer_partial): Likewise.
12326 * spu-multiarch.c (spu_xfer_partial): Likewise.
12327 * tracepoint.c (tfile_xfer_partial): Likewise.
12328 * windows-nat.c (windows_xfer_memory): Likewise.
12329 (windows_xfer_shared_libraries): Likewise.
12330 (windows_xfer_partial): Likewise.
12331 * valprint.c: Replace 'target_xfer_error' with
12332 'target_xfer_status' in comments.
12333
a8e63083
JB
123342014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12335
12336 Checked in by Joel Brobecker <brobecker@adacore.com>.
12337 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12338
e86b67d3
JB
123392014-02-11 Joel Brobecker <brobecker@adacore.com>
12340
12341 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12342 function parameters.
12343
4b7d1f7f
WN
123442014-02-10 Will Newton <will.newton@linaro.org>
12345
12346 * elfread.c (elf_rel_plt_read): Look for a .got section if
12347 looking up .got.plt fails.
12348 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12349 on address passed to elf_gnu_ifunc_record_cache.
12350 (elf_gnu_ifunc_resolve_addr): Likewise.
12351 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12352
961842b2
JM
123532014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12354
12355 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12356 (X_RETTURN): New macro.
12357 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12358
12359 * sparc64-tdep.c (sparc64_init_abi): Hook
12360 sparc_in_function_epilogue_p.
12361
3f03e7b1
GB
123622014-02-10 Gary Benson <gbenson@redhat.com>
12363
12364 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12365 Rename name_matcher to symbol_matcher.
12366
96f861ef
GB
123672014-02-10 Gary Benson <gbenson@redhat.com>
12368
12369 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12370 Use expand_symtabs_file_matcher_ftype and
12371 expand_symtabs_symbol_matcher_ftype.
12372
ee01b665
JB
123732014-02-10 Joel Brobecker <brobecker@adacore.com>
12374
12375 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12376 (struct ada_symbol_cache): New.
12377 (ada_free_symbol_cache): Forward declare.
12378 (struct ada_pspace_data): New.
12379 (ada_pspace_data_handle): New static global.
12380 (get_ada_pspace_data, ada_pspace_data_cleanup)
12381 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12382 (cache_space, cache): Delete, now folded inside struct
12383 ada_pspace_data.
12384 (ada_get_symbol_cache): New function.
12385 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12386 implementation.
12387 (_initialize_ada_language): Remove initialization of cache_space.
12388 Move call to observer_attach_inferior_exit up, grouping it
12389 with the other observer registrations inside this function.
12390 Rename command to be more general. Add call to
12391 register_program_space_data_with_cleanup.
12392
143adbbf
JB
123932014-02-10 Joel Brobecker <brobecker@adacore.com>
12394
12395 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12396 ada_new_objfile_observer.
12397 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12398 (_initialize_tasks): Update uses of ada_new_objfile_observer
12399 and ada_tasks_normal_stop_observer.
12400
aa4fb036
JB
124012014-02-10 Joel Brobecker <brobecker@adacore.com>
12402
12403 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12404 returned by the 'Length attribute to integer.
12405
9dee8cc6
JB
124062014-02-10 Joel Brobecker <brobecker@adacore.com>
12407
12408 * ada-lang.c (_initialize_ada_language): Initialize
12409 cache_space obstack.
12410
3d9434b5
JB
124112014-02-10 Joel Brobecker <brobecker@adacore.com>
12412
12413 * ada-lang.c (HASH_SIZE): New macro.
12414 (struct cache_entry): New type.
12415 (cache_space, cache): New static globals.
12416 (ada_clear_symbol_cache, find_entry): New functions.
12417 (lookup_cached_symbol, cache_symbol): Implement.
12418 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12419 (_initialize_ada_language): Attach ada_new_objfile_observer
12420 and ada_free_objfile_observer.
12421
f0c5f9b2
JB
124222014-02-10 Joel Brobecker <brobecker@adacore.com>
12423
12424 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12425 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12426 struct block * parameter.
12427 (ada_lookup_symbol_list_worker): Constify local variable "block".
12428 Remove cast which is no longer necessary.
12429
ed3ef339
DE
124302014-02-10 Doug Evans <xdje42@gmail.com>
12431
12432 Add Guile as an extension language.
12433 * NEWS: Mention Guile scripting.
12434 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12435 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12436 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12437 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12438 (CLIBS): Add GUILE_LIBS.
12439 (install-guile): New rule.
12440 (guile.o): New rule.
12441 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12442 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12443 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12444 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12445 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12446 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12447 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12448 * configure.ac: New option --with-guile.
12449 * configure: Regenerate.
12450 * config.in: Regenerate.
12451 * auto-load.c: Remove #include "python/python.h". Add #include
12452 "gdb/section-scripts.h".
12453 (source_section_scripts): Handle Guile scripts.
12454 (_initialize_auto_load): Add name of Guile objfile script to
12455 scripts-directory help text.
12456 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12457 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12458 (struct breakpoint): New member scm_bp_object.
12459 * defs.h (enum command_control_type): New value guile_control.
12460 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12461 "extension.h".
12462 (show_user): Update comment.
12463 (_initialize_cli_cmds): Update help text for "show user". Update help
12464 text for max-user-call-depth.
12465 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12466 "extension.h".
12467 (multi_line_command_p): Add guile_control.
12468 (print_command_lines): Handle guile_control.
12469 (execute_control_command, recurse_read_control_structure): Ditto.
12470 (process_next_line): Recognize "guile" commands.
12471 * disasm.c (gdb_disassemble_info): Make non-static.
12472 * disasm.h: #include "dis-asm.h".
12473 (struct gdbarch): Add forward decl.
12474 (gdb_disassemble_info): Declare.
12475 * extension.c: #include "guile/guile.h".
12476 (extension_languages): Add guile.
12477 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12478 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12479 * gdbtypes.c (get_unsigned_type_max): New function.
12480 (get_signed_type_minmax): New function.
12481 * gdbtypes.h (get_unsigned_type_max): Declare.
12482 (get_signed_type_minmax): Declare.
12483 * guile/README: New file.
12484 * guile/guile-internal.h: New file.
12485 * guile/guile.c: New file.
12486 * guile/guile.h: New file.
12487 * guile/scm-arch.c: New file.
12488 * guile/scm-auto-load.c: New file.
12489 * guile/scm-block.c: New file.
12490 * guile/scm-breakpoint.c: New file.
12491 * guile/scm-disasm.c: New file.
12492 * guile/scm-exception.c: New file.
12493 * guile/scm-frame.c: New file.
12494 * guile/scm-gsmob.c: New file.
12495 * guile/scm-iterator.c: New file.
12496 * guile/scm-lazy-string.c: New file.
12497 * guile/scm-math.c: New file.
12498 * guile/scm-objfile.c: New file.
12499 * guile/scm-ports.c: New file.
12500 * guile/scm-pretty-print.c: New file.
12501 * guile/scm-safe-call.c: New file.
12502 * guile/scm-string.c: New file.
12503 * guile/scm-symbol.c: New file.
12504 * guile/scm-symtab.c: New file.
12505 * guile/scm-type.c: New file.
12506 * guile/scm-utils.c: New file.
12507 * guile/scm-value.c: New file.
12508 * guile/lib/gdb.scm: New file.
12509 * guile/lib/gdb/boot.scm: New file.
12510 * guile/lib/gdb/experimental.scm: New file.
12511 * guile/lib/gdb/init.scm: New file.
12512 * guile/lib/gdb/iterator.scm: New file.
12513 * guile/lib/gdb/printing.scm: New file.
12514 * guile/lib/gdb/types.scm: New file.
12515 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12516 (VPATH): Add $(GUILE_SRCDIR).
12517 (GUILE_DIR): New variable.
12518 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12519 (all): Add stamp-guile dependency.
12520 (stamp-guile): New rule.
12521 (clean-guile, install-guile, uninstall-guile): New rules.
12522 (install-only): Add install-guile dependency.
12523 (uninstall): Add uninstall-guile dependency.
12524 (clean): Add clean-guile dependency.
12525
ac020ec5
DE
125262014-02-09 Doug Evans <xdje42@gmail.com>
12527
12528 Revert this patch (which I approved, mea culpa).
12529
12530 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12531
12532 * Makefile.in (all-lib): Remove.
12533 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12534
2a081c59
JK
125352014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12536
12537 Fix Python stack corruption.
12538 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12539 gdb_py_longest.
12540
0a6bd22d
MK
125412014-02-08 Mark Kettenis <kettenis@gnu.org>
12542
12543 * Makefile.in (all-lib): Remove.
12544 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12545
1a860409
DE
125462014-02-07 Doug Evans <dje@google.com>
12547
12548 * extension-priv.h (extension_language_script_ops): Add comment.
12549 (extension_language_ops): Add comment.
caf5a491 12550 (active_ext_lang_state): Fix typo in comment.
1a860409 12551
d137e6dc
PA
125522014-02-07 Pedro Alves <palves@redhat.com>
12553
0dcb32c3 12554 PR breakpoints/16292
d137e6dc
PA
12555 * infrun.c (handle_signal_stop) <signal arrives while stepping
12556 over a breakpoint>: Switch back to the stepping thread.
12557
ce6d0892
YQ
125582014-02-07 Yao Qi <yao@codesourcery.com>
12559
12560 * target.c (target_xfer_partial): Return zero if LEN is zero.
12561
2ed4b548
YQ
125622014-02-07 Yao Qi <yao@codesourcery.com>
12563
12564 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12565 (ld_so_xfer_auxv): Likewise.
12566 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12567 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12568 * corelow.c (core_xfer_partial): Likewise.
12569 * ctf.c (ctf_xfer_partial): Likewise.
12570 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12571 (darwin_xfer_partial): Likewise.
12572 * exec.c (exec_xfer_partial): Likewise.
12573 * gnu-nat.c (gnu_xfer_partial): Likewise.
12574 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12575 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12576 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12577 * linux-nat.c (linux_xfer_siginfo): Likewise.
12578 (linux_proc_xfer_spu): Likewise.
12579 * procfs.c (procfs_xfer_partial): Likewise.
12580 * record-full.c (record_full_xfer_partial): Likewise.
12581 (record_full_core_xfer_partial): Likewise.
12582 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12583 * remote.c (remote_write_qxfer): Likewise.
12584 (remote_write_qxfer, remote_read_qxfer): Likewise.
12585 (remote_xfer_partial): Likewise.
12586 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12587 (rs6000_xfer_shared_libraries): Likewise.
12588 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12589 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12590 (spu_xfer_partial): Likewise.
12591 * target.c (memory_xfer_partial_1): Likewise.
12592 * tracepoint.c (tfile_xfer_partial): Likewise.
12593 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12594 (windows_xfer_partial): Likewise.
12595
c09f20e4
YQ
125962014-02-07 Yao Qi <yao@codesourcery.com>
12597
12598 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12599 comments.
12600 (core_xfer_shared_libraries_aix): Likewise.
12601 * gdbarch.c, gdbarch.h: Regenerated.
12602 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12603 ULONGEST. Change 'len_avail' type to ULONGEST.
12604 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12605 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12606 declaration.
12607 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12608
8635b3bf
YQ
126092014-02-07 Yao Qi <yao@codesourcery.com>
12610
12611 * corefile.c (memory_error): Get 'exception' from ERR and pass
12612 'exception' to throw_error.
12613
6dddc817
DE
126142014-02-06 Doug Evans <xdje42@gmail.com>
12615
12616 * configure.ac (libpython checking): Remove all but python.o from
12617 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12618 * configure: Regenerate.
12619
12620 * Makefile.in (SFILES): Add extension.c.
12621 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12622 (COMMON_OBS): Add extension.o.
12623 * extension.h: New file.
12624 * extension-priv.h: New file.
12625 * extension.c: New file.
12626
12627 * python/python-internal.h: #include "extension.h".
12628 (gdbpy_auto_load_enabled): Declare.
12629 (gdbpy_apply_val_pretty_printer): Declare.
12630 (gdbpy_apply_frame_filter): Declare.
12631 (gdbpy_preserve_values): Declare.
12632 (gdbpy_breakpoint_cond_says_stop): Declare.
12633 (gdbpy_breakpoint_has_cond): Declare.
12634 (void source_python_script_for_objfile): Delete.
12635 * python/python.c: #include "extension-priv.h".
12636 Delete inclusion of "observer.h".
12637 (extension_language_python): Moved here and renamed from
12638 script_language_python in py-auto-load.c.
12639 Redefined to be of type extension_language_defn.
12640 (python_extension_script_ops): New global.
12641 (python_extension_ops): New global.
12642 (struct python_env): New member previous_active.
12643 (restore_python_env): Call restore_active_ext_lang.
12644 (ensure_python_env): Call set_active_ext_lang.
12645 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12646 New arg extlang.
12647 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12648 New arg extlang.
12649 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12650 New arg extlang.
12651 (gdbpy_eval_from_control_command): Renamed from
12652 eval_python_from_control_command, made static. New arg extlang.
12653 (gdbpy_source_script) Renamed from source_python_script, made static.
12654 New arg extlang.
12655 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12656 result to int. New arg extlang.
12657 (gdbpy_source_objfile_script): Renamed from
12658 source_python_script_for_objfile, made static. New arg extlang.
12659 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12660 static. New args extlang, extlang_printers. Change result type to
12661 "void".
12662 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12663 static. New arg extlang. Rename arg printers to extlang_printers
12664 and change type to ext_lang_type_printers *.
12665 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12666 static. Replace argument arg with extlang, extlang_printers.
12667 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12668 (!HAVE_PYTHON, source_python_script): Delete.
12669 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12670 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12671 (!HAVE_PYTHON, start_type_printers): Delete.
12672 (!HAVE_PYTHON, apply_type_printers): Delete.
12673 (!HAVE_PYTHON, free_type_printers): Delete.
12674 (_initialize_python): Delete call to observer_attach_before_prompt.
12675 (finalize_python): Set/restore active extension language.
12676 (gdbpy_finish_initialization) Renamed from
12677 finish_python_initialization, made static. New arg extlang.
12678 (gdbpy_initialized): New function.
12679 * python/python.h: #include "extension.h". Delete #include
12680 "value.h", "mi/mi-cmds.h".
12681 (extension_language_python): Declare.
12682 (GDBPY_AUTO_FILE_NAME): Delete.
12683 (enum py_bt_status): Moved to extension.h and renamed to
12684 ext_lang_bt_status.
12685 (enum frame_filter_flags): Moved to extension.h.
12686 (enum py_frame_args): Moved to extension.h and renamed to
12687 ext_lang_frame_args.
12688 (finish_python_initialization): Delete.
12689 (eval_python_from_control_command): Delete.
12690 (source_python_script): Delete.
12691 (apply_val_pretty_printer): Delete.
12692 (apply_frame_filter): Delete.
12693 (preserve_python_values): Delete.
12694 (gdbpy_script_language_defn): Delete.
12695 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12696 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12697
12698 * auto-load.c: #include "extension.h".
12699 (GDB_AUTO_FILE_NAME): Delete.
12700 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12701 (script_language_gdb): Delete, moved to extension.c and renamed to
12702 extension_language_gdb.
12703 (source_gdb_script_for_objfile): Delete.
12704 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12705 (loaded_script): Change type of language member to
12706 struct extension_language_defn *.
12707 (init_loaded_scripts_info): Initialize
12708 unsupported_script_warning_printed.
12709 (maybe_add_script): Make static. Change type of language arg to
12710 struct extension_language_defn *.
12711 (clear_section_scripts): Reset unsupported_script_warning_printed.
12712 (auto_load_objfile_script_1): Rewrite to use extension language API.
12713 (auto_load_objfile_script): Make public. Remove support-compiled-in
12714 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12715 (source_section_scripts): Rewrite to use extension language API.
12716 (load_auto_scripts_for_objfile): Rewrite to use
12717 auto_load_scripts_for_objfile.
12718 (collect_matching_scripts_data): Change type of language member to
12719 struct extension_language_defn *.
12720 (auto_load_info_scripts): Change type of language arg to
12721 struct extension_language_defn *.
12722 (unsupported_script_warning_print): New function.
12723 (script_not_found_warning_print): Make static.
12724 (_initialize_auto_load): Rewrite construction of scripts-directory
12725 help.
12726 * auto-load.h (struct objfile): Add forward decl.
12727 (struct script_language): Delete.
12728 (struct auto_load_pspace_info): Add forward decl.
12729 (struct extension_language_defn): Add forward decl.
12730 (maybe_add_script): Delete.
12731 (auto_load_objfile_script): Declare.
12732 (script_not_found_warning_print): Delete.
12733 (auto_load_info_scripts): Update prototype.
12734 (auto_load_gdb_scripts_enabled): Declare.
12735 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12736 auto_load_python_scripts_enabled and made public.
12737 (script_language_python): Delete, moved to python.c.
12738 (gdbpy_script_language_defn): Delete.
12739 (info_auto_load_python_scripts): Update to use
12740 extension_language_python.
12741
12742 * breakpoint.c (condition_command): Replace call to
12743 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12744 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12745 with call to breakpoint_ext_lang_cond_says_stop.
12746 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12747 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12748 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12749 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12750 New arg slang.
12751 (local_setattro): Print name of extension language with existing
12752 stop condition.
12753
12754 * valprint.c (val_print, value_print): Update to call
12755 apply_ext_lang_val_pretty_printer.
12756 * cp-valprint.c (cp_print_value): Update call to
12757 apply_ext_lang_val_pretty_printer.
12758 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12759 (gdbpy_apply_val_pretty_printer): Renamed from
12760 apply_val_pretty_printer. New arg extlang.
12761 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12762
12763 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12764 extension language API.
12765 * cli/cli-script.c (execute_control_command): Update to call
12766 eval_ext_lang_from_control_command.
12767
12768 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12769 enum ext_lang_bt_status values. Update call to
12770 apply_ext_lang_frame_filter.
12771 (mi_cmd_stack_list_locals): Ditto.
12772 (mi_cmd_stack_list_args): Ditto.
12773 (mi_cmd_stack_list_variables): Ditto.
12774 * mi/mi-main.c: Delete #include "python/python-internal.h".
12775 Add #include "extension.h".
12776 (mi_cmd_list_features): Replace reference to python internal variable
12777 gdb_python_initialized with call to ext_lang_initialized_p.
12778
12779 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12780 Update to use enum ext_lang_frame_args. Update to call
12781 apply_ext_lang_frame_filter.
12782 * python/py-framefilter.c (extract_sym): Update to use enum
12783 ext_lang_bt_status.
12784 (extract_value, py_print_type, py_print_value): Ditto.
12785 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12786 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12787 (py_print_frame): Ditto.
12788 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12789 New arg extlang. Update to use enum ext_lang_bt_status.
12790
12791 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12792 finish_python_initialization. Replace with call to
12793 finish_ext_lang_initialization.
12794
12795 * typeprint.c (do_free_global_table): Update to call
12796 free_ext_lang_type_printers.
12797 (create_global_typedef_table): Update to call
12798 start_ext_lang_type_printers.
12799 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12800 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12801 (type_print_options): Change type of global_printers from "void *"
12802 to "struct ext_lang_type_printers *".
12803
12804 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12805 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12806 (gdbpy_preserve_values): Renamed from preserve_python_values.
12807 New arg extlang.
12808 (!HAVE_PYTHON, preserve_python_values): Delete.
12809
12810 * utils.c (quit_flag): Delete, moved to extension.c.
12811 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12812 extension.c.
12813
12814 * eval.c: Delete #include "python/python.h".
12815 * main.c: Delete #include "python/python.h".
12816
12817 * defs.h: Update comment.
12818
6af79985
JB
128192014-02-06 Joel Brobecker <brobecker@adacore.com>
12820
12821 GDB 7.7 released.
12822
12c5175d
MK
128232014-02-05 Mark Kettenis <kettenis@gnu.org>
12824
12825 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12826 defined.
12827
8dc5b319
YQ
128282014-02-05 Yao Qi <yao@codesourcery.com>
12829
12830 * remote.c (remote_pass_signals): Remove local 'buf' and use
12831 rs->buf.
12832 (remote_program_signals): Likewise.
12833
de7b2893
YQ
128342014-02-05 Yao Qi <yao@codesourcery.com>
12835
12836 * ctf.c: Include "inferior.h" and "gdbthread.h".
12837 (CTF_PID): A new macro.
12838 (ctf_open): Call inferior_appeared and add_thread_silent.
12839 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12840 (ctf_thread_alive): New function.
12841 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12842
66d032ac
YQ
128432014-02-05 Yao Qi <yao@codesourcery.com>
12844
12845 Revert this patch:
12846
12847 2013-05-24 Yao Qi <yao@codesourcery.com>
12848
12849 * tracepoint.c (TFILE_PID): Remove.
12850 (tfile_open): Don't add thread and inferior.
12851 (tfile_close): Don't set 'inferior_ptid'. Don't call
12852 exit_inferior_silent.
12853 (tfile_thread_alive): Remove.
12854 (init_tfile_ops): Don't set field 'to_thread_alive' of
12855 tfile_ops.
12856
f4ccffad
CE
128572014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12858
12859 * remote.c (remote_start_remote): Call remote_check_symbols even
12860 if only symbol-file (not file) has been given.
12861
591a12a1
UW
128622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12863
12864 * gdbarch.sh (skip_entrypoint): New callback.
12865 * gdbarch.c, gdbarch.h: Regenerate.
12866 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12867 * infrun.c (fill_in_stop_func): Likewise.
12868 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12869 (ppc_elfv2_elf_make_msymbol_special): New function.
12870 (ppc_elfv2_skip_entrypoint): Likewise.
12871 (ppc_linux_init_abi): Install them for ELFv2.
12872
cc0e89c5
UW
128732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12874
12875 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12876 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12877 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12878 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12879 structures returned in GPRs.
12880
52f548e4
UW
128812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12882
12883 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12884 offset to the stack parameter list for the ELFv2 ABI.
12885
d4094b6a
UW
128862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12887
12888 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12889 set_gdbarch_convert_from_func_ptr_addr and
12890 set_gdbarch_elf_make_msymbol_special for ELFv1.
12891 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12892 function descriptors on ELFv1.
12893 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12894 set up r12 at function entry.
12895
cd453cd0
UW
128962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12897
12898 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12899 (struct gdbarch_tdep): New member elf_abi.
12900
12901 * rs6000-tdep.c: Include "elf/ppc64.h".
12902 (rs6000_gdbarch_init): Detect ELF ABI version.
12903
0ff3e01f
UW
129042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12905
12906 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12907 within a register pair holding a DFP 128-bit value on little-endian.
12908 (ppc64_sysv_abi_return_value_base): Likewise.
12909 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12910 (dfp_pseudo_register_write): Likewise.
12911
5b757e5d
UW
129122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12913
12914 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12915 offset on little-endian when passing _Decimal32.
12916 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12917
084ee545
UW
129182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12919
12920 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12921 of the overlapped FP register within the VSX register on little-
12922 endian platforms.
12923 (efpr_pseudo_register_write): Likewise.
12924
d63167af
UW
129252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12926
12927 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12928 offset on little-endian when passing small structures.
12929
e765b44c
UW
129302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12931
12932 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12933 (struct ppc64_sysv_argpos): New data structure.
12934 (ppc64_sysv_abi_push_float): Remove.
12935 (ppc64_sysv_abi_push_val): New function.
12936 (ppc64_sysv_abi_push_integer): Likewise.
12937 (ppc64_sysv_abi_push_freg): Likewise.
12938 (ppc64_sysv_abi_push_vreg): Likewise.
12939 (ppc64_sysv_abi_push_param): Likewise.
12940 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12941 (ppc64_sysv_abi_return_value_base): New function.
12942 (ppc64_sysv_abi_return_value): Refactor to use it.
12943
36c24d95
UW
129442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12945
12946 * NEWS: Document new target powerpc64le-*-linux*.
12947
26fd9228
MK
129482014-02-04 Mark Kettenis <kettenis@gnu.org>
12949
12950 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12951 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12952 core dumps.
12953 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12954 register set used in ELF core dumps. Add floating-point register set.
12955
c5bb7362
KB
129562014-02-03 Kevin Buettner <kevinb@redhat.com>
12957
74228e77 12958 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12959 dwarf2_to_gdb[] table using symbolic constants. Adjust
12960 penultimate entry from number representing the PC register
12961 to symbolic constant representing the MDR register. Add
12962 constant for the PC register to the end of the table.
12963
af09351e
MK
129642014-02-03 Mark Kettenis <kettenis@gnu.org>
12965
12966 * bsd-kvm.c: Include <sys/param.h>
12967
8507e05d
MK
129682014-02-03 Mark Kettenis <kettenis@gnu.org>
12969
12970 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12971
ae56bfb8
JB
129722014-01-31 Joel Brobecker <brobecker@adacore.com>
12973
12974 * ada-lang.h (clear_ada_sym_cache): Delete.
12975
718ee4dc
UW
129762014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12977
12978 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12979
401e27fd
JM
129802014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12981
12982 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12983 the sigreturn register save area only if the syscall is
12984 sigreturn.
12985
a7c88acd
JB
129862014-01-29 Joel Brobecker <brobecker@adacore.com>
12987
12988 * valops.c (value_slice): Minor reformatting.
12989
fa0079ea
UW
129902014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12991
12992 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12993
c6044dd1
JB
129942014-01-28 Joel Brobecker <brobecker@adacore.com>
12995
12996 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12997 New static globals.
12998 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12999 (ada_ignore_descriptive_types_p): New static global.
13000 (find_parallel_type_by_descriptive_type): Return immediately
13001 if ada_ignore_descriptive_types_p is set.
13002 (_initialize_ada_language): Register new commands "maintenance
13003 set ada", "maintenance show ada", "maintenance set ada
13004 ignore-descriptive-types" and "maintenance show ada
13005 ignore-descriptive-types".
13006 * NEWS: Add entry for new "maint ada set/show
13007 ignore-descriptive-types" commands.
13008
568e808b
MM
130092014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13010
13011 * record-btrace.c (record_btrace_close): Call btrace_teardown
13012 for all threads.
13013
467d141b
JB
130142014-01-27 Joel Brobecker <brobecker@adacore.com>
13015
13016 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13017 "ui-out.h".
13018
fb151210
JB
130192014-01-27 Joel Brobecker <brobecker@adacore.com>
13020
13021 * ada-typeprint (type_is_full_subrange_of_target_type):
13022 New function.
13023 (print_range): Add parameter bounds_prefered_p. If not set,
13024 try printing range types using the name of their base type.
13025 (print_range_type): Add parameter bounds_prefered_p.
13026 Use it in call to print_range.
13027 (print_array_type, ada_print_type): Update calls to print_range
13028 and print_range_type.
13029
aba02109
JB
130302014-01-27 Joel Brobecker <brobecker@adacore.com>
13031
13032 * ada-typeprint.c (print_array_type, print_choices, print_range)
13033 (print_range_bound, print_dynamic_range_bound, print_range_type):
13034 Remove declaration.
13035
e62e21fd
JB
130362014-01-27 Joel Brobecker <brobecker@adacore.com>
13037
13038 * ada-typeprint.c (print_range): Add missing empty line
13039 after local declaration.
13040
859cf5d1
JB
130412014-01-27 Joel Brobecker <brobecker@adacore.com>
13042
13043 * ada-valprint.c (print_optional_low_bound): Get index_type's
13044 target type for as long as it is a TYPE_CODE_RANGE.
13045
25790f6f
JB
130462014-01-27 Joel Brobecker <brobecker@adacore.com>
13047
13048 * procfs.c (procfs_make_note_section): Remove assertion and
13049 associated comment.
13050
6b6aa828
YQ
130512014-01-24 Yao Qi <yao@codesourcery.com>
13052
13053 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13054 * corelow.c (get_core_siginfo): Likewise.
13055
5d6df423
YQ
130562014-01-24 Yao Qi <yao@codesourcery.com>
13057
13058 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13059 ULONGEST. Don't check 'len' is negative.
13060 (remote_write_bytes): Change type of 'len' to ULONGEST.
13061
83b645b8
TT
130622014-01-23 Tom Tromey <tromey@redhat.com>
13063
13064 PR python/16485:
13065 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13066 Handle exception from frame.block.
13067 (FrameVars.fetch_frame_locals): Likewise.
13068
0740f8d8
TT
130692014-01-23 Tom Tromey <tromey@redhat.com>
13070
13071 PR python/16487:
13072 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13073 on a NULL pointer. Move "goto error" to correct place.
13074
21909fa1
TT
130752014-01-23 Tom Tromey <tromey@redhat.com>
13076
13077 PR python/16491:
13078 * python/py-framefilter.c (apply_frame_filter): Call
13079 ensure_python_env after computing gdbarch.
13080
17fde6d0
YQ
130812014-01-23 Yao Qi <yao@codesourcery.com>
13082
13083 * target.c (raw_memory_xfer_partial): Change argument type
13084 from void * to gdb_byte *.
13085 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13086
87ce2a04
DE
130872014-01-22 Doug Evans <dje@google.com>
13088
13089 New gdbserver option --debug-format=timestamp.
13090 * NEWS: Mention it.
13091
237b092b
AA
130922014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13093
13094 * syscalls/s390x-linux.xml: New file.
13095 * syscalls/s390-linux.xml: New file.
13096 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13097 (XML_SYSCALL_FILENAME_S390X): Likewise.
13098 (op_svc): New enum value for SVC opcode.
13099 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13100 (s390_linux_get_syscall_number): New function.
13101 (s390_gdbarch_init): Register '*get_syscall_number' and the
13102 syscall xml file name.
13103 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13104 "s390-linux.xml" and "s390x-linux.xml".
13105 * NEWS: Announce new feature.
13106
54bff650
BS
131072014-01-22 Baruch Siach <baruch@tkos.co.il>
13108
13109 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13110
14e361d7
PA
131112014-01-22 Pedro Alves <palves@redhat.com>
13112
13113 * xtensa-config.c: Include defs.h.
13114
46bbb3ed
JB
131152014-01-22 Joel Brobecker <brobecker@adacore.com>
13116
13117 * common/common-utils.h: Add "ARI:" comment beside __func__
13118 reference.
13119
3a80edfc
JB
131202014-01-22 Joel Brobecker <brobecker@adacore.com>
13121
13122 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13123 documentation a bit.
13124
4869db5e
RM
131252014-01-21 Roland McGrath <mcgrathr@google.com>
13126
13127 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13128 * configure: Regenerate.
13129 * aclocal.m4: Regenerate.
13130 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13131 New substituted variables.
13132 (install-strip): New target.
13133 (INSTALL_SCRIPT): New substituted variable.
13134 (FLAGS_TO_PASS): Add it.
13135 (install-only): Use $(INSTALL_SCRIPT) rather than
13136 $(INSTALL_PROGRAM) for gcore.
13137
9ea4267d
TT
131382014-01-20 Tom Tromey <tromey@redhat.com>
13139
13140 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13141 together.
13142
1f2bdf09
TT
131432014-01-20 Tom Tromey <tromey@redhat.com>
13144
13145 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13146 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13147 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13148 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13149 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13150 (struct cmd_list_element) <flags>: Remove.
13151 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13152 doc_allocated>: New fields.
13153 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13154 bitfields.
13155 * maint.c (maintenance_do_deprecate): Update.
13156 * top.c (execute_command): Update.
13157
e671835b
BS
131582014-01-20 Baruch Siach <baruch@tkos.co.il>
13159
13160 * xtensa-linux-nat.c: Include asm/ptrace.h.
13161
50367cd2
IB
131622014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13163
13164 * Makefile.in (SFILES): Add d-support.c.
13165 (COMMON_OBS): Add d-support.o.
13166 * d-lang.h (d_parse_symbol): Add comment, now defined in
13167 d-support.c.
13168 * d-lang.c (parse_call_convention)
13169 (parse_attributes, parse_function_types)
13170 (parse_function_args, parse_type, parse_identifier)
13171 (call_convention_p, d_parse_symbol): Move functions to ...
13172 * d-support.c: ... New file.
13173
ec9f644a
IB
131742014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13175
13176 * d-lang.h (d_parse_symbol): Add declaration.
13177 * d-lang.c (extract_identifiers)
13178 (extract_type_info): Remove functions.
13179 (parse_call_convention, parse_attributes)
13180 (parse_function_types, parse_function_args)
13181 (parse_type, parse_identifier, call_convention_p)
13182 (d_parse_symbol): New functions.
13183 (d_demangle): Use d_parse_symbol to demangle D symbols.
13184
94b1b47e
IB
131852014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13186
13187 * d-lang.h (struct builtin_d_type): New data type.
13188 (builtin_d_type): Add declaration.
13189 * d-lang.c (d_language_arch_info, build_d_types)
13190 (builtin_d_type): New functions.
13191 (enum d_primitive_types): New data type.
13192 (d_language_defn): Change c_language_arch_info to
13193 d_language_arch_info.
13194 (d_type_data): New static variable.
13195 (_initialize_d_language): Initialize d_type_data.
13196
63778547
IB
131972014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13198
13199 * d-lang.h (d_main_name): Add declaration.
13200 * d-lang.c (d_main_name): New function.
13201 * symtab.c (find_main_name): Add call to d_main_name.
13202
3271ba66
IB
132032014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13204
13205 * d-lang.c (d_language_defn): Change macro_expansion_c to
13206 macro_expansion_no.
13207
d36b3012
IB
132082014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13209
13210 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13211
c90a6fb7
SDJ
132122014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13213
13214 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13215 gdb_exception" declaration.
13216 * remote.c (getpkt_or_notif_sane): Likewise.
13217
749234e5
DE
132182014-01-17 Doug Evans <dje@google.com>
13219
13220 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13221 function, contents of dirnames_to_char_ptr_vec_append moved here.
13222 (delim_string_to_char_ptr_vec): New function.
13223 (dirnames_to_char_ptr_vec_append): Rewrite.
13224 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13225
df049a58
DE
132262014-01-17 Doug Evans <dje@google.com>
13227
13228 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13229 and moved here ...
13230 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13231 #include "common-utils.h".
13232 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13233 * common/vec.h (VEC_ASSERT_PASS): Update.
13234 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13235 (MACH_CHECK_ERROR): Update.
13236
69f97648
SM
132372014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13238
13239 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13240 comments.
13241 * gdbarch.h: Regenerate.
13242
98b1cfdc
TT
132432014-01-16 Tom Tromey <tromey@redhat.com>
13244
13245 * value.c (struct value) <regnum>: Move earlier.
13246
77a19445
TT
132472014-01-16 Tom Tromey <tromey@redhat.com>
13248
13249 * remote.c (extended_remote_create_inferior): Rename from
13250 extended_remote_create_inferior_1. Add "ops" argument. Remove
13251 old implementation.
13252
62261490
PA
132532014-01-16 Pedro Alves <palves@redhat.com>
13254
13255 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13256 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13257 the backchain.
13258
4d65956b
DE
132592014-01-16 Doug Evans <dje@google.com>
13260
13261 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13262
52834460
MM
132632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13264
13265 * btrace.h (btrace_thread_flag): New.
13266 (struct btrace_thread_info) <flags>: New.
13267 * record-btrace.c (record_btrace_resume_thread)
13268 (record_btrace_find_thread_to_move, btrace_step_no_history)
13269 (btrace_step_stopped, record_btrace_start_replaying)
13270 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13271 (record_btrace_find_resume_thread): New.
13272 (record_btrace_resume, record_btrace_wait): Extend.
13273 (record_btrace_can_execute_reverse): New.
13274 (record_btrace_open): Fail in non-stop mode.
13275 (record_btrace_set_replay): Split into this, ...
13276 (record_btrace_stop_replaying): ... this, ...
13277 (record_btrace_clear_histories): ... and this.
13278 (init_record_btrace_ops): Init to_can_execute_reverse.
13279 * NEWS: Announce it.
13280
118e6252
MM
132812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13282
13283 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13284 (forward_target_decr_pc_after_break)
13285 (target_decr_pc_after_break): New.
13286 * target.c (forward_target_decr_pc_after_break)
13287 (target_decr_pc_after_break): New.
13288 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13289 instead of gdbarch_decr_pc_after_break.
13290 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13291 instead of gdbarch_decr_pc_after_break.
13292 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13293 instead of gdbarch_decr_pc_after_break.
13294 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13295 instead of gdbarch_decr_pc_after_break.
13296 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13297 instead of gdbarch_decr_pc_after_break.
13298 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13299 instead of gdbarch_decr_pc_after_break.
13300
6e07b1d2
MM
133012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13302
13303 * btrace.c: Include regcache.h.
13304 (btrace_add_pc): New.
13305 (btrace_enable): Call btrace_add_pc.
13306 (btrace_is_empty): New.
13307 * btrace.h (btrace_is_empty): New.
13308 * record-btrace.c (require_btrace, record_btrace_info): Call
13309 btrace_is_empty.
13310
969c39fb
MM
133112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13312
13313 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13314 Support delta reads.
13315 (linux_disable_btrace): Change return type.
13316 * common/linux-btrace.h (linux_read_btrace): Change parameters
13317 and return type to allow error reporting. Update users.
13318 (linux_disable_btrace): Change return type. Update users.
13319 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13320 New.
13321 (btrace_error): New.
13322 (btrace_block) <begin>: Comment on BEGIN == 0.
13323 * btrace.c (btrace_compute_ftrace): Start from the end of
13324 the current trace.
13325 (btrace_stitch_trace, btrace_clear_history): New.
13326 (btrace_fetch): Read delta trace, return if replaying.
13327 (btrace_clear): Move clear history code to btrace_clear_history.
13328 (parse_xml_btrace): Throw an error if parsing failed.
13329 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13330 and return type to allow error reporting.
13331 (target_read_btrace): Change parameters and return type to allow
13332 error reporting.
13333 * target.c (target_read_btrace): Update.
13334 * remote.c (remote_read_btrace): Support delta reads. Pass
13335 errors on.
13336 * NEWS: Announce it.
13337
0b722aec
MM
133382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13339
13340 * record.h (record_btrace_frame_unwind)
13341 (record_btrace_tailcall_frame_unwind): New declarations.
13342 * dwarf2-frame: Include record.h
13343 (dwarf2_frame_cfa): Throw an error for btrace frames.
13344 * record-btrace.c: Include hashtab.h.
13345 (btrace_get_bfun_name): New.
13346 (btrace_call_history): Call btrace_get_bfun_name.
13347 (struct btrace_frame_cache): New.
13348 (bfcache): New.
13349 (bfcache_hash, bfcache_eq, bfcache_new): New.
13350 (btrace_get_frame_function): New.
13351 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13352 (record_btrace_frame_this_id): Compute own id.
13353 (record_btrace_frame_prev_register): Provide PC, throw_error
13354 for all other registers.
13355 (record_btrace_frame_sniffer): Detect btrace frames.
13356 (record_btrace_tailcall_frame_sniffer): New.
13357 (record_btrace_frame_dealloc_cache): New.
13358 (record_btrace_frame_unwind): Add new functions.
13359 (record_btrace_tailcall_frame_unwind): New.
13360 (_initialize_record_btrace): Allocate cache.
13361 * btrace.c (btrace_clear): Call reinit_frame_cache.
13362 * NEWS: Announce it.
13363
066ce621
MM
133642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13365
13366 * record-btrace.c (record_btrace_set_replay)
13367 (record_btrace_goto_begin, record_btrace_goto_end)
13368 (record_btrace_goto): New.
13369 (init_record_btrace_ops): Initialize them.
13370 * NEWS: Announce it.
13371
e2887aa3
MM
133722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13373
13374 * record-btrace.c (record_btrace_find_new_threads)
13375 (record_btrace_thread_alive): New.
13376 (init_record_btrace_ops): Initialize to_find_new_threads and
13377 to_thread_alive.
13378
b2f4cfde
MM
133792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13380
13381 * record-btrace.c (record_btrace_resume): New.
13382 (record_btrace_wait): New.
13383 (init_record_btrace_ops): Initialize to_wait and to_resume.
13384
633785ff
MM
133852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13386
13387 * record-btrace.c (record_btrace_xfer_partial)
13388 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13389 (record_btrace_allow_memory_access): New.
13390 (init_record_btrace_ops): Initialize new methods.
13391 * target.c (raw_memory_xfer_partial): Bail out if target reports
13392 that this memory is not available.
13393
3db08215
MM
133942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13395
13396 * target.h (target_ops) <to_insert_breakpoint>
13397 <to_remove_breakpoint>: Add target_ops parameter.
13398 (forward_target_insert_breakpoint): New.
13399 (forward_target_remove_breakpoint): New.
13400 (memory_remove_breakpoint, memory_insert_breakpoint):
13401 Add target_ops parameter.
13402 * target.c (target_insert_breakpoint): Split into this and ...
13403 (forward_target_insert_breakpoint): ... this.
13404 (target_remove_breakpoint): Split into this and ...
13405 (forward_target_remove_breakpoint): ... this.
13406 (debug_to_insert_breakpoint): Add target_ops parameter.
13407 Call forward_target_insert_breakpoint.
13408 (debug_to_remove_breakpoint): Add target_ops parameter.
13409 Call forward_target_remove_breakpoint.
13410 (update_current_target): Do not inherit or default to_insert_breakpoint
13411 and to_remove_breakpoint.
13412 * corelow.c (ignore): Add target_ops parameter.
13413 * exec.c (ignore): Add target_ops parameter.
13414 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13415 Add target_ops parameter.
13416 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13417 Add target_ops parameter.
13418 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13419 Add target_ops parameter.
13420 * record-full.c (record_full_beneath_to_insert_breakpoint)
13421 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13422 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13423 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13424 (record_full_core_remove_breakpoint): Add target_ops parameter.
13425 Update users.
13426 (record_full_beneath_to_insert_breakpoint_ops)
13427 (record_full_beneath_to_remove_breakpoint_ops)
13428 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13429 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13430 tmp_to_remove_breakpoint_ops,
13431 record_full_beneath_to_insert_breakpoint_ops, and
13432 record_full_beneath_to_remove_breakpoint_ops.
13433 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13434 (m32r_remove_breakpoint): Add target_ops parameter.
13435 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13436 Add target_ops parameter.
13437 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13438 Add target_ops parameter.
13439
cecac1ab
MM
134402014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13441 Markus Metzger <markus.t.metzger@intel.com>
13442
13443 * record-btrace.c: Include frame-unwind.h.
13444 (record_btrace_frame_unwind_stop_reason)
13445 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13446 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13447 New.
13448 (init_record_btrace_ops): Install it.
13449
824344ca
MM
134502014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13451
13452 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13453 get_prev_frame_1.
13454
32261e52
MM
134552014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13456
13457 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13458 earlier.
13459
ea001bdc
MM
134602014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13461
13462 * frame-unwind.c: Include target.h.
13463 (frame_unwind_try_unwinder): New function with code from ...
13464 (frame_unwind_find_by_frame): ... here. New variable
13465 unwinder_from_target, call also target_get_unwinder)
13466 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13467 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13468 * target.h (struct target_ops): New fields to_get_unwinder and
13469 to_get_tailcall_unwinder.
13470 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13471
1f3ef581
MM
134722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13473
13474 * record-btrace.c (record_btrace_fetch_registers)
13475 (record_btrace_store_registers)
13476 (record_btrace_to_prepare_to_store): New.
13477 (init_record_btrace_ops): Add the above.
13478
f32dbf8c
MM
134792014-01-16 Tom Tromey <tromey@redhat.com>
13480
13481 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13482 * target.h (struct target_ops) <to_prepare_to_store>: Add
13483 argument.
13484 (target_prepare_to_store): Add argument.
13485 * target.c (debug_to_prepare_to_store): Add argument.
13486 (update_current_target): Update.
13487 * remote.c (remote_prepare_to_store): Add 'self' argument.
13488 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13489 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13490 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13491 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13492 argument.
13493 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13494 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13495 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13496 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13497 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13498
07bbe694
MM
134992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13500
13501 * btrace.h (replay) <replay>: New.
13502 (btrace_is_replaying): New.
13503 * btrace.c (btrace_clear): Free replay iterator.
13504 (btrace_is_replaying): New.
13505 * record-btrace.c (record_btrace_is_replaying): New.
13506 (record_btrace_info): Print insn number if replaying.
13507 (record_btrace_insn_history): Start at replay position.
13508 (record_btrace_call_history): Start at replay position.
13509 (init_record_btrace_ops): Init to_record_is_replaying.
13510
0688d04e
MM
135112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13512
13513 * record-btrace.c (record_btrace_insn_history_range): Include
13514 end.
13515 (record_btrace_insn_history_from): Adjust range.
13516 (record_btrace_call_history_range): Include
13517 end.
13518 (record_btrace_call_history_from): Adjust range.
13519 * NEWS: Announce changes.
13520
8710b709
MM
135212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13522
13523 * record.h (enum record_print_flag)
13524 <record_print_indent_calls>: New.
13525 * record.c (get_call_history_modifiers): Recognize /c modifier.
13526 (_initialize_record): Document /c modifier.
13527 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13528 Reorder fields. Optionally indent the function name. Update
13529 all users.
13530 * NEWS: Announce changes.
13531
d0fa7535
MM
135322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13533
13534 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13535
5de9129b
MM
135362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13537
13538 * btrace.c (ftrace_new_function): Start counting at one.
13539 * record-btrace.c (record_btrace_info): Adjust number of calls
13540 and insns.
13541 * NEWS: Announce it.
13542
7acbe133
MM
135432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13544
13545 * record-btrace.c (btrace_call_history_insn_range): Print
13546 insn range as [begin, end].
13547
23a7fe75
MM
135482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13549
13550 * btrace.h (struct btrace_func_link): New.
13551 (enum btrace_function_flag): New.
13552 (struct btrace_inst): Rename to ...
13553 (struct btrace_insn): ...this. Update all users.
13554 (struct btrace_func) <ibegin, iend>: Remove.
13555 (struct btrace_func_link): New.
13556 (struct btrace_func): Rename to ...
13557 (struct btrace_function): ...this. Update all users.
13558 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13559 (number, level, flags>: New.
13560 (struct btrace_insn_iterator): Rename to ...
13561 (struct btrace_insn_history): ...this.
13562 Update all users.
13563 (struct btrace_insn_iterator, btrace_call_iterator): New.
13564 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13565 (struct btrace_target_info) <begin, end, level>
13566 <insn_history, call_history>: New.
13567 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13568 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13569 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13570 (btrace_call_number, btrace_call_begin, btrace_call_end)
13571 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13572 (btrace_find_function_by_number, btrace_set_insn_history)
13573 (btrace_set_call_history): New.
13574 * btrace.c (btrace_init_insn_iterator)
13575 (btrace_init_func_iterator, compute_itrace): Remove.
13576 (ftrace_print_function_name, ftrace_print_filename)
13577 (ftrace_skip_file): Change
13578 parameter to const.
13579 (ftrace_init_func): Remove.
13580 (ftrace_debug): Use new btrace_function fields.
13581 (ftrace_function_switched): Also consider gaining and
13582 losing symbol information).
13583 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13584 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13585 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13586 New.
13587 (ftrace_new_function): Move. Remove debug print.
13588 (ftrace_update_lines, ftrace_update_insns): New.
13589 (ftrace_update_function): Check for call, ret, and jump.
13590 (compute_ftrace): Renamed to ...
13591 (btrace_compute_ftrace): ...this. Rewritten to compute call
13592 stack.
13593 (btrace_fetch, btrace_clear): Updated.
13594 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13595 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13596 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13597 (btrace_call_number, btrace_call_begin, btrace_call_end)
13598 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13599 (btrace_find_function_by_number, btrace_set_insn_history)
13600 (btrace_set_call_history): New.
13601 * record-btrace.c (require_btrace): Use new btrace thread
13602 info fields.
13603 (record_btrace_info, btrace_insn_history)
13604 (record_btrace_insn_history, record_btrace_insn_history_range):
13605 Use new btrace thread info fields and new iterator.
13606 (btrace_func_history_src_line): Rename to ...
13607 (btrace_call_history_src_line): ...this. Use new btrace
13608 thread info fields.
13609 (btrace_func_history): Rename to ...
13610 (btrace_call_history): ...this. Use new btrace thread info
13611 fields and new iterator.
13612 (record_btrace_call_history, record_btrace_call_history_range):
13613 Use new btrace thread info fields and new iterator.
13614
8372a7cb
MM
136152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13616
13617 * frame.h (frame_id_build_unavailable_stack_special): New.
13618 * frame.c (frame_id_build_unavailable_stack_special): New.
13619
c2170eef
MM
136202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13621
13622 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13623 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13624 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13625 to gdbarch.
13626 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13627 (i386_insn_is_jump, i386_jmp_p): New.
13628 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13629 insn_is_jump to gdbarch.
13630 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13631 * gdbarch.h: Regenerated.
13632 * gdbarch.c: Regenerated.
13633 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13634 (default_insn_is_jump): New.
13635 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13636 (default_insn_is_jump): New.
13637
864089d2
MM
136382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13639
13640 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13641 Change to ...
13642 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13643 (btrace_read_type) <btrace_read_new>: Change to ...
13644 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13645
ed9edfb5
MM
136462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13647
13648 * common/linux-btrace.c (linux_read_btrace): Free trace from
13649 previous iteration.
13650
fbcbc3fd
DE
136512014-01-15 Doug Evans <dje@google.com>
13652
13653 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13654 uint32_t.
13655
3d548a53
TT
136562014-01-15 Tom Tromey <tromey@redhat.com>
13657
13658 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13659 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13660 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13661 (set_objfile_main_name): New function.
13662 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13663 language_of_main>: New fields.
13664 (set_objfile_main_name): Declare.
13665 * symtab.c (find_main_name): Loop over objfiles to find the main
13666 name and language.
13667 (set_main_name): Now static.
13668 (get_main_info): Add comment.
13669 * symtab.h (set_main_name): Don't declare.
13670
32ac0d11
TT
136712014-01-15 Tom Tromey <tromey@redhat.com>
13672
13673 * symtab.c (main_progspace_key): New global.
13674 (struct main_info): New.
13675 (name_of_main, language_of_main): Remove.
13676 (get_main_info, main_info_cleanup): New function.
13677 (set_main_name, main_name, main_language): Use get_main_info.
13678 (_initialize_symtab): Initialize main_progspace_key.
13679
9e6c82ad
TT
136802014-01-15 Tom Tromey <tromey@redhat.com>
13681
13682 * dbxread.c (process_one_symbol): Update.
13683 * dwarf2read.c (read_partial_die): Update.
13684 * symfile.c (set_initial_language): Call main_language.
13685 * symtab.c (language_of_main): Now static.
13686 (set_main_name): Add 'lang' parameter.
13687 (find_main_name): Update.
13688 (main_language): New function.
13689 (symtab_observer_executable_changed): Update.
13690 * symtab.h (set_main_name): Update.
13691 (language_of_main): Remove.
13692 (main_language): Declare.
13693
6ef55de7
TT
136942014-01-15 Tom Tromey <tromey@redhat.com>
13695
13696 * symfile.c (init_entry_point_info): Use new "initialized" field.
13697 Update.
13698 * objfiles.h (struct entry_point) <initialized>: New field.
13699 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13700 (struct objfile) <ei>: ...here. Remove.
13701 * objfiles.c (entry_point_address_query): Update.
13702
53eddfa6
TT
137032014-01-15 Tom Tromey <tromey@redhat.com>
13704
13705 * objfiles.c (entry_point_address_query): Relocate entry point
13706 address.
13707 (objfile_relocate1): Do not relocate entry point address.
13708 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13709 <the_bfd_section_index>: New field.
13710 * symfile.c (init_entry_point_info): Find the entry point's
13711 section.
13712
d56e56aa
TT
137132014-01-15 Tom Tromey <tromey@redhat.com>
13714
13715 * solib-frv.c (enable_break): Use entry_point_address_query.
13716
33a97bbe
OJ
137172014-01-15 Omair Javaid <omair.javaid@linaro.org>
13718
13719 * NEWS: Add note on improved process record-replay on
13720 arm*-linux* targets.
13721
c6ec2b30
OJ
137222014-01-15 Omair Javaid <omair.javaid@linaro.org>
13723
13724 * arm-tdep.c (enum arm_record_result): New enum.
13725 (arm_record_unsupported_insn): New function.
13726 (arm_record_coproc_data_proc): Removed.
13727 (thumb2_record_ld_st_multiple): New function.
13728 (thumb2_record_ld_st_dual_ex_tbb): New function.
13729 (thumb2_record_data_proc_sreg_mimm): New function.
13730 (thumb2_record_ps_dest_generic): New function.
13731 (thumb2_record_branch_misc_cntrl): New function.
13732 (thumb2_record_str_single_data): New function.
13733 (thumb2_record_ld_mem_hints): New function.
13734 (thumb2_record_ld_word): New function.
13735 (thumb2_record_lmul_lmla_div): New function.
13736 (thumb2_record_decode_insn_handler): New function.
13737 (decode_insn): Add thumb32 instruction handlers.
13738
97dfe206
OJ
137392014-01-15 Omair Javaid <omair.javaid@linaro.org>
13740
13741 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13742 (struct arm_linux_record_tdep): Declare.
13743 (arm_canonicalize_syscall): New function.
13744 (arm_all_but_pc_registers_record): New function.
13745 (arm_linux_syscall_record): New function.
13746 (arm_linux_init_abi): Add syscall recording constructs.
13747 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13748 decoding. (arm_record_coproc_data_proc): Update arm syscall
13749 decoding.
13750 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13751 <arm_syscall_record>: New field.
13752 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13753 gdb_target_obs.
13754
9904a494
OJ
137552014-01-15 Omair Javaid <omair.javaid@linaro.org>
13756
13757 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13758 register for push instruction recording.
13759
f969241e
OJ
137602014-01-15 Omair Javaid <omair.javaid@linaro.org>
13761
13762 * arm-tdep.c (thumb_record_misc): Update to correct logical
13763 error while recording ldm, ldmia and pop instructions.
13764
bfbbec00
OJ
137652014-01-15 Omair Javaid <omair.javaid@linaro.org>
13766
13767 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13768
e40adcc9
PA
137692014-01-15 Pedro Alves <palves@redhat.com>
13770
13771 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13772 (go32_resume, go32_fetch_registers, store_register)
13773 (go32_store_registers, go32_prepare_to_store)
13774 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13775 (go32_create_inferior, go32_can_run, go32_terminal_init)
13776 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13777 declarations.
13778
b0a16e66
TT
137792014-01-15 Tom Tromey <tromey@redhat.com>
13780
13781 * target.h (async_callback_ftype): New typedef.
13782 (struct target_ops) <to_async>: Use it.
13783
bf7105a4
JB
137842014-01-15 Joel Brobecker <brobecker@adacore.com>
13785
13786 * python/py-value.c (get_field_type): Remove unnecessary curly
13787 braces for single-statement if block.
13788
a8f35c2e
JB
137892014-01-15 Joel Brobecker <brobecker@adacore.com>
13790
13791 * python/py-type.c (convert_field): Add missing empty line
13792 after declarations.
13793
bb4142cf
DE
137942014-01-14 Doug Evans <dje@google.com>
13795
13796 * symfile.h (expand_symtabs_matching): Renamed from
13797 expand_partial_symbol_names. Update prototype.
13798 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13799 * symfile.c (expand_symtabs_matching): Renamed from
13800 expand_partial_symbol_names. New args file_matcher, kind.
13801 Rename arg fun to symbol_matcher.
13802 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13803 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13804 ada_expand_partial_symbol_name.
13805 (ada_make_symbol_completion_list): Update to call
13806 expand_symtabs_matching.
13807 (ada_add_global_exceptions): Call expand_symtabs_matching.
13808 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13809 call map_symbol_filenames.
13810 * symtab.c (sources_info): Update to call map_symbol_filenames.
13811 (search_symbols): Call expand_symtabs_matching.
13812 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13813 (default_make_symbol_completion_list_break_on): Update to call
13814 expand_symtabs_matching.
13815 (make_source_files_completion_list): Update to call
13816 map_symbol_filenames.
13817
206f2a57
DE
138182014-01-14 Doug Evans <dje@google.com>
13819
13820 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13821 (expand_symtabs_symbol_matcher_ftype): New typedef.
13822 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13823 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13824 * symfile.c (expand_partial_symbol_names): Update to use
13825 expand_symtabs_symbol_matcher_ftype.
13826 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13827 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13828 Arg name_matcher renamed to symbol_matcher.
13829 * psymtab.c (recursively_search_psymtabs): Update to use
13830 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13831 sym_matcher.
13832 (expand_symtabs_matching_via_partial): Update to use
13833 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13834 Arg name_matcher renamed to symbol_matcher.
13835
540c2971
DE
138362014-01-14 Doug Evans <dje@google.com>
13837
13838 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13839 (map_partial_symbol_filenames): Ditto.
13840 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13841 (map_partial_symbol_filenames): Ditto.
13842 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13843 (map_partial_symbol_filenames): Ditto.
13844 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13845 (map_partial_symbol_filenames): Ditto.
13846 * symtab.c: Delete #include "psymtab.h".
13847
8213266a
PA
138482014-01-14 Pedro Alves <palves@redhat.com>
13849 Tom Tromey <tromey@redhat.com>
13850
13851 * infrun.c (use_displaced_stepping): Use find_record_target
13852 instead of RECORD_IS_USED.
13853 (adjust_pc_after_break): Use record_full_is_used instead of
13854 RECORD_IS_USED.
13855 * record-btrace.c (record_btrace_open): Call record_preopen
13856 instead of checking RECORD_IS_USED.
13857 * record-full.c (record_full_shortname)
13858 (record_full_core_shortname): New globals.
13859 (record_full_is_used): New function.
13860 (find_full_open): Call record_preopen instead of checking
13861 RECORD_IS_USED.
13862 (init_record_full_ops): Set the target's shortname to
13863 record_full_shortname.
13864 (init_record_full_core_ops): Set the target's shortname to
13865 record_full_core_shortname.
13866 * record-full.h (record_full_is_used): Declare.
13867 * record.c (find_record_target): Make extern.
13868 (record_preopen): New function.
13869 * record.h (RECORD_IS_USED): Delete macro.
13870 (find_record_target, record_preopen): Declare functions.
13871
7ec1862d
YQ
138722014-01-14 Yao Qi <yao@codesourcery.com>
13873
13874 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13875 'len''s type to ULONGEST.
13876 (core_xfer_shared_libraries_aix): Likewise.
13877 * gdbarch.c, gdbarch.h: Regenerated.
13878 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13879 Change type of 'len' to ULONGEST.
13880 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13881 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13882
dea80a27
YQ
138832014-01-14 Yao Qi <yao@codesourcery.com>
13884
13885 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13886 type of 'len' to ULONGEST.
13887 (linux_xfer_osdata_processgroups): Likewise.
13888 (linux_xfer_osdata_threads): Likewise.
13889 (linux_xfer_osdata_fds): Likewise.
13890 (linux_xfer_osdata_isockets): Likewise.
13891 (linux_xfer_osdata_shm): Likewise.
13892 (linux_xfer_osdata_sem): Likewise.
13893 (linux_xfer_osdata_msg): Likewise.
13894 (linux_common_xfer_osdata): Likewise.
13895 (struct osdata_type) <getter>: Likewise.
13896 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13897 the declaration.
13898
b55e14c7
YQ
138992014-01-14 Yao Qi <yao@codesourcery.com>
13900
13901 * target.h (target_xfer_partial_ftype): Update.
13902 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13903 ULONGEST.
13904 * aix-thread.c (aix_thread_xfer_partial): Change type of
13905 argument 'len' to ULONGEST.
13906 * auxv.c (procfs_xfer_auxv): Likewise.
13907 (ld_so_xfer_auxv): Likewise.
13908 (memory_xfer_auxv): Likewise.
13909 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13910 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13911 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13912 * corelow.c (core_xfer_partial): Likewise.
13913 * ctf.c (ctf_xfer_partial): Likewise.
13914 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13915 '%u'.
13916 (darwin_read_dyld_info): Likewise.
13917 (darwin_xfer_partial): Likewise.
13918 * exec.c (section_table_xfer_memory_partial): Likewise.
13919 (exec_xfer_partial): Likewise.
13920 * exec.h (section_table_xfer_memory_partial): Update
13921 declaration.
13922 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13923 instead of plongest.
13924 (gnu_xfer_partial): Likewise.
13925 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13926 (ia64_hpux_xfer_solib_got): Likewise.
13927 (ia64_hpux_xfer_partial): Likewise.
13928 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13929 * inf-ptrace.c (inf_ptrace_xfer_partial):
13930 * inf-ttrace.c (inf_ttrace_xfer_partial):
13931 * linux-nat.c (linux_xfer_siginfo): Likewise.
13932 (linux_nat_xfer_partial): Likewise.
13933 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13934 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13935 * monitor.c (monitor_xfer_memory): Likewise.
13936 (monitor_xfer_partial): Likewise.
13937 * procfs.c (procfs_xfer_partial): Likewise.
13938 * record-full.c (record_full_xfer_partial): Likewise.
13939 (record_full_core_xfer_partial): Likewise.
13940 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13941 instead of plongest.
13942 (gdbsim_xfer_partial): Likewise.
13943 * remote.c (remote_xfer_partial): Likewise.
13944 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13945 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13946 declaration.
13947 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13948 (rs6000_xfer_shared_libraries): Likewise.
13949 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13950 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13951 (sparc_xfer_partial): Likewise.
13952 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13953 (spu_xfer_partial): Likewise.
13954 * spu-multiarch.c (spu_xfer_partial): Likewise.
13955 * target.c (target_read_live_memory): Likewise.
13956 (memory_xfer_live_readonly_partial): Likewise.
13957 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13958 (target_xfer_partial, default_xfer_partial): Likewise.
13959 (current_xfer_partial): Likewise.
13960 * tracepoint.c (tfile_xfer_partial): Likewise.
13961 * windows-nat.c (windows_xfer_memory): Likewise. Call
13962 pulongest instead of plongest.
13963 (windows_xfer_partial): Likewise.
13964 (windows_xfer_shared_libraries): Likewise.
13965
05804640
YQ
139662014-01-14 Yao Qi <yao@codesourcery.com>
13967
13968 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13969 target_xfer_partial_ftype.
13970
b5b08fb4
SC
139712014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13972
13973 PR python/15464
13974 PR python/16113
13975 * valops.c (value_struct_elt_bitpos): New function
13976 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13977 object to 'None' if the field name is an empty string ("").
13978 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13979 attribute to look for a field when 'name' is 'None'.
13980 (get_field_type): New function
13981
13aaf454
DE
139822014-01-13 Doug Evans <dje@google.com>
13983
13984 PR symtab/16426
13985 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13986 (try_open_dwop_file): Ditto.
13987 * gdb_bfd.c: #include "vec.h".
13988 (bfdp): New typedef.
13989 (struct gdb_bfd_data): New member included_bfds.
13990 (gdb_bfd_unref): Unref all included bfds.
13991 (gdb_bfd_record_inclusion): New function.
13992 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13993
c2cec97c
TT
139942014-01-13 Tom Tromey <tromey@redhat.com>
13995
13996 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13997
78e5999d
TT
139982014-01-13 Tom Tromey <tromey@redhat.com>
13999
14000 * defs.h (use_windows): Remove.
14001 * gdb.c (main): Update.
14002 * main.c (captured_main, gdb_main): Update.
14003 * main.h (struct captured_main_args) <use_windows>: Remove.
14004 * top.c (use_windows): Remove.
14005
f2052bbe
TT
140062014-01-13 Tom Tromey <tromey@redhat.com>
14007
14008 * defs.h (deprecated_flush_hook): Remove.
14009
fde4f8ed
JK
140102014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14011
14012 PR threads/16216
14013 * linux-thread-db.c (try_thread_db_load): Add parameter
14014 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14015 (try_thread_db_load_from_pdir_1): Move it there from here.
14016 (try_thread_db_load_from_sdir): Update caller.
14017 (try_thread_db_load_from_dir): Move it there from here.
14018
bdf61915
PP
140192014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14020
14021 * regformats/regdat.sh: Always rewrite the register file.
14022
f71e1a8d
PA
140232014-01-13 Pedro Alves <palves@redhat.com>
14024
14025 * Makefile.in (CHECK_HEADERS): New variable.
14026 (check-headers:): New rule.
14027
42c85435
TT
140282014-01-13 Tom Tromey <tromey@redhat.com>
14029
14030 * cli/cli-setshow.c (do_set_command): Update.
14031 * defs.h (deprecated_set_hook): Remove.
14032 * top.c (deprecated_set_hook): Remove.
14033
f8de5129
PA
140342014-01-13 Pedro Alves <palves@redhat.com>
14035
14036 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14037 the tracepoint if the PC is a pseudo-register.
14038
fc270c35
TT
140392014-01-13 Tom Tromey <tromey@redhat.com>
14040
14041 * defs.h (XCALLOC): Remove.
14042 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14043 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14044 * dwarf2loc.c (allocate_piece_closure): Likewise.
14045 * elfread.c (elf_symfile_segments): Likewise.
14046 (elf_symfile_segments): Likewise.
14047 * gdbtypes.c (copy_type_recursive): Likewise.
14048 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14049 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14050 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14051 XCALLOC.
14052 * mt-tdep.c (mt_gdbarch_init): Likewise.
14053 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14054 XCALLOC.
14055 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14056 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14057 * registry.c (registry_alloc_data): Likewise.
14058 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14059 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14060 * serial.c (serial_fdopen_ops): Likewise.
14061 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14062 XCALLOC.
14063 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14064 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14065 not XCALLOC.
14066
70ba0933
TT
140672014-01-13 Tom Tromey <tromey@redhat.com>
14068
14069 * defs.h (XMALLOC): Remove.
14070 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14071 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14072 * cli-out.c (struct ui_out *): Likewise.
14073 * cli/cli-dump.c (add_dump_command): Likewise.
14074 (add_dump_command): Likewise.
14075 * complaints.c (get_complaints): Likewise.
14076 (find_complaint): Likewise.
14077 * dwarf2-frame.c (execute_cfa_program): Likewise.
14078 * dwarf2read.c (abbrev_table_read_table): Likewise.
14079 * gdbarch.sh: Likewise.
14080 * gdbarch.c: Rebuild.
14081 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14082 * interps.c (interp_new): Likewise.
14083 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14084 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14085 * mi/mi-console.c (mi_console_file_new): Likewise.
14086 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14087 * mi/mi-out.c (mi_out_new): Likewise.
14088 * mi/mi-parse.c (mi_parse): Likewise.
14089 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14090 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14091 * observer.c (xalloc_observer_list_node): Likewise.
14092 * regcache.c (regcache_xmalloc_1): Likewise.
14093 * reggroups.c (reggroup_new): Likewise.
14094 (_initialize_reggroup): Likewise.
14095 * registry.c (register_data_with_cleanup): Likewise.
14096 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14097 * ser-base.c (serial_ttystate): Likewise.
14098 * ser-mingw.c (make_pipe_state): Likewise.
14099 * ser-pipe.c (pipe_open): Likewise.
14100 * serial.c (serial_open): Likewise.
14101 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14102 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14103 (tui_alloc_win_info): Likewise.
14104 (tui_add_content_elements): Likewise.
14105 * tui/tui-file.c (tui_file_new): Likewise.
14106 * tui/tui-out.c (tui_out_new): Likewise.
14107 * ui-file.c (mem_file_new): Likewise.
14108 * ui-out.c (push_level): Likewise.
14109 (make_cleanup_ui_out_end): Likewise.
14110 (append_header_to_list): Likewise.
14111 (ui_out_new): Likewise.
14112 * user-regs.c (user_reg_add_builtin): Likewise.
14113
41bf6aca
TT
141142014-01-13 Tom Tromey <tromey@redhat.com>
14115
14116 * defs.h (XZALLOC): Remove.
14117 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14118 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14119 (get_ada_tasks_inferior_data): Likewise.
14120 * auto-load.c (get_auto_load_pspace_data): Likewise.
14121 * auxv.c (get_auxv_inferior_data): Likewise.
14122 * bfd-target.c (target_bfd_reopen): Likewise.
14123 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14124 (deprecated_insert_raw_breakpoint): Likewise.
14125 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14126 * corelow.c (core_open): Likewise.
14127 * darwin-nat.c (darwin_check_new_threads): Likewise.
14128 (darwin_attach_pid): Likewise.
14129 * dummy-frame.c (dummy_frame_push): Likewise.
14130 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14131 * dwarf2loc.c (allocate_piece_closure): Likewise.
14132 * elfread.c (elf_symfile_segments): Likewise.
14133 * eval.c (ptrmath_type_p): Likewise.
14134 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14135 * gdbtypes.c (alloc_type_arch): Likewise.
14136 (alloc_type_instance): Likewise.
14137 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14138 * inf-child.c (inf_child_can_use_agent): Likewise.
14139 * inflow.c (get_inflow_inferior_data): Likewise.
14140 * infrun.c (save_infcall_suspend_state): Likewise.
14141 * jit.c (jit_reader_load): Likewise.
14142 (get_jit_objfile_data): Likewise.
14143 (get_jit_program_space_data): Likewise.
14144 (jit_object_open_impl): Likewise.
14145 (jit_symtab_open_impl): Likewise.
14146 (jit_block_open_impl): Likewise.
14147 (jit_frame_sniffer): Likewise.
14148 * linux-fork.c (add_fork): Likewise.
14149 * maint.c (make_command_stats_cleanup): Likewise.
14150 * objfiles.c (get_objfile_pspace_data): Likewise.
14151 * opencl-lang.c (struct lval_closure): Likewise.
14152 * osdata.c (osdata_start_osdata): Likewise.
14153 * progspace.c (new_address_space): Likewise.
14154 (add_program_space): Likewise.
14155 * remote-sim.c (get_sim_inferior_data): Likewise.
14156 * sh-tdep.c (sh_gdbarch_init): Likewise.
14157 * skip.c (Ignore): Likewise.
14158 (skip_delete_command): Likewise.
14159 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14160 (library_list_start_library): Likewise.
14161 (solib_aix_current_sos): Likewise.
14162 * solib-darwin.c (get_darwin_info): Likewise.
14163 (darwin_current_sos): Likewise.
14164 * solib-dsbt.c (get_dsbt_info): Likewise.
14165 * solib-ia64-hpux.c (new_so_list): Likewise.
14166 (ia64_hpux_get_solib_linkage_addr): Likewise.
14167 * solib-spu.c (append_ocl_sos): Likewise.
14168 (spu_current_sos): Likewise.
14169 * solib-svr4.c (get_svr4_info): Likewise.
14170 (svr4_keep_data_in_core): Likewise.
14171 (library_list_start_library): Likewise.
14172 (svr4_default_sos): Likewise.
14173 (svr4_read_so_list): Likewise.
14174 * solib-target.c (library_list_start_library): Likewise.
14175 (solib_target_current_sos): Likewise.
14176 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14177 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14178 * symfile.c (default_symfile_segments): Likewise.
14179 * target-descriptions.c (tdesc_data_init): Likewise.
14180 (tdesc_create_reg): Likewise.
14181 (struct tdesc_type *): Likewise.
14182 (tdesc_create_vector): Likewise.
14183 (tdesc_set_struct_size): Likewise.
14184 (struct tdesc_type *): Likewise.
14185 (tdesc_free_feature): Likewise.
14186 (tdesc_create_feature): Likewise.
14187 * windows-nat.c (windows_add_thread): Likewise.
14188 (windows_make_so): Likewise.
14189 * xml-support.c (gdb_xml_body_text): Likewise.
14190 (gdb_xml_create_parser_and_cleanup): Likewise.
14191 (xml_process_xincludes): Likewise.
14192 * xml-syscall.c (allocate_syscalls_info): Likewise.
14193 (syscall_create_syscall_desc): Likewise.
14194
5acfdbae
SDJ
141952014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14196
14197 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14198 function, with code from i386_stap_parse_special_token.
14199 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14200 (i386_stap_parse_special_token): Move code to the two functions
14201 above; simplify it.
14202
0000e5cc
PA
142032014-01-09 Pedro Alves <palves@redhat.com>
14204 Hui Zhu <hui@codesourcery.com>
14205
14206 PR gdb/16101
14207 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14208 bp_err_string. Don't mark the location shlib_disabled if the
14209 error thrown wasn't a generic or memory error. Catch errors
14210 thrown while inserting breakpoints in overlayed code. Output
14211 error message of software breakpoints.
14212 * remote.c (remote_insert_breakpoint): If this breakpoint has
14213 target-side commands but this stub doesn't support Z0 packets,
14214 throw NOT_SUPPORTED_ERROR error.
14215 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14216 * target.h (target_insert_breakpoint): Extend comment.
14217 (target_insert_hw_breakpoint): Add comment.
14218
b7ea362b
PA
142192014-01-08 Pedro Alves <palves@redhat.com>
14220
14221 * remote.c (remote_add_thread): Add threads silently if starting
14222 up.
14223 (remote_notice_new_inferior): If in all-stop, and starting up,
14224 don't call notice_new_inferior.
14225 (get_current_thread): New function, factored out from ...
14226 (add_current_inferior_and_thread): ... this. Adjust.
14227 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14228 found any thread, then select the remote's current thread as GDB's
14229 current thread too.
14230
b7bba001
JB
142312014-01-08 Joel Brobecker <brobecker@adacore.com>
14232
14233 * NEWS: Create a new section for the next release branch.
14234 Rename the section of the current branch, now that it has
14235 been cut.
14236
16dfbded
JB
142372014-01-08 Joel Brobecker <brobecker@adacore.com>
14238
14239 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14240 * version.in: Bump version to 7.7.50.DATE-cvs.
14241
22c90ac1
YQ
142422014-01-08 Yao Qi <yao@codesourcery.com>
14243
14244 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14245 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14246 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14247
d64ad97c
YQ
142482014-01-08 Yao Qi <yao@codesourcery.com>
14249
14250 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14251 return value of bfd_get_filename to symbol_file_add_from_bfd.
14252
f93ba80c
PM
142532014-01-08 Pierre Muller <muller@sourceware.org>
14254
14255 Fix PR16201.
14256 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14257 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14258 to prim_record_mininal_symbol_and_info.
14259 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14260 in call to prim_record_minimal_symbol_and_info.
14261 (read_pe_exported_syms): Set index field of section_data.
14262
a4d9ba85
AP
142632014-01-07 Andrew Pinski <apinski@cavium.com>
14264
14265 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14266 * features/aarch64.c: Regenerate.
14267
1b67eb02
AS
142682014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14269
14270 * target.c (return_null): Define.
14271 (update_current_target): Use it instead of return_zero for
14272 functions that return a pointer.
14273
5e3f4fab
EBM
142742014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14275
14276 * source.c (add_path): Fix check for duplicated paths in the previously
14277 included paths.
14278
e2616788
HK
142792014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14280
14281 * ada-lang.c: Remove duplicated include statements.
14282 * alphabsd-nat.c: Ditto.
14283 * amd64-darwin-tdep.c: Ditto.
14284 * amd64fbsd-nat.c: Ditto.
14285 * auto-load.c: Ditto.
14286 * ax-gdb.c: Ditto.
14287 * breakpoint.c: Ditto.
14288 * dbxread.c: Ditto.
14289 * fork-child.c: Ditto.
14290 * gdb_usleep.c: Ditto.
14291 * i386-darwin-tdep.c: Ditto.
14292 * i386fbsd-nat.c: Ditto.
14293 * infcmd.c: Ditto.
14294 * inferior.c: Ditto.
14295 * jv-lang.c: Ditto.
14296 * linux-nat.c: Ditto.
14297 * linux-tdep.c: Ditto.
14298 * m68kbsd-nat.c: Ditto.
14299 * m68klinux-nat.c: Ditto.
14300 * microblaze-tdep.c: Ditto.
14301 * mips-linux-tdep.c: Ditto.
14302 * mn10300-tdep.c: Ditto.
14303 * nto-tdep.c: Ditto.
14304 * opencl-lang.c: Ditto.
14305 * osdata.c: Ditto.
14306 * printcmd.c: Ditto.
14307 * regcache.c: Ditto.
14308 * remote-m32r-sdi.c: Ditto.
14309 * remote.c: Ditto.
14310 * symfile.c: Ditto.
14311 * symtab.c: Ditto.
14312 * tilegx-linux-nat.c: Ditto.
14313 * tilegx-tdep.c: Ditto.
14314 * tracepoint.c: Ditto.
14315 * valops.c: Ditto.
14316 * vaxbsd-nat.c: Ditto.
14317 * windows-nat.c: Ditto.
14318 * xtensa-tdep.c: Ditto.
14319
bd1f7788
YQ
143202014-01-07 Yao Qi <yao@codesourcery.com>
14321
14322 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14323
79301218
JB
143242014-01-07 Yao Qi <yao@codesourcery.com>
14325 Joel Brobecker <brobecker@adacore.com>
14326
14327 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14328 (pdc_write_regs): Likewise.
14329 (fetch_regs_kernel_thread): Likewise.
14330 (store_regs_kernel_thread): Likewise.
14331
143322014-01-07 Joel Brobecker <brobecker@adacore.com>
14333
14334 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14335 tagged type objects to their actual type.
14336
8e355c5d
JB
143372014-01-07 Joel Brobecker <brobecker@adacore.com>
14338
14339 * ada-valprint.c (print_field_values): Add "language" parameter.
14340 Update calls to print_field_values and print_variant_part.
14341 Pass new parameter "language" in call to val_print instead
14342 of "current_language". Replace call to ada_val_print by call
14343 to val_print.
14344 (print_variant_part): Add "language" parameter.
14345 (ada_val_print_struct_union): Update call to print_field_values.
14346
4fbf5aa5
JB
143472014-01-07 Joel Brobecker <brobecker@adacore.com>
14348
14349 * ada-valprint.c (ui_memcpy): Delete.
14350 (ada_print_floating): Update documentation. Add empty line
14351 between between function documentation and implementation.
14352 Delete variable "buffer". Use ui_file_xstrdup in place of
14353 ui_file_put. Minor adjustments following this change.
14354
71855601
JB
143552014-01-07 Joel Brobecker <brobecker@adacore.com>
14356
14357 * ada-valprint.c (ada_val_print_string): New function,
14358 extracted from ada_val_print_array.
14359 (ada_val_print_array): Replace extracted code by call
14360 to ada_val_print_string followed by a return. Move
14361 "else" branch to the function's top block.
14362
4eb27a30
JB
143632014-01-07 Joel Brobecker <brobecker@adacore.com>
14364
14365 * ada-valprint.c (ada_val_print_array): Move implementation
14366 down. Rename parameter "offset" and "val" into "offset_aligned"
14367 and "original_value" respectively. Add parameter "offset".
14368
34b27950
JB
143692014-01-07 Joel Brobecker <brobecker@adacore.com>
14370
14371 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14372 re-organizing the code. Change the "???" message printed
14373 when target type is a TYPE_CODE_UNDEF into
14374 "<ref to undefined type>".
14375
079e4591
JB
143762014-01-07 Joel Brobecker <brobecker@adacore.com>
14377
14378 * ada-valprint.c (print_record): Delete, implementation inlined...
14379 (ada_val_print_struct_union): ... here. Remove call to
14380 ada_check_typedef in inlined implementation.
14381
8004dfd1
JB
143822014-01-07 Joel Brobecker <brobecker@adacore.com>
14383
14384 * ada-valprint.c (ada_val_print_gnat_array): New function,
14385 extracted from ada_val_print_1;
14386 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14387 (ada_val_print_flt, ada_val_print_struct_union)
14388 (ada_val_print_ref): Likewise.
14389 (ada_val_print_1): Delete variables i and elttype.
14390 Replace extracted-out code by call to corresponding
14391 new functions.
14392
760a2db0
JB
143932014-01-07 Joel Brobecker <brobecker@adacore.com>
14394
14395 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14396
3a92c861
JB
143972014-01-07 Joel Brobecker <brobecker@adacore.com>
14398
14399 * ada-valprint.c (ada_val_print_1): Replace calls to
14400 ada_val_print_1 by calls to val_print.
14401
cd1630f9
JB
144022014-01-07 Joel Brobecker <brobecker@adacore.com>
14403
14404 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14405 Update calls to self accordingly. Replace calls to c_val_print
14406 by calls to val_print.
14407
bdf779a0
JB
144082014-01-07 Joel Brobecker <brobecker@adacore.com>
14409
14410 * ada-valprint.c (print_record): Delete declaration.
14411 (adjust_type_signedness, ada_val_print_1): Likewise.
14412 (ada_val_print): Move function implementation down.
14413 (print_variant_part, print_field_values, print_record):
14414 Move function implementation up.
14415
c0d48811
JB
144162014-01-07 Joel Brobecker <brobecker@adacore.com>
14417
14418 * python/py-type.c (typy_get_name): New function.
14419 (type_object_getset): Add entry for attribute "name".
14420 * NEWS: Add entry mentioning this new attribute.
14421
c26e9cbb
YQ
144222014-01-07 Yao Qi <yao@codesourcery.com>
14423
14424 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14425 statement.
14426
0cc6f43d
YQ
144272014-01-07 Yao Qi <yao@codesourcery.com>
14428
14429 * gnu-nat.c (info_port_rights): Add qualifier const to
14430 argument args.
14431
eec03155
YQ
144322014-01-07 Yao Qi <yao@codesourcery.com>
14433
14434 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14435
f04a82ef
YQ
144362014-01-07 Yao Qi <yao@codesourcery.com>
14437
14438 * gnu-nat.c (make_inf) Update declaration.
14439 (make_inf): Make it static.
14440 (inf_set_traced): Likewise.
14441 (inf_port_to_thread, inf_task_died_status): Likewise.
14442
d57dda0a
YQ
144432014-01-07 Yao Qi <yao@codesourcery.com>
14444
14445 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14446
3aa8c969
YQ
144472014-01-07 Yao Qi <yao@codesourcery.com>
14448
14449 * gnu-nat.c (_initialize_gnu_nat): Declare.
14450
94123b4f
YQ
144512014-01-07 Yao Qi <yao@codesourcery.com>
14452
14453 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14454 'enum bfd_endian'.
14455 (struct gdbarch_info) <byte_order>: Change type to
14456 'enum bfd_endian'.
14457 <byte_order_for_code>: Likewise.
14458 * gdbarch.c, gdbarch.h: Regenerated.
14459
dc81d70a
TT
144602014-01-06 Sasha Smundak <asmundak@google.com>
14461
14462 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14463
cc2f3c35
TT
144642014-01-06 Tom Tromey <tromey@redhat.com>
14465
14466 * doublest.c (convert_doublest_to_floatformat): Use const, not
14467 CONST.
14468 * somread.c (som_symtab_read): Likewise.
14469
adcf2eed
HZ
144702014-01-07 Hui Zhu <hui@codesourcery.com>
14471
14472 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14473 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14474 (gdb_bfd_fopen): Ditto.
14475 (gdb_bfd_openr): Ditto.
14476 (gdb_bfd_openw): Ditto.
14477 (gdb_bfd_openr_iovec): Ditto.
14478 (gdb_bfd_fdopenr): Ditto.
14479 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14480 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14481 with xstrdup.
14482 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14483 with xstrdup.
14484 * symfile-mem.c (symbol_file_add_from_memory): Removed
14485 gdb_bfd_stash_filename.
14486
50722198
DE
144872014-01-03 Doug Evans <dje@google.com>
14488
14489 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14490 output.
14491
2fa4b862
JB
144922014-01-01 Joel Brobecker <brobecker@adacore.com>
14493
14494 Update year range in copyright notice of all files.
14495
28498c42
JB
144962014-01-01 Joel Brobecker <brobecker@adacore.com>
14497
14498 * top.c (print_gdb_version): Set copyright year to 2014.
14499
7b6e1046
JB
145002014-01-01 Joel Brobecker <brobecker@adacore.com>
14501
14502 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14503
df96af55 14504For older changes see ChangeLog-2013.
c906108c
SS
14505\f
14506Local Variables:
14507mode: change-log
14508left-margin: 8
14509fill-column: 74
14510version-control: never
57da7796 14511coding: utf-8
c906108c 14512End:
This page took 3.476055 seconds and 4 git commands to generate.