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