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