varsize-limit error printing element of packed array...
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4a46959e
JB
12014-11-19 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (constrained_packed_array_type): Set the length
4 of the return array as if both bounds where zero if that
5 returned array's index type is dynamic.
6
2acf986b
YQ
72014-11-19 Yao Qi <yao@codesourcery.com>
8
9 * config/i386/go32.mh (CC): Remove.
10
439247b6
DE
112014-11-18 Doug Evans <xdje42@gmail.com>
12
13 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
14 updated.
15
4d663531
DE
162014-11-18 Doug Evans <xdje42@gmail.com>
17
18 * buildsym.c (buildsym_objfile): New static global.
19 (buildsym_comp_dir): New static global.
20 (finish_block_internal): Delete arg objfile. All callers updated.
21 (finish_block): Delete arg objfile. All callers updated.
22 (start_subfile): Delete arg dirname. All callers updated.
23 (patch_subfile_names): Update buildsym_comp_dir.
24 (get_macro_table): Delete arg objfile. All callers updated.
25 (start_symtab): New arg objfile. All callers updated.
26 Rename arg dirname to comp_dir.
27 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
28 (end_symtab_get_static_block): Delete arg objfile. All callers
29 updated.
30 (end_symtab_without_blockvector): Ditto.
31 (end_symtab_with_blockvector): Ditto.
32 (end_symtab_from_static_block): Ditto.
33 (end_symtab): Ditto.
34 (end_expandable_symtab): Ditto.
35 (augment_type_symtab): Ditto.
36 * coffread.c (coff_start_symtab): New arg objfile. All callers
37 updated.
38
8435453b
DE
392014-11-18 Doug Evans <xdje42@gmail.com>
40
41 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
42 updated.
43
ee6f8984
DE
442014-11-18 Doug Evans <xdje42@gmail.com>
45
46 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
47 symtab.dirname updated to use it.
48
eb822aa6
DE
492014-11-18 Doug Evans <xdje42@gmail.com>
50
51 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
52 symtab.objfile updated to use it.
53
98387a29
DE
542014-11-18 Doug Evans <xdje42@gmail.com>
55
56 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
57
aff08958
DE
582014-11-18 Doug Evans <xdje42@gmail.com>
59
60 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
61 SYMBOL_OBJFILE.
62 * findvar.c (default_read_var_value): Ditto.
63 * jv-lang.c (add_class_symtab_symbol): Ditto.
64 * parse.c (operator_check_standard): Ditto.
65 * printcmd.c (address_info): Ditto.
66 * symtab.c (fixup_symbol_section): Ditto.
67 (skip_prologue_sal): Ditto.
68 * tracepoint.c (scope_info): Ditto.
69 * valops.c (find_function_in_inferior): Ditto.
70 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
71 * python/py-symbol.c (set_symbol): Ditto.
72
7bab9b58
DE
732014-11-18 Doug Evans <xdje42@gmail.com>
74
75 * buildsym.c (main_subfile): New static global.
76 (free_subfiles_list): New function.
77 (start_symtab): Set main_subfile.
78 (restart_symtab): Replace init of subfiles, current_subfile with
79 call to free_subfiles_list.
80 (watch_main_source_file_lossage): Use main_subfile.
81 (reset_symtab_globals): Replace init of current_subfile with call
82 to free_subfiles_list.
83 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
84 functions, split out from ...
85 (end_symtab_from_static_block): ... here. Rewrite to call them.
86
f194fefb
DE
872014-11-18 Doug Evans <xdje42@gmail.com>
88
89 The result of symtab expansion is always a primary symtab.
90 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
91 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
92 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
93 (psymtab_to_symtab): Add comment and assert.
94 (map_matching_symbols_psymtab): Remove unnecessary test for
95 non-primary symtab.
96
34248c3a
DE
972014-11-15 Doug Evans <xdje42@gmail.com>
98
99 PR symtab/17559
100 * symtab.c (find_pc_line_symtab): New function.
101 * symtab.h (find_pc_line_symtab): Declare.
102 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
103 find_pc_symtab.
104 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
105 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
106 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
107 * tui/tui-win.c (make_visible_with_new_height): Ditto.
108 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
109 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
110
2097ae25
DE
1112014-11-15 Doug Evans <xdje42@gmail.com>
112
113 * symtab.c (expand_symtab_containing_pc): Renamed from
114 find_pc_sect_symtab_via_partial. All callers updated.
115
1ada499f
YQ
1162014-11-15 Yao Qi <yao@codesourcery.com>
117
118 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
119
355e2102
JB
1202014-11-14 Joel Brobecker <brobecker@adacore.com>
121
122 * common/common-defs.h: Move <stdarg.h> #include ahead of
123 <stdio.h> #include.
124
83030110
PA
1252014-11-14 Pedro Alves <palves@redhat.com>
126
127 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
128 [!PHONY_ICONV] (gdb_iconv): New function.
129 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
130
a8719064
DE
1312014-11-13 Doug Evans <dje@google.com>
132
133 PR symtab/17591
134 * dwarf2read.c (find_slot_in_mapped_hash): Handle
135 "(anonymous namespace)".
136
60f7655a
DE
1372014-11-13 Doug Evans <dje@google.com>
138
139 * dwarf2read.c (update_enumeration_type_from_children): Avoid
140 infinite loop.
141
5784b3ca
JK
1422014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
143
144 * NEWS (maint set target-async): Fix typo.
145
6218dc4b
PA
1462014-11-12 Pedro Alves <palves@redhat.com>
147
148 * infrun.c (enum infwait_states, infwait_state): Delete.
149
af48d08f
PA
1502014-11-12 Pedro Alves <palves@redhat.com>
151
152 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
153 Rewrite stepping over a permanent breakpoint.
154 (thread_still_needs_step_over, proceed): Don't set
155 stepping_over_breakpoint for permanent breakpoints.
156 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
157 single-step breakpoints out of the target on hardware step
158 targets.
159 (process_event_stop_test): If stepping a permanent breakpoint
160 doesn't hit the step-resume breakpoint, delete the step-resume
161 breakpoint.
162 (switch_back_to_stepped_thread): Also check if the stepped thread
163 has advanced already on hardware step targets.
164 (currently_stepping): Return true if the thread stepped a
165 breakpoint.
166
1a853c52
PA
1672014-11-12 Pedro Alves <palves@redhat.com>
168
169 Mark locations as permanent, not the whole breakpoint.
170 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
171 (mark_breakpoints_out): Don't mark permanent breakpoints as
172 uninserted.
173 (breakpoint_init_inferior): Use mark_breakpoints_out.
174 (breakpoint_here_p): Adjust.
175 (bpstat_stop_status, describe_other_breakpoints): Remove handling
176 of permanent breakpoints.
177 (make_breakpoint_permanent): Mark each location as permanent,
178 instead of marking the breakpoint.
179 (add_location_to_breakpoint): If the location is permanent, mark
180 it as such, and as inserted.
181 (init_breakpoint_sal): Don't make the breakpoint permanent here.
182 (bp_location_compare, update_global_location_list): Adjust.
183 (update_breakpoint_locations): Don't make the breakpoint permanent
184 here.
185 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
186 breakpoints.
187 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
188 (struct bp_location) <permanent>: New field.
189 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
190 reference to bp_permanent.
191
ae9bb220
PA
1922014-11-12 Pedro Alves <palves@redhat.com>
193
194 * arch-utils.c (default_skip_permanent_breakpoint): New function.
195 * arch-utils.h (default_skip_permanent_breakpoint): New
196 declaration.
197 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
198 Install default_skip_permanent_breakpoint as default method.
199 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
200 (i386_gdbarch_init): Don't install it.
201 * infrun.c (resume): Assume there's always a
202 gdbarch_skip_permanent_breakpoint implementation.
203 * gdbarch.h, gdbarch.c: Regenerate.
204
015de688
DC
2052014-11-11 Daniel Colascione <dancol@dancol.org>
206
207 Warn about cross-PID-namespace debugging.
208 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
209 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
210 * linux-thread-db.c (check_pid_namespace_match): New function.
211 (thread_db_inferior_created): Call it.
212
26a84859
DE
2132014-11-10 Doug Evans <xdje42@gmail.com>
214
215 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
216 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
217
712a2e6d
DE
2182014-11-10 Doug Evans <xdje42@gmail.com>
219
220 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
221
af3768e9
DE
2222014-11-10 Doug Evans <xdje42@gmail.com>
223
224 PR symtab/17564
225 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
226 (lookup_static_symbol): Move definition to new location and rewrite.
227 (lookup_symbol_in_objfile): New function.
228 (lookup_symbol_global_iterator_cb): Call it.
229
b1f28d99
UW
2302014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
231
232 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
233
b7a084be
PA
2342014-11-07 Pedro Alves <palves@redhat.com>
235
236 * infrun.c (process_event_stop_test) <subroutine check>: Don't
237 check if we did a "nexti" inside a prologue.
238 * symtab.c (in_prologue): Delete function.
239 * symtab.h (in_prologue): Delete declaration.
240
67be31e5
DE
2412014-11-06 Doug Evans <xdje42@gmail.com>
242
243 * symtab.h (lookup_global_symbol): Improve function comment.
244
08724ab7
DE
2452014-11-06 Doug Evans <xdje42@gmail.com>
246
247 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
248 All callers updated.
249 * symtab.h (lookup_global_symbol): Update decl.
250 (lookup_static_symbol): Move decl to better location.
251
d9060ba6
DE
2522014-11-06 Doug Evans <xdje42@gmail.com>
253
254 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
255
74016e12
DE
2562014-11-06 Doug Evans <xdje42@gmail.com>
257
258 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
259 All callers updated.
260 (lookup_symbol_in_all_objfiles): Renamed from
261 lookup_symbol_aux_symtabs. All callers updated.
262 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
263 All callers updated.
264 (lookup_symbol_in_objfile_symtabs): Renamed from
265 lookup_symbol_aux_objfile. All callers updated.
266
d1a2d36d
DE
2672014-11-06 Doug Evans <xdje42@gmail.com>
268
269 * symtab.c (lookup_symbol_in_block): Renamed from
270 lookup_symbol_aux_block. All callers updated.
271
24d864bb
DE
2722014-11-06 Doug Evans <xdje42@gmail.com>
273
274 * symtab.c (lookup_static_symbol): Renamed from
275 lookup_static_symbol_aux. All callers updated.
276 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
277 All callers updated.
278
358d6ab3
DE
2792014-11-06 Doug Evans <xdje42@gmail.com>
280
281 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
282 * block.c (block_lookup_symbol): Use it.
283 * cp-support.c (make_symbol_overload_list_block): Use it.
284 * symtab.c (iterate_over_symbols): Use it.
285
16b2eaa1
DE
2862014-11-06 Doug Evans <xdje42@gmail.com>
287
288 * symtab.c (lookup_block_symbol): Moved to ...
289 * block.c (block_lookup_symbol): ... here and renamed.
290 All callers updated.
291 * block.h (block_lookup_symbol): Declare.
292 * symtab.h (lookup_block_symbol): Delete.
293
2dd2cd1c
DE
2942014-11-06 Doug Evans <xdje42@gmail.com>
295
296 * ada-lang.c (ada_make_symbol_completion_list): Use
297 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
298 * symtab.c (lookup_objfile_from_block): Ditto.
299
d4c58915
DE
3002014-11-06 Doug Evans <xdje42@gmail.com>
301
302 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
303 TYPE_CODE_STRUCT.
304
9c1877ea
DE
3052014-11-06 Doug Evans <xdje42@gmail.com>
306
307 * objfiles.c (get_objfile_arch): Constify.
308 * objfiles.h (get_objfile_arch): Update prototype.
309 * solib.c (solib_global_lookup): Fetch arch from objfile,
310 not target_gdbarch.
311
426a4079
SL
3122014-11-06 Sandra Loosemore <sandra@codesourcery.com>
313
314 * nios2-tdep.c (wild_insn): Delete.
315 (profiler_insn, irqentry_insn): Delete.
316 (nios2_match_sequence): Delete.
317 (nios2_analyze_prologue): Update comments. Remove matching
318 of obsolete profiler_insn and irqentry_insn sequences.
319
ee11262d
AM
3202014-11-05 Alan Modra <amodra@gmail.com>
321
322 * charset.c (convert_between_encodings): Shrink obstack using
323 obstack_blank_fast.
324 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
325 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
326 to char* before doing pointer arithmetic.
ee11262d 327
c87e6d00
SM
3282014-11-04 Simon Marchi <simon.marchi@ericsson.com>
329
330 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
331
441ef17f
PA
3322014-11-04 Pedro Alves <palves@redhat.com>
333
334 * breakpoint.c (breakpoint_thread_match): Delete function.
335 * breakpoint.h (breakpoint_thread_match): Delete declaration.
336
e0f52461
SC
3372014-11-03 Siva Chandra Reddy <sivachandra@google.com>
338
339 PR c++/17494
340 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
341 the method args also under EVAL_SKIP when evaluating method
342 calls under EVAL_SKIP.
343
a0b4d890
YQ
3442014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
345
346 * dwarf2loc.c (read_pieced_value): Do big endian
347 processing only if gdb_regnum is not -1.
348 (write_pieced_value): Ditto.
349
3502014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
351
352 * arm-linux-tdep.c (arm_linux_init_abi): Use
353 info.byte_order_for_code to choose endianity of breakpoint
354 instructions snippets.
355
3562014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
357
358 * arm-tdep.c (extract_arm_insn): Use
359 gdbarch_byte_order_for_code to read arm instruction.
360
e82149ff
DE
3612014-11-02 Doug Evans <xdje42@gmail.com>
362
363 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
364
d7ee84f1
DE
3652014-11-02 Doug Evans <xdje42@gmail.com>
366
367 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
368 main_subfile before returning.
369
4f072d17
DE
3702014-10-31 Doug Evans <xdje42@gmail.com>
371
372 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
373 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
374
8301c89e
DE
3752014-10-31 Doug Evans <xdje42@gmail.com>
376
377 * valops.c (value_cast_pointers): Fix whitespace.
378 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
379 Ditto.
380
02be9a71
DE
3812014-10-30 Doug Evans <dje@google.com>
382
383 * NEWS: Mention ability add attributes to gdb.Objfile and
384 gdb.Progspace objects.
385 * python/py-objfile.c (objfile_object): New member dict.
386 (objfpy_dealloc): Py_XDECREF dict.
387 (objfpy_initialize): Initialize dict.
388 (objfile_getset): Add __dict__.
389 (objfile_object_type): Set tp_dictoffset member.
390 * python/py-progspace.c (progspace_object): New member dict.
391 (pspy_dealloc): Py_XDECREF dict.
392 (pspy_initialize): Initialize dict.
393 (pspace_getset): Add __dict__.
394 (pspace_object_type): Set tp_dictoffset member.
395
6427bef6
YQ
3962014-10-30 Yao Qi <yao@codesourcery.com>
397
398 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
399 replace '\\' with '\\\\'.
400
f60325be
JB
4012014-10-29 Joel Brobecker <brobecker@adacore.com>
402
403 GDB 7.8.1 released.
404
ab917dfb
PA
4052014-10-29 Pedro Alves <palves@redhat.com>
406
407 PR gdb/17408
408 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
409 instead of assuming a thread with a stepping range is always
410 stepping.
411
d3d4baed
PA
4122014-10-29 Pedro Alves <palves@redhat.com>
413
414 PR python/17372
415 * event-top.c (change_line_handler): Call
416 gdb_rl_callback_handler_remove instead of
417 rl_callback_handler_remove.
418 (callback_handler_installed): New global.
419 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
420 (gdb_rl_callback_handler_reinstall): New functions.
421 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
422 gdb_rl_callback_handler_install instead of
423 rl_callback_handler_remove and rl_callback_handler_install.
424 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
425 instead of rl_callback_handler_remove.
426 * event-top.h (gdb_rl_callback_handler_remove)
427 (gdb_rl_callback_handler_install)
428 (gdb_rl_callback_handler_reinstall): New declarations.
429 * infrun.c (reinstall_readline_callback_handler_cleanup): New
430 cleanup function.
431 (fetch_inferior_event): Install it.
432 * top.c (gdb_readline_wrapper_line) Call
433 gdb_rl_callback_handler_remove instead of
434 rl_callback_handler_remove.
435 (gdb_readline_wrapper_cleanup): Don't call
436 rl_callback_handler_install.
437
6e5d7f39
PA
4382014-10-29 Pedro Alves <palves@redhat.com>
439
440 * event-top.c (command_line_handler): Clear the first byte of
441 linebuffer, when it is first allocated.
442
551cb6a5
PA
4432014-10-29 Pedro Alves <palves@redhat.com>
444
445 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
446 TRY_CATCH.
447
1e1e619b
PA
4482014-10-29 Pedro Alves <palves@redhat.com>
449
450 PR tui/16138
451 PR tui/17519
452 * tui/tui-interp.c (tui_is_toplevel): Delete global.
453 (tui_allowed_p): Delete function.
454 * tui/tui.c: Include "interps.h".
455 (tui_enable): Don't use tui_allowed_p. Error out here with
456 detailed error messages if the TUI is the top level interpreter,
457 or if output is not a terminal. Use newterm instead of initscr,
458 and error out if initializing the terminal fails. Also error out if
459 the terminal doesn't support cursor addressing.
460 * tui/tui.h (tui_allowed_p): Delete declaration.
461
6041179a
JB
4622014-10-29 Joel Brobecker <brobecker@adacore.com>
463
464 * arm-tdep.c (arm_skip_stack_protector): Return early if
465 address loaded by first "ldr" instruction does not have
466 a corresponding minimal symbol. Update comment.
467
6ae274b7
YQ
4682014-10-29 Yao Qi <yao@codesourcery.com>
469
470 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
471 loaded address correctly of ldr instruction.
472
7f5ef605
PA
4732014-10-28 Pedro Alves <palves@redhat.com>
474
475 PR gdb/12623
476 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
477 field.
478 * infrun.c (resume) <stepping breakpoint instruction>: Set the
479 thread's stepped_breakpoint field. Skip if reverse debugging.
480 Add comment.
481 (init_thread_stepping_state, handle_signal_stop): Clear the
482 thread's stepped_breakpoint field.
483
7d1a114c
PA
4842014-10-27 Pedro Alves <palves@redhat.com>
485
486 * remote.c (remote_thread_alive): New, factored out from ...
487 (remote_thread_alive): ... this.
488 (remote_update_thread_list): Bail out before deleting threads if
489 the target returned an empty list, and, the current thread has a
490 magic/fake ptid.
491
e5f8a7cc
PA
4922014-10-27 Pedro Alves <palves@redhat.com>
493
494 * infrun.c (handle_signal_stop): Also skip handlers when a random
495 signal arrives while handling a "stepi" or a "nexti". Set the
496 thread's 'step_after_step_resume_breakpoint' flag.
497
71e396f9
LM
4982014-10-27 Luis Machado <lgustavo@codesourcery.com>
499
500 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
501 (arm_record_ld_st_imm_offset): Reimplement to cover all
502 load/store cases for ARM opcode 010.
503 (arm_record_ld_st_multiple): Reimplement to cover all
504 load/store cases for ARM opcode 100.
505
3aee438b
DE
5062014-10-26 Doug Evans <xdje42@gmail.com>
507
508 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
509
f88cb4b6
DE
5102014-10-26 Doug Evans <xdje42@gmail.com>
511
512 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
513 parameter "kind" to "block_index".
514 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
515 "block_index".
516 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
517
a023a30f
DE
5182014-10-26 Doug Evans <xdje42@gmail.com>
519
520 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
521
4c35218e
DE
5222014-10-26 Doug Evans <xdje42@gmail.com>
523
524 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
525 obstack_alloc.
526
f08e8df3
DE
5272014-10-26 Doug Evans <xdje42@gmail.com>
528
529 * parser-defs.h (block_found): Move decl from here ...
530 * symtab.h (block_found): ... to here.
531
cf901d3b
DE
5322014-10-26 Doug Evans <xdje42@gmail.com>
533
534 * symtab.h (struct field_of_this_result): Fix typo in comment.
535 (lookup_symbol_in_language): Move function comment here.
536 (lookup_symbol): Improve function comment.
537 (basic_lookup_symbol_nonlocal): Ditto.
538 (lookup_symbol_static, lookup_symbol_global): Ditto.
539 (lookup_symbol_aux_block): Ditto.
540 (lookup_language_this): Add function comment.
541 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
542 function comment.
543 (lookup_block_symbol): Improve function comment.
544 (lookup_struct): Fix capitalization in function comment.
545 (lookup_transparent_type): Add function comment.
546 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
547 Improve function comment.
548 (lookup_objfile_from_block): Add function comment.
549 * symtab.c (lookup_symbol_in_language): Update function comment.
550 (lookup_symbol, lookup_language_this): Ditto.
551 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
552 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
553 (basic_lookup_symbol_nonlocal): Ditto.
554 (lookup_symbol_static, lookup_symbol_global): Ditto.
555 (lookup_transparent_type, lookup_block_symbol): Ditto.
556
ff6c39cf
DE
5572014-10-25 Doug Evans <xdje42@gmail.com>
558
559 * symtab.c (types_info): Delete forward decl.
560 (functions_info, variables_info, sources_info): Ditto.
561 (_initialize_symtab): Rewrite forward decl to use
562 initialize_file_ftype.
563
ec201f0c
DE
5642014-10-25 Doug Evans <xdje42@gmail.com>
565
566 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
567
ca040673
DE
5682014-10-25 Doug Evans <xdje42@gmail.com>
569
570 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
571 of local var child_die.
572
6f259a23
DB
5732014-10-24 Don Breazeal <donb@codesourcery.com>
574
575 * infrun.c (follow_fork_inferior): Update fork message printing
576 to use target_terminal_ours_for_output instead of
577 target_terminal_ours, to use _() for all format strings, to print
578 "vfork" instead of "fork" for vforks, and to add a detach message.
579 (handle_vfork_child_exec_or_exit): Update message printing to use
580 target_terminal_ours_for_output instead of target_terminal_ours, to
581 use _() for all format strings, and to fix some formatting.
582
09dd9a69
PA
5832014-10-24 Pedro Alves <palves@redhat.com>
584
585 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
586 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
587 * config/vax/vax.mh: Delete.
588 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
589 obsolete configurations section.
590 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
591 * vax-nat.c: Delete file.
592
5ab806de
PA
5932014-10-24 Pedro Alves <palves@redhat.com>
594
595 * NEWS (Removed targets): Add OS/arch column.
596
3433cfa5
SC
5972014-10-24 Siva Chandra Reddy <sivachandra@google.com>
598
599 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
600 on the arg type of a constructor only if it is of reference type.
601
96ba4233
SL
6022014-10-23 Sandra Loosemore <sandra@codesourcery.com>
603
604 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
605 accessors and constants from nios2 opcodes update.
606 (nios2_get_next_pc): Likewise.
607
28153fd3
DE
6082014-10-19 Doug Evans <xdje42@gmail.com>
609
610 * gdbthread.h (set_running): Fix comment.
611 (set_executing, finish_thread_state): Fix comment.
612
fc9b8e47
DE
6132014-10-18 Doug Evans <xdje42@gmail.com>
614
615 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
616
4ffbba72
DE
6172014-10-17 Doug Evans <dje@google.com>
618
619 * NEWS: Mention new event gdb.clear_objfiles.
620 * python/py-event.h (emit_clear_objfiles_event): Clear
621 * python/py-events.h (events_object): New member clear_objfiles.
622 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
623 event.
624 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
625 emit clear_objfiles event.
626 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
627 function.
628 (emit_clear_objfiles_event): New function.
629 (clear_objfiles): New event.
630 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
631 Declare.
632 * python/python.c (_initialize_python): Call
633 gdbpy_initialize_clear_objfiles_event.
634
d096d8c1
DE
6352014-10-17 Doug Evans <dje@google.com>
636
637 * NEWS: Mention new gdb.Objfile.progspace attribute.
638 * python/py-objfile.c (objfpy_get_progspace): New function.
639 (objfile_getset): New entry for "progspace".
640
6c4486e6
PA
6412014-10-17 Pedro Alves <palves@redhat.com>
642
643 PR gdb/17471
644 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
645 returns a copy of the input.
646 (run_command_1, continue_command, step_1, jump_command)
647 (signal_command, until_command, advance_command, finish_command)
648 (attach_command): Adjust and install a cleanup to free the
649 stripped args.
650
0ff33695
PA
6512014-10-17 Pedro Alves <palves@redhat.com>
652
653 PR gdb/17300
654 * infcmd.c (continue_1): If continuing all threads in the
655 foreground, make sure the inferior's terminal settings are put in
656 effect.
657
6fdebc3d
PA
6582014-10-17 Pedro Alves <palves@redhat.com>
659
660 PR gdb/17472
661 * annotate.c (annotate_breakpoints_invalid): Use
662 target_terminal_our_for_output instead of target_terminal_ours.
663 Give back the terminal to the target.
664 (annotate_frames_invalid): Likewise.
665
5842f62a
PA
6662014-10-17 Pedro Alves <palves@redhat.com>
667
668 * target.c (enum terminal_state): New enum.
669 (terminal_state): New global.
670 (target_terminal_init): New function.
671 (target_terminal_inferior): Skip if inferior already owns the
672 terminal.
673 (target_terminal_ours, target_terminal_ours_for_output): New
674 functions.
675 * target.h (target_terminal_init): Convert to function prototype.
676 (target_terminal_ours_for_output): Convert to function prototype
677 and tweak comment.
678 (target_terminal_ours): Convert to function prototype and tweak
679 comment.
680 * windows-nat.c (do_initial_windows_stuff): Call
681 target_terminal_init instead of child_terminal_init_with_pgrp.
682
32a8097b
PA
6832014-10-17 Pedro Alves <palves@redhat.com>
684
685 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
686 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
687 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
688 solib-osf.c.
689 * NEWS: Mention that support for alpha*-*-osf* has been removed.
690 * ada-lang.h [__alpha__ && __osf__]
691 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
692 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
693 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
694 GDB_OSABI_OSF1.
695 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
696 files.
697 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
698 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
699 * configure: Regenerate.
700 * configure.ac: Remove references to osf.
701 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
702 section. Remove all other references to osf.
703 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
704 Remove all other references to osf.
705 * dec-thread.c: Delete file.
706 * defs.h (GDB_OSABI_OSF1): Delete.
707 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
708 defined.
709 * osabi.c (gdb_osabi_names): Delete "OSF/1".
710 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
711 Delete code.
712 (unconditionally_kill_inferior)
713 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
714 * solib-osf.c: Delete file.
715
80134cf5
PA
7162014-10-17 Pedro Alves <palves@redhat.com>
717
718 * remote.c (clear_threads_listing_context): Move higher up, out of
719 the HAVE_LIBEXPAT guard.
720
89c7137f
TG
7212014-10-16 Tristan Gingold <gingold@adacore.com>
722
723 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
724 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
725 on amd64.
726
44ee4a52
PA
7272014-10-15 Pedro Alves <palves@redhat.com>
728
729 * dec-thread.c (dec_thread_count_gdb_threads)
730 (dec_thread_add_gdb_thread): Delete.
731 (dec_thread_update_thread_list): Delete.
732 (dec_thread_find_new_threads): Rename to ...
733 (dec_thread_update_thread_list): ... this. Delete GDB-size
734 threads that are no longer found in dec_thread_list.
735 (resync_thread_list): Delete.
736 (dec_thread_wait): Call dec_thread_update_thread_list instead of
737 resync_thread_list.
738
ab970af1
PA
7392014-10-15 Pedro Alves <palves@redhat.com>
740
741 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
742 * remote.c (remote_update_thread_list): Skip calling prune_threads
743 if any thread listing method is supported, and instead walk over
744 the set of remote threads listed, deleting those that are not
745 found in GDB's thread list.
746
e8032dde
PA
7472014-10-15 Pedro Alves <palves@redhat.com>
748
749 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
750 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
751 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
752 (bsd_uthread_target): Adjust.
753 * corelow.c (core_open): Adjust.
754 * dec-thread.c (dec_thread_find_new_threads): Update comment.
755 (dec_thread_update_thread_list): New function.
756 (init_dec_thread_ops): Adjust.
757 * gdbthread.h (prune_threads): New declaration.
758 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
759 (thread_db_update_thread_list): ... this. Call prune_threads.
760 (init_thread_db_ops): Adjust.
761 * nto-procfs.c (procfs_find_new_threads): Rename to ...
762 (procfs_update_thread_list): ... this. Call prune_threads.
763 (procfs_attach, procfs_create_inferior, init_procfs_targets):
764 Adjust.
765 * obsd-nat.c (obsd_find_new_threads): Rename to ...
766 (obsd_update_thread_list): ... this. Call prune_threads.
767 (obsd_add_target): Adjust.
768 * procfs.c (procfs_target): Adjust.
769 (procfs_notice_thread): Update comment.
770 (procfs_find_new_threads): Rename to ...
771 (procfs_update_thread_list): ... this. Call prune_threads.
772 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
773 comment.
774 (ravenscar_wait): Adjust.
775 (ravenscar_find_new_threads): Rename to ...
776 (ravenscar_update_thread_list): ... this. Call prune_threads.
777 (init_ravenscar_thread_ops): Adjust.
778 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
779 (record_btrace_update_thread_list): ... this. Adjust comment.
780 (init_record_btrace_ops): Adjust.
781 * remote.c (remote_threads_info): Rename to ...
782 (remote_update_thread_list): ... this. Call prune_threads.
783 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
784 Adjust.
785 * sol-thread.c (check_for_thread_db): Adjust.
786 (sol_find_new_threads_callback): Rename to ...
787 (sol_update_thread_list_callback): ... this.
788 (sol_find_new_threads): Rename to ...
789 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
790 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
791 * target-delegates.c: Regenerate.
792 * target.c (target_find_new_threads): Rename to ...
793 (target_update_thread_list): ... this.
794 * target.h (struct target_ops): Rename to_find_new_threads field
795 to to_update_thread_list.
796 (target_find_new_threads): Rename to ...
797 (target_update_thread_list): ... this.
798 * thread.c (prune_threads): Make extern.
799 (update_thread_list): Adjust.
800
6dc54d91
PA
8012014-10-15 Pedro Alves <palves@redhat.com>
802
803 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
804 Add describing comment. Return -1 if the qL packet is not
805 supported.
806 (struct thread_item, thread_item_t): Move higher up in
807 the file. Add comments.
808 (struct threads_parsing_context): Move higher up in
809 the file, add comments, and remote to ...
810 (struct threads_listing_context): ... this.
811 (remote_newthread_step): Don't add the thread to GDB's thread
812 database here. Instead push it to the thread_listing_context
813 list.
814 (remote_find_new_threads): Rename to ...
815 (remote_get_threads_with_ql): ... this. Add target_ops and
816 targets_listing_context parameters. Pass down context.
817 (start_thread): Adjust.
818 (clear_threads_parsing_context): Rename to ...
819 (clear_threads_listing_context): ... this.
820 (remote_get_threads_with_qxfer): New, with parts salvaged from old
821 remote_threads_info.
822 (remote_get_threads_with_qthreadinfo): Ditto.
823 (remote_threads_info): Reimplement.
824
36728e82
PA
8252014-10-15 Pedro Alves <palves@redhat.com>
826
827 * infrun.c (resume): Don't force displaced-stepping for all
828 single-steps on software single-stepping archs.
829
34b7e8a6
PA
8302014-10-15 Pedro Alves <palves@redhat.com>
831
832 * breakpoint.c (single_step_breakpoints): Delete global.
833 (insert_single_step_breakpoint): Adjust to store the breakpoint
834 pointer in the current thread.
835 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
836 (cancel_single_step_breakpoints): Delete functions.
837 (breakpoint_has_location_inserted_here): Make extern.
838 (single_step_breakpoint_inserted_here_p): Adjust to walk the
839 breakpoint list.
840 * breakpoint.h (breakpoint_has_location_inserted_here): New
841 declaration.
842 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
843 (cancel_single_step_breakpoints): Remove declarations.
844 * gdbthread.h (struct thread_control_state)
845 <single_step_breakpoints>: New field.
846 (delete_single_step_breakpoints)
847 (thread_has_single_step_breakpoints_set)
848 (thread_has_single_step_breakpoint_here): New declarations.
849 * infrun.c (follow_exec): Also clear the single-step breakpoints.
850 (singlestep_breakpoints_inserted_p, singlestep_ptid)
851 (singlestep_pc): Delete globals.
852 (infrun_thread_ptid_changed): Remove references to removed
853 globals.
854 (resume_cleanups): Delete the current thread's single-step
855 breakpoints.
856 (maybe_software_singlestep): Remove references to removed globals.
857 (resume): Adjust to use thread_has_single_step_breakpoints_set and
858 delete_single_step_breakpoints.
859 (init_wait_for_inferior): Remove references to removed globals.
860 (delete_thread_infrun_breakpoints): Delete the thread's
861 single-step breakpoints too.
862 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
863 single-step breakpoints here.
864 (delete_stopped_threads_single_step_breakpoints): New function.
865 (adjust_pc_after_break): Adjust to use
866 thread_has_single_step_breakpoints_set.
867 (handle_inferior_event): Remove references to removed globals.
868 Use delete_stopped_threads_single_step_breakpoints.
869 (handle_signal_stop): Adjust to per-thread single-step
870 breakpoints. Swap test order to do cheaper tests first.
871 (switch_back_to_stepped_thread): Extend debug output. Remove
872 references to removed globals.
873 * record-full.c (record_full_wait_1): Adjust to per-thread
874 single-step breakpoints.
875 * thread.c (delete_single_step_breakpoints)
876 (thread_has_single_step_breakpoints_set)
877 (thread_has_single_step_breakpoint_here): New functions.
878 (clear_thread_inferior_resources): Also delete the thread's
879 single-step breakpoints.
880
5b834a0a
PA
8812014-10-15 Pedro Alves <palves@redhat.com>
882
883 * thread.c (delete_thread_breakpoint): New function.
884 (delete_step_resume_breakpoint)
885 (delete_exception_resume_breakpoint): Use it.
886 (delete_at_next_stop): New function.
887 (clear_thread_inferior_resources): Use delete_at_next_stop.
888
a1fd2fa5
PA
8892014-10-15 Pedro Alves <palves@redhat.com>
890
891 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
892 (breakpoint_inserted_here_p): ... here. Remove special case for
893 software single-step breakpoints.
894 (find_non_raw_software_breakpoint_inserted_here): Inline ...
895 (software_breakpoint_inserted_here_p): ... here. Remove special
896 case for software single-step breakpoints.
897 (bp_target_info_copy_insertion_state)
898 (deprecated_insert_raw_breakpoint)
899 (deprecated_remove_raw_breakpoint): Delete functions.
900 * breakpoint.h (deprecated_insert_raw_breakpoint)
901 (deprecated_remove_raw_breakpoint): Remove declarations.
902
7c16b83e
PA
9032014-10-15 Pedro Alves <palves@redhat.com>
904
905 PR breakpoints/9649
906 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
907 Delete array globals.
908 (single_step_breakpoints): New global.
909 (breakpoint_xfer_memory): Remove special handling for single-step
910 breakpoints.
911 (update_breakpoints_after_exec): Delete bp_single_step
912 breakpoints.
913 (detach_breakpoints): Remove special handling for single-step
914 breakpoints.
915 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
916 (bpstat_stop_status): Add comment.
917 (bpstat_what, bptype_string, print_one_breakpoint_location)
918 (adjust_breakpoint_address, init_bp_location): Handle
919 bp_single_step.
920 (new_single_step_breakpoint): New function.
921 (set_momentary_breakpoint, bkpt_remove_location): Remove special
922 handling for single-step breakpoints.
923 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
924 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
925 Rewrite.
926 (detach_single_step_breakpoints, find_single_step_breakpoint):
927 Delete functions.
928 (breakpoint_has_location_inserted_here): New function.
929 (single_step_breakpoint_inserted_here_p): Rewrite.
930 * breakpoint.h: Remove FIXME.
931 (enum bptype) <bp_single_step>: New enum value.
932 (insert_single_step_breakpoint): Update comment.
933 * infrun.c (resume_cleanups)
934 (delete_step_thread_step_resume_breakpoint): Remove single-step
935 breakpoints.
936 (fetch_inferior_event): Install a cleanup that removes infrun
937 breakpoints.
938 (switch_back_to_stepped_thread) <expect thread advanced also>:
939 Clear step-over info.
940
0cbcdb96
PA
9412014-10-15 Pedro Alves <palves@redhat.com>
942
943 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
944 (delete_thread_infrun_breakpoints): New function, with parts
945 salvaged from delete_step_resume_breakpoint_callback.
946 (delete_step_thread_step_resume_breakpoint): Delete.
947 (for_each_just_stopped_thread_callback_func): New typedef.
948 (for_each_just_stopped_thread): New function.
949 (delete_just_stopped_threads_infrun_breakpoints): New function.
950 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
951 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
952 ... this. Adjust.
953 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
954
963f9c80
PA
9552014-10-15 Pedro Alves <palves@redhat.com>
956
957 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
958 trying to step past a non-steppable watchpoint.
959 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
960 field.
961 * infrun.c (struct step_over_info): Add new field
962 'nonsteppable_watchpoint_p' and adjust comments.
963 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
964 Adjust.
965 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
966 (stepping_past_nonsteppable_watchpoint): New function.
967 (step_over_info_valid_p): Also return true if stepping past a
968 nonsteppable watchpoint.
969 (proceed): Adjust call to set_step_over_info. Remove reference to
970 init_infwait_state.
971 (init_wait_for_inferior): Remove reference to init_infwait_state.
972 (waiton_ptid): Delete global.
973 (struct execution_control_state)
974 <stepped_after_stopped_by_watchpoint>: Delete field.
975 (wait_for_inferior, fetch_inferior_event): Always pass
976 minus_one_ptid to target_wait.
977 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
978 field.
979 (init_infwait_state): Delete function.
980 (handle_inferior_event): Remove infwait_state handling.
981 (handle_signal_stop) <watchpoints handling>: Adjust after
982 stepped_after_stopped_by_watchpoint removal. Don't remove
983 breakpoints here nor set infwait_state. Set the thread's
984 stepping_over_watchpoint flag, and call keep_going instead.
985 (keep_going): Handle stepping_over_watchpoint. Adjust
986 set_step_over_info calls.
987 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
988 function.
989
6cc83d2a
PA
9902014-10-15 Pedro Alves <palves@redhat.com>
991
992 * infrun.c (step_over_info_valid_p): New function.
993 (resume): Use step_over_info_valid_p instead of checking the
994 threads's trap_expected flag.
995
6979730b
DE
9962014-10-15 Doug Evans <dje@google.com>
997 Walfred Tedeschi <walfred.tedeschi@intel.com>
998
999 PR python/17364
1000 * python/lib/gdb/__init__.py (packages): Add "printer".
1001 * python/lib/gdb/command/bound_registers.py: Moved to ...
1002 * python/lib/gdb/printer/bound_registers.py: ... here.
1003 Add printer to global set of builtin printers. Rename printer from
1004 "bound" to "mpx_bound128".
1005 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1006 registered as global "builtin" printer.
1007 (add_builtin_pretty_printer): New function.
1008 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1009 gdb/printer/__init__.py.
1010
35a49624
IB
10112014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1012
1013 * Makefile.in (SFILES): Remove d-support.c.
1014 (COMMON_OBS): Remove d-support.o.
1015 * d-lang.h (d_parse_symbol): Remove declaration.
1016 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1017 * d-support.c: Remove file.
1018
8fa0c4f8
AA
10192014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1020
1021 * gdb/infrun.c (process_event_stop_test): Apply
1022 gdbarch_addr_bits_remove to longjmp resume address.
1023
3666da81
PA
10242014-10-15 Pedro Alves <palves@redhat.com>
1025
1026 * regformats/microblaze.dat: Delete file.
1027
449aa9df
AKA
10282014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1029
1030 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1031 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1032
ebb8ece2
SC
10332014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1034
1035 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1036 as non-trivial.
1037
82c48ac7
SC
10382014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1039
1040 PR c++/13403
1041 PR c++/15154
1042 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1043 with qualified args.
1044
c40cc657
JB
10452014-10-14 Joel Brobecker <brobecker@adacore.com>
1046
1047 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1048 of the case where the second operand is a pointer.
1049 <BINOP_SUB>: Likewise.
1050
0ea5cda8
SDJ
10512014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1052
1053 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1054 only if it is not NULL.
1055 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1056 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1057 (struct probe_ops) <clear_semaphore>: Likewise.
1058 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1059 not NULL.
1060 (stop_tracing): Likewise, for clear_semaphore.
1061
f7088df3
SDJ
10622014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1063
1064 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1065 using language_c, instead of current_language.
1066
4e1bbde0
DE
10672014-10-13 Doug Evans <dje@google.com>
1068
6ff5a0f6 1069 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1070 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1071 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1072 (pspy_new, pspace_to_pspace_object): Call it.
1073
c780cc2f
JK
10742014-10-13 Miroslav Franc <mfranc@redhat.com>
1075 Jan Kratochvil <jan.kratochvil@redhat.com>
1076
1077 Fix "save breakpoints" for "catch" command.
1078 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1079 newline.
1080
99894e11
JK
10812014-10-12 Miroslav Franc <mfranc@redhat.com>
1082
1083 Fix "save breakpoints" for "disable $bpnum" command.
1084 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1085
3831839c
PA
10862014-10-10 Pedro Alves <palves@redhat.com>
1087
1088 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1089 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1090 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1091 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1092 and been removed.
1093 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1094 * configure.ac: Remove references to IRIX.
1095 * configure.host: Add *-*-irix* to the obsolete hosts section.
1096 Remove all other references to irix.
1097 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1098 Delete files.
1099
cc3afae2
AKA
11002014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1101
1102 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1103 isn't valid, release the tdesc arch data and return NULL.
1104
cdfa0b0a
PA
11052014-10-10 Pedro Alves <palves@redhat.com>
1106
1107 * linux-tdep.c: Include observer.h.
1108 (linux_inferior_data): New global.
1109 (struct linux_info): New structure.
1110 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1111 (get_linux_inferior_data): New functions.
1112 (linux_vsyscall_range): Rename to ...
1113 (linux_vsyscall_range_raw): ... this.
1114 (linux_vsyscall_range): New function; handles caching.
1115 (_initialize_linux_tdep): Register linux_inferior_data. Install
1116 inferior_exit and inferior_appeared observers.
1117
8b9a549d
PA
11182014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1119 Pedro Alves <palves@redhat.com>
1120
1121 PR symtab/14466
1122 * solib-svr4.c (svr4_read_so_list): Rename to ...
1123 (svr4_current_sos_1): ... this and change the function comment.
1124 (svr4_current_sos): New function.
1125
3437254d
PA
11262014-10-10 Pedro Alves <palves@redhat.com>
1127
1128 * arch-utils.c (default_vsyscall_range): New function.
1129 * arch-utils.h (default_vsyscall_range): New declaration.
1130 * gdbarch.sh (vsyscall_range): New hook.
1131 * gdbarch.h, gdbarch.c: Regenerate.
1132 * linux-tdep.c (linux_vsyscall_range): New function.
1133 (linux_init_abi): Install linux_vsyscall_range as
1134 vsyscall_range gdbarch hook.
1135 * memrange.c (address_in_mem_range): New function.
1136 * memrange.h (address_in_mem_range): New declaration.
1137 * symfile-mem.c (find_vdso_size): Delete function.
1138 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1139
31cc0b80
PA
11402014-10-10 Pedro Alves <palves@redhat.com>
1141
1142 * infrun.c (normal_stop): Fix typo in comment.
1143
3e3286a2
SDJ
11442014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1145
1146 PR tdep/9390
1147 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1148 typo when using logical AND to determine instruction type.
1149
fcbdedf8
YQ
11502014-10-09 Yao Qi <yao@codesourcery.com>
1151
1152 * infrun.c (handle_signal_stop): Remove local variable
1153 'printed'.
1154
db984616
SS
11552014-10-08 Stan Shebs <stan@codesourcery.com>
1156
1157 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1158
3ba37e6c
GB
11592014-10-08 Gary Benson <gbenson@redhat.com>
1160
1161 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1162
a442d071
GB
11632014-10-08 Gary Benson <gbenson@redhat.com>
1164
1165 * common/common-defs.h: Include common-exceptions.h.
1166 * exceptions.h: Do not include common-exceptions.h.
1167
6f1947e8
GB
11682014-10-08 Gary Benson <gbenson@redhat.com>
1169
1170 * common/common-defs.h: Include cleanups.h.
1171 * common/common-exceptions.c: Do not include cleanups.h.
1172 * utils.h: Likewise.
1173
c765fdb9
GB
11742014-10-08 Gary Benson <gbenson@redhat.com>
1175
1176 * ada-lang.c: Do not include exceptions.h.
1177 * ada-valprint.c: Likewise.
1178 * amd64-tdep.c: Likewise.
1179 * auto-load.c: Likewise.
1180 * block.c: Likewise.
1181 * break-catch-throw.c: Likewise.
1182 * breakpoint.c: Likewise.
1183 * btrace.c: Likewise.
1184 * c-lang.c: Likewise.
1185 * cli/cli-cmds.c: Likewise.
1186 * cli/cli-interp.c: Likewise.
1187 * cli/cli-script.c: Likewise.
1188 * completer.c: Likewise.
1189 * corefile.c: Likewise.
1190 * corelow.c: Likewise.
1191 * cp-abi.c: Likewise.
1192 * cp-support.c: Likewise.
1193 * cp-valprint.c: Likewise.
1194 * darwin-nat.c: Likewise.
1195 * dwarf2-frame-tailcall.c: Likewise.
1196 * dwarf2-frame.c: Likewise.
1197 * dwarf2loc.c: Likewise.
1198 * dwarf2read.c: Likewise.
1199 * eval.c: Likewise.
1200 * event-loop.c: Likewise.
1201 * event-top.c: Likewise.
1202 * f-valprint.c: Likewise.
1203 * frame-unwind.c: Likewise.
1204 * frame.c: Likewise.
1205 * gdbtypes.c: Likewise.
1206 * gnu-v2-abi.c: Likewise.
1207 * gnu-v3-abi.c: Likewise.
1208 * guile/scm-auto-load.c: Likewise.
1209 * guile/scm-breakpoint.c: Likewise.
1210 * guile/scm-cmd.c: Likewise.
1211 * guile/scm-frame.c: Likewise.
1212 * guile/scm-lazy-string.c: Likewise.
1213 * guile/scm-param.c: Likewise.
1214 * guile/scm-symbol.c: Likewise.
1215 * guile/scm-type.c: Likewise.
1216 * hppa-hpux-tdep.c: Likewise.
1217 * i386-tdep.c: Likewise.
1218 * inf-loop.c: Likewise.
1219 * infcall.c: Likewise.
1220 * infcmd.c: Likewise.
1221 * infrun.c: Likewise.
1222 * interps.c: Likewise.
1223 * interps.h: Likewise.
1224 * jit.c: Likewise.
1225 * linespec.c: Likewise.
1226 * linux-nat.c: Likewise.
1227 * linux-thread-db.c: Likewise.
1228 * m32r-rom.c: Likewise.
1229 * main.c: Likewise.
1230 * memory-map.c: Likewise.
1231 * mi/mi-cmd-break.c: Likewise.
1232 * mi/mi-cmd-stack.c: Likewise.
1233 * mi/mi-interp.c: Likewise.
1234 * mi/mi-main.c: Likewise.
1235 * monitor.c: Likewise.
1236 * nto-procfs.c: Likewise.
1237 * objc-lang.c: Likewise.
1238 * p-valprint.c: Likewise.
1239 * parse.c: Likewise.
1240 * ppc-linux-tdep.c: Likewise.
1241 * printcmd.c: Likewise.
1242 * probe.c: Likewise.
1243 * python/py-auto-load.c: Likewise.
1244 * python/py-breakpoint.c: Likewise.
1245 * python/py-cmd.c: Likewise.
1246 * python/py-finishbreakpoint.c: Likewise.
1247 * python/py-frame.c: Likewise.
1248 * python/py-framefilter.c: Likewise.
1249 * python/py-function.c: Likewise.
1250 * python/py-gdb-readline.c: Likewise.
1251 * python/py-inferior.c: Likewise.
1252 * python/py-infthread.c: Likewise.
1253 * python/py-lazy-string.c: Likewise.
1254 * python/py-linetable.c: Likewise.
1255 * python/py-param.c: Likewise.
1256 * python/py-prettyprint.c: Likewise.
1257 * python/py-symbol.c: Likewise.
1258 * python/py-type.c: Likewise.
1259 * python/py-value.c: Likewise.
1260 * python/python-internal.h: Likewise.
1261 * python/python.c: Likewise.
1262 * record-btrace.c: Likewise.
1263 * record-full.c: Likewise.
1264 * regcache.c: Likewise.
1265 * remote-fileio.c: Likewise.
1266 * remote-mips.c: Likewise.
1267 * remote.c: Likewise.
1268 * rs6000-aix-tdep.c: Likewise.
1269 * rs6000-nat.c: Likewise.
1270 * skip.c: Likewise.
1271 * solib-darwin.c: Likewise.
1272 * solib-dsbt.c: Likewise.
1273 * solib-frv.c: Likewise.
1274 * solib-ia64-hpux.c: Likewise.
1275 * solib-spu.c: Likewise.
1276 * solib-svr4.c: Likewise.
1277 * solib.c: Likewise.
1278 * spu-tdep.c: Likewise.
1279 * stack.c: Likewise.
1280 * stap-probe.c: Likewise.
1281 * symfile-mem.c: Likewise.
1282 * symmisc.c: Likewise.
1283 * target.c: Likewise.
1284 * thread.c: Likewise.
1285 * top.c: Likewise.
1286 * tracepoint.c: Likewise.
1287 * tui/tui-interp.c: Likewise.
1288 * typeprint.c: Likewise.
1289 * utils.c: Likewise.
1290 * valarith.c: Likewise.
1291 * valops.c: Likewise.
1292 * valprint.c: Likewise.
1293 * value.c: Likewise.
1294 * varobj.c: Likewise.
1295 * windows-nat.c: Likewise.
1296 * xml-support.c: Likewise.
1297
484933d1
MR
12982014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1299
1300 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1301 name implies.
1302 (extended_mips16_next_pc): Update accordingly.
1303
ab50adb6
MR
13042014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1305
1306 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1307 function.
1308 (micromips_instruction_is_compact_branch): Likewise.
1309 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1310 or a compact jump, reaching a jump delay slot, or seeing a
1311 second non-prologue instruction.
1312 (micromips_scan_prologue): Also terminate scanning upon seeing a
1313 compact branch or jump, or reaching a branch or jump delay slot.
1314 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1315 or jump delay slot, or seeing a second non-prologue instruction.
1316 (mips32_instruction_has_delay_slot): Retain instruction
1317 examination code only, update arguments accordingly and move
1318 instruction fetch pieces to...
1319 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1320 (micromips_instruction_has_delay_slot): Likewise and to...
1321 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1322 (mips16_instruction_has_delay_slot): Likewise and to...
1323 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1324 (mips_single_step_through_delay): Update accordingly.
1325 (mips_adjust_breakpoint_address): Likewise.
1326
ae790652
MR
13272014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1328
1329 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1330 !mustbe32 also return 1 for 32-bit instructions.
1331 (mips16_instruction_has_delay_slot): Likewise. Add an
1332 explanatory comment.
1333
9b807e7b
MR
13342014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1335
1336 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1337 symbols special.
1338
0d5ed153
MR
13392014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1340
1341 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1342 update comments.
1343 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1344 for the breakpoint's address. Don't preinitialize `placed_size'.
1345 (insert_bp_location): Set `reqstd_address' rather than
1346 `placed_address'.
1347 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1348 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1349 address.
1350 (bkpt_remove_location): Likewise.
1351 (deprecated_insert_raw_breakpoint): Likewise.
1352 (deprecated_remove_raw_breakpoint): Likewise.
1353 (find_single_step_breakpoint): Likewise.
1354 * mem-break.c (default_memory_insert_breakpoint): Use
1355 `reqstd_address' for the breakpoint's address. Don't set
1356 `placed_address' or `placed_size' if breakpoint contents couldn't
1357 have been determined.
1358 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1359 the breakpoint's address.
1360 (remote_insert_hw_breakpoint): Likewise. Don't set
1361 `placed_address' or `placed_size' if breakpoint couldn't have been
1362 set.
1363 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1364 `reqstd_address' for the breakpoint's address.
1365 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1366 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1367 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1368 * microblaze-linux-tdep.c
1369 (microblaze_linux_memory_remove_breakpoint): Likewise.
1370 * monitor.c (monitor_insert_breakpoint): Likewise.
1371 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1372 (procfs_insert_hw_breakpoint): Likewise.
1373 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1374 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1375 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1376 * remote-mips.c (mips_insert_breakpoint): Likewise.
1377 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1378
3e871532
LM
13792014-10-03 Luis Machado <lgustavo@codesourcery.com>
1380
1381 * valops.c (value_assign): Check for bit field assignments
1382 before calling architecture-specific register value
1383 conversion functions.
1384
ec48dc8b
PM
13852014-10-03 Pierre Muller <muller@sourceware.org>
1386
1387 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1388
b57bacec
PA
13892014-10-02 Pedro Alves <palves@redhat.com>
1390
1391 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1392 threads_are_executing.
1393 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1394 describing comment.
1395 * gdbthread.h (threads_are_executing): Declare.
1396 (handle_signal_stop) <random signals>: Don't print about the
1397 signal here if stopping.
1398 (end_stepping_range): Don't notify observers here.
1399 (normal_stop): Update the thread list. If stopped by a random
1400 signal or a stepping range ended, notify observers.
1401 * thread.c (threads_executing): New global.
1402 (init_thread_list): Clear 'threads_executing'.
1403 (set_executing): Set or clear 'threads_executing'.
1404 (threads_are_executing): New function.
1405 (update_threads_executing): New function.
1406 (update_thread_list): Use it.
1407
13fd3ff3
PA
14082014-10-02 Pedro Alves <palves@redhat.com>
1409
1410 PR breakpoints/17431
1411 * breakpoint.c (update_breakpoints_after_exec): Don't create
1412 overlay, longjmp, std terminate nor exception breakpoints here.
1413
32990ada
PA
14142014-10-02 Pedro Alves <palves@redhat.com>
1415
1416 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1417 Adjust comments.
1418 * inferior.c (find_inferior_for_program_space): Give preference to
1419 the current inferior.
1420 * inferior.h (find_inferior_for_program_space): Update comment.
1421 * progspace.c (switch_to_program_space_and_thread): Prefer the
1422 current inferior if it's bound to the program space requested. If
1423 the inferior found doesn't have a PID yet, don't bother looking up
1424 a thread.
1425 * progspace.h (switch_to_program_space_and_thread): Adjust
1426 comment.
1427 * thread.c (any_thread_of_process, any_live_thread_of_process):
1428 Give preference to the current thread.
1429
0fec99e8
PA
14302014-10-01 Pedro Alves <palves@redhat.com>
1431
1432 * breakpoint.c (insert_bp_location): Error out if inserting a
1433 software breakpoint at a read-only address.
1434 * target.c (memory_xfer_check_region): New function, factored out
1435 from ...
1436 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1437 ULONGEST.
1438 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1439 against the memory region attributes.
1440
2ddf4301
SM
14412014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1442
1443 * NEWS: Announce new exit-code field in -list-thread-groups
1444 output.
1445 * inferior.c (exit_inferior_1): Don't clear exit code.
1446 (inferior_appeared): Clear exit code.
1447 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1448 code.
1449
5fdeec1d
PA
14502014-10-01 Pedro Alves <palves@redhat.com>
1451
1452 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1453 GENERATED" along with emacs/vi read-only markers.
1454 * regformats/aarch64.dat: Regenerate.
1455 * regformats/arm-with-iwmmxt.dat: Regenerate.
1456 * regformats/arm-with-neon.dat: Regenerate.
1457 * regformats/arm-with-vfpv2.dat: Regenerate.
1458 * regformats/arm-with-vfpv3.dat: Regenerate.
1459 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1460 * regformats/i386/amd64-avx.dat: Regenerate.
1461 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1462 * regformats/i386/amd64-avx512.dat: Regenerate.
1463 * regformats/i386/amd64-linux.dat: Regenerate.
1464 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1465 * regformats/i386/amd64-mpx.dat: Regenerate.
1466 * regformats/i386/amd64.dat: Regenerate.
1467 * regformats/i386/i386-avx-linux.dat: Regenerate.
1468 * regformats/i386/i386-avx.dat: Regenerate.
1469 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1470 * regformats/i386/i386-avx512.dat: Regenerate.
1471 * regformats/i386/i386-linux.dat: Regenerate.
1472 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1473 * regformats/i386/i386-mmx.dat: Regenerate.
1474 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1475 * regformats/i386/i386-mpx.dat: Regenerate.
1476 * regformats/i386/i386.dat: Regenerate.
1477 * regformats/i386/x32-avx-linux.dat: Regenerate.
1478 * regformats/i386/x32-avx.dat: Regenerate.
1479 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1480 * regformats/i386/x32-avx512.dat: Regenerate.
1481 * regformats/i386/x32-linux.dat: Regenerate.
1482 * regformats/i386/x32.dat: Regenerate.
1483 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1484 * regformats/mips-dsp-linux.dat: Regenerate.
1485 * regformats/mips-linux.dat: Regenerate.
1486 * regformats/mips64-dsp-linux.dat: Regenerate.
1487 * regformats/mips64-linux.dat: Regenerate.
1488 * regformats/nios2-linux.dat: Regenerate.
1489 * regformats/rs6000/powerpc-32.dat: Regenerate.
1490 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1491 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1492 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1493 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1494 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1495 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1496 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1497 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1498 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1499 * regformats/s390-linux32.dat: Regenerate.
1500 * regformats/s390-linux32v1.dat: Regenerate.
1501 * regformats/s390-linux32v2.dat: Regenerate.
1502 * regformats/s390-linux64.dat: Regenerate.
1503 * regformats/s390-linux64v1.dat: Regenerate.
1504 * regformats/s390-linux64v2.dat: Regenerate.
1505 * regformats/s390-te-linux64.dat: Regenerate.
1506 * regformats/s390x-linux64.dat: Regenerate.
1507 * regformats/s390x-linux64v1.dat: Regenerate.
1508 * regformats/s390x-linux64v2.dat: Regenerate.
1509 * regformats/s390x-te-linux64.dat: Regenerate.
1510 * regformats/tic6x-c62x-linux.dat: Regenerate.
1511 * regformats/tic6x-c62x.dat: Regenerate.
1512 * regformats/tic6x-c64x-linux.dat: Regenerate.
1513 * regformats/tic6x-c64x.dat: Regenerate.
1514 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1515 * regformats/tic6x-c64xp.dat: Regenerate.
1516
db74e4ba
PA
15172014-10-01 Pedro Alves <palves@redhat.com>
1518
1519 * features/Makefile: Update comments.
1520 (XMLTOC): List all xml files we build C files from.
1521 (clean-cfiles): New rule.
1522
d63f2f84
PA
15232014-10-01 Pedro Alves <palves@redhat.com>
1524
1525 * features/i386/amd64-avx512-linux.c: Regenerate.
1526 * features/i386/amd64-avx512.c: Regenerate.
1527 * features/i386/x32-avx512-linux.c: Regenerate.
1528 * features/i386/x32-avx512.c: Regenerate.
1529
20ad026d
PA
15302014-10-01 Pedro Alves <palves@redhat.com>
1531
1532 * features/Makefile (WHICH): Remove arm-with-m,
1533 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1534
acc9fe45
PA
15352014-10-01 Pedro Alves <palves@redhat.com>
1536
1537 * features/Makefile (clean): New rule.
1538
e001e535
PA
15392014-10-01 Pedro Alves <palves@redhat.com>
1540
1541 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1542 (zmm14h): Add missing end quotes.
1543
bdc14417
PA
15442014-10-01 Pedro Alves <palves@redhat.com>
1545
1546 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1547 * features/aarch64.c: Regenerate.
1548
d83ad864
DB
15492014-09-30 Don Breazeal <donb@codesourcery.com>
1550
1551 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1552 code so as to work with follow_fork_inferior.
1553 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1554 (inf_ttrace_create_inferior): Remove reference to
1555 inf_ttrace_vfork_ppid.
1556 (inf_ttrace_attach): Ditto.
1557 (inf_ttrace_detach): Ditto.
1558 (inf_ttrace_kill): Use current_inferior instead of
1559 inf_ttrace_vfork_ppid.
1560 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1561 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1562 inferior away from the parent.
1563 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1564 target_follow_fork.
1565 (follow_fork_inferior): New function.
1566 (follow_inferior_reset_breakpoints): Make function static.
1567 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1568 * linux-nat.c (linux_child_follow_fork): Move target-independent
1569 code to infrun.c:follow_fork_inferior.
1570
29082443
AA
15712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1572
1573 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1574 * gdbarch.c: Regenerate.
1575 * gdbarch.h: Likewise.
1576 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1577 gdbarch method 'regset_from_core_section'.
1578 (get_core_register_section): Remove handling for the case that
1579 regset == NULL and regset_from_core_section is defined.
1580 (get_core_registers): Drop check for deleted method.
1581 * procfs.c (procfs_do_thread_registers): Adjust comment.
1582
f968fe80
AA
15832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1584
1585 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1586 (linux_nat_make_corefile_notes): Remove.
1587 (linux_target_install_ops): Do not set target method
1588 'make_corefile_notes'.
1589 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1590 Remove field.
1591 (linux_corefile_thread_callback): Instead of args->collect, call
1592 linux_collect_thread_registers.
1593 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1594 NULL unless there is a regset iterator.
1595 (linux_make_corefile_notes_1): Remove.
1596 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1597 by linux_make_corefile_notes.
1598 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1599
174ad59a
AA
16002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1601
1602 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1603 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1604 Remove.
1605 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1606
97094034
AA
16072014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1608
1609 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1610 (xtensa_iterate_over_regset_sections): New.
1611 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1612
f73d3ce7
AA
16132014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1614
1615 * vax-tdep.c (vax_regset_from_core_section): Remove.
1616 (vax_iterate_over_regset_sections): New.
1617 (vax_gdbarch_init): Adjust gdbarch initialization.
1618
cb24567a
AA
16192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1620
1621 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1622 (tilegx_regset_from_core_section): Remove.
1623 (tilegx_iterate_over_regset_sections): New.
1624 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1625
e5139de8
AA
16262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1627
1628 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1629 (sparc_iterate_over_regset_sections): New.
1630 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1631 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1632 targets.
1633 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1634 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1635 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1636 target method 'make_corefile_notes'.
1637
c6d41a6f
AA
16382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1639
1640 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1641 'sizeof_gregset' and 'sizeof_fpregset'.
1642 * sh-tdep.c (sh_regset_from_core_section): Remove.
1643 (sh_iterate_over_regset_sections): New.
1644 (sh_gdbarch_init): Adjust gdbarch initialization.
1645 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1646 sizeof_fpregset.
1647 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1648 'sizeof_gregset'.
1649
9845a0b5
AA
16502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1651
1652 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1653 (score7_linux_iterate_over_regset_sections): New.
1654 (score_gdbarch_init): Adjust gdbarch initialization.
1655
23ea9aeb
AA
16562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1657
1658 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1659 FreeBSD targets.
1660 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1661 method 'make_corefile_notes'.
1662 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1663 (ppcfbsd_regset_from_core_section): Remove.
1664 (ppcfbsd_iterate_over_regset_sections): New.
1665 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1666 initialization.
1667 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1668 (ppcnbsd_iterate_over_regset_sections): New.
1669 (ppcnbsd_init_abi): Adjust.
1670 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1671 (ppcobsd_iterate_over_regset_sections): New.
1672 (ppcobsd_init_abi): Adjust.
1673 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1674 (rs6000_aix_iterate_over_regset_sections): New.
1675 (rs6000_aix_init_osabi): Adjust.
1676
c5b8d704
AA
16772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1678
1679 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1680 (nios2_regset_from_core_section): Remove.
1681 (nios2_iterate_over_regset_sections): New.
1682 (nios2_linux_init_abi): Adjust gdbarch initialization.
1683
3636e608
AA
16842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1685
1686 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1687 (am33_iterate_over_regset_sections): New.
1688 (am33_linux_init_osabi): Adjust gdbarch initialization.
1689
d4036235
AA
16902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1691
1692 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1693 (mips_linux_iterate_over_regset_sections): New.
1694 (mips_linux_init_abi): Adjust gdbarch initialization.
1695 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1696 (mips64obsd_iterate_over_regset_sections): New.
1697 (mips64obsd_init_abi): Adjust.
1698 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1699 (mipsnbsd_iterate_over_regset_sections): New.
1700 (mipsnbsd_init_abi): Adjust.
1701
b61ddd6e
AA
17022014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1703
1704 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1705 (m88k_iterate_over_regset_sections): New.
1706 (m88k_gdbarch_init): Adjust gdbarch initialization.
1707
55a2906a
AA
17082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1709
1710 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1711 (ia64_linux_iterate_over_regset_sections): New.
1712 (ia64_linux_init_abi): Adjust gdbarch initialization.
1713
022c98ab
AA
17142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1715
1716 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1717 (m68kbsd_iterate_over_regset_sections): New.
1718 (m68kbsd_init_abi): Adjust gdbarch initialization.
1719 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1720 (m68k_linux_iterate_over_regset_sections): New.
1721 (m68k_linux_init_abi): Adjust gdbarch initialization.
1722
5fac247f
AA
17232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1724
1725 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1726 (m32r_linux_regset_from_core_section): Remove.
1727 (m32r_linux_iterate_over_regset_sections): New.
1728 (m32r_linux_init_abi): Adjust gdbarch initialization.
1729
490496c3
AA
17302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1731
1732 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1733 (amd64obsd_iterate_over_regset_sections): New.
1734 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1735 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1736 Remove.
1737 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1738 regset_from_core_section initialization.
1739 * i386-tdep.c (i386_regset_from_core_section): Remove.
1740 (i386_iterate_over_regset_sections): New.
1741 (i386_gdbarch_init): Adjust gdbarch initialization.
1742 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1743 (i386_iterate_over_regset_sections): New prototype.
1744 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1745 Remove.
1746 (i386obsd_aout_iterate_over_regset_sections): New.
1747 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1748 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1749 targets.
1750 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1751 (amd64fbsd_init_abi): Call fbsd_init_abi.
1752 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1753 (i386fbsd4_init_abi): Call fbsd_init_abi.
1754 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1755 target method 'make_corefile_notes'.
1756 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1757
50c5eb53
AA
17582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1759
1760 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1761 (hppa_hpux_iterate_over_regset_sections): New.
1762 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1763 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1764 (hppa_linux_iterate_over_regset_sections): New.
1765 (hppa_linux_init_abi): Adjust.
1766 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1767 (hppanbsd_iterate_over_regset_sections): New.
1768 (hppanbsd_init_abi): Adjust.
1769 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1770 (hppaobsd_iterate_over_regset_sections): New.
1771 (hppaobsd_init_abi): Adjust.
1772
66afae4f
AA
17732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1774
1775 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1776 (frv_linux_iterate_over_regset_sections): New.
1777 (frv_linux_init_abi): Adjust gdbarch initialization.
1778
ed09174e
AA
17792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1780
1781 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1782 (armbsd_iterate_over_regset_sections): New prototype.
1783 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1784 (armbsd_iterate_over_regset_sections): New.
1785 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1786 initialization.
1787
dff2166e
AA
17882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1789
1790 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1791 (alpha_linux_iterate_over_regset_sections): New.
1792 (alpha_linux_init_abi): Adjust gdbarch initialization.
1793 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1794 prototype.
1795 (alphanbsd_iterate_over_regset_sections): New prototype.
1796
4108500a
AA
17972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1798
1799 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1800 Remove.
1801 (aarch64_linux_iterate_over_regset_sections): New.
1802 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1803
a904c024
AA
18042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1805
1806 * fbsd-tdep.c: New file.
1807 * fbsd-tdep.h: New file.
1808 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1809 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1810 (ALLDEPFILES): Add fbsd-tdep.c.
1811
8f0435f7
AA
18122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1813
1814 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1815 parameter.
1816 * gdbarch.h: Regenerate.
1817 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1818 iterator.
1819 (get_core_register_section): Add parameter 'regset' and use it, if
1820 set. Add parameter 'min_size' and verify the bfd section size
1821 against it.
1822 (get_core_registers_cb): Add parameter 'regset' and pass it to
1823 get_core_register section. For the "standard" register sections
1824 ".reg" and ".reg2", set an appropriate default for human_name.
1825 (get_core_registers): Don't abort when the gdbarch has an iterator
1826 but no regset_from_core_section. Add NULL/0 for parameters
1827 'regset'/'min_size' in calls to get_core_register_section.
1828 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1829 'regset' and use it instead of calling the
1830 regset_from_core_section gdbarch method.
1831 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1832 * i386-tdep.c (i386_supply_xstateregset)
1833 (i386_collect_xstateregset, i386_xstateregset): Moved to
1834 i386-linux-tdep.c.
1835 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1836 .reg-xstate.
1837 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1838 core file support only if the regset iterator hasn't been set.
1839 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1840 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1841 Moved from i386-tdep.c and renamed to *_linux*.
1842 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1843 each callback invocation. Allow any .reg-xstate size when reading
1844 from a core file.
1845 * amd64-tdep.c (amd64_supply_xstateregset)
1846 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1847 amd64-linux-tdep.c.
1848 (amd64_regset_from_core_section): Remove.
1849 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1850 install an amd64-specific regset_from_core_section gdbarch method.
1851 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1852 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1853 Moved from amd64-tdep.c and renamed to *_linux*.
1854 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1855 to each callback invocation. Allow any .reg-xstate size when
1856 reading from a core file.
1857 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1858 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1859 each callback invocation.
1860 (arm_linux_init_abi): No longer set the regset_from_core_section
1861 gdbarch method.
1862 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1863 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1864 each callback invocation.
1865 (ppc_linux_init_abi): No longer set the regset_from_core_section
1866 gdbarch method.
1867 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1868 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1869 (s390_regset_from_core_section): Remove.
1870 (s390_iterate_over_regset_sections): Add regset parameter to each
1871 callback invocation.
1872 (s390_gdbarch_init): No longer set the regset_from_core_section
1873 gdbarch method. Drop initialization of deleted tdep fields.
1874
5aa82d05
AA
18752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1876
1877 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1878 (amd64_linux_iterate_over_regset_sections): New.
1879 (amd64_linux_init_abi_common): Don't install the regset section
1880 list, but the new iterator in gdbarch.
1881 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1882 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1883 (arm_linux_iterate_over_regset_sections): ...here. New function.
1884 (arm_linux_init_abi): Set iterator instead of section list.
1885 * corelow.c (get_core_registers_cb): New function, logic moved
1886 from...
1887 (get_core_registers): ...loop body here. Use new iterator method
1888 instead of walking through the regset section list.
1889 * gdbarch.sh: Remove 'core_regset_sections'. New method
1890 'iterate_over_regset_sections'. New typedef
1891 'iterate_over_regset_sections_cb'.
1892 * gdbarch.c: Regenerate.
1893 * gdbarch.h: Likewise.
1894 * i386-linux-tdep.c (i386_linux_regset_sections)
1895 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1896 Remove.
1897 (i386_linux_iterate_over_regset_sections): New.
1898 (i386_linux_init_abi): Don't choose a regset section list, but
1899 install new iterator in gdbarch.
1900 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1901 (linux_collect_regset_section_cb): New function, logic moved
1902 from...
1903 (linux_collect_thread_registers): ...loop body here. Use iterator
1904 method instead of walking through list.
1905 (linux_make_corefile_notes_1): Check for presence of iterator
1906 method instead of regset section list.
1907 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1908 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1909 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1910 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1911 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1912 (ppc_linux_init_abi): Don't choose from above regset section
1913 lists, but install new iterator in gdbarch.
1914 * regset.h (struct core_regset_section): Remove.
1915 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1916 have_linux_v1, have_linux_v2, and have_tdb.
1917 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1918 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1919 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1920 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1921 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1922 (s390_iterate_over_regset_sections): ...here. New function. Use
1923 new tdep fields.
1924 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1925 regset section lists, but install new iterator.
1926
2eca4a8d
JK
19272014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1928
1929 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1930
a73c2b56
SM
19312014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1932
1933 * progspace.c (print_program_space): Don't prune program spaces
1934 before printing them.
1935
03d46957
PA
19362014-09-25 Pedro Alves <palves@redhat.com>
1937
1938 * infrun.c (user_visible_resume_ptid): Don't check
1939 singlestep_breakpoints_inserted_p.
1940
e558d7c1
PA
19412014-09-25 Pedro Alves <palves@redhat.com>
1942
1943 * breakpoint.c (should_be_inserted): Add debug output.
1944
7f89fd65
PA
19452014-09-25 Pedro Alves <palves@redhat.com>
1946
1947 * infrun.c (stepping_past_instruction_at)
1948 (clear_exit_convenience_vars): Point at infrun.h instead of
1949 inferior.h.
1950 (handle_signal_stop): Fix typo.
1951
b7576e5c
YQ
19522014-09-24 Yao Qi <yao@codesourcery.com>
1953
1954 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1955 bitmask.
1956
9a6cf368
GB
19572014-09-22 Gary Benson <gbenson@redhat.com>
1958
1959 * target.c (target_stop): Updated comment.
1960
03f4463b
GB
19612014-09-22 Gary Benson <gbenson@redhat.com>
1962
1963 * target/target.h (target_stop_ptid): Renamed as...
1964 (target_stop_and_wait): New function. Updated comment.
1965 All uses updated.
1966 (target_continue_ptid): Renamed as...
1967 (target_continue_no_signal): New function. Updated comment.
1968 All uses updated.
1969
a25a5a45
PA
19702014-09-22 Pedro Alves <palves@redhat.com>
1971
1972 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1973 and "auto" merged.
1974 * breakpoint.c (enum ugll_insert_mode): New enum.
1975 (always_inserted_mode): Now a plain boolean.
1976 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1977 (breakpoints_always_inserted_mode): Delete.
1978 (breakpoints_should_be_inserted_now): New function.
1979 (insert_breakpoints): Pass UGLL_INSERT to
1980 update_global_location_list instead of calling
1981 insert_breakpoint_locations manually.
1982 (create_solib_event_breakpoint_1): New, factored out from ...
1983 (create_solib_event_breakpoint): ... this.
1984 (create_and_insert_solib_event_breakpoint): Use
1985 create_solib_event_breakpoint_1 instead of calling
1986 insert_breakpoint_locations manually.
1987 (update_global_location_list): Change parameter type from boolean
1988 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1989 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1990 (update_global_location_list_nothrow): Change parameter type from
1991 boolean to enum ugll_insert_mode.
1992 (_initialize_breakpoint): "breakpoint always-inserted" option is
1993 now a boolean command. Update help text.
1994 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1995 (breakpoints_should_be_inserted_now): New declaration.
1996 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1997 Remove breakpoints_always_inserted_mode check.
1998 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1999 * remote.c (remote_start_remote): Likewise.
2000
04086b45
PA
20012014-09-22 Pedro Alves <palves@redhat.com>
2002
2003 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2004 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2005 Instead, pass UGLL_INSERT to update_global_location_list.
2006 (update_global_location_list): Change parameter type from boolean
2007 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2008 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2009 (create_solib_event_breakpoint_1): New, factored out from ...
2010 (create_solib_event_breakpoint): ... this.
2011 (create_and_insert_solib_event_breakpoint): Use
2012 create_solib_event_breakpoint_1 instead of calling
2013 insert_breakpoint_locations manually.
2014 (update_global_location_list): Handle UGLL_INSERT.
2015
44702360
PA
20162014-09-22 Pedro Alves <palves@redhat.com>
2017
2018 * breakpoint.c (enum ugll_insert_mode): New enum.
2019 (update_global_location_list)
2020 (update_global_location_list_nothrow): Change parameter type from
2021 boolean to enum ugll_insert_mode. All callers adjusted.
2022
93c6145a
JB
20232014-09-19 Joel Brobecker <brobecker@adacore.com>
2024
2025 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2026 SystemTap support in GDB.
2027
89a5711c
DB
20282014-09-19 Don Breazeal <donb@codesourcery.com>
2029
2030 * linux-nat.c (linux_handle_extended_wait): Call
2031 linux_ptrace_get_extended_event.
2032 (wait_lwp): Call linux_is_extended_waitstatus.
2033 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2034 and linux_is_extended_waitstatus.
2035 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2036 linux_ptrace_get_extended_event.
2037 (linux_ptrace_get_extended_event): New function.
2038 (linux_is_extended_waitstatus): New function.
2039 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2040 (linux_is_extended_waitstatus): New declarations.
2041
c3b7b696
YQ
20422014-09-19 Yao Qi <yao@codesourcery.com>
2043
2044 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2045 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2046 comments. Callers update.
2047 (dwarf_decode_lines): Likewise.
2048 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2049 comments. Skip the line table if 'lowpc' is greater than
2050 'address'. Don't check
2051 dwarf2_per_objfile->has_section_at_zero.
2052
2b4fd423
DE
20532014-09-18 Doug Evans <dje@google.com>
2054
2055 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2056 * python/py-symtab.c (stpy_get_producer): New function.
2057 (symtab_object_getset): Add "producer" attribute.
2058
5e43d467
UW
20592014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2060
2061 PR gdb/17384
2062 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2063 (do_captured_read_memory_integer): Remove.
2064 (safe_read_memory_integer): Use target_read_memory directly instead
2065 of catching errors in do_captured_read_memory_integer.
2066
04e79979
MR
20672014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2068
2069 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2070 not gdb/doc.
2071
76aeec5b
SDJ
20722014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2073
2074 * objc-lang.c (find_implementation_from_class): Remove dead code.
2075
2f693f9d
SDJ
20762014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2077
2078 PR cli/7233
2079 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2080 "fprintf_unfiltered (gdb_stdlog...)".
2081
bb9d5f81
PP
20822014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2083
2084 PR breakpoints/12526
2085 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2086 val_bitsize.
2087 * breakpoint.c (watch_command_1): Use these fields to retain
2088 bitfield information.
2089 (extract_bitfield_from_watchpoint_value): New function.
2090 (watchpoint_check): Use it.
2091 (update_watchpoint): Use it. Optimize the address and length of a
2092 HW watchpoint pointing to a bitfield.
2093 * value.h (unpack_value_bitfield): New prototype.
2094 * value.c (unpack_value_bitfield): Make extern.
2095
05db5edd
ST
20962014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2097
2098 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2099 x86-dregs.o.
2100 * gnu-nat.c (inf_threads): New function.
2101 * gnu-nat.h (inf_threads_ftype): New typedef.
2102 (inf_threads): New declaration.
2103 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2104 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2105 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2106 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2107 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2108 (i386_gnu_dr_get_control): New functions.
2109 (reg_addr): New structure.
2110 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2111 i386 debugging register hooks.
2112 * NEWS: Mention this.
2113
5a578da5
OJ
21142014-08-13 Omair Javaid <omair.javaid@linaro.org>
2115
2116 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2117 vector data transfer instructions.
2118 (arm_record_coproc_data_proc): Updated.
2119
f20f80dd
OJ
21202014-08-13 Omair Javaid <omair.javaid@linaro.org>
2121
2122 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2123 arm_record_exreg_ld_st_insn.
2124 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2125 load/store insns.
2126
851f26ae
OJ
21272014-08-13 Omair Javaid <omair.javaid@linaro.org>
2128
2129 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2130 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2131 processing instructions.
2132
1e1b6563
OJ
21332014-08-13 Omair Javaid <omair.javaid@linaro.org>
2134
2135 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2136 for advance SIMD struct ld/st insn.
2137 (thumb2_record_decode_insn_handler): Replace stub handler with
2138 thumb2_record_asimd_struct_ld_st.
2139
60cc5e93
OJ
21402014-08-13 Omair Javaid <omair.javaid@linaro.org>
2141
2142 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2143 for asimd, vfp and coprocessor insns.
2144 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2145 and coprocessor insns.
2146 (thumb2_record_coproc_insn): New function.
2147 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2148 handlers.
2149 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2150 opcode 110 insns.
2151
81219e53
DE
21522014-09-13 Doug Evans <xdje42@gmail.com>
2153
2154 * NEWS: Mention new "queue-signal" command.
2155 * infcmd.c (queue_signal_command): New function.
2156 (_initialize_infcmd): Add new queue-signal command.
2157
d36bf488
DE
21582014-09-13 Doug Evans <xdje42@gmail.com>
2159
2160 * linux-nat.c (wait_lwp): Add debugging printf.
2161 (linux_nat_wait_1): Ditto.
2162
f37f681c
PA
21632014-09-12 Pedro Alves <palves@redhat.com>
2164
2165 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2166 (create_and_insert_solib_event_breakpoint): New functions.
2167 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2168 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2169 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2170 (remove_dbx_link_breakpoint): Delete function.
2171 (insert_dbx_link_bpt_in_file): Use
2172 create_and_insert_solib_event_breakpoint instead of
2173 deprecated_insert_raw_breakpoint.
2174 (procfs_wait): Don't check whether we hit __dbx_link here.
2175 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2176 here.
2177 * solib-irix.c (base_breakpoint): Delete global.
2178 (disable_break): Delete function.
2179 (enable_break): Use create_solib_event_breakpoint
2180 instead of deprecated_insert_raw_breakpoint.
2181 (irix_solib_handle_event): New function.
2182 (irix_solib_create_inferior_hook): Don't run the target or disable
2183 the mapping-complete breakpoint here.
2184 (_initialize_irix_solib): Install irix_solib_handle_event as
2185 so_ops->handle_event hook.
2186
9d9bf2df
EBM
21872014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2188 Ulrich Weigand  <uweigand@de.ibm.com>
2189
2190 PR tdep/17379
2191 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2192 instead of read_memory_unsigned_integer.
2193
b006a80e
GB
21942014-09-12 Gary Benson <gbenson@redhat.com>
2195
2196 * nat/linux-waitpid.c: Include common-defs.h.
2197 [GDBSERVER]: Add FIXME comment.
2198 [!GDBSERVER]: Don't include defs.h or signal.h.
2199 (linux_debug) [!GDBSERVER]: Remove empty block.
2200
296b1496
GB
22012014-09-12 Gary Benson <gbenson@redhat.com>
2202
2203 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2204 Don't include defs.h or server.h.
2205
53f81362
GB
22062014-09-12 Gary Benson <gbenson@redhat.com>
2207
2208 * nat/linux-btrace.c: Include common-defs.h.
2209 Don't include defs.h, server.h or gdbthread.h.
2210 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2211
727605ca
GB
22122014-09-12 Gary Benson <gbenson@redhat.com>
2213
2214 * common/agent.c: Include common-defs.h.
2215 Don't include defs.h or server.h.
2216 * common/buffer.c: Likewise.
2217 * common/common-debug.c: Likewise.
2218 * common/common-utils.c: Likewise.
2219 * common/errors.c: Likewise.
2220 * common/filestuff.c: Likewise.
2221 * common/format.c: Likewise.
2222 * common/gdb_vecs.c: Likewise.
2223 * common/print-utils.c: Likewise.
2224 * common/ptid.c: Likewise.
2225 * common/rsp-low.c: Likewise.
2226 * common/signals.c: Likewise.
2227 * common/vec.c: Likewise.
2228 * common/xml-utils.c: Likewise.
2229 * nat/linux-osdata.c: Likewise.
2230 * nat/linux-procfs.c: Likewise.
2231 * nat/linux-ptrace.c: Likewise.
2232 * nat/mips-linux-watch.c: Likewise.
2233 * target/waitstatus.c: Likewise.
2234
361c8ade
GB
22352014-09-12 Tom Tromey <tromey@redhat.com>
2236 Gary Benson <gbenson@redhat.com>
2237
2238 * common/common-regcache.h: New file.
2239 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2240 * regcache.h: Include common-regcache.h.
2241 (regcache_read_pc): Don't declare.
2242 * regcache.c (get_thread_regcache_for_ptid): New function.
2243 * nat/linux-btrace.c: Don't include regcache.h.
2244 Include common-regcache.h.
2245 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2246
a01cbb49
TS
22472014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2248
2249 * regcache.h (struct regset): Declare.
2250
98880d46
PA
22512014-09-11 Pedro Alves <palves@redhat.com>
2252
2253 PR gdb/17347
2254 * main.c: Include "infrun.h".
2255 (catch_command_errors, catch_command_errors_const): Wait for the
2256 foreground command to complete.
2257 * top.c (maybe_wait_sync_command_done): New function, factored out
2258 from ...
2259 (maybe_wait_sync_command_done): ... here.
2260 * top.h (maybe_wait_sync_command_done): New declaration.
2261
bd9269f7
GB
22622014-09-11 Tom Tromey <tromey@redhat.com>
2263 Gary Benson <gbenson@redhat.com>
2264
2265 * common/symbol.h: New file.
2266 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2267 * minsyms.c (find_minimal_symbol_address): New function.
2268 * common/agent.c: Include common/symbol.h.
2269 [!GDBSERVER]: Don't include objfiles.h.
2270 (agent_look_up_symbols): Use find_minimal_symbol_address.
2271
f8c1d06b
GB
22722014-09-11 Gary Benson <gbenson@redhat.com>
2273
2274 * target/target.h (target_stop_ptid, target_continue_ptid):
2275 Declare.
2276 * target.c (target_stop_ptid, target_continue_ptid): New
2277 functions.
2278 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2279 (agent_run_command): Always use target_stop_ptid and
2280 target_continue_ptid.
2281
721ec300
GB
22822014-09-11 Tom Tromey <tromey@redhat.com>
2283 Gary Benson <gbenson@redhat.com>
2284
2285 * target/target.h: New file.
2286 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2287 * target.h: Include target/target.h.
2288 (target_read_memory, target_write_memory): Don't declare.
2289 * target.c (target_read_uint32): New function.
2290 * common/agent.c: Include target/target.h.
2291 [!GDBSERVER]: Don't include target.h.
2292 (helper_thread_id): Type changed to uint32_t.
2293 (agent_get_helper_thread_id): Use target_read_uint32.
2294 (agent_run_command): Always use target_read_memory and
2295 target_write_memory.
2296 (agent_capability): Type changed to uint32_t.
2297 (agent_capability_check): Use target_read_uint32.
2298
c5e92cca
GB
22992014-09-11 Gary Benson <gbenson@redhat.com>
2300
2301 * common/common-debug.h (show_debug_regs): Declare.
2302 * common/common-debug.c (show_debug_regs): Define.
2303 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2304 all uses with show_debug_regs. Replace all uses that considered
2305 debug_hw_points as a multi-value integer with straight boolean
2306 uses.
2307 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2308 with show_debug_regs.
2309 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2310 all uses with show_debug_regs.
2311 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2312 uses with show_debug_regs.
2313
eeef931a
UW
23142014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2315
2316 * findvar.c (address_from_register): Handle targets requiring
2317 a special conversion routine even for plain pointer types.
2318
8efa9855
UW
23192014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2320
2321 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2322 (store_register): Do not call exec_one_dummy_insn.
2323
eb479039
JB
23242014-09-10 Joel Brobecker <brobecker@adacore.com>
2325
2326 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2327 dereference it first. Use value_enclosing_type instead of
2328 value_type.
2329 (ada_array_length): Likewise.
2330
deede10c
JB
23312014-09-10 Joel Brobecker <brobecker@adacore.com>
2332
2333 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2334 Adjust function implementation and documentation accordingly.
2335 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2336 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2337 Update call to ada_value_ptr_subscript.
2338
7828a5f5
JB
23392014-09-10 Joel Brobecker <brobecker@adacore.com>
2340
2341 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2342 instead of VAL's type.
2343
35782f14
JB
23442014-09-10 Joel Brobecker <brobecker@adacore.com>
2345
2346 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2347
d342a0da
DE
23482014-09-09 Doug Evans <xdje42@gmail.com>
2349
2350 PR guile/17367
2351 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2352 last parameter to pkg-config, not first.
2353 * configure.ac: Pass --with-guile provided pkg-config path to
2354 GDB_GUILE_PROGRAM_NAMES.
2355 * configure: Regenerate.
2356
b4a3d263
GKB
23572014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2358
2359 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2360 Bertazi".
2361
6e466374
MR
23622014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2363
2364 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2365 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2366 the list of sections determining GDB_OSABI_IRIX.
2367
a1ada89a
JH
23682014-09-09 James Hogan <james.hogan@imgtec.com>
2369
2370 * MAINTAINERS (Write After Approval): Add "James Hogan".
2371
86db008d
JH
23722014-09-09 James Hogan <james.hogan@imgtec.com>
2373
2374 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2375
72fde3df
JB
23762014-09-09 Joel Brobecker <brobecker@adacore.com>
2377
2378 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2379
92d8d229
DE
23802014-09-08 Doug Evans <xdje42@gmail.com>
2381
2382 PR 17247
2383 * guile.c: #include <signal.h>.
2384 (_initialize_guile): Block SIGCHLD while initializing Guile.
2385
2386 Replaces the following, which is reverted.
2387
2388 2014-07-26 Doug Evans <xdje42@gmail.com>
2389
2390 PR 17185
2391 * configure.ac: Add check for header gc/gc.h.
2392 Add check for function setenv.
2393 * configure: Regenerate.
2394 * config.in: Regenerate.
2395 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2396
d81412aa
DE
23972014-09-08 Doug Evans <xdje42@gmail.com>
2398
2399 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2400 with named constant. Fix style of pointer comparison.
2401 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2402
a9f116cb
GKB
24032014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2404
2405 PR gdb/17035
2406 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2407 decide whether we display the command on "show user".
2408 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2409 printing command name.
2410 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2411 * cli/cli-decode.c (cli_user_command_p): Create helper function
2412 to verify whether cmd_list_element is a user-defined command.
2413
c75bd3a2
JK
24142014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2415
2416 PR python/17355
2417 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2418 Fix goto out of TRY_CATCH.
2419
faa42425 24202014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2421 Tom Tromey <tromey@redhat.com>
faa42425
DE
2422
2423 PR 15276
2424 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2425 $_any_caller_matches.
2426 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2427 * python/lib/gdb/function/caller_is.py: New file.
2428
0d41ba00
DE
24292014-09-06 Doug Evans <xdje42@gmail.com>
2430
2431 * infcmd.c (program_info): Fix typo.
2432
474ca4f6
SDJ
24332014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2434
2435 PR gdb/17235
2436 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2437 'number'. New variable 'has_digit'. Rewrite code to deal with
2438 subexpressions on SDT probes.
2439
ebf13736
PA
24402014-09-04 Pedro Alves <palves@redhat.com>
2441
2442 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2443 the input is only one character long.
2444
eb0b0463
SDJ
24452014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2446
2447 PR fortran/17237
2448 * f-valprint.c (f_val_print): Specify the correct print option to
2449 use when printing integer values.
2450
5ee44bfa
GB
24512014-09-04 Gary Benson <gbenson@redhat.com>
2452
2453 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2454 Remove code to cope with LWPs wrapped as PIDs.
2455 Add assertions to ensure no wrapped LWPs are passed.
2456
4875ffdb
PA
24572014-09-04 Pedro Alves <palves@redhat.com>
2458
2459 * value.c (value_ranges_copy_adjusted): New function, factored out
2460 from ...
2461 (value_contents_copy_raw): ... here.
2462 (unpack_value_bits_as_long_1): Rename back to ...
2463 (unpack_bits_as_long): ... this. Remove 'original_value' and
2464 'result' parameters. Change return type to LONGEST.
2465 (unpack_value_bits_as_long): Delete.
2466 (unpack_value_field_as_long_1): Delete.
2467 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2468 (unpack_value_bitfield): New function.
2469 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2470 (value_fetch_lazy): Use unpack_value_bitfield.
2471 * value.h (unpack_value_bits_as_long): Delete declaration.
2472
5f3b99cf
SS
24732014-09-03 Sasha Smundak <asmundak@google.com>
2474
2475 * python/py-frame.c (frapy_read_register): New function.
2476
ac740bc7
JH
24772014-09-03 James Hogan <james.hogan@imgtec.com>
2478
2479 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2480 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2481
7d793aa9
SDJ
24822014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2483
2484 PR python/16699
2485 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2486 function.
2487 (add_cmd): Set "completer_handle_brkchars" to NULL.
2488 * cli/cli-decode.h (struct cmd_list_element)
2489 <completer_handle_brkchars>: New field.
2490 * command.h (completer_ftype_void): New typedef.
2491 (set_cmd_completer_handle_brkchars): New prototype.
2492 * completer.c (set_gdb_completion_word_break_characters): New
2493 function.
2494 (complete_line_internal): Call "completer_handle_brkchars"
2495 callback from command.
2496 * completer.h: Include "command.h".
2497 (set_gdb_completion_word_break_characters): New prototype.
2498 * python/py-cmd.c (cmdpy_completer_helper): New function.
2499 (cmdpy_completer_handle_brkchars): New function.
2500 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2501 (cmdpy_init): Set completer_handle_brkchars to
2502 cmdpy_completer_handle_brkchars.
2503
97ea6506
GB
25042014-09-03 Gary Benson <gbenson@redhat.com>
2505
2506 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2507 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2508 Loop conditions changed to equivalent form.
2509 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2510 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2511 ALL_DEBUG_ADDRESS_REGISTERS.
2512
d1437815
JB
25132014-09-03 Joel Brobecker <brobecker@adacore.com>
2514
2515 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2516 description fix.
2517
9b94fcf1
DE
25182014-09-02 Doug Evans <dje@google.com>
2519
2520 * typeprint.c (find_global_typedef): Fix comment.
2521
df7e5265
GB
25222014-09-02 Gary Benson <gbenson@redhat.com>
2523
2524 * i386-nat.h: Renamed as...
2525 * x86-nat.h: New file. All type, function and variable name
2526 prefixes changed from "i386_" to "x86_". All references updated.
2527 * i386-nat.c: Renamed as...
2528 * x86-nat.c: New file. All type, function and variable name
2529 prefixes changed from "i386_" to "x86_". All references updated.
2530 * common/i386-xstate.h: Renamed as...
2531 * common/x86-xstate.h: New file. All type, function and variable
2532 name prefixes changed from "i386_" to "x86_". All references
2533 updated.
2534 * nat/i386-cpuid.h: Renamed as...
2535 * nat/x86-cpuid.h: New file. All type, function and variable name
2536 prefixes changed from "i386_" to "x86_". All references updated.
2537 * nat/i386-gcc-cpuid.h: Renamed as...
2538 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2539 name prefixes changed from "i386_" to "x86_". All references
2540 updated.
2541 * nat/i386-dregs.h: Renamed as...
2542 * nat/x86-dregs.h: New file. All type, function and variable name
2543 prefixes changed from "i386_" to "x86_". All references updated.
2544 * nat/i386-dregs.c: Renamed as...
2545 * nat/x86-dregs.c: New file. All type, function and variable name
2546 prefixes changed from "i386_" to "x86_". All references updated.
2547
1c3569d4
MR
25482014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2549
2550 * varobj.c (_initialize_varobj): Move to the end of file.
2551
ff55e1b5
GB
25522014-08-29 Gary Benson <gbenson@redhat.com>
2553
2554 * common/common-exceptions.h: New file.
2555 * common/common-exceptions.c: Likewise.
2556 * Makefile.in (SFILES): Add common/common-exceptions.c.
2557 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2558 (COMMON_OBS): Add common-exceptions.o.
2559 (common-exceptions.o): New rule.
2560 * exceptions.h (common-exceptions.h): Include.
2561 (gdb_setjmp.h): Do not include.
2562 (return_reason): Moved to common-exceptions.h.
2563 (enum return_reason): Likewise.
2564 (RETURN_MASK): Likewise.
2565 (typedef return_mask): Likewise.
2566 (enum errors): Likewise.
2567 (struct gdb_exception): Likewise.
2568 (exceptions_state_mc_init): Likewise.
2569 (exceptions_state_mc_action_iter): Likewise.
2570 (exceptions_state_mc_action_iter_1): Likewise.
2571 (TRY_CATCH): Likewise.
2572 (throw_exception): Likewise.
2573 (throw_verror): Likewise.
2574 (throw_vquit): Likewise.
2575 (throw_error): Likewise.
2576 (throw_quit): Likewise.
2577 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2578 (enum catcher_action): Likewise.
2579 (struct catcher): Likewise.
2580 (current_catcher): Likewise.
2581 (catcher_list_size): Likewise.
2582 (exceptions_state_mc_init): Likewise.
2583 (catcher_pop): Likewise.
2584 (exceptions_state_mc): Likewise.
2585 (exceptions_state_mc_action_iter): Likewise.
2586 (exceptions_state_mc_action_iter_1): Likewise.
2587 (throw_exception): Likewise.
2588 (exception_messages): Likewise.
2589 (exception_messages_size): Likewise.
2590 (throw_it): Likewise.
2591 (throw_verror): Likewise.
2592 (throw_vquit): Likewise.
2593 (throw_error): Likewise.
2594 (throw_quit): Likewise.
2595 (prepare_to_throw_exception): New function.
2596
e9bcb658
GB
25972014-08-29 Gary Benson <gbenson@redhat.com>
2598
2599 * common/gdb_setjmp.h: New file.
2600 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2601 * configure.ac: Move sigsetjmp check...
2602 * common/common.m4: ...here.
2603 * configure: Regenerate.
2604 * cp-support.c (SIGJMP_BUF): Delete.
2605 (SIGSETJMP): Likewise.
2606 (SIGLONGJMP): Likewise.
2607 * exceptions.h (gdb_setjmp.h): Include.
2608 (setjmp.h): Do not include.
2609 (EXCEPTIONS_SIGJMP_BUF): Delete.
2610 (EXCEPTIONS_SIGSETJMP): Likewise.
2611 (EXCEPTIONS_SIGLONGJMP): Likewise.
2612 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2613 from gdb_setjmp.h.
2614 * exceptions.c: Likewise.
2615
e3180625
GB
26162014-08-29 Gary Benson <gbenson@redhat.com>
2617
2618 * cleanups.h: Moved to...
2619 * common/cleanups.h: New file.
2620 * cleanups.c: Moved to...
2621 * common/cleanups.c: New file. Include common-defs.h and
2622 cleanups.h. Do not include defs.h.
2623 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2624 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2625 (cleanups.o): New rule.
2626
e3d6ba5d
GB
26272014-08-29 Gary Benson <gbenson@redhat.com>
2628
2629 * common/errors.h (internal_warning): New declaration.
2630 (internal_vwarning): Likewise.
2631 * common/errors.c (internal_warning): New function.
2632 * utils.h (internal_warning): Don't declare.
2633 (internal_vwarning): Likewise.
2634 * utils.c (internal_warning): Removed.
2635
075c7033
GB
26362014-08-29 Gary Benson <gbenson@redhat.com>
2637
2638 * main.c (captured_main): Use warning during startup.
2639 Prefix startup warning messages with command name.
2640
91b35fd0
GB
26412014-08-29 Gary Benson <gbenson@redhat.com>
2642
2643 * main.c (captured_main): Handle usage errors with error.
2644
b1ec390e
GB
26452014-08-29 Gary Benson <gbenson@redhat.com>
2646
2647 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2648 exit pair with a call to error. Wrap the message with _().
2649
fd0ef3dd
GB
26502014-08-29 Gary Benson <gbenson@redhat.com>
2651
2652 * main.c (captured_main): Replace a fprintf/exit
2653 pair with a call to error. Wrap the message with _().
2654
e0e6bcab
GB
26552014-08-29 Gary Benson <gbenson@redhat.com>
2656
2657 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2658 pairs with calls to error. Wrap the message with _().
2659
0d2f5c07
GB
26602014-08-29 Gary Benson <gbenson@redhat.com>
2661
2662 * utils.c (vwarning): Protect calls to target_terminal_ours
2663 and wrap_here.
2664
5df43998
GB
26652014-08-29 Gary Benson <gbenson@redhat.com>
2666
2667 * exceptions.c (print_flush): Protect calls to
2668 target_terminal_ours and wrap_here.
2669
2437fd32
GB
26702014-08-29 Gary Benson <gbenson@redhat.com>
2671
2672 * utils.h (filtered_printing_initialized): New declaration.
2673 * utils.c (abort_with_message): New function.
2674 (internal_vproblem): Use abort_with_message for first level
2675 recursive internal problems, and if gdb_stderr is not set up.
2676 Protect calls to target_terminal_ours, begin_line and query.
2677
f1f58506
DE
26782014-08-28 Doug Evans <dje@google.com>
2679
2680 * symtab.c (in_prologue): Move definition to better spot.
2681 (skip_prologue_using_sal): Ditto.
2682
aab2f208
DE
26832014-08-28 Doug Evans <dje@google.com>
2684
2685 * symtab.c (find_function_start_sal): Move definition to better spot.
2686
6b65d1b6
YQ
26872014-08-28 Yao Qi <yao@codesourcery.com>
2688
2689 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2690 found_stack_adjust in forward scan. Remove condition check
2691 on found_stack_adjust which is always true. Indent the code.
2692
a1b34d15
YQ
26932014-08-28 Yao Qi <yao@codesourcery.com>
2694
2695 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2696 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2697 (dwarf_decode_lines): Remove argument
2698 want_line_info. Remove condition check on want_line_info.
2699 Callers update.
2700
d5962de5
DE
27012014-08-27 Doug Evans <dje@google.com>
2702
2703 * dwarf2read.c (dwarf_record_line): Fix typo.
2704
9b139002
SDJ
27052014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2706
2707 * target.h (struct target_ops::to_terminal_save_ours): Remove
2708 declaration.
2709 (target_terminal_save_ours): Remove macro.
2710 * target-delegates.c: Regenerate.
2711 * inf-child.c (inf_child_target): Don't set the nonexistent
2712 field to_terminal_save_ours.
2713 * inferior.h (child_terminal_save_ours): Remove declaration.
2714 * terminal.h (gdb_save_tty_state): New declaration.
2715 * inflow.c (child_terminal_save_ours): Rename to ...
2716 (gdb_save_tty_state): ... this.
2717 * tui/tui.c: Include terminal.h.
2718 (tui_enable): Use gdb_save_tty_state instead of
2719 target_terminal_save_ours.
2720 (tui_disable): Likewise.
2721
9debeba0
DE
27222014-08-25 Doug Evans <dje@google.com>
2723
2724 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2725 Pass NULL instead of 0 for context pointer.
2726
428fc5fc
YQ
27272014-08-25 Yao Qi <yao@codesourcery.com>
2728
2729 * dwarf2read.c: Fix grammatical error.
2730
cdc07690
YQ
27312014-08-24 Yao Qi <yao@codesourcery.com>
2732
2733 * dwarf2read.c (scan_partial_symbols): Update comments.
2734 Rename argument 'need_pc' with 'set_addrmap'.
2735 (add_partial_namespace): Rename argument 'need_pc' with
2736 'set_addrmap'.
2737 (add_partial_module): Likewise.
2738 (add_partial_subprogram): Likewise. Update comments.
2739 (dwarf2_name): Fix typo.
2740
a05a36a5
DE
27412014-08-22 Doug Evans <dje@google.com>
2742
2743 PR 17276
2744 * dwarf2read.c (dwarf_record_line_p): New function.
2745 (dwarf_decode_lines_1): Ignore subsequent line number entries
2746 for the same line if any entry had a non-zero discriminator.
2747
252a6764
DE
27482014-08-22 Doug Evans <dje@google.com>
2749
2750 * buildsym.h (record_line_ftype): New typedef.
2751 (record_line): Use it.
2752 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2753 (dwarf_decode_lines_1): Call them.
2754
510db052
YQ
27552014-08-22 Yao Qi <yao@codesourcery.com>
2756
2757 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2758 (ctf_end): Remove code.
2759
22fd09ae
JK
27602014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2761
2762 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2763 (linux_make_corefile_notes): call update_thread_list, protected against
2764 exceptions.
2765
656e8868
PA
27662014-08-21 Pedro Alves <palves@redhat.com>
2767
2768 * infcmd.c (attach_command): Remove comment.
2769
de589d04
WN
27702014-08-21 Bin Cheng <bin.cheng@arm.com>
2771
2772 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2773 unsigned LONGEST to ULONGEST.
2774
2a31c623
PA
27752014-08-20 Pedro Alves <palves@redhat.com>
2776
2777 * Makefile.in (check-read1): New rule.
2778
d36430db
JB
27792014-08-20 Joel Brobecker <brobecker@adacore.com>
2780
2781 * value.c (value_from_contents_and_address): Strip resolved_type's
2782 typedef layers before checking its TYPE_DATA_LOCATION.
2783
000339af
PA
27842014-08-20 Pedro Alves <palves@redhat.com>
2785
2786 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2787
5f52445b
YQ
27882014-08-20 Yao Qi <yao@codesourcery.com>
2789
2790 * amd64-tdep.c (amd64_classify): Add a blank line after the
2791 example. Move "*/" to a new line.
2792 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2793 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2794 * dwarf2read.c (psymtab_include_file_name): Likewise.
2795
9a0dc9e3
PA
27962014-08-19 Andrew Burgess <aburgess@broadcom.com>
2797 Pedro Alves <palves@redhat.com>
2798
2799 PR symtab/14604
2800 PR symtab/14605
2801 * ada-lang.c (coerce_unspec_val_to_type): Use
2802 value_contents_copy_raw.
2803 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2804 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2805 * cp-valprint.c (cp_print_value_fields): Let the common printing
2806 code handle optimized out values.
2807 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2808 * d-valprint.c (dynamic_array_type): Use
2809 value_bits_any_optimized_out.
2810 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2811 check_any_valid fields.
2812 (check_pieced_value_bits): Delete and inline ...
2813 (check_pieced_synthetic_pointer): ... here.
2814 (check_pieced_value_validity): Delete.
2815 (check_pieced_value_invalid): Delete.
2816 (pieced_value_funcs): Remove check_validity and check_any_valid
2817 fields.
2818 (read_pieced_value): Use mark_value_bits_optimized_out.
2819 (write_pieced_value): Switch to use
2820 mark_value_bytes_optimized_out.
2821 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2822 of assuming the whole value is optimized out.
2823 * findvar.c (read_frame_register_value): Remove special handling
2824 of optimized out registers.
2825 (value_from_register): Use mark_value_bytes_optimized_out.
2826 * frame-unwind.c (frame_unwind_got_optimized): Use
2827 mark_value_bytes_optimized_out.
2828 * jv-valprint.c (java_value_print): Adjust.
2829 (java_print_value_fields): Let the common printing code handle
2830 optimized out values.
2831 * mips-tdep.c (mips_print_register): Remove special handling of
2832 optimized out registers.
2833 * opencl-lang.c (lval_func_check_validity): Delete.
2834 (lval_func_check_any_valid): Delete.
2835 (opencl_value_funcs): Remove check_validity and check_any_valid
2836 fields.
2837 * p-valprint.c (pascal_object_print_value_fields): Let the common
2838 printing code handle optimized out values.
2839 * stack.c (read_frame_arg): Remove special handling of optimized
2840 out values. Fetch both VAL and ENTRYVAL before comparing
2841 contents. Adjust to value_available_contents_eq rename.
2842 * valprint.c (valprint_check_validity)
2843 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2844 (val_print_array_elements): Adjust.
2845 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2846 (value_bits_any_optimized_out): New function.
2847 (value_entirely_covered_by_range_vector): New function, factored
2848 out from value_entirely_unavailable.
2849 (value_entirely_unavailable): Reimplement.
2850 (value_entirely_optimized_out): New function.
2851 (insert_into_bit_range_vector): New function, factored out from
2852 mark_value_bits_unavailable.
2853 (mark_value_bits_unavailable): Reimplement.
2854 (struct ranges_and_idx): New struct.
2855 (find_first_range_overlap_and_match): New function, factored out
2856 from value_available_contents_bits_eq.
2857 (value_available_contents_bits_eq): Rename to ...
2858 (value_contents_bits_eq): ... this. Check both unavailable
2859 contents and optimized out contents.
2860 (value_available_contents_eq): Rename to ...
2861 (value_contents_eq): ... this.
2862 (allocate_value_lazy): Remove reference to the old optimized_out
2863 boolean.
2864 (allocate_optimized_out_value): Use
2865 mark_value_bytes_optimized_out.
2866 (require_not_optimized_out): Adjust to check whether the
2867 optimized_out vec is empty.
2868 (ranges_copy_adjusted): New function, factored out from
2869 value_contents_copy_raw.
2870 (value_contents_copy_raw): Also copy the optimized out ranges.
2871 Assert the destination ranges aren't optimized out.
2872 (value_contents_copy): Update comment, remove call to
2873 require_not_optimized_out.
2874 (value_contents_equal): Adjust to check whether the optimized_out
2875 vec is empty.
2876 (set_value_optimized_out, value_optimized_out_const): Delete.
2877 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2878 New functions.
2879 (value_entirely_optimized_out, value_bits_valid): Delete.
2880 (value_copy): Take a VEC copy of the 'optimized_out' field.
2881 (value_primitive_field): Remove special handling of optimized out.
2882 (value_fetch_lazy): Assert that lazy values have no unavailable
2883 regions. Use value_bits_any_optimized_out. Remove some special
2884 handling for optimized out values.
2885 * value.h: Add intro comment about <optimized out> and
2886 <unavailable>.
2887 (struct lval_funcs): Remove check_validity and check_any_valid
2888 fields.
2889 (set_value_optimized_out, value_optimized_out_const): Remove.
2890 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2891 New declarations.
2892 (value_bits_any_optimized_out): New declaration.
2893 (value_bits_valid): Delete declaration.
2894 (value_available_contents_eq): Rename to ...
2895 (value_contents_eq): ... this, and extend comments.
2896
6694c411
JK
28972014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2898
2899 Fix -fsanitize=address on unreadable inferior strings.
2900 * valprint.c (val_print_string): Fix access before BUFFER.
2901
89a1c21a
SM
29022014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2903
2904 * target.c (target_struct_size): Remove.
2905 (target_struct_allocsize): Remove.
2906 (DEFAULT_ALLOCSIZE): Remove.
2907 (target_ops_p): New typedef.
2908 (DEF_VEC_P (target_ops_p)): New vector type.
2909 (target_structs): Change type to VEC (target_ops_p).
2910 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2911 (find_default_run_target): Rewrite for loop following changes to
2912 target_structs.
2913
cb417230
JB
29142014-08-19 Joel Brobecker <brobecker@adacore.com>
2915
2916 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2917 Adjust code accordingly. Adjust function description comment.
2918
817e0957
YQ
29192014-08-19 Yao Qi <yao@codesourcery.com>
2920
2921 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2922 types.
2923
2974be62
AM
29242014-08-19 Alan Modra <amodra@gmail.com>
2925
2926 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2927 * config.in: Regenerate.
2928 * configure: Regenerate.
2929
34abf635
GB
29302014-08-19 Tom Tromey <tromey@redhat.com>
2931 Gary Benson <gbenson@redhat.com>
2932
2933 * common/common-debug.h: New file.
2934 * common/common-debug.c: Likewise.
2935 * debug.c: Likewise.
2936 * Makefile.in (SFILES): Add common/common-debug.c.
2937 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2938 (COMMON_OBS): Add common-debug.o and debug.o.
2939 (common-debug.o): New rule.
2940 * common/common-defs.h: Include common-debug.h.
2941 * common/agent.c (debug_agent_printf): New function.
2942 (DEBUG_AGENT): Redefine.
2943 * nat/i386-dregs.c (debug_printf): Undefine.
2944
f6e94d78
GB
29452014-08-19 Gary Benson <gbenson@redhat.com>
2946
2947 * common/common-defs.h: Include print-utils.h.
2948 * utils.h: Do not include print-utils.h.
2949
9239eeab
GB
29502014-08-19 Tom Tromey <tromey@redhat.com>
2951 Gary Benson <gbenson@redhat.com>
2952
2953 * common/common-types.h: New file.
2954 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2955 * common/common-defs.h: Include common-types.h.
2956 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2957 (ULONGEST): Remove.
2958
ef87c8bb
GB
29592014-08-19 Tom Tromey <tromey@redhat.com>
2960 Gary Benson <gbenson@redhat.com>
2961
2962 * common/errors.h: New file.
2963 * common/errors.c: Likewise.
2964 * Makefile.in (SFILES): Add common/errors.c.
2965 (HFILES_NO_SRCDIR): Add common/errors.h.
2966 (COMMON_OBS): Add errors.o.
2967 (errors.o): New rule.
2968 * common/common-defs.h: Include errors.h.
2969 * utils.h (perror_with_name, error, verror, warning, vwarning):
2970 Don't declare.
2971 * common/common-utils.h: (malloc_failure, internal_error):
2972 Likewise.
2973
196a707b
GB
29742014-08-19 Gary Benson <gbenson@redhat.com>
2975
2976 * utils.c (internal_vproblem): Always print the message.
2977
ded4fc8f
DE
29782014-08-18 Doug Evans <dje@google.com>
2979
2980 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2981
950c97d8
JB
29822014-08-18 Joel Brobecker <brobecker@adacore.com>
2983
2984 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2985 Return 0 if TYPE is dynamic.
2986 (print_range): Add handling of dynamic ranges.
2987
3cdcd0ce
JB
29882014-08-18 Keven Boell <keven.boell@intel.com>
2989 Joel Brobecker <brobecker@adacore.com>
2990
2991 * gdbtypes.h (struct main_type): Add field "data_location".
2992 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2993 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2994 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2995 a dynamic data location.
2996 (resolve_dynamic_type): Add DW_AT_data_location handling.
2997 (copy_recursive, copy_type): Copy the data_location information
2998 when present.
2999 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3000 * value.c (value_from_contents_and_address): Add
3001 DW_AT_data_location handling.
3002
08412b07
JB
30032014-08-18 Keven Boell <keven.boell@intel.com>
3004 Joel Brobecker <brobecker@adacore.com>
3005
3006 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3007 field "get_object_address".
3008 * dwarf2expr.c (execute_stack_op): Add handling for
3009 DW_OP_push_object_address.
3010 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3011 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3012 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3013 (dwarf_expr_get_obj_addr): New function.
3014 (dwarf_expr_ctx_funcs): Add get_object_address field.
3015 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3016 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3017 (dwarf2_evaluate_property): Add parameter "address". Use it.
3018 (needs_get_obj_addr): New function.
3019 (needs_frame_ctx_funcs): Add get_object_address field.
3020 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3021 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3022 (resolve_dynamic_array): Likewise.
3023
84754697
JB
30242014-08-18 Joel Brobecker <brobecker@adacore.com>
3025
3026 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3027 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3028 fixed value for records and unions for which some GNAT encodings
3029 are present.
3030
da5c522f
JB
30312014-08-18 Joel Brobecker <brobecker@adacore.com>
3032
3033 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3034 rewrite to avoid "else if" and "else" constructs. Should be
3035 a no-op in practice.
3036
0d72a7c3
JB
30372014-08-18 Joel Brobecker <brobecker@adacore.com>
3038
3039 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3040 of lexical block.
3041
e66d4446
SC
30422014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3043
3044 PR c++/17132
3045 * eval.c: Update all calls to find_overload_match.
3046 * valarith.c: Likewise.
3047 (value_user_defined_cpp_op, value_user_defined_op): New
3048 argument NOSIDE. Update all callers.
3049 * valops.c (find_overload_match): New argument NOSIDE.
3050 * value.h (find_overload_match): Update signature.
3051
940df408
SC
30522014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3053
3054 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3055 'items' methods instead of 'iteritems' method on dictionaries.
3056
699ca60a
DE
30572014-08-15 Doug Evans <dje@google.com>
3058
3059 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3060 closer to use.
3061
37780ee5
DE
30622014-08-15 Doug Evans <dje@google.com>
3063
3064 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3065
0ad93d4f
DE
30662014-08-15 Doug Evans <dje@google.com>
3067
3068 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3069
20d8c372
DE
30702014-08-15 Doug Evans <dje@google.com>
3071
3072 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3073 unused.
3074
cb039ba4
EZ
30752014-08-15 Eli Zaretskii <eliz@gnu.org>
3076
3077 * dcache.h: Include target.h, to avoid compile time warnings.
3078
eb7a547a
JB
30792014-08-15 Joel Brobecker <brobecker@adacore.com>
3080
3081 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3082 frame_info" partial declaration.
3083 * gdbarch.h: Regenerate.
3084
783cecc8
YQ
30852014-08-15 Yao Qi <yao@codesourcery.com>
3086
3087 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3088 Add parameter 'decode_for_pst_p'. Callers update.
3089
65c749e7
YQ
30902014-08-13 Yao Qi <yao@codesourcery.com>
3091
3092 PR build/17104
3093 * configure.ac: Use local variable 'pos'.
3094 * configure: Regenerated.
3095
d769e349
DE
30962014-08-11 Doug Evans <dje@google.com>
3097
3098 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3099 message, it is redundant with "Reading symbols from ..." message.
3100
24f1235e
DE
31012014-08-10 Doug Evans <xdje42@gmail.com>
3102
3103 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3104
dcd2e6ef
YQ
31052014-08-09 Yao Qi <yao@codesourcery.com>
3106
3107 PR remote/9053
3108 * remote.c (remote_xfer_partial): Remove dead code.
3109
070bdf0b
AA
31102014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3111
3112 * ia64-linux-tdep.c: Include "regset.h".
3113 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3114 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3115 (ia64_linux_supply_fpregset): New function.
3116 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3117 (ia64_linux_regset_from_core_section): New function.
3118 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3119 method.
3120
08f9f542
AA
31212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3122
3123 * m68klinux-tdep.c: Include "regset.h".
3124 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3125 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3126 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3127 (m68k_linux_regset_from_core_section): New function.
3128 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3129 method.
3130
8f1cee41
AA
31312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3132
3133 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3134 function. Move logic to...
3135 (tilegx_linux_regmap): ... this new register map.
3136 (tilegx_linux_regset): Refer to register map, replace supply
3137 method by regcache_supply_regset, and add collect method.
3138 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3139 TILEGX_FIRST_EASY_REGNUM.
3140
c5741217
AA
31412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3142
3143 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3144 that calls regcache_supply_regset and handles the EPC register
3145 separately. Move main logic to...
3146 (score7_linux_gregmap): ... this new register map.
3147 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3148 (score7_linux_gregset): Refer to register map. Add collect method.
3149 (score7_linux_regset_from_core_section): Replace
3150 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3151 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3152 (struct regset): Delete unused forward declaraction.
3153 (struct pt_regs): Delete structure definition.
3154 (elf_gregset_t): Delete typedef.
3155
81580573
AA
31562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3157
3158 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3159 (nios2_core_regset): Add collect method.
3160
ba199d7d
AA
31612014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3162
3163 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3164 platform-independent and don't write to read-only input buffer.
3165 (m32r_linux_collect_gregset): New function.
3166 (m32r_linux_gregset): Add collect method.
3167
0006a9da
AA
31682014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3169
3170 * hppa-linux-tdep.c (greg_map): Rename to...
3171 (hppa_linux_gregmap): ... this. Also convert to
3172 regcache_map_entry format.
3173 (hppa_linux_supply_regset): Delete function.
3174 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3175 (hppa_linux_fpregmap): ... this new register map.
3176 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3177 register map, replace supply method by regcache_supply_regset, and
3178 add collect method regcache_collect_regset.
3179
901e1b23
AA
31802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3181
3182 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3183 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3184 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3185 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3186 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3187 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3188 (frv_linux_supply_gregset): Replace main logic by call to
3189 regcache_supply_regset, but keep clearing gr32-gr63.
3190 (frv_linux_supply_fpregset): Delete function.
3191 (frv_linux_gregset): Refer to appropriate register map and add
3192 regcache_collect_regset as the collect method.
3193 (frv_linux_fpregset): Likewise. Also exchange the supply method
3194 by regcache_supply_regset.
3195
1d6e7555
AA
31962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3197
3198 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3199 by call to alpha_supply_int_regs.
3200 (alpha_linux_collect_gregset): New function.
3201 (alpha_linux_supply_fpregset): Replace logic by call to
3202 alpha_supply_fp_regs.
3203 (alpha_linux_collect_fpregset): New function.
3204 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3205
d4d793bf
AA
32062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3207
3208 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3209 by call to regcache_collect_regset.
3210 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3211 instead of aarch64_linux_supply_gregset/_fpregset.
3212 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3213 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3214 header file instead.
3215 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3216 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3217 functions. Move logic to ...
3218 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3219 register maps.
3220 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3221 refer to new register maps, replace *_regset_from_core by
3222 regcache_supply_regset, and also use regcache_collect_regset.
3223 * aarch64-linux-tdep.h: Include "regset.h".
3224 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3225 Delete prototypes.
3226 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3227 macros, moved from C source file.
3228 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3229 variable declarations.
3230
99b7da5d
AA
32312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3232
3233 * s390-linux-nat.c: Include "regset.h".
3234 (regmap_gregset): Delete macro.
3235 (s390_64_regmap_gregset): New register map for
3236 regcache_supply/_collect_regset.
3237 (s390_64_gregset): New regset.
3238 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3239 (regmap_fpregset): Delete macro.
3240 (s390_native_supply, s390_native_collect): Delete functions.
3241 (supply_gregset, fill_gregset): Replace s390-specific regmap
3242 handling by a call to regcache_supply/_collect_regset.
3243 (supply_fpregset, fill_fpregset): Call regcache_supply/
3244 _collect_regset instead of s390_native_supply/_collect.
3245 (fetch_regset, store_regset): Likewise. Also change the last
3246 parameter to a regset instead of a regmap.
3247 (s390_linux_fetch_inferior_registers)
3248 (390_linux_store_inferior_registers): Adjust last parameter in
3249 calls to fetch_regset and store_regset.
3250 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3251 (s390_gregmap): ... this. Also make static const and convert to
3252 regcache_map_entry format.
3253 (s390x_regmap_gregset): Delete.
3254 (s390_regmap_fpregset): Rename to...
3255 (s390_fpregmap): ... this. Make static const and convert to
3256 regcache_map_entry format.
3257 (s390_regmap_upper, s390_regmap_last_break)
3258 (s390x_regmap_last_break, s390_regmap_system_call)
3259 (s390_regmap_tdb): Likewise.
3260 (s390_supply_regset, s390_collect_regset): Remove functions.
3261 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3262 s390_supply_regset.
3263 (s390_gregset, s390_fpregset, s390_upper_regset)
3264 (s390_last_break_regset, s390x_last_break_regset)
3265 (s390_system_call_regset, s390_tdb_regset): Make global and
3266 replace s390_supply/_collect_regset by regcache_supply/
3267 _collect_regset.
3268 (s390x_gregset): Delete.
3269 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3270 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3271 (s390_regmap_fpregset, s390_regmap_last_break)
3272 (s390x_regmap_last_break, s390_regmap_system_call)
3273 (s390_regmap_tdb): Delete global variable declarations.
3274 (s390_gregset, s390_fpregset, s390_last_break_regset)
3275 (s390x_last_break_regset, s390_system_call_regset)
3276 (s390_tdb_regset): New global variable declarations.
3277
0b309272
AA
32782014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3279
3280 * regcache.c: Include "regset.h".
3281 (regcache_transfer_regset): New local function.
3282 (regcache_supply_regset, regcache_collect_regset): New functions.
3283 * regcache.h (struct regcache_map_entry): New structure.
3284 (REGCACHE_MAP_SKIP): New enum value.
3285 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3286
7fefa8d7
AA
32872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3288
3289 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3290 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3291 (ppc_linux_collect_gregset ): Likewise.
3292 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3293 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3294 (ppc_collect_vrregset): Likewise.
3295 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3296 Likewise.
3297
96c4f946
YQ
32982014-08-07 Yao Qi <yao@codesourcery.com>
3299
3300 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3301 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3302 * remote.c (remote_read_bytes): Likewise.
3303
fffbe6a8
YQ
33042014-08-07 Yao Qi <yao@codesourcery.com>
3305
3306 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3307
5ee8a82c
YQ
33082014-08-07 Yao Qi <yao@codesourcery.com>
3309
3310 PR remote/17230
3311 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3312 TARGET_XFER_OK instead of 0.
3313
bb974a24
GB
33142014-08-07 Gary Benson <gbenson@redhat.com>
3315
3316 * common/common-defs.h: Include errno.h.
3317 * defs.h: Do not include errno.h.
3318 * ada-typeprint.c: Likewise.
3319 * c-typeprint.c: Likewise.
3320 * core-regset.c: Likewise.
3321 * corefile.c: Likewise.
3322 * corelow.c: Likewise.
3323 * event-loop.c: Likewise.
3324 * f-typeprint.c: Likewise.
3325 * gnu-nat.c: Likewise.
3326 * go32-nat.c: Likewise.
3327 * i386gnu-nat.c: Likewise.
3328 * m2-typeprint.c: Likewise.
3329 * nat/linux-btrace.c: Likewise.
3330 * p-typeprint.c: Likewise.
3331 * procfs.c: Likewise.
3332 * remote-sim.c: Likewise.
3333 * rs6000-nat.c: Likewise.
3334 * target.c: Likewise.
3335 * typeprint.c: Likewise.
3336 * ui-file.c: Likewise.
3337 * valops.c: Likewise.
3338 * valprint.c: Likewise.
3339
6d3d12eb
GB
33402014-08-07 Gary Benson <gbenson@redhat.com>
3341
3342 * common/common-defs.h: Include string.h.
3343 * aarch64-tdep.c: Do not include string.h.
3344 * ada-exp.y: Likewise.
3345 * ada-lang.c: Likewise.
3346 * ada-lex.l: Likewise.
3347 * ada-typeprint.c: Likewise.
3348 * ada-valprint.c: Likewise.
3349 * aix-thread.c: Likewise.
3350 * alpha-linux-tdep.c: Likewise.
3351 * alpha-mdebug-tdep.c: Likewise.
3352 * alpha-nat.c: Likewise.
3353 * alpha-osf1-tdep.c: Likewise.
3354 * alpha-tdep.c: Likewise.
3355 * alphanbsd-tdep.c: Likewise.
3356 * amd64-dicos-tdep.c: Likewise.
3357 * amd64-linux-tdep.c: Likewise.
3358 * amd64-nat.c: Likewise.
3359 * amd64-sol2-tdep.c: Likewise.
3360 * amd64fbsd-tdep.c: Likewise.
3361 * amd64obsd-tdep.c: Likewise.
3362 * arch-utils.c: Likewise.
3363 * arm-linux-nat.c: Likewise.
3364 * arm-linux-tdep.c: Likewise.
3365 * arm-tdep.c: Likewise.
3366 * arm-wince-tdep.c: Likewise.
3367 * armbsd-tdep.c: Likewise.
3368 * armnbsd-nat.c: Likewise.
3369 * armnbsd-tdep.c: Likewise.
3370 * armobsd-tdep.c: Likewise.
3371 * avr-tdep.c: Likewise.
3372 * ax-gdb.c: Likewise.
3373 * ax-general.c: Likewise.
3374 * bcache.c: Likewise.
3375 * bfin-tdep.c: Likewise.
3376 * breakpoint.c: Likewise.
3377 * build-id.c: Likewise.
3378 * buildsym.c: Likewise.
3379 * c-exp.y: Likewise.
3380 * c-lang.c: Likewise.
3381 * c-typeprint.c: Likewise.
3382 * c-valprint.c: Likewise.
3383 * charset.c: Likewise.
3384 * cli-out.c: Likewise.
3385 * cli/cli-cmds.c: Likewise.
3386 * cli/cli-decode.c: Likewise.
3387 * cli/cli-dump.c: Likewise.
3388 * cli/cli-interp.c: Likewise.
3389 * cli/cli-logging.c: Likewise.
3390 * cli/cli-script.c: Likewise.
3391 * cli/cli-setshow.c: Likewise.
3392 * cli/cli-utils.c: Likewise.
3393 * coffread.c: Likewise.
3394 * common/agent.c: Likewise.
3395 * common/buffer.c: Likewise.
3396 * common/buffer.h: Likewise.
3397 * common/common-utils.c: Likewise.
3398 * common/filestuff.c: Likewise.
3399 * common/filestuff.c: Likewise.
3400 * common/format.c: Likewise.
3401 * common/print-utils.c: Likewise.
3402 * common/rsp-low.c: Likewise.
3403 * common/signals.c: Likewise.
3404 * common/vec.h: Likewise.
3405 * common/xml-utils.c: Likewise.
3406 * core-regset.c: Likewise.
3407 * corefile.c: Likewise.
3408 * corelow.c: Likewise.
3409 * cp-abi.c: Likewise.
3410 * cp-name-parser.y: Likewise.
3411 * cp-support.c: Likewise.
3412 * cp-valprint.c: Likewise.
3413 * cris-tdep.c: Likewise.
3414 * d-exp.y: Likewise.
3415 * darwin-nat.c: Likewise.
3416 * dbxread.c: Likewise.
3417 * dcache.c: Likewise.
3418 * demangle.c: Likewise.
3419 * dicos-tdep.c: Likewise.
3420 * disasm.c: Likewise.
3421 * doublest.c: Likewise.
3422 * dsrec.c: Likewise.
3423 * dummy-frame.c: Likewise.
3424 * dwarf2-frame.c: Likewise.
3425 * dwarf2loc.c: Likewise.
3426 * dwarf2read.c: Likewise.
3427 * elfread.c: Likewise.
3428 * environ.c: Likewise.
3429 * eval.c: Likewise.
3430 * event-loop.c: Likewise.
3431 * exceptions.c: Likewise.
3432 * exec.c: Likewise.
3433 * expprint.c: Likewise.
3434 * f-exp.y: Likewise.
3435 * f-lang.c: Likewise.
3436 * f-typeprint.c: Likewise.
3437 * f-valprint.c: Likewise.
3438 * fbsd-nat.c: Likewise.
3439 * findcmd.c: Likewise.
3440 * findvar.c: Likewise.
3441 * fork-child.c: Likewise.
3442 * frame.c: Likewise.
3443 * frv-linux-tdep.c: Likewise.
3444 * frv-tdep.c: Likewise.
3445 * gdb.c: Likewise.
3446 * gdb_bfd.c: Likewise.
3447 * gdbarch.c: Likewise.
3448 * gdbarch.sh: Likewise.
3449 * gdbtypes.c: Likewise.
3450 * gnu-nat.c: Likewise.
3451 * gnu-v2-abi.c: Likewise.
3452 * gnu-v3-abi.c: Likewise.
3453 * go-exp.y: Likewise.
3454 * go-lang.c: Likewise.
3455 * go32-nat.c: Likewise.
3456 * guile/guile.c: Likewise.
3457 * guile/scm-auto-load.c: Likewise.
3458 * hppa-hpux-tdep.c: Likewise.
3459 * hppa-linux-nat.c: Likewise.
3460 * hppanbsd-tdep.c: Likewise.
3461 * hppaobsd-tdep.c: Likewise.
3462 * i386-cygwin-tdep.c: Likewise.
3463 * i386-dicos-tdep.c: Likewise.
3464 * i386-linux-tdep.c: Likewise.
3465 * i386-nto-tdep.c: Likewise.
3466 * i386-sol2-tdep.c: Likewise.
3467 * i386-tdep.c: Likewise.
3468 * i386bsd-tdep.c: Likewise.
3469 * i386gnu-nat.c: Likewise.
3470 * i386nbsd-tdep.c: Likewise.
3471 * i386obsd-tdep.c: Likewise.
3472 * i387-tdep.c: Likewise.
3473 * ia64-libunwind-tdep.c: Likewise.
3474 * ia64-linux-nat.c: Likewise.
3475 * inf-child.c: Likewise.
3476 * inf-ptrace.c: Likewise.
3477 * inf-ttrace.c: Likewise.
3478 * infcall.c: Likewise.
3479 * infcmd.c: Likewise.
3480 * inflow.c: Likewise.
3481 * infrun.c: Likewise.
3482 * interps.c: Likewise.
3483 * iq2000-tdep.c: Likewise.
3484 * irix5-nat.c: Likewise.
3485 * jv-exp.y: Likewise.
3486 * jv-lang.c: Likewise.
3487 * jv-typeprint.c: Likewise.
3488 * jv-valprint.c: Likewise.
3489 * language.c: Likewise.
3490 * linux-fork.c: Likewise.
3491 * linux-nat.c: Likewise.
3492 * lm32-tdep.c: Likewise.
3493 * m2-exp.y: Likewise.
3494 * m2-typeprint.c: Likewise.
3495 * m32c-tdep.c: Likewise.
3496 * m32r-linux-nat.c: Likewise.
3497 * m32r-linux-tdep.c: Likewise.
3498 * m32r-rom.c: Likewise.
3499 * m32r-tdep.c: Likewise.
3500 * m68hc11-tdep.c: Likewise.
3501 * m68k-tdep.c: Likewise.
3502 * m68kbsd-tdep.c: Likewise.
3503 * m68klinux-nat.c: Likewise.
3504 * m68klinux-tdep.c: Likewise.
3505 * m88k-tdep.c: Likewise.
3506 * machoread.c: Likewise.
3507 * macrocmd.c: Likewise.
3508 * main.c: Likewise.
3509 * mdebugread.c: Likewise.
3510 * mem-break.c: Likewise.
3511 * memattr.c: Likewise.
3512 * memory-map.c: Likewise.
3513 * mep-tdep.c: Likewise.
3514 * mi/mi-cmd-break.c: Likewise.
3515 * mi/mi-cmd-disas.c: Likewise.
3516 * mi/mi-cmd-env.c: Likewise.
3517 * mi/mi-cmd-stack.c: Likewise.
3518 * mi/mi-cmd-var.c: Likewise.
3519 * mi/mi-cmds.c: Likewise.
3520 * mi/mi-console.c: Likewise.
3521 * mi/mi-getopt.c: Likewise.
3522 * mi/mi-interp.c: Likewise.
3523 * mi/mi-main.c: Likewise.
3524 * mi/mi-parse.c: Likewise.
3525 * microblaze-rom.c: Likewise.
3526 * microblaze-tdep.c: Likewise.
3527 * mingw-hdep.c: Likewise.
3528 * minidebug.c: Likewise.
3529 * minsyms.c: Likewise.
3530 * mips-irix-tdep.c: Likewise.
3531 * mips-linux-tdep.c: Likewise.
3532 * mips-tdep.c: Likewise.
3533 * mips64obsd-tdep.c: Likewise.
3534 * mipsnbsd-tdep.c: Likewise.
3535 * mipsread.c: Likewise.
3536 * mn10300-linux-tdep.c: Likewise.
3537 * mn10300-tdep.c: Likewise.
3538 * monitor.c: Likewise.
3539 * moxie-tdep.c: Likewise.
3540 * mt-tdep.c: Likewise.
3541 * nat/linux-btrace.c: Likewise.
3542 * nat/linux-osdata.c: Likewise.
3543 * nat/linux-procfs.c: Likewise.
3544 * nat/linux-ptrace.c: Likewise.
3545 * nat/linux-waitpid.c: Likewise.
3546 * nbsd-tdep.c: Likewise.
3547 * nios2-linux-tdep.c: Likewise.
3548 * nto-procfs.c: Likewise.
3549 * nto-tdep.c: Likewise.
3550 * objc-lang.c: Likewise.
3551 * objfiles.c: Likewise.
3552 * opencl-lang.c: Likewise.
3553 * osabi.c: Likewise.
3554 * osdata.c: Likewise.
3555 * p-exp.y: Likewise.
3556 * p-lang.c: Likewise.
3557 * p-typeprint.c: Likewise.
3558 * parse.c: Likewise.
3559 * posix-hdep.c: Likewise.
3560 * ppc-linux-nat.c: Likewise.
3561 * ppc-sysv-tdep.c: Likewise.
3562 * ppcfbsd-tdep.c: Likewise.
3563 * ppcnbsd-tdep.c: Likewise.
3564 * ppcobsd-tdep.c: Likewise.
3565 * printcmd.c: Likewise.
3566 * procfs.c: Likewise.
3567 * prologue-value.c: Likewise.
3568 * python/py-auto-load.c: Likewise.
3569 * python/py-gdb-readline.c: Likewise.
3570 * ravenscar-thread.c: Likewise.
3571 * regcache.c: Likewise.
3572 * registry.c: Likewise.
3573 * remote-fileio.c: Likewise.
3574 * remote-m32r-sdi.c: Likewise.
3575 * remote-mips.c: Likewise.
3576 * remote-notif.c: Likewise.
3577 * remote-sim.c: Likewise.
3578 * remote.c: Likewise.
3579 * reverse.c: Likewise.
3580 * rs6000-aix-tdep.c: Likewise.
3581 * ser-base.c: Likewise.
3582 * ser-go32.c: Likewise.
3583 * ser-mingw.c: Likewise.
3584 * ser-pipe.c: Likewise.
3585 * ser-tcp.c: Likewise.
3586 * ser-unix.c: Likewise.
3587 * serial.c: Likewise.
3588 * sh-tdep.c: Likewise.
3589 * sh64-tdep.c: Likewise.
3590 * shnbsd-tdep.c: Likewise.
3591 * skip.c: Likewise.
3592 * sol-thread.c: Likewise.
3593 * solib-dsbt.c: Likewise.
3594 * solib-frv.c: Likewise.
3595 * solib-osf.c: Likewise.
3596 * solib-som.c: Likewise.
3597 * solib-spu.c: Likewise.
3598 * solib-target.c: Likewise.
3599 * solib.c: Likewise.
3600 * somread.c: Likewise.
3601 * source.c: Likewise.
3602 * sparc-nat.c: Likewise.
3603 * sparc-sol2-tdep.c: Likewise.
3604 * sparc-tdep.c: Likewise.
3605 * sparc64-tdep.c: Likewise.
3606 * sparc64fbsd-tdep.c: Likewise.
3607 * sparc64nbsd-tdep.c: Likewise.
3608 * sparcnbsd-tdep.c: Likewise.
3609 * spu-linux-nat.c: Likewise.
3610 * spu-multiarch.c: Likewise.
3611 * spu-tdep.c: Likewise.
3612 * stabsread.c: Likewise.
3613 * stack.c: Likewise.
3614 * std-regs.c: Likewise.
3615 * symfile.c: Likewise.
3616 * symmisc.c: Likewise.
3617 * symtab.c: Likewise.
3618 * target.c: Likewise.
3619 * thread.c: Likewise.
3620 * tilegx-linux-nat.c: Likewise.
3621 * tilegx-tdep.c: Likewise.
3622 * top.c: Likewise.
3623 * tracepoint.c: Likewise.
3624 * tui/tui-command.c: Likewise.
3625 * tui/tui-data.c: Likewise.
3626 * tui/tui-disasm.c: Likewise.
3627 * tui/tui-file.c: Likewise.
3628 * tui/tui-layout.c: Likewise.
3629 * tui/tui-out.c: Likewise.
3630 * tui/tui-regs.c: Likewise.
3631 * tui/tui-source.c: Likewise.
3632 * tui/tui-stack.c: Likewise.
3633 * tui/tui-win.c: Likewise.
3634 * tui/tui-windata.c: Likewise.
3635 * tui/tui-winsource.c: Likewise.
3636 * typeprint.c: Likewise.
3637 * ui-file.c: Likewise.
3638 * ui-out.c: Likewise.
3639 * user-regs.c: Likewise.
3640 * utils.c: Likewise.
3641 * v850-tdep.c: Likewise.
3642 * valarith.c: Likewise.
3643 * valops.c: Likewise.
3644 * valprint.c: Likewise.
3645 * value.c: Likewise.
3646 * varobj.c: Likewise.
3647 * vax-tdep.c: Likewise.
3648 * vaxnbsd-tdep.c: Likewise.
3649 * vaxobsd-tdep.c: Likewise.
3650 * windows-nat.c: Likewise.
3651 * xcoffread.c: Likewise.
3652 * xml-support.c: Likewise.
3653 * xstormy16-tdep.c: Likewise.
3654 * xtensa-linux-nat.c: Likewise.
3655
dccbb609
GB
36562014-08-07 Gary Benson <gbenson@redhat.com>
3657
3658 * common/common-defs.h: Include gdb_assert.h.
3659 * aarch64-tdep.c: Do not include gdb_assert.h.
3660 * addrmap.c: Likewise.
3661 * aix-thread.c: Likewise.
3662 * alpha-linux-tdep.c: Likewise.
3663 * alpha-mdebug-tdep.c: Likewise.
3664 * alphanbsd-tdep.c: Likewise.
3665 * amd64-nat.c: Likewise.
3666 * amd64-tdep.c: Likewise.
3667 * amd64bsd-nat.c: Likewise.
3668 * amd64fbsd-nat.c: Likewise.
3669 * amd64fbsd-tdep.c: Likewise.
3670 * amd64nbsd-nat.c: Likewise.
3671 * amd64nbsd-tdep.c: Likewise.
3672 * amd64obsd-nat.c: Likewise.
3673 * amd64obsd-tdep.c: Likewise.
3674 * arch-utils.c: Likewise.
3675 * arm-tdep.c: Likewise.
3676 * armbsd-tdep.c: Likewise.
3677 * auxv.c: Likewise.
3678 * bcache.c: Likewise.
3679 * bfin-tdep.c: Likewise.
3680 * blockframe.c: Likewise.
3681 * breakpoint.c: Likewise.
3682 * bsd-kvm.c: Likewise.
3683 * bsd-uthread.c: Likewise.
3684 * buildsym.c: Likewise.
3685 * c-exp.y: Likewise.
3686 * c-lang.c: Likewise.
3687 * charset.c: Likewise.
3688 * cleanups.c: Likewise.
3689 * cli-out.c: Likewise.
3690 * cli/cli-decode.c: Likewise.
3691 * cli/cli-dump.c: Likewise.
3692 * cli/cli-logging.c: Likewise.
3693 * cli/cli-script.c: Likewise.
3694 * cli/cli-utils.c: Likewise.
3695 * coffread.c: Likewise.
3696 * common/common-utils.c: Likewise.
3697 * common/queue.h: Likewise.
3698 * common/signals.c: Likewise.
3699 * common/vec.h: Likewise.
3700 * complaints.c: Likewise.
3701 * completer.c: Likewise.
3702 * corelow.c: Likewise.
3703 * cp-abi.c: Likewise.
3704 * cp-name-parser.y: Likewise.
3705 * cp-namespace.c: Likewise.
3706 * cp-support.c: Likewise.
3707 * cris-tdep.c: Likewise.
3708 * dbxread.c: Likewise.
3709 * dictionary.c: Likewise.
3710 * doublest.c: Likewise.
3711 * dsrec.c: Likewise.
3712 * dummy-frame.c: Likewise.
3713 * dwarf2-frame-tailcall.c: Likewise.
3714 * dwarf2-frame.c: Likewise.
3715 * dwarf2expr.c: Likewise.
3716 * dwarf2loc.c: Likewise.
3717 * dwarf2read.c: Likewise.
3718 * eval.c: Likewise.
3719 * event-loop.c: Likewise.
3720 * exceptions.c: Likewise.
3721 * expprint.c: Likewise.
3722 * f-valprint.c: Likewise.
3723 * fbsd-nat.c: Likewise.
3724 * findvar.c: Likewise.
3725 * frame-unwind.c: Likewise.
3726 * frame.c: Likewise.
3727 * frv-tdep.c: Likewise.
3728 * gcore.c: Likewise.
3729 * gdb-dlfcn.c: Likewise.
3730 * gdb_bfd.c: Likewise.
3731 * gdbarch.c: Likewise.
3732 * gdbarch.sh: Likewise.
3733 * gdbtypes.c: Likewise.
3734 * gnu-nat.c: Likewise.
3735 * gnu-v3-abi.c: Likewise.
3736 * go-lang.c: Likewise.
3737 * guile/scm-exception.c: Likewise.
3738 * guile/scm-gsmob.c: Likewise.
3739 * guile/scm-lazy-string.c: Likewise.
3740 * guile/scm-math.c: Likewise.
3741 * guile/scm-pretty-print.c: Likewise.
3742 * guile/scm-safe-call.c: Likewise.
3743 * guile/scm-utils.c: Likewise.
3744 * guile/scm-value.c: Likewise.
3745 * h8300-tdep.c: Likewise.
3746 * hppa-hpux-nat.c: Likewise.
3747 * hppa-tdep.c: Likewise.
3748 * hppanbsd-tdep.c: Likewise.
3749 * hppaobsd-tdep.c: Likewise.
3750 * i386-darwin-nat.c: Likewise.
3751 * i386-darwin-tdep.c: Likewise.
3752 * i386-nto-tdep.c: Likewise.
3753 * i386-tdep.c: Likewise.
3754 * i386bsd-nat.c: Likewise.
3755 * i386fbsd-tdep.c: Likewise.
3756 * i386gnu-nat.c: Likewise.
3757 * i386nbsd-tdep.c: Likewise.
3758 * i386obsd-tdep.c: Likewise.
3759 * i387-tdep.c: Likewise.
3760 * ia64-libunwind-tdep.c: Likewise.
3761 * ia64-tdep.c: Likewise.
3762 * inf-ptrace.c: Likewise.
3763 * inf-ttrace.c: Likewise.
3764 * infcall.c: Likewise.
3765 * infcmd.c: Likewise.
3766 * infrun.c: Likewise.
3767 * inline-frame.c: Likewise.
3768 * interps.c: Likewise.
3769 * jv-lang.c: Likewise.
3770 * jv-typeprint.c: Likewise.
3771 * linux-fork.c: Likewise.
3772 * linux-nat.c: Likewise.
3773 * linux-thread-db.c: Likewise.
3774 * m32c-tdep.c: Likewise.
3775 * m32r-linux-nat.c: Likewise.
3776 * m32r-tdep.c: Likewise.
3777 * m68k-tdep.c: Likewise.
3778 * m68kbsd-nat.c: Likewise.
3779 * m68kbsd-tdep.c: Likewise.
3780 * m88k-tdep.c: Likewise.
3781 * machoread.c: Likewise.
3782 * macroexp.c: Likewise.
3783 * macrotab.c: Likewise.
3784 * maint.c: Likewise.
3785 * mdebugread.c: Likewise.
3786 * memory-map.c: Likewise.
3787 * mep-tdep.c: Likewise.
3788 * mi/mi-common.c: Likewise.
3789 * microblaze-tdep.c: Likewise.
3790 * mingw-hdep.c: Likewise.
3791 * mips-linux-nat.c: Likewise.
3792 * mips-linux-tdep.c: Likewise.
3793 * mips-tdep.c: Likewise.
3794 * mips64obsd-tdep.c: Likewise.
3795 * mipsnbsd-tdep.c: Likewise.
3796 * mn10300-linux-tdep.c: Likewise.
3797 * mn10300-tdep.c: Likewise.
3798 * moxie-tdep.c: Likewise.
3799 * mt-tdep.c: Likewise.
3800 * nat/linux-btrace.c: Likewise.
3801 * nat/linux-osdata.c: Likewise.
3802 * nat/linux-ptrace.c: Likewise.
3803 * nat/mips-linux-watch.c: Likewise.
3804 * nios2-linux-tdep.c: Likewise.
3805 * nios2-tdep.c: Likewise.
3806 * objc-lang.c: Likewise.
3807 * objfiles.c: Likewise.
3808 * obsd-nat.c: Likewise.
3809 * opencl-lang.c: Likewise.
3810 * osabi.c: Likewise.
3811 * parse.c: Likewise.
3812 * ppc-linux-nat.c: Likewise.
3813 * ppc-sysv-tdep.c: Likewise.
3814 * ppcfbsd-nat.c: Likewise.
3815 * ppcfbsd-tdep.c: Likewise.
3816 * ppcnbsd-nat.c: Likewise.
3817 * ppcnbsd-tdep.c: Likewise.
3818 * ppcobsd-nat.c: Likewise.
3819 * ppcobsd-tdep.c: Likewise.
3820 * printcmd.c: Likewise.
3821 * procfs.c: Likewise.
3822 * prologue-value.c: Likewise.
3823 * psymtab.c: Likewise.
3824 * python/py-lazy-string.c: Likewise.
3825 * python/py-value.c: Likewise.
3826 * regcache.c: Likewise.
3827 * reggroups.c: Likewise.
3828 * registry.c: Likewise.
3829 * remote-sim.c: Likewise.
3830 * remote.c: Likewise.
3831 * rs6000-aix-tdep.c: Likewise.
3832 * rs6000-tdep.c: Likewise.
3833 * s390-linux-tdep.c: Likewise.
3834 * score-tdep.c: Likewise.
3835 * ser-base.c: Likewise.
3836 * ser-mingw.c: Likewise.
3837 * sh-tdep.c: Likewise.
3838 * sh64-tdep.c: Likewise.
3839 * solib-darwin.c: Likewise.
3840 * solib-spu.c: Likewise.
3841 * solib-svr4.c: Likewise.
3842 * source.c: Likewise.
3843 * sparc-nat.c: Likewise.
3844 * sparc-sol2-tdep.c: Likewise.
3845 * sparc-tdep.c: Likewise.
3846 * sparc64-sol2-tdep.c: Likewise.
3847 * sparc64-tdep.c: Likewise.
3848 * sparc64fbsd-tdep.c: Likewise.
3849 * sparc64nbsd-tdep.c: Likewise.
3850 * sparc64obsd-tdep.c: Likewise.
3851 * sparcnbsd-tdep.c: Likewise.
3852 * sparcobsd-tdep.c: Likewise.
3853 * spu-multiarch.c: Likewise.
3854 * spu-tdep.c: Likewise.
3855 * stabsread.c: Likewise.
3856 * stack.c: Likewise.
3857 * symfile.c: Likewise.
3858 * symtab.c: Likewise.
3859 * target-descriptions.c: Likewise.
3860 * target-memory.c: Likewise.
3861 * target.c: Likewise.
3862 * tic6x-linux-tdep.c: Likewise.
3863 * tic6x-tdep.c: Likewise.
3864 * tilegx-linux-nat.c: Likewise.
3865 * tilegx-tdep.c: Likewise.
3866 * top.c: Likewise.
3867 * tramp-frame.c: Likewise.
3868 * tui/tui-out.c: Likewise.
3869 * tui/tui-winsource.c: Likewise.
3870 * ui-out.c: Likewise.
3871 * user-regs.c: Likewise.
3872 * utils.c: Likewise.
3873 * v850-tdep.c: Likewise.
3874 * valops.c: Likewise.
3875 * value.c: Likewise.
3876 * varobj.c: Likewise.
3877 * vax-nat.c: Likewise.
3878 * xml-syscall.c: Likewise.
3879 * xml-tdesc.c: Likewise.
3880 * xstormy16-tdep.c: Likewise.
3881 * xtensa-linux-nat.c: Likewise.
3882 * xtensa-tdep.c: Likewise.
3883
e76df0d0
GB
38842014-08-07 Gary Benson <gbenson@redhat.com>
3885
3886 * common/common-defs.h: Include common-utils.h.
3887 * defs.h: Do not include common-utils.h.
3888 * common/gdb_assert.h: Likewise.
3889 * darwin-nat.h: Likewise.
3890 * nat/linux-btrace.c: Likewise.
3891 * target/waitstatus.h: Likewise.
3892
4cb9c816
GB
38932014-08-07 Gary Benson <gbenson@redhat.com>
3894
3895 * common/common-defs.h: Include ptid.h.
3896 * defs.h: Do not include ptid.h.
3897 * inferior.h: Likewise.
3898 * infrun.h: Likewise.
3899 * nat/linux-btrace.h: Likewise.
3900 * nat/linux-osdata.h: Likewise.
3901 * target/waitstatus.h: Likewise.
3902
3995eeee
GB
39032014-08-07 Gary Benson <gbenson@redhat.com>
3904
3905 * common/common-defs.h: Include gdb_locale.h.
3906 * defs.h: Do not include gdb_locale.h.
3907
cb9f1a9b
GB
39082014-08-07 Gary Benson <gbenson@redhat.com>
3909
3910 * common/common-defs.h: Include gdb/signals.h.
3911 * defs.h: Do not include gdb/signals.h.
3912
a5fceff8
GB
39132014-08-07 Gary Benson <gbenson@redhat.com>
3914
3915 * common/common-defs.h: Include pathmax.h.
3916 * defs.h: Do not include pathmax.h.
3917
b9391142
GB
39182014-08-07 Gary Benson <gbenson@redhat.com>
3919
3920 * common/common-defs.h: Include libiberty.h.
3921 * defs.h: Do not include libiberty.h.
3922 * common/queue.h: Likewise.
3923 * cp-name-parser.y: Likewise.
3924 * mi/mi-cmd-catch.c: Likewise.
3925 * python/python.c: Likewise.
3926
0e443c87
GB
39272014-08-07 Gary Benson <gbenson@redhat.com>
3928
3929 * common/common-defs.h: Include ansidecl.h.
3930 * defs.h: Do not include ansidecl.h.
3931 * common/buffer.h: Likewise.
3932 * common/common-utils.h: Likewise.
3933
8ebb3f56
GB
39342014-08-07 Gary Benson <gbenson@redhat.com>
3935
3936 * common/common-defs.h: Include stddef.h.
3937 * defs.h: Do not include stddef.h.
3938 * common/common-utils.h: Likewise.
3939 * amd64fbsd-nat.c: Likewise.
3940 * bcache.c: Likewise.
3941 * charset.c: Likewise.
3942 * common/buffer.h: Likewise.
3943 * common/vec.h: Likewise.
3944 * i386bsd-nat.c: Likewise.
3945 * nat/linux-btrace.h: Likewise.
3946 * ppcfbsd-nat.c: Likewise.
3947 * ppcnbsd-tdep.h: Likewise.
3948 * ppcobsd-nat.c: Likewise.
3949 * ppcobsd-tdep.h: Likewise.
3950 * python/py-gdb-readline.c: Likewise.
3951
8980bdf6
GB
39522014-08-07 Gary Benson <gbenson@redhat.com>
3953
3954 * common/common-defs.h: Include stdarg.h.
3955 * defs.h: Do not include stdarg.h.
3956 * ada-lang.c: Likewise.
3957 * common/common-utils.h: Likewise.
3958 * guile/scm-string.c: Likewise.
3959 * guile/scm-utils.c: Likewise.
3960 * m32c-tdep.c: Likewise.
3961
d7096f71
GB
39622014-08-07 Gary Benson <gbenson@redhat.com>
3963
3964 * common/common-defs.h: Include stdlib.h.
3965 * defs.h: Do not include stdlib.h.
3966 * addrmap.c: Likewise.
3967 * bcache.c: Likewise.
3968 * common/buffer.c: Likewise.
3969 * common/common-utils.c: Likewise.
3970 * cp-name-parser.y: Likewise.
3971 * go32-nat.c: Likewise.
3972 * mn10300-linux-tdep.c: Likewise.
3973 * nat/linux-osdata.c: Likewise.
3974 * tui/tui.c: Likewise.
3975 * windows-nat.c: Likewise.
3976
d02f550d
GB
39772014-08-07 Gary Benson <gbenson@redhat.com>
3978
3979 * common/common-defs.h: Include stdio.h.
3980 * defs.h: Do not include stdio.h.
3981 * ada-lang.c: Likewise.
3982 * common/buffer.c: Likewise.
3983 * common/common-utils.c: Likewise.
3984 * cp-name-parser.y: Likewise.
3985 * gnu-nat.c: Likewise.
3986 * go32-nat.c: Likewise.
3987 * i386gnu-nat.c: Likewise.
3988 * proc-api.c: Likewise.
3989 * proc-events.c: Likewise.
3990 * proc-flags.c: Likewise.
3991 * proc-why.c: Likewise.
3992 * python/python-internal.h: Likewise.
3993 * target-memory.c: Likewise.
3994 * tui/tui-io.c: Likewise.
3995 * tui/tui.c: Likewise.
3996
b6d7a4bf
SM
39972014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3998
3999 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4000 (scan_dyntag_auxv): Same.
4001
af19829b
YQ
40022014-08-06 Yao Qi <yao@codesourcery.com>
4003
4004 * amd64-linux-nat.c: Remove duplicated include
4005 "x86-linux-nat.h".
4006 * i386-linux-nat.c: Likewise.
4007
8e07a239
YQ
40082014-08-06 Yao Qi <yao@codesourcery.com>
4009
4010 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4011 operand" with "Special opcode" in comments.
4012
7bfe8241
GB
40132014-08-05 Gary Benson <gbenson@redhat.com>
4014
4015 * interps.c (initialize_interps): Remove prototype.
4016 (interpreter_initialized): Remove static global.
4017 (interp_add): Do not call initialize_interps.
4018 (initialize_interps): Remove function.
4019
d6c95504
GB
40202014-08-05 Gary Benson <gbenson@redhat.com>
4021
4022 * utils.c (vwarning): Remove spurious va_end.
4023
241fd515
AM
40242014-08-05 Alan Modra <amodra@gmail.com>
4025
4026 * charset.c (convert_between_encodings): Cast result of obstack_base.
4027 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4028 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4029 (read_unwind_info): Use size_t for some locals.
4030 * jit.c (finalize_symtab): Likewise.
4031 * utils.c (hashtab_obstack_allocate): Likewise.
4032 * symmisc.c (print_objfile_statistics): Update format strings.
4033
dc304a94
JK
40342014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4035
4036 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4037 (Changes in GDB 7.8): ... here.
4038
3cecbbbe
TT
40392014-08-04 Tom Tromey <tromey@redhat.com>
4040
4041 * target.c (set_targetdebug): New function.
4042 (initialize_targets): Pass set_targetdebug when creating "set
4043 debug target".
4044
6908c509
JB
40452014-08-01 Joel Brobecker <brobecker@adacore.com>
4046
4047 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4048 if detecting a variable-sized field that is not the last field.
4049 Fix struct type length computation.
4050
53e8f97d
JB
40512014-08-01 Joel Brobecker <brobecker@adacore.com>
4052
4053 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4054 Add debug trace.
4055
e068c55d
JB
40562014-08-01 Joel Brobecker <brobecker@adacore.com>
4057
4058 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4059 Remove "+ 8" offset in computation of CHAIN_VMA.
4060
4d4ca2a1
DE
40612014-07-31 Doug Evans <dje@google.com>
4062
4063 * inflow.c (child_terminal_inferior): Add comment.
4064 (child_terminal_ours_for_output): Add comment.
4065 (child_terminal_ours): Add comment.
4066 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4067 (linux_nat_terminal_ours): Add comment.
4068
462f517e
GB
40692014-07-31 Gary Benson <gbenson@redhat.com>
4070
4071 * common/btrace-common.h: Do not include defs.h or server.h.
4072 * nat/mips-linux-watch.h: Likewise.
4073 * gdb-dlfcn.h: Do not include defs.h.
4074 * tracefile.h: Likewise.
4075
74228e77
RM
40762014-07-30 Roland McGrath <mcgrathr@google.com>
4077
4078 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4079
014f9477
TT
40802014-07-30 Tom Tromey <tromey@redhat.com>
4081
4082 * bsd-kvm.c (bsd_kvm_open): Constify.
4083 * corelow.c (core_open): Constify.
4084 * ctf.c (ctf_open): Constify.
4085 * dbug-rom.c (dbug_open): Constify.
4086 * exec.c (exec_open): Constify.
4087 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4088 * microblaze-rom.c (picobug_open): Constify.
4089 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4090 Constify.
4091 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4092 * record-btrace.c (record_btrace_open): Constify.
4093 * record-full.c (record_full_core_open_1, record_full_open_1)
4094 (record_full_open): Constify.
4095 * remote-m32r-sdi.c (m32r_open): Constify.
4096 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4097 (rockhopper_open, lsi_open): Constify.
4098 * remote-sim.c (gdbsim_open): Constify.
4099 * remote.c (remote_open, extended_remote_open, remote_open_1):
4100 Constify.
4101 * target.h (struct target_ops) <to_open>: Make "arg" const.
4102 * tracefile-tfile.c (tfile_open): Constify.
4103
e799154c
TT
41042014-07-30 Tom Tromey <tromey@redhat.com>
4105
4106 * breakpoint.c (map_breakpoint_numbers): Update.
4107 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4108 (get_number_const): New function.
4109 (get_number): Rewrite using get_number_const.
4110 (init_number_or_range): Make "string" const.
4111 (number_is_in_list): Make "list" const.
4112 * cli/cli-utils.h (get_number_const): Declare.
4113 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4114 (init_number_or_range, number_is_in_list): Update.
4115 * printcmd.c (map_display_numbers): Update.
4116 * value.c (value_from_history_ref): Constify.
4117 * value.h (value_from_history_ref): Update.
4118
5f08566b
TT
41192014-07-30 Tom Tromey <tromey@redhat.com>
4120
4121 * corefile.c (hook_type, call_extra_exec_file_hooks)
4122 (specify_exec_file_hook): Constify.
4123 * exec.c (exec_file_attach): Make "filename" const.
4124 * gdbcore.h (deprecated_exec_file_display_hook)
4125 (specify_exec_file_hook, exec_file_attach): Constify.
4126 * main.c (captured_main): Use catch_command_errors_const.
4127
8981c758
TT
41282014-07-30 Tom Tromey <tromey@redhat.com>
4129
4130 * target.c (open_target): New function.
4131 (add_target_with_completer, add_deprecated_target_alias): Use
4132 set_cmd_sfunc, set_cmd_context.
4133 (debug_to_open): Remove.
4134 (setup_target_debug): Update.
4135
a1c7835a
YQ
41362014-07-30 Yao Qi <yao@codesourcery.com>
4137
4138 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4139 comments.
4140 * parse.c (exp_iterate): Update comments.
4141
976411d6
GB
41422014-07-30 Gary Benson <gbenson@redhat.com>
4143
4144 * common/common-defs.h: New file.
4145 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4146 * defs.h: Include common-defs.h.
4147 Do not include config.h or build-gnulib/config.h.
4148
5d4848a4
GB
41492014-07-30 Gary Benson <gbenson@redhat.com>
4150
4151 * common/common-utils.h: Do not include config.h.
4152 * nat/linux-btrace.h: Likewise.
4153
d41f6d8e
GB
41542014-07-30 Gary Benson <gbenson@redhat.com>
4155
4156 * btrace.c: Include defs.h.
4157 * common/ptid.c: Include defs.h or server.h as appropriate.
4158 * nat/mips-linux-watch.c: Likewise.
4159
84202f9c
TT
41602014-07-29 Tom Tromey <tromey@redhat.com>
4161
4162 * target.c (target_is_pushed): Simplify.
4163
2530441c
JB
41642014-07-29 Joel Brobecker <brobecker@adacore.com>
4165
4166 GDB 7.8 released.
4167
7e09a223
YQ
41682014-07-29 Yao Qi <yao@codesourcery.com>
4169
4170 PR gdb/17206
4171 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4172
7ebdbe92
DE
41732014-07-28 Doug Evans <xdje42@gmail.com>
4174
4175 PR guile/17203
4176 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4177 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4178 parameters.
4179
f347ffc9
WN
41802014-07-28 Will Newton <will.newton@linaro.org>
4181
4182 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4183 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4184 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4185 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4186 (THUMB2_EABI_SYSCALL): Likewise.
4187 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4188 struct tramp_frame.
4189 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4190 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4191
37c5f1f7
DE
41922014-07-27 Doug Evans <xdje42@gmail.com>
4193
4194 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4195
0c3abbc7
DE
41962014-07-27 Doug Evans <xdje42@gmail.com>
4197
4198 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4199
e76c5d17
DE
42002014-07-26 Ludovic Courtès <ludo@gnu.org>
4201 Doug Evans <xdje42@gmail.com>
4202
4203 PR guile/17146
4204 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4205 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4206 * configure.ac: Try to use guild to compile an scm file, if it fails
4207 then disable guile support.
4208 * configure: Regenerate.
4209 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4210 GUILE_FILE_LIST.
4211 (GUILE_COMPILED_FILES): New variable.
4212 (GUILE_FILES) Update.
4213 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4214 (stamp-guile): Compile scm files.
4215 * guile/guile.c (boot_guile_support): New function.
4216 (standard_throw_args_p): New function.
4217 (print_standard_throw_error, print_throw_error): New functions.
4218 (handle_boot_error): New function.
4219 (initialize_scheme_side): Rewrite to call boot_guile_support.
4220 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4221 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4222
186fcde0
DE
42232014-07-26 Ludovic Courtès <ludo@gnu.org>
4224 Doug Evans <xdje42@gmail.com>
4225
4226 PR guile/17146
4227 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4228 * guile/lib/gdb/support.scm: New file.
4229 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4230 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4231 All uses updated.
4232 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4233 All uses updated.
4234 (%assert-type): Ditto, and renamed to assert-type.
4235 (%exception-print-style): Delete.
4236
4df42755
DE
42372014-07-26 Doug Evans <xdje42@gmail.com>
4238
4239 PR build/17105
4240 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4241 * configure: Regenerate.
4242 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4243 PYTHON_FILES.
4244 (PYTHON_FILES): New variable.
4245 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4246 (GUILE_FILES): New variable.
4247 (stamp-python, install-python, uninstall-python): Handle empty
4248 file list.
4249 (stamp-guile, install-guile, uninstall-guile): Ditto.
4250
ee7333ae
DE
42512014-07-26 Doug Evans <xdje42@gmail.com>
4252
4253 PR guile/17177
4254 * guile/lib/gdb.scm (pretty-printers): Export.
4255 (set-pretty-printers!): Export.
4256 * guile/lib/gdb/printing.scm (gdb module): Update.
4257 (prepend-pretty-printer!, append-pretty-printer!): Update.
4258 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4259 (pretty_printer_list_var): Delete.
4260 (pretty_printer_list): New static global.
4261 (gdbscm_pretty_printers): New function.
4262 (gdbscm_set_pretty_printers_x): New function.
4263 (ppscm_find_pretty_printer_from_gdb): Update.
4264 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4265 (gdbscm_initialize_pretty_printers): Update.
4266
74edf516
DE
42672014-07-26 Doug Evans <xdje42@gmail.com>
4268
4269 PR 17185
4270 * configure.ac: Add check for header gc/gc.h.
4271 Add check for function setenv.
4272 * configure: Regenerate.
4273 * config.in: Regenerate.
4274 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4275
d54398a7
MR
42762014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4277
4278 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4279 variation in gdbarch matching.
4280
ab16fce8
TT
42812014-07-25 Tom Tromey <tromey@redhat.com>
4282
4283 * exec.c (using_exec_ops): Remove.
4284 (exec_close_1): Update. Remove extraneous block, reindent.
4285 (add_target_sections): Use target_is_pushed.
4286
88056fbb
PA
42872014-07-25 Pedro Alves <palves@redhat.com>
4288
4289 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4290 * monitor.c (monitor_create_inferior): Likewise.
4291 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4292 * remote-sim.c (gdbsim_create_inferior): Likewise.
4293 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4294 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4295 * windows-nat.c (do_initial_windows_stuff): Likewise.
4296
70509625
PA
42972014-07-25 Pedro Alves <palves@redhat.com>
4298
4299 * NEWS: Mention signal passing and "signal" command changes.
4300 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4301 comment.
4302 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4303 call.
4304 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4305 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4306 (jump_command): Adjust clear_proceed_status call.
4307 (signal_command): Warn if other thread that are resumed have
4308 signals that will be delivered. Adjust clear_proceed_status call.
4309 (until_next_command, finish_command)
4310 (proceed_after_attach_callback, attach_command_post_wait)
4311 (attach_command): Adjust clear_proceed_status call.
4312 * infrun.c (proceed_after_vfork_done): Likewise.
4313 (proceed_after_attach_callback): Adjust comment.
4314 (clear_proceed_status_thread): Clear stop_signal if not in pass
4315 state.
4316 (clear_proceed_status_callback): Delete.
4317 (clear_proceed_status): New 'step' parameter. Only clear the
4318 proceed status of threads the command being prepared is about to
4319 resume.
4320 (proceed): If passed in an explicit signal, override stop_signal
4321 with it. Don't pass the last stop signal to the thread we're
4322 resuming.
4323 (init_wait_for_inferior): Adjust clear_proceed_status call.
4324 (switch_back_to_stepped_thread): Clear the signal if it should not
4325 be passed.
4326 * infrun.h (clear_proceed_status): New 'step' parameter.
4327 (user_visible_resume_ptid): Add comment.
4328 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4329 signal is in pass state.
4330 * remote.c (append_pending_thread_resumptions): Likewise.
4331 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4332
d8be2939
TT
43332014-07-25 Tom Tromey <tromey@redhat.com>
4334
4335 * target.h (target_stopped_data_address)
4336 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4337 parentheses.
4338
7d0d9d2b
PL
43392014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4340
4341 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4342 comments.
4343 (avr_pointer_to_address): Likewise.
4344
e9e7f724
TT
43452014-07-24 Tom Tromey <tromey@redhat.com>
4346
4347 * monitor.c (compile_pattern): Update.
4348 * target.h (struct target_ops) <to_shortname, to_longname,
4349 to_doc>: Now const.
4350
1947513d
TT
43512014-07-24 Tom Tromey <tromey@redhat.com>
4352
4353 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4354 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4355 (add_info_alias, add_com): Make "doc" const.
4356 (print_doc_line): Make "str" const.
4357 (delete_cmd): Update.
4358 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4359 (print_doc_line): Update.
4360 * cli/cli-script.c (document_command): Update.
4361 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4362 (add_com, add_info, add_info_alias): Update.
4363 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4364 * python/py-cmd.c (cmdpy_destroyer): Update.
4365
64e61d29
TT
43662014-07-24 Tom Tromey <tromey@redhat.com>
4367
4368 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4369 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4370 (help_cmd_list): Constify.
4371 (lookup_cmd): Update.
4372 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4373 const.
4374 (help_cmd_list, apropos_cmd): Update.
4375 * cli/cli-script.c (show_user): Update.
4376 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4377 * cli/cli-setshow.h (cmd_show_list): Update.
4378 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4379 (cmd_show_list): Update.
4380 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4381 * python/py-cmd.c (cmdpy_destroyer): Update.
4382
429e55ea
TT
43832014-07-24 Tom Tromey <tromey@redhat.com>
4384
4385 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4386 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4387 const.
4388 * command.h (deprecate_cmd): Update.
4389 * maint.c (maintenance_do_deprecate): Add casts.
4390
64669f3b
TT
43912014-07-24 Tom Tromey <tromey@redhat.com>
4392
4393 * cli/cli-decode.c (help_cmd): Make parameter "const".
4394 * cli/cli-decode.h (help_cmd): Update.
4395
d3d3328b
TT
43962014-07-24 Tom Tromey <tromey@redhat.com>
4397
4398 * stack.c (up_silently_base, down_silently_base): Make argument
4399 const.
4400
414842dc
TT
44012014-07-24 Tom Tromey <tromey@redhat.com>
4402
4403 * solib.c (solib_add): Make "pattern" const.
4404 * solib.h (solib_add): Update.
4405
baa336ce
TT
44062014-07-24 Tom Tromey <tromey@redhat.com>
4407
4408 * remote.c (remote_serial_open, print_packet, putpkt)
4409 (putpkt_binary): Constify.
4410 * remote.h (putpkt): Update.
4411
5a19e2d0
TT
44122014-07-24 Tom Tromey <tromey@redhat.com>
4413
4414 * monitor.c (monitor_open): Make "args" const.
4415 * monitor.h (monitor_open): Update.
4416
fc4baa5e
TT
44172014-07-24 Tom Tromey <tromey@redhat.com>
4418
4419 * maint.c (match_bfd_flags): Make "string" const.
4420 (print_bfd_section_info): Remove casts.
4421 (print_objfile_section_info): Make "string" const.
4422
0d5f0dbe
TT
44232014-07-24 Tom Tromey <tromey@redhat.com>
4424
4425 * inf-child.c (inf_child_open_target): Make "arg" const.
4426 * inf-child.h (inf_child_open_target): Update.
4427
41c77899
TT
44282014-07-24 Tom Tromey <tromey@redhat.com>
4429
4430 * environ.c (unset_in_environ): Make "var" const.
4431 * environ.h (unset_in_environ): Update.
4432
93db0d79
TT
44332014-07-24 Tom Tromey <tromey@redhat.com>
4434
4435 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4436 Make "cmd" const.
4437 (scan_filename_with_cleanup): Likewise.
4438 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4439 Make arguments const.
4440 (restore_command): Update.
4441
36d6eb95
PA
44422014-07-24 Pedro Alves <palves@redhat.com>
4443
4444 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4445
8009206a
TT
44462014-07-24 Tom Tromey <tromey@redhat.com>
4447 Gary Benson <gbenson@redhat.com>
4448
4449 * nat/linux-ptrace.c (additional_flags): New global.
4450 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4451 additional_flags; don't check GDBSERVER.
4452 (linux_ptrace_set_additional_flags): New function.
4453 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4454 Declare.
4455 * linux-nat.c (_initialize_linux_nat): Call
4456 linux_ptrace_set_additional_flags.
4457
a7068b60
TT
44582014-07-24 Tom Tromey <tromey@redhat.com>
4459
4460 * make-target-delegates (munge_type, write_debugmethod): New
4461 functions.
4462 (debug_names): New global.
4463 ($TARGET_DEBUG_PRINTER): New global.
4464 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4465 name.
4466 Write debug methods. Generate init_debug_target.
4467 * target-debug.h: New file.
4468 * target-delegates.c: Rebuild.
4469 * target.c: Include target-debug.h.
4470 (debug_target): Hoist definition.
4471 (target_kill, target_get_section_table, target_memory_map)
4472 (target_flash_erase, target_flash_done, target_detach)
4473 (target_disconnect, target_wait, target_resume)
4474 (target_pass_signals, target_program_signals, target_follow_fork)
4475 (target_mourn_inferior, target_search_memory)
4476 (target_thread_address_space, target_close)
4477 (target_find_new_threads, target_core_of_thread)
4478 (target_verify_memory, target_insert_mask_watchpoint)
4479 (target_remove_mask_watchpoint): Remove targetdebug code.
4480 (debug_to_post_attach, debug_to_prepare_to_store)
4481 (debug_to_files_info, debug_to_insert_breakpoint)
4482 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4483 (debug_to_region_ok_for_hw_watchpoint)
4484 (debug_to_can_accel_watchpoint_condition)
4485 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4486 (debug_to_watchpoint_addr_within_range)
4487 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4488 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4489 (debug_to_terminal_init, debug_to_terminal_inferior)
4490 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4491 (debug_to_terminal_save_ours, debug_to_terminal_info)
4492 (debug_to_load, debug_to_post_startup_inferior)
4493 (debug_to_insert_fork_catchpoint)
4494 (debug_to_remove_fork_catchpoint)
4495 (debug_to_insert_vfork_catchpoint)
4496 (debug_to_remove_vfork_catchpoint)
4497 (debug_to_insert_exec_catchpoint)
4498 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4499 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4500 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4501 (setup_target_debug): Call init_debug_target.
4502 * target.h (TARGET_DEBUG_PRINTER): New macro.
4503 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4504 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4505
2c51604d
GB
45062014-07-24 Gary Benson <gbenson@redhat.com>
4507
4508 * exceptions.h (throw_vfatal): Renamed to...
4509 (throw_vquit): New declaration.
4510 (throw_quit): Likewise.
4511 * exceptions.c (throw_vfatal): Renamed to...
4512 (throw_vquit): New function.
4513 (throw_quit): Likewise.
4514 (throw_error): Call throw_verror rather than throw_it.
4515 * utils.h (vfatal): Removed.
4516 (fatal): Likewise.
4517 * utils.c (vfatal): Removed.
4518 (fatal): Likewise.
4519 (internal_verror): Replaced call to fatal with call to throw_quit.
4520 (quit): Replaced calls to fatal with calls to throw_quit.
4521
34211963
ME
45222014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4523
4524 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4525 target_read_code.
4526
a52b4d3e
ME
45272014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4528
4529 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4530 less than zero in conditional expression.
4531
a8bdc56b
TT
45322014-07-23 Tom Tromey <tromey@redhat.com>
4533
4534 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4535 ($INTRO_PART): Don't match whitespace.
4536 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4537 argument matching.
4538 ($METHOD): Add $METHOD_TRAILER.
4539 (trim): Rewrite.
4540 (scan_target_h): New sub.
4541 Change main loop not to collect state.
4542 * target-delegates.c: Rebuild.
4543
91b52240
GB
45442014-07-23 Gary Benson <gbenson@redhat.com>
4545
4546 * cp-support.c (gdb_demangle): Fix build on systems without
4547 sigaltstack.
4548
45326f6f
JK
45492014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4550
4551 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4552 for reference entry value target data value.
4553
e214cf6c
JK
45542014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4555
4556 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4557 value_available_contents_eq.
4558
bddbbedd
PA
45592014-07-22 Pedro Alves <palves@redhat.com>
4560
4561 * value.c (allocate_optimized_out_value): Don't mark value as
4562 non-lazy.
4563
45c71484
JW
45642014-07-22 Jiong Wang <jiong.wang@arm.com>
4565
4566 * MAINTAINERS (Write After Approval): Update my email address.
4567
9597b22a
DE
45682014-07-20 Doug Evans <dje@google.com>
4569
4570 PR server/17147
4571 * remote.c (putpkt_binary): Add text to error message.
4572
91101fe5
YQ
45732014-07-20 Yao Qi <yao@codesourcery.com>
4574
4575 * eval.c: Remove "Chill" from comments.
4576 * gdbtypes.h: Likewise.
4577 * symtab.h: Likewise.
4578
c9402c95
YQ
45792014-07-20 Yao Qi <yao@codesourcery.com>
4580
4581 * std-operator.def: Update comments to TERNOP_SLICE.
4582
ae8fddda
YQ
45832014-07-20 Yao Qi <yao@codesourcery.com>
4584
4585 * std-operator.def: Remove BINOP_RANGE.
4586 * breakpoint.c (watchpoint_exp_is_const): Update.
4587 * expprint.c (dump_subexp_body_standard): Likewise.
4588 * eval.c (init_array_element): Remove dead code.
4589 (evaluate_subexp_standard): Likewise.
4590
9c816640
YQ
45912014-07-20 Yao Qi <yao@codesourcery.com>
4592
4593 * std-operator.def: Remove BINOP_IN.
4594 * breakpoint.c (watchpoint_exp_is_const): Update.
4595 * eval.c (evaluate_subexp_standard): Likewise.
4596 * expprint.c (dump_subexp_body_standard): Likewise.
4597
164224e9
ME
45982014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4599
4600 * microblaze-tdep.c (microblaze_register_names): Add
4601 the rshr and rslr register names.
4602 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4603 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4604 Use of tdesc_numbered_register. Use of
4605 microblaze_register_g_packet_guesses. Use of
4606 tdesc_use_registers. Use of set_gdbarch_register_type.
4607 (microblaze_register_g_packet_guesses): New.
4608 * microblaze-tdep.h (microblaze_reg_num): Add
4609 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4610 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4611 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4612 * features/microblaze-core.xml: New file.
4613 * features/microblaze-stack-protect.xml: New file.
4614 * features/microblaze-with-stack-protect.c: New file.
4615 * features/microblaze-with-stack-protect.xml: New file.
4616 * features/microblaze.xml: New file.
4617 * features/microblaze.c: New file.
4618 * features/Makefile (microblaze-with-stack-protect): Add
4619 microblaze-with-stack-protect microblaze and microblaze-expedite.
4620 * regformats/microblaze-with-stack-protect.dat: New file.
4621 * regformats/microblaze.dat: New file.
4622 * doc/gdb.texinfo (MicroBlaze Features): Added.
4623
e8b2341c
TT
46242014-07-18 Tom Tromey <tromey@redhat.com>
4625
4626 * exec.c (exec_ops): Now static.
4627 * exec.h (exec_ops): Don't declare.
4628
44e89118
TT
46292014-07-18 Tom Tromey <tromey@redhat.com>
4630
4631 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4632 to find_target_beneath.
4633 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4634 find_target_beneath.
4635 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4636
b0ed115f
TT
46372014-07-18 Tom Tromey <tromey@redhat.com>
4638
4639 PR gdb/17130:
4640 * utils.c (quit): Use target_supports_terminal_ours.
4641 * target.h (target_supports_terminal_ours): Declare.
4642 * target.c (target_supports_delete_record): Don't check
4643 to_delete_record against NULL.
4644 (target_supports_terminal_ours): New function.
4645
e75fdfca
TT
46462014-07-18 Tom Tromey <tromey@redhat.com>
4647
4648 PR gdb/17130:
4649 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4650 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4651 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4652 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4653 * windows-nat.c (windows_xfer_partial): Always delegate.
4654 * record-btrace.c (record_btrace_xfer_partial): Simplify
4655 delegation.
4656 (record_btrace_fetch_registers, record_btrace_store_registers)
4657 (record_btrace_prepare_to_store, record_btrace_resume)
4658 (record_btrace_wait, record_btrace_find_new_threads)
4659 (record_btrace_thread_alive): Likewise.
4660 * procfs.c (procfs_xfer_partial): Always delegate.
4661 * corelow.c (core_xfer_partial): Always delegate.
4662 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4663
83814951
TT
46642014-07-18 Tom Tromey <tromey@redhat.com>
4665
4666 * exec.c (exec_make_note_section): Move earlier.
4667
b8b8facf
DE
46682014-07-17 Doug Evans <dje@google.com>
4669
74b49205 4670 PR gdb/17170
b8b8facf
DE
4671 * maint.c (count_symtabs_and_blocks): Handle NULL
4672 current_program_space.
4673 (report_command_stats): Check global enabled flag in addition to
4674 recorded enabled flag.
4675 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4676
69ff6be5
PA
46772014-07-16 Pedro Alves <palves@redhat.com>
4678
4679 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4680
252db1b5
TT
46812014-07-16 Tom Tromey <tromey@redhat.com>
4682
4683 * target.h (struct target_ops) <to_delete_record>: Reformat
4684 comment.
4685
a432721e
TT
46862014-07-16 Tom Tromey <tromey@redhat.com>
4687
4688 * target-delegates.c: Rebuild.
4689
487d9753
PL
46902014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4691
4692 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4693 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4694 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4695 (avr_pointer_to_address): Likewise.
4696 (avr_address_class_type_flags): New function.
4697 (avr_address_class_type_flags_to_name): Likewise.
4698 (avr_address_class_name_to_type_flags): Likewise.
4699 (avr_gdbarch_init): Set address_class_type_flags,
4700 address_class_type_flags_to_name and
4701 address_class_name_to_type_flags.
4702
57745c90
PA
47032014-07-15 Pedro Alves <palves@redhat.com>
4704
4705 * linux-nat.c (kill_callback): Save errno and work with saved
4706 copy.
4707
2d40be18
SM
47082014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4709
4710 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4711
572f6555
EBM
47122014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4713
4714 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4715 breakpoint support correctly.
4716
cc1c52ad
PA
47172014-07-14 Pedro Alves <palves@redhat.com>
4718
4719 * utils.c (prompt_for_continue): Call target_terminal_ours.
4720
1e973570
PA
47212014-07-14 Pedro Alves <palves@redhat.com>
4722
4723 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4724 catch_errors. Don't re-enable stdin or notify observers where,
4725 and rethrow error.
4726 (fetch_inferior_event_wrapper): Delete.
4727
93d6eb10
PA
47282014-07-14 Pedro Alves <palves@redhat.com>
4729
4730 PR gdb/17072
4731 * top.c: Include "inf-loop.h".
4732 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4733 field.
4734 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4735 was async before.
4736 (gdb_readline_wrapper): Store whether the target is async, and
4737 make it sync.
4738
0017922d
PA
47392014-07-14 Pedro Alves <palves@redhat.com>
4740
4741 PR gdb/17072
4742 * top.c (gdb_readline_wrapper_line): Tweak comment.
4743 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4744 the input handler callback.
4745
94696ad3
PA
47462014-07-14 Pedro Alves <palves@redhat.com>
4747
4748 PR gdb/17072
4749 * main.c: Include event-top.h.
4750 (handle_command_errors): New function.
4751 (catch_command_errors, catch_command_errors_const): Use it.
4752
9d1e69a2
PA
47532014-07-14 Pedro Alves <palves@redhat.com>
4754
4755 * exceptions.c (catch_command_errors, catch_command_errors_const):
4756 Moved to main.c.
4757 * exceptions.h (catch_command_errors_ftype)
4758 (catch_command_errors_const_ftype): Moved to main.c.
4759 (catch_command_errors, catch_command_errors_const): Delete
4760 declarations.
4761 * main.c (catch_command_errors_ftype)
4762 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4763 (catch_command_errors, catch_command_errors_const)): Moved here
4764 from exceptions.c and make static.
4765
feefc97b
PA
47662014-07-14 Pedro Alves <palves@redhat.com>
4767
4768 * exceptions.c (print_any_exception): Delete.
4769 (catch_exceptions_with_msg): Use exception_print instead of
4770 print_any_exception.
4771 (catch_errors): Use exception_fprintf instead of
4772 print_any_exception.
4773 (catch_command_errors, catch_command_errors_const): Use
4774 exception_print instead of print_any_exception.
4775
c933f875
PA
47762014-07-14 Pedro Alves <palves@redhat.com>
4777
4778 * infcall.c (run_inferior_call): Set 'sync_execution' while
4779 running the inferior call.
4780
feb6f816
PA
47812014-07-14 Pedro Alves <palves@redhat.com>
4782
4783 * value.c (value_contents_equal): Delete function.
4784 * value.h (value_contents_equal): Delete declaration.
4785
d98b7a16
TT
47862014-07-14 Tom Tromey <tromey@redhat.com>
4787
4788 PR exp/17106:
4789 * gdbtypes.c (is_dynamic_type_internal): New function, from
4790 is_dynamic_type.
4791 (is_dynamic_type): Rewrite.
4792 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4793 (resolve_dynamic_struct): Likewise.
4794 (resolve_dynamic_type_internal): New function, from
4795 resolve_dynamic_type.
4796 (resolve_dynamic_type): Rewrite.
4797
548740d6
TT
47982014-07-14 Tom Tromey <tromey@redhat.com>
4799
4800 * target.c (target_require_runnable): Also check record_stratum.
4801 Update comment.
4802
808f7ab1
YQ
48032014-07-11 Yao Qi <yao@codesourcery.com>
4804
4805 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4806 thumb_instruction_restores_sp return true.
4807
540314bd
YQ
48082014-07-11 Yao Qi <yao@codesourcery.com>
4809
4810 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4811 (thumb_in_function_epilogue_p): Call
4812 thumb_instruction_restores_sp.
4813
1db01f22
YQ
48142014-07-11 Yao Qi <yao@codesourcery.com>
4815
4816 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4817 'add sp, #imm'.
4818 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4819
3116063b
GB
48202014-07-11 Gary Benson <gbenson@redhat.com>
4821
4822 * amd64-linux-nat.c (gdbcore.h): Remove include.
4823 (regset.h): Likewise.
4824 (nat/linux-btrace.h): Likewise.
4825 (btrace.h): Likewise.
4826 (gdb_assert.h): Likewise.
4827 (string.h): Likewise.
4828 (sys/uio.h): Likewise.
4829 (sys/debugreg.h): Likewise.
4830 (sys/syscall.h): Likewise.
4831 (sys/procfs.h): Likewise.
4832 (sys/user.h): Likewise.
4833 (asm/ptrace.h): Likewise.
4834 (i386-nat.h): Likewise.
4835 * i386-linux-nat.c (i386-nat.h): Likewise.
4836 (regset.h): Likewise.
4837 (target.h): Likewise.
4838 (linux-nat.h): Likewise.
4839 (nat/linux-btrace.h): Likewise.
4840 (btrace.h): Likewise.
4841 (gdb_assert.h): Likewise.
4842 (string.h): Likewise.
4843 (sys/uio.h): Likewise.
4844 (sys/user.h): Likewise.
4845 (sys/procfs.h): Likewise.
4846 (sys/reg.h): Likewise.
4847 (sys/debugreg.h): Likewise.
4848 (ORIG_EAX): Remove definition.
4849
040baaf6
GB
48502014-07-11 Gary Benson <gbenson@redhat.com>
4851
4852 * i386-linux-nat.h: New file.
4853 * x86-linux-nat.h: Likewise.
4854 * x86-linux-nat.c: Likewise.
4855 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4856 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4857 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4858 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4859 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4860 (PTRACE_SETREGSET): Likewise.
4861 (arch_lwp_info): Now in x86-linux-nat.c.
4862 (have_ptrace_getregset): Now in x86-linux-nat.h.
4863 (x86_linux_dr_get): Now in x86-linux-nat.c.
4864 (x86_linux_dr_set): Likewise.
4865 (x86_linux_dr_get_addr): Likewise.
4866 (x86_linux_dr_get_control): Likewise.
4867 (x86_linux_dr_get_status): Likewise.
4868 (update_debug_registers_callback): Likewise.
4869 (x86_linux_dr_set_control): Likewise.
4870 (x86_linux_dr_set_addr): Likewise.
4871 (x86_linux_prepare_to_resume): Likewise.
4872 (x86_linux_new_thread): Likewise.
4873 (x86_linux_new_fork): Likewise.
4874 (x86_linux_get_thread_area): Likewise.
4875 (super_post_startup_inferior): Likewise.
4876 (x86_linux_child_post_startup_inferior): Likewise.
4877 (AMD64_LINUX_USER64_CS): Likewise.
4878 (AMD64_LINUX_X32_DS): Likewise.
4879 (x86_linux_read_description): Likewise.
4880 (x86_linux_enable_btrace): Likewise.
4881 (x86_linux_disable_btrace): Likewise.
4882 (x86_linux_teardown_btrace): Likewise.
4883 (x86_linux_read_btrace): Likewise.
4884 (x86_linux_create_target): Likewise.
4885 (x86_linux_add_target): Likewise.
4886 * i386-linux-nat.c (x86-linux-nat.h): New include.
4887 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4888 (PTRACE_SETREGSET): Likewise.
4889 (arch_lwp_info): Now in x86-linux-nat.c.
4890 (have_ptrace_getregset): Now in x86-linux-nat.h.
4891 (x86_linux_dr_get): Now in x86-linux-nat.c.
4892 (x86_linux_dr_set): Likewise.
4893 (x86_linux_dr_get_addr): Likewise.
4894 (x86_linux_dr_get_control): Likewise.
4895 (x86_linux_dr_get_status): Likewise.
4896 (update_debug_registers_callback): Likewise.
4897 (x86_linux_dr_set_control): Likewise.
4898 (x86_linux_dr_set_addr): Likewise.
4899 (x86_linux_prepare_to_resume): Likewise.
4900 (x86_linux_new_thread): Likewise.
4901 (x86_linux_new_fork): Likewise.
4902 (x86_linux_get_thread_area): Likewise.
4903 (super_post_startup_inferior): Likewise.
4904 (x86_linux_child_post_startup_inferior): Likewise.
4905 (AMD64_LINUX_USER64_CS): Likewise.
4906 (AMD64_LINUX_X32_DS): Likewise.
4907 (x86_linux_read_description): Likewise.
4908 (x86_linux_enable_btrace): Likewise.
4909 (x86_linux_disable_btrace): Likewise.
4910 (x86_linux_teardown_btrace): Likewise.
4911 (x86_linux_read_btrace): Likewise.
4912 (x86_linux_create_target): Likewise.
4913 (x86_linux_add_target): Likewise.
4914
1aa7e42c
GB
49152014-07-11 Gary Benson <gbenson@redhat.com>
4916
4917 * amd64-linux-nat.c: Comment and whitespace changes.
4918 * i386-linux-nat.c: Comment and whitespace changes.
4919
c1e246a0
GB
49202014-07-11 Gary Benson <gbenson@redhat.com>
4921
4922 * amd64-linux-nat.c (x86_linux_create_target): New function.
4923 (x86_linux_add_target): Likewise.
4924 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4925 * i386-linux-nat.c (x86_linux_create_target): New function.
4926 (x86_linux_add_target): Likewise.
4927 (_initialize_i386_linux_nat): Delegate to the above new functions.
4928
8c420b8d
GB
49292014-07-11 Gary Benson <gbenson@redhat.com>
4930
4931 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4932 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4933 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4934 (ps_get_thread_area): Delegate to the above.
4935
cb1da100
GB
49362014-07-11 Gary Benson <gbenson@redhat.com>
4937
4938 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4939 x86_linux_read_description. All uses updated. amd64-specific
4940 code conditionalized. Conditionalized i386-specific code added.
4941 Redundant cast removed.
4942 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4943 x86_linux_read_description. All uses updated. i386-specific
4944 code conditionalized. Conditionalized amd64-specific code added.
4945 One sizeof replaced with the actual type it is describing.
4946
2acf3cd0
GB
49472014-07-11 Gary Benson <gbenson@redhat.com>
4948
4949 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4950 x86_linux_dr_get. All uses updated.
4951 (amd64_linux_dr_set): Renamed to
4952 x86_linux_dr_set. All uses updated.
4953 (amd64_linux_dr_get_addr): Renamed to
4954 x86_linux_dr_get_addr. All uses updated.
4955 (amd64_linux_dr_get_control): Renamed to
4956 x86_linux_dr_get_control. All uses updated.
4957 (amd64_linux_dr_get_status): Renamed to
4958 x86_linux_dr_get_status. All uses updated.
4959 (amd64_linux_dr_set_control): Renamed to
4960 x86_linux_dr_set_control. All uses updated.
4961 (amd64_linux_dr_set_addr): Renamed to
4962 x86_linux_dr_set_addr. All uses updated.
4963 (amd64_linux_prepare_to_resume): Renamed to
4964 x86_linux_prepare_to_resume. All uses updated.
4965 (amd64_linux_new_thread): Renamed to
4966 x86_linux_new_thread. All uses updated.
4967 (amd64_linux_new_fork): Renamed to
4968 x86_linux_new_fork. All uses updated.
4969 (amd64_linux_child_post_startup_inferior): Renamed to
4970 x86_linux_child_post_startup_inferior. All uses updated.
4971 (amd64_linux_enable_btrace): Renamed to
4972 x86_linux_enable_btrace. All uses updated.
4973 (amd64_linux_disable_btrace): Renamed to
4974 x86_linux_disable_btrace. All uses updated.
4975 (amd64_linux_teardown_btrace): Renamed to
4976 x86_linux_teardown_btrace. All uses updated.
4977 (amd64_linux_read_btrace): Renamed to
4978 x86_linux_read_btrace. All uses updated.
4979 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4980 x86_linux_dr_get. All uses updated.
4981 (i386_linux_dr_set): Renamed to
4982 x86_linux_dr_set. All uses updated.
4983 (i386_linux_dr_get_addr): Renamed to
4984 x86_linux_dr_get_addr. All uses updated.
4985 (i386_linux_dr_get_control): Renamed to
4986 x86_linux_dr_get_control. All uses updated.
4987 (i386_linux_dr_get_status): Renamed to
4988 x86_linux_dr_get_status. All uses updated.
4989 (i386_linux_dr_set_control): Renamed to
4990 x86_linux_dr_set_control. All uses updated.
4991 (i386_linux_dr_set_addr): Renamed to
4992 x86_linux_dr_set_addr. All uses updated.
4993 (i386_linux_prepare_to_resume): Renamed to
4994 x86_linux_prepare_to_resume. All uses updated.
4995 (i386_linux_new_thread): Renamed to
4996 x86_linux_new_thread. All uses updated.
4997 (i386_linux_new_fork): Renamed to
4998 x86_linux_new_fork. All uses updated.
4999 (i386_linux_child_post_startup_inferior): Renamed to
5000 x86_linux_child_post_startup_inferior. All uses updated.
5001 (i386_linux_enable_btrace): Renamed to
5002 x86_linux_enable_btrace. All uses updated.
5003 (i386_linux_disable_btrace): Renamed to
5004 x86_linux_disable_btrace. All uses updated.
5005 (i386_linux_teardown_btrace): Renamed to
5006 x86_linux_teardown_btrace. All uses updated.
5007 (i386_linux_read_btrace): Renamed to
5008 x86_linux_read_btrace. All uses updated.
5009
b9c1d481
AS
50102014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5011
5012 * remote.c (extended_remote_post_attach): New function.
5013 (init_extended_remote_ops): Install it as to_post_attach method.
5014
7180e04a
PA
50152014-07-09 Pedro Alves <palves@redhat.com>
5016
5017 * infcmd.c (attach_command_post_wait): Don't call
5018 target_terminal_inferior here.
5019 (attach_command): Call it here instead.
5020
9a9a7608
AB
50212014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5022
5023 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5024 field.
5025 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5026 from varobj.c, with additional checks.
5027 (c_varobj_ops): Fill in is_path_expr_parent field.
5028 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5029 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5030 field.
5031 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5032 ops method.
5033 (varobj_default_is_path_expr_parent): New function.
5034 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5035 (varobj_default_is_path_expr_parent): Declare new function.
5036
1f267ae3
MM
50372014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5038
5039 * infcmd.c (finish_backward): Turn internal error into normal error.
5040
b2ee242b
PA
50412014-07-07 Pedro Alves <palves@redhat.com>
5042
8a869bca 5043 PR gdb/17096
b2ee242b
PA
5044 * remote.c (async_handle_remote_sigint)
5045 (async_handle_remote_sigint_twice): Call
5046 gdb_call_async_signal_handler instead of
5047 mark_async_signal_handler.
5048
38e229b2
TT
50492014-07-07 Tom Tromey <tromey@redhat.com>
5050
5051 * target-delegates.c: Rebuild.
5052 * target.c (target_info_record): Remove.
5053 * record.c (info_record_command): Unconditionally call
5054 to_info_record.
5055 * target.h (struct target_ops) <to_info_record>: Use
5056 TARGET_DEFAULT_IGNORE.
5057 (target_info_record): Remove.
5058
f0f9ff95
TT
50592014-07-07 Tom Tromey <tromey@redhat.com>
5060
5061 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5062 TARGET_DEFAULT_NORETURN.
5063 * target.c (generic_tls_error): New function.
5064 (target_translate_tls_address): Don't search target stack.
5065 * target-delegates.c: Rebuild.
5066 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5067 stack.
5068 * linux-thread-db.c (thread_db_get_thread_local_address):
5069 Unconditionally call beneath target.
5070
4a5be5ee
MK
50712014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5072
5073 * cli/cli-logging.c (pop_output_files): Assign targerr to
5074 gdb_stdtargerr.
5075
92c3b204
AB
50762014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5077
5078 * MAINTAINERS (Write After Approval): Update my email address.
5079
9b11e3a7
GB
50802014-07-02 Gary Benson <gbenson@redhat.com>
5081
5082 * proc-service.c (ps_xfer_memory): Update comment.
5083 (ps_pstop): Remove unused function.
5084 (ps_pcontinue): Likewise.
5085 (ps_lstop): Likewise.
5086 (ps_lcontinue): Likewise.
5087 (ps_lgetxregsize): Likewise.
5088 (ps_lgetxregs): Likewise.
5089 (ps_lsetxregs): Likewise.
5090 (ps_plog): Likewise.
5091 (ps_ptread): Likewise.
5092 (ps_ptwrite): Likewise.
5093
cf363f18
MW
50942014-07-01 Mark Wielaard <mjw@redhat.com>
5095
5096 * dwarf2read.c (add_array_cv_type): New function.
5097 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5098 (read_tag_volatile_type): Likewise.
5099
82ae6c8d
TT
51002014-07-01 Tom Tromey <tromey@redhat.com>
5101
5102 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5103 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5104 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5105 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5106 * command.h (cmd_cfunc_ftype): Move earlier.
5107 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5108 (add_com, add_info): Use cmd_cfunc_ftype.
5109
96142726
TT
51102014-06-30 Tom Tromey <tromey@redhat.com>
5111
5112 * symtab.c (operator_chars): Make parameters and return type
5113 const.
5114 (file_matches): Make "files" const.
5115 (struct search_symbols_data) <files>: Now const.
5116 (search_symbols): Make "regexp" and "files" parameters const.
5117 Update.
5118 (symtab_symbol_info): Remove cast.
5119 (rbreak_command): Update.
5120 * symtab.h (search_symbols): Update.
5121
b67a2c6f
YQ
51222014-06-27 Yao Qi <yao@codesourcery.com>
5123
5124 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5125 Change parameter type to 'struct thread_info *'. Caller
5126 updated.
5127 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5128 Update declaration.
5129 * dummy-frame.c (struct dummy_frame_id): New.
5130 (dummy_frame_id_eq): New function.
5131 (struct dummy_frame) <id>: Change its type to 'struct
5132 dummy_frame_id'.
5133 (dummy_frame_push): Add parameter ptid and save it in
5134 dummy_frame_id.
5135 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5136 inferior_ptid.
5137 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5138 to inferior_ptid.
5139 (lookup_dummy_frame): Change parameter type to 'struct
5140 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5141 instead of frame_id_eq.
5142 (dummy_frame_pop): Add parameter ptid. Callers updated.
5143 Update comments. Compose dummy_frame_id and pass it to
5144 lookup_dummy_frame.
5145 (dummy_frame_discard): Add parameter ptid.
5146 (dummy_frame_sniffer): Compose dummy_frame_id and call
5147 dummy_frame_id_eq instead of frame_id_eq.
5148 (fprint_dummy_frames): Print ptid.
5149 * dummy-frame.h: Remove comments.
5150 (dummy_frame_push): Add ptid in declaration.
5151 (dummy_frame_pop, dummy_frame_discard): Likewise.
5152
5b10184c
TT
51532014-06-26 Tom Tromey <tromey@redhat.com>
5154
5155 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5156 * command.h (error_no_arg): Update.
5157
06900326
TT
51582014-06-26 Tom Tromey <tromey@redhat.com>
5159
5160 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5161 (do_show_command): Make "arg" const.
5162 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5163
c2bcbb1d
TT
51642014-06-26 Tom Tromey <tromey@redhat.com>
5165
5166 * record-full.c (record_full_get_bookmark): Make "args" const.
5167 (record_full_goto_bookmark): Make "raw_bookmark" const.
5168 * record.c (record_goto): New function.
5169 (cmd_record_goto): Use it. Now static.
5170 * record.h (record_goto): Declare.
5171 (cmd_record_goto): Remove declaration.
5172 * target-delegates.c: Rebuild.
5173 * target.h (struct target_ops) <to_get_bookmark,
5174 to_goto_bookmark>: Make parameter const.
5175
9cbe5fff
TT
51762014-06-26 Tom Tromey <tromey@redhat.com>
5177
5178 * defs.h (generic_load): Update.
5179 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5180 * monitor.c (monitor_load): Make "args" const.
5181 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5182 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5183 const.
5184 (mips_load): Make "file" const.
5185 * remote-sim.c (gdbsim_load): Make "args" const.
5186 * remote.c (remote_load): Make "name" const.
5187 * symfile.c (generic_load): Make "args" const.
5188 * target-delegates.c: Rebuild.
5189 * target.c (target_load): Make "arg" const.
5190 (debug_to_load): Make "args" const.
5191 * target.h (struct target_ops) <to_load>: Make parameter const.
5192 (target_load): Update.
5193
34a68019
TT
51942014-06-26 Tom Tromey <tromey@redhat.com>
5195
5196 PR symtab/16902:
5197 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5198 (dwarf2_physname, read_partial_die)
5199 (guess_partial_die_structure_name, fixup_partial_die)
5200 (guess_full_die_structure_name, anonymous_struct_prefix)
5201 (dwarf2_name): Use per-BFD obstack.
5202
efc889c1
YQ
52032014-06-26 Yao Qi <yao@codesourcery.com>
5204
5205 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5206 dummyframe and this_id into inner block below.
5207
4395285e
YQ
52082014-06-26 Yao Qi <yao@codesourcery.com>
5209
5210 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5211 with "signal_pass[0]" in the initialization of signal_pass.
5212
aef92902
MM
52132014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5214
5215 * record-btrace.c (record_btrace_generating_corefile)
5216 (record_btrace_prepare_to_generate_core)
5217 (record_btrace_done_generating_core): New.
5218 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5219 (record_btrace_store_registers, record_btrace_prepare_to_store):
5220 Forward request when generating a core file.
5221 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5222 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5223 to_done_generating_core.
5224
5fff78c4
MM
52252014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5226
5227 * target.h (target_ops) <to_prepare_to_generate_core>
5228 <to_done_generating_core>: New.
5229 (target_prepare_to_generate_core, target_done_generating_core): New.
5230 * target.c (target_prepare_to_generate_core)
5231 (target_done_generating_core): New.
5232 * target-delegates.c: Regenerate.
5233 * gcore.c: (write_gcore_file): Rename to ...
5234 (write_gcore_file_1): ...this.
5235 (write_gcore_file): Call target_prepare_to_generate_core
5236 and target_done_generating_core.
5237
1d1f1ccb
MM
52382014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5239
5240 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5241 * gcore.c (write_gcore_file): Free memory returned from
5242 make_corefile_notes.
5243 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5244 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5245
3343ef86
YQ
52462014-06-24 Yao Qi <yao@codesourcery.com>
5247
5248 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5249 (arm_linux_init_abi): Set skip_trampoline_code with
5250 gdbarch_skip_trampoline_code instead of
5251 find_solib_trampoline_target.
5252
18d18ac8
YQ
52532014-06-24 Yao Qi <yao@codesourcery.com>
5254
5255 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5256 arm_skip_bx_reg returns non-zero.
5257
80d8d390
YQ
52582014-06-24 Yao Qi <yao@codesourcery.com>
5259
5260 * arm-tdep.c (arm_skip_bx_reg): New function.
5261 (arm_skip_stub): Call arm_skip_bx_reg.
5262
6a18a01c
DB
52632014-06-23 Don Breazeal <donb@codesourcery.com>
5264
5265 * MAINTAINERS: Add myself as write-after-approval maintainer.
5266
8e9db26e
PA
52672014-06-23 Pedro Alves <palves@redhat.com>
5268
5269 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5270 DR_CONTROL before setting DR0..DR3.
5271 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5272 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5273 bits of DR_CONTROL related to the debug register slot being
5274 disabled. If all slots are vacant, clear local slowdown as well,
5275 and assert DR_CONTROL is 0.
5276
70afc5b7
SC
52772014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5278
5279 * python/lib/gdb/command/xmethods.py
5280 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5281 current progspace only if the string "progspace" matches LOCUS_RE.
5282
840ed64d
JK
52832014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5284
5285 Fix --with-system-readline with readline-6.3 patch 5.
5286 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5287 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5288 types.
5289
26f2dc30
TT
52902014-06-20 Tom Tromey <tromey@redhat.com>
5291
5292 * dwarf2read.c (dw2_get_real_path): Use correct type in
5293 OBSTACK_CALLOC.
5294 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5295
125f8a3d
GB
52962014-06-20 Gary Benson <gbenson@redhat.com>
5297
5298 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5299 * common/glibc_thread_db.h: Likewise.
5300 * common/i386-cpuid.h: Likewise.
5301 * common/i386-gcc-cpuid.h: Likewise.
5302 * common/linux-btrace.h: Likewise.
5303 * common/linux-osdata.h: Likewise.
5304 * common/linux-procfs.h: Likewise.
5305 * common/linux-ptrace.h: Likewise.
5306 * common/mips-linux-watch.h: Likewise.
5307 * common/linux-btrace.c: Moved to nat.
5308 * common/linux-osdata.c: Likewise.
5309 * common/linux-procfs.c: Likewise.
5310 * common/linux-ptrace.c: Likewise.
5311 * common/mips-linux-watch.c: Likewise.
5312 * nat/gdb_thread_db.h: Moved from common.
5313 * nat/glibc_thread_db.h: Likewise.
5314 * nat/i386-cpuid.h: Likewise.
5315 * nat/i386-gcc-cpuid.h: Likewise.
5316 * nat/linux-btrace.c: Likewise.
5317 * nat/linux-btrace.h: Likewise.
5318 * nat/linux-osdata.c: Likewise.
5319 * nat/linux-osdata.h: Likewise.
5320 * nat/linux-procfs.c: Likewise.
5321 * nat/linux-procfs.h: Likewise.
5322 * nat/linux-ptrace.c: Likewise.
5323 * nat/linux-ptrace.h: Likewise.
5324 * nat/mips-linux-watch.c: Likewise.
5325 * nat/mips-linux-watch.h: Likewise.
5326 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5327 (object file files): Reordered.
5328 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5329 of glibc_thread_db.h.
5330
42995dbd
GB
53312014-06-20 Gary Benson <gbenson@redhat.com>
5332
5333 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5334 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5335 (i386_dr_low): Likewise.
5336 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5337 (i386_dr_low_set_addr): Likewise.
5338 (i386_dr_low_get_addr): Likewise.
5339 (i386_dr_low_can_set_control): Likewise.
5340 (i386_dr_low_set_control): Likewise.
5341 (i386_dr_low_get_control): Likewise.
5342 (i386_dr_low_get_status): Likewise.
5343 (i386_get_debug_register_length): Likewise.
5344 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5345 (i386_dr_low): Likewise.
5346 * nat/i386-dregs.c (i386-low.h): Remove include.
5347 (i386-nat.h): Likewise.
5348 (nat/i386-dregs.h): New include.
5349 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5350 (i386_dr_low_set_addr): Likewise.
5351 (i386_dr_low_get_addr): Likewise.
5352 (i386_dr_low_can_set_control): Likewise.
5353 (i386_dr_low_set_control): Likewise.
5354 (i386_dr_low_get_control): Likewise.
5355 (i386_dr_low_get_status): Likewise.
5356 (i386_get_debug_register_length): Likewise.
5357 (debug_hw_points): Likewise.
5358
3ed9baed
IB
53592014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5360
5361 * Makefile.in (SFILES): Add d-exp.y.
5362 (YYFILES): Add d-exp.c.
5363 (YYOBJ): Add d-exp.o.
5364 (local-maintainer-clean): Delete d-exp.c.
5365 * d-exp.y: New file.
5366 * d-lang.h (d_parse): New declaration.
5367 (d_error): New declaration.
5368 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5369 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5370 PREC_ORDER operators.
5371 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5372
78c164b0
YQ
53732014-06-19 Yao Qi <yao@codesourcery.com>
5374
5375 * gdbthread.h (any_running): Remove the declaration.
5376 * thread.c (any_running): Remove.
5377
f6e29b6e
YQ
53782014-06-19 Yao Qi <yao@codesourcery.com>
5379
5380 * gdbthread.h (struct thread_info) <state>: Change its type to
5381 'enum thread_state'. Update comments.
5382
034f788c
PA
53832014-06-19 Pedro Alves <palves@redhat.com>
5384
5385 * gdbthread.h (ALL_THREADS): Delete.
5386 (ALL_NON_EXITED_THREADS): New macro.
5387 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5388 instead of ALL_THREADS.
5389 * infrun.c (find_thread_needs_step_over)
5390 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5391 instead of ALL_THREADS.
5392 * record-btrace.c (record_btrace_open)
5393 (record_btrace_stop_recording, record_btrace_close)
5394 (record_btrace_is_replaying, record_btrace_resume)
5395 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5396 * remote.c (append_pending_thread_resumptions): Likewise.
5397 * thread.c (thread_apply_all_command): Likewise.
5398
46e33252
GB
53992014-06-19 Gary Benson <gbenson@redhat.com>
5400
5401 * i386-nat.c (i386_stopped_by_watchpoint):
5402 Use i386_dr_stopped_by_watchpoint.
5403 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5404 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5405
3a8ee006
GB
54062014-06-19 Gary Benson <gbenson@redhat.com>
5407
5408 * nat/i386-dregs.c: New file.
5409 * Makefile.in (i386-dregs.o): New rule.
5410 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5411 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5412 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5413 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5414 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5415 * config/i386/go32.mh (NATDEPFILES): Likewise.
5416 * config/i386/linux.mh (NATDEPFILES): Likewise.
5417 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5418 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5419 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5420 * i386-nat.h (debug_hw_points): New declaration.
5421 * i386-nat.c (breakpoint.h): Remove include.
5422 (command.h): Likewise.
5423 (target.h): Likewise.
5424 (gdb_assert.h): Likewise.
5425 (debug_hw_points): Made nonstatic.
5426 (debug_printf): Now in i386-dregs.c.
5427 (TARGET_HAS_DR_LEN_8): Likewise.
5428 (DR_CONTROL_SHIFT): Likewise.
5429 (DR_CONTROL_SIZE): Likewise.
5430 (DR_RW_EXECUTE): Likewise.
5431 (DR_RW_WRITE): Likewise.
5432 (DR_RW_READ): Likewise.
5433 (DR_RW_IORW): Likewise.
5434 (DR_LEN_1): Likewise.
5435 (DR_LEN_2): Likewise.
5436 (DR_LEN_4): Likewise.
5437 (DR_LEN_8): Likewise.
5438 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5439 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5440 (DR_ENABLE_SIZE): Likewise.
5441 (DR_LOCAL_SLOWDOWN): Likewise.
5442 (DR_GLOBAL_SLOWDOWN): Likewise.
5443 (DR_CONTROL_RESERVED): Likewise.
5444 (I386_DR_CONTROL_MASK): Likewise.
5445 (I386_DR_VACANT): Likewise.
5446 (I386_DR_LOCAL_ENABLE): Likewise.
5447 (I386_DR_GLOBAL_ENABLE): Likewise.
5448 (I386_DR_DISABLE): Likewise.
5449 (I386_DR_SET_RW_LEN): Likewise.
5450 (I386_DR_GET_RW_LEN): Likewise.
5451 (I386_DR_WATCH_HIT): Likewise.
5452 (i386_wp_op_t): Likewise.
5453 (i386_show_dr): Likewise.
5454 (i386_length_and_rw_bits): Likewise.
5455 (i386_insert_aligned_watchpoint): Likewise.
5456 (i386_remove_aligned_watchpoint): Likewise.
5457 (i386_handle_nonaligned_watchpoint): Likewise.
5458 (i386_update_inferior_debug_regs): Likewise.
5459 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5460 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5461 (i386_region_ok_for_watchpoint):
5462 Use i386_dr_region_ok_for_watchpoint.
5463 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5464
322a8e06
GB
54652014-06-19 Gary Benson <gbenson@redhat.com>
5466
5467 * i386-nat.c (i386_insert_hw_breakpoint): Use
5468 i386_insert_watchpoint.
5469 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5470
8f26655c
GB
54712014-06-19 Gary Benson <gbenson@redhat.com>
5472
5473 * i386-nat.c (i386_dr_show): Renamed to
5474 i386_show_dr and made static. All uses updated.
5475 (i386_dr_length_and_rw_bits): Renamed to
5476 i386_length_and_rw_bits and made static.
5477 All uses updated.
5478 (i386_dr_insert_aligned_watchpoint): Renamed to
5479 i386_insert_aligned_watchpoint and made static.
5480 All uses updated.
5481 (i386_dr_remove_aligned_watchpoint): Renamed to
5482 i386_remove_aligned_watchpoint and made static.
5483 All uses updated.
5484 (i386_dr_update_inferior_debug_regs): Renamed to
5485 i386_update_inferior_debug_regs and made static.
5486 All uses updated.
5487 * nat/i386-dregs.h (i386_dr_show): Removed.
5488 (i386_dr_length_and_rw_bits): Likewise.
5489 (i386_dr_insert_aligned_watchpoint): Likewise.
5490 (i386_dr_remove_aligned_watchpoint): Likewise.
5491 (i386_dr_update_inferior_debug_regs): Likewise.
5492
992c7d70
GB
54932014-06-19 Gary Benson <gbenson@redhat.com>
5494
5495 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5496 * configure: Regenerate.
5497 * config.in: Likewise.
5498 * main.c (signal.h): New include.
5499 (setup_alternate_signal_stack): New function.
5500 (captured_main): Call the above.
5501 * cp-support.c (signal.h): New include.
5502 (catch_demangler_crashes): New flag.
5503 (SIGJMP_BUF): New define.
5504 (SIGSETJMP): Likewise.
5505 (SIGLONGJMP): Likewise.
5506 (gdb_demangle_jmp_buf): New static global.
5507 (gdb_demangle_attempt_core_dump): Likewise.
5508 (gdb_demangle_signal_handler): New function.
5509 (gdb_demangle): If catch_demangler_crashes is set, install the
5510 above signal handler before calling bfd_demangle, and restore
5511 the original signal handler afterwards. Display the offending
5512 symbol and call demangler_warning the first time a segmentation
5513 fault is caught.
5514 (_initialize_cp_support): New maint set/show command.
5515
eae7090b
GB
55162014-06-19 Gary Benson <gbenson@redhat.com>
5517
5518 * utils.h (resource_limit_kind): New enum.
5519 (can_dump_core): New declaration.
5520 (warn_cant_dump_core): Likewise.
5521 (dump_core): Likewise.
5522 * utils.c (dump_core): Made nonstatic. Added new
5523 parameter "limit_kind".
5524 (can_dump_core): Made nonstatic. Moved printing code to...
5525 (warn_cant_dump_core): New function.
5526 (can_dump_core_warn): Likewise.
5527 (internal_vproblem): Replace calls to can_dump_core with
5528 calls to can_dump_core_warn. Supply new argument to each.
5529
57fcfb1b
GB
55302014-06-19 Gary Benson <gbenson@redhat.com>
5531
5532 * utils.h (demangler_vwarning): New declaration.
5533 (demangler_warning): Likewise.
5534 * utils.c (struct internal_problem)
5535 <user_settable_should_quit>: New field.
5536 <user_settable_should_dump_core>: Likewise
5537 (internal_error_problem): Add values for above new fields.
5538 (internal_warning_problem): Likewise.
5539 (demangler_warning_problem): New static global.
5540 (demangler_vwarning): New function.
5541 (demangler_warning): Likewise.
5542 (add_internal_problem_command): Selectively add commands.
5543 (_initialize_utils): New internal problem command.
5544 * maint.c (maintenance_demangler_warning): New function.
5545 (_initialize_maint_cmds): New command.
5546
17a40b44
TT
55472014-06-18 Tom Tromey <tromey@redhat.com>
5548
5549 * f-valprint.c (info_common_command_for_block): Update.
5550 * symtab.h (struct general_symbol_info) <common_block>: Now
5551 const.
5552
346d1dfe
TT
55532014-06-18 Tom Tromey <tromey@redhat.com>
5554
5555 * symtab.h (struct symtab) <blockvector>: Now const.
5556 * ada-lang.c (ada_add_global_exceptions): Update.
5557 * buildsym.c (augment_type_symtab): Update.
5558 * dwarf2read.c (dw2_lookup_symbol): Update.
5559 * jit.c (finalize_symtab): Update.
5560 * jv-lang.c (add_class_symtab_symbol): Update.
5561 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5562 Update.
5563 * objfiles.c (objfile_relocate1): Update.
5564 * psymtab.c (lookup_symbol_aux_psymtabs)
5565 (maintenance_check_psymtabs): Update.
5566 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5567 Update.
5568 * spu-tdep.c (spu_catch_start): Update.
5569 * symmisc.c (dump_symtab_1): Update.
5570 * symtab.c (lookup_global_symbol_from_objfile)
5571 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5572 (basic_lookup_transparent_type_quick)
5573 (basic_lookup_transparent_type, find_pc_sect_symtab)
5574 (find_pc_sect_line, search_symbols): Update.
5575 * block.c (find_block_in_blockvector): Make "bl" const.
5576 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5577 const.
5578 (blockvector_contains_pc): Make "bv" const.
5579 (block_for_pc_sect): Update.
5580 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5581 (blockvector_contains_pc): Update.
5582 * breakpoint.c (resolve_sal_pc): Update.
5583 * inline-frame.c (block_starting_point_at): Update.
5584
1834676b
TT
55852014-06-18 Tom Tromey <tromey@redhat.com>
5586
5587 * completer.c (complete_line): Make "line_buffer" const.
5588 * completer.h (complete_line): Update.
5589
ac1a991b
TT
55902014-06-18 Tom Tromey <tromey@redhat.com>
5591
5592 * symtab.c (add_macro_name): Remove unneeded cast.
5593
5bc98e52
TT
55942014-06-18 Tom Tromey <tromey@redhat.com>
5595
5596 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5597 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5598
8236def8
TT
55992014-06-18 Tom Tromey <tromey@redhat.com>
5600
5601 * probe.c (info_probes_for_ops): Make "arg" const.
5602 * probe.h (info_probes_for_ops): Update.
5603
3977b71f
TT
56042014-06-18 Tom Tromey <tromey@redhat.com>
5605
5606 * varobj.c (varobj_create): Update.
5607 * valops.c (value_of_this): Update.
5608 * tracepoint.c (add_local_symbols, scope_info): Update.
5609 * symtab.h (struct general_symbol_info) <block>: Now const.
5610 * symtab.c (skip_prologue_sal)
5611 (default_make_symbol_completion_list_break_on)
5612 (skip_prologue_using_sal): Update.
5613 * stack.h (iterate_over_block_locals)
5614 (iterate_over_block_local_vars): Update.
5615 * stack.c (print_frame_args): Update.
5616 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5617 parameter const.
5618 (get_selected_block): Make return type const.
5619 * python/py-frame.c (frapy_block): Update.
5620 * python/py-block.c (gdbpy_block_for_pc): Update.
5621 * p-exp.y (%union) <bval>: Now const.
5622 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5623 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5624 * m2-exp.y (%union) <bval>: Now const.
5625 * linespec.c (get_current_search_block): Make return type const.
5626 (create_sals_line_offset, find_label_symbols): Update.
5627 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5628 Update.
5629 (block_starting_point_at): Make "block" const.
5630 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5631 (check_exception_resume): Update.
5632 * guile/scm-frame.c (gdbscm_frame_block): Update.
5633 * guile/scm-block.c (gdbscm_lookup_block): Update.
5634 * frame.h (get_frame_block): Update.
5635 (get_selected_block): Make return type const.
5636 * frame.c (frame_id_inner): Update.
5637 * f-valprint.c (info_common_command_for_block)
5638 (info_common_command): Update.
5639 * dwarf2loc.c (dwarf2_find_location_expression)
5640 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5641 (locexpr_describe_location_piece): Update.
5642 * c-exp.y (%union) <bval>: Now const.
5643 * breakpoint.c (resolve_sal_pc): Update.
5644 * blockframe.c (get_frame_block):Make return type const.
5645 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5646 (block_innermost_frame): Update.
5647 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5648 (block_for_pc, block_for_pc_sect): Update.
5649 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5650 'pblock' const.
5651 (block_for_pc_sect, block_for_pc): Make return type const.
5652 * ax-gdb.c (gen_expr): Update.
5653 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5654 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5655 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5656 (ada_read_var_value): Update.
5657 * ada-exp.y (struct name_info) <block>: Now const.
5658 (%union): Likewise.
5659 (block_lookup): Constify.
5660
b9228891
GB
56612014-06-18 Gary Benson <gbenson@redhat.com>
5662
5663 * nat/i386-dregs.h: New file.
5664 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5665 * i386-nat.h (i386-dregs.h): New include.
5666 (DR_FIRSTADDR): Now in i386-dregs.h.
5667 (DR_LASTADDR): Likewise.
5668 (DR_NADDR): Likewise.
5669 (DR_STATUS): Likewise.
5670 (DR_CONTROL): Likewise.
5671 (i386_debug_reg_state): Likewise.
5672 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5673
a1aa2221
LM
56742014-06-18 Don Breazeal <donb@codesourcery.com>
5675
5676 * breakpoint.c (set_longjmp_breakpoint): Call
5677 momentary_breakpoint_from_master with additional argument.
5678 (set_longjmp_breakpoint_for_call_dummy): Call
5679 momentary_breakpoint_from_master with additional argument.
5680 (set_std_terminate_breakpoint): Call
5681 momentary_breakpoint_from_master with additional argument.
5682 (momentary_breakpoint_from_master): Add argument to function
5683 definition and use it to initialize structure member flag.
74228e77 5684 (clone_momentary_breakpoint): Call
a1aa2221
LM
5685 momentary_breakpoint_from_master with additional argument.
5686 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5687 member flags set in momentary_breakpoint_from_master.
5688
4be83cc2
GB
56892014-06-18 Gary Benson <gbenson@redhat.com>
5690
5691 * i386-nat.c (i386_show_dr): Renamed to
5692 i386_dr_show and made nonstatic. All uses updated.
5693 (i386_length_and_rw_bits): Renamed to
5694 i386_dr_length_and_rw_bits and made nonstatic.
5695 All uses updated.
5696 (i386_insert_aligned_watchpoint): Renamed to
5697 i386_dr_insert_aligned_watchpoint and made nonstatic.
5698 All uses updated.
5699 (i386_remove_aligned_watchpoint): Renamed to
5700 i386_dr_remove_aligned_watchpoint and made nonstatic.
5701 All uses updated.
5702 (i386_update_inferior_debug_regs): Renamed to
5703 i386_dr_update_inferior_debug_regs and made nonstatic.
5704 All uses updated.
5705
131aa0d4
GB
57062014-06-18 Gary Benson <gbenson@redhat.com>
5707
5708 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5709 (i386_dr_low_can_set_control): Likewise.
5710 (i386_dr_low_set_addr): Likewise.
5711 (i386_dr_low_set_control): Likewise.
5712 (i386_dr_low_get_addr): Likewise.
5713 (i386_dr_low_get_status): Likewise.
5714 (i386_dr_low_get_control): Likewise.
5715 (i386_insert_aligned_watchpoint): Use new macros.
5716 (i386_update_inferior_debug_regs): Likewise.
5717 (i386_stopped_data_address): Likewise.
5718
d9305f7f
GB
57192014-06-18 Gary Benson <gbenson@redhat.com>
5720
5721 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5722 New parameter. All uses updated.
5723
ea008da4
GB
57242014-06-18 Gary Benson <gbenson@redhat.com>
5725
5726 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5727 All uses updated.
5728
1b6d4134
GB
57292014-06-18 Gary Benson <gbenson@redhat.com>
5730
5731 * i386-nat.c (debug_printf): New macro.
5732 (i386_get_debug_register_length): Likewise.
5733 (TARGET_HAS_DR_LEN_8): Use above macro.
5734 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5735 and printf_unfiltered. Use phex to format values.
5736
9b4550ef
GB
57372014-06-18 Gary Benson <gbenson@redhat.com>
5738
5739 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5740 Make const.
5741
6e62758f
GB
57422014-06-18 Gary Benson <gbenson@redhat.com>
5743
5744 * i386-nat.c: Comment changes.
5745
51c79e94
GB
57462014-06-18 Gary Benson <gbenson@redhat.com>
5747
5748 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5749
3e11889a
GB
57502014-06-18 Gary Benson <gbenson@redhat.com>
5751
5752 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5753 (i386_insert_aligned_watchpoint): Likewise.
5754 (i386_remove_aligned_watchpoint): Likewise.
5755 (i386_handle_nonaligned_watchpoint): Likewise.
5756
fc6e2f03
GB
57572014-06-18 Gary Benson <gbenson@redhat.com>
5758
5759 * i386-nat.c: Whitespace changes.
5760
2afe7d50
SB
57612014-06-17 Samuel Bronson <naesten@gmail.com>
5762
5763 * MAINTAINERS: Update Roland McGrath's email address.
5764 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5765 Red Hat a while ago, and giving me a current address.
2afe7d50 5766
3bca49ee
TT
57672014-06-17 Tom Tromey <tromey@redhat.com>
5768
5769 * utils.h (savestring): Remove declaration.
5770
6e366df1
TT
57712014-06-17 Tom Tromey <tromey@redhat.com>
5772
5773 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5774
6be47f0c
KS
57752014-06-16 Keith Seitz <keiths@redhat.com>
5776
5777 PR mi/15863
5778 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5779 to update the varobj if inferior_ptid is null_ptid.
5780
7bc112c1
TT
57812014-06-16 Tom Tromey <tromey@redhat.com>
5782
5783 * target.h (struct target_ops) <to_info_proc>: Make parameter
5784 const.
5785 (target_info_proc): Update.
5786 * target.c (target_info_proc): Make "args" const.
5787 * procfs.c (procfs_info_proc): Update.
5788 * linux-tdep.c (linux_info_proc): Update.
5789 (linux_core_info_proc_mappings): Make "args" const.
5790 (linux_core_info_proc): Update.
5791 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5792 * gdbarch.c: Rebuild.
5793 * gdbarch.h: Rebuild.
5794 * corelow.c (core_info_proc): Update.
5795
fee354ee
TT
57962014-06-16 Tom Tromey <tromey@redhat.com>
5797
5798 * target.h (struct target_ops) <to_disconnect>: Make parameter
5799 const.
5800 (target_disconnect): Update.
5801 * target.c (target_disconnect): Make "args" const.
5802 * target-delegates.c: Rebuild.
5803 * remote.c (remote_disconnect): Update.
5804 * record.h (record_disconnect): Update.
5805 * record.c (record_disconnect): Update.
5806 * inf-child.c (inf_child_disconnect): Update.
5807
a30bf1f1
TT
58082014-06-16 Tom Tromey <tromey@redhat.com>
5809
5810 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5811 * target.c (debug_to_rcmd, default_rcmd): Update.
5812 * target-delegates.c: Rebuild.
5813 * remote.c (remote_rcmd): Update.
5814 * monitor.c (monitor_rcmd): Update.
5815
d03de421
PA
58162014-06-16 Pedro Alves <palves@redhat.com>
5817
5818 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5819 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5820 have OBJF_SHARED set.
5821 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5822 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5823 instead of OBJF_USERLOADED.
5824 * objfiles.h (OBJF_SHARED): Update comment.
5825 (userloaded_objfile_contains_address_p): Rename to ...
5826 (shared_objfile_contains_address_p): ... this, and update
5827 comments.
5828 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5829 new objfile.
5830 (remove_symbol_file_command): Skip objfiles that don't have
5831 OBJF_SHARED set.
5832
99f4262f
TT
58332014-06-16 Tom Tromey <tromey@redhat.com>
5834
5835 * minsyms.h (prim_record_minimal_symbol)
5836 (prim_record_minimal_symbol_and_info): Update comments.
5837
97d66cc6
EZ
58382014-06-14 Eli Zaretskii <eliz@gnu.org>
5839
5840 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5841 or --without-guile, according to how GDB was built.
5842
635c7e8a
TT
58432014-06-13 Tom Tromey <tromey@redhat.com>
5844
5845 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5846 to help_list.
5847 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5848 to help_list.
5849 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5850 help_list.
5851 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5852 help_list.Pass all_commands, not -1, to help_list.
5853 * cli/cli-dump.c (dump_command, append_command)
5854 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5855 (binary_dump_command, binary_append_command): Pass all_commands,
5856 not -1, to help_list.
5857 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5858 -1, to help_list.
5859 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5860 -1, to help_list.
5861 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5862 help_list.
5863 * top.c (set_history): Pass all_commands, not -1, to help_list.
5864 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5865 all_commands, not -1, to help_list.
5866 * symfile.c (overlay_command): Pass all_commands, not -1, to
5867 help_list.
5868 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5869 help_list.
5870 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5871 help_list.
5872 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5873 -1, to help_list.
5874 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5875 not -1, to help_list.
5876 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5877 not -1, to help_list.
5878 * maint.c (maintenance_command, maintenance_info_command)
5879 (maintenance_print_command, maintenance_set_cmd): Pass
5880 all_commands, not -1, to help_list.
5881 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5882 help_list.
5883 * language.c (set_check): Pass all_commands, not -1, to help_list.
5884 * infcmd.c (unset_command): Pass all_commands, not -1, to
5885 help_list.
5886 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5887 help_list.
5888 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5889 help_list.
5890 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5891 help_list.
5892 * breakpoint.c (save_command): Pass all_commands, not -1, to
5893 help_list.
5894 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5895 all_commands, not -1, to help_list.
5896
b94ade42
PL
58972014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5898
5899 * regcache.c (struct register_to_invalidate): New structure.
5900 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5901 functions.
5902 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5903
31f628ae
YQ
59042014-06-12 Yao Qi <yao@codesourcery.com>
5905
5906 * varobj.c (varobj_get_num_children): Call
5907 varobj_is_dynamic_p.
5908 (varobj_list_children): Likewise.
5909 (varobj_update): Likewise. Update comments.
5910
cde5ef40
YQ
59112014-06-12 Yao Qi <yao@codesourcery.com>
5912
5913 * varobj.c (varobj_pretty_printed_p): Rename to ...
5914 (varobj_is_dynamic_p): ... this. New function.
5915 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5916 (varobj_is_dynamic_p): Declare.
5917 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5918 (mi_print_value_p, varobj_update_one): Likewise.
5919
576ea091
YQ
59202014-06-12 Pedro Alves <pedro@codesourcery.com>
5921 Yao Qi <yao@codesourcery.com>
5922
5923 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5924 (varobj_get_iterator): Wrap up code for pretty-printer by
5925 "#if HAVE_PYTHON" and "#endif".
5926 (update_dynamic_varobj_children): Likewise.
5927
827f100c
YQ
59282014-06-12 Pedro Alves <pedro@codesourcery.com>
5929 Yao Qi <yao@codesourcery.com>
5930
5931 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5932 gdb_python_initialized is false. Move some code from varobj.c.
5933 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5934 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5935 (struct varobj_item): Moved to varobj-iter.h".
5936 (varobj_clear_saved_item): New function.
5937 (update_dynamic_varobj_children): Move python-related code to
5938 py-varobj.c.
5939 (free_variable): Call varobj_clear_saved_item and
5940 varobj_iter_delete.
5941
e5250216
YQ
59422014-06-12 Pedro Alves <pedro@codesourcery.com>
5943 Yao Qi <yao@codesourcery.com>
5944
5945 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5946 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5947 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5948 (py-varobj.o): New rule.
5949 * python/py-varobj.c: New file.
5950 * python/python-internal.h (py_varobj_get_iterator): Declare.
5951 * varobj-iter.h: New file.
5952 * varobj.c: Include "varobj-iter.h"
5953 (struct varobj) <child_iter>: Change its type from "PyObject *"
5954 to "struct varobj_iter *".
5955 <saved_item>: Likewise.
5956 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5957 [HAVE_PYTHON] (varobj_get_iterator): New function.
5958 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5959 python-specific code to python/py-varobj.c.
5960 (install_visualizer): Call varobj_iter_delete instead of
5961 Py_XDECREF.
5962 * varobj.h (varobj_ensure_python_env): Declare.
5963
5a2e0d6e
YQ
59642014-06-12 Yao Qi <yao@codesourcery.com>
5965
5966 * varobj.c (struct varobj_item): New structure.
5967 (create_child_with_value): Update declaration.
5968 (varobj_add_child): Replace arguments 'name' and 'value' with
5969 'item'. All callers updated.
5970 (install_dynamic_child): Likewise.
5971 (update_dynamic_varobj_children): Likewise.
5972 (varobj_add_child): Likewise.
5973 (create_child_with_value): Likewise.
5974
919b9a93
JB
59752014-06-11 Joel Brobecker <brobecker@adacore.com>
5976
5977 * NEWS: Create a new section for the next release branch.
5978 Rename the section of the current branch, now that it has
5979 been cut.
5980
71a55bdf
JB
59812014-06-11 Joel Brobecker <brobecker@adacore.com>
5982
5983 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5984 * version.in: Bump version to 7.8.50.DATE-cvs.
5985
364fe1f7
PA
59862014-06-11 Pedro Alves <palves@redhat.com>
5987
5988 PR remote/17028
5989 * ser-mingw.c (net_windows_socket_check_pending): New function.
5990 (net_windows_select_thread): Ignore spurious wakeups. Use
5991 net_windows_socket_check_pending.
5992 (net_windows_wait_handle): Check for pending events with
5993 ioctlsocket, through net_windows_socket_check_pending, instead of
5994 checking the socket's event.
5995
5a6c7709
SC
59962014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5997
5998 * python/python-internal.h (gdb_PyObject_GetAttrString)
5999 (gdb_PyObject_HasAttrString): New inline function definitions.
6000 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6001 char * of the second argument to PyObject_GetAttrString.
74228e77 6002
0e58ee40
JB
60032014-06-10 Joel Brobecker <brobecker@adacore.com>
6004
6005 * serial.c (serial_write): Fix index of character to be printed
6006 in call to serial_logchar when serial debug traces are enabled.
6007
d190df30
JB
60082014-06-10 Joel Brobecker <brobecker@adacore.com>
6009
6010 * gdbtypes (resolve_dynamic_range): Add function description.
6011
b4b01d36
PA
60122014-06-09 Pedro Alves <palves@redhat.com>
6013
6014 * linux-nat.c (linux_child_follow_fork): Initialize status with
6015 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6016 inner block. Only pass the signal to PTRACE_DETACH if in pass
6017 state.
6018
3657956b
GB
60192014-06-09 Gary Benson <gbenson@redhat.com>
6020
6021 * common/signals.c (gdb_signal_from_host): Reorder to separate
6022 the always-available ANSI-standard signals from the signals that
6023 require checking.
6024 (do_gdb_signal_to_host): Likewise.
6025 * proc-events.c (signal_table): Likewise.
6026
c077881a
HZ
60272014-06-08 Hui Zhu <hui@codesourcery.com>
6028
6029 * common/linux-ptrace.c (linux_disable_event_reporting): New
6030 function.
6031 * common/linux-ptrace.h (linux_disable_event_reporting): New
6032 declaration.
6033 * linux-nat.c (linux_child_follow_fork): Do a single step before
6034 detach.
6035
4186eb54
KS
60362014-06-07 Keith Seitz <keiths@redhat.com>
6037
6038 Revert:
6039 PR c++/16253
6040 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6041 from symbol_matches_domain in symtab.c. All local callers
6042 of symbol_matches_domain updated.
6043 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6044 search STRUCT_DOMAIN.
6045 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6046 independently. standard_lookup will do that automatically.
6047 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6048 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6049 (cp_lookup_symbol_in_namespace): Likewise.
6050 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6051 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6052 may return a STRUCT_DOMAIN match.
6053 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6054 * cp-support.c: Include language.h.
6055 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6056 VAR_DOMAIN.
6057 * psymtab.c (match_partial_symbol): Compare the requested
6058 domain with the symbol's domain directly.
6059 (lookup_partial_symbol): Likewise.
6060 * symtab.c (lookup_symbol_in_language): Explain when/why
6061 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6062 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6063 appropriate languages.
6064 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6065 and moved to ada-lang.c
6066 (lookup_block_symbol): Explain that this function only returns
6067 symbol matching the requested DOMAIN.
6068 Compare the requested domain with the symbol's domain directly.
6069 (iterate_over_symbols): Compare the requested domain with the
6070 symbol's domain directly.
6071 * symtab.h (symbol_matches_domain): Remove.
6072
25326a28 60732014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6074
6075 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6076 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6077 (gdbscm_guile_version_is_at_least): Declare.
6078 (gdbscm_scm_string_to_int): Declare.
6079 * guile/guile.c (gdbscm_guile_major_version): New global.
6080 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6081 (guile_datadir): New static global.
6082 (gdbscm_guile_data_directory): New function.
6083 (initialize_scheme_side): Update.
6084 (misc_guile_functions): Add guile-data-directory.
6085 (initialize_gdb_module): Fetch guile version number.
6086 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6087 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6088 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6089 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6090 comments.
6091 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6092 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6093 * guile/scm-value.c (gdbscm_value_to_string): Only call
6094 scm_port_conversion_strategy if Guile version >= 2.0.6.
6095
0a770bb2 60962014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6097
6098 * main.c (print_gdb_help): Add -q and --silent.
6099
73ba372c
GB
61002014-06-06 Gary Benson <gbenson@redhat.com>
6101
6102 * common/signals.c: Remove preprocessor conditionals for
6103 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6104 SIGSEGV and SIGTERM.
6105 * proc-events.c: Likewise.
6106
c33b2f12
MM
61072014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6108
6109 * symfile.c (symfile_free_objfile): Remove restriction to
6110 OBJF_USERLOADED.
6111 * symfile-mem.c (symbol_file_add_from_memory): Call
6112 add_target_sections_of_objfile.
6113
fb934770
LC
61142014-06-05 Ludovic Courtès <ludo@gnu.org>
6115
6116 * guile/scm-value.c (gdbscm_history_append_x): Use
6117 'vlscm_get_value_smob_arg_unsafe' instead of
6118 'vlscm_scm_to_value'.
6119
6ef284bd
SM
61202014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6121
6122 PR mi/15806
6123 * utils.c (printchar): Don't escape at all if quoter is NUL.
6124 Update function documentation to clarify effect of parameter
6125 QUOTER.
6126 * remote.c (escape_buffer): Pass '\\' as the quoter to
6127 fputstrn_unfiltered.
6128 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6129 generate the output.
6130 (mi_solib_unloaded): Same.
6131
270c9937
JB
61322014-06-05 Joel Brobecker <brobecker@adacore.com>
6133
6134 * development.sh: Delete.
6135 * Makefile.in (config.status): Adjust dependency on development.sh.
6136 * configure.ac: Adjust development.sh source call.
6137 * configure: Regenerate.
6138
16f691fb
DE
61392014-06-04 Doug Evans <xdje42@gmail.com>
6140
6141 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6142 is_scheme_bkpt, spec.
6143 (bpscm_make_breakpoint_smob): Initialize new members.
6144 (gdbscm_create_breakpoint_x): Split into two ...
6145 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6146 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6147 (scheme_function breakpoint_functions): Update.
6148 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6149 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6150 register-breakpoint!.
6151
ef7cab6b
JB
61522014-06-04 Joel Brobecker <brobecker@adacorer.com>
6153
6154 PR server/17023
6155 * mem-break.c (z_type_supported): Return zero if
6156 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6157
012370f6
TT
61582014-06-04 Tom Tromey <tromey@redhat.com>
6159
6160 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6161 value_from_contents_and_address_unresolved.
6162 (ada_template_to_fixed_record_type_1): Likewise.
6163 (ada_which_variant_applies): Likewise.
6164 * value.h (value_from_contents_and_address_unresolved): Declare.
6165 * value.c (value_from_contents_and_address_unresolved): New
6166 function.
6167 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6168 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6169 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6170
92e2a17f
TT
61712014-06-04 Tom Tromey <tromey@redhat.com>
6172
6173 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6174
c0939df1
TT
61752014-06-04 Tom Tromey <tromey@redhat.com>
6176
6177 * procfs.c (procfs_attach): Make "args" const.
6178 * windows-nat.c (windows_attach): Make "args" const.
6179 * nto-procfs.c (procfs_attach): Make "args" const.
6180 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6181 * go32-nat.c (go32_attach): Make "args" const.
6182 * gnu-nat.c (gnu_attach): Make "args" const.
6183 * darwin-nat.c (darwin_attach): Make "args" const.
6184 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6185 * linux-nat.c (linux_nat_attach): Make "args" const.
6186 * remote.c (extended_remote_attach_1, extended_remote_attach):
6187 Make "args" const.
6188 * target.h (struct target_ops) <to_attach>: Make "args" const.
6189 (find_default_attach): Likewise.
6190 * utils.c (parse_pid_to_attach): Make "args" const.
6191 * utils.h (parse_pid_to_attach): Update.
6192
8eaff7cd
TT
61932014-06-04 Tom Tromey <tromey@redhat.com>
6194
6195 * target-delegates.c: Rebuild.
6196 * target.c (default_thread_address_space): New function.
6197 (target_thread_address_space): Simplify.
6198 * target.h (struct target_ops) <to_thread_address_space>: Add
6199 TARGET_DEFAULT_FUNC.
6200
1913f160
DE
62012014-06-04 Doug Evans <xdje42@gmail.com>
6202
6203 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6204
70ad5bff
MM
62052014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6206
6207 * record-btrace.c: Include event-loop.h and inf-loop.h.
6208 (record_btrace_resume_exec_dir)
6209 (record_btrace_async_inferior_event_handler)
6210 (record_btrace_handle_async_inferior_event): New.
6211 (record_btrace_open): Create async event handler.
6212 (record_btrace_close): Delete async event handler.
6213 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6214 Mark async event handler.
6215 (record_btrace_execution_direction): New.
6216 (init_record_btrace_ops): Initialize to_execution_direction.
6217
b6210538
DE
62182014-06-03 Doug Evans <xdje42@gmail.com>
6219
6220 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6221 (gdbscm_make_parameter): Ditto.
6222
a5b1fd27
DE
62232014-06-03 Doug Evans <dje@google.com>
6224
6225 * exec.c (exec_close_1): Call clear_section_table instead of
6226 resize_section_table.
6227 (clear_section_table): New function.
6228 (resize_section_table): Make static. Rename arg num_added to
6229 adjustment.
6230 * exec.h (clear_section_table): Declare.
6231 (resize_section_table): Delete.
6232 * progspace.c (release_program_space): Call clear_section_table
6233 instead of resize_section_table.
6234
0c6e92a5
SC
62352014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6236
6237 * NEWS (Python Scripting): Add entry about the new xmethods
6238 feature.
6239
883964a7
SC
62402014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6241
6242 * python/py-xmethods.c: New file.
6243 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6244 (objfpy_dealloc): XDECREF on the new xmethods field.
6245 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6246 field.
6247 (objfpy_get_xmethods): New function.
6248 (objfile_getset): New entry 'xmethods'.
6249 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6250 (pspy_dealloc): XDECREF on the new xmethods field.
6251 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6252 field.
6253 (pspy_get_xmethods): New function.
6254 (pspace_getset): New entry 'xmethods'.
6255 * python/python-internal.h: Add declarations for new functions.
6256 * python/python.c (_initialize_python): Invoke
6257 gdbpy_initialize_xmethods.
6258 * python/lib/gdb/__init__.py (xmethods): New
6259 attribute.
6260 * python/lib/gdb/xmethod.py: New file.
6261 * python/lib/gdb/command/xmethods.py: New file.
6262
58992dc5
SC
62632014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6264
6265 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6266 best match method returned by find_overload_match is an xmethod.
6267 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6268 the best matching operator returned by find_overload_match is an
6269 xmethod.
6270 * valops.c: #include "extension.h".
6271 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6272 Return void. The list of matching source methods is returned in
6273 "fn_list" and a vector of matching debug method workers is
6274 returned in "xm_worker_vec". Update all callers.
6275 (value_find_oload_method_list): Likewise.
6276 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6277 non-NULL, then the index of the best matching method in this
6278 vector is returned. Update all callers.
6279 (find_overload_match): Include xmethods while performing overload
6280 resolution.
6281
e81e7f5e
SC
62822014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6283
6284 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6285 * extension-priv.h (struct extension_language_ops): Add the
6286 xmethod interface.
6287 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6288 get_matching_xmethod_workers, get_xmethod_argtypes,
6289 invoke_xmethod, free_xmethod_worker,
6290 free_xmethod_worker_vec): New functions.
6291 * extension.h: #include "common/vec.h".
6292 New function declarations.
6293 (struct xmethod_worker): New struct.
6294 (VEC (xmethod_worker_ptr)): New vector type.
6295 (xmethod_worker_ptr): New typedef.
6296 (xmethod_worker_vec): Likewise.
6297 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6298 builtin_type.
6299 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6300 (struct builtin_type): New field "xmethod".
6301 * valarith.c (value_ptradd): Assert that the value argument is not
6302 lval_xcallable.
6303 * valops.c (value_must_coerce_to_target): Return 0 for
6304 lval_xcallable values.
6305 * value.c (struct value): New field XM_WORKER in the field
6306 LOCATION.
6307 (value_address, value_raw_address): Return 0 for lval_xcallable
6308 values.
6309 (set_value_address): Assert that the value is not an
6310 lval_xcallable.
6311 (value_free): Free the associated xmethod worker when freeing
6312 lval_xcallable values.
6313 (set_value_component_location): Assert that the WHOLE value is not
6314 lval_xcallable.
6315 (value_of_xmethod, call_xmethod): New functions.
6316 * value.h: Declare "struct xmethod_worker".
6317 Declare new functions value_of_xmethod, call_xmethod.
6318
ef370185
JB
63192014-06-03 Joel Brobecker <brobecker@adacore.com>
6320 Pedro Alves <palves@redhat.com>
6321
6322 PR breakpoints/17000
6323 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6324 New function, extracted from software_breakpoint_inserted_here_p.
6325 (software_breakpoint_inserted_here_p): Replace factored out code
6326 by call to find_non_raw_software_breakpoint_inserted_here.
6327 (bp_target_info_copy_insertion_state): New function.
6328 (bkpt_insert_location): Handle the case of a single-step
6329 breakpoint already inserted at the same address.
6330 (bkpt_remove_location): Handle the case of a single-step
6331 breakpoint still inserted at the same address.
6332 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6333 breakpoint already inserted at the same address.
6334 (deprecated_remove_raw_breakpoint): Handle the case of a
6335 non-raw breakpoint still inserted at the same address.
6336 (find_single_step_breakpoint): New function, extracted from
6337 single_step_breakpoint_inserted_here_p.
6338 (find_single_step_breakpoint): New function,
6339 factored out from single_step_breakpoint_inserted_here_p.
6340 (single_step_breakpoint_inserted_here_p): Reimplement.
6341
1e2ccb61
BM
63422014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6343
6344 Pushed by Joel Brobecker <brobecker@adacore.com>
6345 * source.c (show_substitute_path_command): Fix display of matching
6346 substitution rules.
6347
d3448d85
GB
63482014-06-03 Gary Benson <gbenson@redhat.com>
6349
6350 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6351
06eb1586
DE
63522014-06-02 Doug Evans <xdje42@gmail.com>
6353
6354 Add parameter support for Guile.
6355 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6356 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6357 (scm-param.o): New rule.
6358 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6359 (gdbscm_misc_error): Declare.
6360 (gdbscm_canonicalize_command_name): Declare.
6361 (gdbscm_scm_to_host_string): Declare.
6362 (gdbscm_scm_from_host_string): Declare.
6363 (gdbscm_initialize_parameters): Declare.
6364 * guile/guile.c (initialize_gdb_module): Call
6365 gdbscm_initialize_parameters.
6366 * guile/lib/gdb.scm: Export parameter symbols.
6367 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6368 cmdscm_canonicalize_name and made public. All callers updated.
6369 * guile/scm-exception.c (gdbscm_misc_error): New function.
6370 * guile/scm-param.c: New file.
6371 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6372 (gdbscm_scm_to_host_string): New function.
6373 (gdbscm_scm_from_host_string): New function.
6374 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6375
e698b8c4
DE
63762014-06-02 Doug Evans <xdje42@gmail.com>
6377
6378 Add command support for Guile.
6379 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6380 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6381 (scm-cmd.o): New rule.
6382 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6383 (gdbscm_user_error_p): Declare.
6384 (gdbscm_parse_command_name): Declare.
6385 (gdbscm_valid_command_class_p): Declare.
6386 (gdbscm_initialize_commands): Declare.
6387 * guile/guile.c (initialize_gdb_module): Call
6388 gdbscm_initialize_commands.
6389 * guile/lib/gdb.scm: Export command symbols.
6390 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6391 (throw-user-error): New function.
6392 * guile/scm-cmd.c: New file.
6393 * guile/scm-exception.c (user_error_symbol): New static global.
6394 (gdbscm_user_error_p): New function.
6395 (gdbscm_initialize_exceptions): Set user_error_symbol.
6396 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6397
fb1f94b0
PM
63982014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6399
6400 * top.c (command_loop): Handle comments here...
6401 (command_line_input): ... not here.
6402
ded03782
DE
64032014-06-02 Doug Evans <xdje42@gmail.com>
6404
6405 Add progspace support for Guile.
6406 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6407 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6408 (scm-progspace.o): New rule.
6409 * guile/guile-internal.h (pspace_smob): New typedef.
6410 (psscm_pspace_smob_pretty_printers): Declare.
6411 (psscm_pspace_smob_from_pspace): Declare.
6412 (psscm_scm_from_pspace): Declare.
6413 * guile/guile.c (initialize_gdb_module): Call
6414 gdbscm_initialize_pspaces.
6415 * guile/lib/gdb.scm: Export progspace symbols.
6416 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6417 support.
6418 (append-pretty-printer!): Ditto.
6419 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6420 Implement.
6421 * guile/scm-progspace.c: New file.
6422
397998fc
AM
64232014-06-03 Alan Modra <amodra@gmail.com>
6424
6425 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6426 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6427
6aa5f3a6
DE
64282014-06-02 Doug Evans <dje@google.com>
6429
6430 Add support for skeletonless type units.
6431 * dwarf2read.c (struct dwarf2_per_objfile): New member
6432 n_allocated_type_units.
6433 (struct dwarf2_per_objfile) <tu_stats>: New member
6434 nr_all_type_units_reallocs.
6435 (create_signatured_type_table_from_index): Initialize
6436 n_allocated_type_units
6437 (create_all_type_units): Ditto.
6438 (add_type_unit): Move up in file. New arg slot.
6439 All callers updated. Increase space for all_type_units more
6440 efficiently.
6441 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6442 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6443 (lookup_dwp_signatured_type): Ditto.
6444 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6445 All callers updated.
6446 (build_type_psymtabs_1): Leave type_unit_groups as
6447 NULL if no TUs present.
6448 (print_tu_stats): New function.
6449 (process_skeletonless_type_unit): New function.
6450 (process_dwo_file_for_skeletonless_type_units): New
6451 function.
6452 (process_skeletonless_type_units): New function.
6453 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6454 Call print tu_stats if debugging enabled.
6455
41fac0cf
PA
64562014-06-02 Pedro Alves <palves@redhat.com>
6457
6458 * breakpoint.c (build_target_command_list): Don't build a command
6459 list if we have any duplicate location that isn't a dprintf.
6460
cd1608cc
PA
64612014-06-02 Pedro Alves <palves@redhat.com>
6462
6463 * breakpoint.c (dprintf_breakpoint_hit): New function.
6464 (initialize_breakpoint_ops): Install it as dprintf's
6465 breakpoint_hit method.
6466
486ef3b9
JB
64672014-06-02 Joel Brobecker <brobecker@adacore.com>
6468
6469 * source.c (substitute_path_rule_matches): Simplify using
6470 filename_ncmp instead of FILENAME_CMP.
6471
230cd560
JB
64722014-06-02 Joel Brobecker <brobecker@adacore.com>
6473
6474 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6475
16954d5d
LC
64762014-06-01 Ludovic Courtès <ludo@gnu.org>
6477
6478 * configure.ac: When Guile is available, check for the
6479 availability of 'scm_new_smob'.
6480 * configure, config.h.in: Regenerate.
6481 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6482 function.
6483
53e8a631
AB
64842014-05-30 Andrew Burgess <aburgess@broadcom.com>
6485
6486 * frame.c (struct frame_info): Add stop_string field.
6487 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6488 (get_prev_frame_always): Old content moved into
6489 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6490 TRY_CATCH, handle MEMORY_ERROR exceptions.
6491 (frame_stop_reason_string): New function definition.
6492 * frame.h (unwind_stop_reason_to_string): Extend comment to
6493 mention frame_stop_reason_string.
6494 (frame_stop_reason_string): New function declaration.
6495 * stack.c (frame_info): Switch to frame_stop_reason_string.
6496 (backtrace_command_1): Switch to frame_stop_reason_string.
6497 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6498 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6499 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6500
70e38b8e
AB
65012014-05-30 Andrew Burgess <aburgess@broadcom.com>
6502
6503 * frame.c (frame_stop_reason_string): Rename to ...
6504 (unwind_stop_reason_to_string): this.
6505 * frame.h (frame_stop_reason_string): Rename to ...
6506 (unwind_stop_reason_to_string): this.
6507 * stack.c (frame_info): Update call to frame_stop_reason_string.
6508 (backtrace_command_1): Likewise.
6509 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6510 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6511
938f0e2f
AB
65122014-05-30 Andrew Burgess <aburgess@broadcom.com>
6513
6514 * frame.c (remove_prev_frame): New function.
6515 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6516 remove_prev_frame.
6517
a09dd441
PA
65182014-05-29 Pedro Alves <palves@redhat.com>
6519
6520 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6521 and make it const. When a single-step decays to a continue,
6522 clear 'step', not 'hw_step'. Pass whether the caller wanted
6523 to step to user_visible_resume_ptid, not what we ask the
6524 target to do.
6525
bdc36728
PA
65262014-05-29 Pedro Alves <palves@redhat.com>
6527
6528 * infrun.c (process_event_stop_test, handle_step_into_function)
6529 (handle_step_into_function_backward): Adjust.
6530 Don't set the even thread's stop_step and call stop_waiting before
6531 calling end_stepping_range. Instead do that ...
6532 (end_stepping_range): ... here. Take an ecs pointer parameter.
6533
22bcd14b
PA
65342014-05-29 Pedro Alves <palves@redhat.com>
6535
6536 * infrun.c (stop_stepping): Rename to ...
6537 (stop_waiting): ... this.
6538 (proceed): Update comment.
6539 (process_event_stop_test, handle_inferior_event)
6540 (handle_signal_stop, handle_step_into_function)
6541 (handle_step_into_function_backward): Update.
6542
4ae57c05
PA
65432014-05-29 Pedro Alves <palves@redhat.com>
6544
6545 * infcall.c (run_inferior_call): Don't check whether the current
6546 thread is running after the proceed call.
6547
329ea579
PA
65482014-05-29 Pedro Alves <palves@redhat.com>
6549 Tom Tromey <tromey@redhat.com>
6550
6551 * NEWS: Mention "maint set target-async", "set mi-async", and that
6552 background execution commands are now always available.
6553 * target.h (target_async_permitted): Update comment.
6554 * target.c (target_async_permitted, target_async_permitted_1):
6555 Default to 1.
6556 (set_target_async_command): Rename to ...
6557 (maint_set_target_async_command): ... this.
6558 (show_target_async_command): Rename to ...
6559 (maint_show_target_async_command): ... this.
6560 (_initialize_target): Adjust.
6561 * infcmd.c (prepare_execution_command): Make extern.
6562 * inferior.h (prepare_execution_command): Declare.
6563 * infrun.c (set_observer_mode): Leave target async alone.
6564 * mi/mi-interp.c (mi_interpreter_init): Install
6565 mi_on_sync_execution_done as sync_execution_done observer.
6566 (mi_on_sync_execution_done): New function.
6567 (mi_execute_command_input_handler): Don't print the prompt if we
6568 just started a synchronous command with an async target.
6569 (mi_on_resume): Check sync_execution before printing prompt.
6570 * mi/mi-main.h (mi_async_p): Declare.
6571 * mi/mi-main.c: Include gdbcmd.h.
6572 (mi_async_p): New function.
6573 (mi_async, mi_async_1): New globals.
6574 (set_mi_async_command, show_mi_async_command, mi_async): New
6575 functions.
6576 (exec_continue): Call prepare_execution_command.
6577 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6578 (mi_execute_async_cli_command): Use mi_async_p.
6579 (_initialize_mi_main): Install "set mi-async". Make
6580 "target-async" a deprecated alias.
6581
92bcb5f9
PA
65822014-05-29 Pedro Alves <palves@redhat.com>
6583
6584 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6585 (_initialize_cli_interp): Adjust.
6586 * event-loop.c: Include "observer.h".
6587 (start_event_loop): Notify 'command_error' observers instead of
6588 calling display_gdb_prompt. Remove FIXME comment.
6589 * event-top.c (display_gdb_prompt): Remove call into the
6590 interpreters.
6591 * inf-loop.c: Include "observer.h".
6592 (inferior_event_handler): Notify 'command_error' observers instead
6593 of calling display_gdb_prompt.
6594 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6595 observers instead of calling display_gdb_prompt.
6596 * interps.c (interp_set): Don't call display_gdb_prompt.
6597 (current_interp_display_prompt_p): Delete.
6598 * interps.h (interp_prompt_p): Delete declaration.
6599 (interp_prompt_p_ftype): Delete.
6600 (struct interp_procs) <prompt_proc_p>: Delete field.
6601 (current_interp_display_prompt_p): Delete declaration.
6602 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6603 (_initialize_mi_interp): Adjust.
6604 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6605 'command_error' observers.
6606 (tui_on_sync_execution_done, tui_on_command_error): New
6607 functions.
6608 (tui_display_prompt_p): Delete.
6609 (_initialize_tui_interp): Adjust.
6610
fd664c91
PA
66112014-05-29 Pedro Alves <palves@redhat.com>
6612
6613 PR gdb/13860
6614 * cli/cli-interp.c: Include infrun.h and observer.h.
6615 (cli_uiout, cli_interp): New globals.
6616 (cli_on_signal_received, cli_on_end_stepping_range)
6617 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6618 functions.
6619 (cli_interpreter_init): Install them as 'end_stepping_range',
6620 'signal_received' 'signal_exited', 'exited' and 'no_history'
6621 observers.
6622 (_initialize_cli_interp): Remove cli_interp local.
6623 * infrun.c (handle_inferior_event): Call the several stop reason
6624 observers instead of printing the stop reason directly.
6625 (end_stepping_range): New function.
6626 (print_end_stepping_range_reason, print_signal_exited_reason)
6627 (print_exited_reason, print_signal_received_reason)
6628 (print_no_history_reason): Make static, and add an uiout
6629 parameter. Print to that instead of to CURRENT_UIOUT.
6630 * infrun.h (print_end_stepping_range_reason)
6631 (print_signal_exited_reason, print_exited_reason)
6632 (print_signal_received_reason print_no_history_reason): New
6633 declarations.
6634 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6635 'mi_uiout'.
6636 <cli_uiout>: New field.
6637 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6638 uiout for CLI output. Install 'signal_received',
6639 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6640 observers.
6641 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6642 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6643 (mi_on_no_history): New functions.
6644 (ui_out_free_cleanup): Delete function.
6645 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6646 instead use the one already stored in the MI interpreter data.
6647 (mi_ui_out): Adjust.
6648 * tui/tui-interp.c: Include infrun.h and observer.h.
6649 (tui_interp): New global.
6650 (tui_on_signal_received, tui_on_end_stepping_range)
6651 (tui_on_signal_exited, tui_on_exited)
6652 (tui_on_no_history): New functions.
6653 (tui_init): Install them as 'end_stepping_range',
6654 'signal_received' 'signal_exited', 'exited' and 'no_history'
6655 observers.
6656 (_initialize_tui_interp): Delete tui_interp local.
6657
8817a6f2
PA
66582014-05-29 Pedro Alves <palves@redhat.com>
6659
6660 PR gdb/15713
6661 * linux-nat.c (linux_nat_resume_callback): Rename the second
6662 parameter to 'except'. Skip LP if it points to EXCEPT.
6663 (linux_nat_resume): Don't mark the event lwp as not stopped
6664 before resuming sibling lwps. Instead ask
6665 linux_nat_resume_callback to skip the event lwp. Mark it as not
6666 stopped after actually resuming it.
6667 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6668 resuming it.
6669 (wait_lwp): Mark the lwp as stopped here.
6670 (stop_wait_callback): Mark the lwp as not stopped right after
6671 resuming it. Don't mark lwps as stopped here.
6672 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6673 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6674
251bde03
PA
66752014-05-29 Pedro Alves <palves@redhat.com>
6676
6677 PR PR15693
6678 * infrun.c (resume): Determine how much to resume depending on
6679 whether the caller wanted a step, not whether we can hardware step
6680 the target. Mark all threads that we intend to run as running,
6681 unless we're calling an inferior function.
6682 (normal_stop): If the thread is running an infcall, don't finish
6683 thread state.
6684 * target.c (target_resume): Don't mark threads as running here.
6685
7f3c0343
JB
66862014-05-28 Joel Brobecker <brobecker@adacore.com>
6687
6688 * serial.c (_initialize_serial): Remove support for
6689 the "set remotebaud" and "show remotebaud" commands.
6690 * NEWS: Add entry documenting the removal of that command.
6691
ee34b3f9
YQ
66922014-05-28 Yao Qi <yao@codesourcery.com>
6693
6694 * charset.c: Fix typo in comments.
6695
add6c04d
GB
66962014-05-27 Gary Benson <gbenson@redhat.com>
6697
6698 * utils.c (internal_vproblem): Prompt for a bug report.
6699
92c48fc5
AW
67002014-05-26 Andy Wingo <wingo@igalia.com>
6701
6702 * guile/scm-arch.c (arscm_mark_arch_smob):
6703 * guile/scm-block.c (bkscm_mark_block_smob)
6704 (bkscm_mark_block_syms_progress_smob):
6705 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6706 * guile/scm-exception.c (exscm_mark_exception_smob):
6707 * guile/scm-frame.c (frscm_mark_frame_smob):
6708 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6709 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6710 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6711 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6712 (ppscm_mark_pretty_printer_worker_smob):
6713 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6714 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6715 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6716 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6717 mark functions.
6718 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6719 function.
6720
b2715b27
AW
67212014-05-26 Andy Wingo <wingo@igalia.com>
6722 Doug Evans <xdje42@gmail.com>
6723
6724 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6725 empty_base_class. All uses updated.
6726 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6727 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6728 Adapt all callers.
6729 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6730 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6731 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6732 (gdbscm_gsmob_has_property_p, add_property_name)
6733 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6734 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6735 (gdb-object-has-property?, gdb-object-properties): Remove.
6736 (gdb-object-kind): Renamed from gsmob-kind.
6737
214ab2da
AW
67382014-05-26 Andy Wingo <wingo@igalia.com>
6739
6740 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6741 * configure: Regenerate.
6742
589fdceb
MM
67432014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6744
6745 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6746
67b5c0c1
MM
67472014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6748
6749 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6750 (replay_memory_access_read_only, replay_memory_access_read_write)
6751 (replay_memory_access_types, replay_memory_access)
6752 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6753 (cmd_set_record_btrace, cmd_show_record_btrace)
6754 (cmd_show_replay_memory_access): New.
6755 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6756 (record_btrace_remove_breakpoint): Replace
6757 record_btrace_allow_memory_access with replay_memory_access.
6758 (_initialize_record_btrace): Add commands.
6759 * NEWS: Announce it.
6760
036cd381
RR
67612014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6762
6763 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6764
c77c1e42
RR
67652014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6766
6767 * MAINTAINERS (Write After Approval): Move self back from
6768 paper trail.
6769
45741a9c
PA
67702014-05-22 Pedro Alves <palves@redhat.com>
6771
6772 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6773 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6774 (disable_randomization, enum exec_direction_kind)
6775 (execution_direction, stop_registers, start_remote)
6776 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6777 (wait_for_inferior, normal_stop, get_last_target_status)
6778 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6779 (insert_step_resume_breakpoint_at_sal)
6780 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6781 (set_step_info, print_stop_event, signal_stop_state)
6782 (signal_print_state, signal_pass_state, signal_stop_update)
6783 (signal_print_update, signal_pass_update)
6784 (update_signals_program_target, clear_exit_convenience_vars)
6785 (displaced_step_dump_bytes, update_observer_mode)
6786 (signal_catch_update, gdb_signal_from_command): Move
6787 declarations ...
6788 * infrun.h: ... to this new file.
6789 * amd64-tdep.c: Include infrun.h.
6790 * annotate.c: Include infrun.h.
6791 * arch-utils.c: Include infrun.h.
6792 * arm-linux-tdep.c: Include infrun.h.
6793 * arm-tdep.c: Include infrun.h.
6794 * break-catch-sig.c: Include infrun.h.
6795 * breakpoint.c: Include infrun.h.
6796 * common/agent.c: Include infrun.h instead of inferior.h.
6797 * corelow.c: Include infrun.h.
6798 * event-top.c: Include infrun.h.
6799 * go32-nat.c: Include infrun.h.
6800 * i386-tdep.c: Include infrun.h.
6801 * inf-loop.c: Include infrun.h.
6802 * infcall.c: Include infrun.h.
6803 * infcmd.c: Include infrun.h.
6804 * infrun.c: Include infrun.h.
6805 * linux-fork.c: Include infrun.h.
6806 * linux-nat.c: Include infrun.h.
6807 * linux-thread-db.c: Include infrun.h.
6808 * monitor.c: Include infrun.h.
6809 * nto-tdep.c: Include infrun.h.
6810 * procfs.c: Include infrun.h.
6811 * record-btrace.c: Include infrun.h.
6812 * record-full.c: Include infrun.h.
6813 * remote-m32r-sdi.c: Include infrun.h.
6814 * remote-mips.c: Include infrun.h.
6815 * remote-notif.c: Include infrun.h.
6816 * remote-sim.c: Include infrun.h.
6817 * remote.c: Include infrun.h.
6818 * reverse.c: Include infrun.h.
6819 * rs6000-tdep.c: Include infrun.h.
6820 * s390-linux-tdep.c: Include infrun.h.
6821 * solib-irix.c: Include infrun.h.
6822 * solib-osf.c: Include infrun.h.
6823 * solib-svr4.c: Include infrun.h.
6824 * target.c: Include infrun.h.
6825 * top.c: Include infrun.h.
6826 * windows-nat.c: Include infrun.h.
6827 * mi/mi-interp.c: Include infrun.h.
6828 * mi/mi-main.c: Include infrun.h.
6829 * python/py-threadevent.c: Include infrun.h.
6830
98eb56a4
PA
68312014-05-22 Pedro Alves <palves@redhat.com>
6832
6833 * infrun.c (handle_inferior_event): Store the exit code for
6834 --return-child-result here, instead of ...
6835 (print_exited_reason): ... here.
6836
17b2616c
PA
68372014-05-21 Pedro Alves <palves@redhat.com>
6838
6839 PR gdb/13860
6840 * gdbthread.h (struct thread_control_state): New field
6841 `command_interp'.
6842 * infrun.c (follow_fork): Copy the new thread control field to the
6843 child fork thread.
6844 (clear_proceed_status_thread): Clear the new thread control field.
6845 (proceed): Set the new thread control field.
6846 * interps.h (command_interp): Declare.
6847 * interps.c (command_interpreter): New global.
6848 (command_interp): New function.
6849 (interp_exec): Set `command_interpreter' while here.
6850 * cli-out.c (cli_uiout_dtor): New function.
6851 (cli_ui_out_impl): Install it.
6852 * mi/mi-interp.c: Include cli-out.h.
6853 (mi_cmd_interpreter_exec): Add comment.
6854 (restore_current_uiout_cleanup): New function.
6855 (ui_out_free_cleanup): New function.
6856 (mi_on_normal_stop): If finishing an execution command started by
6857 a CLI command, or any kind of breakpoint-like event triggered,
6858 print the stop event to the output (CLI) stream.
6859 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6860
5166082f
PA
68612014-05-21 Pedro Alves <palves@redhat.com>
6862
6863 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6864 current source line having changed.
6865 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6866 * infrun.c (normal_stop): Adjust call to
6867 set_current_sal_from_frame.
6868 * source.c (clear_lines_listed_range): New function.
6869 (set_current_source_symtab_and_line, identify_source_line): Clear
6870 the lines listed range.
6871 (line_info): Handle the first "info line" after the current source
6872 line having changed.
6873 * stack.c (print_stack_frame): Remove center handling.
6874 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6875 center sal.line.
6876
c1ee2fb3
PA
68772014-05-21 Pedro Alves <palves@redhat.com>
6878
6879 * inf-child.c (inf_child_mourn_inferior): New function.
6880 * inf-child.h (inf_child_mourn_inferior): New declaration.
6881 * darwin-nat.c (darwin_mourn_inferior): Use
6882 inf_child_mourn_inferior.
6883 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6884 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6885 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6886 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6887 * windows-nat.c (windows_mourn_inferior): Likewise.
6888
5c6d4fb2
DE
68892014-05-21 Doug Evans <xdje42@gmail.com>
6890
250748cb 6891 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6892
4a2722c5
DE
68932014-05-21 Doug Evans <xdje42@gmail.com>
6894
17292b30 6895 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6896 (gdbscm_out_of_range_error): Ditto.
6897 (gdbscm_memory_error): Ditto.
250748cb
DE
6898 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6899 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6900 (gdbscm_out_of_range_error): Update.
6901 (gdbscm_memory_error): Update.
6902 (gdbscm_scm_to_target_string_unsafe): Delete.
6903
6a3cb8e8
PA
69042014-05-21 Pedro Alves <palves@redhat.com>
6905
6906 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6907 globals.
6908 (inf_child_open_target): New function.
6909 (inf_child_open): Use inf_child_open_target to push the target
6910 instead of erroring out.
6911 (inf_child_disconnect, inf_child_close)
6912 (inf_child_maybe_unpush_target): New functions.
6913 (inf_child_target): Install inf_child_disconnect and
6914 inf_child_close. Store a pointer to the returned object.
6915 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6916 declarations.
6917 * target.c (auto_connect_native_target): New global.
6918 (show_default_run_target): New function.
6919 (find_default_run_target): Return NULL if automatically connecting
6920 to the native target is disabled.
6921 (_initialize_target): Install set/show auto-connect-native-target.
6922 * NEWS: Mention "set auto-connect-native-target", and "target
6923 native".
6924 * linux-nat.c (super_close): New global.
6925 (linux_nat_close): Call super_close.
6926 (linux_nat_add_target): Store a pointer to the base class's
6927 to_close method.
6928 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6929 inf_child_maybe_unpush.
6930 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6931 already pushed.
6932 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6933 the inferior. Use inf_child_maybe_unpush_target.
6934 (inf_ttrace_attach): Don't push the target if it is already
6935 pushed.
6936 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6937 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6938 after mourning the inferior. Use inf_child_maybe_unpush_target.
6939 (darwin_attach_pid): Don't push the target if it is already
6940 pushed.
6941 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6942 mourning the inferior. Use inf_child_maybe_unpush_target.
6943 (gnu_detach): Use inf_child_maybe_unpush_target.
6944 * go32-nat.c (go32_create_inferior): Don't push the target if it
6945 is already pushed.
6946 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6947 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6948 (procfs_open): Rename to ...
6949 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6950 comments. Can target_preopen before changing node. Call
6951 inf_child_open_target to push the target explicitly.
6952 (procfs_attach): Don't push the target if it is already pushed.
6953 (procfs_detach): Use inf_child_maybe_unpush_target.
6954 (procfs_create_inferior): Don't push the target if it is already
6955 pushed.
6956 (nto_native_ops): New global.
6957 (procfs_open): Reimplement.
6958 (procfs_native_open): New function.
6959 (init_procfs_targets): Install procfs_native_open as to_open of
6960 "target native". Store a pointer to the "native" target in
6961 nto_native_ops.
6962 * procfs.c (procfs_attach): Don't push the target if it is already
6963 pushed.
6964 (procfs_detach): Use inf_child_maybe_unpush_target.
6965 (procfs_mourn_inferior): Only unpush the target after mourning the
6966 inferior. Use inf_child_maybe_unpush_target.
6967 (procfs_init_inferior): Don't push the target if it is already
6968 pushed.
6969 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6970 if it is already pushed.
6971
930ee1b1
PA
69722014-05-21 Pedro Alves <palves@redhat.com>
6973
6974 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6975 and "procfs" targets are now called "native" instead.
6976
1f5d1b13
PA
69772014-05-21 Pedro Alves <palves@redhat.com>
6978
6979 * go32-nat.c (go32_open): Delete.
6980 (go32_target): Don't override the to_open method.
6981
132f8e03
PA
69822014-05-21 Pedro Alves <palves@redhat.com>
6983
6984 * nto-procfs.c (procfs_can_run): New function.
6985 (nto_procfs_ops): New global.
6986 (init_procfs_targets): New, based on procfs_target. Install
6987 "target native" in addition to "target procfs".
6988 (_initialize_procfs): Call init_procfs_targets instead of adding
6989 the target here.
6990
03c136c3
PA
69912014-05-21 Pedro Alves <palves@redhat.com>
6992
6993 * windows-nat.c (windows_target): Don't override to_shortname,
6994 to_longname or to_doc.
6995
a635d0f3
PA
69962014-05-21 Pedro Alves <palves@redhat.com>
6997
6998 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6999 to_doc.
7000
4f9b5133
PA
70012014-05-21 Pedro Alves <palves@redhat.com>
7002
7003 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7004 to_shortname, to_longname or to_doc.
7005
bc85afde
PA
70062014-05-21 Pedro Alves <palves@redhat.com>
7007
7008 * go32-nat.c (go32_target): Don't override to_shortname,
7009 to_longname or to_doc.
7010
4ebfc96e
PA
70112014-05-21 Pedro Alves <palves@redhat.com>
7012
7013 * inf-child.c (inf_child_open): Remove mention of "child".
7014 (inf_child_target): Rename target to "native" instead of "child".
7015
2648dfed
AA
70162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7017
7018 * Makefile.in (SFILES): Delete "regset.c".
7019 (COMMON_OBS): Delete "regset.o".
7020 * regset.c: Remove.
7021 * regset.h (regset_alloc): Delete prototype.
7022
b13feb94
AA
70232014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7024
7025 * sparc-linux-tdep.c (sparc32_linux_gregset)
7026 (sparc32_linux_fpregset): New static regset structures.
7027 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7028 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7029 'fpregset' fields.
7030 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7031 (sparc64_linux_fpregset): New static regset structures.
7032 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7033 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7034 New static regset structures.
7035 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7036 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7037 New static regset structures.
7038 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7039 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7040 New static regset structures.
7041 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7042 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7043 New static regset structures.
7044 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7045
b4fd25c9
AA
70462014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7047
7048 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7049 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7050 register maps ("regmaps") from "*regset" to "*regmap". Do this
7051 for all regmap types and variables.
7052 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7053 (sparc32_linux_supply_core_gregset)
7054 (sparc32_linux_collect_core_gregset)
7055 (sparc32_linux_supply_core_fpregset)
7056 (sparc32_linux_collect_core_fpregset): Likewise.
7057 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7058 (sparc_gregmap, sparc_fpregmap): ... these.
7059 (sparc_supply_gregset, sparc_collect_gregset)
7060 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7061 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7062 (_initialize_sparc_nat): Rename regmaps.
7063 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7064 (sparc_gregmap, sparc_fpregmap): ... these.
7065 (sparc_supply_gregset, sparc_collect_gregset)
7066 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7067 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7068 Rename macros to...
7069 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7070 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7071 Likewise.
7072 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7073 Rename to...
7074 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7075 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7076 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7077 regmaps.
7078 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7079 (sparc32_bsd_fpregset): Rename to...
7080 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7081 (sparc32_bsd_fpregmap): ... these.
7082 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7083 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7084 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7085 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7086 (struct sparc_gregmap, struct sparc_fpregmap)
7087 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7088 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7089 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7090 (sparc32_supply_regset, sparc32_collect_gregset)
7091 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7092 prototypes.
7093 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7094 (sparc64_linux_ptrace_gregmap): ... this.
7095 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7096 (_initialize_sparc64_linux_nat): Rename regmaps.
7097 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7098 (sparc64_linux_core_gregmap): ... this.
7099 (sparc64_linux_supply_core_gregset)
7100 (sparc64_linux_collect_core_gregset)
7101 (sparc64_linux_supply_core_fpregset)
7102 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7103 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7104 (sparc64_sol2_fpregset): Rename to...
7105 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7106 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7107 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7108 regmaps.
7109 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7110 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7111 (sparc64_bsd_fpregset): Rename to...
7112 (struct sparc_gregmap, sparc64_sol2_gregmap)
7113 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7114 (sparc64_bsd_fpregmap): ... these.
7115 (sparc64_supply_gregset, sparc64_collect_gregset)
7116 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7117 prototypes.
7118 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7119 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7120 (sparc64fbsd_gregmap): ... this.
7121 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7122 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7123 Rename regmaps.
7124 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7125 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7126 (sparc64nbsd_collect_fpregset): Likewise.
7127 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7128 (sparc64nbsd_gregmap): ... this.
7129 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7130 regmaps.
7131 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7132 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7133 (sparc64obsd_gregmap): ... this.
7134 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7135 regmaps.
7136 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7137 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7138 (sparc32nbsd_gregmap): ... this.
7139 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7140 regmaps.
7141
8fea3224
AA
71422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7143
7144 * score-tdep.c (score7_linux_gregset): New static regset
7145 structure.
7146 (score7_linux_regset_from_core_section): Remove dynamic regset
7147 allocation.
7148 (score_gdbarch_init): Drop allocation of tdep structure.
7149 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7150
24534243
AA
71512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7152
7153 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7154 regset structures.
7155 (am33_regset_from_core_section): Remove dynamic regset
7156 allocations.
7157
b7195f27
AA
71582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7159
7160 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7161 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7162 structures.
7163 (mips_linux_regset_from_core_section): Remove dynamic regset
7164 allocations.
7165 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7166 'gregset64', 'fpregset', and 'fpregset64'.
7167 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7168 deleted tdep fields.
7169
ecc37a5a
AA
71702014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7171
7172 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7173 regset structures.
7174 (amd64_regset_from_core_section): Remove dynamic regset
7175 allocations.
7176 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7177 structure.
7178 (amd64obsd_regset_from_core_section): Remove dynamic regset
7179 allocation.
7180 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7181 Likewise.
7182 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7183 x86-common regset supply function.
7184 * i386-tdep.c (i386_collect_gregset): Make static.
7185 (i386_gregset): New global regset structure.
7186 (i386_fpregset, i386_xstateregset): New static regset structures.
7187 (i386_regset_from_core_section): Remove dynamic regset
7188 allocations.
7189 (i386_gdbarch_init): Remove initialization of tdep fields
7190 'gregset', 'fpregset', and 'xstateregset'.
7191 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7192 'fpregset', and 'xstateregset'.
7193 (i386_collect_gregset): Remove prototype.
7194 (i386_gregset): New declaration.
7195 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7196 structure.
7197 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7198 allocation.
7199
b7611c43
AA
72002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7201
7202 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7203 (arm_linux_vfpregset): New static regset structures.
7204 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7205 regset structures.
7206 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7207 and 'vfpregset' fields.
7208
a069a2bd
AA
72092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7210
7211 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7212 (aarch64_linux_fpregset): New static regset structures.
7213 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7214 of regset structures.
7215 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7216 'fpregset' fields.
7217
09424cff
AA
72182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7219
7220 * regset.h (struct regset): Remove gdbarch field.
7221 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7222 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7223 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7224 Likewise.
7225 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7226 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7227 (ppc32_linux_vsxregset): Likewise.
7228 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7229 via the regcache instead of the regset.
7230 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7231 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7232 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7233 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7234 Likewise.
7235
3ca7dae4
AA
72362014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7237
7238 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7239 Constify structures.
7240 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7241 (alphanbsd_aout_gregset): Likewise.
7242 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7243 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7244 Likewise.
7245 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7246 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7247 Likewise.
7248 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7249 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7250 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7251 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7252 * m88k-tdep.c (m88k_gregset): Likewise.
7253 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7254 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7255 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7256 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7257 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7258 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7259 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7260 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7261 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7262 Likewise.
7263 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7264 * sh-tdep.h (sh_corefile_gregset): Likewise.
7265 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7266 * vax-tdep.c (vax_gregset): Likewise.
7267
5876f503
JK
72682014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7269
7270 Fix TLS access for -static -pthread.
7271 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7272 (try_thread_db_load_1): Initialize it.
7273 (thread_db_get_thread_local_address): Call it if LM is zero.
7274 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7275 * target.h (struct target_ops) (to_get_thread_local_address): Add
7276 load_module_addr comment.
7277
0256a6ac
PA
72782014-05-21 Pedro Alves <palves@redhat.com>
7279
7280 * dcache.c (dcache_read_memory_partial): If reading the cache line
7281 fails, fallback to reading just the memory the caller wanted.
7282
227533ac
DE
72832014-05-20 Doug Evans <dje@google.com>
7284
7285 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7286 instead of get_current_arch.
7287
936d2992
PA
72882014-05-20 Pedro Alves <palves@redhat.com>
7289
7290 * NEWS: Mention that compare-sections now works with all targets.
7291
7292 * remote.c (PACKET_qCRC): New enum value.
7293 (remote_verify_memory): Don't send qCRC if the target has no
7294 execution. Use packet_support/packet_ok. If the target doesn't
7295 support the qCRC packet, fallback to a deep memory copy.
7296 (compare_sections_command): Say "target image" instead of "remote
7297 executable".
7298 (_initialize_remote): Add PACKET_qCRC to the list of config
7299 packets that have no associated command. Extend comment.
7300 * target.c (simple_verify_memory, default_verify_memory): New
7301 function.
7302 * target.h (struct target_ops) <to_verify_memory>: Default to
7303 default_verify_memory.
7304 (simple_verify_memory): New declaration.
7305 * target-delegates.c: Regenerate.
7306
e59fa00f
MM
73072014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7308
7309 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7310
f2205de0
HZ
73112014-05-20 Hui Zhu <hui@codesourcery.com>
7312 Yao Qi <yao@codesourcery.com>
7313
7314 PR backtrace/16558
7315 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7316 and change address of sp and pc.
7317
c4e54771
TT
73182014-05-19 Tom Tromey <tromey@redhat.com>
7319
7320 * gdbtypes.c (rank_function): Use XNEWVEC.
7321 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7322
73051182
DE
73232014-05-19 Doug Evans <dje@google.com>
7324
7325 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7326 build_type_unit_groups and moved closer to only caller. Remove
7327 arguments. All references updated. Remove outdated .gdb_index
7328 comment.
7329 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7330 build_type_psymtabs_1.
7331
8832e7e3
DE
73322014-05-19 Doug Evans <dje@google.com>
7333
7334 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7335 n_type_unit_groups, all_type_unit_groups. All uses removed.
7336 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7337 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7338 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7339 (add_type_unit_group_to_table): Delete.
7340
cd8ae15e
DE
73412014-05-19 Doug Evans <dje@google.com>
7342
7343 * eval.c (evaluate_subexp_standard): Add some comments.
7344
08f4850b
DE
73452014-05-17 Doug Evans <xdje42@gmail.com>
7346
7347 * progspace.c (remove_program_space): Delete, unused.
7348 * progspace.h (remove_program_space): Ditto.
7349
bed8455c
DE
73502014-05-17 Doug Evans <xdje42@gmail.com>
7351
7352 * inferior.c (prune_inferiors): Fix comment.
7353 (remove_inferior_command): Call prune_program_spaces.
7354
8d551b02
DE
73552014-05-16 Doug Evans <dje@google.com>
7356
7357 New command line option -D.
7358 * NEWS: Mention it.
7359 * main.c (set_gdb_data_directory): New function.
7360 (captured_main): Recognize -D. Flag error for --data-directory "".
7361 Call set_gdb_data_directory.
7362 (print_gdb_help): Print --data-directory, -D.
7363 * main.h (set_gdb_data_directory): Declare.
7364 * top.c (staged_gdb_datadir): New static global.
7365 (set_gdb_datadir): Call set_gdb_data_directory
7366 (show_gdb_datadir): New function.
7367 (init_main): Update init of data-directory parameter.
7368
18848e28
GF
73692014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7370
7371 Import the "dirfd" gnulib module.
7372 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7373 * gnulib/aclocal.m4: Update.
7374 * gnulib/config.in: Update.
7375 * gnulib/configure: Update.
7376 * gnulib/import/Makefile.am: Update.
7377 * gnulib/import/Makefile.in: Update.
7378 * gnulib/import/dirfd.c: New.
7379 * gnulib/import/m4/dirfd.m4: New.
7380 * gnulib/import/m4/gnulib-cache.m4: Update.
7381 * gnulib/import/m4/gnulib-comp.m4: Update.
7382
95c64f92
YQ
73832014-05-16 Pierre Muller <muller@sourceware.org>
7384 Yao Qi <yao@codesourcery.com>
7385
7386 * valprint.c (print_wchar): Move the code on checking whether
7387 W is a printable wide char to the default branch of switch
7388 statement below. Call wchar_printable instead of gdb_iswprint.
7389
cac395ea
TM
73902014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7391
19679eca 7392 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7393 ldr.w and ldrd instructions.
7394
83655187
DE
73952014-05-15 Doug Evans <dje@google.com>
7396
7397 * dwarf2read.c (read_structure_type): Delete outdated comments.
7398
dd756689
TT
73992014-05-14 Tom Tromey <tromey@redhat.com>
7400
7401 * macrocmd.c (print_macro_definition): Reindent.
7402
75ddda77
DE
74032014-05-13 Doug Evans <xdje42@gmail.com>
7404
7405 * python/py-cmd.c (cmdpy_completer): Add comment.
7406 (completers): Make const.
7407
b0f16a3e
SM
74082014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7409
7410 * infrun.c (resume): Remove should_resume (unused). Move up
7411 declaration of resume_ptid.
7412
033c3379
TT
74132014-05-13 Tom Tromey <tromey@redhat.com>
7414
7415 * language.h (unop_type_check): Remove.
7416 (binop_type_check): Don't declare.
7417
9b44a3a5
AA
74182014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7419
7420 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7421 call to regcache_raw_collect.
7422
303a33fa
SM
74232014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7424
7425 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7426 mi_console->quote as the quoting character.
7427
196100a0
SM
74282014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7429
7430 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7431
f989a1c8
TT
74322014-04-29 Tom Tromey <tromey@redhat.com>
7433
7434 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7435 "show debug varobj".
7436
9404b58f
KM
74372014-05-07 Kyle McMartin <kyle@redhat.com>
7438
7439 Pushed by Joel Brobecker <brobecker@adacore.com>.
7440 * aarch64-tdep.c (aarch64_software_single_step): New function.
7441 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7442 with aarch64_software_single_step.
7443
5e49ba57
JB
74442014-05-05 Joel Brobecker <brobecker@adacore.com>
7445
7446 GDB 7.7.1 released.
7447
c888a17d
KS
74482014-05-05 Keith Seitz <keiths@redhat.com>
7449
7450 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7451 variable or history value is successfully parsed.
7452
290a839c
YQ
74532014-05-05 Yao Qi <yao@codesourcery.com>
7454 Pedro Alves <palves@redhat.com>
7455
7456 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7457 address of blocks that intersects the requested range. Trim
7458 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7459 sections.
7460 * ctf.c (ctf_xfer_partial): Likewise.
7461
91256dc2
YQ
74622014-05-05 Yao Qi <yao@codesourcery.com>
7463
7464 * printcmd.c (display_command): Remove the check to
7465 target_has_execution.
7466
07284463
MK
74672014-05-03 Mark Kettenis <kettenis@gnu.org>
7468
7469 * ppcobsd-nat.c: Include "obsd-nat.h".
7470 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7471 add_target.
7472 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7473
30a1e6cc
SDJ
74742014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7475
7476 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7477 and 16-bit signed and unsigned arguments. Update comment.
7478 (stap_parse_probe_arguments): Extend code to handle such
7479 arguments. Use warning instead of complaint to notify about
7480 unrecognized bitness.
7481
f33da99a
SDJ
74822014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7483
7484 PR breakpoints/16889
7485 * stap-probe.c (stap_parse_probe_arguments): Simplify
7486 check for non-prefixed probes (i.e., probes whose
7487 arguments do not start with "N@"). Always set the
7488 argument type to a sane value.
7489
95cf3b38
DT
74902014-05-01 David Taylor <dtaylor@emc.com>
7491
7492 * remote.c (compare_sections_command): Add -r option to compare
7493 all loadable read-only sections.
7494
1cfdf534
SC
74952014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7496
7497 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7498 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7499 Update all callers.
7500 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7501 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7502 Remove unused CORE_ADDR argument. Update all callers.
7503
ca4f7f8b
PA
75042014-04-29 Pedro Alves <palves@redhat.com>
7505
7506 * remote.c (struct packet_config) <detect>: Extend comment.
7507 (add_packet_config_cmd): Don't set the config's detect or support
7508 fields here.
7509 (init_all_packet_configs): Also initialize the config's 'detect'
7510 field.
7511 (reset_all_packet_configs_support): New function.
7512 (remote_open_1): Call reset_all_packet_configs_support instead of
7513 init_all_packet_configs.
7514 (_initialize_remote): Initialize all packet configs. Assert that
7515 all packets have an associated command, except a few known
7516 outliers.
7517
11c1ba78
JB
75182014-04-28 Joel Brobecker <brobecker@adacore.com>
7519
7520 * dwarf2read.c (read_subrange_type): Handle dynamic
7521 DW_AT_lower_bound attributes.
7522
8739bc53
JB
75232014-04-28 Joel Brobecker <brobecker@adacore.com>
7524
7525 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7526 dynamic bounds before computing its upper bound.
7527 (ada_discrete_type_low_bound): Same as above with the lower bound.
7528
6f8a3220
JB
75292014-04-28 Joel Brobecker <brobecker@adacore.com>
7530
7531 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7532 range types. Adjust the array handling implementation to
7533 take advantage of this change.
7534 (resolve_dynamic_range): New function, mostly extracted from
7535 resolve_dynamic_bounds.
7536 (resolve_dynamic_array): New function, mostly extracted from
7537 resolve_dynamic_bounds.
7538 (resolve_dynamic_bounds): Delete.
7539 (resolve_dynamic_type): Reimplement. Add handling of
7540 TYPE_CODE_RANGE types.
7541
4d072ce4
JB
75422014-04-28 Joel Brobecker <brobecker@adacore.com>
7543
7544 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7545 handling of parallel ___XA types.
7546
52865325
JB
75472014-04-28 Joel Brobecker <brobecker@adacore.com>
7548
7549 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7550 unnecessary second call to static_unwrap_type.
7551
433e77fa
HZ
75522014-04-27 Hui Zhu <hui@codesourcery.com>
7553
7554 * stack.c (print_frame_info): Call do_gdb_disassembly with
7555 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7556
b51a69ee
DE
75572014-04-26 Doug Evans <xdje42@gmail.com>
7558
7559 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7560
7ae1a6a6
PA
75612014-04-25 Pedro Alves <palves@redhat.com>
7562
7563 PR server/16255
7564 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7565 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7566 and newline from built string.
7567 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7568 (linux_ptrace_attach_fail_reason): ... this.
7569 * linux-nat.c (linux_nat_attach): Adjust to use
7570 linux_ptrace_attach_fail_reason.
7571
4082afcc
PA
75722014-04-25 Pedro Alves <palves@redhat.com>
7573
7574 * remote.c (struct remote_state): Remove multi_process_aware,
7575 non_stop_aware, cond_tracepoints, cond_breakpoints,
7576 breakpoint_commands, fast_tracepoints, static_tracepoints,
7577 install_in_trace, disconnected_tracing,
7578 enable_disable_tracepoints, string_tracing, and
7579 augmented_libraries_svr4_read fields.
7580 (remote_multi_process_p): Move further below in the file.
7581 (struct packet_config): Add comments.
7582 (update_packet_config): Delete function.
7583 (show_packet_config_cmd): Use packet_config_support.
7584 (add_packet_config_cmd): Use NULL as set callback.
7585 (packet_ok): "set remote foo-packet"-style commands no longer
7586 change config->supported -- adjust.
7587 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7588 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7589 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7590 (PACKET_QNonStop, PACKET_multiprocess_feature)
7591 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7592 (PACKET_DisconnectedTracing_feature)
7593 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7594 (set_remote_protocol_packet_cmd): Delete function.
7595 (packet_config_support, packet_support): New functions.
7596 (set_remote_protocol_Z_packet_cmd): Don't call
7597 update_packet_config.
7598 (remote_query_attached, remote_pass_signals)
7599 (remote_program_signals, remote_threads_info)
7600 (remote_threads_extra_info, remote_start_remote): Use
7601 packet_support.
7602 (remote_start_remote): Use packet_config_support and
7603 packet_support.
7604 (init_all_packet_configs): Set all packets to unknown support,
7605 instead of calling update_packet_config.
7606 (remote_check_symbols): Use packet_support.
7607 (remote_supported_packet): Unconditionally set the packet config's
7608 support status.
7609 (remote_multi_process_feature, remote_non_stop_feature)
7610 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7611 (remote_breakpoint_commands_feature)
7612 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7613 (remote_install_in_trace_feature)
7614 (remote_disconnected_tracing_feature)
7615 (remote_enable_disable_tracepoint_feature)
7616 (remote_string_tracing_feature)
7617 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7618 (remote_protocol_features): Adjust to use remote_supported_packet
7619 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7620 "ConditionalTracepoints", "ConditionalBreakpoints",
7621 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7622 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7623 "EnableDisableTracepoints", and "tracenz".
7624 (remote_query_supported): Use packet_support.
7625 (remote_open_1): Adjust.
7626 (extended_remote_attach_1): Use packet_support. Switch on the
7627 result of packet_ok instead of checking whether the packet ended
7628 up disabled.
7629 (remote_vcont_resume): Use packet_support.
7630 (remote_resume, remote_stop_ns, fetch_register_using_p)
7631 (remote_prepare_to_store, store_register_using_P)
7632 (check_binary_download, remote_write_bytes): Use packet_support.
7633 (remote_vkill): Use packet_support. Switch on the result of
7634 packet_ok instead of checking whether the packet ended up
7635 disabled.
7636 (extended_remote_supports_disable_randomization): Use
7637 packet_support.
7638 (extended_remote_run): Switch on the result of packet_ok instead
7639 of checking whether the packet ended up disabled.
7640 (remote_insert_breakpoint, remote_remove_breakpoint)
7641 (remote_insert_watchpoint, remote_remove_watchpoint)
7642 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7643 packet_support.
7644 (remote_search_memory): Use packet_config_support.
7645 (remote_get_thread_local_address, remote_get_tib_address)
7646 (remote_hostio_send_command, remote_can_execute_reverse): Use
7647 packet_support.
7648 (remote_supports_cond_tracepoints)
7649 (remote_supports_cond_breakpoints)
7650 (remote_supports_fast_tracepoints)
7651 (remote_supports_static_tracepoints)
7652 (remote_supports_install_in_trace)
7653 (remote_supports_enable_disable_tracepoint)
7654 (remote_supports_string_tracing)
7655 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7656 the packet config says the feature is enabled or disabled.
7657 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7658 (remote_get_trace_status): Use packet_support.
7659 (remote_set_disconnected_tracing): Adjust to check whether the
7660 feature is enabled with packet_support.
7661 (remote_set_trace_buffer_size, remote_use_agent)
7662 (remote_can_use_agent, remote_supports_btrace): Use
7663 packet_support.
7664 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7665 Use packet_config_support.
7666 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7667 the packet config says the feature is enabled or disabled.
7668 (set_range_stepping): Use packet_support.
7669
bdb52a22
TT
76702014-04-25 Tom Tromey <tromey@redhat.com>
7671
7672 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7673 argument.
7674
e9475ead
SA
76752014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7676
7677 * NEWS: Mention support for C99 variable length arrays.
7678
82eacd52
JB
76792014-04-24 Joel Brobecker <brobecker@adacore.com>
7680
7681 * ada-lang.c (standard_exc): Expand introductory comment.
7682
01f9f808
MS
76832014-04-24 Michael Sturm <michael.sturm@mintel.com>
7684 Walfred Tedeschi <walfred.tedeschi@intel.com>
7685
7686 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7687 AVX512 registers.
7688 (amd64_linux_read_description): Add code to handle AVX512 xstate
7689 mask and return respective tdesc.
7690 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7691 and features/i386/x32-avx512-linux.c.
7692 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7693 (amd64_linux_core_read_description): Add code to handle AVX512
7694 xstate mask and return respective tdesc.
7695 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7696 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7697 calculation.
7698 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7699 (tdesc_amd64_avx512_linux): New prototype.
7700 (tdesc_x32_avx512_linux): Likewise.
7701 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7702 features/i386/x32-avx512.c.
7703 (amd64_ymm_avx512_names): New register names for pseudo
7704 registers YMM16-31.
7705 (amd64_ymmh_avx512_names): New register names for raw registers
7706 YMMH16-31.
7707 (amd64_k_names): New register names for K registers.
7708 (amd64_zmmh_names): New register names for ZMM raw registers.
7709 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7710 (amd64_xmm_avx512_names): New register names for XMM16-31
7711 registers.
7712 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7713 registers.
7714 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7715 if feature is present.
7716 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7717 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7718 (AMD64_NUM_REGS): Adjust to new number of registers.
7719 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7720 registers supplied via XSTATE by AVX512 registers.
7721 (i386_linux_read_description): Add case for AVX512.
7722 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7723 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7724 (i386_linux_core_read_description): Add case for AVX512.
7725 (i386_linux_init_abi): Install supported register note section
7726 for AVX512.
7727 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7728 AVX512.
7729 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7730 registers to be number of zmm7h + 1.
7731 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7732 * i386-tdep.c: Include features/i386/i386-avx512.c.
7733 (i386_zmm_names): Add ZMM pseudo register names array.
7734 (i386_zmmh_names): Add ZMM raw register names array.
7735 (i386_k_names): Add K raw register names array.
7736 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7737 registers. AVX512 has 16 more ZMM registers than there are YMM
7738 registers.
7739 (i386_zmmh_regnum_p): Add function to look up register number of
7740 ZMM raw registers.
7741 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7742 (i386_k_regnum_p): Likewise for K raw registers.
7743 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7744 registers added by AVX512.
7745 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7746 registers added by AVX512.
7747 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7748 added by AVX512.
7749 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7750 (i386_pseudo_register_name): Add ZMM pseudo registers.
7751 (i386_zmm_type): Construct and return vector registers type for ZMM
7752 registers.
7753 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7754 ZMM0-31 pseudo registers and K registers.
7755 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7756 and YMM16-31 registers from register cache.
7757 (i386_pseudo_register_write): Add code to write K, ZMM and
7758 YMM16-31 registers.
7759 (i386_register_reggroup_p): Add code to include/exclude AVX512
7760 registers in/from respective register groups.
7761 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7762 registers if feature is present in xcr0.
7763 (i386_gdbarch_init): Add code to initialize AVX512 feature
7764 variables in tdep structure, wire in pseudo registers and call
7765 initialize_tdesc_i386_avx512.
7766 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7767 variables.
7768 (i386_regnum): Add AVX512 registers.
7769 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7770 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7771 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7772 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7773 512 bits wide.
7774 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7775 (i386_ymm_avx512_regnum_p): Likewise.
7776 (i386_k_regnum_p): Likewise.
7777 (i386_zmm_regnum_p): Likewise.
7778 (i386_zmmh_regnum_p): Likewise.
7779 * i387-tdep.c : Update year in copyright notice.
7780 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7781 XSAVE buffer.
7782 (XSAVE_YMM_AVX512_ADDR): New macro.
7783 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7784 XSAVE buffer.
7785 (XSAVE_XMM_AVX512_ADDR): New macro.
7786 (xsave_avx512_k_offset): New table for K register offsets in
7787 XSAVE buffer.
7788 (XSAVE_AVX512_K_ADDR): New macro.
7789 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7790 in XSAVE buffer.
7791 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7792 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7793 buffer.
7794 (i387_collect_xsave): Add code to collect AVX512 registers from
7795 XSAVE buffer.
7796 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7797 of XMM16-31 registers.
7798 (I387_NUM_K_REGS): New define for number of K registers.
7799 (I387_K0_REGNUM): New define for K0 register number.
7800 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7801 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7802 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7803 registers.
7804 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7805 (I387_XMM16_REGNUM): New define for XMM16 register number.
7806 (I387_YMM0_REGNUM): New define for YMM0 register number.
7807 (I387_KEND_REGNUM): New define for last K register number.
7808 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7809 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7810 number.
7811 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7812 number.
7813 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7814 size.
7815 * features/Makefile: Add AVX512 related files.
7816 * features/i386/32bit-avx512.xml: New file.
7817 * features/i386/64bit-avx512.xml: Likewise.
7818 * features/i386/amd64-avx512-linux.c: Likewise.
7819 * features/i386/amd64-avx512-linux.xml: Likewise.
7820 * features/i386/amd64-avx512.c: Likewise.
7821 * features/i386/amd64-avx512.xml: Likewise.
7822 * features/i386/i386-avx512-linux.c: Likewise.
7823 * features/i386/i386-avx512-linux.xml: Likewise.
7824 * features/i386/i386-avx512.c: Likewise.
7825 * features/i386/i386-avx512.xml: Likewise.
7826 * features/i386/x32-avx512-linux.c: Likewise.
7827 * features/i386/x32-avx512-linux.xml: Likewise.
7828 * features/i386/x32-avx512.c: Likewise.
7829 * features/i386/x32-avx512.xml: Likewise.
7830 * regformats/i386/amd64-avx512-linux.dat: New file.
7831 * regformats/i386/amd64-avx512.dat: Likewise.
7832 * regformats/i386/i386-avx512-linux.dat: Likewise.
7833 * regformats/i386/i386-avx512.dat: Likewise.
7834 * regformats/i386/x32-avx512-linux.dat: Likewise.
7835 * regformats/i386/x32-avx512.dat: Likewise.
7836 * NEWS: Add note about new support for AVX512.
7837
7838
08351840
PA
78392014-04-23 Pedro Alves <palves@redhat.com>
7840
7841 * breakpoint.c (insert_bp_location): Tolerate errors if the
7842 breakpoint is set in a user-loaded objfile.
7843 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7844 location is marked shlib_disabled. If the breakpoint is set in a
7845 user-loaded objfile is a GDB-side memory breakpoint, validate it
7846 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7847 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7848 flag.
7849 * mem-break.c (memory_validate_breakpoint): New function.
7850 * objfiles.c (userloaded_objfile_contains_address_p): New
7851 function.
7852 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7853 * target.h (memory_validate_breakpoint): New declaration.
7854
076855f9
PA
78552014-04-23 Pedro Alves <palves@redhat.com>
7856
7857 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7858 the breakpoint is set in a shared library, only suppress
7859 errors for software breakpoints, not hardware breakpoints.
7860
483805cf
PA
78612014-04-22 Pedro Alves <palves@redhat.com>
7862
7863 * infrun.c (schedlock_applies): New function, factored out from
7864 find_thread_needs_step_over.
7865 (find_thread_needs_step_over): Use it.
7866 (switch_back_to_stepped_thread): Always clear trap_expected if the
7867 step over is finished. Return early if scheduler locking applies.
7868 Look for the stepping thread and a potential step-over thread with
7869 a single loop.
7870 (currently_stepping_or_nexting_callback): Delete.
7871
a75fef0e
NC
78722014-04-22 Nick Clifton <nickc@redhat.com>
7873
7874 * NEWS: Mention that ARM sim now supports tracing.
7875
48b6e87e
YQ
78762014-04-22 Yao Qi <yao@codesourcery.com>
7877
7878 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7879 to ...
7880 * tracefile.c (tracefile_fetch_registers): ... it. New
7881 function.
7882 * tracefile.h (tracefile_fetch_registers): Declare.
7883 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7884 tracefile_fetch_registers.
7885
17617f2d
EZ
78862014-04-19 Eli Zaretskii <eliz@gnu.org>
7887
7888 PR gdb/14018
7889 * windows-nat.c (thread_rec): Don't display a warning when
7890 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7891 fails for any reason, set th->suspended to -1, so that we don't
7892 try to resume such a thread. Also, don't return NULL in these
7893 cases, to avoid completely ruin the session due to "PC register is
7894 not available" error.
7895 (do_windows_fetch_inferior_registers): Check errors in
7896 GetThreadContext call.
7897 (windows_continue): Accept an additional argument KILLED; if not
7898 zero, ignore errors in the SetThreadContext call, since the
7899 inferior was killed and is shutting down.
7900 (windows_resume, get_windows_debug_event)
7901 (windows_create_inferior, windows_mourn_inferior)
7902 (windows_kill_inferior): All callers of windows_continue changed
7903 to adjust to its new calling sequence.
7904
5723a6fd
YQ
79052014-04-19 Yao Qi <yao@codesourcery.com>
7906
7907 * ctf.c (ctf_open): Call post_create_inferior.
7908
614d5099
YQ
79092014-04-19 Yao Qi <yao@codesourcery.com>
7910
7911 * ctf.c (handle_id): New static variable.
7912 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7913 value. Get the declaration of event "register" and get length
7914 of field "contents".
7915
dac3e710
YQ
79162014-04-19 Yao Qi <yao@codesourcery.com>
7917
7918 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7919
2bca57ba
SC
79202014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7921
7922 * valops.c (oload_method_static): Remove unnecessary argument
7923 METHOD. Update all callers.
7924
51d48146
PA
79252014-04-18 Pedro alves <palves@redhat.com>
7926 Tom Tromey <tromey@redhat.com>
7927
7928 PR backtrace/15558
7929 * frame.c (get_prev_frame_1): Rename to ...
7930 (get_prev_frame_always): ... this, and make extern. Adjust.
7931 (skip_artificial_frames): Use get_prev_frame_always.
7932 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7933 (get_frame_unwind_stop_reason): Adjust to rename.
7934 * frame.h (get_prev_frame_always): Declare.
7935 * inline-frame.c: Include frame.h.
7936 (inline_frame_this_id): Use get_prev_frame_always.
7937
1bdad2e0
TG
79382014-04-18 Tristan Gingold <gingold@adacore.com>
7939
7940 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7941 code by using bfd_mach_o_get_base_address.
7942
7ce16bd4
UW
79432014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7944
7945 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7946 (spu_ax_pseudo_register_collect): New function.
7947 (spu_ax_pseudo_register_push_stack): Likewise.
7948 (spu_dwarf_reg_to_regnum): Likewise.
7949 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7950
2ed3c037
UW
79512014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7952
7953 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7954 Replace FRAME argument with FRAME_ID.
7955 * gdbarch.c, gdbarch.h: Regenerate.
7956 * findvar.c (default_value_from_register): Add GDBARCH argument;
7957 replace FRAME by FRAME_ID. No longer call get_frame_id.
7958 (value_from_register): Update call to gdbarch_value_from_register.
7959 * value.h (default_value_from_register): Update prototype.
7960 * s390-linux-tdep.c (s390_value_from_register): Update interface
7961 and call to default_value_from_register.
7962 * spu-tdep.c (spu_value_from_register): Likewise.
7963
7964 * findvar.c (address_from_register): Remove TYPE argument.
7965 Do not call value_from_register; use gdbarch_value_from_register
7966 with null_frame_id instead.
7967 * value.h (address_from_register): Update prototype.
7968 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7969 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7970 address_from_register interface change.
7971
71e50e83
YQ
79722014-04-17 Yao Qi <yao@codesourcery.com>
7973
7974 * gdbtypes.h: Update comments to link to types and macros'
7975 definitions.
7976
7a23c549
SC
79772014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7978
7979 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7980
22869d73
KS
79812014-04-16 Keith Seitz <keiths@redhat.com>
7982
7983 PR gdb/15827
7984 * dwarf2read.c (skip_one_die): Check that all relative-offset
7985 sibling DIEs fall within range of the current reader's buffer.
7986 (read_partial_die): Likewise.
7987
c4f87ca6
KS
79882014-04-16 Keith Seitz <keiths@redhat.com>
7989
7990 PR c++/16597
7991 * cp-namespace.c (lookup_symbol_file): If the type name of
7992 `this' is NULL, return immediately.
7993
b50c8614
KS
79942014-04-14 Keith Seitz <keiths@redhat.com>
7995
7996 PR c++/16253
7997 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7998 from symbol_matches_domain in symtab.c. All local callers
7999 of symbol_matches_domain updated.
8000 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8001 search STRUCT_DOMAIN.
8002 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8003 independently. standard_lookup will do that automatically.
8004 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8005 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8006 (cp_lookup_symbol_in_namespace): Likewise.
8007 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8008 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8009 may return a STRUCT_DOMAIN match.
8010 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8011 * cp-support.c: Include language.h.
8012 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8013 VAR_DOMAIN.
8014 * psymtab.c (match_partial_symbol): Compare the requested
8015 domain with the symbol's domain directly.
8016 (lookup_partial_symbol): Likewise.
8017 * symtab.c (lookup_symbol_in_language): Explain when/why
8018 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8019 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8020 appropriate languages.
8021 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8022 and moved to ada-lang.c
8023 (lookup_block_symbol): Explain that this function only returns
8024 symbol matching the requested DOMAIN.
8025 Compare the requested domain with the symbol's domain directly.
8026 (iterate_over_symbols): Compare the requested domain with the
8027 symbol's domain directly.
8028 * symtab.h (symbol_matches_domain): Remove.
8029
3d567982
TT
80302014-04-14 Tom Tromey <tromey@redhat.com>
8031
8032 PR c++/15246:
8033 * c-exp.y (type_aggregate_p): New function.
8034 (qualified_name, classify_inner_name): Use it.
8035 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8036 and TYPE_TARGET_TYPE of an enum type.
8037 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8038 an enum type.
8039 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8040 handle TYPE_DECLARED_CLASS.
8041 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8042 types.
8043 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8044 * valops.c (enum_constant_from_type): New function.
8045 (value_aggregate_elt): Use it.
8046 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8047 TYPE_CODE_ENUM.
8048
c848d642
TT
80492014-04-14 Tom Tromey <tromey@redhat.com>
8050
8051 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8052 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8053 const.
8054 * value.h (value_aggregate_elt): Update.
8055
0626fc76
TT
80562014-04-14 Tom Tromey <tromey@redhat.com>
8057
8058 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8059
5ecaaa66
SA
80602014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8061
8062 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8063 (evaluate_subexp_standard): Pass noside argument.
8064 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8065 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8066 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8067 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8068 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8069
1612e0c0
SA
80702014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8071
8072 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8073 points to a constant blob.
8074
c451ebe5
SA
80752014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8076
8077 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8078 property and store it as the high bound and flag the range accordingly.
8079 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8080 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8081 * gdbtypes.h (enum range_flags): New enum.
8082 (struct range_bounds): Add flags member.
8083
1d42e4c4
SA
80842014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8085
8086 * c-typeprint.c (c_type_print_varspec_suffix): Added
8087 check for not yet resolved high bound. If unresolved, print
8088 "variable length" string to the console instead of random
8089 length.
8090
9f1f738a
SA
80912014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8092
8093 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8094 value.
8095 (ada_template_to_fixed_record_type_1): Likewise.
8096 (ada_to_fixed_type_1): Likewise.
8097 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8098 (cp_print_value): Likewise.
8099 * d-valprint.c (dynamic_array_type): Likewise.
8100 * findvar.c (address_of_variable): Likewise.
8101 * jv-valprint.c (java_value_print): Likewise.
8102 * valops.c (value_ind): Likewise.
8103 * value.c (coerce_ref): Likewise.
8104
3c8452d4
SA
81052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8106
8107 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8108 value and retrieve the dynamic type size.
8109
4ad88275
SA
81102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8111
8112 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8113 passed to sizeof is dynamic evaluate the argument to compute the length.
8114
80180f79
SA
81152014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8116 Joel Brobecker <brobecker@adacore.com>
8117
8118 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8119 (dwarf2_evaluate_property): New function.
8120 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8121 * dwarf2read.c (attr_to_dynamic_prop): New function.
8122 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8123 attribute.
8124 * gdbtypes.c: Include dwarf2loc.h.
8125 (is_dynamic_type): New function.
8126 (resolve_dynamic_type): New function.
8127 (resolve_dynamic_bounds): New function.
8128 (get_type_length): New function.
8129 (check_typedef): Use get_type_length to compute type length.
8130 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8131 (TYPE_LOW_BOUND_KIND): New macro.
8132 (is_dynamic_type): New function prototype.
8133 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8134 to resolve dynamic properties of the type. Update comment.
8135 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8136
a1556843
RH
81372014-04-14 Richard Henderson <rth@redhat.com>
8138
8139 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8140
0be03e84
DE
81412014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8142 Doug Evans <xdje42@gmail.com>
8143
8144 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8145 dereference TYPE_CODE_REF values.
8146
6b662e19
JB
81472014-04-11 Joel Brobecker <brobecker@adacore.com>
8148
8149 Revert the following changes due to regressions:
8150
8151 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8152 (dwarf2_evaluate_property): New function.
8153 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8154 * dwarf2read.c (attr_to_dynamic_prop): New function.
8155 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8156 attribute.
8157 * gdbtypes.c: Include dwarf2loc.h.
8158 (is_dynamic_type): New function.
8159 (resolve_dynamic_type): New function.
8160 (resolve_dynamic_bounds): New function.
8161 (get_type_length): New function.
8162 (check_typedef): Use get_type_length to compute type length.
8163 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8164 (TYPE_LOW_BOUND_KIND): New macro.
8165 (is_dynamic_type): New function prototype.
8166 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8167 to resolve dynamic properties of the type. Update comment.
8168 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8169
8170 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8171 passed to sizeof is dynamic evaluate the argument to compute the length.
8172
8173 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8174 value and retrieve the dynamic type size.
8175
8176 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8177 (ada_template_to_fixed_record_type_1): Likewise.
8178 (ada_to_fixed_type_1): Likewise.
8179 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8180 (cp_print_value): Likewise.
8181 * d-valprint.c (dynamic_array_type): Likewise.
8182 * eval.c (evaluate_subexp_with_coercion): Likewise.
8183 * findvar.c (address_of_variable): Likewise.
8184 * jv-valprint.c (java_value_print): Likewise.
8185 * valops.c (value_ind): Likewise.
8186 * value.c (coerce_ref): Likewise.
8187
8188 * c-typeprint.c (c_type_print_varspec_suffix): Added
8189 check for not yet resolved high bound. If unresolved, print
8190 "variable length" string to the console instead of random
8191 length.
8192
8193 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8194 property and store it as the high bound and flag the range accordingly.
8195 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8196 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8197 * gdbtypes.h (enum range_flags): New enum.
8198 (struct range_bounds): Add flags member.
8199
8200 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8201 points to a constant blob.
8202
8203 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8204 (evaluate_subexp_standard): Pass noside argument.
8205 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8206 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8207 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8208 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8209 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8210
245a5f0b
KS
82112014-04-11 Keith Seitz <keiths@redhat.com>
8212
8213 PR c++/16675
8214 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8215 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8216 reference types.
8217
3bce8237
SA
82182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8219
8220 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8221 (evaluate_subexp_standard): Pass noside argument.
8222 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8223 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8224 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8225 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8226 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8227
92b09522
SA
82282014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8229
8230 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8231 points to a constant blob.
8232
e1969afb
SA
82332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8234
8235 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8236 property and store it as the high bound and flag the range accordingly.
8237 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8238 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8239 * gdbtypes.h (enum range_flags): New enum.
8240 (struct range_bounds): Add flags member.
8241
b86138fb
SA
82422014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8243
8244 * c-typeprint.c (c_type_print_varspec_suffix): Added
8245 check for not yet resolved high bound. If unresolved, print
8246 "variable length" string to the console instead of random
8247 length.
8248
bcd629a4
SA
82492014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8250
8251 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8252 (ada_template_to_fixed_record_type_1): Likewise.
8253 (ada_to_fixed_type_1): Likewise.
8254 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8255 (cp_print_value): Likewise.
8256 * d-valprint.c (dynamic_array_type): Likewise.
8257 * eval.c (evaluate_subexp_with_coercion): Likewise.
8258 * findvar.c (address_of_variable): Likewise.
8259 * jv-valprint.c (java_value_print): Likewise.
8260 * valops.c (value_ind): Likewise.
8261 * value.c (coerce_ref): Likewise.
8262
04b19544
SA
82632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8264
8265 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8266 value and retrieve the dynamic type size.
8267
26cb189f
SA
82682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8269
8270 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8271 passed to sizeof is dynamic evaluate the argument to compute the length.
8272
37c1ab67
SA
82732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8274
8275 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8276 (dwarf2_evaluate_property): New function.
8277 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8278 * dwarf2read.c (attr_to_dynamic_prop): New function.
8279 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8280 attribute.
8281 * gdbtypes.c: Include dwarf2loc.h.
8282 (is_dynamic_type): New function.
8283 (resolve_dynamic_type): New function.
8284 (resolve_dynamic_bounds): New function.
8285 (get_type_length): New function.
8286 (check_typedef): Use get_type_length to compute type length.
8287 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8288 (TYPE_LOW_BOUND_KIND): New macro.
8289 (is_dynamic_type): New function prototype.
8290 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8291 to resolve dynamic properties of the type. Update comment.
8292 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8293
729efb13
SA
82942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8295
8296 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8297 declaring high/low bounds and change uses accordingly. Call
8298 create_range_type instead of create_static_range_type.
8299 * gdbtypes.c (create_range_type): New function.
8300 (create_range_type): Convert bounds into struct bound_prop and pass
8301 them to create_range_type.
8302 * gdbtypes.h (struct bound_prop): New struct.
8303 (create_range_type): New function prototype.
8304 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8305 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8306 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8307 part of the bound.
8308 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8309
0c9c3474
SA
83102014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8311
8312 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8313 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8314 * ada-lang.c: All uses of create_range_type updated.
8315 * coffread.c: All uses of create_range_type updated.
8316 * dwarf2read.c: All uses of create_range_type updated.
8317 * f-exp.y: All uses of create_range_type updated.
8318 * m2-valprint.c: All uses of create_range_type updated.
8319 * mdebugread.c: All uses of create_range_type updated.
8320 * stabsread.c: All uses of create_range_type updated.
8321 * valops.c: All uses of create_range_type updated.
8322 * valprint.c: All uses of create_range_type updated.
8323
9d497a19
PA
83242014-04-10 Pedro Alves <palves@redhat.com>
8325
8326 * breakpoint.c (single_step_breakpoints)
8327 (single_step_gdbarch): Move up in the file.
8328 (one_breakpoint_xfer_memory): New function, factored out from ...
8329 (breakpoint_xfer_memory): ... here. Also process single-step
8330 breakpoints.
8331
15a9128a
TG
83322014-04-09 Tristan Gingold <gingold@adacore.com>
8333
8334 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8335 comments.
8336 (darwin_decode_exception_message): Free port only after use.
8337
9c97a070
PL
83382014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8339
8340 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8341 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8342 when setting the size of call_length.
8343
7af389b8
SC
83442014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8345
8346 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8347 dereference TYPE_CODE_REF values.
8348
86ad98c3
JB
83492014-04-07 Joel Brobecker <brobecker@adacore.com>
8350
8351 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8352 end of warning message.
8353
b0aeadb3
DE
83542014-04-03 Doug Evans <dje@google.com>
8355
8356 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8357 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8358
5979d6b6
AM
83592014-04-02 Alan Modra <amodra@gmail.com>
8360
8361 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8362 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8363 (struct symbol_file_add_from_memory_args): Add size field.
8364 (find_vdso_size): New function.
8365 (add_vsyscall_page): Attempt to find vdso size.
8366
0d60c288
DE
83672014-04-01 Doug Evans <dje@google.com>
8368
8369 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8370
a41f2563
TG
83712014-04-01 Tristan Gingold <gingold@adacore.com>
8372
8373 * darwin-nat.c (darwin_encode_reply): Add prototype.
8374 (darwin_decode_exception_message): Reply to unknown inferiors.
8375 (darwin_decode_message): Handle message by id. Ignore message
8376 to unknown inferior.
8377 (darwin_wait): Discard unknown messages, add debug trace.
8378
11a865c8
DE
83792014-03-31 Doug Evans <dje@google.com>
8380
8381 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8382 comp_dir_string.
8383
770e7fc7
DE
83842014-03-31 Doug Evans <dje@google.com>
8385
8386 New option "set print symbol-loading".
8387 * NEWS: Mention it.
8388 * solib.c (solib_read_symbols): Only print symbol loading messages
8389 if requested.
8390 (solib_add): If symbol loading is in "brief" mode, notify user
8391 symbols are being loaded.
8392 (reload_shared_libraries_1): Ditto.
8393 * symfile.c (print_symbol_loading_off): New static global.
8394 (print_symbol_loading_brief): New static global.
8395 (print_symbol_loading_full): New static global.
8396 (print_symbol_loading_enums): New static global.
8397 (print_symbol_loading): New static global.
8398 (print_symbol_loading_p): New function.
8399 (symbol_file_add_with_addrs): Only print symbol loading messages
8400 if requested.
8401 (_initialize_symfile): Register "print symbol-loading" set/show
8402 command.
8403 * symfile.h (print_symbol_loading_p): Declare.
8404
c32c64b7
DE
84052014-03-30 Doug Evans <xdje42@gmail.com>
8406
8407 * infrun.c (set_last_target_status): New function.
8408 (handle_inferior_event): Call it.
8409
7c0bc051
DE
84102014-03-30 Doug Evans <xdje42@gmail.com>
8411
8412 * inferior.h (enum stop_kind): Improve comment.
8413
8776cfe9
JB
84142014-03-28 Joel Brobecker <brobecker@adacore.com>
8415
8416 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8417 a reference, strip the reference layer before calling
8418 the lang_ops value_has_mutated callback.
8419
410a0ff2
SDJ
84202014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8421
8422 Remove some globals from our parser.
8423 * language.c (unk_lang_parser): Add "struct parser_state"
8424 argument.
8425 * language.h (struct language_defn) <la_parser>: Likewise.
8426 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8427 (initialize_expout): Add "struct parser_state" argument.
8428 Rewrite function to use the parser state.
8429 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8430 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8431 write_exp_elt_longcst, write_exp_elt_dblcst,
8432 write_exp_elt_decfloatcst, write_exp_elt_type,
8433 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8434 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8435 write_dollar_variable): Likewise.
8436 (parse_exp_in_context_1): Use parser state.
8437 (insert_type_address_space): Add "struct parser_state" argument.
8438 Use parser state.
8439 (increase_expout_size): New function.
8440 * parser-defs.h: Forward declare "struct language_defn" and
8441 "struct parser_state".
8442 (expout, expout_size, expout_ptr): Remove extern declarations.
8443 (parse_gdbarch, parse_language): Rewrite macro declarations to
8444 accept the parser state.
8445 (struct parser_state): New struct.
8446 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8447 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8448 write_exp_elt_decfloatcst, write_exp_elt_type,
8449 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8450 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8451 write_exp_msymbol, write_dollar_variable,
8452 mark_struct_expression, insert_type_address_space): Add "struct
8453 parser_state" argument.
8454 (increase_expout_size): New function.
8455 * utils.c (do_clear_parser_state): New function.
8456 (make_cleanup_clear_parser_state): Likewise.
8457 * utils.h (make_cleanup_clear_parser_state): New function
8458 prototype.
8459 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8460 Update calls to write_exp* in order to pass the parser state.
8461 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8462 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8463 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8464 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8465 * stap-probe.c (stap_parse_register_operand): Likewise.
8466 (stap_parse_single_operand): Likewise.
8467 (stap_parse_argument_1): Likewise.
8468 (stap_parse_argument): Use parser state.
8469 * stap-probe.h: Include "parser-defs.h".
8470 (struct stap_parse_info) <pstate>: New field.
8471 * c-exp.y (parse_type): Rewrite to use parser state.
8472 (yyparse): Redefine to c_parse_internal.
8473 (pstate): New global variable.
8474 (parse_number): Add "struct parser_state" argument.
8475 (write_destructor_name): Likewise.
8476 (type_exp): Update calls to write_exp* and similars in order to
8477 use parser state.
8478 (exp1, exp, variable, qualified_name, space_identifier,
8479 typename, typebase): Likewise.
8480 (write_destructor_name, parse_number, lex_one_token,
8481 classify_name, classify_inner_name, c_parse): Add "struct
8482 parser_state" argument. Update function to use parser state.
8483 * c-lang.h: Forward declare "struct parser_state".
8484 (c_parse): Add "struct parser_state" argument.
8485 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8486 (yyparse): Redefine macro to ada_parse_internal.
8487 (pstate): New variable.
8488 (write_int, write_object_renaming, write_var_or_type,
8489 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8490 type_int, type_long, type_long_long, type_float, type_double,
8491 type_long_double, type_char, type_boolean, type_system_address):
8492 Add "struct parser_state" argument.
8493 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8494 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8495 var_or_type, aggregate, aggregate_component_list,
8496 positional_list, others, component_group,
8497 component_associations): Update calls to write_exp* and similar
8498 functions in order to use parser state.
8499 (ada_parse, write_var_from_sym, write_int,
8500 write_exp_op_with_string, write_object_renaming,
8501 find_primitive_type, write_selectors, write_ambiguous_var,
8502 write_var_or_type, write_name_assoc, type_int, type_long,
8503 type_long_long, type_float, type_double, type_long_double,
8504 type_char, type_boolean, type_system_address): Add "struct
8505 parser_state" argument. Adjust function to use parser state.
8506 * ada-lang.c (parse): Likewise.
8507 * ada-lang.h: Forward declare "struct parser_state".
8508 (ada_parse): Add "struct parser_state" argument.
8509 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8510 calls to both functions.
8511 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8512 parser state.
8513 (yyparse): Redefine macro to f_parse_internal.
8514 (pstate): New variable.
8515 (parse_number): Add "struct parser_state" argument.
8516 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8517 and similars in order to use parser state.
8518 (parse_number): Adjust code to use parser state.
8519 (yylex): Likewise.
8520 (f_parse): New function.
8521 * f-lang.h: Forward declare "struct parser_state".
8522 (f_parse): Add "struct parser_state" argument.
8523 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8524 parser state.
8525 (yyparse): Redefine macro for java_parse_internal.
8526 (pstate): New variable.
8527 (push_expression_name, push_expression_name, insert_exp): Add
8528 "struct parser_state" argument.
8529 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8530 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8531 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8532 PostIncrementExpression, PostDecrementExpression,
8533 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8534 UnaryExpressionNotPlusMinus, CastExpression,
8535 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8536 RelationalExpression, EqualityExpression, AndExpression,
8537 ExclusiveOrExpression, InclusiveOrExpression,
8538 ConditionalAndExpression, ConditionalOrExpression,
8539 ConditionalExpression, Assignment, LeftHandSide): Update
8540 calls to write_exp* and similars in order to use parser state.
8541 (parse_number): Ajust code to use parser state.
8542 (yylex): Likewise.
8543 (java_parse): New function.
8544 (push_variable): Add "struct parser_state" argument. Adjust
8545 code to user parser state.
8546 (push_fieldnames, push_qualified_expression_name,
8547 push_expression_name, insert_exp): Likewise.
8548 * jv-lang.h: Forward declare "struct parser_state".
8549 (java_parse): Add "struct parser_state" argument.
8550 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8551 parser state.
8552 (yyparse): Redefine macro to m2_parse_internal.
8553 (pstate): New variable.
8554 (type_exp, exp, fblock, variable, type): Update calls to
8555 write_exp* and similars to use parser state.
8556 (yylex): Likewise.
8557 (m2_parse): New function.
8558 * m2-lang.h: Forward declare "struct parser_state".
8559 (m2_parse): Add "struct parser_state" argument.
8560 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8561 * objc-lang.h: Forward declare "struct parser_state".
8562 (end_msglist): Add "struct parser_state" argument.
8563 * p-exp.y (parse_type): Rewrite macro to use parser state.
8564 (yyparse): Redefine macro to pascal_parse_internal.
8565 (pstate): New variable.
8566 (parse_number): Add "struct parser_state" argument.
8567 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8568 write_exp* and similars in order to use parser state.
8569 (parse_number, yylex): Adjust code to use parser state.
8570 (pascal_parse): New function.
8571 * p-lang.h: Forward declare "struct parser_state".
8572 (pascal_parse): Add "struct parser_state" argument.
8573 * go-exp.y (parse_type): Rewrite macro to use parser state.
8574 (yyparse): Redefine macro to go_parse_internal.
8575 (pstate): New variable.
8576 (parse_number): Add "struct parser_state" argument.
8577 (type_exp, exp1, exp, variable, type): Update calls to
8578 write_exp* and similars in order to use parser state.
8579 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8580 to use parser state.
8581 (go_parse): Likewise.
8582 * go-lang.h: Forward declare "struct parser_state".
8583 (go_parse): Add "struct parser_state" argument.
8584
342587c4
DE
85852014-03-27 Doug Evans <dje@google.com>
8586
8587 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8588
33e80786
DE
85892014-03-27 Doug Evans <dje@google.com>
8590
8591 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8592 Remove argument abbrev_section. All callers updated.
8593
1dbab08b
DE
85942014-03-27 Doug Evans <dje@google.com>
8595
8596 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8597 addr_base, ranges_base.
8598
318d3177
KS
85992014-03-26 Keith Seitz <keiths@redhat.com>
8600
8601 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8602 types, not VAR_DOMAIN.
8603
1e54db15
SL
86042014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8605
8606 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8607 "ra" registers.
8608 * features/nios2-linux.c: Regenerated.
8609 * features/nios2.c: Regenerated.
8610
d3839ede
PA
86112014-03-25 Pedro Alves <palves@redhat.com>
8612
8613 * cli/cli-script.c (script_from_file): Force the interpreter to
8614 sync mode.
8615
7588d2ec
PL
86162014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8617
8618 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8619 small stack allocation.
8620
a6290449
TG
86212014-03-24 Tristan Gingold <gingold@adacore.com>
8622
8623 * darwin-nat.c (exc_server): Remove unused prototype.
8624 (darwin_dump_message): Correctly display data on x86_64.
8625 (darwin_encode_reply): Fix style.
8626 Add comments and fix indentation.
8627
31ae9d24 86282014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8629
8630 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8631
6339bfc4
DE
86322014-03-22 Doug Evans <xdje42@gmail.com>
8633
8634 * infcmd.c: Whitespace fixes.
8635 (interrupt_command): Merge two function comments into one.
8636
0a07590b
DE
86372014-03-22 Doug Evans <xdje42@gmail.com>
8638
8639 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8640 All uses updated.
8641
b55fbac4
YQ
86422014-03-22 Yao Qi <yao@codesourcery.com>
8643
8644 * remote.c (target_read_live_memory): Remove.
8645 (memory_xfer_live_readonly_partial): Rename it to
8646 remote_xfer_live_readonly_partial. Remove argument 'object'.
8647 All callers updated. Call remote_read_bytes_1
8648 instead of target_read_live_memory.
8649 * tracepoint.c (set_traceframe_number): Remove.
8650 (make_cleanup_restore_traceframe_number): Likewise .
8651 * tracepoint.h (set_traceframe_number): Remove declaration.
8652 (make_cleanup_restore_traceframe_number): Likewise.
8653
9217e74e
YQ
86542014-03-22 Yao Qi <yao@codesourcery.com>
8655
8656 * remote.c (remote_read_bytes): Move code on reading from the
8657 remote stub to ...
8658 (remote_read_bytes_1): ... here. New function.
8659
8acf9577
YQ
86602014-03-22 Yao Qi <yao@codesourcery.com>
8661
8662 * ctf.c (ctf_xfer_partial): Check the return value of
8663 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8664 return TARGET_XFER_UNAVAILABLE.
8665 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8666 * target.c (target_read_live_memory): Move it to remote.c.
8667 (memory_xfer_live_readonly_partial): Likewise.
8668 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8669 * remote.c (target_read_live_memory): Moved from target.c.
8670 (memory_xfer_live_readonly_partial): Likewise.
8671 (remote_read_bytes): Factored out from
8672 memory_xfer_partial_1.
8673
feef67ab
DE
86742014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8675
8676 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8677 NULL pointer.
8678
b65dc60b
PA
86792014-03-21 Pedro Alves <palves@redhat.com>
8680
8681 * infrun.c (normal_stop): Extend comment.
8682
b4ab256d
HZ
86832014-03-21 Hui Zhu <hui@codesourcery.com>
8684 Pedro Alves <palves@redhat.com>
8685
8686 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8687 static buffer.
8688 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8689 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8690 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8691
deba7593
MR
86922014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8693
8694 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8695 `z' formatted output modifier.
8696
1bff71c3
SDJ
86972014-03-20 Tom Tromey <tromey@redhat.com>
8698 Sergio Durigan Junior <sergiodj@redhat.com>
8699
8700 * probe.c (parse_probes): Turn assert into an ordinary error.
8701 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8702 exceptions when parsing probes. Rearrange the code for clarity.
8703
90e28950
TT
87042014-03-20 Tom Tromey <tromey@redhat.com>
8705
8706 PR gdb/14135
8707 * top.c (execute_command): Only dispatch events if the command
8708 started the target.
8709
beb460e8
PA
87102014-03-20 Tom Tromey <tromey@redhat.com>
8711
8712 PR cli/15718
8713 * infcall.c: Include event-top.h.
8714 (run_inferior_call): Call async_disable_stdin if needed.
8715
99619bea
PA
87162014-03-20 Pedro Alves <palves@redhat.com>
8717
8718 * infrun.c (prepare_to_proceed): Delete.
8719 (thread_still_needs_step_over): New function.
8720 (find_thread_needs_step_over): New function.
8721 (proceed): If the current thread needs a step-over, set its
8722 steping_over_breakpoint flag. Adjust to use
8723 find_thread_needs_step_over instead of prepare_to_proceed.
8724 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8725 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8726 breakpoint.
8727 (switch_back_to_stepped_thread): Step over breakpoints of all
8728 threads not the stepping thread, before switching back to the
8729 stepping thread.
8730
2adfaa28
PA
87312014-03-20 Pedro Alves <palves@redhat.com>
8732
8733 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8734 extern.
8735 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8736 * infrun.c (saved_singlestep_ptid)
8737 (stepping_past_singlestep_breakpoint): Delete.
8738 (resume): Remove stepping_past_singlestep_breakpoint handling.
8739 (proceed): Store the prev_pc of the stepping thread too.
8740 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8741 singlestep_pc.
8742 (enum infwait_states): Delete infwait_thread_hop_state.
8743 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8744 field.
8745 (handle_inferior_event): Adjust.
8746 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8747 handling and the thread-hop code. Before removing single-step
8748 breakpoints, check whether the thread hit a single-step breakpoint
8749 of another thread. If it did, the trap is not a random signal.
8750 (switch_back_to_stepped_thread): If the event thread hit a
8751 single-step breakpoint, unblock it before switching to the
8752 stepping thread. Handle the case of the stepped thread having
8753 advanced already.
8754 (keep_going): Handle the case of the current thread moving past a
8755 single-step breakpoint.
8756
31e77af2
PA
87572014-03-20 Pedro Alves <palves@redhat.com>
8758
8759 PR breakpoints/7143
8760 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8761 are being stepped over.
8762 (breakpoint_address_match): Make extern.
8763 * breakpoint.h (breakpoint_address_match): New declaration.
8764 * inferior.h (stepping_past_instruction_at): New declaration.
8765 * infrun.c (struct step_over_info): New type.
8766 (step_over_info): New global.
8767 (set_step_over_info, clear_step_over_info)
8768 (stepping_past_instruction_at): New functions.
8769 (handle_inferior_event): Clear the step-over info when
8770 trap_expected is cleared.
8771 (resume): Remove now stale comment.
8772 (clear_proceed_status): Clear step-over info.
8773 (proceed): Adjust step-over handling to set or clear the step-over
8774 info instead of removing all breakpoints.
8775 (handle_signal_stop): When setting up a thread-hop, don't remove
8776 breakpoints here.
8777 (stop_stepping): Clear step-over info.
8778 (keep_going): Adjust step-over handling to set or clear step-over
8779 info and then always inserting breakpoints, instead of removing
8780 all breakpoints when stepping over one.
8781
b9f437de
PA
87822014-03-20 Pedro Alves <palves@redhat.com>
8783
8784 * infrun.c (previous_inferior_ptid): Adjust comment.
8785 (deferred_step_ptid): Delete.
8786 (infrun_thread_ptid_changed, prepare_to_proceed)
8787 (init_wait_for_inferior): Adjust.
8788 (handle_signal_stop): Delete deferred_step_ptid handling.
8789
06c868a8
JK
87902014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8791
8792 PR gdb/15358
8793 * defs.h (sync_quit_force_run): New declaration.
8794 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8795 * event-top.c (async_sigterm_handler): New declaration.
8796 (async_sigterm_token): New variable.
8797 (async_init_signals): Create also async_sigterm_token.
8798 (async_sigterm_handler): New function.
8799 (sync_quit_force_run): New variable.
8800 (handle_sigterm): Replace quit_force call by other calls.
8801 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8802
dea80df0
MR
88032014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8804
8805 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8806 offset into SPE pseudo registers.
8807
0c7e1a46
PA
88082014-03-18 Pedro Alves <palves@redhat.com>
8809
8810 PR gdb/13860
8811 * inferior.h (print_stop_event): Declare.
8812 * infrun.c (print_stop_event): New, factored out from ...
8813 (normal_stop): ... this.
8814 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8815 of bpstat_print/print_stack_frame.
8816
9c1fcd01
TT
88172014-03-17 Tom Tromey <tromey@redhat.com>
8818
8819 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8820
11aa919a
PMR
88212014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8822
8823 * ada-lang.c (decode_constrained_packed_array): Perform a
8824 minimal coercion for reference with coerce_ref instead of
8825 ada_coerce_ref.
8826
d4ccb5e0
TG
88272014-03-17 Tristan Gingold <gingold@adacore.com>
8828
8829 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8830 (darwin_solib_create_inferior_hook): Emit a warning if version
8831 is unhandled.
8832
49840f2a
UW
88332014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8834
8835 * python/py-value.c (get_field_flag): Cast flag_name argument to
8836 PyObject_GetAttrString to support Python 2.4.
8837
ed4123e5
JK
88382014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8839
8840 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8841 (Global Maintainers): Remove Jan Kratochvil.
8842
d6b64346
PA
88432014-03-14 Pedro Alves <palves@redhat.com>
8844
8845 * inferior.h (terminal_ours_for_output): Rename to ...
8846 (child_terminal_ours_for_output): ... this.
8847 (terminal_save_ours): Rename to ...
8848 (child_terminal_save_ours): ... this.
8849 (terminal_ours): Rename to ...
8850 (child_terminal_ours): ... this.
8851 (terminal_inferior): Rename to ...
8852 (child_terminal_inferior): ... this.
8853 (terminal_init_inferior): Rename to ...
8854 (child_terminal_init_inferior): ... this.
8855 (terminal_init_inferior_with_pgrp): Rename to ...
8856 (child_terminal_init_inferior_with_pgrp): ... this.
8857 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8858 (child_terminal_init_with_pgrp): ... this.
8859 (terminal_save_ours): Rename to ...
8860 (child_terminal_save_ours): ... this.
8861 (terminal_init_inferior): Rename to ...
8862 (child_terminal_init): ... this. Adjust.
8863 (terminal_inferior): Rename to ...
8864 (child_terminal_inferior): ... this.
8865 (terminal_ours_for_output): Rename to ...
8866 (child_terminal_ours_for_output): ... this. Adjust.
8867 (terminal_ours): Rename to ...
8868 (child_terminal_ours): ... this.
8869 (terminal_ours_1): Rename to ...
8870 (child_terminal_ours_1): ... this. Adjust.
8871 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8872 * windows-nat.c (do_initial_windows_stuff): Adjust.
8873 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8874 (gnu_terminal_init): ... this. Adjust.
8875 (gnu_target): Adjust.
8876 * inf-child.c (inf_child_target): Adjust.
8877
5a1e8c7a
DE
88782014-03-13 Doug Evans <xdje42@gmail.com>
8879
8880 PR guile/16612
8881 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8882 new eq?-hashtab.
8883
350e1a76
DE
88842014-03-13 Doug Evans <xdje42@gmail.com>
8885
8886 * value.c (record_latest_value): Call release_value_or_incref
8887 instead of release_value.
8888
a69900ae
PA
88892014-03-13 Pedro Alves <palves@redhat.com>
8890
8891 * procfs.c (procfs_target): Don't override to_shortname,
8892 to_longname or to_doc.
8893
5db9f0bd
PA
88942014-03-13 Pedro Alves <palves@redhat.com>
8895
8896 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8897 Unix in user visible strings.
8898
5e3a2c38
SS
88992014-03-12 Stan Shebs <stan@codesourcery.com>
8900
8901 * gdbtypes.h: Annotate comments for Doxygen, add a page
8902 block comment with some general info.
8903
8bc2fe48
PA
89042014-03-12 Pedro Alves <palves@redhat.com>
8905
8906 * infcmd.c (prepare_execution_command): New function, factored out
8907 from several execution commands.
8908 (run_command_1, continue_command, step_1, jump_command)
8909 (signal_command, until_command, advance_command, finish_command)
8910 (attach_command): Use prepare_execution_command.
8911
638c5f49
OJ
89122014-03-12 Omair Javaid <omair.javaid@linaro.org>
8913
8914 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8915 (MAX_BPTS): Define.
8916 (MAX_WPTS): Define.
8917 (struct arm_linux_thread_points): Removed.
8918 (struct arm_linux_process_info): New.
8919 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8920 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8921 (arm_linux_find_breakpoints_by_tid): Removed.
8922 (struct arch_lwp_info): New.
8923 (arm_linux_find_process_pid): New functions.
8924 (arm_linux_add_process): New functions.
8925 (arm_linux_process_info_get): New functions.
8926 (arm_linux_forget_process): New function.
8927 (arm_linux_get_debug_reg_state): New function.
8928 (struct update_registers_data): New.
8929 (update_registers_callback): New function.
8930 (arm_linux_insert_hw_breakpoint1): Updated.
8931 (arm_linux_remove_hw_breakpoint1): Updated.
8932 (arm_linux_insert_hw_breakpoint): Updated.
8933 (arm_linux_remove_hw_breakpoint): Updated.
8934 (arm_linux_insert_watchpoint): Updated.
8935 (arm_linux_remove_watchpoint): Updated.
8936 (arm_linux_new_thread): Updated.
8937 (arm_linux_prepare_to_resume): New function.
8938 (arm_linux_new_fork): New function.
8939 (_initialize_arm_linux_nat): Updated.
8940
6d03af93
PA
89412014-03-12 Pedro Alves <palves@redhat.com>
8942
8943 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8944
b3ccfe11
TT
89452014-03-12 Tom Tromey <tromey@redhat.com>
8946
8947 * inf-child.c (return_zero): New function.
8948 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8949 * aix-thread.c (aix_thread_inferior_created): New function.
8950 (aix_thread_attach): Remove.
8951 (init_aix_thread_ops): Don't set to_attach.
8952 (_initialize_aix_thread): Register inferior_created observer.
8953 * corelow.c (init_core_ops): Don't set to_attach or
8954 to_create_inferior.
8955 * exec.c (init_exec_ops): Don't set to_attach or
8956 to_create_inferior.
8957 * infcmd.c (run_command_1): Use find_run_target. Make direct
8958 target calls.
8959 (attach_command): Use find_attach_target. Make direct target
8960 calls.
8961 * record-btrace.c (init_record_btrace_ops): Don't set
8962 to_create_inferior.
8963 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8964 Remove.
8965 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8966 set to_create_inferior.
8967 * target.c (complete_target_initialization): Add assertion.
8968 (target_create_inferior): Remove.
8969 (find_default_attach, find_default_create_inferior): Remove.
8970 (find_attach_target, find_run_target): New functions.
8971 (find_default_is_async_p, find_default_can_async_p)
8972 (target_supports_non_stop, target_attach): Remove.
8973 (init_dummy_target): Don't set to_create_inferior or
8974 to_supports_non_stop.
8975 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8976 TARGET_DEFAULT_FUNC.
8977 <to_create_inferior>: Add comment.
8978 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8979 TARGET_DEFAULT_RETURN.
8980 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8981 (find_attach_target, find_run_target): Declare.
8982 (target_create_inferior): Remove.
8983 (target_has_execution_1): Update comment.
8984 (target_supports_non_stop): Remove.
8985 * target-delegates.c: Rebuild.
8986
91f83b02
PA
89872014-03-12 Pedro Alves <palves@redhat.com>
8988
8989 * inf-child.h: Update comment to not mention Unix.
8990
f1aea813
PA
89912014-03-12 Pedro Alves <palves@redhat.com>
8992
8993 * inf-child.c: Update top comment to not mention Unix. Add
8994 generic comment describing how this target is meant to be used.
8995 (inf_child_post_attach, inf_child_post_startup_inferior)
8996 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8997 Unix in comment.
8998
ee8e9165
PA
89992014-03-12 Pedro Alves <palves@redhat.com>
9000
9001 * nto-procfs.c: Include inf-child.h.
9002 (procfs_ops): Delete global.
9003 (procfs_can_run): Delete method.
9004 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9005 target pointer instead of referencing procfs_ops.
9006 (procfs_prepare_to_store): Delete.
9007 (init_procfs_ops): Delete function.
9008 (procfs_target): New function, based on init_procfs_ops, but
9009 inherit inf_child_target.
9010 (_initialize_procfs): Use procfs_target.
9011
51a9c8c5
PA
90122014-03-12 Pedro Alves <palves@redhat.com>
9013
9014 * windows-nat.c: Include inf-child.h.
9015 (windows_ops): Delete global.
9016 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9017 methods.
9018 (init_windows_ops): Delete function.
9019 (windows_target): New function, based on init_windows_ops, but
9020 inherit inf_child_target.
9021 (_initialize_windows_nat): Use windows_target. Install x86
9022 specific target methods here.
9023
c1966e26
DE
90242014-03-10 Doug Evans <xdje42@gmail.com>
9025
9026 * guile/guile.c (call_initialize_gdb_module): New function.
9027 (initialize_guile): Replace call to scm_init_guile with call to
9028 scm_with_guile.
9029
023db19c
JB
90302014-03-10 Joel Brobecker <brobecker@adacore.com>
9031
9032 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9033 in call to TYPE_CODE macro.
9034
5ec18f2b
JG
90352014-03-10 Jerome Guitton <guitton@adacore.com>
9036
8668be63
JB
9037 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9038 Resolve tagged types to full view.
5ec18f2b 9039
7d03f2eb
HZ
90402014-03-10 Hui Zhu <hui@codesourcery.com>
9041
9042 * target.h (target_insert_breakpoint): Remove "hardware" from its
9043 comments.
9044
c5164cbc
DE
90452014-03-07 Doug Evans <dje@google.com>
9046
9047 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9048
c4a3fee2
DE
90492014-03-07 Doug Evans <dje@google.com>
9050
9051 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9052 Remove unused local comp_dir_attr. Assert exactly one of
9053 stub_comp_unit_die, stub_comp_dir is non-NULL.
9054
3156469c
JB
90552014-03-07 Joel Brobecker <brobecker@adacore.com>
9056
9057 * target.h (complete_target_initialization, add_target):
9058 Add comment.
9059
c1a7b7c6
PA
90602014-03-07 Pedro Alves <palves@redhat.com>
9061
9062 * go32-nat.c: Include inf-child.h.
9063 (go32_ops): Delete global.
9064 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9065 Delete methods.
9066 (go32_create_inferior): Push the passed in target pointer instead
9067 of referencing go32_ops.
9068 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9069 (go32_target): New function, based on init_go32_ops, but inherit
9070 inf_child_target.
9071 (_initialize_go32_nat): Use go32_target. Move parts of
9072 init_go32_ops here.
9073
d3c1a85f
JB
90742014-03-06 Joel Brobecker <brobecker@adacore.com>
9075
9076 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9077 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9078 SYMBOL_VALUE_ADDRESS.
9079 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9080
5fa1d40e
YQ
90812014-03-06 Yao Qi <yao@codesourcery.com>
9082
9083 * breakpoint.c (get_tracepoint_by_number): Remove argument
9084 optional_p. All callers updated. Adjust comments. Update
9085 output message.
9086 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9087
0c13193f
YQ
90882014-03-06 Yao Qi <yao@codesourcery.com>
9089
9090 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9091 early if get_number returns zero. Use 'p' instead of 'args'.
9092
2217da06
YQ
90932014-03-06 Yao Qi <yao@codesourcery.com>
9094
9095 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9096 message.
9097
cc3da688
YQ
90982014-03-06 Yao Qi <yao@codesourcery.com>
9099
9100 PR breakpoints/16508
9101 * tracepoint.c (check_trace_running): New function.
9102 (trace_find_command): Move code to check_trace_running and
9103 call check_trace_running.
9104 (trace_find_pc_command): Likewise.
9105 (trace_find_tracepoint_command): Likewise.
9106 (trace_find_line_command): Likewise.
9107 (trace_find_range_command): Likewise.
9108 * tracepoint.h (check_trace_running): Likewise.
9109 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9110
6a5f844b
YQ
91112014-03-06 Yao Qi <yao@codesourcery.com>
9112
9113 * target.h (struct target_ops) <to_traceframe_info>: Use
9114 TARGET_DEFAULT_NORETURN (tcomplain ()).
9115 * target-delegates.c: Regenerated.
9116
0f26cec1
PA
91172014-03-05 Pedro Alves <palves@redhat.com>
9118
9119 PR gdb/16575
9120 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9121 void. Update comment.
9122 (dcache_xfer_memory): Delete.
9123 (dcache_read_memory_partial): New, based on the read bits of
9124 dcache_xfer_memory.
9125 (dcache_update): Add status parameter. Use ULONGEST for len, and
9126 adjust. Discard cache lines if the reason for the update was
9127 error.
9128 * dcache.h (dcache_xfer_memory): Delete declaration.
9129 (dcache_read_memory_partial): New declaration.
9130 (dcache_update): Update prototype.
9131 * target.c (raw_memory_xfer_partial): Update the dcache here.
9132 (memory_xfer_partial_1): Don't handle dcache writes here.
9133
b2b255bd
MF
91342014-03-05 Mike Frysinger <vapier@gentoo.org>
9135
9136 * remote-sim.c (gdbsim_load): Add const to prog.
9137
5d9cf8a4
TT
91382014-03-03 Tom Tromey <tromey@redhat.com>
9139
9140 * elfread.c (probe_key): Change to bfd_data.
9141 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9142 now per-BFD, not per-objfile.
9143 * stap-probe.c (stap_probe_destroy): Update comment.
9144 (handle_stap_probe): Allocate on the per-BFD obstack.
9145
729662a5
TT
91462014-03-03 Tom Tromey <tromey@redhat.com>
9147
9148 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9149 * breakpoint.c (create_longjmp_master_breakpoint): Use
9150 get_probe_address.
9151 (add_location_to_breakpoint, bkpt_probe_insert_location)
9152 (bkpt_probe_remove_location): Update.
9153 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9154 * elfread.c (elf_symfile_relocate_probe): Remove.
9155 (elf_probe_fns): Update.
9156 (insert_exception_resume_breakpoint): Change type of "probe"
9157 parameter to bound_probe.
9158 (check_exception_resume): Update.
9159 * objfiles.c (objfile_relocate1): Don't relocate probes.
9160 * probe.c (bound_probe_s): New typedef.
9161 (parse_probes): Use get_probe_address. Set sal's objfile.
9162 (find_probe_by_pc): Return a bound_probe.
9163 (collect_probes): Return a VEC(bound_probe_s).
9164 (compare_probes): Update.
9165 (gen_ui_out_table_header_info): Change type of "probes"
9166 parameter. Update.
9167 (info_probes_for_ops): Update.
9168 (get_probe_address): New function.
9169 (probe_safe_evaluate_at_pc): Update.
9170 * probe.h (struct probe_ops) <get_probe_address>: New field.
9171 <set_semaphore, clear_semaphore>: Add objfile parameter.
9172 (struct probe) <objfile>: Remove field.
9173 <arch>: New field.
9174 <address>: Update comment.
9175 (struct bound_probe): New.
9176 (find_probe_by_pc): Return a bound_probe.
9177 (get_probe_address): Declare.
9178 * solib-svr4.c (struct probe_and_action) <address>: New field.
9179 (hash_probe_and_action, equal_probe_and_action): Update.
9180 (register_solib_event_probe): Add address parameter.
9181 (solib_event_probe_at): Update.
9182 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9183 get_probe_address.
9184 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9185 (stap_get_probe_address): New function.
9186 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9187 (compile_probe_arg): Update.
9188 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9189 address.
9190 (handle_stap_probe): Don't relocate the probe.
9191 (stap_relocate): Remove.
9192 (stap_gen_info_probes_table_values): Update.
9193 (stap_probe_ops): Remove stap_relocate.
9194 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9195 (debug_sym_probe_fns): Update.
9196 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9197 * symtab.c (init_sal): Use memset.
9198 * symtab.h (struct symtab_and_line) <objfile>: New field.
9199 * tracepoint.c (start_tracing, stop_tracing): Update.
9200
ff887920
TT
92012014-03-03 Tom Tromey <tromey@redhat.com>
9202
9203 * probe.h (parse_probes, find_probe_by_pc)
9204 (find_probes_in_objfile): Fix comments.
9205
f0407826
DE
92062014-03-02 Doug Evans <xdje42@gmail.com>
9207
9208 * infrun.c (handle_signal_stop): Replace test for
9209 TARGET_WAITKIND_STOPPED with an assert.
9210
35e6a711
DE
92112014-03-02 Doug Evans <xdje42@gmail.com>
9212
9213 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9214
667f9d0b
DE
92152014-03-02 Doug Evans <xdje42@gmail.com>
9216
9217 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9218
dc92ace0
MK
92192014-03-01 Mark Kettenis <kettenis@gnu.org>
9220
9221 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9222
a900370f
MK
92232014-03-01 Mark Kettenis <kettenis@gnu.org>
9224
9225 * i386obsd-nat.c: Include "obsd-nat.h".
9226 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9227 add_target.
9228 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9229
b72a7981
MK
92302014-03-01 Mark Kettenis <kettenis@gnu.org>
9231
9232 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9233
96c70aba
MK
92342014-03-01 Mark Kettenis <kettenis@gnu.org>
9235
9236 * mips64obsd-nat.c: Include "obsd-nath".
9237 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9238 add_target
9239 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9240
874a80af
MK
92412014-03-01 Mark Kettenis <kettenis@gnu.org>
9242
8fd408f1
MK
9243 * amd64obsd-nat.c: Include "obsd-nat,h.
9244 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9245 add_target.
874a80af
MK
9246 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9247
9cf95373
SC
92482014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9249
9250 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9251 (find_overload_match): Update call to find_oload_champ.
9252 (find_oload_champ_namespace_loop): Likewise
9253
863e4da4
MK
92542014-02-28 Mark Kettenis <kettenis@gnu.org>
9255
025cac40
MK
9256 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9257
1ed586ce
MK
9258 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9259 * config/sparc/obsd64.mh: New file.
9260 * sparc64obsd-nat.c: New file.
9261
863e4da4
MK
9262 * obsd-nat.h: New file.
9263 * obsd-nat.c: New file.
9264 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9265 (ALLDEPFILES): Add obsd-nat.c.
9266
89de4da4
TT
92672014-02-28 Tom Tromey <tromey@redhat.com>
9268
9269 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9270 * cli-out.h (cli_ui_out_impl): Now const.
9271 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9272 * ui-out.c (struct ui_out) <impl>: Now const.
9273 (default_ui_out_impl): Now const.
9274 (ui_out_new): Make 'impl' parameter const.
9275 * ui-out.h (ui_out_new): Update.
9276
c725e7b6
MK
92772014-02-27 Mark Kettenis <kettenis@gnu.org>
9278
9279 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9280
670b46b3
MK
92812014-02-27 Mark Kettenis <kettenis@gnu.org>
9282
9283 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9284
c91550fc
JK
92852014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9286
9287 Additional PR 8882 fix.
9288 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9289
2fa0369e
PA
92902014-02-27 Pedro Alves <palves@redhat.com>
9291
9292 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9293 isn't set.
9294
d632a097
PA
92952014-02-27 Pedro Alves <palves@redhat.com>
9296
9297 PR 12702
9298 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9299 * nat/linux-waitpid.c: Include string.h.
9300 (status_to_str): Moved here and made extern.
9301 * nat/linux-waitpid.h (status_to_str): New declaration.
9302
2ebd5a35
HZ
93032014-02-27 Hui Zhu <hui@codesourcery.com>
9304
9305 PR 12702
9306 * infrun.c (ptid_match): Move ...
9307 * common/ptid.c (ptid_match): ... here.
9308 * inferior.h (ptid_match): Move ...
9309 * common/ptid.h (ptid_match): ... here.
9310
3cdd631f
MK
93112014-02-27 Mark Kettenis <kettenis@gnu.org>
9312
9313 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9314 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9315 gdb_target_obs.
9316
bee30a64
MK
93172014-02-27 Mark Kettenis <kettenis@gnu.org>
9318
9319 * obsd-tdep.c (obsd_auxv_parse): New function.
9320 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9321
9322 * gdbarch.sh (auxv_parse): New.
9323 * gdbarch.h: Regenerated.
9324 * gdbarch.c: Regenerated.
9325 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9326
7a5a839f
LC
93272014-02-26 Ludovic Courtès <ludo@gnu.org>
9328
9329 * guile/scm-value.c (gdbscm_history_append_x): New function.
9330 (value_functions): Add it.
9331
31aa7e4e
JB
93322014-02-27 Joel Brobecker <brobecker@adacore.com>
9333
9334 * dwarf2read.c (attr_value_as_address): New function.
9335 (dwarf2_find_base_address, read_call_site_scope): Use
9336 attr_value_as_address in place of DW_ADDR.
9337 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9338 the low and high addresses. Slight rework of the handling
9339 of the high pc being a constant form, and limit it to
9340 DWARF verson 4 or higher.
9341 (dwarf2_record_block_ranges): Likewise.
9342 (read_partial_die): Likewise.
9343 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9344
9b333ba3
TT
93452014-02-26 Tom Tromey <tromey@redhat.com>
9346
9347 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9348
5f6cac40
TT
93492014-02-26 Tom Tromey <tromey@redhat.com>
9350
9351 * elfread.c (elf_read_minimal_symbols): Return early if
9352 minimal symbols have already been read. Add "ei" parameter.
9353 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9354 * minsyms.c (prim_record_minimal_symbol_full): Update.
9355 * objfiles.h (struct objstats) <n_minsyms>: Move...
9356 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9357 * symmisc.c (print_objfile_statistics): Update.
9358
2750ef27
TT
93592014-02-26 Tom Tromey <tromey@redhat.com>
9360
9361 * elfread.c (elf_read_minimal_symbols): New function, from
9362 elf_symfile_read.
9363 (elf_symfile_read): Call it.
9364
34643a32
TT
93652014-02-26 Tom Tromey <tromey@redhat.com>
9366
9367 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9368 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9369 (lookup_minimal_symbol_solib_trampoline)
9370 (lookup_minimal_symbol_by_pc_section_1)
9371 (lookup_minimal_symbol_and_objfile): Update.
9372 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9373 Don't allocate a minimal symbol if minsyms have already been read.
9374 (build_minimal_symbol_hash_tables): Update.
9375 (install_minimal_symbols): Do nothing if minsyms already read.
9376 Use the per-BFD obstack.
9377 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9378 * objfiles.c (allocate_objfile): Call
9379 terminate_minimal_symbol_table later.
9380 (have_minimal_symbols): Update.
9381 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9382 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9383 Move from struct objfile.
9384 <minsyms_read>: New field.
9385 (struct objfile) <msymbols, minimal_symbol_count,
9386 msymbol_hash, msymbol_demangled_hash>: Move.
9387 (ALL_OBJFILE_MSYMBOLS): Update.
9388 * symfile.c (read_symbols): Set minsyms_read.
9389 (reread_symbols): Update.
9390 * symmisc.c (dump_objfile, dump_msymbols): Update.
9391
2273f0ac
TT
93922014-02-26 Tom Tromey <tromey@redhat.com>
9393
9394 * minsyms.c (msymbols_sort): Remove.
9395 * minsyms.h (msymbols_sort): Remove.
9396 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9397 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9398 * elfread.c (elf_symtab_read): Don't add section offsets.
9399 * xcoffread.c (record_minimal_symbol): Don't add section offset
9400 to minimal symbol address.
9401 * somread.c (text_offset, data_offset): Remove.
9402 (som_symtab_read): Don't add section offsets to minimal symbol
9403 addresses.
9404 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9405 Don't add section offsets to minimal symbols.
9406 * coffread.c (coff_symtab_read): Don't add section offsets
9407 to minimal symbol addresses.
9408 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9409 to minimal symbol addresses.
9410 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9411 section offset to minimal symbol addresses.
9412 * mdebugread.c (parse_partial_symbols): Don't add section
9413 offset to minimal symbol addresses.
9414 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9415 offset to minimal symbol addresses.
9416
77e371c0
TT
94172014-02-26 Tom Tromey <tromey@redhat.com>
9418
9419 * ada-lang.c (ada_main_name): Update.
9420 (ada_add_standard_exceptions): Update.
9421 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9422 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9423 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9424 * auxv.c (ld_so_xfer_auxv): Update.
9425 * avr-tdep.c (avr_scan_prologue): Update.
9426 * ax-gdb.c (gen_var_ref): Update.
9427 * blockframe.c (get_pc_function_start)
9428 (find_pc_partial_function_gnu_ifunc): Update.
9429 * breakpoint.c (create_overlay_event_breakpoint)
9430 (create_longjmp_master_breakpoint)
9431 (create_std_terminate_master_breakpoint)
9432 (create_exception_master_breakpoint): Update.
9433 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9434 * c-valprint.c (c_val_print): Update.
9435 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9436 * common/agent.c (agent_look_up_symbols): Update.
9437 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9438 * dwarf2loc.c (call_site_to_target_addr): Update.
9439 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9440 * elfread.c (elf_gnu_ifunc_record_cache)
9441 (elf_gnu_ifunc_resolve_by_got): Update.
9442 * findvar.c (default_read_var_value): Update.
9443 * frame.c (inside_main_func): Update.
9444 * frv-tdep.c (frv_frame_this_id): Update.
9445 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9446 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9447 Update.
9448 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9449 (hppa_hpux_find_dummy_bpaddr): Update.
9450 * hppa-tdep.c (hppa_symbol_address): Update.
9451 * infcmd.c (until_next_command): Update.
9452 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9453 Update.
9454 * linespec.c (minsym_found, add_minsym): Update.
9455 * linux-nat.c (get_signo): Update.
9456 * linux-thread-db.c (inferior_has_bug): Update.
9457 * m32c-tdep.c (m32c_return_value)
9458 (m32c_m16c_address_to_pointer): Update.
9459 * m32r-tdep.c (m32r_frame_this_id): Update.
9460 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9461 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9462 * maint.c (maintenance_translate_address): Update.
9463 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9464 (frob_address): New function.
9465 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9466 frob_address. Rename parameter to "pc_in".
9467 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9468 addresses.
9469 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9470 Update.
9471 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9472 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9473 * objc-lang.c (find_objc_msgsend): Update.
9474 * objfiles.c (objfile_relocate1): Update.
9475 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9476 * p-valprint.c (pascal_val_print): Update.
9477 * parse.c (write_exp_msymbol): Update.
9478 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9479 (ppc_elfv2_skip_entrypoint): Update.
9480 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9481 * printcmd.c (build_address_symbolic, msym_info)
9482 (address_info): Update.
9483 * proc-service.c (ps_pglobal_lookup): Update.
9484 * psymtab.c (find_pc_sect_psymtab_closer)
9485 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9486 Change msymbol parameter to bound_minimal_symbol.
9487 * ravenscar-thread.c (get_running_thread_id): Update.
9488 * remote.c (remote_check_symbols): Update.
9489 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9490 address.
9491 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9492 * solib-dsbt.c (lm_base): Update.
9493 * solib-frv.c (lm_base, main_got): Update.
9494 * solib-irix.c (locate_base): Update.
9495 * solib-som.c (som_solib_create_inferior_hook)
9496 (link_map_start): Update.
9497 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9498 * solib-svr4.c (elf_locate_base, enable_break): Update.
9499 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9500 (flush_ea_cache): Update.
9501 * stabsread.c (define_symbol, scan_file_globals): Update.
9502 * stack.c (find_frame_funname): Update.
9503 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9504 (debug_qf_find_pc_sect_symtab): Update.
9505 * symfile.c (simple_read_overlay_table)
9506 (simple_overlay_update): Update.
9507 * symfile.h (struct quick_symbol_functions)
9508 <find_pc_sect_symtab>: Change type of msymbol to
9509 bound_minimal_symbol.
9510 * symmisc.c (dump_msymbols): Update.
9511 * symtab.c (find_pc_sect_symtab_via_partial)
9512 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9513 (search_symbols, print_msymbol_info): Update.
9514 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9515 (MSYMBOL_VALUE_ADDRESS): Redefine.
9516 (BMSYMBOL_VALUE_ADDRESS): New macro.
9517 * tracepoint.c (scope_info): Update.
9518 * tui/tui-disasm.c (tui_find_disassembly_address)
9519 (tui_get_begin_asm_address): Update.
9520 * valops.c (find_function_in_inferior): Update.
9521 * value.c (value_static_field, value_fn_field): Update.
9522
3b7344d5
TT
95232014-02-26 Tom Tromey <tromey@redhat.com>
9524
9525 * ada-lang.c (ada_update_initial_language): Update.
9526 (ada_main_name, ada_has_this_exception_support): Update.
9527 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9528 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9529 * arm-tdep.c (arm_skip_stub): Update.
9530 * auxv.c (ld_so_xfer_auxv): Update.
9531 * avr-tdep.c (avr_scan_prologue): Update.
9532 * ax-gdb.c (gen_var_ref): Update.
9533 * breakpoint.c (struct breakpoint_objfile_data)
9534 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9535 type to bound_minimal_symbol.
9536 (create_overlay_event_breakpoint)
9537 (create_longjmp_master_breakpoint)
9538 (create_std_terminate_master_breakpoint)
9539 (create_exception_master_breakpoint): Update.
9540 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9541 * c-exp.y (classify_name): Update.
9542 * coffread.c (coff_symfile_read): Update.
9543 * common/agent.c (agent_look_up_symbols): Update.
9544 * d-lang.c (d_main_name): Update.
9545 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9546 * dec-thread.c (enable_dec_thread): Update.
9547 * dwarf2loc.c (call_site_to_target_addr): Update.
9548 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9549 * eval.c (evaluate_subexp_standard): Update.
9550 * findvar.c (struct minsym_lookup_data) <result>: Change type
9551 to bound_minimal_symbol.
9552 <objfile>: Remove.
9553 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9554 * frame.c (inside_main_func): Update.
9555 * frv-tdep.c (frv_frame_this_id): Update.
9556 * gcore.c (call_target_sbrk): Update.
9557 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9558 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9559 Update.
9560 * go-lang.c (go_main_name): Update.
9561 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9562 (hppa_hpux_find_import_stub_for_addr): Update.
9563 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9564 Update. Change return type.
9565 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9566 type.
9567 * jit.c (jit_breakpoint_re_set_internal): Update.
9568 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9569 Update.
9570 * linux-nat.c (get_signo): Update.
9571 * linux-thread-db.c (inferior_has_bug): Update
9572 * m32c-tdep.c (m32c_return_value)
9573 (m32c_m16c_address_to_pointer): Update.
9574 * m32r-tdep.c (m32r_frame_this_id): Update.
9575 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9576 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9577 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9578 lookup_minimal_symbol. Change return type.
9579 (lookup_minimal_symbol): Remove.
9580 (lookup_bound_minimal_symbol): Update.
9581 (lookup_minimal_symbol_text): Change return type.
9582 (lookup_minimal_symbol_solib_trampoline): Change return type.
9583 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9584 (lookup_minimal_symbol_solib_trampoline): Change return type.
9585 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9586 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9587 (value_nsstring, find_imps): Update.
9588 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9589 * p-lang.c (pascal_main_name): Update.
9590 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9591 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9592 * proc-service.c (ps_pglobal_lookup): Update.
9593 * ravenscar-thread.c (get_running_thread_msymbol): Change
9594 return type.
9595 (has_ravenscar_runtime, get_running_thread_id): Update.
9596 * remote.c (remote_check_symbols): Update.
9597 * sol-thread.c (ps_pglobal_lookup): Update.
9598 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9599 * solib-dsbt.c (lm_base): Update.
9600 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9601 Update.
9602 * solib-irix.c (locate_base): Update.
9603 * solib-som.c (som_solib_create_inferior_hook)
9604 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9605 Update.
9606 * solib-spu.c (spu_enable_break): Update.
9607 * solib-svr4.c (elf_locate_base, enable_break): Update.
9608 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9609 (flush_ea_cache): Update.
9610 * stabsread.c (define_symbol): Update.
9611 * symfile.c (simple_read_overlay_table): Update.
9612 * symtab.c (find_pc_sect_line): Update.
9613 * tracepoint.c (scope_info): Update.
9614 * tui-disasm.c (tui_get_begin_asm_address): Update.
9615 * value.c (value_static_field): Update.
9616
40c1a007
TT
96172014-02-26 Tom Tromey <tromey@redhat.com>
9618
9619 * minsyms.c (prim_record_minimal_symbol_full): Use
9620 SET_MSYMBOL_VALUE_ADDRESS.
9621 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9622 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9623 SET_MSYMBOL_VALUE_ADDRESS.
9624 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9625 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9626
efd66ac6
TT
96272014-02-26 Tom Tromey <tromey@redhat.com>
9628
9629 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9630 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9631 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9632 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9633 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9634 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9635 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9636 * ada-lang.c (ada_main_name): Update.
9637 (ada_lookup_simple_minsym): Update.
9638 (ada_make_symbol_completion_list): Update.
9639 (ada_add_standard_exceptions): Update.
9640 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9641 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9642 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9643 * arm-tdep.c (skip_prologue_function): Update.
9644 (arm_skip_stack_protector, arm_skip_stub): Update.
9645 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9646 (arm_wince_skip_main_prologue): Update.
9647 * auxv.c (ld_so_xfer_auxv): Update.
9648 * avr-tdep.c (avr_scan_prologue): Update.
9649 * ax-gdb.c (gen_var_ref): Update.
9650 * block.c (call_site_for_pc): Update.
9651 * blockframe.c (get_pc_function_start): Update.
9652 (find_pc_partial_function_gnu_ifunc): Update.
9653 * breakpoint.c (create_overlay_event_breakpoint): Update.
9654 (create_longjmp_master_breakpoint): Update.
9655 (create_std_terminate_master_breakpoint): Update.
9656 (create_exception_master_breakpoint): Update.
9657 (resolve_sal_pc): Update.
9658 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9659 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9660 Update.
9661 * c-valprint.c (c_val_print): Update.
9662 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9663 * coffread.c (coff_symfile_read): Update.
9664 * common/agent.c (agent_look_up_symbols): Update.
9665 * dbxread.c (find_stab_function_addr): Update.
9666 (end_psymtab): Update.
9667 * dwarf2loc.c (call_site_to_target_addr): Update.
9668 (func_verify_no_selftailcall): Update.
9669 (tailcall_dump): Update.
9670 (call_site_find_chain_1): Update.
9671 (dwarf_expr_reg_to_entry_parameter): Update.
9672 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9673 (elf_gnu_ifunc_resolve_by_got): Update.
9674 * f-valprint.c (info_common_command): Update.
9675 * findvar.c (read_var_value): Update.
9676 * frame.c (get_prev_frame_1): Update.
9677 (inside_main_func): Update.
9678 * frv-tdep.c (frv_skip_main_prologue): Update.
9679 (frv_frame_this_id): Update.
9680 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9681 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9682 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9683 (gnuv3_skip_trampoline): Update.
9684 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9685 (hppa64_hpux_in_solib_call_trampoline): Update.
9686 (hppa_hpux_skip_trampoline_code): Update.
9687 (hppa64_hpux_search_dummy_call_sequence): Update.
9688 (hppa_hpux_find_import_stub_for_addr): Update.
9689 (hppa_hpux_find_dummy_bpaddr): Update.
9690 * hppa-tdep.c (hppa_symbol_address)
9691 (hppa_lookup_stub_minimal_symbol): Update.
9692 * i386-tdep.c (i386_skip_main_prologue): Update.
9693 (i386_pe_skip_trampoline_code): Update.
9694 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9695 * infcall.c (get_function_name): Update.
9696 * infcmd.c (until_next_command): Update.
9697 * jit.c (jit_breakpoint_re_set_internal): Update.
9698 (jit_inferior_init): Update.
9699 * linespec.c (minsym_found): Update.
9700 (add_minsym): Update.
9701 * linux-fork.c (info_checkpoints_command): Update.
9702 * linux-nat.c (get_signo): Update.
9703 * linux-thread-db.c (inferior_has_bug): Update.
9704 * m32c-tdep.c (m32c_return_value): Update.
9705 (m32c_m16c_address_to_pointer): Update.
9706 (m32c_m16c_pointer_to_address): Update.
9707 * m32r-tdep.c (m32r_frame_this_id): Update.
9708 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9709 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9710 * maint.c (maintenance_translate_address): Update.
9711 * minsyms.c (add_minsym_to_hash_table): Update.
9712 (add_minsym_to_demangled_hash_table): Update.
9713 (msymbol_objfile): Update.
9714 (lookup_minimal_symbol): Update.
9715 (iterate_over_minimal_symbols): Update.
9716 (lookup_minimal_symbol_text): Update.
9717 (lookup_minimal_symbol_by_pc_name): Update.
9718 (lookup_minimal_symbol_solib_trampoline): Update.
9719 (lookup_minimal_symbol_by_pc_section_1): Update.
9720 (lookup_minimal_symbol_and_objfile): Update.
9721 (prim_record_minimal_symbol_full): Update.
9722 (compare_minimal_symbols): Update.
9723 (compact_minimal_symbols): Update.
9724 (build_minimal_symbol_hash_tables): Update.
9725 (install_minimal_symbols): Update.
9726 (terminate_minimal_symbol_table): Update.
9727 (find_solib_trampoline_target): Update.
9728 (minimal_symbol_upper_bound): Update.
9729 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9730 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9731 (mips_skip_pic_trampoline_code): Update.
9732 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9733 * objc-lang.c (selectors_info): Update.
9734 (classes_info): Update.
9735 (find_methods): Update.
9736 (find_imps): Update.
9737 (find_objc_msgsend): Update.
9738 * objfiles.c (objfile_relocate1): Update.
9739 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9740 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9741 * p-valprint.c (pascal_val_print): Update.
9742 * parse.c (write_exp_msymbol): Update.
9743 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9744 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9745 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9746 * printcmd.c (build_address_symbolic): Update.
9747 (sym_info): Update.
9748 (address_info): Update.
9749 * proc-service.c (ps_pglobal_lookup): Update.
9750 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9751 (find_pc_sect_psymtab): Update.
9752 * python/py-framefilter.c (py_print_frame): Update.
9753 * ravenscar-thread.c (get_running_thread_id): Update.
9754 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9755 Update.
9756 * remote.c (remote_check_symbols): Update.
9757 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9758 (rs6000_skip_trampoline_code): Update.
9759 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9760 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9761 * solib-dsbt.c (lm_base): Update.
9762 * solib-frv.c (lm_base): Update.
9763 (main_got): Update.
9764 * solib-irix.c (locate_base): Update.
9765 * solib-som.c (som_solib_create_inferior_hook): Update.
9766 (som_solib_desire_dynamic_linker_symbols): Update.
9767 (link_map_start): Update.
9768 * solib-spu.c (spu_enable_break): Update.
9769 (ocl_enable_break): Update.
9770 * solib-svr4.c (elf_locate_base): Update.
9771 (enable_break): Update.
9772 * spu-tdep.c (spu_get_overlay_table): Update.
9773 (spu_catch_start): Update.
9774 (flush_ea_cache): Update.
9775 * stabsread.c (define_symbol): Update.
9776 (scan_file_globals): Update.
9777 * stack.c (find_frame_funname): Update.
9778 (frame_info): Update.
9779 * symfile.c (simple_read_overlay_table): Update.
9780 (simple_overlay_update): Update.
9781 * symmisc.c (dump_msymbols): Update.
9782 * symtab.c (fixup_section): Update.
9783 (find_pc_sect_line): Update.
9784 (skip_prologue_sal): Update.
9785 (search_symbols): Update.
9786 (print_msymbol_info): Update.
9787 (rbreak_command): Update.
9788 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9789 (completion_list_objc_symbol): Update.
9790 (default_make_symbol_completion_list_break_on): Update.
9791 * tracepoint.c (scope_info): Update.
9792 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9793 (tui_get_begin_asm_address): Update.
9794 * valops.c (find_function_in_inferior): Update.
9795 * value.c (value_static_field): Update.
9796 (value_fn_field): Update.
9797
50e65b17
TT
97982014-02-26 Tom Tromey <tromey@redhat.com>
9799
9800 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9801 bound minimal symbols. Move code that knows about minsym
9802 table layout...
9803 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9804 function.
9805 * minsyms.h (minimal_symbol_upper_bound): Declare.
9806 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9807 minimal_symbol_upper_bound.
9808
1b588015
JB
98092014-02-27 Joel Brobecker <brobecker@adacore.com>
9810
9811 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9812 Use the type's name if its basic type does not have a tag.
9813
dbb9c2b1
JB
98142014-02-27 Joel Brobecker <brobecker@adacore.com>
9815
9816 * dwarf2read.c (read_subrange_type): Add comment.
9817
55426c9d
JB
98182014-02-27 Joel Brobecker <brobecker@adacore.com>
9819
9820 * dwarf2read.c (update_enumeration_type_from_children): New
9821 function, mostly extracted from process_structure_scope.
9822 (read_enumeration_type): Call update_enumeration_type_from_children.
9823 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9824 and flag_flag_enum fields.
9825
f2fce0ca
PA
98262014-02-26 Pedro Alves <palves@redhat.com>
9827
9828 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9829 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9830 to_xfer_partial method.
9831
7a44e40e
PA
98322014-02-26 Pedro Alves <palves@redhat.com>
9833
9834 * target.c (complete_target_initialization): Don't install
9835 default_xfer_partial as to_xfer_partial hook.
9836 (nomemory): Delete.
9837 (update_current_target): Don't INHERIT nor de_fault
9838 deprecated_xfer_memory. Delete de_fault macro.
9839 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9840 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9841 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9842 field.
9843
bd265cd0
PA
98442014-02-26 Pedro Alves <palves@redhat.com>
9845
9846 * go32-nat.c (my_write_child): New function.
9847 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9848 (go32_xfer_partial): New function.
9849 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9850 Instead install a to_xfer_partial hook.
9851
9d46c4e5
PA
98522014-02-26 Pedro Alves <palves@redhat.com>
9853
9854 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9855 to_xfer_partial helper. Rewrite.
9856 (procfs_xfer_partial): New function.
9857 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9858 Install a to_xfer_partial hook.
9859
a1583b1f
PA
98602014-02-26 Pedro Alves <palves@redhat.com>
9861
9862 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9863 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9864 (m32r_xfer_partial): New function.
9865 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9866 Install a to_xfer_partial hook.
9867
6df1b29f
PA
98682014-02-26 Pedro Alves <palves@redhat.com>
9869
9870 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9871 helper.
9872 (mips_xfer_partial): New function.
9873 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9874 hook. Install a to_xfer_partial hook.
9875
dc53a7ad
JB
98762014-02-26 Joel Brobecker <brobecker@adacore.com>
9877
9878 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9879 * gdbtypes.c (create_array_type_with_stride): New function,
9880 renaming create_array_type, but with an added parameter
9881 called "bit_stride".
9882 (create_array_type): Re-implement using
9883 create_array_type_with_stride.
9884 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9885 and DW_AT_bit_stride attributes.
9886
12ab52e9
PA
98872014-02-26 Pedro Alves <palves@redhat.com>
9888
9889 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9890 task-specific breakpoints.
9891
d16461ae
PA
98922014-02-25 Pedro Alves <palves@redhat.com>
9893
9894 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9895 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9896
a8b16220
SS
98972014-02-25 Stan Shebs <stan@codesourcery.com>
9898
9899 * defs.h: Annotate comments for Doxygen.
9900
b9e795ee
TT
99012014-02-25 Tom Tromey <tromey@redhat.com>
9902
9903 * target.h (target_ignore): Don't declare.
9904 * target.c (target_ignore): Remove.
9905
849c862e
JK
99062014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9907
9908 PR gdb/16626
9909 * auto-load.c (auto_load_objfile_script_1): Change filename to
9910 debugfile.
9911
475109d8
JB
99122014-02-25 Joel Brobecker <brobecker@adacore.com>
9913
9914 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9915 documentation. Adjust prototype to match the target_ops
9916 to_xfer_partial method. Adjust implementation accordingly.
9917
e186c3bd
HZ
99182014-02-25 Hui Zhu <hui@codesourcery.com>
9919
9920 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9921 to_traceframe_info.
9922
6d451942
KB
99232014-02-25 Kevin Buettner <kevinb@redhat.com>
9924
041ab8b4 9925 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9926 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9927 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9928 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9929 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9930 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9931 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9932 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9933 New constants.
9934 (rl78_register_type): Use a data pointer type for SP and
9935 new pseudo registers mentioned above. Use a 16 bit integer
9936 type for all other register pairs.
9937 (rl78_register_name, rl78_g10_register_name): Update for
9938 new pseudo registers.
9939 (rl78_pseudo_register_read): Likewise.
9940 (rl78_pseudo_register_write): Likewise.
9941 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9942 to the newly added pseudo registers.
9943
eddf0bae
DE
99442014-02-24 Doug Evans <dje@google.com>
9945
9946 * value.c (record_latest_value): Fix comment.
9947 * printcmd.c (print_command_1): Remove code to handle -1 return from
9948 record_latest_value.
9949
e96027e0
PA
99502014-02-24 Pedro Alves <palves@redhat.com>
9951
9952 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9953 deprecated_xfer_memory hook.
9954 (procfs_xfer_partial): Call procfs_xfer_memory instead
9955 of the deprecated_xfer_memory target hook.
9956 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9957 helper.
9958
0837c976
YZ
99592014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9960
9961 * windows-nat.c (windows_xfer_shared_libraries): Return
9962 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9963 requested object is TARGET_OBJECT_LIBRARIES.
9964
bc113b4e
YQ
99652014-02-24 Yao Qi <yao@codesourcery.com>
9966
9967 * target.h (enum target_xfer_status)
9968 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9969 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9970 explicitly. New.
9971 * corefile.c (memory_error_message): User updated.
9972 * exec.c (section_table_read_available_memory): Likewise.
9973 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9974 * target.c (target_xfer_status_to_string): Likewise.
9975 (raw_memory_xfer_partial): Likewise.
9976 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9977 * valops.c (read_value_memory): Likewise.
9978 * exec.h: Update comments.
9979
01cb8804
YQ
99802014-02-24 Yao Qi <yao@codesourcery.com>
9981
9982 * target.c (target_xfer_status_to_string): Rename argument err
9983 to status.
9984 * target.h (target_xfer_status_to_string): Update declaration.
9985 Replace target_xfer_error_to_string with
9986 target_xfer_status_to_string in comment.
9987
93063aa6
YQ
99882014-02-24 Yao Qi <yao@codesourcery.com>
9989
9990 * mips-linux-nat.c (super_close): Update its type.
9991 (mips_linux_close): Pass 'self' to super_close.
9992
5c328c05
YQ
99932014-02-24 Yao Qi <yao@codesourcery.com>
9994
9995 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9996 * corefile.c (read_memory): Adjusted.
9997 * target.c (target_write_with_progress): Adjusted.
9998
f73023dd
YQ
99992014-02-23 Yao Qi <yao@codesourcery.com>
10000
10001 Revert two patches:
10002
10003 2013-10-25 Yao Qi <yao@codesourcery.com>
10004
10005 * remote.c (remote_traceframe_info): Return early if
10006 traceframe is not selected.
10007
10008 2013-07-19 Yao Qi <yao@codesourcery.com>
10009
10010 * target.c (update_current_target): Change the default action
10011 of 'to_traceframe_info' from tcomplain to return_zero.
10012 * target.h (struct target_ops) <to_traceframe_info>: Add more
10013 comments.
10014
5a2eb0ef
YQ
100152014-02-23 Yao Qi <yao@codesourcery.com>
10016
10017 * valops.c (read_value_memory): Rewrite it. Call
10018 target_xfer_partial in a loop.
10019 * exec.h (section_table_available_memory): Remove declaration.
10020 Move comments to ...
10021 * exec.c (section_table_available_memory): ... here. Make it
10022 static.
10023
1ee79381
YQ
100242014-02-23 Yao Qi <yao@codesourcery.com>
10025
10026 * exec.c (section_table_read_available_memory): New function.
10027 * exec.h (section_table_read_available_memory): Declare.
10028 * ctf.c (ctf_xfer_partial): Call
10029 section_table_read_available_memory.
10030 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10031
1ca49d37
YQ
100322014-02-23 Yao Qi <yao@codesourcery.com>
10033
10034 * ctf.c (ctf_xfer_partial): Move code to ...
10035 * exec.c (exec_read_partial_read_only): ... it. New function.
10036 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10037 * tracefile.c: Include "exec.h".
10038 * exec.h (exec_read_partial_read_only): Declare.
10039
a283690e
YQ
100402014-02-23 Yao Qi <yao@codesourcery.com>
10041
10042 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10043 (tfile_has_memory): Remove.
10044 (init_tfile_ops): Don't set fields to_has_all_memory and
10045 to_has_memory of tfile_ops.
10046 * tracefile.c (tracefile_has_all_memory): New function.
10047 (tracefile_has_memory): New function.
10048 (init_tracefile_ops): Initialize fields to_has_all_memory and
10049 to_has_memory of 'ops'.
10050
12e03cd0
YQ
100512014-02-23 Yao Qi <yao@codesourcery.com>
10052
10053 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10054 (ctf_thread_alive, ctf_get_trace_status): Remove.
10055 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10056 init_tracefile_ops.
10057 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10058 (tfile_has_stack, tfile_has_registers): Remove.
10059 (tfile_thread_alive): Remove.
10060 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10061 init_tracefile_ops.
10062 * tracefile.c (tracefile_has_stack): New function.
10063 (tracefile_has_registers): New function.
10064 (tracefile_thread_alive): New function.
10065 (tracefile_get_trace_status): New function.
10066 (init_tracefile_ops): New function.
10067 * tracefile.h (init_tracefile_ops): Declare.
10068
11395323
YQ
100692014-02-23 Yao Qi <yao@codesourcery.com>
10070
10071 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10072 (O_LARGEFILE): Likewise.
10073 (tfile_ops): Likewise.
10074 (TRACE_HEADER_SIZE): Likewise.
10075 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10076 (cur_data_size): Likewise.
10077 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10078 (tfile_close, tfile_files_info): Likewise.
10079 (tfile_get_trace_status): Likewise.
10080 (tfile_get_tracepoint_status): Likewise.
10081 (tfile_get_traceframe_address): Likewise.
10082 (tfile_trace_find, match_blocktype): Likewise.
10083 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10084 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10085 (tfile_get_trace_state_variable_value): Likewise.
10086 (tfile_has_all_memory, tfile_has_memory): Likewise.
10087 (tfile_has_stack, tfile_has_registers): Likewise.
10088 (tfile_thread_alive, build_traceframe_info): Likewise.
10089 (tfile_traceframe_info, init_tfile_ops): Likewise.
10090 (_initialize_tracepoint): Don't call init_tfile_ops
10091 and add_target_with_completer.
10092 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10093 exec.h, completer.h and filenames.h.
10094 (_initialize_tracefile_tfile): New function.
10095
7951c4eb
YQ
100962014-02-23 Yao Qi <yao@codesourcery.com>
10097
10098 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10099 tracefile-tfile.o.
10100 (HFILES_NO_SRCDIR): Add tracefile.h.
10101 * ctf.c: Include "tracefile.h".
10102 * tracefile.h: New file.
10103 * tracefile.c: New file
10104 * tracefile-tfile.c: New file.
10105 * tracepoint.c: Include "tracefile.h".
10106 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10107 (stop_reason_names): Add const.
10108 (trace_file_writer_xfree): Move it to tracefile.c.
10109 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10110 (trace_save_ctf): Likewise.
10111 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10112 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10113 (tfile_write_header, tfile_write_regblock_type): Likewise.
10114 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10115 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10116 (tfile_write_raw_data, tfile_end): Likewise.
10117 (tfile_trace_file_writer_new): Likewise.
10118 (free_uploaded_tp): Make it extern.
10119 (free_uploaded_tsv): Make it extern.
10120 (_initialize_tracepoint): Move code to register command 'tsave'
10121 to tracefile.c.
10122 * tracepoint.h (stop_reason_names): Declare.
10123 (struct trace_frame_write_ops): Move it to tracefile.h.
10124 (struct trace_file_write_ops): Likewise.
10125 (struct trace_file_writer): Likewise.
10126 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10127
184cd072
JK
101282014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10129
10130 PR gdb/16594
10131 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10132 process name.
10133 (get_cores_used_by_process): New parameter num_cores, use it.
10134 (linux_xfer_osdata_processes): Pass num_cores to it.
10135 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10136 process name.
10137
c63528fc
AK
101382014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10139
10140 * target.c (memory_xfer_partial): Fix length arg in call to
10141 breakpoint_xfer_memory.
10142
d7b30f67
SDJ
101432014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10144
10145 PR tdep/16397
10146 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10147 number comes after the + or - signs. Adjust length of register
10148 name to be extracted.
10149
8838afaf
TT
101502014-02-20 Tom Tromey <tromey@redhat.com>
10151
10152 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10153 (ada_varobj_ops): Mark "extern".
10154
05227d14
TT
101552014-02-20 Tom Tromey <tromey@redhat.com>
10156
10157 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10158
1254eefc
DE
101592014-02-20 Doug Evans <xdje42@gmail.com>
10160
10161 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10162 All callers updated.
10163 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10164 All callers updated.
10165 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10166 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10167
adde2bff
DE
101682014-02-20 lin zuojian <manjian2006@gmail.com>
10169 Joel Brobecker <brobecker@adacore.com>
10170 Doug Evans <xdje42@gmail.com>
10171
10172 PR symtab/16581
10173 * dwarf2read.c (struct die_info): New member in_process.
10174 (reset_die_in_process): New function.
10175 (process_die): Set it at the start, reset when returning.
10176 (inherit_abstract_dies): Only call process_die if origin_child_die
10177 not already being processed.
10178
3be75f87
JB
101792014-02-20 Joel Brobecker <brobecker@adacore.com>
10180
10181 * windows-nat.c (handle_unload_dll): Add function documentation.
10182 (do_initial_windows_stuff): Add comment explaining why we wait
10183 until after inferior initialization has finished before
10184 processing all DLLs.
10185
47f7ffdb
JB
101862014-02-20 Joel Brobecker <brobecker@adacore.com>
10187
10188 * windows-nat.c (get_module_name): Delete.
10189 (windows_get_exec_module_filename): New function, mostly
10190 inspired from get_module_name.
10191 (windows_pid_to_exec_file): Replace call to get_module_name
10192 by call to windows_get_exec_module_filename.
10193
1cd9feab
JB
101942014-02-20 Joel Brobecker <brobecker@adacore.com>
10195
10196 * windows-nat.c (handle_load_dll): Rewrite this function's
10197 introductory comment. Remove code using get_module_name
10198 to get the DLL's name.
10199
ea39ad35
JB
102002014-02-20 Joel Brobecker <brobecker@adacore.com>
10201
10202 * windows-nat.c (get_windows_debug_event): Ignore
10203 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10204 if windows_initialization_done == 0.
10205 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10206 Adjust implementation to always load all DLLs.
10207 (do_initial_windows_stuff): Replace call to
10208 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10209
95060284
JB
102102014-02-20 Joel Brobecker <brobecker@adacore.com>
10211
10212 * windows-nat.c (_initialize_windows_nat): Deprecate the
10213 "dll-symbols" command. Turn the "add-shared-symbol-files"
10214 and "assf" aliases into commands, and deprecate them as well.
10215 * NEWS: Add entry explaining that "dll-symbols" and its two
10216 aliases are now deprecated.
10217
8d4fdb12
JB
102182014-02-20 Joel Brobecker <brobecker@adacore.com>
10219
10220 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10221 new-line in debug string. Remove trailing spaces.
10222
1b281443
SS
102232014-02-19 Stan Shebs <stan@codesourcery.com>
10224
10225 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10226
f7bd0f78
SC
102272014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10228
10229 * NEWS: Add entry for the new feature
10230 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10231 and class values.
10232
399ebc3d
SS
102332014-02-19 Stan Shebs <stan@codesourcery.com>
10234
10235 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10236
c658158d
PA
102372014-02-19 Pedro Alves <palves@redhat.com>
10238
10239 * common/ptid.h (struct ptid): Mention that process_stratum
10240 targets should prefer ptid.lwp.
10241
ba348170
PA
102422014-02-19 Pedro Alves <palves@redhat.com>
10243
10244 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10245 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10246 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10247 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10248 store remote thread ids rather than ptid.tid.
10249 (_initialize_remote): Adjust.
10250
ac01945b
TT
102512014-02-19 Tom Tromey <tromey@redhat.com>
10252
10253 * target.c (target_get_unwinder): Rewrite.
10254 (target_get_tailcall_unwinder): Rewrite.
10255 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10256 (record_btrace_to_get_tailcall_unwinder): New function.
10257 (init_record_btrace_ops): Update.
10258 * target.h (struct target_ops) <to_get_unwinder,
10259 to_get_tailcall_unwinder>: Now function pointers. Use
10260 TARGET_DEFAULT_RETURN.
10261
8476dc92
TT
102622014-02-19 Tom Tromey <tromey@redhat.com>
10263
10264 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10265 argument.
10266 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10267
c0eca49f
TT
102682014-02-19 Tom Tromey <tromey@redhat.com>
10269
10270 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10271 directly.
10272 * target-delegates.c: Rebuild.
10273 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10274 TARGET_DEFAULT_FUNC.
10275 * target.c (default_target_decr_pc_after_break): Rename from
10276 forward_target_decr_pc_after_break. Simplify.
10277 (target_decr_pc_after_break): Rely on delegation.
10278
596b6b39
TT
102792014-02-19 Tom Tromey <tromey@redhat.com>
10280
10281 * target.c (update_current_target): Do not INHERIT to_doc or
10282 to_magic. Do not de_fault to_open or to_close.
10283
b427c1bc
TT
102842014-02-19 Tom Tromey <tromey@redhat.com>
10285
10286 * gcore.h (objfile_find_memory_regions): Declare.
10287 * gcore.c (objfile_find_memory_regions): No longer static. Add
10288 "self" argument.
10289 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10290 * exec.c: Include gcore.h.
10291 (exec_set_find_memory_regions): Remove.
10292 (exec_find_memory_regions): Remove.
10293 (exec_do_find_memory_regions): Remove.
10294 (init_exec_ops): Update.
10295 * defs.h (exec_set_find_memory_regions): Remove.
10296
9b144037
TT
102972014-02-19 Tom Tromey <tromey@redhat.com>
10298
10299 * target-delegates.c: Rebuild.
10300 * target.h (struct target_ops) <to_extra_thread_info,
10301 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10302 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10303 not 0, in TARGET_DEFAULT_RETURN.
10304
555bbdeb
TT
103052014-02-19 Tom Tromey <tromey@redhat.com>
10306
10307 * target.c (complete_target_initialization): Remove casts. Use
10308 return_zero_has_execution.
10309 (return_zero): Add "ignore" argument.
10310 (return_zero_has_execution): New function.
10311 (init_dummy_target): Remove casts. Use
10312 return_zero_has_execution.
10313
be4ddd36
TT
103142014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * target.c (update_current_target): Update comments. Do not
10317 INHERIT to_stratum.
10318
2117c711
TT
103192014-02-19 Tom Tromey <tromey@redhat.com>
10320
10321 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10322 needed.
10323 * corelow.c (core_read_description): Delegate when needed.
10324 * remote.c (remote_read_description): Delegate when needed.
10325 * target-delegates.c: Rebuild.
10326 * target.c (target_read_description): Rewrite.
10327 * target.h (struct target_ops) <to_read_description>: Update
10328 comment. Use TARGET_DEFAULT_RETURN.
10329
e88ef65c
TT
103302014-02-19 Tom Tromey <tromey@redhat.com>
10331
10332 * target-delegates.c: Rebuild.
10333 * target.c (update_current_target): Don't inherit or default
10334 to_can_run.
10335 (find_default_run_target): Check against delegate_can_run.
10336 * target.h (struct target_ops) <to_can_run>: Use
10337 TARGET_DEFAULT_RETURN.
10338
86a0854a
TT
103392014-02-19 Tom Tromey <tromey@redhat.com>
10340
10341 * target-delegates.c: Rebuild.
10342 * target.c (target_disconnect): Unconditionally delegate.
10343 * target.h (struct target_ops) <to_disconnect>: Use
10344 TARGET_DEFAULT_NORETURN.
10345
ee97f592
TT
103462014-02-19 Tom Tromey <tromey@redhat.com>
10347
10348 * record.c (record_stop): Unconditionally delegate.
10349 * target-delegates.c: Rebuild.
10350 * target.c (target_stop_recording): Unconditionally delegate.
10351 * target.h (struct target_ops) <to_stop_recording>: Use
10352 TARGET_DEFAULT_IGNORE.
10353
6dc7fcf4
TT
103542014-02-19 Tom Tromey <tromey@redhat.com>
10355
10356 * target-delegates.c: Rebuild.
10357 * target.c (target_enable_btrace): Unconditionally delegate.
10358 * target.h (struct target_ops) <to_enable_btrace>: Use
10359 TARGET_DEFAULT_NORETURN.
10360
eb5b20d4
TT
103612014-02-19 Tom Tromey <tromey@redhat.com>
10362
10363 * target-delegates.c: Rebuild.
10364 * target.c (target_read_btrace): Unconditionally delegate.
10365 * target.h (struct target_ops) <to_read_btrace>: Use
10366 TARGET_DEFAULT_NORETURN.
10367
9ace480d
TT
103682014-02-19 Tom Tromey <tromey@redhat.com>
10369
10370 * target-delegates.c: Rebuild.
10371 * target.c (target_teardown_btrace): Unconditionally delegate.
10372 * target.h (struct target_ops) <to_teardown_btrace>: Use
10373 TARGET_DEFAULT_NORETURN.
10374
8dc292d3
TT
103752014-02-19 Tom Tromey <tromey@redhat.com>
10376
10377 * target-delegates.c: Rebuild.
10378 * target.c (target_disable_btrace): Unconditionally delegate.
10379 * target.h (struct target_ops) <to_disable_btrace>: Use
10380 TARGET_DEFAULT_NORETURN.
10381
58a5184e
TT
103822014-02-19 Tom Tromey <tromey@redhat.com>
10383
10384 * target-delegates.c: Rebuild.
10385 * target.c (default_search_memory): New function.
10386 (simple_search_memory): Update comment.
10387 (target_search_memory): Unconditionally delegate.
10388 * target.h (struct target_ops) <to_search_memory>: Use
10389 TARGET_DEFAULT_FUNC.
10390
8de71aab
TT
103912014-02-19 Tom Tromey <tromey@redhat.com>
10392
10393 * auxv.c (default_auxv_parse): No longer static.
10394 (target_auxv_parse): Unconditionally delegate.
10395 * auxv.h (default_auxv_parse): Declare.
10396 * target-delegates.c: Rebuild.
10397 * target.c: Include auxv.h.
10398 * target.h (struct target_ops) <to_auxv_parse>: Use
10399 TARGET_DEFAULT_FUNC.
10400
6b2c5a57
TT
104012014-02-19 Tom Tromey <tromey@redhat.com>
10402
10403 * target-delegates.c: Rebuild.
10404 * target.c (target_memory_map): Unconditionally delegate.
10405 * target.h (struct target_ops) <to_memory_map>: Use
10406 TARGET_DEFAULT_RETURN.
10407
cbffc065
TT
104082014-02-19 Tom Tromey <tromey@redhat.com>
10409
10410 * target-delegates.c: Rebuild.
10411 * target.c (target_thread_alive): Unconditionally delegate.
10412 * target.h (struct target_ops) <to_thread_alive>: Use
10413 TARGET_DEFAULT_RETURN.
10414
f09e2107
TT
104152014-02-19 Tom Tromey <tromey@redhat.com>
10416
10417 * target-delegates.c: Rebuild.
10418 * target.c (target_save_record): Unconditionally delegate.
10419 * target.h (struct target_ops) <to_save_record>: Use
10420 TARGET_DEFAULT_NORETURN.
10421
07366925
TT
104222014-02-19 Tom Tromey <tromey@redhat.com>
10423
10424 * target-delegates.c: Rebuild.
10425 * target.c (target_delete_record): Unconditionally delegate.
10426 * target.h (struct target_ops) <to_delete_record>: Use
10427 TARGET_DEFAULT_NORETURN.
10428
dd2e9d25
TT
104292014-02-19 Tom Tromey <tromey@redhat.com>
10430
10431 * target-delegates.c: Rebuild.
10432 * target.c (target_record_is_replaying): Unconditionally
10433 delegate.
10434 * target.h (struct target_ops) <to_record_is_replaying>: Use
10435 TARGET_DEFAULT_RETURN.
10436
671e76cc
TT
104372014-02-19 Tom Tromey <tromey@redhat.com>
10438
10439 * target-delegates.c: Rebuild.
10440 * target.c (target_goto_record_begin): Unconditionally delegate.
10441 * target.h (struct target_ops) <to_goto_record_begin>: Use
10442 TARGET_DEFAULT_NORETURN.
10443
e9179bb3
TT
104442014-02-19 Tom Tromey <tromey@redhat.com>
10445
10446 * target-delegates.c: Rebuild.
10447 * target.c (target_goto_record_end): Unconditionally delegate.
10448 * target.h (struct target_ops) <to_goto_record_end>: Use
10449 TARGET_DEFAULT_NORETURN.
10450
05969c84
TT
104512014-02-19 Tom Tromey <tromey@redhat.com>
10452
10453 * target-delegates.c: Rebuild.
10454 * target.c (target_goto_record): Unconditionally delegate.
10455 * target.h (struct target_ops) <to_goto_record>: Use
10456 TARGET_DEFAULT_NORETURN.
10457
3679abfa
TT
104582014-02-19 Tom Tromey <tromey@redhat.com>
10459
10460 * target-delegates.c: Rebuild.
10461 * target.c (target_insn_history): Unconditionally delegate.
10462 * target.h (struct target_ops) <to_insn_history>: Use
10463 TARGET_DEFAULT_NORETURN.
10464
8444ab58
TT
104652014-02-19 Tom Tromey <tromey@redhat.com>
10466
10467 * target-delegates.c: Rebuild.
10468 * target.c (target_insn_history_from): Unconditionally delegate.
10469 * target.h (struct target_ops) <to_insn_history_from>: Use
10470 TARGET_DEFAULT_NORETURN.
10471
c29302cc
TT
104722014-02-19 Tom Tromey <tromey@redhat.com>
10473
10474 * target-delegates.c: Rebuild.
10475 * target.c (target_insn_history_range): Unconditionally delegate.
10476 * target.h (struct target_ops) <to_insn_history_range>: Use
10477 TARGET_DEFAULT_NORETURN.
10478
170049d4
TT
104792014-02-19 Tom Tromey <tromey@redhat.com>
10480
10481 * target-delegates.c: Rebuild.
10482 * target.c (target_call_history): Unconditionally delegate.
10483 * target.h (struct target_ops) <to_call_history>: Use
10484 TARGET_DEFAULT_NORETURN.
10485
16fc27d6
TT
104862014-02-19 Tom Tromey <tromey@redhat.com>
10487
10488 * target-delegates.c: Rebuild.
10489 * target.c (target_call_history_from): Unconditionally delegate.
10490 * target.h (struct target_ops) <to_call_history_from>: Use
10491 TARGET_DEFAULT_NORETURN.
10492
115d9817
TT
104932014-02-19 Tom Tromey <tromey@redhat.com>
10494
10495 * target-delegates.c: Rebuild.
10496 * target.c (target_call_history_range): Unconditionally delegate.
10497 * target.h (struct target_ops) <to_call_history_range>: Use
10498 TARGET_DEFAULT_NORETURN.
10499
eb276a6b
TT
105002014-02-19 Tom Tromey <tromey@redhat.com>
10501
10502 * target-delegates.c: Rebuild.
10503 * target.c (target_verify_memory): Unconditionally delegate.
10504 * target.h (struct target_ops) <to_verify_memory>: Use
10505 TARGET_DEFAULT_NORETURN.
10506
9e538d0d
TT
105072014-02-19 Tom Tromey <tromey@redhat.com>
10508
10509 * target-delegates.c: Rebuild.
10510 * target.c (target_core_of_thread): Unconditionally delegate.
10511 * target.h (struct target_ops) <to_core_of_thread>: Use
10512 TARGET_DEFAULT_RETURN.
10513
f6fb2925
TT
105142014-02-19 Tom Tromey <tromey@redhat.com>
10515
10516 * target-delegates.c: Rebuild.
10517 * target.c (target_flash_done): Unconditionally delegate.
10518 * target.h (struct target_ops) <to_flash_done>: Use
10519 TARGET_DEFAULT_NORETURN.
10520
e8a6c6ac
TT
105212014-02-19 Tom Tromey <tromey@redhat.com>
10522
10523 * target-delegates.c: Rebuild.
10524 * target.c (target_flash_erase): Unconditionally delegate.
10525 * target.h (struct target_ops) <to_flash_erase>: Use
10526 TARGET_DEFAULT_NORETURN.
10527
7e35c012
TT
105282014-02-19 Tom Tromey <tromey@redhat.com>
10529
10530 * target-delegates.c: Rebuild.
10531 * target.c (target_get_section_table): Unconditionally delegate.
10532 * target.h (struct target_ops) <to_get_section_table>: Use
10533 TARGET_DEFAULT_RETURN.
10534
770234d3
TT
105352014-02-19 Tom Tromey <tromey@redhat.com>
10536
10537 * target-delegates.c: Rebuild.
10538 * target.c (target_pid_to_str): Unconditionally delegate.
10539 (init_dummy_target): Don't initialize to_pid_to_str.
10540 (default_pid_to_str): Rename from dummy_pid_to_str.
10541 * target.h (struct target_ops) <to_pid_to_str>: Use
10542 TARGET_DEFAULT_FUNC.
10543
09b0dc2b
TT
105442014-02-19 Tom Tromey <tromey@redhat.com>
10545
10546 * target-delegates.c: Rebuild.
10547 * target.c (target_find_new_threads): Unconditionally delegate.
10548 * target.h (struct target_ops) <to_find_new_threads>: Use
10549 TARGET_DEFAULT_RETURN.
10550
7d4f8efa
TT
105512014-02-19 Tom Tromey <tromey@redhat.com>
10552
10553 * target-delegates.c: Rebuild.
10554 * target.c (target_program_signals): Unconditionally delegate.
10555 * target.h (struct target_ops) <to_program_signals>: Use
10556 TARGET_DEFAULT_IGNORE.
10557
035cad7f
TT
105582014-02-19 Tom Tromey <tromey@redhat.com>
10559
10560 * target-delegates.c: Rebuild.
10561 * target.c (target_pass_signals): Unconditionally delegate.
10562 * target.h (struct target_ops) <to_pass_signals>: Use
10563 TARGET_DEFAULT_IGNORE.
10564
8d657035
TT
105652014-02-19 Tom Tromey <tromey@redhat.com>
10566
10567 * target-delegates.c: Rebuild.
10568 * target.c (default_mourn_inferior): New function.
10569 (target_mourn_inferior): Unconditionally delegate.
10570 * target.h (struct target_ops) <to_mourn_inferior>: Use
10571 TARGET_DEFAULT_FUNC.
10572
098dba18
TT
105732014-02-19 Tom Tromey <tromey@redhat.com>
10574
10575 * target-delegates.c: Rebuild.
10576 * target.c (default_follow_fork): New function.
10577 (target_follow_fork): Unconditionally delegate.
10578 * target.h (struct target_ops) <to_follow_fork>: Use
10579 TARGET_DEFAULT_FUNC.
10580
423a4807
TT
105812014-02-19 Tom Tromey <tromey@redhat.com>
10582
10583 * target-delegates.c: Rebuild.
10584 * target.c (target_kill): Unconditionally delegate.
10585 * target.h (struct target_ops) <to_kill>: Use
10586 TARGET_DEFAULT_NORETURN.
10587
6c7e5e5c
TT
105882014-02-19 Tom Tromey <tromey@redhat.com>
10589
10590 * target-delegates.c: Rebuild.
10591 * target.c (target_masked_watch_num_registers): Unconditionally
10592 delegate.
10593 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10594 Use TARGET_DEFAULT_RETURN.
10595
8b1c364c
TT
105962014-02-19 Tom Tromey <tromey@redhat.com>
10597
10598 * target-delegates.c: Rebuild.
10599 * target.c (target_remove_mask_watchpoint): Unconditionally
10600 delegate.
10601 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10602 TARGET_DEFAULT_RETURN.
10603
cd4ae029
TT
106042014-02-19 Tom Tromey <tromey@redhat.com>
10605
10606 * target-delegates.c: Rebuild.
10607 * target.c (target_insert_mask_watchpoint): Unconditionally
10608 delegate.
10609 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10610 TARGET_DEFAULT_RETURN.
10611
a134316b
TT
106122014-02-19 Tom Tromey <tromey@redhat.com>
10613
10614 * target-delegates.c: Rebuild.
10615 * target.c (target_ranged_break_num_registers): Unconditionally
10616 delegate.
10617 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10618 Use TARGET_DEFAULT_RETURN.
10619
ad5989bd
TT
106202014-02-19 Tom Tromey <tromey@redhat.com>
10621
10622 * target-delegates.c: Rebuild.
10623 * target.c (target_fetch_registers): Unconditionally delegate.
10624 * target.h (struct target_ops) <to_fetch_registers>: Use
10625 TARGET_DEFAULT_NORETURN.
10626
46ee7e8d
TT
106272014-02-19 Tom Tromey <tromey@redhat.com>
10628
10629 * target-delegates.c: Rebuild.
10630 * target.c (update_current_target): Don't inherit or default
10631 to_stop.
10632 * target.h (struct target_ops) <to_stop>: Use
10633 TARGET_DEFAULT_IGNORE.
10634
843f59ed
TT
106352014-02-19 Tom Tromey <tromey@redhat.com>
10636
10637 * target-delegates.c: Rebuild.
10638 * target.c (update_current_target): Don't inherit or default
10639 to_can_run_breakpoint_commands.
10640 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10641 Use TARGET_DEFAULT_RETURN.
10642
ccfde2a0
TT
106432014-02-19 Tom Tromey <tromey@redhat.com>
10644
10645 * target-delegates.c: Rebuild.
10646 * target.c (update_current_target): Don't inherit or default
10647 to_supports_evaluation_of_breakpoint_conditions.
10648 * target.h (struct target_ops)
10649 <to_supports_evaluation_of_breakpoint_conditions>: Use
10650 TARGET_DEFAULT_RETURN.
10651
0de91722
TT
106522014-02-19 Tom Tromey <tromey@redhat.com>
10653
10654 * target-delegates.c: Rebuild.
10655 * target.c (update_current_target): Don't inherit or default
10656 to_augmented_libraries_svr4_read.
10657 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10658 Use TARGET_DEFAULT_RETURN.
10659
9a7d8b48
TT
106602014-02-19 Tom Tromey <tromey@redhat.com>
10661
10662 * target-delegates.c: Rebuild.
10663 * target.c (update_current_target): Don't inherit or default
10664 to_can_use_agent.
10665 * target.h (struct target_ops) <to_can_use_agent>: Use
10666 TARGET_DEFAULT_RETURN.
10667
d9db5b21
TT
106682014-02-19 Tom Tromey <tromey@redhat.com>
10669
10670 * target-delegates.c: Rebuild.
10671 * target.c (update_current_target): Don't inherit or default
10672 to_use_agent.
10673 * target.h (struct target_ops) <to_use_agent>: Use
10674 TARGET_DEFAULT_NORETURN.
10675
92155eeb
TT
106762014-02-19 Tom Tromey <tromey@redhat.com>
10677
10678 * target-delegates.c: Rebuild.
10679 * target.c (update_current_target): Don't inherit or default
10680 to_traceframe_info.
10681 (return_null): Remove.
10682 * target.h (struct target_ops) <to_traceframe_info>: Use
10683 TARGET_DEFAULT_RETURN.
10684
d6522a22
TT
106852014-02-19 Tom Tromey <tromey@redhat.com>
10686
10687 * target-delegates.c: Rebuild.
10688 * target.c (update_current_target): Don't inherit or default
10689 to_static_tracepoint_markers_by_strid.
10690 * target.h (struct target_ops)
10691 <to_static_tracepoint_markers_by_strid>: Use
10692 TARGET_DEFAULT_NORETURN.
10693
4c3e4425
TT
106942014-02-19 Tom Tromey <tromey@redhat.com>
10695
10696 * target-delegates.c: Rebuild.
10697 * target.c (update_current_target): Don't inherit or default
10698 to_static_tracepoint_marker_at.
10699 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10700 Use TARGET_DEFAULT_RETURN.
10701
dcd6917f
TT
107022014-02-19 Tom Tromey <tromey@redhat.com>
10703
10704 * target-delegates.c: Rebuild.
10705 * target.c (update_current_target): Don't inherit or default
10706 to_set_permissions.
10707 * target.h (struct target_ops) <to_set_permissions>: Use
10708 TARGET_DEFAULT_IGNORE.
10709
22bcceee
TT
107102014-02-19 Tom Tromey <tromey@redhat.com>
10711
10712 * target-delegates.c: Rebuild.
10713 * target.c (update_current_target): Don't inherit or default
10714 to_get_tib_address.
10715 * target.h (struct target_ops) <to_get_tib_address>: Use
10716 TARGET_DEFAULT_NORETURN.
10717
8586ccaa
TT
107182014-02-19 Tom Tromey <tromey@redhat.com>
10719
10720 * target-delegates.c: Rebuild.
10721 * target.c (update_current_target): Don't inherit or default
10722 to_set_trace_notes.
10723 * target.h (struct target_ops) <to_set_trace_notes>: Use
10724 TARGET_DEFAULT_RETURN.
10725
91df8d1d
TT
107262014-02-19 Tom Tromey <tromey@redhat.com>
10727
10728 * target-delegates.c: Rebuild.
10729 * target.c (update_current_target): Don't initialize
10730 to_set_trace_buffer_size.
10731 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10732 TARGET_DEFAULT_IGNORE.
10733
8d526939
TT
107342014-02-19 Tom Tromey <tromey@redhat.com>
10735
10736 * target-delegates.c: Rebuild.
10737 * target.c (update_current_target): Don't inherit or default
10738 to_set_circular_trace_buffer.
10739 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10740 TARGET_DEFAULT_IGNORE.
10741
0bcfeddf
TT
107422014-02-19 Tom Tromey <tromey@redhat.com>
10743
10744 * target-delegates.c: Rebuild.
10745 * target.c (update_current_target): Don't inherit or default
10746 to_set_disconnected_tracing.
10747 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10748 TARGET_DEFAULT_IGNORE.
10749
9249843f
TT
107502014-02-19 Tom Tromey <tromey@redhat.com>
10751
10752 * target-delegates.c: Rebuild.
10753 * target.c (update_current_target): Don't inherit or default
10754 to_get_min_fast_tracepoint_insn_len.
10755 (return_minus_one): Remove.
10756 * target.h (struct target_ops)
10757 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10758
ace92e7d
TT
107592014-02-19 Tom Tromey <tromey@redhat.com>
10760
10761 * target-delegates.c: Rebuild.
10762 * target.c (update_current_target): Don't inherit or default
10763 to_get_raw_trace_data.
10764 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10765 TARGET_DEFAULT_NORETURN.
10766
08120467
TT
107672014-02-19 Tom Tromey <tromey@redhat.com>
10768
10769 * target-delegates.c: Rebuild.
10770 * target.c (update_current_target): Don't inherit or default
10771 to_upload_trace_state_variables.
10772 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10773 Use TARGET_DEFAULT_RETURN.
10774
1e949b00
TT
107752014-02-19 Tom Tromey <tromey@redhat.com>
10776
10777 * target-delegates.c: Rebuild.
10778 * target.c (update_current_target): Don't inherit or default
10779 to_upload_tracepoints.
10780 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10781 TARGET_DEFAULT_RETURN.
10782
a2e6c147
TT
107832014-02-19 Tom Tromey <tromey@redhat.com>
10784
10785 * target-delegates.c: Rebuild.
10786 * target.c (update_current_target): Don't inherit or default
10787 to_save_trace_data.
10788 * target.h (struct target_ops) <to_save_trace_data>: Use
10789 TARGET_DEFAULT_NORETURN.
10790
959bcd0b
TT
107912014-02-19 Tom Tromey <tromey@redhat.com>
10792
10793 * target-delegates.c: Rebuild.
10794 * target.c (update_current_target): Don't inherit or default
10795 to_get_trace_state_variable_value.
10796 * target.h (struct target_ops)
10797 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10798
afc94e66
TT
107992014-02-19 Tom Tromey <tromey@redhat.com>
10800
10801 * target-delegates.c: Rebuild.
10802 * target.c (update_current_target): Don't inherit or default
10803 to_trace_find.
10804 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10805
e51c07ea
TT
108062014-02-19 Tom Tromey <tromey@redhat.com>
10807
10808 * target-delegates.c: Rebuild.
10809 * target.c (update_current_target): Don't inherit or default
10810 to_trace_stop.
10811 * target.h (struct target_ops) <to_trace_stop>: Use
10812 TARGET_DEFAULT_NORETURN.
10813
6fea14cd
TT
108142014-02-19 Tom Tromey <tromey@redhat.com>
10815
10816 * target-delegates.c: Rebuild.
10817 * target.c (update_current_target): Don't inherit or default
10818 to_get_tracepoint_status.
10819 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10820 TARGET_DEFAULT_NORETURN.
10821
4072d4ff
TT
108222014-02-19 Tom Tromey <tromey@redhat.com>
10823
10824 * target-delegates.c: Rebuild.
10825 * target.c (update_current_target): Don't inherit or default
10826 to_get_trace_status.
10827 * target.h (struct target_ops) <to_get_trace_status>: Use
10828 TARGET_DEFAULT_RETURN.
10829
25da2e80
TT
108302014-02-19 Tom Tromey <tromey@redhat.com>
10831
10832 * target-delegates.c: Rebuild.
10833 * target.c (update_current_target): Don't inherit or default
10834 to_trace_start.
10835 * target.h (struct target_ops) <to_trace_start>: Use
10836 TARGET_DEFAULT_NORETURN.
10837
86dd181d
TT
108382014-02-19 Tom Tromey <tromey@redhat.com>
10839
10840 * target-delegates.c: Rebuild.
10841 * target.c (update_current_target): Don't inherit or default
10842 to_trace_set_readonly_regions.
10843 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10844 Use TARGET_DEFAULT_NORETURN.
10845
05c41993
TT
108462014-02-19 Tom Tromey <tromey@redhat.com>
10847
10848 * target-delegates.c: Rebuild.
10849 * target.c (update_current_target): Don't inherit or default
10850 to_disable_tracepoint.
10851 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10852 TARGET_DEFAULT_NORETURN.
10853
151f70f1
TT
108542014-02-19 Tom Tromey <tromey@redhat.com>
10855
10856 * target-delegates.c: Rebuild.
10857 * target.c (update_current_target): Don't inherit or default
10858 to_enable_tracepoint.
10859 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10860 TARGET_DEFAULT_NORETURN.
10861
94eb98b9
TT
108622014-02-19 Tom Tromey <tromey@redhat.com>
10863
10864 * target-delegates.c: Rebuild.
10865 * target.c (update_current_target): Don't inherit or default
10866 to_download_trace_state_variable.
10867 * target.h (struct target_ops) <to_download_trace_state_variable>:
10868 Use TARGET_DEFAULT_NORETURN.
10869
719acc4a
TT
108702014-02-19 Tom Tromey <tromey@redhat.com>
10871
10872 * target-delegates.c: Rebuild.
10873 * target.c (update_current_target): Don't inherit or default
10874 to_can_download_tracepoint.
10875 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10876 TARGET_DEFAULT_RETURN.
10877
9a980a22
TT
108782014-02-19 Tom Tromey <tromey@redhat.com>
10879
10880 * target-delegates.c: Rebuild.
10881 * target.c (update_current_target): Don't inherit or default
10882 to_download_tracepoint.
10883 * target.h (struct target_ops) <to_download_tracepoint>: Use
10884 TARGET_DEFAULT_NORETURN.
10885
5536135b
TT
108862014-02-19 Tom Tromey <tromey@redhat.com>
10887
10888 * target-delegates.c: Rebuild.
10889 * target.c (update_current_target): Don't inherit or default
10890 to_trace_init.
10891 * target.h (struct target_ops) <to_trace_init>: Use
10892 TARGET_DEFAULT_RETURN.
10893
9409d39e
TT
108942014-02-19 Tom Tromey <tromey@redhat.com>
10895
10896 * target-delegates.c: Rebuild.
10897 * target.c (update_current_target): Don't inherit or default
10898 to_supports_string_tracing.
10899 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10900 TARGET_DEFAULT_RETURN.
10901
aab1b22d
TT
109022014-02-19 Tom Tromey <tromey@redhat.com>
10903
10904 * target-delegates.c: Rebuild.
10905 * target.c (update_current_target): Don't inherit or default
10906 to_supports_enable_disable_tracepoint.
10907 * target.h (struct target_ops)
10908 <to_supports_enable_disable_tracepoint>: Use
10909 TARGET_DEFAULT_RETURN.
10910
a7304748
TT
109112014-02-19 Tom Tromey <tromey@redhat.com>
10912
10913 * target-delegates.c: Rebuild.
10914 * target.c (update_current_target): Don't inherit or default
10915 to_supports_multi_process.
10916 * target.h (struct target_ops) <to_supports_multi_process>: Use
10917 TARGET_DEFAULT_RETURN.
10918
4229b31d
TT
109192014-02-19 Tom Tromey <tromey@redhat.com>
10920
10921 * target-delegates.c: Rebuild.
10922 * target.c (update_current_target): Don't inherit or default
10923 to_get_ada_task_ptid.
10924 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10925 TARGET_DEFAULT_FUNC.
10926
43eba180
TT
109272014-02-19 Tom Tromey <tromey@redhat.com>
10928
10929 * target-delegates.c: Rebuild.
10930 * target.c (update_current_target): Don't inherit or default
10931 to_thread_architecture.
10932 * target.h (struct target_ops) <to_thread_architecture>: Use
10933 TARGET_DEFAULT_FUNC.
10934
fe31bf5b
TT
109352014-02-19 Tom Tromey <tromey@redhat.com>
10936
10937 * target-delegates.c: Rebuild.
10938 * target.c (update_current_target): Don't inherit or default
10939 to_execution_direction.
10940 * target.h (struct target_ops) <to_execution_direction>: Use
10941 TARGET_DEFAULT_FUNC.
10942
53e1cfc7
TT
109432014-02-19 Tom Tromey <tromey@redhat.com>
10944
10945 * target-delegates.c: Rebuild.
10946 * target.c (update_current_target): Don't inherit or default
10947 to_can_execute_reverse.
10948 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10949 TARGET_DEFAULT_RETURN.
10950 (target_can_execute_reverse): Unconditionally delegate.
10951
9bb9d61d
TT
109522014-02-19 Tom Tromey <tromey@redhat.com>
10953
10954 * target-delegates.c: Rebuild.
10955 * target.c (update_current_target): Don't inherit or default
10956 to_goto_bookmark.
10957 (dummy_goto_bookmark): Remove.
10958 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10959 * target.h (struct target_ops) <to_goto_bookmark>: Use
10960 TARGET_DEFAULT_NORETURN.
10961
3dbafbbb
TT
109622014-02-19 Tom Tromey <tromey@redhat.com>
10963
10964 * target-delegates.c: Rebuild.
10965 * target.c (update_current_target): Don't inherit or default
10966 to_get_bookmark.
10967 (dummy_get_bookmark): Remove.
10968 (init_dummy_target): Don't inherit or default to_get_bookmark.
10969 * target.h (struct target_ops) <to_get_bookmark>: Use
10970 TARGET_DEFAULT_NORETURN
10971
16f796b1
TT
109722014-02-19 Tom Tromey <tromey@redhat.com>
10973
10974 * target-delegates.c: Rebuild.
10975 * target.c (update_current_target): Don't inherit or default
10976 to_make_corefile_notes.
10977 (init_dummy_target): Don't initialize to_make_corefile_notes.
10978 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10979 TARGET_DEFAULT_FUNC.
10980
0b5a2719
TT
109812014-02-19 Tom Tromey <tromey@redhat.com>
10982
10983 * target-delegates.c: Rebuild.
10984 * target.c (update_current_target): Don't inherit or default
10985 to_find_memory_regions.
10986 (init_dummy_target): Don't initialize to_find_memory_regions.
10987 * target.h (struct target_ops) <to_find_memory_regions>: Use
10988 TARGET_DEFAULT_FUNC.
10989
d9cb0195
TT
109902014-02-19 Tom Tromey <tromey@redhat.com>
10991
10992 * target-delegates.c: Rebuild.
10993 * target.c (update_current_target): Don't inherit or default
10994 to_log_command.
10995 * target.h (struct target_ops) <to_log_command>: Use
10996 TARGET_DEFAULT_IGNORE.
10997 (target_log_command): Unconditionally delegate.
10998
830ca330
TT
109992014-02-19 Tom Tromey <tromey@redhat.com>
11000
11001 * target-delegates.c: Rebuild.
11002 * target.c (update_current_target): Don't inherit or default
11003 to_pid_to_exec_file.
11004 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11005 TARGET_DEFAULT_RETURN.
11006
825828fc
TT
110072014-02-19 Tom Tromey <tromey@redhat.com>
11008
11009 * target-delegates.c: Rebuild.
11010 * target.c (update_current_target): Don't inherit or default
11011 to_thread_name.
11012 (target_thread_name): Unconditionally delegate.
11013 * target.h (struct target_ops) <to_thread_name>: Use
11014 TARGET_DEFAULT_RETURN.
11015
4a7e6dda
TT
110162014-02-19 Tom Tromey <tromey@redhat.com>
11017
11018 * target-delegates.c: Rebuild.
11019 * target.c (update_current_target): Don't inherit or default
11020 to_extra_thread_info.
11021 * target.h (struct target_ops) <to_extra_thread_info>: Use
11022 TARGET_DEFAULT_RETURN.
11023
0db88c1d
TT
110242014-02-19 Tom Tromey <tromey@redhat.com>
11025
11026 * target-delegates.c: Rebuild.
11027 * target.c (update_current_target): Don't inherit or default
11028 to_has_exited.
11029 * target.h (struct target_ops) <to_has_exited>: Use
11030 TARGET_DEFAULT_RETURN..
11031
6a9fa051
TT
110322014-02-19 Tom Tromey <tromey@redhat.com>
11033
11034 * target-delegates.c: Rebuild.
11035 * target.c (update_current_target): Don't inherit or default
11036 to_set_syscall_catchpoint.
11037 (return_one): Remove.
11038 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11039 TARGET_DEFAULT_RETURN.
11040
62f64d7a
TT
110412014-02-19 Tom Tromey <tromey@redhat.com>
11042
11043 * target-delegates.c: Rebuild.
11044 * target.c (update_current_target): Don't inherit or default
11045 to_insert_exec_catchpoint.
11046 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11047 TARGET_DEFAULT_RETURN.
11048
cda0f38c
TT
110492014-01-08 Tom Tromey <tromey@redhat.com>
11050
11051 * target-delegates.c: Rebuild.
11052 * target.c (update_current_target): Don't inherit or default
11053 to_insert_exec_catchpoint.
11054 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11055 TARGET_DEFAULT_RETURN.
11056
95c3375e
TT
110572014-02-19 Tom Tromey <tromey@redhat.com>
11058
11059 * target-delegates.c: Rebuild.
11060 * target.c (update_current_target): Don't inherit or default
11061 to_remove_vfork_catchpoint.
11062 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11063 TARGET_DEFAULT_RETURN.
11064
7e18a8dc
TT
110652014-02-19 Tom Tromey <tromey@redhat.com>
11066
11067 * target-delegates.c: Rebuild.
11068 * target.c (update_current_target): Don't inherit or default
11069 to_insert_vfork_catchpoint.
11070 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11071 TARGET_DEFAULT_RETURN.
11072
e1a21fb7
TT
110732014-02-19 Tom Tromey <tromey@redhat.com>
11074
11075 * target-delegates.c: Rebuild.
11076 * target.c (update_current_target): Don't inherit or default
11077 to_remove_fork_catchpoint.
11078 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11079 TARGET_DEFAULT_RETURN.
11080
5958ebeb
TT
110812014-02-19 Tom Tromey <tromey@redhat.com>
11082
11083 * target-delegates.c: Rebuild.
11084 * target.c (update_current_target): Don't inherit or default
11085 to_insert_fork_catchpoint.
11086 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11087 TARGET_DEFAULT_RETURN.
11088
340ba4bf
TT
110892014-02-19 Tom Tromey <tromey@redhat.com>
11090
11091 * target-delegates.c: Rebuild.
11092 * target.c (update_current_target): Don't inherit or default
11093 to_post_startup_inferior.
11094 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11095 TARGET_DEFAULT_IGNORE.
11096
7634da87
TT
110972014-02-19 Tom Tromey <tromey@redhat.com>
11098
11099 * target-delegates.c: Rebuild.
11100 * target.c (update_current_target): Don't inherit or default
11101 to_load.
11102 * target.h (struct target_ops) <to_load>: Use
11103 TARGET_DEFAULT_NORETURN.
11104
e19e919f
TT
111052014-02-19 Tom Tromey <tromey@redhat.com>
11106
11107 * target-delegates.c: Rebuild.
11108 * target.c (update_current_target): Don't inherit or default
11109 to_terminal_info.
11110 * target.h (struct target_ops) <to_terminal_info>: Use
11111 TARGET_DEFAULT_FUNC.
11112
c6ea8f79
TT
111132014-02-19 Tom Tromey <tromey@redhat.com>
11114
11115 * target-delegates.c: Rebuild.
11116 * target.c (update_current_target): Don't inherit or default
11117 to_terminal_save_ours.
11118 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11119 TARGET_DEFAULT_IGNORE.
11120
e4a733f1
TT
111212014-02-19 Tom Tromey <tromey@redhat.com>
11122
11123 * target-delegates.c: Rebuild.
11124 * target.c (update_current_target): Don't inherit or default
11125 to_terminal_ours.
11126 * target.h (struct target_ops) <to_terminal_ours>: Use
11127 TARGET_DEFAULT_IGNORE.
11128
74fcbef9
TT
111292014-02-19 Tom Tromey <tromey@redhat.com>
11130
11131 * target-delegates.c: Rebuild.
11132 * target.c (update_current_target): Don't inherit or default
11133 to_terminal_ours_for_output.
11134 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11135 TARGET_DEFAULT_IGNORE.
11136
ddeaacc9
TT
111372014-02-19 Tom Tromey <tromey@redhat.com>
11138
11139 * target-delegates.c: Rebuild.
11140 * target.c (update_current_target): Don't inherit or default
11141 to_terminal_inferior.
11142 * target.h (struct target_ops) <to_terminal_inferior>: Use
11143 TARGET_DEFAULT_IGNORE.
11144
0343661d
TT
111452014-02-19 Tom Tromey <tromey@redhat.com>
11146
11147 * target-delegates.c: Rebuild.
11148 * target.c (update_current_target): Don't inherit or default
11149 to_terminal_init.
11150 * target.h (struct target_ops) <to_terminal_init>: Use
11151 TARGET_DEFAULT_IGNORE.
11152
77cdffe9
TT
111532014-02-19 Tom Tromey <tromey@redhat.com>
11154
11155 * target-delegates.c: Rebuild.
11156 * target.c (update_current_target): Don't inherit or default
11157 to_can_accel_watchpoint_condition.
11158 * target.h (struct target_ops)
11159 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11160
d03655e4
TT
111612014-02-19 Tom Tromey <tromey@redhat.com>
11162
11163 * target-delegates.c: Rebuild.
11164 * target.c (update_current_target): Don't inherit or default
11165 to_region_ok_for_hw_watchpoint.
11166 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11167 Use TARGET_DEFAULT_FUNC.
11168
65f160a9
TT
111692014-02-19 Tom Tromey <tromey@redhat.com>
11170
11171 * target-delegates.c: Rebuild.
11172 * target.c (update_current_target): Don't inherit or default
11173 to_watchpoint_addr_within_range.
11174 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11175 Use TARGET_DEFAULT_FUNC.
11176
61dd109f
TT
111772014-02-19 Tom Tromey <tromey@redhat.com>
11178
11179 * target-delegates.c: Rebuild.
11180 * target.c (update_current_target): Don't inherit or default
11181 to_remove_watchpoint.
11182 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11183 TARGET_DEFAULT_NORETURN.
11184
016facd4
TT
111852014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * target-delegates.c: Rebuild.
11188 * target.c (update_current_target): Don't inherit or default
11189 to_insert_watchpoint.
11190 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11191 TARGET_DEFAULT_RETURN.
11192
418dabac
TT
111932014-02-19 Tom Tromey <tromey@redhat.com>
11194
11195 * target-delegates.c: Rebuild.
11196 * target.c (update_current_target): Don't inherit or default
11197 to_remove_hw_breakpoint.
11198 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11199 TARGET_DEFAULT_RETURN.
11200
61b371f9
TT
112012014-02-19 Tom Tromey <tromey@redhat.com>
11202
11203 * target-delegates.c: Rebuild.
11204 * target.c (update_current_target): Don't inherit or default
11205 to_insert_hw_breakpoint.
11206 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11207 TARGET_DEFAULT_RETURN.
11208
52b51d06
TT
112092014-02-19 Tom Tromey <tromey@redhat.com>
11210
11211 * target-delegates.c: Rebuild.
11212 * target.c (update_current_target): Don't inherit or default
11213 to_can_use_hw_breakpoint.
11214 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11215 TARGET_DEFAULT_RETURN.
11216
f86e59b2
TT
112172014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * target-delegates.c: Rebuild.
11220 * target.c (update_current_target): Don't inherit or default
11221 to_files_info.
11222 * target.h (struct target_ops) <to_files_info>: Use
11223 TARGET_DEFAULT_IGNORE.
11224
6c628163
TT
112252014-02-19 Tom Tromey <tromey@redhat.com>
11226
11227 * target-delegates.c: Rebuild.
11228 * target.c (update_current_target): Don't inherit or default
11229 to_store.
11230 * target.h (struct target_ops) <to_store>: Use
11231 TARGET_DEFAULT_NORETURN.
11232
bebd3233
TT
112332014-02-19 Tom Tromey <tromey@redhat.com>
11234
11235 * target-delegates.c: Rebuild.
11236 * target.c (update_current_target): Don't inherit or default
11237 to_post_attach.
11238 * target.h (struct target_ops) <to_post_attach>: Use
11239 TARGET_DEFAULT_IGNORE.
11240
a53f3625
TT
112412014-02-19 Tom Tromey <tromey@redhat.com>
11242
11243 * target-delegates.c: Rebuild.
11244 * target.c (update_current_target): Don't inherit or default
11245 to_rcmd.
11246 (default_rcmd): New function.
11247 (do_monitor_command): Unconditionally delegate.
11248 * target.h (struct target_ops) <to_rmcd>: Use
11249 TARGET_DEFAULT_FUNC.
11250
e9a29200
TT
112512014-02-19 Tom Tromey <tromey@redhat.com>
11252
11253 * target-delegates.c: Rebuild.
11254 * target.c (init_dummy_target): Don't initialize to_attach.
11255 (target_attach): Unconditionally delegate.
11256 * target.h (struct target_ops) <to_attach>: Use
11257 TARGET_DEFAULT_FUNC.
11258
09da0d0a
TT
112592014-02-19 Tom Tromey <tromey@redhat.com>
11260
11261 * target-delegates.c: Rebuild.
11262 * target.c (target_detach): Unconditionally delegate.
11263 (init_dummy_target): Don't initialize to_detach.
11264 * target.h (struct target_ops) <to_detach>: Use
11265 TARGET_DEFAULT_IGNORE.
11266
5436ff03
TT
112672014-02-19 Tom Tromey <tromey@redhat.com>
11268
11269 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11270 Add argument.
11271 (target_augmented_libraries_svr4_read): Add argument.
11272 * target.c (update_current_target): Update.
11273 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11274 argument.
11275
f0d960ea
TT
112762014-02-19 Tom Tromey <tromey@redhat.com>
11277
11278 * target.h (struct target_ops) <to_call_history_range>: Add
11279 argument.
11280 * target.c (target_call_history_range): Add argument.
11281 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11282 argument.
11283 (record_btrace_call_history_from): Update.
11284
ec0aea04
TT
112852014-02-19 Tom Tromey <tromey@redhat.com>
11286
11287 * target.h (struct target_ops) <to_call_history_from>: Add
11288 argument.
11289 * target.c (target_call_history_from): Add argument.
11290 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11291 argument.
11292
5df2fcba
TT
112932014-02-19 Tom Tromey <tromey@redhat.com>
11294
11295 * target.h (struct target_ops) <to_call_history>: Add argument.
11296 * target.c (target_call_history): Add argument.
11297 * record-btrace.c (record_btrace_call_history): Add 'self'
11298 argument.
11299
4e99c6b7
TT
113002014-02-19 Tom Tromey <tromey@redhat.com>
11301
11302 * target.h (struct target_ops) <to_insn_history_range>: Add
11303 argument.
11304 * target.c (target_insn_history_range): Add argument.
11305 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11306 argument.
11307 (record_btrace_insn_history_from): Update.
11308
9abc3ff3
TT
113092014-02-19 Tom Tromey <tromey@redhat.com>
11310
11311 * target.h (struct target_ops) <to_insn_history_from>: Add
11312 argument.
11313 * target.c (target_insn_history_from): Add argument.
11314 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11315 argument.
11316
7a6c5609
TT
113172014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * target.h (struct target_ops) <to_insn_history>: Add argument.
11320 * target.c (target_insn_history): Add argument.
11321 * record-btrace.c (record_btrace_insn_history): Add 'self'
11322 argument.
11323
606183ac
TT
113242014-02-19 Tom Tromey <tromey@redhat.com>
11325
11326 * target.h (struct target_ops) <to_goto_record>: Add argument.
11327 * target.c (target_goto_record): Add argument.
11328 * record-full.c (record_full_goto): Add 'self' argument.
11329 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11330
307a1b91
TT
113312014-02-19 Tom Tromey <tromey@redhat.com>
11332
11333 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11334 * target.c (target_goto_record_end): Add argument.
11335 * record-full.c (record_full_goto_end): Add 'self' argument.
11336 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11337
08475817
TT
113382014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * target.h (struct target_ops) <to_goto_record_begin>: Add
11341 argument.
11342 * target.c (target_goto_record_begin): Add argument.
11343 * record-full.c (record_full_goto_begin): Add 'self' argument.
11344 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11345 argument.
11346
1c63c994
TT
113472014-02-19 Tom Tromey <tromey@redhat.com>
11348
11349 * target.h (struct target_ops) <to_record_is_replaying>: Add
11350 argument.
11351 * target.c (target_record_is_replaying): Add argument.
11352 * record-full.c (record_full_is_replaying): Add 'self' argument.
11353 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11354 argument.
11355 (record_btrace_xfer_partial, record_btrace_store_registers)
11356 (record_btrace_prepare_to_store, record_btrace_resume)
11357 (record_btrace_wait, record_btrace_decr_pc_after_break)
11358 (record_btrace_find_new_threads, record_btrace_thread_alive):
11359 Update.
11360
d1b55219
TT
113612014-02-19 Tom Tromey <tromey@redhat.com>
11362
11363 * target.h (struct target_ops) <to_delete_record>: Add argument.
11364 * target.c (target_delete_record): Add argument.
11365 * record-full.c (record_full_delete): Add 'self' argument.
11366
1390f529
TT
113672014-02-19 Tom Tromey <tromey@redhat.com>
11368
11369 * target.h (struct target_ops) <to_save_record>: Add argument.
11370 * target.c (target_save_record): Add argument.
11371 * record-full.c (record_full_save): Add 'self' argument.
11372 (record_full_save): Add 'self' argument.
11373
630d6a4a
TT
113742014-02-19 Tom Tromey <tromey@redhat.com>
11375
11376 * target.h (struct target_ops) <to_info_record>: Add argument.
11377 * target.c (target_info_record): Add argument.
11378 * record.c (info_record_command): Add argument.
11379 * record-full.c (record_full_info): Add 'self' argument.
11380 * record-btrace.c (record_btrace_info): Add 'self' argument.
11381
c6cd7c02
TT
113822014-02-19 Tom Tromey <tromey@redhat.com>
11383
11384 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11385 * target.c (target_stop_recording): Add argument.
11386 * record.c (record_stop): Add argument.
11387 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11388 argument.
11389
39c49f83
TT
113902014-02-19 Tom Tromey <tromey@redhat.com>
11391
11392 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11393 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11394 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11395 argument.
11396 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11397 (_initialize_amd64_linux_nat): Use it.
11398 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11399 (_initialize_i386_linux_nat): Use it.
11400
1777056d
TT
114012014-02-19 Tom Tromey <tromey@redhat.com>
11402
11403 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11404 * target.c (target_teardown_btrace): Add argument.
11405 * remote.c (remote_teardown_btrace): Add 'self' argument.
11406 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11407 argument.
11408 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11409 argument.
11410
25e95349
TT
114112014-02-19 Tom Tromey <tromey@redhat.com>
11412
11413 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11414 * target.c (target_disable_btrace): Add argument.
11415 * remote.c (remote_disable_btrace): Add 'self' argument.
11416 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11417 argument.
11418 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11419 argument.
11420
e3c49f88
TT
114212014-02-19 Tom Tromey <tromey@redhat.com>
11422
11423 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11424 * target.c (target_enable_btrace): Add argument.
11425 * remote.c (remote_enable_btrace): Add 'self' argument.
11426 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11427 argument.
11428 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11429 argument.
11430
fe38f897
TT
114312014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11434 (target_can_use_agent): Add argument.
11435 * target.c (update_current_target): Update.
11436 * remote.c (remote_can_use_agent): Add 'self' argument.
11437 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11438
2c152180
TT
114392014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target.h (struct target_ops) <to_use_agent>: Add argument.
11442 (target_use_agent): Add argument.
11443 * target.c (update_current_target): Update.
11444 * remote.c (remote_use_agent): Add 'self' argument.
11445 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11446
a893e81f
TT
114472014-02-19 Tom Tromey <tromey@redhat.com>
11448
11449 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11450 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11451 (target_traceframe_info): Add argument.
11452 * target.c (update_current_target): Update.
11453 * remote.c (remote_traceframe_info): Add 'self' argument.
11454 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11455
c686c57f
TT
114562014-02-19 Tom Tromey <tromey@redhat.com>
11457
11458 * target.h (target_static_tracepoint_markers_by_strid): Add
11459 argument.
11460 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11461 'self' argument.
11462 * target.c (update_current_target): Update.
11463 * remote.c (struct target_ops)
11464 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11465 * linux-nat.c (struct target_ops)
11466 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11467
61fc905d
TT
114682014-02-19 Tom Tromey <tromey@redhat.com>
11469
11470 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11471 Add argument.
11472 (target_static_tracepoint_marker_at): Add argument.
11473 * target.c (update_current_target): Update.
11474 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11475 argument.
11476
c378d69d
TT
114772014-02-19 Tom Tromey <tromey@redhat.com>
11478
11479 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11480 (target_set_permissions): Add argument.
11481 * target.c (update_current_target): Update.
11482 * remote.c (remote_set_permissions): Add 'self' argument.
11483 (remote_start_remote): Update.
11484
bd7ae0f5
TT
114852014-02-19 Tom Tromey <tromey@redhat.com>
11486
11487 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11488 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11489 (target_get_tib_address): Add argument.
11490 * target.c (update_current_target): Update.
11491 * remote.c (remote_get_tib_address): Add 'self' argument.
11492
d9e68a2c
TT
114932014-02-19 Tom Tromey <tromey@redhat.com>
11494
11495 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11496 (target_set_trace_notes): Add argument.
11497 * target.c (update_current_target): Update.
11498 * remote.c (remote_set_trace_notes): Add 'self' argument.
11499
4da384be
TT
115002014-02-19 Tom Tromey <tromey@redhat.com>
11501
11502 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11503 argument.
11504 (target_set_trace_buffer_size): Add argument.
11505 * target.c (update_current_target): Update.
11506 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11507
736d5b1f
TT
115082014-02-19 Tom Tromey <tromey@redhat.com>
11509
11510 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11511 argument.
11512 (target_set_circular_trace_buffer): Add argument.
11513 * target.c (update_current_target): Update.
11514 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11515 argument.
11516
37b25738
TT
115172014-02-19 Tom Tromey <tromey@redhat.com>
11518
11519 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11520 argument.
11521 (target_set_disconnected_tracing): Add argument.
11522 * target.c (update_current_target): Update.
11523 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11524
0e67620a
TT
115252014-02-19 Tom Tromey <tromey@redhat.com>
11526
11527 * target.h (struct target_ops)
11528 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11529 (target_get_min_fast_tracepoint_insn_len): Add argument.
11530 * target.c (update_current_target): Update.
11531 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11532 argument.
11533
88ee6f45
TT
115342014-02-19 Tom Tromey <tromey@redhat.com>
11535
11536 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11537 argument.
11538 (target_get_raw_trace_data): Add argument.
11539 * target.c (update_current_target): Update.
11540 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11541
181e3713
TT
115422014-02-19 Tom Tromey <tromey@redhat.com>
11543
11544 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11545 Add argument.
11546 (target_upload_trace_state_variables): Add argument.
11547 * target.c (update_current_target): Update.
11548 * remote.c (remote_upload_trace_state_variables): Add 'self'
11549 argument.
11550 (remote_start_remote): Update.
11551
ab6617cc
TT
115522014-02-19 Tom Tromey <tromey@redhat.com>
11553
11554 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11555 argument.
11556 (target_upload_tracepoints): Add argument.
11557 * target.c (update_current_target): Update.
11558 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11559 (remote_start_remote): Update.
11560
dc3decaf
TT
115612014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11564 (target_save_trace_data): Add argument.
11565 * target.c (update_current_target): Update.
11566 * remote.c (remote_save_trace_data): Add 'self' argument.
11567
4011015b
TT
115682014-02-19 Tom Tromey <tromey@redhat.com>
11569
11570 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11571 argument.
11572 * target.h (struct target_ops)
11573 <to_get_trace_state_variable_value>: Add argument.
11574 (target_get_trace_state_variable_value): Add argument.
11575 * target.c (update_current_target): Update.
11576 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11577 argument.
11578 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11579
bd4c6793
TT
115802014-02-19 Tom Tromey <tromey@redhat.com>
11581
11582 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11583 * target.h (struct target_ops) <to_trace_find>: Add argument.
11584 (target_trace_find): Add argument.
11585 * target.c (update_current_target): Update.
11586 * remote.c (remote_trace_find): Add 'self' argument.
11587 * ctf.c (ctf_trace_find): Add 'self' argument.
11588
74499f1b
TT
115892014-02-19 Tom Tromey <tromey@redhat.com>
11590
11591 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11592 (target_trace_stop): Add argument.
11593 * target.c (update_current_target): Update.
11594 * remote.c (remote_trace_stop): Add 'self' argument.
11595
db90e85c
TT
115962014-02-19 Tom Tromey <tromey@redhat.com>
11597
11598 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11599 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11600 argument.
11601 (target_get_tracepoint_status): Add argument.
11602 * target.c (update_current_target): Update.
11603 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11604
8bd200f1
TT
116052014-02-19 Tom Tromey <tromey@redhat.com>
11606
11607 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11608 * target.h (struct target_ops) <to_get_trace_status>: Add
11609 argument.
11610 (target_get_trace_status): Add argument.
11611 * target.c (update_current_target): Update.
11612 * remote.c (remote_get_trace_status): Add 'self' argument.
11613 (remote_start_remote, remote_can_download_tracepoint): Update.
11614 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11615
e2d1aae3
TT
116162014-02-19 Tom Tromey <tromey@redhat.com>
11617
11618 * target.h (struct target_ops) <to_trace_start>: Add argument.
11619 (target_trace_start): Add argument.
11620 * target.c (update_current_target): Update.
11621 * remote.c (remote_trace_start): Add 'self' argument.
11622
583f9a86
TT
116232014-02-19 Tom Tromey <tromey@redhat.com>
11624
11625 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11626 Add argument.
11627 (target_trace_set_readonly_regions): Add argument.
11628 * target.c (update_current_target): Update.
11629 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11630 argument.
11631
780b049c
TT
116322014-02-19 Tom Tromey <tromey@redhat.com>
11633
11634 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11635 argument.
11636 (target_disable_tracepoint): Add argument.
11637 * target.c (update_current_target): Update.
11638 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11639
46670d57
TT
116402014-02-19 Tom Tromey <tromey@redhat.com>
11641
11642 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11643 argument.
11644 (target_enable_tracepoint): Add argument.
11645 * target.c (update_current_target): Update.
11646 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11647
559d2b81
TT
116482014-02-19 Tom Tromey <tromey@redhat.com>
11649
11650 * target.h (struct target_ops) <to_download_trace_state_variable>:
11651 Add argument.
11652 (target_download_trace_state_variable): Add argument.
11653 * target.c (update_current_target): Update.
11654 * remote.c (remote_download_trace_state_variable): Add 'self'
11655 argument.
11656
a52a8357
TT
116572014-02-19 Tom Tromey <tromey@redhat.com>
11658
11659 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11660 argument.
11661 (target_can_download_tracepoint): Add argument.
11662 * target.c (update_current_target): Update.
11663 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11664
548f7808
TT
116652014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target.h (struct target_ops) <to_download_tracepoint>: Add
11668 argument.
11669 (target_download_tracepoint): Add argument.
11670 * target.c (update_current_target): Update.
11671 * remote.c (remote_download_tracepoint): Add 'self' argument.
11672
ecae04e1
TT
116732014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target.h (struct target_ops) <to_trace_init>: Add argument.
11676 (target_trace_init): Add argument.
11677 * target.c (update_current_target): Update.
11678 * remote.c (remote_trace_init): Add 'self' argument.
11679
fab5aa7c
TT
116802014-02-19 Tom Tromey <tromey@redhat.com>
11681
11682 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11683 * target.c (target_fileio_readlink): Add argument.
11684 * remote.c (remote_hostio_readlink): Add 'self' argument.
11685 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11686
dbbca37d
TT
116872014-02-19 Tom Tromey <tromey@redhat.com>
11688
11689 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11690 * target.c (target_fileio_unlink): Add argument.
11691 * remote.c (remote_hostio_unlink): Add 'self' argument.
11692 (remote_file_delete): Update.
11693 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11694
df39ea25
TT
116952014-02-19 Tom Tromey <tromey@redhat.com>
11696
11697 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11698 * target.c (target_fileio_close): Add argument.
11699 * remote.c (remote_hostio_close): Add 'self' argument.
11700 (remote_hostio_close_cleanup): Update.
11701 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11702 Update.
11703 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11704
a3be983c
TT
117052014-02-19 Tom Tromey <tromey@redhat.com>
11706
11707 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11708 * target.c (target_fileio_pread): Add argument.
11709 * remote.c (remote_hostio_pread): Add 'self' argument.
11710 (remote_bfd_iovec_pread, remote_file_get): Update.
11711 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11712
0d866f62
TT
117132014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11716 * target.c (target_fileio_pwrite): Add argument.
11717 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11718 (remote_file_put): Update.
11719 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11720
cd897586
TT
117212014-02-19 Tom Tromey <tromey@redhat.com>
11722
11723 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11724 * target.c (target_fileio_open): Add argument.
11725 * remote.c (remote_hostio_open): Add 'self' argument.
11726 (remote_bfd_iovec_open): Add 'self' argument.
11727 (remote_file_put): Add 'self' argument.
11728 (remote_file_get): Add 'self' argument.
11729 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11730
78eff0ec
TT
117312014-02-19 Tom Tromey <tromey@redhat.com>
11732
11733 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11734 Add argument.
11735 (target_can_run_breakpoint_commands): Add argument.
11736 * target.c (update_current_target): Update.
11737 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11738 argument.
11739 (remote_insert_breakpoint): Add 'self' argument.
11740 (remote_insert_hw_breakpoint): Add 'self' argument.
11741 (remote_can_run_breakpoint_commands): Add 'self' argument.
11742
efcc2da7
TT
117432014-02-19 Tom Tromey <tromey@redhat.com>
11744
11745 * target.h (struct target_ops)
11746 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11747 (target_supports_evaluation_of_breakpoint_conditions): Add
11748 argument.
11749 * target.c (update_current_target): Update.
11750 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11751 argument.
11752 (remote_insert_breakpoint): Add 'self' argument.
11753 (remote_insert_hw_breakpoint): Add 'self' argument.
11754 (remote_supports_cond_breakpoints): Add 'self' argument.
11755
6de37a3a
TT
117562014-02-19 Tom Tromey <tromey@redhat.com>
11757
11758 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11759 argument.
11760 (target_supports_string_tracing): Add argument.
11761 * target.c (update_current_target): Update.
11762 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11763
2bfc0540
TT
117642014-02-19 Tom Tromey <tromey@redhat.com>
11765
11766 * target.h (struct target_ops)
11767 <to_supports_disable_randomization>: Add argument.
11768 * target.c (find_default_supports_disable_randomization): Add
11769 argument.
11770 (target_supports_disable_randomization): Add argument.
11771 (find_default_supports_disable_randomization): Add 'self'
11772 argument.
11773 * remote.c (extended_remote_supports_disable_randomization): Add
11774 'self' argument.
11775 (remote_supports_disable_randomization): Add 'self' argument.
11776 (extended_remote_create_inferior): Update.
11777 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11778 'self' argument.
11779
7d178d6a
TT
117802014-02-19 Tom Tromey <tromey@redhat.com>
11781
11782 * target.h (struct target_ops)
11783 <to_supports_enable_disable_tracepoint>: Add argument.
11784 (target_supports_enable_disable_tracepoint): Add argument.
11785 * target.c (update_current_target): Update.
11786 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11787 argument.
11788
86ce2668
TT
117892014-02-19 Tom Tromey <tromey@redhat.com>
11790
11791 * target.h (struct target_ops) <to_supports_multi_process>: Add
11792 argument.
11793 (target_supports_multi_process): Add argument.
11794 * target.c (update_current_target): Update.
11795 * remote.c (remote_supports_multi_process): Add 'self' argument.
11796 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11797 argument.
11798 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11799 argument.
11800
4c612759
TT
118012014-02-19 Tom Tromey <tromey@redhat.com>
11802
11803 * target.h (struct target_ops) <to_execution_direction>: Add
11804 argument.
11805 (target_execution_direction): Add argument.
11806 * target.c (default_execution_direction): Add 'self' argument.
11807 * record-full.c (record_full_execution_direction): Add 'self'
11808 argument.
11809
19db3e69
TT
118102014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11813 argument.
11814 (target_can_execute_reverse): Add argument.
11815 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11816 * record-full.c (record_full_can_execute_reverse): Add 'self'
11817 argument.
11818 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11819 argument.
11820
1e6b91a4
TT
118212014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11824 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11825 argument.
11826 (target_get_ada_task_ptid): Add argument.
11827 * target.c (update_current_target): Update.
11828 (default_get_ada_task_ptid): Add 'self' argument.
11829 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11830 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11831 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11832 argument.
11833 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11834 argument.
11835 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11836 argument.
11837 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11838 argument.
11839 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11840 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11841 argument.
11842
3c80fb48
TT
118432014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11846 (target_goto_bookmark): Add argument.
11847 * target.c (dummy_goto_bookmark): Add 'self' argument.
11848 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11849
dd0e2830
TT
118502014-02-19 Tom Tromey <tromey@redhat.com>
11851
11852 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11853 (target_get_bookmark): Add argument.
11854 * target.c (dummy_get_bookmark): Add 'self' argument.
11855 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11856
fc6691b2
TT
118572014-02-19 Tom Tromey <tromey@redhat.com>
11858
11859 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11860 argument.
11861 (target_make_corefile_notes): Add argument.
11862 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11863 * procfs.c (procfs_make_note_section): Add 'self' argument.
11864 (procfs_make_note_section): Add 'self' argument.
11865 (procfs_make_note_section): Add 'self' argument.
11866 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11867 argument.
11868 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11869 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11870 * exec.c (exec_make_note_section): Add 'self' argument.
11871 (exec_make_note_section): Add 'self' argument.
11872
2e73927c
TT
118732014-02-19 Tom Tromey <tromey@redhat.com>
11874
11875 * target.h (struct target_ops) <to_find_memory_regions>: Add
11876 argument.
11877 (target_find_memory_regions): Add argument.
11878 * target.c (dummy_find_memory_regions): Add 'self' argument.
11879 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11880 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11881 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11882 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11883 * exec. (exec_do_find_memory_regions): New global.
11884 (exec_set_find_memory_regions): Rewrite.
11885 (exec_find_memory_regions): New function.
11886 (init_exec_ops): Use exec_find_memory_regions.
11887
2a9a2795
TT
118882014-02-19 Tom Tromey <tromey@redhat.com>
11889
11890 * target.h (struct target_ops) <to_supports_non_stop>: Add
11891 argument.
11892 * target.c (find_default_supports_non_stop): Add argument.
11893 (target_supports_non_stop): Add argument.
11894 (find_default_supports_non_stop): Add 'self' argument.
11895 * remote.c (remote_supports_non_stop): Add 'self' argument.
11896 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11897
4ab76ea3
TT
118982014-02-19 Tom Tromey <tromey@redhat.com>
11899
11900 * target.h (struct target_ops) <to_log_command>: Add argument.
11901 (target_log_command): Add argument.
11902 * serial.h (serial_log_command): Add 'self' argument.
11903 * serial.c (serial_log_command): Add 'self' argument.
11904
8dd27370
TT
119052014-02-19 Tom Tromey <tromey@redhat.com>
11906
11907 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11908 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11909 argument.
11910 (target_pid_to_exec_file): Add argument.
11911 * target.c (debug_to_pid_to_exec_file): Add argument.
11912 (update_current_target): Update.
11913 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11914 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11915 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11916 (linux_handle_extended_wait): Update.
11917 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11918 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11919 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11920 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11921
1aac633b
TT
119222014-02-19 Tom Tromey <tromey@redhat.com>
11923
11924 * target.h (struct target_ops) <to_rcmd>: Add argument.
11925 (target_rcmd): Add argument.
11926 * target.c (debug_to_rcmd): Add argument.
11927 (update_current_target, do_monitor_command): Update.
11928 * remote.c (remote_rcmd): Add 'self' argument.
11929 * monitor.c (monitor_rcmd): Add 'self' argument.
11930
1eab8a48
TT
119312014-02-19 Tom Tromey <tromey@redhat.com>
11932
11933 * windows-nat.c (windows_stop): Add 'self' argument.
11934 * target.h (struct target_ops) <to_stop>: Add argument.
11935 * target.c (target_stop): Add argument.
11936 (debug_to_stop): Add argument.
11937 (update_current_target): Update.
11938 * remote.c (remote_stop): Add 'self' argument.
11939 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11940 (gdbsim_cntrl_c): Update.
11941 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11942 * procfs.c (procfs_stop): Add 'self' argument.
11943 * nto-procfs.c (procfs_stop): Add 'self' argument.
11944 * monitor.c (monitor_stop): Add 'self' argument.
11945 (monitor_open): Update.
11946 * linux-nat.c (linux_nat_stop): Add argument.
11947 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11948 * gnu-nat.c (gnu_stop): Add 'self' argument.
11949 * darwin-nat.c (darwin_stop): Add 'self' argument.
11950
503a628d
TT
119512014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * target.h (struct target_ops) <to_thread_name>: Add argument.
11954 * target.c (target_thread_name): Add argument.
11955 (update_current_target): Update.
11956 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11957
c15906d8
TT
119582014-02-19 Tom Tromey <tromey@redhat.com>
11959
11960 * target.h (struct target_ops) <to_extra_thread_info>: Add
11961 argument.
11962 (target_extra_thread_info): Add argument.
11963 * target.c (update_current_target): Update.
11964 * remote.c (remote_threads_extra_info): Add 'self' argument.
11965 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11966 argument.
11967 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11968 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11969 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11970 argument.
11971 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11972 argument.
11973 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11974 argument.
11975 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11976 argument.
11977
daf5e9b6
TT
119782014-02-19 Tom Tromey <tromey@redhat.com>
11979
11980 * target.h (struct target_ops) <to_program_signals>: Add argument.
11981 * target.c (target_program_signals): Add argument.
11982 * remote.c (remote_program_signals): Add 'self' argument.
11983
94bedb42
TT
119842014-02-19 Tom Tromey <tromey@redhat.com>
11985
11986 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11987 * target.c (target_pass_signals): Add argument.
11988 * remote.c (remote_pass_signals): Add 'self' argument.
11989 (remote_start_remote): Update.
11990 * procfs.c (procfs_pass_signals): Add 'self' argument.
11991 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11992 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11993 (linux_nat_create_inferior, linux_nat_attach): Update.
11994
da82bd6b
TT
119952014-02-19 Tom Tromey <tromey@redhat.com>
11996
11997 * windows-nat.c (windows_can_run): Add 'self' argument.
11998 * target.h (struct target_ops) <to_can_run>: Add argument.
11999 (target_can_run): Add argument.
12000 * target.c (debug_to_can_run): Add argument.
12001 (update_current_target): Update.
12002 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12003 * inf-child.c (inf_child_can_run): Add 'self' argument.
12004 * go32-nat.c (go32_can_run): Add 'self' argument.
12005
d796e1d6
TT
120062014-02-19 Tom Tromey <tromey@redhat.com>
12007
12008 * target.h (struct target_ops) <to_has_exited>: Add argument.
12009 (target_has_exited): Add argument.
12010 * target.c (debug_to_has_exited): Add argument.
12011 (update_current_target): Update.
12012
ff214e67
TT
120132014-02-19 Tom Tromey <tromey@redhat.com>
12014
12015 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12016 argument.
12017 (target_set_syscall_catchpoint): Add argument.
12018 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12019 argument.
12020 * target.c (update_current_target): Update.
12021
758e29d2
TT
120222014-02-19 Tom Tromey <tromey@redhat.com>
12023
12024 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12025 argument.
12026 (target_remove_exec_catchpoint): Add argument.
12027 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12028 (update_current_target): Update.
12029 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12030 argument.
12031
ba025e51
TT
120322014-02-19 Tom Tromey <tromey@redhat.com>
12033
12034 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12035 argument.
12036 (target_insert_exec_catchpoint): Add argument.
12037 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12038 (update_current_target): Update.
12039 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12040 argument.
12041
e98cf0cd
TT
120422014-02-19 Tom Tromey <tromey@redhat.com>
12043
12044 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12045 argument.
12046 (target_remove_vfork_catchpoint): Add argument.
12047 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12048 (update_current_target): Update.
12049 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12050 argument.
12051
3ecc7da0
TT
120522014-02-19 Tom Tromey <tromey@redhat.com>
12053
12054 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12055 argument.
12056 (target_insert_vfork_catchpoint): Add argument.
12057 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12058 (update_current_target): Update.
12059 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12060 argument.
12061
973fc227
TT
120622014-02-19 Tom Tromey <tromey@redhat.com>
12063
12064 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12065 argument.
12066 (target_remove_fork_catchpoint): Add argument.
12067 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12068 (update_current_target): Update.
12069 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12070 argument.
12071
a863b201
TT
120722014-02-19 Tom Tromey <tromey@redhat.com>
12073
12074 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12075 argument.
12076 (target_insert_fork_catchpoint): Add argument.
12077 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12078 (update_current_target): Update.
12079 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12080 argument.
12081
2e97a79e
TT
120822014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12085 argument.
12086 (target_post_startup_inferior): Add argument.
12087 * target.c (debug_to_post_startup_inferior): Add argument.
12088 (update_current_target): Update.
12089 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12090 argument.
12091 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12092 argument.
12093 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12094 argument.
12095 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12096 argument.
12097 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12098 'self' argument.
12099 (super_post_startup_inferior): Likewise.
12100 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12101 'self' argument.
12102 (super_post_startup_inferior): Likewise.
12103 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12104 Add 'self' argument.
12105 (super_post_startup_inferior): Likewise.
12106
71a9f134
TT
121072014-02-19 Tom Tromey <tromey@redhat.com>
12108
12109 * target.h (struct target_ops) <to_load>: Add argument.
12110 * target.c (target_load): Add argument.
12111 (debug_to_load): Add argument.
12112 (update_current_target): Update.
12113 * remote.c (remote_load): Add 'self' argument.
12114 * remote-sim.c (gdbsim_load): Add 'self' argument.
12115 * remote-mips.c (mips_load): Add 'self' argument.
12116 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12117 * monitor.c (monitor_load): Add 'self' argument.
12118 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12119
0a4f40a2
TT
121202014-02-19 Tom Tromey <tromey@redhat.com>
12121
12122 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12123 (target_terminal_info): Add argument.
12124 * target.c (debug_to_terminal_info): Add argument.
12125 (default_terminal_info): Likewise.
12126 * inflow.c (child_terminal_info): Add 'self' argument.
12127 * inferior.h (child_terminal_info): Add 'self' argument.
12128 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12129
ae3bd431
TT
121302014-02-19 Tom Tromey <tromey@redhat.com>
12131
12132 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12133 argument.
12134 (target_terminal_save_ours): Add argument.
12135 * target.c (debug_to_terminal_save_ours): Add argument.
12136 (update_current_target): Update.
12137 * inflow.c (terminal_save_ours): Add 'self' argument.
12138 * inferior.h (terminal_save_ours): Add 'self' argument.
12139
e3594fd1
TT
121402014-02-19 Tom Tromey <tromey@redhat.com>
12141
12142 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12143 (target_terminal_ours): Add argument.
12144 * target.c (debug_to_terminal_ours): Add argument.
12145 (update_current_target): Update.
12146 * remote.c (remote_terminal_ours): Add 'self' argument.
12147 (remote_close): Update.
12148 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12149 * inflow.c (terminal_ours): Add 'self' argument.
12150 * inferior.h (terminal_ours): Add 'self' argument.
12151 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12152
2e1e1a19
TT
121532014-02-19 Pedro Alves <palves@redhat.com>
12154 Tom Tromey <tromey@redhat.com>
12155
12156 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12157 argument.
12158 (target_terminal_ours_for_output): Add argument.
12159 * target.c (debug_to_terminal_ours_for_output): Add argument.
12160 (update_current_target): Update.
12161 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12162 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12163 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12164
d2f640d4
TT
121652014-02-19 Tom Tromey <tromey@redhat.com>
12166
12167 * target.h (struct target_ops) <to_terminal_inferior>: Add
12168 argument.
12169 * target.c (target_terminal_inferior): Add argument.
12170 (update_current_target): Update.
12171 * remote.c (remote_terminal_inferior): Add 'self' argument.
12172 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12173 * inflow.c (terminal_inferior): Add 'self' argument.
12174 * inferior.h (terminal_inferior): Add 'self' argument.
12175 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12176 (go32_terminal_inferior): Add 'self' argument.
12177
c42bf286
TT
121782014-02-19 Tom Tromey <tromey@redhat.com>
12179
12180 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12181 (target_terminal_init): Add argument.
12182 * target.c (debug_to_terminal_init): Add argument.
12183 (update_current_target): Update.
12184 * inflow.c (terminal_init_inferior): Add 'self' argument.
12185 * inferior.h (terminal_init_inferior): Add 'self' argument.
12186 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12187 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12188
c3a5ff89
TT
121892014-02-19 Tom Tromey <tromey@redhat.com>
12190
12191 * target.h (struct target_ops)
12192 <to_can_accel_watchpoint_condition>: Add argument.
12193 (target_can_accel_watchpoint_condition): Add argument.
12194 * target.c (debug_to_can_accel_watchpoint_condition): Add
12195 argument.
12196 (update_current_target): Update.
12197 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12198 'self' argument.
12199
31568a15
TT
122002014-02-19 Tom Tromey <tromey@redhat.com>
12201
12202 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12203 Add argument.
12204 (target_region_ok_for_hw_watchpoint): Add argument.
12205 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12206 (default_region_ok_for_hw_watchpoint): Add argument.
12207 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12208 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12209 argument.
12210 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12211 argument.
12212 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12213 argument.
12214 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12215 'self' argument.
12216 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12217 'self' argument.
12218 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12219 'self' argument.
12220 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12221 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12222 'self' argument.
12223 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12224 Add 'self' argument.
12225
7bb99c53
TT
122262014-02-19 Tom Tromey <tromey@redhat.com>
12227
12228 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12229 argument.
12230 (target_insert_watchpoint): Add argument.
12231 * target.c (debug_to_insert_watchpoint): Add argument.
12232 (update_current_target): Update.
12233 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12234 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12235 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12236 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12237 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12238 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12239 argument.
12240 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12241 (procfs_insert_hw_watchpoint): Add 'self' argument.
12242 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12243 argument.
12244 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12245 argument.
12246 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12247 argument.
12248 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12249 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12250 argument.
12251 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12252 'self' argument.
12253
11b5219a
TT
122542014-02-19 Tom Tromey <tromey@redhat.com>
12255
12256 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12257 argument.
12258 (target_remove_watchpoint): Add argument.
12259 * target.c (debug_to_remove_watchpoint): Add argument.
12260 (update_current_target): Update.
12261 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12262 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12263 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12264 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12265 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12266 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12267 argument.
12268 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12269 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12270 argument.
12271 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12272 argument.
12273 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12274 argument.
12275 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12276 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12277 argument.
12278 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12279 'self' argument.
12280
a64dc96c
TT
122812014-02-19 Tom Tromey <tromey@redhat.com>
12282
12283 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12284 argument.
12285 (target_remove_hw_breakpoint): Add argument.
12286 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12287 (update_current_target): Update.
12288 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12289 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12290 argument.
12291 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12292 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12293 argument.
12294 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12295 'self' argument.
12296
23a26771
TT
122972014-02-19 Tom Tromey <tromey@redhat.com>
12298
12299 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12300 argument.
12301 (target_insert_hw_breakpoint): Add argument.
12302 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12303 (update_current_target): Update.
12304 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12305 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12306 argument.
12307 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12308 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12309 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12310 argument.
12311 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12312 'self' argument.
12313
5461485a
TT
123142014-02-19 Tom Tromey <tromey@redhat.com>
12315
12316 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12317 argument.
12318 (target_can_use_hardware_watchpoint): Add argument.
12319 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12320 (update_current_target): Update.
12321 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12322 argument.
12323 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12324 argument.
12325 * remote.c (remote_check_watch_resources): Add 'self' argument.
12326 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12327 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12328 argument.
12329 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12330 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12331 argument.
12332 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12333 argument.
12334 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12335 argument.
12336 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12337 argument.
12338 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12339 argument.
12340 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12341 argument.
12342 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12343 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12344 argument.
12345 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12346 'self' argument.
12347
f045800c
TT
123482014-02-19 Tom Tromey <tromey@redhat.com>
12349
12350 * target.h (struct target_ops) <to_post_attach>: Add argument.
12351 (target_post_attach): Add argument.
12352 * target.c (debug_to_post_attach): Add argument.
12353 (update_current_target): Update.
12354 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12355 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12356 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12357 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12358 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12359
de90e03d
TT
123602014-02-19 Tom Tromey <tromey@redhat.com>
12361
12362 * windows-nat.c (windows_close): Add 'self' argument.
12363 * tracepoint.c (tfile_close): Add 'self' argument.
12364 * target.h (struct target_ops) <to_close>: Add argument.
12365 * target.c (target_close): Add argument.
12366 (update_current_target): Update.
12367 * remote.c (remote_close): Add 'self' argument.
12368 * remote-sim.c (gdbsim_close): Add 'self' argument.
12369 * remote-mips.c (mips_close): Add 'self' argument.
12370 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12371 * record-full.c (record_full_close): Add 'self' argument.
12372 * record-btrace.c (record_btrace_close): Add 'self' argument.
12373 * monitor.h (monitor_close): Add 'self' argument.
12374 * monitor.c (monitor_close): Add 'self' argument.
12375 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12376 * linux-nat.c (linux_nat_close): Add argument.
12377 * go32-nat.c (go32_close): Add 'self' argument.
12378 * exec.c (exec_close_1): Add 'self' argument.
12379 * ctf.c (ctf_close): Add 'self' argument.
12380 * corelow.c (core_close): Add 'self' argument.
12381 (core_close_cleanup): Update.
12382 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12383 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12384
9dd130a0
TT
123852014-02-19 Tom Tromey <tromey@redhat.com>
12386
12387 * remote.c (remote_load): New function.
12388 (init_remote_ops): Use it.
12389
46917d26
TT
123902014-02-19 Tom Tromey <tromey@redhat.com>
12391
12392 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12393 argument.
12394 * common/linux-btrace.h (linux_supports_btrace): Update.
12395 * remote.c (remote_supports_btrace): Add "self" argument.
12396 * target-delegates.c: Rebuild.
12397 * target.c (target_supports_btrace): Remove.
12398 * target.h (struct target_ops) <to_supports_btrace>: Add
12399 target_ops argument.
12400 (target_supports_btrace): New define.
12401
6b84065d
TT
124022014-02-19 Tom Tromey <tromey@redhat.com>
12403
12404 * record-full.c (record_full_beneath_to_resume_ops)
12405 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12406 (record_full_beneath_to_wait)
12407 (record_full_beneath_to_store_registers_ops)
12408 (record_full_beneath_to_store_registers)
12409 (record_full_beneath_to_xfer_partial_ops)
12410 (record_full_beneath_to_xfer_partial)
12411 (record_full_beneath_to_insert_breakpoint_ops)
12412 (record_full_beneath_to_insert_breakpoint)
12413 (record_full_beneath_to_remove_breakpoint_ops)
12414 (record_full_beneath_to_remove_breakpoint)
12415 (record_full_beneath_to_stopped_by_watchpoint)
12416 (record_full_beneath_to_stopped_data_address)
12417 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12418 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12419 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12420 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12421 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12422 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12423 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12424 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12425 (record_full_resume, record_full_wait_1)
12426 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12427 (record_full_store_registers, record_full_xfer_partial)
12428 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12429 (record_full_async, record_full_core_xfer_partial): Use target
12430 delegation.
12431 * target-delegates.c: Rebuild.
12432 * target.c (current_xfer_partial): Remove.
12433 (update_current_target): Do not INHERIT or de_fault
12434 to_insert_breakpoint, to_remove_breakpoint,
12435 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12436 to_is_async_p, to_async. Do not set to_xfer_partial field.
12437 (default_xfer_partial): Simplify.
12438 (current_xfer_partial): Remove.
12439 (target_wait, target_resume): Simplify.
12440 (find_default_can_async_p, find_default_is_async_p): Update.
12441 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12442 to_xfer_partial, to_stopped_by_watchpoint,
12443 to_stopped_data_address.
12444 (target_store_registers): Simplify.
12445 (forward_target_remove_breakpoint)
12446 (forward_target_insert_breakpoint): Remove.
12447 (target_remove_breakpoint, target_insert_breakpoint)
12448 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12449 * target.h (struct target_ops) <to_resume, to_wait,
12450 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12451 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12452 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12453 markup.
12454 (forward_target_remove_breakpoint)
12455 (forward_target_insert_breakpoint): Remove.
12456 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12457 directly.
12458 (record_btrace_insert_breakpoint): Delegate directly.
12459
1101cb7b
TT
124602014-02-19 Tom Tromey <tromey@redhat.com>
12461
12462 PR build/7701:
12463 * target-delegates.c: New file.
12464 * target.c: Include target-delegates.c.
12465 (init_dummy_target): Call install_dummy_methods.
12466 (complete_target_initialization): Call install_delegators.
12467 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12468 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12469 * make-target-delegates: New file.
12470
8b06beed
TT
124712014-02-19 Tom Tromey <tromey@redhat.com>
12472
12473 * record.c (find_record_target): Use find_target_at.
12474 * target.c (find_target_at): New function.
12475 * target.h (find_target_at): Declare.
12476
6a109b6b
TT
124772014-02-19 Tom Tromey <tromey@redhat.com>
12478
12479 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12480 Add 'ops' argument.
12481 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12482 'ops' argument.
12483 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12484 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12485 'ops' argument.
12486 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12487 argument.
12488 * linux-nat.c (save_sigtrap): Update.
12489 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12490 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12491 (linux_nat_close): Update.
12492 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12493 argument.
12494 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12495 argument.
12496 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12497 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12498 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12499 (tmp_to_async): Add 'ops' argument.
12500 (record_full_stopped_by_watchpoint, record_full_async)
12501 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12502 argument.
12503 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12504 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12505 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12506 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12507 (remote_is_async_p, remote_async): Add 'ops' argument.
12508 (remote_stopped_data_address): Update.
12509 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12510 * target.c (update_current_target)
12511 (find_default_can_async_p, find_default_is_async_p): Update.
12512 (init_dummy_target): Update.
12513 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12514 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12515 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12516 (target_can_async_p, target_is_async_p, target_async)
12517 (target_stopped_by_watchpoint): Update.
12518
e095146b
YQ
125192014-02-19 Yao Qi <yao@codesourcery.com>
12520
12521 PR gdb/16220
12522 * gdbarch.sh: Remove startup_gdbarch.
12523 * gdbarch.c: Regenerated.
12524 * gdbarch.h: Likewise.
12525
bc3c6b36
KB
125262014-02-17 Kevin Buettner <kevinb@redhat.com>
12527
12528 * rl78-tdep.c (rl78_g10_register_name): New function.
12529 (rl78_return_value): Add g10 support.
12530 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12531 g10.
12532
98dc0167 125332014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12534
12535 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12536 (SUBDIR_GUILE_SRCS): Ditto.
12537 (scm-gsmob.o): Ditto.
12538
842c05cd
YQ
125392014-02-17 Yao Qi <yao@codesourcery.com>
12540
12541 * gnu-nat.c (ILL_RPC): Declare defined function.
12542
25c0bd04
YQ
125432014-02-17 Yao Qi <yao@codesourcery.com>
12544
12545 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12546 mach_msg_type_number_t.
12547 (gnu_write_inferior): Likewise.
12548
a9a758e3
YQ
125492014-02-17 Yao Qi <yao@codesourcery.com>
12550
12551 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12552 in format string.
12553 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12554 (inf_validate_procs, inf_signal): Likewise.
12555 (S_exception_raise_request): Likewise.
12556 (do_mach_notify_dead_name): Likewise.
12557 (steal_exc_port): Likewise.
12558 (gnu_read_inferior): Change 'copy_count''s type to
12559 mach_msg_type_number_t.
12560 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12561 format string.
12562
bae8023e
TS
125632014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12564
c82f56d9
TS
12565 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12566 flag. Adjust all users; in particular...
12567 (gnu_wait): ..., don't decrement its value in here...
12568 (gnu_create_inferior): ..., and instead set the flag in here,
12569 around the startup_inferior call, and call that one with
12570 START_INFERIOR_TRAPS_EXPECTED.
12571
3398af6a
TS
12572 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12573 (ILL_RPC): ... new macro.
12574 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12575 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12576 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12577 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12578 functions with ILL_RPC macro.
12579 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12580 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12581 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12582 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12583 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12584 (S_proc_getlogin_reply, S_proc_getsid_reply)
12585 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12586 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12587 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12588 (S_proc_getnports_reply, S_proc_is_important_reply)
12589 (S_proc_get_code_reply): New stub functions, generated with
12590 ILL_RPC macro.
12591
d47642c9
TS
12592 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12593 collected the type check structures.
12594
bae8023e
TS
12595 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12596
8a55ffb0
DE
125972014-02-14 Doug Evans <dje@google.com>
12598
12599 * target.c (target_write_partial): Fix result type.
12600
c2853f3d
JM
126012014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12602
12603 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12604 the proper offsets to access fpregset_t.
12605
ac61d2db
SA
126062014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12607
12608 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12609 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12610 * h8300-tdep.c (setmachinelist): Remove global.
12611 * hppa-tdep.c (hppa_sigtramp): Remove global.
12612 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12613 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12614 * ravenscar-thread.c (update_target_observer): Remove global.
12615 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12616
9d2d0b8b
TT
126172014-02-12 Tom Tromey <tromey@redhat.com>
12618
12619 * common/rsp-low.c: Update comments.
12620 * common/rsp-low.h: Update comments.
12621
a7191e8b
TT
126222014-02-12 Tom Tromey <tromey@redhat.com>
12623
12624 * common/rsp-low.c (convert_ascii_to_int): Remove.
12625 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12626
ff0e980e
TT
126272014-02-12 Tom Tromey <tromey@redhat.com>
12628
12629 * common/rsp-low.h (unhexify): Don't declare.
12630 * common/rsp-low.c (unhexify): Remove.
12631
e9371aff
TT
126322014-02-12 Tom Tromey <tromey@redhat.com>
12633
12634 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12635 * common/rsp-low.c (convert_int_to_ascii): Remove.
12636
971dc0b8
TT
126372014-02-12 Tom Tromey <tromey@redhat.com>
12638
12639 * common/rsp-low.h (hexify): Don't declare.
12640 * common/rsp-low.c (hexify): Remove.
12641
0a822afb
TT
126422014-02-12 Tom Tromey <tromey@redhat.com>
12643
12644 * common/rsp-low.c (hexify): Never take strlen of argument.
12645
9f1b45b0
TT
126462014-02-12 Tom Tromey <tromey@redhat.com>
12647
12648 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12649 * remote.c (extended_remote_run, remote_rcmd)
12650 (remote_download_trace_state_variable, remote_save_trace_data)
12651 (remote_set_trace_notes): Update.
12652 * tracepoint.c (encode_source_string, tfile_write_status)
12653 (tfile_write_uploaded_tsv): Update.
12654
9c3d6531
TT
126552014-02-12 Tom Tromey <tromey@redhat.com>
12656
12657 * tracepoint.c: Include rsp-low.h.
12658 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12659 * remote.c: Include rsp-low.h.
12660 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12661 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12662 (remote_unescape_input): Move to common/rsp-low.c.
12663 * common/rsp-low.h: New file.
12664 * common/rsp-low.c: New file.
12665 * Makefile.in (SFILES): Add common/rsp-low.c.
12666 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12667 (COMMON_OBS): Add rsp-low.o.
12668 (rsp-low.o): New target.
12669
01fd3ea5
TT
126702014-02-12 Tom Tromey <tromey@redhat.com>
12671
12672 * utils.h: Include print-utils.h.
12673 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12674 (int_string, core_addr_to_string, core_addr_to_string_nz)
12675 (hex_string, hex_string_custom): Don't declare.
12676 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12677 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12678 (hex_string_custom, int_string, core_addr_to_string)
12679 (core_addr_to_string_nz, host_address_to_string): Move to
12680 common/print-utils.c.
12681 * common/print-utils.h: New file.
12682 * common/print-utils.c: New file
12683 * Makefile.in (SFILES): Add common/print-utils.c.
12684 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12685 (COMMON_OBS): Add print-utils.o.
12686 (print-utils.o): New target.
12687
9fb50108
TT
126882014-02-12 Tom Tromey <tromey@redhat.com>
12689
12690 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12691
0548b5db
MK
126922014-02-12 Mark Kettenis <kettenis@gnu.org>
12693
12694 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12695
493443a4
MK
126962014-02-12 Mark Kettenis <kettenis@gnu.org>
12697
12698 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12699 if a PT_IO ptrace request returns sucessfully but indicates that 0
12700 bytes were transferred.
12701
706d0883
PA
127022014-02-12 Pedro Alves <palves@redhat.com>
12703 Kevin Buettner <kevinb@redhat.com>
12704
12705 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12706 TYPE_INSTANCE_FLAG_CODE_SPACE.
12707
5caa2f0b
PA
127082014-02-12 Pedro Alves <palves@redhat.com>
12709
12710 * h8300-tdep.c (pseudo_from_raw_register)
12711 (raw_from_pseudo_register): New functions.
12712 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12713 them.
12714
76fd5f74
PA
127152014-02-12 Pedro Alves <palves@redhat.com>
12716
12717 * h8300-tdep.c (h8300_register_sim_regno): New function.
12718 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12719 gdbarch_register_sim_regno hook.
12720
8f008406
SA
127212014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12722
12723 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12724
195abc10
SA
127252014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12726
12727 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12728
93ffa5b9
MK
127292014-02-12 Mark Kettenis <kettenis@gnu.org>
12730
12731 * obsd-tdep.h (obsd_init_abi): New prototype.
12732 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12733 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12734 (obsd_init_abi): New functions.
12735 * i386obsd-tdep.c: Include "obsd-tdep.h".
12736 (i386obsd_init_abi): Call obsd_init_abi.
12737 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12738 (amd64obsd_init_abi): Call obsd_init_abi.
12739 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12740 obsd-tdep.c to gdb_target_obs.
12741
49caec94
JM
127422014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12743
12744 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12745 double float arguments to 16-byte in the argument slots.
12746
e1402065
DE
127472014-02-11 Doug Evans <xdje42@gmail.com>
12748
12749 * configure.ac: Don't crash if pkg-config is not found and guile
12750 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12751 in guile checks.
12752 * configure: Regenerate.
12753
edcc890f
YQ
127542014-02-11 Yao Qi <yao@codesourcery.com>
12755
12756 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12757 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12758 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12759 * gnu-nat.c (gnu_xfer_memory): Likewise.
12760 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12761 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12762 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12763 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12764
9b409511
YQ
127652014-02-11 Yao Qi <yao@codesourcery.com>
12766
12767 * target.h (enum target_xfer_error): Rename to ...
12768 (enum target_xfer_status): ... it. New. All users updated.
12769 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12770 New.
12771 (TARGET_XFER_STATUS_ERROR_P): New macro.
12772 (target_xfer_error_to_string): Remove declaration.
12773 (target_xfer_status_to_string): Declare.
12774 (target_xfer_partial_ftype): Adjust it.
12775 (struct target_ops) <to_xfer_partial>: Return
12776 target_xfer_status. Add argument xfered_len. Update
12777 comments.
12778 * target.c (target_xfer_error_to_string): Rename to ...
12779 (target_xfer_status_to_string): ... it. New. All callers
12780 updated.
12781 (target_read_live_memory): Likewise. Call target_xfer_partial
12782 instead of target_read.
12783 (memory_xfer_live_readonly_partial): Return
12784 target_xfer_status. Add argument xfered_len.
12785 (raw_memory_xfer_partial): Likewise.
12786 (memory_xfer_partial_1): Likewise.
12787 (memory_xfer_partial): Likewise.
12788 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12789 properly. Update debug message.
12790 (default_xfer_partial, current_xfer_partial): Likewise.
12791 (target_write_partial): Likewise.
12792 (target_read_partial): Likewise. All callers updated.
12793 (read_whatever_is_readable): Likewise.
12794 (target_write_with_progress): Likewise.
12795 (target_read_alloc_1): Likewise.
12796
12797 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12798 * auxv.c (procfs_xfer_auxv): Likewise.
12799 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12800 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12801 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12802 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12803 * corefile.c (read_memory): Adjust.
12804 * corelow.c (core_xfer_partial): Likewise.
12805 * ctf.c (ctf_xfer_partial): Likewise.
12806 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12807 updated.
12808 (darwin_xfer_partial): Likewise.
12809 * exec.c (section_table_xfer_memory_partial): Likewise. All
12810 callers updated.
12811 (exec_xfer_partial): Likewise.
12812 * exec.h (section_table_xfer_memory_partial): Update
12813 declaration.
12814 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12815 negative.
12816 (gnu_xfer_partial): Likewise.
12817 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12818 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12819 (ia64_hpux_xfer_solib_got): Likewise.
12820 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12821 type of 'partial_len' to ULONGEST.
12822 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12823 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12824 (linux_nat_xfer_partial): Likewise.
12825 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12826 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12827 * monitor.c (monitor_xfer_memory): Likewise.
12828 (monitor_xfer_partial): Likewise.
12829 * procfs.c (procfs_xfer_partial): Likewise.
12830 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12831 * record-full.c (record_full_xfer_partial): Likewise.
12832 (record_full_core_xfer_partial): Likewise.
12833 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12834 (gdbsim_xfer_partial): Likewise.
12835 * remote.c (remote_write_bytes_aux): Likewise. All callers
12836 updated.
12837 (remote_write_bytes, remote_read_bytes): Likewise. All
12838 callers updated.
12839 (remote_flash_erase): Likewise. All callers updated.
12840 (remote_write_qxfer): Likewise. All callers updated.
12841 (remote_read_qxfer): Likewise. All callers updated.
12842 (remote_xfer_partial): Likewise.
12843 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12844 (rs6000_xfer_shared_libraries): Likewise.
12845 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12846 (sol_thread_xfer_partial): Likewise.
12847 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12848 (sparc_xfer_partial): Likewise.
12849 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12850 updated.
12851 (spu_xfer_partial): Likewise.
12852 * spu-multiarch.c (spu_xfer_partial): Likewise.
12853 * tracepoint.c (tfile_xfer_partial): Likewise.
12854 * windows-nat.c (windows_xfer_memory): Likewise.
12855 (windows_xfer_shared_libraries): Likewise.
12856 (windows_xfer_partial): Likewise.
12857 * valprint.c: Replace 'target_xfer_error' with
12858 'target_xfer_status' in comments.
12859
a8e63083
JB
128602014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12861
12862 Checked in by Joel Brobecker <brobecker@adacore.com>.
12863 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12864
e86b67d3
JB
128652014-02-11 Joel Brobecker <brobecker@adacore.com>
12866
12867 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12868 function parameters.
12869
4b7d1f7f
WN
128702014-02-10 Will Newton <will.newton@linaro.org>
12871
12872 * elfread.c (elf_rel_plt_read): Look for a .got section if
12873 looking up .got.plt fails.
12874 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12875 on address passed to elf_gnu_ifunc_record_cache.
12876 (elf_gnu_ifunc_resolve_addr): Likewise.
12877 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12878
961842b2
JM
128792014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12880
12881 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12882 (X_RETTURN): New macro.
12883 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12884
12885 * sparc64-tdep.c (sparc64_init_abi): Hook
12886 sparc_in_function_epilogue_p.
12887
3f03e7b1
GB
128882014-02-10 Gary Benson <gbenson@redhat.com>
12889
12890 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12891 Rename name_matcher to symbol_matcher.
12892
96f861ef
GB
128932014-02-10 Gary Benson <gbenson@redhat.com>
12894
12895 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12896 Use expand_symtabs_file_matcher_ftype and
12897 expand_symtabs_symbol_matcher_ftype.
12898
ee01b665
JB
128992014-02-10 Joel Brobecker <brobecker@adacore.com>
12900
12901 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12902 (struct ada_symbol_cache): New.
12903 (ada_free_symbol_cache): Forward declare.
12904 (struct ada_pspace_data): New.
12905 (ada_pspace_data_handle): New static global.
12906 (get_ada_pspace_data, ada_pspace_data_cleanup)
12907 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12908 (cache_space, cache): Delete, now folded inside struct
12909 ada_pspace_data.
12910 (ada_get_symbol_cache): New function.
12911 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12912 implementation.
12913 (_initialize_ada_language): Remove initialization of cache_space.
12914 Move call to observer_attach_inferior_exit up, grouping it
12915 with the other observer registrations inside this function.
12916 Rename command to be more general. Add call to
12917 register_program_space_data_with_cleanup.
12918
143adbbf
JB
129192014-02-10 Joel Brobecker <brobecker@adacore.com>
12920
12921 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12922 ada_new_objfile_observer.
12923 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12924 (_initialize_tasks): Update uses of ada_new_objfile_observer
12925 and ada_tasks_normal_stop_observer.
12926
aa4fb036
JB
129272014-02-10 Joel Brobecker <brobecker@adacore.com>
12928
12929 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12930 returned by the 'Length attribute to integer.
12931
9dee8cc6
JB
129322014-02-10 Joel Brobecker <brobecker@adacore.com>
12933
12934 * ada-lang.c (_initialize_ada_language): Initialize
12935 cache_space obstack.
12936
3d9434b5
JB
129372014-02-10 Joel Brobecker <brobecker@adacore.com>
12938
12939 * ada-lang.c (HASH_SIZE): New macro.
12940 (struct cache_entry): New type.
12941 (cache_space, cache): New static globals.
12942 (ada_clear_symbol_cache, find_entry): New functions.
12943 (lookup_cached_symbol, cache_symbol): Implement.
12944 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12945 (_initialize_ada_language): Attach ada_new_objfile_observer
12946 and ada_free_objfile_observer.
12947
f0c5f9b2
JB
129482014-02-10 Joel Brobecker <brobecker@adacore.com>
12949
12950 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12951 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12952 struct block * parameter.
12953 (ada_lookup_symbol_list_worker): Constify local variable "block".
12954 Remove cast which is no longer necessary.
12955
ed3ef339
DE
129562014-02-10 Doug Evans <xdje42@gmail.com>
12957
12958 Add Guile as an extension language.
12959 * NEWS: Mention Guile scripting.
12960 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12961 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12962 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12963 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12964 (CLIBS): Add GUILE_LIBS.
12965 (install-guile): New rule.
12966 (guile.o): New rule.
12967 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12968 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12969 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12970 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12971 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12972 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12973 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12974 * configure.ac: New option --with-guile.
12975 * configure: Regenerate.
12976 * config.in: Regenerate.
12977 * auto-load.c: Remove #include "python/python.h". Add #include
12978 "gdb/section-scripts.h".
12979 (source_section_scripts): Handle Guile scripts.
12980 (_initialize_auto_load): Add name of Guile objfile script to
12981 scripts-directory help text.
12982 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12983 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12984 (struct breakpoint): New member scm_bp_object.
12985 * defs.h (enum command_control_type): New value guile_control.
12986 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12987 "extension.h".
12988 (show_user): Update comment.
12989 (_initialize_cli_cmds): Update help text for "show user". Update help
12990 text for max-user-call-depth.
12991 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12992 "extension.h".
12993 (multi_line_command_p): Add guile_control.
12994 (print_command_lines): Handle guile_control.
12995 (execute_control_command, recurse_read_control_structure): Ditto.
12996 (process_next_line): Recognize "guile" commands.
12997 * disasm.c (gdb_disassemble_info): Make non-static.
12998 * disasm.h: #include "dis-asm.h".
12999 (struct gdbarch): Add forward decl.
13000 (gdb_disassemble_info): Declare.
13001 * extension.c: #include "guile/guile.h".
13002 (extension_languages): Add guile.
13003 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13004 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13005 * gdbtypes.c (get_unsigned_type_max): New function.
13006 (get_signed_type_minmax): New function.
13007 * gdbtypes.h (get_unsigned_type_max): Declare.
13008 (get_signed_type_minmax): Declare.
13009 * guile/README: New file.
13010 * guile/guile-internal.h: New file.
13011 * guile/guile.c: New file.
13012 * guile/guile.h: New file.
13013 * guile/scm-arch.c: New file.
13014 * guile/scm-auto-load.c: New file.
13015 * guile/scm-block.c: New file.
13016 * guile/scm-breakpoint.c: New file.
13017 * guile/scm-disasm.c: New file.
13018 * guile/scm-exception.c: New file.
13019 * guile/scm-frame.c: New file.
13020 * guile/scm-gsmob.c: New file.
13021 * guile/scm-iterator.c: New file.
13022 * guile/scm-lazy-string.c: New file.
13023 * guile/scm-math.c: New file.
13024 * guile/scm-objfile.c: New file.
13025 * guile/scm-ports.c: New file.
13026 * guile/scm-pretty-print.c: New file.
13027 * guile/scm-safe-call.c: New file.
13028 * guile/scm-string.c: New file.
13029 * guile/scm-symbol.c: New file.
13030 * guile/scm-symtab.c: New file.
13031 * guile/scm-type.c: New file.
13032 * guile/scm-utils.c: New file.
13033 * guile/scm-value.c: New file.
13034 * guile/lib/gdb.scm: New file.
13035 * guile/lib/gdb/boot.scm: New file.
13036 * guile/lib/gdb/experimental.scm: New file.
13037 * guile/lib/gdb/init.scm: New file.
13038 * guile/lib/gdb/iterator.scm: New file.
13039 * guile/lib/gdb/printing.scm: New file.
13040 * guile/lib/gdb/types.scm: New file.
13041 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13042 (VPATH): Add $(GUILE_SRCDIR).
13043 (GUILE_DIR): New variable.
13044 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13045 (all): Add stamp-guile dependency.
13046 (stamp-guile): New rule.
13047 (clean-guile, install-guile, uninstall-guile): New rules.
13048 (install-only): Add install-guile dependency.
13049 (uninstall): Add uninstall-guile dependency.
13050 (clean): Add clean-guile dependency.
13051
ac020ec5
DE
130522014-02-09 Doug Evans <xdje42@gmail.com>
13053
13054 Revert this patch (which I approved, mea culpa).
13055
13056 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13057
13058 * Makefile.in (all-lib): Remove.
13059 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13060
2a081c59
JK
130612014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13062
13063 Fix Python stack corruption.
13064 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13065 gdb_py_longest.
13066
0a6bd22d
MK
130672014-02-08 Mark Kettenis <kettenis@gnu.org>
13068
13069 * Makefile.in (all-lib): Remove.
13070 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13071
1a860409
DE
130722014-02-07 Doug Evans <dje@google.com>
13073
13074 * extension-priv.h (extension_language_script_ops): Add comment.
13075 (extension_language_ops): Add comment.
caf5a491 13076 (active_ext_lang_state): Fix typo in comment.
1a860409 13077
d137e6dc
PA
130782014-02-07 Pedro Alves <palves@redhat.com>
13079
0dcb32c3 13080 PR breakpoints/16292
d137e6dc
PA
13081 * infrun.c (handle_signal_stop) <signal arrives while stepping
13082 over a breakpoint>: Switch back to the stepping thread.
13083
ce6d0892
YQ
130842014-02-07 Yao Qi <yao@codesourcery.com>
13085
13086 * target.c (target_xfer_partial): Return zero if LEN is zero.
13087
2ed4b548
YQ
130882014-02-07 Yao Qi <yao@codesourcery.com>
13089
13090 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13091 (ld_so_xfer_auxv): Likewise.
13092 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13093 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13094 * corelow.c (core_xfer_partial): Likewise.
13095 * ctf.c (ctf_xfer_partial): Likewise.
13096 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13097 (darwin_xfer_partial): Likewise.
13098 * exec.c (exec_xfer_partial): Likewise.
13099 * gnu-nat.c (gnu_xfer_partial): Likewise.
13100 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13101 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13102 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13103 * linux-nat.c (linux_xfer_siginfo): Likewise.
13104 (linux_proc_xfer_spu): Likewise.
13105 * procfs.c (procfs_xfer_partial): Likewise.
13106 * record-full.c (record_full_xfer_partial): Likewise.
13107 (record_full_core_xfer_partial): Likewise.
13108 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13109 * remote.c (remote_write_qxfer): Likewise.
13110 (remote_write_qxfer, remote_read_qxfer): Likewise.
13111 (remote_xfer_partial): Likewise.
13112 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13113 (rs6000_xfer_shared_libraries): Likewise.
13114 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13115 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13116 (spu_xfer_partial): Likewise.
13117 * target.c (memory_xfer_partial_1): Likewise.
13118 * tracepoint.c (tfile_xfer_partial): Likewise.
13119 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13120 (windows_xfer_partial): Likewise.
13121
c09f20e4
YQ
131222014-02-07 Yao Qi <yao@codesourcery.com>
13123
13124 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13125 comments.
13126 (core_xfer_shared_libraries_aix): Likewise.
13127 * gdbarch.c, gdbarch.h: Regenerated.
13128 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13129 ULONGEST. Change 'len_avail' type to ULONGEST.
13130 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13131 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13132 declaration.
13133 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13134
8635b3bf
YQ
131352014-02-07 Yao Qi <yao@codesourcery.com>
13136
13137 * corefile.c (memory_error): Get 'exception' from ERR and pass
13138 'exception' to throw_error.
13139
6dddc817
DE
131402014-02-06 Doug Evans <xdje42@gmail.com>
13141
13142 * configure.ac (libpython checking): Remove all but python.o from
13143 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13144 * configure: Regenerate.
13145
13146 * Makefile.in (SFILES): Add extension.c.
13147 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13148 (COMMON_OBS): Add extension.o.
13149 * extension.h: New file.
13150 * extension-priv.h: New file.
13151 * extension.c: New file.
13152
13153 * python/python-internal.h: #include "extension.h".
13154 (gdbpy_auto_load_enabled): Declare.
13155 (gdbpy_apply_val_pretty_printer): Declare.
13156 (gdbpy_apply_frame_filter): Declare.
13157 (gdbpy_preserve_values): Declare.
13158 (gdbpy_breakpoint_cond_says_stop): Declare.
13159 (gdbpy_breakpoint_has_cond): Declare.
13160 (void source_python_script_for_objfile): Delete.
13161 * python/python.c: #include "extension-priv.h".
13162 Delete inclusion of "observer.h".
13163 (extension_language_python): Moved here and renamed from
13164 script_language_python in py-auto-load.c.
13165 Redefined to be of type extension_language_defn.
13166 (python_extension_script_ops): New global.
13167 (python_extension_ops): New global.
13168 (struct python_env): New member previous_active.
13169 (restore_python_env): Call restore_active_ext_lang.
13170 (ensure_python_env): Call set_active_ext_lang.
13171 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13172 New arg extlang.
13173 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13174 New arg extlang.
13175 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13176 New arg extlang.
13177 (gdbpy_eval_from_control_command): Renamed from
13178 eval_python_from_control_command, made static. New arg extlang.
13179 (gdbpy_source_script) Renamed from source_python_script, made static.
13180 New arg extlang.
13181 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13182 result to int. New arg extlang.
13183 (gdbpy_source_objfile_script): Renamed from
13184 source_python_script_for_objfile, made static. New arg extlang.
13185 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13186 static. New args extlang, extlang_printers. Change result type to
13187 "void".
13188 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13189 static. New arg extlang. Rename arg printers to extlang_printers
13190 and change type to ext_lang_type_printers *.
13191 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13192 static. Replace argument arg with extlang, extlang_printers.
13193 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13194 (!HAVE_PYTHON, source_python_script): Delete.
13195 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13196 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13197 (!HAVE_PYTHON, start_type_printers): Delete.
13198 (!HAVE_PYTHON, apply_type_printers): Delete.
13199 (!HAVE_PYTHON, free_type_printers): Delete.
13200 (_initialize_python): Delete call to observer_attach_before_prompt.
13201 (finalize_python): Set/restore active extension language.
13202 (gdbpy_finish_initialization) Renamed from
13203 finish_python_initialization, made static. New arg extlang.
13204 (gdbpy_initialized): New function.
13205 * python/python.h: #include "extension.h". Delete #include
13206 "value.h", "mi/mi-cmds.h".
13207 (extension_language_python): Declare.
13208 (GDBPY_AUTO_FILE_NAME): Delete.
13209 (enum py_bt_status): Moved to extension.h and renamed to
13210 ext_lang_bt_status.
13211 (enum frame_filter_flags): Moved to extension.h.
13212 (enum py_frame_args): Moved to extension.h and renamed to
13213 ext_lang_frame_args.
13214 (finish_python_initialization): Delete.
13215 (eval_python_from_control_command): Delete.
13216 (source_python_script): Delete.
13217 (apply_val_pretty_printer): Delete.
13218 (apply_frame_filter): Delete.
13219 (preserve_python_values): Delete.
13220 (gdbpy_script_language_defn): Delete.
13221 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13222 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13223
13224 * auto-load.c: #include "extension.h".
13225 (GDB_AUTO_FILE_NAME): Delete.
13226 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13227 (script_language_gdb): Delete, moved to extension.c and renamed to
13228 extension_language_gdb.
13229 (source_gdb_script_for_objfile): Delete.
13230 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13231 (loaded_script): Change type of language member to
13232 struct extension_language_defn *.
13233 (init_loaded_scripts_info): Initialize
13234 unsupported_script_warning_printed.
13235 (maybe_add_script): Make static. Change type of language arg to
13236 struct extension_language_defn *.
13237 (clear_section_scripts): Reset unsupported_script_warning_printed.
13238 (auto_load_objfile_script_1): Rewrite to use extension language API.
13239 (auto_load_objfile_script): Make public. Remove support-compiled-in
13240 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13241 (source_section_scripts): Rewrite to use extension language API.
13242 (load_auto_scripts_for_objfile): Rewrite to use
13243 auto_load_scripts_for_objfile.
13244 (collect_matching_scripts_data): Change type of language member to
13245 struct extension_language_defn *.
13246 (auto_load_info_scripts): Change type of language arg to
13247 struct extension_language_defn *.
13248 (unsupported_script_warning_print): New function.
13249 (script_not_found_warning_print): Make static.
13250 (_initialize_auto_load): Rewrite construction of scripts-directory
13251 help.
13252 * auto-load.h (struct objfile): Add forward decl.
13253 (struct script_language): Delete.
13254 (struct auto_load_pspace_info): Add forward decl.
13255 (struct extension_language_defn): Add forward decl.
13256 (maybe_add_script): Delete.
13257 (auto_load_objfile_script): Declare.
13258 (script_not_found_warning_print): Delete.
13259 (auto_load_info_scripts): Update prototype.
13260 (auto_load_gdb_scripts_enabled): Declare.
13261 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13262 auto_load_python_scripts_enabled and made public.
13263 (script_language_python): Delete, moved to python.c.
13264 (gdbpy_script_language_defn): Delete.
13265 (info_auto_load_python_scripts): Update to use
13266 extension_language_python.
13267
13268 * breakpoint.c (condition_command): Replace call to
13269 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13270 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13271 with call to breakpoint_ext_lang_cond_says_stop.
13272 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13273 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13274 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13275 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13276 New arg slang.
13277 (local_setattro): Print name of extension language with existing
13278 stop condition.
13279
13280 * valprint.c (val_print, value_print): Update to call
13281 apply_ext_lang_val_pretty_printer.
13282 * cp-valprint.c (cp_print_value): Update call to
13283 apply_ext_lang_val_pretty_printer.
13284 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13285 (gdbpy_apply_val_pretty_printer): Renamed from
13286 apply_val_pretty_printer. New arg extlang.
13287 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13288
13289 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13290 extension language API.
13291 * cli/cli-script.c (execute_control_command): Update to call
13292 eval_ext_lang_from_control_command.
13293
13294 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13295 enum ext_lang_bt_status values. Update call to
13296 apply_ext_lang_frame_filter.
13297 (mi_cmd_stack_list_locals): Ditto.
13298 (mi_cmd_stack_list_args): Ditto.
13299 (mi_cmd_stack_list_variables): Ditto.
13300 * mi/mi-main.c: Delete #include "python/python-internal.h".
13301 Add #include "extension.h".
13302 (mi_cmd_list_features): Replace reference to python internal variable
13303 gdb_python_initialized with call to ext_lang_initialized_p.
13304
13305 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13306 Update to use enum ext_lang_frame_args. Update to call
13307 apply_ext_lang_frame_filter.
13308 * python/py-framefilter.c (extract_sym): Update to use enum
13309 ext_lang_bt_status.
13310 (extract_value, py_print_type, py_print_value): Ditto.
13311 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13312 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13313 (py_print_frame): Ditto.
13314 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13315 New arg extlang. Update to use enum ext_lang_bt_status.
13316
13317 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13318 finish_python_initialization. Replace with call to
13319 finish_ext_lang_initialization.
13320
13321 * typeprint.c (do_free_global_table): Update to call
13322 free_ext_lang_type_printers.
13323 (create_global_typedef_table): Update to call
13324 start_ext_lang_type_printers.
13325 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13326 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13327 (type_print_options): Change type of global_printers from "void *"
13328 to "struct ext_lang_type_printers *".
13329
13330 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13331 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13332 (gdbpy_preserve_values): Renamed from preserve_python_values.
13333 New arg extlang.
13334 (!HAVE_PYTHON, preserve_python_values): Delete.
13335
13336 * utils.c (quit_flag): Delete, moved to extension.c.
13337 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13338 extension.c.
13339
13340 * eval.c: Delete #include "python/python.h".
13341 * main.c: Delete #include "python/python.h".
13342
13343 * defs.h: Update comment.
13344
6af79985
JB
133452014-02-06 Joel Brobecker <brobecker@adacore.com>
13346
13347 GDB 7.7 released.
13348
12c5175d
MK
133492014-02-05 Mark Kettenis <kettenis@gnu.org>
13350
13351 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13352 defined.
13353
8dc5b319
YQ
133542014-02-05 Yao Qi <yao@codesourcery.com>
13355
13356 * remote.c (remote_pass_signals): Remove local 'buf' and use
13357 rs->buf.
13358 (remote_program_signals): Likewise.
13359
de7b2893
YQ
133602014-02-05 Yao Qi <yao@codesourcery.com>
13361
13362 * ctf.c: Include "inferior.h" and "gdbthread.h".
13363 (CTF_PID): A new macro.
13364 (ctf_open): Call inferior_appeared and add_thread_silent.
13365 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13366 (ctf_thread_alive): New function.
13367 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13368
66d032ac
YQ
133692014-02-05 Yao Qi <yao@codesourcery.com>
13370
13371 Revert this patch:
13372
13373 2013-05-24 Yao Qi <yao@codesourcery.com>
13374
13375 * tracepoint.c (TFILE_PID): Remove.
13376 (tfile_open): Don't add thread and inferior.
13377 (tfile_close): Don't set 'inferior_ptid'. Don't call
13378 exit_inferior_silent.
13379 (tfile_thread_alive): Remove.
13380 (init_tfile_ops): Don't set field 'to_thread_alive' of
13381 tfile_ops.
13382
f4ccffad
CE
133832014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13384
13385 * remote.c (remote_start_remote): Call remote_check_symbols even
13386 if only symbol-file (not file) has been given.
13387
591a12a1
UW
133882014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13389
13390 * gdbarch.sh (skip_entrypoint): New callback.
13391 * gdbarch.c, gdbarch.h: Regenerate.
13392 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13393 * infrun.c (fill_in_stop_func): Likewise.
13394 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13395 (ppc_elfv2_elf_make_msymbol_special): New function.
13396 (ppc_elfv2_skip_entrypoint): Likewise.
13397 (ppc_linux_init_abi): Install them for ELFv2.
13398
cc0e89c5
UW
133992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13400
13401 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13402 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13403 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13404 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13405 structures returned in GPRs.
13406
52f548e4
UW
134072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13408
13409 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13410 offset to the stack parameter list for the ELFv2 ABI.
13411
d4094b6a
UW
134122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13413
13414 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13415 set_gdbarch_convert_from_func_ptr_addr and
13416 set_gdbarch_elf_make_msymbol_special for ELFv1.
13417 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13418 function descriptors on ELFv1.
13419 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13420 set up r12 at function entry.
13421
cd453cd0
UW
134222014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13423
13424 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13425 (struct gdbarch_tdep): New member elf_abi.
13426
13427 * rs6000-tdep.c: Include "elf/ppc64.h".
13428 (rs6000_gdbarch_init): Detect ELF ABI version.
13429
0ff3e01f
UW
134302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13431
13432 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13433 within a register pair holding a DFP 128-bit value on little-endian.
13434 (ppc64_sysv_abi_return_value_base): Likewise.
13435 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13436 (dfp_pseudo_register_write): Likewise.
13437
5b757e5d
UW
134382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13439
13440 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13441 offset on little-endian when passing _Decimal32.
13442 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13443
084ee545
UW
134442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13445
13446 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13447 of the overlapped FP register within the VSX register on little-
13448 endian platforms.
13449 (efpr_pseudo_register_write): Likewise.
13450
d63167af
UW
134512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13452
13453 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13454 offset on little-endian when passing small structures.
13455
e765b44c
UW
134562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13457
13458 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13459 (struct ppc64_sysv_argpos): New data structure.
13460 (ppc64_sysv_abi_push_float): Remove.
13461 (ppc64_sysv_abi_push_val): New function.
13462 (ppc64_sysv_abi_push_integer): Likewise.
13463 (ppc64_sysv_abi_push_freg): Likewise.
13464 (ppc64_sysv_abi_push_vreg): Likewise.
13465 (ppc64_sysv_abi_push_param): Likewise.
13466 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13467 (ppc64_sysv_abi_return_value_base): New function.
13468 (ppc64_sysv_abi_return_value): Refactor to use it.
13469
36c24d95
UW
134702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13471
13472 * NEWS: Document new target powerpc64le-*-linux*.
13473
26fd9228
MK
134742014-02-04 Mark Kettenis <kettenis@gnu.org>
13475
13476 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13477 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13478 core dumps.
13479 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13480 register set used in ELF core dumps. Add floating-point register set.
13481
c5bb7362
KB
134822014-02-03 Kevin Buettner <kevinb@redhat.com>
13483
74228e77 13484 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13485 dwarf2_to_gdb[] table using symbolic constants. Adjust
13486 penultimate entry from number representing the PC register
13487 to symbolic constant representing the MDR register. Add
13488 constant for the PC register to the end of the table.
13489
af09351e
MK
134902014-02-03 Mark Kettenis <kettenis@gnu.org>
13491
13492 * bsd-kvm.c: Include <sys/param.h>
13493
8507e05d
MK
134942014-02-03 Mark Kettenis <kettenis@gnu.org>
13495
13496 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13497
ae56bfb8
JB
134982014-01-31 Joel Brobecker <brobecker@adacore.com>
13499
13500 * ada-lang.h (clear_ada_sym_cache): Delete.
13501
718ee4dc
UW
135022014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13503
13504 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13505
401e27fd
JM
135062014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13507
13508 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13509 the sigreturn register save area only if the syscall is
13510 sigreturn.
13511
a7c88acd
JB
135122014-01-29 Joel Brobecker <brobecker@adacore.com>
13513
13514 * valops.c (value_slice): Minor reformatting.
13515
fa0079ea
UW
135162014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13517
13518 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13519
c6044dd1
JB
135202014-01-28 Joel Brobecker <brobecker@adacore.com>
13521
13522 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13523 New static globals.
13524 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13525 (ada_ignore_descriptive_types_p): New static global.
13526 (find_parallel_type_by_descriptive_type): Return immediately
13527 if ada_ignore_descriptive_types_p is set.
13528 (_initialize_ada_language): Register new commands "maintenance
13529 set ada", "maintenance show ada", "maintenance set ada
13530 ignore-descriptive-types" and "maintenance show ada
13531 ignore-descriptive-types".
13532 * NEWS: Add entry for new "maint ada set/show
13533 ignore-descriptive-types" commands.
13534
568e808b
MM
135352014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13536
13537 * record-btrace.c (record_btrace_close): Call btrace_teardown
13538 for all threads.
13539
467d141b
JB
135402014-01-27 Joel Brobecker <brobecker@adacore.com>
13541
13542 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13543 "ui-out.h".
13544
fb151210
JB
135452014-01-27 Joel Brobecker <brobecker@adacore.com>
13546
13547 * ada-typeprint (type_is_full_subrange_of_target_type):
13548 New function.
13549 (print_range): Add parameter bounds_prefered_p. If not set,
13550 try printing range types using the name of their base type.
13551 (print_range_type): Add parameter bounds_prefered_p.
13552 Use it in call to print_range.
13553 (print_array_type, ada_print_type): Update calls to print_range
13554 and print_range_type.
13555
aba02109
JB
135562014-01-27 Joel Brobecker <brobecker@adacore.com>
13557
13558 * ada-typeprint.c (print_array_type, print_choices, print_range)
13559 (print_range_bound, print_dynamic_range_bound, print_range_type):
13560 Remove declaration.
13561
e62e21fd
JB
135622014-01-27 Joel Brobecker <brobecker@adacore.com>
13563
13564 * ada-typeprint.c (print_range): Add missing empty line
13565 after local declaration.
13566
859cf5d1
JB
135672014-01-27 Joel Brobecker <brobecker@adacore.com>
13568
13569 * ada-valprint.c (print_optional_low_bound): Get index_type's
13570 target type for as long as it is a TYPE_CODE_RANGE.
13571
25790f6f
JB
135722014-01-27 Joel Brobecker <brobecker@adacore.com>
13573
13574 * procfs.c (procfs_make_note_section): Remove assertion and
13575 associated comment.
13576
6b6aa828
YQ
135772014-01-24 Yao Qi <yao@codesourcery.com>
13578
13579 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13580 * corelow.c (get_core_siginfo): Likewise.
13581
5d6df423
YQ
135822014-01-24 Yao Qi <yao@codesourcery.com>
13583
13584 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13585 ULONGEST. Don't check 'len' is negative.
13586 (remote_write_bytes): Change type of 'len' to ULONGEST.
13587
83b645b8
TT
135882014-01-23 Tom Tromey <tromey@redhat.com>
13589
13590 PR python/16485:
13591 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13592 Handle exception from frame.block.
13593 (FrameVars.fetch_frame_locals): Likewise.
13594
0740f8d8
TT
135952014-01-23 Tom Tromey <tromey@redhat.com>
13596
13597 PR python/16487:
13598 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13599 on a NULL pointer. Move "goto error" to correct place.
13600
21909fa1
TT
136012014-01-23 Tom Tromey <tromey@redhat.com>
13602
13603 PR python/16491:
13604 * python/py-framefilter.c (apply_frame_filter): Call
13605 ensure_python_env after computing gdbarch.
13606
17fde6d0
YQ
136072014-01-23 Yao Qi <yao@codesourcery.com>
13608
13609 * target.c (raw_memory_xfer_partial): Change argument type
13610 from void * to gdb_byte *.
13611 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13612
87ce2a04
DE
136132014-01-22 Doug Evans <dje@google.com>
13614
13615 New gdbserver option --debug-format=timestamp.
13616 * NEWS: Mention it.
13617
237b092b
AA
136182014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13619
13620 * syscalls/s390x-linux.xml: New file.
13621 * syscalls/s390-linux.xml: New file.
13622 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13623 (XML_SYSCALL_FILENAME_S390X): Likewise.
13624 (op_svc): New enum value for SVC opcode.
13625 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13626 (s390_linux_get_syscall_number): New function.
13627 (s390_gdbarch_init): Register '*get_syscall_number' and the
13628 syscall xml file name.
13629 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13630 "s390-linux.xml" and "s390x-linux.xml".
13631 * NEWS: Announce new feature.
13632
54bff650
BS
136332014-01-22 Baruch Siach <baruch@tkos.co.il>
13634
13635 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13636
14e361d7
PA
136372014-01-22 Pedro Alves <palves@redhat.com>
13638
13639 * xtensa-config.c: Include defs.h.
13640
46bbb3ed
JB
136412014-01-22 Joel Brobecker <brobecker@adacore.com>
13642
13643 * common/common-utils.h: Add "ARI:" comment beside __func__
13644 reference.
13645
3a80edfc
JB
136462014-01-22 Joel Brobecker <brobecker@adacore.com>
13647
13648 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13649 documentation a bit.
13650
4869db5e
RM
136512014-01-21 Roland McGrath <mcgrathr@google.com>
13652
13653 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13654 * configure: Regenerate.
13655 * aclocal.m4: Regenerate.
13656 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13657 New substituted variables.
13658 (install-strip): New target.
13659 (INSTALL_SCRIPT): New substituted variable.
13660 (FLAGS_TO_PASS): Add it.
13661 (install-only): Use $(INSTALL_SCRIPT) rather than
13662 $(INSTALL_PROGRAM) for gcore.
13663
9ea4267d
TT
136642014-01-20 Tom Tromey <tromey@redhat.com>
13665
13666 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13667 together.
13668
1f2bdf09
TT
136692014-01-20 Tom Tromey <tromey@redhat.com>
13670
13671 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13672 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13673 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13674 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13675 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13676 (struct cmd_list_element) <flags>: Remove.
13677 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13678 doc_allocated>: New fields.
13679 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13680 bitfields.
13681 * maint.c (maintenance_do_deprecate): Update.
13682 * top.c (execute_command): Update.
13683
e671835b
BS
136842014-01-20 Baruch Siach <baruch@tkos.co.il>
13685
13686 * xtensa-linux-nat.c: Include asm/ptrace.h.
13687
50367cd2
IB
136882014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13689
13690 * Makefile.in (SFILES): Add d-support.c.
13691 (COMMON_OBS): Add d-support.o.
13692 * d-lang.h (d_parse_symbol): Add comment, now defined in
13693 d-support.c.
13694 * d-lang.c (parse_call_convention)
13695 (parse_attributes, parse_function_types)
13696 (parse_function_args, parse_type, parse_identifier)
13697 (call_convention_p, d_parse_symbol): Move functions to ...
13698 * d-support.c: ... New file.
13699
ec9f644a
IB
137002014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13701
13702 * d-lang.h (d_parse_symbol): Add declaration.
13703 * d-lang.c (extract_identifiers)
13704 (extract_type_info): Remove functions.
13705 (parse_call_convention, parse_attributes)
13706 (parse_function_types, parse_function_args)
13707 (parse_type, parse_identifier, call_convention_p)
13708 (d_parse_symbol): New functions.
13709 (d_demangle): Use d_parse_symbol to demangle D symbols.
13710
94b1b47e
IB
137112014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13712
13713 * d-lang.h (struct builtin_d_type): New data type.
13714 (builtin_d_type): Add declaration.
13715 * d-lang.c (d_language_arch_info, build_d_types)
13716 (builtin_d_type): New functions.
13717 (enum d_primitive_types): New data type.
13718 (d_language_defn): Change c_language_arch_info to
13719 d_language_arch_info.
13720 (d_type_data): New static variable.
13721 (_initialize_d_language): Initialize d_type_data.
13722
63778547
IB
137232014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13724
13725 * d-lang.h (d_main_name): Add declaration.
13726 * d-lang.c (d_main_name): New function.
13727 * symtab.c (find_main_name): Add call to d_main_name.
13728
3271ba66
IB
137292014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13730
13731 * d-lang.c (d_language_defn): Change macro_expansion_c to
13732 macro_expansion_no.
13733
d36b3012
IB
137342014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13735
13736 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13737
c90a6fb7
SDJ
137382014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13739
13740 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13741 gdb_exception" declaration.
13742 * remote.c (getpkt_or_notif_sane): Likewise.
13743
749234e5
DE
137442014-01-17 Doug Evans <dje@google.com>
13745
13746 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13747 function, contents of dirnames_to_char_ptr_vec_append moved here.
13748 (delim_string_to_char_ptr_vec): New function.
13749 (dirnames_to_char_ptr_vec_append): Rewrite.
13750 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13751
df049a58
DE
137522014-01-17 Doug Evans <dje@google.com>
13753
13754 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13755 and moved here ...
13756 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13757 #include "common-utils.h".
13758 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13759 * common/vec.h (VEC_ASSERT_PASS): Update.
13760 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13761 (MACH_CHECK_ERROR): Update.
13762
69f97648
SM
137632014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13764
13765 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13766 comments.
13767 * gdbarch.h: Regenerate.
13768
98b1cfdc
TT
137692014-01-16 Tom Tromey <tromey@redhat.com>
13770
13771 * value.c (struct value) <regnum>: Move earlier.
13772
77a19445
TT
137732014-01-16 Tom Tromey <tromey@redhat.com>
13774
13775 * remote.c (extended_remote_create_inferior): Rename from
13776 extended_remote_create_inferior_1. Add "ops" argument. Remove
13777 old implementation.
13778
62261490
PA
137792014-01-16 Pedro Alves <palves@redhat.com>
13780
13781 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13782 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13783 the backchain.
13784
4d65956b
DE
137852014-01-16 Doug Evans <dje@google.com>
13786
13787 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13788
52834460
MM
137892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13790
13791 * btrace.h (btrace_thread_flag): New.
13792 (struct btrace_thread_info) <flags>: New.
13793 * record-btrace.c (record_btrace_resume_thread)
13794 (record_btrace_find_thread_to_move, btrace_step_no_history)
13795 (btrace_step_stopped, record_btrace_start_replaying)
13796 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13797 (record_btrace_find_resume_thread): New.
13798 (record_btrace_resume, record_btrace_wait): Extend.
13799 (record_btrace_can_execute_reverse): New.
13800 (record_btrace_open): Fail in non-stop mode.
13801 (record_btrace_set_replay): Split into this, ...
13802 (record_btrace_stop_replaying): ... this, ...
13803 (record_btrace_clear_histories): ... and this.
13804 (init_record_btrace_ops): Init to_can_execute_reverse.
13805 * NEWS: Announce it.
13806
118e6252
MM
138072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13808
13809 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13810 (forward_target_decr_pc_after_break)
13811 (target_decr_pc_after_break): New.
13812 * target.c (forward_target_decr_pc_after_break)
13813 (target_decr_pc_after_break): New.
13814 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13815 instead of gdbarch_decr_pc_after_break.
13816 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13817 instead of gdbarch_decr_pc_after_break.
13818 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13819 instead of gdbarch_decr_pc_after_break.
13820 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13821 instead of gdbarch_decr_pc_after_break.
13822 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13823 instead of gdbarch_decr_pc_after_break.
13824 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13825 instead of gdbarch_decr_pc_after_break.
13826
6e07b1d2
MM
138272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13828
13829 * btrace.c: Include regcache.h.
13830 (btrace_add_pc): New.
13831 (btrace_enable): Call btrace_add_pc.
13832 (btrace_is_empty): New.
13833 * btrace.h (btrace_is_empty): New.
13834 * record-btrace.c (require_btrace, record_btrace_info): Call
13835 btrace_is_empty.
13836
969c39fb
MM
138372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13838
13839 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13840 Support delta reads.
13841 (linux_disable_btrace): Change return type.
13842 * common/linux-btrace.h (linux_read_btrace): Change parameters
13843 and return type to allow error reporting. Update users.
13844 (linux_disable_btrace): Change return type. Update users.
13845 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13846 New.
13847 (btrace_error): New.
13848 (btrace_block) <begin>: Comment on BEGIN == 0.
13849 * btrace.c (btrace_compute_ftrace): Start from the end of
13850 the current trace.
13851 (btrace_stitch_trace, btrace_clear_history): New.
13852 (btrace_fetch): Read delta trace, return if replaying.
13853 (btrace_clear): Move clear history code to btrace_clear_history.
13854 (parse_xml_btrace): Throw an error if parsing failed.
13855 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13856 and return type to allow error reporting.
13857 (target_read_btrace): Change parameters and return type to allow
13858 error reporting.
13859 * target.c (target_read_btrace): Update.
13860 * remote.c (remote_read_btrace): Support delta reads. Pass
13861 errors on.
13862 * NEWS: Announce it.
13863
0b722aec
MM
138642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13865
13866 * record.h (record_btrace_frame_unwind)
13867 (record_btrace_tailcall_frame_unwind): New declarations.
13868 * dwarf2-frame: Include record.h
13869 (dwarf2_frame_cfa): Throw an error for btrace frames.
13870 * record-btrace.c: Include hashtab.h.
13871 (btrace_get_bfun_name): New.
13872 (btrace_call_history): Call btrace_get_bfun_name.
13873 (struct btrace_frame_cache): New.
13874 (bfcache): New.
13875 (bfcache_hash, bfcache_eq, bfcache_new): New.
13876 (btrace_get_frame_function): New.
13877 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13878 (record_btrace_frame_this_id): Compute own id.
13879 (record_btrace_frame_prev_register): Provide PC, throw_error
13880 for all other registers.
13881 (record_btrace_frame_sniffer): Detect btrace frames.
13882 (record_btrace_tailcall_frame_sniffer): New.
13883 (record_btrace_frame_dealloc_cache): New.
13884 (record_btrace_frame_unwind): Add new functions.
13885 (record_btrace_tailcall_frame_unwind): New.
13886 (_initialize_record_btrace): Allocate cache.
13887 * btrace.c (btrace_clear): Call reinit_frame_cache.
13888 * NEWS: Announce it.
13889
066ce621
MM
138902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13891
13892 * record-btrace.c (record_btrace_set_replay)
13893 (record_btrace_goto_begin, record_btrace_goto_end)
13894 (record_btrace_goto): New.
13895 (init_record_btrace_ops): Initialize them.
13896 * NEWS: Announce it.
13897
e2887aa3
MM
138982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13899
13900 * record-btrace.c (record_btrace_find_new_threads)
13901 (record_btrace_thread_alive): New.
13902 (init_record_btrace_ops): Initialize to_find_new_threads and
13903 to_thread_alive.
13904
b2f4cfde
MM
139052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13906
13907 * record-btrace.c (record_btrace_resume): New.
13908 (record_btrace_wait): New.
13909 (init_record_btrace_ops): Initialize to_wait and to_resume.
13910
633785ff
MM
139112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13912
13913 * record-btrace.c (record_btrace_xfer_partial)
13914 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13915 (record_btrace_allow_memory_access): New.
13916 (init_record_btrace_ops): Initialize new methods.
13917 * target.c (raw_memory_xfer_partial): Bail out if target reports
13918 that this memory is not available.
13919
3db08215
MM
139202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13921
13922 * target.h (target_ops) <to_insert_breakpoint>
13923 <to_remove_breakpoint>: Add target_ops parameter.
13924 (forward_target_insert_breakpoint): New.
13925 (forward_target_remove_breakpoint): New.
13926 (memory_remove_breakpoint, memory_insert_breakpoint):
13927 Add target_ops parameter.
13928 * target.c (target_insert_breakpoint): Split into this and ...
13929 (forward_target_insert_breakpoint): ... this.
13930 (target_remove_breakpoint): Split into this and ...
13931 (forward_target_remove_breakpoint): ... this.
13932 (debug_to_insert_breakpoint): Add target_ops parameter.
13933 Call forward_target_insert_breakpoint.
13934 (debug_to_remove_breakpoint): Add target_ops parameter.
13935 Call forward_target_remove_breakpoint.
13936 (update_current_target): Do not inherit or default to_insert_breakpoint
13937 and to_remove_breakpoint.
13938 * corelow.c (ignore): Add target_ops parameter.
13939 * exec.c (ignore): Add target_ops parameter.
13940 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13941 Add target_ops parameter.
13942 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13943 Add target_ops parameter.
13944 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13945 Add target_ops parameter.
13946 * record-full.c (record_full_beneath_to_insert_breakpoint)
13947 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13948 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13949 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13950 (record_full_core_remove_breakpoint): Add target_ops parameter.
13951 Update users.
13952 (record_full_beneath_to_insert_breakpoint_ops)
13953 (record_full_beneath_to_remove_breakpoint_ops)
13954 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13955 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13956 tmp_to_remove_breakpoint_ops,
13957 record_full_beneath_to_insert_breakpoint_ops, and
13958 record_full_beneath_to_remove_breakpoint_ops.
13959 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13960 (m32r_remove_breakpoint): Add target_ops parameter.
13961 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13962 Add target_ops parameter.
13963 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13964 Add target_ops parameter.
13965
cecac1ab
MM
139662014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13967 Markus Metzger <markus.t.metzger@intel.com>
13968
13969 * record-btrace.c: Include frame-unwind.h.
13970 (record_btrace_frame_unwind_stop_reason)
13971 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13972 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13973 New.
13974 (init_record_btrace_ops): Install it.
13975
824344ca
MM
139762014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13977
13978 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13979 get_prev_frame_1.
13980
32261e52
MM
139812014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13982
13983 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13984 earlier.
13985
ea001bdc
MM
139862014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13987
13988 * frame-unwind.c: Include target.h.
13989 (frame_unwind_try_unwinder): New function with code from ...
13990 (frame_unwind_find_by_frame): ... here. New variable
13991 unwinder_from_target, call also target_get_unwinder)
13992 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13993 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13994 * target.h (struct target_ops): New fields to_get_unwinder and
13995 to_get_tailcall_unwinder.
13996 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13997
1f3ef581
MM
139982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13999
14000 * record-btrace.c (record_btrace_fetch_registers)
14001 (record_btrace_store_registers)
14002 (record_btrace_to_prepare_to_store): New.
14003 (init_record_btrace_ops): Add the above.
14004
f32dbf8c
MM
140052014-01-16 Tom Tromey <tromey@redhat.com>
14006
14007 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14008 * target.h (struct target_ops) <to_prepare_to_store>: Add
14009 argument.
14010 (target_prepare_to_store): Add argument.
14011 * target.c (debug_to_prepare_to_store): Add argument.
14012 (update_current_target): Update.
14013 * remote.c (remote_prepare_to_store): Add 'self' argument.
14014 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14015 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14016 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14017 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14018 argument.
14019 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14020 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14021 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14022 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14023 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14024
07bbe694
MM
140252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14026
14027 * btrace.h (replay) <replay>: New.
14028 (btrace_is_replaying): New.
14029 * btrace.c (btrace_clear): Free replay iterator.
14030 (btrace_is_replaying): New.
14031 * record-btrace.c (record_btrace_is_replaying): New.
14032 (record_btrace_info): Print insn number if replaying.
14033 (record_btrace_insn_history): Start at replay position.
14034 (record_btrace_call_history): Start at replay position.
14035 (init_record_btrace_ops): Init to_record_is_replaying.
14036
0688d04e
MM
140372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14038
14039 * record-btrace.c (record_btrace_insn_history_range): Include
14040 end.
14041 (record_btrace_insn_history_from): Adjust range.
14042 (record_btrace_call_history_range): Include
14043 end.
14044 (record_btrace_call_history_from): Adjust range.
14045 * NEWS: Announce changes.
14046
8710b709
MM
140472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14048
14049 * record.h (enum record_print_flag)
14050 <record_print_indent_calls>: New.
14051 * record.c (get_call_history_modifiers): Recognize /c modifier.
14052 (_initialize_record): Document /c modifier.
14053 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14054 Reorder fields. Optionally indent the function name. Update
14055 all users.
14056 * NEWS: Announce changes.
14057
d0fa7535
MM
140582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14059
14060 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14061
5de9129b
MM
140622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14063
14064 * btrace.c (ftrace_new_function): Start counting at one.
14065 * record-btrace.c (record_btrace_info): Adjust number of calls
14066 and insns.
14067 * NEWS: Announce it.
14068
7acbe133
MM
140692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14070
14071 * record-btrace.c (btrace_call_history_insn_range): Print
14072 insn range as [begin, end].
14073
23a7fe75
MM
140742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14075
14076 * btrace.h (struct btrace_func_link): New.
14077 (enum btrace_function_flag): New.
14078 (struct btrace_inst): Rename to ...
14079 (struct btrace_insn): ...this. Update all users.
14080 (struct btrace_func) <ibegin, iend>: Remove.
14081 (struct btrace_func_link): New.
14082 (struct btrace_func): Rename to ...
14083 (struct btrace_function): ...this. Update all users.
14084 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14085 (number, level, flags>: New.
14086 (struct btrace_insn_iterator): Rename to ...
14087 (struct btrace_insn_history): ...this.
14088 Update all users.
14089 (struct btrace_insn_iterator, btrace_call_iterator): New.
14090 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14091 (struct btrace_target_info) <begin, end, level>
14092 <insn_history, call_history>: New.
14093 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14094 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14095 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14096 (btrace_call_number, btrace_call_begin, btrace_call_end)
14097 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14098 (btrace_find_function_by_number, btrace_set_insn_history)
14099 (btrace_set_call_history): New.
14100 * btrace.c (btrace_init_insn_iterator)
14101 (btrace_init_func_iterator, compute_itrace): Remove.
14102 (ftrace_print_function_name, ftrace_print_filename)
14103 (ftrace_skip_file): Change
14104 parameter to const.
14105 (ftrace_init_func): Remove.
14106 (ftrace_debug): Use new btrace_function fields.
14107 (ftrace_function_switched): Also consider gaining and
14108 losing symbol information).
14109 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14110 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14111 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14112 New.
14113 (ftrace_new_function): Move. Remove debug print.
14114 (ftrace_update_lines, ftrace_update_insns): New.
14115 (ftrace_update_function): Check for call, ret, and jump.
14116 (compute_ftrace): Renamed to ...
14117 (btrace_compute_ftrace): ...this. Rewritten to compute call
14118 stack.
14119 (btrace_fetch, btrace_clear): Updated.
14120 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14121 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14122 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14123 (btrace_call_number, btrace_call_begin, btrace_call_end)
14124 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14125 (btrace_find_function_by_number, btrace_set_insn_history)
14126 (btrace_set_call_history): New.
14127 * record-btrace.c (require_btrace): Use new btrace thread
14128 info fields.
14129 (record_btrace_info, btrace_insn_history)
14130 (record_btrace_insn_history, record_btrace_insn_history_range):
14131 Use new btrace thread info fields and new iterator.
14132 (btrace_func_history_src_line): Rename to ...
14133 (btrace_call_history_src_line): ...this. Use new btrace
14134 thread info fields.
14135 (btrace_func_history): Rename to ...
14136 (btrace_call_history): ...this. Use new btrace thread info
14137 fields and new iterator.
14138 (record_btrace_call_history, record_btrace_call_history_range):
14139 Use new btrace thread info fields and new iterator.
14140
8372a7cb
MM
141412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14142
14143 * frame.h (frame_id_build_unavailable_stack_special): New.
14144 * frame.c (frame_id_build_unavailable_stack_special): New.
14145
c2170eef
MM
141462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14147
14148 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14149 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14150 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14151 to gdbarch.
14152 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14153 (i386_insn_is_jump, i386_jmp_p): New.
14154 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14155 insn_is_jump to gdbarch.
14156 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14157 * gdbarch.h: Regenerated.
14158 * gdbarch.c: Regenerated.
14159 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14160 (default_insn_is_jump): New.
14161 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14162 (default_insn_is_jump): New.
14163
864089d2
MM
141642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14165
14166 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14167 Change to ...
14168 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14169 (btrace_read_type) <btrace_read_new>: Change to ...
14170 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14171
ed9edfb5
MM
141722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14173
14174 * common/linux-btrace.c (linux_read_btrace): Free trace from
14175 previous iteration.
14176
fbcbc3fd
DE
141772014-01-15 Doug Evans <dje@google.com>
14178
14179 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14180 uint32_t.
14181
3d548a53
TT
141822014-01-15 Tom Tromey <tromey@redhat.com>
14183
14184 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14185 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14186 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14187 (set_objfile_main_name): New function.
14188 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14189 language_of_main>: New fields.
14190 (set_objfile_main_name): Declare.
14191 * symtab.c (find_main_name): Loop over objfiles to find the main
14192 name and language.
14193 (set_main_name): Now static.
14194 (get_main_info): Add comment.
14195 * symtab.h (set_main_name): Don't declare.
14196
32ac0d11
TT
141972014-01-15 Tom Tromey <tromey@redhat.com>
14198
14199 * symtab.c (main_progspace_key): New global.
14200 (struct main_info): New.
14201 (name_of_main, language_of_main): Remove.
14202 (get_main_info, main_info_cleanup): New function.
14203 (set_main_name, main_name, main_language): Use get_main_info.
14204 (_initialize_symtab): Initialize main_progspace_key.
14205
9e6c82ad
TT
142062014-01-15 Tom Tromey <tromey@redhat.com>
14207
14208 * dbxread.c (process_one_symbol): Update.
14209 * dwarf2read.c (read_partial_die): Update.
14210 * symfile.c (set_initial_language): Call main_language.
14211 * symtab.c (language_of_main): Now static.
14212 (set_main_name): Add 'lang' parameter.
14213 (find_main_name): Update.
14214 (main_language): New function.
14215 (symtab_observer_executable_changed): Update.
14216 * symtab.h (set_main_name): Update.
14217 (language_of_main): Remove.
14218 (main_language): Declare.
14219
6ef55de7
TT
142202014-01-15 Tom Tromey <tromey@redhat.com>
14221
14222 * symfile.c (init_entry_point_info): Use new "initialized" field.
14223 Update.
14224 * objfiles.h (struct entry_point) <initialized>: New field.
14225 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14226 (struct objfile) <ei>: ...here. Remove.
14227 * objfiles.c (entry_point_address_query): Update.
14228
53eddfa6
TT
142292014-01-15 Tom Tromey <tromey@redhat.com>
14230
14231 * objfiles.c (entry_point_address_query): Relocate entry point
14232 address.
14233 (objfile_relocate1): Do not relocate entry point address.
14234 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14235 <the_bfd_section_index>: New field.
14236 * symfile.c (init_entry_point_info): Find the entry point's
14237 section.
14238
d56e56aa
TT
142392014-01-15 Tom Tromey <tromey@redhat.com>
14240
14241 * solib-frv.c (enable_break): Use entry_point_address_query.
14242
33a97bbe
OJ
142432014-01-15 Omair Javaid <omair.javaid@linaro.org>
14244
14245 * NEWS: Add note on improved process record-replay on
14246 arm*-linux* targets.
14247
c6ec2b30
OJ
142482014-01-15 Omair Javaid <omair.javaid@linaro.org>
14249
14250 * arm-tdep.c (enum arm_record_result): New enum.
14251 (arm_record_unsupported_insn): New function.
14252 (arm_record_coproc_data_proc): Removed.
14253 (thumb2_record_ld_st_multiple): New function.
14254 (thumb2_record_ld_st_dual_ex_tbb): New function.
14255 (thumb2_record_data_proc_sreg_mimm): New function.
14256 (thumb2_record_ps_dest_generic): New function.
14257 (thumb2_record_branch_misc_cntrl): New function.
14258 (thumb2_record_str_single_data): New function.
14259 (thumb2_record_ld_mem_hints): New function.
14260 (thumb2_record_ld_word): New function.
14261 (thumb2_record_lmul_lmla_div): New function.
14262 (thumb2_record_decode_insn_handler): New function.
14263 (decode_insn): Add thumb32 instruction handlers.
14264
97dfe206
OJ
142652014-01-15 Omair Javaid <omair.javaid@linaro.org>
14266
14267 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14268 (struct arm_linux_record_tdep): Declare.
14269 (arm_canonicalize_syscall): New function.
14270 (arm_all_but_pc_registers_record): New function.
14271 (arm_linux_syscall_record): New function.
14272 (arm_linux_init_abi): Add syscall recording constructs.
14273 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14274 decoding. (arm_record_coproc_data_proc): Update arm syscall
14275 decoding.
14276 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14277 <arm_syscall_record>: New field.
14278 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14279 gdb_target_obs.
14280
9904a494
OJ
142812014-01-15 Omair Javaid <omair.javaid@linaro.org>
14282
14283 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14284 register for push instruction recording.
14285
f969241e
OJ
142862014-01-15 Omair Javaid <omair.javaid@linaro.org>
14287
14288 * arm-tdep.c (thumb_record_misc): Update to correct logical
14289 error while recording ldm, ldmia and pop instructions.
14290
bfbbec00
OJ
142912014-01-15 Omair Javaid <omair.javaid@linaro.org>
14292
14293 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14294
e40adcc9
PA
142952014-01-15 Pedro Alves <palves@redhat.com>
14296
14297 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14298 (go32_resume, go32_fetch_registers, store_register)
14299 (go32_store_registers, go32_prepare_to_store)
14300 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14301 (go32_create_inferior, go32_can_run, go32_terminal_init)
14302 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14303 declarations.
14304
b0a16e66
TT
143052014-01-15 Tom Tromey <tromey@redhat.com>
14306
14307 * target.h (async_callback_ftype): New typedef.
14308 (struct target_ops) <to_async>: Use it.
14309
bf7105a4
JB
143102014-01-15 Joel Brobecker <brobecker@adacore.com>
14311
14312 * python/py-value.c (get_field_type): Remove unnecessary curly
14313 braces for single-statement if block.
14314
a8f35c2e
JB
143152014-01-15 Joel Brobecker <brobecker@adacore.com>
14316
14317 * python/py-type.c (convert_field): Add missing empty line
14318 after declarations.
14319
bb4142cf
DE
143202014-01-14 Doug Evans <dje@google.com>
14321
14322 * symfile.h (expand_symtabs_matching): Renamed from
14323 expand_partial_symbol_names. Update prototype.
14324 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14325 * symfile.c (expand_symtabs_matching): Renamed from
14326 expand_partial_symbol_names. New args file_matcher, kind.
14327 Rename arg fun to symbol_matcher.
14328 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14329 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14330 ada_expand_partial_symbol_name.
14331 (ada_make_symbol_completion_list): Update to call
14332 expand_symtabs_matching.
14333 (ada_add_global_exceptions): Call expand_symtabs_matching.
14334 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14335 call map_symbol_filenames.
14336 * symtab.c (sources_info): Update to call map_symbol_filenames.
14337 (search_symbols): Call expand_symtabs_matching.
14338 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14339 (default_make_symbol_completion_list_break_on): Update to call
14340 expand_symtabs_matching.
14341 (make_source_files_completion_list): Update to call
14342 map_symbol_filenames.
14343
206f2a57
DE
143442014-01-14 Doug Evans <dje@google.com>
14345
14346 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14347 (expand_symtabs_symbol_matcher_ftype): New typedef.
14348 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14349 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14350 * symfile.c (expand_partial_symbol_names): Update to use
14351 expand_symtabs_symbol_matcher_ftype.
14352 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14353 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14354 Arg name_matcher renamed to symbol_matcher.
14355 * psymtab.c (recursively_search_psymtabs): Update to use
14356 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14357 sym_matcher.
14358 (expand_symtabs_matching_via_partial): Update to use
14359 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14360 Arg name_matcher renamed to symbol_matcher.
14361
540c2971
DE
143622014-01-14 Doug Evans <dje@google.com>
14363
14364 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14365 (map_partial_symbol_filenames): Ditto.
14366 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14367 (map_partial_symbol_filenames): Ditto.
14368 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14369 (map_partial_symbol_filenames): Ditto.
14370 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14371 (map_partial_symbol_filenames): Ditto.
14372 * symtab.c: Delete #include "psymtab.h".
14373
8213266a
PA
143742014-01-14 Pedro Alves <palves@redhat.com>
14375 Tom Tromey <tromey@redhat.com>
14376
14377 * infrun.c (use_displaced_stepping): Use find_record_target
14378 instead of RECORD_IS_USED.
14379 (adjust_pc_after_break): Use record_full_is_used instead of
14380 RECORD_IS_USED.
14381 * record-btrace.c (record_btrace_open): Call record_preopen
14382 instead of checking RECORD_IS_USED.
14383 * record-full.c (record_full_shortname)
14384 (record_full_core_shortname): New globals.
14385 (record_full_is_used): New function.
14386 (find_full_open): Call record_preopen instead of checking
14387 RECORD_IS_USED.
14388 (init_record_full_ops): Set the target's shortname to
14389 record_full_shortname.
14390 (init_record_full_core_ops): Set the target's shortname to
14391 record_full_core_shortname.
14392 * record-full.h (record_full_is_used): Declare.
14393 * record.c (find_record_target): Make extern.
14394 (record_preopen): New function.
14395 * record.h (RECORD_IS_USED): Delete macro.
14396 (find_record_target, record_preopen): Declare functions.
14397
7ec1862d
YQ
143982014-01-14 Yao Qi <yao@codesourcery.com>
14399
14400 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14401 'len''s type to ULONGEST.
14402 (core_xfer_shared_libraries_aix): Likewise.
14403 * gdbarch.c, gdbarch.h: Regenerated.
14404 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14405 Change type of 'len' to ULONGEST.
14406 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14407 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14408
dea80a27
YQ
144092014-01-14 Yao Qi <yao@codesourcery.com>
14410
14411 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14412 type of 'len' to ULONGEST.
14413 (linux_xfer_osdata_processgroups): Likewise.
14414 (linux_xfer_osdata_threads): Likewise.
14415 (linux_xfer_osdata_fds): Likewise.
14416 (linux_xfer_osdata_isockets): Likewise.
14417 (linux_xfer_osdata_shm): Likewise.
14418 (linux_xfer_osdata_sem): Likewise.
14419 (linux_xfer_osdata_msg): Likewise.
14420 (linux_common_xfer_osdata): Likewise.
14421 (struct osdata_type) <getter>: Likewise.
14422 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14423 the declaration.
14424
b55e14c7
YQ
144252014-01-14 Yao Qi <yao@codesourcery.com>
14426
14427 * target.h (target_xfer_partial_ftype): Update.
14428 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14429 ULONGEST.
14430 * aix-thread.c (aix_thread_xfer_partial): Change type of
14431 argument 'len' to ULONGEST.
14432 * auxv.c (procfs_xfer_auxv): Likewise.
14433 (ld_so_xfer_auxv): Likewise.
14434 (memory_xfer_auxv): Likewise.
14435 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14436 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14437 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14438 * corelow.c (core_xfer_partial): Likewise.
14439 * ctf.c (ctf_xfer_partial): Likewise.
14440 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14441 '%u'.
14442 (darwin_read_dyld_info): Likewise.
14443 (darwin_xfer_partial): Likewise.
14444 * exec.c (section_table_xfer_memory_partial): Likewise.
14445 (exec_xfer_partial): Likewise.
14446 * exec.h (section_table_xfer_memory_partial): Update
14447 declaration.
14448 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14449 instead of plongest.
14450 (gnu_xfer_partial): Likewise.
14451 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14452 (ia64_hpux_xfer_solib_got): Likewise.
14453 (ia64_hpux_xfer_partial): Likewise.
14454 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14455 * inf-ptrace.c (inf_ptrace_xfer_partial):
14456 * inf-ttrace.c (inf_ttrace_xfer_partial):
14457 * linux-nat.c (linux_xfer_siginfo): Likewise.
14458 (linux_nat_xfer_partial): Likewise.
14459 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14460 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14461 * monitor.c (monitor_xfer_memory): Likewise.
14462 (monitor_xfer_partial): Likewise.
14463 * procfs.c (procfs_xfer_partial): Likewise.
14464 * record-full.c (record_full_xfer_partial): Likewise.
14465 (record_full_core_xfer_partial): Likewise.
14466 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14467 instead of plongest.
14468 (gdbsim_xfer_partial): Likewise.
14469 * remote.c (remote_xfer_partial): Likewise.
14470 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14471 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14472 declaration.
14473 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14474 (rs6000_xfer_shared_libraries): Likewise.
14475 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14476 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14477 (sparc_xfer_partial): Likewise.
14478 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14479 (spu_xfer_partial): Likewise.
14480 * spu-multiarch.c (spu_xfer_partial): Likewise.
14481 * target.c (target_read_live_memory): Likewise.
14482 (memory_xfer_live_readonly_partial): Likewise.
14483 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14484 (target_xfer_partial, default_xfer_partial): Likewise.
14485 (current_xfer_partial): Likewise.
14486 * tracepoint.c (tfile_xfer_partial): Likewise.
14487 * windows-nat.c (windows_xfer_memory): Likewise. Call
14488 pulongest instead of plongest.
14489 (windows_xfer_partial): Likewise.
14490 (windows_xfer_shared_libraries): Likewise.
14491
05804640
YQ
144922014-01-14 Yao Qi <yao@codesourcery.com>
14493
14494 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14495 target_xfer_partial_ftype.
14496
b5b08fb4
SC
144972014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14498
14499 PR python/15464
14500 PR python/16113
14501 * valops.c (value_struct_elt_bitpos): New function
14502 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14503 object to 'None' if the field name is an empty string ("").
14504 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14505 attribute to look for a field when 'name' is 'None'.
14506 (get_field_type): New function
14507
13aaf454
DE
145082014-01-13 Doug Evans <dje@google.com>
14509
14510 PR symtab/16426
14511 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14512 (try_open_dwop_file): Ditto.
14513 * gdb_bfd.c: #include "vec.h".
14514 (bfdp): New typedef.
14515 (struct gdb_bfd_data): New member included_bfds.
14516 (gdb_bfd_unref): Unref all included bfds.
14517 (gdb_bfd_record_inclusion): New function.
14518 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14519
c2cec97c
TT
145202014-01-13 Tom Tromey <tromey@redhat.com>
14521
14522 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14523
78e5999d
TT
145242014-01-13 Tom Tromey <tromey@redhat.com>
14525
14526 * defs.h (use_windows): Remove.
14527 * gdb.c (main): Update.
14528 * main.c (captured_main, gdb_main): Update.
14529 * main.h (struct captured_main_args) <use_windows>: Remove.
14530 * top.c (use_windows): Remove.
14531
f2052bbe
TT
145322014-01-13 Tom Tromey <tromey@redhat.com>
14533
14534 * defs.h (deprecated_flush_hook): Remove.
14535
fde4f8ed
JK
145362014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14537
14538 PR threads/16216
14539 * linux-thread-db.c (try_thread_db_load): Add parameter
14540 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14541 (try_thread_db_load_from_pdir_1): Move it there from here.
14542 (try_thread_db_load_from_sdir): Update caller.
14543 (try_thread_db_load_from_dir): Move it there from here.
14544
bdf61915
PP
145452014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14546
14547 * regformats/regdat.sh: Always rewrite the register file.
14548
f71e1a8d
PA
145492014-01-13 Pedro Alves <palves@redhat.com>
14550
14551 * Makefile.in (CHECK_HEADERS): New variable.
14552 (check-headers:): New rule.
14553
42c85435
TT
145542014-01-13 Tom Tromey <tromey@redhat.com>
14555
14556 * cli/cli-setshow.c (do_set_command): Update.
14557 * defs.h (deprecated_set_hook): Remove.
14558 * top.c (deprecated_set_hook): Remove.
14559
f8de5129
PA
145602014-01-13 Pedro Alves <palves@redhat.com>
14561
14562 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14563 the tracepoint if the PC is a pseudo-register.
14564
fc270c35
TT
145652014-01-13 Tom Tromey <tromey@redhat.com>
14566
14567 * defs.h (XCALLOC): Remove.
14568 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14569 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14570 * dwarf2loc.c (allocate_piece_closure): Likewise.
14571 * elfread.c (elf_symfile_segments): Likewise.
14572 (elf_symfile_segments): Likewise.
14573 * gdbtypes.c (copy_type_recursive): Likewise.
14574 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14575 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14576 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14577 XCALLOC.
14578 * mt-tdep.c (mt_gdbarch_init): Likewise.
14579 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14580 XCALLOC.
14581 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14582 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14583 * registry.c (registry_alloc_data): Likewise.
14584 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14585 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14586 * serial.c (serial_fdopen_ops): Likewise.
14587 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14588 XCALLOC.
14589 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14590 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14591 not XCALLOC.
14592
70ba0933
TT
145932014-01-13 Tom Tromey <tromey@redhat.com>
14594
14595 * defs.h (XMALLOC): Remove.
14596 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14597 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14598 * cli-out.c (struct ui_out *): Likewise.
14599 * cli/cli-dump.c (add_dump_command): Likewise.
14600 (add_dump_command): Likewise.
14601 * complaints.c (get_complaints): Likewise.
14602 (find_complaint): Likewise.
14603 * dwarf2-frame.c (execute_cfa_program): Likewise.
14604 * dwarf2read.c (abbrev_table_read_table): Likewise.
14605 * gdbarch.sh: Likewise.
14606 * gdbarch.c: Rebuild.
14607 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14608 * interps.c (interp_new): Likewise.
14609 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14610 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14611 * mi/mi-console.c (mi_console_file_new): Likewise.
14612 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14613 * mi/mi-out.c (mi_out_new): Likewise.
14614 * mi/mi-parse.c (mi_parse): Likewise.
14615 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14616 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14617 * observer.c (xalloc_observer_list_node): Likewise.
14618 * regcache.c (regcache_xmalloc_1): Likewise.
14619 * reggroups.c (reggroup_new): Likewise.
14620 (_initialize_reggroup): Likewise.
14621 * registry.c (register_data_with_cleanup): Likewise.
14622 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14623 * ser-base.c (serial_ttystate): Likewise.
14624 * ser-mingw.c (make_pipe_state): Likewise.
14625 * ser-pipe.c (pipe_open): Likewise.
14626 * serial.c (serial_open): Likewise.
14627 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14628 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14629 (tui_alloc_win_info): Likewise.
14630 (tui_add_content_elements): Likewise.
14631 * tui/tui-file.c (tui_file_new): Likewise.
14632 * tui/tui-out.c (tui_out_new): Likewise.
14633 * ui-file.c (mem_file_new): Likewise.
14634 * ui-out.c (push_level): Likewise.
14635 (make_cleanup_ui_out_end): Likewise.
14636 (append_header_to_list): Likewise.
14637 (ui_out_new): Likewise.
14638 * user-regs.c (user_reg_add_builtin): Likewise.
14639
41bf6aca
TT
146402014-01-13 Tom Tromey <tromey@redhat.com>
14641
14642 * defs.h (XZALLOC): Remove.
14643 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14644 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14645 (get_ada_tasks_inferior_data): Likewise.
14646 * auto-load.c (get_auto_load_pspace_data): Likewise.
14647 * auxv.c (get_auxv_inferior_data): Likewise.
14648 * bfd-target.c (target_bfd_reopen): Likewise.
14649 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14650 (deprecated_insert_raw_breakpoint): Likewise.
14651 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14652 * corelow.c (core_open): Likewise.
14653 * darwin-nat.c (darwin_check_new_threads): Likewise.
14654 (darwin_attach_pid): Likewise.
14655 * dummy-frame.c (dummy_frame_push): Likewise.
14656 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14657 * dwarf2loc.c (allocate_piece_closure): Likewise.
14658 * elfread.c (elf_symfile_segments): Likewise.
14659 * eval.c (ptrmath_type_p): Likewise.
14660 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14661 * gdbtypes.c (alloc_type_arch): Likewise.
14662 (alloc_type_instance): Likewise.
14663 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14664 * inf-child.c (inf_child_can_use_agent): Likewise.
14665 * inflow.c (get_inflow_inferior_data): Likewise.
14666 * infrun.c (save_infcall_suspend_state): Likewise.
14667 * jit.c (jit_reader_load): Likewise.
14668 (get_jit_objfile_data): Likewise.
14669 (get_jit_program_space_data): Likewise.
14670 (jit_object_open_impl): Likewise.
14671 (jit_symtab_open_impl): Likewise.
14672 (jit_block_open_impl): Likewise.
14673 (jit_frame_sniffer): Likewise.
14674 * linux-fork.c (add_fork): Likewise.
14675 * maint.c (make_command_stats_cleanup): Likewise.
14676 * objfiles.c (get_objfile_pspace_data): Likewise.
14677 * opencl-lang.c (struct lval_closure): Likewise.
14678 * osdata.c (osdata_start_osdata): Likewise.
14679 * progspace.c (new_address_space): Likewise.
14680 (add_program_space): Likewise.
14681 * remote-sim.c (get_sim_inferior_data): Likewise.
14682 * sh-tdep.c (sh_gdbarch_init): Likewise.
14683 * skip.c (Ignore): Likewise.
14684 (skip_delete_command): Likewise.
14685 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14686 (library_list_start_library): Likewise.
14687 (solib_aix_current_sos): Likewise.
14688 * solib-darwin.c (get_darwin_info): Likewise.
14689 (darwin_current_sos): Likewise.
14690 * solib-dsbt.c (get_dsbt_info): Likewise.
14691 * solib-ia64-hpux.c (new_so_list): Likewise.
14692 (ia64_hpux_get_solib_linkage_addr): Likewise.
14693 * solib-spu.c (append_ocl_sos): Likewise.
14694 (spu_current_sos): Likewise.
14695 * solib-svr4.c (get_svr4_info): Likewise.
14696 (svr4_keep_data_in_core): Likewise.
14697 (library_list_start_library): Likewise.
14698 (svr4_default_sos): Likewise.
14699 (svr4_read_so_list): Likewise.
14700 * solib-target.c (library_list_start_library): Likewise.
14701 (solib_target_current_sos): Likewise.
14702 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14703 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14704 * symfile.c (default_symfile_segments): Likewise.
14705 * target-descriptions.c (tdesc_data_init): Likewise.
14706 (tdesc_create_reg): Likewise.
14707 (struct tdesc_type *): Likewise.
14708 (tdesc_create_vector): Likewise.
14709 (tdesc_set_struct_size): Likewise.
14710 (struct tdesc_type *): Likewise.
14711 (tdesc_free_feature): Likewise.
14712 (tdesc_create_feature): Likewise.
14713 * windows-nat.c (windows_add_thread): Likewise.
14714 (windows_make_so): Likewise.
14715 * xml-support.c (gdb_xml_body_text): Likewise.
14716 (gdb_xml_create_parser_and_cleanup): Likewise.
14717 (xml_process_xincludes): Likewise.
14718 * xml-syscall.c (allocate_syscalls_info): Likewise.
14719 (syscall_create_syscall_desc): Likewise.
14720
5acfdbae
SDJ
147212014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14722
14723 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14724 function, with code from i386_stap_parse_special_token.
14725 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14726 (i386_stap_parse_special_token): Move code to the two functions
14727 above; simplify it.
14728
0000e5cc
PA
147292014-01-09 Pedro Alves <palves@redhat.com>
14730 Hui Zhu <hui@codesourcery.com>
14731
14732 PR gdb/16101
14733 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14734 bp_err_string. Don't mark the location shlib_disabled if the
14735 error thrown wasn't a generic or memory error. Catch errors
14736 thrown while inserting breakpoints in overlayed code. Output
14737 error message of software breakpoints.
14738 * remote.c (remote_insert_breakpoint): If this breakpoint has
14739 target-side commands but this stub doesn't support Z0 packets,
14740 throw NOT_SUPPORTED_ERROR error.
14741 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14742 * target.h (target_insert_breakpoint): Extend comment.
14743 (target_insert_hw_breakpoint): Add comment.
14744
b7ea362b
PA
147452014-01-08 Pedro Alves <palves@redhat.com>
14746
14747 * remote.c (remote_add_thread): Add threads silently if starting
14748 up.
14749 (remote_notice_new_inferior): If in all-stop, and starting up,
14750 don't call notice_new_inferior.
14751 (get_current_thread): New function, factored out from ...
14752 (add_current_inferior_and_thread): ... this. Adjust.
14753 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14754 found any thread, then select the remote's current thread as GDB's
14755 current thread too.
14756
b7bba001
JB
147572014-01-08 Joel Brobecker <brobecker@adacore.com>
14758
14759 * NEWS: Create a new section for the next release branch.
14760 Rename the section of the current branch, now that it has
14761 been cut.
14762
16dfbded
JB
147632014-01-08 Joel Brobecker <brobecker@adacore.com>
14764
14765 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14766 * version.in: Bump version to 7.7.50.DATE-cvs.
14767
22c90ac1
YQ
147682014-01-08 Yao Qi <yao@codesourcery.com>
14769
14770 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14771 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14772 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14773
d64ad97c
YQ
147742014-01-08 Yao Qi <yao@codesourcery.com>
14775
14776 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14777 return value of bfd_get_filename to symbol_file_add_from_bfd.
14778
f93ba80c
PM
147792014-01-08 Pierre Muller <muller@sourceware.org>
14780
14781 Fix PR16201.
14782 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14783 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14784 to prim_record_mininal_symbol_and_info.
14785 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14786 in call to prim_record_minimal_symbol_and_info.
14787 (read_pe_exported_syms): Set index field of section_data.
14788
a4d9ba85
AP
147892014-01-07 Andrew Pinski <apinski@cavium.com>
14790
14791 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14792 * features/aarch64.c: Regenerate.
14793
1b67eb02
AS
147942014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14795
14796 * target.c (return_null): Define.
14797 (update_current_target): Use it instead of return_zero for
14798 functions that return a pointer.
14799
5e3f4fab
EBM
148002014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14801
14802 * source.c (add_path): Fix check for duplicated paths in the previously
14803 included paths.
14804
e2616788
HK
148052014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14806
14807 * ada-lang.c: Remove duplicated include statements.
14808 * alphabsd-nat.c: Ditto.
14809 * amd64-darwin-tdep.c: Ditto.
14810 * amd64fbsd-nat.c: Ditto.
14811 * auto-load.c: Ditto.
14812 * ax-gdb.c: Ditto.
14813 * breakpoint.c: Ditto.
14814 * dbxread.c: Ditto.
14815 * fork-child.c: Ditto.
14816 * gdb_usleep.c: Ditto.
14817 * i386-darwin-tdep.c: Ditto.
14818 * i386fbsd-nat.c: Ditto.
14819 * infcmd.c: Ditto.
14820 * inferior.c: Ditto.
14821 * jv-lang.c: Ditto.
14822 * linux-nat.c: Ditto.
14823 * linux-tdep.c: Ditto.
14824 * m68kbsd-nat.c: Ditto.
14825 * m68klinux-nat.c: Ditto.
14826 * microblaze-tdep.c: Ditto.
14827 * mips-linux-tdep.c: Ditto.
14828 * mn10300-tdep.c: Ditto.
14829 * nto-tdep.c: Ditto.
14830 * opencl-lang.c: Ditto.
14831 * osdata.c: Ditto.
14832 * printcmd.c: Ditto.
14833 * regcache.c: Ditto.
14834 * remote-m32r-sdi.c: Ditto.
14835 * remote.c: Ditto.
14836 * symfile.c: Ditto.
14837 * symtab.c: Ditto.
14838 * tilegx-linux-nat.c: Ditto.
14839 * tilegx-tdep.c: Ditto.
14840 * tracepoint.c: Ditto.
14841 * valops.c: Ditto.
14842 * vaxbsd-nat.c: Ditto.
14843 * windows-nat.c: Ditto.
14844 * xtensa-tdep.c: Ditto.
14845
bd1f7788
YQ
148462014-01-07 Yao Qi <yao@codesourcery.com>
14847
14848 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14849
79301218
JB
148502014-01-07 Yao Qi <yao@codesourcery.com>
14851 Joel Brobecker <brobecker@adacore.com>
14852
14853 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14854 (pdc_write_regs): Likewise.
14855 (fetch_regs_kernel_thread): Likewise.
14856 (store_regs_kernel_thread): Likewise.
14857
148582014-01-07 Joel Brobecker <brobecker@adacore.com>
14859
14860 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14861 tagged type objects to their actual type.
14862
8e355c5d
JB
148632014-01-07 Joel Brobecker <brobecker@adacore.com>
14864
14865 * ada-valprint.c (print_field_values): Add "language" parameter.
14866 Update calls to print_field_values and print_variant_part.
14867 Pass new parameter "language" in call to val_print instead
14868 of "current_language". Replace call to ada_val_print by call
14869 to val_print.
14870 (print_variant_part): Add "language" parameter.
14871 (ada_val_print_struct_union): Update call to print_field_values.
14872
4fbf5aa5
JB
148732014-01-07 Joel Brobecker <brobecker@adacore.com>
14874
14875 * ada-valprint.c (ui_memcpy): Delete.
14876 (ada_print_floating): Update documentation. Add empty line
14877 between between function documentation and implementation.
14878 Delete variable "buffer". Use ui_file_xstrdup in place of
14879 ui_file_put. Minor adjustments following this change.
14880
71855601
JB
148812014-01-07 Joel Brobecker <brobecker@adacore.com>
14882
14883 * ada-valprint.c (ada_val_print_string): New function,
14884 extracted from ada_val_print_array.
14885 (ada_val_print_array): Replace extracted code by call
14886 to ada_val_print_string followed by a return. Move
14887 "else" branch to the function's top block.
14888
4eb27a30
JB
148892014-01-07 Joel Brobecker <brobecker@adacore.com>
14890
14891 * ada-valprint.c (ada_val_print_array): Move implementation
14892 down. Rename parameter "offset" and "val" into "offset_aligned"
14893 and "original_value" respectively. Add parameter "offset".
14894
34b27950
JB
148952014-01-07 Joel Brobecker <brobecker@adacore.com>
14896
14897 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14898 re-organizing the code. Change the "???" message printed
14899 when target type is a TYPE_CODE_UNDEF into
14900 "<ref to undefined type>".
14901
079e4591
JB
149022014-01-07 Joel Brobecker <brobecker@adacore.com>
14903
14904 * ada-valprint.c (print_record): Delete, implementation inlined...
14905 (ada_val_print_struct_union): ... here. Remove call to
14906 ada_check_typedef in inlined implementation.
14907
8004dfd1
JB
149082014-01-07 Joel Brobecker <brobecker@adacore.com>
14909
14910 * ada-valprint.c (ada_val_print_gnat_array): New function,
14911 extracted from ada_val_print_1;
14912 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14913 (ada_val_print_flt, ada_val_print_struct_union)
14914 (ada_val_print_ref): Likewise.
14915 (ada_val_print_1): Delete variables i and elttype.
14916 Replace extracted-out code by call to corresponding
14917 new functions.
14918
760a2db0
JB
149192014-01-07 Joel Brobecker <brobecker@adacore.com>
14920
14921 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14922
3a92c861
JB
149232014-01-07 Joel Brobecker <brobecker@adacore.com>
14924
14925 * ada-valprint.c (ada_val_print_1): Replace calls to
14926 ada_val_print_1 by calls to val_print.
14927
cd1630f9
JB
149282014-01-07 Joel Brobecker <brobecker@adacore.com>
14929
14930 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14931 Update calls to self accordingly. Replace calls to c_val_print
14932 by calls to val_print.
14933
bdf779a0
JB
149342014-01-07 Joel Brobecker <brobecker@adacore.com>
14935
14936 * ada-valprint.c (print_record): Delete declaration.
14937 (adjust_type_signedness, ada_val_print_1): Likewise.
14938 (ada_val_print): Move function implementation down.
14939 (print_variant_part, print_field_values, print_record):
14940 Move function implementation up.
14941
c0d48811
JB
149422014-01-07 Joel Brobecker <brobecker@adacore.com>
14943
14944 * python/py-type.c (typy_get_name): New function.
14945 (type_object_getset): Add entry for attribute "name".
14946 * NEWS: Add entry mentioning this new attribute.
14947
c26e9cbb
YQ
149482014-01-07 Yao Qi <yao@codesourcery.com>
14949
14950 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14951 statement.
14952
0cc6f43d
YQ
149532014-01-07 Yao Qi <yao@codesourcery.com>
14954
14955 * gnu-nat.c (info_port_rights): Add qualifier const to
14956 argument args.
14957
eec03155
YQ
149582014-01-07 Yao Qi <yao@codesourcery.com>
14959
14960 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14961
f04a82ef
YQ
149622014-01-07 Yao Qi <yao@codesourcery.com>
14963
14964 * gnu-nat.c (make_inf) Update declaration.
14965 (make_inf): Make it static.
14966 (inf_set_traced): Likewise.
14967 (inf_port_to_thread, inf_task_died_status): Likewise.
14968
d57dda0a
YQ
149692014-01-07 Yao Qi <yao@codesourcery.com>
14970
14971 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14972
3aa8c969
YQ
149732014-01-07 Yao Qi <yao@codesourcery.com>
14974
14975 * gnu-nat.c (_initialize_gnu_nat): Declare.
14976
94123b4f
YQ
149772014-01-07 Yao Qi <yao@codesourcery.com>
14978
14979 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14980 'enum bfd_endian'.
14981 (struct gdbarch_info) <byte_order>: Change type to
14982 'enum bfd_endian'.
14983 <byte_order_for_code>: Likewise.
14984 * gdbarch.c, gdbarch.h: Regenerated.
14985
dc81d70a
TT
149862014-01-06 Sasha Smundak <asmundak@google.com>
14987
14988 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14989
cc2f3c35
TT
149902014-01-06 Tom Tromey <tromey@redhat.com>
14991
14992 * doublest.c (convert_doublest_to_floatformat): Use const, not
14993 CONST.
14994 * somread.c (som_symtab_read): Likewise.
14995
adcf2eed
HZ
149962014-01-07 Hui Zhu <hui@codesourcery.com>
14997
14998 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14999 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15000 (gdb_bfd_fopen): Ditto.
15001 (gdb_bfd_openr): Ditto.
15002 (gdb_bfd_openw): Ditto.
15003 (gdb_bfd_openr_iovec): Ditto.
15004 (gdb_bfd_fdopenr): Ditto.
15005 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15006 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15007 with xstrdup.
15008 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15009 with xstrdup.
15010 * symfile-mem.c (symbol_file_add_from_memory): Removed
15011 gdb_bfd_stash_filename.
15012
50722198
DE
150132014-01-03 Doug Evans <dje@google.com>
15014
15015 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15016 output.
15017
2fa4b862
JB
150182014-01-01 Joel Brobecker <brobecker@adacore.com>
15019
15020 Update year range in copyright notice of all files.
15021
28498c42
JB
150222014-01-01 Joel Brobecker <brobecker@adacore.com>
15023
15024 * top.c (print_gdb_version): Set copyright year to 2014.
15025
7b6e1046
JB
150262014-01-01 Joel Brobecker <brobecker@adacore.com>
15027
15028 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15029
df96af55 15030For older changes see ChangeLog-2013.
c906108c
SS
15031\f
15032Local Variables:
15033mode: change-log
15034left-margin: 8
15035fill-column: 74
15036version-control: never
57da7796 15037coding: utf-8
c906108c 15038End:
This page took 2.242942 seconds and 4 git commands to generate.