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