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