Extended-remote fork event docs
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-05-12 Don Breazeal <donb@codesourcery.com>
2
3 * NEWS: Announce fork support in the RSP and support
4 for fork debugging in extended mode.
5
6 2015-05-12 Don Breazeal <donb@codesourcery.com>
7
8 * remote.c (remote_insert_fork_catchpoint): New function.
9 (remote_remove_fork_catchpoint): New function.
10 (remote_insert_vfork_catchpoint): New function.
11 (remote_remove_vfork_catchpoint): New function.
12 (pending_fork_parent_callback): New function.
13 (remove_new_fork_child): New function.
14 (remote_update_thread_list): Call remote_notif_get_pending_events
15 and remove_new_fork_child.
16 (extended_remote_kill): Kill fork child when killing the
17 parent before follow_fork completes.
18 (init_extended_remote_ops): Initialize target vector with
19 new fork catchpoint functions.
20
21 2015-05-12 Don Breazeal <donb@codesourcery.com>
22
23 * remote.c (remove_vfork_event_p): New function.
24 (remote_follow_fork): Add vfork event type to event checking.
25 (remote_parse_stop_reply): New stop reasons "vfork" and
26 "vforkdone" for RSP 'T' Stop Reply Packet.
27
28 2015-05-12 Don Breazeal <donb@codesourcery.com>
29
30 * linux-nat.c (linux_nat_ptrace_options): New function.
31 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
32 Call linux_nat_ptrace_options and use different argument to
33 linux_enable_event_reporting.
34 (_initialize_linux_nat): Delete call to
35 linux_ptrace_set_additional_flags.
36 * nat/linux-ptrace.c (current_ptrace_options): Rename to
37 supported_ptrace_options.
38 (additional_flags): Delete variable.
39 (linux_check_ptrace_features): Use supported_ptrace_options.
40 (linux_test_for_tracesysgood, linux_test_for_tracefork):
41 Likewise, and remove additional_flags check.
42 (linux_enable_event_reporting): Change 'attached' argument to
43 'options'. Use supported_ptrace_options.
44 (ptrace_supports_feature): Change comment. Use
45 supported_ptrace_options.
46 (linux_ptrace_set_additional_flags): Delete function.
47 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
48 Delete function prototype.
49 * remote.c (remote_fork_event_p): New function.
50 (remote_detach_pid): New function.
51 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
52 if doing detach-on-fork.
53 (remote_follow_fork): New function.
54 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
55 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
56 (init_extended_remote_ops): Initialize to_follow_fork.
57
58 2015-05-12 Don Breazeal <donb@codesourcery.com>
59
60 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
61 from static to extern.
62 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
63 * remote.c (anonymous enum): <PACKET_fork_event_feature,
64 * PACKET_vfork_event_feature>: New enumeration constants.
65 (remote_protocol_features): Add table entries for new packets.
66 (remote_query_supported): Add new feature queries to qSupported
67 packet.
68
69 2015-05-12 Gary Benson <gbenson@redhat.com>
70
71 * remote.c (remote_add_inferior): Call exec_file_locate_attach
72 for fake PIDs as well as real ones.
73 (remote_pid_to_exec_file): Send empty annex if PID is fake.
74
75 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
76
77 * NEWS (Python Scripting): Mention the new gdb.Value methods.
78 * python/py-value.c (valpy_reference_value): New function.
79 (valpy_const_value): Likewise.
80 (value_object_methods): Add new methods.
81 * value.c (make_cv_value): New function.
82 * value.h (make_cv_value): Declare.
83
84 2015-05-08 Yao Qi <yao@codesourcery.com>
85 Sandra Loosemore <sandra@codesourcery.com>
86
87 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
88 to 'lh->include_dirs' before accessing to it.
89 (psymtab_include_file_name): Likewise.
90 (dwarf_decode_lines_1): Likewise.
91 (dwarf_decode_lines): Likewise.
92 (file_file_name): Likewise.
93
94 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
95
96 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
97 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
98 (nios2_linux_rt_sigreturn_init): Adjust base address of
99 register save area.
100
101 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
102
103 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
104 "trap 31" as the breakpoint instruction on all targets.
105
106 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
107
108 * infcmd.c (print_return_value): Remove unused declaration.
109
110 2015-05-08 Joel Brobecker <brobecker@adacore.com>
111
112 * dwarf2read.c (attr_to_dynamic_prop)
113 <DW_AT_data_member_location>: Use read_type_die isntead of
114 get_die_type.
115
116 2015-05-08 Joel Brobecker <brobecker@adacore.com>
117
118 * ada-lang.c (ada_convert_actual): Add handling of formals
119 passed inside an aligner type.
120
121 2015-05-08 Joel Brobecker <brobecker@adacore.com>
122
123 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
124
125 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
126
127 PR python/18291
128 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
129 Print xmethod matcher status.
130
131 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
132
133 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
134 register in the regcache when treating the PSWM register, and vice
135 versa.
136
137 2015-05-07 Gary Benson <gbenson@redhat.com>
138
139 * linux-thread-db.c (struct thread_db_info)
140 <td_ta_map_id2thr_p>: Remove field.
141 (try_thread_db_load_1): Remove initialization for the above.
142
143 2015-05-07 Gary Benson <gbenson@redhat.com>
144
145 * linux-thread-db.c (struct thread_db_info)
146 <td_thr_validate_p>: Remove field.
147 (try_thread_db_load_1): Remove initialization for the above.
148
149 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
150
151 * compile/compile-object-load.c (compile_object_load): Support
152 mst_text_gnu_ifunc.
153
154 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
155
156 * compile/compile.c (compile_to_object): Make the cmd_string parameter
157 const. Use new variables for the const compatibility.
158 (eval_compile_command): Make the cmd_string parameter const.
159 * compile/compile.h (eval_compile_command): Make the cmd_string
160 parameter const.
161
162 2015-05-06 Joel Brobecker <brobecker@adacore.com>
163
164 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
165 comment.
166 * top.c (deprecated_init_ui_hook): Delete.
167 (gdb_init): Remove handling of deprecated_init_ui_hook.
168 * interps.c (clear_interpreter_hooks): Remove handling of
169 deprecated_init_ui_hook.
170 * main.c (captured_main): Update comment.
171
172 2015-05-06 Joel Brobecker <brobecker@adacore.com>
173
174 * solib.c (_initialize_solib): Add "info dll" alias creation.
175 * windows-nat.c (set_windows_aliases): Delete.
176 (_initialize_windows_nat): Remove deprecated_init_ui_hook
177 assignment.
178 * NEWS: Add news entry about "info dll" now being available
179 on all platforms.
180
181 2015-05-05 Joel Brobecker <brobecker@adacore.com>
182
183 * ada-lang.c (value_assign_to_component): Reformat and improve
184 documentation. Remove all trailing spaces.
185
186 2015-05-05 Joel Brobecker <brobecker@adacore.com>
187
188 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
189 Stop counting inlined frames as soon as an out-of-line function
190 is found.
191
192 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
193
194 * dwarf2read.c (inherit_abstract_dies): Skip
195 DW_TAG_GNU_call_site dies while inheriting children of an
196 abstract DIE into a scope.
197 (read_lexical_block_scope): Inherit abstract DIE's for
198 lexical scopes.
199
200 2015-05-05 Joel Brobecker <brobecker@adacore.com>
201
202 * ada-valprint.c (val_print_packed_array_elements): Delete
203 variable "len". Add a type-length check when comparing two
204 consecutive elements of the array. Use the element's actual
205 length in call to value_contents_eq.
206 * ada-lang.c (ada_value_primitive_packed_val): Always return
207 a value whose type has been resolved.
208
209 2015-05-05 Joel Brobecker <brobecker@adacore.com>
210
211 * ada-lang.c (ada_value_primitive_packed_val): Recompute
212 BIT_SIZE and LEN if the size of the resolved type is smaller
213 than BIT_SIZE * HOST_CHAR_BIT.
214
215 2015-05-05 Joel Brobecker <brobecker@adacore.com>
216
217 * ada-lang.c (ada_value_primitive_packed_val): Use a more
218 correct address in call to value_at. Adjust call to
219 value_address accordingly.
220
221 2015-05-05 Joel Brobecker <brobecker@adacore.com>
222
223 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
224 to print it.
225
226 2015-05-05 Joel Brobecker <brobecker@adacore.com>
227
228 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
229 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
230 pinfo->valaddr.
231 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
232 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
233 (resolve_dynamic_type_internal): Set pinfo.valaddr.
234 Add handling of addr_stack->valaddr.
235 (resolve_dynamic_type): Add "valaddr" parameter.
236 Set pinfo.valaddr field.
237 * ada-lang.c (ada_discrete_type_high_bound): Update call to
238 resolve_dynamic_type.
239 (ada_discrete_type_low_bound): Likewise.
240 * findvar.c (default_read_var_value): Likewise.
241 * value.c (value_from_contents_and_address): Likewise.
242
243 2015-05-05 Joel Brobecker <brobecker@adacore.com>
244
245 * gdbtypes.c (resolve_dynamic_array): Use
246 create_array_type_with_stride instead of create_array_type.
247
248 2015-04-30 DJ Delorie <dj@redhat.com>
249
250 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
251 rl78_decode_opcode
252
253 2015-04-29 Doug Evans <dje@google.com>
254
255 PR python/18285
256 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
257 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
258 EVAL_AVOID_SIDE_EFFECTS for xmethods.
259 * extension-priv.h (struct extension_language_ops)
260 <get_xmethod_result_type>: New member.
261 * extension.c (get_xmethod_result_type): New function.
262 * extension.h (get_xmethod_result_type): Declare.
263 * python/py-xmethods.c (get_result_type_method_name): New static
264 global.
265 (py_get_result_type_method_name): Ditto.
266 (gdbpy_get_xmethod_result_type): New function.
267 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
268 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
269 * python/python.c (python_extension_ops): Add
270 gdbpy_get_xmethod_result_type.
271 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
272 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
273 xmethods.
274 (value_x_unop): Ditto.
275 * value.c (result_type_of_xmethod): New function.
276 * value.h (result_type_of_xmethod): Declare.
277
278 2015-04-29 Gary Benson <gbenson@redhat.com>
279
280 * solib.c (solib_find_1): Allow fd argument to be NULL.
281 (exec_file_find): Update comment.
282 (solib_find): Likewise.
283 * exec.c (exec_file_locate_attach): Use NULL as fd
284 argument to exec_file_find to avoid having to close
285 the opened file.
286 * infrun.c (follow_exec): Likewise.
287
288 2015-04-28 Doug Evans <dje@google.com>
289
290 PR python/18299
291 * python/lib/gdb/printing.py (register_pretty_printer): Handle
292 name or __name__ attributes. Handle gdb module as first argument.
293
294 2015-04-28 Doug Evans <dje@google.com>
295
296 PR python/18089
297 * python/py-prettyprint.c (print_children): Verify result of children
298 iterator. Provide better error message.
299 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
300 * python/python.c (gdbpy_print_python_errors_p): New function.
301
302 2015-04-28 Doug Evans <dje@google.com>
303
304 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
305
306 2015-04-28 Sasha Smundak <asmundak@google.com>
307
308 * NEWS: Mention gdb.Type.optimized_out method.
309 * python/py-type.c (typy_optimized_out): New function.
310
311 2015-04-28 John Baldwin <jhb@FreeBSD.org>
312
313 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
314
315 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
316
317 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
318 (initialize_utils): Move call of init_page_info() to ...
319 * top.c (gdb_init): ... here.
320
321 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
322
323 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
324 (tui_sigwinch_handler): Still update our idea of
325 the terminal's width and height even when TUI is not active.
326
327 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
328
329 * utils.h (set_screen_width_and_height): Declare.
330 * utils.c (set_screen_width_and_height): Define.
331 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
332
333 2015-04-28 Gary Benson <gbenson@redhat.com>
334
335 * infrun.c (solist.h): New include.
336 (follow_exec): Use exec_file_find to prefix execd_pathname
337 with gdb_sysroot.
338
339 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
340
341 * tui/tui-source.c (tui_set_source_content): Avoid calling
342 strcpy() when offset is 0.
343
344 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
345
346 PR gdb/18155
347 * tui/tui-data.c (tui_free_window): Don't free the locator
348 window when passed an SRC_WIN or a DISASSEM_WIN.
349
350 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
351
352 * tui/tui-data.h (struct tui_win_element): Forward-declare.
353 (tui_win_content): Move declaration.
354 (struct tui_gen_win_info): Give 'content' field the
355 type tui_win_content.
356 * tui/tui-data.c (init_content_element): Remove redundant and
357 erroneous casts.
358 (tui_add_content_elements): Remove erroneous cast.
359 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
360 casts.
361 (tui_get_begin_asm_address): Likewise.
362 * tui/tui-regs.c (tui_show_registers): Likewise.
363 (tui_show_register_group): Likewise.
364 (tui_display_registers_from): Likewise.
365 (tui_check_register_values): Likewise.
366 * tui/tui-source.c (tui_set_source_content): Likewise.
367 (tui_set_source_content_nil): Likewise.
368 (tui_source_is_displayed): Likewise.
369 * tui/tui-stack.c (tui_show_locator_content): Likewise.
370 (tui_set_locator_fullname): Likewise.
371 (tui_set_locator_info): Likewise.
372 (tui_show_frame_info): Likewise.
373 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
374 (tui_show_source_line): Likewise.
375 (tui_horizontal_source_scroll): Likewise.
376 (tui_update_breakpoint_info): Likewise.
377 (tui_set_exec_info_content): Likewise.
378 (tui_show_exec_info_content): Likewise.
379 (tui_alloc_source_buffer): Likewise.
380 (tui_line_is_displayed): Likewise.
381 (tui_addr_is_displayed): Likewise.
382
383 2015-04-27 John Baldwin <jhb@FreeBSD.org>
384
385 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
386 event if PL_FLAG_EXEC is set.
387 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
388 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
389 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
390 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
391 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
392
393 2015-04-27 John Baldwin <jhb@FreeBSD.org>
394
395 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
396 [TDP_RFPPWAIT] New variable fbsd_pending_children.
397 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
398 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
399 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
400 [PT_LWPINFO] (fbsd_wait): New function.
401 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
402 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
403 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
404 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
405 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
406 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
407 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
408 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
409 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
410 "fbsd_wait".
411 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
412 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
413 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
414 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
415 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
416 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
417 Set "to_post_attach" to "fbsd_post_attach".
418
419 2015-04-27 John Baldwin <jhb@FreeBSD.org>
420
421 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
422 (fbsd_find_memory_regions): Mark static.
423 (fbsd_nat_add_target): New function.
424 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
425 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
426 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
427 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
428 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
429 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
430
431 2015-04-27 Gary Benson <gbenson@redhat.com>
432
433 * objfiles.c (allocate_objfile): Do not attempt to expand name
434 if name is a "target:" filename.
435 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
436 to load auto-load scripts for objfiles with "target:" filenames.
437
438 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
439
440 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
441 (enum s390_vector_abi_kind): New enum.
442 (struct gdbarch_tdep)<vector_abi>: New field.
443 (s390_effective_inner_type): Add parameter min_size. Stop
444 unwrapping if the inner type is smaller than min_size.
445 (s390_function_arg_float): Adjust call to
446 s390_effective_inner_type.
447 (s390_function_arg_vector): New function.
448 (s390_function_arg_integer): Adjust comment.
449 (struct s390_arg_state)<vr>: New field.
450 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
451 arguments according to vector ABI when appropriate.
452 (s390_push_dummy_call): Initialize the argument state's field
453 'vr'. Adjust calls to s390_handle_arg.
454 (s390_register_return_value): Handle vector return values.
455 (s390_return_value): Apply the "register" return value convention
456 to a vector when appropriate.
457 (s390_gdbarch_init): Initialize tdep->vector_abi.
458 * NEWS: Announce S390 vector ABI support.
459
460 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
461
462 * s390-linux-tdep.c (s390_return_value_convention): Remove
463 function. Inline its logic...
464 (s390_return_value): ...here. Instead, move the handling of the
465 "register" return value convention...
466 (s390_register_return_value): ...here. New function.
467
468 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
469
470 * s390-linux-tdep.c
471 (is_float_singleton): Remove function. Move the "singleton" part
472 of the logic...
473 (s390_effective_inner_type): ...here. New function.
474 (is_float_like): Remove function. Inline its logic...
475 (s390_function_arg_float): ...here.
476 (is_pointer_like, is_integer_like, is_struct_like): Remove
477 functions. Inline their logic...
478 (s390_function_arg_integer): ...here.
479 (s390_function_arg_pass_by_reference): Remove function.
480 (extend_simple_arg): Remove function.
481 (alignment_of): Remove function.
482 (struct s390_arg_state): New structure.
483 (s390_handle_arg): New function.
484 (s390_push_dummy_call): Move parameter placement logic to the new
485 function s390_handle_arg. Call it for calculating the stack area
486 sizes first, and again for actually writing the parameters.
487
488 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
489
490 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
491 false if the argument is zero.
492
493 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
494
495 * ada-lang.c (template_to_static_fixed_type): Return input type
496 when it is already fixed. Cache the input type itself when not
497 creating a static fixed copy. Make it explicit that we never
498 molestate the input type.
499 * gdbtypes.c (resolve_dynamic_struct): Reset the
500 TYPE_TARGET_TYPE field for resolved copies.
501
502 2015-04-27 Joel Brobecker <brobecker@adacore.com>
503
504 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
505 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
506 (template_to_static_fixed_type): Call ada_check_typedef only
507 when necessary.
508
509 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
510
511 * cli/cli-dump.c (srec_dump_command): Add internationalization
512 mark ups.
513 (ihex_dump_command): Likewise.
514 (tekhex_dump_command): Likewise.
515 (binary_dump_command): Likewise.
516 (binary_append_command): Likewise.
517
518 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
519
520 * cli/cli-dump.c (verilog_cmdlist): New variable.
521 (dump_verilog_memory): New function.
522 (dump_verilog_value): New function.
523 (verilog_dump_command): New function.
524 (_initialize_cli_dump): Add new commands to support verilog dump
525 format.
526 * NEWS: Add entry for "dump verilog".
527
528 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
529
530 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
531 descriptive type when there is none.
532
533 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
534
535 * tui/tui-win.c (tui_async_resize_screen): Call
536 rl_resize_terminal().
537
538 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
539
540 * windows-nat.c (handle_output_debug_string): Don't change
541 current_event.dwThreadId.
542 (get_windows_debug_event): Use thread_id, rather than relying on
543 current_event.dwThreadId being changed.
544
545 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
546
547 * windows-nat.c (windows_continue): Report an error if
548 ContinueDebugEvent() fails.
549
550 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
551
552 * windows-nat.c (windows_resume): Fix misspelling in debug output.
553
554 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
555
556 * windows-nat.c (get_windows_debug_event): Replace retval with
557 thread_id throughout. Update stale comment.
558
559 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
560
561 * windows-nat.c (get_windows_debug_event): Don't use ternary
562 conditional operator.
563
564 2015-04-21 Pierre Muller <muller@sourceware.org>
565
566 PR pascal/17815
567 p-exp.y (yylex): Reorganize code to return the matched pattern
568 for a field of this.
569
570 2015-04-21 Gary Benson <gbenson@redhat.com>
571
572 * common/fileio.h (fileio_to_host_openflags): New declaration.
573 * common/fileio.c (fcntl.h): New include.
574 (fileio_to_host_openflags): New function, factored out from...
575 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
576 Single use updated.
577
578 2015-04-21 Kevin Buettner <kevinb@redhat.com>
579
580 * rl78-tdep.c (RL78_SP_ADDR): Define.
581 (opc_reg_to_gdb_regnum): New static function.
582 (rl78_analyze_prologue): Recognize instructions forming slightly
583 more interesting prologues.
584
585 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
586
587 Revert:
588 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
589 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
590 TYPE_CODE_REF types so that they are not considered as dynamic
591 depending on the referenced type.
592 (resolve_dynamic_type_internal): Likewise.
593
594 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
595
596 Revert:
597 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
598 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
599 "top_level" parameter.
600 (resolve_dynamic_type_internal): Remove the unused "top_level"
601 parameter. Update call to is_dynamic_type_internal.
602 (is_dynamic_type): Update call to is_dynamic_type_internal.
603 (resolve_dynamic_range): Update call to
604 resolve_dynamic_type_internal.
605 (resolve_dynamic_union): Likewise.
606 (resolve_dynamic_struct): Likewise.
607 (resolve_dynamic_type): Likewise.
608
609 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
610
611 * breakpoint.c (update_dprintf_command_list): Remove duplicated
612 xmalloc.
613
614 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
615
616 * reply_mig_hack.awk: Robustify parsing.
617
618 * reply_mig_hack.awk: Don't bother to declare an intermediate
619 function pointer variable.
620
621 2015-04-17 Doug Evans <dje@google.com>
622
623 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
624 to "exec_displacement" to avoid confusion with inner use of the name.
625
626 2015-04-17 Pedro Alves <palves@redhat.com>
627
628 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
629 if HW point of TYPE isn't supported.
630
631 2015-04-17 Yao Qi <yao.qi@linaro.org>
632 Pedro Alves <palves@redhat.com>
633
634 * target.h (target_can_use_hardware_watchpoint): Update comments.
635 Remove trailing ";".
636
637 2015-04-17 Gary Benson <gbenson@redhat.com>
638
639 * remote.c (remote_add_inferior): New argument try_open_exec.
640 If nonzero, attempt to open the inferior's executable file as
641 the main executable if no main executable is open already.
642 All callers updated.
643 * NEWS: Mention that GDB now supports automatic location and
644 retrieval of executable + files from remote targets.
645
646 2015-04-17 Gary Benson <gbenson@redhat.com>
647
648 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
649 * remote.c (PACKET_qXfer_exec_file): Likewise.
650 (remote_protocol_features): Register the
651 "qXfer:exec-file:read" feature.
652 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
653 (remote_pid_to_exec_file): New function.
654 (init_remote_ops): Initialize to_pid_to_exec_file.
655 (_initialize_remote): Register new "set/show remote
656 pid-to-exec-file-packet" command.
657 * NEWS: Announce new qXfer:exec-file:read packet.
658
659 2015-04-17 Gary Benson <gbenson@redhat.com>
660
661 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
662 New declaration.
663 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
664 New function, factored out from...
665 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
666
667 2015-04-17 Gary Benson <gbenson@redhat.com>
668
669 * exec.c (solist.h): New include.
670 (exec_file_locate_attach): Prefix absolute executable
671 paths with gdb_sysroot if set.
672 * NEWS: Mention that executable paths may be prepended
673 with sysroot.
674
675 2015-04-17 Gary Benson <gbenson@redhat.com>
676
677 * solist.h (exec_file_find): New declaration.
678 * solib.c (solib_find_1): New function, factored out from...
679 (solib_find): ...here.
680 (exec_file_find): New function.
681
682 2015-04-17 Gary Benson <gbenson@redhat.com>
683
684 * gdbcore.h (exec_file_locate_attach): New declaration.
685 * exec.c (exec_file_locate_attach): New function, factored
686 out from...
687 * infcmd.c (attach_command_post_wait): ...here.
688
689 2015-04-17 Mike Frysinger <vapier@gentoo.org>
690
691 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
692
693 2015-04-16 Yao Qi <yao.qi@linaro.org>
694
695 * infrun.c (maybe_software_singlestep): Declare.
696 (displaced_step_fixup): Call maybe_software_singlestep.
697
698 2015-04-15 Doug Evans <dje@google.com>
699
700 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
701
702 2015-04-15 Doug Evans <dje@google.com>
703
704 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
705
706 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
707
708 * python/lib/gdb/command/unwinders.py: Add parentheses.
709
710 2015-04-15 Yao Qi <yao.qi@linaro.org>
711
712 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
713
714 2015-04-15 Yao Qi <yao.qi@linaro.org>
715
716 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
717
718 2015-04-15 Yao Qi <yao.qi@linaro.org>
719
720 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
721 dsc->insn_size instead of 4.
722
723 2015-04-14 Gary Benson <gbenson@redhat.com>
724
725 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
726 * minidebug.c (lzma_stat): Likewise.
727 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
728 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
729
730 2015-04-13 Stan Shebs <stanshebs@google.com>
731
732 * MAINTAINERS: Update my email address.
733
734 2015-04-13 John Baldwin <jhb@FreeBSD.org>
735
736 * amd64-tdep.c (amd64_target_description): New function.
737 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
738 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
739 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
740 x86 extended save area.
741 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
742 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
743 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
744 (_initialize_amd64fbsd_nat): Set "to_read_description" to
745 "amd64fbsd_read_description".
746 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
747 (amd64fbsd_supply_xstateregset): New function.
748 (amd64fbsd_collect_xstateregset): New function.
749 Add "amd64fbsd_xstateregset".
750 (amd64fbsd_iterate_over_regset_sections): New function.
751 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
752 "I386_FBSD_XSAVE_XCR0_OFFSET".
753 Add "iterate_over_regset_sections" gdbarch method.
754 Add "core_read_description" gdbarch method.
755 * i386-tdep.c (i386_target_description): New function.
756 * i386-tdep.h: Export i386_target_description and tdesc_i386.
757 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
758 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
759 x86 extended save area.
760 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
761 * i386bsd-nat.h: Export i386bsd_xsave_len.
762 * i386fbsd-nat.c (i386fbsd_read_description): New function.
763 (_initialize_i386fbsd_nat): Set "to_read_description" to
764 "i386fbsd_read_description".
765 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
766 (i386fbsd_core_read_description): New function.
767 (i386fbsd_supply_xstateregset): New function.
768 (i386fbsd_collect_xstateregset): New function.
769 Add "i386fbsd_xstateregset".
770 (i386fbsd_iterate_over_regset_sections): New function.
771 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
772 "I386_FBSD_XSAVE_XCR0_OFFSET".
773 Add "iterate_over_regset_sections" gdbarch method.
774 Add "core_read_description" gdbarch method.
775 * i386fbsd-tdep.h: New file.
776
777 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
778
779 * NEWS (Changes since GDB 7.9): Add removed -xdb.
780 * breakpoint.c (command_line_is_silent): Remove xdb_commands
781 conditional.
782 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
783 and lb.
784 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
785 va.
786 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
787 conditional.
788 * defs.h (xdb_commands): Remove declaration.
789 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
790 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
791 * infcmd.c (run_no_args_command, go_command): Remove.
792 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
793 * infrun.c (xdb_handle_command): Remove.
794 (_initialize_infrun): Remove xdb_commands for lz and z.
795 * main.c (xdb_commands): Remove variable.
796 (captured_main): Remove "xdb" from long_options.
797 (print_gdb_help): Remove --xdb from help.
798 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
799 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
800 * stack.c (backtrace_full_command, args_plus_locals_info)
801 (current_frame_command): Remove.
802 (_initialize_stack): Remove xdb_commands for t, T and l.
803 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
804 * thread.c (_initialize_thread): Remove xdb_commands condition.
805 * tui/tui-layout.c (tui_toggle_layout_command)
806 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
807 (_initialize_tui_layout): Remove xdb_commands for td and ts.
808 * tui/tui-regs.c (tui_scroll_regs_forward_command)
809 (tui_scroll_regs_backward_command): Remove.
810 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
811 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
812 (_initialize_tui_win): Remove xdb_commands for U and w.
813 * utils.c (pagination_on_command, pagination_off_command): Remove.
814 (initialize_utils): Remove xdb_commands for am and sm.
815
816 2015-04-10 Pedro Alves <palves@redhat.com>
817
818 * infrun.c (displaced_step_fixup): Switch to the event ptid
819 earlier. If the thread stopped for a watchpoint and the
820 target/arch has non-continuable watchpoints, cancel the displaced
821 step.
822 (resume): Don't start a displaced step if in-line step-over info
823 is valid.
824
825 2015-04-10 Pedro Alves <palves@redhat.com>
826
827 * infrun.c (displaced_step_in_progress): New function.
828 (do_target_resume): Advise target to report all signals if
829 displaced stepping.
830
831 2015-04-10 Pedro Alves <palves@redhat.com>
832
833 PR gdb/18216
834 * infrun.c (process_event_stop_test): Don't assume a step-resume
835 is set if tp->stepped_breakpoint is true.
836
837 2015-04-10 Yao Qi <yao.qi@linaro.org>
838
839 * arm-tdep.c (install_alu_reg): Update comment.
840 (thumb_copy_alu_reg): Remove local variable rn. Update
841 debugging message. Use r2 instead of r1 in the modified
842 instruction.
843
844 2015-04-10 Pedro Alves <palves@redhat.com>
845
846 PR gdb/13858
847 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
848 linux_displaced_step_location as gdbarch_displaced_step_location
849 hook.
850 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
851 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
852 * linux-tdep.c (linux_displaced_step_location): New function,
853 based on ppc_linux_displaced_step_location.
854 * linux-tdep.h (linux_displaced_step_location): New declaration.
855 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
856 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
857 Delete.
858 (ppc_linux_init_abi): Install linux_displaced_step_location as
859 gdbarch_displaced_step_location hook, even without Cell/B.E..
860 (_initialize_ppc_linux_tdep): Don't install
861 ppc_linux_inferior_created as inferior_created observer.
862 * s390-linux-tdep.c (s390_gdbarch_init): Install
863 linux_displaced_step_location as gdbarch_displaced_step_location
864 hook.
865
866 2015-04-09 Gary Benson <gbenson@redhat.com>
867
868 * common/common-remote-fileio.h: Rename to...
869 * common/fileio.h: ...this. Update all references.
870 (remote_fileio_to_fio_error): Rename to...
871 (host_to_fileio_error): ...this.
872 (remote_fileio_to_be): Rename to...
873 (host_to_bigendian): ...this. Update all callers.
874 (remote_fileio_to_fio_uint): Rename to...
875 (host_to_fileio_uint): ...this. Update all callers.
876 (remote_fileio_to_fio_time): Rename to...
877 (host_to_fileio_time): ...this. Update all callers.
878 (remote_fileio_to_fio_stat): Rename to...
879 (host_to_fileio_stat): ...this.
880 Update all references.
881 * common/common-remote-fileio.c: Rename to...
882 * common/fileio.c: ...this. Update all references.
883 (remote_fileio_to_fio_error): Rename to...
884 (host_to_fileio_error): ...this. Update all callers.
885 (remote_fileio_mode_to_target): Rename to...
886 (fileio_mode_pack): ...this. Update all callers.
887 (remote_fileio_to_fio_mode): Rename to...
888 (host_to_fileio_mode): ...this. Update all callers.
889 (remote_fileio_to_fio_ulong): Rename to...
890 (host_to_fileio_ulong): ...this. Update all callers.
891 (remote_fileio_to_fio_stat): Rename to...
892 (host_to_fileio_stat): ...this. Update all callers.
893
894 2015-04-09 Andy Wingo <wingo@igalia.com>
895
896 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
897 (frame_functions): Bind gdbscm_frame_read_register to
898 frame-read-register.
899 * guile/lib/gdb.scm (frame-read-register): Export.
900
901 2015-04-09 Gary Benson <gbenson@redhat.com>
902
903 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
904 New declaration.
905 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
906 New function, factored out the named functions below.
907 * inf-child.c (gdb/fileio.h): Remove include.
908 (common-remote-fileio.h): New include.
909 (inf_child_errno_to_fileio_error): Remove function. Update
910 all callers to use remote_fileio_to_fio_error.
911 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
912
913 2015-04-09 Andy Wingo <wingo@igalia.com>
914
915 * MAINTAINERS (Write After Approval): Add Andy Wingo.
916
917 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
918
919 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
920 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
921 * configure: Regenerated.
922
923 2015-04-09 Pedro Alves <palves@redhat.com>
924
925 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
926 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
927 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
928 * gnulib/import/Makefile.am: Update.
929 * gnulib/import/Makefile.in: Update.
930 * gnulib/import/m4/gnulib-cache.m4: Update.
931 * gnulib/import/m4/gnulib-comp.m4: Update.
932 * gnulib/import/m4/strtok_r.m4: New file.
933 * gnulib/import/strtok_r.c: New file.
934
935 2015-04-09 Pedro Alves <palves@redhat.com>
936
937 * gnulib/update-gnulib.sh (aclocal version check): Filter out
938 "called too early to check prototype".
939
940 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
941
942 PR python/16699
943 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
944 use a caching mechanism. Adjust comments and code to reflect
945 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
946 (cmdpy_completer_handle_brkchars): Adjust call to
947 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
948 (cmdpy_completer): Likewise.
949
950 2015-04-08 Yao Qi <yao.qi@linaro.org>
951
952 * spu-tdep.c (spu_gdbarch_init): Don't call
953 set_gdbarch_cannot_step_breakpoint.
954
955 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
956
957 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
958
959 2015-04-07 Pedro Alves <palves@redhat.com>
960
961 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
962 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
963 (delete_exited_threads): New declaration.
964 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
965 * linux-nat.c (linux_nat_update_thread_list): New function.
966 (linux_nat_add_target): Install it.
967 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
968 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
969 (delete_exited_threads): New function.
970
971 2015-04-07 Pedro Alves <pedro@codesourcery.com>
972
973 * infrun.c (resume) <displaced stepping debug output>: Get the
974 leader thread's regcache, not resume_ptid's.
975
976 2015-04-06 Doug Evans <xdje42@gmail.com>
977
978 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
979 VAR_DOMAIN.
980 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
981 Include symbol domain in debugging output.
982
983 2015-04-06 Pedro Alves <palves@redhat.com>
984 Bernd Edlinger <bernd.edlinger@hotmail.de>
985
986 * configure.ac: Remove the mingw32-specific stub-termcap.o
987 fallback, and instead fallback to the stub termcap on all hosts.
988 * configure: Regenerate.
989 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
990 symbols.
991
992 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
993
994 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
995 "top_level" parameter.
996 (resolve_dynamic_type_internal): Remove the unused "top_level"
997 parameter. Update call to is_dynamic_type_internal.
998 (is_dynamic_type): Update call to is_dynamic_type_internal.
999 (resolve_dynamic_range): Update call to
1000 resolve_dynamic_type_internal.
1001 (resolve_dynamic_union): Likewise.
1002 (resolve_dynamic_struct): Likewise.
1003 (resolve_dynamic_type): Likewise.
1004
1005 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1006
1007 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
1008 TYPE_CODE_REF types so that they are not considered as dynamic
1009 depending on the referenced type.
1010 (resolve_dynamic_type_internal): Likewise.
1011
1012 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
1013
1014 * Makefile.in (top_srcdir): New.
1015 * configure: Regenerated.
1016
1017 2015-04-02 Gary Benson <gbenson@redhat.com>
1018
1019 * NEWS: Announce the new default sysroot of "target:".
1020
1021 2015-04-02 Gary Benson <gbenson@redhat.com>
1022
1023 * main.c (captured_main): Set gdb_sysroot to "target:"
1024 if not otherwise set.
1025
1026 2015-04-02 Gary Benson <gbenson@redhat.com>
1027
1028 * exec.c (exec_file_attach): Support "target:" filenames.
1029
1030 2015-04-02 Gary Benson <gbenson@redhat.com>
1031
1032 * solib.c (solib_find): Strip "target:" prefix from sysroot
1033 if accessing local files.
1034
1035 2015-04-02 Gary Benson <gbenson@redhat.com>
1036
1037 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
1038 checks and error messages.
1039
1040 2015-04-02 Gary Benson <gbenson@redhat.com>
1041
1042 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
1043 (remote_filename_p): Remove declaration.
1044 (remote_bfd_open): Likewise.
1045 * remote.c (remote_bfd_iovec_open): Remove function.
1046 (remote_bfd_iovec_close): Likewise.
1047 (remote_bfd_iovec_pread): Likewise.
1048 (remote_bfd_iovec_stat): Likewise.
1049 (remote_filename_p): Likewise.
1050 (remote_bfd_open): Likewise.
1051 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
1052 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
1053 (gdb_bfd_open_maybe_remote): Remove function.
1054 (symfile_bfd_open): Replace remote filename check with
1055 target filename check.
1056 (reread_symbols): Use gdb_bfd_open.
1057 * build-id.c (gdbcore.h): New include.
1058 (build_id_to_debug_bfd): Use gdb_bfd_open.
1059 * infcmd.c (attach_command_post_wait): Remove remote filename
1060 check.
1061 * solib.c (solib_find): Replace remote-specific handling with
1062 target-specific handling. Update comments where necessary.
1063 (solib_bfd_open): Replace remote-specific handling with
1064 target-specific handling.
1065 (gdb_sysroot_changed): New function.
1066 (_initialize_solib): Call the above when gdb_sysroot changes.
1067 * windows-tdep.c (gdbcore.h): New include.
1068 (windows_xfer_shared_library): Use gdb_bfd_open.
1069
1070 2015-04-02 Gary Benson <gbenson@redhat.com>
1071
1072 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
1073 (is_target_filename): New declaration.
1074 (gdb_bfd_has_target_filename): Likewise.
1075 (gdb_bfd_open): Update documentation comment.
1076 * gdb_bfd.c (target.h): New include.
1077 (gdb/fileio.h): Likewise.
1078 (is_target_filename): New function.
1079 (gdb_bfd_has_target_filename): Likewise.
1080 (fileio_errno_to_host): Likewise.
1081 (gdb_bfd_iovec_fileio_open): Likewise.
1082 (gdb_bfd_iovec_fileio_pread): Likewise.
1083 (gdb_bfd_iovec_fileio_close): Likewise.
1084 (gdb_bfd_iovec_fileio_fstat): Likewise.
1085 (gdb_bfd_open): Use target fileio to access paths prefixed
1086 with "target:" where necessary.
1087
1088 2015-04-02 Gary Benson <gbenson@redhat.com>
1089
1090 * target.h (struct target_ops) <to_filesystem_is_local>:
1091 New field.
1092 (target_filesystem_is_local): New macro.
1093 * target-delegates.c: Regenerate.
1094 * remote.c (remote_filesystem_is_local): New function.
1095 (init_remote_ops): Initialize to_filesystem_is_local.
1096
1097 2015-04-02 Gary Benson <gbenson@redhat.com>
1098
1099 * target.h (struct target_ops) <to_fileio_fstat>: New field.
1100 (target_fileio_fstat): New declaration.
1101 * target.c (target_fileio_fstat): New function.
1102 * inf-child.c (inf_child_fileio_fstat): Likewise.
1103 (inf_child_target): Initialize to_fileio_fstat.
1104 * remote.c (init_remote_ops): Likewise.
1105
1106 2015-04-01 Sasha Smundak <asmundak@google.com>
1107
1108 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
1109 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
1110 (py-unwind.o): New recipe.
1111 * NEWS: mention Python frame unwinding.
1112 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
1113 gdb/unwinder.py and gdb/command/unwinder.py
1114 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
1115 list.
1116 (execute_unwinders): New function.
1117 * python/lib/gdb/command/unwinders.py: New file.
1118 * python/lib/gdb/unwinder.py: New file.
1119 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
1120 (objfpy_dealloc): Decrement frame_unwinders reference count.
1121 (objfpy_initialize): Create frame_unwinders list.
1122 (objfpy_get_frame_unwinders): New function.
1123 (objfpy_set_frame_unwinders): Ditto.
1124 (objfile_getset): Add frame_unwinders attribute to Objfile.
1125 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
1126 (pspy_dealloc): Decrement frame_unwinders reference count.
1127 (pspy_initialize): Create frame_unwinders list.
1128 (pspy_get_frame_unwinders): New function.
1129 (pspy_set_frame_unwinders): Ditto.
1130 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
1131 * python/py-unwind.c: New file.
1132 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
1133 (objpy_get_frame_unwinders): New prototype.
1134 (gdbpy_initialize_unwind): New prototype.
1135 * python/python.c (gdbpy_apply_type_printers): Call
1136 gdbpy_initialize_unwind.
1137
1138 2015-04-01 Pedro Alves <palves@redhat.com>
1139
1140 * infrun.c (resume): Check currently_stepping after clearing
1141 stepped_breakpoint, not before.
1142
1143 2015-04-01 Pedro Alves <palves@redhat.com>
1144
1145 * infrun.c (print_target_wait_results): Print all the ptid
1146 elements.
1147
1148 2015-04-01 Pedro Alves <palves@redhat.com>
1149
1150 * infrun.c (keep_going): Also discard cleanups if inserting
1151 breakpoints fails.
1152
1153 2015-04-01 Pedro Alves <palves@redhat.com>
1154
1155 * infrun.c (wait_for_inferior): Install the
1156 finish_thread_state_cleanup cleanup across the whole function, not
1157 just around handle_inferior_event.
1158
1159 2015-04-01 Pedro Alves <palves@redhat.com>
1160
1161 * infrun.c (resume) <step past permanent breakpoint>: Use
1162 do_target_resume.
1163
1164 2015-04-01 Pedro Alves <palves@redhat.com>
1165
1166 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
1167
1168 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
1169
1170 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
1171
1172 2015-04-01 Pedro Alves <palves@redhat.com>
1173
1174 * linux-thread-db.c (record_thread): Readd the thread to gdb's
1175 list if it was marked exited.
1176
1177 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
1178
1179 * configure: Regenerated.
1180
1181 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
1182 Jan Kratochvil <jan.kratochvil@redhat.com>
1183 Oleg Nesterov <oleg@redhat.com>
1184
1185 PR corefiles/16092
1186 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
1187 New enum identifying the various options of the coredump_filter
1188 file.
1189 (struct smaps_vmflags): New struct.
1190 (use_coredump_filter): New variable.
1191 (decode_vmflags): New function.
1192 (mapping_is_anonymous_p): Likewise.
1193 (dump_mapping_p): Likewise.
1194 (linux_find_memory_regions_full): New variables
1195 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
1196 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
1197 parsing of its information. Implement memory mapping filtering
1198 based on its contents.
1199 (show_use_coredump_filter): New function.
1200 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
1201 * NEWS: Mention the possibility of using the
1202 '/proc/PID/coredump_filter' file when generating a corefile.
1203 Mention new command 'set use-coredump-filter'.
1204
1205 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
1206
1207 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
1208 read_memory_unsigned_integer.
1209
1210 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
1211
1212 * Makefile.in (ZLIB): New.
1213 (ZLIBINC): Likewise.
1214 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
1215 (CLIBS): Add $(ZLIB).
1216 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
1217 Add -lz to LIBS.
1218 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
1219 * top.c (print_gdb_configuration): Remove --with-zlib and
1220 --without-zlib.
1221 * config.in: Regenerated.
1222 * configure: Likewise.
1223
1224 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
1225
1226 * NEWS: Mention info os cpus support.
1227 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
1228 (struct osdata_type): Add cpus entry, reorder the entries in
1229 alphabetical order.
1230
1231 2015-03-31 Matthias Klose <doko@ubuntu.com>
1232
1233 * compile/compile.c (compile_to_object): Allow triplets with or
1234 without vendor set.
1235
1236 2015-03-30 Doug Evans <dje@google.com>
1237
1238 PR c++/18141
1239 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
1240 klass in VAR_DOMAIN.
1241
1242 2015-03-30 Gary Benson <gbenson@redhat.com>
1243
1244 * remote.c (remote_mourn_1): Remove function. Update all callers
1245 to use remote_mourn.
1246 (extended_remote_mourn_1): Remove function. Update all callers
1247 to use extended_remote_mourn.
1248 (extended_remote_attach_1): Remove function. Update all callers
1249 to use extended_remote_attach.
1250
1251 2015-03-28 James Bowman <james.bowman@ftdichip.com>
1252
1253 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
1254 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
1255 (ALLDEPFILES): Add ft32-tdep.c.
1256 * configure.tgt: Add FT32 entry.
1257 * ft32-tdep.c: New file, FT32 target-dependent code.
1258 * ft32-tdep.h: New file, FT32 target-dependent code.
1259
1260 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1261
1262 Revert:
1263 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1264 Code cleanup.
1265 * printcmd.c (print_command_1): Move expr variable scope.
1266
1267 2015-03-27 Joel Brobecker <brobecker@adacore.com>
1268
1269 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
1270
1271 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
1272
1273 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
1274 sections.
1275
1276 2015-03-26 Joel Brobecker <brobecker@adacore.com>
1277
1278 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
1279 exception raised while parsing the probe arguments.
1280 Force parsing to be done using the C language parser.
1281 * expression.h (parse_expression_with_language): Declare.
1282 * parse.c (parse_expression_with_language): New function.
1283
1284 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
1285
1286 * MAINTAINERS (Write After Approval): Add "Jon Turney".
1287
1288 2015-03-26 Andy Wingo <wingo@igalia.com>
1289
1290 PR symtab/18148
1291 * dwarf2read.c (struct partial_die_info): Add has_const_value
1292 member.
1293 (add_partial_symbol): Don't punt on symbols that have const_value
1294 attributes.
1295 (read_partial_die): Detect DW_AT_const_value.
1296
1297 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1298
1299 Code cleanup.
1300 * printcmd.c (print_command_1): Move expr variable scope.
1301
1302 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1303
1304 Code cleanup.
1305 * printcmd.c (validate_format): Make the parameter cmdname const.
1306
1307 2015-03-26 Don Breazeal <donb@codesourcery.com>
1308
1309 * remote.c (_initialize_remote): Update comment.
1310
1311 2015-03-26 Pedro Alves <palves@redhat.com>
1312 Jon TURNEY <jon.turney@dronecode.org.uk>
1313
1314 * coffread.c (coff_symfile_read): When constructing the name of an
1315 import stub symbol from import symbol for amd64, only skip the
1316 char after _imp_ if the target is underscored (like i386) and the
1317 char is indeed the target's leading char.
1318
1319 2015-03-25 Pedro Alves <palves@redhat.com>
1320
1321 * target.h <to_async>: Replace 'callback' and 'context' parameters
1322 with boolean 'enable' parameter.
1323 (target_async): Replace CALLBACK and CONTEXT parameters with
1324 boolean ENABLE parameter.
1325 * inf-loop.c (inferior_event_handler): Adjust.
1326 * linux-nat.c (linux_nat_attach, linux_nat_resume)
1327 (linux_nat_resume): Adjust.
1328 (async_client_callback, async_client_context): Delete.
1329 (handle_target_event): Call inferior_event_handler directly.
1330 (linux_nat_async): Replace 'callback' and 'context' parameters
1331 with boolean 'enable' parameter. Adjust. Remove references to
1332 async_client_callback and async_client_context.
1333 (linux_nat_close): Adjust.
1334 * record-btrace.c (record_btrace_async): Replace 'callback' and
1335 'context' parameters with boolean 'enable' parameter. Adjust.
1336 (record_btrace_resume): Adjust.
1337 * record-full.c (record_full_async): Replace 'callback' and
1338 'context' parameters with boolean 'enable' parameter. Adjust.
1339 (record_full_resume, record_full_core_resume): Adjust.
1340 * remote.c (struct remote_state) <async_client_callback,
1341 async_client_context>: Delete fields.
1342 (remote_start_remote, extended_remote_attach_1, remote_resume)
1343 (extended_remote_create_inferior): Adjust.
1344 (remote_async_serial_handler): Call inferior_event_handler
1345 directly.
1346 (remote_async): Replace 'callback' and 'context' parameters with
1347 boolean 'enable' parameter. Adjust.
1348 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
1349 Adjust.
1350 * target-delegates.c: Regenerate.
1351
1352 2015-03-25 Gary Benson <gbenson@redhat.com>
1353 Pedro Alves <palves@redhat.com>
1354
1355 * target.c (fileio_ft_t): New typedef, define object vector.
1356 (fileio_fhandles): New static variable.
1357 (is_closed_fileio_fh): New macro.
1358 (lowest_closed_fd): New static variable.
1359 (acquire_fileio_fd): New function.
1360 (release_fileio_fd): Likewise.
1361 (fileio_fd_to_fh): New macro.
1362 (target_fileio_open): Wrap the file descriptor on success.
1363 (target_fileio_pwrite): Updated to use wrapped file descriptor.
1364 (target_fileio_pread): Likewise.
1365 (target_fileio_close): Likewise.
1366
1367 2015-03-24 Pedro Alves <palves@redhat.com>
1368
1369 * thread.c (thread_apply_all_command): Take exited threads into
1370 account.
1371
1372 2015-03-24 Pedro Alves <palves@redhat.com>
1373
1374 * infrun.c (resume, proceed): Mention
1375 switch_back_to_stepped_thread, not switch_back_to_stepping.
1376
1377 2015-03-24 Pedro Alves <palves@redhat.com>
1378
1379 * infrun.c (user_visible_resume_ptid): Rewrite going from
1380 most-locked to unlocked instead of the opposite. Move comment ...
1381 * infrun.h (user_visible_resume_ptid): ... here.
1382
1383 2015-03-24 Pedro Alves <palves@redhat.com>
1384
1385 * linux-nat.c (linux_nat_resume): Output debug logs before trying
1386 to resume the event lwp. Use the lwp's ptid instead of the passed
1387 in (maybe wildcard) ptid.
1388 (stop_wait_callback): Tweak debug log output.
1389 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
1390 TRAP_TRACE.
1391 (linux_nat_filter_event): In debug output, distinguish a
1392 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
1393 before trying to resume the lwp.
1394
1395 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1396
1397 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
1398 pointer indirection.
1399 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
1400 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
1401
1402 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1403
1404 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
1405 Renames DYN_ATTR_DATA_LOCATION.
1406 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
1407 DYN_ATTR_DATA_LOCATION.
1408 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
1409 instead of DYN_ATTR_DATA_LOCATION.
1410
1411 2015-03-24 Pedro Alves <palves@redhat.com>
1412
1413 * breakpoint.c (until_break_command): Adjust call to proceed.
1414 * gdbthread.h (struct thread_control_state) <stepping_command>:
1415 New field.
1416 * infcall.c (run_inferior_call): Adjust call to proceed.
1417 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
1418 Adjust calls to proceed.
1419 (set_step_frame): Set the current thread's step_start_function
1420 here.
1421 (step_once): Adjust calls to proceed.
1422 (jump_command, signal_command, until_next_command)
1423 (finish_backward, finish_forward, proceed_after_attach_callback)
1424 (attach_command_post_wait): Adjust calls to proceed.
1425 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
1426 (do_target_resume): New function, factored out from ...
1427 (resume): ... here. Remove 'step' parameter. Instead, check
1428 currently_stepping to determine whether the thread should be
1429 single-stepped.
1430 (proceed): Remove 'step' parameter and don't set the thread's
1431 step_start_function here. Adjust call to 'resume'.
1432 (handle_inferior_event): Adjust calls to 'resume'.
1433 (switch_back_to_stepped_thread): Use do_target_resume instead of
1434 'resume'.
1435 (keep_going): Adjust calls to 'resume'.
1436 * infrun.h (proceed): Remove 'step' parameter.
1437 (resume): Likewise.
1438 * windows-nat.c (do_initial_windows_stuff): Adjust call to
1439 'resume'.
1440 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
1441
1442 2015-03-24 Pedro Alves <palves@redhat.com>
1443
1444 * gdbthread.h (struct thread_control_state) <stepping_command>:
1445 New field.
1446 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
1447 the thread's stepping_command field.
1448 * infrun.c (resume): Check the thread's stepping_command flag to
1449 determine which threads should be resumed. Rename 'entry_step'
1450 local to user_step.
1451 (clear_proceed_status_thread): Clear 'stepping_command'.
1452 (schedlock_applies): Change parameter type to struct thread_info
1453 pointer. Adjust.
1454 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
1455 (switch_back_to_stepped_thread): Adjust calls to
1456 'schedlock_applies'.
1457 (_initialize_infrun): Adjust "set scheduler-locking step" help.
1458
1459 2015-03-24 Pedro Alves <palves@redhat.com>
1460
1461 * infrun.c (step_start_function): Delete and ...
1462 * gdbthread.h (struct thread_control_state) <step_start_function>:
1463 ... now a field here.
1464 * infrun.c (clear_proceed_status_thread): Clear the thread's
1465 step_start_function.
1466 (proceed, process_event_stop_test, print_stop_event): Adjust.
1467
1468 2015-03-24 Pedro Alves <palves@redhat.com>
1469
1470 * infrun.c (proceed): No longer handle negative step.
1471
1472 2015-03-24 Gary Benson <gbenson@redhat.com>
1473
1474 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
1475 (x86_linux_prepare_to_resume): Likewise.
1476 * x86-linux-nat.c (x86_linux_new_thread):
1477 Moved to nat/x86-linux.c.
1478 (x86_linux_prepare_to_resume): Likewise.
1479 * nat/x86-linux.c (x86_linux_new_thread): New function.
1480 (x86_linux_prepare_to_resume): Likewise.
1481
1482 2015-03-24 Gary Benson <gbenson@redhat.com>
1483
1484 * nat/x86-linux-dregs.h: New file.
1485 * nat/x86-linux-dregs.c: Likewise.
1486 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
1487 (x86-linux-dregs.o): New rule.
1488 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
1489 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1490 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
1491 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
1492 (x86_linux_dr_get): Likewise.
1493 (x86_linux_dr_set): Likewise.
1494 (x86_linux_dr_get_addr): Likewise.
1495 (x86_linux_dr_get_control): Likewise.
1496 (x86_linux_dr_get_status): Likewise.
1497 (update_debug_registers_callback): Likewise.
1498 (x86_linux_dr_set_control): Likewise.
1499 (x86_linux_dr_set_addr): Likewise.
1500 (x86_linux_update_debug_registers): Likewise.
1501
1502 2015-03-24 Gary Benson <gbenson@redhat.com>
1503
1504 * x86-linux-nat.c (x86_linux_update_debug_registers):
1505 New function, factored out from...
1506 (x86_linux_prepare_to_resume): ...this.
1507
1508 2015-03-24 Gary Benson <gbenson@redhat.com>
1509
1510 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
1511 (x86_linux_dr_set): Likewise.
1512 (x86_linux_dr_get_addr): Likewise.
1513 (x86_linux_dr_get_control): Likewise.
1514 (x86_linux_dr_get_status): Likewise.
1515 (update_debug_registers_callback): Likewise.
1516 (x86_linux_dr_set_control): Likewise.
1517 (x86_linux_dr_set_addr): Likewise.
1518 (x86_linux_prepare_to_resume): Likewise.
1519 (x86_linux_new_thread): Likewise.
1520
1521 2015-03-24 Gary Benson <gbenson@redhat.com>
1522
1523 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
1524 (x86_linux_new_thread): Rename argument.
1525
1526 2015-03-24 Gary Benson <gbenson@redhat.com>
1527
1528 * nat/x86-linux.h: New file.
1529 * nat/x86-linux.c: Likewise.
1530 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
1531 (x86-linux.o): New rule.
1532 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
1533 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1534 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
1535 (lwp_set_arch_private_info): New declaration.
1536 (lwp_arch_private_info): Likewise.
1537 * linux-nat.c (lwp_set_arch_private_info): New function.
1538 (lwp_arch_private_info): Likewise.
1539 * x86-linux-nat.c: Include nat/x86-linux.h.
1540 (arch_lwp_info): Removed structure.
1541 (update_debug_registers_callback):
1542 Use lwp_set_debug_registers_changed.
1543 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
1544 and lwp_set_debug_registers_changed.
1545 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
1546
1547 2015-03-24 Gary Benson <gbenson@redhat.com>
1548
1549 * nat/linux-nat.h (ptid_of_lwp): New declaration.
1550 (lwp_is_stopped): Likewise.
1551 (lwp_stop_reason): Likewise.
1552 * linux-nat.c (ptid_of_lwp): New function.
1553 (lwp_is_stopped): Likewise.
1554 (lwp_is_stopped_by_watchpoint): Likewise.
1555 * x86-linux-nat.c (update_debug_registers_callback):
1556 Use lwp_is_stopped.
1557 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
1558 lwp_stop_reason.
1559
1560 2015-03-24 Gary Benson <gbenson@redhat.com>
1561
1562 * linux-nat.h (linux_stop_lwp): Move declaration to...
1563 * nat/linux-nat.h (linux_stop_lwp): New declaration.
1564
1565 2015-03-24 Gary Benson <gbenson@redhat.com>
1566
1567 * linux-nat.h: Include nat/linux-nat.h.
1568 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
1569 * nat/linux-nat.h (struct lwp_info): New forward declaration.
1570 (iterate_over_lwps_ftype): New typedef.
1571 (iterate_over_lwps): New declaration.
1572 * linux-nat.h (iterate_over_lwps): Update comment. Use
1573 iterate_over_lwps_ftype. Update callback return value check.
1574
1575 2015-03-24 Gary Benson <gbenson@redhat.com>
1576
1577 * x86-nat.h (x86_debug_reg_state): Move declaration to...
1578 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
1579
1580 2015-03-24 Gary Benson <gbenson@redhat.com>
1581
1582 * nat/linux-nat.h (current_lwp_ptid): New declaration.
1583 * linux-nat.c (current_lwp_ptid): New function.
1584 * x86-linux-nat.c: Include nat/linux-nat.h.
1585 (x86_linux_dr_get_addr): Use current_lwp_ptid.
1586 (x86_linux_dr_get_control): Likewise.
1587 (x86_linux_dr_get_status): Likewise.
1588 (x86_linux_dr_set_control): Likewise.
1589 (x86_linux_dr_set_addr): Likewise.
1590
1591 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
1592
1593 PR breakpoints/16466
1594 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
1595
1596 2015-03-23 Joel Brobecker <brobecker@adacore.com>
1597
1598 * ser-mingw.c (ser_windows_setparity): Fix indentation.
1599 * ser-unix.c (hardwire_setparity): Likewise.
1600
1601 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1602
1603 * NEWS: Mention set/show serial parity command.
1604 * monitor.c (monitor_open): Call serial_setparity.
1605 * remote.c (remote_open_1): Likewise.
1606 * ser-base.c (ser_base_serparity): New function.
1607 * ser-base.h (ser_base_setparity): Add declaration.
1608 * ser-go32.c (dos_ops): Set "setparity" field.
1609 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
1610 state.Parity.
1611 (ser_windows_setparity): New function.
1612 (hardwire_ops): Add ser_windows_setparity.
1613 (tty_ops): Add NULL for setparity field.
1614 (pipe_ops): Add ser_base_setparity.
1615 (tcp_ops): Likewise.
1616 * ser-pipe.c (pipe_ops): Likewise.
1617 * ser-tcp.c (tcp_ops): Likewise.
1618 * ser-unix.c (hardwire_setparity): Add declaration.
1619 (hardwire_raw): Don't reset PARENB flag.
1620 (hardwire_setparity): New function.
1621 (hardwire_ops): Add hardwire_setparity.
1622 * serial.c (serial_setparity): New function.
1623 (serial_parity): New global.
1624 (parity_none, parity_odd, parity_even, parity_enums, parity):
1625 New static globals.
1626 (set_parity): New function.
1627 (_initialize_serial): Add set/show serial parity commands.
1628 * serial.h (GDBPARITY_NONE): Define.
1629 (GDBPARITY_ODD): Define.
1630 (GDBPARITY_EVEN): Define.
1631 (serial_setparity) Add declaration.
1632 (struct serial_ops): Add setparity field.
1633 * target.h (serial_parity): Add declaration.
1634
1635 2015-03-23 Keith Seitz <keiths@redhat.com>
1636
1637 * linespec.c (linespec_lexer_lex_keyword): Update comment.
1638
1639 2015-03-23 Keith Seitz <keiths@redhat.com>
1640
1641 * breakpoint.c (parse_breakpoint_sals): Use
1642 linespec_lexer_lex_keyword to ascertain if the user specified
1643 a NULL location.
1644 * linespec.c [IF_KEYWORD_INDEX]: Define.
1645 (linespec_lexer_lex_keyword): Export.
1646 (struct ls_parser) <keyword_ok>: Remove.
1647 A keyword is only a keyword if not followed by another keyword.
1648 (linespec_lexer_lex_one): Remove keyword_ok handling.
1649 Add comment explaining why the parsing stream is not advanced
1650 when a keyword is seen.
1651 (parse_linespec): Remove parser->keyword_ok.
1652 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
1653
1654 2015-03-23 Keith Seitz <keiths@redhat.com>
1655
1656 PR gdb/18021
1657 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
1658 if we find a static method with DW_AT_vtable_elem_location.
1659
1660 2015-03-21 Eli Zaretskii <eliz@gnu.org>
1661
1662 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
1663 before the second loop, to avoid undefined behavior. Reported by
1664 Anton Blanchard <anton@samba.org>.
1665
1666 2015-03-20 Keven Boell <keven.boell@intel.com>
1667
1668 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
1669 data_location usage to linked list.
1670 (resolve_dynamic_type_internal): Adapt data_location to
1671 linked list.
1672 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
1673 (copy_type_recursive, copy_type): Add copy of linked list.
1674 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
1675 (struct dynamic_prop_list): New struct.
1676 * dwarf2read.c (set_die_type): Set data_location data.
1677
1678 2015-03-20 Pedro Alves <palves@redhat.com>
1679
1680 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
1681 inner block and make it const.
1682 * machoread.c (get_archive_prefix_len): Make "lparen" const.
1683
1684 2015-03-20 Pedro Alves <palves@redhat.com>
1685
1686 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
1687 * breakpoint.h (set_breakpoint_condition): Update declaration.
1688
1689 2015-03-20 Pedro Alves <palves@redhat.com>
1690
1691 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
1692
1693 2015-03-20 Pedro Alves <palves@redhat.com>
1694
1695 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
1696
1697 2015-03-20 Pedro Alves <palves@redhat.com>
1698
1699 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
1700
1701 2015-03-20 Pedro Alves <palves@redhat.com>
1702
1703 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
1704 (nto_init_solib_absolute_prefix): Likewise.
1705
1706 2015-03-20 Pedro Alves <palves@redhat.com>
1707
1708 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
1709 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
1710
1711 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1712
1713 * config/djgpp/README: Remove gdb.hp.
1714
1715 2015-03-20 Yao Qi <yao.qi@linaro.org>
1716
1717 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
1718 set_gdbarch_cannot_step_breakpoint.
1719
1720 2015-03-19 Pedro Alves <palves@redhat.com>
1721
1722 * linux-nat.c (linux_resume_one_lwp): Rename to ...
1723 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
1724 instead call perror_with_name.
1725 (check_ptrace_stopped_lwp_gone): New function.
1726 (linux_resume_one_lwp): Reimplement as wrapper around
1727 linux_resume_one_lwp_throw that swallows errors if the LWP is
1728 gone.
1729 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
1730 swallows errors if the LWP is gone. Use
1731 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
1732
1733 2015-03-19 Pedro Alves <palves@redhat.com>
1734
1735 * linux-nat.c (status_callback): Return early if the LWP has no
1736 status pending.
1737
1738 2015-03-19 Pedro Alves <palves@redhat.com>
1739
1740 * linux-nat.c (select_event_lwp_callback): Update comment to no
1741 longer mention SIGTRAP.
1742
1743 2015-03-18 Tristan Gingold <gingold@adacore.com>
1744
1745 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
1746 redirection code to ...
1747 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
1748 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
1749
1750 2015-03-18 Gary Benson <gbenson@redhat.com>
1751
1752 (remote_protocol_features): Remove the "vFile:fstat" feature.
1753 (remote_hostio_fstat): Probe for "vFile:fstat" support.
1754
1755 2015-03-11 Yao Qi <yao.qi@linaro.org>
1756
1757 PR tdep/18107
1758 * aarch64-linux-tdep.c: Include xml-syscall.h
1759 (aarch64_linux_get_syscall_number): New function.
1760 (aarch64_linux_init_abi): Call
1761 set_gdbarch_get_syscall_number.
1762 * syscalls/aarch64-linux.xml: New file.
1763
1764 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1765
1766 * ser-base.h (ser_base_setstopbits): Change second argument name
1767 from "rate" to "num".
1768
1769 2015-03-17 Gary Benson <gbenson@redhat.com>
1770 Luke Allardyce <lukeallardyce@gmail.com>
1771
1772 PR gdb/18131
1773 * common/common-remote-fileio.h (sys/stat.h): New include.
1774 (stuct stat): Remove forward declaration.
1775
1776 2015-03-16 John Baldwin <jhb@FreeBSD.org>
1777
1778 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
1779 before writing core register notes.
1780
1781 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1782 Pedro Alves <palves@redhat.com>
1783
1784 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
1785 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
1786 (tgoto): Wrap with extern "C".
1787
1788 2015-03-16 Pedro Alves <palves@redhat.com>
1789 Yuanhui Zhang <asmwarrior@gmail.com>
1790
1791 * stub-termcap.c (tputs): Change prototype.
1792
1793 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1794 Pedro Alves <palves@redhat.com>
1795
1796 * windows-nat.c (struct thread_info_struct): Rename to ...
1797 (struct windows_thread_info_struct): ... this.
1798 (thread_info): Rename to ...
1799 (windows_thread_info): ... this.
1800 All users updated.
1801
1802 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1803 Pedro Alves <palves@redhat.com>
1804
1805 * NEWS: New Removed targets and native configurations.
1806
1807 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1808
1809 Remove HPUX.
1810 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
1811 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
1812 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
1813 ia64-hpux-tdep.h, solib-ia64-hpux.h.
1814 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
1815 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
1816 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
1817 hppa-hpux-tdep.c.
1818 * config/ia64/hpux.mh: Remove file.
1819 * config/pa/hpux.mh: Remove file.
1820 * configure: Rebuilt.
1821 * configure.ac (dlgetmodinfo, somread.o): Remove.
1822 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1823 (ia64-*-hpux*): Remove its float format exception.
1824 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1825 * hppa-hpux-nat.c: Remove file.
1826 * hppa-hpux-tdep.c: Remove file.
1827 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
1828 Move them here from hppa-tdep.h
1829 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
1830 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
1831 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
1832 Move them to hppa-tdep.c.
1833 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
1834 declarations.
1835 * ia64-hpux-nat.c: Remove file.
1836 * ia64-hpux-tdep.c: Remove file.
1837 * ia64-hpux-tdep.h: Remove file.
1838 * inf-ttrace.c: Remove file.
1839 * inf-ttrace.h: Remove file.
1840 * solib-ia64-hpux.c: Remove file.
1841 * solib-ia64-hpux.h: Remove file.
1842 * solib-pa64.c: Remove file.
1843 * solib-pa64.h: Remove file.
1844 * solib-som.c: Remove file.
1845 * solib-som.h: Remove file.
1846 * somread.c: Remove file.
1847
1848 2015-03-13 John Baldwin <jhb@FreeBSD.org>
1849
1850 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
1851 * config.in: Regenerate.
1852 * configure: Regenerate.
1853 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
1854 define.
1855 (fbsd_find_memory_regions): Use kinfo_getvmmap to
1856 enumerate memory regions if present.
1857
1858 2015-03-13 John Baldwin <jhb@FreeBSD.org>
1859
1860 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
1861 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
1862 expressions.
1863 (i386fbsd_sigtramp_p): Likewise.
1864
1865 2015-03-12 John Baldwin <jhb@FreeBSD.org>
1866
1867 * MAINTAINERS (Write After Approval): Add John Baldwin.
1868
1869 2015-03-12 Gary Benson <gbenson@redhat.com>
1870
1871 * solib.c (_initialize_solib): Make "set/show sysroot" use
1872 add_setshow_optional_filename_cmd so it can be restored to
1873 empty after being set.
1874
1875 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1876
1877 * Makefile.in (SFILES): New source break-catch-syscall.c.
1878 (COMMON_OBS): New object break-catch-syscall.o.
1879 * break-catch-syscall.c: New file.
1880 * breakpoint.c: Remove inclusion of "xml-syscall.h".
1881 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
1882 (struct syscall_catchpoint): Likewise.
1883 (dtor_catch_syscall): Likewise.
1884 (catch_syscall_inferior_data): Likewise.
1885 (struct catch_syscall_inferior_data): Likewise.
1886 (get_catch_syscall_inferior_data): Likewise.
1887 (catch_syscall_inferior_data_cleanup): Likewise.
1888 (insert_catch_syscall): Likewise.
1889 (remove_catch_syscall): Likewise.
1890 (breakpoint_hit_catch_syscall): Likewise.
1891 (print_it_catch_syscall): Likewise.
1892 (print_one_catch_syscall): Likewise.
1893 (print_mention_catch_syscall): Likewise.
1894 (print_recreate_catch_syscall): Likewise.
1895 (catch_syscall_breakpoint_ops): Likewise.
1896 (syscall_catchpoint_p): Likewise.
1897 (create_syscall_event_catchpoint): Likewise.
1898 (catch_syscall_split_args): Likewise.
1899 (catch_syscall_command_1): Likewise.
1900 (is_syscall_catchpoint_enabled): Likewise.
1901 (catch_syscall_enabled): Likewise.
1902 (catching_syscall_number): Likewise.
1903 (catch_syscall_completer): Likewise.
1904 (clear_syscall_counts): Likewise.
1905 (initialize_breakpoint_ops): Move initialization of syscall
1906 catchpoints to break-catch-syscall.c.
1907 (_initialize_breakpoint): Move code related to syscall catchpoints
1908 to break-catch-syscall.c.
1909
1910 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1911
1912 * breakpoint.c (breakpoint_find_if): New function.
1913 * breakpoint.h (breakpoint_find_if): New prototype.
1914
1915 2015-03-11 Gary Benson <gbenson@redhat.com>
1916
1917 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
1918 * remote-fileio.c (remote_fileio_to_host_uint): New function.
1919 (remote_fileio_to_host_ulong): Likewise.
1920 (remote_fileio_to_host_mode): Likewise.
1921 (remote_fileio_to_host_time): Likewise.
1922 (remote_fileio_to_host_stat): Likewise.
1923 * remote.c (PACKET_vFile_fstat): New enum value.
1924 (remote_protocol_features): Register the "vFile:fstat" feature.
1925 (remote_hostio_fstat): New function.
1926 (remote_bfd_iovec_stat): Use the above.
1927 (_initialize_remote): Register new "set/show remote
1928 hostio-fstat-packet" command.
1929 * symfile.c (separate_debug_file_exists): Update comment.
1930 * NEWS: Announce new vFile:fstat packet.
1931
1932 2015-03-11 Gary Benson <gbenson@redhat.com>
1933
1934 * common/common-remote-fileio.h: New file.
1935 * common/common-remote-fileio.c: Likewise.
1936 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
1937 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
1938 (COMMON_OBS): Add common-remote-fileio.o.
1939 (common-remote-fileio.o): New rule.
1940 * remote-fileio.h (common-remote-fileio.h): New include.
1941 * remote-fileio.c (gdb/fileio.h): Do not include.
1942 (remote_fileio_to_be): Moved to common-remote-fileio.h.
1943 (remote_fileio_to_fio_uint): Likewise.
1944 (remote_fileio_to_fio_time): Likewise.
1945 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
1946 (remote_fileio_to_fio_mode): Likewise.
1947 (remote_fileio_to_fio_ulong): Likewise.
1948 (remote_fileio_to_fio_stat): Likewise.
1949
1950 2015-03-11 Andy Wingo <wingo@igalia.com>
1951
1952 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
1953 we were checking the cached type, not the cached dynamic type.
1954
1955 2015-03-11 Andy Wingo <wingo@igalia.com>
1956
1957 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
1958 other strings, as these are on the GC'd heap, and will be
1959 collected along with the smob.
1960
1961 2015-03-11 Andy Wingo <wingo@igalia.com>
1962
1963 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
1964 (objfile_functions): Bind gdbscm_objfile_progspace to
1965 objfile-progspace.
1966 * guile/lib/gdb.scm: Add objfile-progspace to exports.
1967
1968 2015-03-11 Andy Wingo <wingo@igalia.com>
1969
1970 * guile/guile.c (_initialize_guile): Disable automatic
1971 finalization, if Guile offers us that possibility.
1972 * guile/guile.c (call_initialize_gdb_module):
1973 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
1974 finalizers in appropriate places.
1975 * configure.ac (AC_TRY_LIBGUILE): Add a check for
1976 scm_set_automatic_finalization_enabled.
1977 * configure: Regenerated.
1978
1979 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1980
1981 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
1982 SAL, if possible.
1983
1984 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1985
1986 * s390-linux-nat.c (struct arch_lwp_info): New.
1987 (s390_fix_watch_points): Rename to...
1988 (s390_prepare_to_resume): ...this. Skip the PER info update
1989 unless the watch points have changed.
1990 (s390_refresh_per_info, s390_new_thread): New functions.
1991 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
1992 s390_fix_watch_points.
1993 (s390_remove_watchpoint): Likewise.
1994 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
1995 Register s390_prepare_to_resume.
1996
1997 2015-03-09 Pedro Alves <palves@redhat.com>
1998
1999 Revert:
2000 2015-03-07 Pedro Alves <palves@redhat.com>
2001 * common/gdb_socket.h: New file.
2002 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
2003 sys/socket.h.
2004 (net_open): Use union gdb_sockaddr_u.
2005
2006 2015-03-07 Pedro Alves <palves@redhat.com>
2007
2008 * configure.ac (build_warnings): Move -Wmissing-prototypes
2009 -Wdeclaration-after-statement -Wmissing-parameter-type
2010 -Wold-style-declaration -Wold-style-definition to the C-specific
2011 set.
2012 * configure: Regenerate.
2013
2014 2015-03-07 Pedro Alves <palves@redhat.com>
2015
2016 * common/gdb_socket.h: New file.
2017 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
2018 sys/socket.h.
2019 (net_open): Use union gdb_sockaddr_u.
2020
2021 2015-03-07 Pedro Alves <palves@redhat.com>
2022
2023 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
2024 (exceptions_state_mc_action_iter)
2025 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
2026 Don't define.
2027 [__cplusplus] (try_scope_depth): New global.
2028 [__cplusplus] (exception_try_scope_entry)
2029 (exception_try_scope_exit, gdb_exception_sliced_copy)
2030 (exception_rethrow): New functions.
2031 (throw_exception): In C++ mode, throw
2032 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
2033 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
2034 (throw_it): In C++ mode, use try_scope_depth.
2035 * common/common-exceptions.h [!__cplusplus]
2036 (exceptions_state_mc_action_iter)
2037 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
2038 Don't declare.
2039 [__cplusplus] (exception_try_scope_entry)
2040 (exception_try_scope_exit, exception_rethrow): Declare.
2041 [__cplusplus] (struct exception_try_scope): New struct.
2042 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
2043 C++ exceptions.
2044 (struct gdb_exception_RETURN_MASK_ALL)
2045 (struct gdb_exception_RETURN_MASK_ERROR)
2046 (struct gdb_exception_RETURN_MASK_QUIT): New types.
2047
2048 2015-03-07 Pedro Alves <palves@redhat.com>
2049
2050 * main.c (handle_command_errors): Remove volatile qualifier from
2051 parameter.
2052
2053 2015-03-07 Pedro Alves <palves@redhat.com>
2054
2055 * breakpoint.c (save_breakpoints): Adjust to avoid code between
2056 TRY and CATCH.
2057 * gdbtypes.c (safe_parse_type): Remove empty line.
2058 (types_deeply_equal):
2059 * guile/scm-frame.c (gdbscm_frame_name):
2060 * linux-thread-db.c (find_new_threads_once):
2061 * python/py-breakpoint.c (bppy_get_commands):
2062 * record-btrace.c (record_btrace_insert_breakpoint)
2063 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
2064 (record_btrace_start_replaying): Adjust to avoid code between TRY
2065 and CATCH.
2066
2067 2015-03-07 Pedro Alves <palves@redhat.com>
2068
2069 * common/common-exceptions.c (struct catcher) <exception>: No
2070 longer a pointer to volatile exception. Now an exception value.
2071 <mask>: Delete field.
2072 (exceptions_state_mc_init): Remove all parameters. Adjust.
2073 (exceptions_state_mc): No longer pop the catcher here.
2074 (exceptions_state_mc_catch): New function.
2075 (throw_exception): Adjust.
2076 * common/common-exceptions.h (exceptions_state_mc_init): Remove
2077 all parameters.
2078 (exceptions_state_mc_catch): Declare.
2079 (TRY_CATCH): Rename to ...
2080 (TRY): ... this. Remove EXCEPTION and MASK parameters.
2081 (CATCH, END_CATCH): New.
2082 All callers adjusted.
2083
2084 2015-03-07 Tom Tromey <tromey@redhat.com>
2085
2086 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
2087
2088 2015-03-07 Pedro Alves <palves@redhat.com>
2089
2090 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2091 (amd64_epilogue_frame_cache): Normal exception handling code.
2092 * break-catch-throw.c (check_status_exception_catchpoint)
2093 (re_set_exception_catchpoint): Ditto.
2094 * cli/cli-interp.c (safe_execute_command):
2095 * cli/cli-script.c (script_from_file): Ditto.
2096 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
2097 Ditto.
2098 * compile/compile-object-run.c (compile_object_run): Ditto.
2099 * cp-abi.c (baseclass_offset): Ditto.
2100 * cp-valprint.c (cp_print_value): Ditto.
2101 * exceptions.c (catch_exceptions_with_msg):
2102 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
2103 * frame.c (get_frame_address_in_block_if_available): Ditto.
2104 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2105 (i386_sigtramp_frame_cache): Ditto.
2106 * infcmd.c (post_create_inferior): Ditto.
2107 * linespec.c (parse_linespec, find_linespec_symbols):
2108 * p-valprint.c (pascal_object_print_value): Ditto.
2109 * parse.c (parse_expression_for_completion): Ditto.
2110 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
2111 * remote.c (remote_get_noisy_reply): Ditto.
2112 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
2113 * solib-svr4.c (solib_svr4_r_map): Ditto.
2114
2115 2015-03-06 Gary Benson <gbenson@redhat.com>
2116
2117 * common/common-utils.h (startswith): New inline function.
2118 All places where this logic was used updated to use the above.
2119
2120 2015-03-05 Pedro Alves <palves@redhat.com>
2121
2122 PR gdb/18002
2123 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
2124 after reading the breakpoint's shadow memory.
2125
2126 2015-03-05 Mark Kettenis <kettenis@gnu.org>
2127
2128 * hppabsd-nat.c: Remove file.
2129 * hppaobsd-nat.c: New file.
2130 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
2131 hppaobsd-nat.c.
2132 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
2133 hppaobsd-nat.o.
2134
2135 2015-03-04 Pedro Alves <palves@redhat.com>
2136
2137 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
2138 (target_decr_pc_after_break): Delete declaration.
2139 * target.c (default_target_decr_pc_after_break)
2140 (target_decr_pc_after_break): Delete.
2141 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
2142 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
2143 * linux-thread-db.c (check_event): Likewise.
2144 * infrun.c (adjust_pc_after_break): Likewise.
2145 * darwin-nat.c (cancel_breakpoint): Likewise.
2146 * aix-thread.c (aix_thread_wait): Likewise.
2147 * target-delegates.c: Regenerate.
2148
2149 2015-03-04 Pedro Alves <palves@redhat.com>
2150
2151 * linux-nat.c (save_sigtrap): Check for breakpoints before
2152 checking watchpoints.
2153 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
2154 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
2155 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
2156 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
2157 (linux_nat_stopped_by_sw_breakpoint)
2158 (linux_nat_supports_stopped_by_sw_breakpoint)
2159 (linux_nat_stopped_by_hw_breakpoint)
2160 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
2161 (linux_nat_wait_1): Don't re-increment the PC if relying on
2162 SIGTRAP's siginfo->si_code.
2163 (linux_nat_add_target): Install new target methods.
2164 * linux-thread-db.c (check_event): Don't account for breakpoint PC
2165 offset if the target already adjusted the PC.
2166 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
2167 (GDB_ARCH_TRAP_BRKPT): New.
2168 (TRAP_HWBKPT): Define if not already defined.
2169
2170 2015-03-04 Pedro Alves <palves@redhat.com>
2171
2172 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
2173 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
2174 Delete field.
2175 <stop_reason>: New field.
2176 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
2177 (packet_set_cmd_state): New function.
2178 (remote_protocol_features): Register the "swbreak" and "hwbreak"
2179 features.
2180 (remote_query_supported): If not disabled with the corresponding
2181 "set remote foo-packet" command, report support for the swbreak
2182 and hwbreak features.
2183 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
2184 field.
2185 <stop_reason>: New field.
2186 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
2187 (remote_wait_as): Adjust.
2188 (remote_stopped_by_sw_breakpoint)
2189 (remote_supports_stopped_by_sw_breakpoint)
2190 (remote_stopped_by_hw_breakpoint)
2191 (remote_supports_stopped_by_hw_breakpoint): New functions.
2192 (remote_stopped_by_watchpoint): New function.
2193 (init_remote_ops): Install them.
2194 (_initialize_remote): Register new "set/show remote
2195 swbreak-feature-packet" and "set/show remote
2196 swbreak-feature-packet" commands.
2197
2198 2015-03-04 Pedro Alves <palves@redhat.com>
2199
2200 * btrace.h: Include target/waitstatus.h.
2201 (struct btrace_thread_info) <stop_reason>: New field.
2202 * record-btrace.c (record_btrace_step_thread): Use
2203 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
2204 (record_btrace_decr_pc_after_break): Delete.
2205 (record_btrace_stopped_by_sw_breakpoint)
2206 (record_btrace_supports_stopped_by_sw_breakpoint)
2207 (record_btrace_stopped_by_hw_breakpoint)
2208 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
2209 (init_record_btrace_ops): Install them.
2210 * record-full.c (record_full_hw_watchpoint): Delete and replace
2211 with ...
2212 (record_full_stop_reason): ... this throughout.
2213 (record_full_exec_insn): Adjust.
2214 (record_full_wait_1): Adjust. No longer re-increment the PC.
2215 (record_full_wait_1): Adjust. Use
2216 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
2217 (record_full_stopped_by_watchpoint): Adjust.
2218 (record_full_stopped_by_sw_breakpoint)
2219 (record_full_supports_stopped_by_sw_breakpoint)
2220 (record_full_supports_stopped_by_sw_breakpoint)
2221 (record_full_stopped_by_hw_breakpoint)
2222 (record_full_supports_stopped_by_hw_breakpoint): New functions.
2223 (init_record_full_ops, init_record_full_core_ops): Install them.
2224 * record.c (record_check_stopped_by_breakpoint): New function.
2225 * record.h: Include target/waitstatus.h.
2226 (record_check_stopped_by_breakpoint): New declaration.
2227
2228 2015-03-04 Pedro Alves <palves@redhat.com>
2229
2230 enum lwp_stop_reason -> enum target_stop_reason
2231 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
2232 (linux_nat_stopped_by_watchpoint, status_callback)
2233 (linux_nat_wait_1): Adjust.
2234 * linux-nat.h (enum lwp_stop_reason): Delete.
2235 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
2236 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
2237 * target/waitstatus.h (enum target_stop_reason): New.
2238
2239 2015-03-04 Pedro Alves <palves@redhat.com>
2240
2241 * breakpoint.c (need_moribund_for_location_type): New function.
2242 (bpstat_stop_status): Don't skipping checking moribund locations
2243 of breakpoint types which the target tell caused a stop.
2244 (program_breakpoint_here_p): New function, factored out from ...
2245 (bp_loc_is_permanent): ... this.
2246 (update_global_location_list): Don't create a moribund location if
2247 the target supports reporting stops of the type of the removed
2248 breakpoint.
2249 * breakpoint.h (program_breakpoint_here_p): New declaration.
2250 * infrun.c (adjust_pc_after_break): Return early if the target has
2251 already adjusted the PC. Add comments.
2252 (handle_signal_stop): If nothing explains a signal, and the target
2253 tells us the stop was caused by a software breakpoint, check if
2254 there's a breakpoint instruction in the memory. If so, adjust the
2255 PC before presenting the stop to the user. Otherwise, ignore the
2256 trap. If nothing explains a signal, and the target tells us the
2257 stop was caused by a hardware breakpoint, ignore the trap.
2258 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
2259 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
2260 to_supports_stopped_by_hw_breakpoint>: New fields.
2261 (target_stopped_by_sw_breakpoint)
2262 (target_supports_stopped_by_sw_breakpoint)
2263 (target_stopped_by_hw_breakpoint)
2264 (target_supports_stopped_by_hw_breakpoint): Define.
2265 * target-delegates.c: Regenerate.
2266
2267 2015-03-04 Pedro Alves <palves@redhat.com>
2268
2269 * infrun.c (follow_fork_inferior): Use the whole of the
2270 inferior_ptid and pending_follow.related_pid ptids instead of
2271 building ptids from the process components. Adjust verbose output
2272 to use target_pid_to_str.
2273 * linux-nat.c (linux_child_follow_fork): Use the whole of the
2274 inferior_ptid and pending_follow.related_pid ptids instead of
2275 building ptids from the process components.
2276
2277 2015-03-04 Mark Kettenis <kettenis@gnu.org>
2278
2279 * inf-ptrace.c [PT_GET_PROCESS_STATE]
2280 (inf_ptrace_insert_fork_catchpoint): New function.
2281 (inf_ptrace_remove_fork_catchpoint): New function.
2282 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
2283
2284 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2285
2286 * s390-linux-tdep.c (s390_register_name): Return empty string
2287 instead of NULL for registers that shouldn't be visible.
2288
2289 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2290
2291 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
2292 XML file for 64-bit targets.
2293
2294 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
2295
2296 * target.h (find_default_create_inferior): Remove declaration.
2297 (find_default_attach): Likewise.
2298
2299 2015-03-03 Pedro Alves <palves@redhat.com>
2300
2301 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
2302 Use ptid_get_pid to get the overall process id when resuming all
2303 threads.
2304
2305 2015-03-03 Pedro Alves <palves@redhat.com>
2306
2307 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
2308 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
2309 * inf-ptrace.c (get_ptrace_pid): New function.
2310 (inf_ptrace_resume): Use it.
2311 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
2312 to the lower layer.
2313
2314 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2315
2316 * nat/linux-btrace.c: Include sys/utsname.h.
2317 (linux_determine_kernel_ptr_bits): New.
2318 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
2319 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
2320 ptr_bits.
2321
2322 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2323
2324 * btrace.c (ftrace_update_function): Treat return as tailcall for
2325 "_dl_runtime_resolve".
2326
2327 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2328
2329 * btrace.h (btrace_function) <lbegin, lend>: Remove.
2330 * btrace.c (ftrace_debug): Do not print the line range.
2331 (ftrace_skip_file, ftrace_update_lines): Remove.
2332 (ftrace_new_function): Remove lbegin and lend initialization.
2333 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
2334 * record-btrace.c (btrace_compute_src_line_range): New.
2335 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
2336
2337 2015-03-02 Pedro Alves <palves@redhat.com>
2338
2339 * infrun.c (follow_exec): Delete all threads of the process except
2340 the event thread. Extended comments.
2341
2342 2015-03-02 Joel Brobecker <brobecker@adacore.com>
2343
2344 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
2345
2346 2015-03-02 Joel Brobecker <brobecker@adacore.com>
2347
2348 * utils.h: Remove <stdbool.h> #include.
2349 (producer_is_gcc): Change return type to "int".
2350 * utils.c (producer_is_gcc): Change return type to int.
2351 Return 1 instead of true, and 0 instead of false.
2352 Adjust function documentation accordingly.
2353
2354 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2355
2356 * s390-linux-nat.c (have_regset_vxrs): New static variable.
2357 (s390_linux_fetch_inferior_registers): Handle vector registers, if
2358 present.
2359 (s390_linux_store_inferior_registers): Likewise.
2360 (s390_get_hwcap): Remove function. Embed its logic...
2361 (s390_read_description): ...here. Yield a target description with
2362 vector registers if applicable.
2363 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
2364 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
2365 "features/s390x-tevx-linux64.c".
2366 (struct gdbarch_tdep) <v0_full_regnum>: New field.
2367 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
2368 for "GNU/Linux-specific registers".
2369 (s390_dwarf_reg_r0l): New enum value.
2370 (s390_dwarf_reg_to_regnum): Support vector registers.
2371 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
2372 of GPR lower halves.
2373 (regnum_is_vxr_full): New function.
2374 (s390_register_name): New function.
2375 (s390_pseudo_register_name): Handle v0-v15, which are composed of
2376 f0-f15 and v0l-v15l.
2377 (s390_pseudo_register_type): Likewise.
2378 (s390_pseudo_register_read): Likewise.
2379 (s390_pseudo_register_write): Likewise.
2380 (s390_value_from_register): Account for the fact that values are
2381 placed left-justified in vector registers.
2382 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
2383 the vector reggroup and omit them from the general reggroup.
2384 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
2385 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
2386 (s390_iterate_over_regset_sections): Add iterations for the two
2387 new vector regsets.
2388 (s390_core_read_description): Yield a target description with
2389 vector registers if applicable.
2390 (s390_gdbarch_init): Handle target descriptions with vector
2391 registers. Add "register_name" gdbarch method.
2392 (_initialize_s390_tdep): Call new tdesc initialization functions.
2393 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
2394 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
2395 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
2396 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
2397 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
2398 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
2399 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
2400 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
2401 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
2402 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
2403 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
2404 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
2405 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
2406 (S390_NUM_REGS): Adjust value.
2407 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
2408 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
2409 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
2410 * NEWS: Announce S/390 vector register support.
2411
2412 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2413
2414 * features/s390-tevx-linux64.xml: New file.
2415 * features/s390-vx-linux64.xml: New file.
2416 * features/s390-vx.xml: New file.
2417 * features/s390x-tevx-linux64.xml: New file.
2418 * features/s390x-vx-linux64.xml: New file.
2419 * features/Makefile (WHICH): Add s390-vx-linux64,
2420 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
2421 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
2422 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
2423 macros.
2424 * features/s390-tevx-linux64.c: New generated file.
2425 * features/s390-vx-linux64.c: Likewise.
2426 * features/s390x-tevx-linux64.c: Likewise.
2427 * features/s390x-vx-linux64.c: Likewise.
2428 * regformats/s390-tevx-linux64.dat: Likewise.
2429 * regformats/s390-vx-linux64.dat: Likewise.
2430 * regformats/s390x-tevx-linux64.dat: Likewise.
2431 * regformats/s390x-vx-linux64.dat: Likewise.
2432
2433 2015-02-28 Doug Evans <xdje42@gmail.com>
2434
2435 * symtab.h (struct symtab) <next>: Fix comment.
2436
2437 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
2438
2439 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
2440 python_GdbMethods.
2441
2442 2015-02-27 Pedro Alves <palves@redhat.com>
2443
2444 * dtrace-probe.c (dtrace_probe_ops): Make extern.
2445
2446 2015-02-27 Pedro Alves <palves@redhat.com>
2447
2448 * common/common-exceptions.h (exception_none): Declare.
2449 * common/common-exceptions.c (exception_none): Moved from
2450 exceptions.c.
2451 (exceptions_state_mc_init): Use exception_none.
2452 * exceptions.c (exception_none): Move to
2453 common/common-exceptions.c.
2454 * exceptions.h (exception_none): Move to
2455 common/common-exceptions.h.
2456
2457 2015-02-27 Pedro Alves <palves@redhat.com>
2458
2459 * main.c (catch_command_errors, catch_command_errors_const):
2460 Remove 'mask' argument. Adjust.
2461 (captured_main): Adjust callers.
2462
2463 2015-02-27 Pedro Alves <palves@redhat.com>
2464
2465 * python/python-internal.h: Include "extension-priv.h".
2466
2467 2015-02-27 Pedro Alves <palves@redhat.com>
2468
2469 * breakpoint.h (enum print_stop_action): Move further up in the
2470 file.
2471
2472 2015-02-27 Pedro Alves <palves@redhat.com>
2473
2474 * gdbarch.sh: Include regcache.h.
2475 * gdbarch.h: Regenerate.
2476
2477 2015-02-27 Pedro Alves <palves@redhat.com>
2478
2479 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
2480 Remove duplicate const.
2481 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
2482 duplicate const.
2483
2484 2015-02-27 Pedro Alves <palves@redhat.com>
2485
2486 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
2487 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
2488 * features/feature_to_c.sh: Tag the generated xml_builtin array
2489 with extern const in C++ mode.
2490
2491 2015-02-27 Tom Tromey <tromey@redhat.com>
2492
2493 * minidebug.c (struct lzma_stream): Rename to ...
2494 (struct gdb_lzma_stream): ... this.
2495 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
2496
2497 2015-02-27 Pedro Alves <palves@redhat.com>
2498
2499 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
2500 function.
2501 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
2502 (mi_cmd_stack_list_variables): Use it.
2503
2504 2015-02-27 Pedro Alves <palves@redhat.com>
2505
2506 * x86-linux-nat.c (u_debugreg_offset): New function.
2507 (x86_linux_dr_get, x86_linux_dr_set): Use it.
2508
2509 2015-02-27 Pedro Alves <palves@redhat.com>
2510
2511 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
2512 declaration.
2513 Include break-common.h.
2514
2515 2015-02-27 Tom Tromey <tromey@redhat.com>
2516 Pedro Alves <palves@redhat.com>
2517
2518 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
2519 local used to iterate over enums.
2520 * completer.c (signal_completer): Likewise.
2521 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
2522 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2523 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
2524 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
2525 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
2526 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
2527 * tui-wingeneral.c (tui_refresh_all): Likewise.
2528
2529 2015-02-27 Pedro Alves <palves@redhat.com>
2530
2531 * target.h: Include "infrun.h".
2532
2533 2015-02-27 Pedro Alves <palves@redhat.com>
2534
2535 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
2536
2537 2015-02-27 Pedro Alves <palves@redhat.com>
2538
2539 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
2540 (IPA_SYM): Use it.
2541 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
2542
2543 2015-02-27 Pedro Alves <palves@redhat.com>
2544
2545 * cli-out.c (_rl_erase_entire_line): Move declaration out of
2546 cli_mld_erase_entire_line, and make it extern "C".
2547 * common/common-defs.h (EXTERN_C): New.
2548 * completer.c (_rl_completion_prefix_display_length)
2549 (_rl_print_completions_horizontally, QSFUNC): Move declarations
2550 out of gdb_display_match_list_1.
2551 (_rl_qsort_string_compare): Move declaration out of
2552 gdb_display_match_list_1, and make it extern "C".
2553 * defs.h (re_comp): Use EXTERN_C.
2554 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
2555 and make it extern "C".
2556 (monstartup): Move declaration out of maintenance_set_profile_cmd,
2557 and make it extern "C".
2558 (main): Move declaration out of maintenance_set_profile_cmd.
2559 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
2560 EXTERN_C.
2561
2562 2015-02-27 Pedro Alves <palves@redhat.com>
2563
2564 * python/python.c (GdbMethods): Rename to ...
2565 (python_GdbMethods): ... this and make extern.
2566 (GdbModuleDef): Rename to ...
2567 (python_GdbModuleDef): ... this and make extern.
2568
2569 2015-02-27 Pedro Alves <palves@redhat.com>
2570
2571 * record-btrace.c (set_record_btrace_cmdlist)
2572 (show_record_btrace_cmdlist): Remove redefinitions.
2573
2574 2015-02-27 Tom Tromey <tromey@redhat.com>
2575 Pedro Alves <palves@redhat.com>
2576
2577 * dwarf2-frame.c (enum cfa_how_kind, struct
2578 dwarf2_frame_state_reg_info): Move out of struct
2579 dwarf2_frame_state.
2580 * dwarf2read.c (struct tu_stats): Move out of struct
2581 dwarf2_per_objfile.
2582 (struct file_entry): Move out of struct line_header.
2583 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
2584 typedef_field_list): Move out of struct field_info.
2585 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
2586 Move out of struct dynamic_prop.
2587 (union type_owner, union field_location, struct field, struct
2588 range_bounds, union type_specific): Move out of struct main_type.
2589 (struct fn_fieldlist, struct fn_field, struct typedef_field)
2590 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
2591 (struct call_site_target, union call_site_parameter_u, struct
2592 call_site_parameter): Move out of struct call_site.
2593 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
2594 m32c_prologue.
2595 (enum srcdest_kind): Move out of struct srcdest.
2596 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
2597 * prologue-value.h (enum prologue_value_kind): Move out of struct
2598 prologue_value.
2599 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
2600 gdbarch_tdep.
2601 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
2602 out of struct field_info.
2603 * symfile.h (struct other_sections): Move out of struct
2604 section_addr_info.
2605 * symtab.c (struct symbol_cache_slot): Move out struct
2606 block_symbol_cache.
2607 * target-descriptions.c (enum tdesc_type_kind): Move out of
2608 typedef struct tdesc_type.
2609 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
2610 struct tui_line_or_address.
2611 * value.c (enum internalvar_kind, union internalvar_data): Move
2612 out of struct internalvar.
2613 * xtensa-tdep.h (struct ctype_cache): Move out of struct
2614 gdbarch_tdep.
2615
2616 2015-02-27 Tom Tromey <tromey@redhat.com>
2617 Pedro Alves <palves@redhat.com>
2618
2619 Rename symbols whose names are reserved C++ keywords throughout.
2620
2621 2015-02-27 Pedro Alves <palves@redhat.com>
2622
2623 * Makefile.in (COMPILER): New, get it from autoconf.
2624 (COMPILE.pre, CC_LD): Use COMPILER.
2625 (CXX): Get from autoconf instead.
2626 (CXX_FOR_TARGET): Default to g++ instead of gcc.
2627 * acinclude.m4: Include build-with-cxx.m4.
2628 * build-with-cxx.m4: New file.
2629 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
2630 Disable -Werror by default if building in C++ mode.
2631 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
2632 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
2633 Run supported-warning-flags tests with the C++ compiler.
2634 Save/restore CXXFLAGS too.
2635 * configure: Regenerate.
2636
2637 2015-02-27 Pedro Alves <palves@redhat.com>
2638
2639 * libiberty.m4: New file.
2640 * acinclude.m4: Include libiberty.m4.
2641 * configure.ac: Call libiberty_INIT.
2642 * config.in, configure: Regenerate.
2643
2644 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2645
2646 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
2647 31-bit targets, but 64-bit targets as well.
2648 (s390_gnu_triplet_regexp): New function.
2649 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
2650 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
2651 method.
2652
2653 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
2654
2655 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
2656 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
2657 from CONTEXT_DEBUGGER.
2658
2659 2015-02-26 Doug Evans <dje@google.com>
2660
2661 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
2662 CHECK_TYPEDEF.
2663 (set_type_vptr_fieldno): Ditto.
2664 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
2665 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
2666
2667 2015-02-26 Pedro Alves <palves@redhat.com>
2668
2669 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
2670 * complaints.c (vcomplaint): Pass argument FMT directly to
2671 printf-like functions instead of complaint->fmt.
2672 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
2673 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
2674 * compile/compile-loc2c.c (pushf, unary, binary): Add
2675 ATTRIBUTE_PRINTF.
2676 (do_compile_dwarf_expr_to_c): Pass string literal as format string
2677 to pushf.
2678 (BINARY): Pass string literal as format string to 'binary'.
2679 * compile/compile-object-load.c (link_callbacks_einfo): Add
2680 ATTRIBUTE_PRINTF.
2681 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
2682
2683 2015-02-26 Pedro Alves <palves@redhat.com>
2684
2685 * windows-termcap.c: Rename to ...
2686 * stub-termcap.c: ... this. Adjust header line.
2687 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
2688 windows-termcap.c.
2689 * configure: Regenerate.
2690 * configure.ac: Refer to stub-termcap.o instead of
2691 windows-termcap.o.
2692 * gdb_curses.h: Mention stub-termcap.c instead of
2693 windows-termcap.c.
2694
2695 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2696
2697 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
2698 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
2699
2700 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
2701
2702 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
2703
2704 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2705
2706 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
2707 bfd_canonicalize_symtab.
2708
2709 2015-02-25 John Baldwin <jhb@FreeBSD.org>
2710
2711 * amd64fbsd-nat.c: Include sys/user.h.
2712 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2713 instead of KERN_PS_STRINGS to locate the signal trampoline.
2714 * i386fbsd-nat.c: Include sys/user.h.
2715 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2716 instead of KERN_PS_STRINGS to locate the signal trampoline.
2717 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
2718 (amd64fbsd_sigtramp_p): New.
2719 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
2720 longer set default values.
2721 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
2722 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
2723 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
2724 (i386fbsd_freebsd4_sigtramp_start)
2725 (i386fbsd_freebsd4_sigtramp_middle)
2726 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
2727 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
2728 (i386fbsd_sigtramp_p): New.
2729 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
2730 longer set default values.
2731 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
2732
2733 2015-02-25 John Baldwin <jhb@freebsd.org>
2734
2735 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
2736 get_frame_register instead of frame_unwind_register_unsigned.
2737
2738 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2739
2740 PR build/18033
2741 * compile/compile-c-support.c (c_compute_program): Change // comment.
2742 * compile/compile-object-load.c (setup_sections): Change // comment.
2743
2744 2015-02-26 Joel Brobecker <brobecker@adacore.com>
2745
2746 PR build/18033:
2747 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
2748
2749 2015-02-23 Pedro Alves <palves@redhat.com>
2750
2751 * remote.c (skip_to_semicolon): New function.
2752 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
2753 special case the stop reasons that look like hex numbers
2754 upfront. Instead handle real register numbers after matching
2755 all the known stop reasons.
2756
2757 2015-02-21 Doug Evans <dje@google.com>
2758
2759 PR c++/17976, symtab/17821
2760 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
2761 is_in_anonymous. All callers updated.
2762 (find_symbol_in_baseclass): Ditto.
2763 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
2764 for symbols in an anonymous namespace.
2765 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
2766 DW_AT_name directly.
2767 (dwarf2_name): Convert missing namespace name to
2768 CP_ANONYMOUS_NAMESPACE_STR.
2769
2770 2015-02-20 Pedro Alves <palves@redhat.com>
2771
2772 * linux-nat.c (linux_handle_extended_wait): Call
2773 thread_db_notice_clone whenever a new clone LWP is detected.
2774 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
2775 functions.
2776 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
2777 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
2778 (linux_unstop_all_lwps): Declare.
2779 * linux-thread-db.c (struct thread_get_info_inout): Delete.
2780 (thread_get_info_callback): Delete.
2781 (thread_from_lwp): Use td_thr_get_info and record_thread.
2782 (thread_db_attach_lwp): Delete.
2783 (thread_db_notice_clone): New function.
2784 (try_thread_db_load_1): If /proc is mounted and shows the
2785 process'es task list, walk over all LWPs and call thread_from_lwp
2786 instead of relying on td_ta_thr_iter.
2787 (attach_thread): Don't call check_thread_signals here. Split the
2788 tail part of the function (which adds the thread to the core GDB
2789 thread list) to ...
2790 (record_thread): ... this function. Call check_thread_signals
2791 here.
2792 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
2793 call thread_from_lwp.
2794 (thread_db_update_thread_list): Rename to ...
2795 (thread_db_update_thread_list_org): ... this.
2796 (thread_db_update_thread_list): New function.
2797 (thread_db_find_thread_from_tid): Delete.
2798 (thread_db_get_ada_task_ptid): Simplify.
2799 * nat/linux-procfs.c: Include <sys/stat.h>.
2800 (linux_proc_task_list_dir_exists): New function.
2801 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
2802
2803 2015-02-20 Pedro Alves <palves@redhat.com>
2804
2805 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
2806 main LWP. Handle the case of waitpid returning 0 if we're already
2807 attached to the LWP. Don't set the LWP's last_resume_kind to
2808 resume_stop if we already knew about the LWP.
2809 (linux_nat_filter_event): Add debug logs.
2810
2811 2015-02-20 Pedro Alves <palves@redhat.com>
2812
2813 * target.h (forward_target_decr_pc_after_break): Delete
2814 declaration.
2815
2816 2015-02-20 Pedro Alves <palves@redhat.com>
2817
2818 PR threads/18006
2819 * linux-thread-db.c (thread_get_info_callback): Return early if
2820 the thread's lwp id is -1.
2821
2822 2015-02-20 Joel Brobecker <brobecker@adacore.com>
2823
2824 GDB 7.9 released.
2825
2826 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
2827
2828 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
2829 (dtrace_get_probes) Change type of variable 'dof'.
2830
2831 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
2832
2833 PR breakpoints/16812
2834 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
2835 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
2836 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
2837
2838 2015-02-19 David Taylor <dtaylor@emc.com>
2839
2840 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
2841
2842 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
2843
2844 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
2845 function.
2846 (tui_putc): Don't call tui_handle_resize_during_io.
2847 (tui_getc): Likewise.
2848 (tui_mld_getc): Likewise.
2849 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
2850 (tui_sigwinch_token): New static variable.
2851 (tui_initialize_win): Adjust documentation. Set
2852 tui_sigwinch_token.
2853 (tui_async_resize_screen): New asynchronous callback.
2854 (tui_sigwinch_handler): Adjust documentation. Asynchronously
2855 invoke tui_async_resize_screen.
2856
2857 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
2858
2859 * configure: Regenerated.
2860 * configure.ac: Use GDB_AC_TRANSFORM.
2861 * Makefile.in (aclocal_m4_deps): Added transform.m4.
2862 * acinclude.m4: sinclude transform.m4.
2863 * transform.m4: New file.
2864 (GDB_AC_TRANSFORM): New macro.
2865
2866 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2867
2868 * NEWS: Announce the support for DTrace SDT probes.
2869
2870 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2871
2872 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
2873 (amd64_dtrace_parse_probe_argument): New function.
2874 (amd64_dtrace_probe_is_enabled): Likewise.
2875 (amd64_dtrace_enable_probe): Likewise.
2876 (amd64_dtrace_disable_probe): Likewise.
2877 (amd64_linux_init_abi): Register the
2878 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
2879 `gdbarch_dtrace_disable_probe' and
2880 `gdbarch_dtrace_probe_is_enabled' hooks.
2881 (amd64_dtrace_disabled_probe_sequence_1): New constant.
2882 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
2883 (amd64_dtrace_enable_probe_sequence): Likewise.
2884 (amd64_dtrace_disable_probe_sequence): Likewise.
2885
2886 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2887
2888 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
2889 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
2890 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
2891 handle ELF files.
2892 * Makefile.in (SFILES): dtrace-probe.c added.
2893 * configure: Regenerate.
2894 * dtrace-probe.c: New file.
2895 (SHT_SUNW_dof): New constant.
2896 (dtrace_probe_type): New enum.
2897 (dtrace_probe_arg): New struct.
2898 (dtrace_probe_arg_s): New typedef.
2899 (struct dtrace_probe_enabler): New struct.
2900 (dtrace_probe_enabler_s): New typedef.
2901 (dtrace_probe): New struct.
2902 (dtrace_probe_is_linespec): New function.
2903 (dtrace_dof_sect_type): New enum.
2904 (dtrace_dof_dofh_ident): Likewise.
2905 (dtrace_dof_encoding): Likewise.
2906 (DTRACE_DOF_ENCODE_LSB): Likewise.
2907 (DTRACE_DOF_ENCODE_MSB): Likewise.
2908 (dtrace_dof_hdr): New struct.
2909 (dtrace_dof_sect): Likewise.
2910 (dtrace_dof_provider): Likewise.
2911 (dtrace_dof_probe): Likewise.
2912 (DOF_UINT): New macro.
2913 (DTRACE_DOF_PTR): Likewise.
2914 (DTRACE_DOF_SECT): Likewise.
2915 (dtrace_process_dof_probe): New function.
2916 (dtrace_process_dof): Likewise.
2917 (dtrace_build_arg_exprs): Likewise.
2918 (dtrace_get_arg): Likewise.
2919 (dtrace_get_probes): Likewise.
2920 (dtrace_get_probe_argument_count): Likewise.
2921 (dtrace_can_evaluate_probe_arguments): Likewise.
2922 (dtrace_evaluate_probe_argument): Likewise.
2923 (dtrace_compile_to_ax): Likewise.
2924 (dtrace_probe_destroy): Likewise.
2925 (dtrace_gen_info_probes_table_header): Likewise.
2926 (dtrace_gen_info_probes_table_values): Likewise.
2927 (dtrace_probe_is_enabled): Likewise.
2928 (dtrace_probe_ops): New variable.
2929 (info_probes_dtrace_command): New function.
2930 (_initialize_dtrace_probe): Likewise.
2931 (dtrace_type_name): Likewise.
2932
2933 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2934
2935 * gdbarch.sh (dtrace_parse_probe_argument): New.
2936 (dtrace_probe_is_enabled): Likewise.
2937 (dtrace_enable_probe): Likewise.
2938 (dtrace_disable_probe): Likewise.
2939 * gdbarch.c: Regenerate.
2940 * gdbarch.h: Regenerate.
2941
2942 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2943
2944 * stap-probe.c (stap_probe_ops): Add NULLs in the static
2945 stap_probe_ops for `enable_probe' and `disable_probe'.
2946 * probe.c (enable_probes_command): New function.
2947 (disable_probes_command): Likewise.
2948 (_initialize_probe): Define the cli commands `enable probe' and
2949 `disable probe'.
2950 (parse_probe_linespec): New function.
2951 (info_probes_for_ops): Use parse_probe_linespec.
2952 * probe.h (probe_ops): New hooks `enable_probe' and
2953 `disable_probe'.
2954
2955 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2956
2957 * probe.c (compute_probe_arg): Moved from stap-probe.c
2958 (compile_probe_arg): Likewise.
2959 (probe_funcs): Likewise.
2960 * stap-probe.c (compute_probe_arg): Moved to probe.c.
2961 (compile_probe_arg): Likewise.
2962 (probe_funcs): Likewise.
2963
2964 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2965
2966 * probe.c (print_ui_out_not_applicables): New function.
2967 (exists_probe_with_pops): Likewise.
2968 (info_probes_for_ops): Do not include column headers for probe
2969 types for which no probe has been actually found on any object.
2970 Also invoke `print_ui_out_not_applicables' in order to match the
2971 column rows with the header when probes of several types are
2972 listed.
2973 Print the "Type" column.
2974 * probe.h (probe_ops): Added a new probe operation `type_name'.
2975 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
2976 (stap_type_name): New function.
2977
2978 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
2979
2980 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
2981 (key_is_command_char): Delete.
2982
2983 2015-02-17 Pedro Alves <palves@redhat.com>
2984
2985 * tui/tui.c (tui_enable): Resize windows before anything
2986 might show a window.
2987
2988 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
2989
2990 PR gdb/17984
2991 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
2992 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
2993 call.
2994 * aarch64-tdep.h (tdesc_aarch64): Declare.
2995
2996 2015-02-12 Mark Wielaard <mjw@redhat.com>
2997
2998 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
2999
3000 2015-02-13 Doug Evans <dje@google.com>
3001
3002 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
3003 anonymous_namespace to is_in_anonymous for consistency with the rest
3004 of the file.
3005 (cp_lookup_bare_symbol): Fix typo in comment.
3006 (cp_search_static_and_baseclasses): Ditto.
3007 (search_symbol_list): Use vertical space in comment better.
3008 (reset_directive_searched): Ditto. Fix typo.
3009 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
3010
3011 2015-02-13 Yao Qi <yao.qi@arm.com>
3012
3013 * MAINTAINERS: Update my email address.
3014
3015 2015-02-12 Doug Evans <dje@google.com>
3016
3017 * symtab.c (completion_list_add_name): Fix memory leak.
3018
3019 2015-02-12 Doug Evans <dje@google.com>
3020
3021 * completer.c (complete_line): Remove incorrect comment.
3022
3023 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3024
3025 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
3026 (py_print_frame): Use RETURN_MASK_ERROR.
3027
3028 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3029
3030 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
3031 function comment. Wrap all function that can throw in cleanups.
3032 (gdbpy_apply_frame_filter): Wrap all function that can throw in
3033 cleanups.
3034
3035 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3036
3037 * python/py-framefilter.c (py_print_frame): Substitute goto error.
3038 Remove the error label.
3039
3040 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3041
3042 * python/py-framefilter.c (py_print_frame): Put conditional code paths
3043 with goto first, indent the former else codepath left. Put variable
3044 'elided' to a new inner block.
3045
3046 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3047
3048 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
3049
3050 2015-02-11 Pedro Alves <palves@redhat.com>
3051
3052 * xcoffread.c (within_function): Delete.
3053
3054 2015-02-11 Tom Tromey <tromey@redhat.com>
3055 Pedro Alves <palves@redhat.com>
3056
3057 * breakpoint.c (base_breakpoint_ops): Delete.
3058 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
3059 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
3060 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
3061 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
3062 * python/py-arch.c (arch_object_type): Make extern.
3063 * python/py-block.c (block_syms_iterator_object_type): Make extern.
3064 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
3065 * python/py-cmd.c (cmdpy_object_type): Make extern.
3066 * python/py-continueevent.c (continue_event_object_type)
3067 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
3068 parameter. Update all callers.
3069 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
3070 * python/py-exitedevent.c (exited_event_object_type): Make extern.
3071 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
3072 * python/py-function.c (fnpy_object_type): Make extern.
3073 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
3074 * python/py-infevents.c (call_pre_event_object_type)
3075 (inferior_call_post_event_object_type).
3076 (memory_changed_event_object_type): Make extern.
3077 * python/py-infthread.c (thread_object_type): Make extern.
3078 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
3079 * python/py-linetable.c (linetable_entry_object_type)
3080 (linetable_object_type, ltpy_iterator_object_type): Make extern.
3081 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3082 (clear_objfiles_event_object_type): Make extern.
3083 * python/py-objfile.c (objfile_object_type): Make extern.
3084 * python/py-param.c (parmpy_object_type): Make extern.
3085 * python/py-progspace.c (pspace_object_type): Make extern.
3086 * python/py-signalevent.c (signal_event_object_type): Make extern.
3087 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
3088 * python/py-type.c (type_object_type, field_object_type)
3089 (type_iterator_object_type): Make extern.
3090 * python/python.c (python_extension_script_ops)
3091 (python_extension_ops): Make extern.
3092 * stap-probe.c (stap_probe_ops): Make extern.
3093
3094 2015-02-11 Pedro Alves <pedro@codesourcery.com>
3095
3096 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
3097 because the event thread is not the current thread.
3098
3099 2015-02-11 Doug Evans <xdje42@gmail.com>
3100
3101 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
3102 been initialized yet, return NULL.
3103
3104 2015-02-11 Doug Evans <dje@google.com>
3105
3106 * symfile.h (new_symfile_objfile): Delete.
3107 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
3108 All callers updated.
3109
3110 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
3111
3112 * tui/tui-io.c (tui_handle_resize_during_io): Call
3113 tui_update_gdb_sizes() after resizing the screen.
3114 * tui/tui.c (tui_enable): Resize the terminal before
3115 calling tui_update_gdb_sizes().
3116
3117 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
3118
3119 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
3120 line before printing a newline.
3121
3122 2015-02-11 Mark Wielaard <mjw@redhat.com>
3123
3124 * utils.c (producer_is_gcc): Return true or false.
3125
3126 2015-02-10 Mark Wielaard <mjw@redhat.com>
3127
3128 * utils.h (producer_is_gcc): Change return type to bool. Add major
3129 argument.
3130 * utils.c (producer_is_gcc): Likewise.
3131 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
3132 * dwarf2read.c (check_producer): Likewise.
3133
3134 2015-02-10 Pedro Alves <palves@redhat.com>
3135
3136 * infrun.c (displaced_step_fixup): Switch to the event thread
3137 before calling gdbarch_displaced_step_fixup.
3138
3139 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
3140
3141 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
3142
3143 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
3144
3145 * ada-varobj.c (ada_name_of_child): Constify parent.
3146 (ada_path_expr_of_child): Same.
3147 (ada_value_of_child): Same.
3148 (ada_type_of_child): Same.
3149 * c-varobj.c (c_is_path_expr_parent): Same.
3150 (c_describe_child): Same.
3151 (c_name_of_child): Same.
3152 (c_value_of_child): Same.
3153 (c_type_of_child): Same.
3154 (cplus_number_of_children): Same.
3155 (cplus_describe_child): Constify var.
3156 (cplus_name_of_child): Constify parent.
3157 (cplus_value_of_child): Same.
3158 (cplus_type_of_child): Same.
3159 * jv-varobj.c (java_name_of_child): Same.
3160 (java_value_of_child): Same.
3161 (java_type_of_child): Same.
3162 * varobj.c (value_of_child): Same.
3163 (varobj_default_is_path_expr_parent): Constify var, parent and return
3164 value.
3165 (varobj_get_path_expr): Constify var, modify path_expr through
3166 mutable_var.
3167 (install_new_value): Constify parent.
3168 (value_of_child): Constify parent.
3169 * varobj.h (struct varobj): Constify parent.
3170 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
3171 type_of_child.
3172 (varobj_get_path_expr): Constify var.
3173 (varobj_get_path_expr_parent): Constify var and return value.
3174
3175 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
3176
3177 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
3178 (arm_prologue_this_id): Move PC and SP limit checks to
3179 arm_prologue_unwind_stop_reason.
3180 (arm_prologue_unwind) <stop_reason> : Set to
3181 arm_prologue_unwind_stop_reason.
3182
3183 2015-02-09 Mark Wielaard <mjw@redhat.com>
3184
3185 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
3186 DW_LANG_Fortran08 as language_fortran.
3187
3188 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
3189
3190 PR remote/17946
3191 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
3192 of pointer against char.
3193
3194 2015-02-09 Mark Wielaard <mjw@redhat.com>
3195
3196 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
3197 (c_type_print_modifier): Likewise.
3198 * dwarf2read.c (read_tag_atomic_type): New function.
3199 (read_type_die_1): Handle DW_TAG_atomic_type.
3200 * gdbtypes.c (make_atomic_type): New function.
3201 (recursive_dump_type): Handle TYPE_ATOMIC.
3202 * gdbtypes.h (enum type_flag_values): Renumber.
3203 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
3204 (TYPE_ATOMIC): New macro.
3205 (make_atomic_type): Declare.
3206
3207 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3208
3209 * btrace.c (ftrace_find_call): Skip gaps.
3210 (ftrace_new_function): Initialize level.
3211 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
3212 (ftrace_new_switch): Update
3213 level computation.
3214 (ftrace_new_gap): New.
3215 (ftrace_update_function): Create new function after gap.
3216 (btrace_compute_ftrace_bts): Create gap on error.
3217 (btrace_stitch_bts): Update parameters. Clear trace if it
3218 becomes empty.
3219 (btrace_stitch_trace): Update parameters. Update callers.
3220 (btrace_clear): Reset the number of gaps.
3221 (btrace_insn_get): Return NULL if the iterator points to a gap.
3222 (btrace_insn_number): Return zero if the iterator points to a gap.
3223 (btrace_insn_end): Allow gaps at the end.
3224 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
3225 (btrace_find_insn_by_number): Assert that the found iterator does
3226 not point to a gap.
3227 (btrace_call_next, btrace_call_prev): Assert that the last function
3228 is not a gap.
3229 * btrace.h (btrace_bts_error): New.
3230 (btrace_function): Update comment.
3231 (btrace_function) <insn, insn_offset, number>: Update comment.
3232 (btrace_function) <errcode>: New.
3233 (btrace_thread_info) <ngaps>: New.
3234 (btrace_thread_info) <replay>: Update comment.
3235 (btrace_insn_get): Update comment.
3236 * record-btrace.c (btrace_ui_out_decode_error): New.
3237 (record_btrace_info): Print number of gaps.
3238 (btrace_insn_history, btrace_call_history): Call
3239 btrace_ui_out_decode_error for gaps.
3240 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
3241
3242 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3243
3244 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
3245 * nat/linux-btrace.c: (btrace_this_cpu): New.
3246 (cpu_supports_bts): Call btrace_this_cpu.
3247 (intel_supports_bts): Add cpu parameter.
3248
3249 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3250
3251 * btrace.h (btrace_insn_class): New.
3252 (btrace_insn) <size, iclass>: New.
3253 * btrace.c (ftrace_find_call): Update parameters. Update users.
3254 Use instruction classification.
3255 (ftrace_new_return): Update parameters. Update users.
3256 (ftrace_update_function): Update parameters. Update users. Use
3257 instruction classification.
3258 (ftrace_update_insns): Update parameters. Update users.
3259 (ftrace_classify_insn): New.
3260 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
3261 TRY_CATCH around call to gdb_insn_length.
3262
3263 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3264
3265 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
3266 Update parameters. Update users.
3267
3268 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3269
3270 * btrace.c (parse_xml_btrace_conf_bts): Add size.
3271 (btrace_conf_bts_attributes): New.
3272 (btrace_conf_children): Add attributes.
3273 * common/btrace-common.h (btrace_config_bts): New.
3274 (btrace_config)<bts>: New.
3275 (btrace_config): Update comment.
3276 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
3277 Use config.
3278 * features/btrace-conf.dtd: Increment version. Add size
3279 attribute to bts element.
3280 * record-btrace.c (set_record_btrace_bts_cmdlist,
3281 show_record_btrace_bts_cmdlist): New.
3282 (record_btrace_adjust_size, record_btrace_print_bts_conf,
3283 record_btrace_print_conf, cmd_set_record_btrace_bts,
3284 cmd_show_record_btrace_bts): New.
3285 (record_btrace_info): Call record_btrace_print_conf.
3286 (_initialize_record_btrace): Add commands.
3287 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
3288 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
3289 (btrace_sync_conf): Synchronize bts size.
3290 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
3291 * NEWS: Announce new commands and new packets.
3292
3293 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3294
3295 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
3296 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
3297 (x86_linux_btrace_conf): New.
3298 (x86_linux_create_target): Initialize to_btrace_conf.
3299 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
3300 Check format. Split into this and ...
3301 (linux_enable_bts): ... this.
3302 (linux_btrace_conf): New.
3303 (perf_event_skip_record): Renamed into ...
3304 (perf_event_skip_bts_record): ... this. Updated users.
3305 (linux_disable_btrace): Split into this and ...
3306 (linux_disable_bts): ... this.
3307 (linux_read_btrace): Check format.
3308 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
3309 (linux_btrace_conf): New.
3310 (btrace_target_info)<ptid>: Moved.
3311 (btrace_target_info)<conf>: New.
3312 (btrace_target_info): Split into this and ...
3313 (btrace_tinfo_bts): ... this. Updated users.
3314 * btrace.c (btrace_enable): Update parameters.
3315 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
3316 (btrace_conf_children, btrace_conf_attributes)
3317 (btrace_conf_elements): New.
3318 * btrace.h (btrace_enable): Update parameters.
3319 (btrace_conf, parse_xml_btrace_conf): New.
3320 * common/btrace-common.h (btrace_config): New.
3321 * feature/btrace-conf.dtd: New.
3322 * record-btrace.c (record_btrace_conf): New.
3323 (record_btrace_cmdlist): New.
3324 (record_btrace_enable_warn, record_btrace_open): Pass
3325 &record_btrace_conf.
3326 (record_btrace_info): Print recording format.
3327 (cmd_record_btrace_bts_start): New.
3328 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
3329 (_initialize_record_btrace): Add "record btrace bts" subcommand.
3330 Add "record bts" alias command.
3331 * remote.c (remote_state)<btrace_config>: New.
3332 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
3333 (remote_protocol_features): Add qXfer:btrace-conf:read.
3334 (remote_open_1): Call remote_btrace_reset.
3335 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
3336 (btrace_target_info)<conf>: New.
3337 (btrace_sync_conf, btrace_read_config): New.
3338 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
3339 btrace_read_conf.
3340 (remote_btrace_conf): New.
3341 (init_remote_ops): Initialize to_btrace_conf.
3342 (_initialize_remote): Add qXfer:btrace-conf packet.
3343 * target.c (target_enable_btrace): Update parameters.
3344 (target_btrace_conf): New.
3345 * target.h (target_enable_btrace): Update parameters.
3346 (target_btrace_conf): New.
3347 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
3348 (target_ops)<to_enable_btrace>: Update parameters and comment.
3349 (target_ops)<to_btrace_conf>: New.
3350 * target-delegates: Regenerate.
3351 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
3352 (target_debug_print_const_struct_btrace_target_info_p): New.
3353 * NEWS: Announce new command and new packet.
3354
3355 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3356
3357 * nat/linux-btrace.h (perf_event_buffer): New.
3358 (btrace_target_info) <buffer, size, data_head>: Replace with ...
3359 <bts>: ... this.
3360 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
3361 (perf_event_buffer_size, perf_event_buffer_begin)
3362 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
3363 Updated users.
3364 (perf_event_new_data): New.
3365
3366 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3367
3368 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
3369 * record-btrace.c (record_btrace_open): Remove call to
3370 target_supports_btrace.
3371 * remote.c (remote_supports_btrace): Update parameters.
3372 * target.c (target_supports_btrace): Update parameters.
3373 * target.h (to_supports_btrace, target_supports_btrace): Update
3374 parameters.
3375 * target-delegates.c: Regenerate.
3376 * target-debug.h (target_debug_print_enum_btrace_format): New.
3377 * nat/linux-btrace.c
3378 (kernel_supports_btrace): Rename into ...
3379 (kernel_supports_bts): ... this. Update users. Update warning text.
3380 (intel_supports_btrace): Rename into ...
3381 (intel_supports_bts): ... this. Update users.
3382 (cpu_supports_btrace): Rename into ...
3383 (cpu_supports_bts): ... this. Update users.
3384 (linux_supports_btrace): Update parameters. Split into this and ...
3385 (linux_supports_bts): ... this.
3386 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
3387
3388 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3389
3390 * Makefile.in (SFILES): Add common/btrace-common.c.
3391 (COMMON_OBS): Add common/btrace-common.o.
3392 (btrace-common.o): Add build rules.
3393 * btrace.c (parse_xml_btrace): Update parameters.
3394 (parse_xml_btrace_block): Set format field.
3395 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
3396 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
3397 (btrace_compute_ftrace): Split into this and...
3398 (btrace_compute_ftrace_bts): ...this.
3399 (btrace_stitch_trace): Split into this and...
3400 (btrace_stitch_bts): ...this.
3401 * btrace.h (parse_xml_btrace): Update parameters.
3402 (make_cleanup_btrace_data): New.
3403 * common/btrace-common.c: New.
3404 * common/btrace-common.h: Include common-defs.h.
3405 (btrace_block_s): Update comment.
3406 (btrace_format): New.
3407 (btrace_format_string): New.
3408 (btrace_data_bts): New.
3409 (btrace_data): New.
3410 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
3411 * remote.c (remote_read_btrace): Update parameters.
3412 * target.c (target_read_btrace): Update parameters.
3413 * target.h (target_read_btrace): Update parameters.
3414 (target_ops)<to_read_btrace>: Update parameters.
3415 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
3416 * target-delegates.c: Regenerate.
3417 * target-debug (target_debug_print_struct_btrace_data_p): New.
3418 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
3419 (linux_read_bts): ...this.
3420 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
3421
3422 2015-02-06 Doug Evans <dje@google.com>
3423
3424 * remote-m32r-sdi.c: Include symfile.h.
3425
3426 2015-02-06 Doug Evans <dje@google.com>
3427
3428 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
3429 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
3430 to here.
3431
3432 2015-02-06 Pedro Alves <palves@redhat.com>
3433
3434 * linux-thread-db.c (find_new_threads_callback): Add debug output.
3435
3436 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
3437
3438 PR gdb/15678
3439 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
3440 (enable_count_command): Check args for NULL value.
3441
3442 2015-02-05 Doug Evans <xdje42@gmail.com>
3443
3444 * guile/scm-frame.c: Fix spelling errors in a comment.
3445
3446 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3447
3448 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
3449 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
3450 return type.
3451
3452 2015-02-04 Pedro Alves <palves@redhat.com>
3453
3454 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
3455 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
3456 returns true.
3457 (resume_stopped_resumed_lwps): Don't check whether the thread is
3458 marked as executing.
3459 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
3460
3461 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3462
3463 * regset.h (struct regset): Add flags field.
3464 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
3465 * corelow.c (get_core_register_section): Add warning if the size
3466 exceeds the requested size and the regset does not have the
3467 REGSET_VARIABLE_SIZE flag set.
3468 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
3469 flag.
3470 * armbsd-tdep.c (armbsd_gregset): Likewise.
3471 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3472 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
3473 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
3474 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
3475
3476 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3477
3478 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
3479 For ".reg-xstate", explicitly specify the requested section size
3480 via X86_XSTATE_SIZE instead of just 0 on input and
3481 X86_XSTATE_MAX_SIZE on output.
3482 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
3483 Likewise.
3484
3485 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3486
3487 PR corefiles/17808:
3488 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
3489 function type, particularly its SIZE parameter.
3490 * gdbarch.h: Regenerate.
3491 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
3492 actual against required size using ">=" instead of "==".
3493 (amd64_collect_fpregset): Likewise.
3494 * i386-tdep.c (i386_supply_gregset): Likewise.
3495 (i386_collect_gregset): Likewise.
3496 (i386_supply_fpregset): Likewise.
3497 (i386_collect_fpregset): Likewise.
3498 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
3499 (mips_fill_gregset_wrapper): Likewise.
3500 (mips_supply_fpregset_wrapper): Likewise.
3501 (mips_fill_fpregset_wrapper): Likewise.
3502 (mips64_supply_gregset_wrapper): Likewise.
3503 (mips64_fill_gregset_wrapper): Likewise.
3504 (mips64_supply_fpregset_wrapper): Likewise.
3505 (mips64_fill_fpregset_wrapper): Likewise.
3506 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
3507 (am33_supply_fpregset_method): Likewise.
3508 (am33_collect_gregset_method): Likewise.
3509 (am33_collect_fpregset_method): Likewise.
3510
3511 2015-02-04 Doug Evans <dje@google.com>
3512 Pedro Alves <palves@redhat.com>
3513 Eli Zaretskii <eliz@gnu.org>
3514
3515 PR tui/17810
3516 * tui/tui-command.c (tui_refresh_cmd_win): New function.
3517 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
3518 * tui/tui-file.c: #include tui/tui-command.h.
3519 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
3520 (tui_file_flush): Refresh command window if stream is gdb_stdout.
3521 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
3522
3523 2015-02-04 Pedro Alves <palves@redhat.com>
3524
3525 Fix build breakage.
3526 * event-loop.c (gdb_do_one_event): Add default switch case.
3527
3528 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3529
3530 Filter out inferior gcc option -fpreprocessed.
3531 * compile/compile.c (filter_args): New function.
3532 (get_args): Use it.
3533
3534 2015-02-03 Pedro Alves <palves@redhat.com>
3535
3536 * event-loop.c: Don't declare nor define a queue type for
3537 gdb_event_p.
3538 (event_queue): Delete.
3539 (create_event, create_file_event, gdb_event_xfree)
3540 (initialize_event_loop, process_event): Delete.
3541 (gdb_do_one_event): Return as soon as one event is handled.
3542 (handle_file_event): Change prototype. Used the passed in
3543 file_handler pointer and ready_mask instead of looping over all
3544 file handlers.
3545 (gdb_wait_for_event): Update the poll/select timeouts before
3546 blocking. Run event handlers directly instead of queueing events.
3547 Return as soon as one event is handled.
3548 (struct async_event_handler_data): Delete.
3549 (invoke_async_event_handler): Delete.
3550 (check_async_event_handlers): Change return type to int. Run
3551 event handlers directly instead of queueing events. Return as
3552 soon as one event is handled.
3553 (handle_timer_event): Delete.
3554 (update_wait_timeout): New function, factored out from
3555 poll_timers.
3556 (poll_timers): Reimplement.
3557 * event-loop.h (initialize_event_loop): Delete declaration.
3558 * top.c (gdb_init): Don't call initialize_event_loop.
3559
3560 2015-02-03 Pedro Alves <palves@redhat.com>
3561
3562 * event-loop.c (clear_async_event_handler): New function.
3563 * event-loop.h (clear_async_event_handler): New declaration.
3564 * record-btrace.c (record_btrace_async): New function.
3565 (init_record_btrace_ops): Install record_btrace_async.
3566 * record-full.c (record_full_async): New function.
3567 (record_full_resume): Don't mark the async event source here.
3568 (init_record_full_ops): Install record_full_async.
3569 (record_full_core_resume): Don't mark the async event source here.
3570 (init_record_full_core_ops): Install record_full_async.
3571 * remote.c (remote_async): Mark and clear the async stop reply
3572 queue event-loop token as appropriate.
3573
3574 2015-02-03 Pedro Alves <palves@redhat.com>
3575
3576 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
3577 target_is_async_p instead of target_can_async.
3578 (linux_nat_wait): Use target_is_async_p instead of
3579 target_can_async. Don't enable async here.
3580 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
3581 target_is_async_p instead of target_can_async.
3582
3583 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
3584
3585 * varobj.h (lang_varobj_ops): Mention which return values need
3586 to be freed.
3587
3588 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3589
3590 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
3591
3592 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3593
3594 PR gdb/17856:
3595 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
3596 results found in the cache.
3597
3598 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3599
3600 PR gdb/17854:
3601 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
3602 when allocating a new one.
3603
3604 2015-02-01 Tom Tromey <tom@tromey.com>
3605
3606 * MAINTAINERS: Remove myself.
3607
3608 2015-01-31 Doug Evans <xdje42@gmail.com>
3609
3610 * dwarf2read.c (process_structure_scope): Update setting of
3611 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
3612 * gdbtypes.c (internal_type_vptr_fieldno): New function.
3613 (set_type_vptr_fieldno): New function.
3614 (internal_type_vptr_basetype): New function.
3615 (set_type_vptr_basetype): New function.
3616 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
3617 TYPE_VPTR_BASETYPE.
3618 (allocate_cplus_struct_type): Initialize vptr_fieldno.
3619 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
3620 (print_cplus_stuff): ... moved here.
3621 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
3622 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
3623 moved to ...
3624 (struct cplus_struct_type): ... here. All uses updated.
3625 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
3626 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
3627 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
3628 * stabsread.c (read_tilde_fields): Update setting of
3629 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
3630
3631 2015-01-31 Doug Evans <xdje42@gmail.com>
3632
3633 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
3634 to self_p.
3635 (cp_print_class_member): Rename local domain to self_type.
3636 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
3637 domain_type to self_type.
3638 (set_die_type) <need_gnat_info>: Handle
3639 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
3640 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
3641 TYPE_SPECIFIC_SELF_TYPE.
3642 * gdbtypes.c (internal_type_self_type): New function.
3643 (set_type_self_type): New function.
3644 (smash_to_memberptr_type): Rename parameter domain to self_type.
3645 Update setting of TYPE_SELF_TYPE.
3646 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
3647 (smash_to_method_type): Rename parameter domain to self_type.
3648 Update setting of TYPE_SELF_TYPE.
3649 (check_stub_method): Call smash_to_method_type.
3650 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
3651 (copy_type_recursive): Ditto.
3652 * gdbtypes.h (enum type_specific_kind): New value
3653 TYPE_SPECIFIC_SELF_TYPE.
3654 (struct main_type) <type_specific>: New member self_type.
3655 (struct cplus_struct_type) <fn_field.type>: Update comment.
3656 (TYPE_SELF_TYPE): Rewrite.
3657 (internal_type_self_type, set_type_self_type): Declare.
3658 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
3659 self_type.
3660 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
3661 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
3662 TYPE_TARGET_TYPE.
3663 * stabsread.c (read_member_functions): Mark methods with
3664 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
3665 TYPE_SELF_TYPE.
3666
3667 2015-01-31 Doug Evans <xdje42@gmail.com>
3668
3669 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
3670 All uses updated.
3671
3672 2015-01-31 Doug Evans <xdje42@gmail.com>
3673
3674 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
3675 or unions. Return zero if union.
3676 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
3677 (gnuv3_rtti_type): Pass already-check_typedef'd value to
3678 gnuv3_get_vtable.
3679 (compute_vtable_size): Assert only passed structs.
3680 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
3681
3682 2015-01-31 Doug Evans <xdje42@gmail.com>
3683
3684 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
3685 kinds.
3686
3687 2015-01-31 Gary Benson <gbenson@redhat.com>
3688 Doug Evans <dje@google.com>
3689
3690 PR cli/9007
3691 PR cli/11920
3692 PR cli/15548
3693 * cli/cli-cmds.c (complete_command): Notify user if max-completions
3694 reached.
3695 * common/common-exceptions.h (enum errors)
3696 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
3697 * completer.h (get_max_completions_reached_message): New declaration.
3698 (max_completions): Likewise.
3699 (completion_tracker_t): New typedef.
3700 (new_completion_tracker): New declaration.
3701 (make_cleanup_free_completion_tracker): Likewise.
3702 (maybe_add_completion_enum): New enum.
3703 (maybe_add_completion): New declaration.
3704 (throw_max_completions_reached_error): Likewise.
3705 * completer.c (max_completions): New global variable.
3706 (new_completion_tracker): New function.
3707 (free_completion_tracker): Likewise.
3708 (make_cleanup_free_completion_tracker): Likewise.
3709 (maybe_add_completions): Likewise.
3710 (throw_max_completions_reached_error): Likewise.
3711 (complete_line): Remove duplicates and limit result to max_completions
3712 entries.
3713 (get_max_completions_reached_message): New function.
3714 (gdb_display_match_list): Handle max_completions.
3715 (_initialize_completer): New declaration and function.
3716 * symtab.c: Include completer.h.
3717 (completion_tracker): New static variable.
3718 (completion_list_add_name): Call maybe_add_completion.
3719 (default_make_symbol_completion_list_break_on_1): Renamed from
3720 default_make_symbol_completion_list_break_on. Maintain
3721 completion_tracker across calls to completion_list_add_name.
3722 (default_make_symbol_completion_list_break_on): New function.
3723 * top.c (init_main): Set rl_completion_display_matches_hook.
3724 * tui/tui-io.c: Include completer.h.
3725 (tui_old_rl_display_matches_hook): New static global.
3726 (tui_rl_display_match_list): Notify user if max-completions reached.
3727 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
3728 * NEWS (New Options): Mention set/show max-completions.
3729
3730 2015-01-31 Gary Benson <gbenson@redhat.com>
3731
3732 * symtab.c (struct add_name_data) <code>: New field.
3733 Updated comments.
3734 (add_symtab_completions): New function.
3735 (symtab_expansion_callback): Likewise.
3736 (default_make_symbol_completion_list_break_on): Set datum.code.
3737 Move minimal symbol scan before calling expand_symtabs_matching.
3738 Scan known primary symtabs for externs and statics before calling
3739 expand_symtabs_matching. Pass symtab_expansion_callback as
3740 expansion_notify argument to expand_symtabs_matching. Do not scan
3741 primary symtabs for externs and statics after calling
3742 expand_symtabs_matching.
3743
3744 2015-01-31 Gary Benson <gbenson@redhat.com>
3745
3746 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
3747 (struct quick_symbol_functions) <expand_symtabs_matching>:
3748 New argument expansion_notify. All uses updated.
3749 (expand_symtabs_matching): New argument expansion_notify.
3750 All uses updated.
3751 * symfile-debug.c (debug_qf_expand_symtabs_matching):
3752 Also print expansion notify.
3753 * symtab.c (expand_symtabs_matching_via_partial): Call
3754 expansion_notify whenever a partial symbol table is expanded.
3755 * dwarf2read.c (dw2_expand_symtabs_matching): Call
3756 expansion_notify whenever a symbol table is instantiated.
3757
3758 2015-01-31 Doug Evans <xdje42@gmail.com>
3759
3760 * cli-out.c: #include completer.h, readline/readline.h.
3761 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
3762 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
3763 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
3764 * cli-out.h (cli_display_match_list): Declare.
3765 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
3766 (ELLIPSIS_LEN): Ditto.
3767 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
3768 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
3769 (gdb_fnprint, gdb_print_filename): Ditto.
3770 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
3771 (gdb_display_match_list): Ditto.
3772 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
3773 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
3774 (mld_beep_ftype, mld_read_key_ftype): Ditto.
3775 (match_list_displayer): New struct.
3776 (gdb_display_match_list): Declare.
3777 * top.c (init_main): Set rl_completion_display_matches_hook.
3778 * tui/tui-io.c: #include completer.h.
3779 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
3780 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
3781 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
3782 (tui_mld_getc, tui_mld_read_key): Ditto.
3783 (tui_rl_display_match_list): Rewrite.
3784 (tui_handle_resize_during_io): New arg for_completion. All callers
3785 updated.
3786
3787 2015-01-31 Doug Evans <xdje42@gmail.com>
3788
3789 Add symbol lookup cache.
3790 * NEWS: Document new options and commands.
3791 * symtab.c (symbol_cache_key): New static global.
3792 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
3793 (SYMBOL_LOOKUP_FAILED): New macro.
3794 (symbol_cache_slot_state): New enum.
3795 (block_symbol_cache): New struct.
3796 (symbol_cache): New struct.
3797 (new_symbol_cache_size, symbol_cache_size): New static globals.
3798 (hash_symbol_entry, eq_symbol_entry): New functions.
3799 (symbol_cache_byte_size, resize_symbol_cache): New functions.
3800 (make_symbol_cache, free_symbol_cache): New functions.
3801 (get_symbol_cache, symbol_cache_cleanup): New function.
3802 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
3803 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
3804 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
3805 (symbol_cache_flush, symbol_cache_dump): New functions.
3806 (maintenance_print_symbol_cache): New function.
3807 (maintenance_flush_symbol_cache): New function.
3808 (symbol_cache_stats): New function.
3809 (maintenance_print_symbol_cache_statistics): New function.
3810 (symtab_new_objfile_observer): New function.
3811 (symtab_free_objfile_observer): New function.
3812 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
3813 (_initialize_symtab): Init symbol_cache_key. New parameter
3814 maint symbol-cache-size. New maint commands print symbol-cache,
3815 print symbol-cache-statistics, flush-symbol-cache.
3816 Install new_objfile, free_objfile observers.
3817
3818 2015-01-31 Joel Brobecker <brobecker@adacore.com>
3819
3820 PR symtab/17855
3821 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
3822 to end.
3823
3824 2015-01-31 Doug Evans <xdje42@gmail.com>
3825
3826 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
3827 * auto-load.c: #include ctype.h.
3828 (struct auto_load_pspace_info): Replace member loaded_scripts with
3829 new members loaded_script_files, loaded_script_texts.
3830 (auto_load_pspace_data_cleanup): Update.
3831 (init_loaded_scripts_info): Update.
3832 (get_auto_load_pspace_data_for_loading): Update.
3833 (maybe_add_script_file): Renamed from maybe_add_script. All callers
3834 updated.
3835 (maybe_add_script_text): New function.
3836 (clear_section_scripts): Update.
3837 (source_script_file, execute_script_contents): New functions.
3838 (source_section_scripts): Add support for
3839 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
3840 (print_scripts): New function.
3841 (auto_load_info_scripts): Also print inlined scripts.
3842 (maybe_print_unsupported_script_warning): Renamed from
3843 unsupported_script_warning_print. All callers updated.
3844 (maybe_print_script_not_found_warning): Renamed from
3845 script_not_found_warning_print. All callers updated.
3846 * extension-priv.h (struct extension_language_script_ops): New member
3847 objfile_script_executor.
3848 * extension.c (ext_lang_objfile_script_executor): New function.
3849 * extension.h (objfile_script_executor_func): New typedef.
3850 (ext_lang_objfile_script_executor): Declare.
3851 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
3852 * guile/guile.c (guile_extension_script_ops): Update.
3853 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
3854 * python/python.c (python_extension_script_ops): Update.
3855 (gdbpy_execute_objfile_script): New function.
3856
3857 2015-01-31 Eli Zaretskii <eliz@gnu.org>
3858
3859 * tui/tui-io.c (tui_expand_tabs): New function.
3860 (tui_puts, tui_redisplay_readline): Expand TABs into the
3861 appropriate number of spaces.
3862 * tui/tui-regs.c: Include tui-io.h.
3863 (tui_register_format): Call tui_expand_tabs to expand TABs into
3864 the appropriate number of spaces.
3865 * tui/tui-io.h: Add prototype for tui_expand_tabs.
3866
3867 2015-01-30 Doug Evans <dje@google.com>
3868
3869 * NEWS: "info source" command now display producer string if present.
3870 * source.c (source_info): Print producer string if present.
3871
3872 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3873
3874 * varobj.c (varobj_delete): Fix comment.
3875
3876 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3877
3878 * varobj.c (create_child): Modify comment.
3879
3880 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3881
3882 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
3883 parameter.
3884 (ada_name_of_variable): Same.
3885 (ada_path_expr_of_child): Same.
3886 (ada_value_of_variable): Same.
3887 (ada_value_is_changeable_p): Same.
3888 (ada_value_has_mutated): Same.
3889 * c-varobj.c (varobj_is_anonymous_child): Same.
3890 (c_is_path_expr_parent): Same.
3891 (c_number_of_children): Same.
3892 (c_name_of_variable): Same.
3893 (c_path_expr_of_child): Same.
3894 (get_type): Same.
3895 (c_value_of_variable): Same.
3896 (cplus_number_of_children): Same.
3897 (cplus_name_of_variable): Same.
3898 (cplus_path_expr_of_child): Same.
3899 (cplus_value_of_variable): Same.
3900 * jv-varobj.c (java_number_of_children): Same.
3901 (java_name_of_variable): Same.
3902 (java_path_expr_of_child): Same.
3903 (java_value_of_variable): Same.
3904 * varobj.c (number_of_children): Same.
3905 (name_of_variable): Same.
3906 (is_root_p): Same.
3907 (varobj_ensure_python_env): Same.
3908 (varobj_get_objname): Same.
3909 (varobj_get_expression): Same.
3910 (varobj_get_display_format): Same.
3911 (varobj_get_display_hint): Same.
3912 (varobj_has_more): Same.
3913 (varobj_get_thread_id): Same.
3914 (varobj_get_frozen): Same.
3915 (dynamic_varobj_has_child_method): Same.
3916 (varobj_get_gdb_type): Same.
3917 (is_path_expr_parent): Same.
3918 (varobj_default_is_path_expr_parent): Same.
3919 (varobj_get_language): Same.
3920 (varobj_get_attributes): Same.
3921 (varobj_is_dynamic_p): Same.
3922 (varobj_get_child_range): Same.
3923 (varobj_value_has_mutated): Same.
3924 (varobj_get_value_type): Same.
3925 (number_of_children): Same.
3926 (name_of_variable): Same.
3927 (check_scope): Same.
3928 (varobj_editable_p): Same.
3929 (varobj_value_is_changeable_p): Same.
3930 (varobj_floating_p): Same.
3931 (varobj_default_value_is_changeable_p): Same.
3932
3933 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3934
3935 * varobj.c (varobj_get_path_expr): Set var->path_expr.
3936 * c-varobj.c (c_path_expr_of_child): Set local var instead of
3937 child->path_expr.
3938 (cplus_path_expr_of_child): Same.
3939
3940 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3941
3942 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
3943 result.
3944 (mi_cmd_var_info_expression): Same.
3945 * varobj.c (varobj_get_expression): Mention in the comment that
3946 the result must by freed by the caller.
3947
3948 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3949
3950 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
3951 varobj_get_type.
3952 (varobj_update_one): Same.
3953 * varobj.c (update_type_if_necessary): Free curr_type_str and
3954 new_type_str.
3955 (varobj_get_type): Specify in comment that the result needs to be
3956 freed by the caller.
3957
3958 2015-01-29 Doug Evans <dje@google.com>
3959
3960 PR symtab/17890
3961 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
3962
3963 2015-01-25 Mark Wielaard <mjw@redhat.com>
3964
3965 * dwarf2read.c (checkproducer): Call producer_is_gcc.
3966 * utils.c (producer_is_gcc_ge_4): Likewise.
3967 (producer_is_gcc): New function.
3968 * utils.h (producer_is_gcc): New declaration.
3969
3970 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3971
3972 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
3973 kind.
3974 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
3975 parameter by "addr_stack" parameter.
3976 (resolve_dynamic_range): Replace "addr" parameter by
3977 "stack_addr" parameter. Update function documentation.
3978 Update code accordingly.
3979 (resolve_dynamic_array, resolve_dynamic_union)
3980 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
3981 (resolve_dynamic_type): Update code, following the changes made
3982 to resolve_dynamic_type_internal's interface.
3983 * dwarf2loc.h (struct property_addr_info): New.
3984 (dwarf2_evaluate_property): Replace "address" parameter
3985 by "addr_stack" parameter. Adjust function documentation.
3986 (struct dwarf2_offset_baton): New.
3987 (struct dwarf2_property_baton): Update documentation of
3988 field "referenced_type" to be more general. New field
3989 "offset_info" in union data field.
3990 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
3991 parameter by "addr_stack" parameter. Adjust code accordingly.
3992 Add support for PROP_ADDR_OFFSET properties.
3993 * dwarf2read.c (attr_to_dynamic_prop): Add support for
3994 DW_AT_data_member_location attributes as well. Use case
3995 statements instead of if/else condition.
3996
3997 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3998
3999 * ada-varobj.c (ada_varobj_get_array_number_of_children):
4000 Return zero if PARENT_VALUE is NULL and parent_type's
4001 range type is dynamic.
4002
4003 2015-01-29 Joel Brobecker <brobecker@adacore.com>
4004
4005 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
4006 nonzero if the type's subtype is dynamic.
4007 (resolve_dynamic_range): Also resolve the range's subtype.
4008
4009 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
4010
4011 Pushed by Joel Brobecker <brobecker@adacore.com>.
4012 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
4013
4014 2015-01-27 Doug Evans <dje@google.com>
4015
4016 * NEWS: Mention gdb.Objfile.username.
4017 * python/py-objfile.c (objfpy_get_username): New function.
4018 (objfile_getset): Add "username".
4019
4020 2015-01-24 Mark Wielaard <mjw@redhat.com>
4021
4022 * stack.c (return_command): Markup warning message with _.
4023
4024 2015-01-24 Doug Evans <xdje42@gmail.com>
4025
4026 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
4027
4028 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4029
4030 Fix 100x slowdown regression on DWZ files.
4031 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
4032 (struct line_header): Add offset and offset_in_dwz.
4033 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
4034 (free_line_header_voidp): New declaration.
4035 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
4036 functions.
4037 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
4038 (handle_DW_AT_stmt_list): Use line_header_hash.
4039 (free_line_header_voidp): New function.
4040 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
4041 (dwarf_decode_lines): New parameter decode_mapping, use it.
4042 (dwarf2_free_objfile): Free line_header_hash.
4043
4044 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
4045
4046 PR gdb/17416
4047 * valops.c (value_rtti_indirect_type): Catch exception thrown by
4048 value_ind.
4049
4050 2015-01-15 Mark Wielaard <mjw@redhat.com>
4051
4052 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
4053 DW_AT_noreturn.
4054 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
4055 calling_convention an 8 bit bit field.
4056 (TYPE_NO_RETURN): New macro.
4057 * infcmd.c (finish_command): Query if function does not return
4058 normally.
4059 * stack.c (return_command): Likewise.
4060
4061 2015-01-23 Pedro Alves <palves@redhat.com>
4062
4063 * linux-nat.c (linux_is_async_p): New macro.
4064 (linux_nat_is_async_p):
4065 (linux_nat_terminal_inferior): Check whether the target can async
4066 instead of whether it is already async.
4067 (linux_nat_terminal_ours): Don't check whether the target is
4068 async.
4069 (linux_async_pipe): Use linux_is_async_p.
4070
4071 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4072
4073 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
4074 '-ascending'.
4075 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
4076 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
4077 Sort tp_array using tp_array_compar.
4078 (_initialize_thread): Extend thread_apply_all_command help.
4079
4080 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4081
4082 * corelow.c (core_open): Call also thread_command.
4083 * gdbthread.h (thread_command): New prototype moved from ...
4084 * thread.c (thread_command): ... here.
4085 (thread_command): Make it global.
4086
4087 2015-01-22 Pedro Alves <palves@redhat.com>
4088
4089 * configure.ac [*mingw32*]: Check $curses_found instead of
4090 $prefer_curses.
4091 * configure: Regenerate.
4092 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
4093 HAVE_NCURSES_NCURSES_H checks.
4094
4095 2015-01-22 Eli Zaretskii <eliz@gnu.org>
4096
4097 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
4098 fails with the 1st arg NULL, try again with "unknown". Don't test
4099 the "cup" capability: it isn't supported by the Windows port of
4100 ncurses, but the Windows console driver is still capable of
4101 supporting TUI.
4102
4103 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4104
4105 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
4106
4107 2015-01-22 Eli Zaretskii <eliz@gnu.org>
4108
4109 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
4110 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
4111 reason that "make TAGS" is broken.
4112
4113 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
4114
4115 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
4116 and check additional store instructions.
4117
4118 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
4119
4120 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
4121
4122 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
4123
4124 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
4125 ppc_canonicalize_syscall, ppc_linux_syscall_record,
4126 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
4127 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
4128 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
4129 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
4130 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
4131 ppc_process_record_op19, ppc_process_record_op31,
4132 ppc_process_record_op59, ppc_process_record_op60,
4133 ppc_process_record_op63): Likewise.
4134
4135 2015-01-20 Joel Brobecker <brobecker@adacore.com>
4136
4137 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
4138 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
4139 strerror.
4140
4141 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
4142
4143 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
4144 ppc_process_record_op31, ppc_process_record_op59,
4145 ppc_process_record_op60, ppc_process_record_op63,
4146 ppc_process_record): Fix -Wformat warning.
4147 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
4148 Remove unused variables.
4149
4150 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
4151
4152 * MAINTAINERS (Write After Approval): Add "Chen Gang".
4153
4154 2015-01-19 Eli Zaretskii <eliz@gnu.org>
4155
4156 * configure.ac [*mingw32*]: Only add windows-termcap.o to
4157 CONFIG_OBS if not building with a curses library.
4158 * configure: Regenerate.
4159
4160 * windows-termcap.c: Include defs.h. Make the whole body empty if
4161 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
4162 HAVE_NCURSES_NCURSES_H is defined.
4163
4164 2015-01-19 Joel Brobecker <brobecker@adacore.com>
4165
4166 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
4167 from end of line to start of next line.
4168
4169 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
4170
4171 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
4172 Scan PLT stub backward for reverse debugging.
4173 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
4174
4175 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
4176 Ulrich Weigand <uweigand@de.ibm.com>
4177
4178 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
4179 gdb_target_obs.
4180 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
4181 record.
4182 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
4183 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
4184 (ppc_linux_init_abi): Set process_record, process_record_signal.
4185 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
4186 ppc_linux_record_tdep to gdbarch_tdep.
4187 (ppc_process_record): New declaration.
4188 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
4189 ppc_process_record_op19, ppc_process_record_op31,
4190 ppc_process_record_op59, ppc_process_record_op60,
4191 ppc_process_record_op63, ppc_process_record): New functions.
4192
4193 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
4194
4195 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
4196 rs6000_in_function_epilogue_frame_p and add an argument
4197 for frame_info.
4198 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
4199 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
4200 New functions.
4201 (rs6000_epilogue_frame_unwind): New.
4202 (rs6000_gdbarch_init): Append epilogue unwinder.
4203
4204 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4205
4206 * nat/linux-personality.c: Replace "#ifndef
4207 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
4208 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
4209 systems.
4210
4211 2015-01-16 Eli Zaretskii <eliz@gnu.org>
4212
4213 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
4214 functions.
4215 (_initialize_tui_win) <border-kind, border-mode>:
4216 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
4217 (tui_set_tab_width_command): Fix the commentary.
4218
4219 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
4220
4221 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
4222 Doc fix.
4223 (tui_set_tab_width_command): Delete and recreate the source and
4224 the disassembly windows, to show the effect of the changed tab
4225 size immediately.
4226
4227 * tui/tui-data.h (LINE_PREFIX): Make shorter
4228 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
4229 "Thread NNNNN.XXXX" thread ID notation on Windows.
4230
4231 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4232
4233 Fix gcc-5 compilation.
4234 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
4235
4236 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
4237
4238 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
4239 (linux-personality.o): New rule.
4240 * common/common-defs.h: Include <stdint.h>.
4241 * config/aarch64/linux.mh (NATDEPFILES): Include
4242 linux-personality.o.
4243 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4244 * config/arm/linux.mh (NATDEPFILES): Likewise.
4245 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4246 * config/i386/linux.mh (NATDEPFILES): Likewise.
4247 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4248 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4249 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4250 * config/mips/linux.mh (NATDEPFILES): Likewise.
4251 * config/pa/linux.mh (NATDEPFILES): Likewise.
4252 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4253 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4254 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4255 * config/s390/linux.mh (NATDEPFILES): Likewise.
4256 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4257 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4258 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4259 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4260 * defs.h: Remove #include <stdint.h> (moved to
4261 common/common-defs.h).
4262 * linux-nat.c: Include nat/linux-personality.h. Remove #include
4263 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
4264 nat/linux-personality.c).
4265 (linux_nat_create_inferior): Remove code to disable address space
4266 randomization (moved to nat/linux-personality.c). Create cleanup
4267 to disable address space randomization.
4268 * nat/linux-personality.c: New file.
4269 * nat/linux-personality.h: Likewise.
4270
4271 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
4272
4273 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
4274 common/posix-strerror.c.
4275 (posix-strerror.o): New rule.
4276 (mingw-strerror.o): Likewise.
4277 * common/common-utils.h (safe_strerror): Move prototype to here,
4278 from utils.h.
4279 * common/common.host: New file.
4280 * common/mingw-strerror.c: Likewise.
4281 * common/posix-strerror.c: Likewise.
4282 * configure: Regenerated.
4283 * configure.ac: Source common/common.host. Add variable
4284 common_host_obs to gdb_host_obs.
4285 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
4286 gdb/common/posix-strerror.c when warning about the use of
4287 strerror.
4288 * mingw-hdep.c (safe_strerror): Remove definition; move it to
4289 common/mingw-strerror.c.
4290 * posix-hdep.c (safe_strerror): Remove definition; move it to
4291 common/posix-hdep.c.
4292 * utils.h (safe_strerror): Remove prototype; move to
4293 common/common-utils.h.
4294
4295 2015-01-15 Joel Brobecker <brobecker@adacore.com>
4296
4297 GDB 7.8.2 released.
4298
4299 2015-01-15 Joel Brobecker <brobecker@adacore.com>
4300
4301 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
4302 ___XA type if the array has already been fixed.
4303
4304 2015-01-14 Yao Qi <yao@codesourcery.com>
4305
4306 * Makefile.in (ppc-linux.o): New rule.
4307 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
4308 * configure.ac: AC_CHECK_FUNCS(getauxval).
4309 * config.in: Re-generated.
4310 * configure: Re-generated.
4311 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
4312 Declare.
4313 * nat/ppc-linux.c: New file.
4314 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
4315 Call ppc64_64bit_inferior_p.
4316
4317 2015-01-14 Yao Qi <yao@codesourcery.com>
4318
4319 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
4320 nat/ppc-linux.h.
4321 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
4322 (PPC_FEATURE_HAS_DFP): Likewise.
4323 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
4324 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
4325 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
4326 Include "nat/ppc-linux.h".
4327 * nat/ppc-linux.h: New file.
4328 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
4329
4330 2015-01-14 Pedro Alves <palves@redhat.com>
4331
4332 PR gdb/17525
4333 * breakpoint.c: Include "interps.h".
4334 (bpstat_do_actions_1): Also check whether the interpreter is
4335 async.
4336
4337 2015-01-14 Pedro Alves <palves@redhat.com>
4338
4339 PR cli/17828
4340 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
4341 reinstall if the interpreter is sync.
4342
4343 2015-01-13 Doug Evans <dje@google.com>
4344
4345 * objfiles.c (objfile_filename): New function.
4346 * objfiles.h (objfile_filename): Declare it.
4347 (objfile_name): Add function comment.
4348 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
4349 bfd file name (which may be realpath'd), and the original name.
4350
4351 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4352
4353 * NEWS: Create a new section for the next release branch.
4354 Rename the section of the current branch, now that it has
4355 been cut.
4356
4357 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4358
4359 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
4360 * version.in: Bump version to 7.9.50.DATE-cvs.
4361
4362 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4363
4364 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
4365 Remove trailing new-line in argument of call to warning.
4366
4367 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4368
4369 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
4370 new-line in argument of call to "warning".
4371
4372 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4373
4374 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
4375 in static block, then try searching for primitive types.
4376
4377 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
4378
4379 * top.h (gdb_add_history): Declare.
4380 * top.c (command_count): New variable.
4381 (gdb_add_history): New function.
4382 (gdb_safe_append_history): New static function.
4383 (quit_force): Call it.
4384 (command_line_input): Use gdb_add_history instead of
4385 add_history.
4386 * event-top.c (command_line_handler): Likewise.
4387
4388 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
4389
4390 PR gdb/17046
4391 * darwin-nat.c: Replace <machine/setjmp.h> #include by
4392 <setjmp.h> #include.
4393
4394 2015-01-11 Doug Evans <xdje42@gmail.com>
4395
4396 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
4397
4398 2015-01-11 Doug Evans <xdje42@gmail.com>
4399
4400 PR gdb/15830
4401 * NEWS: The "maint demangle" command is renamed as "demangle".
4402 * demangle.c: #include cli/cli-utils.h, language.h.
4403 (demangle_command): New function.
4404 (_initialize_demangle): Add new command "demangle".
4405 * maint.c (maintenance_demangle): Stub out.
4406 (_initialize_maint_cmds): Update help text for "maint demangle",
4407 and mark as deprecated.
4408
4409 2015-01-11 Mark Kettenis <kettenis@gnu.org>
4410
4411 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
4412 inferior_thread is a function.
4413
4414 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4415
4416 * Makefile.in (.y.c): Don't munge yacc's #line
4417 directives.
4418
4419 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4420
4421 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
4422 to prompt for input.
4423 * tui/tui-hooks.c (tui_query_hook): Remove.
4424 (tui_install_hooks): Don't set deprecated_query_hook.
4425 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
4426 height calculation. Always update the command window's cur_line.
4427
4428 2015-01-09 Pedro Alves <palves@redhat.com>
4429
4430 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
4431 function.
4432 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
4433 declaration.
4434 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
4435 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
4436 stop_reason.
4437 (check_stopped_by_watchpoint): New function.
4438 (save_sigtrap): Reimplement.
4439 (linux_nat_stopped_by_watchpoint): Adjust.
4440 (linux_nat_lp_status_is_event): Delete.
4441 (stop_wait_callback): Only call save_sigtrap after storing the
4442 pending status.
4443 (status_callback): If the thread had been stopped for a breakpoint
4444 that has since been removed, discard the event and resume the LWP.
4445 (count_events_callback, select_event_lwp_callback): Use
4446 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
4447 (cancel_breakpoint): Rename to ...
4448 (check_stopped_by_breakpoint): ... this. Record whether the LWP
4449 stopped for a software breakpoint or hardware breakpoint.
4450 (select_event_lwp): Only give preference to the stepping LWP in
4451 all-stop mode. Adjust comments.
4452 (stop_and_resume_callback): Remove references to new_pending_p.
4453 (linux_nat_filter_event): Likewise. Leave exit events of the
4454 leader thread pending here. Handle signal short circuiting here.
4455 Only call save_sigtrap after storing the pending waitstatus.
4456 (linux_nat_wait_1): Remove 'retry' label. Remove references to
4457 new_pending. Don't handle leaving events the caller is not
4458 interested in pending here, nor handle signal short-circuiting
4459 here. Also give equal priority to all LWPs that have had events
4460 in non-stop mode. If reporting a software breakpoint event,
4461 unadjust the LWP's PC.
4462 * linux-nat.h (enum lwp_stop_reason): New.
4463 (struct lwp_info) <stop_pc>: New field.
4464 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
4465 (struct lwp_info) <stop_reason>: New field.
4466 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
4467
4468 2015-01-09 Pedro Alves <palves@redhat.com>
4469
4470 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
4471 Set the LWP's 'resumed' flag.
4472
4473 2015-01-09 Pedro Alves <palves@redhat.com>
4474
4475 * linux-nat.c (linux_resume_one_lwp): New function.
4476 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
4477 (linux_nat_resume): Use lwp_status_pending_p and
4478 linux_resume_one_lwp.
4479 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
4480 (linux_handle_extended_wait): Use linux_resume_one_lwp.
4481 (status_callback, running_callback): Use lwp_status_pending_p.
4482 (lwp_status_pending_p): New function.
4483 (stop_and_resume_callback): Use lwp_status_pending_p.
4484 (linux_nat_filter_event): Use linux_resume_one_lwp.
4485 (linux_nat_wait_1): Always use status_callback to look for an LWP
4486 with a pending status. Use linux_resume_one_lwp.
4487 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
4488 linux_resume_one_lwp.
4489
4490 2015-01-09 Pedro Alves <palves@redhat.com>
4491
4492 * breakpoint.c (bp_location_inserted_here_p): New function,
4493 factored out from ...
4494 (breakpoint_inserted_here_p): ... here. Use
4495 ALL_BP_LOCATIONS_AT_ADDR.
4496 (software_breakpoint_inserted_here_p): Use
4497 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
4498
4499 2014-01-09 Pedro Alves <palves@redhat.com>
4500
4501 Skip enabling event reporting if the kernel supports
4502 PTRACE_EVENT_CLONE.
4503 * linux-thread-db.c: Include "nat/linux-ptrace.h".
4504 (thread_db_use_events): New function.
4505 (try_thread_db_load_1): Check thread_db_use_events before enabling
4506 event reporting.
4507 (update_thread_state): New function.
4508 (attach_thread): Use it. Check thread_db_use_events before
4509 enabling event reporting.
4510 (thread_db_detach): Check thread_db_use_events before disabling
4511 event reporting.
4512 (find_new_threads_callback): Check thread_db_use_events before
4513 enabling event reporting. Update the thread's state if not using
4514 libthread_db events.
4515
4516 2015-01-09 Pedro Alves <palves@redhat.com>
4517
4518 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
4519 about to wait for is > 0.
4520 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
4521 the kernel thread ID is -1.
4522
4523 2015-01-09 Pedro Alves <palves@redhat.com>
4524
4525 * linux-nat.c (attach_proc_task_lwp_callback): New function.
4526 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
4527 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
4528 ptrace option flags.
4529 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
4530 field.
4531 * nat/linux-procfs.c: Include <dirent.h>.
4532 (linux_proc_get_int): New parameter "warn". Handle it.
4533 (linux_proc_get_tgid): Adjust.
4534 (linux_proc_get_tracerpid): Rename to ...
4535 (linux_proc_get_tracerpid_nowarn): ... this.
4536 (linux_proc_pid_get_state): New function, factored out from
4537 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
4538 and handle it.
4539 (linux_proc_pid_is_gone): New function.
4540 (linux_proc_pid_is_stopped): Adjust.
4541 (linux_proc_pid_is_zombie_maybe_warn)
4542 (linux_proc_pid_is_zombie_nowarn): New functions.
4543 (linux_proc_pid_is_zombie): Use
4544 linux_proc_pid_is_zombie_maybe_warn.
4545 (linux_proc_attach_tgid_threads): New function.
4546 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
4547 (linux_proc_get_tracerpid): Rename to ...
4548 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
4549 (linux_proc_pid_is_gone): New declaration.
4550 (linux_proc_pid_is_zombie): Update comment.
4551 (linux_proc_pid_is_zombie_nowarn): New declaration.
4552 (linux_proc_attach_lwp_func): New typedef.
4553 (linux_proc_attach_tgid_threads): New declaration.
4554 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
4555 use nowarn functions.
4556 (linux_ptrace_attach_fail_reason_string): Move here from
4557 gdbserver/linux-low.c and rename.
4558 (ptrace_supports_feature): If the current ptrace options are not
4559 known yet, check them now, instead of asserting.
4560 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
4561 Declare.
4562
4563 2015-01-09 Pedro Alves <palves@redhat.com>
4564
4565 * linux-thread-db.c (thread_db_find_new_threads_silently)
4566 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
4567 (find_new_threads_once): Print debug output on gdb_stdlog.
4568
4569 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
4570 Pedro Alves <palves@redhat.com>
4571
4572 * compile/compile.c: Include "gdb_wait.h".
4573 (do_rmdir): Check return value, and free 'zap'.
4574
4575 2015-01-08 Pedro Alves <palves@redhat.com>
4576 Yao Qi <yao@codesourcery.com>
4577
4578 * dwarf2loc.c (indirect_pieced_value): Don't call
4579 gdb_sign_extend. Call extract_signed_integer instead.
4580 * utils.c (gdb_sign_extend): Remove.
4581 * utils.h (gdb_sign_extend): Remove declaration.
4582
4583 2015-01-07 Pierre Muller <muller@sourceware.org>
4584
4585 PR symtab/17811
4586 * stabsread.c (define_symbol): Set language for C++ special symbols.
4587
4588 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4589
4590 * inflow.c (initial_gdb_ttystate): Tweak comment.
4591
4592 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4593
4594 * inflow.c (set_initial_gdb_ttystate): Add empty line after
4595 comment documenting function.
4596
4597 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4598
4599 * terminal.h (set_initial_gdb_ttystate): Declare.
4600 * inflow.c (initial_gdb_ttystate): New static variable.
4601 (set_initial_gdb_ttystate): New setter.
4602 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
4603 instead of our current terminal state.
4604 * top.c (gdb_init): Call set_initial_gdb_ttystate.
4605
4606 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4607
4608 * guile/scm-type.c (tyscm_array_1): Add comment.
4609 * python/py-type.c (typy_array_1): Add comment.
4610
4611 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4612
4613 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
4614 error if N2 is equal to N1 - 1.
4615
4616 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4617
4618 * python/py-type.c (typy_array_1): Do not raise negative-length
4619 exception if N2 is equal to N1 - 1.
4620
4621 2015-01-03 Doug Evans <xdje42@gmail.com>
4622
4623 * c-exp.y: Whitespace cleanup.
4624 (classify_inner_name): Remove extra ;.
4625
4626 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
4627
4628 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
4629 offset signed.
4630
4631 2015-01-02 Doug Evans <dje@google.com>
4632
4633 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
4634
4635 2015-01-02 Doug Evans <dje@google.com>
4636
4637 * symtab.h (struct symbol): Fix typo in comment.
4638
4639 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4640
4641 Update year range in copyright notice of all files.
4642
4643 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4644
4645 * top.c (print_gdb_version): Update copyright year to 2015.
4646
4647 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4648
4649 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
4650
4651 For older changes see ChangeLog-2014.
4652 \f
4653 Local Variables:
4654 mode: change-log
4655 left-margin: 8
4656 fill-column: 74
4657 version-control: never
4658 coding: utf-8
4659 End:
This page took 0.124701 seconds and 4 git commands to generate.