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