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