infrun.c: add for_each_just_stopped_thread
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-15 Pedro Alves <palves@redhat.com>
2
3 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
4 (delete_thread_infrun_breakpoints): New function, with parts
5 salvaged from delete_step_resume_breakpoint_callback.
6 (delete_step_thread_step_resume_breakpoint): Delete.
7 (for_each_just_stopped_thread_callback_func): New typedef.
8 (for_each_just_stopped_thread): New function.
9 (delete_just_stopped_threads_infrun_breakpoints): New function.
10 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
11 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
12 ... this. Adjust.
13 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
14
15 2014-10-15 Pedro Alves <palves@redhat.com>
16
17 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
18 trying to step past a non-steppable watchpoint.
19 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
20 field.
21 * infrun.c (struct step_over_info): Add new field
22 'nonsteppable_watchpoint_p' and adjust comments.
23 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
24 Adjust.
25 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
26 (stepping_past_nonsteppable_watchpoint): New function.
27 (step_over_info_valid_p): Also return true if stepping past a
28 nonsteppable watchpoint.
29 (proceed): Adjust call to set_step_over_info. Remove reference to
30 init_infwait_state.
31 (init_wait_for_inferior): Remove reference to init_infwait_state.
32 (waiton_ptid): Delete global.
33 (struct execution_control_state)
34 <stepped_after_stopped_by_watchpoint>: Delete field.
35 (wait_for_inferior, fetch_inferior_event): Always pass
36 minus_one_ptid to target_wait.
37 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
38 field.
39 (init_infwait_state): Delete function.
40 (handle_inferior_event): Remove infwait_state handling.
41 (handle_signal_stop) <watchpoints handling>: Adjust after
42 stepped_after_stopped_by_watchpoint removal. Don't remove
43 breakpoints here nor set infwait_state. Set the thread's
44 stepping_over_watchpoint flag, and call keep_going instead.
45 (keep_going): Handle stepping_over_watchpoint. Adjust
46 set_step_over_info calls.
47 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
48 function.
49
50 2014-10-15 Pedro Alves <palves@redhat.com>
51
52 * infrun.c (step_over_info_valid_p): New function.
53 (resume): Use step_over_info_valid_p instead of checking the
54 threads's trap_expected flag.
55
56 2014-10-15 Doug Evans <dje@google.com>
57 Walfred Tedeschi <walfred.tedeschi@intel.com>
58
59 PR python/17364
60 * python/lib/gdb/__init__.py (packages): Add "printer".
61 * python/lib/gdb/command/bound_registers.py: Moved to ...
62 * python/lib/gdb/printer/bound_registers.py: ... here.
63 Add printer to global set of builtin printers. Rename printer from
64 "bound" to "mpx_bound128".
65 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
66 registered as global "builtin" printer.
67 (add_builtin_pretty_printer): New function.
68 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
69 gdb/printer/__init__.py.
70
71 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
72
73 * Makefile.in (SFILES): Remove d-support.c.
74 (COMMON_OBS): Remove d-support.o.
75 * d-lang.h (d_parse_symbol): Remove declaration.
76 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
77 * d-support.c: Remove file.
78
79 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
80
81 * gdb/infrun.c (process_event_stop_test): Apply
82 gdbarch_addr_bits_remove to longjmp resume address.
83
84 2014-10-15 Pedro Alves <palves@redhat.com>
85
86 * regformats/microblaze.dat: Delete file.
87
88 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
89
90 * features/Makefile (microblaze-expedite): Replace pc with rpc.
91 * regformats/microblaze-with-stack-protect.dat: Regenerate.
92
93 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
94
95 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
96 as non-trivial.
97
98 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
99
100 PR c++/13403
101 PR c++/15154
102 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
103 with qualified args.
104
105 2014-10-14 Joel Brobecker <brobecker@adacore.com>
106
107 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
108 of the case where the second operand is a pointer.
109 <BINOP_SUB>: Likewise.
110
111 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
112
113 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
114 only if it is not NULL.
115 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
116 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
117 (struct probe_ops) <clear_semaphore>: Likewise.
118 * tracepoint.c (start_tracing): Call set_semaphore only if it is
119 not NULL.
120 (stop_tracing): Likewise, for clear_semaphore.
121
122 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
123
124 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
125 using language_c, instead of current_language.
126
127 2014-10-13 Doug Evans <dje@google.com>
128
129 * python/py-objfile.c (objfpy_initialize): New function.
130 (objfpy_new, objfile_to_objfile_object): Call it.
131 * python/py-progspace.c (pspy_initialize): New function.
132 (pspy_new, pspace_to_pspace_object): Call it.
133
134 2014-10-13 Miroslav Franc <mfranc@redhat.com>
135 Jan Kratochvil <jan.kratochvil@redhat.com>
136
137 Fix "save breakpoints" for "catch" command.
138 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
139 newline.
140
141 2014-10-12 Miroslav Franc <mfranc@redhat.com>
142
143 Fix "save breakpoints" for "disable $bpnum" command.
144 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
145
146 2014-10-10 Pedro Alves <palves@redhat.com>
147
148 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
149 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
150 (HFILES_NO_SRCDIR): Remove solib-irix.h.
151 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
152 and been removed.
153 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
154 * configure.ac: Remove references to IRIX.
155 * configure.host: Add *-*-irix* to the obsolete hosts section.
156 Remove all other references to irix.
157 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
158 Delete files.
159
160 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
161
162 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
163 isn't valid, release the tdesc arch data and return NULL.
164
165 2014-10-10 Pedro Alves <palves@redhat.com>
166
167 * linux-tdep.c: Include observer.h.
168 (linux_inferior_data): New global.
169 (struct linux_info): New structure.
170 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
171 (get_linux_inferior_data): New functions.
172 (linux_vsyscall_range): Rename to ...
173 (linux_vsyscall_range_raw): ... this.
174 (linux_vsyscall_range): New function; handles caching.
175 (_initialize_linux_tdep): Register linux_inferior_data. Install
176 inferior_exit and inferior_appeared observers.
177
178 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
179 Pedro Alves <palves@redhat.com>
180
181 PR symtab/14466
182 * solib-svr4.c (svr4_read_so_list): Rename to ...
183 (svr4_current_sos_1): ... this and change the function comment.
184 (svr4_current_sos): New function.
185
186 2014-10-10 Pedro Alves <palves@redhat.com>
187
188 * arch-utils.c (default_vsyscall_range): New function.
189 * arch-utils.h (default_vsyscall_range): New declaration.
190 * gdbarch.sh (vsyscall_range): New hook.
191 * gdbarch.h, gdbarch.c: Regenerate.
192 * linux-tdep.c (linux_vsyscall_range): New function.
193 (linux_init_abi): Install linux_vsyscall_range as
194 vsyscall_range gdbarch hook.
195 * memrange.c (address_in_mem_range): New function.
196 * memrange.h (address_in_mem_range): New declaration.
197 * symfile-mem.c (find_vdso_size): Delete function.
198 (add_vsyscall_page): Use gdbarch_vsyscall_range.
199
200 2014-10-10 Pedro Alves <palves@redhat.com>
201
202 * infrun.c (normal_stop): Fix typo in comment.
203
204 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
205
206 PR tdep/9390
207 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
208 typo when using logical AND to determine instruction type.
209
210 2014-10-09 Yao Qi <yao@codesourcery.com>
211
212 * infrun.c (handle_signal_stop): Remove local variable
213 'printed'.
214
215 2014-10-08 Stan Shebs <stan@codesourcery.com>
216
217 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
218
219 2014-10-08 Gary Benson <gbenson@redhat.com>
220
221 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
222
223 2014-10-08 Gary Benson <gbenson@redhat.com>
224
225 * common/common-defs.h: Include common-exceptions.h.
226 * exceptions.h: Do not include common-exceptions.h.
227
228 2014-10-08 Gary Benson <gbenson@redhat.com>
229
230 * common/common-defs.h: Include cleanups.h.
231 * common/common-exceptions.c: Do not include cleanups.h.
232 * utils.h: Likewise.
233
234 2014-10-08 Gary Benson <gbenson@redhat.com>
235
236 * ada-lang.c: Do not include exceptions.h.
237 * ada-valprint.c: Likewise.
238 * amd64-tdep.c: Likewise.
239 * auto-load.c: Likewise.
240 * block.c: Likewise.
241 * break-catch-throw.c: Likewise.
242 * breakpoint.c: Likewise.
243 * btrace.c: Likewise.
244 * c-lang.c: Likewise.
245 * cli/cli-cmds.c: Likewise.
246 * cli/cli-interp.c: Likewise.
247 * cli/cli-script.c: Likewise.
248 * completer.c: Likewise.
249 * corefile.c: Likewise.
250 * corelow.c: Likewise.
251 * cp-abi.c: Likewise.
252 * cp-support.c: Likewise.
253 * cp-valprint.c: Likewise.
254 * darwin-nat.c: Likewise.
255 * dwarf2-frame-tailcall.c: Likewise.
256 * dwarf2-frame.c: Likewise.
257 * dwarf2loc.c: Likewise.
258 * dwarf2read.c: Likewise.
259 * eval.c: Likewise.
260 * event-loop.c: Likewise.
261 * event-top.c: Likewise.
262 * f-valprint.c: Likewise.
263 * frame-unwind.c: Likewise.
264 * frame.c: Likewise.
265 * gdbtypes.c: Likewise.
266 * gnu-v2-abi.c: Likewise.
267 * gnu-v3-abi.c: Likewise.
268 * guile/scm-auto-load.c: Likewise.
269 * guile/scm-breakpoint.c: Likewise.
270 * guile/scm-cmd.c: Likewise.
271 * guile/scm-frame.c: Likewise.
272 * guile/scm-lazy-string.c: Likewise.
273 * guile/scm-param.c: Likewise.
274 * guile/scm-symbol.c: Likewise.
275 * guile/scm-type.c: Likewise.
276 * hppa-hpux-tdep.c: Likewise.
277 * i386-tdep.c: Likewise.
278 * inf-loop.c: Likewise.
279 * infcall.c: Likewise.
280 * infcmd.c: Likewise.
281 * infrun.c: Likewise.
282 * interps.c: Likewise.
283 * interps.h: Likewise.
284 * jit.c: Likewise.
285 * linespec.c: Likewise.
286 * linux-nat.c: Likewise.
287 * linux-thread-db.c: Likewise.
288 * m32r-rom.c: Likewise.
289 * main.c: Likewise.
290 * memory-map.c: Likewise.
291 * mi/mi-cmd-break.c: Likewise.
292 * mi/mi-cmd-stack.c: Likewise.
293 * mi/mi-interp.c: Likewise.
294 * mi/mi-main.c: Likewise.
295 * monitor.c: Likewise.
296 * nto-procfs.c: Likewise.
297 * objc-lang.c: Likewise.
298 * p-valprint.c: Likewise.
299 * parse.c: Likewise.
300 * ppc-linux-tdep.c: Likewise.
301 * printcmd.c: Likewise.
302 * probe.c: Likewise.
303 * python/py-auto-load.c: Likewise.
304 * python/py-breakpoint.c: Likewise.
305 * python/py-cmd.c: Likewise.
306 * python/py-finishbreakpoint.c: Likewise.
307 * python/py-frame.c: Likewise.
308 * python/py-framefilter.c: Likewise.
309 * python/py-function.c: Likewise.
310 * python/py-gdb-readline.c: Likewise.
311 * python/py-inferior.c: Likewise.
312 * python/py-infthread.c: Likewise.
313 * python/py-lazy-string.c: Likewise.
314 * python/py-linetable.c: Likewise.
315 * python/py-param.c: Likewise.
316 * python/py-prettyprint.c: Likewise.
317 * python/py-symbol.c: Likewise.
318 * python/py-type.c: Likewise.
319 * python/py-value.c: Likewise.
320 * python/python-internal.h: Likewise.
321 * python/python.c: Likewise.
322 * record-btrace.c: Likewise.
323 * record-full.c: Likewise.
324 * regcache.c: Likewise.
325 * remote-fileio.c: Likewise.
326 * remote-mips.c: Likewise.
327 * remote.c: Likewise.
328 * rs6000-aix-tdep.c: Likewise.
329 * rs6000-nat.c: Likewise.
330 * skip.c: Likewise.
331 * solib-darwin.c: Likewise.
332 * solib-dsbt.c: Likewise.
333 * solib-frv.c: Likewise.
334 * solib-ia64-hpux.c: Likewise.
335 * solib-spu.c: Likewise.
336 * solib-svr4.c: Likewise.
337 * solib.c: Likewise.
338 * spu-tdep.c: Likewise.
339 * stack.c: Likewise.
340 * stap-probe.c: Likewise.
341 * symfile-mem.c: Likewise.
342 * symmisc.c: Likewise.
343 * target.c: Likewise.
344 * thread.c: Likewise.
345 * top.c: Likewise.
346 * tracepoint.c: Likewise.
347 * tui/tui-interp.c: Likewise.
348 * typeprint.c: Likewise.
349 * utils.c: Likewise.
350 * valarith.c: Likewise.
351 * valops.c: Likewise.
352 * valprint.c: Likewise.
353 * value.c: Likewise.
354 * varobj.c: Likewise.
355 * windows-nat.c: Likewise.
356 * xml-support.c: Likewise.
357
358 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
359
360 * mips-tdep.c (add_offset_16): Rewrite to implement what the
361 name implies.
362 (extended_mips16_next_pc): Update accordingly.
363
364 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
365
366 * mips-tdep.c (mips16_instruction_is_compact_branch): New
367 function.
368 (micromips_instruction_is_compact_branch): Likewise.
369 (mips16_scan_prologue): Terminate scanning upon seeing a branch
370 or a compact jump, reaching a jump delay slot, or seeing a
371 second non-prologue instruction.
372 (micromips_scan_prologue): Also terminate scanning upon seeing a
373 compact branch or jump, or reaching a branch or jump delay slot.
374 (mips32_scan_prologue): Terminate scanning upon reaching a branch
375 or jump delay slot, or seeing a second non-prologue instruction.
376 (mips32_instruction_has_delay_slot): Retain instruction
377 examination code only, update arguments accordingly and move
378 instruction fetch pieces to...
379 (mips32_insn_at_pc_has_delay_slot): ... this new function.
380 (micromips_instruction_has_delay_slot): Likewise and to...
381 (micromips_insn_at_pc_has_delay_slot): ... this new function.
382 (mips16_instruction_has_delay_slot): Likewise and to...
383 (mips16_insn_at_pc_has_delay_slot): ... this new function.
384 (mips_single_step_through_delay): Update accordingly.
385 (mips_adjust_breakpoint_address): Likewise.
386
387 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
388
389 * mips-tdep.c (micromips_instruction_has_delay_slot): When
390 !mustbe32 also return 1 for 32-bit instructions.
391 (mips16_instruction_has_delay_slot): Likewise. Add an
392 explanatory comment.
393
394 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
395
396 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
397 symbols special.
398
399 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
400
401 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
402 update comments.
403 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
404 for the breakpoint's address. Don't preinitialize `placed_size'.
405 (insert_bp_location): Set `reqstd_address' rather than
406 `placed_address'.
407 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
408 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
409 address.
410 (bkpt_remove_location): Likewise.
411 (deprecated_insert_raw_breakpoint): Likewise.
412 (deprecated_remove_raw_breakpoint): Likewise.
413 (find_single_step_breakpoint): Likewise.
414 * mem-break.c (default_memory_insert_breakpoint): Use
415 `reqstd_address' for the breakpoint's address. Don't set
416 `placed_address' or `placed_size' if breakpoint contents couldn't
417 have been determined.
418 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
419 the breakpoint's address.
420 (remote_insert_hw_breakpoint): Likewise. Don't set
421 `placed_address' or `placed_size' if breakpoint couldn't have been
422 set.
423 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
424 `reqstd_address' for the breakpoint's address.
425 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
426 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
427 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
428 * microblaze-linux-tdep.c
429 (microblaze_linux_memory_remove_breakpoint): Likewise.
430 * monitor.c (monitor_insert_breakpoint): Likewise.
431 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
432 (procfs_insert_hw_breakpoint): Likewise.
433 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
434 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
435 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
436 * remote-mips.c (mips_insert_breakpoint): Likewise.
437 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
438
439 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
440
441 * valops.c (value_assign): Check for bit field assignments
442 before calling architecture-specific register value
443 conversion functions.
444
445 2014-10-03 Pierre Muller <muller@sourceware.org>
446
447 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
448
449 2014-10-02 Pedro Alves <palves@redhat.com>
450
451 * breakpoint.c (breakpoints_should_be_inserted_now): Use
452 threads_are_executing.
453 * breakpoint.h (breakpoints_should_be_inserted_now): Add
454 describing comment.
455 * gdbthread.h (threads_are_executing): Declare.
456 (handle_signal_stop) <random signals>: Don't print about the
457 signal here if stopping.
458 (end_stepping_range): Don't notify observers here.
459 (normal_stop): Update the thread list. If stopped by a random
460 signal or a stepping range ended, notify observers.
461 * thread.c (threads_executing): New global.
462 (init_thread_list): Clear 'threads_executing'.
463 (set_executing): Set or clear 'threads_executing'.
464 (threads_are_executing): New function.
465 (update_threads_executing): New function.
466 (update_thread_list): Use it.
467
468 2014-10-02 Pedro Alves <palves@redhat.com>
469
470 PR breakpoints/17431
471 * breakpoint.c (update_breakpoints_after_exec): Don't create
472 overlay, longjmp, std terminate nor exception breakpoints here.
473
474 2014-10-02 Pedro Alves <palves@redhat.com>
475
476 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
477 Adjust comments.
478 * inferior.c (find_inferior_for_program_space): Give preference to
479 the current inferior.
480 * inferior.h (find_inferior_for_program_space): Update comment.
481 * progspace.c (switch_to_program_space_and_thread): Prefer the
482 current inferior if it's bound to the program space requested. If
483 the inferior found doesn't have a PID yet, don't bother looking up
484 a thread.
485 * progspace.h (switch_to_program_space_and_thread): Adjust
486 comment.
487 * thread.c (any_thread_of_process, any_live_thread_of_process):
488 Give preference to the current thread.
489
490 2014-10-01 Pedro Alves <palves@redhat.com>
491
492 * breakpoint.c (insert_bp_location): Error out if inserting a
493 software breakpoint at a read-only address.
494 * target.c (memory_xfer_check_region): New function, factored out
495 from ...
496 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
497 ULONGEST.
498 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
499 against the memory region attributes.
500
501 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
502
503 * NEWS: Announce new exit-code field in -list-thread-groups
504 output.
505 * inferior.c (exit_inferior_1): Don't clear exit code.
506 (inferior_appeared): Clear exit code.
507 * mi/mi-main.c (print_one_inferior): Add printing of the exit
508 code.
509
510 2014-10-01 Pedro Alves <palves@redhat.com>
511
512 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
513 GENERATED" along with emacs/vi read-only markers.
514 * regformats/aarch64.dat: Regenerate.
515 * regformats/arm-with-iwmmxt.dat: Regenerate.
516 * regformats/arm-with-neon.dat: Regenerate.
517 * regformats/arm-with-vfpv2.dat: Regenerate.
518 * regformats/arm-with-vfpv3.dat: Regenerate.
519 * regformats/i386/amd64-avx-linux.dat: Regenerate.
520 * regformats/i386/amd64-avx.dat: Regenerate.
521 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
522 * regformats/i386/amd64-avx512.dat: Regenerate.
523 * regformats/i386/amd64-linux.dat: Regenerate.
524 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
525 * regformats/i386/amd64-mpx.dat: Regenerate.
526 * regformats/i386/amd64.dat: Regenerate.
527 * regformats/i386/i386-avx-linux.dat: Regenerate.
528 * regformats/i386/i386-avx.dat: Regenerate.
529 * regformats/i386/i386-avx512-linux.dat: Regenerate.
530 * regformats/i386/i386-avx512.dat: Regenerate.
531 * regformats/i386/i386-linux.dat: Regenerate.
532 * regformats/i386/i386-mmx-linux.dat: Regenerate.
533 * regformats/i386/i386-mmx.dat: Regenerate.
534 * regformats/i386/i386-mpx-linux.dat: Regenerate.
535 * regformats/i386/i386-mpx.dat: Regenerate.
536 * regformats/i386/i386.dat: Regenerate.
537 * regformats/i386/x32-avx-linux.dat: Regenerate.
538 * regformats/i386/x32-avx.dat: Regenerate.
539 * regformats/i386/x32-avx512-linux.dat: Regenerate.
540 * regformats/i386/x32-avx512.dat: Regenerate.
541 * regformats/i386/x32-linux.dat: Regenerate.
542 * regformats/i386/x32.dat: Regenerate.
543 * regformats/microblaze-with-stack-protect.dat: Regenerate.
544 * regformats/mips-dsp-linux.dat: Regenerate.
545 * regformats/mips-linux.dat: Regenerate.
546 * regformats/mips64-dsp-linux.dat: Regenerate.
547 * regformats/mips64-linux.dat: Regenerate.
548 * regformats/nios2-linux.dat: Regenerate.
549 * regformats/rs6000/powerpc-32.dat: Regenerate.
550 * regformats/rs6000/powerpc-32l.dat: Regenerate.
551 * regformats/rs6000/powerpc-64l.dat: Regenerate.
552 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
553 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
554 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
555 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
556 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
557 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
558 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
559 * regformats/s390-linux32.dat: Regenerate.
560 * regformats/s390-linux32v1.dat: Regenerate.
561 * regformats/s390-linux32v2.dat: Regenerate.
562 * regformats/s390-linux64.dat: Regenerate.
563 * regformats/s390-linux64v1.dat: Regenerate.
564 * regformats/s390-linux64v2.dat: Regenerate.
565 * regformats/s390-te-linux64.dat: Regenerate.
566 * regformats/s390x-linux64.dat: Regenerate.
567 * regformats/s390x-linux64v1.dat: Regenerate.
568 * regformats/s390x-linux64v2.dat: Regenerate.
569 * regformats/s390x-te-linux64.dat: Regenerate.
570 * regformats/tic6x-c62x-linux.dat: Regenerate.
571 * regformats/tic6x-c62x.dat: Regenerate.
572 * regformats/tic6x-c64x-linux.dat: Regenerate.
573 * regformats/tic6x-c64x.dat: Regenerate.
574 * regformats/tic6x-c64xp-linux.dat: Regenerate.
575 * regformats/tic6x-c64xp.dat: Regenerate.
576
577 2014-10-01 Pedro Alves <palves@redhat.com>
578
579 * features/Makefile: Update comments.
580 (XMLTOC): List all xml files we build C files from.
581 (clean-cfiles): New rule.
582
583 2014-10-01 Pedro Alves <palves@redhat.com>
584
585 * features/i386/amd64-avx512-linux.c: Regenerate.
586 * features/i386/amd64-avx512.c: Regenerate.
587 * features/i386/x32-avx512-linux.c: Regenerate.
588 * features/i386/x32-avx512.c: Regenerate.
589
590 2014-10-01 Pedro Alves <palves@redhat.com>
591
592 * features/Makefile (WHICH): Remove arm-with-m,
593 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
594
595 2014-10-01 Pedro Alves <palves@redhat.com>
596
597 * features/Makefile (clean): New rule.
598
599 2014-10-01 Pedro Alves <palves@redhat.com>
600
601 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
602 (zmm14h): Add missing end quotes.
603
604 2014-10-01 Pedro Alves <palves@redhat.com>
605
606 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
607 * features/aarch64.c: Regenerate.
608
609 2014-09-30 Don Breazeal <donb@codesourcery.com>
610
611 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
612 code so as to work with follow_fork_inferior.
613 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
614 (inf_ttrace_create_inferior): Remove reference to
615 inf_ttrace_vfork_ppid.
616 (inf_ttrace_attach): Ditto.
617 (inf_ttrace_detach): Ditto.
618 (inf_ttrace_kill): Use current_inferior instead of
619 inf_ttrace_vfork_ppid.
620 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
621 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
622 inferior away from the parent.
623 * infrun.c (follow_fork): Call follow_fork_inferior instead of
624 target_follow_fork.
625 (follow_fork_inferior): New function.
626 (follow_inferior_reset_breakpoints): Make function static.
627 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
628 * linux-nat.c (linux_child_follow_fork): Move target-independent
629 code to infrun.c:follow_fork_inferior.
630
631 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
632
633 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
634 * gdbarch.c: Regenerate.
635 * gdbarch.h: Likewise.
636 * corelow.c (sniff_core_bfd): Drop presence check for deleted
637 gdbarch method 'regset_from_core_section'.
638 (get_core_register_section): Remove handling for the case that
639 regset == NULL and regset_from_core_section is defined.
640 (get_core_registers): Drop check for deleted method.
641 * procfs.c (procfs_do_thread_registers): Adjust comment.
642
643 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
644
645 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
646 (linux_nat_make_corefile_notes): Remove.
647 (linux_target_install_ops): Do not set target method
648 'make_corefile_notes'.
649 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
650 Remove field.
651 (linux_corefile_thread_callback): Instead of args->collect, call
652 linux_collect_thread_registers.
653 (linux_make_corefile_notes): Remove 'collect' parameter. Return
654 NULL unless there is a regset iterator.
655 (linux_make_corefile_notes_1): Remove.
656 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
657 by linux_make_corefile_notes.
658 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
659
660 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
661
662 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
663 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
664 Remove.
665 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
666
667 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
668
669 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
670 (xtensa_iterate_over_regset_sections): New.
671 (xtensa_gdbarch_init): Adjust gdbarch initialization.
672
673 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
674
675 * vax-tdep.c (vax_regset_from_core_section): Remove.
676 (vax_iterate_over_regset_sections): New.
677 (vax_gdbarch_init): Adjust gdbarch initialization.
678
679 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
680
681 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
682 (tilegx_regset_from_core_section): Remove.
683 (tilegx_iterate_over_regset_sections): New.
684 (tilegx_linux_init_abi): Adjust gdbarch initialization.
685
686 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
687
688 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
689 (sparc_iterate_over_regset_sections): New.
690 (sparc32_gdbarch_init): Adjust gdbarch initialization.
691 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
692 targets.
693 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
694 (sparc64fbsd_init_abi): Call fbsd_init_abi.
695 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
696 target method 'make_corefile_notes'.
697
698 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
699
700 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
701 'sizeof_gregset' and 'sizeof_fpregset'.
702 * sh-tdep.c (sh_regset_from_core_section): Remove.
703 (sh_iterate_over_regset_sections): New.
704 (sh_gdbarch_init): Adjust gdbarch initialization.
705 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
706 sizeof_fpregset.
707 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
708 'sizeof_gregset'.
709
710 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
711
712 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
713 (score7_linux_iterate_over_regset_sections): New.
714 (score_gdbarch_init): Adjust gdbarch initialization.
715
716 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
717
718 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
719 FreeBSD targets.
720 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
721 method 'make_corefile_notes'.
722 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
723 (ppcfbsd_regset_from_core_section): Remove.
724 (ppcfbsd_iterate_over_regset_sections): New.
725 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
726 initialization.
727 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
728 (ppcnbsd_iterate_over_regset_sections): New.
729 (ppcnbsd_init_abi): Adjust.
730 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
731 (ppcobsd_iterate_over_regset_sections): New.
732 (ppcobsd_init_abi): Adjust.
733 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
734 (rs6000_aix_iterate_over_regset_sections): New.
735 (rs6000_aix_init_osabi): Adjust.
736
737 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
738
739 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
740 (nios2_regset_from_core_section): Remove.
741 (nios2_iterate_over_regset_sections): New.
742 (nios2_linux_init_abi): Adjust gdbarch initialization.
743
744 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
745
746 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
747 (am33_iterate_over_regset_sections): New.
748 (am33_linux_init_osabi): Adjust gdbarch initialization.
749
750 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
751
752 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
753 (mips_linux_iterate_over_regset_sections): New.
754 (mips_linux_init_abi): Adjust gdbarch initialization.
755 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
756 (mips64obsd_iterate_over_regset_sections): New.
757 (mips64obsd_init_abi): Adjust.
758 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
759 (mipsnbsd_iterate_over_regset_sections): New.
760 (mipsnbsd_init_abi): Adjust.
761
762 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
763
764 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
765 (m88k_iterate_over_regset_sections): New.
766 (m88k_gdbarch_init): Adjust gdbarch initialization.
767
768 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
769
770 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
771 (ia64_linux_iterate_over_regset_sections): New.
772 (ia64_linux_init_abi): Adjust gdbarch initialization.
773
774 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
775
776 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
777 (m68kbsd_iterate_over_regset_sections): New.
778 (m68kbsd_init_abi): Adjust gdbarch initialization.
779 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
780 (m68k_linux_iterate_over_regset_sections): New.
781 (m68k_linux_init_abi): Adjust gdbarch initialization.
782
783 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
784
785 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
786 (m32r_linux_regset_from_core_section): Remove.
787 (m32r_linux_iterate_over_regset_sections): New.
788 (m32r_linux_init_abi): Adjust gdbarch initialization.
789
790 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
791
792 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
793 (amd64obsd_iterate_over_regset_sections): New.
794 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
795 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
796 Remove.
797 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
798 regset_from_core_section initialization.
799 * i386-tdep.c (i386_regset_from_core_section): Remove.
800 (i386_iterate_over_regset_sections): New.
801 (i386_gdbarch_init): Adjust gdbarch initialization.
802 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
803 (i386_iterate_over_regset_sections): New prototype.
804 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
805 Remove.
806 (i386obsd_aout_iterate_over_regset_sections): New.
807 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
808 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
809 targets.
810 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
811 (amd64fbsd_init_abi): Call fbsd_init_abi.
812 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
813 (i386fbsd4_init_abi): Call fbsd_init_abi.
814 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
815 target method 'make_corefile_notes'.
816 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
817
818 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
819
820 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
821 (hppa_hpux_iterate_over_regset_sections): New.
822 (hppa_hpux_init_abi): Adjust gdbarch initialization.
823 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
824 (hppa_linux_iterate_over_regset_sections): New.
825 (hppa_linux_init_abi): Adjust.
826 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
827 (hppanbsd_iterate_over_regset_sections): New.
828 (hppanbsd_init_abi): Adjust.
829 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
830 (hppaobsd_iterate_over_regset_sections): New.
831 (hppaobsd_init_abi): Adjust.
832
833 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
834
835 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
836 (frv_linux_iterate_over_regset_sections): New.
837 (frv_linux_init_abi): Adjust gdbarch initialization.
838
839 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
840
841 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
842 (armbsd_iterate_over_regset_sections): New prototype.
843 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
844 (armbsd_iterate_over_regset_sections): New.
845 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
846 initialization.
847
848 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
849
850 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
851 (alpha_linux_iterate_over_regset_sections): New.
852 (alpha_linux_init_abi): Adjust gdbarch initialization.
853 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
854 prototype.
855 (alphanbsd_iterate_over_regset_sections): New prototype.
856
857 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
858
859 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
860 Remove.
861 (aarch64_linux_iterate_over_regset_sections): New.
862 (aarch64_linux_init_abi): Adjust gdbarch initialization.
863
864 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
865
866 * fbsd-tdep.c: New file.
867 * fbsd-tdep.h: New file.
868 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
869 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
870 (ALLDEPFILES): Add fbsd-tdep.c.
871
872 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
873
874 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
875 parameter.
876 * gdbarch.h: Regenerate.
877 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
878 iterator.
879 (get_core_register_section): Add parameter 'regset' and use it, if
880 set. Add parameter 'min_size' and verify the bfd section size
881 against it.
882 (get_core_registers_cb): Add parameter 'regset' and pass it to
883 get_core_register section. For the "standard" register sections
884 ".reg" and ".reg2", set an appropriate default for human_name.
885 (get_core_registers): Don't abort when the gdbarch has an iterator
886 but no regset_from_core_section. Add NULL/0 for parameters
887 'regset'/'min_size' in calls to get_core_register_section.
888 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
889 'regset' and use it instead of calling the
890 regset_from_core_section gdbarch method.
891 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
892 * i386-tdep.c (i386_supply_xstateregset)
893 (i386_collect_xstateregset, i386_xstateregset): Moved to
894 i386-linux-tdep.c.
895 (i386_regset_from_core_section): Drop handling for .reg-xfp and
896 .reg-xstate.
897 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
898 core file support only if the regset iterator hasn't been set.
899 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
900 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
901 Moved from i386-tdep.c and renamed to *_linux*.
902 (i386_linux_iterate_over_regset_sections): Add regset parameter to
903 each callback invocation. Allow any .reg-xstate size when reading
904 from a core file.
905 * amd64-tdep.c (amd64_supply_xstateregset)
906 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
907 amd64-linux-tdep.c.
908 (amd64_regset_from_core_section): Remove.
909 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
910 install an amd64-specific regset_from_core_section gdbarch method.
911 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
912 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
913 Moved from amd64-tdep.c and renamed to *_linux*.
914 (amd64_linux_iterate_over_regset_sections): Add regset parameter
915 to each callback invocation. Allow any .reg-xstate size when
916 reading from a core file.
917 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
918 (arm_linux_iterate_over_regset_sections): Add regset parameter to
919 each callback invocation.
920 (arm_linux_init_abi): No longer set the regset_from_core_section
921 gdbarch method.
922 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
923 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
924 each callback invocation.
925 (ppc_linux_init_abi): No longer set the regset_from_core_section
926 gdbarch method.
927 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
928 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
929 (s390_regset_from_core_section): Remove.
930 (s390_iterate_over_regset_sections): Add regset parameter to each
931 callback invocation.
932 (s390_gdbarch_init): No longer set the regset_from_core_section
933 gdbarch method. Drop initialization of deleted tdep fields.
934
935 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
936
937 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
938 (amd64_linux_iterate_over_regset_sections): New.
939 (amd64_linux_init_abi_common): Don't install the regset section
940 list, but the new iterator in gdbarch.
941 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
942 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
943 (arm_linux_iterate_over_regset_sections): ...here. New function.
944 (arm_linux_init_abi): Set iterator instead of section list.
945 * corelow.c (get_core_registers_cb): New function, logic moved
946 from...
947 (get_core_registers): ...loop body here. Use new iterator method
948 instead of walking through the regset section list.
949 * gdbarch.sh: Remove 'core_regset_sections'. New method
950 'iterate_over_regset_sections'. New typedef
951 'iterate_over_regset_sections_cb'.
952 * gdbarch.c: Regenerate.
953 * gdbarch.h: Likewise.
954 * i386-linux-tdep.c (i386_linux_regset_sections)
955 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
956 Remove.
957 (i386_linux_iterate_over_regset_sections): New.
958 (i386_linux_init_abi): Don't choose a regset section list, but
959 install new iterator in gdbarch.
960 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
961 (linux_collect_regset_section_cb): New function, logic moved
962 from...
963 (linux_collect_thread_registers): ...loop body here. Use iterator
964 method instead of walking through list.
965 (linux_make_corefile_notes_1): Check for presence of iterator
966 method instead of regset section list.
967 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
968 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
969 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
970 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
971 (ppc_linux_iterate_over_regset_sections): ...here. New function.
972 (ppc_linux_init_abi): Don't choose from above regset section
973 lists, but install new iterator in gdbarch.
974 * regset.h (struct core_regset_section): Remove.
975 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
976 have_linux_v1, have_linux_v2, and have_tdb.
977 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
978 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
979 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
980 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
981 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
982 (s390_iterate_over_regset_sections): ...here. New function. Use
983 new tdep fields.
984 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
985 regset section lists, but install new iterator.
986
987 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
988
989 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
990
991 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
992
993 * progspace.c (print_program_space): Don't prune program spaces
994 before printing them.
995
996 2014-09-25 Pedro Alves <palves@redhat.com>
997
998 * infrun.c (user_visible_resume_ptid): Don't check
999 singlestep_breakpoints_inserted_p.
1000
1001 2014-09-25 Pedro Alves <palves@redhat.com>
1002
1003 * breakpoint.c (should_be_inserted): Add debug output.
1004
1005 2014-09-25 Pedro Alves <palves@redhat.com>
1006
1007 * infrun.c (stepping_past_instruction_at)
1008 (clear_exit_convenience_vars): Point at infrun.h instead of
1009 inferior.h.
1010 (handle_signal_stop): Fix typo.
1011
1012 2014-09-24 Yao Qi <yao@codesourcery.com>
1013
1014 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1015 bitmask.
1016
1017 2014-09-22 Gary Benson <gbenson@redhat.com>
1018
1019 * target.c (target_stop): Updated comment.
1020
1021 2014-09-22 Gary Benson <gbenson@redhat.com>
1022
1023 * target/target.h (target_stop_ptid): Renamed as...
1024 (target_stop_and_wait): New function. Updated comment.
1025 All uses updated.
1026 (target_continue_ptid): Renamed as...
1027 (target_continue_no_signal): New function. Updated comment.
1028 All uses updated.
1029
1030 2014-09-22 Pedro Alves <palves@redhat.com>
1031
1032 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1033 and "auto" merged.
1034 * breakpoint.c (enum ugll_insert_mode): New enum.
1035 (always_inserted_mode): Now a plain boolean.
1036 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1037 (breakpoints_always_inserted_mode): Delete.
1038 (breakpoints_should_be_inserted_now): New function.
1039 (insert_breakpoints): Pass UGLL_INSERT to
1040 update_global_location_list instead of calling
1041 insert_breakpoint_locations manually.
1042 (create_solib_event_breakpoint_1): New, factored out from ...
1043 (create_solib_event_breakpoint): ... this.
1044 (create_and_insert_solib_event_breakpoint): Use
1045 create_solib_event_breakpoint_1 instead of calling
1046 insert_breakpoint_locations manually.
1047 (update_global_location_list): Change parameter type from boolean
1048 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1049 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1050 (update_global_location_list_nothrow): Change parameter type from
1051 boolean to enum ugll_insert_mode.
1052 (_initialize_breakpoint): "breakpoint always-inserted" option is
1053 now a boolean command. Update help text.
1054 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1055 (breakpoints_should_be_inserted_now): New declaration.
1056 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1057 Remove breakpoints_always_inserted_mode check.
1058 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1059 * remote.c (remote_start_remote): Likewise.
1060
1061 2014-09-22 Pedro Alves <palves@redhat.com>
1062
1063 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1064 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1065 Instead, pass UGLL_INSERT to update_global_location_list.
1066 (update_global_location_list): Change parameter type from boolean
1067 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1068 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1069 (create_solib_event_breakpoint_1): New, factored out from ...
1070 (create_solib_event_breakpoint): ... this.
1071 (create_and_insert_solib_event_breakpoint): Use
1072 create_solib_event_breakpoint_1 instead of calling
1073 insert_breakpoint_locations manually.
1074 (update_global_location_list): Handle UGLL_INSERT.
1075
1076 2014-09-22 Pedro Alves <palves@redhat.com>
1077
1078 * breakpoint.c (enum ugll_insert_mode): New enum.
1079 (update_global_location_list)
1080 (update_global_location_list_nothrow): Change parameter type from
1081 boolean to enum ugll_insert_mode. All callers adjusted.
1082
1083 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1084
1085 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1086 SystemTap support in GDB.
1087
1088 2014-09-19 Don Breazeal <donb@codesourcery.com>
1089
1090 * linux-nat.c (linux_handle_extended_wait): Call
1091 linux_ptrace_get_extended_event.
1092 (wait_lwp): Call linux_is_extended_waitstatus.
1093 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1094 and linux_is_extended_waitstatus.
1095 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1096 linux_ptrace_get_extended_event.
1097 (linux_ptrace_get_extended_event): New function.
1098 (linux_is_extended_waitstatus): New function.
1099 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1100 (linux_is_extended_waitstatus): New declarations.
1101
1102 2014-09-19 Yao Qi <yao@codesourcery.com>
1103
1104 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1105 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1106 comments. Callers update.
1107 (dwarf_decode_lines): Likewise.
1108 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1109 comments. Skip the line table if 'lowpc' is greater than
1110 'address'. Don't check
1111 dwarf2_per_objfile->has_section_at_zero.
1112
1113 2014-09-18 Doug Evans <dje@google.com>
1114
1115 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1116 * python/py-symtab.c (stpy_get_producer): New function.
1117 (symtab_object_getset): Add "producer" attribute.
1118
1119 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1120
1121 PR gdb/17384
1122 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1123 (do_captured_read_memory_integer): Remove.
1124 (safe_read_memory_integer): Use target_read_memory directly instead
1125 of catching errors in do_captured_read_memory_integer.
1126
1127 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1128
1129 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1130 not gdb/doc.
1131
1132 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1133
1134 * objc-lang.c (find_implementation_from_class): Remove dead code.
1135
1136 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1137
1138 PR cli/7233
1139 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1140 "fprintf_unfiltered (gdb_stdlog...)".
1141
1142 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1143
1144 PR breakpoints/12526
1145 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1146 val_bitsize.
1147 * breakpoint.c (watch_command_1): Use these fields to retain
1148 bitfield information.
1149 (extract_bitfield_from_watchpoint_value): New function.
1150 (watchpoint_check): Use it.
1151 (update_watchpoint): Use it. Optimize the address and length of a
1152 HW watchpoint pointing to a bitfield.
1153 * value.h (unpack_value_bitfield): New prototype.
1154 * value.c (unpack_value_bitfield): Make extern.
1155
1156 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1157
1158 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1159 x86-dregs.o.
1160 * gnu-nat.c (inf_threads): New function.
1161 * gnu-nat.h (inf_threads_ftype): New typedef.
1162 (inf_threads): New declaration.
1163 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1164 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1165 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1166 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1167 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1168 (i386_gnu_dr_get_control): New functions.
1169 (reg_addr): New structure.
1170 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1171 i386 debugging register hooks.
1172 * NEWS: Mention this.
1173
1174 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1175
1176 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1177 vector data transfer instructions.
1178 (arm_record_coproc_data_proc): Updated.
1179
1180 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1181
1182 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1183 arm_record_exreg_ld_st_insn.
1184 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1185 load/store insns.
1186
1187 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1188
1189 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1190 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1191 processing instructions.
1192
1193 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1194
1195 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1196 for advance SIMD struct ld/st insn.
1197 (thumb2_record_decode_insn_handler): Replace stub handler with
1198 thumb2_record_asimd_struct_ld_st.
1199
1200 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1201
1202 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1203 for asimd, vfp and coprocessor insns.
1204 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1205 and coprocessor insns.
1206 (thumb2_record_coproc_insn): New function.
1207 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1208 handlers.
1209 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1210 opcode 110 insns.
1211
1212 2014-09-13 Doug Evans <xdje42@gmail.com>
1213
1214 * NEWS: Mention new "queue-signal" command.
1215 * infcmd.c (queue_signal_command): New function.
1216 (_initialize_infcmd): Add new queue-signal command.
1217
1218 2014-09-13 Doug Evans <xdje42@gmail.com>
1219
1220 * linux-nat.c (wait_lwp): Add debugging printf.
1221 (linux_nat_wait_1): Ditto.
1222
1223 2014-09-12 Pedro Alves <palves@redhat.com>
1224
1225 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1226 (create_and_insert_solib_event_breakpoint): New functions.
1227 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1228 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1229 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1230 (remove_dbx_link_breakpoint): Delete function.
1231 (insert_dbx_link_bpt_in_file): Use
1232 create_and_insert_solib_event_breakpoint instead of
1233 deprecated_insert_raw_breakpoint.
1234 (procfs_wait): Don't check whether we hit __dbx_link here.
1235 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1236 here.
1237 * solib-irix.c (base_breakpoint): Delete global.
1238 (disable_break): Delete function.
1239 (enable_break): Use create_solib_event_breakpoint
1240 instead of deprecated_insert_raw_breakpoint.
1241 (irix_solib_handle_event): New function.
1242 (irix_solib_create_inferior_hook): Don't run the target or disable
1243 the mapping-complete breakpoint here.
1244 (_initialize_irix_solib): Install irix_solib_handle_event as
1245 so_ops->handle_event hook.
1246
1247 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1248 Ulrich Weigand  <uweigand@de.ibm.com>
1249
1250 PR tdep/17379
1251 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1252 instead of read_memory_unsigned_integer.
1253
1254 2014-09-12 Gary Benson <gbenson@redhat.com>
1255
1256 * nat/linux-waitpid.c: Include common-defs.h.
1257 [GDBSERVER]: Add FIXME comment.
1258 [!GDBSERVER]: Don't include defs.h or signal.h.
1259 (linux_debug) [!GDBSERVER]: Remove empty block.
1260
1261 2014-09-12 Gary Benson <gbenson@redhat.com>
1262
1263 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1264 Don't include defs.h or server.h.
1265
1266 2014-09-12 Gary Benson <gbenson@redhat.com>
1267
1268 * nat/linux-btrace.c: Include common-defs.h.
1269 Don't include defs.h, server.h or gdbthread.h.
1270 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1271
1272 2014-09-12 Gary Benson <gbenson@redhat.com>
1273
1274 * common/agent.c: Include common-defs.h.
1275 Don't include defs.h or server.h.
1276 * common/buffer.c: Likewise.
1277 * common/common-debug.c: Likewise.
1278 * common/common-utils.c: Likewise.
1279 * common/errors.c: Likewise.
1280 * common/filestuff.c: Likewise.
1281 * common/format.c: Likewise.
1282 * common/gdb_vecs.c: Likewise.
1283 * common/print-utils.c: Likewise.
1284 * common/ptid.c: Likewise.
1285 * common/rsp-low.c: Likewise.
1286 * common/signals.c: Likewise.
1287 * common/vec.c: Likewise.
1288 * common/xml-utils.c: Likewise.
1289 * nat/linux-osdata.c: Likewise.
1290 * nat/linux-procfs.c: Likewise.
1291 * nat/linux-ptrace.c: Likewise.
1292 * nat/mips-linux-watch.c: Likewise.
1293 * target/waitstatus.c: Likewise.
1294
1295 2014-09-12 Tom Tromey <tromey@redhat.com>
1296 Gary Benson <gbenson@redhat.com>
1297
1298 * common/common-regcache.h: New file.
1299 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1300 * regcache.h: Include common-regcache.h.
1301 (regcache_read_pc): Don't declare.
1302 * regcache.c (get_thread_regcache_for_ptid): New function.
1303 * nat/linux-btrace.c: Don't include regcache.h.
1304 Include common-regcache.h.
1305 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1306
1307 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1308
1309 * regcache.h (struct regset): Declare.
1310
1311 2014-09-11 Pedro Alves <palves@redhat.com>
1312
1313 PR gdb/17347
1314 * main.c: Include "infrun.h".
1315 (catch_command_errors, catch_command_errors_const): Wait for the
1316 foreground command to complete.
1317 * top.c (maybe_wait_sync_command_done): New function, factored out
1318 from ...
1319 (maybe_wait_sync_command_done): ... here.
1320 * top.h (maybe_wait_sync_command_done): New declaration.
1321
1322 2014-09-11 Tom Tromey <tromey@redhat.com>
1323 Gary Benson <gbenson@redhat.com>
1324
1325 * common/symbol.h: New file.
1326 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1327 * minsyms.c (find_minimal_symbol_address): New function.
1328 * common/agent.c: Include common/symbol.h.
1329 [!GDBSERVER]: Don't include objfiles.h.
1330 (agent_look_up_symbols): Use find_minimal_symbol_address.
1331
1332 2014-09-11 Gary Benson <gbenson@redhat.com>
1333
1334 * target/target.h (target_stop_ptid, target_continue_ptid):
1335 Declare.
1336 * target.c (target_stop_ptid, target_continue_ptid): New
1337 functions.
1338 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1339 (agent_run_command): Always use target_stop_ptid and
1340 target_continue_ptid.
1341
1342 2014-09-11 Tom Tromey <tromey@redhat.com>
1343 Gary Benson <gbenson@redhat.com>
1344
1345 * target/target.h: New file.
1346 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1347 * target.h: Include target/target.h.
1348 (target_read_memory, target_write_memory): Don't declare.
1349 * target.c (target_read_uint32): New function.
1350 * common/agent.c: Include target/target.h.
1351 [!GDBSERVER]: Don't include target.h.
1352 (helper_thread_id): Type changed to uint32_t.
1353 (agent_get_helper_thread_id): Use target_read_uint32.
1354 (agent_run_command): Always use target_read_memory and
1355 target_write_memory.
1356 (agent_capability): Type changed to uint32_t.
1357 (agent_capability_check): Use target_read_uint32.
1358
1359 2014-09-11 Gary Benson <gbenson@redhat.com>
1360
1361 * common/common-debug.h (show_debug_regs): Declare.
1362 * common/common-debug.c (show_debug_regs): Define.
1363 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1364 all uses with show_debug_regs. Replace all uses that considered
1365 debug_hw_points as a multi-value integer with straight boolean
1366 uses.
1367 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1368 with show_debug_regs.
1369 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1370 all uses with show_debug_regs.
1371 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1372 uses with show_debug_regs.
1373
1374 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1375
1376 * findvar.c (address_from_register): Handle targets requiring
1377 a special conversion routine even for plain pointer types.
1378
1379 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1380
1381 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1382 (store_register): Do not call exec_one_dummy_insn.
1383
1384 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1385
1386 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1387 dereference it first. Use value_enclosing_type instead of
1388 value_type.
1389 (ada_array_length): Likewise.
1390
1391 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1392
1393 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1394 Adjust function implementation and documentation accordingly.
1395 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1396 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1397 Update call to ada_value_ptr_subscript.
1398
1399 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1400
1401 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1402 instead of VAL's type.
1403
1404 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1405
1406 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1407
1408 2014-09-09 Doug Evans <xdje42@gmail.com>
1409
1410 PR guile/17367
1411 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1412 last parameter to pkg-config, not first.
1413 * configure.ac: Pass --with-guile provided pkg-config path to
1414 GDB_GUILE_PROGRAM_NAMES.
1415 * configure: Regenerate.
1416
1417 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1418
1419 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1420 Bertazi".
1421
1422 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1423
1424 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1425 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1426 the list of sections determining GDB_OSABI_IRIX.
1427
1428 2014-09-09 James Hogan <james.hogan@imgtec.com>
1429
1430 * MAINTAINERS (Write After Approval): Add "James Hogan".
1431
1432 2014-09-09 James Hogan <james.hogan@imgtec.com>
1433
1434 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1435
1436 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1437
1438 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1439
1440 2014-09-08 Doug Evans <xdje42@gmail.com>
1441
1442 PR 17247
1443 * guile.c: #include <signal.h>.
1444 (_initialize_guile): Block SIGCHLD while initializing Guile.
1445
1446 Replaces the following, which is reverted.
1447
1448 2014-07-26 Doug Evans <xdje42@gmail.com>
1449
1450 PR 17185
1451 * configure.ac: Add check for header gc/gc.h.
1452 Add check for function setenv.
1453 * configure: Regenerate.
1454 * config.in: Regenerate.
1455 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1456
1457 2014-09-08 Doug Evans <xdje42@gmail.com>
1458
1459 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1460 with named constant. Fix style of pointer comparison.
1461 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1462
1463 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1464
1465 PR gdb/17035
1466 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1467 decide whether we display the command on "show user".
1468 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1469 printing command name.
1470 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1471 * cli/cli-decode.c (cli_user_command_p): Create helper function
1472 to verify whether cmd_list_element is a user-defined command.
1473
1474 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1475
1476 PR python/17355
1477 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1478 Fix goto out of TRY_CATCH.
1479
1480 2014-09-06 Doug Evans <xdje42@gmail.com>
1481 Tom Tromey <tromey@redhat.com>
1482
1483 PR 15276
1484 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1485 $_any_caller_matches.
1486 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1487 * python/lib/gdb/function/caller_is.py: New file.
1488
1489 2014-09-06 Doug Evans <xdje42@gmail.com>
1490
1491 * infcmd.c (program_info): Fix typo.
1492
1493 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1494
1495 PR gdb/17235
1496 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1497 'number'. New variable 'has_digit'. Rewrite code to deal with
1498 subexpressions on SDT probes.
1499
1500 2014-09-04 Pedro Alves <palves@redhat.com>
1501
1502 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1503 the input is only one character long.
1504
1505 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1506
1507 PR fortran/17237
1508 * f-valprint.c (f_val_print): Specify the correct print option to
1509 use when printing integer values.
1510
1511 2014-09-04 Gary Benson <gbenson@redhat.com>
1512
1513 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1514 Remove code to cope with LWPs wrapped as PIDs.
1515 Add assertions to ensure no wrapped LWPs are passed.
1516
1517 2014-09-04 Pedro Alves <palves@redhat.com>
1518
1519 * value.c (value_ranges_copy_adjusted): New function, factored out
1520 from ...
1521 (value_contents_copy_raw): ... here.
1522 (unpack_value_bits_as_long_1): Rename back to ...
1523 (unpack_bits_as_long): ... this. Remove 'original_value' and
1524 'result' parameters. Change return type to LONGEST.
1525 (unpack_value_bits_as_long): Delete.
1526 (unpack_value_field_as_long_1): Delete.
1527 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1528 (unpack_value_bitfield): New function.
1529 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1530 (value_fetch_lazy): Use unpack_value_bitfield.
1531 * value.h (unpack_value_bits_as_long): Delete declaration.
1532
1533 2014-09-03 Sasha Smundak <asmundak@google.com>
1534
1535 * python/py-frame.c (frapy_read_register): New function.
1536
1537 2014-09-03 James Hogan <james.hogan@imgtec.com>
1538
1539 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1540 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1541
1542 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1543
1544 PR python/16699
1545 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1546 function.
1547 (add_cmd): Set "completer_handle_brkchars" to NULL.
1548 * cli/cli-decode.h (struct cmd_list_element)
1549 <completer_handle_brkchars>: New field.
1550 * command.h (completer_ftype_void): New typedef.
1551 (set_cmd_completer_handle_brkchars): New prototype.
1552 * completer.c (set_gdb_completion_word_break_characters): New
1553 function.
1554 (complete_line_internal): Call "completer_handle_brkchars"
1555 callback from command.
1556 * completer.h: Include "command.h".
1557 (set_gdb_completion_word_break_characters): New prototype.
1558 * python/py-cmd.c (cmdpy_completer_helper): New function.
1559 (cmdpy_completer_handle_brkchars): New function.
1560 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1561 (cmdpy_init): Set completer_handle_brkchars to
1562 cmdpy_completer_handle_brkchars.
1563
1564 2014-09-03 Gary Benson <gbenson@redhat.com>
1565
1566 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1567 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1568 Loop conditions changed to equivalent form.
1569 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1570 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1571 ALL_DEBUG_ADDRESS_REGISTERS.
1572
1573 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1574
1575 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1576 description fix.
1577
1578 2014-09-02 Doug Evans <dje@google.com>
1579
1580 * typeprint.c (find_global_typedef): Fix comment.
1581
1582 2014-09-02 Gary Benson <gbenson@redhat.com>
1583
1584 * i386-nat.h: Renamed as...
1585 * x86-nat.h: New file. All type, function and variable name
1586 prefixes changed from "i386_" to "x86_". All references updated.
1587 * i386-nat.c: Renamed as...
1588 * x86-nat.c: New file. All type, function and variable name
1589 prefixes changed from "i386_" to "x86_". All references updated.
1590 * common/i386-xstate.h: Renamed as...
1591 * common/x86-xstate.h: New file. All type, function and variable
1592 name prefixes changed from "i386_" to "x86_". All references
1593 updated.
1594 * nat/i386-cpuid.h: Renamed as...
1595 * nat/x86-cpuid.h: New file. All type, function and variable name
1596 prefixes changed from "i386_" to "x86_". All references updated.
1597 * nat/i386-gcc-cpuid.h: Renamed as...
1598 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1599 name prefixes changed from "i386_" to "x86_". All references
1600 updated.
1601 * nat/i386-dregs.h: Renamed as...
1602 * nat/x86-dregs.h: New file. All type, function and variable name
1603 prefixes changed from "i386_" to "x86_". All references updated.
1604 * nat/i386-dregs.c: Renamed as...
1605 * nat/x86-dregs.c: New file. All type, function and variable name
1606 prefixes changed from "i386_" to "x86_". All references updated.
1607
1608 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1609
1610 * varobj.c (_initialize_varobj): Move to the end of file.
1611
1612 2014-08-29 Gary Benson <gbenson@redhat.com>
1613
1614 * common/common-exceptions.h: New file.
1615 * common/common-exceptions.c: Likewise.
1616 * Makefile.in (SFILES): Add common/common-exceptions.c.
1617 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1618 (COMMON_OBS): Add common-exceptions.o.
1619 (common-exceptions.o): New rule.
1620 * exceptions.h (common-exceptions.h): Include.
1621 (gdb_setjmp.h): Do not include.
1622 (return_reason): Moved to common-exceptions.h.
1623 (enum return_reason): Likewise.
1624 (RETURN_MASK): Likewise.
1625 (typedef return_mask): Likewise.
1626 (enum errors): Likewise.
1627 (struct gdb_exception): Likewise.
1628 (exceptions_state_mc_init): Likewise.
1629 (exceptions_state_mc_action_iter): Likewise.
1630 (exceptions_state_mc_action_iter_1): Likewise.
1631 (TRY_CATCH): Likewise.
1632 (throw_exception): Likewise.
1633 (throw_verror): Likewise.
1634 (throw_vquit): Likewise.
1635 (throw_error): Likewise.
1636 (throw_quit): Likewise.
1637 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1638 (enum catcher_action): Likewise.
1639 (struct catcher): Likewise.
1640 (current_catcher): Likewise.
1641 (catcher_list_size): Likewise.
1642 (exceptions_state_mc_init): Likewise.
1643 (catcher_pop): Likewise.
1644 (exceptions_state_mc): Likewise.
1645 (exceptions_state_mc_action_iter): Likewise.
1646 (exceptions_state_mc_action_iter_1): Likewise.
1647 (throw_exception): Likewise.
1648 (exception_messages): Likewise.
1649 (exception_messages_size): Likewise.
1650 (throw_it): Likewise.
1651 (throw_verror): Likewise.
1652 (throw_vquit): Likewise.
1653 (throw_error): Likewise.
1654 (throw_quit): Likewise.
1655 (prepare_to_throw_exception): New function.
1656
1657 2014-08-29 Gary Benson <gbenson@redhat.com>
1658
1659 * common/gdb_setjmp.h: New file.
1660 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1661 * configure.ac: Move sigsetjmp check...
1662 * common/common.m4: ...here.
1663 * configure: Regenerate.
1664 * cp-support.c (SIGJMP_BUF): Delete.
1665 (SIGSETJMP): Likewise.
1666 (SIGLONGJMP): Likewise.
1667 * exceptions.h (gdb_setjmp.h): Include.
1668 (setjmp.h): Do not include.
1669 (EXCEPTIONS_SIGJMP_BUF): Delete.
1670 (EXCEPTIONS_SIGSETJMP): Likewise.
1671 (EXCEPTIONS_SIGLONGJMP): Likewise.
1672 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1673 from gdb_setjmp.h.
1674 * exceptions.c: Likewise.
1675
1676 2014-08-29 Gary Benson <gbenson@redhat.com>
1677
1678 * cleanups.h: Moved to...
1679 * common/cleanups.h: New file.
1680 * cleanups.c: Moved to...
1681 * common/cleanups.c: New file. Include common-defs.h and
1682 cleanups.h. Do not include defs.h.
1683 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1684 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1685 (cleanups.o): New rule.
1686
1687 2014-08-29 Gary Benson <gbenson@redhat.com>
1688
1689 * common/errors.h (internal_warning): New declaration.
1690 (internal_vwarning): Likewise.
1691 * common/errors.c (internal_warning): New function.
1692 * utils.h (internal_warning): Don't declare.
1693 (internal_vwarning): Likewise.
1694 * utils.c (internal_warning): Removed.
1695
1696 2014-08-29 Gary Benson <gbenson@redhat.com>
1697
1698 * main.c (captured_main): Use warning during startup.
1699 Prefix startup warning messages with command name.
1700
1701 2014-08-29 Gary Benson <gbenson@redhat.com>
1702
1703 * main.c (captured_main): Handle usage errors with error.
1704
1705 2014-08-29 Gary Benson <gbenson@redhat.com>
1706
1707 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1708 exit pair with a call to error. Wrap the message with _().
1709
1710 2014-08-29 Gary Benson <gbenson@redhat.com>
1711
1712 * main.c (captured_main): Replace a fprintf/exit
1713 pair with a call to error. Wrap the message with _().
1714
1715 2014-08-29 Gary Benson <gbenson@redhat.com>
1716
1717 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1718 pairs with calls to error. Wrap the message with _().
1719
1720 2014-08-29 Gary Benson <gbenson@redhat.com>
1721
1722 * utils.c (vwarning): Protect calls to target_terminal_ours
1723 and wrap_here.
1724
1725 2014-08-29 Gary Benson <gbenson@redhat.com>
1726
1727 * exceptions.c (print_flush): Protect calls to
1728 target_terminal_ours and wrap_here.
1729
1730 2014-08-29 Gary Benson <gbenson@redhat.com>
1731
1732 * utils.h (filtered_printing_initialized): New declaration.
1733 * utils.c (abort_with_message): New function.
1734 (internal_vproblem): Use abort_with_message for first level
1735 recursive internal problems, and if gdb_stderr is not set up.
1736 Protect calls to target_terminal_ours, begin_line and query.
1737
1738 2014-08-28 Doug Evans <dje@google.com>
1739
1740 * symtab.c (in_prologue): Move definition to better spot.
1741 (skip_prologue_using_sal): Ditto.
1742
1743 2014-08-28 Doug Evans <dje@google.com>
1744
1745 * symtab.c (find_function_start_sal): Move definition to better spot.
1746
1747 2014-08-28 Yao Qi <yao@codesourcery.com>
1748
1749 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1750 found_stack_adjust in forward scan. Remove condition check
1751 on found_stack_adjust which is always true. Indent the code.
1752
1753 2014-08-28 Yao Qi <yao@codesourcery.com>
1754
1755 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1756 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1757 (dwarf_decode_lines): Remove argument
1758 want_line_info. Remove condition check on want_line_info.
1759 Callers update.
1760
1761 2014-08-27 Doug Evans <dje@google.com>
1762
1763 * dwarf2read.c (dwarf_record_line): Fix typo.
1764
1765 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1766
1767 * target.h (struct target_ops::to_terminal_save_ours): Remove
1768 declaration.
1769 (target_terminal_save_ours): Remove macro.
1770 * target-delegates.c: Regenerate.
1771 * inf-child.c (inf_child_target): Don't set the nonexistent
1772 field to_terminal_save_ours.
1773 * inferior.h (child_terminal_save_ours): Remove declaration.
1774 * terminal.h (gdb_save_tty_state): New declaration.
1775 * inflow.c (child_terminal_save_ours): Rename to ...
1776 (gdb_save_tty_state): ... this.
1777 * tui/tui.c: Include terminal.h.
1778 (tui_enable): Use gdb_save_tty_state instead of
1779 target_terminal_save_ours.
1780 (tui_disable): Likewise.
1781
1782 2014-08-25 Doug Evans <dje@google.com>
1783
1784 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1785 Pass NULL instead of 0 for context pointer.
1786
1787 2014-08-25 Yao Qi <yao@codesourcery.com>
1788
1789 * dwarf2read.c: Fix grammatical error.
1790
1791 2014-08-24 Yao Qi <yao@codesourcery.com>
1792
1793 * dwarf2read.c (scan_partial_symbols): Update comments.
1794 Rename argument 'need_pc' with 'set_addrmap'.
1795 (add_partial_namespace): Rename argument 'need_pc' with
1796 'set_addrmap'.
1797 (add_partial_module): Likewise.
1798 (add_partial_subprogram): Likewise. Update comments.
1799 (dwarf2_name): Fix typo.
1800
1801 2014-08-22 Doug Evans <dje@google.com>
1802
1803 PR 17276
1804 * dwarf2read.c (dwarf_record_line_p): New function.
1805 (dwarf_decode_lines_1): Ignore subsequent line number entries
1806 for the same line if any entry had a non-zero discriminator.
1807
1808 2014-08-22 Doug Evans <dje@google.com>
1809
1810 * buildsym.h (record_line_ftype): New typedef.
1811 (record_line): Use it.
1812 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1813 (dwarf_decode_lines_1): Call them.
1814
1815 2014-08-22 Yao Qi <yao@codesourcery.com>
1816
1817 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1818 (ctf_end): Remove code.
1819
1820 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1821
1822 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1823 (linux_make_corefile_notes): call update_thread_list, protected against
1824 exceptions.
1825
1826 2014-08-21 Pedro Alves <palves@redhat.com>
1827
1828 * infcmd.c (attach_command): Remove comment.
1829
1830 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1831
1832 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1833 unsigned LONGEST to ULONGEST.
1834
1835 2014-08-20 Pedro Alves <palves@redhat.com>
1836
1837 * Makefile.in (check-read1): New rule.
1838
1839 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1840
1841 * value.c (value_from_contents_and_address): Strip resolved_type's
1842 typedef layers before checking its TYPE_DATA_LOCATION.
1843
1844 2014-08-20 Pedro Alves <palves@redhat.com>
1845
1846 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1847
1848 2014-08-20 Yao Qi <yao@codesourcery.com>
1849
1850 * amd64-tdep.c (amd64_classify): Add a blank line after the
1851 example. Move "*/" to a new line.
1852 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1853 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1854 * dwarf2read.c (psymtab_include_file_name): Likewise.
1855
1856 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1857 Pedro Alves <palves@redhat.com>
1858
1859 PR symtab/14604
1860 PR symtab/14605
1861 * ada-lang.c (coerce_unspec_val_to_type): Use
1862 value_contents_copy_raw.
1863 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1864 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1865 * cp-valprint.c (cp_print_value_fields): Let the common printing
1866 code handle optimized out values.
1867 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1868 * d-valprint.c (dynamic_array_type): Use
1869 value_bits_any_optimized_out.
1870 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1871 check_any_valid fields.
1872 (check_pieced_value_bits): Delete and inline ...
1873 (check_pieced_synthetic_pointer): ... here.
1874 (check_pieced_value_validity): Delete.
1875 (check_pieced_value_invalid): Delete.
1876 (pieced_value_funcs): Remove check_validity and check_any_valid
1877 fields.
1878 (read_pieced_value): Use mark_value_bits_optimized_out.
1879 (write_pieced_value): Switch to use
1880 mark_value_bytes_optimized_out.
1881 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1882 of assuming the whole value is optimized out.
1883 * findvar.c (read_frame_register_value): Remove special handling
1884 of optimized out registers.
1885 (value_from_register): Use mark_value_bytes_optimized_out.
1886 * frame-unwind.c (frame_unwind_got_optimized): Use
1887 mark_value_bytes_optimized_out.
1888 * jv-valprint.c (java_value_print): Adjust.
1889 (java_print_value_fields): Let the common printing code handle
1890 optimized out values.
1891 * mips-tdep.c (mips_print_register): Remove special handling of
1892 optimized out registers.
1893 * opencl-lang.c (lval_func_check_validity): Delete.
1894 (lval_func_check_any_valid): Delete.
1895 (opencl_value_funcs): Remove check_validity and check_any_valid
1896 fields.
1897 * p-valprint.c (pascal_object_print_value_fields): Let the common
1898 printing code handle optimized out values.
1899 * stack.c (read_frame_arg): Remove special handling of optimized
1900 out values. Fetch both VAL and ENTRYVAL before comparing
1901 contents. Adjust to value_available_contents_eq rename.
1902 * valprint.c (valprint_check_validity)
1903 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1904 (val_print_array_elements): Adjust.
1905 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1906 (value_bits_any_optimized_out): New function.
1907 (value_entirely_covered_by_range_vector): New function, factored
1908 out from value_entirely_unavailable.
1909 (value_entirely_unavailable): Reimplement.
1910 (value_entirely_optimized_out): New function.
1911 (insert_into_bit_range_vector): New function, factored out from
1912 mark_value_bits_unavailable.
1913 (mark_value_bits_unavailable): Reimplement.
1914 (struct ranges_and_idx): New struct.
1915 (find_first_range_overlap_and_match): New function, factored out
1916 from value_available_contents_bits_eq.
1917 (value_available_contents_bits_eq): Rename to ...
1918 (value_contents_bits_eq): ... this. Check both unavailable
1919 contents and optimized out contents.
1920 (value_available_contents_eq): Rename to ...
1921 (value_contents_eq): ... this.
1922 (allocate_value_lazy): Remove reference to the old optimized_out
1923 boolean.
1924 (allocate_optimized_out_value): Use
1925 mark_value_bytes_optimized_out.
1926 (require_not_optimized_out): Adjust to check whether the
1927 optimized_out vec is empty.
1928 (ranges_copy_adjusted): New function, factored out from
1929 value_contents_copy_raw.
1930 (value_contents_copy_raw): Also copy the optimized out ranges.
1931 Assert the destination ranges aren't optimized out.
1932 (value_contents_copy): Update comment, remove call to
1933 require_not_optimized_out.
1934 (value_contents_equal): Adjust to check whether the optimized_out
1935 vec is empty.
1936 (set_value_optimized_out, value_optimized_out_const): Delete.
1937 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1938 New functions.
1939 (value_entirely_optimized_out, value_bits_valid): Delete.
1940 (value_copy): Take a VEC copy of the 'optimized_out' field.
1941 (value_primitive_field): Remove special handling of optimized out.
1942 (value_fetch_lazy): Assert that lazy values have no unavailable
1943 regions. Use value_bits_any_optimized_out. Remove some special
1944 handling for optimized out values.
1945 * value.h: Add intro comment about <optimized out> and
1946 <unavailable>.
1947 (struct lval_funcs): Remove check_validity and check_any_valid
1948 fields.
1949 (set_value_optimized_out, value_optimized_out_const): Remove.
1950 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1951 New declarations.
1952 (value_bits_any_optimized_out): New declaration.
1953 (value_bits_valid): Delete declaration.
1954 (value_available_contents_eq): Rename to ...
1955 (value_contents_eq): ... this, and extend comments.
1956
1957 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1958
1959 Fix -fsanitize=address on unreadable inferior strings.
1960 * valprint.c (val_print_string): Fix access before BUFFER.
1961
1962 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1963
1964 * target.c (target_struct_size): Remove.
1965 (target_struct_allocsize): Remove.
1966 (DEFAULT_ALLOCSIZE): Remove.
1967 (target_ops_p): New typedef.
1968 (DEF_VEC_P (target_ops_p)): New vector type.
1969 (target_structs): Change type to VEC (target_ops_p).
1970 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1971 (find_default_run_target): Rewrite for loop following changes to
1972 target_structs.
1973
1974 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1975
1976 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1977 Adjust code accordingly. Adjust function description comment.
1978
1979 2014-08-19 Yao Qi <yao@codesourcery.com>
1980
1981 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1982 types.
1983
1984 2014-08-19 Alan Modra <amodra@gmail.com>
1985
1986 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1987 * config.in: Regenerate.
1988 * configure: Regenerate.
1989
1990 2014-08-19 Tom Tromey <tromey@redhat.com>
1991 Gary Benson <gbenson@redhat.com>
1992
1993 * common/common-debug.h: New file.
1994 * common/common-debug.c: Likewise.
1995 * debug.c: Likewise.
1996 * Makefile.in (SFILES): Add common/common-debug.c.
1997 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1998 (COMMON_OBS): Add common-debug.o and debug.o.
1999 (common-debug.o): New rule.
2000 * common/common-defs.h: Include common-debug.h.
2001 * common/agent.c (debug_agent_printf): New function.
2002 (DEBUG_AGENT): Redefine.
2003 * nat/i386-dregs.c (debug_printf): Undefine.
2004
2005 2014-08-19 Gary Benson <gbenson@redhat.com>
2006
2007 * common/common-defs.h: Include print-utils.h.
2008 * utils.h: Do not include print-utils.h.
2009
2010 2014-08-19 Tom Tromey <tromey@redhat.com>
2011 Gary Benson <gbenson@redhat.com>
2012
2013 * common/common-types.h: New file.
2014 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2015 * common/common-defs.h: Include common-types.h.
2016 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2017 (ULONGEST): Remove.
2018
2019 2014-08-19 Tom Tromey <tromey@redhat.com>
2020 Gary Benson <gbenson@redhat.com>
2021
2022 * common/errors.h: New file.
2023 * common/errors.c: Likewise.
2024 * Makefile.in (SFILES): Add common/errors.c.
2025 (HFILES_NO_SRCDIR): Add common/errors.h.
2026 (COMMON_OBS): Add errors.o.
2027 (errors.o): New rule.
2028 * common/common-defs.h: Include errors.h.
2029 * utils.h (perror_with_name, error, verror, warning, vwarning):
2030 Don't declare.
2031 * common/common-utils.h: (malloc_failure, internal_error):
2032 Likewise.
2033
2034 2014-08-19 Gary Benson <gbenson@redhat.com>
2035
2036 * utils.c (internal_vproblem): Always print the message.
2037
2038 2014-08-18 Doug Evans <dje@google.com>
2039
2040 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2041
2042 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2043
2044 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2045 Return 0 if TYPE is dynamic.
2046 (print_range): Add handling of dynamic ranges.
2047
2048 2014-08-18 Keven Boell <keven.boell@intel.com>
2049 Joel Brobecker <brobecker@adacore.com>
2050
2051 * gdbtypes.h (struct main_type): Add field "data_location".
2052 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2053 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2054 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2055 a dynamic data location.
2056 (resolve_dynamic_type): Add DW_AT_data_location handling.
2057 (copy_recursive, copy_type): Copy the data_location information
2058 when present.
2059 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2060 * value.c (value_from_contents_and_address): Add
2061 DW_AT_data_location handling.
2062
2063 2014-08-18 Keven Boell <keven.boell@intel.com>
2064 Joel Brobecker <brobecker@adacore.com>
2065
2066 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2067 field "get_object_address".
2068 * dwarf2expr.c (execute_stack_op): Add handling for
2069 DW_OP_push_object_address.
2070 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2071 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2072 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2073 (dwarf_expr_get_obj_addr): New function.
2074 (dwarf_expr_ctx_funcs): Add get_object_address field.
2075 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2076 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2077 (dwarf2_evaluate_property): Add parameter "address". Use it.
2078 (needs_get_obj_addr): New function.
2079 (needs_frame_ctx_funcs): Add get_object_address field.
2080 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2081 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2082 (resolve_dynamic_array): Likewise.
2083
2084 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2085
2086 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2087 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2088 fixed value for records and unions for which some GNAT encodings
2089 are present.
2090
2091 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2092
2093 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2094 rewrite to avoid "else if" and "else" constructs. Should be
2095 a no-op in practice.
2096
2097 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2098
2099 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2100 of lexical block.
2101
2102 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2103
2104 PR c++/17132
2105 * eval.c: Update all calls to find_overload_match.
2106 * valarith.c: Likewise.
2107 (value_user_defined_cpp_op, value_user_defined_op): New
2108 argument NOSIDE. Update all callers.
2109 * valops.c (find_overload_match): New argument NOSIDE.
2110 * value.h (find_overload_match): Update signature.
2111
2112 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2113
2114 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2115 'items' methods instead of 'iteritems' method on dictionaries.
2116
2117 2014-08-15 Doug Evans <dje@google.com>
2118
2119 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2120 closer to use.
2121
2122 2014-08-15 Doug Evans <dje@google.com>
2123
2124 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2125
2126 2014-08-15 Doug Evans <dje@google.com>
2127
2128 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2129
2130 2014-08-15 Doug Evans <dje@google.com>
2131
2132 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2133 unused.
2134
2135 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2136
2137 * dcache.h: Include target.h, to avoid compile time warnings.
2138
2139 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2140
2141 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2142 frame_info" partial declaration.
2143 * gdbarch.h: Regenerate.
2144
2145 2014-08-15 Yao Qi <yao@codesourcery.com>
2146
2147 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2148 Add parameter 'decode_for_pst_p'. Callers update.
2149
2150 2014-08-13 Yao Qi <yao@codesourcery.com>
2151
2152 PR build/17104
2153 * configure.ac: Use local variable 'pos'.
2154 * configure: Regenerated.
2155
2156 2014-08-11 Doug Evans <dje@google.com>
2157
2158 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2159 message, it is redundant with "Reading symbols from ..." message.
2160
2161 2014-08-10 Doug Evans <xdje42@gmail.com>
2162
2163 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2164
2165 2014-08-09 Yao Qi <yao@codesourcery.com>
2166
2167 PR remote/9053
2168 * remote.c (remote_xfer_partial): Remove dead code.
2169
2170 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2171
2172 * ia64-linux-tdep.c: Include "regset.h".
2173 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2174 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2175 (ia64_linux_supply_fpregset): New function.
2176 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2177 (ia64_linux_regset_from_core_section): New function.
2178 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2179 method.
2180
2181 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2182
2183 * m68klinux-tdep.c: Include "regset.h".
2184 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2185 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2186 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2187 (m68k_linux_regset_from_core_section): New function.
2188 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2189 method.
2190
2191 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2192
2193 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2194 function. Move logic to...
2195 (tilegx_linux_regmap): ... this new register map.
2196 (tilegx_linux_regset): Refer to register map, replace supply
2197 method by regcache_supply_regset, and add collect method.
2198 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2199 TILEGX_FIRST_EASY_REGNUM.
2200
2201 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2202
2203 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2204 that calls regcache_supply_regset and handles the EPC register
2205 separately. Move main logic to...
2206 (score7_linux_gregmap): ... this new register map.
2207 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2208 (score7_linux_gregset): Refer to register map. Add collect method.
2209 (score7_linux_regset_from_core_section): Replace
2210 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2211 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2212 (struct regset): Delete unused forward declaraction.
2213 (struct pt_regs): Delete structure definition.
2214 (elf_gregset_t): Delete typedef.
2215
2216 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2217
2218 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2219 (nios2_core_regset): Add collect method.
2220
2221 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2222
2223 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2224 platform-independent and don't write to read-only input buffer.
2225 (m32r_linux_collect_gregset): New function.
2226 (m32r_linux_gregset): Add collect method.
2227
2228 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2229
2230 * hppa-linux-tdep.c (greg_map): Rename to...
2231 (hppa_linux_gregmap): ... this. Also convert to
2232 regcache_map_entry format.
2233 (hppa_linux_supply_regset): Delete function.
2234 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2235 (hppa_linux_fpregmap): ... this new register map.
2236 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2237 register map, replace supply method by regcache_supply_regset, and
2238 add collect method regcache_collect_regset.
2239
2240 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2241
2242 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2243 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2244 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2245 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2246 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2247 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2248 (frv_linux_supply_gregset): Replace main logic by call to
2249 regcache_supply_regset, but keep clearing gr32-gr63.
2250 (frv_linux_supply_fpregset): Delete function.
2251 (frv_linux_gregset): Refer to appropriate register map and add
2252 regcache_collect_regset as the collect method.
2253 (frv_linux_fpregset): Likewise. Also exchange the supply method
2254 by regcache_supply_regset.
2255
2256 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2257
2258 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2259 by call to alpha_supply_int_regs.
2260 (alpha_linux_collect_gregset): New function.
2261 (alpha_linux_supply_fpregset): Replace logic by call to
2262 alpha_supply_fp_regs.
2263 (alpha_linux_collect_fpregset): New function.
2264 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2265
2266 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2267
2268 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2269 by call to regcache_collect_regset.
2270 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2271 instead of aarch64_linux_supply_gregset/_fpregset.
2272 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2273 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2274 header file instead.
2275 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2276 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2277 functions. Move logic to ...
2278 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2279 register maps.
2280 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2281 refer to new register maps, replace *_regset_from_core by
2282 regcache_supply_regset, and also use regcache_collect_regset.
2283 * aarch64-linux-tdep.h: Include "regset.h".
2284 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2285 Delete prototypes.
2286 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2287 macros, moved from C source file.
2288 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2289 variable declarations.
2290
2291 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2292
2293 * s390-linux-nat.c: Include "regset.h".
2294 (regmap_gregset): Delete macro.
2295 (s390_64_regmap_gregset): New register map for
2296 regcache_supply/_collect_regset.
2297 (s390_64_gregset): New regset.
2298 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2299 (regmap_fpregset): Delete macro.
2300 (s390_native_supply, s390_native_collect): Delete functions.
2301 (supply_gregset, fill_gregset): Replace s390-specific regmap
2302 handling by a call to regcache_supply/_collect_regset.
2303 (supply_fpregset, fill_fpregset): Call regcache_supply/
2304 _collect_regset instead of s390_native_supply/_collect.
2305 (fetch_regset, store_regset): Likewise. Also change the last
2306 parameter to a regset instead of a regmap.
2307 (s390_linux_fetch_inferior_registers)
2308 (390_linux_store_inferior_registers): Adjust last parameter in
2309 calls to fetch_regset and store_regset.
2310 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2311 (s390_gregmap): ... this. Also make static const and convert to
2312 regcache_map_entry format.
2313 (s390x_regmap_gregset): Delete.
2314 (s390_regmap_fpregset): Rename to...
2315 (s390_fpregmap): ... this. Make static const and convert to
2316 regcache_map_entry format.
2317 (s390_regmap_upper, s390_regmap_last_break)
2318 (s390x_regmap_last_break, s390_regmap_system_call)
2319 (s390_regmap_tdb): Likewise.
2320 (s390_supply_regset, s390_collect_regset): Remove functions.
2321 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2322 s390_supply_regset.
2323 (s390_gregset, s390_fpregset, s390_upper_regset)
2324 (s390_last_break_regset, s390x_last_break_regset)
2325 (s390_system_call_regset, s390_tdb_regset): Make global and
2326 replace s390_supply/_collect_regset by regcache_supply/
2327 _collect_regset.
2328 (s390x_gregset): Delete.
2329 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2330 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2331 (s390_regmap_fpregset, s390_regmap_last_break)
2332 (s390x_regmap_last_break, s390_regmap_system_call)
2333 (s390_regmap_tdb): Delete global variable declarations.
2334 (s390_gregset, s390_fpregset, s390_last_break_regset)
2335 (s390x_last_break_regset, s390_system_call_regset)
2336 (s390_tdb_regset): New global variable declarations.
2337
2338 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2339
2340 * regcache.c: Include "regset.h".
2341 (regcache_transfer_regset): New local function.
2342 (regcache_supply_regset, regcache_collect_regset): New functions.
2343 * regcache.h (struct regcache_map_entry): New structure.
2344 (REGCACHE_MAP_SKIP): New enum value.
2345 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2346
2347 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2348
2349 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2350 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2351 (ppc_linux_collect_gregset ): Likewise.
2352 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2353 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2354 (ppc_collect_vrregset): Likewise.
2355 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2356 Likewise.
2357
2358 2014-08-07 Yao Qi <yao@codesourcery.com>
2359
2360 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2361 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2362 * remote.c (remote_read_bytes): Likewise.
2363
2364 2014-08-07 Yao Qi <yao@codesourcery.com>
2365
2366 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2367
2368 2014-08-07 Yao Qi <yao@codesourcery.com>
2369
2370 PR remote/17230
2371 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2372 TARGET_XFER_OK instead of 0.
2373
2374 2014-08-07 Gary Benson <gbenson@redhat.com>
2375
2376 * common/common-defs.h: Include errno.h.
2377 * defs.h: Do not include errno.h.
2378 * ada-typeprint.c: Likewise.
2379 * c-typeprint.c: Likewise.
2380 * core-regset.c: Likewise.
2381 * corefile.c: Likewise.
2382 * corelow.c: Likewise.
2383 * event-loop.c: Likewise.
2384 * f-typeprint.c: Likewise.
2385 * gnu-nat.c: Likewise.
2386 * go32-nat.c: Likewise.
2387 * i386gnu-nat.c: Likewise.
2388 * m2-typeprint.c: Likewise.
2389 * nat/linux-btrace.c: Likewise.
2390 * p-typeprint.c: Likewise.
2391 * procfs.c: Likewise.
2392 * remote-sim.c: Likewise.
2393 * rs6000-nat.c: Likewise.
2394 * target.c: Likewise.
2395 * typeprint.c: Likewise.
2396 * ui-file.c: Likewise.
2397 * valops.c: Likewise.
2398 * valprint.c: Likewise.
2399
2400 2014-08-07 Gary Benson <gbenson@redhat.com>
2401
2402 * common/common-defs.h: Include string.h.
2403 * aarch64-tdep.c: Do not include string.h.
2404 * ada-exp.y: Likewise.
2405 * ada-lang.c: Likewise.
2406 * ada-lex.l: Likewise.
2407 * ada-typeprint.c: Likewise.
2408 * ada-valprint.c: Likewise.
2409 * aix-thread.c: Likewise.
2410 * alpha-linux-tdep.c: Likewise.
2411 * alpha-mdebug-tdep.c: Likewise.
2412 * alpha-nat.c: Likewise.
2413 * alpha-osf1-tdep.c: Likewise.
2414 * alpha-tdep.c: Likewise.
2415 * alphanbsd-tdep.c: Likewise.
2416 * amd64-dicos-tdep.c: Likewise.
2417 * amd64-linux-tdep.c: Likewise.
2418 * amd64-nat.c: Likewise.
2419 * amd64-sol2-tdep.c: Likewise.
2420 * amd64fbsd-tdep.c: Likewise.
2421 * amd64obsd-tdep.c: Likewise.
2422 * arch-utils.c: Likewise.
2423 * arm-linux-nat.c: Likewise.
2424 * arm-linux-tdep.c: Likewise.
2425 * arm-tdep.c: Likewise.
2426 * arm-wince-tdep.c: Likewise.
2427 * armbsd-tdep.c: Likewise.
2428 * armnbsd-nat.c: Likewise.
2429 * armnbsd-tdep.c: Likewise.
2430 * armobsd-tdep.c: Likewise.
2431 * avr-tdep.c: Likewise.
2432 * ax-gdb.c: Likewise.
2433 * ax-general.c: Likewise.
2434 * bcache.c: Likewise.
2435 * bfin-tdep.c: Likewise.
2436 * breakpoint.c: Likewise.
2437 * build-id.c: Likewise.
2438 * buildsym.c: Likewise.
2439 * c-exp.y: Likewise.
2440 * c-lang.c: Likewise.
2441 * c-typeprint.c: Likewise.
2442 * c-valprint.c: Likewise.
2443 * charset.c: Likewise.
2444 * cli-out.c: Likewise.
2445 * cli/cli-cmds.c: Likewise.
2446 * cli/cli-decode.c: Likewise.
2447 * cli/cli-dump.c: Likewise.
2448 * cli/cli-interp.c: Likewise.
2449 * cli/cli-logging.c: Likewise.
2450 * cli/cli-script.c: Likewise.
2451 * cli/cli-setshow.c: Likewise.
2452 * cli/cli-utils.c: Likewise.
2453 * coffread.c: Likewise.
2454 * common/agent.c: Likewise.
2455 * common/buffer.c: Likewise.
2456 * common/buffer.h: Likewise.
2457 * common/common-utils.c: Likewise.
2458 * common/filestuff.c: Likewise.
2459 * common/filestuff.c: Likewise.
2460 * common/format.c: Likewise.
2461 * common/print-utils.c: Likewise.
2462 * common/rsp-low.c: Likewise.
2463 * common/signals.c: Likewise.
2464 * common/vec.h: Likewise.
2465 * common/xml-utils.c: Likewise.
2466 * core-regset.c: Likewise.
2467 * corefile.c: Likewise.
2468 * corelow.c: Likewise.
2469 * cp-abi.c: Likewise.
2470 * cp-name-parser.y: Likewise.
2471 * cp-support.c: Likewise.
2472 * cp-valprint.c: Likewise.
2473 * cris-tdep.c: Likewise.
2474 * d-exp.y: Likewise.
2475 * darwin-nat.c: Likewise.
2476 * dbxread.c: Likewise.
2477 * dcache.c: Likewise.
2478 * demangle.c: Likewise.
2479 * dicos-tdep.c: Likewise.
2480 * disasm.c: Likewise.
2481 * doublest.c: Likewise.
2482 * dsrec.c: Likewise.
2483 * dummy-frame.c: Likewise.
2484 * dwarf2-frame.c: Likewise.
2485 * dwarf2loc.c: Likewise.
2486 * dwarf2read.c: Likewise.
2487 * elfread.c: Likewise.
2488 * environ.c: Likewise.
2489 * eval.c: Likewise.
2490 * event-loop.c: Likewise.
2491 * exceptions.c: Likewise.
2492 * exec.c: Likewise.
2493 * expprint.c: Likewise.
2494 * f-exp.y: Likewise.
2495 * f-lang.c: Likewise.
2496 * f-typeprint.c: Likewise.
2497 * f-valprint.c: Likewise.
2498 * fbsd-nat.c: Likewise.
2499 * findcmd.c: Likewise.
2500 * findvar.c: Likewise.
2501 * fork-child.c: Likewise.
2502 * frame.c: Likewise.
2503 * frv-linux-tdep.c: Likewise.
2504 * frv-tdep.c: Likewise.
2505 * gdb.c: Likewise.
2506 * gdb_bfd.c: Likewise.
2507 * gdbarch.c: Likewise.
2508 * gdbarch.sh: Likewise.
2509 * gdbtypes.c: Likewise.
2510 * gnu-nat.c: Likewise.
2511 * gnu-v2-abi.c: Likewise.
2512 * gnu-v3-abi.c: Likewise.
2513 * go-exp.y: Likewise.
2514 * go-lang.c: Likewise.
2515 * go32-nat.c: Likewise.
2516 * guile/guile.c: Likewise.
2517 * guile/scm-auto-load.c: Likewise.
2518 * hppa-hpux-tdep.c: Likewise.
2519 * hppa-linux-nat.c: Likewise.
2520 * hppanbsd-tdep.c: Likewise.
2521 * hppaobsd-tdep.c: Likewise.
2522 * i386-cygwin-tdep.c: Likewise.
2523 * i386-dicos-tdep.c: Likewise.
2524 * i386-linux-tdep.c: Likewise.
2525 * i386-nto-tdep.c: Likewise.
2526 * i386-sol2-tdep.c: Likewise.
2527 * i386-tdep.c: Likewise.
2528 * i386bsd-tdep.c: Likewise.
2529 * i386gnu-nat.c: Likewise.
2530 * i386nbsd-tdep.c: Likewise.
2531 * i386obsd-tdep.c: Likewise.
2532 * i387-tdep.c: Likewise.
2533 * ia64-libunwind-tdep.c: Likewise.
2534 * ia64-linux-nat.c: Likewise.
2535 * inf-child.c: Likewise.
2536 * inf-ptrace.c: Likewise.
2537 * inf-ttrace.c: Likewise.
2538 * infcall.c: Likewise.
2539 * infcmd.c: Likewise.
2540 * inflow.c: Likewise.
2541 * infrun.c: Likewise.
2542 * interps.c: Likewise.
2543 * iq2000-tdep.c: Likewise.
2544 * irix5-nat.c: Likewise.
2545 * jv-exp.y: Likewise.
2546 * jv-lang.c: Likewise.
2547 * jv-typeprint.c: Likewise.
2548 * jv-valprint.c: Likewise.
2549 * language.c: Likewise.
2550 * linux-fork.c: Likewise.
2551 * linux-nat.c: Likewise.
2552 * lm32-tdep.c: Likewise.
2553 * m2-exp.y: Likewise.
2554 * m2-typeprint.c: Likewise.
2555 * m32c-tdep.c: Likewise.
2556 * m32r-linux-nat.c: Likewise.
2557 * m32r-linux-tdep.c: Likewise.
2558 * m32r-rom.c: Likewise.
2559 * m32r-tdep.c: Likewise.
2560 * m68hc11-tdep.c: Likewise.
2561 * m68k-tdep.c: Likewise.
2562 * m68kbsd-tdep.c: Likewise.
2563 * m68klinux-nat.c: Likewise.
2564 * m68klinux-tdep.c: Likewise.
2565 * m88k-tdep.c: Likewise.
2566 * machoread.c: Likewise.
2567 * macrocmd.c: Likewise.
2568 * main.c: Likewise.
2569 * mdebugread.c: Likewise.
2570 * mem-break.c: Likewise.
2571 * memattr.c: Likewise.
2572 * memory-map.c: Likewise.
2573 * mep-tdep.c: Likewise.
2574 * mi/mi-cmd-break.c: Likewise.
2575 * mi/mi-cmd-disas.c: Likewise.
2576 * mi/mi-cmd-env.c: Likewise.
2577 * mi/mi-cmd-stack.c: Likewise.
2578 * mi/mi-cmd-var.c: Likewise.
2579 * mi/mi-cmds.c: Likewise.
2580 * mi/mi-console.c: Likewise.
2581 * mi/mi-getopt.c: Likewise.
2582 * mi/mi-interp.c: Likewise.
2583 * mi/mi-main.c: Likewise.
2584 * mi/mi-parse.c: Likewise.
2585 * microblaze-rom.c: Likewise.
2586 * microblaze-tdep.c: Likewise.
2587 * mingw-hdep.c: Likewise.
2588 * minidebug.c: Likewise.
2589 * minsyms.c: Likewise.
2590 * mips-irix-tdep.c: Likewise.
2591 * mips-linux-tdep.c: Likewise.
2592 * mips-tdep.c: Likewise.
2593 * mips64obsd-tdep.c: Likewise.
2594 * mipsnbsd-tdep.c: Likewise.
2595 * mipsread.c: Likewise.
2596 * mn10300-linux-tdep.c: Likewise.
2597 * mn10300-tdep.c: Likewise.
2598 * monitor.c: Likewise.
2599 * moxie-tdep.c: Likewise.
2600 * mt-tdep.c: Likewise.
2601 * nat/linux-btrace.c: Likewise.
2602 * nat/linux-osdata.c: Likewise.
2603 * nat/linux-procfs.c: Likewise.
2604 * nat/linux-ptrace.c: Likewise.
2605 * nat/linux-waitpid.c: Likewise.
2606 * nbsd-tdep.c: Likewise.
2607 * nios2-linux-tdep.c: Likewise.
2608 * nto-procfs.c: Likewise.
2609 * nto-tdep.c: Likewise.
2610 * objc-lang.c: Likewise.
2611 * objfiles.c: Likewise.
2612 * opencl-lang.c: Likewise.
2613 * osabi.c: Likewise.
2614 * osdata.c: Likewise.
2615 * p-exp.y: Likewise.
2616 * p-lang.c: Likewise.
2617 * p-typeprint.c: Likewise.
2618 * parse.c: Likewise.
2619 * posix-hdep.c: Likewise.
2620 * ppc-linux-nat.c: Likewise.
2621 * ppc-sysv-tdep.c: Likewise.
2622 * ppcfbsd-tdep.c: Likewise.
2623 * ppcnbsd-tdep.c: Likewise.
2624 * ppcobsd-tdep.c: Likewise.
2625 * printcmd.c: Likewise.
2626 * procfs.c: Likewise.
2627 * prologue-value.c: Likewise.
2628 * python/py-auto-load.c: Likewise.
2629 * python/py-gdb-readline.c: Likewise.
2630 * ravenscar-thread.c: Likewise.
2631 * regcache.c: Likewise.
2632 * registry.c: Likewise.
2633 * remote-fileio.c: Likewise.
2634 * remote-m32r-sdi.c: Likewise.
2635 * remote-mips.c: Likewise.
2636 * remote-notif.c: Likewise.
2637 * remote-sim.c: Likewise.
2638 * remote.c: Likewise.
2639 * reverse.c: Likewise.
2640 * rs6000-aix-tdep.c: Likewise.
2641 * ser-base.c: Likewise.
2642 * ser-go32.c: Likewise.
2643 * ser-mingw.c: Likewise.
2644 * ser-pipe.c: Likewise.
2645 * ser-tcp.c: Likewise.
2646 * ser-unix.c: Likewise.
2647 * serial.c: Likewise.
2648 * sh-tdep.c: Likewise.
2649 * sh64-tdep.c: Likewise.
2650 * shnbsd-tdep.c: Likewise.
2651 * skip.c: Likewise.
2652 * sol-thread.c: Likewise.
2653 * solib-dsbt.c: Likewise.
2654 * solib-frv.c: Likewise.
2655 * solib-osf.c: Likewise.
2656 * solib-som.c: Likewise.
2657 * solib-spu.c: Likewise.
2658 * solib-target.c: Likewise.
2659 * solib.c: Likewise.
2660 * somread.c: Likewise.
2661 * source.c: Likewise.
2662 * sparc-nat.c: Likewise.
2663 * sparc-sol2-tdep.c: Likewise.
2664 * sparc-tdep.c: Likewise.
2665 * sparc64-tdep.c: Likewise.
2666 * sparc64fbsd-tdep.c: Likewise.
2667 * sparc64nbsd-tdep.c: Likewise.
2668 * sparcnbsd-tdep.c: Likewise.
2669 * spu-linux-nat.c: Likewise.
2670 * spu-multiarch.c: Likewise.
2671 * spu-tdep.c: Likewise.
2672 * stabsread.c: Likewise.
2673 * stack.c: Likewise.
2674 * std-regs.c: Likewise.
2675 * symfile.c: Likewise.
2676 * symmisc.c: Likewise.
2677 * symtab.c: Likewise.
2678 * target.c: Likewise.
2679 * thread.c: Likewise.
2680 * tilegx-linux-nat.c: Likewise.
2681 * tilegx-tdep.c: Likewise.
2682 * top.c: Likewise.
2683 * tracepoint.c: Likewise.
2684 * tui/tui-command.c: Likewise.
2685 * tui/tui-data.c: Likewise.
2686 * tui/tui-disasm.c: Likewise.
2687 * tui/tui-file.c: Likewise.
2688 * tui/tui-layout.c: Likewise.
2689 * tui/tui-out.c: Likewise.
2690 * tui/tui-regs.c: Likewise.
2691 * tui/tui-source.c: Likewise.
2692 * tui/tui-stack.c: Likewise.
2693 * tui/tui-win.c: Likewise.
2694 * tui/tui-windata.c: Likewise.
2695 * tui/tui-winsource.c: Likewise.
2696 * typeprint.c: Likewise.
2697 * ui-file.c: Likewise.
2698 * ui-out.c: Likewise.
2699 * user-regs.c: Likewise.
2700 * utils.c: Likewise.
2701 * v850-tdep.c: Likewise.
2702 * valarith.c: Likewise.
2703 * valops.c: Likewise.
2704 * valprint.c: Likewise.
2705 * value.c: Likewise.
2706 * varobj.c: Likewise.
2707 * vax-tdep.c: Likewise.
2708 * vaxnbsd-tdep.c: Likewise.
2709 * vaxobsd-tdep.c: Likewise.
2710 * windows-nat.c: Likewise.
2711 * xcoffread.c: Likewise.
2712 * xml-support.c: Likewise.
2713 * xstormy16-tdep.c: Likewise.
2714 * xtensa-linux-nat.c: Likewise.
2715
2716 2014-08-07 Gary Benson <gbenson@redhat.com>
2717
2718 * common/common-defs.h: Include gdb_assert.h.
2719 * aarch64-tdep.c: Do not include gdb_assert.h.
2720 * addrmap.c: Likewise.
2721 * aix-thread.c: Likewise.
2722 * alpha-linux-tdep.c: Likewise.
2723 * alpha-mdebug-tdep.c: Likewise.
2724 * alphanbsd-tdep.c: Likewise.
2725 * amd64-nat.c: Likewise.
2726 * amd64-tdep.c: Likewise.
2727 * amd64bsd-nat.c: Likewise.
2728 * amd64fbsd-nat.c: Likewise.
2729 * amd64fbsd-tdep.c: Likewise.
2730 * amd64nbsd-nat.c: Likewise.
2731 * amd64nbsd-tdep.c: Likewise.
2732 * amd64obsd-nat.c: Likewise.
2733 * amd64obsd-tdep.c: Likewise.
2734 * arch-utils.c: Likewise.
2735 * arm-tdep.c: Likewise.
2736 * armbsd-tdep.c: Likewise.
2737 * auxv.c: Likewise.
2738 * bcache.c: Likewise.
2739 * bfin-tdep.c: Likewise.
2740 * blockframe.c: Likewise.
2741 * breakpoint.c: Likewise.
2742 * bsd-kvm.c: Likewise.
2743 * bsd-uthread.c: Likewise.
2744 * buildsym.c: Likewise.
2745 * c-exp.y: Likewise.
2746 * c-lang.c: Likewise.
2747 * charset.c: Likewise.
2748 * cleanups.c: Likewise.
2749 * cli-out.c: Likewise.
2750 * cli/cli-decode.c: Likewise.
2751 * cli/cli-dump.c: Likewise.
2752 * cli/cli-logging.c: Likewise.
2753 * cli/cli-script.c: Likewise.
2754 * cli/cli-utils.c: Likewise.
2755 * coffread.c: Likewise.
2756 * common/common-utils.c: Likewise.
2757 * common/queue.h: Likewise.
2758 * common/signals.c: Likewise.
2759 * common/vec.h: Likewise.
2760 * complaints.c: Likewise.
2761 * completer.c: Likewise.
2762 * corelow.c: Likewise.
2763 * cp-abi.c: Likewise.
2764 * cp-name-parser.y: Likewise.
2765 * cp-namespace.c: Likewise.
2766 * cp-support.c: Likewise.
2767 * cris-tdep.c: Likewise.
2768 * dbxread.c: Likewise.
2769 * dictionary.c: Likewise.
2770 * doublest.c: Likewise.
2771 * dsrec.c: Likewise.
2772 * dummy-frame.c: Likewise.
2773 * dwarf2-frame-tailcall.c: Likewise.
2774 * dwarf2-frame.c: Likewise.
2775 * dwarf2expr.c: Likewise.
2776 * dwarf2loc.c: Likewise.
2777 * dwarf2read.c: Likewise.
2778 * eval.c: Likewise.
2779 * event-loop.c: Likewise.
2780 * exceptions.c: Likewise.
2781 * expprint.c: Likewise.
2782 * f-valprint.c: Likewise.
2783 * fbsd-nat.c: Likewise.
2784 * findvar.c: Likewise.
2785 * frame-unwind.c: Likewise.
2786 * frame.c: Likewise.
2787 * frv-tdep.c: Likewise.
2788 * gcore.c: Likewise.
2789 * gdb-dlfcn.c: Likewise.
2790 * gdb_bfd.c: Likewise.
2791 * gdbarch.c: Likewise.
2792 * gdbarch.sh: Likewise.
2793 * gdbtypes.c: Likewise.
2794 * gnu-nat.c: Likewise.
2795 * gnu-v3-abi.c: Likewise.
2796 * go-lang.c: Likewise.
2797 * guile/scm-exception.c: Likewise.
2798 * guile/scm-gsmob.c: Likewise.
2799 * guile/scm-lazy-string.c: Likewise.
2800 * guile/scm-math.c: Likewise.
2801 * guile/scm-pretty-print.c: Likewise.
2802 * guile/scm-safe-call.c: Likewise.
2803 * guile/scm-utils.c: Likewise.
2804 * guile/scm-value.c: Likewise.
2805 * h8300-tdep.c: Likewise.
2806 * hppa-hpux-nat.c: Likewise.
2807 * hppa-tdep.c: Likewise.
2808 * hppanbsd-tdep.c: Likewise.
2809 * hppaobsd-tdep.c: Likewise.
2810 * i386-darwin-nat.c: Likewise.
2811 * i386-darwin-tdep.c: Likewise.
2812 * i386-nto-tdep.c: Likewise.
2813 * i386-tdep.c: Likewise.
2814 * i386bsd-nat.c: Likewise.
2815 * i386fbsd-tdep.c: Likewise.
2816 * i386gnu-nat.c: Likewise.
2817 * i386nbsd-tdep.c: Likewise.
2818 * i386obsd-tdep.c: Likewise.
2819 * i387-tdep.c: Likewise.
2820 * ia64-libunwind-tdep.c: Likewise.
2821 * ia64-tdep.c: Likewise.
2822 * inf-ptrace.c: Likewise.
2823 * inf-ttrace.c: Likewise.
2824 * infcall.c: Likewise.
2825 * infcmd.c: Likewise.
2826 * infrun.c: Likewise.
2827 * inline-frame.c: Likewise.
2828 * interps.c: Likewise.
2829 * jv-lang.c: Likewise.
2830 * jv-typeprint.c: Likewise.
2831 * linux-fork.c: Likewise.
2832 * linux-nat.c: Likewise.
2833 * linux-thread-db.c: Likewise.
2834 * m32c-tdep.c: Likewise.
2835 * m32r-linux-nat.c: Likewise.
2836 * m32r-tdep.c: Likewise.
2837 * m68k-tdep.c: Likewise.
2838 * m68kbsd-nat.c: Likewise.
2839 * m68kbsd-tdep.c: Likewise.
2840 * m88k-tdep.c: Likewise.
2841 * machoread.c: Likewise.
2842 * macroexp.c: Likewise.
2843 * macrotab.c: Likewise.
2844 * maint.c: Likewise.
2845 * mdebugread.c: Likewise.
2846 * memory-map.c: Likewise.
2847 * mep-tdep.c: Likewise.
2848 * mi/mi-common.c: Likewise.
2849 * microblaze-tdep.c: Likewise.
2850 * mingw-hdep.c: Likewise.
2851 * mips-linux-nat.c: Likewise.
2852 * mips-linux-tdep.c: Likewise.
2853 * mips-tdep.c: Likewise.
2854 * mips64obsd-tdep.c: Likewise.
2855 * mipsnbsd-tdep.c: Likewise.
2856 * mn10300-linux-tdep.c: Likewise.
2857 * mn10300-tdep.c: Likewise.
2858 * moxie-tdep.c: Likewise.
2859 * mt-tdep.c: Likewise.
2860 * nat/linux-btrace.c: Likewise.
2861 * nat/linux-osdata.c: Likewise.
2862 * nat/linux-ptrace.c: Likewise.
2863 * nat/mips-linux-watch.c: Likewise.
2864 * nios2-linux-tdep.c: Likewise.
2865 * nios2-tdep.c: Likewise.
2866 * objc-lang.c: Likewise.
2867 * objfiles.c: Likewise.
2868 * obsd-nat.c: Likewise.
2869 * opencl-lang.c: Likewise.
2870 * osabi.c: Likewise.
2871 * parse.c: Likewise.
2872 * ppc-linux-nat.c: Likewise.
2873 * ppc-sysv-tdep.c: Likewise.
2874 * ppcfbsd-nat.c: Likewise.
2875 * ppcfbsd-tdep.c: Likewise.
2876 * ppcnbsd-nat.c: Likewise.
2877 * ppcnbsd-tdep.c: Likewise.
2878 * ppcobsd-nat.c: Likewise.
2879 * ppcobsd-tdep.c: Likewise.
2880 * printcmd.c: Likewise.
2881 * procfs.c: Likewise.
2882 * prologue-value.c: Likewise.
2883 * psymtab.c: Likewise.
2884 * python/py-lazy-string.c: Likewise.
2885 * python/py-value.c: Likewise.
2886 * regcache.c: Likewise.
2887 * reggroups.c: Likewise.
2888 * registry.c: Likewise.
2889 * remote-sim.c: Likewise.
2890 * remote.c: Likewise.
2891 * rs6000-aix-tdep.c: Likewise.
2892 * rs6000-tdep.c: Likewise.
2893 * s390-linux-tdep.c: Likewise.
2894 * score-tdep.c: Likewise.
2895 * ser-base.c: Likewise.
2896 * ser-mingw.c: Likewise.
2897 * sh-tdep.c: Likewise.
2898 * sh64-tdep.c: Likewise.
2899 * solib-darwin.c: Likewise.
2900 * solib-spu.c: Likewise.
2901 * solib-svr4.c: Likewise.
2902 * source.c: Likewise.
2903 * sparc-nat.c: Likewise.
2904 * sparc-sol2-tdep.c: Likewise.
2905 * sparc-tdep.c: Likewise.
2906 * sparc64-sol2-tdep.c: Likewise.
2907 * sparc64-tdep.c: Likewise.
2908 * sparc64fbsd-tdep.c: Likewise.
2909 * sparc64nbsd-tdep.c: Likewise.
2910 * sparc64obsd-tdep.c: Likewise.
2911 * sparcnbsd-tdep.c: Likewise.
2912 * sparcobsd-tdep.c: Likewise.
2913 * spu-multiarch.c: Likewise.
2914 * spu-tdep.c: Likewise.
2915 * stabsread.c: Likewise.
2916 * stack.c: Likewise.
2917 * symfile.c: Likewise.
2918 * symtab.c: Likewise.
2919 * target-descriptions.c: Likewise.
2920 * target-memory.c: Likewise.
2921 * target.c: Likewise.
2922 * tic6x-linux-tdep.c: Likewise.
2923 * tic6x-tdep.c: Likewise.
2924 * tilegx-linux-nat.c: Likewise.
2925 * tilegx-tdep.c: Likewise.
2926 * top.c: Likewise.
2927 * tramp-frame.c: Likewise.
2928 * tui/tui-out.c: Likewise.
2929 * tui/tui-winsource.c: Likewise.
2930 * ui-out.c: Likewise.
2931 * user-regs.c: Likewise.
2932 * utils.c: Likewise.
2933 * v850-tdep.c: Likewise.
2934 * valops.c: Likewise.
2935 * value.c: Likewise.
2936 * varobj.c: Likewise.
2937 * vax-nat.c: Likewise.
2938 * xml-syscall.c: Likewise.
2939 * xml-tdesc.c: Likewise.
2940 * xstormy16-tdep.c: Likewise.
2941 * xtensa-linux-nat.c: Likewise.
2942 * xtensa-tdep.c: Likewise.
2943
2944 2014-08-07 Gary Benson <gbenson@redhat.com>
2945
2946 * common/common-defs.h: Include common-utils.h.
2947 * defs.h: Do not include common-utils.h.
2948 * common/gdb_assert.h: Likewise.
2949 * darwin-nat.h: Likewise.
2950 * nat/linux-btrace.c: Likewise.
2951 * target/waitstatus.h: Likewise.
2952
2953 2014-08-07 Gary Benson <gbenson@redhat.com>
2954
2955 * common/common-defs.h: Include ptid.h.
2956 * defs.h: Do not include ptid.h.
2957 * inferior.h: Likewise.
2958 * infrun.h: Likewise.
2959 * nat/linux-btrace.h: Likewise.
2960 * nat/linux-osdata.h: Likewise.
2961 * target/waitstatus.h: Likewise.
2962
2963 2014-08-07 Gary Benson <gbenson@redhat.com>
2964
2965 * common/common-defs.h: Include gdb_locale.h.
2966 * defs.h: Do not include gdb_locale.h.
2967
2968 2014-08-07 Gary Benson <gbenson@redhat.com>
2969
2970 * common/common-defs.h: Include gdb/signals.h.
2971 * defs.h: Do not include gdb/signals.h.
2972
2973 2014-08-07 Gary Benson <gbenson@redhat.com>
2974
2975 * common/common-defs.h: Include pathmax.h.
2976 * defs.h: Do not include pathmax.h.
2977
2978 2014-08-07 Gary Benson <gbenson@redhat.com>
2979
2980 * common/common-defs.h: Include libiberty.h.
2981 * defs.h: Do not include libiberty.h.
2982 * common/queue.h: Likewise.
2983 * cp-name-parser.y: Likewise.
2984 * mi/mi-cmd-catch.c: Likewise.
2985 * python/python.c: Likewise.
2986
2987 2014-08-07 Gary Benson <gbenson@redhat.com>
2988
2989 * common/common-defs.h: Include ansidecl.h.
2990 * defs.h: Do not include ansidecl.h.
2991 * common/buffer.h: Likewise.
2992 * common/common-utils.h: Likewise.
2993
2994 2014-08-07 Gary Benson <gbenson@redhat.com>
2995
2996 * common/common-defs.h: Include stddef.h.
2997 * defs.h: Do not include stddef.h.
2998 * common/common-utils.h: Likewise.
2999 * amd64fbsd-nat.c: Likewise.
3000 * bcache.c: Likewise.
3001 * charset.c: Likewise.
3002 * common/buffer.h: Likewise.
3003 * common/vec.h: Likewise.
3004 * i386bsd-nat.c: Likewise.
3005 * nat/linux-btrace.h: Likewise.
3006 * ppcfbsd-nat.c: Likewise.
3007 * ppcnbsd-tdep.h: Likewise.
3008 * ppcobsd-nat.c: Likewise.
3009 * ppcobsd-tdep.h: Likewise.
3010 * python/py-gdb-readline.c: Likewise.
3011
3012 2014-08-07 Gary Benson <gbenson@redhat.com>
3013
3014 * common/common-defs.h: Include stdarg.h.
3015 * defs.h: Do not include stdarg.h.
3016 * ada-lang.c: Likewise.
3017 * common/common-utils.h: Likewise.
3018 * guile/scm-string.c: Likewise.
3019 * guile/scm-utils.c: Likewise.
3020 * m32c-tdep.c: Likewise.
3021
3022 2014-08-07 Gary Benson <gbenson@redhat.com>
3023
3024 * common/common-defs.h: Include stdlib.h.
3025 * defs.h: Do not include stdlib.h.
3026 * addrmap.c: Likewise.
3027 * bcache.c: Likewise.
3028 * common/buffer.c: Likewise.
3029 * common/common-utils.c: Likewise.
3030 * cp-name-parser.y: Likewise.
3031 * go32-nat.c: Likewise.
3032 * mn10300-linux-tdep.c: Likewise.
3033 * nat/linux-osdata.c: Likewise.
3034 * tui/tui.c: Likewise.
3035 * windows-nat.c: Likewise.
3036
3037 2014-08-07 Gary Benson <gbenson@redhat.com>
3038
3039 * common/common-defs.h: Include stdio.h.
3040 * defs.h: Do not include stdio.h.
3041 * ada-lang.c: Likewise.
3042 * common/buffer.c: Likewise.
3043 * common/common-utils.c: Likewise.
3044 * cp-name-parser.y: Likewise.
3045 * gnu-nat.c: Likewise.
3046 * go32-nat.c: Likewise.
3047 * i386gnu-nat.c: Likewise.
3048 * proc-api.c: Likewise.
3049 * proc-events.c: Likewise.
3050 * proc-flags.c: Likewise.
3051 * proc-why.c: Likewise.
3052 * python/python-internal.h: Likewise.
3053 * target-memory.c: Likewise.
3054 * tui/tui-io.c: Likewise.
3055 * tui/tui.c: Likewise.
3056
3057 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3058
3059 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3060 (scan_dyntag_auxv): Same.
3061
3062 2014-08-06 Yao Qi <yao@codesourcery.com>
3063
3064 * amd64-linux-nat.c: Remove duplicated include
3065 "x86-linux-nat.h".
3066 * i386-linux-nat.c: Likewise.
3067
3068 2014-08-06 Yao Qi <yao@codesourcery.com>
3069
3070 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3071 operand" with "Special opcode" in comments.
3072
3073 2014-08-05 Gary Benson <gbenson@redhat.com>
3074
3075 * interps.c (initialize_interps): Remove prototype.
3076 (interpreter_initialized): Remove static global.
3077 (interp_add): Do not call initialize_interps.
3078 (initialize_interps): Remove function.
3079
3080 2014-08-05 Gary Benson <gbenson@redhat.com>
3081
3082 * utils.c (vwarning): Remove spurious va_end.
3083
3084 2014-08-05 Alan Modra <amodra@gmail.com>
3085
3086 * charset.c (convert_between_encodings): Cast result of obstack_base.
3087 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3088 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3089 (read_unwind_info): Use size_t for some locals.
3090 * jit.c (finalize_symtab): Likewise.
3091 * utils.c (hashtab_obstack_allocate): Likewise.
3092 * symmisc.c (print_objfile_statistics): Update format strings.
3093
3094 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3095
3096 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3097 (Changes in GDB 7.8): ... here.
3098
3099 2014-08-04 Tom Tromey <tromey@redhat.com>
3100
3101 * target.c (set_targetdebug): New function.
3102 (initialize_targets): Pass set_targetdebug when creating "set
3103 debug target".
3104
3105 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3106
3107 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3108 if detecting a variable-sized field that is not the last field.
3109 Fix struct type length computation.
3110
3111 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3112
3113 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3114 Add debug trace.
3115
3116 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3117
3118 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3119 Remove "+ 8" offset in computation of CHAIN_VMA.
3120
3121 2014-07-31 Doug Evans <dje@google.com>
3122
3123 * inflow.c (child_terminal_inferior): Add comment.
3124 (child_terminal_ours_for_output): Add comment.
3125 (child_terminal_ours): Add comment.
3126 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3127 (linux_nat_terminal_ours): Add comment.
3128
3129 2014-07-31 Gary Benson <gbenson@redhat.com>
3130
3131 * common/btrace-common.h: Do not include defs.h or server.h.
3132 * nat/mips-linux-watch.h: Likewise.
3133 * gdb-dlfcn.h: Do not include defs.h.
3134 * tracefile.h: Likewise.
3135
3136 2014-07-30 Roland McGrath <mcgrathr@google.com>
3137
3138 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3139
3140 2014-07-30 Tom Tromey <tromey@redhat.com>
3141
3142 * bsd-kvm.c (bsd_kvm_open): Constify.
3143 * corelow.c (core_open): Constify.
3144 * ctf.c (ctf_open): Constify.
3145 * dbug-rom.c (dbug_open): Constify.
3146 * exec.c (exec_open): Constify.
3147 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3148 * microblaze-rom.c (picobug_open): Constify.
3149 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3150 Constify.
3151 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3152 * record-btrace.c (record_btrace_open): Constify.
3153 * record-full.c (record_full_core_open_1, record_full_open_1)
3154 (record_full_open): Constify.
3155 * remote-m32r-sdi.c (m32r_open): Constify.
3156 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3157 (rockhopper_open, lsi_open): Constify.
3158 * remote-sim.c (gdbsim_open): Constify.
3159 * remote.c (remote_open, extended_remote_open, remote_open_1):
3160 Constify.
3161 * target.h (struct target_ops) <to_open>: Make "arg" const.
3162 * tracefile-tfile.c (tfile_open): Constify.
3163
3164 2014-07-30 Tom Tromey <tromey@redhat.com>
3165
3166 * breakpoint.c (map_breakpoint_numbers): Update.
3167 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3168 (get_number_const): New function.
3169 (get_number): Rewrite using get_number_const.
3170 (init_number_or_range): Make "string" const.
3171 (number_is_in_list): Make "list" const.
3172 * cli/cli-utils.h (get_number_const): Declare.
3173 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3174 (init_number_or_range, number_is_in_list): Update.
3175 * printcmd.c (map_display_numbers): Update.
3176 * value.c (value_from_history_ref): Constify.
3177 * value.h (value_from_history_ref): Update.
3178
3179 2014-07-30 Tom Tromey <tromey@redhat.com>
3180
3181 * corefile.c (hook_type, call_extra_exec_file_hooks)
3182 (specify_exec_file_hook): Constify.
3183 * exec.c (exec_file_attach): Make "filename" const.
3184 * gdbcore.h (deprecated_exec_file_display_hook)
3185 (specify_exec_file_hook, exec_file_attach): Constify.
3186 * main.c (captured_main): Use catch_command_errors_const.
3187
3188 2014-07-30 Tom Tromey <tromey@redhat.com>
3189
3190 * target.c (open_target): New function.
3191 (add_target_with_completer, add_deprecated_target_alias): Use
3192 set_cmd_sfunc, set_cmd_context.
3193 (debug_to_open): Remove.
3194 (setup_target_debug): Update.
3195
3196 2014-07-30 Yao Qi <yao@codesourcery.com>
3197
3198 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3199 comments.
3200 * parse.c (exp_iterate): Update comments.
3201
3202 2014-07-30 Gary Benson <gbenson@redhat.com>
3203
3204 * common/common-defs.h: New file.
3205 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3206 * defs.h: Include common-defs.h.
3207 Do not include config.h or build-gnulib/config.h.
3208
3209 2014-07-30 Gary Benson <gbenson@redhat.com>
3210
3211 * common/common-utils.h: Do not include config.h.
3212 * nat/linux-btrace.h: Likewise.
3213
3214 2014-07-30 Gary Benson <gbenson@redhat.com>
3215
3216 * btrace.c: Include defs.h.
3217 * common/ptid.c: Include defs.h or server.h as appropriate.
3218 * nat/mips-linux-watch.c: Likewise.
3219
3220 2014-07-29 Tom Tromey <tromey@redhat.com>
3221
3222 * target.c (target_is_pushed): Simplify.
3223
3224 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3225
3226 GDB 7.8 released.
3227
3228 2014-07-29 Yao Qi <yao@codesourcery.com>
3229
3230 PR gdb/17206
3231 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3232
3233 2014-07-28 Doug Evans <xdje42@gmail.com>
3234
3235 PR guile/17203
3236 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3237 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3238 parameters.
3239
3240 2014-07-28 Will Newton <will.newton@linaro.org>
3241
3242 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3243 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3244 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3245 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3246 (THUMB2_EABI_SYSCALL): Likewise.
3247 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3248 struct tramp_frame.
3249 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3250 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3251
3252 2014-07-27 Doug Evans <xdje42@gmail.com>
3253
3254 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3255
3256 2014-07-27 Doug Evans <xdje42@gmail.com>
3257
3258 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3259
3260 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3261 Doug Evans <xdje42@gmail.com>
3262
3263 PR guile/17146
3264 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3265 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3266 * configure.ac: Try to use guild to compile an scm file, if it fails
3267 then disable guile support.
3268 * configure: Regenerate.
3269 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3270 GUILE_FILE_LIST.
3271 (GUILE_COMPILED_FILES): New variable.
3272 (GUILE_FILES) Update.
3273 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3274 (stamp-guile): Compile scm files.
3275 * guile/guile.c (boot_guile_support): New function.
3276 (standard_throw_args_p): New function.
3277 (print_standard_throw_error, print_throw_error): New functions.
3278 (handle_boot_error): New function.
3279 (initialize_scheme_side): Rewrite to call boot_guile_support.
3280 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3281 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3282
3283 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3284 Doug Evans <xdje42@gmail.com>
3285
3286 PR guile/17146
3287 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3288 * guile/lib/gdb/support.scm: New file.
3289 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3290 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3291 All uses updated.
3292 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3293 All uses updated.
3294 (%assert-type): Ditto, and renamed to assert-type.
3295 (%exception-print-style): Delete.
3296
3297 2014-07-26 Doug Evans <xdje42@gmail.com>
3298
3299 PR build/17105
3300 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3301 * configure: Regenerate.
3302 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3303 PYTHON_FILES.
3304 (PYTHON_FILES): New variable.
3305 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3306 (GUILE_FILES): New variable.
3307 (stamp-python, install-python, uninstall-python): Handle empty
3308 file list.
3309 (stamp-guile, install-guile, uninstall-guile): Ditto.
3310
3311 2014-07-26 Doug Evans <xdje42@gmail.com>
3312
3313 PR guile/17177
3314 * guile/lib/gdb.scm (pretty-printers): Export.
3315 (set-pretty-printers!): Export.
3316 * guile/lib/gdb/printing.scm (gdb module): Update.
3317 (prepend-pretty-printer!, append-pretty-printer!): Update.
3318 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3319 (pretty_printer_list_var): Delete.
3320 (pretty_printer_list): New static global.
3321 (gdbscm_pretty_printers): New function.
3322 (gdbscm_set_pretty_printers_x): New function.
3323 (ppscm_find_pretty_printer_from_gdb): Update.
3324 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3325 (gdbscm_initialize_pretty_printers): Update.
3326
3327 2014-07-26 Doug Evans <xdje42@gmail.com>
3328
3329 PR 17185
3330 * configure.ac: Add check for header gc/gc.h.
3331 Add check for function setenv.
3332 * configure: Regenerate.
3333 * config.in: Regenerate.
3334 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3335
3336 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3337
3338 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3339 variation in gdbarch matching.
3340
3341 2014-07-25 Tom Tromey <tromey@redhat.com>
3342
3343 * exec.c (using_exec_ops): Remove.
3344 (exec_close_1): Update. Remove extraneous block, reindent.
3345 (add_target_sections): Use target_is_pushed.
3346
3347 2014-07-25 Pedro Alves <palves@redhat.com>
3348
3349 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3350 * monitor.c (monitor_create_inferior): Likewise.
3351 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3352 * remote-sim.c (gdbsim_create_inferior): Likewise.
3353 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3354 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3355 * windows-nat.c (do_initial_windows_stuff): Likewise.
3356
3357 2014-07-25 Pedro Alves <palves@redhat.com>
3358
3359 * NEWS: Mention signal passing and "signal" command changes.
3360 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3361 comment.
3362 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3363 call.
3364 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3365 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3366 (jump_command): Adjust clear_proceed_status call.
3367 (signal_command): Warn if other thread that are resumed have
3368 signals that will be delivered. Adjust clear_proceed_status call.
3369 (until_next_command, finish_command)
3370 (proceed_after_attach_callback, attach_command_post_wait)
3371 (attach_command): Adjust clear_proceed_status call.
3372 * infrun.c (proceed_after_vfork_done): Likewise.
3373 (proceed_after_attach_callback): Adjust comment.
3374 (clear_proceed_status_thread): Clear stop_signal if not in pass
3375 state.
3376 (clear_proceed_status_callback): Delete.
3377 (clear_proceed_status): New 'step' parameter. Only clear the
3378 proceed status of threads the command being prepared is about to
3379 resume.
3380 (proceed): If passed in an explicit signal, override stop_signal
3381 with it. Don't pass the last stop signal to the thread we're
3382 resuming.
3383 (init_wait_for_inferior): Adjust clear_proceed_status call.
3384 (switch_back_to_stepped_thread): Clear the signal if it should not
3385 be passed.
3386 * infrun.h (clear_proceed_status): New 'step' parameter.
3387 (user_visible_resume_ptid): Add comment.
3388 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3389 signal is in pass state.
3390 * remote.c (append_pending_thread_resumptions): Likewise.
3391 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3392
3393 2014-07-25 Tom Tromey <tromey@redhat.com>
3394
3395 * target.h (target_stopped_data_address)
3396 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3397 parentheses.
3398
3399 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3400
3401 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3402 comments.
3403 (avr_pointer_to_address): Likewise.
3404
3405 2014-07-24 Tom Tromey <tromey@redhat.com>
3406
3407 * monitor.c (compile_pattern): Update.
3408 * target.h (struct target_ops) <to_shortname, to_longname,
3409 to_doc>: Now const.
3410
3411 2014-07-24 Tom Tromey <tromey@redhat.com>
3412
3413 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3414 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3415 (add_info_alias, add_com): Make "doc" const.
3416 (print_doc_line): Make "str" const.
3417 (delete_cmd): Update.
3418 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3419 (print_doc_line): Update.
3420 * cli/cli-script.c (document_command): Update.
3421 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3422 (add_com, add_info, add_info_alias): Update.
3423 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3424 * python/py-cmd.c (cmdpy_destroyer): Update.
3425
3426 2014-07-24 Tom Tromey <tromey@redhat.com>
3427
3428 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3429 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3430 (help_cmd_list): Constify.
3431 (lookup_cmd): Update.
3432 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3433 const.
3434 (help_cmd_list, apropos_cmd): Update.
3435 * cli/cli-script.c (show_user): Update.
3436 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3437 * cli/cli-setshow.h (cmd_show_list): Update.
3438 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3439 (cmd_show_list): Update.
3440 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3441 * python/py-cmd.c (cmdpy_destroyer): Update.
3442
3443 2014-07-24 Tom Tromey <tromey@redhat.com>
3444
3445 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3446 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3447 const.
3448 * command.h (deprecate_cmd): Update.
3449 * maint.c (maintenance_do_deprecate): Add casts.
3450
3451 2014-07-24 Tom Tromey <tromey@redhat.com>
3452
3453 * cli/cli-decode.c (help_cmd): Make parameter "const".
3454 * cli/cli-decode.h (help_cmd): Update.
3455
3456 2014-07-24 Tom Tromey <tromey@redhat.com>
3457
3458 * stack.c (up_silently_base, down_silently_base): Make argument
3459 const.
3460
3461 2014-07-24 Tom Tromey <tromey@redhat.com>
3462
3463 * solib.c (solib_add): Make "pattern" const.
3464 * solib.h (solib_add): Update.
3465
3466 2014-07-24 Tom Tromey <tromey@redhat.com>
3467
3468 * remote.c (remote_serial_open, print_packet, putpkt)
3469 (putpkt_binary): Constify.
3470 * remote.h (putpkt): Update.
3471
3472 2014-07-24 Tom Tromey <tromey@redhat.com>
3473
3474 * monitor.c (monitor_open): Make "args" const.
3475 * monitor.h (monitor_open): Update.
3476
3477 2014-07-24 Tom Tromey <tromey@redhat.com>
3478
3479 * maint.c (match_bfd_flags): Make "string" const.
3480 (print_bfd_section_info): Remove casts.
3481 (print_objfile_section_info): Make "string" const.
3482
3483 2014-07-24 Tom Tromey <tromey@redhat.com>
3484
3485 * inf-child.c (inf_child_open_target): Make "arg" const.
3486 * inf-child.h (inf_child_open_target): Update.
3487
3488 2014-07-24 Tom Tromey <tromey@redhat.com>
3489
3490 * environ.c (unset_in_environ): Make "var" const.
3491 * environ.h (unset_in_environ): Update.
3492
3493 2014-07-24 Tom Tromey <tromey@redhat.com>
3494
3495 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3496 Make "cmd" const.
3497 (scan_filename_with_cleanup): Likewise.
3498 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3499 Make arguments const.
3500 (restore_command): Update.
3501
3502 2014-07-24 Pedro Alves <palves@redhat.com>
3503
3504 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3505
3506 2014-07-24 Tom Tromey <tromey@redhat.com>
3507 Gary Benson <gbenson@redhat.com>
3508
3509 * nat/linux-ptrace.c (additional_flags): New global.
3510 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3511 additional_flags; don't check GDBSERVER.
3512 (linux_ptrace_set_additional_flags): New function.
3513 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3514 Declare.
3515 * linux-nat.c (_initialize_linux_nat): Call
3516 linux_ptrace_set_additional_flags.
3517
3518 2014-07-24 Tom Tromey <tromey@redhat.com>
3519
3520 * make-target-delegates (munge_type, write_debugmethod): New
3521 functions.
3522 (debug_names): New global.
3523 ($TARGET_DEBUG_PRINTER): New global.
3524 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3525 name.
3526 Write debug methods. Generate init_debug_target.
3527 * target-debug.h: New file.
3528 * target-delegates.c: Rebuild.
3529 * target.c: Include target-debug.h.
3530 (debug_target): Hoist definition.
3531 (target_kill, target_get_section_table, target_memory_map)
3532 (target_flash_erase, target_flash_done, target_detach)
3533 (target_disconnect, target_wait, target_resume)
3534 (target_pass_signals, target_program_signals, target_follow_fork)
3535 (target_mourn_inferior, target_search_memory)
3536 (target_thread_address_space, target_close)
3537 (target_find_new_threads, target_core_of_thread)
3538 (target_verify_memory, target_insert_mask_watchpoint)
3539 (target_remove_mask_watchpoint): Remove targetdebug code.
3540 (debug_to_post_attach, debug_to_prepare_to_store)
3541 (debug_to_files_info, debug_to_insert_breakpoint)
3542 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3543 (debug_to_region_ok_for_hw_watchpoint)
3544 (debug_to_can_accel_watchpoint_condition)
3545 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3546 (debug_to_watchpoint_addr_within_range)
3547 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3548 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3549 (debug_to_terminal_init, debug_to_terminal_inferior)
3550 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3551 (debug_to_terminal_save_ours, debug_to_terminal_info)
3552 (debug_to_load, debug_to_post_startup_inferior)
3553 (debug_to_insert_fork_catchpoint)
3554 (debug_to_remove_fork_catchpoint)
3555 (debug_to_insert_vfork_catchpoint)
3556 (debug_to_remove_vfork_catchpoint)
3557 (debug_to_insert_exec_catchpoint)
3558 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3559 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3560 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3561 (setup_target_debug): Call init_debug_target.
3562 * target.h (TARGET_DEBUG_PRINTER): New macro.
3563 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3564 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3565
3566 2014-07-24 Gary Benson <gbenson@redhat.com>
3567
3568 * exceptions.h (throw_vfatal): Renamed to...
3569 (throw_vquit): New declaration.
3570 (throw_quit): Likewise.
3571 * exceptions.c (throw_vfatal): Renamed to...
3572 (throw_vquit): New function.
3573 (throw_quit): Likewise.
3574 (throw_error): Call throw_verror rather than throw_it.
3575 * utils.h (vfatal): Removed.
3576 (fatal): Likewise.
3577 * utils.c (vfatal): Removed.
3578 (fatal): Likewise.
3579 (internal_verror): Replaced call to fatal with call to throw_quit.
3580 (quit): Replaced calls to fatal with calls to throw_quit.
3581
3582 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3583
3584 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3585 target_read_code.
3586
3587 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3588
3589 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3590 less than zero in conditional expression.
3591
3592 2014-07-23 Tom Tromey <tromey@redhat.com>
3593
3594 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3595 ($INTRO_PART): Don't match whitespace.
3596 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3597 argument matching.
3598 ($METHOD): Add $METHOD_TRAILER.
3599 (trim): Rewrite.
3600 (scan_target_h): New sub.
3601 Change main loop not to collect state.
3602 * target-delegates.c: Rebuild.
3603
3604 2014-07-23 Gary Benson <gbenson@redhat.com>
3605
3606 * cp-support.c (gdb_demangle): Fix build on systems without
3607 sigaltstack.
3608
3609 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3610
3611 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3612 for reference entry value target data value.
3613
3614 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3615
3616 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3617 value_available_contents_eq.
3618
3619 2014-07-22 Pedro Alves <palves@redhat.com>
3620
3621 * value.c (allocate_optimized_out_value): Don't mark value as
3622 non-lazy.
3623
3624 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3625
3626 * MAINTAINERS (Write After Approval): Update my email address.
3627
3628 2014-07-20 Doug Evans <dje@google.com>
3629
3630 PR server/17147
3631 * remote.c (putpkt_binary): Add text to error message.
3632
3633 2014-07-20 Yao Qi <yao@codesourcery.com>
3634
3635 * eval.c: Remove "Chill" from comments.
3636 * gdbtypes.h: Likewise.
3637 * symtab.h: Likewise.
3638
3639 2014-07-20 Yao Qi <yao@codesourcery.com>
3640
3641 * std-operator.def: Update comments to TERNOP_SLICE.
3642
3643 2014-07-20 Yao Qi <yao@codesourcery.com>
3644
3645 * std-operator.def: Remove BINOP_RANGE.
3646 * breakpoint.c (watchpoint_exp_is_const): Update.
3647 * expprint.c (dump_subexp_body_standard): Likewise.
3648 * eval.c (init_array_element): Remove dead code.
3649 (evaluate_subexp_standard): Likewise.
3650
3651 2014-07-20 Yao Qi <yao@codesourcery.com>
3652
3653 * std-operator.def: Remove BINOP_IN.
3654 * breakpoint.c (watchpoint_exp_is_const): Update.
3655 * eval.c (evaluate_subexp_standard): Likewise.
3656 * expprint.c (dump_subexp_body_standard): Likewise.
3657
3658 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3659
3660 * microblaze-tdep.c (microblaze_register_names): Add
3661 the rshr and rslr register names.
3662 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3663 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3664 Use of tdesc_numbered_register. Use of
3665 microblaze_register_g_packet_guesses. Use of
3666 tdesc_use_registers. Use of set_gdbarch_register_type.
3667 (microblaze_register_g_packet_guesses): New.
3668 * microblaze-tdep.h (microblaze_reg_num): Add
3669 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3670 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3671 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3672 * features/microblaze-core.xml: New file.
3673 * features/microblaze-stack-protect.xml: New file.
3674 * features/microblaze-with-stack-protect.c: New file.
3675 * features/microblaze-with-stack-protect.xml: New file.
3676 * features/microblaze.xml: New file.
3677 * features/microblaze.c: New file.
3678 * features/Makefile (microblaze-with-stack-protect): Add
3679 microblaze-with-stack-protect microblaze and microblaze-expedite.
3680 * regformats/microblaze-with-stack-protect.dat: New file.
3681 * regformats/microblaze.dat: New file.
3682 * doc/gdb.texinfo (MicroBlaze Features): Added.
3683
3684 2014-07-18 Tom Tromey <tromey@redhat.com>
3685
3686 * exec.c (exec_ops): Now static.
3687 * exec.h (exec_ops): Don't declare.
3688
3689 2014-07-18 Tom Tromey <tromey@redhat.com>
3690
3691 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3692 to find_target_beneath.
3693 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3694 find_target_beneath.
3695 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3696
3697 2014-07-18 Tom Tromey <tromey@redhat.com>
3698
3699 PR gdb/17130:
3700 * utils.c (quit): Use target_supports_terminal_ours.
3701 * target.h (target_supports_terminal_ours): Declare.
3702 * target.c (target_supports_delete_record): Don't check
3703 to_delete_record against NULL.
3704 (target_supports_terminal_ours): New function.
3705
3706 2014-07-18 Tom Tromey <tromey@redhat.com>
3707
3708 PR gdb/17130:
3709 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3710 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3711 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3712 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3713 * windows-nat.c (windows_xfer_partial): Always delegate.
3714 * record-btrace.c (record_btrace_xfer_partial): Simplify
3715 delegation.
3716 (record_btrace_fetch_registers, record_btrace_store_registers)
3717 (record_btrace_prepare_to_store, record_btrace_resume)
3718 (record_btrace_wait, record_btrace_find_new_threads)
3719 (record_btrace_thread_alive): Likewise.
3720 * procfs.c (procfs_xfer_partial): Always delegate.
3721 * corelow.c (core_xfer_partial): Always delegate.
3722 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3723
3724 2014-07-18 Tom Tromey <tromey@redhat.com>
3725
3726 * exec.c (exec_make_note_section): Move earlier.
3727
3728 2014-07-17 Doug Evans <dje@google.com>
3729
3730 PR gdb/17170
3731 * maint.c (count_symtabs_and_blocks): Handle NULL
3732 current_program_space.
3733 (report_command_stats): Check global enabled flag in addition to
3734 recorded enabled flag.
3735 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3736
3737 2014-07-16 Pedro Alves <palves@redhat.com>
3738
3739 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3740
3741 2014-07-16 Tom Tromey <tromey@redhat.com>
3742
3743 * target.h (struct target_ops) <to_delete_record>: Reformat
3744 comment.
3745
3746 2014-07-16 Tom Tromey <tromey@redhat.com>
3747
3748 * target-delegates.c: Rebuild.
3749
3750 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3751
3752 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3753 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3754 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3755 (avr_pointer_to_address): Likewise.
3756 (avr_address_class_type_flags): New function.
3757 (avr_address_class_type_flags_to_name): Likewise.
3758 (avr_address_class_name_to_type_flags): Likewise.
3759 (avr_gdbarch_init): Set address_class_type_flags,
3760 address_class_type_flags_to_name and
3761 address_class_name_to_type_flags.
3762
3763 2014-07-15 Pedro Alves <palves@redhat.com>
3764
3765 * linux-nat.c (kill_callback): Save errno and work with saved
3766 copy.
3767
3768 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3769
3770 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3771
3772 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3773
3774 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3775 breakpoint support correctly.
3776
3777 2014-07-14 Pedro Alves <palves@redhat.com>
3778
3779 * utils.c (prompt_for_continue): Call target_terminal_ours.
3780
3781 2014-07-14 Pedro Alves <palves@redhat.com>
3782
3783 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3784 catch_errors. Don't re-enable stdin or notify observers where,
3785 and rethrow error.
3786 (fetch_inferior_event_wrapper): Delete.
3787
3788 2014-07-14 Pedro Alves <palves@redhat.com>
3789
3790 PR gdb/17072
3791 * top.c: Include "inf-loop.h".
3792 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3793 field.
3794 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3795 was async before.
3796 (gdb_readline_wrapper): Store whether the target is async, and
3797 make it sync.
3798
3799 2014-07-14 Pedro Alves <palves@redhat.com>
3800
3801 PR gdb/17072
3802 * top.c (gdb_readline_wrapper_line): Tweak comment.
3803 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3804 the input handler callback.
3805
3806 2014-07-14 Pedro Alves <palves@redhat.com>
3807
3808 PR gdb/17072
3809 * main.c: Include event-top.h.
3810 (handle_command_errors): New function.
3811 (catch_command_errors, catch_command_errors_const): Use it.
3812
3813 2014-07-14 Pedro Alves <palves@redhat.com>
3814
3815 * exceptions.c (catch_command_errors, catch_command_errors_const):
3816 Moved to main.c.
3817 * exceptions.h (catch_command_errors_ftype)
3818 (catch_command_errors_const_ftype): Moved to main.c.
3819 (catch_command_errors, catch_command_errors_const): Delete
3820 declarations.
3821 * main.c (catch_command_errors_ftype)
3822 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3823 (catch_command_errors, catch_command_errors_const)): Moved here
3824 from exceptions.c and make static.
3825
3826 2014-07-14 Pedro Alves <palves@redhat.com>
3827
3828 * exceptions.c (print_any_exception): Delete.
3829 (catch_exceptions_with_msg): Use exception_print instead of
3830 print_any_exception.
3831 (catch_errors): Use exception_fprintf instead of
3832 print_any_exception.
3833 (catch_command_errors, catch_command_errors_const): Use
3834 exception_print instead of print_any_exception.
3835
3836 2014-07-14 Pedro Alves <palves@redhat.com>
3837
3838 * infcall.c (run_inferior_call): Set 'sync_execution' while
3839 running the inferior call.
3840
3841 2014-07-14 Pedro Alves <palves@redhat.com>
3842
3843 * value.c (value_contents_equal): Delete function.
3844 * value.h (value_contents_equal): Delete declaration.
3845
3846 2014-07-14 Tom Tromey <tromey@redhat.com>
3847
3848 PR exp/17106:
3849 * gdbtypes.c (is_dynamic_type_internal): New function, from
3850 is_dynamic_type.
3851 (is_dynamic_type): Rewrite.
3852 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3853 (resolve_dynamic_struct): Likewise.
3854 (resolve_dynamic_type_internal): New function, from
3855 resolve_dynamic_type.
3856 (resolve_dynamic_type): Rewrite.
3857
3858 2014-07-14 Tom Tromey <tromey@redhat.com>
3859
3860 * target.c (target_require_runnable): Also check record_stratum.
3861 Update comment.
3862
3863 2014-07-11 Yao Qi <yao@codesourcery.com>
3864
3865 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3866 thumb_instruction_restores_sp return true.
3867
3868 2014-07-11 Yao Qi <yao@codesourcery.com>
3869
3870 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3871 (thumb_in_function_epilogue_p): Call
3872 thumb_instruction_restores_sp.
3873
3874 2014-07-11 Yao Qi <yao@codesourcery.com>
3875
3876 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3877 'add sp, #imm'.
3878 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3879
3880 2014-07-11 Gary Benson <gbenson@redhat.com>
3881
3882 * amd64-linux-nat.c (gdbcore.h): Remove include.
3883 (regset.h): Likewise.
3884 (nat/linux-btrace.h): Likewise.
3885 (btrace.h): Likewise.
3886 (gdb_assert.h): Likewise.
3887 (string.h): Likewise.
3888 (sys/uio.h): Likewise.
3889 (sys/debugreg.h): Likewise.
3890 (sys/syscall.h): Likewise.
3891 (sys/procfs.h): Likewise.
3892 (sys/user.h): Likewise.
3893 (asm/ptrace.h): Likewise.
3894 (i386-nat.h): Likewise.
3895 * i386-linux-nat.c (i386-nat.h): Likewise.
3896 (regset.h): Likewise.
3897 (target.h): Likewise.
3898 (linux-nat.h): Likewise.
3899 (nat/linux-btrace.h): Likewise.
3900 (btrace.h): Likewise.
3901 (gdb_assert.h): Likewise.
3902 (string.h): Likewise.
3903 (sys/uio.h): Likewise.
3904 (sys/user.h): Likewise.
3905 (sys/procfs.h): Likewise.
3906 (sys/reg.h): Likewise.
3907 (sys/debugreg.h): Likewise.
3908 (ORIG_EAX): Remove definition.
3909
3910 2014-07-11 Gary Benson <gbenson@redhat.com>
3911
3912 * i386-linux-nat.h: New file.
3913 * x86-linux-nat.h: Likewise.
3914 * x86-linux-nat.c: Likewise.
3915 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3916 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3917 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3918 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3919 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3920 (PTRACE_SETREGSET): Likewise.
3921 (arch_lwp_info): Now in x86-linux-nat.c.
3922 (have_ptrace_getregset): Now in x86-linux-nat.h.
3923 (x86_linux_dr_get): Now in x86-linux-nat.c.
3924 (x86_linux_dr_set): Likewise.
3925 (x86_linux_dr_get_addr): Likewise.
3926 (x86_linux_dr_get_control): Likewise.
3927 (x86_linux_dr_get_status): Likewise.
3928 (update_debug_registers_callback): Likewise.
3929 (x86_linux_dr_set_control): Likewise.
3930 (x86_linux_dr_set_addr): Likewise.
3931 (x86_linux_prepare_to_resume): Likewise.
3932 (x86_linux_new_thread): Likewise.
3933 (x86_linux_new_fork): Likewise.
3934 (x86_linux_get_thread_area): Likewise.
3935 (super_post_startup_inferior): Likewise.
3936 (x86_linux_child_post_startup_inferior): Likewise.
3937 (AMD64_LINUX_USER64_CS): Likewise.
3938 (AMD64_LINUX_X32_DS): Likewise.
3939 (x86_linux_read_description): Likewise.
3940 (x86_linux_enable_btrace): Likewise.
3941 (x86_linux_disable_btrace): Likewise.
3942 (x86_linux_teardown_btrace): Likewise.
3943 (x86_linux_read_btrace): Likewise.
3944 (x86_linux_create_target): Likewise.
3945 (x86_linux_add_target): Likewise.
3946 * i386-linux-nat.c (x86-linux-nat.h): New include.
3947 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3948 (PTRACE_SETREGSET): Likewise.
3949 (arch_lwp_info): Now in x86-linux-nat.c.
3950 (have_ptrace_getregset): Now in x86-linux-nat.h.
3951 (x86_linux_dr_get): Now in x86-linux-nat.c.
3952 (x86_linux_dr_set): Likewise.
3953 (x86_linux_dr_get_addr): Likewise.
3954 (x86_linux_dr_get_control): Likewise.
3955 (x86_linux_dr_get_status): Likewise.
3956 (update_debug_registers_callback): Likewise.
3957 (x86_linux_dr_set_control): Likewise.
3958 (x86_linux_dr_set_addr): Likewise.
3959 (x86_linux_prepare_to_resume): Likewise.
3960 (x86_linux_new_thread): Likewise.
3961 (x86_linux_new_fork): Likewise.
3962 (x86_linux_get_thread_area): Likewise.
3963 (super_post_startup_inferior): Likewise.
3964 (x86_linux_child_post_startup_inferior): Likewise.
3965 (AMD64_LINUX_USER64_CS): Likewise.
3966 (AMD64_LINUX_X32_DS): Likewise.
3967 (x86_linux_read_description): Likewise.
3968 (x86_linux_enable_btrace): Likewise.
3969 (x86_linux_disable_btrace): Likewise.
3970 (x86_linux_teardown_btrace): Likewise.
3971 (x86_linux_read_btrace): Likewise.
3972 (x86_linux_create_target): Likewise.
3973 (x86_linux_add_target): Likewise.
3974
3975 2014-07-11 Gary Benson <gbenson@redhat.com>
3976
3977 * amd64-linux-nat.c: Comment and whitespace changes.
3978 * i386-linux-nat.c: Comment and whitespace changes.
3979
3980 2014-07-11 Gary Benson <gbenson@redhat.com>
3981
3982 * amd64-linux-nat.c (x86_linux_create_target): New function.
3983 (x86_linux_add_target): Likewise.
3984 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3985 * i386-linux-nat.c (x86_linux_create_target): New function.
3986 (x86_linux_add_target): Likewise.
3987 (_initialize_i386_linux_nat): Delegate to the above new functions.
3988
3989 2014-07-11 Gary Benson <gbenson@redhat.com>
3990
3991 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3992 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3993 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3994 (ps_get_thread_area): Delegate to the above.
3995
3996 2014-07-11 Gary Benson <gbenson@redhat.com>
3997
3998 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3999 x86_linux_read_description. All uses updated. amd64-specific
4000 code conditionalized. Conditionalized i386-specific code added.
4001 Redundant cast removed.
4002 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4003 x86_linux_read_description. All uses updated. i386-specific
4004 code conditionalized. Conditionalized amd64-specific code added.
4005 One sizeof replaced with the actual type it is describing.
4006
4007 2014-07-11 Gary Benson <gbenson@redhat.com>
4008
4009 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4010 x86_linux_dr_get. All uses updated.
4011 (amd64_linux_dr_set): Renamed to
4012 x86_linux_dr_set. All uses updated.
4013 (amd64_linux_dr_get_addr): Renamed to
4014 x86_linux_dr_get_addr. All uses updated.
4015 (amd64_linux_dr_get_control): Renamed to
4016 x86_linux_dr_get_control. All uses updated.
4017 (amd64_linux_dr_get_status): Renamed to
4018 x86_linux_dr_get_status. All uses updated.
4019 (amd64_linux_dr_set_control): Renamed to
4020 x86_linux_dr_set_control. All uses updated.
4021 (amd64_linux_dr_set_addr): Renamed to
4022 x86_linux_dr_set_addr. All uses updated.
4023 (amd64_linux_prepare_to_resume): Renamed to
4024 x86_linux_prepare_to_resume. All uses updated.
4025 (amd64_linux_new_thread): Renamed to
4026 x86_linux_new_thread. All uses updated.
4027 (amd64_linux_new_fork): Renamed to
4028 x86_linux_new_fork. All uses updated.
4029 (amd64_linux_child_post_startup_inferior): Renamed to
4030 x86_linux_child_post_startup_inferior. All uses updated.
4031 (amd64_linux_enable_btrace): Renamed to
4032 x86_linux_enable_btrace. All uses updated.
4033 (amd64_linux_disable_btrace): Renamed to
4034 x86_linux_disable_btrace. All uses updated.
4035 (amd64_linux_teardown_btrace): Renamed to
4036 x86_linux_teardown_btrace. All uses updated.
4037 (amd64_linux_read_btrace): Renamed to
4038 x86_linux_read_btrace. All uses updated.
4039 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4040 x86_linux_dr_get. All uses updated.
4041 (i386_linux_dr_set): Renamed to
4042 x86_linux_dr_set. All uses updated.
4043 (i386_linux_dr_get_addr): Renamed to
4044 x86_linux_dr_get_addr. All uses updated.
4045 (i386_linux_dr_get_control): Renamed to
4046 x86_linux_dr_get_control. All uses updated.
4047 (i386_linux_dr_get_status): Renamed to
4048 x86_linux_dr_get_status. All uses updated.
4049 (i386_linux_dr_set_control): Renamed to
4050 x86_linux_dr_set_control. All uses updated.
4051 (i386_linux_dr_set_addr): Renamed to
4052 x86_linux_dr_set_addr. All uses updated.
4053 (i386_linux_prepare_to_resume): Renamed to
4054 x86_linux_prepare_to_resume. All uses updated.
4055 (i386_linux_new_thread): Renamed to
4056 x86_linux_new_thread. All uses updated.
4057 (i386_linux_new_fork): Renamed to
4058 x86_linux_new_fork. All uses updated.
4059 (i386_linux_child_post_startup_inferior): Renamed to
4060 x86_linux_child_post_startup_inferior. All uses updated.
4061 (i386_linux_enable_btrace): Renamed to
4062 x86_linux_enable_btrace. All uses updated.
4063 (i386_linux_disable_btrace): Renamed to
4064 x86_linux_disable_btrace. All uses updated.
4065 (i386_linux_teardown_btrace): Renamed to
4066 x86_linux_teardown_btrace. All uses updated.
4067 (i386_linux_read_btrace): Renamed to
4068 x86_linux_read_btrace. All uses updated.
4069
4070 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4071
4072 * remote.c (extended_remote_post_attach): New function.
4073 (init_extended_remote_ops): Install it as to_post_attach method.
4074
4075 2014-07-09 Pedro Alves <palves@redhat.com>
4076
4077 * infcmd.c (attach_command_post_wait): Don't call
4078 target_terminal_inferior here.
4079 (attach_command): Call it here instead.
4080
4081 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4082
4083 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4084 field.
4085 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4086 from varobj.c, with additional checks.
4087 (c_varobj_ops): Fill in is_path_expr_parent field.
4088 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4089 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4090 field.
4091 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4092 ops method.
4093 (varobj_default_is_path_expr_parent): New function.
4094 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4095 (varobj_default_is_path_expr_parent): Declare new function.
4096
4097 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4098
4099 * infcmd.c (finish_backward): Turn internal error into normal error.
4100
4101 2014-07-07 Pedro Alves <palves@redhat.com>
4102
4103 PR gdb/17096
4104 * remote.c (async_handle_remote_sigint)
4105 (async_handle_remote_sigint_twice): Call
4106 gdb_call_async_signal_handler instead of
4107 mark_async_signal_handler.
4108
4109 2014-07-07 Tom Tromey <tromey@redhat.com>
4110
4111 * target-delegates.c: Rebuild.
4112 * target.c (target_info_record): Remove.
4113 * record.c (info_record_command): Unconditionally call
4114 to_info_record.
4115 * target.h (struct target_ops) <to_info_record>: Use
4116 TARGET_DEFAULT_IGNORE.
4117 (target_info_record): Remove.
4118
4119 2014-07-07 Tom Tromey <tromey@redhat.com>
4120
4121 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4122 TARGET_DEFAULT_NORETURN.
4123 * target.c (generic_tls_error): New function.
4124 (target_translate_tls_address): Don't search target stack.
4125 * target-delegates.c: Rebuild.
4126 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4127 stack.
4128 * linux-thread-db.c (thread_db_get_thread_local_address):
4129 Unconditionally call beneath target.
4130
4131 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4132
4133 * cli/cli-logging.c (pop_output_files): Assign targerr to
4134 gdb_stdtargerr.
4135
4136 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4137
4138 * MAINTAINERS (Write After Approval): Update my email address.
4139
4140 2014-07-02 Gary Benson <gbenson@redhat.com>
4141
4142 * proc-service.c (ps_xfer_memory): Update comment.
4143 (ps_pstop): Remove unused function.
4144 (ps_pcontinue): Likewise.
4145 (ps_lstop): Likewise.
4146 (ps_lcontinue): Likewise.
4147 (ps_lgetxregsize): Likewise.
4148 (ps_lgetxregs): Likewise.
4149 (ps_lsetxregs): Likewise.
4150 (ps_plog): Likewise.
4151 (ps_ptread): Likewise.
4152 (ps_ptwrite): Likewise.
4153
4154 2014-07-01 Mark Wielaard <mjw@redhat.com>
4155
4156 * dwarf2read.c (add_array_cv_type): New function.
4157 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4158 (read_tag_volatile_type): Likewise.
4159
4160 2014-07-01 Tom Tromey <tromey@redhat.com>
4161
4162 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4163 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4164 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4165 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4166 * command.h (cmd_cfunc_ftype): Move earlier.
4167 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4168 (add_com, add_info): Use cmd_cfunc_ftype.
4169
4170 2014-06-30 Tom Tromey <tromey@redhat.com>
4171
4172 * symtab.c (operator_chars): Make parameters and return type
4173 const.
4174 (file_matches): Make "files" const.
4175 (struct search_symbols_data) <files>: Now const.
4176 (search_symbols): Make "regexp" and "files" parameters const.
4177 Update.
4178 (symtab_symbol_info): Remove cast.
4179 (rbreak_command): Update.
4180 * symtab.h (search_symbols): Update.
4181
4182 2014-06-27 Yao Qi <yao@codesourcery.com>
4183
4184 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4185 Change parameter type to 'struct thread_info *'. Caller
4186 updated.
4187 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4188 Update declaration.
4189 * dummy-frame.c (struct dummy_frame_id): New.
4190 (dummy_frame_id_eq): New function.
4191 (struct dummy_frame) <id>: Change its type to 'struct
4192 dummy_frame_id'.
4193 (dummy_frame_push): Add parameter ptid and save it in
4194 dummy_frame_id.
4195 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4196 inferior_ptid.
4197 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4198 to inferior_ptid.
4199 (lookup_dummy_frame): Change parameter type to 'struct
4200 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4201 instead of frame_id_eq.
4202 (dummy_frame_pop): Add parameter ptid. Callers updated.
4203 Update comments. Compose dummy_frame_id and pass it to
4204 lookup_dummy_frame.
4205 (dummy_frame_discard): Add parameter ptid.
4206 (dummy_frame_sniffer): Compose dummy_frame_id and call
4207 dummy_frame_id_eq instead of frame_id_eq.
4208 (fprint_dummy_frames): Print ptid.
4209 * dummy-frame.h: Remove comments.
4210 (dummy_frame_push): Add ptid in declaration.
4211 (dummy_frame_pop, dummy_frame_discard): Likewise.
4212
4213 2014-06-26 Tom Tromey <tromey@redhat.com>
4214
4215 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4216 * command.h (error_no_arg): Update.
4217
4218 2014-06-26 Tom Tromey <tromey@redhat.com>
4219
4220 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4221 (do_show_command): Make "arg" const.
4222 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4223
4224 2014-06-26 Tom Tromey <tromey@redhat.com>
4225
4226 * record-full.c (record_full_get_bookmark): Make "args" const.
4227 (record_full_goto_bookmark): Make "raw_bookmark" const.
4228 * record.c (record_goto): New function.
4229 (cmd_record_goto): Use it. Now static.
4230 * record.h (record_goto): Declare.
4231 (cmd_record_goto): Remove declaration.
4232 * target-delegates.c: Rebuild.
4233 * target.h (struct target_ops) <to_get_bookmark,
4234 to_goto_bookmark>: Make parameter const.
4235
4236 2014-06-26 Tom Tromey <tromey@redhat.com>
4237
4238 * defs.h (generic_load): Update.
4239 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4240 * monitor.c (monitor_load): Make "args" const.
4241 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4242 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4243 const.
4244 (mips_load): Make "file" const.
4245 * remote-sim.c (gdbsim_load): Make "args" const.
4246 * remote.c (remote_load): Make "name" const.
4247 * symfile.c (generic_load): Make "args" const.
4248 * target-delegates.c: Rebuild.
4249 * target.c (target_load): Make "arg" const.
4250 (debug_to_load): Make "args" const.
4251 * target.h (struct target_ops) <to_load>: Make parameter const.
4252 (target_load): Update.
4253
4254 2014-06-26 Tom Tromey <tromey@redhat.com>
4255
4256 PR symtab/16902:
4257 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4258 (dwarf2_physname, read_partial_die)
4259 (guess_partial_die_structure_name, fixup_partial_die)
4260 (guess_full_die_structure_name, anonymous_struct_prefix)
4261 (dwarf2_name): Use per-BFD obstack.
4262
4263 2014-06-26 Yao Qi <yao@codesourcery.com>
4264
4265 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4266 dummyframe and this_id into inner block below.
4267
4268 2014-06-26 Yao Qi <yao@codesourcery.com>
4269
4270 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4271 with "signal_pass[0]" in the initialization of signal_pass.
4272
4273 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4274
4275 * record-btrace.c (record_btrace_generating_corefile)
4276 (record_btrace_prepare_to_generate_core)
4277 (record_btrace_done_generating_core): New.
4278 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4279 (record_btrace_store_registers, record_btrace_prepare_to_store):
4280 Forward request when generating a core file.
4281 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4282 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4283 to_done_generating_core.
4284
4285 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4286
4287 * target.h (target_ops) <to_prepare_to_generate_core>
4288 <to_done_generating_core>: New.
4289 (target_prepare_to_generate_core, target_done_generating_core): New.
4290 * target.c (target_prepare_to_generate_core)
4291 (target_done_generating_core): New.
4292 * target-delegates.c: Regenerate.
4293 * gcore.c: (write_gcore_file): Rename to ...
4294 (write_gcore_file_1): ...this.
4295 (write_gcore_file): Call target_prepare_to_generate_core
4296 and target_done_generating_core.
4297
4298 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4299
4300 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4301 * gcore.c (write_gcore_file): Free memory returned from
4302 make_corefile_notes.
4303 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4304 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4305
4306 2014-06-24 Yao Qi <yao@codesourcery.com>
4307
4308 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4309 (arm_linux_init_abi): Set skip_trampoline_code with
4310 gdbarch_skip_trampoline_code instead of
4311 find_solib_trampoline_target.
4312
4313 2014-06-24 Yao Qi <yao@codesourcery.com>
4314
4315 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4316 arm_skip_bx_reg returns non-zero.
4317
4318 2014-06-24 Yao Qi <yao@codesourcery.com>
4319
4320 * arm-tdep.c (arm_skip_bx_reg): New function.
4321 (arm_skip_stub): Call arm_skip_bx_reg.
4322
4323 2014-06-23 Don Breazeal <donb@codesourcery.com>
4324
4325 * MAINTAINERS: Add myself as write-after-approval maintainer.
4326
4327 2014-06-23 Pedro Alves <palves@redhat.com>
4328
4329 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4330 DR_CONTROL before setting DR0..DR3.
4331 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4332 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4333 bits of DR_CONTROL related to the debug register slot being
4334 disabled. If all slots are vacant, clear local slowdown as well,
4335 and assert DR_CONTROL is 0.
4336
4337 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4338
4339 * python/lib/gdb/command/xmethods.py
4340 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4341 current progspace only if the string "progspace" matches LOCUS_RE.
4342
4343 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4344
4345 Fix --with-system-readline with readline-6.3 patch 5.
4346 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4347 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4348 types.
4349
4350 2014-06-20 Tom Tromey <tromey@redhat.com>
4351
4352 * dwarf2read.c (dw2_get_real_path): Use correct type in
4353 OBSTACK_CALLOC.
4354 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4355
4356 2014-06-20 Gary Benson <gbenson@redhat.com>
4357
4358 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4359 * common/glibc_thread_db.h: Likewise.
4360 * common/i386-cpuid.h: Likewise.
4361 * common/i386-gcc-cpuid.h: Likewise.
4362 * common/linux-btrace.h: Likewise.
4363 * common/linux-osdata.h: Likewise.
4364 * common/linux-procfs.h: Likewise.
4365 * common/linux-ptrace.h: Likewise.
4366 * common/mips-linux-watch.h: Likewise.
4367 * common/linux-btrace.c: Moved to nat.
4368 * common/linux-osdata.c: Likewise.
4369 * common/linux-procfs.c: Likewise.
4370 * common/linux-ptrace.c: Likewise.
4371 * common/mips-linux-watch.c: Likewise.
4372 * nat/gdb_thread_db.h: Moved from common.
4373 * nat/glibc_thread_db.h: Likewise.
4374 * nat/i386-cpuid.h: Likewise.
4375 * nat/i386-gcc-cpuid.h: Likewise.
4376 * nat/linux-btrace.c: Likewise.
4377 * nat/linux-btrace.h: Likewise.
4378 * nat/linux-osdata.c: Likewise.
4379 * nat/linux-osdata.h: Likewise.
4380 * nat/linux-procfs.c: Likewise.
4381 * nat/linux-procfs.h: Likewise.
4382 * nat/linux-ptrace.c: Likewise.
4383 * nat/linux-ptrace.h: Likewise.
4384 * nat/mips-linux-watch.c: Likewise.
4385 * nat/mips-linux-watch.h: Likewise.
4386 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4387 (object file files): Reordered.
4388 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4389 of glibc_thread_db.h.
4390
4391 2014-06-20 Gary Benson <gbenson@redhat.com>
4392
4393 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4394 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4395 (i386_dr_low): Likewise.
4396 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4397 (i386_dr_low_set_addr): Likewise.
4398 (i386_dr_low_get_addr): Likewise.
4399 (i386_dr_low_can_set_control): Likewise.
4400 (i386_dr_low_set_control): Likewise.
4401 (i386_dr_low_get_control): Likewise.
4402 (i386_dr_low_get_status): Likewise.
4403 (i386_get_debug_register_length): Likewise.
4404 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4405 (i386_dr_low): Likewise.
4406 * nat/i386-dregs.c (i386-low.h): Remove include.
4407 (i386-nat.h): Likewise.
4408 (nat/i386-dregs.h): New include.
4409 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4410 (i386_dr_low_set_addr): Likewise.
4411 (i386_dr_low_get_addr): Likewise.
4412 (i386_dr_low_can_set_control): Likewise.
4413 (i386_dr_low_set_control): Likewise.
4414 (i386_dr_low_get_control): Likewise.
4415 (i386_dr_low_get_status): Likewise.
4416 (i386_get_debug_register_length): Likewise.
4417 (debug_hw_points): Likewise.
4418
4419 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4420
4421 * Makefile.in (SFILES): Add d-exp.y.
4422 (YYFILES): Add d-exp.c.
4423 (YYOBJ): Add d-exp.o.
4424 (local-maintainer-clean): Delete d-exp.c.
4425 * d-exp.y: New file.
4426 * d-lang.h (d_parse): New declaration.
4427 (d_error): New declaration.
4428 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4429 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4430 PREC_ORDER operators.
4431 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4432
4433 2014-06-19 Yao Qi <yao@codesourcery.com>
4434
4435 * gdbthread.h (any_running): Remove the declaration.
4436 * thread.c (any_running): Remove.
4437
4438 2014-06-19 Yao Qi <yao@codesourcery.com>
4439
4440 * gdbthread.h (struct thread_info) <state>: Change its type to
4441 'enum thread_state'. Update comments.
4442
4443 2014-06-19 Pedro Alves <palves@redhat.com>
4444
4445 * gdbthread.h (ALL_THREADS): Delete.
4446 (ALL_NON_EXITED_THREADS): New macro.
4447 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4448 instead of ALL_THREADS.
4449 * infrun.c (find_thread_needs_step_over)
4450 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4451 instead of ALL_THREADS.
4452 * record-btrace.c (record_btrace_open)
4453 (record_btrace_stop_recording, record_btrace_close)
4454 (record_btrace_is_replaying, record_btrace_resume)
4455 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4456 * remote.c (append_pending_thread_resumptions): Likewise.
4457 * thread.c (thread_apply_all_command): Likewise.
4458
4459 2014-06-19 Gary Benson <gbenson@redhat.com>
4460
4461 * i386-nat.c (i386_stopped_by_watchpoint):
4462 Use i386_dr_stopped_by_watchpoint.
4463 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4464 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4465
4466 2014-06-19 Gary Benson <gbenson@redhat.com>
4467
4468 * nat/i386-dregs.c: New file.
4469 * Makefile.in (i386-dregs.o): New rule.
4470 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4471 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4472 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4473 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4474 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4475 * config/i386/go32.mh (NATDEPFILES): Likewise.
4476 * config/i386/linux.mh (NATDEPFILES): Likewise.
4477 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4478 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4479 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4480 * i386-nat.h (debug_hw_points): New declaration.
4481 * i386-nat.c (breakpoint.h): Remove include.
4482 (command.h): Likewise.
4483 (target.h): Likewise.
4484 (gdb_assert.h): Likewise.
4485 (debug_hw_points): Made nonstatic.
4486 (debug_printf): Now in i386-dregs.c.
4487 (TARGET_HAS_DR_LEN_8): Likewise.
4488 (DR_CONTROL_SHIFT): Likewise.
4489 (DR_CONTROL_SIZE): Likewise.
4490 (DR_RW_EXECUTE): Likewise.
4491 (DR_RW_WRITE): Likewise.
4492 (DR_RW_READ): Likewise.
4493 (DR_RW_IORW): Likewise.
4494 (DR_LEN_1): Likewise.
4495 (DR_LEN_2): Likewise.
4496 (DR_LEN_4): Likewise.
4497 (DR_LEN_8): Likewise.
4498 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4499 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4500 (DR_ENABLE_SIZE): Likewise.
4501 (DR_LOCAL_SLOWDOWN): Likewise.
4502 (DR_GLOBAL_SLOWDOWN): Likewise.
4503 (DR_CONTROL_RESERVED): Likewise.
4504 (I386_DR_CONTROL_MASK): Likewise.
4505 (I386_DR_VACANT): Likewise.
4506 (I386_DR_LOCAL_ENABLE): Likewise.
4507 (I386_DR_GLOBAL_ENABLE): Likewise.
4508 (I386_DR_DISABLE): Likewise.
4509 (I386_DR_SET_RW_LEN): Likewise.
4510 (I386_DR_GET_RW_LEN): Likewise.
4511 (I386_DR_WATCH_HIT): Likewise.
4512 (i386_wp_op_t): Likewise.
4513 (i386_show_dr): Likewise.
4514 (i386_length_and_rw_bits): Likewise.
4515 (i386_insert_aligned_watchpoint): Likewise.
4516 (i386_remove_aligned_watchpoint): Likewise.
4517 (i386_handle_nonaligned_watchpoint): Likewise.
4518 (i386_update_inferior_debug_regs): Likewise.
4519 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4520 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4521 (i386_region_ok_for_watchpoint):
4522 Use i386_dr_region_ok_for_watchpoint.
4523 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4524
4525 2014-06-19 Gary Benson <gbenson@redhat.com>
4526
4527 * i386-nat.c (i386_insert_hw_breakpoint): Use
4528 i386_insert_watchpoint.
4529 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4530
4531 2014-06-19 Gary Benson <gbenson@redhat.com>
4532
4533 * i386-nat.c (i386_dr_show): Renamed to
4534 i386_show_dr and made static. All uses updated.
4535 (i386_dr_length_and_rw_bits): Renamed to
4536 i386_length_and_rw_bits and made static.
4537 All uses updated.
4538 (i386_dr_insert_aligned_watchpoint): Renamed to
4539 i386_insert_aligned_watchpoint and made static.
4540 All uses updated.
4541 (i386_dr_remove_aligned_watchpoint): Renamed to
4542 i386_remove_aligned_watchpoint and made static.
4543 All uses updated.
4544 (i386_dr_update_inferior_debug_regs): Renamed to
4545 i386_update_inferior_debug_regs and made static.
4546 All uses updated.
4547 * nat/i386-dregs.h (i386_dr_show): Removed.
4548 (i386_dr_length_and_rw_bits): Likewise.
4549 (i386_dr_insert_aligned_watchpoint): Likewise.
4550 (i386_dr_remove_aligned_watchpoint): Likewise.
4551 (i386_dr_update_inferior_debug_regs): Likewise.
4552
4553 2014-06-19 Gary Benson <gbenson@redhat.com>
4554
4555 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4556 * configure: Regenerate.
4557 * config.in: Likewise.
4558 * main.c (signal.h): New include.
4559 (setup_alternate_signal_stack): New function.
4560 (captured_main): Call the above.
4561 * cp-support.c (signal.h): New include.
4562 (catch_demangler_crashes): New flag.
4563 (SIGJMP_BUF): New define.
4564 (SIGSETJMP): Likewise.
4565 (SIGLONGJMP): Likewise.
4566 (gdb_demangle_jmp_buf): New static global.
4567 (gdb_demangle_attempt_core_dump): Likewise.
4568 (gdb_demangle_signal_handler): New function.
4569 (gdb_demangle): If catch_demangler_crashes is set, install the
4570 above signal handler before calling bfd_demangle, and restore
4571 the original signal handler afterwards. Display the offending
4572 symbol and call demangler_warning the first time a segmentation
4573 fault is caught.
4574 (_initialize_cp_support): New maint set/show command.
4575
4576 2014-06-19 Gary Benson <gbenson@redhat.com>
4577
4578 * utils.h (resource_limit_kind): New enum.
4579 (can_dump_core): New declaration.
4580 (warn_cant_dump_core): Likewise.
4581 (dump_core): Likewise.
4582 * utils.c (dump_core): Made nonstatic. Added new
4583 parameter "limit_kind".
4584 (can_dump_core): Made nonstatic. Moved printing code to...
4585 (warn_cant_dump_core): New function.
4586 (can_dump_core_warn): Likewise.
4587 (internal_vproblem): Replace calls to can_dump_core with
4588 calls to can_dump_core_warn. Supply new argument to each.
4589
4590 2014-06-19 Gary Benson <gbenson@redhat.com>
4591
4592 * utils.h (demangler_vwarning): New declaration.
4593 (demangler_warning): Likewise.
4594 * utils.c (struct internal_problem)
4595 <user_settable_should_quit>: New field.
4596 <user_settable_should_dump_core>: Likewise
4597 (internal_error_problem): Add values for above new fields.
4598 (internal_warning_problem): Likewise.
4599 (demangler_warning_problem): New static global.
4600 (demangler_vwarning): New function.
4601 (demangler_warning): Likewise.
4602 (add_internal_problem_command): Selectively add commands.
4603 (_initialize_utils): New internal problem command.
4604 * maint.c (maintenance_demangler_warning): New function.
4605 (_initialize_maint_cmds): New command.
4606
4607 2014-06-18 Tom Tromey <tromey@redhat.com>
4608
4609 * f-valprint.c (info_common_command_for_block): Update.
4610 * symtab.h (struct general_symbol_info) <common_block>: Now
4611 const.
4612
4613 2014-06-18 Tom Tromey <tromey@redhat.com>
4614
4615 * symtab.h (struct symtab) <blockvector>: Now const.
4616 * ada-lang.c (ada_add_global_exceptions): Update.
4617 * buildsym.c (augment_type_symtab): Update.
4618 * dwarf2read.c (dw2_lookup_symbol): Update.
4619 * jit.c (finalize_symtab): Update.
4620 * jv-lang.c (add_class_symtab_symbol): Update.
4621 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4622 Update.
4623 * objfiles.c (objfile_relocate1): Update.
4624 * psymtab.c (lookup_symbol_aux_psymtabs)
4625 (maintenance_check_psymtabs): Update.
4626 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4627 Update.
4628 * spu-tdep.c (spu_catch_start): Update.
4629 * symmisc.c (dump_symtab_1): Update.
4630 * symtab.c (lookup_global_symbol_from_objfile)
4631 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4632 (basic_lookup_transparent_type_quick)
4633 (basic_lookup_transparent_type, find_pc_sect_symtab)
4634 (find_pc_sect_line, search_symbols): Update.
4635 * block.c (find_block_in_blockvector): Make "bl" const.
4636 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4637 const.
4638 (blockvector_contains_pc): Make "bv" const.
4639 (block_for_pc_sect): Update.
4640 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4641 (blockvector_contains_pc): Update.
4642 * breakpoint.c (resolve_sal_pc): Update.
4643 * inline-frame.c (block_starting_point_at): Update.
4644
4645 2014-06-18 Tom Tromey <tromey@redhat.com>
4646
4647 * completer.c (complete_line): Make "line_buffer" const.
4648 * completer.h (complete_line): Update.
4649
4650 2014-06-18 Tom Tromey <tromey@redhat.com>
4651
4652 * symtab.c (add_macro_name): Remove unneeded cast.
4653
4654 2014-06-18 Tom Tromey <tromey@redhat.com>
4655
4656 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4657 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4658
4659 2014-06-18 Tom Tromey <tromey@redhat.com>
4660
4661 * probe.c (info_probes_for_ops): Make "arg" const.
4662 * probe.h (info_probes_for_ops): Update.
4663
4664 2014-06-18 Tom Tromey <tromey@redhat.com>
4665
4666 * varobj.c (varobj_create): Update.
4667 * valops.c (value_of_this): Update.
4668 * tracepoint.c (add_local_symbols, scope_info): Update.
4669 * symtab.h (struct general_symbol_info) <block>: Now const.
4670 * symtab.c (skip_prologue_sal)
4671 (default_make_symbol_completion_list_break_on)
4672 (skip_prologue_using_sal): Update.
4673 * stack.h (iterate_over_block_locals)
4674 (iterate_over_block_local_vars): Update.
4675 * stack.c (print_frame_args): Update.
4676 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4677 parameter const.
4678 (get_selected_block): Make return type const.
4679 * python/py-frame.c (frapy_block): Update.
4680 * python/py-block.c (gdbpy_block_for_pc): Update.
4681 * p-exp.y (%union) <bval>: Now const.
4682 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4683 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4684 * m2-exp.y (%union) <bval>: Now const.
4685 * linespec.c (get_current_search_block): Make return type const.
4686 (create_sals_line_offset, find_label_symbols): Update.
4687 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4688 Update.
4689 (block_starting_point_at): Make "block" const.
4690 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4691 (check_exception_resume): Update.
4692 * guile/scm-frame.c (gdbscm_frame_block): Update.
4693 * guile/scm-block.c (gdbscm_lookup_block): Update.
4694 * frame.h (get_frame_block): Update.
4695 (get_selected_block): Make return type const.
4696 * frame.c (frame_id_inner): Update.
4697 * f-valprint.c (info_common_command_for_block)
4698 (info_common_command): Update.
4699 * dwarf2loc.c (dwarf2_find_location_expression)
4700 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4701 (locexpr_describe_location_piece): Update.
4702 * c-exp.y (%union) <bval>: Now const.
4703 * breakpoint.c (resolve_sal_pc): Update.
4704 * blockframe.c (get_frame_block):Make return type const.
4705 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4706 (block_innermost_frame): Update.
4707 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4708 (block_for_pc, block_for_pc_sect): Update.
4709 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4710 'pblock' const.
4711 (block_for_pc_sect, block_for_pc): Make return type const.
4712 * ax-gdb.c (gen_expr): Update.
4713 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4714 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4715 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4716 (ada_read_var_value): Update.
4717 * ada-exp.y (struct name_info) <block>: Now const.
4718 (%union): Likewise.
4719 (block_lookup): Constify.
4720
4721 2014-06-18 Gary Benson <gbenson@redhat.com>
4722
4723 * nat/i386-dregs.h: New file.
4724 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4725 * i386-nat.h (i386-dregs.h): New include.
4726 (DR_FIRSTADDR): Now in i386-dregs.h.
4727 (DR_LASTADDR): Likewise.
4728 (DR_NADDR): Likewise.
4729 (DR_STATUS): Likewise.
4730 (DR_CONTROL): Likewise.
4731 (i386_debug_reg_state): Likewise.
4732 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4733
4734 2014-06-18 Don Breazeal <donb@codesourcery.com>
4735
4736 * breakpoint.c (set_longjmp_breakpoint): Call
4737 momentary_breakpoint_from_master with additional argument.
4738 (set_longjmp_breakpoint_for_call_dummy): Call
4739 momentary_breakpoint_from_master with additional argument.
4740 (set_std_terminate_breakpoint): Call
4741 momentary_breakpoint_from_master with additional argument.
4742 (momentary_breakpoint_from_master): Add argument to function
4743 definition and use it to initialize structure member flag.
4744 (clone_momentary_breakpoint): Call
4745 momentary_breakpoint_from_master with additional argument.
4746 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4747 member flags set in momentary_breakpoint_from_master.
4748
4749 2014-06-18 Gary Benson <gbenson@redhat.com>
4750
4751 * i386-nat.c (i386_show_dr): Renamed to
4752 i386_dr_show and made nonstatic. All uses updated.
4753 (i386_length_and_rw_bits): Renamed to
4754 i386_dr_length_and_rw_bits and made nonstatic.
4755 All uses updated.
4756 (i386_insert_aligned_watchpoint): Renamed to
4757 i386_dr_insert_aligned_watchpoint and made nonstatic.
4758 All uses updated.
4759 (i386_remove_aligned_watchpoint): Renamed to
4760 i386_dr_remove_aligned_watchpoint and made nonstatic.
4761 All uses updated.
4762 (i386_update_inferior_debug_regs): Renamed to
4763 i386_dr_update_inferior_debug_regs and made nonstatic.
4764 All uses updated.
4765
4766 2014-06-18 Gary Benson <gbenson@redhat.com>
4767
4768 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4769 (i386_dr_low_can_set_control): Likewise.
4770 (i386_dr_low_set_addr): Likewise.
4771 (i386_dr_low_set_control): Likewise.
4772 (i386_dr_low_get_addr): Likewise.
4773 (i386_dr_low_get_status): Likewise.
4774 (i386_dr_low_get_control): Likewise.
4775 (i386_insert_aligned_watchpoint): Use new macros.
4776 (i386_update_inferior_debug_regs): Likewise.
4777 (i386_stopped_data_address): Likewise.
4778
4779 2014-06-18 Gary Benson <gbenson@redhat.com>
4780
4781 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4782 New parameter. All uses updated.
4783
4784 2014-06-18 Gary Benson <gbenson@redhat.com>
4785
4786 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4787 All uses updated.
4788
4789 2014-06-18 Gary Benson <gbenson@redhat.com>
4790
4791 * i386-nat.c (debug_printf): New macro.
4792 (i386_get_debug_register_length): Likewise.
4793 (TARGET_HAS_DR_LEN_8): Use above macro.
4794 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4795 and printf_unfiltered. Use phex to format values.
4796
4797 2014-06-18 Gary Benson <gbenson@redhat.com>
4798
4799 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4800 Make const.
4801
4802 2014-06-18 Gary Benson <gbenson@redhat.com>
4803
4804 * i386-nat.c: Comment changes.
4805
4806 2014-06-18 Gary Benson <gbenson@redhat.com>
4807
4808 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4809
4810 2014-06-18 Gary Benson <gbenson@redhat.com>
4811
4812 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4813 (i386_insert_aligned_watchpoint): Likewise.
4814 (i386_remove_aligned_watchpoint): Likewise.
4815 (i386_handle_nonaligned_watchpoint): Likewise.
4816
4817 2014-06-18 Gary Benson <gbenson@redhat.com>
4818
4819 * i386-nat.c: Whitespace changes.
4820
4821 2014-06-17 Samuel Bronson <naesten@gmail.com>
4822
4823 * MAINTAINERS: Update Roland McGrath's email address.
4824 Thanks to Sergio Durigan Junior for pointing out that he left
4825 Red Hat a while ago, and giving me a current address.
4826
4827 2014-06-17 Tom Tromey <tromey@redhat.com>
4828
4829 * utils.h (savestring): Remove declaration.
4830
4831 2014-06-17 Tom Tromey <tromey@redhat.com>
4832
4833 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4834
4835 2014-06-16 Keith Seitz <keiths@redhat.com>
4836
4837 PR mi/15863
4838 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4839 to update the varobj if inferior_ptid is null_ptid.
4840
4841 2014-06-16 Tom Tromey <tromey@redhat.com>
4842
4843 * target.h (struct target_ops) <to_info_proc>: Make parameter
4844 const.
4845 (target_info_proc): Update.
4846 * target.c (target_info_proc): Make "args" const.
4847 * procfs.c (procfs_info_proc): Update.
4848 * linux-tdep.c (linux_info_proc): Update.
4849 (linux_core_info_proc_mappings): Make "args" const.
4850 (linux_core_info_proc): Update.
4851 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4852 * gdbarch.c: Rebuild.
4853 * gdbarch.h: Rebuild.
4854 * corelow.c (core_info_proc): Update.
4855
4856 2014-06-16 Tom Tromey <tromey@redhat.com>
4857
4858 * target.h (struct target_ops) <to_disconnect>: Make parameter
4859 const.
4860 (target_disconnect): Update.
4861 * target.c (target_disconnect): Make "args" const.
4862 * target-delegates.c: Rebuild.
4863 * remote.c (remote_disconnect): Update.
4864 * record.h (record_disconnect): Update.
4865 * record.c (record_disconnect): Update.
4866 * inf-child.c (inf_child_disconnect): Update.
4867
4868 2014-06-16 Tom Tromey <tromey@redhat.com>
4869
4870 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4871 * target.c (debug_to_rcmd, default_rcmd): Update.
4872 * target-delegates.c: Rebuild.
4873 * remote.c (remote_rcmd): Update.
4874 * monitor.c (monitor_rcmd): Update.
4875
4876 2014-06-16 Pedro Alves <palves@redhat.com>
4877
4878 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4879 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4880 have OBJF_SHARED set.
4881 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4882 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4883 instead of OBJF_USERLOADED.
4884 * objfiles.h (OBJF_SHARED): Update comment.
4885 (userloaded_objfile_contains_address_p): Rename to ...
4886 (shared_objfile_contains_address_p): ... this, and update
4887 comments.
4888 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4889 new objfile.
4890 (remove_symbol_file_command): Skip objfiles that don't have
4891 OBJF_SHARED set.
4892
4893 2014-06-16 Tom Tromey <tromey@redhat.com>
4894
4895 * minsyms.h (prim_record_minimal_symbol)
4896 (prim_record_minimal_symbol_and_info): Update comments.
4897
4898 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4899
4900 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4901 or --without-guile, according to how GDB was built.
4902
4903 2014-06-13 Tom Tromey <tromey@redhat.com>
4904
4905 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4906 to help_list.
4907 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4908 to help_list.
4909 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4910 help_list.
4911 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4912 help_list.Pass all_commands, not -1, to help_list.
4913 * cli/cli-dump.c (dump_command, append_command)
4914 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4915 (binary_dump_command, binary_append_command): Pass all_commands,
4916 not -1, to help_list.
4917 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4918 -1, to help_list.
4919 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4920 -1, to help_list.
4921 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4922 help_list.
4923 * top.c (set_history): Pass all_commands, not -1, to help_list.
4924 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4925 all_commands, not -1, to help_list.
4926 * symfile.c (overlay_command): Pass all_commands, not -1, to
4927 help_list.
4928 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4929 help_list.
4930 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4931 help_list.
4932 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4933 -1, to help_list.
4934 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4935 not -1, to help_list.
4936 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4937 not -1, to help_list.
4938 * maint.c (maintenance_command, maintenance_info_command)
4939 (maintenance_print_command, maintenance_set_cmd): Pass
4940 all_commands, not -1, to help_list.
4941 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4942 help_list.
4943 * language.c (set_check): Pass all_commands, not -1, to help_list.
4944 * infcmd.c (unset_command): Pass all_commands, not -1, to
4945 help_list.
4946 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4947 help_list.
4948 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4949 help_list.
4950 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4951 help_list.
4952 * breakpoint.c (save_command): Pass all_commands, not -1, to
4953 help_list.
4954 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4955 all_commands, not -1, to help_list.
4956
4957 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4958
4959 * regcache.c (struct register_to_invalidate): New structure.
4960 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4961 functions.
4962 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4963
4964 2014-06-12 Yao Qi <yao@codesourcery.com>
4965
4966 * varobj.c (varobj_get_num_children): Call
4967 varobj_is_dynamic_p.
4968 (varobj_list_children): Likewise.
4969 (varobj_update): Likewise. Update comments.
4970
4971 2014-06-12 Yao Qi <yao@codesourcery.com>
4972
4973 * varobj.c (varobj_pretty_printed_p): Rename to ...
4974 (varobj_is_dynamic_p): ... this. New function.
4975 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4976 (varobj_is_dynamic_p): Declare.
4977 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4978 (mi_print_value_p, varobj_update_one): Likewise.
4979
4980 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4981 Yao Qi <yao@codesourcery.com>
4982
4983 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4984 (varobj_get_iterator): Wrap up code for pretty-printer by
4985 "#if HAVE_PYTHON" and "#endif".
4986 (update_dynamic_varobj_children): Likewise.
4987
4988 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4989 Yao Qi <yao@codesourcery.com>
4990
4991 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4992 gdb_python_initialized is false. Move some code from varobj.c.
4993 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4994 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4995 (struct varobj_item): Moved to varobj-iter.h".
4996 (varobj_clear_saved_item): New function.
4997 (update_dynamic_varobj_children): Move python-related code to
4998 py-varobj.c.
4999 (free_variable): Call varobj_clear_saved_item and
5000 varobj_iter_delete.
5001
5002 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5003 Yao Qi <yao@codesourcery.com>
5004
5005 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5006 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5007 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5008 (py-varobj.o): New rule.
5009 * python/py-varobj.c: New file.
5010 * python/python-internal.h (py_varobj_get_iterator): Declare.
5011 * varobj-iter.h: New file.
5012 * varobj.c: Include "varobj-iter.h"
5013 (struct varobj) <child_iter>: Change its type from "PyObject *"
5014 to "struct varobj_iter *".
5015 <saved_item>: Likewise.
5016 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5017 [HAVE_PYTHON] (varobj_get_iterator): New function.
5018 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5019 python-specific code to python/py-varobj.c.
5020 (install_visualizer): Call varobj_iter_delete instead of
5021 Py_XDECREF.
5022 * varobj.h (varobj_ensure_python_env): Declare.
5023
5024 2014-06-12 Yao Qi <yao@codesourcery.com>
5025
5026 * varobj.c (struct varobj_item): New structure.
5027 (create_child_with_value): Update declaration.
5028 (varobj_add_child): Replace arguments 'name' and 'value' with
5029 'item'. All callers updated.
5030 (install_dynamic_child): Likewise.
5031 (update_dynamic_varobj_children): Likewise.
5032 (varobj_add_child): Likewise.
5033 (create_child_with_value): Likewise.
5034
5035 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5036
5037 * NEWS: Create a new section for the next release branch.
5038 Rename the section of the current branch, now that it has
5039 been cut.
5040
5041 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5042
5043 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5044 * version.in: Bump version to 7.8.50.DATE-cvs.
5045
5046 2014-06-11 Pedro Alves <palves@redhat.com>
5047
5048 PR remote/17028
5049 * ser-mingw.c (net_windows_socket_check_pending): New function.
5050 (net_windows_select_thread): Ignore spurious wakeups. Use
5051 net_windows_socket_check_pending.
5052 (net_windows_wait_handle): Check for pending events with
5053 ioctlsocket, through net_windows_socket_check_pending, instead of
5054 checking the socket's event.
5055
5056 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5057
5058 * python/python-internal.h (gdb_PyObject_GetAttrString)
5059 (gdb_PyObject_HasAttrString): New inline function definitions.
5060 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5061 char * of the second argument to PyObject_GetAttrString.
5062
5063 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5064
5065 * serial.c (serial_write): Fix index of character to be printed
5066 in call to serial_logchar when serial debug traces are enabled.
5067
5068 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5069
5070 * gdbtypes (resolve_dynamic_range): Add function description.
5071
5072 2014-06-09 Pedro Alves <palves@redhat.com>
5073
5074 * linux-nat.c (linux_child_follow_fork): Initialize status with
5075 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5076 inner block. Only pass the signal to PTRACE_DETACH if in pass
5077 state.
5078
5079 2014-06-09 Gary Benson <gbenson@redhat.com>
5080
5081 * common/signals.c (gdb_signal_from_host): Reorder to separate
5082 the always-available ANSI-standard signals from the signals that
5083 require checking.
5084 (do_gdb_signal_to_host): Likewise.
5085 * proc-events.c (signal_table): Likewise.
5086
5087 2014-06-08 Hui Zhu <hui@codesourcery.com>
5088
5089 * common/linux-ptrace.c (linux_disable_event_reporting): New
5090 function.
5091 * common/linux-ptrace.h (linux_disable_event_reporting): New
5092 declaration.
5093 * linux-nat.c (linux_child_follow_fork): Do a single step before
5094 detach.
5095
5096 2014-06-07 Keith Seitz <keiths@redhat.com>
5097
5098 Revert:
5099 PR c++/16253
5100 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5101 from symbol_matches_domain in symtab.c. All local callers
5102 of symbol_matches_domain updated.
5103 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5104 search STRUCT_DOMAIN.
5105 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5106 independently. standard_lookup will do that automatically.
5107 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5108 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5109 (cp_lookup_symbol_in_namespace): Likewise.
5110 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5111 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5112 may return a STRUCT_DOMAIN match.
5113 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5114 * cp-support.c: Include language.h.
5115 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5116 VAR_DOMAIN.
5117 * psymtab.c (match_partial_symbol): Compare the requested
5118 domain with the symbol's domain directly.
5119 (lookup_partial_symbol): Likewise.
5120 * symtab.c (lookup_symbol_in_language): Explain when/why
5121 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5122 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5123 appropriate languages.
5124 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5125 and moved to ada-lang.c
5126 (lookup_block_symbol): Explain that this function only returns
5127 symbol matching the requested DOMAIN.
5128 Compare the requested domain with the symbol's domain directly.
5129 (iterate_over_symbols): Compare the requested domain with the
5130 symbol's domain directly.
5131 * symtab.h (symbol_matches_domain): Remove.
5132
5133 2014-06-06 Doug Evans <xdje42@gmail.com>
5134
5135 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5136 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5137 (gdbscm_guile_version_is_at_least): Declare.
5138 (gdbscm_scm_string_to_int): Declare.
5139 * guile/guile.c (gdbscm_guile_major_version): New global.
5140 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5141 (guile_datadir): New static global.
5142 (gdbscm_guile_data_directory): New function.
5143 (initialize_scheme_side): Update.
5144 (misc_guile_functions): Add guile-data-directory.
5145 (initialize_gdb_module): Fetch guile version number.
5146 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5147 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5148 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5149 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5150 comments.
5151 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5152 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5153 * guile/scm-value.c (gdbscm_value_to_string): Only call
5154 scm_port_conversion_strategy if Guile version >= 2.0.6.
5155
5156 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5157
5158 * main.c (print_gdb_help): Add -q and --silent.
5159
5160 2014-06-06 Gary Benson <gbenson@redhat.com>
5161
5162 * common/signals.c: Remove preprocessor conditionals for
5163 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5164 SIGSEGV and SIGTERM.
5165 * proc-events.c: Likewise.
5166
5167 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5168
5169 * symfile.c (symfile_free_objfile): Remove restriction to
5170 OBJF_USERLOADED.
5171 * symfile-mem.c (symbol_file_add_from_memory): Call
5172 add_target_sections_of_objfile.
5173
5174 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5175
5176 * guile/scm-value.c (gdbscm_history_append_x): Use
5177 'vlscm_get_value_smob_arg_unsafe' instead of
5178 'vlscm_scm_to_value'.
5179
5180 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5181
5182 PR mi/15806
5183 * utils.c (printchar): Don't escape at all if quoter is NUL.
5184 Update function documentation to clarify effect of parameter
5185 QUOTER.
5186 * remote.c (escape_buffer): Pass '\\' as the quoter to
5187 fputstrn_unfiltered.
5188 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5189 generate the output.
5190 (mi_solib_unloaded): Same.
5191
5192 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5193
5194 * development.sh: Delete.
5195 * Makefile.in (config.status): Adjust dependency on development.sh.
5196 * configure.ac: Adjust development.sh source call.
5197 * configure: Regenerate.
5198
5199 2014-06-04 Doug Evans <xdje42@gmail.com>
5200
5201 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5202 is_scheme_bkpt, spec.
5203 (bpscm_make_breakpoint_smob): Initialize new members.
5204 (gdbscm_create_breakpoint_x): Split into two ...
5205 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5206 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5207 (scheme_function breakpoint_functions): Update.
5208 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5209 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5210 register-breakpoint!.
5211
5212 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5213
5214 PR server/17023
5215 * mem-break.c (z_type_supported): Return zero if
5216 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5217
5218 2014-06-04 Tom Tromey <tromey@redhat.com>
5219
5220 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5221 value_from_contents_and_address_unresolved.
5222 (ada_template_to_fixed_record_type_1): Likewise.
5223 (ada_which_variant_applies): Likewise.
5224 * value.h (value_from_contents_and_address_unresolved): Declare.
5225 * value.c (value_from_contents_and_address_unresolved): New
5226 function.
5227 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5228 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5229 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5230
5231 2014-06-04 Tom Tromey <tromey@redhat.com>
5232
5233 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5234
5235 2014-06-04 Tom Tromey <tromey@redhat.com>
5236
5237 * procfs.c (procfs_attach): Make "args" const.
5238 * windows-nat.c (windows_attach): Make "args" const.
5239 * nto-procfs.c (procfs_attach): Make "args" const.
5240 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5241 * go32-nat.c (go32_attach): Make "args" const.
5242 * gnu-nat.c (gnu_attach): Make "args" const.
5243 * darwin-nat.c (darwin_attach): Make "args" const.
5244 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5245 * linux-nat.c (linux_nat_attach): Make "args" const.
5246 * remote.c (extended_remote_attach_1, extended_remote_attach):
5247 Make "args" const.
5248 * target.h (struct target_ops) <to_attach>: Make "args" const.
5249 (find_default_attach): Likewise.
5250 * utils.c (parse_pid_to_attach): Make "args" const.
5251 * utils.h (parse_pid_to_attach): Update.
5252
5253 2014-06-04 Tom Tromey <tromey@redhat.com>
5254
5255 * target-delegates.c: Rebuild.
5256 * target.c (default_thread_address_space): New function.
5257 (target_thread_address_space): Simplify.
5258 * target.h (struct target_ops) <to_thread_address_space>: Add
5259 TARGET_DEFAULT_FUNC.
5260
5261 2014-06-04 Doug Evans <xdje42@gmail.com>
5262
5263 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5264
5265 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5266
5267 * record-btrace.c: Include event-loop.h and inf-loop.h.
5268 (record_btrace_resume_exec_dir)
5269 (record_btrace_async_inferior_event_handler)
5270 (record_btrace_handle_async_inferior_event): New.
5271 (record_btrace_open): Create async event handler.
5272 (record_btrace_close): Delete async event handler.
5273 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5274 Mark async event handler.
5275 (record_btrace_execution_direction): New.
5276 (init_record_btrace_ops): Initialize to_execution_direction.
5277
5278 2014-06-03 Doug Evans <xdje42@gmail.com>
5279
5280 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5281 (gdbscm_make_parameter): Ditto.
5282
5283 2014-06-03 Doug Evans <dje@google.com>
5284
5285 * exec.c (exec_close_1): Call clear_section_table instead of
5286 resize_section_table.
5287 (clear_section_table): New function.
5288 (resize_section_table): Make static. Rename arg num_added to
5289 adjustment.
5290 * exec.h (clear_section_table): Declare.
5291 (resize_section_table): Delete.
5292 * progspace.c (release_program_space): Call clear_section_table
5293 instead of resize_section_table.
5294
5295 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5296
5297 * NEWS (Python Scripting): Add entry about the new xmethods
5298 feature.
5299
5300 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5301
5302 * python/py-xmethods.c: New file.
5303 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5304 (objfpy_dealloc): XDECREF on the new xmethods field.
5305 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5306 field.
5307 (objfpy_get_xmethods): New function.
5308 (objfile_getset): New entry 'xmethods'.
5309 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5310 (pspy_dealloc): XDECREF on the new xmethods field.
5311 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5312 field.
5313 (pspy_get_xmethods): New function.
5314 (pspace_getset): New entry 'xmethods'.
5315 * python/python-internal.h: Add declarations for new functions.
5316 * python/python.c (_initialize_python): Invoke
5317 gdbpy_initialize_xmethods.
5318 * python/lib/gdb/__init__.py (xmethods): New
5319 attribute.
5320 * python/lib/gdb/xmethod.py: New file.
5321 * python/lib/gdb/command/xmethods.py: New file.
5322
5323 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5324
5325 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5326 best match method returned by find_overload_match is an xmethod.
5327 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5328 the best matching operator returned by find_overload_match is an
5329 xmethod.
5330 * valops.c: #include "extension.h".
5331 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5332 Return void. The list of matching source methods is returned in
5333 "fn_list" and a vector of matching debug method workers is
5334 returned in "xm_worker_vec". Update all callers.
5335 (value_find_oload_method_list): Likewise.
5336 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5337 non-NULL, then the index of the best matching method in this
5338 vector is returned. Update all callers.
5339 (find_overload_match): Include xmethods while performing overload
5340 resolution.
5341
5342 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5343
5344 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5345 * extension-priv.h (struct extension_language_ops): Add the
5346 xmethod interface.
5347 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5348 get_matching_xmethod_workers, get_xmethod_argtypes,
5349 invoke_xmethod, free_xmethod_worker,
5350 free_xmethod_worker_vec): New functions.
5351 * extension.h: #include "common/vec.h".
5352 New function declarations.
5353 (struct xmethod_worker): New struct.
5354 (VEC (xmethod_worker_ptr)): New vector type.
5355 (xmethod_worker_ptr): New typedef.
5356 (xmethod_worker_vec): Likewise.
5357 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5358 builtin_type.
5359 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5360 (struct builtin_type): New field "xmethod".
5361 * valarith.c (value_ptradd): Assert that the value argument is not
5362 lval_xcallable.
5363 * valops.c (value_must_coerce_to_target): Return 0 for
5364 lval_xcallable values.
5365 * value.c (struct value): New field XM_WORKER in the field
5366 LOCATION.
5367 (value_address, value_raw_address): Return 0 for lval_xcallable
5368 values.
5369 (set_value_address): Assert that the value is not an
5370 lval_xcallable.
5371 (value_free): Free the associated xmethod worker when freeing
5372 lval_xcallable values.
5373 (set_value_component_location): Assert that the WHOLE value is not
5374 lval_xcallable.
5375 (value_of_xmethod, call_xmethod): New functions.
5376 * value.h: Declare "struct xmethod_worker".
5377 Declare new functions value_of_xmethod, call_xmethod.
5378
5379 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5380 Pedro Alves <palves@redhat.com>
5381
5382 PR breakpoints/17000
5383 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5384 New function, extracted from software_breakpoint_inserted_here_p.
5385 (software_breakpoint_inserted_here_p): Replace factored out code
5386 by call to find_non_raw_software_breakpoint_inserted_here.
5387 (bp_target_info_copy_insertion_state): New function.
5388 (bkpt_insert_location): Handle the case of a single-step
5389 breakpoint already inserted at the same address.
5390 (bkpt_remove_location): Handle the case of a single-step
5391 breakpoint still inserted at the same address.
5392 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5393 breakpoint already inserted at the same address.
5394 (deprecated_remove_raw_breakpoint): Handle the case of a
5395 non-raw breakpoint still inserted at the same address.
5396 (find_single_step_breakpoint): New function, extracted from
5397 single_step_breakpoint_inserted_here_p.
5398 (find_single_step_breakpoint): New function,
5399 factored out from single_step_breakpoint_inserted_here_p.
5400 (single_step_breakpoint_inserted_here_p): Reimplement.
5401
5402 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5403
5404 Pushed by Joel Brobecker <brobecker@adacore.com>
5405 * source.c (show_substitute_path_command): Fix display of matching
5406 substitution rules.
5407
5408 2014-06-03 Gary Benson <gbenson@redhat.com>
5409
5410 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5411
5412 2014-06-02 Doug Evans <xdje42@gmail.com>
5413
5414 Add parameter support for Guile.
5415 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5416 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5417 (scm-param.o): New rule.
5418 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5419 (gdbscm_misc_error): Declare.
5420 (gdbscm_canonicalize_command_name): Declare.
5421 (gdbscm_scm_to_host_string): Declare.
5422 (gdbscm_scm_from_host_string): Declare.
5423 (gdbscm_initialize_parameters): Declare.
5424 * guile/guile.c (initialize_gdb_module): Call
5425 gdbscm_initialize_parameters.
5426 * guile/lib/gdb.scm: Export parameter symbols.
5427 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5428 cmdscm_canonicalize_name and made public. All callers updated.
5429 * guile/scm-exception.c (gdbscm_misc_error): New function.
5430 * guile/scm-param.c: New file.
5431 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5432 (gdbscm_scm_to_host_string): New function.
5433 (gdbscm_scm_from_host_string): New function.
5434 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5435
5436 2014-06-02 Doug Evans <xdje42@gmail.com>
5437
5438 Add command support for Guile.
5439 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5440 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5441 (scm-cmd.o): New rule.
5442 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5443 (gdbscm_user_error_p): Declare.
5444 (gdbscm_parse_command_name): Declare.
5445 (gdbscm_valid_command_class_p): Declare.
5446 (gdbscm_initialize_commands): Declare.
5447 * guile/guile.c (initialize_gdb_module): Call
5448 gdbscm_initialize_commands.
5449 * guile/lib/gdb.scm: Export command symbols.
5450 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5451 (throw-user-error): New function.
5452 * guile/scm-cmd.c: New file.
5453 * guile/scm-exception.c (user_error_symbol): New static global.
5454 (gdbscm_user_error_p): New function.
5455 (gdbscm_initialize_exceptions): Set user_error_symbol.
5456 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5457
5458 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5459
5460 * top.c (command_loop): Handle comments here...
5461 (command_line_input): ... not here.
5462
5463 2014-06-02 Doug Evans <xdje42@gmail.com>
5464
5465 Add progspace support for Guile.
5466 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5467 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5468 (scm-progspace.o): New rule.
5469 * guile/guile-internal.h (pspace_smob): New typedef.
5470 (psscm_pspace_smob_pretty_printers): Declare.
5471 (psscm_pspace_smob_from_pspace): Declare.
5472 (psscm_scm_from_pspace): Declare.
5473 * guile/guile.c (initialize_gdb_module): Call
5474 gdbscm_initialize_pspaces.
5475 * guile/lib/gdb.scm: Export progspace symbols.
5476 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5477 support.
5478 (append-pretty-printer!): Ditto.
5479 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5480 Implement.
5481 * guile/scm-progspace.c: New file.
5482
5483 2014-06-03 Alan Modra <amodra@gmail.com>
5484
5485 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5486 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5487
5488 2014-06-02 Doug Evans <dje@google.com>
5489
5490 Add support for skeletonless type units.
5491 * dwarf2read.c (struct dwarf2_per_objfile): New member
5492 n_allocated_type_units.
5493 (struct dwarf2_per_objfile) <tu_stats>: New member
5494 nr_all_type_units_reallocs.
5495 (create_signatured_type_table_from_index): Initialize
5496 n_allocated_type_units
5497 (create_all_type_units): Ditto.
5498 (add_type_unit): Move up in file. New arg slot.
5499 All callers updated. Increase space for all_type_units more
5500 efficiently.
5501 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5502 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5503 (lookup_dwp_signatured_type): Ditto.
5504 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5505 All callers updated.
5506 (build_type_psymtabs_1): Leave type_unit_groups as
5507 NULL if no TUs present.
5508 (print_tu_stats): New function.
5509 (process_skeletonless_type_unit): New function.
5510 (process_dwo_file_for_skeletonless_type_units): New
5511 function.
5512 (process_skeletonless_type_units): New function.
5513 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5514 Call print tu_stats if debugging enabled.
5515
5516 2014-06-02 Pedro Alves <palves@redhat.com>
5517
5518 * breakpoint.c (build_target_command_list): Don't build a command
5519 list if we have any duplicate location that isn't a dprintf.
5520
5521 2014-06-02 Pedro Alves <palves@redhat.com>
5522
5523 * breakpoint.c (dprintf_breakpoint_hit): New function.
5524 (initialize_breakpoint_ops): Install it as dprintf's
5525 breakpoint_hit method.
5526
5527 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5528
5529 * source.c (substitute_path_rule_matches): Simplify using
5530 filename_ncmp instead of FILENAME_CMP.
5531
5532 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5533
5534 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5535
5536 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5537
5538 * configure.ac: When Guile is available, check for the
5539 availability of 'scm_new_smob'.
5540 * configure, config.h.in: Regenerate.
5541 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5542 function.
5543
5544 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5545
5546 * frame.c (struct frame_info): Add stop_string field.
5547 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5548 (get_prev_frame_always): Old content moved into
5549 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5550 TRY_CATCH, handle MEMORY_ERROR exceptions.
5551 (frame_stop_reason_string): New function definition.
5552 * frame.h (unwind_stop_reason_to_string): Extend comment to
5553 mention frame_stop_reason_string.
5554 (frame_stop_reason_string): New function declaration.
5555 * stack.c (frame_info): Switch to frame_stop_reason_string.
5556 (backtrace_command_1): Switch to frame_stop_reason_string.
5557 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5558 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5559 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5560
5561 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5562
5563 * frame.c (frame_stop_reason_string): Rename to ...
5564 (unwind_stop_reason_to_string): this.
5565 * frame.h (frame_stop_reason_string): Rename to ...
5566 (unwind_stop_reason_to_string): this.
5567 * stack.c (frame_info): Update call to frame_stop_reason_string.
5568 (backtrace_command_1): Likewise.
5569 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5570 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5571
5572 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5573
5574 * frame.c (remove_prev_frame): New function.
5575 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5576 remove_prev_frame.
5577
5578 2014-05-29 Pedro Alves <palves@redhat.com>
5579
5580 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5581 and make it const. When a single-step decays to a continue,
5582 clear 'step', not 'hw_step'. Pass whether the caller wanted
5583 to step to user_visible_resume_ptid, not what we ask the
5584 target to do.
5585
5586 2014-05-29 Pedro Alves <palves@redhat.com>
5587
5588 * infrun.c (process_event_stop_test, handle_step_into_function)
5589 (handle_step_into_function_backward): Adjust.
5590 Don't set the even thread's stop_step and call stop_waiting before
5591 calling end_stepping_range. Instead do that ...
5592 (end_stepping_range): ... here. Take an ecs pointer parameter.
5593
5594 2014-05-29 Pedro Alves <palves@redhat.com>
5595
5596 * infrun.c (stop_stepping): Rename to ...
5597 (stop_waiting): ... this.
5598 (proceed): Update comment.
5599 (process_event_stop_test, handle_inferior_event)
5600 (handle_signal_stop, handle_step_into_function)
5601 (handle_step_into_function_backward): Update.
5602
5603 2014-05-29 Pedro Alves <palves@redhat.com>
5604
5605 * infcall.c (run_inferior_call): Don't check whether the current
5606 thread is running after the proceed call.
5607
5608 2014-05-29 Pedro Alves <palves@redhat.com>
5609 Tom Tromey <tromey@redhat.com>
5610
5611 * NEWS: Mention "maint set target-async", "set mi-async", and that
5612 background execution commands are now always available.
5613 * target.h (target_async_permitted): Update comment.
5614 * target.c (target_async_permitted, target_async_permitted_1):
5615 Default to 1.
5616 (set_target_async_command): Rename to ...
5617 (maint_set_target_async_command): ... this.
5618 (show_target_async_command): Rename to ...
5619 (maint_show_target_async_command): ... this.
5620 (_initialize_target): Adjust.
5621 * infcmd.c (prepare_execution_command): Make extern.
5622 * inferior.h (prepare_execution_command): Declare.
5623 * infrun.c (set_observer_mode): Leave target async alone.
5624 * mi/mi-interp.c (mi_interpreter_init): Install
5625 mi_on_sync_execution_done as sync_execution_done observer.
5626 (mi_on_sync_execution_done): New function.
5627 (mi_execute_command_input_handler): Don't print the prompt if we
5628 just started a synchronous command with an async target.
5629 (mi_on_resume): Check sync_execution before printing prompt.
5630 * mi/mi-main.h (mi_async_p): Declare.
5631 * mi/mi-main.c: Include gdbcmd.h.
5632 (mi_async_p): New function.
5633 (mi_async, mi_async_1): New globals.
5634 (set_mi_async_command, show_mi_async_command, mi_async): New
5635 functions.
5636 (exec_continue): Call prepare_execution_command.
5637 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5638 (mi_execute_async_cli_command): Use mi_async_p.
5639 (_initialize_mi_main): Install "set mi-async". Make
5640 "target-async" a deprecated alias.
5641
5642 2014-05-29 Pedro Alves <palves@redhat.com>
5643
5644 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5645 (_initialize_cli_interp): Adjust.
5646 * event-loop.c: Include "observer.h".
5647 (start_event_loop): Notify 'command_error' observers instead of
5648 calling display_gdb_prompt. Remove FIXME comment.
5649 * event-top.c (display_gdb_prompt): Remove call into the
5650 interpreters.
5651 * inf-loop.c: Include "observer.h".
5652 (inferior_event_handler): Notify 'command_error' observers instead
5653 of calling display_gdb_prompt.
5654 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5655 observers instead of calling display_gdb_prompt.
5656 * interps.c (interp_set): Don't call display_gdb_prompt.
5657 (current_interp_display_prompt_p): Delete.
5658 * interps.h (interp_prompt_p): Delete declaration.
5659 (interp_prompt_p_ftype): Delete.
5660 (struct interp_procs) <prompt_proc_p>: Delete field.
5661 (current_interp_display_prompt_p): Delete declaration.
5662 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5663 (_initialize_mi_interp): Adjust.
5664 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5665 'command_error' observers.
5666 (tui_on_sync_execution_done, tui_on_command_error): New
5667 functions.
5668 (tui_display_prompt_p): Delete.
5669 (_initialize_tui_interp): Adjust.
5670
5671 2014-05-29 Pedro Alves <palves@redhat.com>
5672
5673 PR gdb/13860
5674 * cli/cli-interp.c: Include infrun.h and observer.h.
5675 (cli_uiout, cli_interp): New globals.
5676 (cli_on_signal_received, cli_on_end_stepping_range)
5677 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5678 functions.
5679 (cli_interpreter_init): Install them as 'end_stepping_range',
5680 'signal_received' 'signal_exited', 'exited' and 'no_history'
5681 observers.
5682 (_initialize_cli_interp): Remove cli_interp local.
5683 * infrun.c (handle_inferior_event): Call the several stop reason
5684 observers instead of printing the stop reason directly.
5685 (end_stepping_range): New function.
5686 (print_end_stepping_range_reason, print_signal_exited_reason)
5687 (print_exited_reason, print_signal_received_reason)
5688 (print_no_history_reason): Make static, and add an uiout
5689 parameter. Print to that instead of to CURRENT_UIOUT.
5690 * infrun.h (print_end_stepping_range_reason)
5691 (print_signal_exited_reason, print_exited_reason)
5692 (print_signal_received_reason print_no_history_reason): New
5693 declarations.
5694 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5695 'mi_uiout'.
5696 <cli_uiout>: New field.
5697 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5698 uiout for CLI output. Install 'signal_received',
5699 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5700 observers.
5701 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5702 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5703 (mi_on_no_history): New functions.
5704 (ui_out_free_cleanup): Delete function.
5705 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5706 instead use the one already stored in the MI interpreter data.
5707 (mi_ui_out): Adjust.
5708 * tui/tui-interp.c: Include infrun.h and observer.h.
5709 (tui_interp): New global.
5710 (tui_on_signal_received, tui_on_end_stepping_range)
5711 (tui_on_signal_exited, tui_on_exited)
5712 (tui_on_no_history): New functions.
5713 (tui_init): Install them as 'end_stepping_range',
5714 'signal_received' 'signal_exited', 'exited' and 'no_history'
5715 observers.
5716 (_initialize_tui_interp): Delete tui_interp local.
5717
5718 2014-05-29 Pedro Alves <palves@redhat.com>
5719
5720 PR gdb/15713
5721 * linux-nat.c (linux_nat_resume_callback): Rename the second
5722 parameter to 'except'. Skip LP if it points to EXCEPT.
5723 (linux_nat_resume): Don't mark the event lwp as not stopped
5724 before resuming sibling lwps. Instead ask
5725 linux_nat_resume_callback to skip the event lwp. Mark it as not
5726 stopped after actually resuming it.
5727 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5728 resuming it.
5729 (wait_lwp): Mark the lwp as stopped here.
5730 (stop_wait_callback): Mark the lwp as not stopped right after
5731 resuming it. Don't mark lwps as stopped here.
5732 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5733 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5734
5735 2014-05-29 Pedro Alves <palves@redhat.com>
5736
5737 PR PR15693
5738 * infrun.c (resume): Determine how much to resume depending on
5739 whether the caller wanted a step, not whether we can hardware step
5740 the target. Mark all threads that we intend to run as running,
5741 unless we're calling an inferior function.
5742 (normal_stop): If the thread is running an infcall, don't finish
5743 thread state.
5744 * target.c (target_resume): Don't mark threads as running here.
5745
5746 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5747
5748 * serial.c (_initialize_serial): Remove support for
5749 the "set remotebaud" and "show remotebaud" commands.
5750 * NEWS: Add entry documenting the removal of that command.
5751
5752 2014-05-28 Yao Qi <yao@codesourcery.com>
5753
5754 * charset.c: Fix typo in comments.
5755
5756 2014-05-27 Gary Benson <gbenson@redhat.com>
5757
5758 * utils.c (internal_vproblem): Prompt for a bug report.
5759
5760 2014-05-26 Andy Wingo <wingo@igalia.com>
5761
5762 * guile/scm-arch.c (arscm_mark_arch_smob):
5763 * guile/scm-block.c (bkscm_mark_block_smob)
5764 (bkscm_mark_block_syms_progress_smob):
5765 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5766 * guile/scm-exception.c (exscm_mark_exception_smob):
5767 * guile/scm-frame.c (frscm_mark_frame_smob):
5768 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5769 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5770 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5771 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5772 (ppscm_mark_pretty_printer_worker_smob):
5773 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5774 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5775 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5776 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5777 mark functions.
5778 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5779 function.
5780
5781 2014-05-26 Andy Wingo <wingo@igalia.com>
5782 Doug Evans <xdje42@gmail.com>
5783
5784 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5785 empty_base_class. All uses updated.
5786 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5787 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5788 Adapt all callers.
5789 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5790 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5791 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5792 (gdbscm_gsmob_has_property_p, add_property_name)
5793 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5794 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5795 (gdb-object-has-property?, gdb-object-properties): Remove.
5796 (gdb-object-kind): Renamed from gsmob-kind.
5797
5798 2014-05-26 Andy Wingo <wingo@igalia.com>
5799
5800 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5801 * configure: Regenerate.
5802
5803 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5804
5805 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5806
5807 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5808
5809 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5810 (replay_memory_access_read_only, replay_memory_access_read_write)
5811 (replay_memory_access_types, replay_memory_access)
5812 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5813 (cmd_set_record_btrace, cmd_show_record_btrace)
5814 (cmd_show_replay_memory_access): New.
5815 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5816 (record_btrace_remove_breakpoint): Replace
5817 record_btrace_allow_memory_access with replay_memory_access.
5818 (_initialize_record_btrace): Add commands.
5819 * NEWS: Announce it.
5820
5821 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5822
5823 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5824
5825 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5826
5827 * MAINTAINERS (Write After Approval): Move self back from
5828 paper trail.
5829
5830 2014-05-22 Pedro Alves <palves@redhat.com>
5831
5832 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5833 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5834 (disable_randomization, enum exec_direction_kind)
5835 (execution_direction, stop_registers, start_remote)
5836 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5837 (wait_for_inferior, normal_stop, get_last_target_status)
5838 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5839 (insert_step_resume_breakpoint_at_sal)
5840 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5841 (set_step_info, print_stop_event, signal_stop_state)
5842 (signal_print_state, signal_pass_state, signal_stop_update)
5843 (signal_print_update, signal_pass_update)
5844 (update_signals_program_target, clear_exit_convenience_vars)
5845 (displaced_step_dump_bytes, update_observer_mode)
5846 (signal_catch_update, gdb_signal_from_command): Move
5847 declarations ...
5848 * infrun.h: ... to this new file.
5849 * amd64-tdep.c: Include infrun.h.
5850 * annotate.c: Include infrun.h.
5851 * arch-utils.c: Include infrun.h.
5852 * arm-linux-tdep.c: Include infrun.h.
5853 * arm-tdep.c: Include infrun.h.
5854 * break-catch-sig.c: Include infrun.h.
5855 * breakpoint.c: Include infrun.h.
5856 * common/agent.c: Include infrun.h instead of inferior.h.
5857 * corelow.c: Include infrun.h.
5858 * event-top.c: Include infrun.h.
5859 * go32-nat.c: Include infrun.h.
5860 * i386-tdep.c: Include infrun.h.
5861 * inf-loop.c: Include infrun.h.
5862 * infcall.c: Include infrun.h.
5863 * infcmd.c: Include infrun.h.
5864 * infrun.c: Include infrun.h.
5865 * linux-fork.c: Include infrun.h.
5866 * linux-nat.c: Include infrun.h.
5867 * linux-thread-db.c: Include infrun.h.
5868 * monitor.c: Include infrun.h.
5869 * nto-tdep.c: Include infrun.h.
5870 * procfs.c: Include infrun.h.
5871 * record-btrace.c: Include infrun.h.
5872 * record-full.c: Include infrun.h.
5873 * remote-m32r-sdi.c: Include infrun.h.
5874 * remote-mips.c: Include infrun.h.
5875 * remote-notif.c: Include infrun.h.
5876 * remote-sim.c: Include infrun.h.
5877 * remote.c: Include infrun.h.
5878 * reverse.c: Include infrun.h.
5879 * rs6000-tdep.c: Include infrun.h.
5880 * s390-linux-tdep.c: Include infrun.h.
5881 * solib-irix.c: Include infrun.h.
5882 * solib-osf.c: Include infrun.h.
5883 * solib-svr4.c: Include infrun.h.
5884 * target.c: Include infrun.h.
5885 * top.c: Include infrun.h.
5886 * windows-nat.c: Include infrun.h.
5887 * mi/mi-interp.c: Include infrun.h.
5888 * mi/mi-main.c: Include infrun.h.
5889 * python/py-threadevent.c: Include infrun.h.
5890
5891 2014-05-22 Pedro Alves <palves@redhat.com>
5892
5893 * infrun.c (handle_inferior_event): Store the exit code for
5894 --return-child-result here, instead of ...
5895 (print_exited_reason): ... here.
5896
5897 2014-05-21 Pedro Alves <palves@redhat.com>
5898
5899 PR gdb/13860
5900 * gdbthread.h (struct thread_control_state): New field
5901 `command_interp'.
5902 * infrun.c (follow_fork): Copy the new thread control field to the
5903 child fork thread.
5904 (clear_proceed_status_thread): Clear the new thread control field.
5905 (proceed): Set the new thread control field.
5906 * interps.h (command_interp): Declare.
5907 * interps.c (command_interpreter): New global.
5908 (command_interp): New function.
5909 (interp_exec): Set `command_interpreter' while here.
5910 * cli-out.c (cli_uiout_dtor): New function.
5911 (cli_ui_out_impl): Install it.
5912 * mi/mi-interp.c: Include cli-out.h.
5913 (mi_cmd_interpreter_exec): Add comment.
5914 (restore_current_uiout_cleanup): New function.
5915 (ui_out_free_cleanup): New function.
5916 (mi_on_normal_stop): If finishing an execution command started by
5917 a CLI command, or any kind of breakpoint-like event triggered,
5918 print the stop event to the output (CLI) stream.
5919 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5920
5921 2014-05-21 Pedro Alves <palves@redhat.com>
5922
5923 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5924 current source line having changed.
5925 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5926 * infrun.c (normal_stop): Adjust call to
5927 set_current_sal_from_frame.
5928 * source.c (clear_lines_listed_range): New function.
5929 (set_current_source_symtab_and_line, identify_source_line): Clear
5930 the lines listed range.
5931 (line_info): Handle the first "info line" after the current source
5932 line having changed.
5933 * stack.c (print_stack_frame): Remove center handling.
5934 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5935 center sal.line.
5936
5937 2014-05-21 Pedro Alves <palves@redhat.com>
5938
5939 * inf-child.c (inf_child_mourn_inferior): New function.
5940 * inf-child.h (inf_child_mourn_inferior): New declaration.
5941 * darwin-nat.c (darwin_mourn_inferior): Use
5942 inf_child_mourn_inferior.
5943 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5944 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5945 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5946 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5947 * windows-nat.c (windows_mourn_inferior): Likewise.
5948
5949 2014-05-21 Doug Evans <xdje42@gmail.com>
5950
5951 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5952
5953 2014-05-21 Doug Evans <xdje42@gmail.com>
5954
5955 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5956 (gdbscm_out_of_range_error): Ditto.
5957 (gdbscm_memory_error): Ditto.
5958 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5959 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5960 (gdbscm_out_of_range_error): Update.
5961 (gdbscm_memory_error): Update.
5962 (gdbscm_scm_to_target_string_unsafe): Delete.
5963
5964 2014-05-21 Pedro Alves <palves@redhat.com>
5965
5966 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5967 globals.
5968 (inf_child_open_target): New function.
5969 (inf_child_open): Use inf_child_open_target to push the target
5970 instead of erroring out.
5971 (inf_child_disconnect, inf_child_close)
5972 (inf_child_maybe_unpush_target): New functions.
5973 (inf_child_target): Install inf_child_disconnect and
5974 inf_child_close. Store a pointer to the returned object.
5975 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5976 declarations.
5977 * target.c (auto_connect_native_target): New global.
5978 (show_default_run_target): New function.
5979 (find_default_run_target): Return NULL if automatically connecting
5980 to the native target is disabled.
5981 (_initialize_target): Install set/show auto-connect-native-target.
5982 * NEWS: Mention "set auto-connect-native-target", and "target
5983 native".
5984 * linux-nat.c (super_close): New global.
5985 (linux_nat_close): Call super_close.
5986 (linux_nat_add_target): Store a pointer to the base class's
5987 to_close method.
5988 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5989 inf_child_maybe_unpush.
5990 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5991 already pushed.
5992 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5993 the inferior. Use inf_child_maybe_unpush_target.
5994 (inf_ttrace_attach): Don't push the target if it is already
5995 pushed.
5996 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5997 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5998 after mourning the inferior. Use inf_child_maybe_unpush_target.
5999 (darwin_attach_pid): Don't push the target if it is already
6000 pushed.
6001 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6002 mourning the inferior. Use inf_child_maybe_unpush_target.
6003 (gnu_detach): Use inf_child_maybe_unpush_target.
6004 * go32-nat.c (go32_create_inferior): Don't push the target if it
6005 is already pushed.
6006 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6007 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6008 (procfs_open): Rename to ...
6009 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6010 comments. Can target_preopen before changing node. Call
6011 inf_child_open_target to push the target explicitly.
6012 (procfs_attach): Don't push the target if it is already pushed.
6013 (procfs_detach): Use inf_child_maybe_unpush_target.
6014 (procfs_create_inferior): Don't push the target if it is already
6015 pushed.
6016 (nto_native_ops): New global.
6017 (procfs_open): Reimplement.
6018 (procfs_native_open): New function.
6019 (init_procfs_targets): Install procfs_native_open as to_open of
6020 "target native". Store a pointer to the "native" target in
6021 nto_native_ops.
6022 * procfs.c (procfs_attach): Don't push the target if it is already
6023 pushed.
6024 (procfs_detach): Use inf_child_maybe_unpush_target.
6025 (procfs_mourn_inferior): Only unpush the target after mourning the
6026 inferior. Use inf_child_maybe_unpush_target.
6027 (procfs_init_inferior): Don't push the target if it is already
6028 pushed.
6029 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6030 if it is already pushed.
6031
6032 2014-05-21 Pedro Alves <palves@redhat.com>
6033
6034 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6035 and "procfs" targets are now called "native" instead.
6036
6037 2014-05-21 Pedro Alves <palves@redhat.com>
6038
6039 * go32-nat.c (go32_open): Delete.
6040 (go32_target): Don't override the to_open method.
6041
6042 2014-05-21 Pedro Alves <palves@redhat.com>
6043
6044 * nto-procfs.c (procfs_can_run): New function.
6045 (nto_procfs_ops): New global.
6046 (init_procfs_targets): New, based on procfs_target. Install
6047 "target native" in addition to "target procfs".
6048 (_initialize_procfs): Call init_procfs_targets instead of adding
6049 the target here.
6050
6051 2014-05-21 Pedro Alves <palves@redhat.com>
6052
6053 * windows-nat.c (windows_target): Don't override to_shortname,
6054 to_longname or to_doc.
6055
6056 2014-05-21 Pedro Alves <palves@redhat.com>
6057
6058 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6059 to_doc.
6060
6061 2014-05-21 Pedro Alves <palves@redhat.com>
6062
6063 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6064 to_shortname, to_longname or to_doc.
6065
6066 2014-05-21 Pedro Alves <palves@redhat.com>
6067
6068 * go32-nat.c (go32_target): Don't override to_shortname,
6069 to_longname or to_doc.
6070
6071 2014-05-21 Pedro Alves <palves@redhat.com>
6072
6073 * inf-child.c (inf_child_open): Remove mention of "child".
6074 (inf_child_target): Rename target to "native" instead of "child".
6075
6076 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6077
6078 * Makefile.in (SFILES): Delete "regset.c".
6079 (COMMON_OBS): Delete "regset.o".
6080 * regset.c: Remove.
6081 * regset.h (regset_alloc): Delete prototype.
6082
6083 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6084
6085 * sparc-linux-tdep.c (sparc32_linux_gregset)
6086 (sparc32_linux_fpregset): New static regset structures.
6087 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6088 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6089 'fpregset' fields.
6090 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6091 (sparc64_linux_fpregset): New static regset structures.
6092 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6093 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6094 New static regset structures.
6095 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6096 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6097 New static regset structures.
6098 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6099 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6100 New static regset structures.
6101 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6102 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6103 New static regset structures.
6104 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6105
6106 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6107
6108 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6109 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6110 register maps ("regmaps") from "*regset" to "*regmap". Do this
6111 for all regmap types and variables.
6112 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6113 (sparc32_linux_supply_core_gregset)
6114 (sparc32_linux_collect_core_gregset)
6115 (sparc32_linux_supply_core_fpregset)
6116 (sparc32_linux_collect_core_fpregset): Likewise.
6117 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6118 (sparc_gregmap, sparc_fpregmap): ... these.
6119 (sparc_supply_gregset, sparc_collect_gregset)
6120 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6121 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6122 (_initialize_sparc_nat): Rename regmaps.
6123 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6124 (sparc_gregmap, sparc_fpregmap): ... these.
6125 (sparc_supply_gregset, sparc_collect_gregset)
6126 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6127 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6128 Rename macros to...
6129 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6130 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6131 Likewise.
6132 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6133 Rename to...
6134 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6135 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6136 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6137 regmaps.
6138 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6139 (sparc32_bsd_fpregset): Rename to...
6140 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6141 (sparc32_bsd_fpregmap): ... these.
6142 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6143 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6144 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6145 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6146 (struct sparc_gregmap, struct sparc_fpregmap)
6147 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6148 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6149 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6150 (sparc32_supply_regset, sparc32_collect_gregset)
6151 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6152 prototypes.
6153 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6154 (sparc64_linux_ptrace_gregmap): ... this.
6155 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6156 (_initialize_sparc64_linux_nat): Rename regmaps.
6157 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6158 (sparc64_linux_core_gregmap): ... this.
6159 (sparc64_linux_supply_core_gregset)
6160 (sparc64_linux_collect_core_gregset)
6161 (sparc64_linux_supply_core_fpregset)
6162 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6163 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6164 (sparc64_sol2_fpregset): Rename to...
6165 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6166 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6167 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6168 regmaps.
6169 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6170 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6171 (sparc64_bsd_fpregset): Rename to...
6172 (struct sparc_gregmap, sparc64_sol2_gregmap)
6173 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6174 (sparc64_bsd_fpregmap): ... these.
6175 (sparc64_supply_gregset, sparc64_collect_gregset)
6176 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6177 prototypes.
6178 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6179 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6180 (sparc64fbsd_gregmap): ... this.
6181 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6182 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6183 Rename regmaps.
6184 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6185 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6186 (sparc64nbsd_collect_fpregset): Likewise.
6187 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6188 (sparc64nbsd_gregmap): ... this.
6189 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6190 regmaps.
6191 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6192 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6193 (sparc64obsd_gregmap): ... this.
6194 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6195 regmaps.
6196 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6197 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6198 (sparc32nbsd_gregmap): ... this.
6199 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6200 regmaps.
6201
6202 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6203
6204 * score-tdep.c (score7_linux_gregset): New static regset
6205 structure.
6206 (score7_linux_regset_from_core_section): Remove dynamic regset
6207 allocation.
6208 (score_gdbarch_init): Drop allocation of tdep structure.
6209 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6210
6211 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6212
6213 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6214 regset structures.
6215 (am33_regset_from_core_section): Remove dynamic regset
6216 allocations.
6217
6218 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6219
6220 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6221 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6222 structures.
6223 (mips_linux_regset_from_core_section): Remove dynamic regset
6224 allocations.
6225 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6226 'gregset64', 'fpregset', and 'fpregset64'.
6227 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6228 deleted tdep fields.
6229
6230 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6231
6232 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6233 regset structures.
6234 (amd64_regset_from_core_section): Remove dynamic regset
6235 allocations.
6236 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6237 structure.
6238 (amd64obsd_regset_from_core_section): Remove dynamic regset
6239 allocation.
6240 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6241 Likewise.
6242 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6243 x86-common regset supply function.
6244 * i386-tdep.c (i386_collect_gregset): Make static.
6245 (i386_gregset): New global regset structure.
6246 (i386_fpregset, i386_xstateregset): New static regset structures.
6247 (i386_regset_from_core_section): Remove dynamic regset
6248 allocations.
6249 (i386_gdbarch_init): Remove initialization of tdep fields
6250 'gregset', 'fpregset', and 'xstateregset'.
6251 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6252 'fpregset', and 'xstateregset'.
6253 (i386_collect_gregset): Remove prototype.
6254 (i386_gregset): New declaration.
6255 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6256 structure.
6257 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6258 allocation.
6259
6260 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6261
6262 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6263 (arm_linux_vfpregset): New static regset structures.
6264 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6265 regset structures.
6266 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6267 and 'vfpregset' fields.
6268
6269 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6270
6271 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6272 (aarch64_linux_fpregset): New static regset structures.
6273 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6274 of regset structures.
6275 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6276 'fpregset' fields.
6277
6278 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6279
6280 * regset.h (struct regset): Remove gdbarch field.
6281 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6282 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6283 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6284 Likewise.
6285 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6286 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6287 (ppc32_linux_vsxregset): Likewise.
6288 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6289 via the regcache instead of the regset.
6290 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6291 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6292 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6293 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6294 Likewise.
6295
6296 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6297
6298 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6299 Constify structures.
6300 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6301 (alphanbsd_aout_gregset): Likewise.
6302 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6303 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6304 Likewise.
6305 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6306 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6307 Likewise.
6308 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6309 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6310 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6311 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6312 * m88k-tdep.c (m88k_gregset): Likewise.
6313 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6314 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6315 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6316 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6317 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6318 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6319 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6320 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6321 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6322 Likewise.
6323 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6324 * sh-tdep.h (sh_corefile_gregset): Likewise.
6325 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6326 * vax-tdep.c (vax_gregset): Likewise.
6327
6328 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6329
6330 Fix TLS access for -static -pthread.
6331 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6332 (try_thread_db_load_1): Initialize it.
6333 (thread_db_get_thread_local_address): Call it if LM is zero.
6334 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6335 * target.h (struct target_ops) (to_get_thread_local_address): Add
6336 load_module_addr comment.
6337
6338 2014-05-21 Pedro Alves <palves@redhat.com>
6339
6340 * dcache.c (dcache_read_memory_partial): If reading the cache line
6341 fails, fallback to reading just the memory the caller wanted.
6342
6343 2014-05-20 Doug Evans <dje@google.com>
6344
6345 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6346 instead of get_current_arch.
6347
6348 2014-05-20 Pedro Alves <palves@redhat.com>
6349
6350 * NEWS: Mention that compare-sections now works with all targets.
6351
6352 * remote.c (PACKET_qCRC): New enum value.
6353 (remote_verify_memory): Don't send qCRC if the target has no
6354 execution. Use packet_support/packet_ok. If the target doesn't
6355 support the qCRC packet, fallback to a deep memory copy.
6356 (compare_sections_command): Say "target image" instead of "remote
6357 executable".
6358 (_initialize_remote): Add PACKET_qCRC to the list of config
6359 packets that have no associated command. Extend comment.
6360 * target.c (simple_verify_memory, default_verify_memory): New
6361 function.
6362 * target.h (struct target_ops) <to_verify_memory>: Default to
6363 default_verify_memory.
6364 (simple_verify_memory): New declaration.
6365 * target-delegates.c: Regenerate.
6366
6367 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6368
6369 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6370
6371 2014-05-20 Hui Zhu <hui@codesourcery.com>
6372 Yao Qi <yao@codesourcery.com>
6373
6374 PR backtrace/16558
6375 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6376 and change address of sp and pc.
6377
6378 2014-05-19 Tom Tromey <tromey@redhat.com>
6379
6380 * gdbtypes.c (rank_function): Use XNEWVEC.
6381 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6382
6383 2014-05-19 Doug Evans <dje@google.com>
6384
6385 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6386 build_type_unit_groups and moved closer to only caller. Remove
6387 arguments. All references updated. Remove outdated .gdb_index
6388 comment.
6389 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6390 build_type_psymtabs_1.
6391
6392 2014-05-19 Doug Evans <dje@google.com>
6393
6394 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6395 n_type_unit_groups, all_type_unit_groups. All uses removed.
6396 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6397 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6398 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6399 (add_type_unit_group_to_table): Delete.
6400
6401 2014-05-19 Doug Evans <dje@google.com>
6402
6403 * eval.c (evaluate_subexp_standard): Add some comments.
6404
6405 2014-05-17 Doug Evans <xdje42@gmail.com>
6406
6407 * progspace.c (remove_program_space): Delete, unused.
6408 * progspace.h (remove_program_space): Ditto.
6409
6410 2014-05-17 Doug Evans <xdje42@gmail.com>
6411
6412 * inferior.c (prune_inferiors): Fix comment.
6413 (remove_inferior_command): Call prune_program_spaces.
6414
6415 2014-05-16 Doug Evans <dje@google.com>
6416
6417 New command line option -D.
6418 * NEWS: Mention it.
6419 * main.c (set_gdb_data_directory): New function.
6420 (captured_main): Recognize -D. Flag error for --data-directory "".
6421 Call set_gdb_data_directory.
6422 (print_gdb_help): Print --data-directory, -D.
6423 * main.h (set_gdb_data_directory): Declare.
6424 * top.c (staged_gdb_datadir): New static global.
6425 (set_gdb_datadir): Call set_gdb_data_directory
6426 (show_gdb_datadir): New function.
6427 (init_main): Update init of data-directory parameter.
6428
6429 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6430
6431 Import the "dirfd" gnulib module.
6432 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6433 * gnulib/aclocal.m4: Update.
6434 * gnulib/config.in: Update.
6435 * gnulib/configure: Update.
6436 * gnulib/import/Makefile.am: Update.
6437 * gnulib/import/Makefile.in: Update.
6438 * gnulib/import/dirfd.c: New.
6439 * gnulib/import/m4/dirfd.m4: New.
6440 * gnulib/import/m4/gnulib-cache.m4: Update.
6441 * gnulib/import/m4/gnulib-comp.m4: Update.
6442
6443 2014-05-16 Pierre Muller <muller@sourceware.org>
6444 Yao Qi <yao@codesourcery.com>
6445
6446 * valprint.c (print_wchar): Move the code on checking whether
6447 W is a printable wide char to the default branch of switch
6448 statement below. Call wchar_printable instead of gdb_iswprint.
6449
6450 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6451
6452 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6453 ldr.w and ldrd instructions.
6454
6455 2014-05-15 Doug Evans <dje@google.com>
6456
6457 * dwarf2read.c (read_structure_type): Delete outdated comments.
6458
6459 2014-05-14 Tom Tromey <tromey@redhat.com>
6460
6461 * macrocmd.c (print_macro_definition): Reindent.
6462
6463 2014-05-13 Doug Evans <xdje42@gmail.com>
6464
6465 * python/py-cmd.c (cmdpy_completer): Add comment.
6466 (completers): Make const.
6467
6468 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6469
6470 * infrun.c (resume): Remove should_resume (unused). Move up
6471 declaration of resume_ptid.
6472
6473 2014-05-13 Tom Tromey <tromey@redhat.com>
6474
6475 * language.h (unop_type_check): Remove.
6476 (binop_type_check): Don't declare.
6477
6478 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6479
6480 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6481 call to regcache_raw_collect.
6482
6483 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6484
6485 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6486 mi_console->quote as the quoting character.
6487
6488 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6489
6490 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6491
6492 2014-04-29 Tom Tromey <tromey@redhat.com>
6493
6494 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6495 "show debug varobj".
6496
6497 2014-05-07 Kyle McMartin <kyle@redhat.com>
6498
6499 Pushed by Joel Brobecker <brobecker@adacore.com>.
6500 * aarch64-tdep.c (aarch64_software_single_step): New function.
6501 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6502 with aarch64_software_single_step.
6503
6504 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6505
6506 GDB 7.7.1 released.
6507
6508 2014-05-05 Keith Seitz <keiths@redhat.com>
6509
6510 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6511 variable or history value is successfully parsed.
6512
6513 2014-05-05 Yao Qi <yao@codesourcery.com>
6514 Pedro Alves <palves@redhat.com>
6515
6516 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6517 address of blocks that intersects the requested range. Trim
6518 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6519 sections.
6520 * ctf.c (ctf_xfer_partial): Likewise.
6521
6522 2014-05-05 Yao Qi <yao@codesourcery.com>
6523
6524 * printcmd.c (display_command): Remove the check to
6525 target_has_execution.
6526
6527 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6528
6529 * ppcobsd-nat.c: Include "obsd-nat.h".
6530 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6531 add_target.
6532 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6533
6534 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6535
6536 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6537 and 16-bit signed and unsigned arguments. Update comment.
6538 (stap_parse_probe_arguments): Extend code to handle such
6539 arguments. Use warning instead of complaint to notify about
6540 unrecognized bitness.
6541
6542 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6543
6544 PR breakpoints/16889
6545 * stap-probe.c (stap_parse_probe_arguments): Simplify
6546 check for non-prefixed probes (i.e., probes whose
6547 arguments do not start with "N@"). Always set the
6548 argument type to a sane value.
6549
6550 2014-05-01 David Taylor <dtaylor@emc.com>
6551
6552 * remote.c (compare_sections_command): Add -r option to compare
6553 all loadable read-only sections.
6554
6555 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6556
6557 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6558 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6559 Update all callers.
6560 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6561 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6562 Remove unused CORE_ADDR argument. Update all callers.
6563
6564 2014-04-29 Pedro Alves <palves@redhat.com>
6565
6566 * remote.c (struct packet_config) <detect>: Extend comment.
6567 (add_packet_config_cmd): Don't set the config's detect or support
6568 fields here.
6569 (init_all_packet_configs): Also initialize the config's 'detect'
6570 field.
6571 (reset_all_packet_configs_support): New function.
6572 (remote_open_1): Call reset_all_packet_configs_support instead of
6573 init_all_packet_configs.
6574 (_initialize_remote): Initialize all packet configs. Assert that
6575 all packets have an associated command, except a few known
6576 outliers.
6577
6578 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6579
6580 * dwarf2read.c (read_subrange_type): Handle dynamic
6581 DW_AT_lower_bound attributes.
6582
6583 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6584
6585 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6586 dynamic bounds before computing its upper bound.
6587 (ada_discrete_type_low_bound): Same as above with the lower bound.
6588
6589 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6590
6591 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6592 range types. Adjust the array handling implementation to
6593 take advantage of this change.
6594 (resolve_dynamic_range): New function, mostly extracted from
6595 resolve_dynamic_bounds.
6596 (resolve_dynamic_array): New function, mostly extracted from
6597 resolve_dynamic_bounds.
6598 (resolve_dynamic_bounds): Delete.
6599 (resolve_dynamic_type): Reimplement. Add handling of
6600 TYPE_CODE_RANGE types.
6601
6602 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6603
6604 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6605 handling of parallel ___XA types.
6606
6607 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6608
6609 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6610 unnecessary second call to static_unwrap_type.
6611
6612 2014-04-27 Hui Zhu <hui@codesourcery.com>
6613
6614 * stack.c (print_frame_info): Call do_gdb_disassembly with
6615 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6616
6617 2014-04-26 Doug Evans <xdje42@gmail.com>
6618
6619 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6620
6621 2014-04-25 Pedro Alves <palves@redhat.com>
6622
6623 PR server/16255
6624 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6625 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6626 and newline from built string.
6627 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6628 (linux_ptrace_attach_fail_reason): ... this.
6629 * linux-nat.c (linux_nat_attach): Adjust to use
6630 linux_ptrace_attach_fail_reason.
6631
6632 2014-04-25 Pedro Alves <palves@redhat.com>
6633
6634 * remote.c (struct remote_state): Remove multi_process_aware,
6635 non_stop_aware, cond_tracepoints, cond_breakpoints,
6636 breakpoint_commands, fast_tracepoints, static_tracepoints,
6637 install_in_trace, disconnected_tracing,
6638 enable_disable_tracepoints, string_tracing, and
6639 augmented_libraries_svr4_read fields.
6640 (remote_multi_process_p): Move further below in the file.
6641 (struct packet_config): Add comments.
6642 (update_packet_config): Delete function.
6643 (show_packet_config_cmd): Use packet_config_support.
6644 (add_packet_config_cmd): Use NULL as set callback.
6645 (packet_ok): "set remote foo-packet"-style commands no longer
6646 change config->supported -- adjust.
6647 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6648 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6649 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6650 (PACKET_QNonStop, PACKET_multiprocess_feature)
6651 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6652 (PACKET_DisconnectedTracing_feature)
6653 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6654 (set_remote_protocol_packet_cmd): Delete function.
6655 (packet_config_support, packet_support): New functions.
6656 (set_remote_protocol_Z_packet_cmd): Don't call
6657 update_packet_config.
6658 (remote_query_attached, remote_pass_signals)
6659 (remote_program_signals, remote_threads_info)
6660 (remote_threads_extra_info, remote_start_remote): Use
6661 packet_support.
6662 (remote_start_remote): Use packet_config_support and
6663 packet_support.
6664 (init_all_packet_configs): Set all packets to unknown support,
6665 instead of calling update_packet_config.
6666 (remote_check_symbols): Use packet_support.
6667 (remote_supported_packet): Unconditionally set the packet config's
6668 support status.
6669 (remote_multi_process_feature, remote_non_stop_feature)
6670 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6671 (remote_breakpoint_commands_feature)
6672 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6673 (remote_install_in_trace_feature)
6674 (remote_disconnected_tracing_feature)
6675 (remote_enable_disable_tracepoint_feature)
6676 (remote_string_tracing_feature)
6677 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6678 (remote_protocol_features): Adjust to use remote_supported_packet
6679 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6680 "ConditionalTracepoints", "ConditionalBreakpoints",
6681 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6682 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6683 "EnableDisableTracepoints", and "tracenz".
6684 (remote_query_supported): Use packet_support.
6685 (remote_open_1): Adjust.
6686 (extended_remote_attach_1): Use packet_support. Switch on the
6687 result of packet_ok instead of checking whether the packet ended
6688 up disabled.
6689 (remote_vcont_resume): Use packet_support.
6690 (remote_resume, remote_stop_ns, fetch_register_using_p)
6691 (remote_prepare_to_store, store_register_using_P)
6692 (check_binary_download, remote_write_bytes): Use packet_support.
6693 (remote_vkill): Use packet_support. Switch on the result of
6694 packet_ok instead of checking whether the packet ended up
6695 disabled.
6696 (extended_remote_supports_disable_randomization): Use
6697 packet_support.
6698 (extended_remote_run): Switch on the result of packet_ok instead
6699 of checking whether the packet ended up disabled.
6700 (remote_insert_breakpoint, remote_remove_breakpoint)
6701 (remote_insert_watchpoint, remote_remove_watchpoint)
6702 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6703 packet_support.
6704 (remote_search_memory): Use packet_config_support.
6705 (remote_get_thread_local_address, remote_get_tib_address)
6706 (remote_hostio_send_command, remote_can_execute_reverse): Use
6707 packet_support.
6708 (remote_supports_cond_tracepoints)
6709 (remote_supports_cond_breakpoints)
6710 (remote_supports_fast_tracepoints)
6711 (remote_supports_static_tracepoints)
6712 (remote_supports_install_in_trace)
6713 (remote_supports_enable_disable_tracepoint)
6714 (remote_supports_string_tracing)
6715 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6716 the packet config says the feature is enabled or disabled.
6717 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6718 (remote_get_trace_status): Use packet_support.
6719 (remote_set_disconnected_tracing): Adjust to check whether the
6720 feature is enabled with packet_support.
6721 (remote_set_trace_buffer_size, remote_use_agent)
6722 (remote_can_use_agent, remote_supports_btrace): Use
6723 packet_support.
6724 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6725 Use packet_config_support.
6726 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6727 the packet config says the feature is enabled or disabled.
6728 (set_range_stepping): Use packet_support.
6729
6730 2014-04-25 Tom Tromey <tromey@redhat.com>
6731
6732 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6733 argument.
6734
6735 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6736
6737 * NEWS: Mention support for C99 variable length arrays.
6738
6739 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6740
6741 * ada-lang.c (standard_exc): Expand introductory comment.
6742
6743 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6744 Walfred Tedeschi <walfred.tedeschi@intel.com>
6745
6746 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6747 AVX512 registers.
6748 (amd64_linux_read_description): Add code to handle AVX512 xstate
6749 mask and return respective tdesc.
6750 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6751 and features/i386/x32-avx512-linux.c.
6752 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6753 (amd64_linux_core_read_description): Add code to handle AVX512
6754 xstate mask and return respective tdesc.
6755 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6756 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6757 calculation.
6758 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6759 (tdesc_amd64_avx512_linux): New prototype.
6760 (tdesc_x32_avx512_linux): Likewise.
6761 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6762 features/i386/x32-avx512.c.
6763 (amd64_ymm_avx512_names): New register names for pseudo
6764 registers YMM16-31.
6765 (amd64_ymmh_avx512_names): New register names for raw registers
6766 YMMH16-31.
6767 (amd64_k_names): New register names for K registers.
6768 (amd64_zmmh_names): New register names for ZMM raw registers.
6769 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6770 (amd64_xmm_avx512_names): New register names for XMM16-31
6771 registers.
6772 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6773 registers.
6774 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6775 if feature is present.
6776 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6777 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6778 (AMD64_NUM_REGS): Adjust to new number of registers.
6779 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6780 registers supplied via XSTATE by AVX512 registers.
6781 (i386_linux_read_description): Add case for AVX512.
6782 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6783 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6784 (i386_linux_core_read_description): Add case for AVX512.
6785 (i386_linux_init_abi): Install supported register note section
6786 for AVX512.
6787 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6788 AVX512.
6789 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6790 registers to be number of zmm7h + 1.
6791 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6792 * i386-tdep.c: Include features/i386/i386-avx512.c.
6793 (i386_zmm_names): Add ZMM pseudo register names array.
6794 (i386_zmmh_names): Add ZMM raw register names array.
6795 (i386_k_names): Add K raw register names array.
6796 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6797 registers. AVX512 has 16 more ZMM registers than there are YMM
6798 registers.
6799 (i386_zmmh_regnum_p): Add function to look up register number of
6800 ZMM raw registers.
6801 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6802 (i386_k_regnum_p): Likewise for K raw registers.
6803 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6804 registers added by AVX512.
6805 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6806 registers added by AVX512.
6807 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6808 added by AVX512.
6809 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6810 (i386_pseudo_register_name): Add ZMM pseudo registers.
6811 (i386_zmm_type): Construct and return vector registers type for ZMM
6812 registers.
6813 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6814 ZMM0-31 pseudo registers and K registers.
6815 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6816 and YMM16-31 registers from register cache.
6817 (i386_pseudo_register_write): Add code to write K, ZMM and
6818 YMM16-31 registers.
6819 (i386_register_reggroup_p): Add code to include/exclude AVX512
6820 registers in/from respective register groups.
6821 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6822 registers if feature is present in xcr0.
6823 (i386_gdbarch_init): Add code to initialize AVX512 feature
6824 variables in tdep structure, wire in pseudo registers and call
6825 initialize_tdesc_i386_avx512.
6826 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6827 variables.
6828 (i386_regnum): Add AVX512 registers.
6829 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6830 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6831 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6832 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6833 512 bits wide.
6834 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6835 (i386_ymm_avx512_regnum_p): Likewise.
6836 (i386_k_regnum_p): Likewise.
6837 (i386_zmm_regnum_p): Likewise.
6838 (i386_zmmh_regnum_p): Likewise.
6839 * i387-tdep.c : Update year in copyright notice.
6840 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6841 XSAVE buffer.
6842 (XSAVE_YMM_AVX512_ADDR): New macro.
6843 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6844 XSAVE buffer.
6845 (XSAVE_XMM_AVX512_ADDR): New macro.
6846 (xsave_avx512_k_offset): New table for K register offsets in
6847 XSAVE buffer.
6848 (XSAVE_AVX512_K_ADDR): New macro.
6849 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6850 in XSAVE buffer.
6851 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6852 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6853 buffer.
6854 (i387_collect_xsave): Add code to collect AVX512 registers from
6855 XSAVE buffer.
6856 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6857 of XMM16-31 registers.
6858 (I387_NUM_K_REGS): New define for number of K registers.
6859 (I387_K0_REGNUM): New define for K0 register number.
6860 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6861 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6862 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6863 registers.
6864 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6865 (I387_XMM16_REGNUM): New define for XMM16 register number.
6866 (I387_YMM0_REGNUM): New define for YMM0 register number.
6867 (I387_KEND_REGNUM): New define for last K register number.
6868 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6869 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6870 number.
6871 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6872 number.
6873 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6874 size.
6875 * features/Makefile: Add AVX512 related files.
6876 * features/i386/32bit-avx512.xml: New file.
6877 * features/i386/64bit-avx512.xml: Likewise.
6878 * features/i386/amd64-avx512-linux.c: Likewise.
6879 * features/i386/amd64-avx512-linux.xml: Likewise.
6880 * features/i386/amd64-avx512.c: Likewise.
6881 * features/i386/amd64-avx512.xml: Likewise.
6882 * features/i386/i386-avx512-linux.c: Likewise.
6883 * features/i386/i386-avx512-linux.xml: Likewise.
6884 * features/i386/i386-avx512.c: Likewise.
6885 * features/i386/i386-avx512.xml: Likewise.
6886 * features/i386/x32-avx512-linux.c: Likewise.
6887 * features/i386/x32-avx512-linux.xml: Likewise.
6888 * features/i386/x32-avx512.c: Likewise.
6889 * features/i386/x32-avx512.xml: Likewise.
6890 * regformats/i386/amd64-avx512-linux.dat: New file.
6891 * regformats/i386/amd64-avx512.dat: Likewise.
6892 * regformats/i386/i386-avx512-linux.dat: Likewise.
6893 * regformats/i386/i386-avx512.dat: Likewise.
6894 * regformats/i386/x32-avx512-linux.dat: Likewise.
6895 * regformats/i386/x32-avx512.dat: Likewise.
6896 * NEWS: Add note about new support for AVX512.
6897
6898
6899 2014-04-23 Pedro Alves <palves@redhat.com>
6900
6901 * breakpoint.c (insert_bp_location): Tolerate errors if the
6902 breakpoint is set in a user-loaded objfile.
6903 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6904 location is marked shlib_disabled. If the breakpoint is set in a
6905 user-loaded objfile is a GDB-side memory breakpoint, validate it
6906 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6907 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6908 flag.
6909 * mem-break.c (memory_validate_breakpoint): New function.
6910 * objfiles.c (userloaded_objfile_contains_address_p): New
6911 function.
6912 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6913 * target.h (memory_validate_breakpoint): New declaration.
6914
6915 2014-04-23 Pedro Alves <palves@redhat.com>
6916
6917 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6918 the breakpoint is set in a shared library, only suppress
6919 errors for software breakpoints, not hardware breakpoints.
6920
6921 2014-04-22 Pedro Alves <palves@redhat.com>
6922
6923 * infrun.c (schedlock_applies): New function, factored out from
6924 find_thread_needs_step_over.
6925 (find_thread_needs_step_over): Use it.
6926 (switch_back_to_stepped_thread): Always clear trap_expected if the
6927 step over is finished. Return early if scheduler locking applies.
6928 Look for the stepping thread and a potential step-over thread with
6929 a single loop.
6930 (currently_stepping_or_nexting_callback): Delete.
6931
6932 2014-04-22 Nick Clifton <nickc@redhat.com>
6933
6934 * NEWS: Mention that ARM sim now supports tracing.
6935
6936 2014-04-22 Yao Qi <yao@codesourcery.com>
6937
6938 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6939 to ...
6940 * tracefile.c (tracefile_fetch_registers): ... it. New
6941 function.
6942 * tracefile.h (tracefile_fetch_registers): Declare.
6943 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6944 tracefile_fetch_registers.
6945
6946 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6947
6948 PR gdb/14018
6949 * windows-nat.c (thread_rec): Don't display a warning when
6950 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6951 fails for any reason, set th->suspended to -1, so that we don't
6952 try to resume such a thread. Also, don't return NULL in these
6953 cases, to avoid completely ruin the session due to "PC register is
6954 not available" error.
6955 (do_windows_fetch_inferior_registers): Check errors in
6956 GetThreadContext call.
6957 (windows_continue): Accept an additional argument KILLED; if not
6958 zero, ignore errors in the SetThreadContext call, since the
6959 inferior was killed and is shutting down.
6960 (windows_resume, get_windows_debug_event)
6961 (windows_create_inferior, windows_mourn_inferior)
6962 (windows_kill_inferior): All callers of windows_continue changed
6963 to adjust to its new calling sequence.
6964
6965 2014-04-19 Yao Qi <yao@codesourcery.com>
6966
6967 * ctf.c (ctf_open): Call post_create_inferior.
6968
6969 2014-04-19 Yao Qi <yao@codesourcery.com>
6970
6971 * ctf.c (handle_id): New static variable.
6972 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6973 value. Get the declaration of event "register" and get length
6974 of field "contents".
6975
6976 2014-04-19 Yao Qi <yao@codesourcery.com>
6977
6978 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6979
6980 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6981
6982 * valops.c (oload_method_static): Remove unnecessary argument
6983 METHOD. Update all callers.
6984
6985 2014-04-18 Pedro alves <palves@redhat.com>
6986 Tom Tromey <tromey@redhat.com>
6987
6988 PR backtrace/15558
6989 * frame.c (get_prev_frame_1): Rename to ...
6990 (get_prev_frame_always): ... this, and make extern. Adjust.
6991 (skip_artificial_frames): Use get_prev_frame_always.
6992 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6993 (get_frame_unwind_stop_reason): Adjust to rename.
6994 * frame.h (get_prev_frame_always): Declare.
6995 * inline-frame.c: Include frame.h.
6996 (inline_frame_this_id): Use get_prev_frame_always.
6997
6998 2014-04-18 Tristan Gingold <gingold@adacore.com>
6999
7000 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7001 code by using bfd_mach_o_get_base_address.
7002
7003 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7004
7005 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7006 (spu_ax_pseudo_register_collect): New function.
7007 (spu_ax_pseudo_register_push_stack): Likewise.
7008 (spu_dwarf_reg_to_regnum): Likewise.
7009 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7010
7011 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7012
7013 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7014 Replace FRAME argument with FRAME_ID.
7015 * gdbarch.c, gdbarch.h: Regenerate.
7016 * findvar.c (default_value_from_register): Add GDBARCH argument;
7017 replace FRAME by FRAME_ID. No longer call get_frame_id.
7018 (value_from_register): Update call to gdbarch_value_from_register.
7019 * value.h (default_value_from_register): Update prototype.
7020 * s390-linux-tdep.c (s390_value_from_register): Update interface
7021 and call to default_value_from_register.
7022 * spu-tdep.c (spu_value_from_register): Likewise.
7023
7024 * findvar.c (address_from_register): Remove TYPE argument.
7025 Do not call value_from_register; use gdbarch_value_from_register
7026 with null_frame_id instead.
7027 * value.h (address_from_register): Update prototype.
7028 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7029 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7030 address_from_register interface change.
7031
7032 2014-04-17 Yao Qi <yao@codesourcery.com>
7033
7034 * gdbtypes.h: Update comments to link to types and macros'
7035 definitions.
7036
7037 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7038
7039 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7040
7041 2014-04-16 Keith Seitz <keiths@redhat.com>
7042
7043 PR gdb/15827
7044 * dwarf2read.c (skip_one_die): Check that all relative-offset
7045 sibling DIEs fall within range of the current reader's buffer.
7046 (read_partial_die): Likewise.
7047
7048 2014-04-16 Keith Seitz <keiths@redhat.com>
7049
7050 PR c++/16597
7051 * cp-namespace.c (lookup_symbol_file): If the type name of
7052 `this' is NULL, return immediately.
7053
7054 2014-04-14 Keith Seitz <keiths@redhat.com>
7055
7056 PR c++/16253
7057 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7058 from symbol_matches_domain in symtab.c. All local callers
7059 of symbol_matches_domain updated.
7060 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7061 search STRUCT_DOMAIN.
7062 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7063 independently. standard_lookup will do that automatically.
7064 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7065 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7066 (cp_lookup_symbol_in_namespace): Likewise.
7067 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7068 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7069 may return a STRUCT_DOMAIN match.
7070 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7071 * cp-support.c: Include language.h.
7072 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7073 VAR_DOMAIN.
7074 * psymtab.c (match_partial_symbol): Compare the requested
7075 domain with the symbol's domain directly.
7076 (lookup_partial_symbol): Likewise.
7077 * symtab.c (lookup_symbol_in_language): Explain when/why
7078 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7079 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7080 appropriate languages.
7081 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7082 and moved to ada-lang.c
7083 (lookup_block_symbol): Explain that this function only returns
7084 symbol matching the requested DOMAIN.
7085 Compare the requested domain with the symbol's domain directly.
7086 (iterate_over_symbols): Compare the requested domain with the
7087 symbol's domain directly.
7088 * symtab.h (symbol_matches_domain): Remove.
7089
7090 2014-04-14 Tom Tromey <tromey@redhat.com>
7091
7092 PR c++/15246:
7093 * c-exp.y (type_aggregate_p): New function.
7094 (qualified_name, classify_inner_name): Use it.
7095 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7096 and TYPE_TARGET_TYPE of an enum type.
7097 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7098 an enum type.
7099 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7100 handle TYPE_DECLARED_CLASS.
7101 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7102 types.
7103 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7104 * valops.c (enum_constant_from_type): New function.
7105 (value_aggregate_elt): Use it.
7106 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7107 TYPE_CODE_ENUM.
7108
7109 2014-04-14 Tom Tromey <tromey@redhat.com>
7110
7111 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7112 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7113 const.
7114 * value.h (value_aggregate_elt): Update.
7115
7116 2014-04-14 Tom Tromey <tromey@redhat.com>
7117
7118 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7119
7120 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7121
7122 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7123 (evaluate_subexp_standard): Pass noside argument.
7124 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7125 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7126 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7127 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7128 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7129
7130 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7131
7132 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7133 points to a constant blob.
7134
7135 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7136
7137 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7138 property and store it as the high bound and flag the range accordingly.
7139 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7140 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7141 * gdbtypes.h (enum range_flags): New enum.
7142 (struct range_bounds): Add flags member.
7143
7144 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7145
7146 * c-typeprint.c (c_type_print_varspec_suffix): Added
7147 check for not yet resolved high bound. If unresolved, print
7148 "variable length" string to the console instead of random
7149 length.
7150
7151 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7152
7153 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7154 value.
7155 (ada_template_to_fixed_record_type_1): Likewise.
7156 (ada_to_fixed_type_1): Likewise.
7157 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7158 (cp_print_value): Likewise.
7159 * d-valprint.c (dynamic_array_type): Likewise.
7160 * findvar.c (address_of_variable): Likewise.
7161 * jv-valprint.c (java_value_print): Likewise.
7162 * valops.c (value_ind): Likewise.
7163 * value.c (coerce_ref): Likewise.
7164
7165 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7166
7167 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7168 value and retrieve the dynamic type size.
7169
7170 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7171
7172 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7173 passed to sizeof is dynamic evaluate the argument to compute the length.
7174
7175 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7176 Joel Brobecker <brobecker@adacore.com>
7177
7178 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7179 (dwarf2_evaluate_property): New function.
7180 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7181 * dwarf2read.c (attr_to_dynamic_prop): New function.
7182 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7183 attribute.
7184 * gdbtypes.c: Include dwarf2loc.h.
7185 (is_dynamic_type): New function.
7186 (resolve_dynamic_type): New function.
7187 (resolve_dynamic_bounds): New function.
7188 (get_type_length): New function.
7189 (check_typedef): Use get_type_length to compute type length.
7190 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7191 (TYPE_LOW_BOUND_KIND): New macro.
7192 (is_dynamic_type): New function prototype.
7193 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7194 to resolve dynamic properties of the type. Update comment.
7195 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7196
7197 2014-04-14 Richard Henderson <rth@redhat.com>
7198
7199 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7200
7201 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7202 Doug Evans <xdje42@gmail.com>
7203
7204 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7205 dereference TYPE_CODE_REF values.
7206
7207 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7208
7209 Revert the following changes due to regressions:
7210
7211 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7212 (dwarf2_evaluate_property): New function.
7213 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7214 * dwarf2read.c (attr_to_dynamic_prop): New function.
7215 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7216 attribute.
7217 * gdbtypes.c: Include dwarf2loc.h.
7218 (is_dynamic_type): New function.
7219 (resolve_dynamic_type): New function.
7220 (resolve_dynamic_bounds): New function.
7221 (get_type_length): New function.
7222 (check_typedef): Use get_type_length to compute type length.
7223 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7224 (TYPE_LOW_BOUND_KIND): New macro.
7225 (is_dynamic_type): New function prototype.
7226 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7227 to resolve dynamic properties of the type. Update comment.
7228 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7229
7230 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7231 passed to sizeof is dynamic evaluate the argument to compute the length.
7232
7233 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7234 value and retrieve the dynamic type size.
7235
7236 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7237 (ada_template_to_fixed_record_type_1): Likewise.
7238 (ada_to_fixed_type_1): Likewise.
7239 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7240 (cp_print_value): Likewise.
7241 * d-valprint.c (dynamic_array_type): Likewise.
7242 * eval.c (evaluate_subexp_with_coercion): Likewise.
7243 * findvar.c (address_of_variable): Likewise.
7244 * jv-valprint.c (java_value_print): Likewise.
7245 * valops.c (value_ind): Likewise.
7246 * value.c (coerce_ref): Likewise.
7247
7248 * c-typeprint.c (c_type_print_varspec_suffix): Added
7249 check for not yet resolved high bound. If unresolved, print
7250 "variable length" string to the console instead of random
7251 length.
7252
7253 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7254 property and store it as the high bound and flag the range accordingly.
7255 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7256 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7257 * gdbtypes.h (enum range_flags): New enum.
7258 (struct range_bounds): Add flags member.
7259
7260 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7261 points to a constant blob.
7262
7263 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7264 (evaluate_subexp_standard): Pass noside argument.
7265 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7266 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7267 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7268 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7269 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7270
7271 2014-04-11 Keith Seitz <keiths@redhat.com>
7272
7273 PR c++/16675
7274 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7275 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7276 reference types.
7277
7278 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7279
7280 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7281 (evaluate_subexp_standard): Pass noside argument.
7282 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7283 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7284 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7285 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7286 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7287
7288 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7289
7290 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7291 points to a constant blob.
7292
7293 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7294
7295 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7296 property and store it as the high bound and flag the range accordingly.
7297 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7298 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7299 * gdbtypes.h (enum range_flags): New enum.
7300 (struct range_bounds): Add flags member.
7301
7302 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7303
7304 * c-typeprint.c (c_type_print_varspec_suffix): Added
7305 check for not yet resolved high bound. If unresolved, print
7306 "variable length" string to the console instead of random
7307 length.
7308
7309 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7310
7311 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7312 (ada_template_to_fixed_record_type_1): Likewise.
7313 (ada_to_fixed_type_1): Likewise.
7314 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7315 (cp_print_value): Likewise.
7316 * d-valprint.c (dynamic_array_type): Likewise.
7317 * eval.c (evaluate_subexp_with_coercion): Likewise.
7318 * findvar.c (address_of_variable): Likewise.
7319 * jv-valprint.c (java_value_print): Likewise.
7320 * valops.c (value_ind): Likewise.
7321 * value.c (coerce_ref): Likewise.
7322
7323 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7324
7325 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7326 value and retrieve the dynamic type size.
7327
7328 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7329
7330 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7331 passed to sizeof is dynamic evaluate the argument to compute the length.
7332
7333 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7334
7335 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7336 (dwarf2_evaluate_property): New function.
7337 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7338 * dwarf2read.c (attr_to_dynamic_prop): New function.
7339 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7340 attribute.
7341 * gdbtypes.c: Include dwarf2loc.h.
7342 (is_dynamic_type): New function.
7343 (resolve_dynamic_type): New function.
7344 (resolve_dynamic_bounds): New function.
7345 (get_type_length): New function.
7346 (check_typedef): Use get_type_length to compute type length.
7347 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7348 (TYPE_LOW_BOUND_KIND): New macro.
7349 (is_dynamic_type): New function prototype.
7350 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7351 to resolve dynamic properties of the type. Update comment.
7352 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7353
7354 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7355
7356 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7357 declaring high/low bounds and change uses accordingly. Call
7358 create_range_type instead of create_static_range_type.
7359 * gdbtypes.c (create_range_type): New function.
7360 (create_range_type): Convert bounds into struct bound_prop and pass
7361 them to create_range_type.
7362 * gdbtypes.h (struct bound_prop): New struct.
7363 (create_range_type): New function prototype.
7364 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7365 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7366 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7367 part of the bound.
7368 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7369
7370 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7371
7372 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7373 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7374 * ada-lang.c: All uses of create_range_type updated.
7375 * coffread.c: All uses of create_range_type updated.
7376 * dwarf2read.c: All uses of create_range_type updated.
7377 * f-exp.y: All uses of create_range_type updated.
7378 * m2-valprint.c: All uses of create_range_type updated.
7379 * mdebugread.c: All uses of create_range_type updated.
7380 * stabsread.c: All uses of create_range_type updated.
7381 * valops.c: All uses of create_range_type updated.
7382 * valprint.c: All uses of create_range_type updated.
7383
7384 2014-04-10 Pedro Alves <palves@redhat.com>
7385
7386 * breakpoint.c (single_step_breakpoints)
7387 (single_step_gdbarch): Move up in the file.
7388 (one_breakpoint_xfer_memory): New function, factored out from ...
7389 (breakpoint_xfer_memory): ... here. Also process single-step
7390 breakpoints.
7391
7392 2014-04-09 Tristan Gingold <gingold@adacore.com>
7393
7394 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7395 comments.
7396 (darwin_decode_exception_message): Free port only after use.
7397
7398 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7399
7400 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7401 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7402 when setting the size of call_length.
7403
7404 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7405
7406 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7407 dereference TYPE_CODE_REF values.
7408
7409 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7410
7411 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7412 end of warning message.
7413
7414 2014-04-03 Doug Evans <dje@google.com>
7415
7416 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7417 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7418
7419 2014-04-02 Alan Modra <amodra@gmail.com>
7420
7421 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7422 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7423 (struct symbol_file_add_from_memory_args): Add size field.
7424 (find_vdso_size): New function.
7425 (add_vsyscall_page): Attempt to find vdso size.
7426
7427 2014-04-01 Doug Evans <dje@google.com>
7428
7429 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7430
7431 2014-04-01 Tristan Gingold <gingold@adacore.com>
7432
7433 * darwin-nat.c (darwin_encode_reply): Add prototype.
7434 (darwin_decode_exception_message): Reply to unknown inferiors.
7435 (darwin_decode_message): Handle message by id. Ignore message
7436 to unknown inferior.
7437 (darwin_wait): Discard unknown messages, add debug trace.
7438
7439 2014-03-31 Doug Evans <dje@google.com>
7440
7441 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7442 comp_dir_string.
7443
7444 2014-03-31 Doug Evans <dje@google.com>
7445
7446 New option "set print symbol-loading".
7447 * NEWS: Mention it.
7448 * solib.c (solib_read_symbols): Only print symbol loading messages
7449 if requested.
7450 (solib_add): If symbol loading is in "brief" mode, notify user
7451 symbols are being loaded.
7452 (reload_shared_libraries_1): Ditto.
7453 * symfile.c (print_symbol_loading_off): New static global.
7454 (print_symbol_loading_brief): New static global.
7455 (print_symbol_loading_full): New static global.
7456 (print_symbol_loading_enums): New static global.
7457 (print_symbol_loading): New static global.
7458 (print_symbol_loading_p): New function.
7459 (symbol_file_add_with_addrs): Only print symbol loading messages
7460 if requested.
7461 (_initialize_symfile): Register "print symbol-loading" set/show
7462 command.
7463 * symfile.h (print_symbol_loading_p): Declare.
7464
7465 2014-03-30 Doug Evans <xdje42@gmail.com>
7466
7467 * infrun.c (set_last_target_status): New function.
7468 (handle_inferior_event): Call it.
7469
7470 2014-03-30 Doug Evans <xdje42@gmail.com>
7471
7472 * inferior.h (enum stop_kind): Improve comment.
7473
7474 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7475
7476 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7477 a reference, strip the reference layer before calling
7478 the lang_ops value_has_mutated callback.
7479
7480 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7481
7482 Remove some globals from our parser.
7483 * language.c (unk_lang_parser): Add "struct parser_state"
7484 argument.
7485 * language.h (struct language_defn) <la_parser>: Likewise.
7486 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7487 (initialize_expout): Add "struct parser_state" argument.
7488 Rewrite function to use the parser state.
7489 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7490 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7491 write_exp_elt_longcst, write_exp_elt_dblcst,
7492 write_exp_elt_decfloatcst, write_exp_elt_type,
7493 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7494 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7495 write_dollar_variable): Likewise.
7496 (parse_exp_in_context_1): Use parser state.
7497 (insert_type_address_space): Add "struct parser_state" argument.
7498 Use parser state.
7499 (increase_expout_size): New function.
7500 * parser-defs.h: Forward declare "struct language_defn" and
7501 "struct parser_state".
7502 (expout, expout_size, expout_ptr): Remove extern declarations.
7503 (parse_gdbarch, parse_language): Rewrite macro declarations to
7504 accept the parser state.
7505 (struct parser_state): New struct.
7506 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7507 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7508 write_exp_elt_decfloatcst, write_exp_elt_type,
7509 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7510 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7511 write_exp_msymbol, write_dollar_variable,
7512 mark_struct_expression, insert_type_address_space): Add "struct
7513 parser_state" argument.
7514 (increase_expout_size): New function.
7515 * utils.c (do_clear_parser_state): New function.
7516 (make_cleanup_clear_parser_state): Likewise.
7517 * utils.h (make_cleanup_clear_parser_state): New function
7518 prototype.
7519 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7520 Update calls to write_exp* in order to pass the parser state.
7521 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7522 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7523 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7524 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7525 * stap-probe.c (stap_parse_register_operand): Likewise.
7526 (stap_parse_single_operand): Likewise.
7527 (stap_parse_argument_1): Likewise.
7528 (stap_parse_argument): Use parser state.
7529 * stap-probe.h: Include "parser-defs.h".
7530 (struct stap_parse_info) <pstate>: New field.
7531 * c-exp.y (parse_type): Rewrite to use parser state.
7532 (yyparse): Redefine to c_parse_internal.
7533 (pstate): New global variable.
7534 (parse_number): Add "struct parser_state" argument.
7535 (write_destructor_name): Likewise.
7536 (type_exp): Update calls to write_exp* and similars in order to
7537 use parser state.
7538 (exp1, exp, variable, qualified_name, space_identifier,
7539 typename, typebase): Likewise.
7540 (write_destructor_name, parse_number, lex_one_token,
7541 classify_name, classify_inner_name, c_parse): Add "struct
7542 parser_state" argument. Update function to use parser state.
7543 * c-lang.h: Forward declare "struct parser_state".
7544 (c_parse): Add "struct parser_state" argument.
7545 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7546 (yyparse): Redefine macro to ada_parse_internal.
7547 (pstate): New variable.
7548 (write_int, write_object_renaming, write_var_or_type,
7549 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7550 type_int, type_long, type_long_long, type_float, type_double,
7551 type_long_double, type_char, type_boolean, type_system_address):
7552 Add "struct parser_state" argument.
7553 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7554 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7555 var_or_type, aggregate, aggregate_component_list,
7556 positional_list, others, component_group,
7557 component_associations): Update calls to write_exp* and similar
7558 functions in order to use parser state.
7559 (ada_parse, write_var_from_sym, write_int,
7560 write_exp_op_with_string, write_object_renaming,
7561 find_primitive_type, write_selectors, write_ambiguous_var,
7562 write_var_or_type, write_name_assoc, type_int, type_long,
7563 type_long_long, type_float, type_double, type_long_double,
7564 type_char, type_boolean, type_system_address): Add "struct
7565 parser_state" argument. Adjust function to use parser state.
7566 * ada-lang.c (parse): Likewise.
7567 * ada-lang.h: Forward declare "struct parser_state".
7568 (ada_parse): Add "struct parser_state" argument.
7569 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7570 calls to both functions.
7571 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7572 parser state.
7573 (yyparse): Redefine macro to f_parse_internal.
7574 (pstate): New variable.
7575 (parse_number): Add "struct parser_state" argument.
7576 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7577 and similars in order to use parser state.
7578 (parse_number): Adjust code to use parser state.
7579 (yylex): Likewise.
7580 (f_parse): New function.
7581 * f-lang.h: Forward declare "struct parser_state".
7582 (f_parse): Add "struct parser_state" argument.
7583 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7584 parser state.
7585 (yyparse): Redefine macro for java_parse_internal.
7586 (pstate): New variable.
7587 (push_expression_name, push_expression_name, insert_exp): Add
7588 "struct parser_state" argument.
7589 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7590 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7591 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7592 PostIncrementExpression, PostDecrementExpression,
7593 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7594 UnaryExpressionNotPlusMinus, CastExpression,
7595 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7596 RelationalExpression, EqualityExpression, AndExpression,
7597 ExclusiveOrExpression, InclusiveOrExpression,
7598 ConditionalAndExpression, ConditionalOrExpression,
7599 ConditionalExpression, Assignment, LeftHandSide): Update
7600 calls to write_exp* and similars in order to use parser state.
7601 (parse_number): Ajust code to use parser state.
7602 (yylex): Likewise.
7603 (java_parse): New function.
7604 (push_variable): Add "struct parser_state" argument. Adjust
7605 code to user parser state.
7606 (push_fieldnames, push_qualified_expression_name,
7607 push_expression_name, insert_exp): Likewise.
7608 * jv-lang.h: Forward declare "struct parser_state".
7609 (java_parse): Add "struct parser_state" argument.
7610 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7611 parser state.
7612 (yyparse): Redefine macro to m2_parse_internal.
7613 (pstate): New variable.
7614 (type_exp, exp, fblock, variable, type): Update calls to
7615 write_exp* and similars to use parser state.
7616 (yylex): Likewise.
7617 (m2_parse): New function.
7618 * m2-lang.h: Forward declare "struct parser_state".
7619 (m2_parse): Add "struct parser_state" argument.
7620 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7621 * objc-lang.h: Forward declare "struct parser_state".
7622 (end_msglist): Add "struct parser_state" argument.
7623 * p-exp.y (parse_type): Rewrite macro to use parser state.
7624 (yyparse): Redefine macro to pascal_parse_internal.
7625 (pstate): New variable.
7626 (parse_number): Add "struct parser_state" argument.
7627 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7628 write_exp* and similars in order to use parser state.
7629 (parse_number, yylex): Adjust code to use parser state.
7630 (pascal_parse): New function.
7631 * p-lang.h: Forward declare "struct parser_state".
7632 (pascal_parse): Add "struct parser_state" argument.
7633 * go-exp.y (parse_type): Rewrite macro to use parser state.
7634 (yyparse): Redefine macro to go_parse_internal.
7635 (pstate): New variable.
7636 (parse_number): Add "struct parser_state" argument.
7637 (type_exp, exp1, exp, variable, type): Update calls to
7638 write_exp* and similars in order to use parser state.
7639 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7640 to use parser state.
7641 (go_parse): Likewise.
7642 * go-lang.h: Forward declare "struct parser_state".
7643 (go_parse): Add "struct parser_state" argument.
7644
7645 2014-03-27 Doug Evans <dje@google.com>
7646
7647 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7648
7649 2014-03-27 Doug Evans <dje@google.com>
7650
7651 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7652 Remove argument abbrev_section. All callers updated.
7653
7654 2014-03-27 Doug Evans <dje@google.com>
7655
7656 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7657 addr_base, ranges_base.
7658
7659 2014-03-26 Keith Seitz <keiths@redhat.com>
7660
7661 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7662 types, not VAR_DOMAIN.
7663
7664 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7665
7666 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7667 "ra" registers.
7668 * features/nios2-linux.c: Regenerated.
7669 * features/nios2.c: Regenerated.
7670
7671 2014-03-25 Pedro Alves <palves@redhat.com>
7672
7673 * cli/cli-script.c (script_from_file): Force the interpreter to
7674 sync mode.
7675
7676 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7677
7678 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7679 small stack allocation.
7680
7681 2014-03-24 Tristan Gingold <gingold@adacore.com>
7682
7683 * darwin-nat.c (exc_server): Remove unused prototype.
7684 (darwin_dump_message): Correctly display data on x86_64.
7685 (darwin_encode_reply): Fix style.
7686 Add comments and fix indentation.
7687
7688 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7689
7690 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7691
7692 2014-03-22 Doug Evans <xdje42@gmail.com>
7693
7694 * infcmd.c: Whitespace fixes.
7695 (interrupt_command): Merge two function comments into one.
7696
7697 2014-03-22 Doug Evans <xdje42@gmail.com>
7698
7699 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7700 All uses updated.
7701
7702 2014-03-22 Yao Qi <yao@codesourcery.com>
7703
7704 * remote.c (target_read_live_memory): Remove.
7705 (memory_xfer_live_readonly_partial): Rename it to
7706 remote_xfer_live_readonly_partial. Remove argument 'object'.
7707 All callers updated. Call remote_read_bytes_1
7708 instead of target_read_live_memory.
7709 * tracepoint.c (set_traceframe_number): Remove.
7710 (make_cleanup_restore_traceframe_number): Likewise .
7711 * tracepoint.h (set_traceframe_number): Remove declaration.
7712 (make_cleanup_restore_traceframe_number): Likewise.
7713
7714 2014-03-22 Yao Qi <yao@codesourcery.com>
7715
7716 * remote.c (remote_read_bytes): Move code on reading from the
7717 remote stub to ...
7718 (remote_read_bytes_1): ... here. New function.
7719
7720 2014-03-22 Yao Qi <yao@codesourcery.com>
7721
7722 * ctf.c (ctf_xfer_partial): Check the return value of
7723 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7724 return TARGET_XFER_UNAVAILABLE.
7725 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7726 * target.c (target_read_live_memory): Move it to remote.c.
7727 (memory_xfer_live_readonly_partial): Likewise.
7728 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7729 * remote.c (target_read_live_memory): Moved from target.c.
7730 (memory_xfer_live_readonly_partial): Likewise.
7731 (remote_read_bytes): Factored out from
7732 memory_xfer_partial_1.
7733
7734 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7735
7736 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7737 NULL pointer.
7738
7739 2014-03-21 Pedro Alves <palves@redhat.com>
7740
7741 * infrun.c (normal_stop): Extend comment.
7742
7743 2014-03-21 Hui Zhu <hui@codesourcery.com>
7744 Pedro Alves <palves@redhat.com>
7745
7746 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7747 static buffer.
7748 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7749 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7750 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7751
7752 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7753
7754 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7755 `z' formatted output modifier.
7756
7757 2014-03-20 Tom Tromey <tromey@redhat.com>
7758 Sergio Durigan Junior <sergiodj@redhat.com>
7759
7760 * probe.c (parse_probes): Turn assert into an ordinary error.
7761 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7762 exceptions when parsing probes. Rearrange the code for clarity.
7763
7764 2014-03-20 Tom Tromey <tromey@redhat.com>
7765
7766 PR gdb/14135
7767 * top.c (execute_command): Only dispatch events if the command
7768 started the target.
7769
7770 2014-03-20 Tom Tromey <tromey@redhat.com>
7771
7772 PR cli/15718
7773 * infcall.c: Include event-top.h.
7774 (run_inferior_call): Call async_disable_stdin if needed.
7775
7776 2014-03-20 Pedro Alves <palves@redhat.com>
7777
7778 * infrun.c (prepare_to_proceed): Delete.
7779 (thread_still_needs_step_over): New function.
7780 (find_thread_needs_step_over): New function.
7781 (proceed): If the current thread needs a step-over, set its
7782 steping_over_breakpoint flag. Adjust to use
7783 find_thread_needs_step_over instead of prepare_to_proceed.
7784 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7785 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7786 breakpoint.
7787 (switch_back_to_stepped_thread): Step over breakpoints of all
7788 threads not the stepping thread, before switching back to the
7789 stepping thread.
7790
7791 2014-03-20 Pedro Alves <palves@redhat.com>
7792
7793 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7794 extern.
7795 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7796 * infrun.c (saved_singlestep_ptid)
7797 (stepping_past_singlestep_breakpoint): Delete.
7798 (resume): Remove stepping_past_singlestep_breakpoint handling.
7799 (proceed): Store the prev_pc of the stepping thread too.
7800 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7801 singlestep_pc.
7802 (enum infwait_states): Delete infwait_thread_hop_state.
7803 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7804 field.
7805 (handle_inferior_event): Adjust.
7806 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7807 handling and the thread-hop code. Before removing single-step
7808 breakpoints, check whether the thread hit a single-step breakpoint
7809 of another thread. If it did, the trap is not a random signal.
7810 (switch_back_to_stepped_thread): If the event thread hit a
7811 single-step breakpoint, unblock it before switching to the
7812 stepping thread. Handle the case of the stepped thread having
7813 advanced already.
7814 (keep_going): Handle the case of the current thread moving past a
7815 single-step breakpoint.
7816
7817 2014-03-20 Pedro Alves <palves@redhat.com>
7818
7819 PR breakpoints/7143
7820 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7821 are being stepped over.
7822 (breakpoint_address_match): Make extern.
7823 * breakpoint.h (breakpoint_address_match): New declaration.
7824 * inferior.h (stepping_past_instruction_at): New declaration.
7825 * infrun.c (struct step_over_info): New type.
7826 (step_over_info): New global.
7827 (set_step_over_info, clear_step_over_info)
7828 (stepping_past_instruction_at): New functions.
7829 (handle_inferior_event): Clear the step-over info when
7830 trap_expected is cleared.
7831 (resume): Remove now stale comment.
7832 (clear_proceed_status): Clear step-over info.
7833 (proceed): Adjust step-over handling to set or clear the step-over
7834 info instead of removing all breakpoints.
7835 (handle_signal_stop): When setting up a thread-hop, don't remove
7836 breakpoints here.
7837 (stop_stepping): Clear step-over info.
7838 (keep_going): Adjust step-over handling to set or clear step-over
7839 info and then always inserting breakpoints, instead of removing
7840 all breakpoints when stepping over one.
7841
7842 2014-03-20 Pedro Alves <palves@redhat.com>
7843
7844 * infrun.c (previous_inferior_ptid): Adjust comment.
7845 (deferred_step_ptid): Delete.
7846 (infrun_thread_ptid_changed, prepare_to_proceed)
7847 (init_wait_for_inferior): Adjust.
7848 (handle_signal_stop): Delete deferred_step_ptid handling.
7849
7850 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7851
7852 PR gdb/15358
7853 * defs.h (sync_quit_force_run): New declaration.
7854 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7855 * event-top.c (async_sigterm_handler): New declaration.
7856 (async_sigterm_token): New variable.
7857 (async_init_signals): Create also async_sigterm_token.
7858 (async_sigterm_handler): New function.
7859 (sync_quit_force_run): New variable.
7860 (handle_sigterm): Replace quit_force call by other calls.
7861 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7862
7863 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7864
7865 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7866 offset into SPE pseudo registers.
7867
7868 2014-03-18 Pedro Alves <palves@redhat.com>
7869
7870 PR gdb/13860
7871 * inferior.h (print_stop_event): Declare.
7872 * infrun.c (print_stop_event): New, factored out from ...
7873 (normal_stop): ... this.
7874 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7875 of bpstat_print/print_stack_frame.
7876
7877 2014-03-17 Tom Tromey <tromey@redhat.com>
7878
7879 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7880
7881 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7882
7883 * ada-lang.c (decode_constrained_packed_array): Perform a
7884 minimal coercion for reference with coerce_ref instead of
7885 ada_coerce_ref.
7886
7887 2014-03-17 Tristan Gingold <gingold@adacore.com>
7888
7889 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7890 (darwin_solib_create_inferior_hook): Emit a warning if version
7891 is unhandled.
7892
7893 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7894
7895 * python/py-value.c (get_field_flag): Cast flag_name argument to
7896 PyObject_GetAttrString to support Python 2.4.
7897
7898 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7899
7900 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7901 (Global Maintainers): Remove Jan Kratochvil.
7902
7903 2014-03-14 Pedro Alves <palves@redhat.com>
7904
7905 * inferior.h (terminal_ours_for_output): Rename to ...
7906 (child_terminal_ours_for_output): ... this.
7907 (terminal_save_ours): Rename to ...
7908 (child_terminal_save_ours): ... this.
7909 (terminal_ours): Rename to ...
7910 (child_terminal_ours): ... this.
7911 (terminal_inferior): Rename to ...
7912 (child_terminal_inferior): ... this.
7913 (terminal_init_inferior): Rename to ...
7914 (child_terminal_init_inferior): ... this.
7915 (terminal_init_inferior_with_pgrp): Rename to ...
7916 (child_terminal_init_inferior_with_pgrp): ... this.
7917 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7918 (child_terminal_init_with_pgrp): ... this.
7919 (terminal_save_ours): Rename to ...
7920 (child_terminal_save_ours): ... this.
7921 (terminal_init_inferior): Rename to ...
7922 (child_terminal_init): ... this. Adjust.
7923 (terminal_inferior): Rename to ...
7924 (child_terminal_inferior): ... this.
7925 (terminal_ours_for_output): Rename to ...
7926 (child_terminal_ours_for_output): ... this. Adjust.
7927 (terminal_ours): Rename to ...
7928 (child_terminal_ours): ... this.
7929 (terminal_ours_1): Rename to ...
7930 (child_terminal_ours_1): ... this. Adjust.
7931 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7932 * windows-nat.c (do_initial_windows_stuff): Adjust.
7933 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7934 (gnu_terminal_init): ... this. Adjust.
7935 (gnu_target): Adjust.
7936 * inf-child.c (inf_child_target): Adjust.
7937
7938 2014-03-13 Doug Evans <xdje42@gmail.com>
7939
7940 PR guile/16612
7941 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7942 new eq?-hashtab.
7943
7944 2014-03-13 Doug Evans <xdje42@gmail.com>
7945
7946 * value.c (record_latest_value): Call release_value_or_incref
7947 instead of release_value.
7948
7949 2014-03-13 Pedro Alves <palves@redhat.com>
7950
7951 * procfs.c (procfs_target): Don't override to_shortname,
7952 to_longname or to_doc.
7953
7954 2014-03-13 Pedro Alves <palves@redhat.com>
7955
7956 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7957 Unix in user visible strings.
7958
7959 2014-03-12 Stan Shebs <stan@codesourcery.com>
7960
7961 * gdbtypes.h: Annotate comments for Doxygen, add a page
7962 block comment with some general info.
7963
7964 2014-03-12 Pedro Alves <palves@redhat.com>
7965
7966 * infcmd.c (prepare_execution_command): New function, factored out
7967 from several execution commands.
7968 (run_command_1, continue_command, step_1, jump_command)
7969 (signal_command, until_command, advance_command, finish_command)
7970 (attach_command): Use prepare_execution_command.
7971
7972 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7973
7974 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7975 (MAX_BPTS): Define.
7976 (MAX_WPTS): Define.
7977 (struct arm_linux_thread_points): Removed.
7978 (struct arm_linux_process_info): New.
7979 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7980 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7981 (arm_linux_find_breakpoints_by_tid): Removed.
7982 (struct arch_lwp_info): New.
7983 (arm_linux_find_process_pid): New functions.
7984 (arm_linux_add_process): New functions.
7985 (arm_linux_process_info_get): New functions.
7986 (arm_linux_forget_process): New function.
7987 (arm_linux_get_debug_reg_state): New function.
7988 (struct update_registers_data): New.
7989 (update_registers_callback): New function.
7990 (arm_linux_insert_hw_breakpoint1): Updated.
7991 (arm_linux_remove_hw_breakpoint1): Updated.
7992 (arm_linux_insert_hw_breakpoint): Updated.
7993 (arm_linux_remove_hw_breakpoint): Updated.
7994 (arm_linux_insert_watchpoint): Updated.
7995 (arm_linux_remove_watchpoint): Updated.
7996 (arm_linux_new_thread): Updated.
7997 (arm_linux_prepare_to_resume): New function.
7998 (arm_linux_new_fork): New function.
7999 (_initialize_arm_linux_nat): Updated.
8000
8001 2014-03-12 Pedro Alves <palves@redhat.com>
8002
8003 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8004
8005 2014-03-12 Tom Tromey <tromey@redhat.com>
8006
8007 * inf-child.c (return_zero): New function.
8008 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8009 * aix-thread.c (aix_thread_inferior_created): New function.
8010 (aix_thread_attach): Remove.
8011 (init_aix_thread_ops): Don't set to_attach.
8012 (_initialize_aix_thread): Register inferior_created observer.
8013 * corelow.c (init_core_ops): Don't set to_attach or
8014 to_create_inferior.
8015 * exec.c (init_exec_ops): Don't set to_attach or
8016 to_create_inferior.
8017 * infcmd.c (run_command_1): Use find_run_target. Make direct
8018 target calls.
8019 (attach_command): Use find_attach_target. Make direct target
8020 calls.
8021 * record-btrace.c (init_record_btrace_ops): Don't set
8022 to_create_inferior.
8023 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8024 Remove.
8025 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8026 set to_create_inferior.
8027 * target.c (complete_target_initialization): Add assertion.
8028 (target_create_inferior): Remove.
8029 (find_default_attach, find_default_create_inferior): Remove.
8030 (find_attach_target, find_run_target): New functions.
8031 (find_default_is_async_p, find_default_can_async_p)
8032 (target_supports_non_stop, target_attach): Remove.
8033 (init_dummy_target): Don't set to_create_inferior or
8034 to_supports_non_stop.
8035 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8036 TARGET_DEFAULT_FUNC.
8037 <to_create_inferior>: Add comment.
8038 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8039 TARGET_DEFAULT_RETURN.
8040 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8041 (find_attach_target, find_run_target): Declare.
8042 (target_create_inferior): Remove.
8043 (target_has_execution_1): Update comment.
8044 (target_supports_non_stop): Remove.
8045 * target-delegates.c: Rebuild.
8046
8047 2014-03-12 Pedro Alves <palves@redhat.com>
8048
8049 * inf-child.h: Update comment to not mention Unix.
8050
8051 2014-03-12 Pedro Alves <palves@redhat.com>
8052
8053 * inf-child.c: Update top comment to not mention Unix. Add
8054 generic comment describing how this target is meant to be used.
8055 (inf_child_post_attach, inf_child_post_startup_inferior)
8056 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8057 Unix in comment.
8058
8059 2014-03-12 Pedro Alves <palves@redhat.com>
8060
8061 * nto-procfs.c: Include inf-child.h.
8062 (procfs_ops): Delete global.
8063 (procfs_can_run): Delete method.
8064 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8065 target pointer instead of referencing procfs_ops.
8066 (procfs_prepare_to_store): Delete.
8067 (init_procfs_ops): Delete function.
8068 (procfs_target): New function, based on init_procfs_ops, but
8069 inherit inf_child_target.
8070 (_initialize_procfs): Use procfs_target.
8071
8072 2014-03-12 Pedro Alves <palves@redhat.com>
8073
8074 * windows-nat.c: Include inf-child.h.
8075 (windows_ops): Delete global.
8076 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8077 methods.
8078 (init_windows_ops): Delete function.
8079 (windows_target): New function, based on init_windows_ops, but
8080 inherit inf_child_target.
8081 (_initialize_windows_nat): Use windows_target. Install x86
8082 specific target methods here.
8083
8084 2014-03-10 Doug Evans <xdje42@gmail.com>
8085
8086 * guile/guile.c (call_initialize_gdb_module): New function.
8087 (initialize_guile): Replace call to scm_init_guile with call to
8088 scm_with_guile.
8089
8090 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8091
8092 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8093 in call to TYPE_CODE macro.
8094
8095 2014-03-10 Jerome Guitton <guitton@adacore.com>
8096
8097 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8098 Resolve tagged types to full view.
8099
8100 2014-03-10 Hui Zhu <hui@codesourcery.com>
8101
8102 * target.h (target_insert_breakpoint): Remove "hardware" from its
8103 comments.
8104
8105 2014-03-07 Doug Evans <dje@google.com>
8106
8107 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8108
8109 2014-03-07 Doug Evans <dje@google.com>
8110
8111 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8112 Remove unused local comp_dir_attr. Assert exactly one of
8113 stub_comp_unit_die, stub_comp_dir is non-NULL.
8114
8115 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8116
8117 * target.h (complete_target_initialization, add_target):
8118 Add comment.
8119
8120 2014-03-07 Pedro Alves <palves@redhat.com>
8121
8122 * go32-nat.c: Include inf-child.h.
8123 (go32_ops): Delete global.
8124 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8125 Delete methods.
8126 (go32_create_inferior): Push the passed in target pointer instead
8127 of referencing go32_ops.
8128 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8129 (go32_target): New function, based on init_go32_ops, but inherit
8130 inf_child_target.
8131 (_initialize_go32_nat): Use go32_target. Move parts of
8132 init_go32_ops here.
8133
8134 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8135
8136 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8137 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8138 SYMBOL_VALUE_ADDRESS.
8139 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8140
8141 2014-03-06 Yao Qi <yao@codesourcery.com>
8142
8143 * breakpoint.c (get_tracepoint_by_number): Remove argument
8144 optional_p. All callers updated. Adjust comments. Update
8145 output message.
8146 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8147
8148 2014-03-06 Yao Qi <yao@codesourcery.com>
8149
8150 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8151 early if get_number returns zero. Use 'p' instead of 'args'.
8152
8153 2014-03-06 Yao Qi <yao@codesourcery.com>
8154
8155 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8156 message.
8157
8158 2014-03-06 Yao Qi <yao@codesourcery.com>
8159
8160 PR breakpoints/16508
8161 * tracepoint.c (check_trace_running): New function.
8162 (trace_find_command): Move code to check_trace_running and
8163 call check_trace_running.
8164 (trace_find_pc_command): Likewise.
8165 (trace_find_tracepoint_command): Likewise.
8166 (trace_find_line_command): Likewise.
8167 (trace_find_range_command): Likewise.
8168 * tracepoint.h (check_trace_running): Likewise.
8169 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8170
8171 2014-03-06 Yao Qi <yao@codesourcery.com>
8172
8173 * target.h (struct target_ops) <to_traceframe_info>: Use
8174 TARGET_DEFAULT_NORETURN (tcomplain ()).
8175 * target-delegates.c: Regenerated.
8176
8177 2014-03-05 Pedro Alves <palves@redhat.com>
8178
8179 PR gdb/16575
8180 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8181 void. Update comment.
8182 (dcache_xfer_memory): Delete.
8183 (dcache_read_memory_partial): New, based on the read bits of
8184 dcache_xfer_memory.
8185 (dcache_update): Add status parameter. Use ULONGEST for len, and
8186 adjust. Discard cache lines if the reason for the update was
8187 error.
8188 * dcache.h (dcache_xfer_memory): Delete declaration.
8189 (dcache_read_memory_partial): New declaration.
8190 (dcache_update): Update prototype.
8191 * target.c (raw_memory_xfer_partial): Update the dcache here.
8192 (memory_xfer_partial_1): Don't handle dcache writes here.
8193
8194 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8195
8196 * remote-sim.c (gdbsim_load): Add const to prog.
8197
8198 2014-03-03 Tom Tromey <tromey@redhat.com>
8199
8200 * elfread.c (probe_key): Change to bfd_data.
8201 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8202 now per-BFD, not per-objfile.
8203 * stap-probe.c (stap_probe_destroy): Update comment.
8204 (handle_stap_probe): Allocate on the per-BFD obstack.
8205
8206 2014-03-03 Tom Tromey <tromey@redhat.com>
8207
8208 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8209 * breakpoint.c (create_longjmp_master_breakpoint): Use
8210 get_probe_address.
8211 (add_location_to_breakpoint, bkpt_probe_insert_location)
8212 (bkpt_probe_remove_location): Update.
8213 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8214 * elfread.c (elf_symfile_relocate_probe): Remove.
8215 (elf_probe_fns): Update.
8216 (insert_exception_resume_breakpoint): Change type of "probe"
8217 parameter to bound_probe.
8218 (check_exception_resume): Update.
8219 * objfiles.c (objfile_relocate1): Don't relocate probes.
8220 * probe.c (bound_probe_s): New typedef.
8221 (parse_probes): Use get_probe_address. Set sal's objfile.
8222 (find_probe_by_pc): Return a bound_probe.
8223 (collect_probes): Return a VEC(bound_probe_s).
8224 (compare_probes): Update.
8225 (gen_ui_out_table_header_info): Change type of "probes"
8226 parameter. Update.
8227 (info_probes_for_ops): Update.
8228 (get_probe_address): New function.
8229 (probe_safe_evaluate_at_pc): Update.
8230 * probe.h (struct probe_ops) <get_probe_address>: New field.
8231 <set_semaphore, clear_semaphore>: Add objfile parameter.
8232 (struct probe) <objfile>: Remove field.
8233 <arch>: New field.
8234 <address>: Update comment.
8235 (struct bound_probe): New.
8236 (find_probe_by_pc): Return a bound_probe.
8237 (get_probe_address): Declare.
8238 * solib-svr4.c (struct probe_and_action) <address>: New field.
8239 (hash_probe_and_action, equal_probe_and_action): Update.
8240 (register_solib_event_probe): Add address parameter.
8241 (solib_event_probe_at): Update.
8242 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8243 get_probe_address.
8244 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8245 (stap_get_probe_address): New function.
8246 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8247 (compile_probe_arg): Update.
8248 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8249 address.
8250 (handle_stap_probe): Don't relocate the probe.
8251 (stap_relocate): Remove.
8252 (stap_gen_info_probes_table_values): Update.
8253 (stap_probe_ops): Remove stap_relocate.
8254 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8255 (debug_sym_probe_fns): Update.
8256 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8257 * symtab.c (init_sal): Use memset.
8258 * symtab.h (struct symtab_and_line) <objfile>: New field.
8259 * tracepoint.c (start_tracing, stop_tracing): Update.
8260
8261 2014-03-03 Tom Tromey <tromey@redhat.com>
8262
8263 * probe.h (parse_probes, find_probe_by_pc)
8264 (find_probes_in_objfile): Fix comments.
8265
8266 2014-03-02 Doug Evans <xdje42@gmail.com>
8267
8268 * infrun.c (handle_signal_stop): Replace test for
8269 TARGET_WAITKIND_STOPPED with an assert.
8270
8271 2014-03-02 Doug Evans <xdje42@gmail.com>
8272
8273 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8274
8275 2014-03-02 Doug Evans <xdje42@gmail.com>
8276
8277 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8278
8279 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8280
8281 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8282
8283 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8284
8285 * i386obsd-nat.c: Include "obsd-nat.h".
8286 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8287 add_target.
8288 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8289
8290 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8291
8292 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8293
8294 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8295
8296 * mips64obsd-nat.c: Include "obsd-nath".
8297 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8298 add_target
8299 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8300
8301 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8302
8303 * amd64obsd-nat.c: Include "obsd-nat,h.
8304 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8305 add_target.
8306 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8307
8308 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8309
8310 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8311 (find_overload_match): Update call to find_oload_champ.
8312 (find_oload_champ_namespace_loop): Likewise
8313
8314 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8315
8316 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8317
8318 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8319 * config/sparc/obsd64.mh: New file.
8320 * sparc64obsd-nat.c: New file.
8321
8322 * obsd-nat.h: New file.
8323 * obsd-nat.c: New file.
8324 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8325 (ALLDEPFILES): Add obsd-nat.c.
8326
8327 2014-02-28 Tom Tromey <tromey@redhat.com>
8328
8329 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8330 * cli-out.h (cli_ui_out_impl): Now const.
8331 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8332 * ui-out.c (struct ui_out) <impl>: Now const.
8333 (default_ui_out_impl): Now const.
8334 (ui_out_new): Make 'impl' parameter const.
8335 * ui-out.h (ui_out_new): Update.
8336
8337 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8338
8339 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8340
8341 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8342
8343 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8344
8345 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8346
8347 Additional PR 8882 fix.
8348 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8349
8350 2014-02-27 Pedro Alves <palves@redhat.com>
8351
8352 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8353 isn't set.
8354
8355 2014-02-27 Pedro Alves <palves@redhat.com>
8356
8357 PR 12702
8358 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8359 * nat/linux-waitpid.c: Include string.h.
8360 (status_to_str): Moved here and made extern.
8361 * nat/linux-waitpid.h (status_to_str): New declaration.
8362
8363 2014-02-27 Hui Zhu <hui@codesourcery.com>
8364
8365 PR 12702
8366 * infrun.c (ptid_match): Move ...
8367 * common/ptid.c (ptid_match): ... here.
8368 * inferior.h (ptid_match): Move ...
8369 * common/ptid.h (ptid_match): ... here.
8370
8371 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8372
8373 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8374 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8375 gdb_target_obs.
8376
8377 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8378
8379 * obsd-tdep.c (obsd_auxv_parse): New function.
8380 (obsd_init_abi): Set auxv_parse.
8381
8382 * gdbarch.sh (auxv_parse): New.
8383 * gdbarch.h: Regenerated.
8384 * gdbarch.c: Regenerated.
8385 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8386
8387 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8388
8389 * guile/scm-value.c (gdbscm_history_append_x): New function.
8390 (value_functions): Add it.
8391
8392 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8393
8394 * dwarf2read.c (attr_value_as_address): New function.
8395 (dwarf2_find_base_address, read_call_site_scope): Use
8396 attr_value_as_address in place of DW_ADDR.
8397 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8398 the low and high addresses. Slight rework of the handling
8399 of the high pc being a constant form, and limit it to
8400 DWARF verson 4 or higher.
8401 (dwarf2_record_block_ranges): Likewise.
8402 (read_partial_die): Likewise.
8403 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8404
8405 2014-02-26 Tom Tromey <tromey@redhat.com>
8406
8407 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8408
8409 2014-02-26 Tom Tromey <tromey@redhat.com>
8410
8411 * elfread.c (elf_read_minimal_symbols): Return early if
8412 minimal symbols have already been read. Add "ei" parameter.
8413 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8414 * minsyms.c (prim_record_minimal_symbol_full): Update.
8415 * objfiles.h (struct objstats) <n_minsyms>: Move...
8416 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8417 * symmisc.c (print_objfile_statistics): Update.
8418
8419 2014-02-26 Tom Tromey <tromey@redhat.com>
8420
8421 * elfread.c (elf_read_minimal_symbols): New function, from
8422 elf_symfile_read.
8423 (elf_symfile_read): Call it.
8424
8425 2014-02-26 Tom Tromey <tromey@redhat.com>
8426
8427 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8428 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8429 (lookup_minimal_symbol_solib_trampoline)
8430 (lookup_minimal_symbol_by_pc_section_1)
8431 (lookup_minimal_symbol_and_objfile): Update.
8432 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8433 Don't allocate a minimal symbol if minsyms have already been read.
8434 (build_minimal_symbol_hash_tables): Update.
8435 (install_minimal_symbols): Do nothing if minsyms already read.
8436 Use the per-BFD obstack.
8437 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8438 * objfiles.c (allocate_objfile): Call
8439 terminate_minimal_symbol_table later.
8440 (have_minimal_symbols): Update.
8441 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8442 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8443 Move from struct objfile.
8444 <minsyms_read>: New field.
8445 (struct objfile) <msymbols, minimal_symbol_count,
8446 msymbol_hash, msymbol_demangled_hash>: Move.
8447 (ALL_OBJFILE_MSYMBOLS): Update.
8448 * symfile.c (read_symbols): Set minsyms_read.
8449 (reread_symbols): Update.
8450 * symmisc.c (dump_objfile, dump_msymbols): Update.
8451
8452 2014-02-26 Tom Tromey <tromey@redhat.com>
8453
8454 * minsyms.c (msymbols_sort): Remove.
8455 * minsyms.h (msymbols_sort): Remove.
8456 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8457 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8458 * elfread.c (elf_symtab_read): Don't add section offsets.
8459 * xcoffread.c (record_minimal_symbol): Don't add section offset
8460 to minimal symbol address.
8461 * somread.c (text_offset, data_offset): Remove.
8462 (som_symtab_read): Don't add section offsets to minimal symbol
8463 addresses.
8464 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8465 Don't add section offsets to minimal symbols.
8466 * coffread.c (coff_symtab_read): Don't add section offsets
8467 to minimal symbol addresses.
8468 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8469 to minimal symbol addresses.
8470 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8471 section offset to minimal symbol addresses.
8472 * mdebugread.c (parse_partial_symbols): Don't add section
8473 offset to minimal symbol addresses.
8474 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8475 offset to minimal symbol addresses.
8476
8477 2014-02-26 Tom Tromey <tromey@redhat.com>
8478
8479 * ada-lang.c (ada_main_name): Update.
8480 (ada_add_standard_exceptions): Update.
8481 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8482 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8483 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8484 * auxv.c (ld_so_xfer_auxv): Update.
8485 * avr-tdep.c (avr_scan_prologue): Update.
8486 * ax-gdb.c (gen_var_ref): Update.
8487 * blockframe.c (get_pc_function_start)
8488 (find_pc_partial_function_gnu_ifunc): Update.
8489 * breakpoint.c (create_overlay_event_breakpoint)
8490 (create_longjmp_master_breakpoint)
8491 (create_std_terminate_master_breakpoint)
8492 (create_exception_master_breakpoint): Update.
8493 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8494 * c-valprint.c (c_val_print): Update.
8495 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8496 * common/agent.c (agent_look_up_symbols): Update.
8497 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8498 * dwarf2loc.c (call_site_to_target_addr): Update.
8499 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8500 * elfread.c (elf_gnu_ifunc_record_cache)
8501 (elf_gnu_ifunc_resolve_by_got): Update.
8502 * findvar.c (default_read_var_value): Update.
8503 * frame.c (inside_main_func): Update.
8504 * frv-tdep.c (frv_frame_this_id): Update.
8505 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8506 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8507 Update.
8508 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8509 (hppa_hpux_find_dummy_bpaddr): Update.
8510 * hppa-tdep.c (hppa_symbol_address): Update.
8511 * infcmd.c (until_next_command): Update.
8512 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8513 Update.
8514 * linespec.c (minsym_found, add_minsym): Update.
8515 * linux-nat.c (get_signo): Update.
8516 * linux-thread-db.c (inferior_has_bug): Update.
8517 * m32c-tdep.c (m32c_return_value)
8518 (m32c_m16c_address_to_pointer): Update.
8519 * m32r-tdep.c (m32r_frame_this_id): Update.
8520 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8521 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8522 * maint.c (maintenance_translate_address): Update.
8523 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8524 (frob_address): New function.
8525 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8526 frob_address. Rename parameter to "pc_in".
8527 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8528 addresses.
8529 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8530 Update.
8531 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8532 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8533 * objc-lang.c (find_objc_msgsend): Update.
8534 * objfiles.c (objfile_relocate1): Update.
8535 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8536 * p-valprint.c (pascal_val_print): Update.
8537 * parse.c (write_exp_msymbol): Update.
8538 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8539 (ppc_elfv2_skip_entrypoint): Update.
8540 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8541 * printcmd.c (build_address_symbolic, msym_info)
8542 (address_info): Update.
8543 * proc-service.c (ps_pglobal_lookup): Update.
8544 * psymtab.c (find_pc_sect_psymtab_closer)
8545 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8546 Change msymbol parameter to bound_minimal_symbol.
8547 * ravenscar-thread.c (get_running_thread_id): Update.
8548 * remote.c (remote_check_symbols): Update.
8549 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8550 address.
8551 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8552 * solib-dsbt.c (lm_base): Update.
8553 * solib-frv.c (lm_base, main_got): Update.
8554 * solib-irix.c (locate_base): Update.
8555 * solib-som.c (som_solib_create_inferior_hook)
8556 (link_map_start): Update.
8557 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8558 * solib-svr4.c (elf_locate_base, enable_break): Update.
8559 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8560 (flush_ea_cache): Update.
8561 * stabsread.c (define_symbol, scan_file_globals): Update.
8562 * stack.c (find_frame_funname): Update.
8563 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8564 (debug_qf_find_pc_sect_symtab): Update.
8565 * symfile.c (simple_read_overlay_table)
8566 (simple_overlay_update): Update.
8567 * symfile.h (struct quick_symbol_functions)
8568 <find_pc_sect_symtab>: Change type of msymbol to
8569 bound_minimal_symbol.
8570 * symmisc.c (dump_msymbols): Update.
8571 * symtab.c (find_pc_sect_symtab_via_partial)
8572 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8573 (search_symbols, print_msymbol_info): Update.
8574 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8575 (MSYMBOL_VALUE_ADDRESS): Redefine.
8576 (BMSYMBOL_VALUE_ADDRESS): New macro.
8577 * tracepoint.c (scope_info): Update.
8578 * tui/tui-disasm.c (tui_find_disassembly_address)
8579 (tui_get_begin_asm_address): Update.
8580 * valops.c (find_function_in_inferior): Update.
8581 * value.c (value_static_field, value_fn_field): Update.
8582
8583 2014-02-26 Tom Tromey <tromey@redhat.com>
8584
8585 * ada-lang.c (ada_update_initial_language): Update.
8586 (ada_main_name, ada_has_this_exception_support): Update.
8587 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8588 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8589 * arm-tdep.c (arm_skip_stub): Update.
8590 * auxv.c (ld_so_xfer_auxv): Update.
8591 * avr-tdep.c (avr_scan_prologue): Update.
8592 * ax-gdb.c (gen_var_ref): Update.
8593 * breakpoint.c (struct breakpoint_objfile_data)
8594 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8595 type to bound_minimal_symbol.
8596 (create_overlay_event_breakpoint)
8597 (create_longjmp_master_breakpoint)
8598 (create_std_terminate_master_breakpoint)
8599 (create_exception_master_breakpoint): Update.
8600 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8601 * c-exp.y (classify_name): Update.
8602 * coffread.c (coff_symfile_read): Update.
8603 * common/agent.c (agent_look_up_symbols): Update.
8604 * d-lang.c (d_main_name): Update.
8605 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8606 * dec-thread.c (enable_dec_thread): Update.
8607 * dwarf2loc.c (call_site_to_target_addr): Update.
8608 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8609 * eval.c (evaluate_subexp_standard): Update.
8610 * findvar.c (struct minsym_lookup_data) <result>: Change type
8611 to bound_minimal_symbol.
8612 <objfile>: Remove.
8613 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8614 * frame.c (inside_main_func): Update.
8615 * frv-tdep.c (frv_frame_this_id): Update.
8616 * gcore.c (call_target_sbrk): Update.
8617 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8618 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8619 Update.
8620 * go-lang.c (go_main_name): Update.
8621 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8622 (hppa_hpux_find_import_stub_for_addr): Update.
8623 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8624 Update. Change return type.
8625 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8626 type.
8627 * jit.c (jit_breakpoint_re_set_internal): Update.
8628 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8629 Update.
8630 * linux-nat.c (get_signo): Update.
8631 * linux-thread-db.c (inferior_has_bug): Update
8632 * m32c-tdep.c (m32c_return_value)
8633 (m32c_m16c_address_to_pointer): Update.
8634 * m32r-tdep.c (m32r_frame_this_id): Update.
8635 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8636 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8637 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8638 lookup_minimal_symbol. Change return type.
8639 (lookup_minimal_symbol): Remove.
8640 (lookup_bound_minimal_symbol): Update.
8641 (lookup_minimal_symbol_text): Change return type.
8642 (lookup_minimal_symbol_solib_trampoline): Change return type.
8643 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8644 (lookup_minimal_symbol_solib_trampoline): Change return type.
8645 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8646 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8647 (value_nsstring, find_imps): Update.
8648 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8649 * p-lang.c (pascal_main_name): Update.
8650 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8651 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8652 * proc-service.c (ps_pglobal_lookup): Update.
8653 * ravenscar-thread.c (get_running_thread_msymbol): Change
8654 return type.
8655 (has_ravenscar_runtime, get_running_thread_id): Update.
8656 * remote.c (remote_check_symbols): Update.
8657 * sol-thread.c (ps_pglobal_lookup): Update.
8658 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8659 * solib-dsbt.c (lm_base): Update.
8660 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8661 Update.
8662 * solib-irix.c (locate_base): Update.
8663 * solib-som.c (som_solib_create_inferior_hook)
8664 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8665 Update.
8666 * solib-spu.c (spu_enable_break): Update.
8667 * solib-svr4.c (elf_locate_base, enable_break): Update.
8668 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8669 (flush_ea_cache): Update.
8670 * stabsread.c (define_symbol): Update.
8671 * symfile.c (simple_read_overlay_table): Update.
8672 * symtab.c (find_pc_sect_line): Update.
8673 * tracepoint.c (scope_info): Update.
8674 * tui-disasm.c (tui_get_begin_asm_address): Update.
8675 * value.c (value_static_field): Update.
8676
8677 2014-02-26 Tom Tromey <tromey@redhat.com>
8678
8679 * minsyms.c (prim_record_minimal_symbol_full): Use
8680 SET_MSYMBOL_VALUE_ADDRESS.
8681 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8682 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8683 SET_MSYMBOL_VALUE_ADDRESS.
8684 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8685 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8686
8687 2014-02-26 Tom Tromey <tromey@redhat.com>
8688
8689 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8690 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8691 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8692 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8693 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8694 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8695 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8696 * ada-lang.c (ada_main_name): Update.
8697 (ada_lookup_simple_minsym): Update.
8698 (ada_make_symbol_completion_list): Update.
8699 (ada_add_standard_exceptions): Update.
8700 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8701 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8702 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8703 * arm-tdep.c (skip_prologue_function): Update.
8704 (arm_skip_stack_protector, arm_skip_stub): Update.
8705 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8706 (arm_wince_skip_main_prologue): Update.
8707 * auxv.c (ld_so_xfer_auxv): Update.
8708 * avr-tdep.c (avr_scan_prologue): Update.
8709 * ax-gdb.c (gen_var_ref): Update.
8710 * block.c (call_site_for_pc): Update.
8711 * blockframe.c (get_pc_function_start): Update.
8712 (find_pc_partial_function_gnu_ifunc): Update.
8713 * breakpoint.c (create_overlay_event_breakpoint): Update.
8714 (create_longjmp_master_breakpoint): Update.
8715 (create_std_terminate_master_breakpoint): Update.
8716 (create_exception_master_breakpoint): Update.
8717 (resolve_sal_pc): Update.
8718 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8719 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8720 Update.
8721 * c-valprint.c (c_val_print): Update.
8722 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8723 * coffread.c (coff_symfile_read): Update.
8724 * common/agent.c (agent_look_up_symbols): Update.
8725 * dbxread.c (find_stab_function_addr): Update.
8726 (end_psymtab): Update.
8727 * dwarf2loc.c (call_site_to_target_addr): Update.
8728 (func_verify_no_selftailcall): Update.
8729 (tailcall_dump): Update.
8730 (call_site_find_chain_1): Update.
8731 (dwarf_expr_reg_to_entry_parameter): Update.
8732 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8733 (elf_gnu_ifunc_resolve_by_got): Update.
8734 * f-valprint.c (info_common_command): Update.
8735 * findvar.c (read_var_value): Update.
8736 * frame.c (get_prev_frame_1): Update.
8737 (inside_main_func): Update.
8738 * frv-tdep.c (frv_skip_main_prologue): Update.
8739 (frv_frame_this_id): Update.
8740 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8741 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8742 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8743 (gnuv3_skip_trampoline): Update.
8744 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8745 (hppa64_hpux_in_solib_call_trampoline): Update.
8746 (hppa_hpux_skip_trampoline_code): Update.
8747 (hppa64_hpux_search_dummy_call_sequence): Update.
8748 (hppa_hpux_find_import_stub_for_addr): Update.
8749 (hppa_hpux_find_dummy_bpaddr): Update.
8750 * hppa-tdep.c (hppa_symbol_address)
8751 (hppa_lookup_stub_minimal_symbol): Update.
8752 * i386-tdep.c (i386_skip_main_prologue): Update.
8753 (i386_pe_skip_trampoline_code): Update.
8754 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8755 * infcall.c (get_function_name): Update.
8756 * infcmd.c (until_next_command): Update.
8757 * jit.c (jit_breakpoint_re_set_internal): Update.
8758 (jit_inferior_init): Update.
8759 * linespec.c (minsym_found): Update.
8760 (add_minsym): Update.
8761 * linux-fork.c (info_checkpoints_command): Update.
8762 * linux-nat.c (get_signo): Update.
8763 * linux-thread-db.c (inferior_has_bug): Update.
8764 * m32c-tdep.c (m32c_return_value): Update.
8765 (m32c_m16c_address_to_pointer): Update.
8766 (m32c_m16c_pointer_to_address): Update.
8767 * m32r-tdep.c (m32r_frame_this_id): Update.
8768 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8769 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8770 * maint.c (maintenance_translate_address): Update.
8771 * minsyms.c (add_minsym_to_hash_table): Update.
8772 (add_minsym_to_demangled_hash_table): Update.
8773 (msymbol_objfile): Update.
8774 (lookup_minimal_symbol): Update.
8775 (iterate_over_minimal_symbols): Update.
8776 (lookup_minimal_symbol_text): Update.
8777 (lookup_minimal_symbol_by_pc_name): Update.
8778 (lookup_minimal_symbol_solib_trampoline): Update.
8779 (lookup_minimal_symbol_by_pc_section_1): Update.
8780 (lookup_minimal_symbol_and_objfile): Update.
8781 (prim_record_minimal_symbol_full): Update.
8782 (compare_minimal_symbols): Update.
8783 (compact_minimal_symbols): Update.
8784 (build_minimal_symbol_hash_tables): Update.
8785 (install_minimal_symbols): Update.
8786 (terminate_minimal_symbol_table): Update.
8787 (find_solib_trampoline_target): Update.
8788 (minimal_symbol_upper_bound): Update.
8789 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8790 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8791 (mips_skip_pic_trampoline_code): Update.
8792 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8793 * objc-lang.c (selectors_info): Update.
8794 (classes_info): Update.
8795 (find_methods): Update.
8796 (find_imps): Update.
8797 (find_objc_msgsend): Update.
8798 * objfiles.c (objfile_relocate1): Update.
8799 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8800 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8801 * p-valprint.c (pascal_val_print): Update.
8802 * parse.c (write_exp_msymbol): Update.
8803 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8804 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8805 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8806 * printcmd.c (build_address_symbolic): Update.
8807 (sym_info): Update.
8808 (address_info): Update.
8809 * proc-service.c (ps_pglobal_lookup): Update.
8810 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8811 (find_pc_sect_psymtab): Update.
8812 * python/py-framefilter.c (py_print_frame): Update.
8813 * ravenscar-thread.c (get_running_thread_id): Update.
8814 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8815 Update.
8816 * remote.c (remote_check_symbols): Update.
8817 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8818 (rs6000_skip_trampoline_code): Update.
8819 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8820 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8821 * solib-dsbt.c (lm_base): Update.
8822 * solib-frv.c (lm_base): Update.
8823 (main_got): Update.
8824 * solib-irix.c (locate_base): Update.
8825 * solib-som.c (som_solib_create_inferior_hook): Update.
8826 (som_solib_desire_dynamic_linker_symbols): Update.
8827 (link_map_start): Update.
8828 * solib-spu.c (spu_enable_break): Update.
8829 (ocl_enable_break): Update.
8830 * solib-svr4.c (elf_locate_base): Update.
8831 (enable_break): Update.
8832 * spu-tdep.c (spu_get_overlay_table): Update.
8833 (spu_catch_start): Update.
8834 (flush_ea_cache): Update.
8835 * stabsread.c (define_symbol): Update.
8836 (scan_file_globals): Update.
8837 * stack.c (find_frame_funname): Update.
8838 (frame_info): Update.
8839 * symfile.c (simple_read_overlay_table): Update.
8840 (simple_overlay_update): Update.
8841 * symmisc.c (dump_msymbols): Update.
8842 * symtab.c (fixup_section): Update.
8843 (find_pc_sect_line): Update.
8844 (skip_prologue_sal): Update.
8845 (search_symbols): Update.
8846 (print_msymbol_info): Update.
8847 (rbreak_command): Update.
8848 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8849 (completion_list_objc_symbol): Update.
8850 (default_make_symbol_completion_list_break_on): Update.
8851 * tracepoint.c (scope_info): Update.
8852 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8853 (tui_get_begin_asm_address): Update.
8854 * valops.c (find_function_in_inferior): Update.
8855 * value.c (value_static_field): Update.
8856 (value_fn_field): Update.
8857
8858 2014-02-26 Tom Tromey <tromey@redhat.com>
8859
8860 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8861 bound minimal symbols. Move code that knows about minsym
8862 table layout...
8863 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8864 function.
8865 * minsyms.h (minimal_symbol_upper_bound): Declare.
8866 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8867 minimal_symbol_upper_bound.
8868
8869 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8870
8871 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8872 Use the type's name if its basic type does not have a tag.
8873
8874 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8875
8876 * dwarf2read.c (read_subrange_type): Add comment.
8877
8878 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8879
8880 * dwarf2read.c (update_enumeration_type_from_children): New
8881 function, mostly extracted from process_structure_scope.
8882 (read_enumeration_type): Call update_enumeration_type_from_children.
8883 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8884 and flag_flag_enum fields.
8885
8886 2014-02-26 Pedro Alves <palves@redhat.com>
8887
8888 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8889 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8890 to_xfer_partial method.
8891
8892 2014-02-26 Pedro Alves <palves@redhat.com>
8893
8894 * target.c (complete_target_initialization): Don't install
8895 default_xfer_partial as to_xfer_partial hook.
8896 (nomemory): Delete.
8897 (update_current_target): Don't INHERIT nor de_fault
8898 deprecated_xfer_memory. Delete de_fault macro.
8899 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8900 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8901 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8902 field.
8903
8904 2014-02-26 Pedro Alves <palves@redhat.com>
8905
8906 * go32-nat.c (my_write_child): New function.
8907 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8908 (go32_xfer_partial): New function.
8909 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8910 Instead install a to_xfer_partial hook.
8911
8912 2014-02-26 Pedro Alves <palves@redhat.com>
8913
8914 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8915 to_xfer_partial helper. Rewrite.
8916 (procfs_xfer_partial): New function.
8917 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8918 Install a to_xfer_partial hook.
8919
8920 2014-02-26 Pedro Alves <palves@redhat.com>
8921
8922 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8923 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8924 (m32r_xfer_partial): New function.
8925 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8926 Install a to_xfer_partial hook.
8927
8928 2014-02-26 Pedro Alves <palves@redhat.com>
8929
8930 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8931 helper.
8932 (mips_xfer_partial): New function.
8933 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8934 hook. Install a to_xfer_partial hook.
8935
8936 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8937
8938 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8939 * gdbtypes.c (create_array_type_with_stride): New function,
8940 renaming create_array_type, but with an added parameter
8941 called "bit_stride".
8942 (create_array_type): Re-implement using
8943 create_array_type_with_stride.
8944 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8945 and DW_AT_bit_stride attributes.
8946
8947 2014-02-26 Pedro Alves <palves@redhat.com>
8948
8949 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8950 task-specific breakpoints.
8951
8952 2014-02-25 Pedro Alves <palves@redhat.com>
8953
8954 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8955 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8956
8957 2014-02-25 Stan Shebs <stan@codesourcery.com>
8958
8959 * defs.h: Annotate comments for Doxygen.
8960
8961 2014-02-25 Tom Tromey <tromey@redhat.com>
8962
8963 * target.h (target_ignore): Don't declare.
8964 * target.c (target_ignore): Remove.
8965
8966 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8967
8968 PR gdb/16626
8969 * auto-load.c (auto_load_objfile_script_1): Change filename to
8970 debugfile.
8971
8972 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8973
8974 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8975 documentation. Adjust prototype to match the target_ops
8976 to_xfer_partial method. Adjust implementation accordingly.
8977
8978 2014-02-25 Hui Zhu <hui@codesourcery.com>
8979
8980 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8981 to_traceframe_info.
8982
8983 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8984
8985 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8986 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8987 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8988 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8989 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8990 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8991 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8992 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8993 New constants.
8994 (rl78_register_type): Use a data pointer type for SP and
8995 new pseudo registers mentioned above. Use a 16 bit integer
8996 type for all other register pairs.
8997 (rl78_register_name, rl78_g10_register_name): Update for
8998 new pseudo registers.
8999 (rl78_pseudo_register_read): Likewise.
9000 (rl78_pseudo_register_write): Likewise.
9001 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9002 to the newly added pseudo registers.
9003
9004 2014-02-24 Doug Evans <dje@google.com>
9005
9006 * value.c (record_latest_value): Fix comment.
9007 * printcmd.c (print_command_1): Remove code to handle -1 return from
9008 record_latest_value.
9009
9010 2014-02-24 Pedro Alves <palves@redhat.com>
9011
9012 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9013 deprecated_xfer_memory hook.
9014 (procfs_xfer_partial): Call procfs_xfer_memory instead
9015 of the deprecated_xfer_memory target hook.
9016 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9017 helper.
9018
9019 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9020
9021 * windows-nat.c (windows_xfer_shared_libraries): Return
9022 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9023 requested object is TARGET_OBJECT_LIBRARIES.
9024
9025 2014-02-24 Yao Qi <yao@codesourcery.com>
9026
9027 * target.h (enum target_xfer_status)
9028 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9029 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9030 explicitly. New.
9031 * corefile.c (memory_error_message): User updated.
9032 * exec.c (section_table_read_available_memory): Likewise.
9033 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9034 * target.c (target_xfer_status_to_string): Likewise.
9035 (raw_memory_xfer_partial): Likewise.
9036 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9037 * valops.c (read_value_memory): Likewise.
9038 * exec.h: Update comments.
9039
9040 2014-02-24 Yao Qi <yao@codesourcery.com>
9041
9042 * target.c (target_xfer_status_to_string): Rename argument err
9043 to status.
9044 * target.h (target_xfer_status_to_string): Update declaration.
9045 Replace target_xfer_error_to_string with
9046 target_xfer_status_to_string in comment.
9047
9048 2014-02-24 Yao Qi <yao@codesourcery.com>
9049
9050 * mips-linux-nat.c (super_close): Update its type.
9051 (mips_linux_close): Pass 'self' to super_close.
9052
9053 2014-02-24 Yao Qi <yao@codesourcery.com>
9054
9055 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9056 * corefile.c (read_memory): Adjusted.
9057 * target.c (target_write_with_progress): Adjusted.
9058
9059 2014-02-23 Yao Qi <yao@codesourcery.com>
9060
9061 Revert two patches:
9062
9063 2013-10-25 Yao Qi <yao@codesourcery.com>
9064
9065 * remote.c (remote_traceframe_info): Return early if
9066 traceframe is not selected.
9067
9068 2013-07-19 Yao Qi <yao@codesourcery.com>
9069
9070 * target.c (update_current_target): Change the default action
9071 of 'to_traceframe_info' from tcomplain to return_zero.
9072 * target.h (struct target_ops) <to_traceframe_info>: Add more
9073 comments.
9074
9075 2014-02-23 Yao Qi <yao@codesourcery.com>
9076
9077 * valops.c (read_value_memory): Rewrite it. Call
9078 target_xfer_partial in a loop.
9079 * exec.h (section_table_available_memory): Remove declaration.
9080 Move comments to ...
9081 * exec.c (section_table_available_memory): ... here. Make it
9082 static.
9083
9084 2014-02-23 Yao Qi <yao@codesourcery.com>
9085
9086 * exec.c (section_table_read_available_memory): New function.
9087 * exec.h (section_table_read_available_memory): Declare.
9088 * ctf.c (ctf_xfer_partial): Call
9089 section_table_read_available_memory.
9090 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9091
9092 2014-02-23 Yao Qi <yao@codesourcery.com>
9093
9094 * ctf.c (ctf_xfer_partial): Move code to ...
9095 * exec.c (exec_read_partial_read_only): ... it. New function.
9096 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9097 * tracefile.c: Include "exec.h".
9098 * exec.h (exec_read_partial_read_only): Declare.
9099
9100 2014-02-23 Yao Qi <yao@codesourcery.com>
9101
9102 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9103 (tfile_has_memory): Remove.
9104 (init_tfile_ops): Don't set fields to_has_all_memory and
9105 to_has_memory of tfile_ops.
9106 * tracefile.c (tracefile_has_all_memory): New function.
9107 (tracefile_has_memory): New function.
9108 (init_tracefile_ops): Initialize fields to_has_all_memory and
9109 to_has_memory of 'ops'.
9110
9111 2014-02-23 Yao Qi <yao@codesourcery.com>
9112
9113 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9114 (ctf_thread_alive, ctf_get_trace_status): Remove.
9115 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9116 init_tracefile_ops.
9117 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9118 (tfile_has_stack, tfile_has_registers): Remove.
9119 (tfile_thread_alive): Remove.
9120 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9121 init_tracefile_ops.
9122 * tracefile.c (tracefile_has_stack): New function.
9123 (tracefile_has_registers): New function.
9124 (tracefile_thread_alive): New function.
9125 (tracefile_get_trace_status): New function.
9126 (init_tracefile_ops): New function.
9127 * tracefile.h (init_tracefile_ops): Declare.
9128
9129 2014-02-23 Yao Qi <yao@codesourcery.com>
9130
9131 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9132 (O_LARGEFILE): Likewise.
9133 (tfile_ops): Likewise.
9134 (TRACE_HEADER_SIZE): Likewise.
9135 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9136 (cur_data_size): Likewise.
9137 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9138 (tfile_close, tfile_files_info): Likewise.
9139 (tfile_get_trace_status): Likewise.
9140 (tfile_get_tracepoint_status): Likewise.
9141 (tfile_get_traceframe_address): Likewise.
9142 (tfile_trace_find, match_blocktype): Likewise.
9143 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9144 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9145 (tfile_get_trace_state_variable_value): Likewise.
9146 (tfile_has_all_memory, tfile_has_memory): Likewise.
9147 (tfile_has_stack, tfile_has_registers): Likewise.
9148 (tfile_thread_alive, build_traceframe_info): Likewise.
9149 (tfile_traceframe_info, init_tfile_ops): Likewise.
9150 (_initialize_tracepoint): Don't call init_tfile_ops
9151 and add_target_with_completer.
9152 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9153 exec.h, completer.h and filenames.h.
9154 (_initialize_tracefile_tfile): New function.
9155
9156 2014-02-23 Yao Qi <yao@codesourcery.com>
9157
9158 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9159 tracefile-tfile.o.
9160 (HFILES_NO_SRCDIR): Add tracefile.h.
9161 * ctf.c: Include "tracefile.h".
9162 * tracefile.h: New file.
9163 * tracefile.c: New file
9164 * tracefile-tfile.c: New file.
9165 * tracepoint.c: Include "tracefile.h".
9166 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9167 (stop_reason_names): Add const.
9168 (trace_file_writer_xfree): Move it to tracefile.c.
9169 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9170 (trace_save_ctf): Likewise.
9171 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9172 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9173 (tfile_write_header, tfile_write_regblock_type): Likewise.
9174 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9175 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9176 (tfile_write_raw_data, tfile_end): Likewise.
9177 (tfile_trace_file_writer_new): Likewise.
9178 (free_uploaded_tp): Make it extern.
9179 (free_uploaded_tsv): Make it extern.
9180 (_initialize_tracepoint): Move code to register command 'tsave'
9181 to tracefile.c.
9182 * tracepoint.h (stop_reason_names): Declare.
9183 (struct trace_frame_write_ops): Move it to tracefile.h.
9184 (struct trace_file_write_ops): Likewise.
9185 (struct trace_file_writer): Likewise.
9186 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9187
9188 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9189
9190 PR gdb/16594
9191 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9192 process name.
9193 (get_cores_used_by_process): New parameter num_cores, use it.
9194 (linux_xfer_osdata_processes): Pass num_cores to it.
9195 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9196 process name.
9197
9198 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9199
9200 * target.c (memory_xfer_partial): Fix length arg in call to
9201 breakpoint_xfer_memory.
9202
9203 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9204
9205 PR tdep/16397
9206 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9207 number comes after the + or - signs. Adjust length of register
9208 name to be extracted.
9209
9210 2014-02-20 Tom Tromey <tromey@redhat.com>
9211
9212 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9213 (ada_varobj_ops): Mark "extern".
9214
9215 2014-02-20 Tom Tromey <tromey@redhat.com>
9216
9217 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9218
9219 2014-02-20 Doug Evans <xdje42@gmail.com>
9220
9221 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9222 All callers updated.
9223 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9224 All callers updated.
9225 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9226 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9227
9228 2014-02-20 lin zuojian <manjian2006@gmail.com>
9229 Joel Brobecker <brobecker@adacore.com>
9230 Doug Evans <xdje42@gmail.com>
9231
9232 PR symtab/16581
9233 * dwarf2read.c (struct die_info): New member in_process.
9234 (reset_die_in_process): New function.
9235 (process_die): Set it at the start, reset when returning.
9236 (inherit_abstract_dies): Only call process_die if origin_child_die
9237 not already being processed.
9238
9239 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9240
9241 * windows-nat.c (handle_unload_dll): Add function documentation.
9242 (do_initial_windows_stuff): Add comment explaining why we wait
9243 until after inferior initialization has finished before
9244 processing all DLLs.
9245
9246 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9247
9248 * windows-nat.c (get_module_name): Delete.
9249 (windows_get_exec_module_filename): New function, mostly
9250 inspired from get_module_name.
9251 (windows_pid_to_exec_file): Replace call to get_module_name
9252 by call to windows_get_exec_module_filename.
9253
9254 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9255
9256 * windows-nat.c (handle_load_dll): Rewrite this function's
9257 introductory comment. Remove code using get_module_name
9258 to get the DLL's name.
9259
9260 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9261
9262 * windows-nat.c (get_windows_debug_event): Ignore
9263 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9264 if windows_initialization_done == 0.
9265 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9266 Adjust implementation to always load all DLLs.
9267 (do_initial_windows_stuff): Replace call to
9268 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9269
9270 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9271
9272 * windows-nat.c (_initialize_windows_nat): Deprecate the
9273 "dll-symbols" command. Turn the "add-shared-symbol-files"
9274 and "assf" aliases into commands, and deprecate them as well.
9275 * NEWS: Add entry explaining that "dll-symbols" and its two
9276 aliases are now deprecated.
9277
9278 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9279
9280 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9281 new-line in debug string. Remove trailing spaces.
9282
9283 2014-02-19 Stan Shebs <stan@codesourcery.com>
9284
9285 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9286
9287 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9288
9289 * NEWS: Add entry for the new feature
9290 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9291 and class values.
9292
9293 2014-02-19 Stan Shebs <stan@codesourcery.com>
9294
9295 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9296
9297 2014-02-19 Pedro Alves <palves@redhat.com>
9298
9299 * common/ptid.h (struct ptid): Mention that process_stratum
9300 targets should prefer ptid.lwp.
9301
9302 2014-02-19 Pedro Alves <palves@redhat.com>
9303
9304 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9305 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9306 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9307 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9308 store remote thread ids rather than ptid.tid.
9309 (_initialize_remote): Adjust.
9310
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * target.c (target_get_unwinder): Rewrite.
9314 (target_get_tailcall_unwinder): Rewrite.
9315 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9316 (record_btrace_to_get_tailcall_unwinder): New function.
9317 (init_record_btrace_ops): Update.
9318 * target.h (struct target_ops) <to_get_unwinder,
9319 to_get_tailcall_unwinder>: Now function pointers. Use
9320 TARGET_DEFAULT_RETURN.
9321
9322 2014-02-19 Tom Tromey <tromey@redhat.com>
9323
9324 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9325 argument.
9326 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9327
9328 2014-02-19 Tom Tromey <tromey@redhat.com>
9329
9330 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9331 directly.
9332 * target-delegates.c: Rebuild.
9333 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9334 TARGET_DEFAULT_FUNC.
9335 * target.c (default_target_decr_pc_after_break): Rename from
9336 forward_target_decr_pc_after_break. Simplify.
9337 (target_decr_pc_after_break): Rely on delegation.
9338
9339 2014-02-19 Tom Tromey <tromey@redhat.com>
9340
9341 * target.c (update_current_target): Do not INHERIT to_doc or
9342 to_magic. Do not de_fault to_open or to_close.
9343
9344 2014-02-19 Tom Tromey <tromey@redhat.com>
9345
9346 * gcore.h (objfile_find_memory_regions): Declare.
9347 * gcore.c (objfile_find_memory_regions): No longer static. Add
9348 "self" argument.
9349 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9350 * exec.c: Include gcore.h.
9351 (exec_set_find_memory_regions): Remove.
9352 (exec_find_memory_regions): Remove.
9353 (exec_do_find_memory_regions): Remove.
9354 (init_exec_ops): Update.
9355 * defs.h (exec_set_find_memory_regions): Remove.
9356
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * target-delegates.c: Rebuild.
9360 * target.h (struct target_ops) <to_extra_thread_info,
9361 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9362 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9363 not 0, in TARGET_DEFAULT_RETURN.
9364
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9366
9367 * target.c (complete_target_initialization): Remove casts. Use
9368 return_zero_has_execution.
9369 (return_zero): Add "ignore" argument.
9370 (return_zero_has_execution): New function.
9371 (init_dummy_target): Remove casts. Use
9372 return_zero_has_execution.
9373
9374 2014-02-19 Tom Tromey <tromey@redhat.com>
9375
9376 * target.c (update_current_target): Update comments. Do not
9377 INHERIT to_stratum.
9378
9379 2014-02-19 Tom Tromey <tromey@redhat.com>
9380
9381 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9382 needed.
9383 * corelow.c (core_read_description): Delegate when needed.
9384 * remote.c (remote_read_description): Delegate when needed.
9385 * target-delegates.c: Rebuild.
9386 * target.c (target_read_description): Rewrite.
9387 * target.h (struct target_ops) <to_read_description>: Update
9388 comment. Use TARGET_DEFAULT_RETURN.
9389
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * target-delegates.c: Rebuild.
9393 * target.c (update_current_target): Don't inherit or default
9394 to_can_run.
9395 (find_default_run_target): Check against delegate_can_run.
9396 * target.h (struct target_ops) <to_can_run>: Use
9397 TARGET_DEFAULT_RETURN.
9398
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9400
9401 * target-delegates.c: Rebuild.
9402 * target.c (target_disconnect): Unconditionally delegate.
9403 * target.h (struct target_ops) <to_disconnect>: Use
9404 TARGET_DEFAULT_NORETURN.
9405
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9407
9408 * record.c (record_stop): Unconditionally delegate.
9409 * target-delegates.c: Rebuild.
9410 * target.c (target_stop_recording): Unconditionally delegate.
9411 * target.h (struct target_ops) <to_stop_recording>: Use
9412 TARGET_DEFAULT_IGNORE.
9413
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9415
9416 * target-delegates.c: Rebuild.
9417 * target.c (target_enable_btrace): Unconditionally delegate.
9418 * target.h (struct target_ops) <to_enable_btrace>: Use
9419 TARGET_DEFAULT_NORETURN.
9420
9421 2014-02-19 Tom Tromey <tromey@redhat.com>
9422
9423 * target-delegates.c: Rebuild.
9424 * target.c (target_read_btrace): Unconditionally delegate.
9425 * target.h (struct target_ops) <to_read_btrace>: Use
9426 TARGET_DEFAULT_NORETURN.
9427
9428 2014-02-19 Tom Tromey <tromey@redhat.com>
9429
9430 * target-delegates.c: Rebuild.
9431 * target.c (target_teardown_btrace): Unconditionally delegate.
9432 * target.h (struct target_ops) <to_teardown_btrace>: Use
9433 TARGET_DEFAULT_NORETURN.
9434
9435 2014-02-19 Tom Tromey <tromey@redhat.com>
9436
9437 * target-delegates.c: Rebuild.
9438 * target.c (target_disable_btrace): Unconditionally delegate.
9439 * target.h (struct target_ops) <to_disable_btrace>: Use
9440 TARGET_DEFAULT_NORETURN.
9441
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9443
9444 * target-delegates.c: Rebuild.
9445 * target.c (default_search_memory): New function.
9446 (simple_search_memory): Update comment.
9447 (target_search_memory): Unconditionally delegate.
9448 * target.h (struct target_ops) <to_search_memory>: Use
9449 TARGET_DEFAULT_FUNC.
9450
9451 2014-02-19 Tom Tromey <tromey@redhat.com>
9452
9453 * auxv.c (default_auxv_parse): No longer static.
9454 (target_auxv_parse): Unconditionally delegate.
9455 * auxv.h (default_auxv_parse): Declare.
9456 * target-delegates.c: Rebuild.
9457 * target.c: Include auxv.h.
9458 * target.h (struct target_ops) <to_auxv_parse>: Use
9459 TARGET_DEFAULT_FUNC.
9460
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9462
9463 * target-delegates.c: Rebuild.
9464 * target.c (target_memory_map): Unconditionally delegate.
9465 * target.h (struct target_ops) <to_memory_map>: Use
9466 TARGET_DEFAULT_RETURN.
9467
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9469
9470 * target-delegates.c: Rebuild.
9471 * target.c (target_thread_alive): Unconditionally delegate.
9472 * target.h (struct target_ops) <to_thread_alive>: Use
9473 TARGET_DEFAULT_RETURN.
9474
9475 2014-02-19 Tom Tromey <tromey@redhat.com>
9476
9477 * target-delegates.c: Rebuild.
9478 * target.c (target_save_record): Unconditionally delegate.
9479 * target.h (struct target_ops) <to_save_record>: Use
9480 TARGET_DEFAULT_NORETURN.
9481
9482 2014-02-19 Tom Tromey <tromey@redhat.com>
9483
9484 * target-delegates.c: Rebuild.
9485 * target.c (target_delete_record): Unconditionally delegate.
9486 * target.h (struct target_ops) <to_delete_record>: Use
9487 TARGET_DEFAULT_NORETURN.
9488
9489 2014-02-19 Tom Tromey <tromey@redhat.com>
9490
9491 * target-delegates.c: Rebuild.
9492 * target.c (target_record_is_replaying): Unconditionally
9493 delegate.
9494 * target.h (struct target_ops) <to_record_is_replaying>: Use
9495 TARGET_DEFAULT_RETURN.
9496
9497 2014-02-19 Tom Tromey <tromey@redhat.com>
9498
9499 * target-delegates.c: Rebuild.
9500 * target.c (target_goto_record_begin): Unconditionally delegate.
9501 * target.h (struct target_ops) <to_goto_record_begin>: Use
9502 TARGET_DEFAULT_NORETURN.
9503
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9505
9506 * target-delegates.c: Rebuild.
9507 * target.c (target_goto_record_end): Unconditionally delegate.
9508 * target.h (struct target_ops) <to_goto_record_end>: Use
9509 TARGET_DEFAULT_NORETURN.
9510
9511 2014-02-19 Tom Tromey <tromey@redhat.com>
9512
9513 * target-delegates.c: Rebuild.
9514 * target.c (target_goto_record): Unconditionally delegate.
9515 * target.h (struct target_ops) <to_goto_record>: Use
9516 TARGET_DEFAULT_NORETURN.
9517
9518 2014-02-19 Tom Tromey <tromey@redhat.com>
9519
9520 * target-delegates.c: Rebuild.
9521 * target.c (target_insn_history): Unconditionally delegate.
9522 * target.h (struct target_ops) <to_insn_history>: Use
9523 TARGET_DEFAULT_NORETURN.
9524
9525 2014-02-19 Tom Tromey <tromey@redhat.com>
9526
9527 * target-delegates.c: Rebuild.
9528 * target.c (target_insn_history_from): Unconditionally delegate.
9529 * target.h (struct target_ops) <to_insn_history_from>: Use
9530 TARGET_DEFAULT_NORETURN.
9531
9532 2014-02-19 Tom Tromey <tromey@redhat.com>
9533
9534 * target-delegates.c: Rebuild.
9535 * target.c (target_insn_history_range): Unconditionally delegate.
9536 * target.h (struct target_ops) <to_insn_history_range>: Use
9537 TARGET_DEFAULT_NORETURN.
9538
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9540
9541 * target-delegates.c: Rebuild.
9542 * target.c (target_call_history): Unconditionally delegate.
9543 * target.h (struct target_ops) <to_call_history>: Use
9544 TARGET_DEFAULT_NORETURN.
9545
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9547
9548 * target-delegates.c: Rebuild.
9549 * target.c (target_call_history_from): Unconditionally delegate.
9550 * target.h (struct target_ops) <to_call_history_from>: Use
9551 TARGET_DEFAULT_NORETURN.
9552
9553 2014-02-19 Tom Tromey <tromey@redhat.com>
9554
9555 * target-delegates.c: Rebuild.
9556 * target.c (target_call_history_range): Unconditionally delegate.
9557 * target.h (struct target_ops) <to_call_history_range>: Use
9558 TARGET_DEFAULT_NORETURN.
9559
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target-delegates.c: Rebuild.
9563 * target.c (target_verify_memory): Unconditionally delegate.
9564 * target.h (struct target_ops) <to_verify_memory>: Use
9565 TARGET_DEFAULT_NORETURN.
9566
9567 2014-02-19 Tom Tromey <tromey@redhat.com>
9568
9569 * target-delegates.c: Rebuild.
9570 * target.c (target_core_of_thread): Unconditionally delegate.
9571 * target.h (struct target_ops) <to_core_of_thread>: Use
9572 TARGET_DEFAULT_RETURN.
9573
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9575
9576 * target-delegates.c: Rebuild.
9577 * target.c (target_flash_done): Unconditionally delegate.
9578 * target.h (struct target_ops) <to_flash_done>: Use
9579 TARGET_DEFAULT_NORETURN.
9580
9581 2014-02-19 Tom Tromey <tromey@redhat.com>
9582
9583 * target-delegates.c: Rebuild.
9584 * target.c (target_flash_erase): Unconditionally delegate.
9585 * target.h (struct target_ops) <to_flash_erase>: Use
9586 TARGET_DEFAULT_NORETURN.
9587
9588 2014-02-19 Tom Tromey <tromey@redhat.com>
9589
9590 * target-delegates.c: Rebuild.
9591 * target.c (target_get_section_table): Unconditionally delegate.
9592 * target.h (struct target_ops) <to_get_section_table>: Use
9593 TARGET_DEFAULT_RETURN.
9594
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9596
9597 * target-delegates.c: Rebuild.
9598 * target.c (target_pid_to_str): Unconditionally delegate.
9599 (init_dummy_target): Don't initialize to_pid_to_str.
9600 (default_pid_to_str): Rename from dummy_pid_to_str.
9601 * target.h (struct target_ops) <to_pid_to_str>: Use
9602 TARGET_DEFAULT_FUNC.
9603
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9605
9606 * target-delegates.c: Rebuild.
9607 * target.c (target_find_new_threads): Unconditionally delegate.
9608 * target.h (struct target_ops) <to_find_new_threads>: Use
9609 TARGET_DEFAULT_RETURN.
9610
9611 2014-02-19 Tom Tromey <tromey@redhat.com>
9612
9613 * target-delegates.c: Rebuild.
9614 * target.c (target_program_signals): Unconditionally delegate.
9615 * target.h (struct target_ops) <to_program_signals>: Use
9616 TARGET_DEFAULT_IGNORE.
9617
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9619
9620 * target-delegates.c: Rebuild.
9621 * target.c (target_pass_signals): Unconditionally delegate.
9622 * target.h (struct target_ops) <to_pass_signals>: Use
9623 TARGET_DEFAULT_IGNORE.
9624
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9626
9627 * target-delegates.c: Rebuild.
9628 * target.c (default_mourn_inferior): New function.
9629 (target_mourn_inferior): Unconditionally delegate.
9630 * target.h (struct target_ops) <to_mourn_inferior>: Use
9631 TARGET_DEFAULT_FUNC.
9632
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9634
9635 * target-delegates.c: Rebuild.
9636 * target.c (default_follow_fork): New function.
9637 (target_follow_fork): Unconditionally delegate.
9638 * target.h (struct target_ops) <to_follow_fork>: Use
9639 TARGET_DEFAULT_FUNC.
9640
9641 2014-02-19 Tom Tromey <tromey@redhat.com>
9642
9643 * target-delegates.c: Rebuild.
9644 * target.c (target_kill): Unconditionally delegate.
9645 * target.h (struct target_ops) <to_kill>: Use
9646 TARGET_DEFAULT_NORETURN.
9647
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * target-delegates.c: Rebuild.
9651 * target.c (target_masked_watch_num_registers): Unconditionally
9652 delegate.
9653 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9654 Use TARGET_DEFAULT_RETURN.
9655
9656 2014-02-19 Tom Tromey <tromey@redhat.com>
9657
9658 * target-delegates.c: Rebuild.
9659 * target.c (target_remove_mask_watchpoint): Unconditionally
9660 delegate.
9661 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9662 TARGET_DEFAULT_RETURN.
9663
9664 2014-02-19 Tom Tromey <tromey@redhat.com>
9665
9666 * target-delegates.c: Rebuild.
9667 * target.c (target_insert_mask_watchpoint): Unconditionally
9668 delegate.
9669 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9670 TARGET_DEFAULT_RETURN.
9671
9672 2014-02-19 Tom Tromey <tromey@redhat.com>
9673
9674 * target-delegates.c: Rebuild.
9675 * target.c (target_ranged_break_num_registers): Unconditionally
9676 delegate.
9677 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9678 Use TARGET_DEFAULT_RETURN.
9679
9680 2014-02-19 Tom Tromey <tromey@redhat.com>
9681
9682 * target-delegates.c: Rebuild.
9683 * target.c (target_fetch_registers): Unconditionally delegate.
9684 * target.h (struct target_ops) <to_fetch_registers>: Use
9685 TARGET_DEFAULT_NORETURN.
9686
9687 2014-02-19 Tom Tromey <tromey@redhat.com>
9688
9689 * target-delegates.c: Rebuild.
9690 * target.c (update_current_target): Don't inherit or default
9691 to_stop.
9692 * target.h (struct target_ops) <to_stop>: Use
9693 TARGET_DEFAULT_IGNORE.
9694
9695 2014-02-19 Tom Tromey <tromey@redhat.com>
9696
9697 * target-delegates.c: Rebuild.
9698 * target.c (update_current_target): Don't inherit or default
9699 to_can_run_breakpoint_commands.
9700 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9701 Use TARGET_DEFAULT_RETURN.
9702
9703 2014-02-19 Tom Tromey <tromey@redhat.com>
9704
9705 * target-delegates.c: Rebuild.
9706 * target.c (update_current_target): Don't inherit or default
9707 to_supports_evaluation_of_breakpoint_conditions.
9708 * target.h (struct target_ops)
9709 <to_supports_evaluation_of_breakpoint_conditions>: Use
9710 TARGET_DEFAULT_RETURN.
9711
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9713
9714 * target-delegates.c: Rebuild.
9715 * target.c (update_current_target): Don't inherit or default
9716 to_augmented_libraries_svr4_read.
9717 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9718 Use TARGET_DEFAULT_RETURN.
9719
9720 2014-02-19 Tom Tromey <tromey@redhat.com>
9721
9722 * target-delegates.c: Rebuild.
9723 * target.c (update_current_target): Don't inherit or default
9724 to_can_use_agent.
9725 * target.h (struct target_ops) <to_can_use_agent>: Use
9726 TARGET_DEFAULT_RETURN.
9727
9728 2014-02-19 Tom Tromey <tromey@redhat.com>
9729
9730 * target-delegates.c: Rebuild.
9731 * target.c (update_current_target): Don't inherit or default
9732 to_use_agent.
9733 * target.h (struct target_ops) <to_use_agent>: Use
9734 TARGET_DEFAULT_NORETURN.
9735
9736 2014-02-19 Tom Tromey <tromey@redhat.com>
9737
9738 * target-delegates.c: Rebuild.
9739 * target.c (update_current_target): Don't inherit or default
9740 to_traceframe_info.
9741 (return_null): Remove.
9742 * target.h (struct target_ops) <to_traceframe_info>: Use
9743 TARGET_DEFAULT_RETURN.
9744
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9746
9747 * target-delegates.c: Rebuild.
9748 * target.c (update_current_target): Don't inherit or default
9749 to_static_tracepoint_markers_by_strid.
9750 * target.h (struct target_ops)
9751 <to_static_tracepoint_markers_by_strid>: Use
9752 TARGET_DEFAULT_NORETURN.
9753
9754 2014-02-19 Tom Tromey <tromey@redhat.com>
9755
9756 * target-delegates.c: Rebuild.
9757 * target.c (update_current_target): Don't inherit or default
9758 to_static_tracepoint_marker_at.
9759 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9760 Use TARGET_DEFAULT_RETURN.
9761
9762 2014-02-19 Tom Tromey <tromey@redhat.com>
9763
9764 * target-delegates.c: Rebuild.
9765 * target.c (update_current_target): Don't inherit or default
9766 to_set_permissions.
9767 * target.h (struct target_ops) <to_set_permissions>: Use
9768 TARGET_DEFAULT_IGNORE.
9769
9770 2014-02-19 Tom Tromey <tromey@redhat.com>
9771
9772 * target-delegates.c: Rebuild.
9773 * target.c (update_current_target): Don't inherit or default
9774 to_get_tib_address.
9775 * target.h (struct target_ops) <to_get_tib_address>: Use
9776 TARGET_DEFAULT_NORETURN.
9777
9778 2014-02-19 Tom Tromey <tromey@redhat.com>
9779
9780 * target-delegates.c: Rebuild.
9781 * target.c (update_current_target): Don't inherit or default
9782 to_set_trace_notes.
9783 * target.h (struct target_ops) <to_set_trace_notes>: Use
9784 TARGET_DEFAULT_RETURN.
9785
9786 2014-02-19 Tom Tromey <tromey@redhat.com>
9787
9788 * target-delegates.c: Rebuild.
9789 * target.c (update_current_target): Don't initialize
9790 to_set_trace_buffer_size.
9791 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9792 TARGET_DEFAULT_IGNORE.
9793
9794 2014-02-19 Tom Tromey <tromey@redhat.com>
9795
9796 * target-delegates.c: Rebuild.
9797 * target.c (update_current_target): Don't inherit or default
9798 to_set_circular_trace_buffer.
9799 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9800 TARGET_DEFAULT_IGNORE.
9801
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9803
9804 * target-delegates.c: Rebuild.
9805 * target.c (update_current_target): Don't inherit or default
9806 to_set_disconnected_tracing.
9807 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9808 TARGET_DEFAULT_IGNORE.
9809
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9811
9812 * target-delegates.c: Rebuild.
9813 * target.c (update_current_target): Don't inherit or default
9814 to_get_min_fast_tracepoint_insn_len.
9815 (return_minus_one): Remove.
9816 * target.h (struct target_ops)
9817 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9818
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9820
9821 * target-delegates.c: Rebuild.
9822 * target.c (update_current_target): Don't inherit or default
9823 to_get_raw_trace_data.
9824 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9825 TARGET_DEFAULT_NORETURN.
9826
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9828
9829 * target-delegates.c: Rebuild.
9830 * target.c (update_current_target): Don't inherit or default
9831 to_upload_trace_state_variables.
9832 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9833 Use TARGET_DEFAULT_RETURN.
9834
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9836
9837 * target-delegates.c: Rebuild.
9838 * target.c (update_current_target): Don't inherit or default
9839 to_upload_tracepoints.
9840 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9841 TARGET_DEFAULT_RETURN.
9842
9843 2014-02-19 Tom Tromey <tromey@redhat.com>
9844
9845 * target-delegates.c: Rebuild.
9846 * target.c (update_current_target): Don't inherit or default
9847 to_save_trace_data.
9848 * target.h (struct target_ops) <to_save_trace_data>: Use
9849 TARGET_DEFAULT_NORETURN.
9850
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * target-delegates.c: Rebuild.
9854 * target.c (update_current_target): Don't inherit or default
9855 to_get_trace_state_variable_value.
9856 * target.h (struct target_ops)
9857 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9858
9859 2014-02-19 Tom Tromey <tromey@redhat.com>
9860
9861 * target-delegates.c: Rebuild.
9862 * target.c (update_current_target): Don't inherit or default
9863 to_trace_find.
9864 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9865
9866 2014-02-19 Tom Tromey <tromey@redhat.com>
9867
9868 * target-delegates.c: Rebuild.
9869 * target.c (update_current_target): Don't inherit or default
9870 to_trace_stop.
9871 * target.h (struct target_ops) <to_trace_stop>: Use
9872 TARGET_DEFAULT_NORETURN.
9873
9874 2014-02-19 Tom Tromey <tromey@redhat.com>
9875
9876 * target-delegates.c: Rebuild.
9877 * target.c (update_current_target): Don't inherit or default
9878 to_get_tracepoint_status.
9879 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9880 TARGET_DEFAULT_NORETURN.
9881
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9883
9884 * target-delegates.c: Rebuild.
9885 * target.c (update_current_target): Don't inherit or default
9886 to_get_trace_status.
9887 * target.h (struct target_ops) <to_get_trace_status>: Use
9888 TARGET_DEFAULT_RETURN.
9889
9890 2014-02-19 Tom Tromey <tromey@redhat.com>
9891
9892 * target-delegates.c: Rebuild.
9893 * target.c (update_current_target): Don't inherit or default
9894 to_trace_start.
9895 * target.h (struct target_ops) <to_trace_start>: Use
9896 TARGET_DEFAULT_NORETURN.
9897
9898 2014-02-19 Tom Tromey <tromey@redhat.com>
9899
9900 * target-delegates.c: Rebuild.
9901 * target.c (update_current_target): Don't inherit or default
9902 to_trace_set_readonly_regions.
9903 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9904 Use TARGET_DEFAULT_NORETURN.
9905
9906 2014-02-19 Tom Tromey <tromey@redhat.com>
9907
9908 * target-delegates.c: Rebuild.
9909 * target.c (update_current_target): Don't inherit or default
9910 to_disable_tracepoint.
9911 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9912 TARGET_DEFAULT_NORETURN.
9913
9914 2014-02-19 Tom Tromey <tromey@redhat.com>
9915
9916 * target-delegates.c: Rebuild.
9917 * target.c (update_current_target): Don't inherit or default
9918 to_enable_tracepoint.
9919 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9920 TARGET_DEFAULT_NORETURN.
9921
9922 2014-02-19 Tom Tromey <tromey@redhat.com>
9923
9924 * target-delegates.c: Rebuild.
9925 * target.c (update_current_target): Don't inherit or default
9926 to_download_trace_state_variable.
9927 * target.h (struct target_ops) <to_download_trace_state_variable>:
9928 Use TARGET_DEFAULT_NORETURN.
9929
9930 2014-02-19 Tom Tromey <tromey@redhat.com>
9931
9932 * target-delegates.c: Rebuild.
9933 * target.c (update_current_target): Don't inherit or default
9934 to_can_download_tracepoint.
9935 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9936 TARGET_DEFAULT_RETURN.
9937
9938 2014-02-19 Tom Tromey <tromey@redhat.com>
9939
9940 * target-delegates.c: Rebuild.
9941 * target.c (update_current_target): Don't inherit or default
9942 to_download_tracepoint.
9943 * target.h (struct target_ops) <to_download_tracepoint>: Use
9944 TARGET_DEFAULT_NORETURN.
9945
9946 2014-02-19 Tom Tromey <tromey@redhat.com>
9947
9948 * target-delegates.c: Rebuild.
9949 * target.c (update_current_target): Don't inherit or default
9950 to_trace_init.
9951 * target.h (struct target_ops) <to_trace_init>: Use
9952 TARGET_DEFAULT_RETURN.
9953
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * target-delegates.c: Rebuild.
9957 * target.c (update_current_target): Don't inherit or default
9958 to_supports_string_tracing.
9959 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9960 TARGET_DEFAULT_RETURN.
9961
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9963
9964 * target-delegates.c: Rebuild.
9965 * target.c (update_current_target): Don't inherit or default
9966 to_supports_enable_disable_tracepoint.
9967 * target.h (struct target_ops)
9968 <to_supports_enable_disable_tracepoint>: Use
9969 TARGET_DEFAULT_RETURN.
9970
9971 2014-02-19 Tom Tromey <tromey@redhat.com>
9972
9973 * target-delegates.c: Rebuild.
9974 * target.c (update_current_target): Don't inherit or default
9975 to_supports_multi_process.
9976 * target.h (struct target_ops) <to_supports_multi_process>: Use
9977 TARGET_DEFAULT_RETURN.
9978
9979 2014-02-19 Tom Tromey <tromey@redhat.com>
9980
9981 * target-delegates.c: Rebuild.
9982 * target.c (update_current_target): Don't inherit or default
9983 to_get_ada_task_ptid.
9984 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9985 TARGET_DEFAULT_FUNC.
9986
9987 2014-02-19 Tom Tromey <tromey@redhat.com>
9988
9989 * target-delegates.c: Rebuild.
9990 * target.c (update_current_target): Don't inherit or default
9991 to_thread_architecture.
9992 * target.h (struct target_ops) <to_thread_architecture>: Use
9993 TARGET_DEFAULT_FUNC.
9994
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * target-delegates.c: Rebuild.
9998 * target.c (update_current_target): Don't inherit or default
9999 to_execution_direction.
10000 * target.h (struct target_ops) <to_execution_direction>: Use
10001 TARGET_DEFAULT_FUNC.
10002
10003 2014-02-19 Tom Tromey <tromey@redhat.com>
10004
10005 * target-delegates.c: Rebuild.
10006 * target.c (update_current_target): Don't inherit or default
10007 to_can_execute_reverse.
10008 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10009 TARGET_DEFAULT_RETURN.
10010 (target_can_execute_reverse): Unconditionally delegate.
10011
10012 2014-02-19 Tom Tromey <tromey@redhat.com>
10013
10014 * target-delegates.c: Rebuild.
10015 * target.c (update_current_target): Don't inherit or default
10016 to_goto_bookmark.
10017 (dummy_goto_bookmark): Remove.
10018 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10019 * target.h (struct target_ops) <to_goto_bookmark>: Use
10020 TARGET_DEFAULT_NORETURN.
10021
10022 2014-02-19 Tom Tromey <tromey@redhat.com>
10023
10024 * target-delegates.c: Rebuild.
10025 * target.c (update_current_target): Don't inherit or default
10026 to_get_bookmark.
10027 (dummy_get_bookmark): Remove.
10028 (init_dummy_target): Don't inherit or default to_get_bookmark.
10029 * target.h (struct target_ops) <to_get_bookmark>: Use
10030 TARGET_DEFAULT_NORETURN
10031
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * target-delegates.c: Rebuild.
10035 * target.c (update_current_target): Don't inherit or default
10036 to_make_corefile_notes.
10037 (init_dummy_target): Don't initialize to_make_corefile_notes.
10038 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10039 TARGET_DEFAULT_FUNC.
10040
10041 2014-02-19 Tom Tromey <tromey@redhat.com>
10042
10043 * target-delegates.c: Rebuild.
10044 * target.c (update_current_target): Don't inherit or default
10045 to_find_memory_regions.
10046 (init_dummy_target): Don't initialize to_find_memory_regions.
10047 * target.h (struct target_ops) <to_find_memory_regions>: Use
10048 TARGET_DEFAULT_FUNC.
10049
10050 2014-02-19 Tom Tromey <tromey@redhat.com>
10051
10052 * target-delegates.c: Rebuild.
10053 * target.c (update_current_target): Don't inherit or default
10054 to_log_command.
10055 * target.h (struct target_ops) <to_log_command>: Use
10056 TARGET_DEFAULT_IGNORE.
10057 (target_log_command): Unconditionally delegate.
10058
10059 2014-02-19 Tom Tromey <tromey@redhat.com>
10060
10061 * target-delegates.c: Rebuild.
10062 * target.c (update_current_target): Don't inherit or default
10063 to_pid_to_exec_file.
10064 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10065 TARGET_DEFAULT_RETURN.
10066
10067 2014-02-19 Tom Tromey <tromey@redhat.com>
10068
10069 * target-delegates.c: Rebuild.
10070 * target.c (update_current_target): Don't inherit or default
10071 to_thread_name.
10072 (target_thread_name): Unconditionally delegate.
10073 * target.h (struct target_ops) <to_thread_name>: Use
10074 TARGET_DEFAULT_RETURN.
10075
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10077
10078 * target-delegates.c: Rebuild.
10079 * target.c (update_current_target): Don't inherit or default
10080 to_extra_thread_info.
10081 * target.h (struct target_ops) <to_extra_thread_info>: Use
10082 TARGET_DEFAULT_RETURN.
10083
10084 2014-02-19 Tom Tromey <tromey@redhat.com>
10085
10086 * target-delegates.c: Rebuild.
10087 * target.c (update_current_target): Don't inherit or default
10088 to_has_exited.
10089 * target.h (struct target_ops) <to_has_exited>: Use
10090 TARGET_DEFAULT_RETURN..
10091
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10093
10094 * target-delegates.c: Rebuild.
10095 * target.c (update_current_target): Don't inherit or default
10096 to_set_syscall_catchpoint.
10097 (return_one): Remove.
10098 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10099 TARGET_DEFAULT_RETURN.
10100
10101 2014-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_insert_exec_catchpoint.
10106 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10107 TARGET_DEFAULT_RETURN.
10108
10109 2014-01-08 Tom Tromey <tromey@redhat.com>
10110
10111 * target-delegates.c: Rebuild.
10112 * target.c (update_current_target): Don't inherit or default
10113 to_insert_exec_catchpoint.
10114 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10115 TARGET_DEFAULT_RETURN.
10116
10117 2014-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_remove_vfork_catchpoint.
10122 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10123 TARGET_DEFAULT_RETURN.
10124
10125 2014-02-19 Tom Tromey <tromey@redhat.com>
10126
10127 * target-delegates.c: Rebuild.
10128 * target.c (update_current_target): Don't inherit or default
10129 to_insert_vfork_catchpoint.
10130 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10131 TARGET_DEFAULT_RETURN.
10132
10133 2014-02-19 Tom Tromey <tromey@redhat.com>
10134
10135 * target-delegates.c: Rebuild.
10136 * target.c (update_current_target): Don't inherit or default
10137 to_remove_fork_catchpoint.
10138 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10139 TARGET_DEFAULT_RETURN.
10140
10141 2014-02-19 Tom Tromey <tromey@redhat.com>
10142
10143 * target-delegates.c: Rebuild.
10144 * target.c (update_current_target): Don't inherit or default
10145 to_insert_fork_catchpoint.
10146 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10147 TARGET_DEFAULT_RETURN.
10148
10149 2014-02-19 Tom Tromey <tromey@redhat.com>
10150
10151 * target-delegates.c: Rebuild.
10152 * target.c (update_current_target): Don't inherit or default
10153 to_post_startup_inferior.
10154 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10155 TARGET_DEFAULT_IGNORE.
10156
10157 2014-02-19 Tom Tromey <tromey@redhat.com>
10158
10159 * target-delegates.c: Rebuild.
10160 * target.c (update_current_target): Don't inherit or default
10161 to_load.
10162 * target.h (struct target_ops) <to_load>: Use
10163 TARGET_DEFAULT_NORETURN.
10164
10165 2014-02-19 Tom Tromey <tromey@redhat.com>
10166
10167 * target-delegates.c: Rebuild.
10168 * target.c (update_current_target): Don't inherit or default
10169 to_terminal_info.
10170 * target.h (struct target_ops) <to_terminal_info>: Use
10171 TARGET_DEFAULT_FUNC.
10172
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10174
10175 * target-delegates.c: Rebuild.
10176 * target.c (update_current_target): Don't inherit or default
10177 to_terminal_save_ours.
10178 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10179 TARGET_DEFAULT_IGNORE.
10180
10181 2014-02-19 Tom Tromey <tromey@redhat.com>
10182
10183 * target-delegates.c: Rebuild.
10184 * target.c (update_current_target): Don't inherit or default
10185 to_terminal_ours.
10186 * target.h (struct target_ops) <to_terminal_ours>: Use
10187 TARGET_DEFAULT_IGNORE.
10188
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10190
10191 * target-delegates.c: Rebuild.
10192 * target.c (update_current_target): Don't inherit or default
10193 to_terminal_ours_for_output.
10194 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10195 TARGET_DEFAULT_IGNORE.
10196
10197 2014-02-19 Tom Tromey <tromey@redhat.com>
10198
10199 * target-delegates.c: Rebuild.
10200 * target.c (update_current_target): Don't inherit or default
10201 to_terminal_inferior.
10202 * target.h (struct target_ops) <to_terminal_inferior>: Use
10203 TARGET_DEFAULT_IGNORE.
10204
10205 2014-02-19 Tom Tromey <tromey@redhat.com>
10206
10207 * target-delegates.c: Rebuild.
10208 * target.c (update_current_target): Don't inherit or default
10209 to_terminal_init.
10210 * target.h (struct target_ops) <to_terminal_init>: Use
10211 TARGET_DEFAULT_IGNORE.
10212
10213 2014-02-19 Tom Tromey <tromey@redhat.com>
10214
10215 * target-delegates.c: Rebuild.
10216 * target.c (update_current_target): Don't inherit or default
10217 to_can_accel_watchpoint_condition.
10218 * target.h (struct target_ops)
10219 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10220
10221 2014-02-19 Tom Tromey <tromey@redhat.com>
10222
10223 * target-delegates.c: Rebuild.
10224 * target.c (update_current_target): Don't inherit or default
10225 to_region_ok_for_hw_watchpoint.
10226 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10227 Use TARGET_DEFAULT_FUNC.
10228
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10230
10231 * target-delegates.c: Rebuild.
10232 * target.c (update_current_target): Don't inherit or default
10233 to_watchpoint_addr_within_range.
10234 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10235 Use TARGET_DEFAULT_FUNC.
10236
10237 2014-02-19 Tom Tromey <tromey@redhat.com>
10238
10239 * target-delegates.c: Rebuild.
10240 * target.c (update_current_target): Don't inherit or default
10241 to_remove_watchpoint.
10242 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10243 TARGET_DEFAULT_NORETURN.
10244
10245 2014-02-19 Tom Tromey <tromey@redhat.com>
10246
10247 * target-delegates.c: Rebuild.
10248 * target.c (update_current_target): Don't inherit or default
10249 to_insert_watchpoint.
10250 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10251 TARGET_DEFAULT_RETURN.
10252
10253 2014-02-19 Tom Tromey <tromey@redhat.com>
10254
10255 * target-delegates.c: Rebuild.
10256 * target.c (update_current_target): Don't inherit or default
10257 to_remove_hw_breakpoint.
10258 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10259 TARGET_DEFAULT_RETURN.
10260
10261 2014-02-19 Tom Tromey <tromey@redhat.com>
10262
10263 * target-delegates.c: Rebuild.
10264 * target.c (update_current_target): Don't inherit or default
10265 to_insert_hw_breakpoint.
10266 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10267 TARGET_DEFAULT_RETURN.
10268
10269 2014-02-19 Tom Tromey <tromey@redhat.com>
10270
10271 * target-delegates.c: Rebuild.
10272 * target.c (update_current_target): Don't inherit or default
10273 to_can_use_hw_breakpoint.
10274 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10275 TARGET_DEFAULT_RETURN.
10276
10277 2014-02-19 Tom Tromey <tromey@redhat.com>
10278
10279 * target-delegates.c: Rebuild.
10280 * target.c (update_current_target): Don't inherit or default
10281 to_files_info.
10282 * target.h (struct target_ops) <to_files_info>: Use
10283 TARGET_DEFAULT_IGNORE.
10284
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10286
10287 * target-delegates.c: Rebuild.
10288 * target.c (update_current_target): Don't inherit or default
10289 to_store.
10290 * target.h (struct target_ops) <to_store>: Use
10291 TARGET_DEFAULT_NORETURN.
10292
10293 2014-02-19 Tom Tromey <tromey@redhat.com>
10294
10295 * target-delegates.c: Rebuild.
10296 * target.c (update_current_target): Don't inherit or default
10297 to_post_attach.
10298 * target.h (struct target_ops) <to_post_attach>: Use
10299 TARGET_DEFAULT_IGNORE.
10300
10301 2014-02-19 Tom Tromey <tromey@redhat.com>
10302
10303 * target-delegates.c: Rebuild.
10304 * target.c (update_current_target): Don't inherit or default
10305 to_rcmd.
10306 (default_rcmd): New function.
10307 (do_monitor_command): Unconditionally delegate.
10308 * target.h (struct target_ops) <to_rmcd>: Use
10309 TARGET_DEFAULT_FUNC.
10310
10311 2014-02-19 Tom Tromey <tromey@redhat.com>
10312
10313 * target-delegates.c: Rebuild.
10314 * target.c (init_dummy_target): Don't initialize to_attach.
10315 (target_attach): Unconditionally delegate.
10316 * target.h (struct target_ops) <to_attach>: Use
10317 TARGET_DEFAULT_FUNC.
10318
10319 2014-02-19 Tom Tromey <tromey@redhat.com>
10320
10321 * target-delegates.c: Rebuild.
10322 * target.c (target_detach): Unconditionally delegate.
10323 (init_dummy_target): Don't initialize to_detach.
10324 * target.h (struct target_ops) <to_detach>: Use
10325 TARGET_DEFAULT_IGNORE.
10326
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10328
10329 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10330 Add argument.
10331 (target_augmented_libraries_svr4_read): Add argument.
10332 * target.c (update_current_target): Update.
10333 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10334 argument.
10335
10336 2014-02-19 Tom Tromey <tromey@redhat.com>
10337
10338 * target.h (struct target_ops) <to_call_history_range>: Add
10339 argument.
10340 * target.c (target_call_history_range): Add argument.
10341 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10342 argument.
10343 (record_btrace_call_history_from): Update.
10344
10345 2014-02-19 Tom Tromey <tromey@redhat.com>
10346
10347 * target.h (struct target_ops) <to_call_history_from>: Add
10348 argument.
10349 * target.c (target_call_history_from): Add argument.
10350 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10351 argument.
10352
10353 2014-02-19 Tom Tromey <tromey@redhat.com>
10354
10355 * target.h (struct target_ops) <to_call_history>: Add argument.
10356 * target.c (target_call_history): Add argument.
10357 * record-btrace.c (record_btrace_call_history): Add 'self'
10358 argument.
10359
10360 2014-02-19 Tom Tromey <tromey@redhat.com>
10361
10362 * target.h (struct target_ops) <to_insn_history_range>: Add
10363 argument.
10364 * target.c (target_insn_history_range): Add argument.
10365 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10366 argument.
10367 (record_btrace_insn_history_from): Update.
10368
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target.h (struct target_ops) <to_insn_history_from>: Add
10372 argument.
10373 * target.c (target_insn_history_from): Add argument.
10374 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10375 argument.
10376
10377 2014-02-19 Tom Tromey <tromey@redhat.com>
10378
10379 * target.h (struct target_ops) <to_insn_history>: Add argument.
10380 * target.c (target_insn_history): Add argument.
10381 * record-btrace.c (record_btrace_insn_history): Add 'self'
10382 argument.
10383
10384 2014-02-19 Tom Tromey <tromey@redhat.com>
10385
10386 * target.h (struct target_ops) <to_goto_record>: Add argument.
10387 * target.c (target_goto_record): Add argument.
10388 * record-full.c (record_full_goto): Add 'self' argument.
10389 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10390
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10392
10393 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10394 * target.c (target_goto_record_end): Add argument.
10395 * record-full.c (record_full_goto_end): Add 'self' argument.
10396 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10397
10398 2014-02-19 Tom Tromey <tromey@redhat.com>
10399
10400 * target.h (struct target_ops) <to_goto_record_begin>: Add
10401 argument.
10402 * target.c (target_goto_record_begin): Add argument.
10403 * record-full.c (record_full_goto_begin): Add 'self' argument.
10404 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10405 argument.
10406
10407 2014-02-19 Tom Tromey <tromey@redhat.com>
10408
10409 * target.h (struct target_ops) <to_record_is_replaying>: Add
10410 argument.
10411 * target.c (target_record_is_replaying): Add argument.
10412 * record-full.c (record_full_is_replaying): Add 'self' argument.
10413 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10414 argument.
10415 (record_btrace_xfer_partial, record_btrace_store_registers)
10416 (record_btrace_prepare_to_store, record_btrace_resume)
10417 (record_btrace_wait, record_btrace_decr_pc_after_break)
10418 (record_btrace_find_new_threads, record_btrace_thread_alive):
10419 Update.
10420
10421 2014-02-19 Tom Tromey <tromey@redhat.com>
10422
10423 * target.h (struct target_ops) <to_delete_record>: Add argument.
10424 * target.c (target_delete_record): Add argument.
10425 * record-full.c (record_full_delete): Add 'self' argument.
10426
10427 2014-02-19 Tom Tromey <tromey@redhat.com>
10428
10429 * target.h (struct target_ops) <to_save_record>: Add argument.
10430 * target.c (target_save_record): Add argument.
10431 * record-full.c (record_full_save): Add 'self' argument.
10432 (record_full_save): Add 'self' argument.
10433
10434 2014-02-19 Tom Tromey <tromey@redhat.com>
10435
10436 * target.h (struct target_ops) <to_info_record>: Add argument.
10437 * target.c (target_info_record): Add argument.
10438 * record.c (info_record_command): Add argument.
10439 * record-full.c (record_full_info): Add 'self' argument.
10440 * record-btrace.c (record_btrace_info): Add 'self' argument.
10441
10442 2014-02-19 Tom Tromey <tromey@redhat.com>
10443
10444 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10445 * target.c (target_stop_recording): Add argument.
10446 * record.c (record_stop): Add argument.
10447 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10448 argument.
10449
10450 2014-02-19 Tom Tromey <tromey@redhat.com>
10451
10452 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10453 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10454 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10455 argument.
10456 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10457 (_initialize_amd64_linux_nat): Use it.
10458 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10459 (_initialize_i386_linux_nat): Use it.
10460
10461 2014-02-19 Tom Tromey <tromey@redhat.com>
10462
10463 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10464 * target.c (target_teardown_btrace): Add argument.
10465 * remote.c (remote_teardown_btrace): Add 'self' argument.
10466 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10467 argument.
10468 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10469 argument.
10470
10471 2014-02-19 Tom Tromey <tromey@redhat.com>
10472
10473 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10474 * target.c (target_disable_btrace): Add argument.
10475 * remote.c (remote_disable_btrace): Add 'self' argument.
10476 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10477 argument.
10478 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10479 argument.
10480
10481 2014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10484 * target.c (target_enable_btrace): Add argument.
10485 * remote.c (remote_enable_btrace): Add 'self' argument.
10486 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10487 argument.
10488 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10489 argument.
10490
10491 2014-02-19 Tom Tromey <tromey@redhat.com>
10492
10493 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10494 (target_can_use_agent): Add argument.
10495 * target.c (update_current_target): Update.
10496 * remote.c (remote_can_use_agent): Add 'self' argument.
10497 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10498
10499 2014-02-19 Tom Tromey <tromey@redhat.com>
10500
10501 * target.h (struct target_ops) <to_use_agent>: Add argument.
10502 (target_use_agent): Add argument.
10503 * target.c (update_current_target): Update.
10504 * remote.c (remote_use_agent): Add 'self' argument.
10505 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10506
10507 2014-02-19 Tom Tromey <tromey@redhat.com>
10508
10509 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10510 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10511 (target_traceframe_info): Add argument.
10512 * target.c (update_current_target): Update.
10513 * remote.c (remote_traceframe_info): Add 'self' argument.
10514 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10515
10516 2014-02-19 Tom Tromey <tromey@redhat.com>
10517
10518 * target.h (target_static_tracepoint_markers_by_strid): Add
10519 argument.
10520 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10521 'self' argument.
10522 * target.c (update_current_target): Update.
10523 * remote.c (struct target_ops)
10524 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10525 * linux-nat.c (struct target_ops)
10526 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10527
10528 2014-02-19 Tom Tromey <tromey@redhat.com>
10529
10530 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10531 Add argument.
10532 (target_static_tracepoint_marker_at): Add argument.
10533 * target.c (update_current_target): Update.
10534 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10535 argument.
10536
10537 2014-02-19 Tom Tromey <tromey@redhat.com>
10538
10539 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10540 (target_set_permissions): Add argument.
10541 * target.c (update_current_target): Update.
10542 * remote.c (remote_set_permissions): Add 'self' argument.
10543 (remote_start_remote): Update.
10544
10545 2014-02-19 Tom Tromey <tromey@redhat.com>
10546
10547 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10548 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10549 (target_get_tib_address): Add argument.
10550 * target.c (update_current_target): Update.
10551 * remote.c (remote_get_tib_address): Add 'self' argument.
10552
10553 2014-02-19 Tom Tromey <tromey@redhat.com>
10554
10555 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10556 (target_set_trace_notes): Add argument.
10557 * target.c (update_current_target): Update.
10558 * remote.c (remote_set_trace_notes): Add 'self' argument.
10559
10560 2014-02-19 Tom Tromey <tromey@redhat.com>
10561
10562 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10563 argument.
10564 (target_set_trace_buffer_size): Add argument.
10565 * target.c (update_current_target): Update.
10566 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10567
10568 2014-02-19 Tom Tromey <tromey@redhat.com>
10569
10570 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10571 argument.
10572 (target_set_circular_trace_buffer): Add argument.
10573 * target.c (update_current_target): Update.
10574 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10575 argument.
10576
10577 2014-02-19 Tom Tromey <tromey@redhat.com>
10578
10579 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10580 argument.
10581 (target_set_disconnected_tracing): Add argument.
10582 * target.c (update_current_target): Update.
10583 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10584
10585 2014-02-19 Tom Tromey <tromey@redhat.com>
10586
10587 * target.h (struct target_ops)
10588 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10589 (target_get_min_fast_tracepoint_insn_len): Add argument.
10590 * target.c (update_current_target): Update.
10591 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10592 argument.
10593
10594 2014-02-19 Tom Tromey <tromey@redhat.com>
10595
10596 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10597 argument.
10598 (target_get_raw_trace_data): Add argument.
10599 * target.c (update_current_target): Update.
10600 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10601
10602 2014-02-19 Tom Tromey <tromey@redhat.com>
10603
10604 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10605 Add argument.
10606 (target_upload_trace_state_variables): Add argument.
10607 * target.c (update_current_target): Update.
10608 * remote.c (remote_upload_trace_state_variables): Add 'self'
10609 argument.
10610 (remote_start_remote): Update.
10611
10612 2014-02-19 Tom Tromey <tromey@redhat.com>
10613
10614 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10615 argument.
10616 (target_upload_tracepoints): Add argument.
10617 * target.c (update_current_target): Update.
10618 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10619 (remote_start_remote): Update.
10620
10621 2014-02-19 Tom Tromey <tromey@redhat.com>
10622
10623 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10624 (target_save_trace_data): Add argument.
10625 * target.c (update_current_target): Update.
10626 * remote.c (remote_save_trace_data): Add 'self' argument.
10627
10628 2014-02-19 Tom Tromey <tromey@redhat.com>
10629
10630 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10631 argument.
10632 * target.h (struct target_ops)
10633 <to_get_trace_state_variable_value>: Add argument.
10634 (target_get_trace_state_variable_value): Add argument.
10635 * target.c (update_current_target): Update.
10636 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10637 argument.
10638 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10639
10640 2014-02-19 Tom Tromey <tromey@redhat.com>
10641
10642 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10643 * target.h (struct target_ops) <to_trace_find>: Add argument.
10644 (target_trace_find): Add argument.
10645 * target.c (update_current_target): Update.
10646 * remote.c (remote_trace_find): Add 'self' argument.
10647 * ctf.c (ctf_trace_find): Add 'self' argument.
10648
10649 2014-02-19 Tom Tromey <tromey@redhat.com>
10650
10651 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10652 (target_trace_stop): Add argument.
10653 * target.c (update_current_target): Update.
10654 * remote.c (remote_trace_stop): Add 'self' argument.
10655
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10657
10658 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10659 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10660 argument.
10661 (target_get_tracepoint_status): Add argument.
10662 * target.c (update_current_target): Update.
10663 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10664
10665 2014-02-19 Tom Tromey <tromey@redhat.com>
10666
10667 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10668 * target.h (struct target_ops) <to_get_trace_status>: Add
10669 argument.
10670 (target_get_trace_status): Add argument.
10671 * target.c (update_current_target): Update.
10672 * remote.c (remote_get_trace_status): Add 'self' argument.
10673 (remote_start_remote, remote_can_download_tracepoint): Update.
10674 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10675
10676 2014-02-19 Tom Tromey <tromey@redhat.com>
10677
10678 * target.h (struct target_ops) <to_trace_start>: Add argument.
10679 (target_trace_start): Add argument.
10680 * target.c (update_current_target): Update.
10681 * remote.c (remote_trace_start): Add 'self' argument.
10682
10683 2014-02-19 Tom Tromey <tromey@redhat.com>
10684
10685 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10686 Add argument.
10687 (target_trace_set_readonly_regions): Add argument.
10688 * target.c (update_current_target): Update.
10689 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10690 argument.
10691
10692 2014-02-19 Tom Tromey <tromey@redhat.com>
10693
10694 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10695 argument.
10696 (target_disable_tracepoint): Add argument.
10697 * target.c (update_current_target): Update.
10698 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10699
10700 2014-02-19 Tom Tromey <tromey@redhat.com>
10701
10702 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10703 argument.
10704 (target_enable_tracepoint): Add argument.
10705 * target.c (update_current_target): Update.
10706 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10707
10708 2014-02-19 Tom Tromey <tromey@redhat.com>
10709
10710 * target.h (struct target_ops) <to_download_trace_state_variable>:
10711 Add argument.
10712 (target_download_trace_state_variable): Add argument.
10713 * target.c (update_current_target): Update.
10714 * remote.c (remote_download_trace_state_variable): Add 'self'
10715 argument.
10716
10717 2014-02-19 Tom Tromey <tromey@redhat.com>
10718
10719 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10720 argument.
10721 (target_can_download_tracepoint): Add argument.
10722 * target.c (update_current_target): Update.
10723 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10724
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10726
10727 * target.h (struct target_ops) <to_download_tracepoint>: Add
10728 argument.
10729 (target_download_tracepoint): Add argument.
10730 * target.c (update_current_target): Update.
10731 * remote.c (remote_download_tracepoint): Add 'self' argument.
10732
10733 2014-02-19 Tom Tromey <tromey@redhat.com>
10734
10735 * target.h (struct target_ops) <to_trace_init>: Add argument.
10736 (target_trace_init): Add argument.
10737 * target.c (update_current_target): Update.
10738 * remote.c (remote_trace_init): Add 'self' argument.
10739
10740 2014-02-19 Tom Tromey <tromey@redhat.com>
10741
10742 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10743 * target.c (target_fileio_readlink): Add argument.
10744 * remote.c (remote_hostio_readlink): Add 'self' argument.
10745 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10746
10747 2014-02-19 Tom Tromey <tromey@redhat.com>
10748
10749 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10750 * target.c (target_fileio_unlink): Add argument.
10751 * remote.c (remote_hostio_unlink): Add 'self' argument.
10752 (remote_file_delete): Update.
10753 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10754
10755 2014-02-19 Tom Tromey <tromey@redhat.com>
10756
10757 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10758 * target.c (target_fileio_close): Add argument.
10759 * remote.c (remote_hostio_close): Add 'self' argument.
10760 (remote_hostio_close_cleanup): Update.
10761 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10762 Update.
10763 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10764
10765 2014-02-19 Tom Tromey <tromey@redhat.com>
10766
10767 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10768 * target.c (target_fileio_pread): Add argument.
10769 * remote.c (remote_hostio_pread): Add 'self' argument.
10770 (remote_bfd_iovec_pread, remote_file_get): Update.
10771 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10772
10773 2014-02-19 Tom Tromey <tromey@redhat.com>
10774
10775 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10776 * target.c (target_fileio_pwrite): Add argument.
10777 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10778 (remote_file_put): Update.
10779 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10780
10781 2014-02-19 Tom Tromey <tromey@redhat.com>
10782
10783 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10784 * target.c (target_fileio_open): Add argument.
10785 * remote.c (remote_hostio_open): Add 'self' argument.
10786 (remote_bfd_iovec_open): Add 'self' argument.
10787 (remote_file_put): Add 'self' argument.
10788 (remote_file_get): Add 'self' argument.
10789 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10790
10791 2014-02-19 Tom Tromey <tromey@redhat.com>
10792
10793 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10794 Add argument.
10795 (target_can_run_breakpoint_commands): Add argument.
10796 * target.c (update_current_target): Update.
10797 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10798 argument.
10799 (remote_insert_breakpoint): Add 'self' argument.
10800 (remote_insert_hw_breakpoint): Add 'self' argument.
10801 (remote_can_run_breakpoint_commands): Add 'self' argument.
10802
10803 2014-02-19 Tom Tromey <tromey@redhat.com>
10804
10805 * target.h (struct target_ops)
10806 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10807 (target_supports_evaluation_of_breakpoint_conditions): Add
10808 argument.
10809 * target.c (update_current_target): Update.
10810 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10811 argument.
10812 (remote_insert_breakpoint): Add 'self' argument.
10813 (remote_insert_hw_breakpoint): Add 'self' argument.
10814 (remote_supports_cond_breakpoints): Add 'self' argument.
10815
10816 2014-02-19 Tom Tromey <tromey@redhat.com>
10817
10818 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10819 argument.
10820 (target_supports_string_tracing): Add argument.
10821 * target.c (update_current_target): Update.
10822 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10823
10824 2014-02-19 Tom Tromey <tromey@redhat.com>
10825
10826 * target.h (struct target_ops)
10827 <to_supports_disable_randomization>: Add argument.
10828 * target.c (find_default_supports_disable_randomization): Add
10829 argument.
10830 (target_supports_disable_randomization): Add argument.
10831 (find_default_supports_disable_randomization): Add 'self'
10832 argument.
10833 * remote.c (extended_remote_supports_disable_randomization): Add
10834 'self' argument.
10835 (remote_supports_disable_randomization): Add 'self' argument.
10836 (extended_remote_create_inferior): Update.
10837 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10838 'self' argument.
10839
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10841
10842 * target.h (struct target_ops)
10843 <to_supports_enable_disable_tracepoint>: Add argument.
10844 (target_supports_enable_disable_tracepoint): Add argument.
10845 * target.c (update_current_target): Update.
10846 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10847 argument.
10848
10849 2014-02-19 Tom Tromey <tromey@redhat.com>
10850
10851 * target.h (struct target_ops) <to_supports_multi_process>: Add
10852 argument.
10853 (target_supports_multi_process): Add argument.
10854 * target.c (update_current_target): Update.
10855 * remote.c (remote_supports_multi_process): Add 'self' argument.
10856 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10857 argument.
10858 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10859 argument.
10860
10861 2014-02-19 Tom Tromey <tromey@redhat.com>
10862
10863 * target.h (struct target_ops) <to_execution_direction>: Add
10864 argument.
10865 (target_execution_direction): Add argument.
10866 * target.c (default_execution_direction): Add 'self' argument.
10867 * record-full.c (record_full_execution_direction): Add 'self'
10868 argument.
10869
10870 2014-02-19 Tom Tromey <tromey@redhat.com>
10871
10872 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10873 argument.
10874 (target_can_execute_reverse): Add argument.
10875 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10876 * record-full.c (record_full_can_execute_reverse): Add 'self'
10877 argument.
10878 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10879 argument.
10880
10881 2014-02-19 Tom Tromey <tromey@redhat.com>
10882
10883 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10884 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10885 argument.
10886 (target_get_ada_task_ptid): Add argument.
10887 * target.c (update_current_target): Update.
10888 (default_get_ada_task_ptid): Add 'self' argument.
10889 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10890 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10891 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10892 argument.
10893 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10894 argument.
10895 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10896 argument.
10897 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10898 argument.
10899 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10900 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10901 argument.
10902
10903 2014-02-19 Tom Tromey <tromey@redhat.com>
10904
10905 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10906 (target_goto_bookmark): Add argument.
10907 * target.c (dummy_goto_bookmark): Add 'self' argument.
10908 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10909
10910 2014-02-19 Tom Tromey <tromey@redhat.com>
10911
10912 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10913 (target_get_bookmark): Add argument.
10914 * target.c (dummy_get_bookmark): Add 'self' argument.
10915 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10916
10917 2014-02-19 Tom Tromey <tromey@redhat.com>
10918
10919 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10920 argument.
10921 (target_make_corefile_notes): Add argument.
10922 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10923 * procfs.c (procfs_make_note_section): Add 'self' argument.
10924 (procfs_make_note_section): Add 'self' argument.
10925 (procfs_make_note_section): Add 'self' argument.
10926 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10927 argument.
10928 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10929 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10930 * exec.c (exec_make_note_section): Add 'self' argument.
10931 (exec_make_note_section): Add 'self' argument.
10932
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10934
10935 * target.h (struct target_ops) <to_find_memory_regions>: Add
10936 argument.
10937 (target_find_memory_regions): Add argument.
10938 * target.c (dummy_find_memory_regions): Add 'self' argument.
10939 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10940 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10941 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10942 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10943 * exec. (exec_do_find_memory_regions): New global.
10944 (exec_set_find_memory_regions): Rewrite.
10945 (exec_find_memory_regions): New function.
10946 (init_exec_ops): Use exec_find_memory_regions.
10947
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10949
10950 * target.h (struct target_ops) <to_supports_non_stop>: Add
10951 argument.
10952 * target.c (find_default_supports_non_stop): Add argument.
10953 (target_supports_non_stop): Add argument.
10954 (find_default_supports_non_stop): Add 'self' argument.
10955 * remote.c (remote_supports_non_stop): Add 'self' argument.
10956 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10957
10958 2014-02-19 Tom Tromey <tromey@redhat.com>
10959
10960 * target.h (struct target_ops) <to_log_command>: Add argument.
10961 (target_log_command): Add argument.
10962 * serial.h (serial_log_command): Add 'self' argument.
10963 * serial.c (serial_log_command): Add 'self' argument.
10964
10965 2014-02-19 Tom Tromey <tromey@redhat.com>
10966
10967 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10968 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10969 argument.
10970 (target_pid_to_exec_file): Add argument.
10971 * target.c (debug_to_pid_to_exec_file): Add argument.
10972 (update_current_target): Update.
10973 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10974 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10975 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10976 (linux_handle_extended_wait): Update.
10977 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10978 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10979 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10980 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10981
10982 2014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target.h (struct target_ops) <to_rcmd>: Add argument.
10985 (target_rcmd): Add argument.
10986 * target.c (debug_to_rcmd): Add argument.
10987 (update_current_target, do_monitor_command): Update.
10988 * remote.c (remote_rcmd): Add 'self' argument.
10989 * monitor.c (monitor_rcmd): Add 'self' argument.
10990
10991 2014-02-19 Tom Tromey <tromey@redhat.com>
10992
10993 * windows-nat.c (windows_stop): Add 'self' argument.
10994 * target.h (struct target_ops) <to_stop>: Add argument.
10995 * target.c (target_stop): Add argument.
10996 (debug_to_stop): Add argument.
10997 (update_current_target): Update.
10998 * remote.c (remote_stop): Add 'self' argument.
10999 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11000 (gdbsim_cntrl_c): Update.
11001 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11002 * procfs.c (procfs_stop): Add 'self' argument.
11003 * nto-procfs.c (procfs_stop): Add 'self' argument.
11004 * monitor.c (monitor_stop): Add 'self' argument.
11005 (monitor_open): Update.
11006 * linux-nat.c (linux_nat_stop): Add argument.
11007 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11008 * gnu-nat.c (gnu_stop): Add 'self' argument.
11009 * darwin-nat.c (darwin_stop): Add 'self' argument.
11010
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11012
11013 * target.h (struct target_ops) <to_thread_name>: Add argument.
11014 * target.c (target_thread_name): Add argument.
11015 (update_current_target): Update.
11016 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11017
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11019
11020 * target.h (struct target_ops) <to_extra_thread_info>: Add
11021 argument.
11022 (target_extra_thread_info): Add argument.
11023 * target.c (update_current_target): Update.
11024 * remote.c (remote_threads_extra_info): Add 'self' argument.
11025 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11026 argument.
11027 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11028 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11029 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11030 argument.
11031 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11032 argument.
11033 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11034 argument.
11035 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11036 argument.
11037
11038 2014-02-19 Tom Tromey <tromey@redhat.com>
11039
11040 * target.h (struct target_ops) <to_program_signals>: Add argument.
11041 * target.c (target_program_signals): Add argument.
11042 * remote.c (remote_program_signals): Add 'self' argument.
11043
11044 2014-02-19 Tom Tromey <tromey@redhat.com>
11045
11046 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11047 * target.c (target_pass_signals): Add argument.
11048 * remote.c (remote_pass_signals): Add 'self' argument.
11049 (remote_start_remote): Update.
11050 * procfs.c (procfs_pass_signals): Add 'self' argument.
11051 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11052 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11053 (linux_nat_create_inferior, linux_nat_attach): Update.
11054
11055 2014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * windows-nat.c (windows_can_run): Add 'self' argument.
11058 * target.h (struct target_ops) <to_can_run>: Add argument.
11059 (target_can_run): Add argument.
11060 * target.c (debug_to_can_run): Add argument.
11061 (update_current_target): Update.
11062 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11063 * inf-child.c (inf_child_can_run): Add 'self' argument.
11064 * go32-nat.c (go32_can_run): Add 'self' argument.
11065
11066 2014-02-19 Tom Tromey <tromey@redhat.com>
11067
11068 * target.h (struct target_ops) <to_has_exited>: Add argument.
11069 (target_has_exited): Add argument.
11070 * target.c (debug_to_has_exited): Add argument.
11071 (update_current_target): Update.
11072
11073 2014-02-19 Tom Tromey <tromey@redhat.com>
11074
11075 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11076 argument.
11077 (target_set_syscall_catchpoint): Add argument.
11078 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11079 argument.
11080 * target.c (update_current_target): Update.
11081
11082 2014-02-19 Tom Tromey <tromey@redhat.com>
11083
11084 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11085 argument.
11086 (target_remove_exec_catchpoint): Add argument.
11087 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11088 (update_current_target): Update.
11089 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11090 argument.
11091
11092 2014-02-19 Tom Tromey <tromey@redhat.com>
11093
11094 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11095 argument.
11096 (target_insert_exec_catchpoint): Add argument.
11097 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11098 (update_current_target): Update.
11099 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11100 argument.
11101
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11103
11104 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11105 argument.
11106 (target_remove_vfork_catchpoint): Add argument.
11107 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11108 (update_current_target): Update.
11109 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11110 argument.
11111
11112 2014-02-19 Tom Tromey <tromey@redhat.com>
11113
11114 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11115 argument.
11116 (target_insert_vfork_catchpoint): Add argument.
11117 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11118 (update_current_target): Update.
11119 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11120 argument.
11121
11122 2014-02-19 Tom Tromey <tromey@redhat.com>
11123
11124 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11125 argument.
11126 (target_remove_fork_catchpoint): Add argument.
11127 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11128 (update_current_target): Update.
11129 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11130 argument.
11131
11132 2014-02-19 Tom Tromey <tromey@redhat.com>
11133
11134 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11135 argument.
11136 (target_insert_fork_catchpoint): Add argument.
11137 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11138 (update_current_target): Update.
11139 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11140 argument.
11141
11142 2014-02-19 Tom Tromey <tromey@redhat.com>
11143
11144 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11145 argument.
11146 (target_post_startup_inferior): Add argument.
11147 * target.c (debug_to_post_startup_inferior): Add argument.
11148 (update_current_target): Update.
11149 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11150 argument.
11151 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11152 argument.
11153 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11154 argument.
11155 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11156 argument.
11157 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11158 'self' argument.
11159 (super_post_startup_inferior): Likewise.
11160 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11161 'self' argument.
11162 (super_post_startup_inferior): Likewise.
11163 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11164 Add 'self' argument.
11165 (super_post_startup_inferior): Likewise.
11166
11167 2014-02-19 Tom Tromey <tromey@redhat.com>
11168
11169 * target.h (struct target_ops) <to_load>: Add argument.
11170 * target.c (target_load): Add argument.
11171 (debug_to_load): Add argument.
11172 (update_current_target): Update.
11173 * remote.c (remote_load): Add 'self' argument.
11174 * remote-sim.c (gdbsim_load): Add 'self' argument.
11175 * remote-mips.c (mips_load): Add 'self' argument.
11176 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11177 * monitor.c (monitor_load): Add 'self' argument.
11178 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11179
11180 2014-02-19 Tom Tromey <tromey@redhat.com>
11181
11182 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11183 (target_terminal_info): Add argument.
11184 * target.c (debug_to_terminal_info): Add argument.
11185 (default_terminal_info): Likewise.
11186 * inflow.c (child_terminal_info): Add 'self' argument.
11187 * inferior.h (child_terminal_info): Add 'self' argument.
11188 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11189
11190 2014-02-19 Tom Tromey <tromey@redhat.com>
11191
11192 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11193 argument.
11194 (target_terminal_save_ours): Add argument.
11195 * target.c (debug_to_terminal_save_ours): Add argument.
11196 (update_current_target): Update.
11197 * inflow.c (terminal_save_ours): Add 'self' argument.
11198 * inferior.h (terminal_save_ours): Add 'self' argument.
11199
11200 2014-02-19 Tom Tromey <tromey@redhat.com>
11201
11202 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11203 (target_terminal_ours): Add argument.
11204 * target.c (debug_to_terminal_ours): Add argument.
11205 (update_current_target): Update.
11206 * remote.c (remote_terminal_ours): Add 'self' argument.
11207 (remote_close): Update.
11208 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11209 * inflow.c (terminal_ours): Add 'self' argument.
11210 * inferior.h (terminal_ours): Add 'self' argument.
11211 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11212
11213 2014-02-19 Pedro Alves <palves@redhat.com>
11214 Tom Tromey <tromey@redhat.com>
11215
11216 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11217 argument.
11218 (target_terminal_ours_for_output): Add argument.
11219 * target.c (debug_to_terminal_ours_for_output): Add argument.
11220 (update_current_target): Update.
11221 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11222 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11223 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11224
11225 2014-02-19 Tom Tromey <tromey@redhat.com>
11226
11227 * target.h (struct target_ops) <to_terminal_inferior>: Add
11228 argument.
11229 * target.c (target_terminal_inferior): Add argument.
11230 (update_current_target): Update.
11231 * remote.c (remote_terminal_inferior): Add 'self' argument.
11232 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11233 * inflow.c (terminal_inferior): Add 'self' argument.
11234 * inferior.h (terminal_inferior): Add 'self' argument.
11235 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11236 (go32_terminal_inferior): Add 'self' argument.
11237
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11241 (target_terminal_init): Add argument.
11242 * target.c (debug_to_terminal_init): Add argument.
11243 (update_current_target): Update.
11244 * inflow.c (terminal_init_inferior): Add 'self' argument.
11245 * inferior.h (terminal_init_inferior): Add 'self' argument.
11246 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11247 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11248
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11250
11251 * target.h (struct target_ops)
11252 <to_can_accel_watchpoint_condition>: Add argument.
11253 (target_can_accel_watchpoint_condition): Add argument.
11254 * target.c (debug_to_can_accel_watchpoint_condition): Add
11255 argument.
11256 (update_current_target): Update.
11257 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11258 'self' argument.
11259
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11261
11262 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11263 Add argument.
11264 (target_region_ok_for_hw_watchpoint): Add argument.
11265 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11266 (default_region_ok_for_hw_watchpoint): Add argument.
11267 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11268 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11269 argument.
11270 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11271 argument.
11272 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11273 argument.
11274 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11275 'self' argument.
11276 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11277 'self' argument.
11278 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11279 'self' argument.
11280 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11281 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11282 'self' argument.
11283 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11284 Add 'self' argument.
11285
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11289 argument.
11290 (target_insert_watchpoint): Add argument.
11291 * target.c (debug_to_insert_watchpoint): Add argument.
11292 (update_current_target): Update.
11293 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11294 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11295 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11296 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11297 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11298 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11299 argument.
11300 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11301 (procfs_insert_hw_watchpoint): Add 'self' argument.
11302 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11303 argument.
11304 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11305 argument.
11306 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11307 argument.
11308 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11309 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11310 argument.
11311 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11312 'self' argument.
11313
11314 2014-02-19 Tom Tromey <tromey@redhat.com>
11315
11316 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11317 argument.
11318 (target_remove_watchpoint): Add argument.
11319 * target.c (debug_to_remove_watchpoint): Add argument.
11320 (update_current_target): Update.
11321 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11322 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11323 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11324 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11325 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11326 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11327 argument.
11328 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11329 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11330 argument.
11331 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11332 argument.
11333 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11334 argument.
11335 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11336 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11337 argument.
11338 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11339 'self' argument.
11340
11341 2014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11344 argument.
11345 (target_remove_hw_breakpoint): Add argument.
11346 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11347 (update_current_target): Update.
11348 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11349 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11350 argument.
11351 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11352 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11353 argument.
11354 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11355 'self' argument.
11356
11357 2014-02-19 Tom Tromey <tromey@redhat.com>
11358
11359 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11360 argument.
11361 (target_insert_hw_breakpoint): Add argument.
11362 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11363 (update_current_target): Update.
11364 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11365 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11366 argument.
11367 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11368 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11369 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11370 argument.
11371 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11372 'self' argument.
11373
11374 2014-02-19 Tom Tromey <tromey@redhat.com>
11375
11376 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11377 argument.
11378 (target_can_use_hardware_watchpoint): Add argument.
11379 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11380 (update_current_target): Update.
11381 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11382 argument.
11383 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11384 argument.
11385 * remote.c (remote_check_watch_resources): Add 'self' argument.
11386 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11387 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11388 argument.
11389 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11390 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11391 argument.
11392 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11393 argument.
11394 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11395 argument.
11396 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11397 argument.
11398 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11399 argument.
11400 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11401 argument.
11402 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11403 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11404 argument.
11405 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11406 'self' argument.
11407
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11409
11410 * target.h (struct target_ops) <to_post_attach>: Add argument.
11411 (target_post_attach): Add argument.
11412 * target.c (debug_to_post_attach): Add argument.
11413 (update_current_target): Update.
11414 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11415 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11416 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11417 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11418 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11419
11420 2014-02-19 Tom Tromey <tromey@redhat.com>
11421
11422 * windows-nat.c (windows_close): Add 'self' argument.
11423 * tracepoint.c (tfile_close): Add 'self' argument.
11424 * target.h (struct target_ops) <to_close>: Add argument.
11425 * target.c (target_close): Add argument.
11426 (update_current_target): Update.
11427 * remote.c (remote_close): Add 'self' argument.
11428 * remote-sim.c (gdbsim_close): Add 'self' argument.
11429 * remote-mips.c (mips_close): Add 'self' argument.
11430 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11431 * record-full.c (record_full_close): Add 'self' argument.
11432 * record-btrace.c (record_btrace_close): Add 'self' argument.
11433 * monitor.h (monitor_close): Add 'self' argument.
11434 * monitor.c (monitor_close): Add 'self' argument.
11435 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11436 * linux-nat.c (linux_nat_close): Add argument.
11437 * go32-nat.c (go32_close): Add 'self' argument.
11438 * exec.c (exec_close_1): Add 'self' argument.
11439 * ctf.c (ctf_close): Add 'self' argument.
11440 * corelow.c (core_close): Add 'self' argument.
11441 (core_close_cleanup): Update.
11442 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11443 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11444
11445 2014-02-19 Tom Tromey <tromey@redhat.com>
11446
11447 * remote.c (remote_load): New function.
11448 (init_remote_ops): Use it.
11449
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11453 argument.
11454 * common/linux-btrace.h (linux_supports_btrace): Update.
11455 * remote.c (remote_supports_btrace): Add "self" argument.
11456 * target-delegates.c: Rebuild.
11457 * target.c (target_supports_btrace): Remove.
11458 * target.h (struct target_ops) <to_supports_btrace>: Add
11459 target_ops argument.
11460 (target_supports_btrace): New define.
11461
11462 2014-02-19 Tom Tromey <tromey@redhat.com>
11463
11464 * record-full.c (record_full_beneath_to_resume_ops)
11465 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11466 (record_full_beneath_to_wait)
11467 (record_full_beneath_to_store_registers_ops)
11468 (record_full_beneath_to_store_registers)
11469 (record_full_beneath_to_xfer_partial_ops)
11470 (record_full_beneath_to_xfer_partial)
11471 (record_full_beneath_to_insert_breakpoint_ops)
11472 (record_full_beneath_to_insert_breakpoint)
11473 (record_full_beneath_to_remove_breakpoint_ops)
11474 (record_full_beneath_to_remove_breakpoint)
11475 (record_full_beneath_to_stopped_by_watchpoint)
11476 (record_full_beneath_to_stopped_data_address)
11477 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11478 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11479 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11480 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11481 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11482 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11483 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11484 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11485 (record_full_resume, record_full_wait_1)
11486 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11487 (record_full_store_registers, record_full_xfer_partial)
11488 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11489 (record_full_async, record_full_core_xfer_partial): Use target
11490 delegation.
11491 * target-delegates.c: Rebuild.
11492 * target.c (current_xfer_partial): Remove.
11493 (update_current_target): Do not INHERIT or de_fault
11494 to_insert_breakpoint, to_remove_breakpoint,
11495 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11496 to_is_async_p, to_async. Do not set to_xfer_partial field.
11497 (default_xfer_partial): Simplify.
11498 (current_xfer_partial): Remove.
11499 (target_wait, target_resume): Simplify.
11500 (find_default_can_async_p, find_default_is_async_p): Update.
11501 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11502 to_xfer_partial, to_stopped_by_watchpoint,
11503 to_stopped_data_address.
11504 (target_store_registers): Simplify.
11505 (forward_target_remove_breakpoint)
11506 (forward_target_insert_breakpoint): Remove.
11507 (target_remove_breakpoint, target_insert_breakpoint)
11508 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11509 * target.h (struct target_ops) <to_resume, to_wait,
11510 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11511 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11512 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11513 markup.
11514 (forward_target_remove_breakpoint)
11515 (forward_target_insert_breakpoint): Remove.
11516 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11517 directly.
11518 (record_btrace_insert_breakpoint): Delegate directly.
11519
11520 2014-02-19 Tom Tromey <tromey@redhat.com>
11521
11522 PR build/7701:
11523 * target-delegates.c: New file.
11524 * target.c: Include target-delegates.c.
11525 (init_dummy_target): Call install_dummy_methods.
11526 (complete_target_initialization): Call install_delegators.
11527 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11528 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11529 * make-target-delegates: New file.
11530
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11532
11533 * record.c (find_record_target): Use find_target_at.
11534 * target.c (find_target_at): New function.
11535 * target.h (find_target_at): Declare.
11536
11537 2014-02-19 Tom Tromey <tromey@redhat.com>
11538
11539 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11540 Add 'ops' argument.
11541 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11542 'ops' argument.
11543 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11544 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11545 'ops' argument.
11546 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11547 argument.
11548 * linux-nat.c (save_sigtrap): Update.
11549 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11550 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11551 (linux_nat_close): Update.
11552 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11553 argument.
11554 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11555 argument.
11556 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11557 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11558 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11559 (tmp_to_async): Add 'ops' argument.
11560 (record_full_stopped_by_watchpoint, record_full_async)
11561 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11562 argument.
11563 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11564 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11565 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11566 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11567 (remote_is_async_p, remote_async): Add 'ops' argument.
11568 (remote_stopped_data_address): Update.
11569 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11570 * target.c (update_current_target)
11571 (find_default_can_async_p, find_default_is_async_p): Update.
11572 (init_dummy_target): Update.
11573 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11574 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11575 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11576 (target_can_async_p, target_is_async_p, target_async)
11577 (target_stopped_by_watchpoint): Update.
11578
11579 2014-02-19 Yao Qi <yao@codesourcery.com>
11580
11581 PR gdb/16220
11582 * gdbarch.sh: Remove startup_gdbarch.
11583 * gdbarch.c: Regenerated.
11584 * gdbarch.h: Likewise.
11585
11586 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11587
11588 * rl78-tdep.c (rl78_g10_register_name): New function.
11589 (rl78_return_value): Add g10 support.
11590 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11591 g10.
11592
11593 2014-02-17 Doug Evans <xdje42@gmail.com>
11594
11595 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11596 (SUBDIR_GUILE_SRCS): Ditto.
11597 (scm-gsmob.o): Ditto.
11598
11599 2014-02-17 Yao Qi <yao@codesourcery.com>
11600
11601 * gnu-nat.c (ILL_RPC): Declare defined function.
11602
11603 2014-02-17 Yao Qi <yao@codesourcery.com>
11604
11605 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11606 mach_msg_type_number_t.
11607 (gnu_write_inferior): Likewise.
11608
11609 2014-02-17 Yao Qi <yao@codesourcery.com>
11610
11611 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11612 in format string.
11613 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11614 (inf_validate_procs, inf_signal): Likewise.
11615 (S_exception_raise_request): Likewise.
11616 (do_mach_notify_dead_name): Likewise.
11617 (steal_exc_port): Likewise.
11618 (gnu_read_inferior): Change 'copy_count''s type to
11619 mach_msg_type_number_t.
11620 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11621 format string.
11622
11623 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11624
11625 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11626 flag. Adjust all users; in particular...
11627 (gnu_wait): ..., don't decrement its value in here...
11628 (gnu_create_inferior): ..., and instead set the flag in here,
11629 around the startup_inferior call, and call that one with
11630 START_INFERIOR_TRAPS_EXPECTED.
11631
11632 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11633 (ILL_RPC): ... new macro.
11634 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11635 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11636 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11637 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11638 functions with ILL_RPC macro.
11639 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11640 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11641 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11642 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11643 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11644 (S_proc_getlogin_reply, S_proc_getsid_reply)
11645 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11646 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11647 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11648 (S_proc_getnports_reply, S_proc_is_important_reply)
11649 (S_proc_get_code_reply): New stub functions, generated with
11650 ILL_RPC macro.
11651
11652 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11653 collected the type check structures.
11654
11655 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11656
11657 2014-02-14 Doug Evans <dje@google.com>
11658
11659 * target.c (target_write_partial): Fix result type.
11660
11661 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11662
11663 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11664 the proper offsets to access fpregset_t.
11665
11666 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11667
11668 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11669 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11670 * h8300-tdep.c (setmachinelist): Remove global.
11671 * hppa-tdep.c (hppa_sigtramp): Remove global.
11672 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11673 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11674 * ravenscar-thread.c (update_target_observer): Remove global.
11675 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11676
11677 2014-02-12 Tom Tromey <tromey@redhat.com>
11678
11679 * common/rsp-low.c: Update comments.
11680 * common/rsp-low.h: Update comments.
11681
11682 2014-02-12 Tom Tromey <tromey@redhat.com>
11683
11684 * common/rsp-low.c (convert_ascii_to_int): Remove.
11685 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11686
11687 2014-02-12 Tom Tromey <tromey@redhat.com>
11688
11689 * common/rsp-low.h (unhexify): Don't declare.
11690 * common/rsp-low.c (unhexify): Remove.
11691
11692 2014-02-12 Tom Tromey <tromey@redhat.com>
11693
11694 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11695 * common/rsp-low.c (convert_int_to_ascii): Remove.
11696
11697 2014-02-12 Tom Tromey <tromey@redhat.com>
11698
11699 * common/rsp-low.h (hexify): Don't declare.
11700 * common/rsp-low.c (hexify): Remove.
11701
11702 2014-02-12 Tom Tromey <tromey@redhat.com>
11703
11704 * common/rsp-low.c (hexify): Never take strlen of argument.
11705
11706 2014-02-12 Tom Tromey <tromey@redhat.com>
11707
11708 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11709 * remote.c (extended_remote_run, remote_rcmd)
11710 (remote_download_trace_state_variable, remote_save_trace_data)
11711 (remote_set_trace_notes): Update.
11712 * tracepoint.c (encode_source_string, tfile_write_status)
11713 (tfile_write_uploaded_tsv): Update.
11714
11715 2014-02-12 Tom Tromey <tromey@redhat.com>
11716
11717 * tracepoint.c: Include rsp-low.h.
11718 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11719 * remote.c: Include rsp-low.h.
11720 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11721 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11722 (remote_unescape_input): Move to common/rsp-low.c.
11723 * common/rsp-low.h: New file.
11724 * common/rsp-low.c: New file.
11725 * Makefile.in (SFILES): Add common/rsp-low.c.
11726 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11727 (COMMON_OBS): Add rsp-low.o.
11728 (rsp-low.o): New target.
11729
11730 2014-02-12 Tom Tromey <tromey@redhat.com>
11731
11732 * utils.h: Include print-utils.h.
11733 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11734 (int_string, core_addr_to_string, core_addr_to_string_nz)
11735 (hex_string, hex_string_custom): Don't declare.
11736 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11737 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11738 (hex_string_custom, int_string, core_addr_to_string)
11739 (core_addr_to_string_nz, host_address_to_string): Move to
11740 common/print-utils.c.
11741 * common/print-utils.h: New file.
11742 * common/print-utils.c: New file
11743 * Makefile.in (SFILES): Add common/print-utils.c.
11744 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11745 (COMMON_OBS): Add print-utils.o.
11746 (print-utils.o): New target.
11747
11748 2014-02-12 Tom Tromey <tromey@redhat.com>
11749
11750 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11751
11752 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11753
11754 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11755
11756 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11757
11758 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11759 if a PT_IO ptrace request returns sucessfully but indicates that 0
11760 bytes were transferred.
11761
11762 2014-02-12 Pedro Alves <palves@redhat.com>
11763 Kevin Buettner <kevinb@redhat.com>
11764
11765 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11766 TYPE_INSTANCE_FLAG_CODE_SPACE.
11767
11768 2014-02-12 Pedro Alves <palves@redhat.com>
11769
11770 * h8300-tdep.c (pseudo_from_raw_register)
11771 (raw_from_pseudo_register): New functions.
11772 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11773 them.
11774
11775 2014-02-12 Pedro Alves <palves@redhat.com>
11776
11777 * h8300-tdep.c (h8300_register_sim_regno): New function.
11778 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11779 gdbarch_register_sim_regno hook.
11780
11781 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11782
11783 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11784
11785 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11786
11787 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11788
11789 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11790
11791 * obsd-tdep.h (obsd_init_abi): New prototype.
11792 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11793 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11794 (obsd_init_abi): New functions.
11795 * i386obsd-tdep.c: Include "obsd-tdep.h".
11796 (i386obsd_init_abi): Call obsd_init_abi.
11797 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11798 (amd64obsd_init_abi): Call obsd_init_abi.
11799 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11800 obsd-tdep.c to gdb_target_obs.
11801
11802 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11803
11804 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11805 double float arguments to 16-byte in the argument slots.
11806
11807 2014-02-11 Doug Evans <xdje42@gmail.com>
11808
11809 * configure.ac: Don't crash if pkg-config is not found and guile
11810 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11811 in guile checks.
11812 * configure: Regenerate.
11813
11814 2014-02-11 Yao Qi <yao@codesourcery.com>
11815
11816 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11817 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11818 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11819 * gnu-nat.c (gnu_xfer_memory): Likewise.
11820 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11821 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11822 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11823 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11824
11825 2014-02-11 Yao Qi <yao@codesourcery.com>
11826
11827 * target.h (enum target_xfer_error): Rename to ...
11828 (enum target_xfer_status): ... it. New. All users updated.
11829 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11830 New.
11831 (TARGET_XFER_STATUS_ERROR_P): New macro.
11832 (target_xfer_error_to_string): Remove declaration.
11833 (target_xfer_status_to_string): Declare.
11834 (target_xfer_partial_ftype): Adjust it.
11835 (struct target_ops) <to_xfer_partial>: Return
11836 target_xfer_status. Add argument xfered_len. Update
11837 comments.
11838 * target.c (target_xfer_error_to_string): Rename to ...
11839 (target_xfer_status_to_string): ... it. New. All callers
11840 updated.
11841 (target_read_live_memory): Likewise. Call target_xfer_partial
11842 instead of target_read.
11843 (memory_xfer_live_readonly_partial): Return
11844 target_xfer_status. Add argument xfered_len.
11845 (raw_memory_xfer_partial): Likewise.
11846 (memory_xfer_partial_1): Likewise.
11847 (memory_xfer_partial): Likewise.
11848 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11849 properly. Update debug message.
11850 (default_xfer_partial, current_xfer_partial): Likewise.
11851 (target_write_partial): Likewise.
11852 (target_read_partial): Likewise. All callers updated.
11853 (read_whatever_is_readable): Likewise.
11854 (target_write_with_progress): Likewise.
11855 (target_read_alloc_1): Likewise.
11856
11857 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11858 * auxv.c (procfs_xfer_auxv): Likewise.
11859 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11860 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11861 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11862 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11863 * corefile.c (read_memory): Adjust.
11864 * corelow.c (core_xfer_partial): Likewise.
11865 * ctf.c (ctf_xfer_partial): Likewise.
11866 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11867 updated.
11868 (darwin_xfer_partial): Likewise.
11869 * exec.c (section_table_xfer_memory_partial): Likewise. All
11870 callers updated.
11871 (exec_xfer_partial): Likewise.
11872 * exec.h (section_table_xfer_memory_partial): Update
11873 declaration.
11874 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11875 negative.
11876 (gnu_xfer_partial): Likewise.
11877 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11878 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11879 (ia64_hpux_xfer_solib_got): Likewise.
11880 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11881 type of 'partial_len' to ULONGEST.
11882 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11883 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11884 (linux_nat_xfer_partial): Likewise.
11885 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11886 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11887 * monitor.c (monitor_xfer_memory): Likewise.
11888 (monitor_xfer_partial): Likewise.
11889 * procfs.c (procfs_xfer_partial): Likewise.
11890 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11891 * record-full.c (record_full_xfer_partial): Likewise.
11892 (record_full_core_xfer_partial): Likewise.
11893 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11894 (gdbsim_xfer_partial): Likewise.
11895 * remote.c (remote_write_bytes_aux): Likewise. All callers
11896 updated.
11897 (remote_write_bytes, remote_read_bytes): Likewise. All
11898 callers updated.
11899 (remote_flash_erase): Likewise. All callers updated.
11900 (remote_write_qxfer): Likewise. All callers updated.
11901 (remote_read_qxfer): Likewise. All callers updated.
11902 (remote_xfer_partial): Likewise.
11903 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11904 (rs6000_xfer_shared_libraries): Likewise.
11905 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11906 (sol_thread_xfer_partial): Likewise.
11907 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11908 (sparc_xfer_partial): Likewise.
11909 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11910 updated.
11911 (spu_xfer_partial): Likewise.
11912 * spu-multiarch.c (spu_xfer_partial): Likewise.
11913 * tracepoint.c (tfile_xfer_partial): Likewise.
11914 * windows-nat.c (windows_xfer_memory): Likewise.
11915 (windows_xfer_shared_libraries): Likewise.
11916 (windows_xfer_partial): Likewise.
11917 * valprint.c: Replace 'target_xfer_error' with
11918 'target_xfer_status' in comments.
11919
11920 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11921
11922 Checked in by Joel Brobecker <brobecker@adacore.com>.
11923 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11924
11925 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11926
11927 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11928 function parameters.
11929
11930 2014-02-10 Will Newton <will.newton@linaro.org>
11931
11932 * elfread.c (elf_rel_plt_read): Look for a .got section if
11933 looking up .got.plt fails.
11934 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11935 on address passed to elf_gnu_ifunc_record_cache.
11936 (elf_gnu_ifunc_resolve_addr): Likewise.
11937 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11938
11939 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11940
11941 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11942 (X_RETTURN): New macro.
11943 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11944
11945 * sparc64-tdep.c (sparc64_init_abi): Hook
11946 sparc_in_function_epilogue_p.
11947
11948 2014-02-10 Gary Benson <gbenson@redhat.com>
11949
11950 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11951 Rename name_matcher to symbol_matcher.
11952
11953 2014-02-10 Gary Benson <gbenson@redhat.com>
11954
11955 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11956 Use expand_symtabs_file_matcher_ftype and
11957 expand_symtabs_symbol_matcher_ftype.
11958
11959 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11960
11961 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11962 (struct ada_symbol_cache): New.
11963 (ada_free_symbol_cache): Forward declare.
11964 (struct ada_pspace_data): New.
11965 (ada_pspace_data_handle): New static global.
11966 (get_ada_pspace_data, ada_pspace_data_cleanup)
11967 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11968 (cache_space, cache): Delete, now folded inside struct
11969 ada_pspace_data.
11970 (ada_get_symbol_cache): New function.
11971 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11972 implementation.
11973 (_initialize_ada_language): Remove initialization of cache_space.
11974 Move call to observer_attach_inferior_exit up, grouping it
11975 with the other observer registrations inside this function.
11976 Rename command to be more general. Add call to
11977 register_program_space_data_with_cleanup.
11978
11979 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11980
11981 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11982 ada_new_objfile_observer.
11983 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11984 (_initialize_tasks): Update uses of ada_new_objfile_observer
11985 and ada_tasks_normal_stop_observer.
11986
11987 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11988
11989 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11990 returned by the 'Length attribute to integer.
11991
11992 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11993
11994 * ada-lang.c (_initialize_ada_language): Initialize
11995 cache_space obstack.
11996
11997 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11998
11999 * ada-lang.c (HASH_SIZE): New macro.
12000 (struct cache_entry): New type.
12001 (cache_space, cache): New static globals.
12002 (ada_clear_symbol_cache, find_entry): New functions.
12003 (lookup_cached_symbol, cache_symbol): Implement.
12004 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12005 (_initialize_ada_language): Attach ada_new_objfile_observer
12006 and ada_free_objfile_observer.
12007
12008 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12009
12010 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12011 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12012 struct block * parameter.
12013 (ada_lookup_symbol_list_worker): Constify local variable "block".
12014 Remove cast which is no longer necessary.
12015
12016 2014-02-10 Doug Evans <xdje42@gmail.com>
12017
12018 Add Guile as an extension language.
12019 * NEWS: Mention Guile scripting.
12020 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12021 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12022 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12023 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12024 (CLIBS): Add GUILE_LIBS.
12025 (install-guile): New rule.
12026 (guile.o): New rule.
12027 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12028 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12029 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12030 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12031 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12032 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12033 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12034 * configure.ac: New option --with-guile.
12035 * configure: Regenerate.
12036 * config.in: Regenerate.
12037 * auto-load.c: Remove #include "python/python.h". Add #include
12038 "gdb/section-scripts.h".
12039 (source_section_scripts): Handle Guile scripts.
12040 (_initialize_auto_load): Add name of Guile objfile script to
12041 scripts-directory help text.
12042 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12043 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12044 (struct breakpoint): New member scm_bp_object.
12045 * defs.h (enum command_control_type): New value guile_control.
12046 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12047 "extension.h".
12048 (show_user): Update comment.
12049 (_initialize_cli_cmds): Update help text for "show user". Update help
12050 text for max-user-call-depth.
12051 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12052 "extension.h".
12053 (multi_line_command_p): Add guile_control.
12054 (print_command_lines): Handle guile_control.
12055 (execute_control_command, recurse_read_control_structure): Ditto.
12056 (process_next_line): Recognize "guile" commands.
12057 * disasm.c (gdb_disassemble_info): Make non-static.
12058 * disasm.h: #include "dis-asm.h".
12059 (struct gdbarch): Add forward decl.
12060 (gdb_disassemble_info): Declare.
12061 * extension.c: #include "guile/guile.h".
12062 (extension_languages): Add guile.
12063 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12064 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12065 * gdbtypes.c (get_unsigned_type_max): New function.
12066 (get_signed_type_minmax): New function.
12067 * gdbtypes.h (get_unsigned_type_max): Declare.
12068 (get_signed_type_minmax): Declare.
12069 * guile/README: New file.
12070 * guile/guile-internal.h: New file.
12071 * guile/guile.c: New file.
12072 * guile/guile.h: New file.
12073 * guile/scm-arch.c: New file.
12074 * guile/scm-auto-load.c: New file.
12075 * guile/scm-block.c: New file.
12076 * guile/scm-breakpoint.c: New file.
12077 * guile/scm-disasm.c: New file.
12078 * guile/scm-exception.c: New file.
12079 * guile/scm-frame.c: New file.
12080 * guile/scm-gsmob.c: New file.
12081 * guile/scm-iterator.c: New file.
12082 * guile/scm-lazy-string.c: New file.
12083 * guile/scm-math.c: New file.
12084 * guile/scm-objfile.c: New file.
12085 * guile/scm-ports.c: New file.
12086 * guile/scm-pretty-print.c: New file.
12087 * guile/scm-safe-call.c: New file.
12088 * guile/scm-string.c: New file.
12089 * guile/scm-symbol.c: New file.
12090 * guile/scm-symtab.c: New file.
12091 * guile/scm-type.c: New file.
12092 * guile/scm-utils.c: New file.
12093 * guile/scm-value.c: New file.
12094 * guile/lib/gdb.scm: New file.
12095 * guile/lib/gdb/boot.scm: New file.
12096 * guile/lib/gdb/experimental.scm: New file.
12097 * guile/lib/gdb/init.scm: New file.
12098 * guile/lib/gdb/iterator.scm: New file.
12099 * guile/lib/gdb/printing.scm: New file.
12100 * guile/lib/gdb/types.scm: New file.
12101 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12102 (VPATH): Add $(GUILE_SRCDIR).
12103 (GUILE_DIR): New variable.
12104 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12105 (all): Add stamp-guile dependency.
12106 (stamp-guile): New rule.
12107 (clean-guile, install-guile, uninstall-guile): New rules.
12108 (install-only): Add install-guile dependency.
12109 (uninstall): Add uninstall-guile dependency.
12110 (clean): Add clean-guile dependency.
12111
12112 2014-02-09 Doug Evans <xdje42@gmail.com>
12113
12114 Revert this patch (which I approved, mea culpa).
12115
12116 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12117
12118 * Makefile.in (all-lib): Remove.
12119 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12120
12121 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12122
12123 Fix Python stack corruption.
12124 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12125 gdb_py_longest.
12126
12127 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12128
12129 * Makefile.in (all-lib): Remove.
12130 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12131
12132 2014-02-07 Doug Evans <dje@google.com>
12133
12134 * extension-priv.h (extension_language_script_ops): Add comment.
12135 (extension_language_ops): Add comment.
12136 (active_ext_lang_state): Fix typo in comment.
12137
12138 2014-02-07 Pedro Alves <palves@redhat.com>
12139
12140 PR breakpoints/16292
12141 * infrun.c (handle_signal_stop) <signal arrives while stepping
12142 over a breakpoint>: Switch back to the stepping thread.
12143
12144 2014-02-07 Yao Qi <yao@codesourcery.com>
12145
12146 * target.c (target_xfer_partial): Return zero if LEN is zero.
12147
12148 2014-02-07 Yao Qi <yao@codesourcery.com>
12149
12150 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12151 (ld_so_xfer_auxv): Likewise.
12152 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12153 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12154 * corelow.c (core_xfer_partial): Likewise.
12155 * ctf.c (ctf_xfer_partial): Likewise.
12156 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12157 (darwin_xfer_partial): Likewise.
12158 * exec.c (exec_xfer_partial): Likewise.
12159 * gnu-nat.c (gnu_xfer_partial): Likewise.
12160 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12161 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12162 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12163 * linux-nat.c (linux_xfer_siginfo): Likewise.
12164 (linux_proc_xfer_spu): Likewise.
12165 * procfs.c (procfs_xfer_partial): Likewise.
12166 * record-full.c (record_full_xfer_partial): Likewise.
12167 (record_full_core_xfer_partial): Likewise.
12168 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12169 * remote.c (remote_write_qxfer): Likewise.
12170 (remote_write_qxfer, remote_read_qxfer): Likewise.
12171 (remote_xfer_partial): Likewise.
12172 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12173 (rs6000_xfer_shared_libraries): Likewise.
12174 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12175 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12176 (spu_xfer_partial): Likewise.
12177 * target.c (memory_xfer_partial_1): Likewise.
12178 * tracepoint.c (tfile_xfer_partial): Likewise.
12179 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12180 (windows_xfer_partial): Likewise.
12181
12182 2014-02-07 Yao Qi <yao@codesourcery.com>
12183
12184 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12185 comments.
12186 (core_xfer_shared_libraries_aix): Likewise.
12187 * gdbarch.c, gdbarch.h: Regenerated.
12188 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12189 ULONGEST. Change 'len_avail' type to ULONGEST.
12190 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12191 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12192 declaration.
12193 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12194
12195 2014-02-07 Yao Qi <yao@codesourcery.com>
12196
12197 * corefile.c (memory_error): Get 'exception' from ERR and pass
12198 'exception' to throw_error.
12199
12200 2014-02-06 Doug Evans <xdje42@gmail.com>
12201
12202 * configure.ac (libpython checking): Remove all but python.o from
12203 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12204 * configure: Regenerate.
12205
12206 * Makefile.in (SFILES): Add extension.c.
12207 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12208 (COMMON_OBS): Add extension.o.
12209 * extension.h: New file.
12210 * extension-priv.h: New file.
12211 * extension.c: New file.
12212
12213 * python/python-internal.h: #include "extension.h".
12214 (gdbpy_auto_load_enabled): Declare.
12215 (gdbpy_apply_val_pretty_printer): Declare.
12216 (gdbpy_apply_frame_filter): Declare.
12217 (gdbpy_preserve_values): Declare.
12218 (gdbpy_breakpoint_cond_says_stop): Declare.
12219 (gdbpy_breakpoint_has_cond): Declare.
12220 (void source_python_script_for_objfile): Delete.
12221 * python/python.c: #include "extension-priv.h".
12222 Delete inclusion of "observer.h".
12223 (extension_language_python): Moved here and renamed from
12224 script_language_python in py-auto-load.c.
12225 Redefined to be of type extension_language_defn.
12226 (python_extension_script_ops): New global.
12227 (python_extension_ops): New global.
12228 (struct python_env): New member previous_active.
12229 (restore_python_env): Call restore_active_ext_lang.
12230 (ensure_python_env): Call set_active_ext_lang.
12231 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12232 New arg extlang.
12233 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12234 New arg extlang.
12235 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12236 New arg extlang.
12237 (gdbpy_eval_from_control_command): Renamed from
12238 eval_python_from_control_command, made static. New arg extlang.
12239 (gdbpy_source_script) Renamed from source_python_script, made static.
12240 New arg extlang.
12241 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12242 result to int. New arg extlang.
12243 (gdbpy_source_objfile_script): Renamed from
12244 source_python_script_for_objfile, made static. New arg extlang.
12245 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12246 static. New args extlang, extlang_printers. Change result type to
12247 "void".
12248 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12249 static. New arg extlang. Rename arg printers to extlang_printers
12250 and change type to ext_lang_type_printers *.
12251 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12252 static. Replace argument arg with extlang, extlang_printers.
12253 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12254 (!HAVE_PYTHON, source_python_script): Delete.
12255 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12256 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12257 (!HAVE_PYTHON, start_type_printers): Delete.
12258 (!HAVE_PYTHON, apply_type_printers): Delete.
12259 (!HAVE_PYTHON, free_type_printers): Delete.
12260 (_initialize_python): Delete call to observer_attach_before_prompt.
12261 (finalize_python): Set/restore active extension language.
12262 (gdbpy_finish_initialization) Renamed from
12263 finish_python_initialization, made static. New arg extlang.
12264 (gdbpy_initialized): New function.
12265 * python/python.h: #include "extension.h". Delete #include
12266 "value.h", "mi/mi-cmds.h".
12267 (extension_language_python): Declare.
12268 (GDBPY_AUTO_FILE_NAME): Delete.
12269 (enum py_bt_status): Moved to extension.h and renamed to
12270 ext_lang_bt_status.
12271 (enum frame_filter_flags): Moved to extension.h.
12272 (enum py_frame_args): Moved to extension.h and renamed to
12273 ext_lang_frame_args.
12274 (finish_python_initialization): Delete.
12275 (eval_python_from_control_command): Delete.
12276 (source_python_script): Delete.
12277 (apply_val_pretty_printer): Delete.
12278 (apply_frame_filter): Delete.
12279 (preserve_python_values): Delete.
12280 (gdbpy_script_language_defn): Delete.
12281 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12282 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12283
12284 * auto-load.c: #include "extension.h".
12285 (GDB_AUTO_FILE_NAME): Delete.
12286 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12287 (script_language_gdb): Delete, moved to extension.c and renamed to
12288 extension_language_gdb.
12289 (source_gdb_script_for_objfile): Delete.
12290 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12291 (loaded_script): Change type of language member to
12292 struct extension_language_defn *.
12293 (init_loaded_scripts_info): Initialize
12294 unsupported_script_warning_printed.
12295 (maybe_add_script): Make static. Change type of language arg to
12296 struct extension_language_defn *.
12297 (clear_section_scripts): Reset unsupported_script_warning_printed.
12298 (auto_load_objfile_script_1): Rewrite to use extension language API.
12299 (auto_load_objfile_script): Make public. Remove support-compiled-in
12300 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12301 (source_section_scripts): Rewrite to use extension language API.
12302 (load_auto_scripts_for_objfile): Rewrite to use
12303 auto_load_scripts_for_objfile.
12304 (collect_matching_scripts_data): Change type of language member to
12305 struct extension_language_defn *.
12306 (auto_load_info_scripts): Change type of language arg to
12307 struct extension_language_defn *.
12308 (unsupported_script_warning_print): New function.
12309 (script_not_found_warning_print): Make static.
12310 (_initialize_auto_load): Rewrite construction of scripts-directory
12311 help.
12312 * auto-load.h (struct objfile): Add forward decl.
12313 (struct script_language): Delete.
12314 (struct auto_load_pspace_info): Add forward decl.
12315 (struct extension_language_defn): Add forward decl.
12316 (maybe_add_script): Delete.
12317 (auto_load_objfile_script): Declare.
12318 (script_not_found_warning_print): Delete.
12319 (auto_load_info_scripts): Update prototype.
12320 (auto_load_gdb_scripts_enabled): Declare.
12321 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12322 auto_load_python_scripts_enabled and made public.
12323 (script_language_python): Delete, moved to python.c.
12324 (gdbpy_script_language_defn): Delete.
12325 (info_auto_load_python_scripts): Update to use
12326 extension_language_python.
12327
12328 * breakpoint.c (condition_command): Replace call to
12329 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12330 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12331 with call to breakpoint_ext_lang_cond_says_stop.
12332 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12333 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12334 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12335 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12336 New arg slang.
12337 (local_setattro): Print name of extension language with existing
12338 stop condition.
12339
12340 * valprint.c (val_print, value_print): Update to call
12341 apply_ext_lang_val_pretty_printer.
12342 * cp-valprint.c (cp_print_value): Update call to
12343 apply_ext_lang_val_pretty_printer.
12344 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12345 (gdbpy_apply_val_pretty_printer): Renamed from
12346 apply_val_pretty_printer. New arg extlang.
12347 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12348
12349 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12350 extension language API.
12351 * cli/cli-script.c (execute_control_command): Update to call
12352 eval_ext_lang_from_control_command.
12353
12354 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12355 enum ext_lang_bt_status values. Update call to
12356 apply_ext_lang_frame_filter.
12357 (mi_cmd_stack_list_locals): Ditto.
12358 (mi_cmd_stack_list_args): Ditto.
12359 (mi_cmd_stack_list_variables): Ditto.
12360 * mi/mi-main.c: Delete #include "python/python-internal.h".
12361 Add #include "extension.h".
12362 (mi_cmd_list_features): Replace reference to python internal variable
12363 gdb_python_initialized with call to ext_lang_initialized_p.
12364
12365 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12366 Update to use enum ext_lang_frame_args. Update to call
12367 apply_ext_lang_frame_filter.
12368 * python/py-framefilter.c (extract_sym): Update to use enum
12369 ext_lang_bt_status.
12370 (extract_value, py_print_type, py_print_value): Ditto.
12371 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12372 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12373 (py_print_frame): Ditto.
12374 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12375 New arg extlang. Update to use enum ext_lang_bt_status.
12376
12377 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12378 finish_python_initialization. Replace with call to
12379 finish_ext_lang_initialization.
12380
12381 * typeprint.c (do_free_global_table): Update to call
12382 free_ext_lang_type_printers.
12383 (create_global_typedef_table): Update to call
12384 start_ext_lang_type_printers.
12385 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12386 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12387 (type_print_options): Change type of global_printers from "void *"
12388 to "struct ext_lang_type_printers *".
12389
12390 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12391 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12392 (gdbpy_preserve_values): Renamed from preserve_python_values.
12393 New arg extlang.
12394 (!HAVE_PYTHON, preserve_python_values): Delete.
12395
12396 * utils.c (quit_flag): Delete, moved to extension.c.
12397 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12398 extension.c.
12399
12400 * eval.c: Delete #include "python/python.h".
12401 * main.c: Delete #include "python/python.h".
12402
12403 * defs.h: Update comment.
12404
12405 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12406
12407 GDB 7.7 released.
12408
12409 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12410
12411 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12412 defined.
12413
12414 2014-02-05 Yao Qi <yao@codesourcery.com>
12415
12416 * remote.c (remote_pass_signals): Remove local 'buf' and use
12417 rs->buf.
12418 (remote_program_signals): Likewise.
12419
12420 2014-02-05 Yao Qi <yao@codesourcery.com>
12421
12422 * ctf.c: Include "inferior.h" and "gdbthread.h".
12423 (CTF_PID): A new macro.
12424 (ctf_open): Call inferior_appeared and add_thread_silent.
12425 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12426 (ctf_thread_alive): New function.
12427 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12428
12429 2014-02-05 Yao Qi <yao@codesourcery.com>
12430
12431 Revert this patch:
12432
12433 2013-05-24 Yao Qi <yao@codesourcery.com>
12434
12435 * tracepoint.c (TFILE_PID): Remove.
12436 (tfile_open): Don't add thread and inferior.
12437 (tfile_close): Don't set 'inferior_ptid'. Don't call
12438 exit_inferior_silent.
12439 (tfile_thread_alive): Remove.
12440 (init_tfile_ops): Don't set field 'to_thread_alive' of
12441 tfile_ops.
12442
12443 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12444
12445 * remote.c (remote_start_remote): Call remote_check_symbols even
12446 if only symbol-file (not file) has been given.
12447
12448 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12449
12450 * gdbarch.sh (skip_entrypoint): New callback.
12451 * gdbarch.c, gdbarch.h: Regenerate.
12452 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12453 * infrun.c (fill_in_stop_func): Likewise.
12454 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12455 (ppc_elfv2_elf_make_msymbol_special): New function.
12456 (ppc_elfv2_skip_entrypoint): Likewise.
12457 (ppc_linux_init_abi): Install them for ELFv2.
12458
12459 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12460
12461 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12462 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12463 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12464 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12465 structures returned in GPRs.
12466
12467 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12468
12469 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12470 offset to the stack parameter list for the ELFv2 ABI.
12471
12472 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12473
12474 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12475 set_gdbarch_convert_from_func_ptr_addr and
12476 set_gdbarch_elf_make_msymbol_special for ELFv1.
12477 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12478 function descriptors on ELFv1.
12479 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12480 set up r12 at function entry.
12481
12482 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12483
12484 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12485 (struct gdbarch_tdep): New member elf_abi.
12486
12487 * rs6000-tdep.c: Include "elf/ppc64.h".
12488 (rs6000_gdbarch_init): Detect ELF ABI version.
12489
12490 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12491
12492 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12493 within a register pair holding a DFP 128-bit value on little-endian.
12494 (ppc64_sysv_abi_return_value_base): Likewise.
12495 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12496 (dfp_pseudo_register_write): Likewise.
12497
12498 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12499
12500 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12501 offset on little-endian when passing _Decimal32.
12502 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12503
12504 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12505
12506 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12507 of the overlapped FP register within the VSX register on little-
12508 endian platforms.
12509 (efpr_pseudo_register_write): Likewise.
12510
12511 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12512
12513 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12514 offset on little-endian when passing small structures.
12515
12516 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12517
12518 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12519 (struct ppc64_sysv_argpos): New data structure.
12520 (ppc64_sysv_abi_push_float): Remove.
12521 (ppc64_sysv_abi_push_val): New function.
12522 (ppc64_sysv_abi_push_integer): Likewise.
12523 (ppc64_sysv_abi_push_freg): Likewise.
12524 (ppc64_sysv_abi_push_vreg): Likewise.
12525 (ppc64_sysv_abi_push_param): Likewise.
12526 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12527 (ppc64_sysv_abi_return_value_base): New function.
12528 (ppc64_sysv_abi_return_value): Refactor to use it.
12529
12530 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12531
12532 * NEWS: Document new target powerpc64le-*-linux*.
12533
12534 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12535
12536 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12537 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12538 core dumps.
12539 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12540 register set used in ELF core dumps. Add floating-point register set.
12541
12542 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12543
12544 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12545 dwarf2_to_gdb[] table using symbolic constants. Adjust
12546 penultimate entry from number representing the PC register
12547 to symbolic constant representing the MDR register. Add
12548 constant for the PC register to the end of the table.
12549
12550 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12551
12552 * bsd-kvm.c: Include <sys/param.h>
12553
12554 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12555
12556 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12557
12558 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12559
12560 * ada-lang.h (clear_ada_sym_cache): Delete.
12561
12562 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12563
12564 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12565
12566 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12567
12568 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12569 the sigreturn register save area only if the syscall is
12570 sigreturn.
12571
12572 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12573
12574 * valops.c (value_slice): Minor reformatting.
12575
12576 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12577
12578 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12579
12580 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12581
12582 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12583 New static globals.
12584 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12585 (ada_ignore_descriptive_types_p): New static global.
12586 (find_parallel_type_by_descriptive_type): Return immediately
12587 if ada_ignore_descriptive_types_p is set.
12588 (_initialize_ada_language): Register new commands "maintenance
12589 set ada", "maintenance show ada", "maintenance set ada
12590 ignore-descriptive-types" and "maintenance show ada
12591 ignore-descriptive-types".
12592 * NEWS: Add entry for new "maint ada set/show
12593 ignore-descriptive-types" commands.
12594
12595 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12596
12597 * record-btrace.c (record_btrace_close): Call btrace_teardown
12598 for all threads.
12599
12600 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12601
12602 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12603 "ui-out.h".
12604
12605 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12606
12607 * ada-typeprint (type_is_full_subrange_of_target_type):
12608 New function.
12609 (print_range): Add parameter bounds_prefered_p. If not set,
12610 try printing range types using the name of their base type.
12611 (print_range_type): Add parameter bounds_prefered_p.
12612 Use it in call to print_range.
12613 (print_array_type, ada_print_type): Update calls to print_range
12614 and print_range_type.
12615
12616 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12617
12618 * ada-typeprint.c (print_array_type, print_choices, print_range)
12619 (print_range_bound, print_dynamic_range_bound, print_range_type):
12620 Remove declaration.
12621
12622 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12623
12624 * ada-typeprint.c (print_range): Add missing empty line
12625 after local declaration.
12626
12627 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12628
12629 * ada-valprint.c (print_optional_low_bound): Get index_type's
12630 target type for as long as it is a TYPE_CODE_RANGE.
12631
12632 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12633
12634 * procfs.c (procfs_make_note_section): Remove assertion and
12635 associated comment.
12636
12637 2014-01-24 Yao Qi <yao@codesourcery.com>
12638
12639 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12640 * corelow.c (get_core_siginfo): Likewise.
12641
12642 2014-01-24 Yao Qi <yao@codesourcery.com>
12643
12644 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12645 ULONGEST. Don't check 'len' is negative.
12646 (remote_write_bytes): Change type of 'len' to ULONGEST.
12647
12648 2014-01-23 Tom Tromey <tromey@redhat.com>
12649
12650 PR python/16485:
12651 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12652 Handle exception from frame.block.
12653 (FrameVars.fetch_frame_locals): Likewise.
12654
12655 2014-01-23 Tom Tromey <tromey@redhat.com>
12656
12657 PR python/16487:
12658 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12659 on a NULL pointer. Move "goto error" to correct place.
12660
12661 2014-01-23 Tom Tromey <tromey@redhat.com>
12662
12663 PR python/16491:
12664 * python/py-framefilter.c (apply_frame_filter): Call
12665 ensure_python_env after computing gdbarch.
12666
12667 2014-01-23 Yao Qi <yao@codesourcery.com>
12668
12669 * target.c (raw_memory_xfer_partial): Change argument type
12670 from void * to gdb_byte *.
12671 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12672
12673 2014-01-22 Doug Evans <dje@google.com>
12674
12675 New gdbserver option --debug-format=timestamp.
12676 * NEWS: Mention it.
12677
12678 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12679
12680 * syscalls/s390x-linux.xml: New file.
12681 * syscalls/s390-linux.xml: New file.
12682 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12683 (XML_SYSCALL_FILENAME_S390X): Likewise.
12684 (op_svc): New enum value for SVC opcode.
12685 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12686 (s390_linux_get_syscall_number): New function.
12687 (s390_gdbarch_init): Register '*get_syscall_number' and the
12688 syscall xml file name.
12689 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12690 "s390-linux.xml" and "s390x-linux.xml".
12691 * NEWS: Announce new feature.
12692
12693 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12694
12695 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12696
12697 2014-01-22 Pedro Alves <palves@redhat.com>
12698
12699 * xtensa-config.c: Include defs.h.
12700
12701 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12702
12703 * common/common-utils.h: Add "ARI:" comment beside __func__
12704 reference.
12705
12706 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12707
12708 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12709 documentation a bit.
12710
12711 2014-01-21 Roland McGrath <mcgrathr@google.com>
12712
12713 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12714 * configure: Regenerate.
12715 * aclocal.m4: Regenerate.
12716 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12717 New substituted variables.
12718 (install-strip): New target.
12719 (INSTALL_SCRIPT): New substituted variable.
12720 (FLAGS_TO_PASS): Add it.
12721 (install-only): Use $(INSTALL_SCRIPT) rather than
12722 $(INSTALL_PROGRAM) for gcore.
12723
12724 2014-01-20 Tom Tromey <tromey@redhat.com>
12725
12726 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12727 together.
12728
12729 2014-01-20 Tom Tromey <tromey@redhat.com>
12730
12731 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12732 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12733 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12734 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12735 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12736 (struct cmd_list_element) <flags>: Remove.
12737 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12738 doc_allocated>: New fields.
12739 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12740 bitfields.
12741 * maint.c (maintenance_do_deprecate): Update.
12742 * top.c (execute_command): Update.
12743
12744 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12745
12746 * xtensa-linux-nat.c: Include asm/ptrace.h.
12747
12748 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12749
12750 * Makefile.in (SFILES): Add d-support.c.
12751 (COMMON_OBS): Add d-support.o.
12752 * d-lang.h (d_parse_symbol): Add comment, now defined in
12753 d-support.c.
12754 * d-lang.c (parse_call_convention)
12755 (parse_attributes, parse_function_types)
12756 (parse_function_args, parse_type, parse_identifier)
12757 (call_convention_p, d_parse_symbol): Move functions to ...
12758 * d-support.c: ... New file.
12759
12760 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12761
12762 * d-lang.h (d_parse_symbol): Add declaration.
12763 * d-lang.c (extract_identifiers)
12764 (extract_type_info): Remove functions.
12765 (parse_call_convention, parse_attributes)
12766 (parse_function_types, parse_function_args)
12767 (parse_type, parse_identifier, call_convention_p)
12768 (d_parse_symbol): New functions.
12769 (d_demangle): Use d_parse_symbol to demangle D symbols.
12770
12771 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12772
12773 * d-lang.h (struct builtin_d_type): New data type.
12774 (builtin_d_type): Add declaration.
12775 * d-lang.c (d_language_arch_info, build_d_types)
12776 (builtin_d_type): New functions.
12777 (enum d_primitive_types): New data type.
12778 (d_language_defn): Change c_language_arch_info to
12779 d_language_arch_info.
12780 (d_type_data): New static variable.
12781 (_initialize_d_language): Initialize d_type_data.
12782
12783 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12784
12785 * d-lang.h (d_main_name): Add declaration.
12786 * d-lang.c (d_main_name): New function.
12787 * symtab.c (find_main_name): Add call to d_main_name.
12788
12789 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12790
12791 * d-lang.c (d_language_defn): Change macro_expansion_c to
12792 macro_expansion_no.
12793
12794 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12795
12796 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12797
12798 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12799
12800 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12801 gdb_exception" declaration.
12802 * remote.c (getpkt_or_notif_sane): Likewise.
12803
12804 2014-01-17 Doug Evans <dje@google.com>
12805
12806 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12807 function, contents of dirnames_to_char_ptr_vec_append moved here.
12808 (delim_string_to_char_ptr_vec): New function.
12809 (dirnames_to_char_ptr_vec_append): Rewrite.
12810 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12811
12812 2014-01-17 Doug Evans <dje@google.com>
12813
12814 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12815 and moved here ...
12816 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12817 #include "common-utils.h".
12818 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12819 * common/vec.h (VEC_ASSERT_PASS): Update.
12820 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12821 (MACH_CHECK_ERROR): Update.
12822
12823 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12824
12825 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12826 comments.
12827 * gdbarch.h: Regenerate.
12828
12829 2014-01-16 Tom Tromey <tromey@redhat.com>
12830
12831 * value.c (struct value) <regnum>: Move earlier.
12832
12833 2014-01-16 Tom Tromey <tromey@redhat.com>
12834
12835 * remote.c (extended_remote_create_inferior): Rename from
12836 extended_remote_create_inferior_1. Add "ops" argument. Remove
12837 old implementation.
12838
12839 2014-01-16 Pedro Alves <palves@redhat.com>
12840
12841 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12842 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12843 the backchain.
12844
12845 2014-01-16 Doug Evans <dje@google.com>
12846
12847 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12848
12849 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12850
12851 * btrace.h (btrace_thread_flag): New.
12852 (struct btrace_thread_info) <flags>: New.
12853 * record-btrace.c (record_btrace_resume_thread)
12854 (record_btrace_find_thread_to_move, btrace_step_no_history)
12855 (btrace_step_stopped, record_btrace_start_replaying)
12856 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12857 (record_btrace_find_resume_thread): New.
12858 (record_btrace_resume, record_btrace_wait): Extend.
12859 (record_btrace_can_execute_reverse): New.
12860 (record_btrace_open): Fail in non-stop mode.
12861 (record_btrace_set_replay): Split into this, ...
12862 (record_btrace_stop_replaying): ... this, ...
12863 (record_btrace_clear_histories): ... and this.
12864 (init_record_btrace_ops): Init to_can_execute_reverse.
12865 * NEWS: Announce it.
12866
12867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12868
12869 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12870 (forward_target_decr_pc_after_break)
12871 (target_decr_pc_after_break): New.
12872 * target.c (forward_target_decr_pc_after_break)
12873 (target_decr_pc_after_break): New.
12874 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12875 instead of gdbarch_decr_pc_after_break.
12876 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12877 instead of gdbarch_decr_pc_after_break.
12878 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12879 instead of gdbarch_decr_pc_after_break.
12880 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12881 instead of gdbarch_decr_pc_after_break.
12882 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12883 instead of gdbarch_decr_pc_after_break.
12884 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12885 instead of gdbarch_decr_pc_after_break.
12886
12887 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12888
12889 * btrace.c: Include regcache.h.
12890 (btrace_add_pc): New.
12891 (btrace_enable): Call btrace_add_pc.
12892 (btrace_is_empty): New.
12893 * btrace.h (btrace_is_empty): New.
12894 * record-btrace.c (require_btrace, record_btrace_info): Call
12895 btrace_is_empty.
12896
12897 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12898
12899 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12900 Support delta reads.
12901 (linux_disable_btrace): Change return type.
12902 * common/linux-btrace.h (linux_read_btrace): Change parameters
12903 and return type to allow error reporting. Update users.
12904 (linux_disable_btrace): Change return type. Update users.
12905 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12906 New.
12907 (btrace_error): New.
12908 (btrace_block) <begin>: Comment on BEGIN == 0.
12909 * btrace.c (btrace_compute_ftrace): Start from the end of
12910 the current trace.
12911 (btrace_stitch_trace, btrace_clear_history): New.
12912 (btrace_fetch): Read delta trace, return if replaying.
12913 (btrace_clear): Move clear history code to btrace_clear_history.
12914 (parse_xml_btrace): Throw an error if parsing failed.
12915 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12916 and return type to allow error reporting.
12917 (target_read_btrace): Change parameters and return type to allow
12918 error reporting.
12919 * target.c (target_read_btrace): Update.
12920 * remote.c (remote_read_btrace): Support delta reads. Pass
12921 errors on.
12922 * NEWS: Announce it.
12923
12924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12925
12926 * record.h (record_btrace_frame_unwind)
12927 (record_btrace_tailcall_frame_unwind): New declarations.
12928 * dwarf2-frame: Include record.h
12929 (dwarf2_frame_cfa): Throw an error for btrace frames.
12930 * record-btrace.c: Include hashtab.h.
12931 (btrace_get_bfun_name): New.
12932 (btrace_call_history): Call btrace_get_bfun_name.
12933 (struct btrace_frame_cache): New.
12934 (bfcache): New.
12935 (bfcache_hash, bfcache_eq, bfcache_new): New.
12936 (btrace_get_frame_function): New.
12937 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12938 (record_btrace_frame_this_id): Compute own id.
12939 (record_btrace_frame_prev_register): Provide PC, throw_error
12940 for all other registers.
12941 (record_btrace_frame_sniffer): Detect btrace frames.
12942 (record_btrace_tailcall_frame_sniffer): New.
12943 (record_btrace_frame_dealloc_cache): New.
12944 (record_btrace_frame_unwind): Add new functions.
12945 (record_btrace_tailcall_frame_unwind): New.
12946 (_initialize_record_btrace): Allocate cache.
12947 * btrace.c (btrace_clear): Call reinit_frame_cache.
12948 * NEWS: Announce it.
12949
12950 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12951
12952 * record-btrace.c (record_btrace_set_replay)
12953 (record_btrace_goto_begin, record_btrace_goto_end)
12954 (record_btrace_goto): New.
12955 (init_record_btrace_ops): Initialize them.
12956 * NEWS: Announce it.
12957
12958 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12959
12960 * record-btrace.c (record_btrace_find_new_threads)
12961 (record_btrace_thread_alive): New.
12962 (init_record_btrace_ops): Initialize to_find_new_threads and
12963 to_thread_alive.
12964
12965 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12966
12967 * record-btrace.c (record_btrace_resume): New.
12968 (record_btrace_wait): New.
12969 (init_record_btrace_ops): Initialize to_wait and to_resume.
12970
12971 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12972
12973 * record-btrace.c (record_btrace_xfer_partial)
12974 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12975 (record_btrace_allow_memory_access): New.
12976 (init_record_btrace_ops): Initialize new methods.
12977 * target.c (raw_memory_xfer_partial): Bail out if target reports
12978 that this memory is not available.
12979
12980 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12981
12982 * target.h (target_ops) <to_insert_breakpoint>
12983 <to_remove_breakpoint>: Add target_ops parameter.
12984 (forward_target_insert_breakpoint): New.
12985 (forward_target_remove_breakpoint): New.
12986 (memory_remove_breakpoint, memory_insert_breakpoint):
12987 Add target_ops parameter.
12988 * target.c (target_insert_breakpoint): Split into this and ...
12989 (forward_target_insert_breakpoint): ... this.
12990 (target_remove_breakpoint): Split into this and ...
12991 (forward_target_remove_breakpoint): ... this.
12992 (debug_to_insert_breakpoint): Add target_ops parameter.
12993 Call forward_target_insert_breakpoint.
12994 (debug_to_remove_breakpoint): Add target_ops parameter.
12995 Call forward_target_remove_breakpoint.
12996 (update_current_target): Do not inherit or default to_insert_breakpoint
12997 and to_remove_breakpoint.
12998 * corelow.c (ignore): Add target_ops parameter.
12999 * exec.c (ignore): Add target_ops parameter.
13000 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13001 Add target_ops parameter.
13002 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13003 Add target_ops parameter.
13004 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13005 Add target_ops parameter.
13006 * record-full.c (record_full_beneath_to_insert_breakpoint)
13007 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13008 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13009 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13010 (record_full_core_remove_breakpoint): Add target_ops parameter.
13011 Update users.
13012 (record_full_beneath_to_insert_breakpoint_ops)
13013 (record_full_beneath_to_remove_breakpoint_ops)
13014 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13015 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13016 tmp_to_remove_breakpoint_ops,
13017 record_full_beneath_to_insert_breakpoint_ops, and
13018 record_full_beneath_to_remove_breakpoint_ops.
13019 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13020 (m32r_remove_breakpoint): Add target_ops parameter.
13021 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13022 Add target_ops parameter.
13023 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13024 Add target_ops parameter.
13025
13026 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13027 Markus Metzger <markus.t.metzger@intel.com>
13028
13029 * record-btrace.c: Include frame-unwind.h.
13030 (record_btrace_frame_unwind_stop_reason)
13031 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13032 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13033 New.
13034 (init_record_btrace_ops): Install it.
13035
13036 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13037
13038 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13039 get_prev_frame_1.
13040
13041 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13042
13043 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13044 earlier.
13045
13046 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13047
13048 * frame-unwind.c: Include target.h.
13049 (frame_unwind_try_unwinder): New function with code from ...
13050 (frame_unwind_find_by_frame): ... here. New variable
13051 unwinder_from_target, call also target_get_unwinder)
13052 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13053 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13054 * target.h (struct target_ops): New fields to_get_unwinder and
13055 to_get_tailcall_unwinder.
13056 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13057
13058 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13059
13060 * record-btrace.c (record_btrace_fetch_registers)
13061 (record_btrace_store_registers)
13062 (record_btrace_to_prepare_to_store): New.
13063 (init_record_btrace_ops): Add the above.
13064
13065 2014-01-16 Tom Tromey <tromey@redhat.com>
13066
13067 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13068 * target.h (struct target_ops) <to_prepare_to_store>: Add
13069 argument.
13070 (target_prepare_to_store): Add argument.
13071 * target.c (debug_to_prepare_to_store): Add argument.
13072 (update_current_target): Update.
13073 * remote.c (remote_prepare_to_store): Add 'self' argument.
13074 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13075 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13076 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13077 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13078 argument.
13079 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13080 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13081 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13082 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13083 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13084
13085 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13086
13087 * btrace.h (replay) <replay>: New.
13088 (btrace_is_replaying): New.
13089 * btrace.c (btrace_clear): Free replay iterator.
13090 (btrace_is_replaying): New.
13091 * record-btrace.c (record_btrace_is_replaying): New.
13092 (record_btrace_info): Print insn number if replaying.
13093 (record_btrace_insn_history): Start at replay position.
13094 (record_btrace_call_history): Start at replay position.
13095 (init_record_btrace_ops): Init to_record_is_replaying.
13096
13097 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13098
13099 * record-btrace.c (record_btrace_insn_history_range): Include
13100 end.
13101 (record_btrace_insn_history_from): Adjust range.
13102 (record_btrace_call_history_range): Include
13103 end.
13104 (record_btrace_call_history_from): Adjust range.
13105 * NEWS: Announce changes.
13106
13107 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13108
13109 * record.h (enum record_print_flag)
13110 <record_print_indent_calls>: New.
13111 * record.c (get_call_history_modifiers): Recognize /c modifier.
13112 (_initialize_record): Document /c modifier.
13113 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13114 Reorder fields. Optionally indent the function name. Update
13115 all users.
13116 * NEWS: Announce changes.
13117
13118 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13119
13120 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13121
13122 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13123
13124 * btrace.c (ftrace_new_function): Start counting at one.
13125 * record-btrace.c (record_btrace_info): Adjust number of calls
13126 and insns.
13127 * NEWS: Announce it.
13128
13129 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13130
13131 * record-btrace.c (btrace_call_history_insn_range): Print
13132 insn range as [begin, end].
13133
13134 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13135
13136 * btrace.h (struct btrace_func_link): New.
13137 (enum btrace_function_flag): New.
13138 (struct btrace_inst): Rename to ...
13139 (struct btrace_insn): ...this. Update all users.
13140 (struct btrace_func) <ibegin, iend>: Remove.
13141 (struct btrace_func_link): New.
13142 (struct btrace_func): Rename to ...
13143 (struct btrace_function): ...this. Update all users.
13144 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13145 (number, level, flags>: New.
13146 (struct btrace_insn_iterator): Rename to ...
13147 (struct btrace_insn_history): ...this.
13148 Update all users.
13149 (struct btrace_insn_iterator, btrace_call_iterator): New.
13150 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13151 (struct btrace_target_info) <begin, end, level>
13152 <insn_history, call_history>: New.
13153 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13154 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13155 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13156 (btrace_call_number, btrace_call_begin, btrace_call_end)
13157 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13158 (btrace_find_function_by_number, btrace_set_insn_history)
13159 (btrace_set_call_history): New.
13160 * btrace.c (btrace_init_insn_iterator)
13161 (btrace_init_func_iterator, compute_itrace): Remove.
13162 (ftrace_print_function_name, ftrace_print_filename)
13163 (ftrace_skip_file): Change
13164 parameter to const.
13165 (ftrace_init_func): Remove.
13166 (ftrace_debug): Use new btrace_function fields.
13167 (ftrace_function_switched): Also consider gaining and
13168 losing symbol information).
13169 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13170 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13171 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13172 New.
13173 (ftrace_new_function): Move. Remove debug print.
13174 (ftrace_update_lines, ftrace_update_insns): New.
13175 (ftrace_update_function): Check for call, ret, and jump.
13176 (compute_ftrace): Renamed to ...
13177 (btrace_compute_ftrace): ...this. Rewritten to compute call
13178 stack.
13179 (btrace_fetch, btrace_clear): Updated.
13180 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13181 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13182 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13183 (btrace_call_number, btrace_call_begin, btrace_call_end)
13184 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13185 (btrace_find_function_by_number, btrace_set_insn_history)
13186 (btrace_set_call_history): New.
13187 * record-btrace.c (require_btrace): Use new btrace thread
13188 info fields.
13189 (record_btrace_info, btrace_insn_history)
13190 (record_btrace_insn_history, record_btrace_insn_history_range):
13191 Use new btrace thread info fields and new iterator.
13192 (btrace_func_history_src_line): Rename to ...
13193 (btrace_call_history_src_line): ...this. Use new btrace
13194 thread info fields.
13195 (btrace_func_history): Rename to ...
13196 (btrace_call_history): ...this. Use new btrace thread info
13197 fields and new iterator.
13198 (record_btrace_call_history, record_btrace_call_history_range):
13199 Use new btrace thread info fields and new iterator.
13200
13201 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13202
13203 * frame.h (frame_id_build_unavailable_stack_special): New.
13204 * frame.c (frame_id_build_unavailable_stack_special): New.
13205
13206 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13207
13208 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13209 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13210 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13211 to gdbarch.
13212 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13213 (i386_insn_is_jump, i386_jmp_p): New.
13214 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13215 insn_is_jump to gdbarch.
13216 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13217 * gdbarch.h: Regenerated.
13218 * gdbarch.c: Regenerated.
13219 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13220 (default_insn_is_jump): New.
13221 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13222 (default_insn_is_jump): New.
13223
13224 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13225
13226 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13227 Change to ...
13228 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13229 (btrace_read_type) <btrace_read_new>: Change to ...
13230 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13231
13232 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13233
13234 * common/linux-btrace.c (linux_read_btrace): Free trace from
13235 previous iteration.
13236
13237 2014-01-15 Doug Evans <dje@google.com>
13238
13239 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13240 uint32_t.
13241
13242 2014-01-15 Tom Tromey <tromey@redhat.com>
13243
13244 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13245 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13246 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13247 (set_objfile_main_name): New function.
13248 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13249 language_of_main>: New fields.
13250 (set_objfile_main_name): Declare.
13251 * symtab.c (find_main_name): Loop over objfiles to find the main
13252 name and language.
13253 (set_main_name): Now static.
13254 (get_main_info): Add comment.
13255 * symtab.h (set_main_name): Don't declare.
13256
13257 2014-01-15 Tom Tromey <tromey@redhat.com>
13258
13259 * symtab.c (main_progspace_key): New global.
13260 (struct main_info): New.
13261 (name_of_main, language_of_main): Remove.
13262 (get_main_info, main_info_cleanup): New function.
13263 (set_main_name, main_name, main_language): Use get_main_info.
13264 (_initialize_symtab): Initialize main_progspace_key.
13265
13266 2014-01-15 Tom Tromey <tromey@redhat.com>
13267
13268 * dbxread.c (process_one_symbol): Update.
13269 * dwarf2read.c (read_partial_die): Update.
13270 * symfile.c (set_initial_language): Call main_language.
13271 * symtab.c (language_of_main): Now static.
13272 (set_main_name): Add 'lang' parameter.
13273 (find_main_name): Update.
13274 (main_language): New function.
13275 (symtab_observer_executable_changed): Update.
13276 * symtab.h (set_main_name): Update.
13277 (language_of_main): Remove.
13278 (main_language): Declare.
13279
13280 2014-01-15 Tom Tromey <tromey@redhat.com>
13281
13282 * symfile.c (init_entry_point_info): Use new "initialized" field.
13283 Update.
13284 * objfiles.h (struct entry_point) <initialized>: New field.
13285 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13286 (struct objfile) <ei>: ...here. Remove.
13287 * objfiles.c (entry_point_address_query): Update.
13288
13289 2014-01-15 Tom Tromey <tromey@redhat.com>
13290
13291 * objfiles.c (entry_point_address_query): Relocate entry point
13292 address.
13293 (objfile_relocate1): Do not relocate entry point address.
13294 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13295 <the_bfd_section_index>: New field.
13296 * symfile.c (init_entry_point_info): Find the entry point's
13297 section.
13298
13299 2014-01-15 Tom Tromey <tromey@redhat.com>
13300
13301 * solib-frv.c (enable_break): Use entry_point_address_query.
13302
13303 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13304
13305 * NEWS: Add note on improved process record-replay on
13306 arm*-linux* targets.
13307
13308 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13309
13310 * arm-tdep.c (enum arm_record_result): New enum.
13311 (arm_record_unsupported_insn): New function.
13312 (arm_record_coproc_data_proc): Removed.
13313 (thumb2_record_ld_st_multiple): New function.
13314 (thumb2_record_ld_st_dual_ex_tbb): New function.
13315 (thumb2_record_data_proc_sreg_mimm): New function.
13316 (thumb2_record_ps_dest_generic): New function.
13317 (thumb2_record_branch_misc_cntrl): New function.
13318 (thumb2_record_str_single_data): New function.
13319 (thumb2_record_ld_mem_hints): New function.
13320 (thumb2_record_ld_word): New function.
13321 (thumb2_record_lmul_lmla_div): New function.
13322 (thumb2_record_decode_insn_handler): New function.
13323 (decode_insn): Add thumb32 instruction handlers.
13324
13325 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13326
13327 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13328 (struct arm_linux_record_tdep): Declare.
13329 (arm_canonicalize_syscall): New function.
13330 (arm_all_but_pc_registers_record): New function.
13331 (arm_linux_syscall_record): New function.
13332 (arm_linux_init_abi): Add syscall recording constructs.
13333 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13334 decoding. (arm_record_coproc_data_proc): Update arm syscall
13335 decoding.
13336 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13337 <arm_syscall_record>: New field.
13338 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13339 gdb_target_obs.
13340
13341 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13342
13343 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13344 register for push instruction recording.
13345
13346 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13347
13348 * arm-tdep.c (thumb_record_misc): Update to correct logical
13349 error while recording ldm, ldmia and pop instructions.
13350
13351 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13352
13353 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13354
13355 2014-01-15 Pedro Alves <palves@redhat.com>
13356
13357 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13358 (go32_resume, go32_fetch_registers, store_register)
13359 (go32_store_registers, go32_prepare_to_store)
13360 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13361 (go32_create_inferior, go32_can_run, go32_terminal_init)
13362 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13363 declarations.
13364
13365 2014-01-15 Tom Tromey <tromey@redhat.com>
13366
13367 * target.h (async_callback_ftype): New typedef.
13368 (struct target_ops) <to_async>: Use it.
13369
13370 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13371
13372 * python/py-value.c (get_field_type): Remove unnecessary curly
13373 braces for single-statement if block.
13374
13375 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13376
13377 * python/py-type.c (convert_field): Add missing empty line
13378 after declarations.
13379
13380 2014-01-14 Doug Evans <dje@google.com>
13381
13382 * symfile.h (expand_symtabs_matching): Renamed from
13383 expand_partial_symbol_names. Update prototype.
13384 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13385 * symfile.c (expand_symtabs_matching): Renamed from
13386 expand_partial_symbol_names. New args file_matcher, kind.
13387 Rename arg fun to symbol_matcher.
13388 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13389 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13390 ada_expand_partial_symbol_name.
13391 (ada_make_symbol_completion_list): Update to call
13392 expand_symtabs_matching.
13393 (ada_add_global_exceptions): Call expand_symtabs_matching.
13394 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13395 call map_symbol_filenames.
13396 * symtab.c (sources_info): Update to call map_symbol_filenames.
13397 (search_symbols): Call expand_symtabs_matching.
13398 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13399 (default_make_symbol_completion_list_break_on): Update to call
13400 expand_symtabs_matching.
13401 (make_source_files_completion_list): Update to call
13402 map_symbol_filenames.
13403
13404 2014-01-14 Doug Evans <dje@google.com>
13405
13406 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13407 (expand_symtabs_symbol_matcher_ftype): New typedef.
13408 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13409 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13410 * symfile.c (expand_partial_symbol_names): Update to use
13411 expand_symtabs_symbol_matcher_ftype.
13412 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13413 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13414 Arg name_matcher renamed to symbol_matcher.
13415 * psymtab.c (recursively_search_psymtabs): Update to use
13416 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13417 sym_matcher.
13418 (expand_symtabs_matching_via_partial): Update to use
13419 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13420 Arg name_matcher renamed to symbol_matcher.
13421
13422 2014-01-14 Doug Evans <dje@google.com>
13423
13424 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13425 (map_partial_symbol_filenames): Ditto.
13426 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13427 (map_partial_symbol_filenames): Ditto.
13428 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13429 (map_partial_symbol_filenames): Ditto.
13430 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13431 (map_partial_symbol_filenames): Ditto.
13432 * symtab.c: Delete #include "psymtab.h".
13433
13434 2014-01-14 Pedro Alves <palves@redhat.com>
13435 Tom Tromey <tromey@redhat.com>
13436
13437 * infrun.c (use_displaced_stepping): Use find_record_target
13438 instead of RECORD_IS_USED.
13439 (adjust_pc_after_break): Use record_full_is_used instead of
13440 RECORD_IS_USED.
13441 * record-btrace.c (record_btrace_open): Call record_preopen
13442 instead of checking RECORD_IS_USED.
13443 * record-full.c (record_full_shortname)
13444 (record_full_core_shortname): New globals.
13445 (record_full_is_used): New function.
13446 (find_full_open): Call record_preopen instead of checking
13447 RECORD_IS_USED.
13448 (init_record_full_ops): Set the target's shortname to
13449 record_full_shortname.
13450 (init_record_full_core_ops): Set the target's shortname to
13451 record_full_core_shortname.
13452 * record-full.h (record_full_is_used): Declare.
13453 * record.c (find_record_target): Make extern.
13454 (record_preopen): New function.
13455 * record.h (RECORD_IS_USED): Delete macro.
13456 (find_record_target, record_preopen): Declare functions.
13457
13458 2014-01-14 Yao Qi <yao@codesourcery.com>
13459
13460 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13461 'len''s type to ULONGEST.
13462 (core_xfer_shared_libraries_aix): Likewise.
13463 * gdbarch.c, gdbarch.h: Regenerated.
13464 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13465 Change type of 'len' to ULONGEST.
13466 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13467 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13468
13469 2014-01-14 Yao Qi <yao@codesourcery.com>
13470
13471 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13472 type of 'len' to ULONGEST.
13473 (linux_xfer_osdata_processgroups): Likewise.
13474 (linux_xfer_osdata_threads): Likewise.
13475 (linux_xfer_osdata_fds): Likewise.
13476 (linux_xfer_osdata_isockets): Likewise.
13477 (linux_xfer_osdata_shm): Likewise.
13478 (linux_xfer_osdata_sem): Likewise.
13479 (linux_xfer_osdata_msg): Likewise.
13480 (linux_common_xfer_osdata): Likewise.
13481 (struct osdata_type) <getter>: Likewise.
13482 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13483 the declaration.
13484
13485 2014-01-14 Yao Qi <yao@codesourcery.com>
13486
13487 * target.h (target_xfer_partial_ftype): Update.
13488 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13489 ULONGEST.
13490 * aix-thread.c (aix_thread_xfer_partial): Change type of
13491 argument 'len' to ULONGEST.
13492 * auxv.c (procfs_xfer_auxv): Likewise.
13493 (ld_so_xfer_auxv): Likewise.
13494 (memory_xfer_auxv): Likewise.
13495 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13496 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13497 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13498 * corelow.c (core_xfer_partial): Likewise.
13499 * ctf.c (ctf_xfer_partial): Likewise.
13500 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13501 '%u'.
13502 (darwin_read_dyld_info): Likewise.
13503 (darwin_xfer_partial): Likewise.
13504 * exec.c (section_table_xfer_memory_partial): Likewise.
13505 (exec_xfer_partial): Likewise.
13506 * exec.h (section_table_xfer_memory_partial): Update
13507 declaration.
13508 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13509 instead of plongest.
13510 (gnu_xfer_partial): Likewise.
13511 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13512 (ia64_hpux_xfer_solib_got): Likewise.
13513 (ia64_hpux_xfer_partial): Likewise.
13514 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13515 * inf-ptrace.c (inf_ptrace_xfer_partial):
13516 * inf-ttrace.c (inf_ttrace_xfer_partial):
13517 * linux-nat.c (linux_xfer_siginfo): Likewise.
13518 (linux_nat_xfer_partial): Likewise.
13519 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13520 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13521 * monitor.c (monitor_xfer_memory): Likewise.
13522 (monitor_xfer_partial): Likewise.
13523 * procfs.c (procfs_xfer_partial): Likewise.
13524 * record-full.c (record_full_xfer_partial): Likewise.
13525 (record_full_core_xfer_partial): Likewise.
13526 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13527 instead of plongest.
13528 (gdbsim_xfer_partial): Likewise.
13529 * remote.c (remote_xfer_partial): Likewise.
13530 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13531 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13532 declaration.
13533 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13534 (rs6000_xfer_shared_libraries): Likewise.
13535 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13536 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13537 (sparc_xfer_partial): Likewise.
13538 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13539 (spu_xfer_partial): Likewise.
13540 * spu-multiarch.c (spu_xfer_partial): Likewise.
13541 * target.c (target_read_live_memory): Likewise.
13542 (memory_xfer_live_readonly_partial): Likewise.
13543 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13544 (target_xfer_partial, default_xfer_partial): Likewise.
13545 (current_xfer_partial): Likewise.
13546 * tracepoint.c (tfile_xfer_partial): Likewise.
13547 * windows-nat.c (windows_xfer_memory): Likewise. Call
13548 pulongest instead of plongest.
13549 (windows_xfer_partial): Likewise.
13550 (windows_xfer_shared_libraries): Likewise.
13551
13552 2014-01-14 Yao Qi <yao@codesourcery.com>
13553
13554 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13555 target_xfer_partial_ftype.
13556
13557 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13558
13559 PR python/15464
13560 PR python/16113
13561 * valops.c (value_struct_elt_bitpos): New function
13562 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13563 object to 'None' if the field name is an empty string ("").
13564 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13565 attribute to look for a field when 'name' is 'None'.
13566 (get_field_type): New function
13567
13568 2014-01-13 Doug Evans <dje@google.com>
13569
13570 PR symtab/16426
13571 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13572 (try_open_dwop_file): Ditto.
13573 * gdb_bfd.c: #include "vec.h".
13574 (bfdp): New typedef.
13575 (struct gdb_bfd_data): New member included_bfds.
13576 (gdb_bfd_unref): Unref all included bfds.
13577 (gdb_bfd_record_inclusion): New function.
13578 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13579
13580 2014-01-13 Tom Tromey <tromey@redhat.com>
13581
13582 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13583
13584 2014-01-13 Tom Tromey <tromey@redhat.com>
13585
13586 * defs.h (use_windows): Remove.
13587 * gdb.c (main): Update.
13588 * main.c (captured_main, gdb_main): Update.
13589 * main.h (struct captured_main_args) <use_windows>: Remove.
13590 * top.c (use_windows): Remove.
13591
13592 2014-01-13 Tom Tromey <tromey@redhat.com>
13593
13594 * defs.h (deprecated_flush_hook): Remove.
13595
13596 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13597
13598 PR threads/16216
13599 * linux-thread-db.c (try_thread_db_load): Add parameter
13600 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13601 (try_thread_db_load_from_pdir_1): Move it there from here.
13602 (try_thread_db_load_from_sdir): Update caller.
13603 (try_thread_db_load_from_dir): Move it there from here.
13604
13605 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13606
13607 * regformats/regdat.sh: Always rewrite the register file.
13608
13609 2014-01-13 Pedro Alves <palves@redhat.com>
13610
13611 * Makefile.in (CHECK_HEADERS): New variable.
13612 (check-headers:): New rule.
13613
13614 2014-01-13 Tom Tromey <tromey@redhat.com>
13615
13616 * cli/cli-setshow.c (do_set_command): Update.
13617 * defs.h (deprecated_set_hook): Remove.
13618 * top.c (deprecated_set_hook): Remove.
13619
13620 2014-01-13 Pedro Alves <palves@redhat.com>
13621
13622 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13623 the tracepoint if the PC is a pseudo-register.
13624
13625 2014-01-13 Tom Tromey <tromey@redhat.com>
13626
13627 * defs.h (XCALLOC): Remove.
13628 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13629 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13630 * dwarf2loc.c (allocate_piece_closure): Likewise.
13631 * elfread.c (elf_symfile_segments): Likewise.
13632 (elf_symfile_segments): Likewise.
13633 * gdbtypes.c (copy_type_recursive): Likewise.
13634 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13635 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13636 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13637 XCALLOC.
13638 * mt-tdep.c (mt_gdbarch_init): Likewise.
13639 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13640 XCALLOC.
13641 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13642 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13643 * registry.c (registry_alloc_data): Likewise.
13644 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13645 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13646 * serial.c (serial_fdopen_ops): Likewise.
13647 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13648 XCALLOC.
13649 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13650 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13651 not XCALLOC.
13652
13653 2014-01-13 Tom Tromey <tromey@redhat.com>
13654
13655 * defs.h (XMALLOC): Remove.
13656 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13657 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13658 * cli-out.c (struct ui_out *): Likewise.
13659 * cli/cli-dump.c (add_dump_command): Likewise.
13660 (add_dump_command): Likewise.
13661 * complaints.c (get_complaints): Likewise.
13662 (find_complaint): Likewise.
13663 * dwarf2-frame.c (execute_cfa_program): Likewise.
13664 * dwarf2read.c (abbrev_table_read_table): Likewise.
13665 * gdbarch.sh: Likewise.
13666 * gdbarch.c: Rebuild.
13667 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13668 * interps.c (interp_new): Likewise.
13669 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13670 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13671 * mi/mi-console.c (mi_console_file_new): Likewise.
13672 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13673 * mi/mi-out.c (mi_out_new): Likewise.
13674 * mi/mi-parse.c (mi_parse): Likewise.
13675 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13676 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13677 * observer.c (xalloc_observer_list_node): Likewise.
13678 * regcache.c (regcache_xmalloc_1): Likewise.
13679 * reggroups.c (reggroup_new): Likewise.
13680 (_initialize_reggroup): Likewise.
13681 * registry.c (register_data_with_cleanup): Likewise.
13682 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13683 * ser-base.c (serial_ttystate): Likewise.
13684 * ser-mingw.c (make_pipe_state): Likewise.
13685 * ser-pipe.c (pipe_open): Likewise.
13686 * serial.c (serial_open): Likewise.
13687 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13688 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13689 (tui_alloc_win_info): Likewise.
13690 (tui_add_content_elements): Likewise.
13691 * tui/tui-file.c (tui_file_new): Likewise.
13692 * tui/tui-out.c (tui_out_new): Likewise.
13693 * ui-file.c (mem_file_new): Likewise.
13694 * ui-out.c (push_level): Likewise.
13695 (make_cleanup_ui_out_end): Likewise.
13696 (append_header_to_list): Likewise.
13697 (ui_out_new): Likewise.
13698 * user-regs.c (user_reg_add_builtin): Likewise.
13699
13700 2014-01-13 Tom Tromey <tromey@redhat.com>
13701
13702 * defs.h (XZALLOC): Remove.
13703 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13704 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13705 (get_ada_tasks_inferior_data): Likewise.
13706 * auto-load.c (get_auto_load_pspace_data): Likewise.
13707 * auxv.c (get_auxv_inferior_data): Likewise.
13708 * bfd-target.c (target_bfd_reopen): Likewise.
13709 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13710 (deprecated_insert_raw_breakpoint): Likewise.
13711 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13712 * corelow.c (core_open): Likewise.
13713 * darwin-nat.c (darwin_check_new_threads): Likewise.
13714 (darwin_attach_pid): Likewise.
13715 * dummy-frame.c (dummy_frame_push): Likewise.
13716 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13717 * dwarf2loc.c (allocate_piece_closure): Likewise.
13718 * elfread.c (elf_symfile_segments): Likewise.
13719 * eval.c (ptrmath_type_p): Likewise.
13720 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13721 * gdbtypes.c (alloc_type_arch): Likewise.
13722 (alloc_type_instance): Likewise.
13723 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13724 * inf-child.c (inf_child_can_use_agent): Likewise.
13725 * inflow.c (get_inflow_inferior_data): Likewise.
13726 * infrun.c (save_infcall_suspend_state): Likewise.
13727 * jit.c (jit_reader_load): Likewise.
13728 (get_jit_objfile_data): Likewise.
13729 (get_jit_program_space_data): Likewise.
13730 (jit_object_open_impl): Likewise.
13731 (jit_symtab_open_impl): Likewise.
13732 (jit_block_open_impl): Likewise.
13733 (jit_frame_sniffer): Likewise.
13734 * linux-fork.c (add_fork): Likewise.
13735 * maint.c (make_command_stats_cleanup): Likewise.
13736 * objfiles.c (get_objfile_pspace_data): Likewise.
13737 * opencl-lang.c (struct lval_closure): Likewise.
13738 * osdata.c (osdata_start_osdata): Likewise.
13739 * progspace.c (new_address_space): Likewise.
13740 (add_program_space): Likewise.
13741 * remote-sim.c (get_sim_inferior_data): Likewise.
13742 * sh-tdep.c (sh_gdbarch_init): Likewise.
13743 * skip.c (Ignore): Likewise.
13744 (skip_delete_command): Likewise.
13745 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13746 (library_list_start_library): Likewise.
13747 (solib_aix_current_sos): Likewise.
13748 * solib-darwin.c (get_darwin_info): Likewise.
13749 (darwin_current_sos): Likewise.
13750 * solib-dsbt.c (get_dsbt_info): Likewise.
13751 * solib-ia64-hpux.c (new_so_list): Likewise.
13752 (ia64_hpux_get_solib_linkage_addr): Likewise.
13753 * solib-spu.c (append_ocl_sos): Likewise.
13754 (spu_current_sos): Likewise.
13755 * solib-svr4.c (get_svr4_info): Likewise.
13756 (svr4_keep_data_in_core): Likewise.
13757 (library_list_start_library): Likewise.
13758 (svr4_default_sos): Likewise.
13759 (svr4_read_so_list): Likewise.
13760 * solib-target.c (library_list_start_library): Likewise.
13761 (solib_target_current_sos): Likewise.
13762 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13763 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13764 * symfile.c (default_symfile_segments): Likewise.
13765 * target-descriptions.c (tdesc_data_init): Likewise.
13766 (tdesc_create_reg): Likewise.
13767 (struct tdesc_type *): Likewise.
13768 (tdesc_create_vector): Likewise.
13769 (tdesc_set_struct_size): Likewise.
13770 (struct tdesc_type *): Likewise.
13771 (tdesc_free_feature): Likewise.
13772 (tdesc_create_feature): Likewise.
13773 * windows-nat.c (windows_add_thread): Likewise.
13774 (windows_make_so): Likewise.
13775 * xml-support.c (gdb_xml_body_text): Likewise.
13776 (gdb_xml_create_parser_and_cleanup): Likewise.
13777 (xml_process_xincludes): Likewise.
13778 * xml-syscall.c (allocate_syscalls_info): Likewise.
13779 (syscall_create_syscall_desc): Likewise.
13780
13781 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13782
13783 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13784 function, with code from i386_stap_parse_special_token.
13785 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13786 (i386_stap_parse_special_token): Move code to the two functions
13787 above; simplify it.
13788
13789 2014-01-09 Pedro Alves <palves@redhat.com>
13790 Hui Zhu <hui@codesourcery.com>
13791
13792 PR gdb/16101
13793 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13794 bp_err_string. Don't mark the location shlib_disabled if the
13795 error thrown wasn't a generic or memory error. Catch errors
13796 thrown while inserting breakpoints in overlayed code. Output
13797 error message of software breakpoints.
13798 * remote.c (remote_insert_breakpoint): If this breakpoint has
13799 target-side commands but this stub doesn't support Z0 packets,
13800 throw NOT_SUPPORTED_ERROR error.
13801 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13802 * target.h (target_insert_breakpoint): Extend comment.
13803 (target_insert_hw_breakpoint): Add comment.
13804
13805 2014-01-08 Pedro Alves <palves@redhat.com>
13806
13807 * remote.c (remote_add_thread): Add threads silently if starting
13808 up.
13809 (remote_notice_new_inferior): If in all-stop, and starting up,
13810 don't call notice_new_inferior.
13811 (get_current_thread): New function, factored out from ...
13812 (add_current_inferior_and_thread): ... this. Adjust.
13813 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13814 found any thread, then select the remote's current thread as GDB's
13815 current thread too.
13816
13817 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13818
13819 * NEWS: Create a new section for the next release branch.
13820 Rename the section of the current branch, now that it has
13821 been cut.
13822
13823 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13824
13825 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13826 * version.in: Bump version to 7.7.50.DATE-cvs.
13827
13828 2014-01-08 Yao Qi <yao@codesourcery.com>
13829
13830 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13831 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13832 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13833
13834 2014-01-08 Yao Qi <yao@codesourcery.com>
13835
13836 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13837 return value of bfd_get_filename to symbol_file_add_from_bfd.
13838
13839 2014-01-08 Pierre Muller <muller@sourceware.org>
13840
13841 Fix PR16201.
13842 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13843 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13844 to prim_record_mininal_symbol_and_info.
13845 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13846 in call to prim_record_minimal_symbol_and_info.
13847 (read_pe_exported_syms): Set index field of section_data.
13848
13849 2014-01-07 Andrew Pinski <apinski@cavium.com>
13850
13851 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13852 * features/aarch64.c: Regenerate.
13853
13854 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13855
13856 * target.c (return_null): Define.
13857 (update_current_target): Use it instead of return_zero for
13858 functions that return a pointer.
13859
13860 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13861
13862 * source.c (add_path): Fix check for duplicated paths in the previously
13863 included paths.
13864
13865 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13866
13867 * ada-lang.c: Remove duplicated include statements.
13868 * alphabsd-nat.c: Ditto.
13869 * amd64-darwin-tdep.c: Ditto.
13870 * amd64fbsd-nat.c: Ditto.
13871 * auto-load.c: Ditto.
13872 * ax-gdb.c: Ditto.
13873 * breakpoint.c: Ditto.
13874 * dbxread.c: Ditto.
13875 * fork-child.c: Ditto.
13876 * gdb_usleep.c: Ditto.
13877 * i386-darwin-tdep.c: Ditto.
13878 * i386fbsd-nat.c: Ditto.
13879 * infcmd.c: Ditto.
13880 * inferior.c: Ditto.
13881 * jv-lang.c: Ditto.
13882 * linux-nat.c: Ditto.
13883 * linux-tdep.c: Ditto.
13884 * m68kbsd-nat.c: Ditto.
13885 * m68klinux-nat.c: Ditto.
13886 * microblaze-tdep.c: Ditto.
13887 * mips-linux-tdep.c: Ditto.
13888 * mn10300-tdep.c: Ditto.
13889 * nto-tdep.c: Ditto.
13890 * opencl-lang.c: Ditto.
13891 * osdata.c: Ditto.
13892 * printcmd.c: Ditto.
13893 * regcache.c: Ditto.
13894 * remote-m32r-sdi.c: Ditto.
13895 * remote.c: Ditto.
13896 * symfile.c: Ditto.
13897 * symtab.c: Ditto.
13898 * tilegx-linux-nat.c: Ditto.
13899 * tilegx-tdep.c: Ditto.
13900 * tracepoint.c: Ditto.
13901 * valops.c: Ditto.
13902 * vaxbsd-nat.c: Ditto.
13903 * windows-nat.c: Ditto.
13904 * xtensa-tdep.c: Ditto.
13905
13906 2014-01-07 Yao Qi <yao@codesourcery.com>
13907
13908 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13909
13910 2014-01-07 Yao Qi <yao@codesourcery.com>
13911 Joel Brobecker <brobecker@adacore.com>
13912
13913 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13914 (pdc_write_regs): Likewise.
13915 (fetch_regs_kernel_thread): Likewise.
13916 (store_regs_kernel_thread): Likewise.
13917
13918 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13919
13920 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13921 tagged type objects to their actual type.
13922
13923 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13924
13925 * ada-valprint.c (print_field_values): Add "language" parameter.
13926 Update calls to print_field_values and print_variant_part.
13927 Pass new parameter "language" in call to val_print instead
13928 of "current_language". Replace call to ada_val_print by call
13929 to val_print.
13930 (print_variant_part): Add "language" parameter.
13931 (ada_val_print_struct_union): Update call to print_field_values.
13932
13933 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13934
13935 * ada-valprint.c (ui_memcpy): Delete.
13936 (ada_print_floating): Update documentation. Add empty line
13937 between between function documentation and implementation.
13938 Delete variable "buffer". Use ui_file_xstrdup in place of
13939 ui_file_put. Minor adjustments following this change.
13940
13941 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13942
13943 * ada-valprint.c (ada_val_print_string): New function,
13944 extracted from ada_val_print_array.
13945 (ada_val_print_array): Replace extracted code by call
13946 to ada_val_print_string followed by a return. Move
13947 "else" branch to the function's top block.
13948
13949 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13950
13951 * ada-valprint.c (ada_val_print_array): Move implementation
13952 down. Rename parameter "offset" and "val" into "offset_aligned"
13953 and "original_value" respectively. Add parameter "offset".
13954
13955 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13956
13957 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13958 re-organizing the code. Change the "???" message printed
13959 when target type is a TYPE_CODE_UNDEF into
13960 "<ref to undefined type>".
13961
13962 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13963
13964 * ada-valprint.c (print_record): Delete, implementation inlined...
13965 (ada_val_print_struct_union): ... here. Remove call to
13966 ada_check_typedef in inlined implementation.
13967
13968 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13969
13970 * ada-valprint.c (ada_val_print_gnat_array): New function,
13971 extracted from ada_val_print_1;
13972 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13973 (ada_val_print_flt, ada_val_print_struct_union)
13974 (ada_val_print_ref): Likewise.
13975 (ada_val_print_1): Delete variables i and elttype.
13976 Replace extracted-out code by call to corresponding
13977 new functions.
13978
13979 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13980
13981 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13982
13983 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13984
13985 * ada-valprint.c (ada_val_print_1): Replace calls to
13986 ada_val_print_1 by calls to val_print.
13987
13988 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13989
13990 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13991 Update calls to self accordingly. Replace calls to c_val_print
13992 by calls to val_print.
13993
13994 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13995
13996 * ada-valprint.c (print_record): Delete declaration.
13997 (adjust_type_signedness, ada_val_print_1): Likewise.
13998 (ada_val_print): Move function implementation down.
13999 (print_variant_part, print_field_values, print_record):
14000 Move function implementation up.
14001
14002 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14003
14004 * python/py-type.c (typy_get_name): New function.
14005 (type_object_getset): Add entry for attribute "name".
14006 * NEWS: Add entry mentioning this new attribute.
14007
14008 2014-01-07 Yao Qi <yao@codesourcery.com>
14009
14010 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14011 statement.
14012
14013 2014-01-07 Yao Qi <yao@codesourcery.com>
14014
14015 * gnu-nat.c (info_port_rights): Add qualifier const to
14016 argument args.
14017
14018 2014-01-07 Yao Qi <yao@codesourcery.com>
14019
14020 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14021
14022 2014-01-07 Yao Qi <yao@codesourcery.com>
14023
14024 * gnu-nat.c (make_inf) Update declaration.
14025 (make_inf): Make it static.
14026 (inf_set_traced): Likewise.
14027 (inf_port_to_thread, inf_task_died_status): Likewise.
14028
14029 2014-01-07 Yao Qi <yao@codesourcery.com>
14030
14031 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14032
14033 2014-01-07 Yao Qi <yao@codesourcery.com>
14034
14035 * gnu-nat.c (_initialize_gnu_nat): Declare.
14036
14037 2014-01-07 Yao Qi <yao@codesourcery.com>
14038
14039 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14040 'enum bfd_endian'.
14041 (struct gdbarch_info) <byte_order>: Change type to
14042 'enum bfd_endian'.
14043 <byte_order_for_code>: Likewise.
14044 * gdbarch.c, gdbarch.h: Regenerated.
14045
14046 2014-01-06 Sasha Smundak <asmundak@google.com>
14047
14048 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14049
14050 2014-01-06 Tom Tromey <tromey@redhat.com>
14051
14052 * doublest.c (convert_doublest_to_floatformat): Use const, not
14053 CONST.
14054 * somread.c (som_symtab_read): Likewise.
14055
14056 2014-01-07 Hui Zhu <hui@codesourcery.com>
14057
14058 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14059 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14060 (gdb_bfd_fopen): Ditto.
14061 (gdb_bfd_openr): Ditto.
14062 (gdb_bfd_openw): Ditto.
14063 (gdb_bfd_openr_iovec): Ditto.
14064 (gdb_bfd_fdopenr): Ditto.
14065 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14066 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14067 with xstrdup.
14068 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14069 with xstrdup.
14070 * symfile-mem.c (symbol_file_add_from_memory): Removed
14071 gdb_bfd_stash_filename.
14072
14073 2014-01-03 Doug Evans <dje@google.com>
14074
14075 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14076 output.
14077
14078 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14079
14080 Update year range in copyright notice of all files.
14081
14082 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14083
14084 * top.c (print_gdb_version): Set copyright year to 2014.
14085
14086 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14087
14088 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14089
14090 For older changes see ChangeLog-2013.
14091 \f
14092 Local Variables:
14093 mode: change-log
14094 left-margin: 8
14095 fill-column: 74
14096 version-control: never
14097 coding: utf-8
14098 End:
This page took 0.358829 seconds and 4 git commands to generate.