Factor out code to re-resume stepped thread
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-08-07 Pedro Alves <palves@redhat.com>
2
3 * infrun.c (keep_going_stepped_thread): New function, factored out
4 from ...
5 (switch_back_to_stepped_thread): ... here.
6
7 2015-08-07 Pedro Alves <palves@redhat.com>
8
9 * infrun.c (currently_stepping): Extend intro comment.
10 * target.h (target_resume): Extend intro comment.
11
12 2015-08-07 Pedro Alves <palves@redhat.com>
13
14 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
15 of inferior_ptid. If the stepped thread vanished, return 0
16 instead of resuming here. Use reset_ecs. Print the prev_pc and
17 the current stop_pc in log message. Clear trap_expected if the
18 thread advanced. Don't pass currently_stepping to
19 do_target_resume.
20
21 2015-08-07 Pedro Alves <palves@redhat.com>
22
23 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
24 * infrun.c (struct execution_control_state): Move higher up in the
25 file.
26 (reset_ecs): New function.
27 (start_step_over): Now returns int. Rewrite to use
28 keep_going_pass_signal instead of manually starting a displaced step.
29 (resume): Don't call set_running here. If displaced stepping
30 can't start now, clear trap_expected.
31 (find_thread_needs_step_over): Delete function.
32 (proceed): Set up finish_thread_state_cleanup. Call set_running.
33 If the current thread needs a step over, push it in the step-over
34 chain. Don't set insert breakpoints nor call resume directly
35 here. Instead rewrite to use start_step_over and
36 keep_going_pass_signal.
37 (finish_step_over): New function.
38 (handle_signal_stop): Call finish_step_over instead of
39 start_step_over.
40 (switch_back_to_stepped_thread): If the event thread needs another
41 step-over do that first. Use start_step_over.
42 (keep_going_pass_signal): New function, factored out from ...
43 (keep_going): ... here.
44 (_initialize_infrun): Comment moved here.
45 * thread.c (set_running_thread): New function.
46 (set_running, finish_thread_state): Use set_running_thread.
47
48 2015-08-07 Pedro Alves <palves@redhat.com>
49
50 * gdbthread.h (struct thread_info) <step_over_prev,
51 step_over_next>: New fields.
52 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
53 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
54 declarations.
55 * infrun.c (struct displaced_step_request): Delete.
56 (struct displaced_step_inferior_state) <step_request_queue>:
57 Delete field.
58 (displaced_step_prepare): Assert that trap_expected is set. Use
59 thread_step_over_chain_enqueue. Split starting a new displaced
60 step to ...
61 (start_step_over): ... this new function.
62 (resume): Assert the thread isn't waiting for a step over already.
63 (proceed): Assert the thread isn't waiting for a step over
64 already.
65 (infrun_thread_stop_requested): Adjust to remove threads from the
66 embedded step-over chain.
67 (handle_inferior_event) <fork/vfork>: Call start_step_over after
68 displaced_step_fixup.
69 (handle_signal_stop): Call start_step_over after
70 displaced_step_fixup.
71 * infrun.h (step_over_queue_head): New declaration.
72 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
73 (thread_step_over_chain_next, thread_is_in_step_over_chain)
74 (thread_step_over_chain_enqueue)
75 (thread_step_over_chain_remove): New functions.
76 (delete_thread_1): Remove thread from the step-over chain.
77
78 2015-08-07 Pedro Alves <palves@redhat.com>
79
80 * infrun.c (thread_still_needs_step_over): Rename to ...
81 (thread_still_needs_step_over_bp): ... this.
82 (enum step_over_what): New.
83 (thread_still_needs_step_over): Reimplement.
84
85 2015-08-07 Pedro Alves <palves@redhat.com>
86
87 * remote.c (remote_wait_as): If not waiting for a stop reply,
88 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
89 requested, don't block waiting forever.
90
91 2015-08-07 Pedro Alves <pedro@codesourcery.com>
92
93 * infrun.c (adjust_pc_after_break): Now takes thread_info and
94 waitstatus pointers instead of an ecs. Adjust.
95 (handle_inferior_event): Adjust caller.
96
97 2015-08-07 Pedro Alves <palves@redhat.com>
98
99 * infrun.c (handle_inferior_event): If we get
100 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
101 mode, mark all threads of the exiting process as not-executing.
102 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
103 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
104 exiting process, if inferior_ptid still points at a process.
105 * thread.c (struct current_thread_cleanup) <next>: New field.
106 (current_thread_cleanup_chain): New global.
107 (restore_current_thread_ptid_changed): New function.
108 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
109 current_thread_cleanup_chain list.
110 (make_cleanup_restore_current_thread): Add the cleanup data to the
111 current_thread_cleanup_chain list.
112 (_initialize_thread): Install restore_current_thread_ptid_changed
113 as thread_ptid_changed observer.
114
115 2015-08-07 Joel Brobecker <brobecker@adacore.com>
116
117 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
118 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
119 smaller than expected.
120
121 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
122
123 * stack.c (get_frame_language): Moved ...
124 * frame.c (get_frame_language): ... to here.
125 * language.h (get_frame_language): Declaration moved to frame.h.
126 * frame.h: Add language.h include, for language enum.
127 (get_frame_language): Declaration moved from language.h.
128 * language.c: Add frame.h include.
129 * top.c: Add frame.h include.
130 * symtab.h (struct obj_section): Declare.
131 (struct cmd_list_element): Declare.
132
133 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 * language.c (show_language_command): Find selected frame before
136 asking for the language of that frame.
137 (set_language_command): Likewise.
138 * language.h (get_frame_language): Add frame parameter.
139 * stack.c (get_frame_language): Add frame parameter, assert
140 parameter is not NULL, update comment and reindent.
141 * top.c (check_frame_language_change): Pass the selected frame
142 into get_frame_language.
143
144 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
145
146 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
147 (pt_btrace_insn_flags): New.
148 (ftrace_add_pt): Call pt_btrace_insn_flags.
149 * btrace.h (btrace_insn_flag): New.
150 (btrace_insn) <flags>: New.
151 * record-btrace.c (btrace_insn_history): Print insn prefix.
152 * NEWS: Announce it.
153
154 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
155
156 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
157 * configure: Regenerate.
158
159 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
160
161 * Makefile.in (LIBICONV): Define.
162 (CLIBS): Add LIBICONV.
163 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
164 * configure: Regenerate.
165
166 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
167 Pedro Alves <palves@redhat.com>
168
169 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
170 (arm_set_abi): Likewise.
171 * ax-general.c (ax_print): Likewise.
172 * c-exp.y (exp : string_exp): Likewise.
173 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
174 (do_compile_dwarf_expr_to_c): Likewise.
175 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
176 Likewise.
177 * dwarf2expr.c (execute_stack_op): Likewise.
178 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
179 (disassemble_dwarf_expression): Likewise.
180 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
181 (read_array_order): Likewise.
182 (abbrev_table_read_table): Likewise.
183 (read_attribute_value): Likewise.
184 (skip_unknown_opcode): Likewise.
185 (dwarf_decode_macro_bytes): Likewise.
186 (dwarf_decode_macros): Likewise.
187 * eval.c (value_f90_subarray): Likewise.
188 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
189 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
190 * infrun.c (handle_command): Likewise.
191 * memory-map.c (memory_map_start_memory): Likewise.
192 * osabi.c (set_osabi): Likewise.
193 * parse.c (operator_length_standard): Likewise.
194 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
195 single return point.
196 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
197 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
198 (gdbpy_lookup_global_symbol): Likewise.
199 * record-full.c (record_full_restore): Likewise.
200 * regcache.c (regcache_register_status): Likewise.
201 (regcache_raw_read): Likewise.
202 (regcache_cooked_read): Likewise.
203 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
204 * symtab.c (initialize_ordinary_address_classes): Likewise.
205 * target-debug.h (target_debug_print_signals): Likewise.
206 * utils.c (do_restore_current_language): Likewise.
207
208 2015-08-06 Clem Dickey <clemd@acm.org>
209
210 PR python/17136
211 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
212
213 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
214
215 * complaints.c (enum complaint_series): Add newlines and remove
216 out of date comment.
217 (struct complaints) <series>: Change type to enum
218 complaint_series and remove out of date comment.
219 (symfile_complaint_hook): Use equivalent enum value
220 ISOLATED_MESSAGE instead of 0.
221
222 2015-08-06 Pedro Alves <palves@redhat.com>
223
224 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
225 returned > 0.
226
227 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
228
229 * common/agent.c (symbol_list) <required>: Remove.
230
231 2015-08-06 Pedro Alves <palves@redhat.com>
232
233 * target/waitstatus.h (enum target_stop_reason)
234 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
235
236 2015-08-05 Pedro Alves <palves@redhat.com>
237 Joel Brobecker <brobecker@adacore.com>
238
239 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
240 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
241 case where BS->STOP is not set.
242
243 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
244
245 * nat/gdb_thread_db.h: Add copyright header.
246 Protect against multiple inclusion.
247
248 2015-08-05 Yao Qi <yao.qi@linaro.org>
249
250 * aarch64-linux-nat.c (get_thread_id): Remove.
251 (debug_reg_change_callback): Call ptid_get_lwp instead of
252 get_thread_id.
253 (fetch_gregs_from_thread): Likewise.
254 (store_gregs_to_thread): Likewise.
255 (fetch_fpregs_from_thread): Likewise.
256 (store_fpregs_to_thread): Likewise.
257 (aarch64_linux_get_debug_reg_capacity): Likewise.
258 * arm-linux-nat.c (get_thread_id): Remove.
259 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
260 * xtensa-linux-nat.c (get_thread_id): Remove.
261 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
262 * arm-linux-nat.c (get_thread_id): Remove.
263 (GET_THREAD_ID): Remove.
264 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
265 (store_fpregs, fetch_regs, store_regs): Likewise.
266 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
267 (fetch_vfp_regs, store_vfp_regs): Likewise.
268 (arm_linux_read_description): Likewise.
269 (arm_linux_get_hwbp_cap): Likewise.
270 * xtensa-linux-nat.c (get_thread_id): Remove.
271 (GET_THREAD_ID): Remove.
272 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
273 GET_THREAD_ID.
274
275 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
276
277 * python/py-linetable.c: Fix case of Linetable to LineTable
278 in docstrings and code comments.
279 * python/py-symtab.c: Same.
280
281 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
282
283 * infcmd.c (signal_command): Call do_cleanups for args_chain.
284
285 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
286
287 PR gdb/18767
288 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
289 use.
290
291 2015-08-04 Pedro Alves <palves@redhat.com>
292
293 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
294 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
295 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
296 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
297 (td_thr_validate_ftype, td_thr_get_info_ftype)
298 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
299 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
300 New typedefs.
301 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
302 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
303 local macros and use them instead of verbose_dlsym and dlsym
304 calls.
305
306 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
307
308 * nios2-tdep.h: Include opcode/nios2.h here.
309 (NIOS2_CDX_OPCODE_SIZE): New.
310 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
311 * nios2-tdep.c: Don't include opcode/nios2.h here.
312 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
313 4-byte read fails.
314 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
315 (nios2_match_addi, nios2_match_orhi): Likewise.
316 (nios2_match_stw, nios2_match_ldw): Likewise.
317 (nios2_match_rdctl): Likewise.
318 (nios2_match_stwm, nios2_match_ldwm): New.
319 (nios2_match_branch): Add cases for R2 encodings.
320 (nios2_match_jmpi, nios2_match_calli): Likewise.
321 (nios2_match_jmpr, nios2_match_callr): Likewise.
322 (nios2_match_break, nios2_match_trap): Likewise.
323 (nios2_in_epilogue_p): Add R2 support.
324 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
325 prologues.
326 (nios2_breakpoint_from_pc): Handle R2 instructions.
327 (nios2_get_next_pc): Likewise. Adjust call to
328 tdep->syscall_next_pc.
329 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
330 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
331 instruction field macros instead of literal hex values.
332 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
333 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
334 Use size field from OP instead of assuming all instructions
335 are the same size.
336 (nios2_linux_init_abi): Register appropriate unwinder for mach.
337
338 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
339
340 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
341 variable warning with some compilers.
342
343 2015-08-03 Yao Qi <yao.qi@linaro.org>
344
345 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
346 in comment. Replace "rw" with "type".
347 (arm_linux_remove_watchpoint): Change type of "rw" to
348 "enum target_hw_bp_type".
349
350 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
351
352 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
353 lookup_symbol.
354 * ft32-tdep.c (ft32_skip_prologue): Likewise.
355 * moxie-tdep.c (moxie_skip_prologue): Likewise.
356 * mt-tdep.c (mt_skip_prologue): Likewise.
357 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
358
359 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
360
361 * ada-exp.y (write_object_renaming): Replace struct
362 ada_symbol_info with struct block_symbol. Update field
363 references accordingly.
364 (block_lookup, select_possible_type_sym): Likewise.
365 (find_primitive_type): Likewise. Also update call to
366 ada_lookup_symbol to extract the symbol itself.
367 (write_var_or_type, write_name_assoc): Likewise.
368 * ada-lang.h (struct ada_symbol_info): Remove.
369 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
370 struct block_symbol.
371 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
372 (ada_lookup_symbol): Return struct block_symbol instead of a
373 mere symbol.
374 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
375 with struct block_symbol.
376 (resolve_subexp, ada_resolve_function, sort_choices,
377 user_select_syms, is_nonfunction, add_defn_to_vec,
378 num_defns_collected, defns_collected,
379 symbols_are_identical_enums, remove_extra_symbols,
380 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
381 ada_lookup_symbol_list, ada_iterate_over_symbols,
382 ada_lookup_encoded_symbol, get_var_value): Likewise.
383 (ada_lookup_symbol): Return a block_symbol instead of a mere
384 symbol. Replace struct ada_symbol_info with struct
385 block_symbol.
386 (ada_lookup_symbol_nonlocal): Likewise.
387 (standard_lookup): Make block passing explicit through
388 lookup_symbol_in_language.
389 * ada-tasks.c (get_tcb_types_info): Update the calls to
390 lookup_symbol_in_language to extract the mere symbol out of the
391 returned value.
392 (ada_tasks_inferior_data_sniffer): Likewise.
393 * ax-gdb.c (gen_static_field): Likewise for the call to
394 lookup_symbol.
395 (gen_maybe_namespace_elt): Deal with struct block_symbol from
396 lookup functions.
397 (gen_expr): Likewise.
398 * c-exp.y: Likewise. Remove uses of block_found.
399 (lex_one_token, classify_inner_name, c_print_token): Likewise.
400 (classify_name): Likewise. Rename the "sym" local variable to
401 "bsym".
402 * c-valprint.c (print_unpacked_pointer): Likewise.
403 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
404 "sym" parameter from struct symbol * to struct block_symbol.
405 Use it to remove uses of block_found. Deal with struct
406 block_symbol from lookup functions.
407 (gcc_convert_symbol): Likewise. Update the call to
408 convert_symbol_sym.
409 * compile/compile-object-load.c (compile_object_load): Deal with
410 struct block_symbol from lookup functions.
411 * cp-namespace.c (cp_lookup_nested_symbol_1,
412 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
413 cp_search_static_and_baseclasses,
414 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
415 cp_lookup_symbol_imports_or_template,
416 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
417 lookup_namespace_scope, cp_lookup_nonlocal,
418 find_symbol_in_baseclass): Return struct block_symbol instead of
419 mere symbols and deal with struct block_symbol from lookup
420 functions.
421 * cp-support.c (inspect_type, replace_typedefs,
422 cp_lookup_rtti_type): Deal with struct block_symbol from
423 lookup functions.
424 * cp-support.h (cp_lookup_symbol_nonlocal,
425 cp_lookup_symbol_from_namespace,
426 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
427 Return struct block_symbol instead of mere symbols.
428 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
429 push_module_name):
430 Deal with struct block_symbol from lookup functions. Remove
431 uses of block_found.
432 * eval.c (evaluate_subexp_standard): Update call to
433 cp_lookup_symbol_namespace.
434 * f-exp.y: Deal with struct block_symbol from lookup functions.
435 Remove uses of block_found.
436 (yylex): Likewise.
437 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
438 lookup_enum, lookup_template_type, check_typedef): Deal with
439 struct block_symbol from lookup functions.
440 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
441 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
442 (gdbscm_lookup_global_symbol): Likewise.
443 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
444 * go-exp.y: Likewise. Remove uses of block_found.
445 (package_name_p, classify_packaged_name, classify_name):
446 Likewise.
447 * infrun.c (insert_exception_resume_breakpoint): Likewise.
448 * jv-exp.y (push_variable): Likewise.
449 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
450 * language.c (language_bool_type): Likewise.
451 * language.h (struct language_defn): Update
452 la_lookup_symbol_nonlocal to return a struct block_symbol rather
453 than a mere symbol.
454 * linespec.c (find_label_symbols): Deal with struct block_symbol
455 from lookup functions.
456 * m2-exp.y: Likewise. Remove uses of block_found.
457 (yylex): Likewise.
458 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
459 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
460 * p-exp.y: Likewise. Remove uses of block_found.
461 (yylex): Likewise.
462 * p-valprint.c (pascal_val_print): Likewise.
463 * parse.c (write_dollar_variable): Likewise. Remove uses of
464 block_found.
465 * parser-defs.h (struct symtoken): Turn the SYM field into a
466 struct block_symbol.
467 * printcmd.c (address_info): Deal with struct block_symbol from
468 lookup functions.
469 * python/py-frame.c (frapy_read_var): Likewise.
470 * python/py-symbol.c (gdbpy_lookup_symbol,
471 gdbpy_lookup_global_symbol): Likewise.
472 * skip.c (skip_function_command): Likewise.
473 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
474 block_symbol instead of a mere symbol.
475 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
476 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
477 * solib.c (solib_global_lookup): Likewise.
478 * solist.h (solib_global_lookup): Likewise.
479 (struct target_so_ops): Update lookup_lib_global_symbol to
480 return a struct block_symbol rather than a mere symbol.
481 * source.c (select_source_symtab): Deal with struct block_symbol
482 from lookup functions.
483 * stack.c (print_frame_args, iterate_over_block_arg_vars):
484 Likewise.
485 * symfile.c (set_initial_language): Likewise.
486 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
487 block_symbol.
488 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
489 (struct symbol_cache_slot): Turn the FOUND field into a struct
490 block_symbol.
491 (block_found): Remove.
492 (eq_symbol_entry): Update to deal with struct block_symbol in
493 cache slots.
494 (symbol_cache_lookup): Return a struct block_symbol rather than
495 a mere symbol.
496 (symbol_cache_mark_found): Add a BLOCK parameter to fill
497 appropriately the cache slots. Update callers.
498 (symbol_cache_dump): Update cache slots handling to the type
499 change.
500 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
501 lookup_symbol_aux, lookup_local_symbol,
502 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
503 lookup_symbol_in_objfile_symtabs,
504 lookup_symbol_in_objfile_from_linkage_name,
505 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
506 lookup_symbol_in_static_block, lookup_static_symbol,
507 lookup_global_symbol):
508 Return a struct block_symbol rather than a mere symbol. Deal
509 with struct block_symbol from other lookup functions. Remove
510 uses of block_found.
511 (lookup_symbol_in_block): Remove uses of block_found.
512 (struct global_sym_lookup_data): Turn the RESULT field into a
513 struct block_symbol.
514 (lookup_symbol_global_iterator_cb): Update references to the
515 RESULT field.
516 (search_symbols): Deal with struct block_symbol from lookup
517 functions.
518 * symtab.h (struct block_symbol): New structure.
519 (block_found): Remove.
520 (lookup_symbol_in_language, lookup_symbol,
521 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
522 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
523 lookup_global_symbol_from_objfile): Return a struct block_symbol
524 rather than just a mere symbol. Update comments to remove
525 mentions of block_found.
526 * valops.c (find_function_in_inferior,
527 value_struct_elt_for_reference, value_maybe_namespace_elt,
528 value_of_this): Deal with struct block_symbol from lookup
529 functions.
530 * value.c (value_static_field, value_fn_field): Likewise.
531
532 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
533
534 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
535 instead of integer.
536
537 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
538 Pedro Alves <palves@redhat.com>
539
540 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
541 type or value instead of integer.
542 (aarch64_linux_insert_watchpoint): Likewise.
543 (aarch64_linux_remove_watchpoint): Likewise.
544 * ada-lang.c (ada_op_print_tab): Likewise.
545 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
546 (amd64_linux_syscall_record_common): Likewise.
547 * arch-utils.c (target_byte_order_user): Likewise.
548 (default_byte_order): Likewise.
549 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
550 (arm_linux_get_hwbp_type): Likewise.
551 (arm_linux_hw_watchpoint_initialize): Likewise.
552 (arm_linux_insert_watchpoint): Likewise.
553 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
554 (arm_linux_syscall_record): Likewise.
555 * breakpoint.c (update_watchpoint): Likewise.
556 (breakpoint_here_p): Likewise.
557 (bpstat_print): Likewise.
558 (enable_breakpoint_disp): Likewise.
559 * c-lang.c (c_op_print_tab): Likewise.
560 * cli/cli-decode.c (add_info_alias): Likewise.
561 * d-lang.c (d_op_print_tab): Likewise.
562 * eval.c (evaluate_subexp_standard): Likewise.
563 * f-exp.y (dot_ops): Likewise.
564 (f77_keywords): Likewise.
565 * f-lang.c (f_op_print_tab): Likewise.
566 * go-lang.c (go_op_print_tab): Likewise.
567 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
568 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
569 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
570 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
571 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
572 (struct scm_from_stringn_data): Likewise.
573 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
574 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
575 (ia64_linux_remove_watchpoint): Likewise.
576 (ia64_linux_can_use_hw_breakpoint): Likewise.
577 * infrun.c (print_stop_event): Likewise.
578 * jv-lang.c (java_op_print_tab): Likewise.
579 * linux-nat.c (linux_proc_xfer_partial): Likewise.
580 * linux-nat.h (struct lwp_info): Likewise.
581 * linux-thread-db.c (enable_thread_event): Likewise.
582 * m2-lang.c (m2_op_print_tab): Likewise.
583 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
584 (mi_cmd_stack_list_variables): Likewise.
585 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
586 * mi/mi-out.c (mi_table_begin): Likewise.
587 (mi_table_header): Likewise.
588 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
589 (mips_linux_insert_watchpoint): Likewise.
590 (mips_linux_remove_watchpoint): Likewise.
591 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
592 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
593 (mips_linux_watch_type_to_irw): Likewise.
594 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
595 (procfs_insert_hw_watchpoint): Likewise.
596 (procfs_remove_hw_watchpoint): Likewise.
597 (procfs_hw_watchpoint): Likewise.
598 (procfs_can_use_hw_breakpoint): Likewise.
599 (procfs_remove_hw_watchpoint): Likewise.
600 (procfs_insert_hw_watchpoint): Likewise.
601 * p-lang.c (pascal_op_print_tab): Likewise.
602 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
603 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
604 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
605 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
606 (procfs_insert_watchpoint): Likewise.
607 (procfs_remove_watchpoint): Likewise.
608 * psymtab.c (recursively_search_psymtabs): Likewise.
609 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
610 (m32r_insert_watchpoint): Likewise.
611 * remote-mips.c (mips_can_use_watchpoint): Likewise.
612 (mips_insert_watchpoint): Likewise.
613 (mips_remove_watchpoint): Likewise.
614 * remote.c (watchpoint_to_Z_packet): Likewise.
615 (remote_insert_watchpoint): Likewise.
616 (remote_remove_watchpoint): Likewise.
617 (remote_check_watch_resources): Likewise.
618 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
619 (s390_remove_watchpoint): Likewise.
620 (s390_can_use_hw_breakpoint): Likewise.
621 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
622 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
623 * target.h (struct target_ops): Likewise.
624 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
625 * ui-out.c (struct ui_out_hdr): Likewise.
626 (append_header_to_list): Likewise.
627 (get_next_header): Likewise.
628 (verify_field): Likewise.
629 (ui_out_begin): Likewise.
630 (ui_out_field_int): Likewise.
631 (ui_out_field_fmt_int): Likewise.
632 (ui_out_field_skip): Likewise.
633 (ui_out_field_string): Likewise.
634 (ui_out_field_fmt): Likewise.
635 * varobj.c (new_variable): Likewise.
636 * x86-nat.c (x86_insert_watchpoint): Likewise.
637 (x86_remove_watchpoint): Likewise.
638 (x86_can_use_hw_breakpoint): Likewise.
639 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
640 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
641 previously anonymous enumeration type..
642 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
643 value.
644 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
645 (target_debug_print_enum_bptype): New.
646 * target-delegates.c: Regenerate.
647
648 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
649
650 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
651 already says and disallow non-stack memory writes in the prologue.
652
653 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
654
655 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
656 reflect how current GCC emits stack overflow checks. Match
657 both trap and break instructions for backward compatbility.
658 Disallow other trap and break instructions in the prologue.
659
660 2015-07-30 Pedro Alves <palves@redhat.com>
661
662 PR threads/18600
663 * linux-nat.c (wait_lwp): Report to the core when thread group
664 leader exits.
665
666 2015-07-30 Pedro Alves <palves@redhat.com>
667 Simon Marchi <simon.marchi@ericsson.com>
668
669 PR threads/18600
670 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
671 mark the new thread as resumed. Remove STOPPING parameter.
672 (wait_lwp): Adjust call to linux_handle_extended_wait.
673 (linux_nat_filter_event): Adjust call to
674 linux_handle_extended_wait.
675 (resume_stopped_resumed_lwps): Add debug output.
676
677 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
678
679 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
680 isize argument.
681 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
682 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
683 gdbarch_fast_tracepoint_valid_at.
684 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
685 * gdbarch.h: Regenerate.
686 * gdbarch.c: Regenerate.
687 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
688 argument. Do not set it.
689 * remote.c (remote_download_tracepoint): Adjust call to
690 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
691 the instruction length.
692
693 2015-07-30 Yao Qi <yao.qi@linaro.org>
694
695 * arm-tdep.h (enum gdb_regnum): Move it to ...
696 * arch/arm.h: ... here. New file.
697 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
698
699 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
700
701 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
702 Change its type to int *.
703 (decode_br): Rename link argument to is_blr. Change its type to
704 int *.
705 (decode_cb): Rename op argument to is_cbnz. Change its type to
706 int *.
707 (decode_tb): Rename op argument to is_tbnz. Change its type to
708 int *. Set is_tbnz to either 1 or 0.
709 (aarch64_analyze_prologue): Change type of is_link to int. Add
710 new variables is_cbnz and is_tbnz. Adjust call to
711 aarch64_decode_cb and aarch64_decode_tb.
712
713 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
714
715 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
716 parameter.
717 (mips_linux_new_thread): Likewise.
718 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
719
720 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
721
722 * top.c: Include "tui/tui.h".
723 (undo_terminal_modifications_before_exit): New static function.
724 (quit_force): Use it.
725
726 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
727
728 * target.c (terminal_state): Initialize to terminal_is_ours.
729
730 2015-07-29 Yao Qi <yao.qi@linaro.org>
731
732 PR record/18691
733 * dcache.c (dcache_read_memory_partial): Call
734 raw_memory_xfer_partial.
735 * target.c (raw_memory_xfer_partial): Make it non-static.
736 * target.h (raw_memory_xfer_partial): Declare.
737
738 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
739
740 * c-valprint.c (c_val_print_array): Consider addressable memory
741 unit size.
742 (c_val_print_ptr): Likewise.
743 (c_val_print_int): Likewise.
744 * findvar.c (read_frame_register_value): Likewise.
745 * valarith.c (find_size_for_pointer_math): Likewise.
746 (value_ptrdiff): Likewise.
747 (value_subscripted_rvalue): Likewise.
748 * valops.c (read_value_memory): Likewise (and rename variables).
749 (value_assign): Likewise.
750 (value_repeat): Likewise.
751 (value_array): Likewise.
752 (value_slice): Likewise.
753 * valprint.c (generic_val_print_ptr): Likewise.
754 (generic_val_print_enum): Likewise.
755 (generic_val_print_bool): Likewise.
756 (generic_val_print_int): Likewise.
757 (generic_val_print_char): Likewise.
758 (generic_val_print_float): Likewise.
759 (generic_val_print_decfloat): Likewise.
760 (generic_val_print_complex): Likewise.
761 (val_print_scalar_formatted): Likewise.
762 (val_print_array_elements): Likewise.
763 * value.c (set_value_parent): Likewise.
764 (value_contents_copy_raw): Likewise.
765 (set_internalvar_component): Likewise.
766 (value_primitive_field): Likewise.
767 (value_fetch_lazy): Likewise.
768 * value.h (read_value_memory): Update comment.
769
770 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
771
772 * value.c (get_value_arch): New function.
773 * value.h (get_value_arch): New declaration.
774
775 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
776
777 * value.c (struct value): Update comments.
778
779 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
780
781 * gdbtypes.c (type_length_units): New function.
782 * gdbtypes.h (type_length_units): New declaration.
783 (struct type) <length>: Update comment.
784
785 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
786
787 * valprint.c (generic_val_print): Factor out complex
788 printing code to ...
789 (generic_val_print_complex): ... this new function.
790
791 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
792
793 * valprint.c (generic_val_print): Factor out decfloat
794 printing code to ...
795 (generic_val_print_decfloat): ... this new function.
796
797 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
798
799 * valprint.c (generic_val_print): Factor out float
800 printing code to ...
801 (generic_val_print_float): ... this new function.
802
803 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
804
805 * valprint.c (generic_val_print): Factor out char
806 printing code to ...
807 (generic_val_print_char): ... this new function.
808
809 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
810
811 * valprint.c (generic_val_print): Factor out integer
812 printing code to ...
813 (generic_val_print_int): ... this new function.
814
815 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
816
817 * valprint.c (generic_val_print): Factor out bool
818 printing code to ...
819 (generic_val_print_bool): ... this new function.
820
821 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
822
823 * valprint.c (generic_val_print): Factor out function/method
824 printing code to ...
825 (generic_val_print_func): ... this new function.
826
827 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
828
829 * valprint.c (generic_val_print): Factor out flags
830 printing code to ...
831 (generic_val_print_flags): ... this new function.
832
833 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
834
835 * valprint.c (generic_val_print): Factor out enum
836 printing code to ...
837 (generic_val_print_enum): ... this new function.
838
839 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
840
841 * valprint.c (generic_val_print): Factor out reference
842 printing code to ...
843 (generic_val_print_ref): ... this new function.
844
845 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
846
847 * valprint.c (generic_val_print): Factor out memberptr
848 printing code to ...
849 (generic_val_print_memberptr): ... this new function.
850
851 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
852
853 * valprint.c (generic_val_print): Factor out pointer
854 printing code to ...
855 (generic_val_print_ptr): ... this new function.
856
857 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
858
859 * valprint.c (generic_val_print): Factor out array
860 printing code to ...
861 (generic_val_print_array): ... this new function.
862
863 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
864
865 * valprint.c (generic_val_print): Factor out
866 print_unpacked_pointer code to ...
867 (print_unpacked_pointer): ... this new function.
868
869 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
870
871 * event-top.c (handle_sigterm): Don't inspect
872 target_can_async_p. Always set the quit flag and always mark
873 the async signal handler.
874
875 2015-07-27 Yao Qi <yao.qi@linaro.org>
876
877 * Makefile.in (REMOTE_EXAMPLES): Remove it.
878
879 2015-07-25 Kevin Buettner <kevinb@redhat.com>
880
881 * remote.c (read_ptid): Return null_ptid when no thread id
882 is found.
883 (remote_current_thread): Add log warning for malformed
884 qC reply.
885 (remote_start_remote): Add log warning when current thread
886 not found.
887
888 2015-07-24 Pedro Alves <palves@redhat.com>
889
890 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
891 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
892 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
893
894 2015-07-24 Pedro Alves <palves@redhat.com>
895
896 PR gdb/18717
897 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
898 is resumed, and extend the debug log.
899
900 2015-07-24 Pedro Alves <palves@redhat.com>
901
902 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
903
904 2015-07-24 Pedro Alves <palves@redhat.com>
905
906 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
907 sys/ptrace.h.
908 * alpha-linux-nat.c: Likewise.
909 * amd64-linux-nat.c: Likewise.
910 * arm-linux-nat.c: Likewise.
911 * hppa-linux-nat.c: Likewise.
912 * i386-linux-nat.c: Likewise.
913 * ia64-linux-nat.c: Likewise.
914 * linux-fork.c: Likewise.
915 * linux-nat.c: Likewise.
916 * m32r-linux-nat.c: Likewise.
917 * m68klinux-nat.c: Likewise.
918 * mips-linux-nat.c: Likewise.
919 * nat/linux-btrace.c: Likewise.
920 * nat/linux-ptrace.c: Likewise.
921 * nat/linux-ptrace.h
922 * nat/mips-linux-watch.c: Likewise.
923 * nat/x86-linux-dregs.c: Likewise.
924 * ppc-linux-nat.c: Likewise.
925 * s390-linux-nat.c: Likewise.
926 * spu-linux-nat.c: Likewise.
927 * tilegx-linux-nat.c: Likewise.
928 * x86-linux-nat.c: Likewise.
929 * xtensa-linux-nat.c: Likewise.
930
931 2015-07-24 Pedro Alves <palves@redhat.com>
932
933 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
934 __ptrace_request as first parameter type instead of int.
935 (PTRACE_TYPE_ARG1): Define.
936 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
937 that casts first argument to PTRACE_TYPE_ARG1.
938 * config.in: Regenerate.
939 * configure: Regenerate.
940
941 2015-07-24 Pedro Alves <palves@redhat.com>
942
943 * gdb_ptrace.h: Move ...
944 * nat/gdb_ptrace.h: ... here.
945 * inf-ptrace.c: Adjust.
946
947 2015-07-24 Pedro Alves <palves@redhat.com>
948
949 * acinclude.m4: Include ptrace.m4.
950 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
951 * ptrace.m4: ... to this new file.
952
953 2015-07-23 Doug Evans <dje@google.com>
954
955 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
956 (load_cu): Handle dummy CUs.
957 (dw2_do_instantiate_symtab, process_queuef): Ditto.
958 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
959
960 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
961
962 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
963 documentation to say that it returns a list rather than
964 a FrozenSet.
965 (linetable_object_methods): Update the docstring of the
966 "source_line" entry.
967
968 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
969
970 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
971 type to the recursive call instead of the original (maybe
972 TYPE_CODE_TYPEDEF) type.
973
974 2015-07-23 Yao Qi <yao.qi@linaro.org>
975
976 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
977 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
978 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
979
980 2015-07-21 Yao Qi <yao.qi@linaro.org>
981
982 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
983 Move it to nat/aarch64-linux-hw-point.c.
984 (aarch64_linux_child_post_startup_inferior): Update.
985 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
986 New function.
987 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
988 Declare it.
989
990 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
991
992 * common/btrace-common.c (btrace_data_append): Change case label.
993
994 2015-07-20 Yao Qi <yao.qi@linaro.org>
995
996 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
997 Re-indent the code.
998 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
999 "unsigned long long".
1000
1001 2015-07-18 Kevin Buettner <kevinb@redhat.com>
1002
1003 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
1004 to be set for SEC_ALLOC sections too.
1005
1006 2015-07-17 Yao Qi <yao.qi@linaro.org>
1007
1008 * Makefile.in (HFILES_NO_SRCDIR): Add
1009 nat/aarch64-linux-hw-point.h.
1010 (aarch64-linux-hw-point.o): New rule.
1011 * nat/aarch64-linux-hw-point.h: New file.
1012 * nat/aarch64-linux-hw-point.c: New file.
1013 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
1014 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
1015 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
1016 (AARCH64_HWP_ALIGNMENT): Likewise.
1017 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
1018 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
1019 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
1020 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
1021 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
1022 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
1023 (struct aarch64_debug_reg_state): Likewise.
1024 (struct arch_lwp_info): Likewise.
1025 (aarch64_linux_set_debug_regs): Likewise.
1026 (aarch64_notify_debug_reg_change): Remove static.
1027 (aarch64_align_watchpoint): Likewise.
1028 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
1029 (aarch64_watchpoint_length): Likewise.
1030 (aarch64_point_encode_ctrl_reg): Likewise
1031 (aarch64_point_is_aligned): Likewise.
1032 (aarch64_dr_state_insert_one_point): Likewise.
1033 (aarch64_dr_state_remove_one_point): Likewise.
1034 (aarch64_handle_breakpoint): Likewise.
1035 (aarch64_handle_aligned_watchpoint): Likewise.
1036 (aarch64_handle_unaligned_watchpoint): Likewise.
1037 (aarch64_handle_watchpoint): Likewise.
1038 * config/aarch64/linux.mh (NAT_FILE): Add
1039 aarch64-linux-hw-point.o.
1040
1041 2015-07-17 Yao Qi <yao.qi@linaro.org>
1042
1043 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
1044 state and don't call aarch64_get_debug_reg_state. All callers
1045 update.
1046 (aarch64_linux_insert_hw_breakpoint): Call
1047 aarch64_get_debug_reg_state earlier.
1048 (aarch64_linux_remove_hw_breakpoint): Likewise.
1049 (aarch64_handle_aligned_watchpoint): Add argument state and
1050 don't call aarch64_get_debug_reg_state. All callers update.
1051 (aarch64_handle_unaligned_watchpoint): Likewise.
1052 (aarch64_handle_watchpoint): Add argument state.
1053 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
1054 earlier.
1055 (aarch64_linux_remove_watchpoint): Likewise.
1056
1057 2015-07-17 Yao Qi <yao.qi@linaro.org>
1058
1059 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
1060 debug_printf.
1061 (aarch64_handle_unaligned_watchpoint): Likewise.
1062
1063 2015-07-17 Yao Qi <yao.qi@linaro.org>
1064
1065 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
1066 argument type's type to 'enum target_hw_bp_type'.
1067 (aarch64_dr_state_remove_one_point): Likewise.
1068 (aarch64_handle_breakpoint): Likewise.
1069 (aarch64_linux_insert_hw_breakpoint): Likewise.
1070 (aarch64_linux_remove_hw_breakpoint): Likewise.
1071 (aarch64_handle_aligned_watchpoint): Likewise.
1072
1073 2015-07-17 Yao Qi <yao.qi@linaro.org>
1074
1075 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
1076 ptid_get_pid instead of get_thread_id.
1077
1078 2015-07-17 Yao Qi <yao.qi@linaro.org>
1079
1080 * remote.c (get_current_thread): Initialise ptid to null_ptid.
1081 (add_current_inferior_and_thread): Don't initialise ptid.
1082
1083 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
1084
1085 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
1086 unavailable if invalid.
1087
1088 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1089
1090 Revert the previous 6 commits:
1091 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
1092 Move gdb_regex* to common/
1093 Prepare linux_find_memory_regions_full & co. for move
1094 Move linux_find_memory_regions_full & co.
1095 gdbserver build-id attribute generator
1096 Validate symbol file using build-id
1097
1098 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1099 Jan Kratochvil <jan.kratochvil@redhat.com>
1100
1101 Validate symbol file using build-id.
1102 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
1103 and 'show validate-build-id'. Add build-id attribute.
1104 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
1105 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
1106 * solib-frv.c (_initialize_frv_solib): Ditto.
1107 * solib-spu.c (set_spu_solib_ops): Ditto.
1108 * solib-svr4.c: Include rsp-low.h.
1109 (NOTE_GNU_BUILD_ID_NAME): New define.
1110 (svr4_validate): New function.
1111 (svr4_copy_library_list): Duplicate field build_id.
1112 (library_list_start_library): Parse 'build-id' attribute.
1113 (svr4_library_attributes): Add 'build-id' attribute.
1114 (_initialize_svr4_solib): Assign validate value.
1115 * solib-target.c (solib.h): Include.
1116 (_initialize_solib_target): Assign validate value.
1117 * solib.c (validate_build_id, show_validate_build_id): New.
1118 (solib_map_sections): Use ops->validate.
1119 (clear_so): Free build_id.
1120 (default_solib_validate): New function.
1121 (_initialize_solib): Add "validate-build-id".
1122 * solib.h (default_solib_validate): New declaration.
1123 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
1124 (target_so_ops): New field 'validate'.
1125
1126 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1127 Jan Kratochvil <jan.kratochvil@redhat.com>
1128
1129 gdbserver build-id attribute generator.
1130 * features/library-list-svr4.dtd (library-list-svr4): New
1131 'build-id' attribute.
1132
1133 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1134 Jan Kratochvil <jan.kratochvil@redhat.com>
1135
1136 Move linux_find_memory_regions_full & co.
1137 * linux-tdep.c (nat/linux-maps.h): Include.
1138 (gdb_regex.h): Remove the include.
1139 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
1140 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
1141 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
1142 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
1143 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
1144 and target/target.h.
1145 (struct smaps_vmflags, read_mapping, decode_vmflags)
1146 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
1147 (linux_find_memory_regions_full): Move from linux-tdep.c.
1148 * nat/linux-maps.h (read_mapping): New declaration.
1149 (linux_find_memory_region_ftype, enum filterflags): Moved from
1150 linux-tdep.c.
1151 (linux_find_memory_regions_full): New declaration.
1152 * target.c (target/target-utils.h): Include.
1153 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
1154 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
1155 definitions to target/target-utils.c.
1156 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
1157 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
1158 from target.c.
1159 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
1160 (read_alloc): New declaration.
1161 (read_stralloc_func_ftype): New typedef.
1162 (read_stralloc): New declaration.
1163 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
1164
1165 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1166 Jan Kratochvil <jan.kratochvil@redhat.com>
1167
1168 Prepare linux_find_memory_regions_full & co. for move.
1169 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
1170 (linux_find_memory_regions_full): Change signature and prepare
1171 for moving to linux-maps.
1172 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
1173 (linux_find_memory_regions_thunk): New.
1174 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
1175 (linux_find_memory_regions_gdb): New.
1176 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
1177 (linux_make_mappings_corefile_notes): Use
1178 linux_find_memory_regions_gdb.
1179 * target.c (read_alloc_pread_ftype): New typedef.
1180 (target_fileio_read_alloc_1_pread): New function.
1181 (read_alloc): Refactor from target_fileio_read_alloc_1.
1182 (read_stralloc_func_ftype): New typedef.
1183 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
1184 (read_stralloc): Refactored from target_fileio_read_stralloc.
1185 (target_fileio_read_stralloc): New implementation, use read_stralloc.
1186
1187 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1188
1189 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
1190 common/gdb_regex.h.
1191 (COMMON_OBS): Add gdb_regex.o.
1192 (gdb_regex.o): New.
1193 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
1194 --without-included-regex and USE_INCLUDED_REGEX.
1195 * common/gdb_regex.c: New file from utils.c functions.
1196 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
1197 file wrapping define name.
1198 * configure: Rebuilt.
1199 * configure.ac (gdb_use_included_regex, --without-included-regex)
1200 (USE_INCLUDED_REGEX): Move them to common/common.m4.
1201 * gdb_regex.h: Move it to common/gdb_regex.h.
1202 * utils.c: Remove include gdb_regex.h.
1203 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
1204 (compile_rx_or_error): Move them to common/gdb_regex.c.
1205
1206 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1207 Jan Kratochvil <jan.kratochvil@redhat.com>
1208
1209 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
1210 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
1211 common/target-utils.h.
1212 (COMMON_OBS): Add target-utils.o.
1213 (linux-maps.o, target-utils.o): New.
1214 * target/target-utils.c: New file.
1215 * target/target-utils.h: New file.
1216 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
1217 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1218 * nat/linux-maps.c: New file.
1219 * nat/linux-maps.h: New file.
1220
1221 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
1222 Pedro Alves <palves@redhat.com>
1223
1224 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
1225 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
1226 (perf_event_read_bts): Change the type of SIZE and READ.
1227 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
1228 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
1229 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
1230 mmap page.
1231 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
1232 buffer size to UINT_MAX.
1233 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
1234 DATA_TAIL.
1235 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
1236 <last_head>: Change type.
1237 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
1238 * common/btrace-common.c (btrace_data_append): Change the type of
1239 SIZE.
1240 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
1241 check.
1242
1243 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
1244
1245 * gdbtypes.h (CHECK_TYPEDEF): Remove.
1246 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
1247 with check_typedef.
1248 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
1249 (ada_array_length): Likewise.
1250 (find_parallel_type_by_descriptive_type): Likewise.
1251 (ada_check_typedef): Likewise.
1252 * arm-tdep.c (arm_return_in_memory): Likewise.
1253 * ax-gdb.c (gen_trace_static_fields): Likewise.
1254 (gen_struct_ref_recursive): Likewise.
1255 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
1256 (variable: block COLONCOLON name): Likewise.
1257 (qualified_name: TYPENAME COLONCOLON name): Likewise.
1258 * c-lang.c (classify_type): Likewise.
1259 * c-typeprint.c (c_print_type): Likewise.
1260 (c_print_typedef): Likewise.
1261 (c_type_print_base): Likewise.
1262 * c-valprint.c (c_val_print): Likewise.
1263 * compile/compile-c-types.c (convert_type): Likewise.
1264 * compile/compile-object-load.c (get_out_value_type): Likewise.
1265 * completer.c (add_struct_fields): Likewise.
1266 (expression_completer): Likewise.
1267 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
1268 (cp_lookup_nested_symbol_1): Likewise.
1269 (cp_lookup_nested_symbol): Likewise.
1270 * cp-valprint.c (cp_print_value_fields): Likewise.
1271 (cp_print_static_field): Likewise.
1272 * d-valprint.c (d_val_print): Likewise.
1273 * eval.c (evaluate_subexp_standard): Likewise.
1274 (evaluate_subexp_for_sizeof): Likewise.
1275 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
1276 * f-typeprint.c (f_type_print_base): Likewise.
1277 * f-valprint.c (f_val_print): Likewise.
1278 * gdbtypes.c (get_discrete_bounds): Likewise.
1279 (create_array_type_with_stride): Likewise.
1280 (type_name_no_tag_or_error): Likewise.
1281 (lookup_struct_elt_type): Likewise.
1282 (get_unsigned_type_max): Likewise.
1283 (internal_type_vptr_fieldno): Likewise.
1284 (set_type_vptr_fieldno): Likewise.
1285 (internal_type_vptr_basetype): Likewise.
1286 (set_type_vptr_basetype): Likewise.
1287 (get_vptr_fieldno): Likewise.
1288 (is_integral_type): Likewise.
1289 (is_scalar_type): Likewise.
1290 (is_scalar_type_recursive): Likewise.
1291 (distance_to_ancestor): Likewise.
1292 (is_unique_ancestor_worker): Likewise.
1293 (check_types_equal): Likewise.
1294 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
1295
1296 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
1297
1298 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
1299 also test for language_d.
1300 (dwarf2_compute_name): Likewise.
1301 (read_func_scope): Likewise.
1302 (read_structure_type): Likewise.
1303 (new_symbol_full): Likewise.
1304 (determine_prefix): Likewise.
1305 (read_import_statement): Use dot as the separator for language_d.
1306 (typename_concat): Likewise, but don't prefix the D main function.
1307
1308 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
1309
1310 * nat/linux-namespaces.c (setns): Rename from this ...
1311 (do_setns): ... to this. Support calling setns if it exists.
1312 (mnsh_handle_setns): Call do_setns.
1313
1314 2015-07-13 Yao Qi <yao.qi@linaro.org>
1315
1316 * exec.c (exec_file_attach): Add period at the end of error
1317 message.
1318
1319 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * tui/tui-win.c (window_name_completer): New function.
1322 (focus_completer): Call window_name_completer. All old content
1323 moved into window_name_completer.
1324 (winheight_completer): New function.
1325 (_initialize_tui_win): Rename variable. Add completer to
1326 winheight command. Update doc string on winheight.
1327
1328 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
1329
1330 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
1331 all nios2 mach variants.
1332
1333 2015-07-10 Kevin Buettner <kevinb@redhat.com>
1334
1335 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
1336 of target_read_memory.
1337
1338 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1339
1340 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
1341 string copy.
1342 (parse_scrolling_args): Likewise.
1343
1344 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1345
1346 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
1347 names in this function.
1348
1349 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1350
1351 * tui/tui-data.h (SRC_NAME): Convert to lower case.
1352 (CMD_NAME): Likewise.
1353 (DATA_NAME): Likewise.
1354 (DISASSEM_NAME): Likewise.
1355 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
1356 (tui_set_win_height): Likewise.
1357 (parse_scrolling_args): Likewise.
1358
1359 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
1360
1361 * record-btrace.c (record_btrace_goto_begin)
1362 (record_btrace_goto_end, record_btrace_goto): Move call to
1363 print_stack_frame ...
1364 (record_btrace_set_replay): ... here. Set stop_pc.
1365 * record-full.c (record_full_goto_entry): Set stop_pc.
1366
1367 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1368
1369 * NEWS: Mention support for tracepoints on aarch64-linux.
1370
1371 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1372
1373 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
1374 function. Return 1.
1375 (the_low_target): Install it.
1376
1377 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1378
1379 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
1380 * gdb.trace/collection.exp: Likewise.
1381 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
1382 * gdb.trace/mi-trace-unavailable.exp: Likewise.
1383 * gdb.trace/report.exp: Likewise.
1384 * gdb.trace/trace-break.exp: Likewise.
1385 * gdb.trace/unavailable.exp: Likewise.
1386 * gdb.trace/while-dyn.exp: Likewise.
1387
1388 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1389
1390 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
1391 (aarch64_gen_return_address): New function.
1392 (aarch64_gdbarch_init): Hook it.
1393
1394 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1395
1396 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
1397 swallow NOT_AVAILABLE_ERROR.
1398 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
1399 available_p is not set.
1400 (aarch64_stub_frame_unwind_stop_reason): New function.
1401 (aarch64_stub_unwind): Install it.
1402
1403 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1404
1405 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
1406 field.
1407 (aarch64_make_prologue_cache_1): New function, factored out from
1408 aarch64_make_prologue_cache. Do not allocate cache. Set
1409 available_p.
1410 (aarch64_make_prologue_cache): Reimplement wrapping
1411 aarch64_make_prologue_cache_1, and swallowing
1412 NOT_AVAILABLE_ERROR.
1413 (aarch64_prologue_frame_unwind_stop_reason): New function.
1414 Return UNWIND_UNAVAILABLE if available_p is not set.
1415 (aarch64_prologue_unwind): Install it.
1416 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
1417 checks into aarch64_prologue_frame_unwind_stop_reason. Call
1418 frame_id_build_unavailable_stack if available_p is not set.
1419
1420 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1421
1422 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
1423 fields.
1424 (aarch64_scan_prologue): Set prev_pc.
1425 (aarch64_make_prologue_cache): Set func.
1426 (aarch64_make_stub_cache): Set prev_pc.
1427 (aarch64_prologue_this_id): Remove local variables id, pc and
1428 func. Read prev_pc and func from cache.
1429 (aarch64_stub_this_id): Read prev_pc from cache.
1430
1431 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1432
1433 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
1434 argument this_cache. Remove unused local variables reg and
1435 unwound_fp. Return early if this_cache is already set. Set
1436 this_cache.
1437 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
1438
1439 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1440
1441 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
1442 New argument this_cache. Return early if this_cache is already
1443 set. Set this_cache.
1444 (aarch64_prologue_this_id): Update call to
1445 aarch64_make_prologue_cache.
1446 (aarch64_prologue_prev_register): Likewise.
1447 (aarch64_normal_frame_base): Likewise.
1448
1449 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1450
1451 * c-valprint.c (c_val_print): Factor out memberptr printing code
1452 from c_val_print to ...
1453 (c_val_print_memberptr): ... this new function.
1454
1455 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1456
1457 * c-valprint.c (c_val_print): Factor out int printing code to ...
1458 (c_val_print_int): ... this new function.
1459
1460 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1461
1462 * c-valprint.c (c_val_print): Factor out struct and union
1463 printing code to ...
1464 (c_val_print_struct): ... this new function ...
1465 (c_val_print_union): ... and this new function.
1466
1467 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1468
1469 * c-valprint.c (c_val_print): Factor out pointer printing code
1470 to ...
1471 (c_val_print_ptr): ... this new function.
1472
1473 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1474
1475 * c-valprint.c (c_valprint): Factor our array printing code from
1476 c_val_print to ...
1477 (c_val_print_array): ... this new function.
1478
1479 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1480
1481 * c-valprint.c (c_val_print): Factor out pointer printing code
1482 to ...
1483 (print_unpacked_pointer): ... this new function.
1484
1485 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1486
1487 * c-valprint.c (c_val_print): Remove an assignment to i and move
1488 its declaration.
1489
1490 2015-07-09 Yao Qi <yao.qi@linaro.org>
1491
1492 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
1493 argument ptid. Update comments. Caller update.
1494
1495 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
1496
1497 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
1498 mnt packets.
1499
1500 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
1501
1502 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
1503
1504 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
1505
1506 * progspace.c (delete_program_space): Add missing spaces.
1507
1508 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
1509
1510 * inferior.c (delete_inferior_1): Rename to ...
1511 (delete_inferior): ..., remove 'silent' parameter, delete
1512 program space when unused and remove call to prune_program_spaces.
1513 Remove the old, unused, delete_inferior.
1514 (delete_inferior_silent): Remove.
1515 (prune_inferiors): Change call from delete_inferior_1 to
1516 delete_inferior and remove 'silent' parameter. Remove call to
1517 prune_program_spaces.
1518 (remove_inferior_command): Idem.
1519 * inferior.h (delete_inferior_1): Rename to...
1520 (delete_inferior): ..., remove 'silent' parameter and remove the
1521 original delete_inferior.
1522 (delete_inferior_silent): Remove.
1523 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
1524 delete_inferior_1 to delete_inferior and remove 'silent'
1525 parameter.
1526 * progspace.c (prune_program_spaces): Remove.
1527 (pspace_empty_p): Rename to...
1528 (program_space_empty_p): ... and make non-static.
1529 (delete_program_space): New.
1530 * progspace.h (prune_program_spaces): Remove declaration.
1531 (program_space_empty_p): New declaration.
1532 (delete_program_space): New declaration.
1533 * monitor.c (monitor_close): Replace call to
1534 delete_thread_silent and delete_inferior_silent with
1535 discard_all_inferiors.
1536
1537 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
1538
1539 * defs.h (deprecated_register_changed_hook): Remove prototype.
1540 * interps.c (clear_iterpreter_hooks): Remove reference to
1541 deprecated_register_changed_hook.
1542 * top.c (deprecated_register_changed_hook): Remove prototype.
1543 * valops.c (value_assign): Remove reference to
1544 deprecated_register_changed_hook.
1545 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
1546 Add comment documenting the function.
1547 (tui_register_changed_observer): Define.
1548 (tui_install_hooks): Remove reference to
1549 deprecated_register_changed_hook. Set
1550 tui_register_changed_observer.
1551 (tui_remove_hooks): Remove reference to
1552 deprecated_register_changed_hook. Unset
1553 tui_register_changed_observer.
1554
1555 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1556
1557 PR compile/18484
1558 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
1559
1560 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
1561
1562 PR exp/18617
1563 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
1564
1565 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
1566
1567 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
1568
1569 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
1570
1571 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
1572 Use safe_strerror() instead of strerror().
1573
1574 2015-07-07 Yao Qi <yao.qi@linaro.org>
1575
1576 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
1577 * features/arm-with-m-fpa-layout.c: Regenerated.
1578 * features/arm-with-m-vfp-d16.xml: Likewise.
1579 * features/arm-with-m-vfp-d16.c: Regenerated.
1580 * features/arm-with-m.xml: Likewise.
1581 * features/arm-with-m.c: Regenerated.
1582 * features/arm-with-neon.xml: Likewise.
1583 * features/arm-with-neon.c: Regenerated.
1584 * features/arm-with-vfpv2.xml: Likewise.
1585 * features/arm-with-vfpv2.c: Regenerated.
1586 * features/arm-with-vfpv3.xml: Likewise.
1587 * features/arm-with-vfpv3.c: Regenerated.
1588
1589 2015-07-07 Yao Qi <yao.qi@linaro.org>
1590
1591 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
1592 arm-linux-nat.c.
1593 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
1594 elf/external.h.
1595 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
1596 if target is 32-bit.
1597 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
1598 if target is 32-bit.
1599 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
1600 if target is 32-bit.
1601 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
1602 if target is 32-bit.
1603 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
1604 (aarch64_linux_read_description): Return the right target
1605 description.
1606 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
1607 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
1608 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
1609 arm-linux-tdep.o.
1610
1611 2015-07-07 Yao Qi <yao.qi@linaro.org>
1612
1613 * aarch32-linux-nat.c: New file.
1614 * aarch32-linux-nat.h: New file.
1615 * arm-linux-nat.c: Include aarch32-linux-nat.h.
1616 (fetch_regs): Move code to aarch32-linux-nat.c. Call
1617 aarch32_gp_regcache_supply.
1618 (store_regs): Move code to aarch32-linux-nat.c. Call
1619 aarch32_gp_regcache_collect.
1620 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
1621 aarch32_vfp_regcache_supply.
1622 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
1623 aarch32_vfp_regcache_collect.
1624 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
1625
1626 2015-07-07 Yao Qi <yao.qi@linaro.org>
1627
1628 * arm-linux-nat.c (store_fpregister): Remove.
1629 (store_register): Likewise.
1630 (fetch_fpregister): Likewise.
1631 (fetch_register): Likewise.
1632 (arm_linux_store_inferior_registers): Call store_regs and
1633 store_fpregs instead.
1634 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
1635 fetch_regs instead.
1636
1637 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1638
1639 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
1640 and focus commands.
1641
1642 2015-07-06 Joel Brobecker <brobecker@adacore.com>
1643
1644 * NEWS: Create a new section for the next release branch.
1645 Rename the section of the current branch, now that it has
1646 been cut.
1647
1648 2015-07-06 Joel Brobecker <brobecker@adacore.com>
1649
1650 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
1651 * version.in: Bump version to 7.10.50.DATE-cvs.
1652
1653 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
1654
1655 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
1656 breakpoints in a special way.
1657 (remove_breakpoint): Likewise.
1658 (mark_breakpoints_out): Likewise.
1659
1660 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1661
1662 * doc/gdb.texinfo (TUI): Add comma after @xref.
1663
1664 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1665
1666 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
1667 instead of casting the structure type.
1668
1669 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
1670
1671 * valops.c (search_struct_field): Remove OFFSET parameter.
1672 (value_cast_structs): Adjust calls to search_struct_field.
1673 (value_struct_elt): Same.
1674 (find_overload_match): Same.
1675
1676 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
1677
1678 * value.c (value_fetch_lazy): Update comment, change return
1679 value to void.
1680 * value.h (value_fetch_lazy): Change return value to void.
1681
1682 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1683
1684 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
1685 (tui_win_name): Make parameter and result const.
1686 * tui/tui-data.h (tui_win_name): Make parameter and result const.
1687
1688 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
1689
1690 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
1691 use printf_unfiltered.
1692 (set_mpx_cmd): Add missing trailing space to command string
1693 literal.
1694 (_initialize_i386_tdep): Give the "mpx" prefix command its
1695 correct name.
1696
1697 2015-07-02 Kevin Buettner <kevinb@redhat.com>
1698
1699 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
1700 (enum rx_frame_type): New.
1701 (struct rx_prologue): Add new field `frame_type'.
1702 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
1703 parameter in the prologue struct. Add code for recording
1704 locations of PC and PSW for fast interrupt and exception frames.
1705 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
1706 (rx_analyze_frame_prologue): Add `frame_type' parameter.
1707 (rx_frame_type): New function.
1708 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
1709 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
1710 `this_cache'.
1711 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
1712 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1713 RX_FRAME_TYPE_FAST_INTERRUPT.
1714 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
1715 (rx_frame_sniffer, rx_exception_sniffer): New functions.
1716 (rx_frame_unwind): Use rx_frame_sniffer instead of
1717 default_frame_sniffer.
1718 (rx_frame_unwind): New unwinder.
1719 (rx_gdbarch_init): Register new unwinder.
1720
1721 2015-07-02 Kevin Buettner <kevinb@redhat.com>
1722
1723 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
1724 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
1725 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
1726 and RX_FPSW_REGNUM.
1727 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
1728
1729 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1730
1731 Fix GCC false warning.
1732 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
1733
1734 2015-07-02 Yao Qi <yao.qi@linaro.org>
1735
1736 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
1737 typo in the debugging message.
1738
1739 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1740
1741 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
1742 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
1743 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
1744 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
1745 (btrace_maint_clear): New.
1746 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
1747 (pt_print_packet, btrace_maint_decode_pt)
1748 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
1749 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
1750 (maint_btrace_packet_history_cmd)
1751 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
1752 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
1753 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
1754 (maint_info_btrace_cmd, _initialize_btrace): New.
1755 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
1756 (btrace_maint_packet_history, btrace_maint_info): New.
1757 (btrace_thread_info) <maint>: New.
1758 * NEWS: Announce it.
1759
1760 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1761
1762 * btrace.c (btrace_fetch): Append the new trace data.
1763 (btrace_clear): Clear the stored trace data.
1764 * btrace.h (btrace_thread_info) <data>: New.
1765 * common/btrace-common.h (btrace_data_clear)
1766 (btrace_data_append): New.
1767 * common/btrace-common.c (btrace_data_clear)
1768 (btrace_data_append): New.
1769
1770 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1771
1772 * nat/linux-btrace.c (linux_enable_bts): Check for
1773 PERF_ATTR_SIZE_VER5.
1774 Check for data_offset and data_size fields. Use them.
1775
1776 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1777
1778 * NEWS: Announce new commands "record btrace pt" and "record pt".
1779 Announce new options "set|show record btrace pt buffer-size".
1780 * btrace.c: Include "rsp-low.h".
1781 Include "inttypes.h".
1782 (btrace_add_pc): Add forward declaration.
1783 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
1784 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
1785 (btrace_compute_ftrace_pt): New.
1786 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
1787 (check_xml_btrace_version): Update version check.
1788 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
1789 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
1790 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
1791 (btrace_pt_children): New.
1792 (btrace_children): Add support for "pt".
1793 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
1794 (btrace_conf_children): Add support for "pt".
1795 * btrace.h: Include "intel-pt.h".
1796 (btrace_pt_error): New.
1797 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
1798 (btrace_data_empty): Support BTRACE_FORMAT_PT.
1799 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
1800 (struct btrace_config_pt): New.
1801 (struct btrace_config)<pt>: New.
1802 (struct btrace_data_pt_config, struct btrace_data_pt): New.
1803 (struct btrace_data)<pt>: New.
1804 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
1805 (pt): New.
1806 * features/btrace.dtd (btrace)<pt>: New.
1807 (pt, pt-config, cpu): New.
1808 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
1809 (perf_event_pt_event_type, kernel_supports_pt)
1810 (linux_supports_pt): New.
1811 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
1812 (linux_enable_bts): Free tinfo on error.
1813 (linux_enable_pt): New.
1814 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
1815 (linux_disable_pt): New.
1816 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
1817 (linux_fill_btrace_pt_config, linux_read_pt): New.
1818 (linux_read_btrace): Support BTRACE_FORMAT_PT.
1819 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
1820 (struct btrace_target_info)<pt>: New.
1821 * record-btrace.c (set_record_btrace_pt_cmdlist)
1822 (show_record_btrace_pt_cmdlist): New.
1823 (record_btrace_print_pt_conf): New.
1824 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
1825 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
1826 (cmd_record_btrace_pt_start): New.
1827 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
1828 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
1829 (_initialize_record_btrace): Add new commands.
1830 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
1831 (remote_protocol_features): Add "Qbtrace:pt".
1832 Add "Qbtrace-conf:pt:size".
1833 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
1834 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
1835 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
1836 (_initialize_remote): Add new commands.
1837
1838 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1839
1840 * configure.ac: check for libipt
1841 * configure: Regenerate.
1842 * config.in: Regenerate.
1843 * Makefile.in (LIBIPT): New.
1844 (CLIBS): Add $LIBIPT.
1845 * NEWS: document new configure options
1846
1847 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1848
1849 * compile/compile-object-load.c (compile_object_load): Replace debug
1850 message "lookup undefined ELF symbol" by 3 more specific messages.
1851
1852 2015-07-01 Kevin Buettner <kevinb@redhat.com>
1853
1854 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
1855 (rl78_register_type): Add case for RL78_PSW_REGNUM.
1856 (rl78_gdbarch_init): Initialize rl78_psw_type.
1857
1858 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
1859
1860 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1861 Update commentary. Always refresh the registers when frame
1862 information has changed.
1863 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
1864 Change return type to int. Return 1 if frame information has
1865 changed, 0 otherwise.
1866 (tui_before_prompt): Update commentary.
1867 * tui/tui-stack.h (tui_show_frame_info): Change return type to
1868 int.
1869
1870 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
1871
1872 PR tui/13378
1873 * frame.c (select_frame): Remove reference to
1874 deprecated_selected_frame_level_changed_hook.
1875 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
1876 declaration.
1877 * stack.c (deprecated_selected_frame_level_changed_hook):
1878 Likewise.
1879 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
1880 Rename to ...
1881 (tui_refresh_frame_and_register_information): ... this. Bail
1882 out if there is no stack. Don't update register information
1883 unless registers_too_p is true.
1884 (tui_print_frame_info_listing_hook): Rename to ...
1885 (tui_dummy_print_frame_info_listing_hook): ... this.
1886 (tui_before_prompt): New function.
1887 (tui_normal_stop): New function.
1888 (tui_before_prompt_observer): New observer.
1889 (tui_normal_stop_observer): New observer.
1890 (tui_install_hooks): Set
1891 deprecated_print_frame_info_listing_hook to
1892 tui_dummy_print_frame_info_listing_hook. Register
1893 tui_before_prompt_observer to call tui_before_prompt and
1894 tui_normal_stop_observer to call tui_normal_stop. Remove
1895 reference to deprecated_selected_frame_level_changed_hook.
1896 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
1897 and tui_normal_stop_observer. Remove reference to
1898 deprecated_selected_frame_level_changed_hook.
1899
1900 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
1901
1902 PR tui/13378
1903 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
1904 return an int instead of void. Return whether the locator
1905 window has changed.
1906 (tui_show_frame_info): If the locator info has not changed, then
1907 bail out early to avoid refreshing the windows.
1908
1909 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
1910
1911 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
1912 LOCATOR_WIN to tui_alloc_content.
1913
1914 2015-06-30 Yao Qi <yao.qi@linaro.org>
1915
1916 PR tdep/18605
1917 * arm-tdep.c (arm_get_next_pc_raw): Break for media
1918 instructions.
1919
1920 2015-06-29 Kevin Buettner <kevinb@redhat.com>
1921
1922 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
1923 (rx_dwarf_reg_to_regnum): New function.
1924 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
1925 unwinding.
1926
1927 2015-06-29 Pedro Alves <palves@redhat.com>
1928
1929 PR threads/18127
1930 * infcall.c (run_inferior_call): On infcall success, if the thread
1931 was marked stopped before, reset it back to stopped.
1932 * infrun.c (resume): Don't suppress the set_running calls when
1933 doing an infcall.
1934 (normal_stop): Only discard the finish_thread_state cleanup if the
1935 infcall succeeded.
1936
1937 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1938
1939 * MAINTAINERS (Write After Approval): Update my email address.
1940
1941 2015-06-26 Keith Seitz <keiths@redhat.com>
1942 Doug Evans <dje@google.com>
1943
1944 PR 16253
1945 * block.c (block_lookup_symbol): For non-function blocks,
1946 continue to search for a symbol with an exact domain match
1947 Otherwise, return any previously found "best domain" symbol.
1948 (block_lookup_symbol_primary): Likewise.
1949
1950 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
1951
1952 * NEWS: Mention the new option "history remove-duplicates".
1953 * top.c (history_remove_duplicates): New static variable.
1954 (show_history_remove_duplicates): New static function.
1955 (gdb_add_history): Conditionally remove duplicate history
1956 entries.
1957 (init_main): Add "history remove-duplicates" option.
1958
1959 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
1960
1961 * tui/tui-win.c (focus_completer): New static function.
1962 (_initialize_tui_win): Set the completion function of the
1963 "focus" command to focus_completer.
1964
1965 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1966
1967 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
1968 and language_asm..
1969 * symtab.c (find_function_start_sal): Likewise.
1970
1971 2015-06-25 Gary Benson <gbenson@redhat.com>
1972
1973 * solib.c (solib_find_1): Set local variable sysroot to NULL if
1974 it is the empty string after trailing slashes have been stripped.
1975
1976 2015-06-25 Gary Benson <gbenson@redhat.com>
1977
1978 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
1979 * infrun.c (follow_exec): Likewise.
1980 * remote.c (remote_filesystem_is_local): Likewise.
1981 * solib.c (solib_find_1): Likewise.
1982
1983 2015-06-24 Keith Seitz <keiths@redhat.com>
1984
1985 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
1986 return value from lrealpath.
1987
1988 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1989
1990 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
1991
1992 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1993
1994 * remote-sim.c: Include gdb_bfd.h.
1995 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
1996 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
1997
1998 2015-06-24 Yao Qi <yao.qi@linaro.org>
1999
2000 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
2001 set_gdbarch_get_siginfo_type.
2002 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
2003 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
2004 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2005 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
2006 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
2007 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2008 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
2009 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
2010 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
2011 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
2012
2013 2015-06-24 Gary Benson <gbenson@redhat.com>
2014
2015 * common/buffer.c (stdint.h): Do not include.
2016 * common/print-utils.c (stdint.h): Likewise.
2017 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
2018 * compile/compile-c-types.c (gdb_assert.h): Likewise.
2019 * ft32-tdep.c (gdb_assert.h): Likewise.
2020 * guile/scm-utils.c (stdint.h): Likewise.
2021 * i386-linux-tdep.c (stdint.h): Likewise.
2022 * i386-tdep.c (stdint.h): Likewise.
2023 * nat/linux-btrace.c (stdint.h): Likewise.
2024 * nat/linux-btrace.h (stdint.h): Likewise.
2025 * nat/linux-ptrace.c (stdint.h): Likewise.
2026 * nat/mips-linux-watch.h (stdint.h): Likewise.
2027 * ppc-linux-nat.c (stdint.h): Likewise.
2028 * python/python-internal.h (stdint.h): Likewise.
2029 * stub-termcap.c (stdlib.h): Likewise.
2030 * target/target.h (stdint.h): Likewise.
2031 * xtensa-linux-nat.c (stdint.h): Likewise.
2032
2033 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
2034
2035 * top.c (init_history): Look at errno after calling strtol to
2036 properly map large GDBHISTSIZE values to infinity.
2037
2038 2015-06-23 Doug Evans <dje@google.com>
2039
2040 * inferior.h (struct inferior_suspend_state): Delete, unused.
2041 All references deleted.
2042
2043 2015-06-23 Mike Frysinger <vapier@gentoo.org>
2044
2045 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
2046 (microblaze_push_dummy_call): Likewise.
2047 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
2048 and set_gdbarch_push_dummy_call.
2049
2050 2015-06-23 Yao Qi <yao.qi@linaro.org>
2051
2052 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
2053 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
2054 (amd64_linux_store_inferior_registers): Likewise.
2055 * arm-linux-nat.c (fetch_fpregister): Likewise.
2056 (fetch_fpregs, store_fpregister): Likewise.
2057 (store_fpregister, store_fpregs): Likewise.
2058 (fetch_register, fetch_regs): Likewise.
2059 (store_register, store_regs): Likewise.
2060 (fetch_vfp_regs, store_vfp_regs): Likewise.
2061 (arm_linux_read_description): Check have_ptrace_getregset is
2062 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
2063 or TRIBOOL_FALSE.
2064 * i386-linux-nat.c (fetch_xstateregs): Check
2065 have_ptrace_getregset is not TRIBOOL_TRUE.
2066 (store_xstateregs): Likewise.
2067 * linux-nat.c (have_ptrace_getregset): Change its type to
2068 enum tribool.
2069 * linux-nat.h (tribool): New enum.
2070 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
2071 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
2072
2073 2015-06-19 Doug Evans <dje@google.com>
2074
2075 * NEWS: Mention Sun's version of stabs is no longer supported.
2076 * elfread.c (free_elfinfo): Delete. All uses updated.
2077 (elfstab_offset_sections): Delete. All uses updated.
2078 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
2079 * psympriv.h (partial_symtab) <section_offsets>: Delete.
2080 All uses updated.
2081 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
2082 All callers updated.
2083
2084 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
2085
2086 * common/rsp-low.c (needs_escaping): New.
2087 (remote_escape_output): Add unit_size parameter. Refactor to
2088 support multi-byte addressable units. Rename parameters.
2089 * common/rsp-low.h (remote_escape_output): Add unit_size
2090 parameter and rename others. Update doc.
2091 * remote.c (align_for_efficient_write): New.
2092 (remote_write_bytes_aux): Add unit_size parameter and use it.
2093 Rename some variables. Update doc.
2094 (remote_xfer_partial): Get unit size and use it.
2095 (remote_read_bytes_1): Add unit_size parameter and use it.
2096 Rename some variables. Update doc.
2097 (remote_write_bytes): Same.
2098 (remote_xfer_live_readonly_partial): Same.
2099 (remote_read_bytes): Same.
2100 (remote_flash_write): Update call to remote_write_bytes_aux.
2101 (remote_write_qxfer): Update call to remote_escape_output.
2102 (remote_search_memory): Same.
2103 (remote_hostio_pwrite): Same.
2104
2105 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
2106
2107 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
2108 locations as inserted.
2109 Update and expand comment about permanent locations.
2110 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
2111 Move comment to add_location_to_breakpoint.
2112 (update_global_location_list): Don't error out if a permanent
2113 breakpoint is not marked inserted.
2114 Don't error out if a non-permanent breakpoint location is inserted on
2115 top of a permanent breakpoint.
2116
2117 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
2118
2119 * breakpoint.c (make_breakpoint_permanent): Remove unused
2120 function.
2121 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
2122
2123 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
2124
2125 PR gdb/16999
2126 * NEWS: Mention new GDBHISTSIZE behavior.
2127 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
2128 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
2129
2130 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
2131
2132 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
2133 * top.c (init_history): Read from GDBHISTSIZE instead of
2134 HISTSIZE.
2135 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
2136
2137 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
2138
2139 * top.c (gdb_safe_append_history): Do not call
2140 history_truncate_file if the history is not stifled.
2141
2142 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2143
2144 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
2145 * syscalls/s390x-linux.xml: Likewise.
2146
2147 2015-06-16 Michael Eager <eager@eagercon.com>
2148
2149 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
2150
2151 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
2152
2153 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
2154 target_terminal_ours_for_output() before calling
2155 tui_show_frame_info(), and restore the original terminal
2156 settings afterwards.
2157
2158 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
2159
2160 * arm-linux-nat.c: Include nat/linux-ptrace.h.
2161
2162 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
2163
2164 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
2165 memory unit size.
2166 (mi_cmd_data_write_memory_bytes): Same.
2167
2168 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
2169
2170 * corefile.c (write_memory): Update doc.
2171 * gdbcore.h (write_memory): Same.
2172
2173 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2174
2175 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
2176 (dump_mapping_p): Use it for parameter filterflags.
2177 (linux_find_memory_regions_full): Use it for variable filterflags.
2178
2179 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
2180 Jan Kratochvil <jan.kratochvil@redhat.com>
2181
2182 Merge multiple hex conversions.
2183 * monitor.c: Include rsp-low.h.
2184 (fromhex): Remove definition.
2185
2186 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
2187 Jan Kratochvil <jan.kratochvil@redhat.com>
2188
2189 Move utility functions to common/.
2190 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
2191 Move defs to common/common-utils.c.
2192 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
2193 (skip_to_space_const): Move decls to common/common-utils.h.
2194 * common/common-defs.h: Move include of common-types.h before
2195 common-utils.h.
2196 * common/common-utils.c: Include host-defs.h and ctype.h.
2197 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
2198 from utils.c.
2199 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
2200 cli/cli-utils.c.
2201 * common/common-utils.h (strtoulst): Move decl from utils.h.
2202 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
2203 Move from cli/cli-utils.h.
2204 * common/host-defs.h: Include limits.h.
2205 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
2206 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
2207 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
2208 common/common-utils.h.
2209 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
2210 (strtoulst): Move to common/common-utils.c.
2211 * utils.h (strtoulst): Moved decl to common/common-utils.h.
2212
2213 2015-06-15 Yao Qi <yao.qi@linaro.org>
2214
2215 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
2216
2217 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
2218
2219 * build-id.c: Don't include elf-bfd.h.
2220 (build_id_bfd_get): Use bfd_build_id.
2221 (build_id_verify): Ditto.
2222 * build-id.h: Ditto.
2223 (find_separate_debug_file_by_buildid): Ditto.
2224 * python/py-objfile.c: Don't include elf-bfd.h.
2225 (objfpy_get_build_id) Use bfd_build_id.
2226 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
2227 * coffread.c: Include build-id.h.
2228 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
2229
2230 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
2231
2232 * windows-nat.c (do_windows_fetch_inferior_registers)
2233 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
2234 conditional with __CYGWIN__.
2235
2236 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
2237
2238 * completer.c: Add arch-utils.h include.
2239 (enum reg_completer_targets): New enum.
2240 (reg_or_group_completer_1): New function containing old
2241 reg_or_group_completer, add and use new parameter to control what
2242 is completed on. Use get_current_arch rather than architecture of
2243 currently selected frame.
2244 (reg_or_group_completer): Call new reg_or_group_completer_1.
2245 (reggroup_completer): Call new reg_or_group_completer_1.
2246 * completer.h (reggroup_completer): Add declaration.
2247 * tui/tui-regs.c: Add 'completer.h' include.
2248 (tui_reg_next_command): Renamed to...
2249 (tui_reg_next): ...this. Adjust parameters and return rather than
2250 display new group.
2251 (tui_reg_prev_command): Renamed to...
2252 (tui_reg_prev): ...this. Adjust parameters and return rather than
2253 display new group.
2254 (tui_reg_float_command): Delete.
2255 (tui_reg_general_command): Delete.
2256 (tui_reg_system_command): Delete.
2257 (tui_reg_command): Rewrite to perform switching of register group.
2258 Add header comment.
2259 (tuireglist): Remove.
2260 (tui_reggroup_completer): New function.
2261 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
2262 creation of 'tui reg' command.
2263 * NEWS: Add comment about 'tui reg' changes.
2264
2265 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
2266
2267 * target.c (target_read): Consider addressable unit size when
2268 reading from a memory object.
2269 (read_memory_robust): Same.
2270 (read_whatever_is_readable): Same.
2271 (target_write_with_progress): Consider addressable unit size
2272 when writing to a memory object.
2273 * target.h (target_read): Update documentation.
2274 (target_write): Add documentation.
2275
2276 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
2277
2278 * arch-utils.h (default_addressable_memory_unit_size): New.
2279 * arch-utils.c (default_addressable_memory_unit_size): New.
2280 * gdbarch.sh (addressable_memory_unit_size): New.
2281 * gdbarch.h: Re-generate.
2282 * gdbarch.c: Re-generate.
2283
2284 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
2285
2286 * target.c (target_read): Rename variables and use
2287 TARGET_XFER_E_IO.
2288 (target_read_with_progress): Same.
2289 (read_memory_robust): Constify parameters and rename
2290 variables.
2291 (read_whatever_is_readable): Constify parameters,
2292 rename variables, adjust formatting.
2293 * target.h (read_memory_robust): Constify parameters.
2294
2295 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2296
2297 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
2298 synthetic (non-AltiVec) vector types.
2299 (ppc64_sysv_abi_return_value): Likewise.
2300
2301 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
2302
2303 PR breakpoints/16465
2304 * breakpoint.c (create_breakpoint): Save extra_string for
2305 pending breakpoints.
2306
2307 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
2308
2309 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
2310 and bt_mask to CORE_ADDR.
2311
2312 2015-06-11 Gary Benson <gbenson@redhat.com>
2313
2314 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
2315 (mnsh_recv_message): Likewise.
2316
2317 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
2318
2319 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
2320 long long int and plongest instead of %ll.
2321
2322 2015-06-11 Gary Benson <gbenson@redhat.com>
2323
2324 * nat/linux-namespaces.c (gdb_wait.h): New include.
2325 (sys/wait.h): Do not include.
2326
2327 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
2328
2329 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
2330 end_sequence is true.
2331
2332 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2333
2334 Code cleanup.
2335 * solib-target.c (library_list_start_list): Use explicit NULL
2336 comparison.
2337
2338 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2339
2340 * solib-target.c (library_list_start_list): Do not dereference
2341 variable version in its initialization. Make the VERSION check handle
2342 NULL.
2343 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
2344
2345 2015-06-10 Gary Benson <gbenson@redhat.com>
2346
2347 * NEWS: Announce support for direct access of executable and
2348 shared library files when attaching to inferiors in containers
2349 on GNU/Linux systems.
2350
2351 2015-06-10 Gary Benson <gbenson@redhat.com>
2352
2353 * remote.c (struct remote_state) <fs_pid>: New field.
2354 (new_remote_state): Initialize the above.
2355 (PACKET_vFile_setfs): New enum value.
2356 (remote_hostio_set_filesystem): New function.
2357 (remote_hostio_open): Call the above.
2358 (remote_hostio_unlink): Likewise.
2359 (remote_hostio_readlink): Likewise.
2360 (_initialize_remote): Register new "set/show remote
2361 hostio-setfs-packet" command.
2362 * NEWS: Announce new vFile:setfs packet.
2363
2364 2015-06-10 Gary Benson <gbenson@redhat.com>
2365
2366 * linux-nat.c (nat/linux-namespaces.h): New include.
2367 (fileio.h): Likewise.
2368 (linux_nat_filesystem_is_local): New function.
2369 (linux_nat_fileio_pid_of): Likewise.
2370 (linux_nat_fileio_open): Likewise.
2371 (linux_nat_fileio_readlink): Likewise.
2372 (linux_nat_fileio_unlink): Likewise.
2373 (linux_nat_add_target): Initialize to_filesystem_is_local,
2374 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
2375 (_initialize_linux_nat): New "set/show debug linux-namespaces"
2376 commands.
2377 * NEWS: Mention new "set/show debug linux-namespaces" commands.
2378
2379 2015-06-10 Gary Benson <gbenson@redhat.com>
2380
2381 * target.h (struct inferior): New forward declaration.
2382 (struct target_ops) <to_filesystem_is_local>: Update comment.
2383 (struct target_ops) <to_fileio_open>: New argument inf.
2384 Update comment. All implementations updated.
2385 (struct target_ops) <to_fileio_unlink>: Likewise.
2386 (struct target_ops) <to_fileio_readlink>: Likewise.
2387 (target_filesystem_is_local): Update comment.
2388 (target_fileio_open): New argument inf. Update comment.
2389 (target_fileio_unlink): Likewise.
2390 (target_fileio_readlink): Likewise.
2391 (target_fileio_read_alloc): Likewise.
2392 (target_fileio_read_stralloc): Likewise.
2393 * target.c (target_fileio_open): New argument inf.
2394 Pass inf to implementation. Update debug printing.
2395 (target_fileio_unlink): Likewise.
2396 (target_fileio_readlink): Likewise.
2397 (target_fileio_read_alloc_1): New argument inf. Pass inf
2398 to target_fileio_open.
2399 (target_fileio_read_alloc): New argument inf. Pass inf to
2400 target_fileio_read_alloc_1.
2401 (target_fileio_read_stralloc): Likewise.
2402 * gdb_bfd.c (inferior.h): New include.
2403 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
2404 argument with new argument "inferior". Pass inferior to
2405 target_fileio_open.
2406 (gdb_bfd_open): Supply inferior argument to
2407 gdb_bfd_iovec_fileio_open.
2408 * linux-tdep.c (linux_info_proc): Supply inf argument to
2409 relevant target_fileio calls.
2410 (linux_find_memory_regions_full): Likewise.
2411 (linux_fill_prpsinfo): Likewise.
2412 * remote.c (remote_filesystem_is_local): Supply inf
2413 argument to remote_hostio_open.
2414 (remote_file_put): Likewise.
2415 (remote_file_get): Likewise.
2416 (remote_file_delete): Supply inf argument to
2417 remote_hostio_unlink.
2418
2419 2015-06-10 Gary Benson <gbenson@redhat.com>
2420
2421 * inf-child.c (inf_child_fileio_open): Replace comment.
2422 (inf_child_fileio_pwrite): Likewise.
2423 (inf_child_fileio_pread): Likewise.
2424 (inf_child_fileio_fstat): Insert blank line before comment.
2425 (inf_child_fileio_close): Replace comment.
2426 (inf_child_fileio_unlink): Likewise.
2427 (inf_child_fileio_readlink): Likewise.
2428 * remote.c (remote_hostio_open): Likewise.
2429 (remote_hostio_pread): Likewise.
2430 (remote_hostio_pwrite): Likewise.
2431 (remote_hostio_close): Likewise.
2432 (remote_hostio_unlink): Likewise.
2433 (remote_hostio_readlink): Likewise.
2434 (remote_hostio_fstat): Likewise.
2435 (remote_filesystem_is_local): Likewise.
2436 * target.c (target_fileio_open): Likewise.
2437 (target_fileio_pwrite): Likewise.
2438 (target_fileio_pread): Likewise.
2439 (target_fileio_fstat): Insert blank line before comment.
2440 (target_fileio_close): Replace comment.
2441 (target_fileio_unlink): Likewise.
2442 (target_fileio_readlink): Likewise.
2443 (target_fileio_read_alloc): Likewise.
2444 (target_fileio_read_stralloc): Likewise.
2445
2446 2015-06-10 Gary Benson <gbenson@redhat.com>
2447
2448 * linux-thread-db.c (nat/linux-namespaces.h): New include.
2449 (check_pid_namespace_match): Use linux_ns_same rather than
2450 linux_proc_pid_get_ns to spot PID namespace mismatches.
2451 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
2452 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
2453
2454 2015-06-10 Gary Benson <gbenson@redhat.com>
2455
2456 * configure.ac (AC_CHECK_FUNCS): Add setns.
2457 * config.in: Regenerate.
2458 * configure: Likewise.
2459 * nat/linux-namespaces.h: New file.
2460 * nat/linux-namespaces.c: Likewise.
2461 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
2462 (linux-namespaces.o): New rule.
2463 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
2464 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2465 * config/arm/linux.mh (NATDEPFILES): Likewise.
2466 * config/i386/linux.mh (NATDEPFILES): Likewise.
2467 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2468 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2469 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2470 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2471 * config/mips/linux.mh (NATDEPFILES): Likewise.
2472 * config/pa/linux.mh (NATDEPFILES): Likewise.
2473 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2474 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2475 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2476 * config/s390/linux.mh (NATDEPFILES): Likewise.
2477 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2478 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2479 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2480 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2481
2482 2015-06-10 Gary Benson <gbenson@redhat.com>
2483
2484 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
2485 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
2486 (make_cleanup_close): Likewise.
2487 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
2488 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
2489 (make_cleanup_close): Likewise.
2490
2491 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
2492
2493 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
2494 from SuspendThread().
2495
2496 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
2497
2498 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
2499 from OutputDebugString.
2500
2501 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
2502 Mircea Gherzan <mircea.gherzan@intel.com>
2503
2504 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
2505 MPX_BT_MASK_32): New macros.
2506 (i386_mpx_set_bounds): New function that implements
2507 the command "set-mpx-bound".
2508 (i386_mpx_enabled): Helper function to test MPX availability.
2509 (i386_mpx_bd_base): Helper function to calculate the base directory
2510 address.
2511 (i386_mpx_get_bt_entry): Helper function to access a bound
2512 table entry.
2513 (i386_mpx_print_bounds): Effectively display bound information.
2514 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
2515 "show mpx".
2516 (_initialize_i386_tdep):
2517 Add "bound" to the commands "show mpx" and "set mpx" commands.
2518 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
2519 and "show mpx" commands.
2520 * NEWS: List new commands for MPX support.
2521
2522 2015-06-09 Gary Benson <gbenson@redhat.com>
2523
2524 * common/fileio.h (fileio_to_host_mode): New declaration.
2525 * common/fileio.c (fileio_to_host_mode): New Function.
2526 * inf-child.c (inf_child_fileio_open): Process mode argument
2527 with fileio_to_host_mode.
2528
2529 2015-06-09 Gary Benson <gbenson@redhat.com>
2530
2531 * common/fileio.c (fileio_mode_pack): Fix preprocessor
2532 conditional.
2533
2534 2015-06-05 Gary Benson <gbenson@redhat.com>
2535
2536 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
2537 * remote.c (remote_filesystem_is_local): ...here.
2538
2539 2015-06-04 Yao Qi <yao.qi@linaro.org>
2540
2541 * gdbarch.c: Regenerate it.
2542
2543 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2544
2545 * arch-utils.c (default_infcall_munmap): New.
2546 * arch-utils.h (default_infcall_munmap): New declaration.
2547 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
2548 (munmap_list_free, munmap_listp_free_cleanup): New.
2549 (struct setup_sections_data): Add field munmap_list_headp.
2550 (setup_sections): Call munmap_list_add.
2551 (compile_object_load): New variable munmap_list_head, initialize
2552 setup_sections_data.munmap_list_headp, return munmap_list_head.
2553 * compile/compile-object-load.h (struct munmap_list): New declaration.
2554 (struct compile_module): Add field munmap_list_head.
2555 (munmap_list_free): New declaration.
2556 * compile/compile-object-run.c (struct do_module_cleanup): Add field
2557 munmap_list_head.
2558 (do_module_cleanup): Call munmap_list_free.
2559 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
2560 * gdbarch.c: Regenerate.
2561 * gdbarch.h: Regenerate.
2562 * gdbarch.sh (infcall_munmap): New.
2563 * linux-tdep.c (linux_infcall_munmap): New.
2564 (linux_init_abi): Install it.
2565
2566 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
2567
2568 PR gdb/15564
2569 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
2570
2571 2015-06-02 Yao Qi <yao.qi@linaro.org>
2572
2573 * i386-linux-nat.c: Include linux-nat.h.
2574
2575 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
2576 Jan Kratochvil <jan.kratochvil@redhat.com>
2577
2578 PR symtab/18392
2579 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
2580 assertion.
2581 * dwarf2loc.c (chain_candidate): Likewise.
2582
2583 2015-06-01 Yao Qi <yao.qi@linaro.org>
2584
2585 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
2586 (store_vfp_regs): Use PTRACE_SETREGSET.
2587
2588 2015-06-01 Yao Qi <yao.qi@linaro.org>
2589
2590 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
2591 (fetch_fpregs): Likewise.
2592 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
2593 (store_fpregs): Likewise.
2594
2595 2015-06-01 Yao Qi <yao.qi@linaro.org>
2596
2597 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
2598 (fetch_regs): Likewise.
2599 (store_regs): Use PTRACE_SETREGSET.
2600 (store_register): Likewise.
2601
2602 2015-06-01 Yao Qi <yao.qi@linaro.org>
2603
2604 * arm-linux-nat.c (arm_linux_read_description): Check whether
2605 kernel supports PTRACE_GETREGSET.
2606
2607 2015-06-01 Yao Qi <yao.qi@linaro.org>
2608
2609 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
2610 * linux-nat.c: ... here.
2611 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
2612 to ...
2613 * linux-nat.h: ... here.
2614
2615 2015-06-01 Yao Qi <yao.qi@linaro.org>
2616
2617 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
2618 * i386-linux-nat.c: Likewise.
2619 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
2620 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
2621 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
2622 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
2623 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
2624
2625 2015-05-30 Eli Zaretskii <eliz@gnu.org>
2626
2627 * go32-nat.c (go32_xfer_memory): Fix the return value to be
2628 compatible to what read_child and write_child return. This
2629 unbreaks that DJGPP build of GDB which was broken since v7.7.
2630
2631 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
2632
2633 * MAINTAINERS (Write After Approval): Add Martin Galvan.
2634
2635 2015-05-29 Roland McGrath <mcgrathr@google.com>
2636
2637 PR gdb/18464
2638 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
2639 rather than internal_error for an unrecognized value.
2640
2641 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
2642
2643 * xtensa-tdep.c (xtensa_pseudo_register_read)
2644 (xtensa_pseudo_register_write): Don't alias last pseudo register
2645 to a1.
2646
2647 2015-05-28 Don Breazeal <donb@codesourcery.com>
2648
2649 * infrun.c (follow_fork_inferior): Ensure the use of
2650 process-style ptids (pid,0,0) in verbose/debug "Detaching"
2651 messages.
2652
2653 2015-05-28 Doug Evans <dje@google.com>
2654
2655 * dwarf2read.c (record_line_ftype): Remove, duplicate.
2656
2657 2015-05-28 Yao Qi <yao.qi@linaro.org>
2658
2659 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
2660 (arm_linux_fetch_inferior_registers): Use
2661 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
2662 (arm_linux_store_inferior_registers): Likewise.
2663 (arm_linux_read_description): Don't set
2664 arm_linux_has_wmmx_registers.
2665 * arm-tdep.c (arm_gdbarch_init): Set
2666 tdep->have_wmmx_registers according target descriptions.
2667 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
2668 field.
2669
2670 2015-05-28 Yao Qi <yao.qi@linaro.org>
2671
2672 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
2673 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
2674 instead of arm_linux_vfp_register_count.
2675 (store_vfp_regs): Likewise.
2676 (arm_linux_fetch_inferior_registers): Likewise.
2677 (arm_linux_store_inferior_registers): Likewise.
2678 (arm_linux_read_description): Don't set
2679 arm_linux_vfp_register_count.
2680 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
2681 Adjust.
2682 * arm-tdep.c (arm_gdbarch_init): Add assert on
2683 vfp_register_count.
2684 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
2685 field to vfp_register_count. All users updated.
2686
2687 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
2688
2689 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
2690 ELFOSABI_GNU binaries.
2691
2692 2015-05-27 Doug Evans <dje@google.com>
2693
2694 * dwarf2read.c (lnp_state_machine): New typedef.
2695 (lnp_reader_state): New typedef.
2696 (dwarf_record_line_1): Renamed from dwarf_record_line.
2697 All callers updated.
2698 (dwarf_record_line): New function.
2699 (init_lnp_state_machine): New function.
2700 (check_line_address): Replace p_record_line parameter with state.
2701 All callers updated.
2702 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
2703 Update to record state in lnp_state_machine.
2704
2705 2015-05-27 Doug Evans <dje@google.com>
2706
2707 * dwarf2read.c (record_line_ftype): New typedef.
2708 (check_line_address): New function.
2709 (dwarf_decode_lines_1): Call it.
2710
2711 2015-05-27 Doug Evans <dje@google.com>
2712
2713 * NEWS: Mention "set debug dwarf-line".
2714 * dwarf2read.c (dwarf_line_debug): New static global.
2715 (add_include_dir): Add debug dwarf-line support.
2716 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
2717 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
2718
2719 2015-05-27 Doug Evans <dje@google.com>
2720
2721 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
2722 All callers updated.
2723 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
2724 * cp-support.h (cp_lookup_nested_symbol): Update.
2725
2726 2015-05-27 Doug Evans <dje@google.com>
2727
2728 PR symtab/18258
2729 * block.c (block_find_symbol): New function.
2730 (block_find_non_opaque_type): Ditto.
2731 (block_find_non_opaque_type_preferred): Ditto.
2732 * block.h (block_symbol_matcher_ftype): New typedef.
2733 (block_find_symbol): Declare.
2734 (block_find_non_opaque_type): Ditto.
2735 (block_find_non_opaque_type_preferred): Ditto.
2736 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
2737 * psymtab.c (psym_lookup_symbol): Ditto.
2738 * symtab.c (basic_lookup_transparent_type_1): New function.
2739 (basic_lookup_transparent_type): Call it.
2740
2741 2015-05-27 Yao Qi <yao.qi@linaro.org>
2742
2743 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
2744 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
2745
2746 2015-05-27 Yao Qi <yao.qi@linaro.org>
2747
2748 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
2749 before operator &&.
2750 (aarch64_record_load_store): Likewise.
2751
2752 2015-05-26 Doug Evans <dje@google.com>
2753
2754 PR c++/18141, c++/18417.
2755 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
2756 a typedef.
2757
2758 2015-05-26 Doug Evans <dje@google.com>
2759
2760 * NEWS: Add entries for command renamings.
2761 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
2762 All uses updated.
2763 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
2764 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
2765 All uses updated.
2766 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
2767 All callers updated. Fix spelling of DWARF in help text.
2768 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
2769 All uses updated.
2770 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
2771 All uses updated.
2772 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
2773 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
2774 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
2775 All uses updated.
2776 (show_dwarf_always_disassemble): Renamed from
2777 show_dwarf2_always_disassemble. All callers updated.
2778 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
2779 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
2780 "set/show dwarf max-cache-age". Rename
2781 "set/show dwarf2 always-disassemble" to
2782 "set/show dwarf always-disassemble". Rename
2783 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
2784 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
2785
2786 2015-05-26 Doug Evans <dje@google.com>
2787
2788 PR python/18438
2789 * python/py-lazy-string.c (stpy_convert_to_value): Use
2790 gdbpy_gdb_memory_error not PyExc_MemoryError.
2791 (gdbpy_create_lazy_string_object): Ditto.
2792
2793 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
2794
2795 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
2796
2797 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
2798
2799 * tui/tui-regs.c (tui_reg_prev_command): New function.
2800 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
2801 * reggroups.c (reggroup_prev): New function.
2802 * reggroups.h (reggroup_prev): Add declaration. Update comment.
2803
2804 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
2805 Yao Qi <yao.qi@linaro.org>
2806
2807 * aarch64-linux-tdep.c: Include linux-record.h and
2808 record-full.h.
2809 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
2810 (aarch64_syscall): New enum.
2811 (aarch64_canonicalize_syscall): New function.
2812 (aarch64_all_but_pc_registers_record): New function.
2813 (aarch64_linux_syscall_record): New function.
2814 (aarch64_linux_init_abi): Install AArch64 process record
2815 handler. Update to handle syscall recording.
2816 * aarch64-tdep.c: Include record.h and record-full.h.
2817 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
2818 (struct aarch64_mem_r): Define.
2819 (aarch64_record_result): New enum.
2820 (struct insn_decode_record): Define.
2821 (insn_decode_record): New typedef.
2822 (aarch64_record_data_proc_reg): New function.
2823 (aarch64_record_data_proc_imm): New function.
2824 (aarch64_record_branch_except_sys): New function.
2825 (aarch64_record_load_store): New function.
2826 (aarch64_record_data_proc_simd_fp): New function.
2827 (aarch64_record_asimd_load_store): New function.
2828 (aarch64_record_decode_insn_handler): New function.
2829 (deallocate_reg_mem): New function.
2830 (aarch64_process_record): New function.
2831 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
2832 New field.
2833 (aarch64_process_record): New extern declaration.
2834 * configure.tgt: Add linux-record.o to gdb_target_obs.
2835 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
2836
2837 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
2838
2839 * NEWS: Add a note on process record-replay support on aarch64*-linux*
2840 targets.
2841
2842 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
2843
2844 * amd64-tdep.c: Replace in_function_epilogue_p with
2845 stack_frame_destroyed_p throughout.
2846 * arch-utils.c: Ditto.
2847 * arch-utils.h: Ditto.
2848 * arm-tdep.c: Ditto.
2849 * breakpoint.c: Ditto.
2850 * gdbarch.sh: Ditto.
2851 * hppa-tdep.c: Ditto.
2852 * i386-tdep.c: Ditto.
2853 * mips-tdep.c: Ditto.
2854 * nios2-tdep.c: Ditto.
2855 * rs6000-tdep.c: Ditto.
2856 * s390-linux-tdep.c: Ditto.
2857 * score-tdep.c: Ditto.
2858 * sh-tdep.c: Ditto.
2859 * sparc-tdep.c: Ditto.
2860 * sparc-tdep.h: Ditto.
2861 * sparc64-tdep.c: Ditto.
2862 * spu-tdep.c: Ditto.
2863 * tic6x-tdep.c: Ditto.
2864 * tilegx-tdep.c: Ditto.
2865 * xstormy16-tdep.c: Ditto.
2866 * gdbarch.c, gdbarch.h: Re-generated.
2867
2868 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
2869
2870 * NEWS: Mention 'tui enable' and 'tui disable'.
2871 * tui/tui.c (tui_enable_command): New function.
2872 (tui_disable_command): New function.
2873 (_initialize_tui): New function.
2874
2875 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2876
2877 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
2878
2879 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2880
2881 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
2882 buf_ptr is freed.
2883
2884 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2885
2886 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
2887 into ...
2888 (tui_set_layout_for_display_command): ...here, before calling
2889 tui_set_layout. Only set the layout if gdb has not already
2890 entered the TUI_FAILURE state.
2891
2892 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2893
2894 * tui/tui-layout.c (layout_completer): New function.
2895 (_initialize_tui_layout): Set completer on layout command.
2896
2897 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2898
2899 * tui/tui-layout.c (tui_set_layout): Remove
2900 tui_register_display_type parameter. Remove all checking of this
2901 parameter, and reindent function. Update header comment.
2902 (tui_set_layout_for_display_command): Rename to...
2903 (tui_set_layout_by_name): ...this, and don't check for different
2904 register class types, don't pass a tui_register_display_type to
2905 tui_set_layout. Update header comment.
2906 (layout_names): Remove register set specific names.
2907 * tui/tui-layout.h (tui_set_layout): Remove
2908 tui_register_display_type parameter.
2909 * tui/tui.c (tui_rl_change_windows): Don't pass a
2910 tui_register_display_type to tui_set_layout.
2911 (tui_rl_delete_other_windows): Likewise.
2912 (tui_enable): Likewise.
2913 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
2914 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
2915 (TUI_GENERAL_REGS_NAME): Remove.
2916 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
2917 (TUI_SPECIAL_REGS_NAME): Remove.
2918 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
2919 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
2920 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
2921 (enum tui_register_display_type): Remove.
2922 (struct tui_layout_def): Remove regs_display_type and
2923 float_regs_display_type fields.
2924 (struct tui_data_info): Remove regs_display_type field.
2925 (tui_layout_command): Use new name for
2926 tui_set_layout_for_display_command.
2927 * tui/tui-data.c (layout_def): Don't initialise removed fields.
2928 (tui_clear_win_detail): Don't initialise removed fields of
2929 win_info.
2930 * tui/tui-regs.c (tui_show_registers): Use new name for
2931 tui_set_layout_for_display_command.
2932 * tui/tui.h (tui_set_layout_for_display_command): Rename
2933 declaration to...
2934 (tui_set_layout_by_name): ...this.
2935 * printcmd.c (display_command): Remove tui related layout call,
2936 and reindent.
2937
2938 2015-05-20 Joel Brobecker <brobecker@adacore.com>
2939
2940 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
2941 (handle_inferior_event): New function.
2942
2943 2015-05-20 Joel Brobecker <brobecker@adacore.com>
2944
2945 * ada-lang.c (to_fixed_array_type): Rename local variable
2946 typename into type_name.
2947
2948 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2949
2950 Fix ASAN crash for gdb.compile/compile.exp.
2951 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
2952
2953 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2954
2955 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
2956 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
2957 * compile/compile-object-load.c (setup_sections, compile_object_load):
2958 Likewise.
2959 * compile/compile.c (compile_to_object): Likewise.
2960
2961 2015-05-16 Doug Evans <xdje42@gmail.com>
2962
2963 * NEWS: Mention support for unbuffered Guile memory ports.
2964 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
2965 (ioscm_lseek_address): Improve overflow calculation.
2966 (gdbscm_memory_port_fill_input): Add assert.
2967 (gdbscm_memory_port_write): Handle unbuffered ports.
2968 Handle large writes identical to Guile's fport_write.
2969 (gdbscm_memory_port_seek): Fix seeking past end check.
2970 (gdbscm_memory_port_close): Handle closing unbuffered port.
2971 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
2972 (ioscm_init_memory_port): Handle unbuffered ports.
2973 (ioscm_reinit_memory_port): Ditto.
2974 (ioscm_init_memory_port): Update size calculation.
2975 (gdbscm_open_memory): Support zero sized ports.
2976
2977 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2978
2979 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
2980 variable compiler warnings.
2981
2982 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2983
2984 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
2985
2986 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2987 Phil Muldoon <pmuldoon@redhat.com>
2988
2989 * NEWS (Changes since GDB 7.9): Add compile print.
2990 * compile/compile-c-support.c (add_code_header, add_code_footer)
2991 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
2992 COMPILE_I_PRINT_VALUE_SCOPE.
2993 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
2994 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
2995 New.
2996 * compile/compile-object-load.c: Include block.h.
2997 (get_out_value_type): New function.
2998 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
2999 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
3000 OUT_VALUE_TYPE.
3001 * compile/compile-object-load.h (struct compile_module): Add fields
3002 out_value_addr and out_value_type.
3003 * compile/compile-object-run.c: Include valprint.h and compile.h.
3004 (struct do_module_cleanup): Add fields out_value_addr and
3005 out_value_type.
3006 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
3007 COMPILE_I_PRINT_VALUE_SCOPE.
3008 (compile_object_run): Propagate out_value_addr and out_value_type.
3009 Pass OUT_VALUE_ADDR.
3010 * compile/compile.c: Include valprint.h.
3011 (compile_print_value, compile_print_command): New functions.
3012 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
3013 (_initialize_compile): Update compile code help text. Install
3014 compile_print_command.
3015 * compile/compile.h (compile_print_value): New prototype.
3016 * defs.h (enum compile_i_scope_types): Add
3017 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
3018
3019 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3020
3021 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
3022 Rely on its parameter count.
3023 (compile_object_load): Replace lookup_minimal_symbol_text by
3024 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
3025 return value.
3026 * compile/compile-object-load.h (struct compile_module): Replace
3027 func_addr by func_sym.
3028 * compile/compile-object-run.c: Include block.h.
3029 (compile_object_run): Reset module variable after it is freed. Use
3030 FUNC_SYM instead of FUNC_ADDR. Rely on it.
3031
3032 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3033
3034 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
3035 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
3036 (c_compute_program): Call generate_register_struct after typedefs.
3037 * compile/compile-loc2c.c (push, pushf_register_address)
3038 (pushf_register): Cast to GCC_UINTPTR.
3039 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
3040 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
3041 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
3042 * compile/compile.c (_initialize_compile): Enable warnings for
3043 COMPILE_ARGS.
3044
3045 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3046
3047 * cli/cli-script.c (execute_control_command): Update
3048 eval_compile_command caller.
3049 * compile/compile-object-load.c (compile_object_load): Add parameters
3050 scope and scope_data. Set them.
3051 * compile/compile-object-load.h (struct compile_module): Add fields
3052 scope and scope_data.
3053 (compile_object_load): Add parameters scope and scope_data.
3054 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
3055 scope and scope_data.
3056 (compile_object_run): Propagate the fields scope and scope_data.
3057 * compile/compile.c (compile_file_command, compile_code_command):
3058 Update eval_compile_command callers.
3059 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
3060 * compile/compile.h (eval_compile_command): Add parameter scope_data.
3061 * defs.h (struct command_line): Add field scope_data.
3062
3063 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3064
3065 * printcmd.c (struct format_data): Move it to valprint.h.
3066 (print_command_parse_format, print_value): New functions from ...
3067 (print_command_1): ... here. Call them.
3068 * valprint.h (struct format_data): Move it here from printcmd.c.
3069 (print_command_parse_format, print_value): New declarations.
3070
3071 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3072
3073 * compile/compile-object-load.c (compile_object_load): Add
3074 COMPILE_DEBUG message.
3075
3076 2015-05-15 Jerome Guitton <guitton@adacore.com>
3077
3078 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
3079 index to get element instead of enum value.
3080 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
3081 of index to compute length, but enum values to compute bounds.
3082 (ada_array_length): Use enum position of index instead of enum value.
3083 (pos_atr): Move position computation to...
3084 (ada_evaluate_subexp): Use enum values to compute bounds.
3085 * gdbtypes.c (discrete_position): ...this new function.
3086 * gdbtypes.h (discrete_position): New function declaration.
3087 * valprint.c (val_print_array_elements): Call discrete_position
3088 to handle array indexed by non-contiguous enumeration types.
3089
3090 2015-05-15 Jerome Guitton <guitton@adacore.com>
3091
3092 * ada-lang.c (find_parallel_type_by_descriptive_type):
3093 Go through typedefs during lookup.
3094 (to_fixed_array_type): Add support for non-bit packed arrays
3095 as variable-length fields.
3096
3097 2015-05-15 Pedro Alves <palves@redhat.com>
3098 Simon Marchi <simon.marchi@ericsson.com>
3099
3100 * event-loop.c (gdb_notifier) <next_file_handler,
3101 next_poll_fds_index>: New fields.
3102 (get_next_file_handler_to_handle_and_advance): New function.
3103 (delete_file_handler): If deleting the next file handler to
3104 handle, advance to the next file handler.
3105 (gdb_wait_for_event): Bail early if no event fired. Poll file
3106 handlers in round-robin fashion.
3107
3108 2015-05-15 Pedro Alves <palves@redhat.com>
3109
3110 * linux-tdep.c (linux_find_memory_regions_full): Rename local
3111 'private' to 'priv'.
3112
3113 2015-05-15 Pedro Alves <palves@redhat.com>
3114
3115 * nat/linux-nat.h: Include "target/waitstatus.h".
3116
3117 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
3118
3119 * python/py-unwind.c (struct reg_info): Move out of ...
3120 (struct cached_frame_info): ... this scope.
3121 (pending_frame_object_type, unwind_info_object_type): Make extern.
3122
3123 2015-05-15 Joel Brobecker <brobecker@adacore.com>
3124
3125 * ada-lang.c (ada_value_primitive_packed_val): Make sure
3126 accumSize is never negative.
3127
3128 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
3129
3130 * tui/tui-command.c: Remove include of <ctype.h>.
3131 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
3132
3133 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
3134
3135 * dwarf2read.c (die_needs_namespace): Return 1 for
3136 DW_TAG_inlined_subroutine.
3137
3138 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3139
3140 * regcache.c (regcache_cpy_no_passthrough): New declaration.
3141 (regcache_cpy_no_passthrough): Make it static, add function comment.
3142 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
3143 (regcache_cpy_no_passthrough): Remove declaration.
3144
3145 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3146
3147 * gdbthread.h (struct thread_control_state): Update comment for
3148 proceed_to_finish.
3149 * infcall.c (run_inferior_call): Update comment about
3150 proceed_to_finish.
3151 * infcmd.c (get_return_value): Update comment about stop_registers.
3152 (finish_forward): Update comment about proceed_to_finish.
3153 * infrun.c (stop_registers): Remove.
3154 (clear_proceed_status, normal_stop): Remove stop_registers handling.
3155 * infrun.h (stop_registers): Remove.
3156
3157 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3158
3159 * infcall.c (struct dummy_frame_context_saver)
3160 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
3161 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
3162 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
3163 New.
3164 (call_function_by_hand_dummy): Move discard_cleanups of
3165 inf_status_cleanup before dummy_frame_push. Call
3166 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
3167 Use dummy_frame_context_saver_get_regs instead of stop_registers.
3168 * infcall.h (struct dummy_frame_context_saver)
3169 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
3170 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
3171 New declarations.
3172 * infcmd.c: Include infcall.h.
3173 (get_return_value): Add parameter ctx_saver, use it instead of
3174 stop_registers.
3175 (print_return_value): Add parameter ctx_saver, pass it.
3176 (struct finish_command_continuation_args): Add field ctx_saver.
3177 (finish_command_continuation): Update print_return_value caller.
3178 (finish_command_continuation_free_arg): Free also ctx_saver.
3179 (finish_forward): Call dummy_frame_context_saver_setup.
3180 * inferior.h (struct dummy_frame_context_saver): New declaration.
3181 (get_return_value): Add parameter ctx_saver.
3182 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
3183 get_return_value caller.
3184
3185 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3186
3187 * dummy-frame.c (struct dummy_frame_dtor_list): New.
3188 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
3189 (remove_dummy_frame): Process dtor_list.
3190 (pop_dummy_frame): Process dtor_list.
3191 (register_dummy_frame_dtor): Maintain dtor_list.
3192 (find_dummy_frame_dtor): Handle dtor_list.
3193 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
3194 Update comments.
3195
3196 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3197
3198 * compile/compile-object-run.c (do_module_cleanup): Add parameter
3199 registers_valid.
3200 (compile_object_run): Update do_module_cleanup caller.
3201 * dummy-frame.c: Include infcall.h.
3202 (struct dummy_frame): Update dtor comment.
3203 (remove_dummy_frame): Call dtor.
3204 (pop_dummy_frame): Update dtor caller.
3205 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
3206 registers_valid.
3207
3208 2015-05-13 Joel Brobecker <brobecker@adacore.com>
3209
3210 GDB 7.9.1 released.
3211
3212 2015-05-13 Joel Brobecker <brobecker@adacore.com>
3213
3214 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
3215 Xmethods now being able to specify a result type to that new
3216 sectioin.
3217
3218 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
3219
3220 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
3221 first before resizing the window.
3222 * tui/tui.c (tui_enable): Likewise.
3223
3224 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3225
3226 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
3227 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
3228 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
3229 dummy_dtor parameter.
3230 * infcall.h: Include dummy-frame.h.
3231 (call_function_by_hand_dummy_dtor_ftype): Remove.
3232 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
3233 parameter.
3234
3235 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
3236
3237 PR gdb/17820
3238 * top.c (history_size_setshow_var): Change type to signed.
3239 Initialize to -2. Update documentation.
3240 (set_readline_history_size): Define.
3241 (set_history_size_command): Use it. Remove logic for handling
3242 out-of-range sizes.
3243 (init_history): Use set_readline_history_size(). Test for a
3244 value of -2 instead of 0 when determining whether to set a
3245 default history size.
3246 (init_main): Decode the argument of the "size" command as a
3247 zuinteger_unlimited.
3248
3249 2015-05-12 Doug Evans <dje@google.com>
3250
3251 * dwarf2read.c (struct file_entry): Tweak comments.
3252 (get_debug_line_section): Tweak comments.
3253
3254 2015-05-12 Don Breazeal <donb@codesourcery.com>
3255
3256 * NEWS: Announce fork support in the RSP and support
3257 for fork debugging in extended mode.
3258
3259 2015-05-12 Don Breazeal <donb@codesourcery.com>
3260
3261 * remote.c (remote_insert_fork_catchpoint): New function.
3262 (remote_remove_fork_catchpoint): New function.
3263 (remote_insert_vfork_catchpoint): New function.
3264 (remote_remove_vfork_catchpoint): New function.
3265 (pending_fork_parent_callback): New function.
3266 (remove_new_fork_child): New function.
3267 (remote_update_thread_list): Call remote_notif_get_pending_events
3268 and remove_new_fork_child.
3269 (extended_remote_kill): Kill fork child when killing the
3270 parent before follow_fork completes.
3271 (init_extended_remote_ops): Initialize target vector with
3272 new fork catchpoint functions.
3273
3274 2015-05-12 Don Breazeal <donb@codesourcery.com>
3275
3276 * remote.c (remove_vfork_event_p): New function.
3277 (remote_follow_fork): Add vfork event type to event checking.
3278 (remote_parse_stop_reply): New stop reasons "vfork" and
3279 "vforkdone" for RSP 'T' Stop Reply Packet.
3280
3281 2015-05-12 Don Breazeal <donb@codesourcery.com>
3282
3283 * linux-nat.c (linux_nat_ptrace_options): New function.
3284 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
3285 Call linux_nat_ptrace_options and use different argument to
3286 linux_enable_event_reporting.
3287 (_initialize_linux_nat): Delete call to
3288 linux_ptrace_set_additional_flags.
3289 * nat/linux-ptrace.c (current_ptrace_options): Rename to
3290 supported_ptrace_options.
3291 (additional_flags): Delete variable.
3292 (linux_check_ptrace_features): Use supported_ptrace_options.
3293 (linux_test_for_tracesysgood, linux_test_for_tracefork):
3294 Likewise, and remove additional_flags check.
3295 (linux_enable_event_reporting): Change 'attached' argument to
3296 'options'. Use supported_ptrace_options.
3297 (ptrace_supports_feature): Change comment. Use
3298 supported_ptrace_options.
3299 (linux_ptrace_set_additional_flags): Delete function.
3300 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3301 Delete function prototype.
3302 * remote.c (remote_fork_event_p): New function.
3303 (remote_detach_pid): New function.
3304 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
3305 if doing detach-on-fork.
3306 (remote_follow_fork): New function.
3307 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
3308 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
3309 (init_extended_remote_ops): Initialize to_follow_fork.
3310
3311 2015-05-12 Don Breazeal <donb@codesourcery.com>
3312
3313 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
3314 from static to extern.
3315 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
3316 * remote.c (anonymous enum): <PACKET_fork_event_feature,
3317 * PACKET_vfork_event_feature>: New enumeration constants.
3318 (remote_protocol_features): Add table entries for new packets.
3319 (remote_query_supported): Add new feature queries to qSupported
3320 packet.
3321
3322 2015-05-12 Gary Benson <gbenson@redhat.com>
3323
3324 * remote.c (remote_add_inferior): Call exec_file_locate_attach
3325 for fake PIDs as well as real ones.
3326 (remote_pid_to_exec_file): Send empty annex if PID is fake.
3327
3328 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
3329
3330 * NEWS (Python Scripting): Mention the new gdb.Value methods.
3331 * python/py-value.c (valpy_reference_value): New function.
3332 (valpy_const_value): Likewise.
3333 (value_object_methods): Add new methods.
3334 * value.c (make_cv_value): New function.
3335 * value.h (make_cv_value): Declare.
3336
3337 2015-05-08 Yao Qi <yao@codesourcery.com>
3338 Sandra Loosemore <sandra@codesourcery.com>
3339
3340 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
3341 to 'lh->include_dirs' before accessing to it.
3342 (psymtab_include_file_name): Likewise.
3343 (dwarf_decode_lines_1): Likewise.
3344 (dwarf_decode_lines): Likewise.
3345 (file_file_name): Likewise.
3346
3347 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
3348
3349 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
3350 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
3351 (nios2_linux_rt_sigreturn_init): Adjust base address of
3352 register save area.
3353
3354 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
3355
3356 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
3357 "trap 31" as the breakpoint instruction on all targets.
3358
3359 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3360
3361 * infcmd.c (print_return_value): Remove unused declaration.
3362
3363 2015-05-08 Joel Brobecker <brobecker@adacore.com>
3364
3365 * dwarf2read.c (attr_to_dynamic_prop)
3366 <DW_AT_data_member_location>: Use read_type_die isntead of
3367 get_die_type.
3368
3369 2015-05-08 Joel Brobecker <brobecker@adacore.com>
3370
3371 * ada-lang.c (ada_convert_actual): Add handling of formals
3372 passed inside an aligner type.
3373
3374 2015-05-08 Joel Brobecker <brobecker@adacore.com>
3375
3376 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
3377
3378 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
3379
3380 PR python/18291
3381 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
3382 Print xmethod matcher status.
3383
3384 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
3385
3386 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
3387 register in the regcache when treating the PSWM register, and vice
3388 versa.
3389
3390 2015-05-07 Gary Benson <gbenson@redhat.com>
3391
3392 * linux-thread-db.c (struct thread_db_info)
3393 <td_ta_map_id2thr_p>: Remove field.
3394 (try_thread_db_load_1): Remove initialization for the above.
3395
3396 2015-05-07 Gary Benson <gbenson@redhat.com>
3397
3398 * linux-thread-db.c (struct thread_db_info)
3399 <td_thr_validate_p>: Remove field.
3400 (try_thread_db_load_1): Remove initialization for the above.
3401
3402 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3403
3404 * compile/compile-object-load.c (compile_object_load): Support
3405 mst_text_gnu_ifunc.
3406
3407 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3408
3409 * compile/compile.c (compile_to_object): Make the cmd_string parameter
3410 const. Use new variables for the const compatibility.
3411 (eval_compile_command): Make the cmd_string parameter const.
3412 * compile/compile.h (eval_compile_command): Make the cmd_string
3413 parameter const.
3414
3415 2015-05-06 Joel Brobecker <brobecker@adacore.com>
3416
3417 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
3418 comment.
3419 * top.c (deprecated_init_ui_hook): Delete.
3420 (gdb_init): Remove handling of deprecated_init_ui_hook.
3421 * interps.c (clear_interpreter_hooks): Remove handling of
3422 deprecated_init_ui_hook.
3423 * main.c (captured_main): Update comment.
3424
3425 2015-05-06 Joel Brobecker <brobecker@adacore.com>
3426
3427 * solib.c (_initialize_solib): Add "info dll" alias creation.
3428 * windows-nat.c (set_windows_aliases): Delete.
3429 (_initialize_windows_nat): Remove deprecated_init_ui_hook
3430 assignment.
3431 * NEWS: Add news entry about "info dll" now being available
3432 on all platforms.
3433
3434 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3435
3436 * ada-lang.c (value_assign_to_component): Reformat and improve
3437 documentation. Remove all trailing spaces.
3438
3439 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3440
3441 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3442 Stop counting inlined frames as soon as an out-of-line function
3443 is found.
3444
3445 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
3446
3447 * dwarf2read.c (inherit_abstract_dies): Skip
3448 DW_TAG_GNU_call_site dies while inheriting children of an
3449 abstract DIE into a scope.
3450 (read_lexical_block_scope): Inherit abstract DIE's for
3451 lexical scopes.
3452
3453 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3454
3455 * ada-valprint.c (val_print_packed_array_elements): Delete
3456 variable "len". Add a type-length check when comparing two
3457 consecutive elements of the array. Use the element's actual
3458 length in call to value_contents_eq.
3459 * ada-lang.c (ada_value_primitive_packed_val): Always return
3460 a value whose type has been resolved.
3461
3462 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3463
3464 * ada-lang.c (ada_value_primitive_packed_val): Recompute
3465 BIT_SIZE and LEN if the size of the resolved type is smaller
3466 than BIT_SIZE * HOST_CHAR_BIT.
3467
3468 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3469
3470 * ada-lang.c (ada_value_primitive_packed_val): Use a more
3471 correct address in call to value_at. Adjust call to
3472 value_address accordingly.
3473
3474 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3475
3476 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
3477 to print it.
3478
3479 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3480
3481 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
3482 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
3483 pinfo->valaddr.
3484 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
3485 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
3486 (resolve_dynamic_type_internal): Set pinfo.valaddr.
3487 Add handling of addr_stack->valaddr.
3488 (resolve_dynamic_type): Add "valaddr" parameter.
3489 Set pinfo.valaddr field.
3490 * ada-lang.c (ada_discrete_type_high_bound): Update call to
3491 resolve_dynamic_type.
3492 (ada_discrete_type_low_bound): Likewise.
3493 * findvar.c (default_read_var_value): Likewise.
3494 * value.c (value_from_contents_and_address): Likewise.
3495
3496 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3497
3498 * gdbtypes.c (resolve_dynamic_array): Use
3499 create_array_type_with_stride instead of create_array_type.
3500
3501 2015-04-30 DJ Delorie <dj@redhat.com>
3502
3503 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
3504 rl78_decode_opcode
3505
3506 2015-04-29 Doug Evans <dje@google.com>
3507
3508 PR python/18285
3509 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
3510 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
3511 EVAL_AVOID_SIDE_EFFECTS for xmethods.
3512 * extension-priv.h (struct extension_language_ops)
3513 <get_xmethod_result_type>: New member.
3514 * extension.c (get_xmethod_result_type): New function.
3515 * extension.h (get_xmethod_result_type): Declare.
3516 * python/py-xmethods.c (get_result_type_method_name): New static
3517 global.
3518 (py_get_result_type_method_name): Ditto.
3519 (gdbpy_get_xmethod_result_type): New function.
3520 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
3521 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
3522 * python/python.c (python_extension_ops): Add
3523 gdbpy_get_xmethod_result_type.
3524 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
3525 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
3526 xmethods.
3527 (value_x_unop): Ditto.
3528 * value.c (result_type_of_xmethod): New function.
3529 * value.h (result_type_of_xmethod): Declare.
3530
3531 2015-04-29 Gary Benson <gbenson@redhat.com>
3532
3533 * solib.c (solib_find_1): Allow fd argument to be NULL.
3534 (exec_file_find): Update comment.
3535 (solib_find): Likewise.
3536 * exec.c (exec_file_locate_attach): Use NULL as fd
3537 argument to exec_file_find to avoid having to close
3538 the opened file.
3539 * infrun.c (follow_exec): Likewise.
3540
3541 2015-04-28 Doug Evans <dje@google.com>
3542
3543 PR python/18299
3544 * python/lib/gdb/printing.py (register_pretty_printer): Handle
3545 name or __name__ attributes. Handle gdb module as first argument.
3546
3547 2015-04-28 Doug Evans <dje@google.com>
3548
3549 PR python/18089
3550 * python/py-prettyprint.c (print_children): Verify result of children
3551 iterator. Provide better error message.
3552 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
3553 * python/python.c (gdbpy_print_python_errors_p): New function.
3554
3555 2015-04-28 Doug Evans <dje@google.com>
3556
3557 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
3558
3559 2015-04-28 Sasha Smundak <asmundak@google.com>
3560
3561 * NEWS: Mention gdb.Type.optimized_out method.
3562 * python/py-type.c (typy_optimized_out): New function.
3563
3564 2015-04-28 John Baldwin <jhb@FreeBSD.org>
3565
3566 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3567
3568 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3569
3570 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
3571 (initialize_utils): Move call of init_page_info() to ...
3572 * top.c (gdb_init): ... here.
3573
3574 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3575
3576 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
3577 (tui_sigwinch_handler): Still update our idea of
3578 the terminal's width and height even when TUI is not active.
3579
3580 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3581
3582 * utils.h (set_screen_width_and_height): Declare.
3583 * utils.c (set_screen_width_and_height): Define.
3584 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
3585
3586 2015-04-28 Gary Benson <gbenson@redhat.com>
3587
3588 * infrun.c (solist.h): New include.
3589 (follow_exec): Use exec_file_find to prefix execd_pathname
3590 with gdb_sysroot.
3591
3592 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3593
3594 * tui/tui-source.c (tui_set_source_content): Avoid calling
3595 strcpy() when offset is 0.
3596
3597 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3598
3599 PR gdb/18155
3600 * tui/tui-data.c (tui_free_window): Don't free the locator
3601 window when passed an SRC_WIN or a DISASSEM_WIN.
3602
3603 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3604
3605 * tui/tui-data.h (struct tui_win_element): Forward-declare.
3606 (tui_win_content): Move declaration.
3607 (struct tui_gen_win_info): Give 'content' field the
3608 type tui_win_content.
3609 * tui/tui-data.c (init_content_element): Remove redundant and
3610 erroneous casts.
3611 (tui_add_content_elements): Remove erroneous cast.
3612 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
3613 casts.
3614 (tui_get_begin_asm_address): Likewise.
3615 * tui/tui-regs.c (tui_show_registers): Likewise.
3616 (tui_show_register_group): Likewise.
3617 (tui_display_registers_from): Likewise.
3618 (tui_check_register_values): Likewise.
3619 * tui/tui-source.c (tui_set_source_content): Likewise.
3620 (tui_set_source_content_nil): Likewise.
3621 (tui_source_is_displayed): Likewise.
3622 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3623 (tui_set_locator_fullname): Likewise.
3624 (tui_set_locator_info): Likewise.
3625 (tui_show_frame_info): Likewise.
3626 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
3627 (tui_show_source_line): Likewise.
3628 (tui_horizontal_source_scroll): Likewise.
3629 (tui_update_breakpoint_info): Likewise.
3630 (tui_set_exec_info_content): Likewise.
3631 (tui_show_exec_info_content): Likewise.
3632 (tui_alloc_source_buffer): Likewise.
3633 (tui_line_is_displayed): Likewise.
3634 (tui_addr_is_displayed): Likewise.
3635
3636 2015-04-27 John Baldwin <jhb@FreeBSD.org>
3637
3638 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
3639 event if PL_FLAG_EXEC is set.
3640 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
3641 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
3642 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
3643 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
3644 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
3645
3646 2015-04-27 John Baldwin <jhb@FreeBSD.org>
3647
3648 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
3649 [TDP_RFPPWAIT] New variable fbsd_pending_children.
3650 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
3651 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
3652 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
3653 [PT_LWPINFO] (fbsd_wait): New function.
3654 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
3655 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
3656 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
3657 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
3658 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
3659 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
3660 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
3661 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
3662 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
3663 "fbsd_wait".
3664 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
3665 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
3666 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
3667 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
3668 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
3669 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
3670 Set "to_post_attach" to "fbsd_post_attach".
3671
3672 2015-04-27 John Baldwin <jhb@FreeBSD.org>
3673
3674 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
3675 (fbsd_find_memory_regions): Mark static.
3676 (fbsd_nat_add_target): New function.
3677 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
3678 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
3679 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
3680 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3681 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
3682 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
3683
3684 2015-04-27 Gary Benson <gbenson@redhat.com>
3685
3686 * objfiles.c (allocate_objfile): Do not attempt to expand name
3687 if name is a "target:" filename.
3688 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
3689 to load auto-load scripts for objfiles with "target:" filenames.
3690
3691 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3692
3693 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
3694 (enum s390_vector_abi_kind): New enum.
3695 (struct gdbarch_tdep)<vector_abi>: New field.
3696 (s390_effective_inner_type): Add parameter min_size. Stop
3697 unwrapping if the inner type is smaller than min_size.
3698 (s390_function_arg_float): Adjust call to
3699 s390_effective_inner_type.
3700 (s390_function_arg_vector): New function.
3701 (s390_function_arg_integer): Adjust comment.
3702 (struct s390_arg_state)<vr>: New field.
3703 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
3704 arguments according to vector ABI when appropriate.
3705 (s390_push_dummy_call): Initialize the argument state's field
3706 'vr'. Adjust calls to s390_handle_arg.
3707 (s390_register_return_value): Handle vector return values.
3708 (s390_return_value): Apply the "register" return value convention
3709 to a vector when appropriate.
3710 (s390_gdbarch_init): Initialize tdep->vector_abi.
3711 * NEWS: Announce S390 vector ABI support.
3712
3713 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3714
3715 * s390-linux-tdep.c (s390_return_value_convention): Remove
3716 function. Inline its logic...
3717 (s390_return_value): ...here. Instead, move the handling of the
3718 "register" return value convention...
3719 (s390_register_return_value): ...here. New function.
3720
3721 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3722
3723 * s390-linux-tdep.c
3724 (is_float_singleton): Remove function. Move the "singleton" part
3725 of the logic...
3726 (s390_effective_inner_type): ...here. New function.
3727 (is_float_like): Remove function. Inline its logic...
3728 (s390_function_arg_float): ...here.
3729 (is_pointer_like, is_integer_like, is_struct_like): Remove
3730 functions. Inline their logic...
3731 (s390_function_arg_integer): ...here.
3732 (s390_function_arg_pass_by_reference): Remove function.
3733 (extend_simple_arg): Remove function.
3734 (alignment_of): Remove function.
3735 (struct s390_arg_state): New structure.
3736 (s390_handle_arg): New function.
3737 (s390_push_dummy_call): Move parameter placement logic to the new
3738 function s390_handle_arg. Call it for calculating the stack area
3739 sizes first, and again for actually writing the parameters.
3740
3741 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3742
3743 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
3744 false if the argument is zero.
3745
3746 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
3747
3748 * ada-lang.c (template_to_static_fixed_type): Return input type
3749 when it is already fixed. Cache the input type itself when not
3750 creating a static fixed copy. Make it explicit that we never
3751 molestate the input type.
3752 * gdbtypes.c (resolve_dynamic_struct): Reset the
3753 TYPE_TARGET_TYPE field for resolved copies.
3754
3755 2015-04-27 Joel Brobecker <brobecker@adacore.com>
3756
3757 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
3758 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
3759 (template_to_static_fixed_type): Call ada_check_typedef only
3760 when necessary.
3761
3762 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
3763
3764 * cli/cli-dump.c (srec_dump_command): Add internationalization
3765 mark ups.
3766 (ihex_dump_command): Likewise.
3767 (tekhex_dump_command): Likewise.
3768 (binary_dump_command): Likewise.
3769 (binary_append_command): Likewise.
3770
3771 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
3772
3773 * cli/cli-dump.c (verilog_cmdlist): New variable.
3774 (dump_verilog_memory): New function.
3775 (dump_verilog_value): New function.
3776 (verilog_dump_command): New function.
3777 (_initialize_cli_dump): Add new commands to support verilog dump
3778 format.
3779 * NEWS: Add entry for "dump verilog".
3780
3781 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
3782
3783 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
3784 descriptive type when there is none.
3785
3786 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
3787
3788 * tui/tui-win.c (tui_async_resize_screen): Call
3789 rl_resize_terminal().
3790
3791 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
3792
3793 * windows-nat.c (handle_output_debug_string): Don't change
3794 current_event.dwThreadId.
3795 (get_windows_debug_event): Use thread_id, rather than relying on
3796 current_event.dwThreadId being changed.
3797
3798 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
3799
3800 * windows-nat.c (windows_continue): Report an error if
3801 ContinueDebugEvent() fails.
3802
3803 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3804
3805 * windows-nat.c (windows_resume): Fix misspelling in debug output.
3806
3807 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3808
3809 * windows-nat.c (get_windows_debug_event): Replace retval with
3810 thread_id throughout. Update stale comment.
3811
3812 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3813
3814 * windows-nat.c (get_windows_debug_event): Don't use ternary
3815 conditional operator.
3816
3817 2015-04-21 Pierre Muller <muller@sourceware.org>
3818
3819 PR pascal/17815
3820 p-exp.y (yylex): Reorganize code to return the matched pattern
3821 for a field of this.
3822
3823 2015-04-21 Gary Benson <gbenson@redhat.com>
3824
3825 * common/fileio.h (fileio_to_host_openflags): New declaration.
3826 * common/fileio.c (fcntl.h): New include.
3827 (fileio_to_host_openflags): New function, factored out from...
3828 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
3829 Single use updated.
3830
3831 2015-04-21 Kevin Buettner <kevinb@redhat.com>
3832
3833 * rl78-tdep.c (RL78_SP_ADDR): Define.
3834 (opc_reg_to_gdb_regnum): New static function.
3835 (rl78_analyze_prologue): Recognize instructions forming slightly
3836 more interesting prologues.
3837
3838 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
3839
3840 Revert:
3841 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
3842 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
3843 TYPE_CODE_REF types so that they are not considered as dynamic
3844 depending on the referenced type.
3845 (resolve_dynamic_type_internal): Likewise.
3846
3847 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
3848
3849 Revert:
3850 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
3851 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
3852 "top_level" parameter.
3853 (resolve_dynamic_type_internal): Remove the unused "top_level"
3854 parameter. Update call to is_dynamic_type_internal.
3855 (is_dynamic_type): Update call to is_dynamic_type_internal.
3856 (resolve_dynamic_range): Update call to
3857 resolve_dynamic_type_internal.
3858 (resolve_dynamic_union): Likewise.
3859 (resolve_dynamic_struct): Likewise.
3860 (resolve_dynamic_type): Likewise.
3861
3862 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
3863
3864 * breakpoint.c (update_dprintf_command_list): Remove duplicated
3865 xmalloc.
3866
3867 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
3868
3869 * reply_mig_hack.awk: Robustify parsing.
3870
3871 * reply_mig_hack.awk: Don't bother to declare an intermediate
3872 function pointer variable.
3873
3874 2015-04-17 Doug Evans <dje@google.com>
3875
3876 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
3877 to "exec_displacement" to avoid confusion with inner use of the name.
3878
3879 2015-04-17 Pedro Alves <palves@redhat.com>
3880
3881 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
3882 if HW point of TYPE isn't supported.
3883
3884 2015-04-17 Yao Qi <yao.qi@linaro.org>
3885 Pedro Alves <palves@redhat.com>
3886
3887 * target.h (target_can_use_hardware_watchpoint): Update comments.
3888 Remove trailing ";".
3889
3890 2015-04-17 Gary Benson <gbenson@redhat.com>
3891
3892 * remote.c (remote_add_inferior): New argument try_open_exec.
3893 If nonzero, attempt to open the inferior's executable file as
3894 the main executable if no main executable is open already.
3895 All callers updated.
3896 * NEWS: Mention that GDB now supports automatic location and
3897 retrieval of executable + files from remote targets.
3898
3899 2015-04-17 Gary Benson <gbenson@redhat.com>
3900
3901 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
3902 * remote.c (PACKET_qXfer_exec_file): Likewise.
3903 (remote_protocol_features): Register the
3904 "qXfer:exec-file:read" feature.
3905 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
3906 (remote_pid_to_exec_file): New function.
3907 (init_remote_ops): Initialize to_pid_to_exec_file.
3908 (_initialize_remote): Register new "set/show remote
3909 pid-to-exec-file-packet" command.
3910 * NEWS: Announce new qXfer:exec-file:read packet.
3911
3912 2015-04-17 Gary Benson <gbenson@redhat.com>
3913
3914 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
3915 New declaration.
3916 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
3917 New function, factored out from...
3918 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
3919
3920 2015-04-17 Gary Benson <gbenson@redhat.com>
3921
3922 * exec.c (solist.h): New include.
3923 (exec_file_locate_attach): Prefix absolute executable
3924 paths with gdb_sysroot if set.
3925 * NEWS: Mention that executable paths may be prepended
3926 with sysroot.
3927
3928 2015-04-17 Gary Benson <gbenson@redhat.com>
3929
3930 * solist.h (exec_file_find): New declaration.
3931 * solib.c (solib_find_1): New function, factored out from...
3932 (solib_find): ...here.
3933 (exec_file_find): New function.
3934
3935 2015-04-17 Gary Benson <gbenson@redhat.com>
3936
3937 * gdbcore.h (exec_file_locate_attach): New declaration.
3938 * exec.c (exec_file_locate_attach): New function, factored
3939 out from...
3940 * infcmd.c (attach_command_post_wait): ...here.
3941
3942 2015-04-17 Mike Frysinger <vapier@gentoo.org>
3943
3944 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
3945
3946 2015-04-16 Yao Qi <yao.qi@linaro.org>
3947
3948 * infrun.c (maybe_software_singlestep): Declare.
3949 (displaced_step_fixup): Call maybe_software_singlestep.
3950
3951 2015-04-15 Doug Evans <dje@google.com>
3952
3953 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
3954
3955 2015-04-15 Doug Evans <dje@google.com>
3956
3957 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
3958
3959 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
3960
3961 * python/lib/gdb/command/unwinders.py: Add parentheses.
3962
3963 2015-04-15 Yao Qi <yao.qi@linaro.org>
3964
3965 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
3966
3967 2015-04-15 Yao Qi <yao.qi@linaro.org>
3968
3969 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
3970
3971 2015-04-15 Yao Qi <yao.qi@linaro.org>
3972
3973 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3974 dsc->insn_size instead of 4.
3975
3976 2015-04-14 Gary Benson <gbenson@redhat.com>
3977
3978 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
3979 * minidebug.c (lzma_stat): Likewise.
3980 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
3981 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
3982
3983 2015-04-13 Stan Shebs <stanshebs@google.com>
3984
3985 * MAINTAINERS: Update my email address.
3986
3987 2015-04-13 John Baldwin <jhb@FreeBSD.org>
3988
3989 * amd64-tdep.c (amd64_target_description): New function.
3990 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
3991 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
3992 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
3993 x86 extended save area.
3994 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
3995 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
3996 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
3997 (_initialize_amd64fbsd_nat): Set "to_read_description" to
3998 "amd64fbsd_read_description".
3999 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
4000 (amd64fbsd_supply_xstateregset): New function.
4001 (amd64fbsd_collect_xstateregset): New function.
4002 Add "amd64fbsd_xstateregset".
4003 (amd64fbsd_iterate_over_regset_sections): New function.
4004 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
4005 "I386_FBSD_XSAVE_XCR0_OFFSET".
4006 Add "iterate_over_regset_sections" gdbarch method.
4007 Add "core_read_description" gdbarch method.
4008 * i386-tdep.c (i386_target_description): New function.
4009 * i386-tdep.h: Export i386_target_description and tdesc_i386.
4010 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
4011 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
4012 x86 extended save area.
4013 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
4014 * i386bsd-nat.h: Export i386bsd_xsave_len.
4015 * i386fbsd-nat.c (i386fbsd_read_description): New function.
4016 (_initialize_i386fbsd_nat): Set "to_read_description" to
4017 "i386fbsd_read_description".
4018 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
4019 (i386fbsd_core_read_description): New function.
4020 (i386fbsd_supply_xstateregset): New function.
4021 (i386fbsd_collect_xstateregset): New function.
4022 Add "i386fbsd_xstateregset".
4023 (i386fbsd_iterate_over_regset_sections): New function.
4024 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
4025 "I386_FBSD_XSAVE_XCR0_OFFSET".
4026 Add "iterate_over_regset_sections" gdbarch method.
4027 Add "core_read_description" gdbarch method.
4028 * i386fbsd-tdep.h: New file.
4029
4030 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4031
4032 * NEWS (Changes since GDB 7.9): Add removed -xdb.
4033 * breakpoint.c (command_line_is_silent): Remove xdb_commands
4034 conditional.
4035 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
4036 and lb.
4037 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
4038 va.
4039 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
4040 conditional.
4041 * defs.h (xdb_commands): Remove declaration.
4042 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
4043 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
4044 * infcmd.c (run_no_args_command, go_command): Remove.
4045 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
4046 * infrun.c (xdb_handle_command): Remove.
4047 (_initialize_infrun): Remove xdb_commands for lz and z.
4048 * main.c (xdb_commands): Remove variable.
4049 (captured_main): Remove "xdb" from long_options.
4050 (print_gdb_help): Remove --xdb from help.
4051 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
4052 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
4053 * stack.c (backtrace_full_command, args_plus_locals_info)
4054 (current_frame_command): Remove.
4055 (_initialize_stack): Remove xdb_commands for t, T and l.
4056 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
4057 * thread.c (_initialize_thread): Remove xdb_commands condition.
4058 * tui/tui-layout.c (tui_toggle_layout_command)
4059 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
4060 (_initialize_tui_layout): Remove xdb_commands for td and ts.
4061 * tui/tui-regs.c (tui_scroll_regs_forward_command)
4062 (tui_scroll_regs_backward_command): Remove.
4063 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
4064 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
4065 (_initialize_tui_win): Remove xdb_commands for U and w.
4066 * utils.c (pagination_on_command, pagination_off_command): Remove.
4067 (initialize_utils): Remove xdb_commands for am and sm.
4068
4069 2015-04-10 Pedro Alves <palves@redhat.com>
4070
4071 * infrun.c (displaced_step_fixup): Switch to the event ptid
4072 earlier. If the thread stopped for a watchpoint and the
4073 target/arch has non-continuable watchpoints, cancel the displaced
4074 step.
4075 (resume): Don't start a displaced step if in-line step-over info
4076 is valid.
4077
4078 2015-04-10 Pedro Alves <palves@redhat.com>
4079
4080 * infrun.c (displaced_step_in_progress): New function.
4081 (do_target_resume): Advise target to report all signals if
4082 displaced stepping.
4083
4084 2015-04-10 Pedro Alves <palves@redhat.com>
4085
4086 PR gdb/18216
4087 * infrun.c (process_event_stop_test): Don't assume a step-resume
4088 is set if tp->stepped_breakpoint is true.
4089
4090 2015-04-10 Yao Qi <yao.qi@linaro.org>
4091
4092 * arm-tdep.c (install_alu_reg): Update comment.
4093 (thumb_copy_alu_reg): Remove local variable rn. Update
4094 debugging message. Use r2 instead of r1 in the modified
4095 instruction.
4096
4097 2015-04-10 Pedro Alves <palves@redhat.com>
4098
4099 PR gdb/13858
4100 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
4101 linux_displaced_step_location as gdbarch_displaced_step_location
4102 hook.
4103 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4104 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4105 * linux-tdep.c (linux_displaced_step_location): New function,
4106 based on ppc_linux_displaced_step_location.
4107 * linux-tdep.h (linux_displaced_step_location): New declaration.
4108 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
4109 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
4110 Delete.
4111 (ppc_linux_init_abi): Install linux_displaced_step_location as
4112 gdbarch_displaced_step_location hook, even without Cell/B.E..
4113 (_initialize_ppc_linux_tdep): Don't install
4114 ppc_linux_inferior_created as inferior_created observer.
4115 * s390-linux-tdep.c (s390_gdbarch_init): Install
4116 linux_displaced_step_location as gdbarch_displaced_step_location
4117 hook.
4118
4119 2015-04-09 Gary Benson <gbenson@redhat.com>
4120
4121 * common/common-remote-fileio.h: Rename to...
4122 * common/fileio.h: ...this. Update all references.
4123 (remote_fileio_to_fio_error): Rename to...
4124 (host_to_fileio_error): ...this.
4125 (remote_fileio_to_be): Rename to...
4126 (host_to_bigendian): ...this. Update all callers.
4127 (remote_fileio_to_fio_uint): Rename to...
4128 (host_to_fileio_uint): ...this. Update all callers.
4129 (remote_fileio_to_fio_time): Rename to...
4130 (host_to_fileio_time): ...this. Update all callers.
4131 (remote_fileio_to_fio_stat): Rename to...
4132 (host_to_fileio_stat): ...this.
4133 Update all references.
4134 * common/common-remote-fileio.c: Rename to...
4135 * common/fileio.c: ...this. Update all references.
4136 (remote_fileio_to_fio_error): Rename to...
4137 (host_to_fileio_error): ...this. Update all callers.
4138 (remote_fileio_mode_to_target): Rename to...
4139 (fileio_mode_pack): ...this. Update all callers.
4140 (remote_fileio_to_fio_mode): Rename to...
4141 (host_to_fileio_mode): ...this. Update all callers.
4142 (remote_fileio_to_fio_ulong): Rename to...
4143 (host_to_fileio_ulong): ...this. Update all callers.
4144 (remote_fileio_to_fio_stat): Rename to...
4145 (host_to_fileio_stat): ...this. Update all callers.
4146
4147 2015-04-09 Andy Wingo <wingo@igalia.com>
4148
4149 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
4150 (frame_functions): Bind gdbscm_frame_read_register to
4151 frame-read-register.
4152 * guile/lib/gdb.scm (frame-read-register): Export.
4153
4154 2015-04-09 Gary Benson <gbenson@redhat.com>
4155
4156 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
4157 New declaration.
4158 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
4159 New function, factored out the named functions below.
4160 * inf-child.c (gdb/fileio.h): Remove include.
4161 (common-remote-fileio.h): New include.
4162 (inf_child_errno_to_fileio_error): Remove function. Update
4163 all callers to use remote_fileio_to_fio_error.
4164 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
4165
4166 2015-04-09 Andy Wingo <wingo@igalia.com>
4167
4168 * MAINTAINERS (Write After Approval): Add Andy Wingo.
4169
4170 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
4171
4172 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
4173 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
4174 * configure: Regenerated.
4175
4176 2015-04-09 Pedro Alves <palves@redhat.com>
4177
4178 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
4179 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
4180 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
4181 * gnulib/import/Makefile.am: Update.
4182 * gnulib/import/Makefile.in: Update.
4183 * gnulib/import/m4/gnulib-cache.m4: Update.
4184 * gnulib/import/m4/gnulib-comp.m4: Update.
4185 * gnulib/import/m4/strtok_r.m4: New file.
4186 * gnulib/import/strtok_r.c: New file.
4187
4188 2015-04-09 Pedro Alves <palves@redhat.com>
4189
4190 * gnulib/update-gnulib.sh (aclocal version check): Filter out
4191 "called too early to check prototype".
4192
4193 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
4194
4195 PR python/16699
4196 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
4197 use a caching mechanism. Adjust comments and code to reflect
4198 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
4199 (cmdpy_completer_handle_brkchars): Adjust call to
4200 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
4201 (cmdpy_completer): Likewise.
4202
4203 2015-04-08 Yao Qi <yao.qi@linaro.org>
4204
4205 * spu-tdep.c (spu_gdbarch_init): Don't call
4206 set_gdbarch_cannot_step_breakpoint.
4207
4208 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
4209
4210 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
4211
4212 2015-04-07 Pedro Alves <palves@redhat.com>
4213
4214 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
4215 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
4216 (delete_exited_threads): New declaration.
4217 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
4218 * linux-nat.c (linux_nat_update_thread_list): New function.
4219 (linux_nat_add_target): Install it.
4220 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
4221 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
4222 (delete_exited_threads): New function.
4223
4224 2015-04-07 Pedro Alves <pedro@codesourcery.com>
4225
4226 * infrun.c (resume) <displaced stepping debug output>: Get the
4227 leader thread's regcache, not resume_ptid's.
4228
4229 2015-04-06 Doug Evans <xdje42@gmail.com>
4230
4231 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
4232 VAR_DOMAIN.
4233 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
4234 Include symbol domain in debugging output.
4235
4236 2015-04-06 Pedro Alves <palves@redhat.com>
4237 Bernd Edlinger <bernd.edlinger@hotmail.de>
4238
4239 * configure.ac: Remove the mingw32-specific stub-termcap.o
4240 fallback, and instead fallback to the stub termcap on all hosts.
4241 * configure: Regenerate.
4242 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
4243 symbols.
4244
4245 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
4246
4247 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
4248 "top_level" parameter.
4249 (resolve_dynamic_type_internal): Remove the unused "top_level"
4250 parameter. Update call to is_dynamic_type_internal.
4251 (is_dynamic_type): Update call to is_dynamic_type_internal.
4252 (resolve_dynamic_range): Update call to
4253 resolve_dynamic_type_internal.
4254 (resolve_dynamic_union): Likewise.
4255 (resolve_dynamic_struct): Likewise.
4256 (resolve_dynamic_type): Likewise.
4257
4258 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
4259
4260 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
4261 TYPE_CODE_REF types so that they are not considered as dynamic
4262 depending on the referenced type.
4263 (resolve_dynamic_type_internal): Likewise.
4264
4265 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
4266
4267 * Makefile.in (top_srcdir): New.
4268 * configure: Regenerated.
4269
4270 2015-04-02 Gary Benson <gbenson@redhat.com>
4271
4272 * NEWS: Announce the new default sysroot of "target:".
4273
4274 2015-04-02 Gary Benson <gbenson@redhat.com>
4275
4276 * main.c (captured_main): Set gdb_sysroot to "target:"
4277 if not otherwise set.
4278
4279 2015-04-02 Gary Benson <gbenson@redhat.com>
4280
4281 * exec.c (exec_file_attach): Support "target:" filenames.
4282
4283 2015-04-02 Gary Benson <gbenson@redhat.com>
4284
4285 * solib.c (solib_find): Strip "target:" prefix from sysroot
4286 if accessing local files.
4287
4288 2015-04-02 Gary Benson <gbenson@redhat.com>
4289
4290 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
4291 checks and error messages.
4292
4293 2015-04-02 Gary Benson <gbenson@redhat.com>
4294
4295 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
4296 (remote_filename_p): Remove declaration.
4297 (remote_bfd_open): Likewise.
4298 * remote.c (remote_bfd_iovec_open): Remove function.
4299 (remote_bfd_iovec_close): Likewise.
4300 (remote_bfd_iovec_pread): Likewise.
4301 (remote_bfd_iovec_stat): Likewise.
4302 (remote_filename_p): Likewise.
4303 (remote_bfd_open): Likewise.
4304 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
4305 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
4306 (gdb_bfd_open_maybe_remote): Remove function.
4307 (symfile_bfd_open): Replace remote filename check with
4308 target filename check.
4309 (reread_symbols): Use gdb_bfd_open.
4310 * build-id.c (gdbcore.h): New include.
4311 (build_id_to_debug_bfd): Use gdb_bfd_open.
4312 * infcmd.c (attach_command_post_wait): Remove remote filename
4313 check.
4314 * solib.c (solib_find): Replace remote-specific handling with
4315 target-specific handling. Update comments where necessary.
4316 (solib_bfd_open): Replace remote-specific handling with
4317 target-specific handling.
4318 (gdb_sysroot_changed): New function.
4319 (_initialize_solib): Call the above when gdb_sysroot changes.
4320 * windows-tdep.c (gdbcore.h): New include.
4321 (windows_xfer_shared_library): Use gdb_bfd_open.
4322
4323 2015-04-02 Gary Benson <gbenson@redhat.com>
4324
4325 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
4326 (is_target_filename): New declaration.
4327 (gdb_bfd_has_target_filename): Likewise.
4328 (gdb_bfd_open): Update documentation comment.
4329 * gdb_bfd.c (target.h): New include.
4330 (gdb/fileio.h): Likewise.
4331 (is_target_filename): New function.
4332 (gdb_bfd_has_target_filename): Likewise.
4333 (fileio_errno_to_host): Likewise.
4334 (gdb_bfd_iovec_fileio_open): Likewise.
4335 (gdb_bfd_iovec_fileio_pread): Likewise.
4336 (gdb_bfd_iovec_fileio_close): Likewise.
4337 (gdb_bfd_iovec_fileio_fstat): Likewise.
4338 (gdb_bfd_open): Use target fileio to access paths prefixed
4339 with "target:" where necessary.
4340
4341 2015-04-02 Gary Benson <gbenson@redhat.com>
4342
4343 * target.h (struct target_ops) <to_filesystem_is_local>:
4344 New field.
4345 (target_filesystem_is_local): New macro.
4346 * target-delegates.c: Regenerate.
4347 * remote.c (remote_filesystem_is_local): New function.
4348 (init_remote_ops): Initialize to_filesystem_is_local.
4349
4350 2015-04-02 Gary Benson <gbenson@redhat.com>
4351
4352 * target.h (struct target_ops) <to_fileio_fstat>: New field.
4353 (target_fileio_fstat): New declaration.
4354 * target.c (target_fileio_fstat): New function.
4355 * inf-child.c (inf_child_fileio_fstat): Likewise.
4356 (inf_child_target): Initialize to_fileio_fstat.
4357 * remote.c (init_remote_ops): Likewise.
4358
4359 2015-04-01 Sasha Smundak <asmundak@google.com>
4360
4361 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
4362 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
4363 (py-unwind.o): New recipe.
4364 * NEWS: mention Python frame unwinding.
4365 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
4366 gdb/unwinder.py and gdb/command/unwinder.py
4367 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
4368 list.
4369 (execute_unwinders): New function.
4370 * python/lib/gdb/command/unwinders.py: New file.
4371 * python/lib/gdb/unwinder.py: New file.
4372 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
4373 (objfpy_dealloc): Decrement frame_unwinders reference count.
4374 (objfpy_initialize): Create frame_unwinders list.
4375 (objfpy_get_frame_unwinders): New function.
4376 (objfpy_set_frame_unwinders): Ditto.
4377 (objfile_getset): Add frame_unwinders attribute to Objfile.
4378 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
4379 (pspy_dealloc): Decrement frame_unwinders reference count.
4380 (pspy_initialize): Create frame_unwinders list.
4381 (pspy_get_frame_unwinders): New function.
4382 (pspy_set_frame_unwinders): Ditto.
4383 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
4384 * python/py-unwind.c: New file.
4385 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
4386 (objpy_get_frame_unwinders): New prototype.
4387 (gdbpy_initialize_unwind): New prototype.
4388 * python/python.c (gdbpy_apply_type_printers): Call
4389 gdbpy_initialize_unwind.
4390
4391 2015-04-01 Pedro Alves <palves@redhat.com>
4392
4393 * infrun.c (resume): Check currently_stepping after clearing
4394 stepped_breakpoint, not before.
4395
4396 2015-04-01 Pedro Alves <palves@redhat.com>
4397
4398 * infrun.c (print_target_wait_results): Print all the ptid
4399 elements.
4400
4401 2015-04-01 Pedro Alves <palves@redhat.com>
4402
4403 * infrun.c (keep_going): Also discard cleanups if inserting
4404 breakpoints fails.
4405
4406 2015-04-01 Pedro Alves <palves@redhat.com>
4407
4408 * infrun.c (wait_for_inferior): Install the
4409 finish_thread_state_cleanup cleanup across the whole function, not
4410 just around handle_inferior_event.
4411
4412 2015-04-01 Pedro Alves <palves@redhat.com>
4413
4414 * infrun.c (resume) <step past permanent breakpoint>: Use
4415 do_target_resume.
4416
4417 2015-04-01 Pedro Alves <palves@redhat.com>
4418
4419 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
4420
4421 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
4422
4423 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
4424
4425 2015-04-01 Pedro Alves <palves@redhat.com>
4426
4427 * linux-thread-db.c (record_thread): Readd the thread to gdb's
4428 list if it was marked exited.
4429
4430 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
4431
4432 * configure: Regenerated.
4433
4434 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
4435 Jan Kratochvil <jan.kratochvil@redhat.com>
4436 Oleg Nesterov <oleg@redhat.com>
4437
4438 PR corefiles/16092
4439 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
4440 New enum identifying the various options of the coredump_filter
4441 file.
4442 (struct smaps_vmflags): New struct.
4443 (use_coredump_filter): New variable.
4444 (decode_vmflags): New function.
4445 (mapping_is_anonymous_p): Likewise.
4446 (dump_mapping_p): Likewise.
4447 (linux_find_memory_regions_full): New variables
4448 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
4449 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
4450 parsing of its information. Implement memory mapping filtering
4451 based on its contents.
4452 (show_use_coredump_filter): New function.
4453 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
4454 * NEWS: Mention the possibility of using the
4455 '/proc/PID/coredump_filter' file when generating a corefile.
4456 Mention new command 'set use-coredump-filter'.
4457
4458 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
4459
4460 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
4461 read_memory_unsigned_integer.
4462
4463 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
4464
4465 * Makefile.in (ZLIB): New.
4466 (ZLIBINC): Likewise.
4467 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
4468 (CLIBS): Add $(ZLIB).
4469 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
4470 Add -lz to LIBS.
4471 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
4472 * top.c (print_gdb_configuration): Remove --with-zlib and
4473 --without-zlib.
4474 * config.in: Regenerated.
4475 * configure: Likewise.
4476
4477 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
4478
4479 * NEWS: Mention info os cpus support.
4480 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
4481 (struct osdata_type): Add cpus entry, reorder the entries in
4482 alphabetical order.
4483
4484 2015-03-31 Matthias Klose <doko@ubuntu.com>
4485
4486 * compile/compile.c (compile_to_object): Allow triplets with or
4487 without vendor set.
4488
4489 2015-03-30 Doug Evans <dje@google.com>
4490
4491 PR c++/18141
4492 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
4493 klass in VAR_DOMAIN.
4494
4495 2015-03-30 Gary Benson <gbenson@redhat.com>
4496
4497 * remote.c (remote_mourn_1): Remove function. Update all callers
4498 to use remote_mourn.
4499 (extended_remote_mourn_1): Remove function. Update all callers
4500 to use extended_remote_mourn.
4501 (extended_remote_attach_1): Remove function. Update all callers
4502 to use extended_remote_attach.
4503
4504 2015-03-28 James Bowman <james.bowman@ftdichip.com>
4505
4506 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
4507 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
4508 (ALLDEPFILES): Add ft32-tdep.c.
4509 * configure.tgt: Add FT32 entry.
4510 * ft32-tdep.c: New file, FT32 target-dependent code.
4511 * ft32-tdep.h: New file, FT32 target-dependent code.
4512
4513 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4514
4515 Revert:
4516 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4517 Code cleanup.
4518 * printcmd.c (print_command_1): Move expr variable scope.
4519
4520 2015-03-27 Joel Brobecker <brobecker@adacore.com>
4521
4522 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
4523
4524 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
4525
4526 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
4527 sections.
4528
4529 2015-03-26 Joel Brobecker <brobecker@adacore.com>
4530
4531 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
4532 exception raised while parsing the probe arguments.
4533 Force parsing to be done using the C language parser.
4534 * expression.h (parse_expression_with_language): Declare.
4535 * parse.c (parse_expression_with_language): New function.
4536
4537 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
4538
4539 * MAINTAINERS (Write After Approval): Add "Jon Turney".
4540
4541 2015-03-26 Andy Wingo <wingo@igalia.com>
4542
4543 PR symtab/18148
4544 * dwarf2read.c (struct partial_die_info): Add has_const_value
4545 member.
4546 (add_partial_symbol): Don't punt on symbols that have const_value
4547 attributes.
4548 (read_partial_die): Detect DW_AT_const_value.
4549
4550 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4551
4552 Code cleanup.
4553 * printcmd.c (print_command_1): Move expr variable scope.
4554
4555 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4556
4557 Code cleanup.
4558 * printcmd.c (validate_format): Make the parameter cmdname const.
4559
4560 2015-03-26 Don Breazeal <donb@codesourcery.com>
4561
4562 * remote.c (_initialize_remote): Update comment.
4563
4564 2015-03-26 Pedro Alves <palves@redhat.com>
4565 Jon TURNEY <jon.turney@dronecode.org.uk>
4566
4567 * coffread.c (coff_symfile_read): When constructing the name of an
4568 import stub symbol from import symbol for amd64, only skip the
4569 char after _imp_ if the target is underscored (like i386) and the
4570 char is indeed the target's leading char.
4571
4572 2015-03-25 Pedro Alves <palves@redhat.com>
4573
4574 * target.h <to_async>: Replace 'callback' and 'context' parameters
4575 with boolean 'enable' parameter.
4576 (target_async): Replace CALLBACK and CONTEXT parameters with
4577 boolean ENABLE parameter.
4578 * inf-loop.c (inferior_event_handler): Adjust.
4579 * linux-nat.c (linux_nat_attach, linux_nat_resume)
4580 (linux_nat_resume): Adjust.
4581 (async_client_callback, async_client_context): Delete.
4582 (handle_target_event): Call inferior_event_handler directly.
4583 (linux_nat_async): Replace 'callback' and 'context' parameters
4584 with boolean 'enable' parameter. Adjust. Remove references to
4585 async_client_callback and async_client_context.
4586 (linux_nat_close): Adjust.
4587 * record-btrace.c (record_btrace_async): Replace 'callback' and
4588 'context' parameters with boolean 'enable' parameter. Adjust.
4589 (record_btrace_resume): Adjust.
4590 * record-full.c (record_full_async): Replace 'callback' and
4591 'context' parameters with boolean 'enable' parameter. Adjust.
4592 (record_full_resume, record_full_core_resume): Adjust.
4593 * remote.c (struct remote_state) <async_client_callback,
4594 async_client_context>: Delete fields.
4595 (remote_start_remote, extended_remote_attach_1, remote_resume)
4596 (extended_remote_create_inferior): Adjust.
4597 (remote_async_serial_handler): Call inferior_event_handler
4598 directly.
4599 (remote_async): Replace 'callback' and 'context' parameters with
4600 boolean 'enable' parameter. Adjust.
4601 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
4602 Adjust.
4603 * target-delegates.c: Regenerate.
4604
4605 2015-03-25 Gary Benson <gbenson@redhat.com>
4606 Pedro Alves <palves@redhat.com>
4607
4608 * target.c (fileio_ft_t): New typedef, define object vector.
4609 (fileio_fhandles): New static variable.
4610 (is_closed_fileio_fh): New macro.
4611 (lowest_closed_fd): New static variable.
4612 (acquire_fileio_fd): New function.
4613 (release_fileio_fd): Likewise.
4614 (fileio_fd_to_fh): New macro.
4615 (target_fileio_open): Wrap the file descriptor on success.
4616 (target_fileio_pwrite): Updated to use wrapped file descriptor.
4617 (target_fileio_pread): Likewise.
4618 (target_fileio_close): Likewise.
4619
4620 2015-03-24 Pedro Alves <palves@redhat.com>
4621
4622 * thread.c (thread_apply_all_command): Take exited threads into
4623 account.
4624
4625 2015-03-24 Pedro Alves <palves@redhat.com>
4626
4627 * infrun.c (resume, proceed): Mention
4628 switch_back_to_stepped_thread, not switch_back_to_stepping.
4629
4630 2015-03-24 Pedro Alves <palves@redhat.com>
4631
4632 * infrun.c (user_visible_resume_ptid): Rewrite going from
4633 most-locked to unlocked instead of the opposite. Move comment ...
4634 * infrun.h (user_visible_resume_ptid): ... here.
4635
4636 2015-03-24 Pedro Alves <palves@redhat.com>
4637
4638 * linux-nat.c (linux_nat_resume): Output debug logs before trying
4639 to resume the event lwp. Use the lwp's ptid instead of the passed
4640 in (maybe wildcard) ptid.
4641 (stop_wait_callback): Tweak debug log output.
4642 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
4643 TRAP_TRACE.
4644 (linux_nat_filter_event): In debug output, distinguish a
4645 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
4646 before trying to resume the lwp.
4647
4648 2015-03-24 Joel Brobecker <brobecker@adacore.com>
4649
4650 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
4651 pointer indirection.
4652 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
4653 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
4654
4655 2015-03-24 Joel Brobecker <brobecker@adacore.com>
4656
4657 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
4658 Renames DYN_ATTR_DATA_LOCATION.
4659 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
4660 DYN_ATTR_DATA_LOCATION.
4661 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
4662 instead of DYN_ATTR_DATA_LOCATION.
4663
4664 2015-03-24 Pedro Alves <palves@redhat.com>
4665
4666 * breakpoint.c (until_break_command): Adjust call to proceed.
4667 * gdbthread.h (struct thread_control_state) <stepping_command>:
4668 New field.
4669 * infcall.c (run_inferior_call): Adjust call to proceed.
4670 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
4671 Adjust calls to proceed.
4672 (set_step_frame): Set the current thread's step_start_function
4673 here.
4674 (step_once): Adjust calls to proceed.
4675 (jump_command, signal_command, until_next_command)
4676 (finish_backward, finish_forward, proceed_after_attach_callback)
4677 (attach_command_post_wait): Adjust calls to proceed.
4678 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
4679 (do_target_resume): New function, factored out from ...
4680 (resume): ... here. Remove 'step' parameter. Instead, check
4681 currently_stepping to determine whether the thread should be
4682 single-stepped.
4683 (proceed): Remove 'step' parameter and don't set the thread's
4684 step_start_function here. Adjust call to 'resume'.
4685 (handle_inferior_event): Adjust calls to 'resume'.
4686 (switch_back_to_stepped_thread): Use do_target_resume instead of
4687 'resume'.
4688 (keep_going): Adjust calls to 'resume'.
4689 * infrun.h (proceed): Remove 'step' parameter.
4690 (resume): Likewise.
4691 * windows-nat.c (do_initial_windows_stuff): Adjust call to
4692 'resume'.
4693 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
4694
4695 2015-03-24 Pedro Alves <palves@redhat.com>
4696
4697 * gdbthread.h (struct thread_control_state) <stepping_command>:
4698 New field.
4699 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
4700 the thread's stepping_command field.
4701 * infrun.c (resume): Check the thread's stepping_command flag to
4702 determine which threads should be resumed. Rename 'entry_step'
4703 local to user_step.
4704 (clear_proceed_status_thread): Clear 'stepping_command'.
4705 (schedlock_applies): Change parameter type to struct thread_info
4706 pointer. Adjust.
4707 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
4708 (switch_back_to_stepped_thread): Adjust calls to
4709 'schedlock_applies'.
4710 (_initialize_infrun): Adjust "set scheduler-locking step" help.
4711
4712 2015-03-24 Pedro Alves <palves@redhat.com>
4713
4714 * infrun.c (step_start_function): Delete and ...
4715 * gdbthread.h (struct thread_control_state) <step_start_function>:
4716 ... now a field here.
4717 * infrun.c (clear_proceed_status_thread): Clear the thread's
4718 step_start_function.
4719 (proceed, process_event_stop_test, print_stop_event): Adjust.
4720
4721 2015-03-24 Pedro Alves <palves@redhat.com>
4722
4723 * infrun.c (proceed): No longer handle negative step.
4724
4725 2015-03-24 Gary Benson <gbenson@redhat.com>
4726
4727 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
4728 (x86_linux_prepare_to_resume): Likewise.
4729 * x86-linux-nat.c (x86_linux_new_thread):
4730 Moved to nat/x86-linux.c.
4731 (x86_linux_prepare_to_resume): Likewise.
4732 * nat/x86-linux.c (x86_linux_new_thread): New function.
4733 (x86_linux_prepare_to_resume): Likewise.
4734
4735 2015-03-24 Gary Benson <gbenson@redhat.com>
4736
4737 * nat/x86-linux-dregs.h: New file.
4738 * nat/x86-linux-dregs.c: Likewise.
4739 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
4740 (x86-linux-dregs.o): New rule.
4741 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
4742 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4743 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
4744 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
4745 (x86_linux_dr_get): Likewise.
4746 (x86_linux_dr_set): Likewise.
4747 (x86_linux_dr_get_addr): Likewise.
4748 (x86_linux_dr_get_control): Likewise.
4749 (x86_linux_dr_get_status): Likewise.
4750 (update_debug_registers_callback): Likewise.
4751 (x86_linux_dr_set_control): Likewise.
4752 (x86_linux_dr_set_addr): Likewise.
4753 (x86_linux_update_debug_registers): Likewise.
4754
4755 2015-03-24 Gary Benson <gbenson@redhat.com>
4756
4757 * x86-linux-nat.c (x86_linux_update_debug_registers):
4758 New function, factored out from...
4759 (x86_linux_prepare_to_resume): ...this.
4760
4761 2015-03-24 Gary Benson <gbenson@redhat.com>
4762
4763 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
4764 (x86_linux_dr_set): Likewise.
4765 (x86_linux_dr_get_addr): Likewise.
4766 (x86_linux_dr_get_control): Likewise.
4767 (x86_linux_dr_get_status): Likewise.
4768 (update_debug_registers_callback): Likewise.
4769 (x86_linux_dr_set_control): Likewise.
4770 (x86_linux_dr_set_addr): Likewise.
4771 (x86_linux_prepare_to_resume): Likewise.
4772 (x86_linux_new_thread): Likewise.
4773
4774 2015-03-24 Gary Benson <gbenson@redhat.com>
4775
4776 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
4777 (x86_linux_new_thread): Rename argument.
4778
4779 2015-03-24 Gary Benson <gbenson@redhat.com>
4780
4781 * nat/x86-linux.h: New file.
4782 * nat/x86-linux.c: Likewise.
4783 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
4784 (x86-linux.o): New rule.
4785 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
4786 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4787 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
4788 (lwp_set_arch_private_info): New declaration.
4789 (lwp_arch_private_info): Likewise.
4790 * linux-nat.c (lwp_set_arch_private_info): New function.
4791 (lwp_arch_private_info): Likewise.
4792 * x86-linux-nat.c: Include nat/x86-linux.h.
4793 (arch_lwp_info): Removed structure.
4794 (update_debug_registers_callback):
4795 Use lwp_set_debug_registers_changed.
4796 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
4797 and lwp_set_debug_registers_changed.
4798 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
4799
4800 2015-03-24 Gary Benson <gbenson@redhat.com>
4801
4802 * nat/linux-nat.h (ptid_of_lwp): New declaration.
4803 (lwp_is_stopped): Likewise.
4804 (lwp_stop_reason): Likewise.
4805 * linux-nat.c (ptid_of_lwp): New function.
4806 (lwp_is_stopped): Likewise.
4807 (lwp_is_stopped_by_watchpoint): Likewise.
4808 * x86-linux-nat.c (update_debug_registers_callback):
4809 Use lwp_is_stopped.
4810 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
4811 lwp_stop_reason.
4812
4813 2015-03-24 Gary Benson <gbenson@redhat.com>
4814
4815 * linux-nat.h (linux_stop_lwp): Move declaration to...
4816 * nat/linux-nat.h (linux_stop_lwp): New declaration.
4817
4818 2015-03-24 Gary Benson <gbenson@redhat.com>
4819
4820 * linux-nat.h: Include nat/linux-nat.h.
4821 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
4822 * nat/linux-nat.h (struct lwp_info): New forward declaration.
4823 (iterate_over_lwps_ftype): New typedef.
4824 (iterate_over_lwps): New declaration.
4825 * linux-nat.h (iterate_over_lwps): Update comment. Use
4826 iterate_over_lwps_ftype. Update callback return value check.
4827
4828 2015-03-24 Gary Benson <gbenson@redhat.com>
4829
4830 * x86-nat.h (x86_debug_reg_state): Move declaration to...
4831 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
4832
4833 2015-03-24 Gary Benson <gbenson@redhat.com>
4834
4835 * nat/linux-nat.h (current_lwp_ptid): New declaration.
4836 * linux-nat.c (current_lwp_ptid): New function.
4837 * x86-linux-nat.c: Include nat/linux-nat.h.
4838 (x86_linux_dr_get_addr): Use current_lwp_ptid.
4839 (x86_linux_dr_get_control): Likewise.
4840 (x86_linux_dr_get_status): Likewise.
4841 (x86_linux_dr_set_control): Likewise.
4842 (x86_linux_dr_set_addr): Likewise.
4843
4844 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
4845
4846 PR breakpoints/16466
4847 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
4848
4849 2015-03-23 Joel Brobecker <brobecker@adacore.com>
4850
4851 * ser-mingw.c (ser_windows_setparity): Fix indentation.
4852 * ser-unix.c (hardwire_setparity): Likewise.
4853
4854 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
4855
4856 * NEWS: Mention set/show serial parity command.
4857 * monitor.c (monitor_open): Call serial_setparity.
4858 * remote.c (remote_open_1): Likewise.
4859 * ser-base.c (ser_base_serparity): New function.
4860 * ser-base.h (ser_base_setparity): Add declaration.
4861 * ser-go32.c (dos_ops): Set "setparity" field.
4862 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
4863 state.Parity.
4864 (ser_windows_setparity): New function.
4865 (hardwire_ops): Add ser_windows_setparity.
4866 (tty_ops): Add NULL for setparity field.
4867 (pipe_ops): Add ser_base_setparity.
4868 (tcp_ops): Likewise.
4869 * ser-pipe.c (pipe_ops): Likewise.
4870 * ser-tcp.c (tcp_ops): Likewise.
4871 * ser-unix.c (hardwire_setparity): Add declaration.
4872 (hardwire_raw): Don't reset PARENB flag.
4873 (hardwire_setparity): New function.
4874 (hardwire_ops): Add hardwire_setparity.
4875 * serial.c (serial_setparity): New function.
4876 (serial_parity): New global.
4877 (parity_none, parity_odd, parity_even, parity_enums, parity):
4878 New static globals.
4879 (set_parity): New function.
4880 (_initialize_serial): Add set/show serial parity commands.
4881 * serial.h (GDBPARITY_NONE): Define.
4882 (GDBPARITY_ODD): Define.
4883 (GDBPARITY_EVEN): Define.
4884 (serial_setparity) Add declaration.
4885 (struct serial_ops): Add setparity field.
4886 * target.h (serial_parity): Add declaration.
4887
4888 2015-03-23 Keith Seitz <keiths@redhat.com>
4889
4890 * linespec.c (linespec_lexer_lex_keyword): Update comment.
4891
4892 2015-03-23 Keith Seitz <keiths@redhat.com>
4893
4894 * breakpoint.c (parse_breakpoint_sals): Use
4895 linespec_lexer_lex_keyword to ascertain if the user specified
4896 a NULL location.
4897 * linespec.c [IF_KEYWORD_INDEX]: Define.
4898 (linespec_lexer_lex_keyword): Export.
4899 (struct ls_parser) <keyword_ok>: Remove.
4900 A keyword is only a keyword if not followed by another keyword.
4901 (linespec_lexer_lex_one): Remove keyword_ok handling.
4902 Add comment explaining why the parsing stream is not advanced
4903 when a keyword is seen.
4904 (parse_linespec): Remove parser->keyword_ok.
4905 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
4906
4907 2015-03-23 Keith Seitz <keiths@redhat.com>
4908
4909 PR gdb/18021
4910 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
4911 if we find a static method with DW_AT_vtable_elem_location.
4912
4913 2015-03-21 Eli Zaretskii <eliz@gnu.org>
4914
4915 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
4916 before the second loop, to avoid undefined behavior. Reported by
4917 Anton Blanchard <anton@samba.org>.
4918
4919 2015-03-20 Keven Boell <keven.boell@intel.com>
4920
4921 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
4922 data_location usage to linked list.
4923 (resolve_dynamic_type_internal): Adapt data_location to
4924 linked list.
4925 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
4926 (copy_type_recursive, copy_type): Add copy of linked list.
4927 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
4928 (struct dynamic_prop_list): New struct.
4929 * dwarf2read.c (set_die_type): Set data_location data.
4930
4931 2015-03-20 Pedro Alves <palves@redhat.com>
4932
4933 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
4934 inner block and make it const.
4935 * machoread.c (get_archive_prefix_len): Make "lparen" const.
4936
4937 2015-03-20 Pedro Alves <palves@redhat.com>
4938
4939 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
4940 * breakpoint.h (set_breakpoint_condition): Update declaration.
4941
4942 2015-03-20 Pedro Alves <palves@redhat.com>
4943
4944 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
4945
4946 2015-03-20 Pedro Alves <palves@redhat.com>
4947
4948 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
4949
4950 2015-03-20 Pedro Alves <palves@redhat.com>
4951
4952 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
4953
4954 2015-03-20 Pedro Alves <palves@redhat.com>
4955
4956 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
4957 (nto_init_solib_absolute_prefix): Likewise.
4958
4959 2015-03-20 Pedro Alves <palves@redhat.com>
4960
4961 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
4962 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
4963
4964 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4965
4966 * config/djgpp/README: Remove gdb.hp.
4967
4968 2015-03-20 Yao Qi <yao.qi@linaro.org>
4969
4970 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
4971 set_gdbarch_cannot_step_breakpoint.
4972
4973 2015-03-19 Pedro Alves <palves@redhat.com>
4974
4975 * linux-nat.c (linux_resume_one_lwp): Rename to ...
4976 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
4977 instead call perror_with_name.
4978 (check_ptrace_stopped_lwp_gone): New function.
4979 (linux_resume_one_lwp): Reimplement as wrapper around
4980 linux_resume_one_lwp_throw that swallows errors if the LWP is
4981 gone.
4982 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
4983 swallows errors if the LWP is gone. Use
4984 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
4985
4986 2015-03-19 Pedro Alves <palves@redhat.com>
4987
4988 * linux-nat.c (status_callback): Return early if the LWP has no
4989 status pending.
4990
4991 2015-03-19 Pedro Alves <palves@redhat.com>
4992
4993 * linux-nat.c (select_event_lwp_callback): Update comment to no
4994 longer mention SIGTRAP.
4995
4996 2015-03-18 Tristan Gingold <gingold@adacore.com>
4997
4998 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
4999 redirection code to ...
5000 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
5001 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
5002
5003 2015-03-18 Gary Benson <gbenson@redhat.com>
5004
5005 (remote_protocol_features): Remove the "vFile:fstat" feature.
5006 (remote_hostio_fstat): Probe for "vFile:fstat" support.
5007
5008 2015-03-11 Yao Qi <yao.qi@linaro.org>
5009
5010 PR tdep/18107
5011 * aarch64-linux-tdep.c: Include xml-syscall.h
5012 (aarch64_linux_get_syscall_number): New function.
5013 (aarch64_linux_init_abi): Call
5014 set_gdbarch_get_syscall_number.
5015 * syscalls/aarch64-linux.xml: New file.
5016
5017 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
5018
5019 * ser-base.h (ser_base_setstopbits): Change second argument name
5020 from "rate" to "num".
5021
5022 2015-03-17 Gary Benson <gbenson@redhat.com>
5023 Luke Allardyce <lukeallardyce@gmail.com>
5024
5025 PR gdb/18131
5026 * common/common-remote-fileio.h (sys/stat.h): New include.
5027 (stuct stat): Remove forward declaration.
5028
5029 2015-03-16 John Baldwin <jhb@FreeBSD.org>
5030
5031 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
5032 before writing core register notes.
5033
5034 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
5035 Pedro Alves <palves@redhat.com>
5036
5037 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
5038 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
5039 (tgoto): Wrap with extern "C".
5040
5041 2015-03-16 Pedro Alves <palves@redhat.com>
5042 Yuanhui Zhang <asmwarrior@gmail.com>
5043
5044 * stub-termcap.c (tputs): Change prototype.
5045
5046 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
5047 Pedro Alves <palves@redhat.com>
5048
5049 * windows-nat.c (struct thread_info_struct): Rename to ...
5050 (struct windows_thread_info_struct): ... this.
5051 (thread_info): Rename to ...
5052 (windows_thread_info): ... this.
5053 All users updated.
5054
5055 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5056 Pedro Alves <palves@redhat.com>
5057
5058 * NEWS: New Removed targets and native configurations.
5059
5060 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5061
5062 Remove HPUX.
5063 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
5064 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
5065 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
5066 ia64-hpux-tdep.h, solib-ia64-hpux.h.
5067 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
5068 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
5069 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
5070 hppa-hpux-tdep.c.
5071 * config/ia64/hpux.mh: Remove file.
5072 * config/pa/hpux.mh: Remove file.
5073 * configure: Rebuilt.
5074 * configure.ac (dlgetmodinfo, somread.o): Remove.
5075 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
5076 (ia64-*-hpux*): Remove its float format exception.
5077 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
5078 * hppa-hpux-nat.c: Remove file.
5079 * hppa-hpux-tdep.c: Remove file.
5080 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
5081 Move them here from hppa-tdep.h
5082 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
5083 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
5084 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
5085 Move them to hppa-tdep.c.
5086 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
5087 declarations.
5088 * ia64-hpux-nat.c: Remove file.
5089 * ia64-hpux-tdep.c: Remove file.
5090 * ia64-hpux-tdep.h: Remove file.
5091 * inf-ttrace.c: Remove file.
5092 * inf-ttrace.h: Remove file.
5093 * solib-ia64-hpux.c: Remove file.
5094 * solib-ia64-hpux.h: Remove file.
5095 * solib-pa64.c: Remove file.
5096 * solib-pa64.h: Remove file.
5097 * solib-som.c: Remove file.
5098 * solib-som.h: Remove file.
5099 * somread.c: Remove file.
5100
5101 2015-03-13 John Baldwin <jhb@FreeBSD.org>
5102
5103 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
5104 * config.in: Regenerate.
5105 * configure: Regenerate.
5106 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
5107 define.
5108 (fbsd_find_memory_regions): Use kinfo_getvmmap to
5109 enumerate memory regions if present.
5110
5111 2015-03-13 John Baldwin <jhb@FreeBSD.org>
5112
5113 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
5114 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
5115 expressions.
5116 (i386fbsd_sigtramp_p): Likewise.
5117
5118 2015-03-12 John Baldwin <jhb@FreeBSD.org>
5119
5120 * MAINTAINERS (Write After Approval): Add John Baldwin.
5121
5122 2015-03-12 Gary Benson <gbenson@redhat.com>
5123
5124 * solib.c (_initialize_solib): Make "set/show sysroot" use
5125 add_setshow_optional_filename_cmd so it can be restored to
5126 empty after being set.
5127
5128 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
5129
5130 * Makefile.in (SFILES): New source break-catch-syscall.c.
5131 (COMMON_OBS): New object break-catch-syscall.o.
5132 * break-catch-syscall.c: New file.
5133 * breakpoint.c: Remove inclusion of "xml-syscall.h".
5134 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
5135 (struct syscall_catchpoint): Likewise.
5136 (dtor_catch_syscall): Likewise.
5137 (catch_syscall_inferior_data): Likewise.
5138 (struct catch_syscall_inferior_data): Likewise.
5139 (get_catch_syscall_inferior_data): Likewise.
5140 (catch_syscall_inferior_data_cleanup): Likewise.
5141 (insert_catch_syscall): Likewise.
5142 (remove_catch_syscall): Likewise.
5143 (breakpoint_hit_catch_syscall): Likewise.
5144 (print_it_catch_syscall): Likewise.
5145 (print_one_catch_syscall): Likewise.
5146 (print_mention_catch_syscall): Likewise.
5147 (print_recreate_catch_syscall): Likewise.
5148 (catch_syscall_breakpoint_ops): Likewise.
5149 (syscall_catchpoint_p): Likewise.
5150 (create_syscall_event_catchpoint): Likewise.
5151 (catch_syscall_split_args): Likewise.
5152 (catch_syscall_command_1): Likewise.
5153 (is_syscall_catchpoint_enabled): Likewise.
5154 (catch_syscall_enabled): Likewise.
5155 (catching_syscall_number): Likewise.
5156 (catch_syscall_completer): Likewise.
5157 (clear_syscall_counts): Likewise.
5158 (initialize_breakpoint_ops): Move initialization of syscall
5159 catchpoints to break-catch-syscall.c.
5160 (_initialize_breakpoint): Move code related to syscall catchpoints
5161 to break-catch-syscall.c.
5162
5163 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
5164
5165 * breakpoint.c (breakpoint_find_if): New function.
5166 * breakpoint.h (breakpoint_find_if): New prototype.
5167
5168 2015-03-11 Gary Benson <gbenson@redhat.com>
5169
5170 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
5171 * remote-fileio.c (remote_fileio_to_host_uint): New function.
5172 (remote_fileio_to_host_ulong): Likewise.
5173 (remote_fileio_to_host_mode): Likewise.
5174 (remote_fileio_to_host_time): Likewise.
5175 (remote_fileio_to_host_stat): Likewise.
5176 * remote.c (PACKET_vFile_fstat): New enum value.
5177 (remote_protocol_features): Register the "vFile:fstat" feature.
5178 (remote_hostio_fstat): New function.
5179 (remote_bfd_iovec_stat): Use the above.
5180 (_initialize_remote): Register new "set/show remote
5181 hostio-fstat-packet" command.
5182 * symfile.c (separate_debug_file_exists): Update comment.
5183 * NEWS: Announce new vFile:fstat packet.
5184
5185 2015-03-11 Gary Benson <gbenson@redhat.com>
5186
5187 * common/common-remote-fileio.h: New file.
5188 * common/common-remote-fileio.c: Likewise.
5189 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
5190 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
5191 (COMMON_OBS): Add common-remote-fileio.o.
5192 (common-remote-fileio.o): New rule.
5193 * remote-fileio.h (common-remote-fileio.h): New include.
5194 * remote-fileio.c (gdb/fileio.h): Do not include.
5195 (remote_fileio_to_be): Moved to common-remote-fileio.h.
5196 (remote_fileio_to_fio_uint): Likewise.
5197 (remote_fileio_to_fio_time): Likewise.
5198 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
5199 (remote_fileio_to_fio_mode): Likewise.
5200 (remote_fileio_to_fio_ulong): Likewise.
5201 (remote_fileio_to_fio_stat): Likewise.
5202
5203 2015-03-11 Andy Wingo <wingo@igalia.com>
5204
5205 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
5206 we were checking the cached type, not the cached dynamic type.
5207
5208 2015-03-11 Andy Wingo <wingo@igalia.com>
5209
5210 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
5211 other strings, as these are on the GC'd heap, and will be
5212 collected along with the smob.
5213
5214 2015-03-11 Andy Wingo <wingo@igalia.com>
5215
5216 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
5217 (objfile_functions): Bind gdbscm_objfile_progspace to
5218 objfile-progspace.
5219 * guile/lib/gdb.scm: Add objfile-progspace to exports.
5220
5221 2015-03-11 Andy Wingo <wingo@igalia.com>
5222
5223 * guile/guile.c (_initialize_guile): Disable automatic
5224 finalization, if Guile offers us that possibility.
5225 * guile/guile.c (call_initialize_gdb_module):
5226 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
5227 finalizers in appropriate places.
5228 * configure.ac (AC_TRY_LIBGUILE): Add a check for
5229 scm_set_automatic_finalization_enabled.
5230 * configure: Regenerated.
5231
5232 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
5233
5234 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
5235 SAL, if possible.
5236
5237 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
5238
5239 * s390-linux-nat.c (struct arch_lwp_info): New.
5240 (s390_fix_watch_points): Rename to...
5241 (s390_prepare_to_resume): ...this. Skip the PER info update
5242 unless the watch points have changed.
5243 (s390_refresh_per_info, s390_new_thread): New functions.
5244 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
5245 s390_fix_watch_points.
5246 (s390_remove_watchpoint): Likewise.
5247 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
5248 Register s390_prepare_to_resume.
5249
5250 2015-03-09 Pedro Alves <palves@redhat.com>
5251
5252 Revert:
5253 2015-03-07 Pedro Alves <palves@redhat.com>
5254 * common/gdb_socket.h: New file.
5255 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
5256 sys/socket.h.
5257 (net_open): Use union gdb_sockaddr_u.
5258
5259 2015-03-07 Pedro Alves <palves@redhat.com>
5260
5261 * configure.ac (build_warnings): Move -Wmissing-prototypes
5262 -Wdeclaration-after-statement -Wmissing-parameter-type
5263 -Wold-style-declaration -Wold-style-definition to the C-specific
5264 set.
5265 * configure: Regenerate.
5266
5267 2015-03-07 Pedro Alves <palves@redhat.com>
5268
5269 * common/gdb_socket.h: New file.
5270 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
5271 sys/socket.h.
5272 (net_open): Use union gdb_sockaddr_u.
5273
5274 2015-03-07 Pedro Alves <palves@redhat.com>
5275
5276 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
5277 (exceptions_state_mc_action_iter)
5278 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5279 Don't define.
5280 [__cplusplus] (try_scope_depth): New global.
5281 [__cplusplus] (exception_try_scope_entry)
5282 (exception_try_scope_exit, gdb_exception_sliced_copy)
5283 (exception_rethrow): New functions.
5284 (throw_exception): In C++ mode, throw
5285 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
5286 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
5287 (throw_it): In C++ mode, use try_scope_depth.
5288 * common/common-exceptions.h [!__cplusplus]
5289 (exceptions_state_mc_action_iter)
5290 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5291 Don't declare.
5292 [__cplusplus] (exception_try_scope_entry)
5293 (exception_try_scope_exit, exception_rethrow): Declare.
5294 [__cplusplus] (struct exception_try_scope): New struct.
5295 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
5296 C++ exceptions.
5297 (struct gdb_exception_RETURN_MASK_ALL)
5298 (struct gdb_exception_RETURN_MASK_ERROR)
5299 (struct gdb_exception_RETURN_MASK_QUIT): New types.
5300
5301 2015-03-07 Pedro Alves <palves@redhat.com>
5302
5303 * main.c (handle_command_errors): Remove volatile qualifier from
5304 parameter.
5305
5306 2015-03-07 Pedro Alves <palves@redhat.com>
5307
5308 * breakpoint.c (save_breakpoints): Adjust to avoid code between
5309 TRY and CATCH.
5310 * gdbtypes.c (safe_parse_type): Remove empty line.
5311 (types_deeply_equal):
5312 * guile/scm-frame.c (gdbscm_frame_name):
5313 * linux-thread-db.c (find_new_threads_once):
5314 * python/py-breakpoint.c (bppy_get_commands):
5315 * record-btrace.c (record_btrace_insert_breakpoint)
5316 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
5317 (record_btrace_start_replaying): Adjust to avoid code between TRY
5318 and CATCH.
5319
5320 2015-03-07 Pedro Alves <palves@redhat.com>
5321
5322 * common/common-exceptions.c (struct catcher) <exception>: No
5323 longer a pointer to volatile exception. Now an exception value.
5324 <mask>: Delete field.
5325 (exceptions_state_mc_init): Remove all parameters. Adjust.
5326 (exceptions_state_mc): No longer pop the catcher here.
5327 (exceptions_state_mc_catch): New function.
5328 (throw_exception): Adjust.
5329 * common/common-exceptions.h (exceptions_state_mc_init): Remove
5330 all parameters.
5331 (exceptions_state_mc_catch): Declare.
5332 (TRY_CATCH): Rename to ...
5333 (TRY): ... this. Remove EXCEPTION and MASK parameters.
5334 (CATCH, END_CATCH): New.
5335 All callers adjusted.
5336
5337 2015-03-07 Tom Tromey <tromey@redhat.com>
5338
5339 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
5340
5341 2015-03-07 Pedro Alves <palves@redhat.com>
5342
5343 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
5344 (amd64_epilogue_frame_cache): Normal exception handling code.
5345 * break-catch-throw.c (check_status_exception_catchpoint)
5346 (re_set_exception_catchpoint): Ditto.
5347 * cli/cli-interp.c (safe_execute_command):
5348 * cli/cli-script.c (script_from_file): Ditto.
5349 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
5350 Ditto.
5351 * compile/compile-object-run.c (compile_object_run): Ditto.
5352 * cp-abi.c (baseclass_offset): Ditto.
5353 * cp-valprint.c (cp_print_value): Ditto.
5354 * exceptions.c (catch_exceptions_with_msg):
5355 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
5356 * frame.c (get_frame_address_in_block_if_available): Ditto.
5357 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5358 (i386_sigtramp_frame_cache): Ditto.
5359 * infcmd.c (post_create_inferior): Ditto.
5360 * linespec.c (parse_linespec, find_linespec_symbols):
5361 * p-valprint.c (pascal_object_print_value): Ditto.
5362 * parse.c (parse_expression_for_completion): Ditto.
5363 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5364 * remote.c (remote_get_noisy_reply): Ditto.
5365 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
5366 * solib-svr4.c (solib_svr4_r_map): Ditto.
5367
5368 2015-03-06 Gary Benson <gbenson@redhat.com>
5369
5370 * common/common-utils.h (startswith): New inline function.
5371 All places where this logic was used updated to use the above.
5372
5373 2015-03-05 Pedro Alves <palves@redhat.com>
5374
5375 PR gdb/18002
5376 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
5377 after reading the breakpoint's shadow memory.
5378
5379 2015-03-05 Mark Kettenis <kettenis@gnu.org>
5380
5381 * hppabsd-nat.c: Remove file.
5382 * hppaobsd-nat.c: New file.
5383 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
5384 hppaobsd-nat.c.
5385 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
5386 hppaobsd-nat.o.
5387
5388 2015-03-04 Pedro Alves <palves@redhat.com>
5389
5390 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
5391 (target_decr_pc_after_break): Delete declaration.
5392 * target.c (default_target_decr_pc_after_break)
5393 (target_decr_pc_after_break): Delete.
5394 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
5395 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
5396 * linux-thread-db.c (check_event): Likewise.
5397 * infrun.c (adjust_pc_after_break): Likewise.
5398 * darwin-nat.c (cancel_breakpoint): Likewise.
5399 * aix-thread.c (aix_thread_wait): Likewise.
5400 * target-delegates.c: Regenerate.
5401
5402 2015-03-04 Pedro Alves <palves@redhat.com>
5403
5404 * linux-nat.c (save_sigtrap): Check for breakpoints before
5405 checking watchpoints.
5406 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
5407 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
5408 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
5409 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
5410 (linux_nat_stopped_by_sw_breakpoint)
5411 (linux_nat_supports_stopped_by_sw_breakpoint)
5412 (linux_nat_stopped_by_hw_breakpoint)
5413 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
5414 (linux_nat_wait_1): Don't re-increment the PC if relying on
5415 SIGTRAP's siginfo->si_code.
5416 (linux_nat_add_target): Install new target methods.
5417 * linux-thread-db.c (check_event): Don't account for breakpoint PC
5418 offset if the target already adjusted the PC.
5419 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
5420 (GDB_ARCH_TRAP_BRKPT): New.
5421 (TRAP_HWBKPT): Define if not already defined.
5422
5423 2015-03-04 Pedro Alves <palves@redhat.com>
5424
5425 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
5426 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
5427 Delete field.
5428 <stop_reason>: New field.
5429 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
5430 (packet_set_cmd_state): New function.
5431 (remote_protocol_features): Register the "swbreak" and "hwbreak"
5432 features.
5433 (remote_query_supported): If not disabled with the corresponding
5434 "set remote foo-packet" command, report support for the swbreak
5435 and hwbreak features.
5436 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
5437 field.
5438 <stop_reason>: New field.
5439 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
5440 (remote_wait_as): Adjust.
5441 (remote_stopped_by_sw_breakpoint)
5442 (remote_supports_stopped_by_sw_breakpoint)
5443 (remote_stopped_by_hw_breakpoint)
5444 (remote_supports_stopped_by_hw_breakpoint): New functions.
5445 (remote_stopped_by_watchpoint): New function.
5446 (init_remote_ops): Install them.
5447 (_initialize_remote): Register new "set/show remote
5448 swbreak-feature-packet" and "set/show remote
5449 swbreak-feature-packet" commands.
5450
5451 2015-03-04 Pedro Alves <palves@redhat.com>
5452
5453 * btrace.h: Include target/waitstatus.h.
5454 (struct btrace_thread_info) <stop_reason>: New field.
5455 * record-btrace.c (record_btrace_step_thread): Use
5456 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
5457 (record_btrace_decr_pc_after_break): Delete.
5458 (record_btrace_stopped_by_sw_breakpoint)
5459 (record_btrace_supports_stopped_by_sw_breakpoint)
5460 (record_btrace_stopped_by_hw_breakpoint)
5461 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
5462 (init_record_btrace_ops): Install them.
5463 * record-full.c (record_full_hw_watchpoint): Delete and replace
5464 with ...
5465 (record_full_stop_reason): ... this throughout.
5466 (record_full_exec_insn): Adjust.
5467 (record_full_wait_1): Adjust. No longer re-increment the PC.
5468 (record_full_wait_1): Adjust. Use
5469 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
5470 (record_full_stopped_by_watchpoint): Adjust.
5471 (record_full_stopped_by_sw_breakpoint)
5472 (record_full_supports_stopped_by_sw_breakpoint)
5473 (record_full_supports_stopped_by_sw_breakpoint)
5474 (record_full_stopped_by_hw_breakpoint)
5475 (record_full_supports_stopped_by_hw_breakpoint): New functions.
5476 (init_record_full_ops, init_record_full_core_ops): Install them.
5477 * record.c (record_check_stopped_by_breakpoint): New function.
5478 * record.h: Include target/waitstatus.h.
5479 (record_check_stopped_by_breakpoint): New declaration.
5480
5481 2015-03-04 Pedro Alves <palves@redhat.com>
5482
5483 enum lwp_stop_reason -> enum target_stop_reason
5484 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
5485 (linux_nat_stopped_by_watchpoint, status_callback)
5486 (linux_nat_wait_1): Adjust.
5487 * linux-nat.h (enum lwp_stop_reason): Delete.
5488 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
5489 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
5490 * target/waitstatus.h (enum target_stop_reason): New.
5491
5492 2015-03-04 Pedro Alves <palves@redhat.com>
5493
5494 * breakpoint.c (need_moribund_for_location_type): New function.
5495 (bpstat_stop_status): Don't skipping checking moribund locations
5496 of breakpoint types which the target tell caused a stop.
5497 (program_breakpoint_here_p): New function, factored out from ...
5498 (bp_loc_is_permanent): ... this.
5499 (update_global_location_list): Don't create a moribund location if
5500 the target supports reporting stops of the type of the removed
5501 breakpoint.
5502 * breakpoint.h (program_breakpoint_here_p): New declaration.
5503 * infrun.c (adjust_pc_after_break): Return early if the target has
5504 already adjusted the PC. Add comments.
5505 (handle_signal_stop): If nothing explains a signal, and the target
5506 tells us the stop was caused by a software breakpoint, check if
5507 there's a breakpoint instruction in the memory. If so, adjust the
5508 PC before presenting the stop to the user. Otherwise, ignore the
5509 trap. If nothing explains a signal, and the target tells us the
5510 stop was caused by a hardware breakpoint, ignore the trap.
5511 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
5512 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
5513 to_supports_stopped_by_hw_breakpoint>: New fields.
5514 (target_stopped_by_sw_breakpoint)
5515 (target_supports_stopped_by_sw_breakpoint)
5516 (target_stopped_by_hw_breakpoint)
5517 (target_supports_stopped_by_hw_breakpoint): Define.
5518 * target-delegates.c: Regenerate.
5519
5520 2015-03-04 Pedro Alves <palves@redhat.com>
5521
5522 * infrun.c (follow_fork_inferior): Use the whole of the
5523 inferior_ptid and pending_follow.related_pid ptids instead of
5524 building ptids from the process components. Adjust verbose output
5525 to use target_pid_to_str.
5526 * linux-nat.c (linux_child_follow_fork): Use the whole of the
5527 inferior_ptid and pending_follow.related_pid ptids instead of
5528 building ptids from the process components.
5529
5530 2015-03-04 Mark Kettenis <kettenis@gnu.org>
5531
5532 * inf-ptrace.c [PT_GET_PROCESS_STATE]
5533 (inf_ptrace_insert_fork_catchpoint): New function.
5534 (inf_ptrace_remove_fork_catchpoint): New function.
5535 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
5536
5537 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538
5539 * s390-linux-tdep.c (s390_register_name): Return empty string
5540 instead of NULL for registers that shouldn't be visible.
5541
5542 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5543
5544 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
5545 XML file for 64-bit targets.
5546
5547 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
5548
5549 * target.h (find_default_create_inferior): Remove declaration.
5550 (find_default_attach): Likewise.
5551
5552 2015-03-03 Pedro Alves <palves@redhat.com>
5553
5554 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
5555 Use ptid_get_pid to get the overall process id when resuming all
5556 threads.
5557
5558 2015-03-03 Pedro Alves <palves@redhat.com>
5559
5560 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
5561 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
5562 * inf-ptrace.c (get_ptrace_pid): New function.
5563 (inf_ptrace_resume): Use it.
5564 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
5565 to the lower layer.
5566
5567 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
5568
5569 * nat/linux-btrace.c: Include sys/utsname.h.
5570 (linux_determine_kernel_ptr_bits): New.
5571 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
5572 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
5573 ptr_bits.
5574
5575 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
5576
5577 * btrace.c (ftrace_update_function): Treat return as tailcall for
5578 "_dl_runtime_resolve".
5579
5580 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
5581
5582 * btrace.h (btrace_function) <lbegin, lend>: Remove.
5583 * btrace.c (ftrace_debug): Do not print the line range.
5584 (ftrace_skip_file, ftrace_update_lines): Remove.
5585 (ftrace_new_function): Remove lbegin and lend initialization.
5586 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
5587 * record-btrace.c (btrace_compute_src_line_range): New.
5588 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
5589
5590 2015-03-02 Pedro Alves <palves@redhat.com>
5591
5592 * infrun.c (follow_exec): Delete all threads of the process except
5593 the event thread. Extended comments.
5594
5595 2015-03-02 Joel Brobecker <brobecker@adacore.com>
5596
5597 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
5598
5599 2015-03-02 Joel Brobecker <brobecker@adacore.com>
5600
5601 * utils.h: Remove <stdbool.h> #include.
5602 (producer_is_gcc): Change return type to "int".
5603 * utils.c (producer_is_gcc): Change return type to int.
5604 Return 1 instead of true, and 0 instead of false.
5605 Adjust function documentation accordingly.
5606
5607 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
5608
5609 * s390-linux-nat.c (have_regset_vxrs): New static variable.
5610 (s390_linux_fetch_inferior_registers): Handle vector registers, if
5611 present.
5612 (s390_linux_store_inferior_registers): Likewise.
5613 (s390_get_hwcap): Remove function. Embed its logic...
5614 (s390_read_description): ...here. Yield a target description with
5615 vector registers if applicable.
5616 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
5617 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
5618 "features/s390x-tevx-linux64.c".
5619 (struct gdbarch_tdep) <v0_full_regnum>: New field.
5620 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
5621 for "GNU/Linux-specific registers".
5622 (s390_dwarf_reg_r0l): New enum value.
5623 (s390_dwarf_reg_to_regnum): Support vector registers.
5624 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
5625 of GPR lower halves.
5626 (regnum_is_vxr_full): New function.
5627 (s390_register_name): New function.
5628 (s390_pseudo_register_name): Handle v0-v15, which are composed of
5629 f0-f15 and v0l-v15l.
5630 (s390_pseudo_register_type): Likewise.
5631 (s390_pseudo_register_read): Likewise.
5632 (s390_pseudo_register_write): Likewise.
5633 (s390_value_from_register): Account for the fact that values are
5634 placed left-justified in vector registers.
5635 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
5636 the vector reggroup and omit them from the general reggroup.
5637 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
5638 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
5639 (s390_iterate_over_regset_sections): Add iterations for the two
5640 new vector regsets.
5641 (s390_core_read_description): Yield a target description with
5642 vector registers if applicable.
5643 (s390_gdbarch_init): Handle target descriptions with vector
5644 registers. Add "register_name" gdbarch method.
5645 (_initialize_s390_tdep): Call new tdesc initialization functions.
5646 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
5647 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
5648 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
5649 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
5650 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
5651 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
5652 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
5653 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
5654 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
5655 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
5656 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
5657 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
5658 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
5659 (S390_NUM_REGS): Adjust value.
5660 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
5661 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
5662 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
5663 * NEWS: Announce S/390 vector register support.
5664
5665 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
5666
5667 * features/s390-tevx-linux64.xml: New file.
5668 * features/s390-vx-linux64.xml: New file.
5669 * features/s390-vx.xml: New file.
5670 * features/s390x-tevx-linux64.xml: New file.
5671 * features/s390x-vx-linux64.xml: New file.
5672 * features/Makefile (WHICH): Add s390-vx-linux64,
5673 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
5674 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
5675 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
5676 macros.
5677 * features/s390-tevx-linux64.c: New generated file.
5678 * features/s390-vx-linux64.c: Likewise.
5679 * features/s390x-tevx-linux64.c: Likewise.
5680 * features/s390x-vx-linux64.c: Likewise.
5681 * regformats/s390-tevx-linux64.dat: Likewise.
5682 * regformats/s390-vx-linux64.dat: Likewise.
5683 * regformats/s390x-tevx-linux64.dat: Likewise.
5684 * regformats/s390x-vx-linux64.dat: Likewise.
5685
5686 2015-02-28 Doug Evans <xdje42@gmail.com>
5687
5688 * symtab.h (struct symtab) <next>: Fix comment.
5689
5690 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
5691
5692 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
5693 python_GdbMethods.
5694
5695 2015-02-27 Pedro Alves <palves@redhat.com>
5696
5697 * dtrace-probe.c (dtrace_probe_ops): Make extern.
5698
5699 2015-02-27 Pedro Alves <palves@redhat.com>
5700
5701 * common/common-exceptions.h (exception_none): Declare.
5702 * common/common-exceptions.c (exception_none): Moved from
5703 exceptions.c.
5704 (exceptions_state_mc_init): Use exception_none.
5705 * exceptions.c (exception_none): Move to
5706 common/common-exceptions.c.
5707 * exceptions.h (exception_none): Move to
5708 common/common-exceptions.h.
5709
5710 2015-02-27 Pedro Alves <palves@redhat.com>
5711
5712 * main.c (catch_command_errors, catch_command_errors_const):
5713 Remove 'mask' argument. Adjust.
5714 (captured_main): Adjust callers.
5715
5716 2015-02-27 Pedro Alves <palves@redhat.com>
5717
5718 * python/python-internal.h: Include "extension-priv.h".
5719
5720 2015-02-27 Pedro Alves <palves@redhat.com>
5721
5722 * breakpoint.h (enum print_stop_action): Move further up in the
5723 file.
5724
5725 2015-02-27 Pedro Alves <palves@redhat.com>
5726
5727 * gdbarch.sh: Include regcache.h.
5728 * gdbarch.h: Regenerate.
5729
5730 2015-02-27 Pedro Alves <palves@redhat.com>
5731
5732 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
5733 Remove duplicate const.
5734 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
5735 duplicate const.
5736
5737 2015-02-27 Pedro Alves <palves@redhat.com>
5738
5739 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
5740 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
5741 * features/feature_to_c.sh: Tag the generated xml_builtin array
5742 with extern const in C++ mode.
5743
5744 2015-02-27 Tom Tromey <tromey@redhat.com>
5745
5746 * minidebug.c (struct lzma_stream): Rename to ...
5747 (struct gdb_lzma_stream): ... this.
5748 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
5749
5750 2015-02-27 Pedro Alves <palves@redhat.com>
5751
5752 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
5753 function.
5754 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5755 (mi_cmd_stack_list_variables): Use it.
5756
5757 2015-02-27 Pedro Alves <palves@redhat.com>
5758
5759 * x86-linux-nat.c (u_debugreg_offset): New function.
5760 (x86_linux_dr_get, x86_linux_dr_set): Use it.
5761
5762 2015-02-27 Pedro Alves <palves@redhat.com>
5763
5764 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
5765 declaration.
5766 Include break-common.h.
5767
5768 2015-02-27 Tom Tromey <tromey@redhat.com>
5769 Pedro Alves <palves@redhat.com>
5770
5771 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
5772 local used to iterate over enums.
5773 * completer.c (signal_completer): Likewise.
5774 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
5775 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5776 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
5777 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
5778 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
5779 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
5780 * tui-wingeneral.c (tui_refresh_all): Likewise.
5781
5782 2015-02-27 Pedro Alves <palves@redhat.com>
5783
5784 * target.h: Include "infrun.h".
5785
5786 2015-02-27 Pedro Alves <palves@redhat.com>
5787
5788 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
5789
5790 2015-02-27 Pedro Alves <palves@redhat.com>
5791
5792 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
5793 (IPA_SYM): Use it.
5794 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
5795
5796 2015-02-27 Pedro Alves <palves@redhat.com>
5797
5798 * cli-out.c (_rl_erase_entire_line): Move declaration out of
5799 cli_mld_erase_entire_line, and make it extern "C".
5800 * common/common-defs.h (EXTERN_C): New.
5801 * completer.c (_rl_completion_prefix_display_length)
5802 (_rl_print_completions_horizontally, QSFUNC): Move declarations
5803 out of gdb_display_match_list_1.
5804 (_rl_qsort_string_compare): Move declaration out of
5805 gdb_display_match_list_1, and make it extern "C".
5806 * defs.h (re_comp): Use EXTERN_C.
5807 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
5808 and make it extern "C".
5809 (monstartup): Move declaration out of maintenance_set_profile_cmd,
5810 and make it extern "C".
5811 (main): Move declaration out of maintenance_set_profile_cmd.
5812 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
5813 EXTERN_C.
5814
5815 2015-02-27 Pedro Alves <palves@redhat.com>
5816
5817 * python/python.c (GdbMethods): Rename to ...
5818 (python_GdbMethods): ... this and make extern.
5819 (GdbModuleDef): Rename to ...
5820 (python_GdbModuleDef): ... this and make extern.
5821
5822 2015-02-27 Pedro Alves <palves@redhat.com>
5823
5824 * record-btrace.c (set_record_btrace_cmdlist)
5825 (show_record_btrace_cmdlist): Remove redefinitions.
5826
5827 2015-02-27 Tom Tromey <tromey@redhat.com>
5828 Pedro Alves <palves@redhat.com>
5829
5830 * dwarf2-frame.c (enum cfa_how_kind, struct
5831 dwarf2_frame_state_reg_info): Move out of struct
5832 dwarf2_frame_state.
5833 * dwarf2read.c (struct tu_stats): Move out of struct
5834 dwarf2_per_objfile.
5835 (struct file_entry): Move out of struct line_header.
5836 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
5837 typedef_field_list): Move out of struct field_info.
5838 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
5839 Move out of struct dynamic_prop.
5840 (union type_owner, union field_location, struct field, struct
5841 range_bounds, union type_specific): Move out of struct main_type.
5842 (struct fn_fieldlist, struct fn_field, struct typedef_field)
5843 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
5844 (struct call_site_target, union call_site_parameter_u, struct
5845 call_site_parameter): Move out of struct call_site.
5846 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
5847 m32c_prologue.
5848 (enum srcdest_kind): Move out of struct srcdest.
5849 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
5850 * prologue-value.h (enum prologue_value_kind): Move out of struct
5851 prologue_value.
5852 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
5853 gdbarch_tdep.
5854 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
5855 out of struct field_info.
5856 * symfile.h (struct other_sections): Move out of struct
5857 section_addr_info.
5858 * symtab.c (struct symbol_cache_slot): Move out struct
5859 block_symbol_cache.
5860 * target-descriptions.c (enum tdesc_type_kind): Move out of
5861 typedef struct tdesc_type.
5862 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
5863 struct tui_line_or_address.
5864 * value.c (enum internalvar_kind, union internalvar_data): Move
5865 out of struct internalvar.
5866 * xtensa-tdep.h (struct ctype_cache): Move out of struct
5867 gdbarch_tdep.
5868
5869 2015-02-27 Tom Tromey <tromey@redhat.com>
5870 Pedro Alves <palves@redhat.com>
5871
5872 Rename symbols whose names are reserved C++ keywords throughout.
5873
5874 2015-02-27 Pedro Alves <palves@redhat.com>
5875
5876 * Makefile.in (COMPILER): New, get it from autoconf.
5877 (COMPILE.pre, CC_LD): Use COMPILER.
5878 (CXX): Get from autoconf instead.
5879 (CXX_FOR_TARGET): Default to g++ instead of gcc.
5880 * acinclude.m4: Include build-with-cxx.m4.
5881 * build-with-cxx.m4: New file.
5882 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
5883 Disable -Werror by default if building in C++ mode.
5884 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
5885 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
5886 Run supported-warning-flags tests with the C++ compiler.
5887 Save/restore CXXFLAGS too.
5888 * configure: Regenerate.
5889
5890 2015-02-27 Pedro Alves <palves@redhat.com>
5891
5892 * libiberty.m4: New file.
5893 * acinclude.m4: Include libiberty.m4.
5894 * configure.ac: Call libiberty_INIT.
5895 * config.in, configure: Regenerate.
5896
5897 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5898
5899 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
5900 31-bit targets, but 64-bit targets as well.
5901 (s390_gnu_triplet_regexp): New function.
5902 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
5903 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
5904 method.
5905
5906 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
5907
5908 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
5909 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
5910 from CONTEXT_DEBUGGER.
5911
5912 2015-02-26 Doug Evans <dje@google.com>
5913
5914 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
5915 CHECK_TYPEDEF.
5916 (set_type_vptr_fieldno): Ditto.
5917 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
5918 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
5919
5920 2015-02-26 Pedro Alves <palves@redhat.com>
5921
5922 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
5923 * complaints.c (vcomplaint): Pass argument FMT directly to
5924 printf-like functions instead of complaint->fmt.
5925 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
5926 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
5927 * compile/compile-loc2c.c (pushf, unary, binary): Add
5928 ATTRIBUTE_PRINTF.
5929 (do_compile_dwarf_expr_to_c): Pass string literal as format string
5930 to pushf.
5931 (BINARY): Pass string literal as format string to 'binary'.
5932 * compile/compile-object-load.c (link_callbacks_einfo): Add
5933 ATTRIBUTE_PRINTF.
5934 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
5935
5936 2015-02-26 Pedro Alves <palves@redhat.com>
5937
5938 * windows-termcap.c: Rename to ...
5939 * stub-termcap.c: ... this. Adjust header line.
5940 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
5941 windows-termcap.c.
5942 * configure: Regenerate.
5943 * configure.ac: Refer to stub-termcap.o instead of
5944 windows-termcap.o.
5945 * gdb_curses.h: Mention stub-termcap.c instead of
5946 windows-termcap.c.
5947
5948 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5949
5950 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
5951 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
5952
5953 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
5954
5955 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
5956
5957 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5958
5959 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
5960 bfd_canonicalize_symtab.
5961
5962 2015-02-25 John Baldwin <jhb@FreeBSD.org>
5963
5964 * amd64fbsd-nat.c: Include sys/user.h.
5965 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
5966 instead of KERN_PS_STRINGS to locate the signal trampoline.
5967 * i386fbsd-nat.c: Include sys/user.h.
5968 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
5969 instead of KERN_PS_STRINGS to locate the signal trampoline.
5970 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
5971 (amd64fbsd_sigtramp_p): New.
5972 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
5973 longer set default values.
5974 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
5975 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
5976 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
5977 (i386fbsd_freebsd4_sigtramp_start)
5978 (i386fbsd_freebsd4_sigtramp_middle)
5979 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
5980 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
5981 (i386fbsd_sigtramp_p): New.
5982 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
5983 longer set default values.
5984 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
5985
5986 2015-02-25 John Baldwin <jhb@freebsd.org>
5987
5988 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
5989 get_frame_register instead of frame_unwind_register_unsigned.
5990
5991 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5992
5993 PR build/18033
5994 * compile/compile-c-support.c (c_compute_program): Change // comment.
5995 * compile/compile-object-load.c (setup_sections): Change // comment.
5996
5997 2015-02-26 Joel Brobecker <brobecker@adacore.com>
5998
5999 PR build/18033:
6000 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
6001
6002 2015-02-23 Pedro Alves <palves@redhat.com>
6003
6004 * remote.c (skip_to_semicolon): New function.
6005 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
6006 special case the stop reasons that look like hex numbers
6007 upfront. Instead handle real register numbers after matching
6008 all the known stop reasons.
6009
6010 2015-02-21 Doug Evans <dje@google.com>
6011
6012 PR c++/17976, symtab/17821
6013 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
6014 is_in_anonymous. All callers updated.
6015 (find_symbol_in_baseclass): Ditto.
6016 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
6017 for symbols in an anonymous namespace.
6018 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
6019 DW_AT_name directly.
6020 (dwarf2_name): Convert missing namespace name to
6021 CP_ANONYMOUS_NAMESPACE_STR.
6022
6023 2015-02-20 Pedro Alves <palves@redhat.com>
6024
6025 * linux-nat.c (linux_handle_extended_wait): Call
6026 thread_db_notice_clone whenever a new clone LWP is detected.
6027 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
6028 functions.
6029 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
6030 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
6031 (linux_unstop_all_lwps): Declare.
6032 * linux-thread-db.c (struct thread_get_info_inout): Delete.
6033 (thread_get_info_callback): Delete.
6034 (thread_from_lwp): Use td_thr_get_info and record_thread.
6035 (thread_db_attach_lwp): Delete.
6036 (thread_db_notice_clone): New function.
6037 (try_thread_db_load_1): If /proc is mounted and shows the
6038 process'es task list, walk over all LWPs and call thread_from_lwp
6039 instead of relying on td_ta_thr_iter.
6040 (attach_thread): Don't call check_thread_signals here. Split the
6041 tail part of the function (which adds the thread to the core GDB
6042 thread list) to ...
6043 (record_thread): ... this function. Call check_thread_signals
6044 here.
6045 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
6046 call thread_from_lwp.
6047 (thread_db_update_thread_list): Rename to ...
6048 (thread_db_update_thread_list_org): ... this.
6049 (thread_db_update_thread_list): New function.
6050 (thread_db_find_thread_from_tid): Delete.
6051 (thread_db_get_ada_task_ptid): Simplify.
6052 * nat/linux-procfs.c: Include <sys/stat.h>.
6053 (linux_proc_task_list_dir_exists): New function.
6054 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
6055
6056 2015-02-20 Pedro Alves <palves@redhat.com>
6057
6058 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
6059 main LWP. Handle the case of waitpid returning 0 if we're already
6060 attached to the LWP. Don't set the LWP's last_resume_kind to
6061 resume_stop if we already knew about the LWP.
6062 (linux_nat_filter_event): Add debug logs.
6063
6064 2015-02-20 Pedro Alves <palves@redhat.com>
6065
6066 * target.h (forward_target_decr_pc_after_break): Delete
6067 declaration.
6068
6069 2015-02-20 Pedro Alves <palves@redhat.com>
6070
6071 PR threads/18006
6072 * linux-thread-db.c (thread_get_info_callback): Return early if
6073 the thread's lwp id is -1.
6074
6075 2015-02-20 Joel Brobecker <brobecker@adacore.com>
6076
6077 GDB 7.9 released.
6078
6079 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
6080
6081 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
6082 (dtrace_get_probes) Change type of variable 'dof'.
6083
6084 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
6085
6086 PR breakpoints/16812
6087 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
6088 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
6089 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
6090
6091 2015-02-19 David Taylor <dtaylor@emc.com>
6092
6093 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
6094
6095 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
6096
6097 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
6098 function.
6099 (tui_putc): Don't call tui_handle_resize_during_io.
6100 (tui_getc): Likewise.
6101 (tui_mld_getc): Likewise.
6102 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
6103 (tui_sigwinch_token): New static variable.
6104 (tui_initialize_win): Adjust documentation. Set
6105 tui_sigwinch_token.
6106 (tui_async_resize_screen): New asynchronous callback.
6107 (tui_sigwinch_handler): Adjust documentation. Asynchronously
6108 invoke tui_async_resize_screen.
6109
6110 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
6111
6112 * configure: Regenerated.
6113 * configure.ac: Use GDB_AC_TRANSFORM.
6114 * Makefile.in (aclocal_m4_deps): Added transform.m4.
6115 * acinclude.m4: sinclude transform.m4.
6116 * transform.m4: New file.
6117 (GDB_AC_TRANSFORM): New macro.
6118
6119 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6120
6121 * NEWS: Announce the support for DTrace SDT probes.
6122
6123 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6124
6125 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
6126 (amd64_dtrace_parse_probe_argument): New function.
6127 (amd64_dtrace_probe_is_enabled): Likewise.
6128 (amd64_dtrace_enable_probe): Likewise.
6129 (amd64_dtrace_disable_probe): Likewise.
6130 (amd64_linux_init_abi): Register the
6131 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
6132 `gdbarch_dtrace_disable_probe' and
6133 `gdbarch_dtrace_probe_is_enabled' hooks.
6134 (amd64_dtrace_disabled_probe_sequence_1): New constant.
6135 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
6136 (amd64_dtrace_enable_probe_sequence): Likewise.
6137 (amd64_dtrace_disable_probe_sequence): Likewise.
6138
6139 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6140
6141 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
6142 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
6143 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
6144 handle ELF files.
6145 * Makefile.in (SFILES): dtrace-probe.c added.
6146 * configure: Regenerate.
6147 * dtrace-probe.c: New file.
6148 (SHT_SUNW_dof): New constant.
6149 (dtrace_probe_type): New enum.
6150 (dtrace_probe_arg): New struct.
6151 (dtrace_probe_arg_s): New typedef.
6152 (struct dtrace_probe_enabler): New struct.
6153 (dtrace_probe_enabler_s): New typedef.
6154 (dtrace_probe): New struct.
6155 (dtrace_probe_is_linespec): New function.
6156 (dtrace_dof_sect_type): New enum.
6157 (dtrace_dof_dofh_ident): Likewise.
6158 (dtrace_dof_encoding): Likewise.
6159 (DTRACE_DOF_ENCODE_LSB): Likewise.
6160 (DTRACE_DOF_ENCODE_MSB): Likewise.
6161 (dtrace_dof_hdr): New struct.
6162 (dtrace_dof_sect): Likewise.
6163 (dtrace_dof_provider): Likewise.
6164 (dtrace_dof_probe): Likewise.
6165 (DOF_UINT): New macro.
6166 (DTRACE_DOF_PTR): Likewise.
6167 (DTRACE_DOF_SECT): Likewise.
6168 (dtrace_process_dof_probe): New function.
6169 (dtrace_process_dof): Likewise.
6170 (dtrace_build_arg_exprs): Likewise.
6171 (dtrace_get_arg): Likewise.
6172 (dtrace_get_probes): Likewise.
6173 (dtrace_get_probe_argument_count): Likewise.
6174 (dtrace_can_evaluate_probe_arguments): Likewise.
6175 (dtrace_evaluate_probe_argument): Likewise.
6176 (dtrace_compile_to_ax): Likewise.
6177 (dtrace_probe_destroy): Likewise.
6178 (dtrace_gen_info_probes_table_header): Likewise.
6179 (dtrace_gen_info_probes_table_values): Likewise.
6180 (dtrace_probe_is_enabled): Likewise.
6181 (dtrace_probe_ops): New variable.
6182 (info_probes_dtrace_command): New function.
6183 (_initialize_dtrace_probe): Likewise.
6184 (dtrace_type_name): Likewise.
6185
6186 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6187
6188 * gdbarch.sh (dtrace_parse_probe_argument): New.
6189 (dtrace_probe_is_enabled): Likewise.
6190 (dtrace_enable_probe): Likewise.
6191 (dtrace_disable_probe): Likewise.
6192 * gdbarch.c: Regenerate.
6193 * gdbarch.h: Regenerate.
6194
6195 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6196
6197 * stap-probe.c (stap_probe_ops): Add NULLs in the static
6198 stap_probe_ops for `enable_probe' and `disable_probe'.
6199 * probe.c (enable_probes_command): New function.
6200 (disable_probes_command): Likewise.
6201 (_initialize_probe): Define the cli commands `enable probe' and
6202 `disable probe'.
6203 (parse_probe_linespec): New function.
6204 (info_probes_for_ops): Use parse_probe_linespec.
6205 * probe.h (probe_ops): New hooks `enable_probe' and
6206 `disable_probe'.
6207
6208 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6209
6210 * probe.c (compute_probe_arg): Moved from stap-probe.c
6211 (compile_probe_arg): Likewise.
6212 (probe_funcs): Likewise.
6213 * stap-probe.c (compute_probe_arg): Moved to probe.c.
6214 (compile_probe_arg): Likewise.
6215 (probe_funcs): Likewise.
6216
6217 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6218
6219 * probe.c (print_ui_out_not_applicables): New function.
6220 (exists_probe_with_pops): Likewise.
6221 (info_probes_for_ops): Do not include column headers for probe
6222 types for which no probe has been actually found on any object.
6223 Also invoke `print_ui_out_not_applicables' in order to match the
6224 column rows with the header when probes of several types are
6225 listed.
6226 Print the "Type" column.
6227 * probe.h (probe_ops): Added a new probe operation `type_name'.
6228 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
6229 (stap_type_name): New function.
6230
6231 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
6232
6233 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
6234 (key_is_command_char): Delete.
6235
6236 2015-02-17 Pedro Alves <palves@redhat.com>
6237
6238 * tui/tui.c (tui_enable): Resize windows before anything
6239 might show a window.
6240
6241 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
6242
6243 PR gdb/17984
6244 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
6245 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
6246 call.
6247 * aarch64-tdep.h (tdesc_aarch64): Declare.
6248
6249 2015-02-12 Mark Wielaard <mjw@redhat.com>
6250
6251 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
6252
6253 2015-02-13 Doug Evans <dje@google.com>
6254
6255 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
6256 anonymous_namespace to is_in_anonymous for consistency with the rest
6257 of the file.
6258 (cp_lookup_bare_symbol): Fix typo in comment.
6259 (cp_search_static_and_baseclasses): Ditto.
6260 (search_symbol_list): Use vertical space in comment better.
6261 (reset_directive_searched): Ditto. Fix typo.
6262 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
6263
6264 2015-02-13 Yao Qi <yao.qi@arm.com>
6265
6266 * MAINTAINERS: Update my email address.
6267
6268 2015-02-12 Doug Evans <dje@google.com>
6269
6270 * symtab.c (completion_list_add_name): Fix memory leak.
6271
6272 2015-02-12 Doug Evans <dje@google.com>
6273
6274 * completer.c (complete_line): Remove incorrect comment.
6275
6276 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6277
6278 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
6279 (py_print_frame): Use RETURN_MASK_ERROR.
6280
6281 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6282
6283 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
6284 function comment. Wrap all function that can throw in cleanups.
6285 (gdbpy_apply_frame_filter): Wrap all function that can throw in
6286 cleanups.
6287
6288 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6289
6290 * python/py-framefilter.c (py_print_frame): Substitute goto error.
6291 Remove the error label.
6292
6293 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6294
6295 * python/py-framefilter.c (py_print_frame): Put conditional code paths
6296 with goto first, indent the former else codepath left. Put variable
6297 'elided' to a new inner block.
6298
6299 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6300
6301 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
6302
6303 2015-02-11 Pedro Alves <palves@redhat.com>
6304
6305 * xcoffread.c (within_function): Delete.
6306
6307 2015-02-11 Tom Tromey <tromey@redhat.com>
6308 Pedro Alves <palves@redhat.com>
6309
6310 * breakpoint.c (base_breakpoint_ops): Delete.
6311 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
6312 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
6313 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
6314 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
6315 * python/py-arch.c (arch_object_type): Make extern.
6316 * python/py-block.c (block_syms_iterator_object_type): Make extern.
6317 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
6318 * python/py-cmd.c (cmdpy_object_type): Make extern.
6319 * python/py-continueevent.c (continue_event_object_type)
6320 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
6321 parameter. Update all callers.
6322 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
6323 * python/py-exitedevent.c (exited_event_object_type): Make extern.
6324 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
6325 * python/py-function.c (fnpy_object_type): Make extern.
6326 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
6327 * python/py-infevents.c (call_pre_event_object_type)
6328 (inferior_call_post_event_object_type).
6329 (memory_changed_event_object_type): Make extern.
6330 * python/py-infthread.c (thread_object_type): Make extern.
6331 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
6332 * python/py-linetable.c (linetable_entry_object_type)
6333 (linetable_object_type, ltpy_iterator_object_type): Make extern.
6334 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6335 (clear_objfiles_event_object_type): Make extern.
6336 * python/py-objfile.c (objfile_object_type): Make extern.
6337 * python/py-param.c (parmpy_object_type): Make extern.
6338 * python/py-progspace.c (pspace_object_type): Make extern.
6339 * python/py-signalevent.c (signal_event_object_type): Make extern.
6340 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
6341 * python/py-type.c (type_object_type, field_object_type)
6342 (type_iterator_object_type): Make extern.
6343 * python/python.c (python_extension_script_ops)
6344 (python_extension_ops): Make extern.
6345 * stap-probe.c (stap_probe_ops): Make extern.
6346
6347 2015-02-11 Pedro Alves <pedro@codesourcery.com>
6348
6349 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
6350 because the event thread is not the current thread.
6351
6352 2015-02-11 Doug Evans <xdje42@gmail.com>
6353
6354 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
6355 been initialized yet, return NULL.
6356
6357 2015-02-11 Doug Evans <dje@google.com>
6358
6359 * symfile.h (new_symfile_objfile): Delete.
6360 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
6361 All callers updated.
6362
6363 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
6364
6365 * tui/tui-io.c (tui_handle_resize_during_io): Call
6366 tui_update_gdb_sizes() after resizing the screen.
6367 * tui/tui.c (tui_enable): Resize the terminal before
6368 calling tui_update_gdb_sizes().
6369
6370 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
6371
6372 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
6373 line before printing a newline.
6374
6375 2015-02-11 Mark Wielaard <mjw@redhat.com>
6376
6377 * utils.c (producer_is_gcc): Return true or false.
6378
6379 2015-02-10 Mark Wielaard <mjw@redhat.com>
6380
6381 * utils.h (producer_is_gcc): Change return type to bool. Add major
6382 argument.
6383 * utils.c (producer_is_gcc): Likewise.
6384 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
6385 * dwarf2read.c (check_producer): Likewise.
6386
6387 2015-02-10 Pedro Alves <palves@redhat.com>
6388
6389 * infrun.c (displaced_step_fixup): Switch to the event thread
6390 before calling gdbarch_displaced_step_fixup.
6391
6392 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
6393
6394 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
6395
6396 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
6397
6398 * ada-varobj.c (ada_name_of_child): Constify parent.
6399 (ada_path_expr_of_child): Same.
6400 (ada_value_of_child): Same.
6401 (ada_type_of_child): Same.
6402 * c-varobj.c (c_is_path_expr_parent): Same.
6403 (c_describe_child): Same.
6404 (c_name_of_child): Same.
6405 (c_value_of_child): Same.
6406 (c_type_of_child): Same.
6407 (cplus_number_of_children): Same.
6408 (cplus_describe_child): Constify var.
6409 (cplus_name_of_child): Constify parent.
6410 (cplus_value_of_child): Same.
6411 (cplus_type_of_child): Same.
6412 * jv-varobj.c (java_name_of_child): Same.
6413 (java_value_of_child): Same.
6414 (java_type_of_child): Same.
6415 * varobj.c (value_of_child): Same.
6416 (varobj_default_is_path_expr_parent): Constify var, parent and return
6417 value.
6418 (varobj_get_path_expr): Constify var, modify path_expr through
6419 mutable_var.
6420 (install_new_value): Constify parent.
6421 (value_of_child): Constify parent.
6422 * varobj.h (struct varobj): Constify parent.
6423 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
6424 type_of_child.
6425 (varobj_get_path_expr): Constify var.
6426 (varobj_get_path_expr_parent): Constify var and return value.
6427
6428 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
6429
6430 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
6431 (arm_prologue_this_id): Move PC and SP limit checks to
6432 arm_prologue_unwind_stop_reason.
6433 (arm_prologue_unwind) <stop_reason> : Set to
6434 arm_prologue_unwind_stop_reason.
6435
6436 2015-02-09 Mark Wielaard <mjw@redhat.com>
6437
6438 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
6439 DW_LANG_Fortran08 as language_fortran.
6440
6441 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
6442
6443 PR remote/17946
6444 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
6445 of pointer against char.
6446
6447 2015-02-09 Mark Wielaard <mjw@redhat.com>
6448
6449 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
6450 (c_type_print_modifier): Likewise.
6451 * dwarf2read.c (read_tag_atomic_type): New function.
6452 (read_type_die_1): Handle DW_TAG_atomic_type.
6453 * gdbtypes.c (make_atomic_type): New function.
6454 (recursive_dump_type): Handle TYPE_ATOMIC.
6455 * gdbtypes.h (enum type_flag_values): Renumber.
6456 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
6457 (TYPE_ATOMIC): New macro.
6458 (make_atomic_type): Declare.
6459
6460 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6461
6462 * btrace.c (ftrace_find_call): Skip gaps.
6463 (ftrace_new_function): Initialize level.
6464 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
6465 (ftrace_new_switch): Update
6466 level computation.
6467 (ftrace_new_gap): New.
6468 (ftrace_update_function): Create new function after gap.
6469 (btrace_compute_ftrace_bts): Create gap on error.
6470 (btrace_stitch_bts): Update parameters. Clear trace if it
6471 becomes empty.
6472 (btrace_stitch_trace): Update parameters. Update callers.
6473 (btrace_clear): Reset the number of gaps.
6474 (btrace_insn_get): Return NULL if the iterator points to a gap.
6475 (btrace_insn_number): Return zero if the iterator points to a gap.
6476 (btrace_insn_end): Allow gaps at the end.
6477 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
6478 (btrace_find_insn_by_number): Assert that the found iterator does
6479 not point to a gap.
6480 (btrace_call_next, btrace_call_prev): Assert that the last function
6481 is not a gap.
6482 * btrace.h (btrace_bts_error): New.
6483 (btrace_function): Update comment.
6484 (btrace_function) <insn, insn_offset, number>: Update comment.
6485 (btrace_function) <errcode>: New.
6486 (btrace_thread_info) <ngaps>: New.
6487 (btrace_thread_info) <replay>: Update comment.
6488 (btrace_insn_get): Update comment.
6489 * record-btrace.c (btrace_ui_out_decode_error): New.
6490 (record_btrace_info): Print number of gaps.
6491 (btrace_insn_history, btrace_call_history): Call
6492 btrace_ui_out_decode_error for gaps.
6493 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
6494
6495 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6496
6497 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
6498 * nat/linux-btrace.c: (btrace_this_cpu): New.
6499 (cpu_supports_bts): Call btrace_this_cpu.
6500 (intel_supports_bts): Add cpu parameter.
6501
6502 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6503
6504 * btrace.h (btrace_insn_class): New.
6505 (btrace_insn) <size, iclass>: New.
6506 * btrace.c (ftrace_find_call): Update parameters. Update users.
6507 Use instruction classification.
6508 (ftrace_new_return): Update parameters. Update users.
6509 (ftrace_update_function): Update parameters. Update users. Use
6510 instruction classification.
6511 (ftrace_update_insns): Update parameters. Update users.
6512 (ftrace_classify_insn): New.
6513 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
6514 TRY_CATCH around call to gdb_insn_length.
6515
6516 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6517
6518 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
6519 Update parameters. Update users.
6520
6521 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6522
6523 * btrace.c (parse_xml_btrace_conf_bts): Add size.
6524 (btrace_conf_bts_attributes): New.
6525 (btrace_conf_children): Add attributes.
6526 * common/btrace-common.h (btrace_config_bts): New.
6527 (btrace_config)<bts>: New.
6528 (btrace_config): Update comment.
6529 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
6530 Use config.
6531 * features/btrace-conf.dtd: Increment version. Add size
6532 attribute to bts element.
6533 * record-btrace.c (set_record_btrace_bts_cmdlist,
6534 show_record_btrace_bts_cmdlist): New.
6535 (record_btrace_adjust_size, record_btrace_print_bts_conf,
6536 record_btrace_print_conf, cmd_set_record_btrace_bts,
6537 cmd_show_record_btrace_bts): New.
6538 (record_btrace_info): Call record_btrace_print_conf.
6539 (_initialize_record_btrace): Add commands.
6540 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
6541 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
6542 (btrace_sync_conf): Synchronize bts size.
6543 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
6544 * NEWS: Announce new commands and new packets.
6545
6546 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6547
6548 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
6549 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
6550 (x86_linux_btrace_conf): New.
6551 (x86_linux_create_target): Initialize to_btrace_conf.
6552 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
6553 Check format. Split into this and ...
6554 (linux_enable_bts): ... this.
6555 (linux_btrace_conf): New.
6556 (perf_event_skip_record): Renamed into ...
6557 (perf_event_skip_bts_record): ... this. Updated users.
6558 (linux_disable_btrace): Split into this and ...
6559 (linux_disable_bts): ... this.
6560 (linux_read_btrace): Check format.
6561 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
6562 (linux_btrace_conf): New.
6563 (btrace_target_info)<ptid>: Moved.
6564 (btrace_target_info)<conf>: New.
6565 (btrace_target_info): Split into this and ...
6566 (btrace_tinfo_bts): ... this. Updated users.
6567 * btrace.c (btrace_enable): Update parameters.
6568 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
6569 (btrace_conf_children, btrace_conf_attributes)
6570 (btrace_conf_elements): New.
6571 * btrace.h (btrace_enable): Update parameters.
6572 (btrace_conf, parse_xml_btrace_conf): New.
6573 * common/btrace-common.h (btrace_config): New.
6574 * feature/btrace-conf.dtd: New.
6575 * record-btrace.c (record_btrace_conf): New.
6576 (record_btrace_cmdlist): New.
6577 (record_btrace_enable_warn, record_btrace_open): Pass
6578 &record_btrace_conf.
6579 (record_btrace_info): Print recording format.
6580 (cmd_record_btrace_bts_start): New.
6581 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
6582 (_initialize_record_btrace): Add "record btrace bts" subcommand.
6583 Add "record bts" alias command.
6584 * remote.c (remote_state)<btrace_config>: New.
6585 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
6586 (remote_protocol_features): Add qXfer:btrace-conf:read.
6587 (remote_open_1): Call remote_btrace_reset.
6588 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
6589 (btrace_target_info)<conf>: New.
6590 (btrace_sync_conf, btrace_read_config): New.
6591 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
6592 btrace_read_conf.
6593 (remote_btrace_conf): New.
6594 (init_remote_ops): Initialize to_btrace_conf.
6595 (_initialize_remote): Add qXfer:btrace-conf packet.
6596 * target.c (target_enable_btrace): Update parameters.
6597 (target_btrace_conf): New.
6598 * target.h (target_enable_btrace): Update parameters.
6599 (target_btrace_conf): New.
6600 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
6601 (target_ops)<to_enable_btrace>: Update parameters and comment.
6602 (target_ops)<to_btrace_conf>: New.
6603 * target-delegates: Regenerate.
6604 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
6605 (target_debug_print_const_struct_btrace_target_info_p): New.
6606 * NEWS: Announce new command and new packet.
6607
6608 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6609
6610 * nat/linux-btrace.h (perf_event_buffer): New.
6611 (btrace_target_info) <buffer, size, data_head>: Replace with ...
6612 <bts>: ... this.
6613 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
6614 (perf_event_buffer_size, perf_event_buffer_begin)
6615 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
6616 Updated users.
6617 (perf_event_new_data): New.
6618
6619 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6620
6621 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
6622 * record-btrace.c (record_btrace_open): Remove call to
6623 target_supports_btrace.
6624 * remote.c (remote_supports_btrace): Update parameters.
6625 * target.c (target_supports_btrace): Update parameters.
6626 * target.h (to_supports_btrace, target_supports_btrace): Update
6627 parameters.
6628 * target-delegates.c: Regenerate.
6629 * target-debug.h (target_debug_print_enum_btrace_format): New.
6630 * nat/linux-btrace.c
6631 (kernel_supports_btrace): Rename into ...
6632 (kernel_supports_bts): ... this. Update users. Update warning text.
6633 (intel_supports_btrace): Rename into ...
6634 (intel_supports_bts): ... this. Update users.
6635 (cpu_supports_btrace): Rename into ...
6636 (cpu_supports_bts): ... this. Update users.
6637 (linux_supports_btrace): Update parameters. Split into this and ...
6638 (linux_supports_bts): ... this.
6639 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
6640
6641 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6642
6643 * Makefile.in (SFILES): Add common/btrace-common.c.
6644 (COMMON_OBS): Add common/btrace-common.o.
6645 (btrace-common.o): Add build rules.
6646 * btrace.c (parse_xml_btrace): Update parameters.
6647 (parse_xml_btrace_block): Set format field.
6648 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
6649 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
6650 (btrace_compute_ftrace): Split into this and...
6651 (btrace_compute_ftrace_bts): ...this.
6652 (btrace_stitch_trace): Split into this and...
6653 (btrace_stitch_bts): ...this.
6654 * btrace.h (parse_xml_btrace): Update parameters.
6655 (make_cleanup_btrace_data): New.
6656 * common/btrace-common.c: New.
6657 * common/btrace-common.h: Include common-defs.h.
6658 (btrace_block_s): Update comment.
6659 (btrace_format): New.
6660 (btrace_format_string): New.
6661 (btrace_data_bts): New.
6662 (btrace_data): New.
6663 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
6664 * remote.c (remote_read_btrace): Update parameters.
6665 * target.c (target_read_btrace): Update parameters.
6666 * target.h (target_read_btrace): Update parameters.
6667 (target_ops)<to_read_btrace>: Update parameters.
6668 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
6669 * target-delegates.c: Regenerate.
6670 * target-debug (target_debug_print_struct_btrace_data_p): New.
6671 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
6672 (linux_read_bts): ...this.
6673 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
6674
6675 2015-02-06 Doug Evans <dje@google.com>
6676
6677 * remote-m32r-sdi.c: Include symfile.h.
6678
6679 2015-02-06 Doug Evans <dje@google.com>
6680
6681 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
6682 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
6683 to here.
6684
6685 2015-02-06 Pedro Alves <palves@redhat.com>
6686
6687 * linux-thread-db.c (find_new_threads_callback): Add debug output.
6688
6689 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
6690
6691 PR gdb/15678
6692 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
6693 (enable_count_command): Check args for NULL value.
6694
6695 2015-02-05 Doug Evans <xdje42@gmail.com>
6696
6697 * guile/scm-frame.c: Fix spelling errors in a comment.
6698
6699 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6700
6701 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
6702 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
6703 return type.
6704
6705 2015-02-04 Pedro Alves <palves@redhat.com>
6706
6707 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
6708 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
6709 returns true.
6710 (resume_stopped_resumed_lwps): Don't check whether the thread is
6711 marked as executing.
6712 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
6713
6714 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6715
6716 * regset.h (struct regset): Add flags field.
6717 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
6718 * corelow.c (get_core_register_section): Add warning if the size
6719 exceeds the requested size and the regset does not have the
6720 REGSET_VARIABLE_SIZE flag set.
6721 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
6722 flag.
6723 * armbsd-tdep.c (armbsd_gregset): Likewise.
6724 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6725 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
6726 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
6727 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
6728
6729 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6730
6731 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
6732 For ".reg-xstate", explicitly specify the requested section size
6733 via X86_XSTATE_SIZE instead of just 0 on input and
6734 X86_XSTATE_MAX_SIZE on output.
6735 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
6736 Likewise.
6737
6738 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6739
6740 PR corefiles/17808:
6741 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
6742 function type, particularly its SIZE parameter.
6743 * gdbarch.h: Regenerate.
6744 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
6745 actual against required size using ">=" instead of "==".
6746 (amd64_collect_fpregset): Likewise.
6747 * i386-tdep.c (i386_supply_gregset): Likewise.
6748 (i386_collect_gregset): Likewise.
6749 (i386_supply_fpregset): Likewise.
6750 (i386_collect_fpregset): Likewise.
6751 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
6752 (mips_fill_gregset_wrapper): Likewise.
6753 (mips_supply_fpregset_wrapper): Likewise.
6754 (mips_fill_fpregset_wrapper): Likewise.
6755 (mips64_supply_gregset_wrapper): Likewise.
6756 (mips64_fill_gregset_wrapper): Likewise.
6757 (mips64_supply_fpregset_wrapper): Likewise.
6758 (mips64_fill_fpregset_wrapper): Likewise.
6759 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
6760 (am33_supply_fpregset_method): Likewise.
6761 (am33_collect_gregset_method): Likewise.
6762 (am33_collect_fpregset_method): Likewise.
6763
6764 2015-02-04 Doug Evans <dje@google.com>
6765 Pedro Alves <palves@redhat.com>
6766 Eli Zaretskii <eliz@gnu.org>
6767
6768 PR tui/17810
6769 * tui/tui-command.c (tui_refresh_cmd_win): New function.
6770 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
6771 * tui/tui-file.c: #include tui/tui-command.h.
6772 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
6773 (tui_file_flush): Refresh command window if stream is gdb_stdout.
6774 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
6775
6776 2015-02-04 Pedro Alves <palves@redhat.com>
6777
6778 Fix build breakage.
6779 * event-loop.c (gdb_do_one_event): Add default switch case.
6780
6781 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6782
6783 Filter out inferior gcc option -fpreprocessed.
6784 * compile/compile.c (filter_args): New function.
6785 (get_args): Use it.
6786
6787 2015-02-03 Pedro Alves <palves@redhat.com>
6788
6789 * event-loop.c: Don't declare nor define a queue type for
6790 gdb_event_p.
6791 (event_queue): Delete.
6792 (create_event, create_file_event, gdb_event_xfree)
6793 (initialize_event_loop, process_event): Delete.
6794 (gdb_do_one_event): Return as soon as one event is handled.
6795 (handle_file_event): Change prototype. Used the passed in
6796 file_handler pointer and ready_mask instead of looping over all
6797 file handlers.
6798 (gdb_wait_for_event): Update the poll/select timeouts before
6799 blocking. Run event handlers directly instead of queueing events.
6800 Return as soon as one event is handled.
6801 (struct async_event_handler_data): Delete.
6802 (invoke_async_event_handler): Delete.
6803 (check_async_event_handlers): Change return type to int. Run
6804 event handlers directly instead of queueing events. Return as
6805 soon as one event is handled.
6806 (handle_timer_event): Delete.
6807 (update_wait_timeout): New function, factored out from
6808 poll_timers.
6809 (poll_timers): Reimplement.
6810 * event-loop.h (initialize_event_loop): Delete declaration.
6811 * top.c (gdb_init): Don't call initialize_event_loop.
6812
6813 2015-02-03 Pedro Alves <palves@redhat.com>
6814
6815 * event-loop.c (clear_async_event_handler): New function.
6816 * event-loop.h (clear_async_event_handler): New declaration.
6817 * record-btrace.c (record_btrace_async): New function.
6818 (init_record_btrace_ops): Install record_btrace_async.
6819 * record-full.c (record_full_async): New function.
6820 (record_full_resume): Don't mark the async event source here.
6821 (init_record_full_ops): Install record_full_async.
6822 (record_full_core_resume): Don't mark the async event source here.
6823 (init_record_full_core_ops): Install record_full_async.
6824 * remote.c (remote_async): Mark and clear the async stop reply
6825 queue event-loop token as appropriate.
6826
6827 2015-02-03 Pedro Alves <palves@redhat.com>
6828
6829 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
6830 target_is_async_p instead of target_can_async.
6831 (linux_nat_wait): Use target_is_async_p instead of
6832 target_can_async. Don't enable async here.
6833 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
6834 target_is_async_p instead of target_can_async.
6835
6836 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
6837
6838 * varobj.h (lang_varobj_ops): Mention which return values need
6839 to be freed.
6840
6841 2015-02-02 Joel Brobecker <brobecker@adacore.com>
6842
6843 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
6844
6845 2015-02-02 Joel Brobecker <brobecker@adacore.com>
6846
6847 PR gdb/17856:
6848 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
6849 results found in the cache.
6850
6851 2015-02-02 Joel Brobecker <brobecker@adacore.com>
6852
6853 PR gdb/17854:
6854 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
6855 when allocating a new one.
6856
6857 2015-02-01 Tom Tromey <tom@tromey.com>
6858
6859 * MAINTAINERS: Remove myself.
6860
6861 2015-01-31 Doug Evans <xdje42@gmail.com>
6862
6863 * dwarf2read.c (process_structure_scope): Update setting of
6864 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
6865 * gdbtypes.c (internal_type_vptr_fieldno): New function.
6866 (set_type_vptr_fieldno): New function.
6867 (internal_type_vptr_basetype): New function.
6868 (set_type_vptr_basetype): New function.
6869 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
6870 TYPE_VPTR_BASETYPE.
6871 (allocate_cplus_struct_type): Initialize vptr_fieldno.
6872 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
6873 (print_cplus_stuff): ... moved here.
6874 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
6875 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
6876 moved to ...
6877 (struct cplus_struct_type): ... here. All uses updated.
6878 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
6879 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
6880 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
6881 * stabsread.c (read_tilde_fields): Update setting of
6882 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
6883
6884 2015-01-31 Doug Evans <xdje42@gmail.com>
6885
6886 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
6887 to self_p.
6888 (cp_print_class_member): Rename local domain to self_type.
6889 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
6890 domain_type to self_type.
6891 (set_die_type) <need_gnat_info>: Handle
6892 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
6893 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
6894 TYPE_SPECIFIC_SELF_TYPE.
6895 * gdbtypes.c (internal_type_self_type): New function.
6896 (set_type_self_type): New function.
6897 (smash_to_memberptr_type): Rename parameter domain to self_type.
6898 Update setting of TYPE_SELF_TYPE.
6899 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
6900 (smash_to_method_type): Rename parameter domain to self_type.
6901 Update setting of TYPE_SELF_TYPE.
6902 (check_stub_method): Call smash_to_method_type.
6903 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
6904 (copy_type_recursive): Ditto.
6905 * gdbtypes.h (enum type_specific_kind): New value
6906 TYPE_SPECIFIC_SELF_TYPE.
6907 (struct main_type) <type_specific>: New member self_type.
6908 (struct cplus_struct_type) <fn_field.type>: Update comment.
6909 (TYPE_SELF_TYPE): Rewrite.
6910 (internal_type_self_type, set_type_self_type): Declare.
6911 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
6912 self_type.
6913 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
6914 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
6915 TYPE_TARGET_TYPE.
6916 * stabsread.c (read_member_functions): Mark methods with
6917 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
6918 TYPE_SELF_TYPE.
6919
6920 2015-01-31 Doug Evans <xdje42@gmail.com>
6921
6922 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
6923 All uses updated.
6924
6925 2015-01-31 Doug Evans <xdje42@gmail.com>
6926
6927 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
6928 or unions. Return zero if union.
6929 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
6930 (gnuv3_rtti_type): Pass already-check_typedef'd value to
6931 gnuv3_get_vtable.
6932 (compute_vtable_size): Assert only passed structs.
6933 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
6934
6935 2015-01-31 Doug Evans <xdje42@gmail.com>
6936
6937 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
6938 kinds.
6939
6940 2015-01-31 Gary Benson <gbenson@redhat.com>
6941 Doug Evans <dje@google.com>
6942
6943 PR cli/9007
6944 PR cli/11920
6945 PR cli/15548
6946 * cli/cli-cmds.c (complete_command): Notify user if max-completions
6947 reached.
6948 * common/common-exceptions.h (enum errors)
6949 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
6950 * completer.h (get_max_completions_reached_message): New declaration.
6951 (max_completions): Likewise.
6952 (completion_tracker_t): New typedef.
6953 (new_completion_tracker): New declaration.
6954 (make_cleanup_free_completion_tracker): Likewise.
6955 (maybe_add_completion_enum): New enum.
6956 (maybe_add_completion): New declaration.
6957 (throw_max_completions_reached_error): Likewise.
6958 * completer.c (max_completions): New global variable.
6959 (new_completion_tracker): New function.
6960 (free_completion_tracker): Likewise.
6961 (make_cleanup_free_completion_tracker): Likewise.
6962 (maybe_add_completions): Likewise.
6963 (throw_max_completions_reached_error): Likewise.
6964 (complete_line): Remove duplicates and limit result to max_completions
6965 entries.
6966 (get_max_completions_reached_message): New function.
6967 (gdb_display_match_list): Handle max_completions.
6968 (_initialize_completer): New declaration and function.
6969 * symtab.c: Include completer.h.
6970 (completion_tracker): New static variable.
6971 (completion_list_add_name): Call maybe_add_completion.
6972 (default_make_symbol_completion_list_break_on_1): Renamed from
6973 default_make_symbol_completion_list_break_on. Maintain
6974 completion_tracker across calls to completion_list_add_name.
6975 (default_make_symbol_completion_list_break_on): New function.
6976 * top.c (init_main): Set rl_completion_display_matches_hook.
6977 * tui/tui-io.c: Include completer.h.
6978 (tui_old_rl_display_matches_hook): New static global.
6979 (tui_rl_display_match_list): Notify user if max-completions reached.
6980 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
6981 * NEWS (New Options): Mention set/show max-completions.
6982
6983 2015-01-31 Gary Benson <gbenson@redhat.com>
6984
6985 * symtab.c (struct add_name_data) <code>: New field.
6986 Updated comments.
6987 (add_symtab_completions): New function.
6988 (symtab_expansion_callback): Likewise.
6989 (default_make_symbol_completion_list_break_on): Set datum.code.
6990 Move minimal symbol scan before calling expand_symtabs_matching.
6991 Scan known primary symtabs for externs and statics before calling
6992 expand_symtabs_matching. Pass symtab_expansion_callback as
6993 expansion_notify argument to expand_symtabs_matching. Do not scan
6994 primary symtabs for externs and statics after calling
6995 expand_symtabs_matching.
6996
6997 2015-01-31 Gary Benson <gbenson@redhat.com>
6998
6999 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
7000 (struct quick_symbol_functions) <expand_symtabs_matching>:
7001 New argument expansion_notify. All uses updated.
7002 (expand_symtabs_matching): New argument expansion_notify.
7003 All uses updated.
7004 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7005 Also print expansion notify.
7006 * symtab.c (expand_symtabs_matching_via_partial): Call
7007 expansion_notify whenever a partial symbol table is expanded.
7008 * dwarf2read.c (dw2_expand_symtabs_matching): Call
7009 expansion_notify whenever a symbol table is instantiated.
7010
7011 2015-01-31 Doug Evans <xdje42@gmail.com>
7012
7013 * cli-out.c: #include completer.h, readline/readline.h.
7014 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
7015 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
7016 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
7017 * cli-out.h (cli_display_match_list): Declare.
7018 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
7019 (ELLIPSIS_LEN): Ditto.
7020 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
7021 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
7022 (gdb_fnprint, gdb_print_filename): Ditto.
7023 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
7024 (gdb_display_match_list): Ditto.
7025 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
7026 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
7027 (mld_beep_ftype, mld_read_key_ftype): Ditto.
7028 (match_list_displayer): New struct.
7029 (gdb_display_match_list): Declare.
7030 * top.c (init_main): Set rl_completion_display_matches_hook.
7031 * tui/tui-io.c: #include completer.h.
7032 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
7033 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
7034 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
7035 (tui_mld_getc, tui_mld_read_key): Ditto.
7036 (tui_rl_display_match_list): Rewrite.
7037 (tui_handle_resize_during_io): New arg for_completion. All callers
7038 updated.
7039
7040 2015-01-31 Doug Evans <xdje42@gmail.com>
7041
7042 Add symbol lookup cache.
7043 * NEWS: Document new options and commands.
7044 * symtab.c (symbol_cache_key): New static global.
7045 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
7046 (SYMBOL_LOOKUP_FAILED): New macro.
7047 (symbol_cache_slot_state): New enum.
7048 (block_symbol_cache): New struct.
7049 (symbol_cache): New struct.
7050 (new_symbol_cache_size, symbol_cache_size): New static globals.
7051 (hash_symbol_entry, eq_symbol_entry): New functions.
7052 (symbol_cache_byte_size, resize_symbol_cache): New functions.
7053 (make_symbol_cache, free_symbol_cache): New functions.
7054 (get_symbol_cache, symbol_cache_cleanup): New function.
7055 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
7056 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
7057 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
7058 (symbol_cache_flush, symbol_cache_dump): New functions.
7059 (maintenance_print_symbol_cache): New function.
7060 (maintenance_flush_symbol_cache): New function.
7061 (symbol_cache_stats): New function.
7062 (maintenance_print_symbol_cache_statistics): New function.
7063 (symtab_new_objfile_observer): New function.
7064 (symtab_free_objfile_observer): New function.
7065 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
7066 (_initialize_symtab): Init symbol_cache_key. New parameter
7067 maint symbol-cache-size. New maint commands print symbol-cache,
7068 print symbol-cache-statistics, flush-symbol-cache.
7069 Install new_objfile, free_objfile observers.
7070
7071 2015-01-31 Joel Brobecker <brobecker@adacore.com>
7072
7073 PR symtab/17855
7074 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
7075 to end.
7076
7077 2015-01-31 Doug Evans <xdje42@gmail.com>
7078
7079 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
7080 * auto-load.c: #include ctype.h.
7081 (struct auto_load_pspace_info): Replace member loaded_scripts with
7082 new members loaded_script_files, loaded_script_texts.
7083 (auto_load_pspace_data_cleanup): Update.
7084 (init_loaded_scripts_info): Update.
7085 (get_auto_load_pspace_data_for_loading): Update.
7086 (maybe_add_script_file): Renamed from maybe_add_script. All callers
7087 updated.
7088 (maybe_add_script_text): New function.
7089 (clear_section_scripts): Update.
7090 (source_script_file, execute_script_contents): New functions.
7091 (source_section_scripts): Add support for
7092 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
7093 (print_scripts): New function.
7094 (auto_load_info_scripts): Also print inlined scripts.
7095 (maybe_print_unsupported_script_warning): Renamed from
7096 unsupported_script_warning_print. All callers updated.
7097 (maybe_print_script_not_found_warning): Renamed from
7098 script_not_found_warning_print. All callers updated.
7099 * extension-priv.h (struct extension_language_script_ops): New member
7100 objfile_script_executor.
7101 * extension.c (ext_lang_objfile_script_executor): New function.
7102 * extension.h (objfile_script_executor_func): New typedef.
7103 (ext_lang_objfile_script_executor): Declare.
7104 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
7105 * guile/guile.c (guile_extension_script_ops): Update.
7106 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
7107 * python/python.c (python_extension_script_ops): Update.
7108 (gdbpy_execute_objfile_script): New function.
7109
7110 2015-01-31 Eli Zaretskii <eliz@gnu.org>
7111
7112 * tui/tui-io.c (tui_expand_tabs): New function.
7113 (tui_puts, tui_redisplay_readline): Expand TABs into the
7114 appropriate number of spaces.
7115 * tui/tui-regs.c: Include tui-io.h.
7116 (tui_register_format): Call tui_expand_tabs to expand TABs into
7117 the appropriate number of spaces.
7118 * tui/tui-io.h: Add prototype for tui_expand_tabs.
7119
7120 2015-01-30 Doug Evans <dje@google.com>
7121
7122 * NEWS: "info source" command now display producer string if present.
7123 * source.c (source_info): Print producer string if present.
7124
7125 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7126
7127 * varobj.c (varobj_delete): Fix comment.
7128
7129 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7130
7131 * varobj.c (create_child): Modify comment.
7132
7133 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7134
7135 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
7136 parameter.
7137 (ada_name_of_variable): Same.
7138 (ada_path_expr_of_child): Same.
7139 (ada_value_of_variable): Same.
7140 (ada_value_is_changeable_p): Same.
7141 (ada_value_has_mutated): Same.
7142 * c-varobj.c (varobj_is_anonymous_child): Same.
7143 (c_is_path_expr_parent): Same.
7144 (c_number_of_children): Same.
7145 (c_name_of_variable): Same.
7146 (c_path_expr_of_child): Same.
7147 (get_type): Same.
7148 (c_value_of_variable): Same.
7149 (cplus_number_of_children): Same.
7150 (cplus_name_of_variable): Same.
7151 (cplus_path_expr_of_child): Same.
7152 (cplus_value_of_variable): Same.
7153 * jv-varobj.c (java_number_of_children): Same.
7154 (java_name_of_variable): Same.
7155 (java_path_expr_of_child): Same.
7156 (java_value_of_variable): Same.
7157 * varobj.c (number_of_children): Same.
7158 (name_of_variable): Same.
7159 (is_root_p): Same.
7160 (varobj_ensure_python_env): Same.
7161 (varobj_get_objname): Same.
7162 (varobj_get_expression): Same.
7163 (varobj_get_display_format): Same.
7164 (varobj_get_display_hint): Same.
7165 (varobj_has_more): Same.
7166 (varobj_get_thread_id): Same.
7167 (varobj_get_frozen): Same.
7168 (dynamic_varobj_has_child_method): Same.
7169 (varobj_get_gdb_type): Same.
7170 (is_path_expr_parent): Same.
7171 (varobj_default_is_path_expr_parent): Same.
7172 (varobj_get_language): Same.
7173 (varobj_get_attributes): Same.
7174 (varobj_is_dynamic_p): Same.
7175 (varobj_get_child_range): Same.
7176 (varobj_value_has_mutated): Same.
7177 (varobj_get_value_type): Same.
7178 (number_of_children): Same.
7179 (name_of_variable): Same.
7180 (check_scope): Same.
7181 (varobj_editable_p): Same.
7182 (varobj_value_is_changeable_p): Same.
7183 (varobj_floating_p): Same.
7184 (varobj_default_value_is_changeable_p): Same.
7185
7186 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7187
7188 * varobj.c (varobj_get_path_expr): Set var->path_expr.
7189 * c-varobj.c (c_path_expr_of_child): Set local var instead of
7190 child->path_expr.
7191 (cplus_path_expr_of_child): Same.
7192
7193 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7194
7195 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
7196 result.
7197 (mi_cmd_var_info_expression): Same.
7198 * varobj.c (varobj_get_expression): Mention in the comment that
7199 the result must by freed by the caller.
7200
7201 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7202
7203 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
7204 varobj_get_type.
7205 (varobj_update_one): Same.
7206 * varobj.c (update_type_if_necessary): Free curr_type_str and
7207 new_type_str.
7208 (varobj_get_type): Specify in comment that the result needs to be
7209 freed by the caller.
7210
7211 2015-01-29 Doug Evans <dje@google.com>
7212
7213 PR symtab/17890
7214 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
7215
7216 2015-01-25 Mark Wielaard <mjw@redhat.com>
7217
7218 * dwarf2read.c (checkproducer): Call producer_is_gcc.
7219 * utils.c (producer_is_gcc_ge_4): Likewise.
7220 (producer_is_gcc): New function.
7221 * utils.h (producer_is_gcc): New declaration.
7222
7223 2015-01-29 Joel Brobecker <brobecker@adacore.com>
7224
7225 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
7226 kind.
7227 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
7228 parameter by "addr_stack" parameter.
7229 (resolve_dynamic_range): Replace "addr" parameter by
7230 "stack_addr" parameter. Update function documentation.
7231 Update code accordingly.
7232 (resolve_dynamic_array, resolve_dynamic_union)
7233 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
7234 (resolve_dynamic_type): Update code, following the changes made
7235 to resolve_dynamic_type_internal's interface.
7236 * dwarf2loc.h (struct property_addr_info): New.
7237 (dwarf2_evaluate_property): Replace "address" parameter
7238 by "addr_stack" parameter. Adjust function documentation.
7239 (struct dwarf2_offset_baton): New.
7240 (struct dwarf2_property_baton): Update documentation of
7241 field "referenced_type" to be more general. New field
7242 "offset_info" in union data field.
7243 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
7244 parameter by "addr_stack" parameter. Adjust code accordingly.
7245 Add support for PROP_ADDR_OFFSET properties.
7246 * dwarf2read.c (attr_to_dynamic_prop): Add support for
7247 DW_AT_data_member_location attributes as well. Use case
7248 statements instead of if/else condition.
7249
7250 2015-01-29 Joel Brobecker <brobecker@adacore.com>
7251
7252 * ada-varobj.c (ada_varobj_get_array_number_of_children):
7253 Return zero if PARENT_VALUE is NULL and parent_type's
7254 range type is dynamic.
7255
7256 2015-01-29 Joel Brobecker <brobecker@adacore.com>
7257
7258 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
7259 nonzero if the type's subtype is dynamic.
7260 (resolve_dynamic_range): Also resolve the range's subtype.
7261
7262 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7263
7264 Pushed by Joel Brobecker <brobecker@adacore.com>.
7265 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
7266
7267 2015-01-27 Doug Evans <dje@google.com>
7268
7269 * NEWS: Mention gdb.Objfile.username.
7270 * python/py-objfile.c (objfpy_get_username): New function.
7271 (objfile_getset): Add "username".
7272
7273 2015-01-24 Mark Wielaard <mjw@redhat.com>
7274
7275 * stack.c (return_command): Markup warning message with _.
7276
7277 2015-01-24 Doug Evans <xdje42@gmail.com>
7278
7279 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
7280
7281 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7282
7283 Fix 100x slowdown regression on DWZ files.
7284 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
7285 (struct line_header): Add offset and offset_in_dwz.
7286 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
7287 (free_line_header_voidp): New declaration.
7288 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
7289 functions.
7290 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
7291 (handle_DW_AT_stmt_list): Use line_header_hash.
7292 (free_line_header_voidp): New function.
7293 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
7294 (dwarf_decode_lines): New parameter decode_mapping, use it.
7295 (dwarf2_free_objfile): Free line_header_hash.
7296
7297 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
7298
7299 PR gdb/17416
7300 * valops.c (value_rtti_indirect_type): Catch exception thrown by
7301 value_ind.
7302
7303 2015-01-15 Mark Wielaard <mjw@redhat.com>
7304
7305 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
7306 DW_AT_noreturn.
7307 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
7308 calling_convention an 8 bit bit field.
7309 (TYPE_NO_RETURN): New macro.
7310 * infcmd.c (finish_command): Query if function does not return
7311 normally.
7312 * stack.c (return_command): Likewise.
7313
7314 2015-01-23 Pedro Alves <palves@redhat.com>
7315
7316 * linux-nat.c (linux_is_async_p): New macro.
7317 (linux_nat_is_async_p):
7318 (linux_nat_terminal_inferior): Check whether the target can async
7319 instead of whether it is already async.
7320 (linux_nat_terminal_ours): Don't check whether the target is
7321 async.
7322 (linux_async_pipe): Use linux_is_async_p.
7323
7324 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7325
7326 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
7327 '-ascending'.
7328 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
7329 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
7330 Sort tp_array using tp_array_compar.
7331 (_initialize_thread): Extend thread_apply_all_command help.
7332
7333 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7334
7335 * corelow.c (core_open): Call also thread_command.
7336 * gdbthread.h (thread_command): New prototype moved from ...
7337 * thread.c (thread_command): ... here.
7338 (thread_command): Make it global.
7339
7340 2015-01-22 Pedro Alves <palves@redhat.com>
7341
7342 * configure.ac [*mingw32*]: Check $curses_found instead of
7343 $prefer_curses.
7344 * configure: Regenerate.
7345 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
7346 HAVE_NCURSES_NCURSES_H checks.
7347
7348 2015-01-22 Eli Zaretskii <eliz@gnu.org>
7349
7350 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
7351 fails with the 1st arg NULL, try again with "unknown". Don't test
7352 the "cup" capability: it isn't supported by the Windows port of
7353 ncurses, but the Windows console driver is still capable of
7354 supporting TUI.
7355
7356 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7357
7358 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
7359
7360 2015-01-22 Eli Zaretskii <eliz@gnu.org>
7361
7362 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
7363 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
7364 reason that "make TAGS" is broken.
7365
7366 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
7367
7368 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
7369 and check additional store instructions.
7370
7371 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
7372
7373 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
7374
7375 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
7376
7377 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
7378 ppc_canonicalize_syscall, ppc_linux_syscall_record,
7379 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
7380 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
7381 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
7382 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
7383 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
7384 ppc_process_record_op19, ppc_process_record_op31,
7385 ppc_process_record_op59, ppc_process_record_op60,
7386 ppc_process_record_op63): Likewise.
7387
7388 2015-01-20 Joel Brobecker <brobecker@adacore.com>
7389
7390 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
7391 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
7392 strerror.
7393
7394 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
7395
7396 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
7397 ppc_process_record_op31, ppc_process_record_op59,
7398 ppc_process_record_op60, ppc_process_record_op63,
7399 ppc_process_record): Fix -Wformat warning.
7400 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
7401 Remove unused variables.
7402
7403 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
7404
7405 * MAINTAINERS (Write After Approval): Add "Chen Gang".
7406
7407 2015-01-19 Eli Zaretskii <eliz@gnu.org>
7408
7409 * configure.ac [*mingw32*]: Only add windows-termcap.o to
7410 CONFIG_OBS if not building with a curses library.
7411 * configure: Regenerate.
7412
7413 * windows-termcap.c: Include defs.h. Make the whole body empty if
7414 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
7415 HAVE_NCURSES_NCURSES_H is defined.
7416
7417 2015-01-19 Joel Brobecker <brobecker@adacore.com>
7418
7419 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
7420 from end of line to start of next line.
7421
7422 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
7423
7424 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
7425 Scan PLT stub backward for reverse debugging.
7426 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
7427
7428 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
7429 Ulrich Weigand <uweigand@de.ibm.com>
7430
7431 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
7432 gdb_target_obs.
7433 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
7434 record.
7435 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
7436 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
7437 (ppc_linux_init_abi): Set process_record, process_record_signal.
7438 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
7439 ppc_linux_record_tdep to gdbarch_tdep.
7440 (ppc_process_record): New declaration.
7441 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
7442 ppc_process_record_op19, ppc_process_record_op31,
7443 ppc_process_record_op59, ppc_process_record_op60,
7444 ppc_process_record_op63, ppc_process_record): New functions.
7445
7446 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
7447
7448 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
7449 rs6000_in_function_epilogue_frame_p and add an argument
7450 for frame_info.
7451 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
7452 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
7453 New functions.
7454 (rs6000_epilogue_frame_unwind): New.
7455 (rs6000_gdbarch_init): Append epilogue unwinder.
7456
7457 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7458
7459 * nat/linux-personality.c: Replace "#ifndef
7460 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
7461 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
7462 systems.
7463
7464 2015-01-16 Eli Zaretskii <eliz@gnu.org>
7465
7466 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
7467 functions.
7468 (_initialize_tui_win) <border-kind, border-mode>:
7469 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
7470 (tui_set_tab_width_command): Fix the commentary.
7471
7472 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
7473
7474 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
7475 Doc fix.
7476 (tui_set_tab_width_command): Delete and recreate the source and
7477 the disassembly windows, to show the effect of the changed tab
7478 size immediately.
7479
7480 * tui/tui-data.h (LINE_PREFIX): Make shorter
7481 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
7482 "Thread NNNNN.XXXX" thread ID notation on Windows.
7483
7484 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7485
7486 Fix gcc-5 compilation.
7487 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
7488
7489 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7490
7491 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
7492 (linux-personality.o): New rule.
7493 * common/common-defs.h: Include <stdint.h>.
7494 * config/aarch64/linux.mh (NATDEPFILES): Include
7495 linux-personality.o.
7496 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7497 * config/arm/linux.mh (NATDEPFILES): Likewise.
7498 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7499 * config/i386/linux.mh (NATDEPFILES): Likewise.
7500 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7501 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7502 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7503 * config/mips/linux.mh (NATDEPFILES): Likewise.
7504 * config/pa/linux.mh (NATDEPFILES): Likewise.
7505 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7506 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7507 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7508 * config/s390/linux.mh (NATDEPFILES): Likewise.
7509 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7510 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7511 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7512 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7513 * defs.h: Remove #include <stdint.h> (moved to
7514 common/common-defs.h).
7515 * linux-nat.c: Include nat/linux-personality.h. Remove #include
7516 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
7517 nat/linux-personality.c).
7518 (linux_nat_create_inferior): Remove code to disable address space
7519 randomization (moved to nat/linux-personality.c). Create cleanup
7520 to disable address space randomization.
7521 * nat/linux-personality.c: New file.
7522 * nat/linux-personality.h: Likewise.
7523
7524 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7525
7526 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
7527 common/posix-strerror.c.
7528 (posix-strerror.o): New rule.
7529 (mingw-strerror.o): Likewise.
7530 * common/common-utils.h (safe_strerror): Move prototype to here,
7531 from utils.h.
7532 * common/common.host: New file.
7533 * common/mingw-strerror.c: Likewise.
7534 * common/posix-strerror.c: Likewise.
7535 * configure: Regenerated.
7536 * configure.ac: Source common/common.host. Add variable
7537 common_host_obs to gdb_host_obs.
7538 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
7539 gdb/common/posix-strerror.c when warning about the use of
7540 strerror.
7541 * mingw-hdep.c (safe_strerror): Remove definition; move it to
7542 common/mingw-strerror.c.
7543 * posix-hdep.c (safe_strerror): Remove definition; move it to
7544 common/posix-hdep.c.
7545 * utils.h (safe_strerror): Remove prototype; move to
7546 common/common-utils.h.
7547
7548 2015-01-15 Joel Brobecker <brobecker@adacore.com>
7549
7550 GDB 7.8.2 released.
7551
7552 2015-01-15 Joel Brobecker <brobecker@adacore.com>
7553
7554 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
7555 ___XA type if the array has already been fixed.
7556
7557 2015-01-14 Yao Qi <yao@codesourcery.com>
7558
7559 * Makefile.in (ppc-linux.o): New rule.
7560 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
7561 * configure.ac: AC_CHECK_FUNCS(getauxval).
7562 * config.in: Re-generated.
7563 * configure: Re-generated.
7564 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
7565 Declare.
7566 * nat/ppc-linux.c: New file.
7567 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
7568 Call ppc64_64bit_inferior_p.
7569
7570 2015-01-14 Yao Qi <yao@codesourcery.com>
7571
7572 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
7573 nat/ppc-linux.h.
7574 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
7575 (PPC_FEATURE_HAS_DFP): Likewise.
7576 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
7577 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
7578 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
7579 Include "nat/ppc-linux.h".
7580 * nat/ppc-linux.h: New file.
7581 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
7582
7583 2015-01-14 Pedro Alves <palves@redhat.com>
7584
7585 PR gdb/17525
7586 * breakpoint.c: Include "interps.h".
7587 (bpstat_do_actions_1): Also check whether the interpreter is
7588 async.
7589
7590 2015-01-14 Pedro Alves <palves@redhat.com>
7591
7592 PR cli/17828
7593 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
7594 reinstall if the interpreter is sync.
7595
7596 2015-01-13 Doug Evans <dje@google.com>
7597
7598 * objfiles.c (objfile_filename): New function.
7599 * objfiles.h (objfile_filename): Declare it.
7600 (objfile_name): Add function comment.
7601 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
7602 bfd file name (which may be realpath'd), and the original name.
7603
7604 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7605
7606 * NEWS: Create a new section for the next release branch.
7607 Rename the section of the current branch, now that it has
7608 been cut.
7609
7610 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7611
7612 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
7613 * version.in: Bump version to 7.9.50.DATE-cvs.
7614
7615 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7616
7617 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
7618 Remove trailing new-line in argument of call to warning.
7619
7620 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7621
7622 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
7623 new-line in argument of call to "warning".
7624
7625 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7626
7627 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
7628 in static block, then try searching for primitive types.
7629
7630 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
7631
7632 * top.h (gdb_add_history): Declare.
7633 * top.c (command_count): New variable.
7634 (gdb_add_history): New function.
7635 (gdb_safe_append_history): New static function.
7636 (quit_force): Call it.
7637 (command_line_input): Use gdb_add_history instead of
7638 add_history.
7639 * event-top.c (command_line_handler): Likewise.
7640
7641 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
7642
7643 PR gdb/17046
7644 * darwin-nat.c: Replace <machine/setjmp.h> #include by
7645 <setjmp.h> #include.
7646
7647 2015-01-11 Doug Evans <xdje42@gmail.com>
7648
7649 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
7650
7651 2015-01-11 Doug Evans <xdje42@gmail.com>
7652
7653 PR gdb/15830
7654 * NEWS: The "maint demangle" command is renamed as "demangle".
7655 * demangle.c: #include cli/cli-utils.h, language.h.
7656 (demangle_command): New function.
7657 (_initialize_demangle): Add new command "demangle".
7658 * maint.c (maintenance_demangle): Stub out.
7659 (_initialize_maint_cmds): Update help text for "maint demangle",
7660 and mark as deprecated.
7661
7662 2015-01-11 Mark Kettenis <kettenis@gnu.org>
7663
7664 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
7665 inferior_thread is a function.
7666
7667 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
7668
7669 * Makefile.in (.y.c): Don't munge yacc's #line
7670 directives.
7671
7672 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
7673
7674 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
7675 to prompt for input.
7676 * tui/tui-hooks.c (tui_query_hook): Remove.
7677 (tui_install_hooks): Don't set deprecated_query_hook.
7678 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
7679 height calculation. Always update the command window's cur_line.
7680
7681 2015-01-09 Pedro Alves <palves@redhat.com>
7682
7683 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
7684 function.
7685 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
7686 declaration.
7687 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
7688 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
7689 stop_reason.
7690 (check_stopped_by_watchpoint): New function.
7691 (save_sigtrap): Reimplement.
7692 (linux_nat_stopped_by_watchpoint): Adjust.
7693 (linux_nat_lp_status_is_event): Delete.
7694 (stop_wait_callback): Only call save_sigtrap after storing the
7695 pending status.
7696 (status_callback): If the thread had been stopped for a breakpoint
7697 that has since been removed, discard the event and resume the LWP.
7698 (count_events_callback, select_event_lwp_callback): Use
7699 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
7700 (cancel_breakpoint): Rename to ...
7701 (check_stopped_by_breakpoint): ... this. Record whether the LWP
7702 stopped for a software breakpoint or hardware breakpoint.
7703 (select_event_lwp): Only give preference to the stepping LWP in
7704 all-stop mode. Adjust comments.
7705 (stop_and_resume_callback): Remove references to new_pending_p.
7706 (linux_nat_filter_event): Likewise. Leave exit events of the
7707 leader thread pending here. Handle signal short circuiting here.
7708 Only call save_sigtrap after storing the pending waitstatus.
7709 (linux_nat_wait_1): Remove 'retry' label. Remove references to
7710 new_pending. Don't handle leaving events the caller is not
7711 interested in pending here, nor handle signal short-circuiting
7712 here. Also give equal priority to all LWPs that have had events
7713 in non-stop mode. If reporting a software breakpoint event,
7714 unadjust the LWP's PC.
7715 * linux-nat.h (enum lwp_stop_reason): New.
7716 (struct lwp_info) <stop_pc>: New field.
7717 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
7718 (struct lwp_info) <stop_reason>: New field.
7719 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
7720
7721 2015-01-09 Pedro Alves <palves@redhat.com>
7722
7723 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
7724 Set the LWP's 'resumed' flag.
7725
7726 2015-01-09 Pedro Alves <palves@redhat.com>
7727
7728 * linux-nat.c (linux_resume_one_lwp): New function.
7729 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
7730 (linux_nat_resume): Use lwp_status_pending_p and
7731 linux_resume_one_lwp.
7732 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
7733 (linux_handle_extended_wait): Use linux_resume_one_lwp.
7734 (status_callback, running_callback): Use lwp_status_pending_p.
7735 (lwp_status_pending_p): New function.
7736 (stop_and_resume_callback): Use lwp_status_pending_p.
7737 (linux_nat_filter_event): Use linux_resume_one_lwp.
7738 (linux_nat_wait_1): Always use status_callback to look for an LWP
7739 with a pending status. Use linux_resume_one_lwp.
7740 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
7741 linux_resume_one_lwp.
7742
7743 2015-01-09 Pedro Alves <palves@redhat.com>
7744
7745 * breakpoint.c (bp_location_inserted_here_p): New function,
7746 factored out from ...
7747 (breakpoint_inserted_here_p): ... here. Use
7748 ALL_BP_LOCATIONS_AT_ADDR.
7749 (software_breakpoint_inserted_here_p): Use
7750 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
7751
7752 2014-01-09 Pedro Alves <palves@redhat.com>
7753
7754 Skip enabling event reporting if the kernel supports
7755 PTRACE_EVENT_CLONE.
7756 * linux-thread-db.c: Include "nat/linux-ptrace.h".
7757 (thread_db_use_events): New function.
7758 (try_thread_db_load_1): Check thread_db_use_events before enabling
7759 event reporting.
7760 (update_thread_state): New function.
7761 (attach_thread): Use it. Check thread_db_use_events before
7762 enabling event reporting.
7763 (thread_db_detach): Check thread_db_use_events before disabling
7764 event reporting.
7765 (find_new_threads_callback): Check thread_db_use_events before
7766 enabling event reporting. Update the thread's state if not using
7767 libthread_db events.
7768
7769 2015-01-09 Pedro Alves <palves@redhat.com>
7770
7771 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
7772 about to wait for is > 0.
7773 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
7774 the kernel thread ID is -1.
7775
7776 2015-01-09 Pedro Alves <palves@redhat.com>
7777
7778 * linux-nat.c (attach_proc_task_lwp_callback): New function.
7779 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
7780 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
7781 ptrace option flags.
7782 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
7783 field.
7784 * nat/linux-procfs.c: Include <dirent.h>.
7785 (linux_proc_get_int): New parameter "warn". Handle it.
7786 (linux_proc_get_tgid): Adjust.
7787 (linux_proc_get_tracerpid): Rename to ...
7788 (linux_proc_get_tracerpid_nowarn): ... this.
7789 (linux_proc_pid_get_state): New function, factored out from
7790 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
7791 and handle it.
7792 (linux_proc_pid_is_gone): New function.
7793 (linux_proc_pid_is_stopped): Adjust.
7794 (linux_proc_pid_is_zombie_maybe_warn)
7795 (linux_proc_pid_is_zombie_nowarn): New functions.
7796 (linux_proc_pid_is_zombie): Use
7797 linux_proc_pid_is_zombie_maybe_warn.
7798 (linux_proc_attach_tgid_threads): New function.
7799 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
7800 (linux_proc_get_tracerpid): Rename to ...
7801 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
7802 (linux_proc_pid_is_gone): New declaration.
7803 (linux_proc_pid_is_zombie): Update comment.
7804 (linux_proc_pid_is_zombie_nowarn): New declaration.
7805 (linux_proc_attach_lwp_func): New typedef.
7806 (linux_proc_attach_tgid_threads): New declaration.
7807 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
7808 use nowarn functions.
7809 (linux_ptrace_attach_fail_reason_string): Move here from
7810 gdbserver/linux-low.c and rename.
7811 (ptrace_supports_feature): If the current ptrace options are not
7812 known yet, check them now, instead of asserting.
7813 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
7814 Declare.
7815
7816 2015-01-09 Pedro Alves <palves@redhat.com>
7817
7818 * linux-thread-db.c (thread_db_find_new_threads_silently)
7819 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
7820 (find_new_threads_once): Print debug output on gdb_stdlog.
7821
7822 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
7823 Pedro Alves <palves@redhat.com>
7824
7825 * compile/compile.c: Include "gdb_wait.h".
7826 (do_rmdir): Check return value, and free 'zap'.
7827
7828 2015-01-08 Pedro Alves <palves@redhat.com>
7829 Yao Qi <yao@codesourcery.com>
7830
7831 * dwarf2loc.c (indirect_pieced_value): Don't call
7832 gdb_sign_extend. Call extract_signed_integer instead.
7833 * utils.c (gdb_sign_extend): Remove.
7834 * utils.h (gdb_sign_extend): Remove declaration.
7835
7836 2015-01-07 Pierre Muller <muller@sourceware.org>
7837
7838 PR symtab/17811
7839 * stabsread.c (define_symbol): Set language for C++ special symbols.
7840
7841 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
7842
7843 * inflow.c (initial_gdb_ttystate): Tweak comment.
7844
7845 2015-01-07 Joel Brobecker <brobecker@adacore.com>
7846
7847 * inflow.c (set_initial_gdb_ttystate): Add empty line after
7848 comment documenting function.
7849
7850 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
7851
7852 * terminal.h (set_initial_gdb_ttystate): Declare.
7853 * inflow.c (initial_gdb_ttystate): New static variable.
7854 (set_initial_gdb_ttystate): New setter.
7855 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
7856 instead of our current terminal state.
7857 * top.c (gdb_init): Call set_initial_gdb_ttystate.
7858
7859 2015-01-07 Joel Brobecker <brobecker@adacore.com>
7860
7861 * guile/scm-type.c (tyscm_array_1): Add comment.
7862 * python/py-type.c (typy_array_1): Add comment.
7863
7864 2015-01-06 Joel Brobecker <brobecker@adacore.com>
7865
7866 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
7867 error if N2 is equal to N1 - 1.
7868
7869 2015-01-06 Joel Brobecker <brobecker@adacore.com>
7870
7871 * python/py-type.c (typy_array_1): Do not raise negative-length
7872 exception if N2 is equal to N1 - 1.
7873
7874 2015-01-03 Doug Evans <xdje42@gmail.com>
7875
7876 * c-exp.y: Whitespace cleanup.
7877 (classify_inner_name): Remove extra ;.
7878
7879 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
7880
7881 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
7882 offset signed.
7883
7884 2015-01-02 Doug Evans <dje@google.com>
7885
7886 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
7887
7888 2015-01-02 Doug Evans <dje@google.com>
7889
7890 * symtab.h (struct symbol): Fix typo in comment.
7891
7892 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7893
7894 Update year range in copyright notice of all files.
7895
7896 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7897
7898 * top.c (print_gdb_version): Update copyright year to 2015.
7899
7900 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7901
7902 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
7903
7904 For older changes see ChangeLog-2014.
7905 \f
7906 Local Variables:
7907 mode: change-log
7908 left-margin: 8
7909 fill-column: 74
7910 version-control: never
7911 coding: utf-8
7912 End:
This page took 0.181471 seconds and 5 git commands to generate.