Remove code that checks for GNU/non-GNU make
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3b165252
SM
12016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
4 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5 make.
6 * configure.ac: Remove checks for the make program.
7 * configure: Re-generate.
8
f2ff9acd
SM
92016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
10
11 * NEWS: Mention requirement of GNU make.
12
66be918f
PA
132016-11-17 Pedro Alves <palves@redhat.com>
14
15 * c-exp.y (c_print_token): Use parser_fprintf instead of fprintf.
16
7c2683c4
PA
172016-11-17 Pedro Alves <palves@redhat.com>
18
19 * ctf.c [USE_WIN32API] (mkdir): Delete.
20
200069c7
PA
212016-11-16 Pedro Alves <palves@redhat.com>
22
23 * ada-lang.c (ada_value_primitive_packed_val): Use unique_ptr and
24 new gdb_byte[] instead of malloc and cleanups.
25
19f1935d
PA
262016-11-17 Pedro Alves <palves@redhat.com>
27
28 * tracepoint.c (collection_list::add_memrange): Add gdbarch
29 parameter. Use paddress instead of printf_vma. Adjust recursive
30 calls.
31 (collection_list::stringify): Use paddress and phex_nz instead of
32 sprintf_vma. Adjust add_memrange call.
33 * tracepoint.h (collection_list::add_memrange): Add gdbarch
34 parameter.
35
256ae5db
KB
362016-11-16 Kevin Buettner <kevinb@redhat.com>
37
38 * frame.c (get_prev_frame): Stash frame id for current frame
39 prior to computing frame id for previous frame.
40
33cc7d36
KB
412016-11-16 Kevin Buettner <kevinb@redhat.com>
42
43 * python/py-unwind.c (pending_framepy_read_register): Use
44 value_of_register() instead of get_frame_register_value().
45
41b56feb
KB
462016-11-16 Kevin Buettner <kevinb@redhat.com>
47
48 * value.h (VALUE_FRAME_ID): Rename to VALUE_NEXT_FRAME_ID. Update
49 comment. Create new VALUE_FRAME_ID which is defined in terms of
50 VALUE_NEXT_FRAME_ID.
51 (deprecated_value_frame_id_hack): Rename to
52 deprecated_value_next_frame_id_hack.
53 * dwarf2loc.c, findvar.c, frame-unwind.c, sentinel-frame.c,
54 valarith.c, valops.c, value.c: Adjust nearly all occurences of
55 VALUE_FRAME_ID to VALUE_NEXT_FRAME_ID. Add comments for those
56 which did not change.
57 * value.c (struct value): Rename frame_id field to next_frame_id.
58 Update comment.
59 (deprecated_value_frame_id_hack): Rename to
60 deprecated_value_next_frame_id_hack.
61 (value_fetch_lazy): Call frame_unwind_register_value()
62 instead of get_frame_register_value().
63 * frame.c (get_prev_frame_id_by_id): New function.
64 * frame.h (get_prev_frame_id_by_id): Declare.
65 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Make
66 VALUE_NEXT_FRAME_ID refer to the next frame.
67 * findvar.c (value_of_register_lazy): Likewise.
68 (default_value_from_register): Likewise.
69 (value_from_register): Likewise.
70 * frame_unwind.c (frame_unwind_got_optimized): Likewise.
71 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
72 * value.h (VALUE_FRAME_ID): Update comment describing this macro.
73
df433d31
KB
742016-11-16 Kevin Buettner <kevinb@redhat.com>
75
76 * frame.h (enum frame_id_stack_status): Add FID_STACK_SENTINEL.
77 (struct frame_id): Increase number of bits required for storing
78 stack status to 3 from 2.
79 (sentinel_frame_id): New declaration.
80 (get_next_frame_sentinel_okay): Declare.
81 (frame_find_by_id_sentinel_okay): Declare.
82 * frame.c (current_frame): Rename this static global to...
83 (sentinel_frame): ...this static global, which has also been
84 moved an earlier location in the file.
85 (fprint_frame_id): Add case for sentinel frame id.
86 (get_frame_id): Return early for sentinel frame.
87 (sentinel_frame_id): Define.
88 (frame_find_by_id): Add case for sentinel_frame_id.
89 (create_sentinel_frame): Use sentinel_frame_id for this_id.value
90 instead of null_frame_id.
91 (get_current_frame): Add local declaration for `current_frame'.
92 Remove local declaration for `sentinel_frame.'
93 (get_next_frame_sentinel_okay): New function.
94 (reinit_frame_cache): Use `sentinel_frame' in place of
95 `current_frame'.
96
4c62b19f
PA
972016-11-15 Pedro Alves <palves@redhat.com>
98
99 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
100 38237baf99386101934cd93278023aa4ae523ec0.
101 * gnulib/configure, gnulib/config.in: Regenerate.
102 * gnulib/import/Makefile.am: Regenerate.
103 * gnulib/import/Makefile.in: Regenerate.
104 * gnulib/import/canonicalize-lgpl.c: Update.
105 * gnulib/import/extra/snippet/c++defs.h: Update.
106 * gnulib/import/m4/stdint.m4: Update.
107 * gnulib/import/m4/stdlib_h.m4: Update.
108 * gnulib/import/math.in.h: Update.
109 * gnulib/import/stdlib.in.h: Update.
110 * gnulib/import/sys_time.in.h: Update.
111
5cc8c731
PA
1122016-11-15 Pedro Alves <palves@redhat.com>
113
114 * common/common-defs.h: Update comment.
115 * common/gdb_unique_ptr.h: Update header comment and copyright
116 year.
117 (gdb::unique_ptr, gdb::move): Delete.
118
b22e99fd
PA
1192016-11-15 Pedro Alves <palves@redhat.com>
120
121 * ada-lang.c (create_excep_cond_exprs): Use std::move instead of
122 gdb::move.
123 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
124 std::unique_ptr instead of gdb::unique_ptr.
125 * breakpoint.c (watch_command_1): Use std::move instead of
126 gdb::move.
127 * cli/cli-dump.c (dump_memory_to_file, restore_binary_file): Use
128 std::unique_ptr instead of gdb::unique_ptr.
129 * dtrace-probe.c (dtrace_process_dof_probe): Use std::move instead
130 of gdb::move.
131 * elfread.c (elf_read_minimal_symbols): Use std::unique_ptr
132 instead of gdb::unique_ptr.
133 * mi/mi-main.c (mi_cmd_data_read_memory): Use std::unique_ptr
134 instead of gdb::unique_ptr.
135 * parse.c (parse_expression_for_completion): Use std::move instead
136 of gdb::move.
137 * printcmd.c (display_command): std::move instead of gdb::move.
138
db58b373
MM
1392016-11-14 Markus Metzger <markus.t.metzger@intel.com>
140
141 * nat/linux-btrace.c (perf_event_read): Allow data_head < size.
142 * nat/linux-btrace.c (perf_event_read_all): Do not adjust size.
143
8001f118
TT
1442016-11-12 Tom Tromey <tom@tromey.com>
145
146 * rust-exp.y (super_name): Use std::vector.
147 (lex_number): Use std::string.
148 (convert_params_to_types): Return std::vector.
149 (convert_ast_to_type, convert_name): Update.
150 * rust-lang.c (rust_get_disr_info): Use unique_xmalloc_ptr.
151
d93f4d96
TT
1522016-11-12 Tom Tromey <tom@tromey.com>
153
154 * rust-lang.c (rust_get_disr_info): Use std::string in one more
155 spot.
156
7d15592e
YQ
1572016-11-11 Yao Qi <yao.qi@linaro.org>
158
159 * spu-tdep.c (spu_software_single_step): Don't call
160 get_frame_register_bytes, call get_frame_register_unsigned
161 instead.
162
668e1674
YQ
1632016-11-11 Yao Qi <yao.qi@linaro.org>
164
165 * cp-valprint.c (cp_print_value): Remove local base_valaddr.
166 * extension-priv.h (struct extension_language_ops)
167 <apply_val_pretty_printer>: Remove the second parameter.
168 Remove const from "struct value *". Callers updated.
169 * extension.c (apply_ext_lang_val_pretty_printer): Update
170 comments. Remove parameter valaddr. Remove const from
171 "struct value *".
172 * extension.h (apply_ext_lang_val_pretty_printer): Update
173 declaration.
174 * guile/guile-internal.h (gdbscm_apply_val_pretty_printer):
175 Update declaration.
176 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
177 Remove parameter valaddr. Remove const from "struct value *".
178 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer):
179 Likewise.
180 * python/python-internal.h (gdbpy_apply_val_pretty_printer):
181 Update declaration.
182
65408fa6
YQ
1832016-11-11 Yao Qi <yao.qi@linaro.org>
184
185 * c-lang.h (cp_print_value_fields): Update declaration.
186 * cp-valprint.c (cp_print_value): Update declaration.
187 (cp_print_value_fields): Remove parameter valaddr. Callers
188 updated.
189 (cp_print_value): Likewise.
190
9b972014
TT
1912016-11-09 Tom Tromey <tom@tromey.com>
192
193 * varobj.h (varobj_get_display_hint): Change return type.
194 * varobj.c (varobj_get_display_hint): Return unique_xmalloc_ptr.
195 (varobj_value_get_print_value): Update.
196 * python/python.c (gdbpy_before_prompt_hook, gdbpy_print_stack)
197 (gdbpy_apply_type_printers): Update.
198 * python/python-internal.h (unicode_to_target_string)
199 (python_string_to_target_string, python_string_to_host_string)
200 (gdbpy_obj_to_string, gdbpy_exception_to_string)
201 (gdbpy_get_display_hint): Change return types.
202 * python/py-varobj.c (py_varobj_iter_next): Update.
203 * python/py-value.c (valpy_getitem, convert_value_from_python):
204 Update.
205 * python/py-utils.c (unicode_to_encoded_string)
206 (unicode_to_target_string, python_string_to_target_string)
207 (python_string_to_host_string, gdbpy_obj_to_string)
208 (gdbpy_exception_to_string): Return unique_xmalloc_ptr.
209 * python/py-unwind.c (pyuw_parse_register_id): Update.
210 * python/py-type.c (typy_getitem): Update.
211 * python/py-prettyprint.c (gdbpy_get_display_hint)
212 (print_stack_unless_memory_error, print_children)
213 (gdbpy_apply_val_pretty_printer): Update.
214 * python/py-param.c (set_parameter_value): Update.
215 (get_doc_string, call_doc_function): Return unique_xmalloc_ptr.
216 (get_set_value, get_show_value, compute_enum_values, parmpy_init):
217 Update.
218 * python/py-infthread.c (thpy_set_name): Update.
219 * python/py-function.c (fnpy_call, fnpy_init): Update.
220 * python/py-framefilter.c (extract_sym): Change "name" to
221 unique_xmalloc_ptr.
222 (enumerate_args, enumerate_locals): Update.
223 (py_print_frame): Use unique_xmalloc_ptr.
224 * python/py-frame.c (frapy_read_var): Update. Remove cleanup.
225 * python/py-cmd.c (cmdpy_function, cmdpy_completer, cmdpy_init):
226 Update.
227 * python/py-breakpoint.c (bppy_set_condition): Use
228 unique_xmalloc_ptr.
229 (bppy_init): Likewise. Remove cleanup.
230 (local_setattro): Update.
231 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_list_children)
232 (varobj_update_one): Update.
233
6c73cd95
PA
2342016-11-09 Pedro Alves <palves@redhat.com>
235
236 * ax-gdb.c (agent_eval_command_one): Use std::move instead of
237 gdb::move.
238 * ax.h (agent_expr_up): Use std::unique_ptr instead of
239 gdb::unique_ptr.
240 * breakpoint.c (parse_cond_to_aexpr): Use std::move instead of
241 gdb::move.
242 * tracepoint.c (collection_list::collect_symbol): Likewise.
243 (collection_list::~collection_list): Delete.
244 (encode_actions_1): Use std::move instead of gdb::move.
245 (collection_list::add_aexpr): Use std::move instead of
246 unique_ptr::release.
247 * tracepoint.h (collection_list) <~collection_list>: Delete
248 declaration.
249 <m_aexprs>: Now a vector of agent_ptr_up.
250
7a63494a
PA
2512016-11-09 Pedro Alves <palves@redhat.com>
252
253 * main.c (struct cmdarg): Add constructor.
254 (captured_main_1): Use vector::emplace_back.
255 * tracepoint.c (collection_list::add_memrange): Likewise.
256
8c84bffb
AA
2572016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
258
259 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove
260 failed-xmalloc handling.
261
7bc2c8b8
AA
2622016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
263
264 * tui/tui-winsource.c (tui_alloc_source_buffer): Subtract
265 highlight box's overhead when calculating the content height.
266
f5396833
AA
2672016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
268
269 * tui/tui-disasm.c (tui_set_disassem_content): Fix calculation of
270 the longest disassembly line's length.
271
0bb65f1e
AA
2722016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
273
274 * tui/tui-disasm.c (tui_set_disassem_content): Fix line buffer
275 overrun due to unchecked strcpy.
276
82b19a4d
TG
2772016-11-09 Tristan Gingold <gingold@adacore.com>
278
279 * darwin-nat.c (find_inferior_task_it): Fix indentation.
280 (find_inferior_notify_it): Remove.
281 (find_inferior_pid_it): New function.
282 (darwin_find_inferior_by_notify): Remove.
283 (darwin_find_inferior_by_pid): New function.
284 (darwin_find_new_inferior): New function.
285 (darwin_check_message_ndr): New function from
286 darwin_decode_exception_message.
287 (darwin_decode_exception_message): Call darwin_check_message_ndr.
288 Handle SIGTRAP addressed to an unknown task (when a task spawned).
289 (darwin_decode_notify_message): New function.
290 (darwin_decode_message): Handle unknown task.
291 (darwin_deallocate_threads): New function from darwin_mourn_inferior.
292 (darwin_mourn_inferior): Use darwin_deallocate_threads and
293 darwin_deallocate_exception_ports.
294 (darwin_deallocate_exception_ports): New function from
295 darwin_mourn_inferior.
296 (darwin_setup_exceptions): New function from darwin_attach_pid.
297 (darwin_setup_request_notification): Likewise.
298 (darwin_attach_pid): Call darwin_setup_request_notification and
299 darwin_setup_request_notification.
300
30a7bb83
TT
3012016-11-08 Tom Tromey <tom@tromey.com>
302
303 * python/py-framefilter.c (py_print_frame): Use
304 get_addr_from_python. Check for errors when getting line number.
305
e8b24d9f
YQ
3062016-11-08 Yao Qi <yao.qi@linaro.org>
307
308 * ada-lang.h (ada_val_print): Remove second parameter. Remove
309 const from "struct value *".
310 * ada-valprint.c (print_field_values): Remove const from
311 "struct value *".
312 (val_print_packed_array_elements): Likewise.
313 (print_variant_part): Likewise.
314 (ada_val_print_string): Likewise.
315 (ada_val_print_gnat_array): Likewise.
316 (ada_val_print_ptr): Likewise.
317 (ada_val_print_num): Likewise.
318 (ada_val_print_enum): Likewise.
319 (ada_val_print_flt): Likewise.
320 (ada_val_print_union): Likewise.
321 (ada_val_print_struct_union): Likewise.
322 (ada_val_print_ref): Likewise.
323 (ada_val_print_1): Remove second parameter. Remove const from
324 "struct value *".
325 (ada_val_print): Likewise.
326 * c-lang.h (c_val_print): Likewise.
327 * c-valprint.c (c_val_print_array): Remove const from
328 "struct value *".
329 (c_val_print_ptr): Likewise.
330 (c_val_print_struct): Likewise.
331 (c_val_print_union): Likewise.
332 (c_val_print_int): Likewise.
333 (c_val_print_memberptr): Likewise.
334 (c_val_print): Remove second parameter. Remove const from
335 "struct value *". All callers updated.
336 * cp-valprint.c (cp_print_value): Remove const from
337 "struct value *".
338 (cp_print_value_fields): Likewise.
339 (c_val_print_value): Likewise.
340 * d-lang.h (d_val_print): Remove second parameter. Remove const
341 from "struct value *".
342 * d-valprint.c (dynamic_array_type): Likewise.
343 (d_val_print): Likewise.
344 * f-lang.h (f_val_print): Likewise.
345 * f-valprint.c (f_val_print): Likewise.
346 * go-lang.h (go_val_print): Likewise.
347 * go-valprint.c (print_go_string): Likewise.
348 (go_val_print): Likewise.
349 * language.c (unk_lang_val_print): Likewise.
350 * language.h (struct language_defn) <la_val_print>: Likewise.
351 Update comments.
352 (LA_VAL_PRINT): Remove.
353 * m2-lang.h (m2_val_print): Remove const from
354 "struct value *".
355 * m2-valprint.c (m2_print_array_contents): Likewise.
356 (m2_val_print): Likewise.
357 * p-lang.h (pascal_val_print): Remove second parameter. Remove
358 const from "struct value *".
359 (pascal_object_print_value_fields): Likewise.
360 * p-valprint.c (pascal_val_print): Likewise.
361 (pascal_object_print_value_fields): Likewise.
362 (pascal_object_print_value): Likewise.
363 * rust-lang.c (rust_get_disr_info): Likewise.
364 (val_print_struct): Likewise.
365 (rust_val_print): Likewise.
366 * valprint.c (generic_val_print_array): Likewise.
367 (generic_val_print_ptr): Likewise.
368 (generic_val_print_memberptr): Likewise.
369 (generic_val_print_ref): Likewise.
370 (generic_val_print_enum): Likewise.
371 (generic_val_print_flags): Likewise.
372 (generic_val_print_func): Likewise.
373 (generic_val_print_bool): Likewise.
374 (generic_val_print_int): Likewise.
375 (generic_val_print_char): Likewise.
376 (generic_val_print_float): Likewise.
377 (generic_val_print_decfloat): Likewise.
378 (generic_val_print_complex): Likewise.
379 (generic_val_print): Likewise.
380 (val_print): Likewise.
381 (common_val_print): Likewise.
382 (val_print_type_code_flags): Likewise.
383 (val_print_scalar_formatted): Likewise.
384 (val_print_array_elements): Likewise.
385 * valprint.h (val_print_array_elements): Update declaration.
386 (val_print_scalar_formatted): Likewise.
387 (generic_val_print): Likewise.
388 * value.h (val_print): Likewise.
389
cc977dc7
YQ
3902016-11-08 Yao Qi <yao.qi@linaro.org>
391
392 * mt-tdep.c (mt_registers_info): Call
393 get_frame_register_value instead of
394 deprecated_frame_register_read.
395 * sh64-tdep.c (sh64_do_register): Likewise.
396
3cde5c42
PA
3972016-11-08 Pedro Alves <palves@redhat.com>
398
399 * ax.h (agent_expr_p): Delete.
400 (DEF_VEC_P (agent_expr_p)): Delete.
401 * breakpoint.c (build_target_condition_list)
402 (build_target_command_list): Adjust to use of std::vector.
403 (bp_location_dtor): Remove now unnecessary VEC_free calls.
404 * breakpoint.h: Include <vector>.
405 (struct bp_target_info) <conditions, tcommands>: Now
406 std::vector's.
407 * remote.c (remote_add_target_side_condition): bp_tgt->conditions
408 is now a std::vector; adjust.
409 (remote_add_target_side_commands, remote_insert_breakpoint):
410 bp_tgt->tcommands is now a std::vector; adjust.
411
833177a4
PA
4122016-11-08 Pedro Alves <palves@redhat.com>
413
414 * ax-gdb.c (is_nontrivial_conversion): Use agent_expr_up.
415 (gen_trace_for_var, gen_trace_for_expr, gen_eval_for_expr)
416 (gen_trace_for_return_address, gen_printf): Use and return an
417 agent_expr_up. Don't use make_cleanup_free_agent_expr.
418 (agent_eval_command_one, maint_agent_printf_command): Use
419 agent_expr_up. Don't use make_cleanup_free_agent_expr.
420 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
421 (gen_trace_for_return_address, gen_eval_for_expr, gen_printf): Use
422 agent_expr_up.
423 * ax-general.c (new_agent_expr): Rename to ...
424 (agent_expr::agent_expr): ... this, and now a constructor.
425 (free_agent_expr): Rename to ...
426 (agent_expr::~agent_exp): ... this, and now a destructor.
427 (do_free_agent_expr_cleanup, make_cleanup_free_agent_expr):
428 Delete.
429 * ax.h (struct agent_expr): Add ctor/dtor.
430 (agent_expr_up): New typedef.
431 (new_agent_expr, free_agent_expr, make_cleanup_free_agent_expr):
432 Delete declarations.
433 * breakpoint.c (parse_cond_to_aexpr): Use and return an
434 agent_expr_up. Don't use make_cleanup_free_agent_expr.
435 (build_target_condition_list): Adjust to use agent_expr_up.
436 (parse_cmd_to_aexpr): Use and return an agent_expr_up. Don't use
437 make_cleanup_free_agent_expr.
438 (build_target_command_list): Adjust to use agent_expr_up.
439 (force_breakpoint_reinsertion): Adjust to use agent_expr_up.
440 (bp_location_dtor): Remove unnecessary free_agent_expr and xfree
441 calls.
442 * breakpoint.h (struct bp_target_info) <cond_bytecode,
443 cmd_bytecode>: Now agent_expr_up's.
444 * remote.c (remote_download_tracepoint): Adjust to use
445 agent_expr_up and remove use of make_cleanup_free_agent_expr.
446 * tracepoint.c (validate_actionline, collect_symbol): Adjust to
447 use agent_expr_up and remove uses of make_cleanup_free_agent_expr.
448 (collection_list::~collection_list): Call delete instead of
449 free_agent_expr.
450 (encode_actions_1): Adjust to use agent_expr_up and remove uses of
451 make_cleanup_free_agent_expr.
452 (add_aexpr): Change parameter type to agent_expr_up; Return a raw
453 agent_expr pointer.
454
2f408ecb
PA
4552016-11-08 Pedro Alves <palves@redhat.com>
456
457 * ada-lang.c (ada_name_for_lookup, type_as_string): Use and return
458 std::string.
459 (type_as_string_and_cleanup): Delete.
460 (ada_lookup_struct_elt_type): Use type_as_string.
461 * ada-lang.h (ada_name_for_lookup): Now returns std::string.
462 * ada-varobj.c (ada_varobj_scalar_image): Return a std::string.
463 (ada_varobj_describe_child): Make 'child_name' and
464 'child_path_expr' parameters std::string pointers.
465 (ada_varobj_describe_struct_child, ada_varobj_describe_ptr_child):
466 Likewise, and use string_printf.
467 (ada_varobj_describe_simple_array_child)
468 (ada_varobj_describe_child): Likewise.
469 (ada_varobj_get_name_of_child, ada_varobj_get_path_expr_of_child)
470 (ada_varobj_get_value_image)
471 (ada_varobj_get_value_of_array_variable)
472 (ada_varobj_get_value_of_variable, ada_name_of_variable)
473 (ada_name_of_child, ada_path_expr_of_child)
474 (ada_value_of_variable): Now returns std::string. Use
475 string_printf.
476 (ada_value_of_child): Adjust.
477 * break-catch-throw.c (check_status_exception_catchpoint): Adjust
478 to use std::string.
479 * breakpoint.c (watch_command_1): Adjust to use std::string.
480 * c-lang.c (c_get_string): Adjust to use std::string.
481 * c-typeprint.c (print_name_maybe_canonical): Use std::string.
482 * c-varobj.c (varobj_is_anonymous_child): Use ==/!= std::string
483 operators.
484 (c_name_of_variable): Now returns a std::string.
485 (c_describe_child): The 'cname' and 'cfull_expression' output
486 parameters are now std::string pointers. Adjust.
487 (c_name_of_child, c_path_expr_of_child, c_value_of_variable)
488 (cplus_number_of_children): Adjust to use std::string and
489 string_printf.
490 (cplus_name_of_variable): Now returns a std::string.
491 (cplus_describe_child): The 'cname' and 'cfull_expression' output
492 parameters are now std::string pointers. Adjust.
493 (cplus_name_of_child, cplus_path_expr_of_child)
494 (cplus_value_of_variable): Now returns a std::string.
495 * cp-abi.c (cplus_typename_from_type_info): Return std::string.
496 * cp-abi.h (cplus_typename_from_type_info): Return std::string.
497 (struct cp_abi_ops) <get_typename_from_type_info>: Return
498 std::string.
499 * cp-support.c (inspect_type): Use std::string.
500 (cp_canonicalize_string_full, cp_canonicalize_string_no_typedefs)
501 (cp_canonicalize_string): Return std::string and adjust.
502 * cp-support.h (cp_canonicalize_string)
503 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string_full):
504 Return std::string.
505 * dbxread.c (read_dbx_symtab): Use std::string.
506 * dwarf2read.c (dwarf2_canonicalize_name): Adjust to use std::string.
507 * gdbcmd.h (lookup_struct_elt_type): Adjust to use std::string.
508 * gnu-v3-abi.c (gnuv3_get_typeid): Use std::string.
509 (gnuv3_get_typename_from_type_info): Return a std::string and
510 adjust.
511 (gnuv3_get_type_from_type_info): Adjust to use std::string.
512 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
513 std::string.
514 * infcmd.c (print_return_value_1): Adjust to use std::string.
515 * linespec.c (find_linespec_symbols): Adjust to
516 demangle_for_lookup API change. Use std::string.
517 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_set_format)
518 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
519 (mi_cmd_var_info_expression, mi_cmd_var_evaluate_expression)
520 (mi_cmd_var_assign, varobj_update_one): Adjust to use std::string.
521 * minsyms.c (lookup_minimal_symbol): Use std::string.
522 * python/py-varobj.c (py_varobj_iter_next): Use new instead of
523 XNEW. vitem->name is a std::string now, adjust.
524 * rust-exp.y (convert_ast_to_type, convert_name): Adjust to use
525 std::string.
526 * stabsread.c (define_symbol): Adjust to use std::string.
527 * symtab.c (demangle_for_lookup): Now returns 'const char *'. Add
528 a demangle_result_storage parameter. Use it for storage.
529 (lookup_symbol_in_language)
530 (lookup_symbol_in_objfile_from_linkage_name): Adjust to new
531 demangle_for_lookup API.
532 * symtab.h (struct demangle_result_storage): New type.
533 (demangle_for_lookup): Now returns 'const char *'. Add a
534 demangle_result_storage parameter.
535 * typeprint.c (type_to_string): Return std::string and use
536 ui_file_as_string.
537 * value.h (type_to_string): Change return type to std::string.
538 * varobj-iter.h (struct varobj_item) <name>: Now a std::string.
539 (varobj_iter_delete): Use delete instead of xfree.
540 * varobj.c (create_child): Return std::string instead of char * in
541 output parameter.
542 (name_of_variable, name_of_child, my_value_of_variable): Return
543 std::string instead of char *.
544 (varobj_create, varobj_get_handle): Constify 'objname' parameter.
545 Adjust to std::string fields.
546 (varobj_get_objname): Return a const char * instead of a char *.
547 (varobj_get_expression): Return a std::string.
548 (varobj_list_children): Adjust to use std::string.
549 (varobj_get_type): Return a std::string.
550 (varobj_get_path_expr): Return a const char * instead of a char *.
551 Adjust to std::string fields.
552 (varobj_get_formatted_value, varobj_get_value): Return a
553 std::string.
554 (varobj_set_value): Change type of 'expression' parameter to
555 std::string. Use std::string.
556 (install_new_value): Use std::string.
557 (delete_variable_1): Adjust to use std::string.
558 (create_child): Change the 'name' parameter to a std::string
559 reference. Swap it into the new item's name.
560 (create_child_with_value): Swap item's name into the new child's
561 name. Use string_printf.
562 (new_variable): Use new instead of XNEW.
563 (free_variable): Don't xfree fields that are now std::string.
564 (name_of_variable, name_of_child): Now returns std::string.
565 (value_of_root): Adjust to use std::string.
566 (my_value_of_variable, varobj_value_get_print_value): Return
567 and use std::string.
568 (varobj_value_get_print_value): Adjust to use ui_file_as_string
569 and std::string.
570 * varobj.h (struct varobj) <name, path_expr, obj_name,
571 print_value>: Now std::string's.
572 <name_of_variable, name_of_child, path_expr_of_child,
573 value_of_variable>: Return std::string.
574 (varobj_create, varobj_get_handle): Constify 'objname' parameter.
575 (varobj_get_objname): Return a const char * instead of a char *.
576 (varobj_get_expression, varobj_get_type): Return a std::string.
577 (varobj_get_path_expr): Return a const char * instead of a char *.
578 (varobj_get_formatted_value, varobj_get_value): Return a
579 std::string.
580 (varobj_set_value): Constify 'expression' parameter.
581 (varobj_value_get_print_value): Return a std::string.
582
d2af8993
PA
5832016-11-08 Pedro Alves <palves@redhat.com>
584
585 * language.c (add_language): Use ui_file_as_string and adjust to
586 use std::string.
587
5698084a
PA
5882016-11-08 Pedro Alves <palves@redhat.com>
589 Tom Tromey <tom@tromey.com>
590
591 * rust-lang.c (struct disr_info) <name>: Now a std::string.
592 (rust_get_disr_info): Use ui_file_as_string and adjust to use
593 std::string.
594 (rust_val_print): Adjust to use std::string.
595
af1fe7b3
PA
5962016-11-08 Pedro Alves <palves@redhat.com>
597
598 * infrun.c (print_target_wait_results): Use ui_file_as_string and
599 std::string.
600
3b4de39c
PA
6012016-11-08 Pedro Alves <palves@redhat.com>
602
603 * ada-lang.c (type_as_string): Use ui_file_as_string and return
604 std::string.
605 (type_as_string_and_cleanup): Delete.
606 (ada_lookup_struct_elt_type): Use type_as_string.
607
6f030249
PA
6082016-11-08 Pedro Alves <palves@redhat.com>
609
610 * gdbarch.sh (verify_gdbarch): Use ui_file_as_string and
611 std::string.
612 * gdbarch.c: Regenerate.
613
66bbce5b
PA
6142016-11-08 Pedro Alves <palves@redhat.com>
615
616 * c-exp.y (OPERATOR NEW): Adjust to use ui_file_as_string and
617 std::string.
618
aaee65ae
PA
6192016-11-08 Pedro Alves <palves@redhat.com>
620
621 * c-lang.h (c_compute_program): Now returns std::string.
622 * compile/compile-internal.h (class compile_file_names): New
623 class.
624 * compile/compile-object-load.c (compile_object_load): Replace
625 object_file and source_file parameters with a compile_file_names
626 parameter. Adjust.
627 * compile-object-load.h: Include "compile-internal.h".
628 (compile_object_load): Replace object_file and source_file
629 parameters with a compile_file_names parameter.
630 * compile/compile-c-support.c (c_compute_program): Now returns a
631 std::string. Use ui_file_as_string.
632 * compile/compile.c (get_new_file_names): Remove parameters and
633 return a compile_file_names instead.
634 (compile_to_object): Now returns a compile_file_names. Use
635 ui_file_as_string.
636 (eval_compile_command): Use compile_file_names.
637 * language.h (struct language_defn) <la_compute_program>: Now
638 returns std::string.
639
3d8b0d94
PA
6402016-11-08 Pedro Alves <palves@redhat.com>
641
642 * cli/cli-setshow.c (do_show_command): Adjust to use
643 ui_file_as_string and std::string.
644
b3ced9ba
PA
6452016-11-08 Pedro Alves <palves@redhat.com>
646
647 * remote.c (escape_buffer): Use ui_file_as_string and return
648 std::string.
649 (putpkt_binary, read_frame): Adjust to use std::string.
650
c92aed16
PA
6512016-11-08 Pedro Alves <palves@redhat.com>
652
653 * python/py-arch.c (archpy_disassemble): Use ui_file_as_string and
654 std::string.
655 * python/py-breakpoint.c (bppy_get_commands): Use
656 ui_file_as_string and std::string.
657 * python/py-frame.c (frapy_str): Likewise.
658 * python/py-type.c (typy_str): Likewise.
659 * python/py-unwind.c (unwind_infopy_str): Likewise.
660 * python/py-value.c (valpy_str): Likewise.
661
02030646
PA
6622016-11-08 Pedro Alves <palves@redhat.com>
663
664 * printcmd.c (eval_command): Use ui_file_as_string and
665 std::string.
666
7b01d34b
PA
6672016-11-08 Pedro Alves <palves@redhat.com>
668
669 * top.c (quit_confirm): Use ui_file_as_string and std::string.
670
db1ec11f
PA
6712016-11-08 Pedro Alves <palves@redhat.com>
672
673 * gdbcmd.h (execute_command_to_string): Now returns std::string.
674 (lookup_struct_elt_type): Adjust to use std::string.
675 * top.c (execute_command_to_string): Use ui_file_as_string and
676 return std::string.
677 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
678 std::string.
679 * python/python.c (execute_gdb_command): Adjust to use
680 std::string.
681
3ab692db
PA
6822016-11-08 Pedro Alves <palves@redhat.com>
683
684 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
685 ui_file_as_string and adjust to use std::string.
686 * guile/scm-disasm.c (gdbscm_arch_disassemble): Likewise.
687 * guile/scm-frame.c (frscm_print_frame_smob): Likewise.
688 * guile/scm-type.c (tyscm_type_name): Use ui_file_as_string and
689 adjust to use std::string. Throw exception directly instead of
690 returning it in EXCP output parameter.
691 (tyscm_print_type_smob, gdbscm_type_print_name): Adjust to
692 tyscm_type_name interface change.
693 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
694 Use ui_file_as_string and std::string.
695
09b0e4b0
PA
6962016-11-08 Pedro Alves <palves@redhat.com>
697
698 * arm-tdep.c (_initialize_arm_tdep): Use ui_file_as_string and
699 std::string.
700
d16c5475
PA
7012016-11-08 Pedro Alves <palves@redhat.com>
702
703 * utils.c (error_stream): Use ui_file_as_string and std::string.
704
56dbf317
PA
7052016-11-08 Pedro Alves <palves@redhat.com>
706
707 * ui-out.c (ui_out_field_stream): Use ui_file_as_string.
708
77e1c742
PA
7092016-11-08 Pedro Alves <palves@redhat.com>
710
711 * ada-valprint.c (ada_print_floating): Use ui_file_as_string and
712 std::string.
713
a0f86e73
PA
7142016-11-08 Pedro Alves <palves@redhat.com>
715
716 * xtensa-tdep.c (xtensa_verify_config): Use ui_file_as_string and
717 std::string.
718
322a8516
PA
7192016-11-08 Pedro Alves <palves@redhat.com>
720
721 * dwarf2read.c (dwarf2_compute_name): Use ui_file_as_string and
722 std::string.
723
1f45808e
PA
7242016-11-08 Pedro Alves <palves@redhat.com>
725
726 * mi/mi-main.c (print_variable_or_computed): Constify 'expression'
727 parameter.
728 (mi_cmd_trace_frame_collected): Call encode_actions instead of
729 encode_actions_and_make_cleanup. Adjust to use std::vector.
730 * tracepoint.c (memrange_cmp): Delete.
731 (memrange_comp): New.
732 (memrange_sortmerge): Take a memrange vector as parameter instead
733 of a collection_list. Use std::sort instead of qsort.
734 (add_register): Now a method of collection_list. Adjust to m_
735 prefix of data fields.
736 (add_memrange): Now a method of collection_list. Adjust to m_
737 prefix of data fields. Adjust to use std::vector.
738 (collect_symbol): Now a method of collection_list. Adjust to m_
739 prefix of data fields.
740 (do_collect_symbol): Adjust. Call add_wholly_collected instead of
741 accessing the vector directly.
742 (collection_list::add_wholly_collected): New.
743 (add_local_symbols): Now a method of collection_list.
744 (add_static_trace_data): Now a method of collection_list. Adjust
745 to use bool.
746 (clear_collection_list, do_clear_collection_list): Delete.
747 (init_collection_list): Delete.
748 (collection_list::collection_list): New.
749 (collection_list::~collection_list): New.
750 (stringify_collection_list): Rename to ...
751 (collection_list::stringify): ... this and adjust to being a
752 method of collection_list. Adjust to use of std::vector.
753 (append_exp): Now a method of collection_list. Use
754 ui_file_as_string. Adjust to std::vector.
755 (collection_list::finish): New.
756 (encode_actions_1): Adjust.
757 (encode_actions_and_make_cleanup): Rename to ...
758 (encode_actions)... this. No longer returns a cleanup. No longer
759 call init_collection_list nor install do_clear_collection_list
760 cleanups. Call collection_list::finish instead of
761 memrange_sortmerge directly.
762 (encode_actions_rsp): Adjust to call encode_actions instead of
763 encode_actions_and_make_cleanup. Adjust to method renames.
764 (add_aexpr): Now a method of collection_list.
765 * tracepoint.h: Include <vector> and <string>.
766 (struct memrange): Add constructors.
767 (struct collection_list): Now a class.
768 (class collection_list) <collection_list, ~collection_list,
769 add_wholly_collected, append_exp, add_aexpr, add_register,
770 add_memrange, collect_symbol, add_local_symbols,
771 add_static_trace_data, finish, stringify, wholly_collected, and
772 computed>: New methods.
773 <regs_mask>: Rename to ...
774 <m_regs_mask>: ... this.
775 <listsize, next_memrange, list>: Delete fields.
776 <m_memranges>: New field.
777 <aexpr_listsize, next_aexpr_elt, aexpr_list>: Delete fields.
778 <m_aexprs>: New field.
779 <strace_data>: Rename to ...
780 <m_strace_data>: ... this. Now a bool.
781 <wholly_collected>: Rename to ...
782 <m_wholly_collected>: ... this. Now a std::vector<std::string>.
783 <computed>: Rename to ...
784 <m_computed>: ... this. Now a std::vector<std::string>.
785 (encode_actions_and_make_cleanup): Delete declaration.
786 (encode_actions): New declaration.
787
8de00631
PA
7882016-11-08 Pedro Alves <palves@redhat.com>
789
790 * ui-file.c (do_ui_file_as_string, ui_file_as_string): New
791 functions.
792 * ui-file.h: Include <string>.
793 (ui_file_as_string): New declaration.
794
4d01a485
PA
7952016-11-08 Pedro Alves <palves@redhat.com>
796
797 * ada-lang.c (ada_read_renaming_var_value): Use expression_up.
798 (struct ada_catchpoint_location) <excep_cond_expr>: Now an
799 expression_up.
800 (ada_catchpoint_location_dtor): Reset excep_cond_expr instead of
801 using xfree.
802 (create_excep_cond_exprs): Use expression_up and gdb::move.
803 (allocate_location_exception): Use new instead of XNEW.
804 (should_stop_exception): Likewise. Adjust to use expression_up.
805 (create_ada_exception_catchpoint): Use new instead of XNEW.
806 * ax-gdb.c (agent_eval_command_one): Use expression_up instead of
807 cleanups.
808 (maint_agent_printf_command): Use expression_up.
809 * break-catch-sig.c (create_signal_catchpoint): Use new instead of
810 XNEW.
811 * break-catch-syscall.c (create_syscall_event_catchpoint):
812 Likewise.
813 * break-catch-throw.c (handle_gnu_v3_exceptions): Use new instead
814 of XCNEW. Use gdb::unique_ptr instead of cleanups.
815 * breakpoint.c (set_breakpoint_condition, update_watchpoint)
816 (parse_cmd_to_aexpr, watchpoint_check)
817 (bpstat_check_breakpoint_conditions, watchpoint_locations_match):
818 Adjust to use expression_up.
819 (init_bp_location): Adjust.
820 (free_bp_location): Use delete instead of xfree.
821 (set_raw_breakpoint_without_location, set_raw_breakpoint)
822 (add_solib_catchpoint, create_fork_vfork_event_catchpoint)
823 (new_single_step_breakpoint, create_breakpoint_sal): Use new
824 instead of XNEW.
825 (find_condition_and_thread): Adjust to use expression_up.
826 (create_breakpoint): Use new instead of XNEW.
827 (dtor_watchpoint): Don't xfree expression pointers, they're
828 unique_ptr's now.
829 (insert_watchpoint, remove_watchpoint): Adjust.
830 (watch_command_1): Use expression_up. Use new instead of XCNEW.
831 (catch_exec_command_1): Use new instead of XNEW.
832 (bp_location_dtor): Don't xfree expression pointers, they're
833 unique_ptr's now.
834 (base_breakpoint_allocate_location)
835 (strace_marker_create_breakpoints_sal): Use new instead of XNEW.
836 (delete_breakpoint): Use delete instead of xfree.
837 * breakpoint.h (struct bp_location) <cond>: Now an
838 unique_ptr<expression> instead of a raw pointer.
839 (struct watchpoint) <exp, cond_exp>: Likewise.
840 * cli/cli-script.c (execute_control_command): Use expression_up
841 instead of cleanups.
842 * dtrace-probe.c (dtrace_process_dof_probe): Use expression_up.
843 * eval.c (parse_and_eval_address, parse_and_eval_long)
844 (parse_and_eval, parse_to_comma_and_eval, parse_and_eval_type):
845 Use expression_up instead of cleanups.
846 * expression.h (expression_up): New typedef.
847 (parse_expression, parse_expression_with_language, parse_exp_1):
848 Change return type to expression_up.
849 * mi/mi-main.c (mi_cmd_data_evaluate_expression)
850 (print_variable_or_computed): Use expression_up.
851 * objc-lang.c (print_object_command): Use expression_up instead of
852 cleanups.
853 * parse.c (parse_exp_1, parse_exp_in_context)
854 (parse_exp_in_context_1, parse_expression)
855 (parse_expression_with_language): Return an expression_up instead
856 of a raw pointer.
857 (parse_expression_for_completion): Use expression_up.
858 * printcmd.c (struct display) <exp>: Now an expression_up instead
859 of a raw pointer.
860 (print_command_1, output_command_const, set_command, x_command):
861 Use expression_up instead of cleanups.
862 (display_command): Likewise. Use new instead of XNEW.
863 (free_display): Use delete instead of xfree.
864 (do_one_display): Adjust to use expression_up.
865 * remote.c (remote_download_tracepoint): Likewise.
866 * stack.c (return_command): Likewise.
867 * tracepoint.c (validate_actionline, encode_actions_1): Use
868 expression_up instead of cleanups.
869 * typeprint.c (whatis_exp, maintenance_print_type): Likewise.
870 * value.c (init_if_undefined_command): Likewise.
871 * varobj.c (struct varobj_root) <exp>: Now an expression_up
872 instead of a raw pointer.
873 (varobj_create): Adjust.
874 (varobj_set_value): Use an expression_up instead of cleanups.
875 (new_root_variable): Use new instead of XNEW.
876 (free_variable): Use delete instead of xfree.
877 (value_of_root_1): Use std::swap.
878
b0646401
PA
8792016-11-08 Pedro Alves <palves@redhat.com>
880
881 * cli/cli-script.c (execute_control_command): Use std::string
882 instead of cleanups.
883 (locate_arg): Constify return type.
884 (insert_args): Constify paremeter. Simplify using std::string.
885 Return a std::string.
886
896b6bda
PA
8872016-11-08 Pedro Alves <palves@redhat.com>
888
889 * breakpoint.c (struct commands_info) <arg>: Constify.
890 (commands_command_1): Constify 'arg' parameter. Use std::string
891 and string_printf.
892 (commands_from_control_command): Constify 'arg' parameter.
893 (map_breakpoint_numbers): Constify 'args' parameter.
894 * breakpoint.h (commands_from_control_command): Constify 'arg'
895 parameter.
896
4f8ad951
PA
8972016-11-08 Pedro Alves <palves@redhat.com>
898
899 * cli/cli-script.c (execute_control_command): Assume insert_args
900 never returns NULL.
901 (insert_args): Assume xmalloc never returns NULL.
902
d4081a38
PA
9032016-11-08 Pedro Alves <palves@redhat.com>
904
905 * Makefile.in (COMMON_OBS): Add utils-selftests.o.
906 * common/common-utils.c (string_printf): New function.
907 * common/common-utils.h: Include <string>.
908 (string_printf): Declare.
909 * utils-selftests.c: New file.
910
93f9a11f
YQ
9112016-11-08 Yao Qi <yao.qi@linaro.org>
912
913 * aarch64-tdep.c (aarch64_software_single_step): Return
914 VEC (CORE_ADDR) *. Return NULL instead of 0. Don't call
915 insert_single_step_breakpoint.
916 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Likewise.
917 (alpha_software_single_step): Likewise.
918 * alpha-tdep.h (alpha_software_single_step): Update declaration.
919 * arm-linux-tdep.c (arm_linux_software_single_step): Return
920 VEC (CORE_ADDR) *. Return NULL instead of 0.
921 * arm-tdep.c (arm_software_single_step): Return NULL instead of 0.
922 * arm-tdep.h (arm_software_single_step): Update declaration.
923 * breakpoint.c (insert_single_step_breakpoints): New function.
924 * breakpoint.h (insert_single_step_breakpoints): Declare.
925 * cris-tdep.c (cris_software_single_step): Return
926 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
927 * gdbarch.sh (software_single_step): Change it to return
928 VEC (CORE_ADDR) *.
929 * gdbarch.c, gdbarch.h: Regenerated.
930 * infrun.c (maybe_software_singlestep): Adjust.
931 * mips-tdep.c (mips_deal_with_atomic_sequence): Return
932 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
933 (micromips_deal_with_atomic_sequence): Likewise.
934 (deal_with_atomic_sequence): Likewise.
935 (mips_software_single_step): Likewise.
936 * mips-tdep.h (mips_software_single_step): Update declaration.
937 * moxie-tdep.c (moxie_software_single_step): Likewise.
938 * nios2-tdep.c (nios2_software_single_step): Likewise.
939 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Update
940 declaration.
941 * record-full.c (record_full_resume): Adjust.
942 (record_full_wait_1): Likewise.
943 * rs6000-aix-tdep.c (rs6000_software_single_step): Return
944 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
945 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Return
946 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
947 * s390-linux-tdep.c (s390_software_single_step): Likewise.
948 * sparc-tdep.c (sparc_software_single_step): Likewise.
949 * spu-tdep.c (spu_software_single_step): Likewise.
950 * tic6x-tdep.c (tic6x_software_single_step): Likewise.
951
0bc5d801
YQ
9522016-11-08 Yao Qi <yao.qi@linaro.org>
953
954 * arm-linux-tdep.c (arm_linux_software_single_step): Write
955 adjusted address back to vector. Call insert_single_step_breakpoint
956 in a new loop.
957 * arm-tdep.c (arm_software_single_step): Likewise.
958
771da62d
YQ
9592016-11-08 Yao Qi <yao.qi@linaro.org>
960
961 * arm-linux-tdep.c (arm_linux_software_single_step): Don't
962 call arm_insert_single_step_breakpoint, call
963 insert_single_step_breakpoint instead.
964 * arm-tdep.c (arm_insert_single_step_breakpoint): Remove.
965 (arm_software_single_step): Don't call
966 arm_insert_single_step_breakpoint, call
967 insert_single_step_breakpoint instead.
968 * arm-tdep.h (arm_insert_single_step_breakpoint): Remove
969 declaration.
970
53c3572a
CD
9712016-11-08 Cordian A. Daniluk <th3c0r1uk@gmail.com>
972
973 PR breakpoints/20739
974 * breakpoint.c (check_fast_tracepoint_sals): Don't print duplicate
975 0x prefix.
976
20955dbf
YQ
9772016-11-08 Yao Qi <yao.qi@linaro.org>
978
979 * rust-lang.c (val_print_struct): Fix indentation.
980
9dc193c3
LF
9812016-11-08 Lionel Flandrin <lionel@svkt.org>
982
983 * remote.c (process_g_packet): Detect truncated registers in 'g'
984 packets and raise an error.
985
5996220c
DE
9862016-11-07 Doug Evans <dje@google.com>
987
988 * guile/scm-value.c (gdbscm_value_field): Fix call to value_struct_elt.
989 * python/py-value.c (valpy_getitem): Ditto.
990
ad9eb1fd
DE
9912016-11-07 Doug Evans <dje@google.com>
992
993 * i386-tdep.c (i386_gdbarch_init): Add comments.
994
bc71081e
DE
9952016-11-07 Doug Evans <dje@google.com>
996
997 * python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate.
998
a5716032
DE
9992016-11-07 Doug Evans <dje@google.com>
1000
1001 * configure.tgt (x86_64-*-elf*): Remove i386bsd-tdep.o.
1002
26c4b26f
SM
10032016-11-04 Simon Marchi <simon.marchi@polymtl.ca>
1004
1005 * maint.c (scoped_command_stats::scoped_command_stats): Fix typo.
1006 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
1007 * ppcobsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1008 * ui-out.c (ui_out_new): Likewise.
1009 * utils.c (init_page_info): Likewise.
1010 (reset_prompt_for_continue_wait_time): Likewise.
1011 * windows-nat.c (windows_init_thread_list): Likewise.
1012 * xtensa-tdep.c (call0_analyze_prologue): Likewise.
1013
cdf5a07c
MG
10142016-10-29 Manish Goregaokar <manish@mozilla.com>
1015
2806dc7e 1016 * rust-exp.y: Parse `sizeof(exp)` as `UNOP_SIZEOF`.
cdf5a07c 1017
b96645f1
MG
10182016-10-28 Manish Goregaokar <manish@mozilla.com>
1019
2806dc7e
PA
1020 * rust-lang.c (rust_union_is_untagged): Add function to check if a
1021 union is an untagged union.
1022 (rust_val_print): Handle printing of untagged union values.
1023 (rust_print_type): Handle printing of untagged union types.
1024 (rust_evaluate_subexp): Handle evaluating field access on untagged
1025 unions.
51a789c3
MG
1026
10272016-10-27 Manish Goregaokar <manish@mozilla.com>
1028
2806dc7e
PA
1029 * rust-lang.c (rust_get_disr_info): Treat univariant enums without
1030 discriminants as encoded enums with a real field.
1031 * rust-lang.c (rust_evaluate_subexp): Handle field access on
1032 encoded struct-like enums.
51a789c3 1033
722bcb33
YQ
10342016-11-03 Yao Qi <yao.qi@linaro.org>
1035
1036 * Makefile.in (.y.c): Replace YY_NULL with YY_NULLPTR.
1037
04180708
YQ
10382016-11-03 Yao Qi <yao.qi@linaro.org>
1039 Pedro Alves <palves@redhat.com>
1040
1041 * aarch64-tdep.c (aarch64_default_breakpoint): Change it to
1042 constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1043 (aarch64_gdbarch_init): Don't use
1044 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1045 * alpha-tdep.c (break_insn): Rename to alpha_break_insn.
1046 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1047 (alpha_gdbarch_init): Don't use
1048 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1049 * arc-tdep.c (arc_gdbarch_init): Don't use
1050 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1051 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Remove.
1052 (struct bp_manipulation): New.
1053 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Remove.
1054 (struct bp_manipulation_endian): New.
1055 (BP_MANIPULATION): New.
1056 (BP_MANIPULATION_ENDIAN): New.
1057 * arm-tdep.c (arm_gdbarch_init): Don't use
1058 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1059 * avr-tdep.c (avr_break_insn): Change it constexpr.
1060 (avr_gdbarch_init): Don't use
1061 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1062 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
1063 * cris-tdep.c (cris_gdbarch_init): Likewise.
1064 * frv-tdep.c (breakpoint): Rename it to frv_break_insn, and
1065 change its type to constexpr. Don't use
1066 GDBARCH_BREAKPOINT_MANIPULATION.
1067 (frv_gdbarch_init): Don't use
1068 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1069 * ft32-tdep.c (breakpoint): Rename it to ft32_break_insn and
1070 change its type to constexpr. Don't use
1071 GDBARCH_BREAKPOINT_MANIPULATION.
1072 (ft32_gdbarch_init): Don't use
1073 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1074 * h8300-tdep.c (breakpoint): Rename it to h8300_break_insn.
1075 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1076 (h8300_gdbarch_init): Don't use
1077 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1078 * hppa-tdep.c (breakpoint): Rename it to h8300_break_insn.
1079 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1080 (hppa_gdbarch_init): Don't use
1081 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1082 * i386-tdep.c (break_insn): Rename it to i386_break_insn.
1083 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1084 (i386_gdbarch_init): Don't use
1085 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1086 * iq2000-tdep.c (iq2000_gdbarch_init): Don't use
1087 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1088 * lm32-tdep.c (breakpoint): Rename it to lm32_break_insn and
1089 change its type to constexpr. Don't use
1090 GDBARCH_BREAKPOINT_MANIPULATION.
1091 (lm32_gdbarch_init): Don't use
1092 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1093 * m32c-tdep.c (break_insn): Rename it to m32c_break_insn and change
1094 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1095 (m32c_gdbarch_init): Don't use
1096 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1097 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
1098 * m68hc11-tdep.c (breakpoint): Rename it to m68hc11_break_insn and
1099 change its type to constexpr.
1100 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1101 (m68hc11_gdbarch_init): Don't use SET_GDBARCH_BREAKPOINT_MANIPULATION.
1102 * m68k-tdep.c (break_insn): Rename it to m68k_break_insn and change
1103 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1104 (m68k_gdbarch_init): Don't use
1105 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1106 * m88k-tdep.c (break_insn): Rename it to m88k_break_insn and change
1107 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1108 (m88k_gdbarch_init): Don't use
1109 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1110 * mep-tdep.c (breakpoint): Rename it to mep_break_insn and change
1111 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1112 (mep_gdbarch_init): Don't use
1113 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1114 * microblaze-tdep.c (break_insn): Rename it to
1115 microblaze_break_insn and change its type to constexpr. Don't use
1116 GDBARCH_BREAKPOINT_MANIPULATION.
1117 (microblaze_gdbarch_init): Don't use
1118 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1119 * mips-tdep.c (mips_gdbarch_init): Likewise.
1120 * mn10300-tdep.c (breakpoint): Rename it to mn10300_break_insn and
1121 change its type to constexpr. Don't use
1122 GDBARCH_BREAKPOINT_MANIPULATION.
1123 (mn10300_gdbarch_init): Don't use
1124 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1125 * moxie-tdep.c (breakpoint): Rename it to moxie_break_insn and
1126 change its type to constexpr. Don't use
1127 GDBARCH_BREAKPOINT_MANIPULATION.
1128 (moxie_gdbarch_init): Don't use
1129 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1130 * msp430-tdep.c (breakpoint): Rename it to msp430_break_insn
1131 and change its type to constexpr. Don't use
1132 GDBARCH_BREAKPOINT_MANIPULATION.
1133 (msp430_gdbarch_init): Don't use
1134 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1135 * mt-tdep.c (mt_gdbarch_init): Likewise.
1136 * nds32-tdep.c (break_insn): Rename it to nds32_break_insn
1137 and change its type to constexpr. Don't use
1138 GDBARCH_BREAKPOINT_MANIPULATION.
1139 (nds32_gdbarch_init): Don't use
1140 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1141 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
1142 * rl78-tdep.c (breakpoint): Rename it to rl78_break_ins
1143 and change its type to rl78_break_insn. Don't use
1144 GDBARCH_BREAKPOINT_MANIPULATION.
1145 (rl78_gdbarch_init): Don't use
1146 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1147 * rs6000-tdep.c (big_breakpoint): Change its type to
1148 constexpr.
1149 (little_breakpoint): Likewise.
1150 Don't use GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN.
1151 (rs6000_gdbarch_init): Don't use
1152 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1153 * rx-tdep.c (breakpoint): Rename it to rx_break_insn and
1154 change its type to constexpr. Don't use
1155 GDBARCH_BREAKPOINT_MANIPULATION.
1156 (rx_gdbarch_init): Don't use
1157 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1158 * s390-linux-tdep.c (breakpoint): Rename it to s390_break_insn
1159 and change its type to constexpr. Don't use
1160 GDBARCH_BREAKPOINT_MANIPULATION
1161 (s390_gdbarch_init): Don't use
1162 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1163 * score-tdep.c (score_gdbarch_init): Likewise.
1164 * sh-tdep.c (sh_gdbarch_init): Likewise.
1165 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1166 * sparc-tdep.c (break_insn): Rename it to sparc_break_insn
1167 and change its type to constexpr. Don't use
1168 GDBARCH_BREAKPOINT_MANIPULATION.
1169 (sparc32_gdbarch_init): Don't use
1170 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1171 * spu-tdep.c (breakpoint): Rename it to spu_break_insn and change
1172 its type to constexpr. Don't use
1173 GDBARCH_BREAKPOINT_MANIPULATION.
1174 (spu_gdbarch_init): Don't use
1175 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1176 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
1177 * tilegx-tdep.c (breakpoint): Rename it to tilegx_break_insn
1178 and change its type to constexpr. Don't use
1179 GDBARCH_BREAKPOINT_MANIPULATION.
1180 (tilegx_gdbarch_init): Don't use
1181 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1182 * v850-tdep.c (v850_gdbarch_init): Likewise.
1183 * vax-tdep.c (break_insn): Rename it to vax_break_insn and
1184 change its type to constexpr.
1185 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1186 (vax_gdbarch_init): Don't use
1187 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1188 * xstormy16-tdep.c (breakpoint): Rename it to
1189 xstormy16_break_insn and change its type to constexpr.
1190 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1191 (xstormy16_gdbarch_init): Don't use
1192 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1193 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
1194
a97c97e8
YQ
11952016-11-03 Yao Qi <yao.qi@linaro.org>
1196
1197 * arm-tdep.c (arm_override_mode): Remove.
1198 (arm_pc_is_thumb): Update.
1199 (arm_insert_single_step_breakpoint): Update.
1200
833b7ab5
YQ
12012016-11-03 Yao Qi <yao.qi@linaro.org>
1202
1203 * arch-utils.c (default_breakpoint_kind_from_current_state):
1204 New function.
1205 * arch-utils.h (default_breakpoint_kind_from_current_state):
1206 Declare.
1207 * arm-tdep.c (arm_breakpoint_kind_from_current_state): New
1208 function.
1209 (arm_gdbarch_init): Call
1210 set_gdbarch_breakpoint_kind_from_current_state.
1211 * breakpoint.c (breakpoint_kind): Call
1212 gdbarch_breakpoint_kind_from_current_state for single step
1213 breakpoint. Update comments.
1214 * gdbarch.sh (breakpoint_kind_from_current_state): New.
1215 * gdbarch.c, gdbarch.h: Regenerate.
1216
22f13eb8
YQ
12172016-11-03 Yao Qi <yao.qi@linaro.org>
1218
1219 * arch-utils.c (default_breakpoint_from_pc): New function.
1220 * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): Remove.
1221 (GDBARCH_BREAKPOINT_MANIPULATION): Don't use
1222 GDBARCH_BREAKPOINT_FROM_PC.
1223 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Don't call
1224 set_gdbarch_breakpoint_from_pc.
1225 (default_breakpoint_from_pc): Remove declaration.
1226 * gdbarch.sh (breakpoint_from_pc): Add its default implementation.
1227 * gdbarch.c, gdbarch.h: Regenerate.
1228 * arm-tdep.c: Don't use GDBARCH_BREAKPOINT_FROM_PC.
1229 * arc-tdep.c, bfin-tdep.c, cris-tdep.c, iq2000-tdep.c: Likewise.
1230 * m32r-tdep.c, mips-tdep.c, mt-tdep.c: Likewise.
1231 * nios2-tdep.c, score-tdep.c, sh-tdep.c: Likewise.
1232 * sh64-tdep.c, tic6x-tdep.c, v850-tdep.c, xtensa-tdep.c: Likewise.
1233
c0f4a997
YQ
12342016-11-03 Yao Qi <yao.qi@linaro.org>
1235
1236 * arch-utils.c (default_remote_breakpoint_from_pc): Remove.
1237 * arch-utils.h (default_remote_breakpoint_from_pc): Remove.
1238 * arm-tdep.c (arm_remote_breakpoint_from_pc): Remove.
1239 (arm_gdbarch_init): Don't call
1240 set_gdbarch_remote_breakpoint_from_pc.
1241 * gdbarch.sh (remote_breakpoint_from_pc): Remove.
1242 * gdbarch.c, gdbarch.h: Regenerate.
1243 * mips-tdep.c (mips_remote_breakpoint_from_pc): Remove.
1244 (mips_gdbarch_init): Don't call
1245 set_gdbarch_remote_breakpoint_from_pc.
1246
579c6ad9
YQ
12472016-11-03 Yao Qi <yao.qi@linaro.org>
1248
1249 * breakpoint.h (struct bp_target_info) <placed_size>: Remove.
1250 <kind>: New field.
1251 Update all users.
1252
cd6c3b4f
YQ
12532016-11-03 Yao Qi <yao.qi@linaro.org>
1254
1255 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Define
1256 breakpoint_kind_from_pc and sw_breakpoint_from_kind.
1257 (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): Likewise.
1258 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Call
1259 set_gdbarch_breakpoint_kind_from_pc and
1260 set_gdbarch_sw_breakpoint_from_kind.
1261 * arm-tdep.c: Add comments.
1262 * bfin-tdep.c: Likewise.
1263 * breakpoint.c (breakpoint_kind): New function.
1264 (insert_bp_location): Set target_info.placed_size and
1265 target_info.placed_address.
1266 (bkpt_insert_location): Likewise.
1267 * cris-tdep.c: Add comments.
1268 * gdbarch.sh (breakpoint_kind_from_pc): New.
1269 (sw_breakpoint_from_kind): New.
1270 * gdbarch.c, gdbarch.h: Regenerated.
1271 * ia64-tdep.c (ia64_memory_insert_breakpoint): Don't set
1272 bp_tgt->placed_size.
1273 (ia64_memory_remove_breakpoint): Don't assert
1274 bp_tgt->placed_size.
1275 (ia64_breakpoint_kind_from_pc): New function.
1276 (ia64_gdbarch_init): Install ia64_breakpoint_kind_from_pc.
1277 * m32r-tdep.c (m32r_memory_insert_breakpoint): Don't set
1278 bp_tgt->placed_size.
1279 * mem-break.c (default_memory_insert_breakpoint): Don't set
1280 bp_tgt->placed_size. Call gdbarch_sw_breakpoint_from_kind.
1281 (default_memory_remove_breakpoint): Call
1282 gdbarch_sw_breakpoint_from_kind.
1283 (memory_validate_breakpoint): Don't check bp_tgt->placed_size.
1284 * mips-tdep.c: Add comments.
1285 * mt-tdep.c: Likewise.
1286 * nios2-tdep.c: Likewise.
1287 * record-full.c (record_full_insert_breakpoint): Don't call
1288 gdbarch_breakpoint_from_pc. Don't set bp_tgt->placed_address
1289 and bp_tgt->placed_size.
1290 * remote.c (remote_insert_breakpoint): Don't call
1291 gdbarch_remote_breakpoint_from_pc. Use bp_tgt->placed_size.
1292 Don't set bp_tgt->placed_address and bp_tgt->placed_size.
1293 (remote_insert_hw_breakpoint): Likewise.
1294 * score-tdep.c: Likewise.
1295 * sh-tdep.c: Likewise.
1296 * tic6x-tdep.c: Likewise.
1297 * v850-tdep.c: Likewise.
1298 * xtensa-tdep.c: Likewise.
1299
d19280ad
YQ
13002016-11-03 Yao Qi <yao.qi@linaro.org>
1301
1302 * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): New macro.
1303 (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): New macro.
1304 * arm-tdep.c (arm_breakpoint_from_pc): Remove.
1305 (arm_breakpoint_kind_from_pc): New function.
1306 (arm_sw_breakpoint_from_kind): New function.
1307 (arm_breakpoint_from_pc): Call arm_breakpoint_kind_from_pc
1308 and arm_sw_breakpoint_from_kind.
1309 Use GDBARCH_BREAKPOINT_FROM_PC.
1310 (arm_remote_breakpoint_from_pc): Call
1311 arm_breakpoint_kind_from_pc.
1312 (arm_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
1313 with SET_GDBARCH_BREAKPOINT_MANIPULATION.
1314 * arc-tdep.c: Likewise.
1315 * bfin-tdep.c: Likewise.
1316 * cris-tdep.c: Likewise.
1317 * iq2000-tdep.c: Likewise.
1318 * m32r-tdep.c: Likewise.
1319 * mips-tdep.c: Likewise.
1320 * mt-tdep.c: Likewise.
1321 * nios2-tdep.c: Likewise.
1322 * rs6000-tdep.c: Likewise.
1323 * score-tdep.c: Likewise.
1324 * sh-tdep.c: Likewise.
1325 * sh64-tdep.c: Likewise.
1326 * tic6x-tdep.c: Likewise.
1327 * v850-tdep.c: Likewise.
1328 * xtensa-tdep.c: Likewise.
1329
44f1c4d7
YQ
13302016-11-03 Yao Qi <yao.qi@linaro.org>
1331
1332 * mips-tdep.c (mips_breakpoint_kind): New enum.
1333 (mips_breakpoint_from_pc): Use it.
1334 (mips_remote_breakpoint_from_pc): Likewise.
1335
598cc9dc
YQ
13362016-11-03 Yao Qi <yao.qi@linaro.org>
1337
1338 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): New macro.
1339 (SET_GDBARCH_BREAKPOINT_MANIPULATION): New macro.
1340 aarch64-tdep.c (aarch64_breakpoint_from_pc): Remove. Use
1341 GDBARCH_BREAKPOINT_MANIPULATION.
1342 (aarch64_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
1343 with SET_GDBARCH_BREAKPOINT_MANIPULATION.
1344 * alpha-tdep.c: Likewise.
1345 * avr-tdep.c: Likewise.
1346 * frv-tdep.c: Likewise.
1347 * ft32-tdep.c: Likewise.
1348 * h8300-tdep.c: Likewise.
1349 * hppa-tdep.c: Likewise.
1350 * i386-tdep.c: Likewise.
1351 * lm32-tdep.c: Likewise.
1352 * m32c-tdep.c: Likewise.
1353 * m68hc11-tdep.c: Likewise.
1354 * m68k-tdep.c: Likewise.
1355 * m88k-tdep.c: Likewise.
1356 * mep-tdep.c: Likewise.
1357 * microblaze-tdep.c: Likewise.
1358 * mn10300-tdep.c: Likewise.
1359 * moxie-tdep.c: Likewise.
1360 * msp430-tdep.c: Likewise.
1361 * rl78-tdep.c: Likewise.
1362 * rx-tdep.c: Likewise.
1363 * s390-linux-tdep.c: Likewise.
1364 * sparc-tdep.c: Likewise.
1365 * spu-tdep.c: Likewise.
1366 * tilegx-tdep.c: Likewise.
1367 * vax-tdep.c: Likewise.
1368 * xstormy16-tdep.c: Likewise.
1369
8b55a7e4
YQ
13702016-11-03 Yao Qi <yao.qi@linaro.org>
1371
1372 * mem-break.c (default_memory_insert_breakpoint): Don't check
1373 'bp' against NULL.
1374 * microblaze-linux-tdep.c (microblaze_linux_memory_remove_breakpoint):
1375 Likewise.
1376 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1377
7d5697f9
TT
13782016-11-02 Tom Tromey <tom@tromey.com>
1379
1380 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type): Rename
1381 from impl_get_base_type. Rewrite.
1382 (struct dwarf_expr_baton): Remove.
1383 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value): Save and
1384 restore more fields.
1385 (symbol_needs_eval_context::get_frame_pc): New method.
1386 * dwarf2expr.h (dwarf_expr_context::get_base_type): Now public,
1387 virtual.
1388 (dwarf_expr_context::impl_get_base_type): Remove.
1389 * dwarf2expr.c (dwarf_expr_context::get_base_type): Remove.
1390
c5073021
MR
13912016-10-31 Maciej W. Rozycki <macro@imgtec.com>
1392
1393 * configure.ac <mips-sgi-irix5*>: Remove <sys/proc.h> _KMEMUSER
1394 workaround.
1395 * configure: Regenerate.
1396 * config.in: Regenerate.
1397
7e3d947d
MR
13982016-10-31 Maciej W. Rozycki <macro@imgtec.com>
1399
1400 * mips-tdep.c (mips_r3041_reg_names): Remove.
1401 (mips_breakpoint_from_pc): Remove IDT and PMON breakpoint
1402 encodings.
1403
de4bfa86
MR
14042016-10-31 Maciej W. Rozycki <macro@imgtec.com>
1405
1406 * defs.h (gdb_osabi): Remove GDB_OSABI_IRIX enum value.
1407 * osabi.c (gdb_osabi_names): Remove "Irix" entry.
1408 * mips-tdep.c (mips_irix_reg_names): Remove.
1409 (mips_register_type): Remove GDB_OSABI_IRIX code.
1410 (mips_pseudo_register_type): Likewise.
1411 (mips_breakpoint_from_pc): Likewise.
1412 (mips_gdbarch_init): Likewise.
1413
e6485aaf
PA
14142016-10-29 Pedro Alves <palves@redhat.com>
1415
1416 * NEWS: Clarify C++ requirement.
1417
d2946923
PA
14182016-10-29 Pedro Alves <palves@redhat.com>
1419
1420 * NEWS: Adjust to mention C++11 requirement.
1421
8ba42bc5
EZ
14222016-10-29 Eli Zaretskii <eliz@gnu.org>
1423
1424 * NEWS: Mention support for redirection on MS-Windows.
1425
1426 * windows-nat.c (redir_open, redir_set_redirection)
1427 (redirect_inferior_handles) [!__CYGWIN__]: New functions.
1428 (windows_create_inferior) [!__CYGWIN__]: Use
1429 'redirect_inferior_handles' to redirect standard handles of the
1430 debuggee if the command line requests that.
1431
0bcda685
PA
14322016-10-28 Pedro Alves <palves@redhat.com>
1433
1434 * Makefile.in (CXX_DIALECT): Get from configure.
1435 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
1436 (FLAGS_TO_PASS): Pass CXX_DIALECT.
1437 * acinclude.m4: Include ax_cxx_compile_stdcxx.m4.
1438 * ax_cxx_compile_stdcxx.m4: Add FSF copyright header. Set and
1439 AC_SUBST CXX_DIALECT instead of changing CXX/CXXCPP.
1440 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
1441 * config.in: Regenerate.
1442 * configure: Regenerate.
1443
87106a7b
PA
14442016-10-28 Pedro Alves <palves@redhat.com>
1445
1446 * ax_cxx_compile_stdcxx.m4: New file.
1447
44d83468
PA
14482016-10-28 Pedro Alves <palves@redhat.com>
1449
1450 * maint.c (scoped_command_stats::scoped_command_stats): Clear
1451 m_space_enabled, m_time_enabled and m_symtab_enabled.
1452
d87fdac3
MM
14532016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1454
1455 * btrace.c (bfun_s): New typedef.
1456 (ftrace_update_caller): Print caller in debug dump.
1457 (ftrace_get_caller, ftrace_match_backtrace, ftrace_fixup_level)
1458 (ftrace_compute_global_level_offset, ftrace_connect_bfun)
1459 (ftrace_connect_backtrace, ftrace_bridge_gap, btrace_bridge_gaps): New.
1460 (btrace_compute_ftrace_bts): Pass vector of gaps. Collect gaps.
1461 (btrace_compute_ftrace_pt): Likewise.
1462 (btrace_compute_ftrace): Split into this, ...
1463 (btrace_compute_ftrace_1): ... this, and ...
1464 (btrace_finalize_ftrace): ... this. Call btrace_bridge_gaps.
1465
259ba1e8
MM
14662016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1467
1468 * btrace.c (ftrace_new_return): Start from the previous function's
1469 level if we can't find a matching call for a return.
1470
2dfdb47a
MM
14712016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1472
1473 * btrace.c (ftrace_update_function): Update tail call heuristic.
1474
b61ce85c
MM
14752016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1476
1477 * btrace.c (btrace_compute_ftrace_bts, ftrace_add_pt): Allow
1478 leading gaps.
1479 * record-btrace.c (record_btrace_single_step_forward)
1480 (record_btrace_single_step_backward): Jump back to last
1481 instruction if step ends at a gap.
1482 (record_btrace_goto_begin): Skip gaps.
1483
63ab433e
MM
14842016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1485
1486 * btrace.c (ftrace_add_pt): Fix gap indication. Add warning for non-
1487 contiguous trace and overflow. Rephrase trace decode warning and print
1488 instruction number. Remove dead gaps warning.
1489 (btrace_compute_ftrace_bts): Rephrase warnings and print instruction
1490 number.
1491
ecf45d2c
SL
14922016-10-25 Sandra Loosemore <sandra@codesourcery.com>
1493 Luis Machado <lgustavo@codesourcery.com>
1494 Pedro Alves <palves@redhat.com>
1495
1496 PR gdb/20569
1497 * exceptions.c (exception_print_same): Moved here from exec.c.
1498 * exceptions.h (exception_print_same): Declare.
1499 * exec.h: Include "symfile-add-flags.h".
1500 (try_open_exec_file): New declaration.
1501 * exec.c (exception_print_same): Moved to exceptions.c.
1502 (try_open_exec_file): New function.
1503 (exec_file_locate_attach): Rename exec_file and full_exec_path
1504 variables to avoid confusion between target and host pathnames.
1505 Move pathname processing logic to exec_file_find. Do not return
1506 early if pathname lookup fails; Call try_open_exec_file.
1507 * infrun.c (follow_exec): Split and rename execd_pathname variable
1508 to avoid confusion between target and host pathnames. Warn if
1509 pathname lookup fails. Pass target pathname to
1510 target_follow_exec, not hostpathname. Call try_open_exec_file.
1511 * main.c (symbol_file_add_main_adapter): New function.
1512 (captured_main_1): Use it.
1513 * solib-svr4.c (open_symbol_file_object): Adjust to pass
1514 symfile_add_flags to symbol_file_add_main.
1515 * solib.c (exec_file_find): Incorporate fallback logic for relative
1516 pathnames formerly in exec_file_locate_attach.
1517 * symfile.c (symbol_file_add_main, symbol_file_add_main_1):
1518 Replace 'from_tty' parameter with a symfile_add_file.
1519 (symbol_file_command): Adjust to pass symfile_add_flags to
1520 symbol_file_add_main.
1521 * symfile.h (symbol_file_add_main): Replace 'from_tty' parameter
1522 with a symfile_add_file.
1523
b15cc25c
PA
15242016-10-26 Pedro Alves <palves@redhat.com>
1525
1526 * coffread.c (coff_symfile_read): Use symfile_add_flags.
1527 * dbxread.c (dbx_symfile_read): Ditto.
1528 * elfread.c (elf_symfile_read): Ditto.
1529 * inferior.h: Include symfile-add-flags.h.
1530 (struct inferior) <symfile_flags>: Now symfile_add_flags.
1531 * machoread.c (macho_add_oso_symfile, macho_symfile_read_all_oso)
1532 (macho_symfile_read, mipscoff_symfile_read): Use
1533 symfile_add_flags.
1534 * objfile-flags.h: New file.
1535 * objfiles.c (allocate_objfile): Use objfile_flags.
1536 * objfiles.h: Include objfile-flags.h.
1537 (struct objfile) <flags>: Now an objfile_flags.
1538 (OBJF_REORDERED, OBJF_SHARED, OBJF_READNOW, OBJF_USERLOADED)
1539 (OBJF_PSYMTABS_READ, OBJF_MAINLINE, OBJF_NOT_FILENAME): Delete.
1540 Converted to an enum-flags in objfile-flags.h.
1541 (allocate_objfile): Use objfile_flags.
1542 * python/py-objfile.c (objfpy_add_separate_debug_file): Remove
1543 unnecessary local.
1544 * solib.c (solib_read_symbols, solib_add)
1545 (reload_shared_libraries_1): Use symfile_add_flags.
1546 * solib.h: Include "symfile-add-flags.h".
1547 (solib_read_symbols): Use symfile_add_flags.
1548 * symfile-add-flags.h: New file.
1549 * symfile-debug.c (debug_sym_read): Use symfile_add_flags.
1550 * symfile-mem.c (symbol_file_add_from_memory): Use
1551 symfile_add_flags.
1552 * symfile.c (read_symbols, syms_from_objfile_1)
1553 (syms_from_objfile, finish_new_objfile): Use symfile_add_flags.
1554 (symbol_file_add_with_addrs): Use symfile_add_flags and
1555 objfile_flags.
1556 (symbol_file_add_separate): Use symfile_add_flags.
1557 (symbol_file_add_from_bfd, symbol_file_add): Use symfile_add_flags
1558 and objfile_flags.
1559 (symbol_file_add_main_1): : Use objfile_flags. Fix add_flags vs
1560 flags confusion.
1561 (symbol_file_command): Use objfile_flags.
1562 (add_symbol_file_command): Use symfile_add_flags and
1563 objfile_flags.
1564 (clear_symtab_users): Use symfile_add_flags.
1565 * symfile.h: Include "symfile-add-flags.h" and "objfile-flags.h".
1566 (struct sym_fns) <sym_read>: Use symfile_add_flags.
1567 (clear_symtab_users): Use symfile_add_flags.
1568 (enum symfile_add_flags): Delete, moved to symfile-add-flags.h and
1569 converted to enum-flags.
1570 (symbol_file_add, symbol_file_add_from_bfd)
1571 (symbol_file_add_separate): Use symfile_add_flags.
1572 * xcoffread.c (xcoff_initial_scan): Use symfile_add_flags.
1573
85ad3aaf
PA
15742016-10-26 Pedro Alves <palves@redhat.com>
1575
1576 * inferior.h (ALL_NON_EXITED_INFERIORS): New macro.
1577 * infrun.c (do_target_resume): Call target_commit_resume.
1578 (proceed): Defer target_commit_resume while looping over threads,
1579 resuming them. Call target_commit_resume at the end.
1580 * record-btrace.c (record_btrace_commit_resume): New function.
1581 (init_record_btrace_ops): Install it as to_commit_resume method.
1582 * record-full.c (record_full_commit_resume): New function.
1583 (record_full_wait_1): Call the beneath target's to_commit_resume
1584 method.
1585 (init_record_full_ops): Install record_full_commit_resume as
1586 to_commit_resume method.
1587 * remote.c (struct private_thread_info) <last_resume_step,
1588 last_resume_sig, vcont_resumed>: New fields.
1589 (remote_add_thread): Set the new thread's vcont_resumed flag.
1590 (demand_private_info): Delete.
1591 (get_private_info_thread, get_private_info_ptid): New functions.
1592 (remote_update_thread_list): Adjust.
1593 (process_initial_stop_replies): Clear the thread's vcont_resumed
1594 flag.
1595 (remote_resume): If connected in non-stop mode, record the resume
1596 request and return early.
1597 (struct private_inferior): New.
1598 (struct vcont_builder): New.
1599 (vcont_builder_restart, vcont_builder_flush)
1600 (vcont_builder_push_action): New functions.
1601 (MAX_ACTION_SIZE): New macro.
1602 (remote_commit_resume): New function.
1603 (thread_pending_fork_status, is_pending_fork_parent_thread): New
1604 functions.
1605 (check_pending_event_prevents_wildcard_vcont_callback)
1606 (check_pending_events_prevent_wildcard_vcont): New functions.
1607 (process_stop_reply): Adjust. Clear the thread's vcont_resumed
1608 flag.
1609 (init_remote_ops): Install remote_commit_resume.
1610 * target-delegates.c: Regenerate.
1611 * target.c (defer_target_commit_resume): New global.
1612 (target_commit_resume, make_cleanup_defer_target_commit_resume):
1613 New functions.
1614 * target.h (struct target_ops) <to_commit_resume>: New field.
1615 (target_resume): Update comments.
1616 (target_commit_resume): New declaration.
1617
ef4a3395
PA
16182016-10-26 Pedro Alves <palves@redhat.com>
1619
1620 * inferior.c (exit_inferior_1): Free 'priv'.
1621
7b68ffbb
PA
16222016-10-26 Pedro Alves <palves@redhat.com>
1623
1624 * remote.c (remote_resume_with_hc): New function, factored out
1625 from ...
1626 (remote_resume): ... this. Always try vCont first.
1627 (remote_vcont_resume): Rename to ...
1628 (remote_resume_with_vcont): ... this. Bail out if execution
1629 direction is reverse.
1630
beb18c86
PA
16312016-10-25 Pedro Alves <palves@redhat.com>
1632
1633 * dwarf2expr.h (struct dwarf_expr_context) <~dwarf_expr_context>:
1634 Make virtual.
1635
b196bc4c
RO
16362016-10-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1637
1638 PR build/20712
1639 * defs.h: Remove obsolete comment
1640 (atof): Remove.
1641 * procfs.c (do_destroy_procinfo_cleanup): Add cast.
1642 (sysset_t_alloc): Likewise.
1643 (proc_set_traced_sysentry): Likewise.
1644 (proc_set_traced_sysexit): Likewise.
1645 [!PIOCLSTATUS && NEW_PROC_API] (do_closedir_cleanup): Likewise.
1646 (proc_get_LDT_entry): Initiate cleanups before returns.
1647 (procfs_wait): Use GDB_SIGNAL_0.
1648 (procfs_corefile_thread_callback): Add cast.
1649 * sol-thread.c (td_log_ftype, td_ta_new_ftype, td_ta_delete_ftype)
1650 (td_init_ftype, td_ta_get_ph_ftype, td_ta_get_nthreads_ftype)
1651 (td_ta_tsd_iter_ftype, td_ta_thr_iter_ftype)
1652 (td_thr_validate_ftype, td_thr_tsd_ftype, td_thr_get_info_ftype)
1653 (td_thr_getfpregs_ftype, td_thr_getxregsize_ftype)
1654 (td_thr_getxregs_ftype, td_thr_sigsetmask_ftype)
1655 (td_thr_setprio_ftype, td_thr_setsigpending_ftype)
1656 (td_thr_setfpregs_ftype, td_thr_setxregs_ftype)
1657 (td_ta_map_id2thr_ftype, td_ta_map_lwp2thr_ftype)
1658 (td_thr_getgregs_ftype, td_thr_setgregs_ftype): New typedefs.
1659 (p_td_log, p_td_ta_new, p_td_ta_delete, p_td_init, p_td_ta_get_ph)
1660 (p_td_ta_get_nthreads, p_td_ta_tsd_iter, p_td_ta_thr_iter)
1661 (p_td_thr_validate, p_td_thr_tsd, p_td_thr_get_info)
1662 (p_td_thr_getfpregs, p_td_thr_getxregsize, p_td_thr_getxregs)
1663 (p_td_thr_sigsetmask, p_td_thr_setprio, p_td_thr_setsigpending)
1664 (p_td_thr_setfpregs, p_td_thr_setxregs, p_td_ta_map_id2thr)
1665 (p_td_ta_map_lwp2thr, p_td_thr_getgregs, p_td_thr_setgregs): Use them.
1666 (ps_pdread): Add cast.
1667 (ps_ptread): Likewise.
1668 (resolve): Likewise.
1669 * top.c (gdb_safe_append_history): Print pid_t as long.
1670
b30f354a
PA
16712016-10-25 Pedro Alves <palves@redhat.com>
1672
1673 * common/common-defs.h (__STDC_FORMAT_MACROS): Define.
1674
e4426cb4
PA
16752016-10-25 Pedro Alves <palves@redhat.com>
1676
1677 * common/new-op.c: Add comment about -fsanitize=address.
1678
28fe4f87
PA
16792016-10-25 Pedro Alves <palves@redhat.com>
1680
1681 * common/common-defs.h (__STDC_CONSTANT_MACROS)
1682 (__STDC_LIMIT_MACROS): Define.
1683
3ef9d661
YQ
16842016-10-25 Yao Qi <yao.qi@linaro.org>
1685
1686 PR gdb/20716
1687 * common/new-op.c (__has_feature): New macro.
1688 Don't override operator new if asan is used.
1689
b5e1db87
LM
16902016-10-24 Luis Machado <lgustavo@codesourcery.com>
1691
1692 * exec.c (exec_file_locate_attach): Prevent NULL pointer dereference
1693 when duplicating a string.
1694
010ece9c
LM
16952016-10-24 Luis Machado <lgustavo@codesourcery.com>
1696
1697 * exec.c (exception_print_same): Fix string comparison to use
1698 statically-allocated ones.
1699
befbff86
TT
17002016-10-21 Tom Tromey <tom@tromey.com>
1701
1702 * dwarf2expr.h (class dwarf_expr_context)
1703 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
1704 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
1705 Now pure virtual.
1706 * dwarf2-frame.c (class dwarf_expr_executor)
1707 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
1708 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
1709 New methods.
1710 <invalid>: New method.
1711
ce6c454e
TT
17122016-10-21 Tom Tromey <tom@tromey.com>
1713
1714 * minsyms.h (minimal_symbol_reader::record_full): "copy_name" now
1715 a bool.
1716 (record, record_with_info): Update.
1717 * minsyms.c (record): Fix indentation.
1718 (record_full): Fix indentation. Update for type change.
1719 * elfread.c (record_minimal_symbol): "copy_name" now a bool.
1720 (elf_symtab_read): "copy_names" now a bool.
1721 (elf_rel_plt_read, elf_read_minimal_symbols): Update.
1722
f60ee22e
TT
17232016-10-21 Tom Tromey <tom@tromey.com>
1724
1725 * main.c: Include <vector>.
1726 (cmdarg_s): Remove typedef. Don't define VEC.
1727 (captured_main_1): Use vector, not VEC. Remove cleanups.
1728
192ca6d8
TT
17292016-10-21 Tom Tromey <tom@tromey.com>
1730
1731 * dwarf2loc.c (struct dwarf_expr_context_funcs): Don't declare.
1732 (dwarf_expr_read_addr_from_reg, dwarf_expr_get_reg_value)
1733 (dwarf_expr_read_mem, dwarf_expr_frame_base): Rename; turn into
1734 methods.
1735 (get_frame_pc_for_per_cu_dwarf_call): New function.
1736 (dwarf_expr_frame_cfa, dwarf_expr_frame_pc)
1737 (dwarf_expr_tls_address): Rename; turn into methods.
1738 (per_cu_dwarf_call): Remove arguments. Use
1739 get_frame_pc_for_per_cu_dwarf_call.
1740 (dwarf_evaluate_loc_desc): New class.
1741 (dwarf_expr_dwarf_call, dwarf_expr_context)
1742 (dwarf_expr_push_dwarf_reg_entry_value)
1743 (dwarf_expr_get_addr_index, dwarf_expr_get_obj_addr): Rename; turn
1744 into methods.
1745 (dwarf_expr_ctx_funcs): Remove.
1746 (dwarf2_evaluate_loc_desc_full): Update.
1747 (dwarf2_locexpr_baton_eval): Update.
1748 (symbol_needs_eval_context): New class.
1749 (symbol_needs_read_addr_from_reg, symbol_needs_get_reg_value)
1750 (symbol_needs_read_mem, symbol_needs_frame_base)
1751 (symbol_needs_frame_cfa, symbol_needs_tls_address)
1752 (symbol_needs_dwarf_call, needs_dwarf_reg_entry_value): Rename;
1753 turn into methods.
1754 (needs_get_addr_index, needs_get_obj_addr): Remove; turn into
1755 methods.
1756 (symbol_needs_ctx_funcs): Remove.
1757 (dwarf2_loc_desc_get_symbol_read_needs): Update.
1758 * dwarf2expr.h (struct dwarf_expr_context_funcs): Remove; turn
1759 contents into methods.
1760 (struct dwarf_expr_context) <baton, funcs>: Remove.
1761 <read_addr_from_reg, get_reg_value, read_mem, get_frame_base,
1762 get_frame_cfa, get_frame_pc, get_tls_address, dwarf_call,
1763 impl_get_base_type, push_dwarf_block_entry_value, get_addr_index,
1764 get_object_address>: Declare new methods.
1765 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1766 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1767 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
1768 (ctx_no_get_addr_index): Don't declare.
1769 * dwarf2expr.c (get_base_type): Use impl_get_base_type.
1770 (execute_stack_op): Update.
1771 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1772 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1773 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
1774 (ctx_no_get_addr_index): Remove; now methods on
1775 dwarf_expr_context.
1776 * dwarf2-frame.c (read_addr_from_reg): Take a frame_info, not a
1777 baton.
1778 (class dwarf_expr_executor): New class.
1779 (get_reg_value, read_mem): Rename, turn into methods.
1780 (execute_stack_op): Use dwarf_expr_executor.
1781
595d2e30
TT
17822016-10-21 Tom Tromey <tom@tromey.com>
1783
1784 * dwarf2loc.c (per_cu_dwarf_call)
1785 (dwarf_expr_push_dwarf_reg_entry_value)
1786 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
1787 (needs_dwarf_reg_entry_value)
1788 (dwarf2_loc_desc_get_symbol_read_needs): Update.
1789 * dwarf2expr.h (dwarf_expr_context) <push_address, eval, fetch,
1790 fetch_address, fetch_in_stack_memory, address_type, grow_stack,
1791 push, stack_empty_p, add_piece, get_base_type, execute_stack_op,
1792 pop>: New method declarations.
1793 (dwarf_expr_push_address, dwarf_expr_eval, dwarf_expr_fetch)
1794 (dwarf_expr_fetch_address, dwarf_expr_fetch_in_stack_memory):
1795 Don't declare.
1796 * dwarf2expr.c (address_type, grow_stack, push, push_address)
1797 (pop, fetch, fetch_address, fetch_in_stack_memory)
1798 (stack_empty_p, add_piece, eval, get_base_type)
1799 (execute_stack_op): Rename. Turn into methods.
1800 * dwarf2-frame.c (execute_stack_op): Update.
1801
718b9626
TT
18022016-10-21 Tom Tromey <tom@tromey.com>
1803
1804 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Stack-allocate
1805 dwarf_expr_context. Remove cleanups.
1806 (dwarf2_locexpr_baton_eval)
1807 (dwarf2_loc_desc_get_symbol_read_needs): Likewise.
1808 * dwarf2expr.h (dwarf_expr_context, ~dwarf_expr_context): Add
1809 constructors and destructors.
1810 (new_dwarf_expr_context, free_dwarf_expr_context)
1811 (make_cleanup_free_dwarf_expr_context): Don't declare.
1812 * dwarf2-frame.c (execute_stack_op): Stack-allocate
1813 dwarf_expr_context. Remove cleanups.
1814 (dwarf_expr_context): Rename from new_dwarf_expr_context. Turn
1815 into constructor.
1816 (free_dwarf_expr_context, free_dwarf_expr_context_cleanup):
1817 Remove.
1818 (~dwarf_expr_context): Rename from
1819 make_cleanup_free_dwarf_expr_context. Turn into destructor.
1820
58414334
TT
18212016-10-21 Tom Tromey <tom@tromey.com>
1822
1823 * dwarf2loc.c: Include <vector>.
1824 (read_pieced_value, write_pieced_value)
1825 (dwarf2_compile_expr_to_ax): Use std::vector.
1826
67ad9399
TT
18272016-10-21 Tom Tromey <tom@tromey.com>
1828
1829 * stack.c (print_stack_frame_to_uiout): Use scoped_restore.
1830 * ui-out.c (make_cleanup_restore_current_uiout)
1831 (restore_current_uiout_cleanup): Remove.
1832 * infrun.c (print_stop_event): Use scoped_restore.
1833 * ui-out.h (make_cleanup_restore_current_uiout): Don't declare.
1834
d1e4a624
TT
18352016-10-21 Tom Tromey <tom@tromey.com>
1836
1837 * elfread.c (elf_read_minimal_symbols): Use gdb::unique_ptr.
1838
cd9da5b0
TT
18392016-10-21 Tom Tromey <tom@tromey.com>
1840
1841 * cli/cli-dump.c (dump_memory_to_file): Use gdb::unique_ptr.
1842 (restore_binary_file): Likewise.
1843
1e3b796d
TT
18442016-10-21 Tom Tromey <tom@tromey.com>
1845
1846 * maint.h (scoped_command_stats): New class.
1847 (make_command_stats_cleanup): Don't declare.
1848 * maint.c (struct cmd_stats): Remove.
1849 (~scoped_command_stats): Rename from report_command_stats. Now a
1850 destructor.
1851 (scoped_command_stats): Rename from make_command_stats_cleanup.
1852 Now a constructor.
1853 * main.c (captured_main_1): New function. Use
1854 scoped_command_stats.
1855 (captured_main): Call captured_main_1.
1856 * event-top.c (command_handler): Use scoped_command_stats.
1857
6fc31fc7
TT
18582016-10-21 Tom Tromey <tom@tromey.com>
1859
1860 * mi/mi-main.c (mi_cmd_data_read_memory): Use gdb::unique_ptr.
1861 Remove some cleanups.
1862
0e454242
TT
18632016-10-21 Tom Tromey <tom@tromey.com>
1864
1865 * tui/tui-interp.c (tui_on_normal_stop, tui_on_signal_received)
1866 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
1867 (tui_on_no_history, tui_on_user_selected_context_changed):
1868 Update.
1869 * top.h (switch_thru_all_uis): New class.
1870 (SWITCH_THRU_ALL_UIS): Rewrite.
1871 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
1872 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Don't
1873 declare.
1874 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1875 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1876 (mi_inferior_exit, mi_inferior_removed, mi_on_signal_received)
1877 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1878 (mi_on_no_history, mi_on_normal_stop, mi_traceframe_changed)
1879 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1880 (mi_breakpoint_created, mi_breakpoint_deleted)
1881 (mi_breakpoint_modified, mi_output_running_pid, mi_on_resume)
1882 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
1883 (mi_memory_changed, mi_user_selected_context_changed): Update.
1884 * infrun.c (all_uis_check_sync_execution_done)
1885 (all_uis_on_sync_execution_starting, normal_stop): Update.
1886 * event-top.c (restore_ui_cleanup)
1887 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
1888 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Remove.
1889 * cli/cli-interp.c (cli_on_normal_stop, cli_on_signal_received)
1890 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
1891 (cli_on_no_history, cli_on_user_selected_context_changed):
1892 Update.
1893 * breakpoint.c (watchpoint_check): Update.
1894
8dddcb8f
TT
18952016-10-21 Tom Tromey <tom@tromey.com>
1896
1897 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab): Add
1898 "reader" argument. Update.
1899 (xcoff_initial_scan): Update.
1900 * symfile.h (mdebug_build_psymtabs): Add "reader" argument.
1901 * mipsread.c (mipscoff_symfile_read): Update.
1902 (read_alphacoff_dynamic_symtab): Add "reader" argument. Update.
1903 * minsyms.h (minimal_symbol_reader) <record, record_full>:
1904 Declare.
1905 <m_msym_bunch, m_msym_bunch_index, m_msym_count>: New members.
1906 <record_with_info>: New function, renamed from
1907 prim_record_minimal_symbol_and_info.
1908 * minsyms.c (msym_bunch, msym_bunch_index, msym_count): Remove
1909 globals.
1910 (minimal_symbol_reader): Initialize new members.
1911 (minimal_symbol_reader::record): Renamed from
1912 prim_record_minimal_symbol.
1913 (minimal_symbol_reader::record_full): Renamed from
1914 prim_record_minimal_symbol_full.
1915 (prim_record_minimal_symbol_and_info): Move to minsyms.h; rename.
1916 * mdebugread.c (mdebug_build_psymtabs, parse_partial_symbols)
1917 (record_minimal_symbol): Add "reader" argument. Update.
1918 (elfmdebug_build_psymtabs): Update.
1919 * machoread.c (macho_symtab_add_minsym, macho_symtab_read): Add
1920 "reader" argument. Update.
1921 (macho_symfile_read): Update.
1922 * elfread.c (record_minimal_symbol, elf_symtab_read)
1923 (elf_rel_plt_read): Add "reader" argument. Update.
1924 (elf_read_minimal_symbols): Update.
1925 * dbxread.c (record_minimal_symbol, read_dbx_dynamic_symtab)
1926 (read_dbx_symtab): Add "reader" argument. Update.
1927 (dbx_symfile_read): Update.
1928 * coffread.c (record_minimal_symbol, coff_symtab_read): Add
1929 "reader" argument. Update.
1930 (coff_symfile_read): Update.
1931 * coff-pe-read.h (read_pe_exported_syms): Add "reader" argument.
1932 * coff-pe-read.c (add_pe_exported_sym, add_pe_forwarded_sym)
1933 (read_pe_exported_syms): Add "reader" argument. Update.
1934
d25e8719
TT
19352016-10-21 Tom Tromey <tom@tromey.com>
1936
1937 * xcoffread.c (xcoff_initial_scan): Update.
1938 * mipsread.c (mipscoff_symfile_read): Update.
1939 * minsyms.c (minimal_symbol_reader): Add obj argument.
1940 Initialize member.
1941 (install): Remove objfile argument. Update.
1942 * mdebugread.c (elfmdebug_build_psymtabs): Update.
1943 * machoread.c (macho_symfile_read): Update.
1944 * elfread.c (elf_read_minimal_symbols): Update.
1945 * dbxread.c (dbx_symfile_read): Update.
1946 * coffread.c (coff_symfile_read): Update.
1947 * minsyms.h (minimal_symbol_reader): Add m_objfile member.
1948 (constructor): Add objfile argument.
1949 (minimal_symbol_reader::install): Remove objfile argument.
1950
873a915e
TT
19512016-10-21 Tom Tromey <tom@tromey.com>
1952
1953 * xcoffread.c (xcoff_initial_scan): Use
1954 minimal_symbol_reader.
1955 * mipsread.c (mipscoff_symfile_read): Use
1956 minimal_symbol_reader.
1957 * minsyms.h (minimal_symbol_reader): New class.
1958 (init_minimal_symbol_collection)
1959 (make_cleanup_discard_minimal_symbols, install_minimal_symbols):
1960 Don't declare.
1961 * minsyms.c (minimal_symbol_reader): Renamed from
1962 init_minimal_symbol_collection, turned into constructor.
1963 (~minimal_symbol_reader): Renamed from
1964 do_discard_minimal_symbols_cleanup, turned into destructor.
1965 (make_cleanup_discard_minimal_symbols): Remove.
1966 (minimal_symbol_reader::install): Rename form
1967 install_minimal_symbols.
1968 * mdebugread.c (elfmdebug_build_psymtabs): Use
1969 minimal_symbol_reader.
1970 * machoread.c (macho_symfile_read): Use
1971 minimal_symbol_reader.
1972 * elfread.c (elf_read_minimal_symbols): Use
1973 minimal_symbol_reader.
1974 * dbxread.c (dbx_symfile_read): Use minimal_symbol_reader.
1975 * coffread.c (coff_symfile_read): Use
1976 minimal_symbol_reader.
1977
4b6749b9
TT
19782016-10-21 Tom Tromey <tom@tromey.com>
1979
1980 * top.c (new_ui_command, wait_sync_command_done)
1981 (gdb_readline_wrapper): Use scoped_restore.
1982 * infrun.c (fetch_inferior_event): Use scoped_restore.
1983 * infcall.c (call_thread_fsm_should_stop): Use scoped_restore.
1984
97468094
TT
19852016-10-21 Tom Tromey <tom@tromey.com>
1986
1987 * utils.c (make_cleanup_restore_ui_file, do_restore_ui_file)
1988 (struct restore_ui_file_closure): Remove.
1989 * utils.h (make_cleanup_restore_ui_file): Don't declare.
1990 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1991 scoped_restore.
1992 * top.c (execute_command_to_string): Use scoped_restore.
1993
b7b633e9
TT
19942016-10-21 Tom Tromey <tom@tromey.com>
1995
1996 * common/scoped_restore.h: New file.
1997 * utils.h: Include scoped_restore.h.
1998 * top.c (execute_command_to_string): Use scoped_restore.
1999 * python/python.c (python_interactive_command): Use
2000 scoped_restore.
2001 (python_command, execute_gdb_command): Likewise.
2002 * printcmd.c (do_one_display): Use scoped_restore.
2003 * mi/mi-main.c (exec_continue): Use scoped_restore.
2004 * mi/mi-cmd-var.c (mi_cmd_var_assign): Use scoped_restore.
2005 * linux-fork.c (checkpoint_command): Use scoped_restore.
2006 * infrun.c (restore_execution_direction): Remove.
2007 (fetch_inferior_event): Use scoped_restore.
2008 * compile/compile.c (compile_file_command): Use
2009 scoped_restore.
2010 (compile_code_command, compile_print_command): Likewise.
2011 * cli/cli-script.c (execute_user_command): Use
2012 scoped_restore.
2013 (while_command, if_command, script_from_file): Likewise.
2014 * arm-tdep.c (arm_insert_single_step_breakpoint): Use
2015 scoped_restore.
2016
9a1e3f00
TT
20172016-10-21 Tom Tromey <tom@tromey.com>
2018
2019 * xcoffread.c (read_xcoff_symtab): Make "filestring" const.
2020
d11261fc
UW
20212016-10-21 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
2022 Ulrich Weigand <uweigand@de.ibm.com>
2023
2024 * xcoffread.c (read_xcoff_symtab): Make name of current file as
2025 pst->filename instead of _start_ in AIX.
2026
4db41a0a
PR
20272016-10-21 Philipp Rudo <prudo@linux.vnet.ibm.com>
2028
2029 * solist.h (struct target_so_ops): Delete special_symbol_handling
2030 hook.
2031 * solib.c (solib_add, reload_shared_libraries): Adjust.
2032 * solib-aix.c (solib_aix_special_symbol_handling): Delete
2033 (_initialize_solib_aix): Adjust
2034 * solib-darwin.c (darwin_special_symbol_handling): Delete
2035 (_initialize_darwin_solib): Adjust
2036 * solib-dsbt.c (dsbt_special_symbol_handling): Delete
2037 (_initialize_dsbt_solib): Adjust
2038 * solib-frv.c (frv_special_symbol_handling): Delete
2039 (_initialize_frv_solib): Adjust
2040 * solib-svr4.c (svr4_special_symbol_handling): Delete
2041 (_initialize_svr4_solib): Adjust
2042 * solib-target.c (solib_target_special_symbol_handling): Delete
2043 (_initialize_solib_target): Adjust
2044
78836e90
YQ
20452016-10-20 Yao Qi <yao.qi@linaro.org>
2046
2047 * configure.tgt: Don't configure if target is *-*-vxworks*.
2048
f77a9b48
PA
20492016-10-19 Pedro Alves <palves@redhat.com>
2050
2051 * config.in: Regenerate.
2052
f6abaf7a
PA
20532016-10-18 Pedro Alves <palves@redhat.com>
2054
2055 * common/common-defs.h (__STDC_CONSTANT_MACROS)
2056 (__STDC_LIMIT_MACROS): Delete.
2057
49e4877c
PA
20582016-10-18 Pedro Alves <palves@redhat.com>
2059
2060 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2061 2692e23a48e21f6daa029e8af9f1a143b7532f47.
2062 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
2063 Regenerate.
2064 * gnulib/import/Makefile: Update.
2065 * gnulib/import/alloca: Update.
2066 * gnulib/import/basename-lgpl: Update.
2067 * gnulib/import/canonicalize-lgpl: Update.
2068 * gnulib/import/config: Update.
2069 * gnulib/import/dirent: Update.
2070 * gnulib/import/dirfd: Update.
2071 * gnulib/import/dirname-lgpl: Update.
2072 * gnulib/import/dirname.h: Update.
2073 * gnulib/import/dosname.h: Update.
2074 * gnulib/import/errno: Update.
2075 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
2076 * gnulib/import/extra/snippet/c++defs.h: Update.
2077 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2078 * gnulib/import/extra/update-copyright: Update.
2079 * gnulib/import/flexmember.h: Update.
2080 * gnulib/import/float+.h: Update.
2081 * gnulib/import/float: Update.
2082 * gnulib/import/float: Update.
2083 * gnulib/import/fnmatch: Update.
2084 * gnulib/import/fnmatch: Update.
2085 * gnulib/import/fnmatch_loop: Update.
2086 * gnulib/import/fpucw.h: Update.
2087 * gnulib/import/frexp: Update.
2088 * gnulib/import/frexpl: Update.
2089 * gnulib/import/gettimeofday: Update.
2090 * gnulib/import/hard-locale: Update.
2091 * gnulib/import/hard-locale.h: Update.
2092 * gnulib/import/inttypes: Update.
2093 * gnulib/import/isnan: Update.
2094 * gnulib/import/isnand-nolibm.h: Update.
2095 * gnulib/import/isnand: Update.
2096 * gnulib/import/isnanl-nolibm.h: Update.
2097 * gnulib/import/isnanl: Update.
2098 * gnulib/import/itold: Update.
2099 * gnulib/import/limits: Update.
2100 * gnulib/import/localcharset: Update.
2101 * gnulib/import/localcharset.h: Update.
2102 * gnulib/import/lstat: Update.
2103 * gnulib/import/m4/00gnulib: Update.
2104 * gnulib/import/m4/absolute-header: Update.
2105 * gnulib/import/m4/alloca: Update.
2106 * gnulib/import/m4/canonicalize: Update.
2107 * gnulib/import/m4/codeset: Update.
2108 * gnulib/import/m4/configmake: Update.
2109 * gnulib/import/m4/dirent_h: Update.
2110 * gnulib/import/m4/dirfd: Update.
2111 * gnulib/import/m4/dirname: Update.
2112 * gnulib/import/m4/double-slash-root: Update.
2113 * gnulib/import/m4/eealloc: Update.
2114 * gnulib/import/m4/errno_h: Update.
2115 * gnulib/import/m4/exponentd: Update.
2116 * gnulib/import/m4/exponentl: Update.
2117 * gnulib/import/m4/extensions: Update.
2118 * gnulib/import/m4/extern-inline: Update.
2119 * gnulib/import/m4/fcntl-o: Update.
2120 * gnulib/import/m4/flexmember: Update.
2121 * gnulib/import/m4/float_h: Update.
2122 * gnulib/import/m4/fnmatch: Update.
2123 * gnulib/import/m4/fpieee: Update.
2124 * gnulib/import/m4/frexp: Update.
2125 * gnulib/import/m4/frexpl: Update.
2126 * gnulib/import/m4/gettimeofday: Update.
2127 * gnulib/import/m4/glibc21: Update.
2128 * gnulib/import/m4/gnulib-cache: Update.
2129 * gnulib/import/m4/gnulib-common: Update.
2130 * gnulib/import/m4/gnulib-comp: Update.
2131 * gnulib/import/m4/gnulib-tool: Update.
2132 * gnulib/import/m4/hard-locale: Update.
2133 * gnulib/import/m4/include_next: Update.
2134 * gnulib/import/m4/inttypes-pri: Update.
2135 * gnulib/import/m4/inttypes: Update.
2136 * gnulib/import/m4/isnand: Update.
2137 * gnulib/import/m4/isnanl: Update.
2138 * gnulib/import/m4/largefile: Update.
2139 * gnulib/import/m4/limits-h: Update.
2140 * gnulib/import/m4/localcharset: Update.
2141 * gnulib/import/m4/locale-fr: Update.
2142 * gnulib/import/m4/locale-ja: Update.
2143 * gnulib/import/m4/locale-zh: Update.
2144 * gnulib/import/m4/longlong: Update.
2145 * gnulib/import/m4/lstat: Update.
2146 * gnulib/import/m4/malloc: Update.
2147 * gnulib/import/m4/malloca: Update.
2148 * gnulib/import/m4/math_h: Update.
2149 * gnulib/import/m4/mbrtowc: Update.
2150 * gnulib/import/m4/mbsinit: Update.
2151 * gnulib/import/m4/mbsrtowcs: Update.
2152 * gnulib/import/m4/mbstate_t: Update.
2153 * gnulib/import/m4/memchr: Update.
2154 * gnulib/import/m4/memmem: Update.
2155 * gnulib/import/m4/mmap-anon: Update.
2156 * gnulib/import/m4/multiarch: Update.
2157 * gnulib/import/m4/nocrash: Update.
2158 * gnulib/import/m4/off_t: Update.
2159 * gnulib/import/m4/pathmax: Update.
2160 * gnulib/import/m4/rawmemchr: Update.
2161 * gnulib/import/m4/readlink: Update.
2162 * gnulib/import/m4/rename: Update.
2163 * gnulib/import/m4/rmdir: Update.
2164 * gnulib/import/m4/signal_h: Update.
2165 * gnulib/import/m4/ssize_t: Update.
2166 * gnulib/import/m4/stat: Update.
2167 * gnulib/import/m4/stdbool: Update.
2168 * gnulib/import/m4/stddef_h: Update.
2169 * gnulib/import/m4/stdint: Update.
2170 * gnulib/import/m4/stdio_h: Update.
2171 * gnulib/import/m4/stdlib_h: Update.
2172 * gnulib/import/m4/strchrnul: Update.
2173 * gnulib/import/m4/string_h: Update.
2174 * gnulib/import/m4/strstr: Update.
2175 * gnulib/import/m4/strtok_r: Update.
2176 * gnulib/import/m4/sys_socket_h: Update.
2177 * gnulib/import/m4/sys_stat_h: Update.
2178 * gnulib/import/m4/sys_time_h: Update.
2179 * gnulib/import/m4/sys_types_h: Update.
2180 * gnulib/import/m4/time_h: Update.
2181 * gnulib/import/m4/unistd_h: Update.
2182 * gnulib/import/m4/warn-on-use: Update.
2183 * gnulib/import/m4/wchar_h: Update.
2184 * gnulib/import/m4/wchar_t: Update.
2185 * gnulib/import/m4/wctype_h: Update.
2186 * gnulib/import/m4/wint_t: Update.
2187 * gnulib/import/malloc: Update.
2188 * gnulib/import/malloca: Update.
2189 * gnulib/import/malloca.h: Update.
2190 * gnulib/import/math: Update.
2191 * gnulib/import/math: Update.
2192 * gnulib/import/mbrtowc: Update.
2193 * gnulib/import/mbsinit: Update.
2194 * gnulib/import/mbsrtowcs-impl.h: Update.
2195 * gnulib/import/mbsrtowcs-state: Update.
2196 * gnulib/import/mbsrtowcs: Update.
2197 * gnulib/import/memchr: Update.
2198 * gnulib/import/memmem: Update.
2199 * gnulib/import/pathmax.h: Update.
2200 * gnulib/import/rawmemchr: Update.
2201 * gnulib/import/readlink: Update.
2202 * gnulib/import/ref-add.sin: Update.
2203 * gnulib/import/ref-del.sin: Update.
2204 * gnulib/import/rename: Update.
2205 * gnulib/import/rmdir: Update.
2206 * gnulib/import/same-inode.h: Update.
2207 * gnulib/import/signal: Update.
2208 * gnulib/import/stat: Update.
2209 * gnulib/import/stdbool: Update.
2210 * gnulib/import/stddef: Update.
2211 * gnulib/import/stdint: Update.
2212 * gnulib/import/stdio: Update.
2213 * gnulib/import/stdlib: Update.
2214 * gnulib/import/str-two-way.h: Update.
2215 * gnulib/import/strchrnul: Update.
2216 * gnulib/import/streq.h: Update.
2217 * gnulib/import/string: Update.
2218 * gnulib/import/stripslash: Update.
2219 * gnulib/import/strnlen1: Update.
2220 * gnulib/import/strnlen1.h: Update.
2221 * gnulib/import/strstr: Update.
2222 * gnulib/import/strtok_r: Update.
2223 * gnulib/import/sys_stat: Update.
2224 * gnulib/import/sys_time: Update.
2225 * gnulib/import/sys_types: Update.
2226 * gnulib/import/time: Update.
2227 * gnulib/import/unistd: Update.
2228 * gnulib/import/unistd: Update.
2229 * gnulib/import/verify.h: Update.
2230 * gnulib/import/wchar: Update.
2231 * gnulib/import/wctype: Update.
2232 * gnulib/import/flexmember.h: New file.
2233 * gnulib/import/hard-locale.c: New file.
2234 * gnulib/import/hard-locale.h: New file.
2235 * gnulib/import/limits.in.h: New file.
2236 * gnulib/import/m4/flexmember.m4: New file.
2237 * gnulib/import/m4/hard-locale.m4: New file.
2238 * gnulib/import/m4/limits-h.m4: New file.
2239
da804164
PA
22402016-10-18 Pedro Alves <palves@redhat.com>
2241
2242 * common/common-defs.h: Include "gdb_unique_ptr.h".
2243 * common/gdb_unique_ptr.h: New.
2244
ae71e7b5
MR
22452016-10-18 Maciej W. Rozycki <macro@imgtec.com>
2246
2247 * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
2248 is `bfd_arch_i386' before proceeding.
2249 (i386_mpx_set_bounds): Likewise.
2250
b348d11b
MR
22512016-10-18 Maciej W. Rozycki <macro@imgtec.com>
2252
2253 * tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long'
2254 type for `operands'.
2255
5bad3170
SM
22562016-10-17 Simon Marchi <simon.marchi@ericsson.com>
2257
2258 * mi/mi-main.c (mi_cmd_trace_save): Check if argument is present
2259 before using it.
2260
5562a44e
PA
22612016-10-17 Pedro Alves <palves@redhat.com>
2262
2263 * charset.h (class wchar_iterator) [PHONY_ICONV] <m_desc>: Use
2264 'int' as type.
2265
754c39c2
UW
22662016-10-14 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
2267 Ulrich Weigand <uweigand@de.ibm.com>
2268
2269 * solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot
2270 path is set properly if program has a dependency on .a archive and
2271 sysroot is set via set sysroot command.
2272
afb1110b
MM
22732016-10-14 Markus Metzger <markus.t.metzger@intel.com>
2274
2275 * nat/linux-btrace.c: Remove leftover comment.
2276
8ffc1bb1
EZ
22772016-10-14 Eli Zaretskii <eliz@gnu.org>
2278
2279 * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if
2280 available, to get prototypes of 'strcasecmp' and 'strncasecmp'.
2281
1f2e9c5e
PA
22822016-10-13 Pedro Alves <palves@redhat.com>
2283
2284 * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead.
2285 (false, true): Remove checks.
2286
af533a5f
TT
22872016-10-12 Tom Tromey <tom@tromey.com>
2288
2289 * machoread.c (macho_symfile_read_all_oso): Use std::string.
2290
d1a760cb
TT
22912016-10-12 Tom Tromey <tom@tromey.com>
2292
2293 * tracepoint.c (trace_dump_command): Remove unnecessary
2294 null_cleanup.
2295
cda6c55b
TT
22962016-10-12 Tom Tromey <tom@tromey.com>
2297
2298 * valprint.c (generic_emit_char, count_next_character)
2299 (generic_printstr): Update.
2300 * charset.c (struct wchar_iterator): Move to charset.h.
2301 (wchar_iterator::wchar_iterator): Rename from
2302 make_wchar_iterator, turn into a constructor.
2303 (wchar_iterator::~wchar_iterator): Rename from
2304 do_cleanup_iterator, turn into a destructor.
2305 (make_cleanup_wchar_iterator): Remove.
2306 (wchar_iterator::iterate): Rename from wchar_iterate. Remove
2307 "iter" argument. Update.
2308 * charset.h: Include <vector>.
2309 (class wchar_iterator): New class, from old struct
2310 wchar_iterator.
2311 (make_wchar_iterator, make_cleanup_wchar_iterator): Don't
2312 declare.
2313
816d7b53
TT
23142016-10-12 Tom Tromey <tom@tromey.com>
2315
2316 * selftest.c: Include <vector>, not "vec.h".
2317 (self_test_function_ptr): Remove.
2318 (tests): Now a std::vector.
2319 (register_self_test, run_self_tests): Update.
2320
bfd28288
PA
23212016-10-13 Pedro Alves <palves@redhat.com>
2322 Tom Tromey <tom@tromey.com>
2323
2324 * tid-parse.h (tid_range_parser): New class.
2325 (enum tid_range_state): Move into tid_range_parser's scope.
2326 Remove TID_RANGE_ prefix from all values.
2327 (tid_range_parser_get_tid, tid_range_parser_get_tid_range)
2328 (tid_range_parser_star_range, tid_range_parser_finished)
2329 (tid_range_parser_skip, tid_range_parser_qualified): Don't
2330 declare.
2331 (tid_is_in_list): Update comment.
2332 * tid-parse.c (tid_range_parser::tid_range_parser): New.
2333 (init, finished, get_string, skip, tid_is_qualified)
2334 (get_tid_or_range, get_tid_range, get_tid, star_range): Rename;
2335 turn into methods.
2336 (tid_is_in_list): Adjust.
2337 * cli/cli-utils.h (number_or_range_parser): New class.
2338 (init_number_or_range, get_number_or_range)
2339 (number_range_setup_range): Don't declare.
2340 * cli/cli-utils.c
2341 (number_or_range_parser::number_or_range_parser): New.
2342 (init_number_or_range, get_number_or_range)
2343 (number_range_setup_range): Rename; turn into methods.
2344 (number_is_in_list): Adjust.
2345 * breakpoint.c (map_breakpoint_numbers): Adjust. Use bool.
2346 (trace_pass_command, get_tracepoint_by_number): Adjust.
2347 * breakpoint.h (get_tracepoint_by_number): Adjust.
2348 * inferior.c (detach_inferior_command, kill_inferior_command)
2349 (remove_inferior_command): Adjust.
2350 * linespec.c (decode_line_2): Adjust.
2351 * memattr.c (mem_enable_command, mem_disable_command)
2352 (mem_delete_command): Adjust.
2353 * printcmd.c (map_display_numbers): Adjust.
2354 * reverse.c (delete_bookmark_command, bookmarks_info): Adjust.
2355 * thread.c (thread_apply_command): Adjust.
2356
4a2f4826
AK
23572016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
2358
2359 * arc-newlib-tdep.c: New file.
2360 * configure.tgt: Add newlib support for ARC.
2361
aaf43c48
AK
23622016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
2363
2364 * arc-tdep.h (struct gdbarch_tdep) <jb_pc>: New field.
2365 * arc-tdep.c (arc_get_longjmp_target): New function.
2366 (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative.
2367 (arc_dump_tdep): Print jb_pc.
2368
b845c31e
AK
23692016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
2370
2371 * arc-tdep.h (struct gdbarch_tdep): New.
2372 * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
2373
187f5d00
YQ
23742016-10-12 Yao Qi <yao.qi@linaro.org>
2375
2376 PR tdep/20682
2377 * aarch64-tdep.c: Replace 32 with AARCH64_D_REGISTER_COUNT.
2378 (aarch64_analyze_prologue): Extend array 'regs' for D registers.
2379 Assert that operand 0 and 1 can be X or D registers. Update
2380 register number for D registers. Update registers in frame
2381 cache.
2382 * aarch64-tdep.h (AARCH64_D_REGISTER_COUNT): New macro.
2383
a1078bea
YQ
23842016-10-10 Yao Qi <yao.qi@linaro.org>
2385
2386 * arch/arm.h (enum arm_breakpoint_kinds): New.
2387 * arm-tdep.c (arm_remote_breakpoint_from_pc): Use
2388 ARM_BP_KIND_THUMB2.
2389
97ce08cb
YQ
23902016-10-10 Yao Qi <yao.qi@linaro.org>
2391
2392 * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by
2393 'gdbarch'.
2394
ff12a659
YQ
23952016-10-10 Yao Qi <yao.qi@linaro.org>
2396
2397 * v850-tdep.c (v850_breakpoint_from_pc): Use the right
2398 breakpoint instruction.
2399 (v850_dbtrap_breakpoint_from_pc): Remove.
2400 (v850_gdbarch_init): Update.
2401
49d06418
SM
24022016-10-08 Simon Marchi <simon.marchi@polymtl.ca>
2403
2404 * ui-out.c (push_level): Remove "id" parameter.
2405 (ui_out_begin): Update call.
2406
1a307001
JB
24072016-10-07 Joel Brobecker <brobecker@adacore.com>
2408
2409 GDB 7.12 released.
2410
68dadef5
MM
24112016-10-07 Markus Metzger <markus.t.metzger@intel.com>
2412
2413 * python/python.c (gdbpy_decode_line): Call
2414 string_to_event_location_basic instead of new_linespec_location.
2415
1fb77080
SDJ
24162016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2417
2418 * target.c (target_supports_multi_process): New function, moved
2419 from...
2420 * target.h (target_supports_multi_process): ... here. Remove
2421 macro.
2422 * target/target.h (target_supports_multi_process): New prototype.
2423
ddb6d633
PA
24242016-10-06 Pedro Alves <palves@redhat.com>
2425
2426 * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
2427 EXPORTED_CONST.
2428 * stub-termcap.c: Remove __cplusplus checks.
2429 * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
2430 EXTERN_C_POP): Delete.
2431 * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
2432 (GDB_XCPT) [!__cplusplus]: Delete.
2433 (throw_exception, throw_exception_sjlj): Update comments.
2434 * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
2435 * guile/guile.c (extension_language_guile): Write "extern const"
2436 instead of EXPORTED_CONST.
2437 * features/feature_to_c.sh: Don't emit !__cplusplus code. Write
2438 "extern const" instead of EXPORTED_CONST.
2439
33fa2c6e
DE
24402016-10-06 Doug Evans <dje@google.com>
2441
2442 * python/py-value.c (valpy_long): Handle unsigned values.
2443
d73f9c4b
SM
24442016-10-06 Simon Marchi <simon.marchi@ericsson.com>
2445
2446 * frame.h: Forward-declare struct ui_out.
2447
9c37b5ae
TT
24482016-10-06 Tom Tromey <tom@tromey.com>
2449
2450 * MAINTAINERS: Remove Java test maintainer.
2451 * varobj.h (java_varobj_ops): Don't declare.
2452 * valprint.h (struct value_print_options)
2453 <pascal_static_field_print>: Update comment.
2454 * utils.c (producer_is_gcc): Remove java reference.
2455 * symtab.h (struct general_symbol_info): Remove java references.
2456 (SYMBOL_SEARCH_NAME): Likewise.
2457 * objfiles.c (allocate_objfile): Update comment.
2458 * linespec.c (find_linespec_symbols): Remove java references.
2459 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
2460 java references.
2461 * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
2462 (TYPE_CPLUS_REALLY_JAVA): Remove.
2463 * c-varobj.c (enum vsections): Update comment.
2464 * symtab.c (symbol_set_language, symbol_set_names)
2465 (symbol_natural_name, symbol_demangled_name)
2466 (demangle_for_lookup, symbol_matches_domain)
2467 (default_make_symbol_completion_list_break_on_1): Remove java
2468 references.
2469 (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
2470 * psymtab.c (match_partial_symbol, psymtab_search_name)
2471 (lookup_partial_symbol): Remove java references.
2472 * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
2473 (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
2474 (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
2475 (process_structure_scope, read_subroutine_type)
2476 (read_subrange_type, load_partial_dies)
2477 (new_symbol_full, determine_prefix, typename_concat)
2478 (dwarf2_name): Remove java references.
2479 (set_cu_language): Treat Java as C++.
2480 * c-typeprint.c (c_type_print_args): Remove java reference.
2481 * defs.h (enum language) <language_java>: Remove.
2482 * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
2483 (YYOBJ, local-maintainer-clean): Don't mention java files.
2484 * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
2485 jv-varobj.c: Remove.
2486
78b86327
MR
24872016-10-06 Maciej W. Rozycki <macro@imgtec.com>
2488
2489 * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
2490 32-bit.
2491
a6912260
MR
24922016-10-06 Maciej W. Rozycki <macro@imgtec.com>
2493
2494 * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
2495 throughout.
2496
c620c3e4
MM
24972016-10-06 Markus Metzger <markus.t.metzger@intel.com>
2498
2499 * stack.c (frame_info): Call val_print_not_saved instead of
2500 val_print_unavailable if frame_id check fails.
2501
4a556533
PA
25022016-10-06 Pedro Alves <palves@redhat.com>
2503
2504 * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
2505 the cached code address.
2506
ee8da4b8
DE
25072016-10-06 Doug Evans <dje@google.com>
2508
2509 * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
2510 "end" in all fields.
2511 * features/aarch64.c: Regenerate.
2512 * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
2513 and "enabled" fields. Correct size of "enabled" field.
2514 * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
2515 and "enabled" fields.
2516 * features/i386/i386-avx-mpx-linux.c: Regenerate.
2517 * features/i386/i386-avx-mpx.c: Regenerate.
2518 * features/i386/i386-avx512-linux.c: Regenerate.
2519 * features/i386/i386-avx512.c: Regenerate.
2520 * features/i386/i386-mpx-linux.c: Regenerate.
2521 * features/i386/i386-mpx.c: Regenerate.
2522 * features/arc-arcompact.c: Regenerate.
2523 * features/arc-v2.c: Regenerate.
2524 * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit
2525 fields default to "bool" type.
2526
2527 Revert 2016-03-15 Doug Evans <dje@google.com>
2528 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
2529 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
2530 * features/i386/64bit-core.xml (i386_eflags): Ditto.
2531 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
2532 * features/i386/x32-core.xml (i386_eflags): Ditto.
2533
e742d386
TT
25342016-10-05 Tom Tromey <tom@tromey.com>
2535
2536 PR breakpoints/20653:
2537 * location.c (string_to_explicit_location): Use NULL, not '\0'.
2538
3e611445
TT
25392016-10-05 Tom Tromey <tom@tromey.com>
2540
2541 PR symtab/20652:
2542 * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
2543 fields.
2544
f206f69c
AA
25452016-10-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
2546
2547 * dwarf2expr.c (dwarf_expr_require_composition): Allow
2548 DW_OP_GNU_uninit.
2549 (execute_stack_op): Use dwarf_expr_require_composition instead of
2550 copying its logic.
2551
ed2f09e1
AK
25522016-10-05 Anton Kolesov <anton.kolesov@synopsys.com>
2553
dba48492 2554 * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
ed2f09e1 2555
5878efd4
YQ
25562016-10-05 Yao Qi <yao.qi@linaro.org>
2557
2558 * features/Makefile (WHICH): Add
2559 rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
2560 rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
2561 rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
2562 * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
2563 * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
2564 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
2565 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
2566 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
2567 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
2568
defaaad5
YQ
25692016-10-05 Yao Qi <yao.qi@linaro.org>
2570
2571 * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
2572 s390-vx-linux64.xml, s390x-tevx-linux64.xml and
2573 s390x-vx-linux64.xml.
2574
414c838a
YQ
25752016-10-05 Yao Qi <yao.qi@linaro.org>
2576
2577 * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
2578 amd64-expedite, and x32-expedite.
2579
0a69eedb
YQ
25802016-10-05 Terry Guo <terry.guo@arm.com>
2581 Yao Qi <yao.qi@linaro.org>
2582
2583 * arm-tdep.c: Adjust includes.
2584 * features/Makefile (WHICH): Add "arm/" directory to arm
2585 target descriptions.
2586 (XMLTOC): Likewise.
2587 (arm/arm-with-iwmmxt.dat): Adjust the path for
2588 dependencies.
2589 * features/arm-core.xml: Moved to ...
2590 * features/arm/arm-core.xml: ... it.
2591 * features/arm-fpa.xml: Moved to ...
2592 * features/arm/arm-fpa.xml: ... it.
2593 * features/arm-m-profile.xml: Moved to ...
2594 * features/arm/arm-m-profile.xm: ... it.
2595 * features/arm-vfpv2.xml: Moved to ...
2596 * features/arm/arm-vfpv2.xm: ... it.
2597 * features/arm-vfpv3.xml: Moved to ...
2598 * features/arm/arm-vfpv3.xml: ... it.
2599 * features/arm-with-iwmmxt.c: Moved to ...
2600 * features/arm/arm-with-iwmmxt.c: ... it.
2601 * features/arm-with-iwmmxt.xml: Moved to ...
2602 * features/arm/arm-with-iwmmxt.xml: ... it.
2603 * features/arm-with-m-fpa-layout.c: Moved to ...
2604 * features/arm/arm-with-m-fpa-layout.c: ... it.
2605 * features/arm-with-m-fpa-layout.xml: Moved to ...
2606 * features/arm/arm-with-m-fpa-layout.xml: ... it.
2607 * features/arm-with-m-vfp-d16.c: Moved to ...
2608 * features/arm/arm-with-m-vfp-d16.c: ... it.
2609 * features/arm-with-m-vfp-d16.xml: Moved to ...
2610 * features/arm/arm-with-m-vfp-d16.xml: ... it.
2611 * features/arm-with-m.c: Moved to ...
2612 * features/arm/arm-with-m.c: ... it.
2613 * features/arm-with-m.xml: Moved to ...
2614 * features/arm/arm-with-m.xm: ... it.
2615 * features/arm-with-neon.c: Moved to ...
2616 * features/arm/arm-with-neon.c: ... it.
2617 * features/arm-with-neon.xml: Moved to ...
2618 * features/arm/arm-with-neon.xml: ... it.
2619 * features/arm-with-vfpv2.c: Moved to ...
2620 * features/arm/arm-with-vfpv2.c: ... it.
2621 * features/arm-with-vfpv2.xml: Moved to ...
2622 * features/arm/arm-with-vfpv2.xml: ... it.
2623 * features/arm-with-vfpv3.c: Moved to ...
2624 * features/arm/arm-with-vfpv3.c: ... it.
2625 * features/arm-with-vfpv3.xml: Moved to ...
2626 * features/arm/arm-with-vfpv3.xml: ... it.
2627 * features/xscale-iwmmxt.xml: Moved to ...
2628 * features/arm/xscale-iwmmxt.xml: ... it.
2629
4034d0ff
AT
26302016-10-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
26312016-10-03 Simon Marchi <simon.marchi@ericsson.com>
2632
2633 PR gdb/20487
2634 * NEWS: Mention new frame field of =thread-selected event.
2635 * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
2636 (add_com_suppress_notification): New function definition.
2637 (cmd_func): Set and restore the suppress_notification flag.
2638 * cli/cli-deicode.h (struct cmd_list_element)
2639 <suppress_notification>: New field.
2640 * cli/cli-interp.c (cli_suppress_notification): New global variable.
2641 (cli_on_user_selected_context_changed): New function.
2642 (_initialize_cli_interp): Attach to user_selected_context_changed
2643 observer.
2644 * command.h (struct cli_suppress_notification): New structure.
2645 (cli_suppress_notification): New global variable declaration.
2646 (add_com_suppress_notification): New function declaration.
2647 * defs.h (enum user_selected_what_flag): New enum.
2648 (user_selected_what): New enum flag type.
2649 * frame.h (print_stack_frame_to_uiout): New function declaration.
2650 * gdbthread.h (print_selected_thread_frame): New function declaration.
2651 * inferior.c (print_selected_inferior): New function definition.
2652 (inferior_command): Remove printing of inferior/thread/frame switch
2653 notifications, notify user_selected_context_changed observer.
2654 * inferior.h (print_selected_inferior): New function declaration.
2655 * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
2656 suppression to stack-select-frame and thread-select commands.
2657 * mi/mi-interp.c (struct mi_suppress_notification)
2658 <user_selected_context>: Initialize.
2659 (mi_user_selected_context_changed): New function definition.
2660 (_initialize_mi_interp): Attach to user_selected_context_changed.
2661 * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
2662 (mi_execute_command): Handle notification suppression. Notify
2663 user_selected_context_changed observer on thread change instead of printing
2664 event directly. Don't send it if command already sends the notification.
2665 (command_notifies_uscc_observer): New function.
2666 (mi_cmd_execute): Don't handle notification suppression.
2667 * mi/mi-main.h (struct mi_suppress_notification)
2668 <user_selected_context>: New field.
2669 * stack.c (print_stack_frame_to_uiout): New function definition.
2670 (select_frame_command): Notify user_selected_context_changed
2671 observer.
2672 (frame_command): Call print_selected_thread_frame if there's no frame
2673 change or notify user_selected_context_changed observer if there is.
2674 (up_command): Notify user_selected_context_changed observer.
2675 (down_command): Likewise.
2676 (_initialize_stack): Suppress user_selected_context notification for
2677 command select-frame.
2678 * thread.c (thread_command): Notify
2679 user_selected_context_changed if the thread has changed, print
2680 thread info directly if it hasn't.
2681 (do_captured_thread_select): Do not print thread switch event.
2682 (print_selected_thread_frame): New function definition.
2683 * tui/tui-interp.c (tui_on_user_selected_context_changed):
2684 New function definition.
2685 (_initialize_tui_interp): Attach to user_selected_context_changed
2686 observer.
2687
bb805577
JK
26882016-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2689
2690 PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
2691 * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
2692 Use it.
2693 * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
2694 * infcmd.c (setup_inferior): Update caller.
2695 * remote.c (remote_add_inferior): Likewise.
2696
6d61dee5
PA
26972016-09-28 Pedro Alves <palves@redhat.com>
2698
2699 * infcall.c (run_inferior_call): Remove input from the event
2700 loop while running the infcall.
2701
ca90e760
FH
27022016-09-27 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2703
2704 * arm-tdep.c (arm_m_addr_is_magic): New function.
2705 (arm_addr_bits_remove): Call arm_m_addr_is_magic.
2706 (arm_m_exception_unwind_sniffer): Likewise.
2707
9eee20eb
JT
27082016-09-23 Jon Turney <jon.turney@dronecode.org.uk>
2709
2710 * windows-nat.c (windows_delete_thread): Adjusting call to
2711 target_mourn_inferior to include ptid_t argument.
2712
a97e29d2
TT
27132016-09-23 Tom Tromey <tom@tromey.com>
2714
2715 * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
2716 * utils.c: Don't include dyn-string.h.
2717 (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
2718 * cli/cli-cmds.c: Include <string>. Don't include dyn-string.h.
2719 (argv_to_string): Rename. Change return type to std::string.
2720 (alias_command): Use std::string.
2721
cfe826d4
TT
27222016-09-23 Tom Tromey <tom@tromey.com>
2723
2724 * objfiles.c: Include <vector>.
2725 (objfile_relocate): Use std::vector.
2726
ab8b80a8
TT
27272016-09-23 Tom Tromey <tom@tromey.com>
2728
2729 * rust-lang.c: Include <string> and <vector>.
2730 (rust_evaluate_funcall): Use std::vector, std::string.
2731 (rust_evaluate_subexp): Use std::string.
2732 (rust_lookup_symbol_nonlocal): Use std::string.
2733
05d49c37
TT
27342016-09-23 Tom Tromey <tom@tromey.com>
2735
2736 * cp-namespace.c: Include <string>.
2737 (cp_search_static_and_baseclasses)
2738 (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
2739 Use std::string.
2740
5809899d
TT
27412016-09-23 Tom Tromey <tom@tromey.com>
2742
2743 * break-catch-sig.c: Include <string>.
2744 (signal_catchpoint_print_one): Use std::string.
2745
3e25a500
TT
27462016-09-23 Tom Tromey <tom@tromey.com>
2747
2748 * utils.c (struct restore_ui_out_closure): Remove.
2749 * objfiles.h (terminate_minimal_symbol_table): Don't declare.
2750
97e64e5a
YQ
27512016-09-23 Yao Qi <yao.qi@linaro.org>
2752
2753 * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
2754 sprintf with xsnprintf.
2755 (linux_xfer_osdata_fds): Likewise.
2756
503b1c39
PA
27572016-09-23 Pedro Alves <palves@redhat.com>
2758
2759 * Makefile.in (SFILES): Add common/new-op.c.
2760 (COMMON_OBS): Add common/new-op.o.
2761 (new-op.o): New rule.
2762 * common/common-exceptions.h: Include <new>.
2763 (struct gdb_quit_bad_alloc): New type.
2764 * common/new-op.c: New file.
2765
de678454
EBM
27662016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2767
2768 * rs6000-tdep.c (ppc_process_record_op31): Fix
2769 regcache_raw_read_unsigned call using the correct parameter type.
2770
fa42dd2e
AK
27712016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
2772
2773 * arc-tdep.c: Fix ARI warning for printf(%p).
2774
31da3f27
AK
27752016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
2776
2777 * MAINTAINERS (Write After Approval): Add Anton Kolesov.
2778
ad0a504f
AK
27792016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
2780
2781 * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
2782 (HFILES_NO_SRCDIR): Add arc-tdep.h.
2783 (ALLDEPFILES): Add arc-tdep.c.
2784 * NEWS: Mention new ARC port.
2785 * configure.tgt: Add ARC.
2786 * arc-tdep.c: New file.
2787 * arc-tdep.h: New file.
2788 * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
2789 * features/arc-v2.xml: New file.
2790 * features/arc-v2.c: New file (generated).
2791 * features/arc-arcompact.xml: New file.
2792 * features/arc-arcompact.c: New file (generated).
2793
8aabe2e2
EBM
27942016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2795
2796 * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
2797 handlers.
2798
36cf1806
TT
27992016-09-21 Tom Tromey <tom@tromey.com>
2800
2801 PR gdb/20604:
2802 * top.h (quit_force): Update.
2803 * top.c (quit_force): Changed type of first argument. Don't
2804 evaluate expression. Pass NULL to kill_or_detach.
2805 * cli/cli-cmds.c (quit_command): Evaluate "args".
2806
74172ecf
SM
28072016-09-21 Simon Marchi <simon.marchi@ericsson.com>
2808
2809 * .gitignore: Ignore more files.
2810 * data-directory/.gitignore: Likewise.
2811
6ec2b213
EBM
28122016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2813
2814 * rs6000-tdep.c (PPC_DQ): New macro.
2815 (ppc_process_record_op4): Add Power ISA 3.0 instructions.
2816 (ppc_process_record_op19): Likewise.
2817 (ppc_process_record_op31): Likewise.
2818 (ppc_process_record_op59): Likewise.
2819 (ppc_process_record_op60): Likewise.
2820 (ppc_process_record_op63): Likewise.
2821 (ppc_process_record): Likewise.
2822 (ppc_process_record_op61): New function.
2823
fc6cda2e
YQ
28242016-09-21 Yao Qi <yao.qi@linaro.org>
2825
2826 * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
2827 bits 20 to 23.
2828
12c58cd4
TT
28292016-09-20 Tom Tromey <tom@tromey.com>
2830
2831 * python/py-value.c (convert_value_from_python): Make PyInt_Check
2832 conditional on Python 2.
2833 * python/py-arch.c (archpy_disassemble): Make PyInt_Check
2834 conditional on Python 2.
2835
9f7efd5b
EBM
28362016-09-20 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2837
2838 * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
2839 Word instructions.
2840
7d5adfe3
SDJ
28412016-09-20 Sergio Durigan Junior <sergiodj@redhat.com>
2842
2843 * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
2844 'resume_ptid' to 'target_mourn_inferior'. Fix regression
2845 introduced by my last commit.
2846
66797541
PA
28472016-09-19 Pedro Alves <palves@redhat.com>
2848
2849 * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
2850 textdomain, bindtextdomain): Delete macros.
2851 * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
2852 textdomain calls.
2853
bc1e6c81
SDJ
28542016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
2855
2856 * darwin-nat.c (darwin_kill_inferior): Adjusting call to
2857 target_mourn_inferior to include ptid_t argument.
2858 * fork-child.c (startup_inferior): Likewise.
2859 * gnu-nat.c (gnu_kill_inferior): Likewise.
2860 * inf-ptrace.c (inf_ptrace_kill): Likewise.
2861 * infrun.c (handle_inferior_event_1): Likewise.
2862 * linux-nat.c (linux_nat_attach): Likewise.
2863 (linux_nat_kill): Likewise.
2864 * nto-procfs.c (interrupt_query): Likewise.
2865 (procfs_interrupt): Likewise.
2866 (procfs_kill_inferior): Likewise.
2867 * procfs.c (procfs_kill_inferior): Likewise.
2868 * record.c (record_mourn_inferior): Likewise.
2869 * remote-sim.c (gdbsim_kill): Likewise.
2870 * remote.c (remote_detach_1): Likewise.
2871 (remote_kill): Likewise.
2872 * target.c (target_mourn_inferior): Change declaration to accept
2873 new ptid_t argument; use gdb_assert on it.
2874 * target.h (target_mourn_inferior): Move function prototype from
2875 here...
2876 * target/target.h (target_mourn_inferior): ... to here. Adjust it
2877 to accept new ptid_t argument.
2878 * windows-nat.c (get_windows_debug_event): Adjusting call to
2879 target_mourn_inferior to include ptid_t argument.
2880
93689493
PA
28812016-09-18 Pedro Alves <palves@redhat.com>
2882
2883 * s390-linux-nat.c: Include <algorithm>.
2884
768adc05
PA
28852016-09-18 Pedro Alves <palves@redhat.com>
2886
2887 * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
2888 specify the std:min/std::max specialization.
2889 * exec.c (section_table_read_available_memory): Likewise.
2890 * remote.c (remote_read_qxfer): Likewise.
2891 * target.c (simple_verify_memory): Likewise.
2892
cd94f6d5
SM
28932016-09-16 Simon Marchi <simark@simark.ca>
2894
2895 * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
2896 (print_stop_event): Use make_cleanup_restore_current_uiout.
2897 * python/python.c (execute_gdb_command): Likewise.
2898 * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
2899 (make_cleanup_restore_current_uiout): New function definition.
2900 * ui-out.h (make_cleanup_restore_current_uiout): New function
2901 declaration.
2902 * utils.c (do_restore_ui_out): Remove.
2903 (make_cleanup_restore_ui_out): Remove.
2904 * utils.h (make_cleanup_restore_ui_out): Remove.
2905
325fac50
PA
29062016-09-16 Pedro Alves <palves@redhat.com>
2907
2908 * defs.h (min, max): Delete.
2909 * aarch64-tdep.c: Include <algorithm> and use std::min and
2910 std::max throughout.
2911 * aarch64-tdep.c: Likewise.
2912 * alpha-tdep.c: Likewise.
2913 * amd64-tdep.c: Likewise.
2914 * amd64-windows-tdep.c: Likewise.
2915 * arm-tdep.c: Likewise.
2916 * avr-tdep.c: Likewise.
2917 * breakpoint.c: Likewise.
2918 * btrace.c: Likewise.
2919 * ctf.c: Likewise.
2920 * disasm.c: Likewise.
2921 * doublest.c: Likewise.
2922 * dwarf2loc.c: Likewise.
2923 * dwarf2read.c: Likewise.
2924 * environ.c: Likewise.
2925 * exec.c: Likewise.
2926 * f-exp.y: Likewise.
2927 * findcmd.c: Likewise.
2928 * ft32-tdep.c: Likewise.
2929 * gcore.c: Likewise.
2930 * hppa-tdep.c: Likewise.
2931 * i386-darwin-tdep.c: Likewise.
2932 * i386-tdep.c: Likewise.
2933 * linux-thread-db.c: Likewise.
2934 * lm32-tdep.c: Likewise.
2935 * m32r-tdep.c: Likewise.
2936 * m88k-tdep.c: Likewise.
2937 * memrange.c: Likewise.
2938 * minidebug.c: Likewise.
2939 * mips-tdep.c: Likewise.
2940 * moxie-tdep.c: Likewise.
2941 * nds32-tdep.c: Likewise.
2942 * nios2-tdep.c: Likewise.
2943 * nto-procfs.c: Likewise.
2944 * parse.c: Likewise.
2945 * ppc-sysv-tdep.c: Likewise.
2946 * probe.c: Likewise.
2947 * record-btrace.c: Likewise.
2948 * remote.c: Likewise.
2949 * rs6000-tdep.c: Likewise.
2950 * rx-tdep.c: Likewise.
2951 * s390-linux-nat.c: Likewise.
2952 * s390-linux-tdep.c: Likewise.
2953 * ser-tcp.c: Likewise.
2954 * sh-tdep.c: Likewise.
2955 * sh64-tdep.c: Likewise.
2956 * source.c: Likewise.
2957 * sparc-tdep.c: Likewise.
2958 * symfile.c: Likewise.
2959 * target-memory.c: Likewise.
2960 * target.c: Likewise.
2961 * tic6x-tdep.c: Likewise.
2962 * tilegx-tdep.c: Likewise.
2963 * tracefile-tfile.c: Likewise.
2964 * tracepoint.c: Likewise.
2965 * valprint.c: Likewise.
2966 * value.c: Likewise.
2967 * xtensa-tdep.c: Likewise.
2968 * cli/cli-cmds.c: Likewise.
2969 * compile/compile-object-load.c: Likewise.
2970
8193adea
AA
29712016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2972
2973 * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
2974 (PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
2975 (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
2976 (PER_CONTROL_ALTERATION): New macros.
2977 (struct s390_debug_reg_state) <break_areas>: New member.
2978 (s390_forget_process): Free break_areas as well.
2979 (s390_linux_new_fork): Copy break_areas as well.
2980 (s390_prepare_to_resume): Install hardware breakpoints.
2981 (s390_can_use_hw_breakpoint): Indicate support for hardware
2982 breakpoints.
2983 (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
2984 linux_nat target methods.
2985 (_initialize_s390_nat): Register them.
2986
0e00e962
AA
29872016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2988
2989 * nat/linux-nat.h (lwp_is_stepping): New declaration.
2990 * linux-nat.c (lwp_is_stepping): New function.
2991
169fe0df
AA
29922016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2993
2994 * s390-linux-nat.c (gdbcmd.h): New include.
2995 (s390_show_debug_regs): New function.
2996 (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
2997 (s390_prepare_to_resume): Likewise.
2998 (_initialize_s390_nat): Register the command "maint set
2999 show-debug-regs".
3000
373c3dad
AA
30012016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
3002
3003 * s390-linux-nat.c (watch_areas): Remove variable. Replace by a
3004 member of...
3005 (struct s390_debug_reg_state): ...this. New struct.
3006 (struct s390_process_info): New struct.
3007 (s390_process_list): New variable.
3008 (s390_find_process_pid, s390_add_process, s390_process_info_get)
3009 (s390_get_debug_reg_state): New functions.
3010 (s390_stopped_by_watchpoint): Now access the watch_areas VEC via
3011 s390_get_debug_reg_state.
3012 (s390_prepare_to_resume): Likewise.
3013 (s390_insert_watchpoint): Likewise.
3014 (s390_remove_watchpoint): Likewise.
3015 (s390_forget_process, s390_linux_new_fork): New linux_nat target
3016 methods.
3017 (_initialize_s390_nat): Register them.
3018
17c84cca
AA
30192016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
3020
3021 * s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC.
3022 (watch_base): Remove variable.
3023 (watch_areas): New variable.
3024 (s390_stopped_by_watchpoint): Transform operations on the
3025 watch_base list to equivalent operations on the watch_areas VEC.
3026 (s390_prepare_to_resume): Likewise.
3027 (s390_insert_watchpoint): Likewise.
3028 (s390_remove_watchpoint): Likewise.
3029
9c2996c9
AA
30302016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
3031
3032 * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
3033 functions instead of accessing lwp_info structure members.
3034 (s390_mark_per_info_changed): New function.
3035 (s390_new_thread): Use it.
3036 (s390_refresh_per_info_cb): New function.
3037 (s390_refresh_per_info): Remove parameter. Refresh all lwps of
3038 the current process.
3039 (s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
3040 (s390_remove_watchpoint): Likewise.
3041
e1b2624a
AA
30422016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
3043
3044 * elfread.c (auxv.h): New include.
3045 (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
3046
f5c4fcd9
TT
30472016-09-08 Tom Tromey <tom@tromey.com>
3048
3049 * remote.c (remote_notif_stop_ack, remote_wait_as)
3050 (show_remote_cmd): Remove unneeded casts.
3051
4295e285
PA
30522016-09-06 Pedro Alves <palves@redhat.com>
3053
3054 * top.c (wait_sync_command_done): Don't assume current_ui doesn't
3055 change across events. Restore the current UI before returning.
3056 (gdb_readline_wrapper): Restore the current UI before returning.
3057
a025b477
PA
30582016-09-06 Pedro Alves <palves@redhat.com>
3059
3060 * event-top.c (restore_ui_cleanup): Now static.
3061 (make_cleanup_restore_current_ui): New function.
3062 (switch_thru_all_uis_init): Use it.
3063 * infcall.c (call_thread_fsm_should_stop): Use it.
3064 * infrun.c (fetch_inferior_event): Use it.
3065 * top.c (new_ui_command): Use it.
3066 * top.h (restore_ui_cleanup): Delete declaration.
3067 (make_cleanup_restore_current_ui): New declaration.
3068
00d5215e
UW
30692016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3070
3071 * i386-tdep.c (i386_floatformat_for_type): New function.
3072 (i386_gdbarch_init): Install it.
3073 * ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
3074 (ppc_linux_init_abi): Install it.
3075
9b790ce7
UW
30762016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3077
3078 * gdbarch.sh (floatformat_for_type): New gdbarch callback.
3079 * gdbarch.h, gdbarch.c: Re-generate.
3080 * arch-utils.h (default_floatformat_for_type): New prototype.
3081 * arch-utils.c (default_floatformat_for_type): New function.
3082
3083 * doublest.c (floatformat_from_length): Remove.
3084 (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
3085 * gdbtypes.c (verify_floatformat): Require non-NULL format.
3086
3087 * dwarf2read.c (dwarf2_init_float_type): New function.
3088 (read_base_type): Use it.
3089 * stabsread.c (dbx_init_float_type): New function.
3090 (read_sun_floating_type): Use it.
3091 (read_range_type): Likewise.
3092
49f190bc
UW
30932016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3094
3095 * ada-lang.c (ada_language_arch_info): Use gdbarch-provided
3096 platform ABI floating-point formats for built-in types.
3097 * d-lang.c (build_d_types): Likewise.
3098 * f-lang.c (build_fortran_types): Likewise.
3099 * m2-lang.c (build_m2_types): Likewise.
3100 * mdebugread.c (basic_type): Likewise.
3101
3102 * go-lang.c (build_go_types): Use IEEE floating-point formats
3103 for language built-in types as mandanted by the language.
3104 * jv-lang.c (build_java_types): Likewise.
3105 * rust-lang.c (rust_language_arch_info): Likewise.
3106 * stabsread.c (rs6000_builtin_type): Likewise.
3107
c413c448
UW
31082016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3109
3110 * gdbtypes.c (init_type): Remove "char" special case.
3111 (arch_integer_type): Likewise.
3112 (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
3113 (objfile_type): Likewise.
3114 * mdebugread.c (basic_type): Likewise.
3115 * stabsread.c (rs6000_builtin_type): Likewise.
3116
a9ff5f12
UW
31172016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3118
3119 * gdbtypes.h (enum type_flag_value): Remove.
3120 Remove references to TYPE_FLAG_... in comments throughout.
3121 * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
3122 flags, print the corresponding TYPE_... access macro names.
3123 Remove references to TYPE_FLAG_... in comments throughout.
3124 * infcall.c: Remove references to TYPE_FLAG_... in comments.
3125 * valprint.c: Likewise.
3126 * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
3127 values, only TYPE_INSTANCE_FLAG_... values.
3128 (class TypeFlagsPrinter): Likewise.
3129
19f392bc
UW
31302016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3131
3132 * gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE
3133 argument to first position.
3134 (init_integer_type): New prototype.
3135 (init_character_type): Likewise.
3136 (init_boolean_type): Likewise.
3137 (init_float_type): Likewise.
3138 (init_decfloat_type): Likewise.
3139 (init_complex_type): Likewise.
3140 (init_pointer_type): Likewise.
3141 * gdbtypes.c (verify_floatflormat): New function.
3142 (init_type): Remove FLAGS argument and processing. Move OBJFILE
3143 argument to first position.
3144 (init_integer_type): New function.
3145 (init_character_type): Likewise.
3146 (init_boolean_type): Likewise.
3147 (init_float_type): Likewise.
3148 (init_decfloat_type): Likewise.
3149 (init_complex_type): Likewise.
3150 (init_pointer_type): Likewise.
3151 (arch_float_type): Use verify_floatflormat.
3152 (objfile_type): Use init_..._type helpers instead of calling
3153 init_type directly.
3154 * dwarf2read.c (fixup_go_packaging): Update to changed init_type
3155 prototype.
3156 (read_namespace_type): Likewise.
3157 (read_module_type): Likewise.
3158 (read_typedef): Likewise.
3159 (read_unspecified_type): Likewise.
3160 (build_error_marker_type): Likewise.
3161 (read_base_type): Use init_..._type helpers.
3162 * mdebugread.c (basic_type): Use init_..._type helpers.
3163 (parse_type): Update to changed init_type prototype.
3164 (cross_ref): Likewise.
3165 * stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
3166 (read_sun_builtin_type): Likewise.
3167 (read_sun_floating_type): Likewise.
3168 (read_range_type): Likewise. Also update to changed init_type
3169 prototype.
3170
88dfca6c
UW
31712016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3172
3173 * gdbtypes.h (arch_decfloat_type): New prototype.
3174 (arch_pointer_type): Likewise.
3175 * gdbtypes.c (arch_decfloat_type): New function.
3176 (arch_pointer_type): Likewise.
3177 (gdbtypes_post_init): Use arch_decfloat_type.
3178 * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
3179 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
3180 * m32c-tdep.c (make_types): Likewise.
3181 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3182
ae438bc5
UW
31832016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3184
3185 * gdbtypes.c (set_type_code): New function.
3186 (init_type, arch_type): Use it.
3187
5f3bceb6
UW
31882016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3189
3190 * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
3191 instead of gdbarch_double_bit for "long_long_float".
3192
cf6de44d
PA
31932016-09-05 Pedro Alves <palves@redhat.com>
3194
3195 * NEWS: Mention that a C++ compiler is now required.
3196 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
3197 (COMPILE.pre, CC_LD): Use CXX directly.
3198 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
3199 * acinclude.m4: Don't include build-with-cxx.m4.
3200 * build-with-cxx.m4: Delete file.
3201 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
3202 * warning.m4: Assume $enable_build_with_cxx is yes.
3203 * configure: Regenerate.
3204
f245535c
PA
32052016-09-05 Pedro Alves <palves@redhat.com>
3206
3207 PR backtrace/19927
3208 * frame.c (get_frame_id): Compute the frame id if not computed
3209 yet.
3210 (unwind_to_current_frame): Delete.
3211 (get_current_frame): Use get_prev_frame_always_1 to get the
3212 current frame and assert that that always succeeds.
3213 (get_prev_frame_if_no_cycle): Skip cycle detection if returning
3214 the current frame.
3215
4aa4e28b
TT
32162016-09-02 Tom Tromey <tom@tromey.com>
3217
3218 PR gdb/11616:
3219 * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
3220 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
3221 DW_OP_form_tls_address.
3222 (locexpr_describe_location_piece): Likewise.
3223 * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
3224 * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
3225 (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
3226 * compile/compile-loc2c.c (struct insn_info): Update comment.
3227 (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
3228
f2b9e3df
SDJ
32292016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3230
3231 * target.c (target_wait): Mention that the function's prototype
3232 can be found at target/target.h.
3233 * target.h (target_wait): Move prototype from here...
3234 * target/target.h (target_wait): ... to here.
3235
049a8570
SDJ
32362016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3237
3238 * fork-child.c (startup_inferior): Replace calls to target_resume
3239 by target_continue{,_no_signal}, depending on the case.
3240 * linux-nat.c (cleanup_target_stop): Call
3241 target_continue_no_signal instead of target_resume.
3242 * procfs.c (procfs_wait): Likewise.
3243 * target.c (target_continue): New function.
3244 * target/target.h (target_continue): New prototype.
3245
f99bd5f2
YQ
32462016-08-31 Yao Qi <yao.qi@linaro.org>
3247
3248 * record-full.c (record_full_insert_breakpoint): Fix typo.
3249
5af962df
AA
32502016-08-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3251
3252 * thread.c (tp_array_compar): Insert missing parentheses.
3253
ae68ff9f
AA
32542016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3255
3256 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
3257 designated initializer list by plain initializer list, for C++
3258 compliance.
3259
754653a7
AZ
32602016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3261
3262 * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
3263 struct ps_prochandle.
3264 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
3265 * arm-linux-nat.c (ps_get_thread_area): Likewise.
3266 * gdb_proc_service.h (ps_get_thread_area): Likewise.
3267 * i386-linux-nat.c (ps_get_thread_area): Likewise.
3268 * m68klinux-nat.c (ps_get_thread_area): Likewise.
3269 * mips-linux-nat.c (ps_get_thread_area): Likewise.
3270 * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
3271 * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
3272 * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
3273
0a1ddfa6
SM
32742016-08-24 Simon Marchi <simon.marchi@ericsson.com>
3275
3276 * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
3277 NULL if terminal_name is an empty string.
3278 (_initialize_infcmd): Make the argument of "set inferior-tty"
3279 optional, mention it in the help doc.
3280
bdd78711
CL
32812016-08-24 Carl Love <cel@us.ibm.com>
3282
3283 * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
3284 set_gdbarch_deprecated_fp_regnum() architecture
3285 initialization function.
3286
34f81801
SM
32872016-08-23 Simon Marchi <simon.marchi@ericsson.com>
3288
3289 * stack.c (parse_frame_specification): Fix typo in comment.
3290
d9de1fe3
PA
32912016-08-23 Pedro Alves <palves@redhat.com>
3292
3293 PR gdb/20494
3294 * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
3295 comments.
3296 (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
3297 Delete.
3298 (set_initial_gdb_ttystate): Record our_terminal_info here too,
3299 instead of ...
3300 (gdb_has_a_terminal): ... here. Reimplement in terms of
3301 initial_gdb_ttystate. Make static.
3302 * terminal.h (gdb_has_a_terminal): Delete declaration.
3303 (set_initial_gdb_ttystate): Add comment.
3304 * top.c (show_interactive_mode): Use input_interactive_p instead
3305 of gdb_has_a_terminal.
3306
6bb90213
PA
33072016-08-22 Pedro Alves <palves@redhat.com>
3308
3309 PR gdb/20505
3310 * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
3311 find the vDSO's start address with AT_SYSINFO_EHDR too, and
3312 determine the vDSO's size by finding the PT_LOAD segment that
3313 matches AT_SYSINFO_EHDR.
3314
03bcd739
YQ
33152016-08-19 Yao Qi <yao.qi@linaro.org>
3316
3317 * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
3318 based STP instruction.
3319
bbfa2517
YQ
33202016-08-19 Yao Qi <yao.qi@linaro.org>
3321
3322 * completer.c (linespec_location_completer): Make file_to_match
3323 null-terminated.
3324
f077e978
PA
33252016-08-19 Pedro Alves <palves@redhat.com>
3326
3327 * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
3328 addresses over 0x7fffffff.
3329
46da9242
CL
33302016-08-18 Carl Love <cel@us.ibm.com>
3331
3332 * MAINTANERS Write After Approval): Add "Carl Love".
3333
d44c67f3
EBM
33342016-08-18 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3335
3336 * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
3337
eb2332d7
SM
33382016-08-17 Simon Marchi <simon.marchi@ericsson.com>
3339
3340 * inferior.c (remove_inferior_command): Fix error message.
3341
9b19e390
SM
33422016-08-17 Simon Marchi <simon.marchi@ericsson.com>
3343
3344 * inferior.c (exit_inferior_1): Remove comment.
3345
31925464
MW
33462016-08-15 Matthew Wahab <matthew.wahab@arm.com>
3347
3348 PR gdb/20457
3349 * gdb_proc_service.h: Add an include of gregset.h
3350 [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
3351
b31f9478
YQ
33522016-08-15 Yao Qi <yao.qi@linaro.org>
3353
3354 * location.c (explicit_location_lex_one): Compare the return
3355 value of strncmp with zero. Don't check (*inp)[9]. Increment
3356 *inp by 8.
3357
39b22471
PA
33582016-08-11 Pedro Alves <palves@redhat.com>
3359
3360 PR gdb/20413
3361 * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
3362 "gregset.h".
3363
01d3dedf
PA
33642016-08-10 Pedro Alves <palves@redhat.com>
3365
3366 PR gdb/19187
3367 * record-full.c (record_full_remove_breakpoint): Don't remove the
3368 breakpoint from the record_full_breakpoints VEC if we're detaching
3369 the breakpoint from a fork child.
3370
73971819
PA
33712016-08-10 Pedro Alves <palves@redhat.com>
3372
3373 PR gdb/19187
3374 * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
3375 interface.
3376 * break-catch-syscall.c (remove_catch_syscall):
3377 * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
3378 (remove_breakpoint_1): Pass 'reason' down.
3379 (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
3380 (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
3381 (base_breakpoint_remove_location, bkpt_remove_location)
3382 (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
3383 interface.
3384 * breakpoint.h (enum remove_bp_reason): Moved here from
3385 breakpoint.c.
3386 (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
3387 * corelow.c (core_remove_breakpoint): New function.
3388 (init_core_ops): Install it as to_remove_breakpoint method.
3389 * exec.c (exec_remove_breakpoint): New function.
3390 (init_exec_ops): Install it as to_remove_breakpoint method.
3391 * mem-break.c (memory_remove_breakpoint): Adjust interface.
3392 * record-btrace.c (record_btrace_remove_breakpoint): Adjust
3393 interface.
3394 * record-full.c (record_full_remove_breakpoint)
3395 (record_full_core_remove_breakpoint): Adjust interface.
3396 * remote.c (remote_remove_breakpoint): Adjust interface.
3397 * target-debug.h (target_debug_print_enum_remove_bp_reason): New
3398 macro.
3399 * target-delegates.c: Regenerate.
3400 * target.c (target_remove_breakpoint): Add 'reason' parameter.
3401 * target.h (struct target_ops) <to_remove_breakpoint>: Add
3402 'reason' parameter.
3403 (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
3404 parameter.
3405
b2b6a7da
PA
34062016-08-10 Pedro Alves <palves@redhat.com>
3407
3408 PR gdb/19187
3409 * breakpoint.c (insertion_state_t): Delete.
3410 (enum remove_bp_reason): New.
3411 (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
3412 Adjust to use enum remove_bp_reason instead of insertion_state_t.
3413
834c0d03
PA
34142016-08-10 Pedro Alves <palves@redhat.com>
3415
3416 PR gdb/19187
3417 * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
3418 always pass mark_uninserted to remove_breakpoint_1.
3419 (insert_breakpoint_locations, remove_breakpoints)
3420 (remove_breakpoints_pid, update_global_location_list): Update
3421 callers.
3422
24cdb46e
РИ
34232016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
3424 Pedro Alves <palves@redhat.com>
3425
3426 * windows-nat.c (MS_VC_EXCEPTION): New define.
3427 (handle_exception_result): New enum.
3428 (windows_delete_thread): Free the thread's name.
3429 (handle_exception): Handle MS_VC_EXCEPTION.
3430 (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
3431 (windows_thread_name): New function.
3432 (windows_target): Install it as to_thread_name method.
3433 * NEWS: Mention the thread naming support on MS-Windows.
3434
669f9429
PA
34352016-08-10 Pedro Alves <palves@redhat.com>
3436
3437 * common/signals-state-save-restore.c
3438 (save_original_signals_state, restore_original_signals_state):
3439 Wrap perror_with_name arguments with '()'.
3440
3eb7562a
PA
34412016-08-09 Pedro Alves <palves@redhat.com>
3442
3443 PR gdb/20418
3444 * event-top.c (ui_register_input_event_handler)
3445 (ui_unregister_input_event_handler): New functions.
3446 (async_enable_stdin): Register input in the event loop.
3447 (async_disable_stdin): Unregister input from the event loop.
3448 (gdb_setup_readline): Register input in the event loop.
3449 * infrun.c (check_curr_ui_sync_execution_done): Register input in
3450 the event loop.
3451 * target.c (target_terminal_inferior): Don't unregister input from
3452 the event loop.
3453 (target_terminal_ours): Don't register input in the event loop.
3454 * target.h (target_terminal_inferior)
3455 (target_terminal_ours_for_output, target_terminal_ours): Update
3456 comments.
3457 * top.h (ui_register_input_event_handler)
3458 (ui_unregister_input_event_handler): New declarations.
3459 * utils.c (ui_unregister_input_event_handler_cleanup)
3460 (prepare_to_handle_input): New functions.
3461 (defaulted_query, prompt_for_continue): Use
3462 prepare_to_handle_input.
3463
80614914
PA
34642016-08-09 Pedro Alves <palves@redhat.com>
3465
3466 PR mi/20431
3467 * mi/mi-main.c (mi_execute_command): Enable input and set prompt
3468 state to PROMPT_NEEDED.
3469
f348d89a
PA
34702016-08-09 Pedro Alves <palves@redhat.com>
3471
3472 PR gdb/18653
3473 * Makefile.in (SFILES): Add
3474 common/signals-state-save-restore.c.
3475 (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
3476 (COMMON_OBS): Add signals-state-save-restore.o.
3477 (signals-state-save-restore.o): New rule.
3478 * configure: Regenerate.
3479 * fork-child.c: Include "signals-state-save-restore.h".
3480 (fork_inferior): Call restore_original_signals_state.
3481 * main.c: Include "signals-state-save-restore.h".
3482 (captured_main): Call save_original_signals_state.
3483 * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
3484 * common/signals-state-save-restore.c: New file.
3485 * common/signals-state-save-restore.h: New file.
3486
e5ca03b4
PA
34872016-08-09 Pedro Alves <palves@redhat.com>
3488
3489 * value.c (unpack_value_bitfield): Skip unpacking if the parent
3490 has no contents buffer to begin with.
3491
6a17ca31
PA
34922016-08-08 Pedro Alves <palves@redhat.com>
3493
3494 * features/i386/amd64-avx-mpx-linux.c: Regenerate.
3495 * features/i386/amd64-avx-mpx.c: Regenerate.
3496 * features/i386/i386-avx-mpx-linux.c: Regenerate.
3497 * features/i386/i386-avx-mpx.c: Regenerate.
3498
c632e428
SM
34992016-08-05 Simon Marchi <simon.marchi@ericsson.com>
3500
3501 * event-top.h (cli_command_loop): Remove.
3502
3906a8fc
PA
35032016-08-05 Pedro Alves <palves@redhat.com>
3504
3505 PR remote/20398
3506 * remote-fileio.c (remote_fileio_quit_handler): Check the quit
3507 flag before calling quit.
3508
69ffd7f2
PA
35092016-08-05 Pedro Alves <palves@redhat.com>
3510
3511 * NEWS: Mention that GDB and GDBserver build with a C++ compiler
3512 by default.
3513
1baf5149
PA
35142016-08-05 Pedro Alves <palves@redhat.com>
3515
3516 * build-with-cxx.m4: Change help string to be in terms of
3517 --disable-build-with-cxx.
3518 * configure: Regenerate.
3519
6f67973b
YQ
35202016-08-04 Yao Qi <yao.qi@linaro.org>
3521
3522 * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
3523 declaration.
3524 (aarch64_linux_read_description): Remove code on getting
3525 auxv and select target description on it. Select target
3526 description by the result of NT_ARM_VFP ptrace request.
3527
282a0691
TT
35282016-08-03 Tom Tromey <tom@tromey.com>
3529
3530 PR python/18565:
3531 * python/py-frame.c (frapy_function): Use find_frame_funname.
3532
d10153cf
TT
35332016-08-03 Tom Tromey <tom@tromey.com>
3534
3535 * stack.c (find_frame_funname): Avoid any possible leak in case
3536 cp_remove_params can throw.
3537
8d2a0a14
TT
35382016-08-03 Tom Tromey <tom@tromey.com>
3539
3540 * NEWS: Mention new Python breakpoint events.
3541
33541b2e
TT
35422016-08-02 Tom Tromey <tom@tromey.com>
3543
3544 * MAINTAINERS (Core): Add self as Rust maintainer.
3545
751b375e
JB
35462016-08-01 Joel Brobecker <brobecker@adacore.com>
3547
3548 * NEWS: Create a new section for the next release branch.
3549 Rename the section of the current branch, now that it has
3550 been cut.
3551
b2bd7787
JB
35522016-08-01 Joel Brobecker <brobecker@adacore.com>
3553
3554 GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
3555 * version.in: Bump version to 7.12.50.DATE-git.
3556
293acfae
AM
35572016-07-27 Alan Modra <amodra@gmail.com>
3558
3559 * amd64-darwin-tdep.c: Don't include libbfd.h.
3560 * i386-darwin-tdep.c: Likewise.
3561 * rs6000-nat.c: Likewise.
3562 * rs6000-tdep.c: Likewise.
3563
0b31a4bc
TT
35642016-07-26 Tom Tromey <tom@tromey.com>
3565
3566 * symtab.c (register_symbol_computed_impl): Update.
3567 PR python/20190:
3568 * value.h (symbol_read_needs): Declare.
3569 (symbol_read_needs_frame): Add comment.
3570 * symtab.h (struct symbol_computed_ops) <read_variable>: Update
3571 comment.
3572 <get_symbol_read_needs>: Rename. Change return type.
3573 * findvar.c (symbol_read_needs): New function.
3574 (symbol_read_needs_frame): Rewrite.
3575 (default_read_var_value): Use symbol_read_needs.
3576 * dwarf2loc.c (struct symbol_needs_baton): Rename.
3577 <needs>: Renamed from needs_frame. Changed type.
3578 (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
3579 (symbol_needs_read_mem, symbol_needs_frame_base)
3580 (symbol_needs_frame_cfa, symbol_needs_tls_address)
3581 (symbol_needs_dwarf_call): Rename.
3582 (needs_dwarf_reg_entry_value): Update.
3583 (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
3584 Rename and update.
3585 (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
3586 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
3587 * defs.h (enum symbol_needs_kind): New.
3588
40c31709
PA
35892016-07-26 Pedro Alves <palves@redhat.com>
3590
3591 * nat/linux-ptrace.c: Include "gregset.h".
3592 (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
3593 PTRACE_PEEKUSER.
3594
9cf12d57
PA
35952016-07-26 Pedro Alves <palves@redhat.com>
3596
3597 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
3598 parameter to 'ptrace'.
3599 * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
3600 (nat_uptr_t): New an unsigned long.
3601 (nat_clock_t): Remove attribute __aligned__.
3602 (struct nat_timeval): Delete.
3603 (nat_siginfo_t): Remove attribute __aligned__.
3604 (ptrace_siginfo_t): Define.
3605 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
3606 (compat_x32_siginfo_from_siginfo)
3607 (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
3608 Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
3609 Remove casts.
3610 (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
3611 'ptrace'. Remove static assertions.
3612 (top level): New static assertions.
3613
8194e927
SM
36142016-07-25 Simon Marchi <simon.marchi@ericsson.com>
3615
3616 * top.h (make_delete_ui_cleanup): New declaration.
3617 * top.c (delete_ui_cleanup): New function.
3618 (make_delete_ui_cleanup): New function.
3619 (new_ui_command): Create restore_ui cleanup earlier, create a
3620 delete_ui cleanup and discard it on success.
3621
0e1a6a51
PA
36222016-07-25 Pedro Alves <palves@redhat.com>
3623 Jan Kratochvil <jan.kratochvil@redhat.com>
3624
3625 * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
3626 't'.
3627
d617208b
PA
36282016-07-25 Pedro Alves <palves@redhat.com>
3629
3630 * nat/linux-procfs.c (enum proc_state): New enum.
3631 (parse_proc_status_state): New function.
3632 (linux_proc_pid_get_state): Replace output string buffer parameter
3633 with an output proc_state parameter. Use parse_proc_status_state.
3634 (linux_proc_pid_is_gone): Adjust to use proc_state values.
3635 (linux_proc_pid_has_state): Change type of 'state' parameter; now
3636 an enum proc_state. Adjust to linux_proc_pid_get_state interface
3637 change.
3638 (linux_proc_pid_is_stopped)
3639 (linux_proc_pid_is_trace_stopped_nowarn)
3640 (linux_proc_pid_is_zombie_maybe_warn): Adjust to
3641 linux_proc_pid_get_state interface change.
3642
3a1518e4
TW
36432016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
3644
3645 * MAINTAINERS (Write After Approval): Add Tim Wiederhake
3646
c0272db5
TW
36472016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
3648
3649 * NEWS: Resume btrace on reconnect.
3650 * record-btrace.c: Added record-btrace.h include.
3651 (record_btrace_open): Split into this and ...
3652 (record_btrace_push_target): ... this.
3653 (record_btrace_disconnect): New function.
3654 (init_record_btrace_ops): Use record_btrace_disconnect.
3655 * record-btrace.h: New file.
3656 * remote.c: Added record-btrace.h include.
3657 (remote_start_remote): Check recording status.
3658 (remote_btrace_maybe_reopen): New function.
3659
e3487908
GKB
36602016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
3661
3662 * xml-syscall.c (get_syscalls_by_group): New.
3663 (get_syscall_group_names): New.
3664 (struct syscall_group_desc): New structure to store group data.
3665 (struct syscalls_info): Include field to store the group list.
3666 (sysinfo_free_syscall_group_desc): New.
3667 (free_syscalls_info): Free group list.
3668 (syscall_group_create_syscall_group_desc): New.
3669 (syscall_group_add_syscall): New.
3670 (syscall_create_syscall_desc): Add syscall to its groups.
3671 (syscall_start_syscall): Load group attribute.
3672 (syscall_group_get_group_by_name): New.
3673 (xml_list_syscalls_by_group): New.
3674 (xml_list_of_groups): New.
3675 * xml-syscall.h (get_syscalls_by_group): Export function
3676 to retrieve a list of syscalls filtered by the group name.
3677 (get_syscall_group_names): Export function to retrieve the list
3678 of syscall groups.
3679 * break-catch-syscall.c (catch_syscall_split_args): Verify if
3680 argument is a syscall group and expand it to a list of syscalls
3681 when creating catchpoints.
3682 (catch_syscall_completer): Add word completion for system call
3683 groups.
3684 * configure.ac: Include dependency for xsltproc when building
3685 in maintainer-mode.
3686 * break-catch-syscall.c (_initialize_breakpoint): Update catch
3687 syscall command documentation.
3688 * NEWS: Include section about catching groups of syscalls.
3689 * configure: Regenerate.
3690 * data-directory/Makefile.in: Generate syscall xml when building
3691 in maintainer mode.
3692 * syscalls/gdb-syscalls.dtd: Include group attribute to the
3693 syscall element.
3694 * syscalls/apply-defaults.xsl: New.
3695 * syscalls/linux-defaults.xml.in: New.
3696 * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
3697 * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
3698 * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
3699 * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
3700 * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
3701 * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
3702 * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
3703 * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
3704 * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
3705 * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
3706 * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
3707 * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
3708 * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
3709 * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
3710 * syscalls/aarch64-linux.xml: Regenerate.
3711 * syscalls/amd64-linux.xml: Regenerate.
3712 * syscalls/arm-linux.xml: Regenerate.
3713 * syscalls/i386-linux.xml: Regenerate.
3714 * syscalls/mips-n32-linux.xml: Regenerate.
3715 * syscalls/mips-n64-linux.xml: Regenerate.
3716 * syscalls/mips-o32-linux.xml: Regenerate.
3717 * syscalls/ppc-linux.xml: Regenerate.
3718 * syscalls/ppc64-linux.xml: Regenerate.
3719 * syscalls/s390-linux.xml: Regenerate.
3720 * syscalls/s390x-linux.xml: Regenerate.
3721 * syscalls/sparc-linux.xml: Regenerate.
3722 * syscalls/sparc64-linux.xml: Regenerate.
3723
49ecef2a
AP
37242016-07-23 Andrew Pinski <apinski@cavium.com>
3725
3726 * nat/aarch64-linux-hw-point.c
3727 (aarch64_linux_get_debug_reg_capacity): Handle
3728 ARMv8.1 and ARMv8.2 debug versions.
3729 * nat/aarch64-linux-hw-point.h
3730 (AARCH64_DEBUG_ARCH_V8_1): New define.
3731 (AARCH64_DEBUG_ARCH_V8_2): New define.
3732
463888ab
РИ
37332016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
3734
3735 PR gdb/14529
3736 * windows-nat.c (signal_event_command): New command 'signal-event'
3737 for W32 JIT debug support.
3738 * NEWS: Add an entry about the new 'signal-event' command.
3739
e98c9e7c
TT
37402016-07-22 Tom Tromey <tom@tromey.com>
3741
3742 PR rust/20162:
3743 * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
3744 Call scan_partial_symbols for children when reading a Rust CU.
3745 (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
3746 rustc.
3747 (process_structure_scope) <DW_TAG_subprogram>: Call
3748 read_func_scope for Rust.
3749
eed2386e
YQ
37502016-07-22 Yao Qi <yao.qi@linaro.org>
3751
3752 * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
3753 bt_ctf_get_int64.
3754
12df5c00
TT
37552016-07-21 Tom Tromey <tom@tromey.com>
3756
3757 * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
3758 structs.
3759 * rust-exp.y (struct_expr_list): Allow empty elements.
3760
305450ed
TT
37612016-07-21 Tom Tromey <tom@tromey.com>
3762
3763 * configure: Rebuild.
3764 * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
3765 -Wunused-but-set-parameter, -Wunused-but-set-variable.
3766
f515a1d6
PA
37672016-07-21 Pedro Alves <palves@redhat.com>
3768
3769 * go32-nat.c (go32_create_inferior): Add cast.
3770 * ser-go32.c (dos_noop): Delete.
3771 (dos_flush_output, dos_setparity, dos_drain_output): New
3772 functions.
3773 (dos_write): Add cast.
3774 (dos_ops): Use dos_flush_output, dos_setparity and
3775 dos_drain_output.
3776 * top.c (do_chdir_cleanup): Add cast.
3777
c25b7cce
PA
37782016-07-21 Pedro Alves <palves@redhat.com>
3779
3780 * windows-nat.c (handle_exception): Remove "th".
3781
e3821cca
PA
37822016-07-21 Pedro Alves <palves@redhat.com>
3783
3784 * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
3785 scope that uses it.
3786
dbaed385
JB
37872016-07-20 John Baldwin <jhb@FreeBSD.org>
3788
3789 * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
3790 events.
3791 (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
3792 defined.
3793 (fbsd_add_vfork_done): Likewise.
3794 (fbsd_is_vfork_done_pending): Likewise.
3795 (fbsd_next_vfork_done): Likewise.
3796 (fbsd_resume): Only ignore pending vfork done events if
3797 "PTRACE_VFORK" is not defined.
3798 (fbsd_wait): Only look for pending vfork done events if
3799 "PTRACE_VFORK" is not defined.
3800 [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
3801 events.
3802 (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
3803 is not defined.
3804
5fa14c6b
JB
38052016-07-20 John Baldwin <jhb@FreeBSD.org>
3806
3807 * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
3808 new child processes.
3809
da95a26c
JB
38102016-07-20 John Baldwin <jhb@FreeBSD.org>
3811
3812 * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
3813 (fbsd_enable_proc_events): New function.
3814 (fbsd_enable_follow_fork): Remove function.
3815 (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
3816 (fbsd_post_attach): Likewise.
3817
bc7b765a
JB
38182016-07-15 John Baldwin <jhb@FreeBSD.org>
3819
3820 * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
3821 (do_gdb_signal_to_host): Likewise.
3822 * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
3823 programs.
3824 * proc-events.c (signal_table): Add entry for SIGLIBRT.
3825
7f131b39
TT
38262016-07-14 Tom Tromey <tom@tromey.com>
3827
3828 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
3829 newline.
3830
78cc6c2d
TT
38312016-07-14 Tom Tromey <tom@tromey.com>
3832
3833 * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
3834 (mips_o32_push_dummy_call): Remove "stack_used_p".
3835 * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
3836 "insn_bit28".
3837 * rust-lang.c (rust_print_type): Remove "len".
3838 * rust-exp.y (super_name): Remove "current_len".
3839 * python/py-framefilter.c (py_print_type): Remove "type".
3840 * mdebugread.c (parse_partial_symbols): Remove
3841 "past_first_source_file".
3842 <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
3843 * m2-valprint.c (m2_print_unbounded_array): Remove
3844 "content_type".
3845 (m2_val_print): Remove "i".
3846 * linespec.c (unexpected_linespec_error): Remove "cleanup".
3847 * f-valprint.c (f_val_print): Remove "i".
3848 * elfread.c (elf_symtab_read): Remove "offset".
3849 * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
3850 * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
3851
ac298888
TT
38522016-07-14 Tom Tromey <tom@tromey.com>
3853
3854 * arch-utils.c (default_skip_permanent_breakpoint): Remove
3855 "bp_insn".
3856 * disasm.c (do_assembly_only): Remove "num_displayed".
3857 * dwarf2read.c (read_abbrev_offset): Remove "length".
3858 (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
3859 "constant".
3860 * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
3861 * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
3862 * tracefile.c (trace_save): Remove "status".
3863
764c99c1
TT
38642016-07-14 Tom Tromey <tom@tromey.com>
3865
3866 * symfile.c (simple_overlay_update_1): Remove initialization
3867 of "size", and commented-out code.
3868 (simple_overlay_update): Likewise.
3869
cecc8b99
TT
38702016-07-14 Tom Tromey <tom@tromey.com>
3871
3872 * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
3873 * tui/tui-io.c (tui_puts): Use getcurx.
3874 (tui_redisplay_readline): Likewise.
3875
821fc4ae
TT
38762016-07-14 Tom Tromey <tom@tromey.com>
3877
3878 * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
3879
537d9b85
TT
38802016-07-14 Tom Tromey <tom@tromey.com>
3881
3882 * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
3883 succeeded.
3884
dac790e1
TT
38852016-07-13 Tom Tromey <tom@tromey.com>
3886
3887 PR python/15620, PR python/18620:
3888 * python/py-evts.c (gdbpy_initialize_py_events): Call
3889 add_new_registry for new events.
3890 * python/py-events.h (events_object) <breakpoint_created,
3891 breakpoint_deleted, breakpoint_modified>: New fields.
3892 * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
3893 breakpoint changed event.
3894 (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
3895 (gdbpy_breakpoint_modified): New function.
3896 (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
3897 observer.
3898
93daf339
TT
38992016-07-13 Tom Tromey <tom@tromey.com>
3900
3901 PR python/17698:
3902 * NEWS: Update.
3903 * python/py-breakpoint.c (bppy_get_pending): New function.
3904 (breakpoint_object_getset): Add entry for "pending".
3905 * breakpoint.h (pending_breakpoint_p): Declare.
3906 * breakpoint.c (pending_breakpoint_p): New function.
3907
43684a7b
TT
39082016-07-13 Tom Tromey <tom@tromey.com>
3909
3910 * python/py-breakpoint.c (bppy_get_visibility)
3911 (gdbpy_breakpoint_created): Use user_breakpoint_p.
3912
6571a381
TT
39132016-07-13 Tom Tromey <tom@tromey.com>
3914
3915 PR cli/18053:
3916 * jit.c (jit_reader_load_command): Use tilde_expand.
3917 (_initialize_jit): Fix help for jit-reader-unload. Set completer
3918 for new commands.
3919
e0f3fd7c
TT
39202016-07-12 Tom Tromey <tom@tromey.com>
3921
3922 PR python/19293:
3923 * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
3924 gdb.invalidate_cached_frames.
3925 * python/lib/gdb/unwinder.py (register_unwinder): Call
3926 gdb.invalidate_cached_frames.
3927 * python/python.c (gdbpy_invalidate_cached_frames): New function.
3928 (python_GdbMethods): Add entry for invalidate_cached_frames.
3929
41c977aa
WT
39302016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
3931
3932 * cp-namespace.c (cp_lookup_bare_symbol): Initialize
3933 lang_this.symbol.
3934
4f19a0e6
WT
39352016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
3936
3937 * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
3938 parameter to look for the symbol "this".
3939
3940
fb36c6bf
JB
39412016-07-06 John Baldwin <jhb@FreeBSD.org>
3942
3943 * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
3944
db297a65
JB
39452016-07-06 John Baldwin <jhb@FreeBSD.org>
3946
3947 * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
3948 left shifts.
3949
9ca10714
JB
39502016-07-06 John Baldwin <jhb@FreeBSD.org>
3951
3952 * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
3953 the MEDIA_FP_REGNUM register.
3954
d66ff635
JB
39552016-07-06 John Baldwin <jhb@FreeBSD.org>
3956
3957 * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
3958 negative size.
3959
ee950322
JB
39602016-07-06 John Baldwin <jhb@FreeBSD.org>
3961
3962 * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
3963
1040b979
YQ
39642016-07-06 Yao Qi <yao.qi@linaro.org>
3965
3966 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
3967 arm_vfp_cprc_sub_candidate for static field.
3968
42d94011
MG
39692016-07-06 Manish Goregaokar <manish@mozilla.com>
3970
2806dc7e 3971 * rust-lang.c (rust_subscript): Allow subscripting pointers.
42d94011 3972
13cdc2af
JK
39732016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3974
3975 * configure: Regenerate.
3976 * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
3977
09c98b44
DB
39782016-07-01 Don Breazeal <donb@codesourcery.com>
3979
3980 * remote.c (remote_get_memory_xfer_limit): New function.
3981 * target-delegates.c: Regenerate.
3982 * target.c (memory_xfer_partial): Call
3983 target_ops.to_get_memory_xfer_limit.
3984 * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
3985 member.
3986
2c5c2a33
JB
39872016-07-01 John Baldwin <jhb@FreeBSD.org>
3988
3989 * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
3990 (struct fbsd_fork_info): ... this.
3991 (struct fbsd_fork_info) <child>: Rename to ...
3992 (struct fbsd_fork_info) <ptid>: ... this.
3993 (fbsd_pending_children): Update type.
3994 (fbsd_remember_child): Update type and field name.
3995 (fbsd_is_child_pending): Likewise.
3996 (fbsd_pending_vfork_done): New variable.
3997 (fbsd_is_vfork_done_pending): New function.
3998 (fbsd_next_vfork_done): New function.
3999 (fbsd_resume): Don't resume processes with a pending vfork done
4000 event.
4001 (fbsd_wait): Report pending vfork done events.
4002 (fbsd_follow_fork): Delay and record a pending vfork done event
4003 for a vfork parent when detaching the child.
4004
8607ea63
JB
40052016-07-01 John Baldwin <jhb@FreeBSD.org>
4006
4007 * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
4008 (resume_one_thread_cb): Move below fork following helper code.
4009 (resume_all_threads_cb): Likewise.
4010 (fbsd_resume): Likewise.
4011
bb2a62e6
JB
40122016-07-01 John Baldwin <jhb@FreeBSD.org>
4013
4014 * fbsd-nat.c (fbsd_follow_fork): Only detach child if
4015 "detach_fork" is true.
4016
5077bfff
JB
40172016-07-01 John Baldwin <jhb@FreeBSD.org>
4018
4019 * x86bsd-nat.c: Include 'gdbthread.h'.
4020 (x86bsd_dr_set): Set debug registers on all threads belonging to
4021 the current inferior.
4022
a3405d12
JB
40232016-07-01 John Baldwin <jhb@FreeBSD.org>
4024
4025 * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
4026 'x86bsd-nat.h'.
4027 * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
4028 'amd64bsd-nat.h'.
4029 (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
4030 (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
4031 with 'x86bsd_xsave_len'.
4032 (amd64bsd_store_inferior_registers): Likewise.
4033 (amd64bsd_target): Inherit from x86bsd_target.
4034 (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
4035 (amd64bsd_dr_set): Likewise.
4036 (amd64bsd_dr_set_control): Likewise.
4037 (amd64bsd_dr_set_addr): Likewise.
4038 (amd64bsd_dr_get_addr): Likewise.
4039 (amd64bsd_dr_get_status): Likewise.
4040 (amd64bsd_dr_get_control): Likewise.
4041 * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
4042 'amd64bsd-nat.h'.
4043 (super_mourn_inferior): Move to x86bsd-nat.c.
4044 (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
4045 (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
4046 'x86bsd_xsave_len'.
4047 (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
4048 mourn_inferior' target op.
4049 * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
4050 * config/i386/fbsd64.mh: Likewise.
4051 * config/i386/nbsd64.mh: Likewise.
4052 * config/i386/nbsdelf.mh: Likewise.
4053 * config/i386/obsd.mh: Likewise.
4054 * config/i386/obsd64.mh: Likewise.
4055 * i386bsd-nat.c: Include 'x86bsd-nat.h'.
4056 (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
4057 (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
4058 with 'x86bsd_xsave_len'.
4059 (i386bsd_store_inferior_registers): Likewise.
4060 (i386bsd_target): Inherit from x86bsd_target.
4061 (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
4062 (i386bsd_dr_set): Likewise.
4063 (i386bsd_dr_set_control): Likewise.
4064 (i386bsd_dr_set_addr): Likewise.
4065 (i386bsd_dr_get_addr): Likewise.
4066 (i386bsd_dr_get_status): Likewise.
4067 (i386bsd_dr_get_control): Likewise.
4068 * i386bsd-nat.h (i386bsd_xsave_len): Remove.
4069 (i386bsd_dr_set_control): Remove.
4070 (i386bsd_dr_set_addr): Remove.
4071 (i386bsd_dr_get_addr): Remove.
4072 (i386bsd_dr_get_status): Remove.
4073 (i386bsd_dr_get_control): Remove.
4074 * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
4075 (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
4076 'x86bsd_xsave_len'.
4077 (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
4078 mourn_inferior' target op.
4079 * x86bsd-nat.c: New file.
4080 * x86bsd-nat.h: New file.
4081
20aa2c60
PA
40822016-07-01 Pedro Alves <palves@redhat.com>
4083 Tom Tromey <tom@tromey.com>
4084
4085 * jit.c (jit_reader_load_command): Call reinit_frame_cache and
4086 jit_inferior_created_hook.
4087 (jit_reader_unload_command): Call reinit_frame_cache and
4088 jit_inferior_exit_hook.
4089 * jit.c (struct jit_unwind_private) <registers>: Delete field.
4090 <regcache>: New field.
4091 (jit_unwind_reg_set_impl): Set the register's value in the
4092 regcache. Free the passed-in gdb_reg_value.
4093 (jit_dealloc_cache): Adjust to free the regcache.
4094 (jit_frame_sniffer): Allocate a regcache instead of an array of
4095 gdb_reg_value pointers.
4096 (jit_frame_this_id): Adjust.
4097 (jit_frame_prev_register): Read raw registers off of the regcache
4098 instead of from the gdb_reg_value pointer array. Use
4099 gdbarch_pseudo_register_read_value to read pseudo registers.
4100 * regcache.c (regcache_raw_set_cached_value): New function,
4101 factored out from ...
4102 (regcache_raw_write): ... here.
4103 * regcache.h (regcache_raw_set_cached_value): Declare.
4104
ced2dffb
PA
41052016-07-01 Pedro Alves <palves@redhat.com>
4106 Antoine Tremblay <antoine.tremblay@ericsson.com>
4107
4108 * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
4109 out from ...
4110 (inf_ptrace_detach): ... here.
4111 * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
4112 * linux-nat.c (get_pending_status): Rename to ...
4113 (get_detach_signal): ... this, and return a host signal instead of
4114 filling in a wait status.
4115 (detach_one_lwp): New function, factored out from detach_callback
4116 and adjusted to handle detaching from a zombie thread.
4117 (detach_callback): Skip the leader thread.
4118 (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
4119 the leader thread, nor build a signal string to pass down.
4120 Instead, use target_announce_detach, detach_one_lwp and
4121 inf_ptrace_detach_success.
4122
63000888
PA
41232016-07-01 Pedro Alves <palves@redhat.com>
4124
4125 * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
4126 locations.
4127 * infcmd.c (detach_command): Call breakpoint_init_inferior.
4128
0f48b757
PA
41292016-07-01 Pedro Alves <palves@redhat.com>
4130
4131 * darwin-nat.c (darwin_detach): Use target_announce_detach.
4132 * inf-ptrace.c (inf_ptrace_detach): Likewise.
4133 * nto-procfs.c (procfs_detach): Likewise.
4134 * remote.c (remote_detach_1): Likewise.
4135 * target.c (target_announce_detach): New function.
4136 * target.h (target_announce_detach): New declaration.
4137
803b47e5
TT
41382016-06-29 Tom Tromey <tom@tromey.com>
4139
4140 PR python/20129:
4141 * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
4142 (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
4143 not "name".
4144
9d78f827
TT
41452016-06-29 Tom Tromey <tom@tromey.com>
4146
4147 PR gdb/17210:
4148 * target.c (free_memory_read_result_vector): Take a pointer to the
4149 VEC as an argument.
4150 (read_memory_robust): Install a cleanup for "result".
4151 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
4152
a405c228
MG
41532016-06-29 Manish Goregaokar <manish@mozilla.com>
4154
9bf74fb2
MG
4155 * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
4156
41572016-06-29 Manish Goregaokar <manish@mozilla.com>
4158
a405c228
MG
4159 * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
4160
2ac09a5b
YQ
41612016-06-28 Yao Qi <yao.qi@linaro.org>
4162
4163 * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
4164 variable new_offset.
4165
921d8f54
MG
41662016-06-27 Manish Goregaokar <manish@mozilla.com>
4167
6763d566 4168 * rust-lang.c (rust_print_type, rust_decorations): Print unit
0b08e1f3
PA
4169 types as "()".
4170 (rust_print_type): Omit return type for functions returning unit.
921d8f54 4171
f4952523
PMR
41722016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
4173
4174 * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
4175 when there is an error during the breakpoint creation.
4176
9e8a8ea8
TT
41772016-06-25 Tom Tromey <tom@tromey.com>
4178
4179 * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
4180 formatting.
4181
b5a4b3c5
MG
41822016-06-25 Manish Goregaokar <manish@mozilla.com>
4183
4184 PR gdb/20239
4185 * rust-lang.c (rust_get_disr_info): Correctly interpret
4186 NonZero-optimized enums of arbitrary depth.
4187 (rust_print_type): Correctly print NonZero-optimized
4188 enums.
4189
6b850546
DT
41902016-06-24 David Taylor <dtaylor@emc.com>
4191
4192 PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
4193 * c-lang.h: Change all parameters, variables, and struct or union
4194 members used as struct or union fie3ld offsets from int to
4195 LONGEST.
4196 * c-valprint.c: Likewise.
4197 * cp-abi.c: Likewise.
4198 * cp-abi.h: Likewise.
4199 * cp-valprint.c: Likewise.
4200 * d-valprint.c: Likewise.
4201 * dwarf2loc.c: Likewise.
4202 * eval.c: Likewise.
4203 * extension-priv.h: Likewise.
4204 * extension.c: Likewise.
4205 * extension.h: Likewise.
4206 * findvar.c: Likewise.
4207 * gdbtypes.h: Likewise.
4208 * gnu-v2-abi.c: Likewise.
4209 * gnu-v3-abi.c: Likewise.
4210 * go-valprint.c: Likewise.
4211 * guile/guile-internal.h: Likewise.
4212 * guile/scm-pretty-print.c: Likewise.
4213 * jv-valprint.c Likewise.
4214 * opencl-lang.c: Likewise.
4215 * p-lang.h: Likewise.
4216 * python/py-prettyprint.c: Likewise.
4217 * python/python-internal.h: Likewise.
4218 * spu-tdep.c: Likewise.
4219 * typeprint.c: Likewise.
4220 * valarith.c: Likewise.
4221 * valops.c: Likewise.
4222 * valprint.c: Likewise.
4223 * valprint.h: Likewise.
4224 * value.c: Likewise.
4225 * value.h: Likewise.
4226 * p-valprint.c: Likewise.
4227 * c-typeprint.c (c_type_print_base): When printing offset, use
4228 plongest, not %d.
4229 * gdbtypes.c (recursive_dump_type): Ditto.
4230
2907f414
DT
42312016-06-24 David Taylor <david.taylor@emc.com>
4232
4233 * MAINTAINERS (Write After Approval): Add David Taylor.
4234
e6cdd38e
JB
42352016-06-24 John Baldwin <jhb@FreeBSD.org>
4236
4237 * configure.ac: Check for support for system call LWP fields on
4238 FreeBSD.
4239 * config.in, configure: Rebuild.
4240 * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
4241 * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
4242 Report system call events.
4243 [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
4244 (fbsd_set_syscall_catchpoint): New function.
4245 (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
4246 Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
4247 * fbsd-tdep.c: Include xml-syscall.h
4248 (fbsd_get_syscall_number): New function.
4249 (fbsd_init_abi): Set XML system call file name.
4250 Add "get_syscall_number" gdbarch method.
4251 * syscalls/freebsd.xml: New file.
4252
82372b2f
JB
42532016-06-24 John Baldwin <jhb@FreeBSD.org>
4254
4255 * fbsd-tdep.c: Include "auxv.h".
4256 (fbsd_print_auxv_entry): New function.
4257 (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
4258
2faa3447
JB
42592016-06-24 John Baldwin <jhb@FreeBSD.org>
4260
4261 * auxv.c (fprint_auxv_entry): New function.
4262 (default_print_auxv_entry): New function.
4263 (fprint_target_auxv): Use gdbarch_print_auxv_entry.
4264 * auxv.h (enum auxv_format): New enum.
4265 (fprint_auxv_entry): Declare.
4266 (default_print_auxv_entry): Declare.
4267 * gdbarch.sh (print_auxv_entry): New.
4268 * gdbarch.c, gdbarch.h: Re-generated.
4269
7697fc9e
JB
42702016-06-24 John Baldwin <jhb@FreeBSD.org>
4271
4272 * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
4273 (fbsd_xfer_partial): New function.
4274 (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
4275 "fbsd_xfer_partial".
4276
8b302db8
TT
42772016-06-23 Tom Tromey <tom@tromey.com>
4278
4279 * symtab.c (symbol_find_demangled_name): Loop over languages and
4280 use language_sniff_from_mangled_name.
4281 * rust-lang.c (rust_sniff_from_mangled_name): New function.
4282 (rust_language_defn): Update.
4283 * p-lang.c (pascal_language_defn): Update.
4284 * opencl-lang.c (opencl_language_defn): Update.
4285 * objc-lang.c (objc_sniff_from_mangled_name): New function.
4286 (objc_language_defn): Update.
4287 * m2-lang.c (m2_language_defn): Update.
4288 * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
4289 field.
4290 (language_sniff_from_mangled_name): Declare.
4291 * language.c (language_sniff_from_mangled_name): New function.
4292 (unknown_language_defn, auto_language_defn, local_language_defn):
4293 Update.
4294 * jv-lang.c (java_sniff_from_mangled_name): New function.
4295 (java_language_defn): Use it.
4296 * go-lang.c (go_sniff_from_mangled_name): New function.
4297 (go_language_defn): Use it.
4298 * f-lang.c (f_language_defn): Update.
4299 * defs.h (enum language): Reorder.
4300 * d-lang.c (d_sniff_from_mangled_name): New function.
4301 (d_language_defn): Use it.
4302 * cp-support.h (gdb_sniff_from_mangled_name): Declare.
4303 * cp-support.c (gdb_sniff_from_mangled_name): New function.
4304 * c-lang.c (c_language_defn, cplus_language_defn)
4305 (asm_language_defn, minimal_language_defn): Update.
4306 * ada-lang.c (ada_sniff_from_mangled_name): New function.
4307 (ada_language_defn): Use it.
4308
56618e20
TT
43092016-06-23 Tom Tromey <tom@tromey.com>
4310
4311 * ada-lang.c (ada_extensions): New array.
4312 (ada_language_defn): Use it.
4313 * c-lang.c (c_extensions): New array.
4314 (c_language_defn): Use it.
4315 (cplus_extensions): New array.
4316 (cplus_language_defn): Use it.
4317 (asm_extensions): New array.
4318 (asm_language_defn): Use it.
4319 (minimal_language_defn): Update.
4320 * d-lang.c (d_extensions): New array.
4321 (d_language_defn): Use it.
4322 * f-lang.c (f_extensions): New array.
4323 (f_language_defn): Use it.
4324 * go-lang.c (go_language_defn): Update.
4325 * jv-lang.c (java_extensions): New array.
4326 (java_language_defn): Use it.
4327 * language.c (add_language): Call add_filename_language.
4328 (unknown_language_defn, auto_language_defn, local_language_defn):
4329 Update.
4330 * language.h (struct language_defn) <la_filename_extensions>: New
4331 field.
4332 * m2-lang.c (m2_language_defn): Update.
4333 * objc-lang.c (objc_extensions): New array.
4334 (objc_language_defn): Use it.
4335 * opencl-lang.c (opencl_language_defn): Update.
4336 * p-lang.c (p_extensions): New array.
4337 (pascal_language_defn): Use it.
4338 * rust-lang.c (rust_extensions): New array.
4339 (rust_language_defn): Use it.
4340 * symfile.c (add_filename_language): No longer static. Make "ext"
4341 const.
4342 (init_filename_language_table): Remove.
4343 (_initialize_symfile): Update.
4344 * symfile.h (add_filename_language): Declare.
4345
3fcf0b0d
TT
43462016-06-23 Tom Tromey <tom@tromey.com>
4347
4348 * symfile.c (filename_language_table): Now a VEC.
4349 (fl_table_size, fl_table_next): Remove.
4350 (add_filename_language): Use VEC_safe_push.
4351 (set_ext_lang_command, info_ext_lang_command)
4352 (deduce_language_from_filename): Use VEC_iterate.
4353 (init_filename_language_table): Use VEC_empty.
4354
0c72ed4c
TT
43552016-06-23 Tom Tromey <tom@tromey.com>
4356
4357 * python/python.c (gdbpy_parameter): Now static.
4358 * python/python-internal.h (gdbpy_parameter): Don't declare.
4359
17621150
TT
43602016-06-23 Tom Tromey <tom@tromey.com>
4361
4362 PR gdb/16483:
4363 * python/lib/gdb/command/frame_filters.py
4364 (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
4365 nothing if no filters found. Return value indicating whether
4366 filters were printed.
4367 (InfoFrameFilter.print_list): Remove.
4368 (InfoFrameFilter.invoke): Print message if no frame filters
4369 found.
4370
04d59df6
WT
43712016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
4372
4373 * f-valprint.c (f_val_print): Add field names for printing
4374 derived types fields.
4375
34a60ddb
AA
43762016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4377
4378 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
4379 in name of last-break regset.
4380
49940788
PA
43812016-06-21 Pedro Alves <palves@redhat.com>
4382
4383 * fork-child.c (fork_inferior): Switch the child to the main UI
4384 right after vfork. Save/restore the current UI in the parent.
4385 Flush outputs of the main UI instead of the current UI.
4386
468afe6c
PA
43872016-06-21 Pedro Alves <palves@redhat.com>
4388
4389 * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
4390 to all UIs.
4391
86f78169
PA
43922016-06-21 Pedro Alves <palves@redhat.com>
4393
4394 * NEWS: Mention support for running interpreters on separate
4395 UIs and the new new-ui command.
4396
60eb5395
PA
43972016-06-21 Pedro Alves <palves@redhat.com>
4398
4399 * interps.c (set_top_level_interpreter): New function, factored
4400 out from captured_main.
4401 (interpreter_completer): Make extern.
4402 * interps.h (set_top_level_interpreter, interpreter_completer):
4403 New declarations.
4404 (captured_main): Use set_top_level_interpreter.
4405 * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
4406 (open_terminal_stream, new_ui_command): New functions.
4407 (init_main): Install the "new-ui" command.
4408
268a799a
PA
44092016-06-21 Pedro Alves <palves@redhat.com>
4410
4411 * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
4412 (read_command_lines): Use input_interactive_p instead of
4413 input_from_terminal_p.
4414 * defs.h (struct ui): Forward declare.
4415 (input_from_terminal_p): Rename to ...
4416 (input_interactive_p): ... this.
4417 * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
4418 to quit_command.
4419 (command_handler): Adjust to per-UI stdin.
4420 (handle_line_of_input): Adjust to per-UI stdin and use
4421 input_interactive_p instead of ISATTY and input_from_terminal_p.
4422 (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
4423 (command_line_handler): Always pass true as "from_tty" parameter
4424 of handle_line_of_input and execute_command.
4425 (async_sigterm_handler): Pass 0 as from_tty argument to
4426 quit_command.
4427 * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
4428 (gdb_has_a_terminal): Don't check interactive_mode here.
4429 (_initialize_inflow): Don't install "set interactive-mode" here.
4430 * main.c (captured_command_loop): Adjust to per-UI stdin.
4431 * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
4432 stdin.
4433 * top.c (new_ui): Save the stdin stream and whether it's a tty.
4434 (dont_repeat): Adjust to per-UI stdin.
4435 (command_line_input): Adjust to per-UI stdin and to use
4436 input_interactive_p.
4437 (quit_force): Write history if any UI supports interactive input.
4438 (interactive_mode, show_interactive_mode): Move here, from
4439 inflow.c.
4440 (input_from_terminal_p): Rename to ...
4441 (input_interactive_p): ... this, and check the "interactive_mode"
4442 global instead of calling gdb_has_a_terminal.
4443 (_initialize_top): Install "set interactive-mode" here.
4444 * top.h (struct ui) <stdin_stream, input_interactive_p>: New
4445 fields.
4446 * utils.c (quit): Pass 0 as from_tty argument to quit_force.
4447 (defaulted_query): Adjust to per-UI stdin and to use
4448 input_interactive_p.
4449
07169ff7
PA
44502016-06-21 Pedro Alves <palves@redhat.com>
4451
4452 * event-top.c (stdin_event_handler): Don't quit gdb if it was a
4453 secondary UI's input stream that closed. Instead, just delete the
4454 UI.
4455
98d9f24e
PA
44562016-06-21 Pedro Alves <palves@redhat.com>
4457
4458 * event-top.c (main_ui_): Delete.
4459 (main_ui, current_ui, ui_list): No longer initialize here.
4460 * main.c (captured_main): UI initialization code factored out to
4461 new new_ui function.
4462 (gdb_main): Wrap captured_main with TRY/CATCH instead of
4463 catch_errors.
4464 * top.c (highest_ui_num): New global.
4465 (new_ui): New function.
4466 * top.h (struct ui) <num>: New field.
4467 (new_ui): New declaration.
4468
eaae60fd
PA
44692016-06-21 Pedro Alves <palves@redhat.com>
4470
4471 * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
4472 nothing to print. Use should_print_stop_to_console.
4473 * tui/tui-interp.c (tui_on_normal_stop): Likewise.
4474
8980e177
PA
44752016-06-21 Pedro Alves <palves@redhat.com>
4476
4477 * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
4478 (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
4479 thread parameter.
4480 (until_break_command): Pass command interpreter to thread fsm
4481 ctor.
4482 * cli/cli-interp.c (should_print_stop_to_console): Adjust.
4483 * gdbthread.h (struct thread_control_state) <command_interp>:
4484 Delete field.
4485 * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
4486 Pass it down.
4487 (call_thread_fsm_should_stop): Add thread parameter.
4488 (call_function_by_hand_dummy): Pass command interpreter to thread
4489 fsm ctor. Pass thread pointer to fsm clean up method.
4490 * infcmd.c: Include interps.h.
4491 (struct step_command_fsm) <thread>: Delete field.
4492 (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
4493 (step_command_fsm_prepare): Remove references to fsm's thread
4494 field.
4495 (step_1): Pass command interpreter to thread
4496 fsm ctor. Pass thread pointer to fsm clean up method.
4497 (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
4498 thread parameter and use it.
4499 (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
4500 (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
4501 parameter and use it.
4502 (until_next_command): Pass command interpreter to thread fsm ctor.
4503 (struct finish_command_fsm) <thread>: Delete field.
4504 (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
4505 (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
4506 down. Remove thread parameter and adjust.
4507 (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
4508 thread parameter and use it.
4509 (finish_command): Pass command interpreter to thread fsm ctor.
4510 Don't pass thread.
4511 * infrun.c (follow_fork): Move thread fsm to child fork instead of
4512 command interpreter, only.
4513 (clear_proceed_status_thread): Remove reference to command_interp.
4514 (proceed): Don't record the thread's command interpreter.
4515 (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
4516 method.
4517 (fetch_inferior_event): Pass thread to fsm should_stop method.
4518 * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
4519 Store it.
4520 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
4521 parameter and pass it down.
4522 * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
4523 (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
4524 parameter.
4525 (thread_fsm_ctor): Add 'cmd_interp' parameter.
4526 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
4527 parameter.
4528 * thread.c (thread_cancel_execution_command): Pass thread to
4529 thread fsm clean_up method.
4530
26cde2cc
PA
45312016-06-21 Pedro Alves <palves@redhat.com>
4532
4533 * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
4534 (should_print_stop_to_console): New function, factored out from
4535 mi_on_normal_stop_1.
4536 * cli/cli-interp.h (should_print_stop_to_console): Declare.
4537 * mi/mi-interp.c (mi_on_normal_stop_1): Use
4538 should_print_stop_to_console. Pass it the current UI's console
4539 interpreter.
4540 * mi/mi-main.c (captured_mi_execute_command): Use the
4541 INTERP_CONSOLE symbol rather than explicit "console".
4542
a8836c93
PA
45432016-06-21 Pedro Alves <palves@redhat.com>
4544
4545 * infcmd.c (prepare_execution_command): Use
4546 all_uis_on_sync_execution_starting.
4547 * infrun.c (all_uis_on_sync_execution_starting): New function.
4548 * infrun.h (all_uis_on_sync_execution_starting): Declare.
4549
3b12939d
PA
45502016-06-21 Pedro Alves <palves@redhat.com>
4551
4552 * annotate.c: Include top.h.
4553 (async_background_execution_p): Delete.
4554 (print_value_flags): Check the UI's prompt state rather then
4555 async_background_execution_p.
4556 * event-loop.c (start_event_loop): Set the prompt state to
4557 PROMPT_NEEDED.
4558 * event-top.c (display_gdb_prompt, async_enable_stdin)
4559 (async_disable_stdin): Check the current UI's prompt state instead
4560 of the sync_execution global.
4561 (command_line_handler): Set the prompt state to PROMPT_NEEDED
4562 before running a command, and display the prompt if still needed
4563 afterwards.
4564 * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
4565 (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
4566 (call_thread_fsm_should_stop): Set the prompt state to
4567 PROMPT_NEEDED.
4568 (run_inferior_call): Adjust to temporarily set the prompt state to
4569 PROMPT_BLOCKED instead of using the sync_execution global.
4570 (call_function_by_hand_dummy): Pass the current UI to
4571 new_call_thread_fsm.
4572 * infcmd.c: Include top.h.
4573 (continue_1): Check the current UI's prompt state instead of the
4574 sync_execution global.
4575 (continue_command): Validate global execution state before calling
4576 prepare_execution_command.
4577 (step_1): Call all_uis_check_sync_execution_done.
4578 (attach_post_wait): Don't call async_enable_stdin here. Remove
4579 reference to sync_execution.
4580 * infrun.c (sync_execution): Delete global.
4581 (follow_fork_inferior)
4582 (reinstall_readline_callback_handler_cleanup): Check the current
4583 UI's prompt state instead of the sync_execution global.
4584 (check_curr_ui_sync_execution_done)
4585 (all_uis_check_sync_execution_done): New functions.
4586 (fetch_inferior_event): Call all_uis_check_sync_execution_done
4587 instead of trying to determine whether the global sync execution
4588 changed.
4589 (handle_no_resumed): Check the prompt state of all UIs.
4590 (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
4591 UIs. Emit the "Switching to" notification to all UIs. Enable
4592 stdin in all UIs.
4593 * infrun.h (sync_execution): Delete.
4594 (all_uis_check_sync_execution_done): Declare.
4595 * main.c (captured_command_loop): Don't call
4596 interp_pre_command_loop if the prompt is blocked.
4597 (catch_command_errors, catch_command_errors_const): Adjust.
4598 (captured_main): Set the initial prompt state to PROMPT_NEEDED.
4599 * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
4600 PROMPTED.
4601 (mi_interpreter_resume): Don't clear sync_execution. Remove hack
4602 comment.
4603 (mi_execute_command_input_handler): Set the prompt state to
4604 PROMPT_NEEDED before executing the command, and only display the
4605 prompt if the prompt state is PROMPT_NEEDED afterwards.
4606 (mi_on_resume_1): Adjust to check the prompt state.
4607 * target.c (target_terminal_inferior): Adjust to check the prompt
4608 state.
4609 * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
4610 (execute_command): Check the current UI's prompt state instead of
4611 sync_execution.
4612 * top.h (enum prompt_state): New.
4613 (struct ui) <prompt_state>: New field.
4614 (ALL_UIS): New macro.
4615
dbf30ca3
PA
46162016-06-21 Pedro Alves <palves@redhat.com>
4617
4618 * top.c (gdb_secondary_prompt_depth): Delete.
4619 (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
4620 (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
4621 per-UI gdb_secondary_prompt_depth.
4622 * top.h (struct ui) <secondary_prompt_depth>: New field.
4623
b2d86570
PA
46242016-06-21 Pedro Alves <palves@redhat.com>
4625
4626 * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
4627 function.
4628 (cli_interp_procs): Install it instead of cli_command_loop.
4629 * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
4630 * event-top.c (cli_command_loop): Delete.
4631 * interps.c (interp_new): Remove reference to command_loop_proc.
4632 (current_interp_command_loop): Delete.
4633 (interp_pre_command_loop): New function.
4634 (interp_command_loop_ftype): Delete.
4635 * interps.h (interp_pre_command_loop_ftype): New typedef.
4636 (struct interp_procs) <command_loop_proc>: Delele field.
4637 <pre_command_loop_proc>: New field.
4638 (current_interp_command_loop): Delete declaration.
4639 (interp_pre_command_loop): New declaration.
4640 * main.c (captured_command_loop): Call interp_pre_command_loop
4641 instead of current_interp_command_loop and start an event loop.
4642 * mi/mi-interp.c (mi_command_loop): Delete.
4643 (mi_interpreter_pre_command_loop): New.
4644 (mi_interp_procs): Update.
4645 * tui/tui-interp.c (tui_interp_procs): Install
4646 cli_interpreter_pre_command_loop instead of cli_command_loop.
4647
9204d692
PA
46482016-06-21 Pedro Alves <palves@redhat.com>
4649
4650 * interps.c (current_interpreter): New function.
4651 * interps.h (current_interpreter): New declaration.
4652 * mi/mi-cmds.h (raw_stdout): Delete declaration.
4653 * mi/mi-common.h (struct mi_interp) <raw_stdout,
4654 saved_raw_stdout>: New field.
4655 * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
4656 to per-UI raw_stdout.
4657 (mi_interpreter_init): Adjust to per-UI raw_stdout.
4658 (mi_on_sync_execution_done, mi_execute_command_input_handler)
4659 (mi_command_loop): Pass MI instance to display_mi_prompt.
4660 (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
4661 (mi_on_resume): Adjust to per-UI raw_stdout.
4662 (saved_raw_stdout): Delete.
4663 (mi_set_logging): Adjust to per-UI raw_stdout and
4664 saved_raw_stdout.
4665 * mi/mi-main.c (raw_stdout): Delete.
4666 (mi_cmd_gdb_exit, captured_mi_execute_command)
4667 (mi_print_exception, mi_load_progress): Adjust to per-UI
4668 raw_stdout.
4669 (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
4670 Pass it along.
4671 (print_diff): New ui_file parameter. Send output there instead of
4672 raw_stdout.
4673 * mi/mi-main.h (struct ui_file): Forward declare.
4674 (mi_print_timing_maybe): Add ui_file parameter.
4675
05beb275
PA
46762016-06-21 Pedro Alves <palves@redhat.com>
4677
4678 * mi/mi-interp.c (display_mi_prompt): New function.
4679
215d3118
PA
46802016-06-21 Pedro Alves <palves@redhat.com>
4681
4682 * target.c (target_terminal_inferior): Bail out after
4683 unregistering input_fd if not on the main UI.
4684 (target_terminal_ours): Bail out after registering input_fd if not
4685 on the main UI.
4686 (target_terminal_ours_for_output): Bail out if not on the main UI.
4687
c61db772
PA
46882016-06-21 Pedro Alves <palves@redhat.com>
4689
4690 * event-top.c (restore_ui_cleanup): Make extern.
4691 * infrun.c (fetch_inferior_event): Always switch to the main UI.
4692 * top.h (restore_ui_cleanup): Declare.
4693
3c216924
PA
46942016-06-21 Pedro Alves <palves@redhat.com>
4695
4696 PR mi/20034
4697 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
4698 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
4699 UI's input_handler here.
4700 (cli_interpreter_supports_command_editing): New function.
4701 (cli_interp_procs): Install it.
4702 * cli/cli-interp.h: New file.
4703 * event-top.c (async_command_editing_p): Rename to ...
4704 (set_editing_cmd_var): ... this.
4705 (change_line_handler): Add parameter 'editing', and use it. Bail
4706 early if the interpreter doesn't support editing. Don't touch
4707 readline state if editing is off.
4708 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
4709 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
4710 main UI.
4711 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
4712 not using readline. Check whether the current UI is using command
4713 editing instead of checking the async_command_editing_p global.
4714 (set_async_editing_command): Delete.
4715 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
4716 on the main UI. Don't touch readline state if editing is off.
4717 (gdb_disable_readline): Don't touch readline state if editing is
4718 off.
4719 * event-top.h (gdb_setup_readline): Add 'int' parameter.
4720 (set_async_editing_command): Delete declaration.
4721 (change_line_handler, command_line_handler): Declare.
4722 (async_command_editing_p): Rename to ...
4723 (set_editing_cmd_var): ... this.
4724 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
4725 whether the current UI has editing enabled rather than checking
4726 the async_command_editing_p global.
4727 * interps.c (interp_supports_command_editing): New function.
4728 * interps.h (interp_supports_command_editing_ftype): New typedef.
4729 (struct interp_procs) <supports_command_editing_proc>: New field.
4730 (interp_supports_command_editing): Declare.
4731 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
4732 gdb_setup_readline. Don't clear the async_command_editing_p
4733 global. Update comments.
4734 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
4735 whether the current UI has editing enabled rather than checking
4736 the async_command_editing_p global. Don't touch readline state if
4737 editing is off.
4738 (undo_terminal_modifications_before_exit): Switch to the main UI.
4739 Unconditionally call gdb_disable_readline.
4740 (set_editing): New function.
4741 (show_async_command_editing_p): Rename to ...
4742 (show_editing): ... this. Show the state of the current UI.
4743 (_initialize_top): Adjust.
4744 * top.h (struct ui) <command_editing>: New field.
4745 * tui/tui-interp.c: Include cli/cli-interp.h.
4746 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
4747 input_handler.
4748 (tui_interp_procs): Install
4749 cli_interpreter_supports_command_editing.
4750 * tui/tui-io.c (tui_getc): Check whether the current UI has
4751 editing enabled rather than checking the async_command_editing_p
4752 global.
4753
b6dcde57
PA
47542016-06-21 Pedro Alves <palves@redhat.com>
4755
4756 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
4757 * top.h (struct ui) <m_current_uiout>: New field.
4758 * ui-out.c (current_uiout): Delete.
4759 * ui-out.h (current_uiout): Delete.
4760 (current_ui_current_uiout_ptr): New declaration.
4761 (current_uiout): Reimplement as wrapper around
4762 current_ui_current_uiout_ptr.
4763
23ff98d2
PA
47642016-06-21 Pedro Alves <palves@redhat.com>
4765
4766 * ui-out.c (default_ui_out_impl): Delete.
4767 (def_uiout): Delete.
4768 (current_uiout): Set to NULL.
4769 (default_table_begin, default_table_body, default_table_end)
4770 (default_table_header, default_begin, default_end)
4771 (default_field_int, default_field_skip, default_field_string)
4772 (default_field_fmt, default_spaces, default_text, default_message)
4773 (default_wrap_hint, default_flush, default_data_destroy): Delete.
4774
694ec099
PA
47752016-06-21 Pedro Alves <palves@redhat.com>
4776
4777 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
4778 errstream to stdout_fileopen and stderr_fileopen.
4779 * exceptions.c: Include top.h.
4780 (print_flush): Open the current UI's outstream file descriptor,
4781 instead of hardcoding file descriptor 1.
4782 * main.c (captured_main): Save the main UI's out and error
4783 streams. Adjust stderr_fileopen call.
4784 * top.h (struct ui) <outstream, errstream>: New fields.
4785 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
4786 instead of stderr.
4787 * ui-file.h (stderr_fileopen): Add stream parameter and update
4788 comment.
4789
41fd2b0f
PA
47902016-06-21 Pedro Alves <palves@redhat.com>
4791
4792 * event-top.c (input_fd): Delete.
4793 (stdin_event_handler): Switch to the UI whose input descriptor got
4794 the event. Adjust to per-UI input_fd.
4795 (gdb_setup_readline): Don't set the input_fd global. Adjust to
4796 per-UI input_fd.
4797 (gdb_disable_readline): Adjust to per-UI input_fd.
4798 * event-top.h (input_fd): Delete declaration.
4799 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
4800 from the event-loop here.
4801 (linux_nat_terminal_ours): Don't register input_fd in the
4802 event-loop here.
4803 * main.c (captured_main): Adjust to per-UI input_fd.
4804 * remote.c (remote_terminal_inferior): Don't remove input_fd from
4805 the event-loop here.
4806 (remote_terminal_ours): Don't register input_fd in the event-loop
4807 here.
4808 * target.c: Include top.h and event-top.h.
4809 (target_terminal_inferior): Remove input_fd from the event-loop
4810 here.
4811 (target_terminal_ours): Register input_fd in the event-loop.
4812 * top.h (struct ui) <input_fd>: New field.
4813
f38d3ad1
PA
48142016-06-21 Pedro Alves <palves@redhat.com>
4815
4816 * cli/cli-script.c (execute_user_command, read_next_line)
4817 (read_next_line): Adjust to per-UI instream.
4818 * event-top.c (stdin_event_handler, command_handler)
4819 (handle_line_of_input, command_line_handler)
4820 (gdb_readline_no_editing_callback, async_sigterm_handler)
4821 (gdb_setup_readline): Likewise.
4822 * inflow.c: Include top.h.
4823 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
4824 (gdb_save_tty_state, child_terminal_inferior)
4825 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
4826 (initialize_stdin_serial): Adjust to per-UI instream.
4827 * main.c (captured_command_loop, captured_main): Adjust to per-UI
4828 instream.
4829 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
4830 * python/python.c (python_interactive_command): Likewise.
4831 * terminal.h (struct ui): Forward declare.
4832 (initialize_stdin_serial): Add struct ui parameter.
4833 * top.c (instream): Delete.
4834 (do_restore_instream_cleanup, read_command_file, dont_repeat)
4835 (gdb_readline_no_editing, command_line_input)
4836 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
4837 * top.h (struct ui) <instream>: New field.
4838 (instream): Delete declaration.
4839 (quit): Adjust to per-UI instream.
4840
48412016-06-21 Pedro Alves <palves@redhat.com>
4842
4843 * event-loop.c: Include top.h.
4844 (invoke_async_signal_handlers): Switch to the main UI.
4845 * event-top.c (main_ui_): Update comment.
4846 (main_ui): New global.
4847 * top.h (main_ui): Declare.
4848
73ab01a0
PA
48492016-06-21 Pedro Alves <palves@redhat.com>
4850
4851 * cli/cli-interp.c (cli_interp): Delete.
4852 (as_cli_interp): New function.
4853 (cli_on_normal_stop, cli_on_signal_received)
4854 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
4855 (cli_on_no_history): Send output to all CLI UIs.
4856 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
4857 the top level interpreter is not a CLI.
4858 (cli_interpreter_init): Don't set cli_interp or install observers
4859 here.
4860 (_initialize_cli_interp): Install observers here.
4861 * event-top.c (main_ui_, ui_list): New globals.
4862 (current_ui): Point to main_ui_.
4863 (restore_ui_cleanup, switch_thru_all_uis_init)
4864 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
4865 functions.
4866 * mi/mi-interp.c (as_mi_interp): New function.
4867 (mi_interpreter_init): Don't install observers here.
4868 (mi_on_sync_execution_done): Skip output if the top level
4869 interpreter is not a MI.
4870 (mi_new_thread, mi_thread_exit, mi_record_changed)
4871 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
4872 (mi_inferior_removed): Send output to all MI UIs.
4873 (find_mi_interpreter, mi_interp_data): Delete.
4874 (find_mi_interp): New function.
4875 (mi_on_signal_received, mi_on_end_stepping_range)
4876 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
4877 to all MI UIs.
4878 (mi_on_normal_stop): Rename to ...
4879 (mi_on_normal_stop_1): ... this.
4880 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
4881 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
4882 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
4883 (mi_breakpoint_modified, mi_output_running_pid): Send output to
4884 all MI UIs.
4885 (mi_on_resume): Rename to ...
4886 (mi_on_resume_1): ... this. Don't handle infcalls here.
4887 (mi_on_resume): Reimplement, sending output to all MI UIs.
4888 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
4889 (mi_memory_changed): Send output to all MI UIs.
4890 (report_initial_inferior): Install observers here.
4891 * top.h (struct ui) <next>: New field.
4892 (ui_list): Declare.
4893 (struct switch_thru_all_uis): New.
4894 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
4895 (switch_thru_all_uis_next): Declare.
4896 (SWITCH_THRU_ALL_UIS): New macro.
4897 * tui/tui-interp.c (tui_interp): Delete global.
4898 (as_tui_interp): New function.
4899 (tui_on_normal_stop, tui_on_signal_received)
4900 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
4901 (tui_on_no_history): Send output to all TUI UIs.
4902 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
4903 the top level interpreter is not a TUI.
4904 (tui_init): Don't set tui_interp or install observers here.
4905 (_initialize_tui_interp): Install observers here.
4906
8322445e
PA
49072016-06-21 Pedro Alves <palves@redhat.com>
4908
4909 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
4910 (struct cli_interp): ... this new structure.
4911 (cli_on_normal_stop, cli_on_signal_received)
4912 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
4913 (cli_on_no_history): Use interp_ui_out.
4914 (cli_interpreter_init): If top level, set the cli_interp global.
4915 (cli_interpreter_init): Return the interp's data instead of NULL.
4916 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
4917 to cli_uiout being in the interpreter's data.
4918 (cli_interp_procs): New, factored out from _initialize_cli_interp.
4919 (cli_interp_factory): New function.
4920 (_initialize_cli_interp): Call interp_factory_register.
4921 * interps.c (get_interp_info): New, factored out from ...
4922 (get_current_interp_info): ... this.
4923 (interp_new): Add parameter 'data'. Store it.
4924 (struct interp_factory): New function.
4925 (interp_factory_p): New typedef. Define a VEC_P.
4926 (interpreter_factories): New global.
4927 (interp_factory_register): New function.
4928 (interp_add): Add 'ui' parameter. Use get_interp_info and
4929 interp_lookup_existing.
4930 (interp_lookup): Rename to ...
4931 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
4932 check for NULL or empty name here.
4933 (interp_lookup): Add 'ui' parameter and reimplement.
4934 (interp_set_temp, interpreter_exec_cmd): Adjust.
4935 (interpreter_completer): Complete on registered interpreter
4936 factories instead of interpreters.
4937 * interps.h (interp_factory_func): New typedef.
4938 (interp_factory_register): Declare.
4939 (interp_new, interp_add): Adjust.
4940 (interp_lookup): Declare.
4941 * main.c (captured_main): Adjust.
4942 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
4943 (mi_interp_procs): New, factored out from
4944 _initialize_mi_interp.
4945 (mi_interp_factory): New function.
4946 * python/python.c (execute_gdb_command): Adjust.
4947 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
4948 global.
4949 (tui_interp_procs): New.
4950 (tui_interp_factory): New function.
4951 (_initialize_tui_interp): Call interp_factory_register.
4952
cb814510
PA
49532016-06-21 Pedro Alves <palves@redhat.com>
4954
4955 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
4956 async field instead of the interpreter_async global.
4957 * cli/cli-script.c (execute_user_command, while_command)
4958 (if_command, script_from_file): Likewise.
4959 * compile/compile.c: Include top.h instead of interps.h.
4960 (compile_file_command, compile_code_command)
4961 (compile_print_command): Access the current UI's async field
4962 instead of the interpreter_async global.
4963 * guile/guile.c: Include top.h instead of interps.h.
4964 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
4965 Access the current UI's async field instead of the
4966 interpreter_async global.
4967 * guile/scm-ports.c: Include top.h instead of interps.h.
4968 (ioscm_with_output_to_port_worker): Access the current UI's async
4969 field instead of the interpreter_async global.
4970 * inf-loop.c (inferior_event_handler): Likewise.
4971 * infcall.c (run_inferior_call): Likewise.
4972 * infrun.c (reinstall_readline_callback_handler_cleanup)
4973 (fetch_inferior_event): Likewise.
4974 * interps.c (interpreter_async): Delete.
4975 (struct ui_interp_info): New.
4976 (get_current_interp_info): New function.
4977 (interp_list, current_interpreter, top_level_interpreter_ptr):
4978 Delete.
4979 (interp_add, interp_set, interp_lookup, interp_ui_out)
4980 (current_interp_set_logging, interp_set_temp)
4981 (current_interp_named_p): Adjust to per-UI interpreters.
4982 (command_interpreter): Delete.
4983 (command_interp, current_interp_command_loop, interp_quiet_p)
4984 (interp_exec, interpreter_exec_cmd, interpreter_completer)
4985 (top_level_interpreter, top_level_interpreter_data): Adjust to
4986 per-UI interpreters.
4987 * interps.h (interpreter_async): Delete.
4988 * main.c (captured_command_loop): Access the current UI's async
4989 field instead of the interpreter_async global.
4990 * python/python.c (python_interactive_command, python_command)
4991 (execute_gdb_command): Likewise.
4992 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
4993 Access the current UI's async field instead of the
4994 interpreter_async global.
4995 * top.h (struct tl_interp_info): Forward declare.
4996 (struct ui) <interp_info, async>: New fields.
4997
79aa2fe8
PA
49982016-06-21 Pedro Alves <palves@redhat.com>
4999
5000 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
5001 globals.
5002 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
5003 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
5004 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
5005 m_gdb_stdlog>: New fields.
5006 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
5007 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
5008 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
5009 macros.
5010
a74e1786
PA
50112016-06-21 Pedro Alves <palves@redhat.com>
5012
5013 * event-top.c: Update readline-related comments.
5014 (input_handler, call_readline): Delete globals.
5015 (gdb_rl_callback_handler): Call the current UI's input_handler
5016 method.
5017 (change_line_handler): Adjust to set current UI's properties
5018 instead of globals.
5019 (current_ui_, current_ui): New globals.
5020 (get_command_line_buffer): Rewrite to refer to the current UI.
5021 (stdin_event_handler): Adjust to call the call_readline method of
5022 the current UI.
5023 (gdb_readline_no_editing_callback): Adjust to call the current UI's
5024 input_handler method.
5025 (gdb_setup_readline): Adjust to set current UI's properties
5026 instead of globals.
5027 * event-top.h (call_readline, input_handler): Delete declarations.
5028 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
5029 UI's properties instead of globals.
5030 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
5031 properties instead of globals.
5032 (gdb_readline_wrapper): Adjust to call and set current UI's
5033 methods instead of globals.
5034 * top.h: Include buffer.h and event-loop.h.
5035 (struct ui): New struct.
5036 (current_ui): New declaration.
5037
45db7c09
PA
50382016-06-21 Pedro Alves <palves@redhat.com>
5039
5040 * ada-lang.c (ada_exception_name_addr_1): Add comment.
5041 (print_it_exception): Select the current frame.
5042
a28d8e50
YTL
50432016-06-17 Yan-Ting Lin <currygt52@gmail.com>
5044
5045 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
5046 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
5047 (ALLDEPFILES): Add nds32-tdep.c.
5048 * NEWS: Mention new NDS32 port.
5049 * configure.tgt: Add NDS32.
5050 * nds32-tdep.c: New file.
5051 * nds32-tdep.h: New file.
5052 * features/Makefile (XMLTOC): Add nds32.xml.
5053 * features/nds32-core.xml: New file.
5054 * features/nds32-fpu.xml: New file.
5055 * features/nds32-system.xml: New file.
5056 * features/nds32.c: New file (generated).
5057 * features/nds32.xml: New file.
5058
4bf5402d
JB
50592016-06-14 John Baldwin <jhb@FreeBSD.org>
5060
5061 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
5062
683cd65e
JB
50632016-06-14 John Baldwin <jhb@FreeBSD.org>
5064
5065 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
5066
bec734b2
JB
50672016-06-14 John Baldwin <jhb@FreeBSD.org>
5068
5069 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
5070
e46dd0f4
NC
50712016-06-13 Nick Clifton <nickc@redhat.com>
5072
5073 * gdbtypes.c (replace_type): Fix assertion.
5074
695bfa52
TT
50752016-06-10 Tom Tromey <tom@tromey.com>
5076
5077 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
5078 (arch_boolean_type, arch_float_type, arch_complex_type)
5079 (arch_flags_type, append_flags_type_field)
5080 (append_flags_type_flag, arch_composite_type)
5081 (append_composite_type_field_raw)
5082 (append_composite_type_field_aligned)
5083 (append_composite_type_field): Make "name" parameter const.
5084 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
5085 (arch_boolean_type, arch_float_type, arch_complex_type)
5086 (append_composite_type_field, append_composite_type_field_aligned)
5087 (append_composite_type_field_raw, arch_flags_type)
5088 (append_flags_type_field, append_flags_type_flag): Constify.
5089
347dc102
TT
50902016-06-10 Tom Tromey <tom@tromey.com>
5091
5092 PR rust/20110:
5093 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
5094
edef7b8c
TT
50952016-06-10 Tom Tromey <tom@tromey.com>
5096
5097 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
5098 (YYFILES): Add rust-exp.c.
5099 (YYOBJ): Add rust-exp.o.
5100 (local-maintainer-clean): Remove rust-exp.c.
5101
bb556f1f
TK
51022016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
5103
5104 * NEWS: Mention that GDB now supports a negative repeat count in
5105 the 'x' command.
5106 * printcmd.c (decode_format): Allow '-' in the parameter
5107 "string_ptr" to accept a negative repeat count.
5108 (find_instruction_backward): New function.
5109 (read_memory_backward): New function.
5110 (integer_is_zero): New function.
5111 (find_string_backward): New function.
5112 (do_examine): Use new functions to examine memory backward.
5113 (_initialize_printcmd): Mention that 'x' command supports a negative
5114 repeat count.
5115
c040f3fb
TK
51162016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
5117
5118 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
5119
4dee3531
TT
51202016-06-09 Tom Tromey <tom@tromey.com>
5121
5122 PR python/19819:
5123 * python/py-xmethods.c (invoke_method_name)
5124 (py_get_result_type_method_name, py_invoke_method_name): Remove.
5125 (gdbpy_initialize_xmethods): Don't initialize
5126 py_invoke_method_name, py_get_result_type_method_name.
5127
1aec0b6a
SM
51282016-06-07 Simon Marchi <simon.marchi@ericsson.com>
5129
5130 * mi/mi-interp.c (mi_record_changed): Add missing braces.
5131
2091da29
BH
51322016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
5133
5134 * findvar.c (follow_static_link): Check for valid pointer.
5135
38b022b4
SM
51362016-06-06 Simon Marchi <simon.marchi@ericsson.com>
5137
5138 * NEWS: Mention the new fields in =record-started.
5139 * common/btrace-common.h (btrace_format_short_string): New function
5140 declaration.
5141 * common/btrace-common.c (btrace_format_short_string): New
5142 function.
5143 * mi/mi-interp.c (mi_record_changed): Output method and format
5144 fields in the =record-started record.
5145 * record-btrace.c (record_btrace_open): Adapt record_changed
5146 notification.
5147 * record-full.c (record_full_open): Likewise.
5148 * record.c (cmd_record_stop): Likewise.
5149
0ae534d2
JT
51502016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5151
5152 * windows-nat.c (handle_output_debug_string): Return type of
5153 gdb_signal_from_host() is gdb_signal, not an int.
5154 (windows_get_exec_module_filename): Add pointer casts for C++.
5155
1b40ec05
TT
51562016-06-02 Tom Tromey <tom@tromey.com>
5157
5158 PR python/18984:
5159 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
5160
bb7c96de
PA
51612016-06-01 Pedro Alves <palves@redhat.com>
5162
5163 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
5164 (remote_fio_osa)
5165 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
5166 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
5167 Delete.
5168 (remote_fileio_o_quit_handler): New global.
5169 (remote_fileio_quit_handler): New function.
5170 (remote_fileio_reply): Check the quit flag instead of the custom
5171 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
5172 of changing the SIGINT handler.
5173 (do_remote_fileio_request): Override the quit handler instead of
5174 changing the SIGINT handler.
5175
51403f74
NC
51762016-06-01 Nick Clifton <nickc@redhat.com>
5177
5178 * common/common-utils.c (xmalloc_failed): New function. Provided
5179 so that the version in libiberty is not linked in.
5180
e3b5daf9
MM
51812016-06-01 Markus Metzger <markus.t.metzger@intel.com>
5182
5183 * infcmd.c (skip_finish_frames): New.
5184 (finish_command): Call skip_finish_frames.
5185
03d73f1f
YQ
51862016-06-01 Yao Qi <yao.qi@linaro.org>
5187
5188 PR remote/19998
5189 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
5190 quit_serial_event_set.
5191
c799dec7
JB
51922016-06-01 Joel Brobecker <brobecker@adacore.com>
5193
5194 GDB 7.11.1 released.
5195
3326303b
MG
51962016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
5197
5198 PR c++/19893
5199 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
5200 fetch_const_value_from_synthetic_pointer): New functions.
5201 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
5202 (pieced_value_funcs): Implement coerce_ref.
5203 * valops.c (value_addr): Call coerce_ref for synthetic references.
5204 * valprint.c (valprint_check_validity): Return true for synthetic
5205 references. Also, don't show "<synthetic pointer>" if they reference
5206 addressable values.
5207 (generic_val_print_ref): Handle synthetic references. Also move some
5208 code to print_ref_address.
5209 (print_ref_address, get_value_addr_contents): New functions.
5210
e385593e
JK
52112016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5212
5213 PR c++/15231
5214 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
5215 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
5216 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
5217 (read_call_site_scope): Adjust callers.
5218 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
5219 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
5220
3a2b436a
JK
52212016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5222
5223 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
5224 * dwarf2read.c (enum pc_bounds_kind) New.
5225 (dwarf2_get_pc_bounds): Use it in the declaration.
5226 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
5227 to cu_bounds_kind.
5228 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
5229 Adjust callers.
5230 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
5231 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
5232
aab3c527
JK
52332016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5234
5235 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
5236 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
5237 deleted.
5238
c64e0f61
JK
52392016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5240
5241 * NEWS (N stop reply): Remove empty line.
5242
1a72702b
AM
52432016-05-28 Alan Modra <amodra@gmail.com>
5244
5245 * compile/compile-object-load.c (link_callbacks_multiple_definition,
5246 link_callbacks_warning, link_callbacks_undefined_symbol,
5247 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
5248 link_callbacks_reloc_dangerous,
5249 link_callbacks_unattached_reloc): Return void.
5250
51415b9f
AB
52512016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
5252
5253 * opencl-lang.c (evaluate_subexp_opencl): If
5254 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
5255 the returned value in the STRUCTOP_STRUCT case.
5256
ac775bf4
AB
52572016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
5258
5259 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
5260 mode, forward the VALUE_LVAL attribute to the returned value in
5261 the STRUCTOP_PTR case.
5262
7bd787e8
TT
52632016-05-25 Tom Tromey <tom@tromey.com>
5264
5265 * python/py-value.c (value_object_as_number): Use correct spelling
5266 of HAVE_LIBPYTHON2_4.
5267
2bbad2ea
BH
52682016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
5269
5270 * f-typeprint.c (f_type_print_base): Replace 0 by show.
5271
e188eb36
BH
52722016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
5273
5274 * f-typeprint.c (f_type_print_base): Decrease show by one.
5275
9b2db1fd
BH
52762016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
5277
5278 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
5279
72b17055
BH
52802016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
5281
5282 * f-typeprint.c (f_type_print_base): Take print level into account.
5283
ddae9462
TT
52842016-05-24 Tom Tromey <tom@tromey.com>
5285
5286 PR python/17386:
5287 * python/py-value.c (value_object_as_number): Add
5288 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
5289
e2b7f516
TT
52902016-05-24 Tom Tromey <tom@tromey.com>
5291
5292 * python/py-value.c (value_object_as_number): Add
5293 nb_inplace_divide for Python 2.
5294
1957f6b8
TT
52952016-05-23 Tom Tromey <tom@tromey.com>
5296
5297 PR python/17981:
5298 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
5299 when there are no breakpoints.
5300
026a9174
PA
53012016-05-24 Pedro Alves <palves@redhat.com>
5302
5303 PR gdb/19828
5304 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
5305 resumed, and add the thread to GDB's thread list.
5306
72b049d3
PA
53072016-05-24 Pedro Alves <palves@redhat.com>
5308
5309 PR gdb/19828
5310 * linux-nat.c (get_pending_status): If the thread reported the
5311 event to the core and it's pending, use the pending status signal
5312 number.
5313
774113b0
PA
53142016-05-24 Pedro Alves <palves@redhat.com>
5315
5316 PR gdb/19828
5317 * linux-nat.c (lwp_lwpid_htab): New htab.
5318 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
5319 (lwp_lwpid_htab_add_lwp): New functions.
5320 (lwp_list): Tweak comment.
5321 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
5322 functions.
5323 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
5324 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
5325 (delete_lwp): Use lwp_list_remove. Remove htab too.
5326 (find_lwp_pid): Search in htab.
5327 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
5328 * linux-nat.h (struct lwp_info) <prev>: New field.
5329
53302016-05-24 Pedro Alves <palves@redhat.com>
5331
5332 PR gdb/19828
5333 * linux-nat.c (lwp_lwpid_htab): New htab.
5334 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
5335 (lwp_lwpid_htab_add_lwp): New functions.
5336 (lwp_list): Tweak comment.
5337 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
5338 functions.
5339 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
5340 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
5341 (delete_lwp): Use lwp_list_remove. Remove htab too.
5342 (find_lwp_pid): Search in htab.
5343 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
5344 * linux-nat.h (struct lwp_info) <prev>: New field.
5345
1ad3de98
PA
53462016-05-24 Pedro Alves <palves@redhat.com>
5347
5348 PR gdb/19828
5349 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
5350 field.
5351 (linux_nat_update_thread_list): Don't fetch the core if already
5352 known.
5353
95e94c3f
PA
53542016-05-24 Pedro Alves <palves@redhat.com>
5355
5356 PR gdb/19828
5357 * linux-tdep.c (find_mapping_size): Delete.
5358 (linux_vsyscall_range_raw): Rewrite reading from
5359 /proc/PID/task/PID/maps directly instead of using
5360 gdbarch_find_memory_regions.
5361
aa01bd36
PA
53622016-05-24 Pedro Alves <palves@redhat.com>
5363
5364 PR gdb/19828
5365 * linux-nat.c (report_thread_events): New global.
5366 (linux_handle_extended_wait): Report
5367 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
5368 enabled.
5369 (wait_lwp, linux_nat_filter_event): Report all thread exits if
5370 thread event reporting is enabled. Remove comment.
5371 (filter_exit_event): New function.
5372 (linux_nat_wait_1): Use it.
5373 (linux_nat_thread_events): New function.
5374 (linux_nat_add_target): Install it as target_thread_events method.
5375
00a3cb9c
YTL
53762016-05-24 Yan-Ting Lin <currygt52@gmail.com>
5377
5378 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
5379
7eb89530
YQ
53802016-05-23 Yao Qi <yao.qi@arm.com>
5381
5382 * arch-utils.c (default_code_of_frame_writable): New function.
5383 * arch-utils.h (default_code_of_frame_writable): Declare.
5384 * arm-tdep.c (arm_code_of_frame_writable): New function.
5385 (arm_gdbarch_init): Install gdbarch method
5386 code_of_frame_writable if the target is M-profile.
5387 * frame.c (skip_unwritable_frames): New function.
5388 * frame.h (skip_unwritable_frames): Declare.
5389 * gdbarch.sh (code_of_frame_writable): New.
5390 * gdbarch.c, gdbarch.h: Re-generated.
5391 * infcmd.c (finish_command): Call skip_unwritable_frames.
5392
0f6ed0e0
TT
53932016-05-23 Tom Tromey <tom@tromey.com>
5394
5395 PR python/19438, PR python/18393:
5396 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
5397 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
5398
d0571b99
GB
53992016-05-23 Gary Benson <gbenson@redhat.com>
5400
5401 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
5402 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
5403 Remove field.
5404 (try_thread_db_load_1): Remove td_thr_validate initialization.
5405
37773e78
JB
54062016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
5407
5408 * configure.ac: Search for libutil-freebsd as alternative to libutil.
5409 * configure: Re-generated.
5410
bfb0d950
AS
54112016-05-19 Andreas Schwab <schwab@suse.de>
5412
5413 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
5414 (libunwind_frame_set_descr): Likewise.
5415 (libunwind_frame_cache): Likewise.
5416 (libunwind_frame_dealloc_cache): Likewise.
5417 (libunwind_frame_sniffer): Likewise.
5418 (libunwind_search_unwind_table): Likewise.
5419 (libunwind_sigtramp_frame_sniffer): Likewise.
5420 (libunwind_get_reg_special): Likewise.
5421 (libunwind_load): Likewise.
5422 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5423 (ia64_linux_store_register): Likewise.
5424 (ia64_linux_xfer_partial): Likewise.
5425 * ia64-tdep.c (ia64_access_reg): Likewise.
5426 (ia64_access_fpreg): Likewise.
5427 (ia64_access_rse_reg): Likewise.
5428 (ia64_access_rse_fpreg): Likewise.
5429
45f4ed92
TT
54302016-05-18 Tom Tromey <tom@tromey.com>
5431
5432 * rust-lang.c (rust_subscript): Initialize "high".
5433
28addb40
SM
54342016-05-17 Simon Marchi <simon.marchi@ericsson.com>
5435
5436 PR gdb/20045
5437 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
5438 of target_is_async_p.
5439
61c6156d
SM
54402016-05-17 Simon Marchi <simon.marchi@ericsson.com>
5441
5442 PR gdb/18077
5443 * mi/mi-main.c (run_one_inferior): Use run target to determine
5444 whether to run async or not.
5445 (mi_cmd_exec_run): Likewise.
5446
01739a3b
TT
54472016-05-17 Tom Tromey <tom@tromey.com>
5448
5449 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
5450 * rust-lang.c: Don't include f-lang.h.
5451 (rust_range, rust_compute_range, rust_subscript)
5452 (rust_evaluate_subexp): Update.
5453 * rust-exp.y: Don't include f-lang.h.
5454 (ast_range, convert_ast_to_expression): Update.
5455 * parse.c (operator_length_standard): Update.
5456 * f-lang.h (enum f90_range_type): Move to expression.h.
5457 * f-exp.y: Use OP_RANGE.
5458 * expression.h (enum range_type): New enum; renamed from
5459 f90_range_type.
5460 * expprint.c: Don't include f-lang.h.
5461 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
5462 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
5463
0bdfa368
TT
54642016-05-17 Tom Tromey <tom@tromey.com>
5465
5466 * NEWS: Add Rust item.
5467
c44af4eb
TT
54682016-05-17 Tom Tromey <tom@tromey.com>
5469 Manish Goregaokar <manishsmail@gmail.com>
5470
5471 * symtab.c (symbol_find_demangled_name): Handle Rust.
5472 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
5473 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
5474 constants.
5475 * rust-lang.h: New file.
5476 * rust-lang.c: New file.
5477 * rust-exp.y: New file.
5478 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
5479 (dwarf2_compute_name, read_func_scope, read_structure_type)
5480 (read_base_type, read_subrange_type, set_cu_language)
5481 (new_symbol_full, determine_prefix): Handle Rust.
5482 * defs.h (enum language) <language_rust>: New constant.
5483 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
5484 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
5485
00272ec4
TT
54862016-05-17 Tom Tromey <tom@tromey.com>
5487
5488 * valprint.h (struct generic_val_print_array) <array_start,
5489 array_end>: New fields.
5490 * valprint.c (generic_val_print_array): Add "decorations"
5491 parameter. Use "array_start", "array_end".
5492 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
5493 * p-valprint.c (p_decorations): Update.
5494 * m2-valprint.c (m2_decorations): Update.
5495 * f-valprint.c (f_decorations): Update.
5496 * c-valprint.c (c_decorations): Update.
5497
dcd1f979
TT
54982016-05-17 Tom Tromey <tom@tromey.com>
5499
5500 * NEWS: Add "maint selftest" entry.
5501 * selftest.h: New file.
5502 * selftest.c: New file.
5503 * maint.c: Include selftest.h.
5504 (maintenance_selftest): New function.
5505 (_initialize_maint_cmds): Add "maint selftest" command.
5506 * configure.ac (GDB_SELF_TEST): Maybe define.
5507 * config.in, configure: Rebuild.
5508 * Makefile.in (SFILES): Add selftest.c.
5509 (COMMON_OBS): Add selftest.o.
5510
e4b8a1c8
TT
55112016-05-17 Tom Tromey <tom@tromey.com>
5512
5513 * expprint.c: Include f-lang.h.
5514 (print_subexp_standard, dump_subexp_body_standard): Handle
5515 OP_F90_RANGE.
5516
9ab0bb2a
TT
55172016-05-17 Tom Tromey <tom@tromey.com>
5518
5519 * Makefile.in (init.c): Search .y files for initialization
5520 functions.
5521
8ddd5a6c
DE
55222016-05-12 Doug Evans <dje@google.com>
5523
5524 PR symtab/19999
5525 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
5526 add base_offset.
5527
df140a0b
TS
55282016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
5529
5530 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
5531 anything.
5532 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
5533
39d911fc
TP
55342016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
5535
5536 * arm-tdep.c (arm_elf_make_msymbol_special): Use
5537 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
5538
870f88f7
TS
55392016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
5540
5541 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
5542 variables.
5543 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
5544 (aarch64_scan_prologue): Likewise.
5545 (aarch64_prologue_prev_register): Likewise.
5546 (aarch64_dwarf2_prev_register): Likewise.
5547 (pass_in_v): Likewise.
5548 (aarch64_push_dummy_call): Likewise.
5549 (aarch64_breakpoint_from_pc): Likewise.
5550 (aarch64_return_in_memory): Likewise.
5551 (aarch64_return_value): Likewise.
5552 (aarch64_displaced_step_b_cond): Likewise.
5553 (aarch64_displaced_step_cb): Likewise.
5554 (aarch64_displaced_step_tb): Likewise.
5555 (aarch64_gdbarch_init): Likewise.
5556 (aarch64_process_record): Likewise.
5557 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
5558 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
5559 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5560 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
5561 * amd64-tdep.c (fixup_riprel): Likewise.
5562 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
5563 (amd64_windows_frame_decode_insns): Likewise.
5564 (amd64_windows_frame_cache): Likewise.
5565 (amd64_windows_frame_prev_register): Likewise.
5566 (amd64_windows_frame_this_id): Likewise.
5567 (amd64_windows_init_abi): Likewise.
5568 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
5569 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
5570 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
5571 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
5572 (arm_epilogue_frame_prev_register): Likewise.
5573 (arm_record_vdata_transfer_insn): Likewise.
5574 (arm_record_exreg_ld_st_insn): Likewise.
5575 * auto-load.c (execute_script_contents): Likewise.
5576 (print_scripts): Likewise.
5577 * avr-tdep.c (avr_frame_prev_register): Likewise.
5578 (avr_push_dummy_call): Likewise.
5579 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
5580 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5581 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
5582 * break-catch-throw.c (fetch_probe_arguments): Likewise.
5583 * breakpoint.c (breakpoint_xfer_memory): Likewise.
5584 (breakpoint_init_inferior): Likewise.
5585 (breakpoint_inserted_here_p): Likewise.
5586 (software_breakpoint_inserted_here_p): Likewise.
5587 (hardware_breakpoint_inserted_here_p): Likewise.
5588 (bpstat_what): Likewise.
5589 (break_range_command): Likewise.
5590 (save_breakpoints): Likewise.
5591 * coffread.c (coff_symfile_read): Likewise.
5592 * cris-tdep.c (cris_push_dummy_call): Likewise.
5593 (cris_scan_prologue): Likewise.
5594 (cris_register_size): Likewise.
5595 (_initialize_cris_tdep): Likewise.
5596 * d-exp.y: Likewise.
5597 * dbxread.c (dbx_read_symtab): Likewise.
5598 (process_one_symbol): Likewise.
5599 (coffstab_build_psymtabs): Likewise.
5600 (elfstab_build_psymtabs): Likewise.
5601 * dicos-tdep.c (dicos_init_abi): Likewise.
5602 * disasm.c (do_mixed_source_and_assembly): Likewise.
5603 (gdb_disassembly): Likewise.
5604 * dtrace-probe.c (dtrace_process_dof): Likewise.
5605 * dwarf2read.c (error_check_comp_unit_head): Likewise.
5606 (build_type_psymtabs_1): Likewise.
5607 (skip_one_die): Likewise.
5608 (process_imported_unit_die): Likewise.
5609 (dwarf2_physname): Likewise.
5610 (read_file_scope): Likewise.
5611 (setup_type_unit_groups): Likewise.
5612 (create_dwo_cu_reader): Likewise.
5613 (create_dwo_cu): Likewise.
5614 (create_dwo_unit_in_dwp_v1): Likewise.
5615 (create_dwo_unit_in_dwp_v2): Likewise.
5616 (lookup_dwo_unit_in_dwp): Likewise.
5617 (free_dwo_file): Likewise.
5618 (check_producer): Likewise.
5619 (dwarf2_add_typedef): Likewise.
5620 (dwarf2_add_member_fn): Likewise.
5621 (read_unsigned_leb128): Likewise.
5622 (read_signed_leb128): Likewise.
5623 (dwarf2_const_value): Likewise.
5624 (follow_die_sig_1): Likewise.
5625 (dwarf_decode_macro_bytes): Likewise.
5626 * extension.c (restore_active_ext_lang): Likewise.
5627 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
5628 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
5629 * gdbtypes.c (lookup_typename): Likewise.
5630 (resolve_dynamic_range): Likewise.
5631 (check_typedef): Likewise.
5632 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
5633 (h8300_gdbarch_init): Likewise.
5634 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
5635 (hppa_frame_this_id): Likewise.
5636 (_initialize_hppa_tdep): Likewise.
5637 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
5638 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
5639 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
5640 * i386-tdep.c (i386_bnd_type): Likewise.
5641 (i386_gdbarch_init): Likewise.
5642 (i386_mpx_bd_base): Likewise.
5643 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
5644 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
5645 * ia64-tdep.c (examine_prologue): Likewise.
5646 (ia64_frame_cache): Likewise.
5647 (ia64_push_dummy_call): Likewise.
5648 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
5649 (default_print_one_register_info): Likewise.
5650 * infrun.c (infrun_thread_ptid_changed): Likewise.
5651 (thread_still_needs_step_over): Likewise.
5652 (stop_all_threads): Likewise.
5653 (restart_threads): Likewise.
5654 (keep_going_stepped_thread): Likewise.
5655 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
5656 * language.c (language_init_primitive_type_symbols): Likewise.
5657 * linespec.c (add_sal_to_sals): Likewise.
5658 * linux-nat.c (status_callback): Likewise.
5659 (kill_unfollowed_fork_children): Likewise.
5660 (linux_nat_kill): Likewise.
5661 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
5662 * linux-thread-db.c (thread_db_notice_clone): Likewise.
5663 (record_thread): Likewise.
5664 * location.c (string_to_event_location_basic): Likewise.
5665 * m32c-tdep.c (m32c_prev_register): Likewise.
5666 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
5667 * m32r-tdep.c (decode_prologue): Likewise.
5668 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
5669 * machoread.c (macho_symtab_read): Likewise.
5670 (macho_symfile_read): Likewise.
5671 (macho_symfile_offsets): Likewise.
5672 * maint.c (set_per_command_cmd): Likewise.
5673 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5674 (mi_cmd_stack_list_variables): Likewise.
5675 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
5676 (output_register): Likewise.
5677 (mi_cmd_execute): Likewise.
5678 (mi_cmd_trace_define_variable): Likewise.
5679 (print_variable_or_computed): Likewise.
5680 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
5681 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
5682 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
5683 * mt-tdep.c (mt_registers_info): Likewise.
5684 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
5685 (nios2_push_dummy_call): Likewise.
5686 (nios2_frame_unwind_cache): Likewise.
5687 (nios2_stub_frame_cache): Likewise.
5688 (nios2_stub_frame_sniffer): Likewise.
5689 (nios2_gdbarch_init): Likewise.
5690 * ppc-ravenscar-thread.c: Likewise.
5691 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
5692 * python/py-evts.c (add_new_registry): Likewise.
5693 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
5694 (bpfinishpy_detect_out_scope_cb): Likewise.
5695 * python/py-framefilter.c (py_print_value): Likewise.
5696 * python/py-inferior.c (infpy_write_memory): Likewise.
5697 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
5698 * python/py-infthread.c (thpy_get_ptid): Likewise.
5699 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
5700 (ltpy_get_all_source_lines): Likewise.
5701 (ltpy_is_valid): Likewise.
5702 (ltpy_iternext): Likewise.
5703 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
5704 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
5705 (unwind_infopy_str): Likewise.
5706 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
5707 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
5708 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
5709 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
5710 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
5711 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
5712 (s390_frame_prev_register): Likewise.
5713 (s390_dwarf2_frame_init_reg): Likewise.
5714 (s390_record_vr): Likewise.
5715 (s390_process_record): Likewise.
5716 * score-tdep.c (score_push_dummy_call): Likewise.
5717 (score3_analyze_prologue): Likewise.
5718 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
5719 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
5720 (sh64_push_dummy_call): Likewise.
5721 (sh64_extract_return_value): Likewise.
5722 (sh64_do_fp_register): Likewise.
5723 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
5724 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
5725 (darwin_solib_read_all_image_info_addr): Likewise.
5726 * solib-dsbt.c (enable_break): Likewise.
5727 * solib-frv.c (enable_break2): Likewise.
5728 (frv_fdpic_find_canonical_descriptor): Likewise.
5729 * solib-svr4.c (svr4_handle_solib_event): Likewise.
5730 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
5731 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
5732 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5733 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
5734 * stack.c (read_frame_local): Likewise.
5735 * symfile.c (symbol_file_add_separate): Likewise.
5736 (remove_symbol_file_command): Likewise.
5737 * symmisc.c (maintenance_print_one_line_table): Likewise.
5738 * symtab.c (symbol_cache_flush): Likewise.
5739 (basic_lookup_transparent_type): Likewise.
5740 (sort_search_symbols_remove_dups): Likewise.
5741 * target.c (target_memory_map): Likewise.
5742 (target_detach): Likewise.
5743 (target_resume): Likewise.
5744 (acquire_fileio_fd): Likewise.
5745 (target_store_registers): Likewise.
5746 * thread.c (print_thread_info_1): Likewise.
5747 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
5748 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
5749 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
5750 (tilegx_analyze_prologue): Likewise.
5751 (tilegx_stack_frame_destroyed_p): Likewise.
5752 (tilegx_frame_cache): Likewise.
5753 * tracefile.c (trace_save): Likewise.
5754 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
5755 (start_tracing): Likewise.
5756 (print_one_static_tracepoint_marker): Likewise.
5757 * tui/tui.c (tui_enable): Likewise.
5758 * valops.c (value_struct_elt_bitpos): Likewise.
5759 (find_overload_match): Likewise.
5760 (find_oload_champ): Likewise.
5761 * value.c (value_contents_copy_raw): Likewise.
5762 * windows-tdep.c (windows_get_tlb_type): Likewise.
5763 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
5764 * xcoffread.c (record_minimal_symbol): Likewise.
5765 (scan_xcoff_symtab): Likewise.
5766 * xtensa-tdep.c (execute_code): Likewise.
5767 (xtensa_gdbarch_init): Likewise.
5768 (_initialize_xtensa_tdep): Likewise.
5769
c1aebf87
UW
57702016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5771
5772 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
5773 (spu_bfd_open): Likewise.
5774
edf689f0
YQ
57752016-05-04 Yao Qi <yao.qi@linaro.org>
5776
5777 PR gdb/19947
5778 * corefile.c (read_memory): Rename it to ...
5779 (read_memory_object): ... it. Add parameter object.
5780 (read_memory): Call read_memory_object.
5781 (read_stack): Likewise.
5782 (read_code): Likewise.
5783
6c447423
DE
57842016-05-03 Yunlian Jiang <yunlian@google.com>
5785 Doug Evans <dje@google.com>
5786
5787 PR symtab/19914
5788 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
5789 is separate debug file.
5790
a1ec3d24
DB
57912016-05-03 Don Breazeal <donb@codesourcery.com>
5792
5793 * serial.h (gdb_pipe): Fix argument names in comment.
5794
86f1abec
PA
57952016-05-03 Pedro Alves <palves@redhat.com>
5796
5797 PR python/20037
5798 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
5799 oldloc.
5800
1aa96702
PA
58012016-05-03 Pedro Alves <palves@redhat.com>
5802
5803 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
5804 code.
5805
a4a1c157
PA
58062016-05-03 Pedro Alves <palves@redhat.com>
5807
5808 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
5809 * configure: Regenerate.
5810
1b4f615e
PA
58112016-05-03 Pedro Alves <palves@redhat.com>
5812
5813 * configure.ac (checking for the dynamic export flag): Add
5814 $PYTHON_CPPFLAGS to CPPFLAGS.
5815 * configure: Regenerate.
5816
b631e59b
KT
58172016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5818
5819 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
5820 warning.
5821 (find_pc_mapped_section): Likewise.
5822 (list_overlays_command): Likewise.
5823
1270fac6
EZ
58242016-05-02 Eli Zaretskii <eliz@gnu.org>
5825
5826 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
5827 error in allocation of space for "$HOME/.gdbinit" string. This
5828 caused GDB to abort on startup whenever a '~/gdb.ini' file was
5829 actually found, because xsnprintf would hit an assertion
5830 violation.
5831
0400cf2f
SM
58322016-04-28 Simon Marchi <simon.marchi@ericsson.com>
5833
5834 * cli/cli-decode.c (help_cmd_list): Do not list commands that
5835 are deprecated.
5836
57809e5e
JK
58372016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5838
5839 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
5840
476350ba
MG
58412016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
5842
5843 * c-valprint.c (c_value_print): Always convert val back to reference
5844 type if we converted it to a pointer type.
5845
2d681be4
AA
58462016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5847
5848 * configure.ac: Enhance configure check for babeltrace to reject
5849 non-C++-enabled versions.
5850 * configure: Regenerate.
5851
3e2e34f8
KB
58522016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
5853 Keven Boell <keven.boell@intel.com>
5854 Bernhard Heckel <bernhard.heckel@intel.com>
5855
5856 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
5857 function.
5858 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
5859 (f77_print_array_1): Use value_subscript to subscript a
5860 value array.
5861 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
5862 (f_val_print): Use value_field to construct a field value.
5863
8f07e298
BH
58642016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
5865
5866 * valarith.c (value_address): Resolve dynamic types.
5867
9920b434
BH
58682016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
5869 Keven Boell <kevel.boell@intel.com>
5870
5871 * NEWS: Add new supported features for fortran.
5872 * gdbtypes.c (remove_dyn_prop): New.
5873 (resolve_dynamic_struct): Keep type length for fortran structs.
5874 * gdbtypes.h: Forward declaration of new function.
5875 * value.c (value_address): Return dynamic resolved location of a value.
5876 (set_value_component_location): Adjust the value address
5877 for single value prints.
5878 (value_primitive_field): Support value types with a dynamic location.
5879 (set_internalvar): Remove dynamic location property of
5880 internal variables.
5881
20249ae4
YQ
58822016-04-25 Pedro Alves <palves@redhat.com>
5883 Yao Qi <yao.qi@linaro.org>
5884
5885 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
5886 object. Insert it if it is not inserted yet. Increase the
5887 refcount and link it into the proc's raw breakpoint list.
5888
21edc42f
YQ
58892016-04-25 Yao Qi <yao.qi@linaro.org>
5890
5891 * breakpoint.c (should_be_inserted): Return 0 if the location's
5892 owner is not single step breakpoint or single step breakpoint's
5893 thread isn't the thread which is stepping past a breakpoint.
5894 * gdbarch.sh (software_single_step): Update comments.
5895 * gdbarch.h: Regenerated.
5896 * infrun.c (struct step_over_info) <thread>: New field.
5897 (set_step_over_info): New argument 'thread'. Callers updated.
5898 (clear_step_over_info): Set field thread to -1.
5899 (thread_is_stepping_over_breakpoint): New function.
5900 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
5901
0154d990
EBM
59022016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5903
5904 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
5905 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
5906
6d7e9d3b
YQ
59072016-04-22 Yao Qi <yao.qi@linaro.org>
5908
5909 * valops.c (read_value_memory): New local variable 'stack'.
5910 Set it to either TARGET_OBJECT_STACK_MEMORY or
5911 TARGET_OBJECT_MEMORY.
5912
b3f11165
PA
59132016-04-22 Pedro Alves <palves@redhat.com>
5914
5915 * ada-exp.y: Remove all yy symbol remappings.
5916 (GDB_YY_REMAP_PREFIX): Define.
5917 Include "yy-remap.h".
5918 * ada-lang.c (ada_language_defn): Adjust.
5919 * ada-lang.h (ada_error): Rename to ...
5920 (ada_yyerror): ... this.
5921 * c-exp.y: Remove all yy symbol remappings.
5922 (GDB_YY_REMAP_PREFIX): Define.
5923 Include "yy-remap.h".
5924 * c-lang.c (c_language_defn, cplus_language_defn)
5925 (asm_language_defn, minimal_language_defn): Adjust.
5926 * c-lang.h (c_error): Rename to ...
5927 (c_yyerror): ... this.
5928 * d-exp.y: Remove all yy symbol remappings.
5929 (GDB_YY_REMAP_PREFIX): Define.
5930 Include "yy-remap.h".
5931 * d-lang.c (d_language_defn): Adjust.
5932 * d-lang.h (d_error): Rename to ...
5933 (d_yyerror): ... this.
5934 * f-exp.y: Remove all yy symbol remappings.
5935 (GDB_YY_REMAP_PREFIX): Define.
5936 Include "yy-remap.h".
5937 * f-lang.c (f_language_defn): Adjust.
5938 * f-lang.h (f_error): Rename to ...
5939 (f_yyerror): ... this.
5940 * go-exp.y: Remove all yy symbol remappings.
5941 (GDB_YY_REMAP_PREFIX): Define.
5942 Include "yy-remap.h".
5943 * go-lang.c (go_language_defn): Adjust.
5944 * go-lang.h (go_error): Rename to ...
5945 (go_yyerror): ... this.
5946 * jv-exp.y: Remove all yy symbol remappings.
5947 (GDB_YY_REMAP_PREFIX): Define.
5948 Include "yy-remap.h".
5949 * jv-lang.c (java_language_defn): Adjust.
5950 * jv-lang.h (java_error): Rename to ...
5951 (java_yyerror): ... this.
5952 * m2-exp.y: Remove all yy symbol remappings.
5953 (GDB_YY_REMAP_PREFIX): Define.
5954 Include "yy-remap.h".
5955 * m2-lang.c (m2_language_defn): Adjust.
5956 * m2-lang.h (m2_error): Rename to ...
5957 (m2_yyerror): ... this.
5958 * objc-exp.y: Remove all yy symbol remappings.
5959 (GDB_YY_REMAP_PREFIX): Define.
5960 Include "yy-remap.h".
5961 * objc-lang.c (objc_language_defn): Adjust.
5962 * opencl-lang.c (opencl_language_defn): Adjust.
5963 * p-exp.y: Remove all yy symbol remappings.
5964 (GDB_YY_REMAP_PREFIX): Define.
5965 Include "yy-remap.h".
5966 * p-lang.c (pascal_language_defn): Adjust.
5967 * p-lang.h (pascal_error): Rename to ...
5968 (pascal_yyerror): ... this.
5969 * yy-remap.h: New file.
5970
6290672f
PA
59712016-04-22 Pedro Alves <palves@redhat.com>
5972
5973 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
5974 the foreign frames issue.
5975 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
5976
89525768
PA
59772016-04-22 Pedro Alves <palves@redhat.com>
5978
5979 * common/common-exceptions.c (enum catcher_state, struct catcher)
5980 (current_catcher): Define in C++ mode too.
5981 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
5982 throw_exception.
5983 (throw_exception_sjlj, throw_exception_cxx): New functions,
5984 factored out from throw_exception.
5985 (throw_exception): Reimplement.
5986 * common/common-exceptions.h (exceptions_state_mc_init)
5987 (exceptions_state_mc_action_iter)
5988 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5989 Declare in C++ mode too.
5990 (TRY): Rename to ...
5991 (TRY_SJLJ): ... this.
5992 (CATCH): Rename to ...
5993 (CATCH_SJLJ): ... this.
5994 (END_CATCH): Rename to ...
5995 (END_CATCH_SJLJ): ... this.
5996 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
5997 equivalents.
5998 (throw_exception): Update comments.
5999 (throw_exception_sjlj): Declare.
6000 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
6001 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
6002 intercepted exception.
6003 (gdb_rl_callback_handler): New function.
6004 (gdb_rl_callback_handler_install): Always install
6005 gdb_rl_callback_handler as readline callback.
6006
3c610247
PA
60072016-04-22 Pedro Alves <palves@redhat.com>
6008
6009 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
6010 (gdb_rl_callback_read_char_wrapper): ... this.
6011 (change_line_handler, gdb_setup_readline): Adjust.
6012
3539aa13
YQ
60132016-04-22 Yao Qi <yao.qi@linaro.org>
6014
6015 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
6016 bits 20 to 23.
6017
0f60e29b
JB
60182016-04-22 Joel Brobecker <brobecker@adacore.com>
6019
6020 * MAINTAINER: Remove myself as AIX Maintainer.
6021
3877922e
MR
60222016-04-22 Maciej W. Rozycki <macro@imgtec.com>
6023
6024 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
6025 `num_regs' to 90 rather than 79. Where a target description is
6026 present adjust the setting appropriately.
6027
88c3cd8d
PA
60282016-04-21 Pedro Alves <palves@redhat.com>
6029
6030 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
6031 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
6032
71829b1a
PA
60332016-04-21 Pedro Alves <palves@redhat.com>
6034
6035 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
6036 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
6037 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
6038 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
6039 pointer, and cast return to gdb_byte pointer.
6040
3451269c
PA
60412016-04-21 Pedro Alves <palves@redhat.com>
6042
6043 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
6044 void * instead of gdb_byte *.
6045
b36cec19
PA
60462016-04-21 Pedro Alves <palves@redhat.com>
6047
6048 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
6049 (file_file_name, file_full_name): Add char * cast to sentinel in
6050 concat/reconcat calls.
6051 * event-top.c (top_level_prompt): Likewise.
6052 * guile/guile.c (initialize_scheme_side): Likewise.
6053 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
6054 * macrotab.c (macro_source_fullname): Likewise.
6055 * main.c (get_init_files, captured_main): Likewise.
6056 * psymtab.c (psymtab_to_fullname): Likewise.
6057 * python/python.c (_initialize_python)
6058 (gdbpy_finish_initialization): Likewise.
6059 * source.c (symtab_to_fullname): Likewise.
6060
a2358508
PA
60612016-04-20 Pedro Alves <palves@redhat.com>
6062
6063 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
6064 * configure: Renegerate.
6065
5ae00552
PA
60662016-04-20 Pedro Alves <palves@redhat.com>
6067
6068 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
6069
d9436c7c
PA
60702016-04-20 Pedro Alves <palves@redhat.com>
6071
6072 * aarch64-tdep.c (aarch64_record_load_store): Change type of
6073 'reg_rm_val' local to ULONGEST.
6074
597e448c
PA
60752016-04-20 Pedro Alves <palves@redhat.com>
6076
6077 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
6078
6c739336
DE
60792016-04-20 Doug Evans <xdje42@gmail.com>
6080
6081 * symmisc.c (dump_symtab_1): Print owning compunit for identical
6082 blockvectors.
6083
8cef59a2
YQ
60842016-04-20 Yao Qi <yao.qi@linaro.org>
6085
6086 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
6087
6885166d
YQ
60882016-04-20 Yao Qi <yao.qi@linaro.org>
6089
6090 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
6091 * arch/arm-linux.h: ... here.
6092
21002a63
JB
60932016-04-19 John Baldwin <jhb@FreeBSD.org>
6094
6095 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
6096 to void *.
6097 (amd64bsd_store_inferior_registers): Likewise.
6098 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
6099 (resume_all_threads_cb): Likewise.
6100 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
6101 (i386bsd_collect_gregset): Likewise.
6102 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
6103 (i386bsd_store_inferior_registers): Likewise.
6104
f39c07ac
JB
61052016-04-19 John Baldwin <jhb@FreeBSD.org>
6106
6107 * main.c (setup_alternate_signal_stack): Cast to char *.
6108
d04c1a59
DE
61092016-04-19 Doug Evans <xdje42@gmail.com>
6110
6111 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
6112 All callers updated.
6113
a55411b9
DE
61142016-04-19 Doug Evans <xdje42@gmail.com>
6115
ee2915c9 6116 PR gdb/17911
a55411b9
DE
6117 * source.c (is_regular_file): New arg errno_ptr.
6118 All callers updated.
6119
73e6209f
AA
61202016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
6121
6122 * linux-record.c (record_linux_system_call): Merge handling for
6123 readlink/recv/read and pipe/pipe2.
6124
f42bf748
WT
61252016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
6126
6127 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
6128 * features/i386/amd64-mpx.xml: Remove AVX feature.
6129 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
6130 * features/i386/i386-mpx.xml: Remove AVX feature.
6131 * features/i386/amd64-mpx-linux.c: Regenerate.
6132 * features/i386/amd64-mpx.c: Regenerate.
6133 * features/i386/i386-mpx-linux.c: Regenerate.
6134 * features/i386/i386-mpx.c: Regenerate.
6135 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
6136 * regformats/i386/amd64-mpx.dat: Regenerate.
6137 * regformats/i386/i386-mpx-linux.dat: Regenerate.
6138 * regformats/i386/i386-mpx.dat: Regenerate.
6139
2b863f51
WT
61402016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
6141
6142 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
6143 New include.
6144 (amd64_linux_core_read_description): Add case for
6145 X86_XSTATE_AVX_MPX_MASK.
6146 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
6147 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
6148 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
6149 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
6150 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
6151 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
6152 (X86_XSTATE_AVX_MPX_MASK): New case.
6153 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
6154 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
6155 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
6156 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
6157 New expedites.
6158 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
6159 include.
6160 (i386_linux_core_read_description): Add case
6161 X86_XSTATE_AVX_MPX_MASK.
6162 (_initialize_i386_linux_tdep): Call
6163 initialize_tdesc_i386_avx_mpx_linux.
6164 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
6165 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
6166 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
6167 * x86-linux-nat.c (x86_linux_read_description): Add case for
6168 X86_XSTATE_AVX_MPX_MASK.
6169 * features/i386/amd64-avx-mpx-linux.xml: New file.
6170 * features/i386/i386-avx-mpx-linux.xml: New file.
6171 * features/i386/i386-avx-mpx.xml: New file.
6172 * features/i386/amd64-avx-mpx.xml: New file.
6173 * features/i386/amd64-avx-mpx-linux.c: Generated.
6174 * features/i386/amd64-avx-mpx.c: Generated.
6175 * features/i386/i386-avx-mpx-linux.c: Generated.
6176 * features/i386/i386-avx-mpx.c: Generated.
6177 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
6178 * regformats/i386/amd64-avx-mpx.dat: Generated.
6179 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
6180 * regformats/i386/i386-avx-mpx.dat: Generated.
6181
9b30624b
PA
61822016-04-18 Pedro Alves <palves@redhat.com>
6183
6184 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
6185 * configure: Regenerate.
6186
a22df60a
MG
61872016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
6188
6189 * valops.c (value_addr): For C++ references, set the copied value's
6190 enclosing_type as well.
6191
5947319e
YQ
61922016-04-18 Yao Qi <yao.qi@linaro.org>
6193
6194 Revert:
6195 2016-04-15 Yao Qi <yao.qi@linaro.org>
6196
6197 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
6198 PC is far from the end of function.
6199
58484447
PA
62002016-04-16 Pedro Alves <palves@redhat.com>
6201
6202 * ada-exp.y (yydefred): Define as ada_yydefred.
6203
2b2798cc
PA
62042016-04-15 Pedro Alves <palves@redhat.com>
6205
6206 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
6207 'name_str' locals.
6208
d7abe101
PA
62092016-04-15 Pedro Alves <palves@redhat.com>
6210
6211 * btrace.c (pt_btrace_insn_flags): Change return type to
6212 btrace_insn_flags. Use btrace_insn_flags for local.
6213
77770d83
PA
62142016-04-15 Pedro Alves <palves@redhat.com>
6215
6216 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
6217 accept TRAP_BRKPT.
6218 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
6219
415fa612
YQ
62202016-04-15 Yao Qi <yao.qi@linaro.org>
6221
6222 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
6223 PC is far from the end of function.
6224
7f31862a
PA
62252016-04-14 Pedro Alves <palves@redhat.com>
6226
6227 * cli/cli-cmds.c (alias_usage_error): New function.
6228 (alias_command): Use it.
6229 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
6230 ctf_save_write_metadata call.
6231
aebf07fc
PA
62322016-04-14 Pedro Alves <palves@redhat.com>
6233
6234 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
6235 argument to function expecting LONGEST.
6236 * value.c (unpack_long): Add casts to LONGEST.
6237
57d1de9c
LM
62382016-04-13 Luis Machado <lgustavo@codesourcery.com>
6239
6240 * exec.c (exec_file_locate_attach): Guard a couple functions
6241 that can throw errors.
6242 (exception_print_same): New helper function.
6243
3a00c802
PA
62442016-04-13 Pedro Alves <palves@redhat.com>
6245
6246 PR remote/19840
6247 * remote.c (struct remote_state) <last_resume_exec_dir>: New
6248 field.
6249 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
6250 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
6251 (remote_resume): Store the last execution direction.
6252 (remote_execution_direction): New function.
6253 (init_remote_ops): Install it as to_execution_direction target_ops
6254 method.
6255
0f41b320
PA
62562016-04-12 Pedro Alves <palves@redhat.com>
6257
6258 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
6259 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
6260
173981bc
PA
62612016-04-12 Pedro Alves <palves@redhat.com>
6262
6263 * common/common-exceptions.c (struct catcher) <buf>: Now a
6264 'jmp_buf' instead of SIGJMP_BUF.
6265 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
6266 (throw_exception): Use longjmp instead of SIGLONGJMP.
6267 * common/common-exceptions.h: Include <setjmp.h> instead of
6268 "gdb_setjmp.h".
6269 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
6270 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
6271 SIGSETJMP.
6272 * cp-support.c: Include "gdb_setjmp.h".
6273
2afc13ff
PA
62742016-04-12 Pedro Alves <palves@redhat.com>
6275
6276 * common/common-exceptions.c (exception_rethrow): Remove
6277 prepare_to_throw_exception call.
6278 * common/common-exceptions.h (prepare_to_throw_exception): Delete
6279 declaration.
6280 * exceptions.c (prepare_to_throw_exception): Delete.
6281
cfd0fbdd
PA
62822016-04-12 Pedro Alves <palves@redhat.com>
6283
6284 * target.c (target_check_pending_interrupt): Delete.
6285 * target.h (struct target_ops) <to_check_pending_interrupt>:
6286 Remove method.
6287 (target_check_pending_interrupt): Remove declaration.
6288 * target-delegates.c: Regenerate.
6289
585a46a2
PA
62902016-04-12 Pedro Alves <palves@redhat.com>
6291
6292 * defs.h: Update comments on SIGINT handling.
6293 (immediate_quit): Delete declaration.
6294 * event-loop.c (call_async_signal_handler): Delete.
6295 * event-loop.h (call_async_signal_handler): Delete declaration.
6296 (mark_async_signal_handler): Update comments.
6297 (gdb_call_async_signal_handler): Delete declaration.
6298 * event-top.c (handle_sigint): Call mark_async_signal_handler
6299 instead of gdb_call_async_signal_handler.
6300 * exceptions.c (prepare_to_throw_exception): Remove reference to
6301 immediate_quit.
6302 (exception_fprintf): Remove comments about immediate_quit.
6303 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
6304 (gdb_select): Don't wait on sigint_event.
6305 (gdb_call_async_signal_handler): Delete.
6306 (_initialize_mingw_hdep): Delete.
6307 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
6308 * utils.c (immediate_quit): Delete.
6309
048094ac
PA
63102016-04-12 Pedro Alves <palves@redhat.com>
6311
6312 * defs.h (quit_handler_ftype, quit_handler)
6313 (make_cleanup_override_quit_handler, default_quit_handler): New.
6314 (QUIT): Adjust comments.
6315 * event-top.c (default_quit_handler): New function.
6316 (quit_handler): New global.
6317 (struct quit_handler_cleanup_data): New.
6318 (restore_quit_handler, restore_quit_handler_dtor)
6319 (make_cleanup_override_quit_handler): New.
6320 (async_request_quit): Call QUIT.
6321 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
6322 (async_sigint_remote_twice_token, async_sigint_remote_token):
6323 Delete.
6324 (remote_close): Update comments.
6325 (remote_start_remote): Don't set immediate_quit. Set starting_up
6326 earlier.
6327 (remote_serial_quit_handler, remote_unpush_and_throw): New
6328 functions.
6329 (remote_open_1): Clear got_ctrlc_during_io. Set
6330 remote_async_terminal_ours_p unconditionally.
6331 (async_initialize_sigint_signal_handler)
6332 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
6333 (remote_check_pending_interrupt, async_remote_interrupt)
6334 (async_remote_interrupt_twice)
6335 (async_cleanup_sigint_signal_handler, ofunc)
6336 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
6337 (remote_terminal_inferior, remote_terminal_ours): Remove async
6338 checks.
6339 (remote_wait_as): Don't install a SIGINT handler in sync mode.
6340 (readchar, remote_serial_write): Override the quit handler with
6341 remote_serial_quit_handler.
6342 (getpkt_or_notif_sane_1): Don't call QUIT.
6343 (initialize_remote_ops): Don't install
6344 remote_check_pending_interrupt.
6345 (_initialize_remote): Don't create async_sigint_remote_token and
6346 async_sigint_remote_twice_token.
6347 * ser-base.c (ser_base_wait_for): Call QUIT and use
6348 interruptible_select.
6349 (ser_base_write): Call QUIT.
6350 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
6351 * ser-unix.c (wait_for): Don't use VTIME. Always take the
6352 gdb_select path, but call QUIT and interruptible_select.
6353 * utils.c (maybe_quit): Call the current quit handler. Don't call
6354 target_check_pending_interrupt.
6355 (defaulted_query, prompt_for_continue): Override the quit handler
6356 with the default quit handler.
6357
a12ac513
PA
63582016-04-12 Pedro Alves <palves@redhat.com>
6359
6360 * tui/tui-hooks.c (tui_target_has_run): Delete.
6361 (tui_about_to_proceed): Delete.
6362 (tui_about_to_proceed_observer): Delete.
6363 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
6364 about_to_proceed observer.
6365
5fe96654
PA
63662016-04-12 Pedro Alves <palves@redhat.com>
6367
6368 * mi/mi-interp.c (mi_new_thread): Put
6369 target_terminal_ours_for_output in effect while outputting.
6370 (mi_thread_exit): Use target_terminal_ours_for_output instead of
6371 target_terminal_ours.
6372 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6373 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6374 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6375 (mi_breakpoint_created, mi_breakpoint_deleted)
6376 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
6377 (mi_command_param_changed, mi_memory_changed)
6378 (report_initial_inferior): Use target_terminal_ours_for_output
6379 instead of target_terminal_ours. Restore terminal settings.
6380 * mi/mi-main.c (mi_execute_command): Use
6381 target_terminal_ours_for_output instead of target_terminal_ours.
6382 Restore terminal settings.
6383
651ce16a
PA
63842016-04-12 Pedro Alves <palves@redhat.com>
6385
6386 PR gdb/19828
6387 * gnu-nat.c (inf_validate_task_sc): Don't call
6388 target_terminal_ours / target_terminal_inferior around query.
6389 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
6390 call target_terminal_ours / target_terminal_inferior around
6391 yquery.
6392 * linux-record.c (record_linux_system_call): Don't call
6393 target_terminal_ours / target_terminal_inferior around yquery.
6394 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
6395 / target_terminal_inferior around query.
6396 * record-full.c (record_full_check_insn_num): Remove
6397 'set_terminal' parameter. Don't call target_terminal_ours /
6398 target_terminal_inferior around query.
6399 (record_full_message, record_full_registers_change)
6400 (record_full_xfer_partial): Adjust.
6401 * remote.c (interrupt_query): Don't call target_terminal_ours /
6402 target_terminal_inferior around query.
6403 * utils.c (defaulted_query): Install cleanup to restore target
6404 terminal. Put target_terminal_ours_for_output in effect while
6405 defaulted producing, and target_terminal_ours in in effect while
6406 handling input.
6407 (prompt_for_continue): Install cleanup to restore target terminal.
6408 Put target_terminal_ours in in effect while handling input.
6409
80dbc9fd
PA
64102016-04-12 Pedro Alves <palves@redhat.com>
6411
6412 * utils.c (defaulted_query, prompt_for_continue): Free temporary
6413 strings with cleanups, instead of xfree.
6414
c5ac1540
PA
64152016-04-12 Pedro Alves <palves@redhat.com>
6416
6417 * utils.c (vwarning, internal_vproblem): Use
6418 make_cleanup_restore_target_terminal and
6419 target_terminal_ours_for_output.
6420
f8e3ef9d
PA
64212016-04-12 Pedro Alves <palves@redhat.com>
6422
6423 * infcmd.c (post_create_inferior, prepare_one_step): Use
6424 target_terminal_ours_for_output instead of target_terminal_ours.
6425
481ac8c9
PA
64262016-04-12 Pedro Alves <palves@redhat.com>
6427
6428 * exceptions.c (print_flush): Use target_terminal_ours_for_output
6429 instead of target_terminal_ours, and restore target terminal with
6430 a cleanup.
6431
c509f1e1
PA
64322016-04-12 Pedro Alves <palves@redhat.com>
6433
6434 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
6435 instead of target_terminal_ours, and restore target terminal with
6436 a cleanup.
6437
99bbb428
PA
64382016-04-12 Pedro Alves <palves@redhat.com>
6439
6440 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
6441 functions.
6442 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
6443
75ee5925
PA
64442016-04-12 Pedro Alves <palves@redhat.com>
6445
6446 * ser-base.c (fd_event): Retry read_prim on EINTR.
6447 (do_ser_base_readchar): Retry read_prim on EINTR.
6448 (ser_base_write): Retry write_prim on EINTR.
6449 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
6450 (ser_unix_write_prim): Remove comment.
6451
93692b58
PA
64522016-04-12 Pedro Alves <palves@redhat.com>
6453
6454 * remote.c (remote_pass_ctrlc): New function.
6455 (init_remote_ops): Install it.
6456 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
6457 target.
6458 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
6459 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
6460 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
6461 * target-delegates.c: Regenerate.
6462
e42de8c7
PA
64632016-04-12 Pedro Alves <palves@redhat.com>
6464
6465 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
6466 mode.
6467 * linux-nat.c (linux_nat_interrupt): Delete.
6468 (linux_nat_add_target): Don't install linux_nat_interrupt.
6469 * remote.c (remote_interrupt_ns): Change return type to void.
6470 Throw error if interrupting the target is not supported.
6471 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
6472
a149683b
PA
64732016-04-12 Pedro Alves <palves@redhat.com>
6474
6475 * defs.h (clear_quit_flag): Remove declaration.
6476 * extension-priv.h (struct extension_language_ops)
6477 <clear_quit_flag>: Remove field and update comments.
6478 * extension.c (clear_quit_flag): Delete.
6479 * guile/guile.c (guile_extension_ops): Adjust.
6480 * python/python.c (python_extension_ops): Adjust.
6481 (gdbpy_clear_quit_flag): Delete.
6482
da1e5f54
PA
64832016-04-12 Pedro Alves <palves@redhat.com>
6484
6485 * main.c (captured_main): Don't clear the quit flag.
6486
0af679c6
PA
64872016-04-12 Pedro Alves <palves@redhat.com>
6488
6489 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
6490 flag.
6491
4a81fd47
PA
64922016-04-12 Pedro Alves <palves@redhat.com>
6493
6494 * event-top.c (command_handler): Don't call clear_quit_flag.
6495
abf009ef
PA
64962016-04-12 Pedro Alves <palves@redhat.com>
6497
6498 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
6499 * remote.c (remote_wait_as): Don't call clear_quit_flag.
6500
6eddd09a
PA
65012016-04-12 Pedro Alves <palves@redhat.com>
6502
6503 * python/python.c: Include "ser-event.h".
6504 (gdbpy_event_fds): Delete.
6505 (gdbpy_serial_event): New.
6506 (gdbpy_run_events): Change prototype. Use serial_event_clear
6507 instead of serial_readchar.
6508 (gdbpy_post_event): Use serial_event_set instead of serial_write.
6509 (gdbpy_initialize_events): Use make_serial_event instead of
6510 serial_pipe.
6511
f0881b37
PA
65122016-04-12 Pedro Alves <palves@redhat.com>
6513
6514 * defs.h: Extend QUIT-related comments to mention
6515 interruptible_select.
6516 (quit_serial_event_set, quit_serial_event_clear): Declare.
6517 * event-top.c: Include "ser-event.h" and "gdb_select.h".
6518 (quit_serial_event): New global.
6519 (async_init_signals): Make quit_serial_event.
6520 (quit_serial_event_set, quit_serial_event_clear)
6521 (quit_serial_event_fd, interruptible_select): New functions.
6522 * extension.c (set_quit_flag): Set the quit serial event.
6523 (check_quit_flag): Clear the quit serial event.
6524 * gdb_select.h (interruptible_select): New declaration.
6525 * guile/scm-ports.c (ioscm_input_waiting): Use
6526 interruptible_select instead of gdb_select.
6527 * top.c (gdb_readline_no_editing): Likewise.
6528 * ui-file.c (stdio_file_read): Likewise.
6529
5cc3ce8b
PA
65302016-04-12 Pedro Alves <palves@redhat.com>
6531
6532 * event-loop.c: Include "ser-event.h".
6533 (async_signal_handlers_serial_event): New global.
6534 (async_signals_handler, initialize_async_signal_handlers): New
6535 functions.
6536 (mark_async_signal_handler): Set
6537 async_signal_handlers_serial_event.
6538 (invoke_async_signal_handlers): Clear
6539 async_signal_handlers_serial_event.
6540 * event-top.c (async_init_signals): Call
6541 initialize_async_signal_handlers.
6542
00340e1b
PA
65432016-04-12 Pedro Alves <palves@redhat.com>
6544
6545 * Makefile.in (SFILES): Add ser-event.c.
6546 (HFILES_NO_SRCDIR): Add ser-event.h.
6547 (COMMON_OBS): Add ser-event.o.
6548 * ser-event.c, ser-event.h: New files.
6549 * serial.c (new_serial): New function, factored out from
6550 (serial_fdopen_ops): ... this.
6551 (serial_open_ops_1): New function, factored out from
6552 (serial_open): ... this.
6553 (serial_open_ops): New function.
6554 * serial.h (struct serial): Forware declare.
6555 (serial_open_ops): New declaration.
6556
5f5219fc
PA
65572016-04-12 Pedro Alves <palves@redhat.com>
6558
6559 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
6560 Remove references to name.
6561 * serial.h (struct serial) <name>: Delete.
6562
acd5494d
PA
65632016-04-12 Pedro Alves <palves@redhat.com>
6564
6565 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
6566 Delete.
6567 (async_remote_fileio_interrupt): Delete.
6568 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
6569 handler. Instead just always set the ctrl_c flag.
6570 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
6571 re-enabling the SIGINT handler.
6572 (remote_fileio_func_open, remote_fileio_func_close)
6573 (remote_fileio_func_read, remote_fileio_func_write)
6574 (remote_fileio_func_lseek, remote_fileio_func_rename)
6575 (remote_fileio_func_unlink, remote_fileio_func_stat)
6576 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6577 (remote_fileio_func_isatty, remote_fileio_func_system)
6578 (remote_fileio_request): Remove references to
6579 remote_fio_no_longjmp.
6580 (initialize_remote_fileio): Don't create an async signal handler.
6581
d2acc30b
PA
65822016-04-12 Pedro Alves <palves@redhat.com>
6583
6584 * event-top.c (stdin_event_handler): Call QUIT;
6585 (prompt_for_continue): Don't run with immediate_quit set.
6586
ab33ab13
PA
65872016-04-12 Pedro Alves <palves@redhat.com>
6588
6589 * tui/tui-io.c (tui_redisplay_readline): Check
6590 gdb_in_secondary_prompt_p instead of immediate_quit.
6591 * tui/tui.c: Include top.h.
6592 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
6593 immediate_quit.
6594
faa4ebe1
PA
65952016-04-12 Pedro Alves <palves@redhat.com>
6596
6597 * top.c (read_command_file): Inline command_loop here.
6598 (command_loop): Delete.
6599
3212b858
PA
66002016-04-12 Pedro Alves <palves@redhat.com>
6601
6602 * top.c: Include "gdb_select.h".
6603 (gdb_readline_no_editing): Wait for input with gdb_select instead
6604 of blocking in fgetc.
6605 (command_line_input): Don't set immediate_quit.
6606
4bf7b526
MG
66072016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
6608
6609 * value.c (value_next): Make pass-by-reference parameters const-correct.
6610 (value_parent): Likewise.
6611 (value_enclosing_type): Likewise.
6612 (value_lazy): Likewise.
6613 (value_stack): Likewise.
6614 (value_embedded_offset): Likewise.
6615 (value_pointed_to_offset): Likewise.
6616 (value_raw_address): Likewise.
6617 (deprecated_value_modifiable): Likewise.
6618 (value_free_to_mark): Likewise.
6619 (value_release_to_mark): Likewise.
6620 (internalvar_name): Likewise.
6621 (readjust_indirect_value_type): Likewise.
6622 (value_initialized): Likewise.
6623 * value.h (value_next): Likewise.
6624 (value_parent): Likewise.
6625 (value_enclosing_type): Likewise.
6626 (value_lazy): Likewise.
6627 (value_stack): Likewise.
6628 (value_embedded_offset): Likewise.
6629 (value_pointed_to_offset): Likewise.
6630 (value_raw_address): Likewise.
6631 (deprecated_value_modifiable): Likewise.
6632 (value_free_to_mark): Likewise.
6633 (value_release_to_mark): Likewise.
6634 (internalvar_name): Likewise.
6635 (readjust_indirect_value_type): Likewise.
6636 (value_initialized): Likewise.
6637
e390720b
YQ
66382016-04-07 Yao Qi <yao.qi@linaro.org>
6639
6640 * record-full.c (record_full_insert_breakpoint): Return
6641 early if entry on the address is found in
6642 record_full_breakpoints.
6643
1ccd06e4
YQ
66442016-04-07 Yao Qi <yao.qi@linaro.org>
6645
6646 * record-full.c (record_full_insert_breakpoint): Set
6647 bp_tgt->reqstd_address and bp_tgt->placed_size.
6648
ecf2e90c
DB
66492016-04-06 Don Breazeal <donb@codesourcery.com>
6650
6651 * value.c (value_actual_type): Don't try to get rtti type
6652 of the value if it has been optimized out.
6653 (value_optimized_out): If a memory access error occurs,
6654 just check vaue->optimized_out.
6655
14731617
JK
66562016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6657
6658 Revert the previous commit adding unknown_v_replies_ok.
6659
319cb5d0
JK
66602016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6661
6662 * remote.c (struct remote_state): New field unknown_v_replies_ok.
6663 (packet_config_support): Read it.
6664 (remote_start_remote): Set it.
6665
052d2eb2
JK
66662016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6667
6668 * remote.c: Revert check-in by a mistake in the previous commit.
6669
fef3cb9f
JK
66702016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6671 Pedro Alves <palves@redhat.com>
6672
6673 * exec.c (exec_file_locate_attach): Print warning for unsupported
6674 target_pid_to_exec_file.
6675 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
6676 message part.
6677
2aa08bd1
SM
66782016-04-04 Simon Marchi <simon.marchi@ericsson.com>
6679
6680 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
6681 trailing spaces.
6682
cc63428a
AV
66832016-04-01 Artemiy Volkov <artemiyv@acm.org>
6684
6685 PR gdb/19820
6686 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
6687 the type of BINOP_REPEAT's second operand.
6688
9bb84c9f
YY
66892016-03-31 Yichao Yu <yyc1992@gmail.com>
6690
6691 PR gdb/19858
6692 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
6693 got the breakpoint at the right address.
6694 (jit_inferior_created): New function.
6695 (_initialize_jit): Install jit_inferior_created as
6696 inferior_created observer.
6697
22084c42
MK
66982016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6699
6700 * NEWS: Mention support for tracepoints on powerpc*-linux.
6701
e7ea3ec7
CU
67022016-03-31 Catalin Udma <catalin.udma@freescale.com>
6703
6704 PR python/19743
6705 * python/python.c (execute_gdb_command): Use console uiout
6706 when executing gdb command.
6707 * utils.c (restore_ui_out_closure): New structure.
6708 (do_restore_ui_out): New function.
6709 (make_cleanup_restore_ui_out): Likewise.
6710 * utils.h (make_cleanup_restore_ui_out): Declare.
6711
f7c38292
PA
67122016-03-31 Pedro Alves <palves@redhat.com>
6713
6714 * NEWS: Mention that support for "target m32rsdi", "target mips",
6715 "target pmon", "target ddb", "target rockhopper", and "target lsi"
6716 was removed.
6717 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
6718 remote-mips.o.
6719 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
6720 * configure.tgt: Remove all references to remote-m32r-sdi.o and
6721 remote-mips.o.
6722 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
6723 function.
6724 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
6725 declaration.
6726 * remote-m32r-sdi.c, remote-mips.c: Delete files.
6727 * symfile.c (generic_load, generic_load): Remove comments.
6728
fb3f3d25
YQ
67292016-03-30 Yao Qi <yao.qi@linaro.org>
6730
6731 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
6732 0 rather than NULL.
6733
779aa56f
YQ
67342016-03-30 Yao Qi <yao.qi@linaro.org>
6735
6736 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
6737 (arm_epilogue_frame_this_id): New function.
6738 (arm_epilogue_frame_prev_register): New function.
6739 (arm_epilogue_frame_sniffer): New function.
6740 (arm_epilogue_frame_unwind): New.
6741 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
6742
c58b006a
YQ
67432016-03-30 Yao Qi <yao.qi@linaro.org>
6744
6745 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
6746 (arm_stack_frame_destroyed_p_1): ... here. Don't call
6747 arm_pc_is_thumb.
6748 (arm_stack_frame_destroyed_p): Call
6749 thumb_stack_frame_destroyed_p and
6750 arm_stack_frame_destroyed_p_1.
6751
4ae6cc19
DE
67522016-03-30 Doug Evans <dje@google.com>
6753
6754 * python/py-utils.c (host_string_to_python_string): New function.
6755 * python/python-internal.h (host_string_to_python_string): Declare it.
6756 * python/py-*.c (*): Update all calls to
6757 PyString_Decode (str, strlen (str), host_charset (), NULL);
6758 to use host_string_to_python_string instead.
6759
28170b88
MK
67602016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6761
6762 * remote.c (remote_check_symbols): Allocate own buffer for reply.
6763
a08b52b5
MF
67642016-03-29 Max Filippov <jcmvbkbc@gmail.com>
6765
6766 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
6767 Use safe_read_memory_integer instead of read_memory_integer.
6768
c37c0ba6
MK
67692016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6770
6771 * NEWS: Mention support for tracepoints on s390*-linux.
6772
444bca65
DB
67732016-03-29 Don Breazeal <donb@codesourcery.com>
6774
6775 * gdb/value.c (value_actual_type): Fix formatting issue.
6776
cc651c1c
YQ
67772016-03-23 Yao Qi <yao.qi@linaro.org>
6778
6779 * gdbarch.sh (software_single_step): Remove comments.
6780 * gdbarch.h: Regenerated.
6781
c55978a6
YQ
67822016-03-21 Yao Qi <yao.qi@linaro.org>
6783
6784 * arm-tdep.c (arm_record_media): New.
6785 (arm_record_ld_st_reg_offset): Call arm_record_media.
6786
479fe002
YQ
67872016-03-21 Yao Qi <yao.qi@linaro.org>
6788
6789 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
6790 more syscalls.
6791
9c3f2234
YQ
67922016-03-18 Yao Qi <yao.qi@linaro.org>
6793
6794 * sparc-tdep.c (sparc_software_single_step): Make it static.
6795 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
6796
941319d1
YQ
67972016-03-18 Yao Qi <yao.qi@linaro.org>
6798
6799 * spu-tdep.c (spu_software_single_step): Throw error when
6800 target_read_memory fails.
6801
708bf0a1
JK
68022016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6803
6804 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
6805
0d5b594f
PA
68062016-03-17 Pedro Alves <palves@redhat.com>
6807 Don Breazeal <donb@codesourcery.com>
6808
6809 PR remote/19496
6810 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
6811 instead of checking the 'non_stop' global.
6812 * remote.c (remote_add_thread): New parameter 'executing'. Use it
6813 to set the new thread's executing state.
6814 (remote_notice_new_inferior): Rename parameter 'running' to
6815 'executing'. Always set the thread state to THREAD_RUNNING in
6816 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
6817 EXECUTING to remote_add_thread and notice_new_inferior.
6818 (remote_update_thread_list): Update to pass executing state, not
6819 running state.
6820
bba960fc
AA
68212016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6822
6823 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
6824 to 374.
6825 * syscalls/s390x-linux.xml: Likewise.
6826
5fd0888a
AA
68272016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6828
6829 * linux-record.c (record_mem_at_reg): New helper function.
6830 (record_linux_system_call): Exploit new helper function where
6831 applicable.
6832
0fc8f115
AA
68332016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6834
6835 * linux-record.c: Fix whitespace issues; tabify, remove trailing
6836 spaces.
6837
afdab916
AA
68382016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6839
6840 * linux-record.c (record_linux_system_call): Add missing return
6841 statements to handling of pipe and pipe2 syscalls.
6842
bfeeb14b
DE
68432016-03-16 Doug Evans <dje@google.com>
6844
6845 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
6846
6b94a855
YQ
68472016-03-16 Yao Qi <yao.qi@linaro.org>
6848
6849 * arm-linux-tdep.c (arm_linux_init_abi): Fix
6850 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
6851 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
6852 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
6853 arm_linux_record_tdep.arg7.
6854
1cafadb4
DB
68552016-03-15 Keith Seitz <keiths@redhat.com>
6856
6857 PR breakpoints/18303
6858 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
6859 look for "::" instead of simply ":".
6860 (cp_search_static_and_baseclasses): Return null_block_symbol for
6861 malformed input.
6862 Remove assertions.
6863 * cp-support.c (cp_find_first_component_aux): Do not return
6864 a prefix length for ':' unless the next character is also ':'.
6865
89c200ed
DE
68662016-03-15 Doug Evans <dje@google.com>
6867
6868 * features/aarch64-core.xml (cpsr_flags): New flags type.
6869 (cpsr): Use it.
6870 * features/aarch64.c: Regenerate.
6871
49b7ae7b
DE
68722016-03-15 Doug Evans <dje@google.com>
6873
6874 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
6875 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
6876 * features/i386/64bit-core.xml (i386_eflags): Ditto.
6877 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
6878 * features/i386/x32-core.xml (i386_eflags): Ditto.
6879
81516450 68802016-03-15 Doug Evans <dje@google.com>
79427bd2 6881 Wei-cheng Wang <cole945@gmail.com>
81516450
DE
6882
6883 Extend flags to support multibit and enum bitfields.
79427bd2 6884 * NEWS: Document new features.
81516450
DE
6885 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
6886 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
6887 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
6888 (append_flags_type_field): New function.
6889 (append_flags_type_flag): Call it.
6890 * gdbtypes.h (append_flags_type_field): Declare.
6891 * target-descriptions.c (struct tdesc_type_flag): Delete.
6892 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
6893 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
6894 (struct tdesc_type) <u.f>: Delete.
6895 (tdesc_predefined_types): Add "bool".
6896 (tdesc_predefined_type): New function.
6897 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
6898 Update TDESC_TYPE_FLAGS support.
6899 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
6900 (tdesc_create_flags): Update.
6901 (tdesc_create_enum): New function.
6902 (tdesc_add_field): Initialize start,end to -1.
6903 (tdesc_add_typed_bitfield): New function.
6904 (tdesc_add_bitfield): Call it.
6905 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
6906 (tdesc_add_enum_value): New function.
6907 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
6908 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
6909 * target-descriptions.h (tdesc_create_enum): Declare.
6910 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
6911 * valprint.c (generic_val_print_enum_1): New function.
6912 (generic_val_print_enum): Call it.
6913 (val_print_type_code_flags): Make static. Handle multibit bitfields
6914 and enum bitfields.
6915 * valprint.h (val_print_type_code_flags): Delete.
6916 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
6917 Delete. All uses removed.
6918 (tdesc_start_enum): New function.
6919 (tdesc_start_field): Handle multibit and enum bitfields.
6920 (tdesc_start_enum_value): New function.
6921 (enum_value_attributes, enum_children, enum_attributes): New static
6922 globals.
6923 (feature_children): Add "enum".
6924 * features/gdb-target.dtd (enum, evalue): New elements.
6925
54157a25
DE
69262016-03-15 Doug Evans <dje@google.com>
6927
6928 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
6929 from LONGEST to int.
6930 (struct tdesc_type) <u.f.size>: Ditto.
6931 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
6932 to int. Add assertion size > 0.
6933 (tdesc_create_flags): Ditto.
6934 * target-descriptions.h (tdesc_set_struct_size): Update.
6935 (tdesc_create_flags): Update.
6936 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
6937 (MAX_VECTOR_SIZE): New macro.
6938 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
6939 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
6940
73b4f516
DE
69412016-03-15 Doug Evans <dje@google.com>
6942
6943 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
6944 TYPE_CODE_FLAGS instead of "field_type", for consistency.
6945 * features/i386/amd64-avx-linux.c: Regenerate.
6946 * features/i386/amd64-avx.c: Regenerate.
6947 * features/i386/amd64-avx512-linux.c: Regenerate.
6948 * features/i386/amd64-avx512.c: Regenerate.
6949 * features/i386/amd64-linux.c: Regenerate.
6950 * features/i386/amd64-mpx-linux.c: Regenerate.
6951 * features/i386/amd64-mpx.c: Regenerate.
6952 * features/i386/amd64.c: Regenerate.
6953 * features/i386/i386-avx-linux.c: Regenerate.
6954 * features/i386/i386-avx.c: Regenerate.
6955 * features/i386/i386-avx512-linux.c: Regenerate.
6956 * features/i386/i386-avx512.c: Regenerate.
6957 * features/i386/i386-linux.c: Regenerate.
6958 * features/i386/i386-mmx-linux.c: Regenerate.
6959 * features/i386/i386-mmx.c: Regenerate.
6960 * features/i386/i386-mpx-linux.c: Regenerate.
6961 * features/i386/i386-mpx.c: Regenerate.
6962 * features/i386/i386.c: Regenerate.
6963 * features/i386/x32-avx-linux.c: Regenerate.
6964 * features/i386/x32-avx.c: Regenerate.
6965 * features/i386/x32-avx512-linux.c: Regenerate.
6966 * features/i386/x32-avx512.c: Regenerate.
6967 * features/i386/x32-linux.c: Regenerate.
6968 * features/i386/x32.c: Regenerate.
6969
1eb2dbb8
PA
69702016-03-15 Pedro Alves <palves@redhat.com>
6971
6972 PR gdb/19676
6973 * linux-thread-db.c (try_thread_db_load_1): Leave
6974 info->td_ta_thr_iter_p NULL iff debugging a live process and we
6975 have /proc access.
6976 (find_new_threads_once): Assert that we have a non-NULL
6977 info->td_ta_thr_iter_p instead of checking whether the target has
6978 execution.
6979
16b41842
PA
69802016-03-15 Pedro Alves <palves@redhat.com>
6981
6982 PR gdb/19676
6983 * infrun.c (displaced_step_prepare): Also disable displaced
6984 stepping on NOT_SUPPORTED_ERROR.
6985 * linux-tdep.c (linux_displaced_step_location): If reading auxv
6986 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
6987
70104a90
MK
69882016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
6989
6990 * s390-linux-tdep.c (s390_gen_return_address): New function.
6991 (s390_gdbarch_init): Fill gen_return_address hook.
6992
f2403c39
AB
69932016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6994
6995 * symmisc.c (maintenance_info_line_tables): New function.
6996 (maintenance_print_one_line_table): New function.
6997 (_initialize_symmisc): Register 'maint info line-table' command.
6998 * NEWS: Mention new command.
6999
c4b3e547
MK
70002016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
7001
7002 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
7003 (s390_ax_pseudo_register_push_stack): New function.
7004 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
7005 ax_pseudo_register_push_stack hooks.
7006
f2f3ccb9
SM
70072016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
7008
7009 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
7010 gdb/function/as_string.py.
7011 * python/lib/gdb/function/as_string.py: New file.
7012 * NEWS: Mention the new $_as_string function.
7013
2343b78a
JM
70142016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
7015
7016 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
7017
b69d38af
PA
70182016-03-09 Pedro Alves <palves@redhat.com>
7019
7020 * event-top.c (more_to_come): Delete.
7021 (struct readline_input_state): Delete.
7022 (readline_input_state): Delete.
7023 (get_command_line_buffer): New function.
7024 (command_handler): Update comments. Don't handle NULL commands
7025 here. Do not execute commented lines.
7026 (command_line_append_input_line): New function.
7027 (handle_line_of_input): New function, partly based on
7028 command_line_handler and command_line_input.
7029 (command_line_handler): Rewrite.
7030 * event-top.h (command_handler): New declaration.
7031 (command_loop): Defer command execution to command_handler.
7032 (command_line_input): Update comments. Simplify, using struct
7033 buffer and handle_line_of_input.
7034 * top.h (struct buffer): New forward declaration.
7035 (handle_line_of_input): New declaration.
7036
2669cade
PA
70372016-03-09 Pedro Alves <palves@redhat.com>
7038
7039 * event-top.c (command_line_handler): Use xfree + xstrdup instead
7040 of xrealloc + strcpy.
7041 * main.c (captured_main): Use xstrdup instead of xmalloc plus
7042 manual clear.
7043 * top.c (saved_command_line): Rewrite comment.
7044 (saved_command_line_size): Delete.
7045 (command_line_input): Use xfree + xstrdup instead of xrealloc +
7046 strcpy.
7047 * top.h (saved_command_line_size): Delete declaration.
7048
187212b3
PA
70492016-03-09 Pedro Alves <palves@redhat.com>
7050
7051 * event-top.c: Include buffer.h.
7052 (gdb_readline_no_editing_callback): Use struct buffer instead
7053 of xrealloc.
7054
7a3bde34
PA
70552016-03-09 Pedro Alves <palves@redhat.com>
7056
7057 * common/buffer.h (buffer_grow_char): New function.
7058 * top.c: Include buffer.h.
7059 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
7060 'prompt'. Use struct buffer instead of xrealloc.
7061
c5c136ea
PA
70622016-03-09 Pedro Alves <palves@redhat.com>
7063
7064 * defs.h (gdb_readline): Delete declaration.
7065 * top.c (gdb_readline): Rename to ...
7066 (gdb_readline_no_editing): ... this, and make static.
7067
720d2e96
PA
70682016-03-09 Pedro Alves <palves@redhat.com>
7069
7070 * utils.c (prompt_for_continue): Update comments.
7071
608ff013
PA
70722016-03-09 Pedro Alves <palves@redhat.com>
7073
7074 * event-top.c (async_annotation_suffix): Delete.
7075 (top_level_prompt, command_line_handler): Don't use
7076 'async_annotation_suffix' and simplify.
7077 * event-top.h (async_annotation_suffix): Delete declaration.
7078 (init_main): Remove reference to 'async_annotation_suffix'.
7079
c70061cf
PA
70802016-03-09 Pedro Alves <palves@redhat.com>
7081
7082 * event-top.c (gdb_readline2): Rename to ...
7083 (gdb_readline_no_editing_callback): ... this.
7084 (change_line_handler, stdin_event_handler)
7085 (gdb_setup_readline): Adjust.
7086 * event-top.h (gdb_readline2): Rename to ...
7087 (gdb_readline_no_editing_callback): ... this, and move closer to
7088 other readline-related declarations.
7089 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
7090
8a243832
PA
70912016-03-09 Pedro Alves <palves@redhat.com>
7092
7093 * top.c (window_hook): Delete.
7094 (command_loop): Remove references to window_hook.
7095
cc2c4da8
MK
70962016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
7097
7098 * corefile.c (safe_read_memory_unsigned_integer): New function.
7099 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
7100 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
7101
a67914de
MK
71022016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
7103
7104 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
7105 (rs6000_gen_return_address): New function.
7106 (rs6000_gdbarch_init): Wire in the above.
7107
2a2fa07b
MK
71082016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
7109
7110 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
7111 (rs6000_gdbarch_init): Wire in the above.
7112
bc0e3f49
AA
71132016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
7114
7115 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
7116 instructions that do nothing or are conditional traps.
7117
6d53bec8
AA
71182016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
7119
7120 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
7121 frame func's PC in info->func before any other failure can occur.
7122 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
7123 info->func has been filled out.
7124
f7990f16
PA
71252016-03-09 Pedro Alves <palves@redhat.com>
7126
7127 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
7128
087ccc6a
PA
71292016-03-09 Pedro Alves <palves@redhat.com>
7130
7131 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
7132
114d7832
PA
71332016-03-09 Pedro Alves <palves@redhat.com>
7134
7135 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
7136 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
7137
d7a87b5e
PA
71382016-03-09 Pedro Alves <palves@redhat.com>
7139
7140 * doublest.c: Extend comments.
7141 (floatformat_to_doublest, floatformat_from_doublest): Copy the
7142 floatformat's total size, not the host type's size.
7143
b79497cb
PA
71442016-03-09 Pedro Alves <palves@redhat.com>
7145
7146 * doublest.c (floatformat_totalsize_bytes): New function.
7147 (floatformat_from_type): Assert that the type's length is at least
7148 as long as the floatformat's totalsize.
7149 * doublest.h (floatformat_totalsize_bytes): New declaration.
7150 * gdbtypes.c (arch_float_type): Assert that the type's length is
7151 at least as long as the floatformat's totalsize.
7152
aacca8a7
PA
71532016-03-09 Pedro Alves <palves@redhat.com>
7154
7155 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
7156 format to floatformats_ieee_double.
7157
e6c2f47b
PA
71582016-03-07 Pedro Alves <palves@redhat.com>
7159
7160 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
7161 before calling bfd_get_flavour.
7162
cb86f388
DC
71632016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7164
7165 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
7166 (avr_push_dummy_call): Correct last needed argument register.
7167 Write MSB of argument into register and subsequent bytes into
7168 other registers in decreasing order.
7169
f1771dce
YQ
71702016-03-04 Yao Qi <yao.qi@linaro.org>
7171
7172 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
7173 condition check. Record the right D register number.
7174
ca92db2d
YQ
71752016-03-04 Yao Qi <yao.qi@linaro.org>
7176
7177 * arm-tdep.c (arm_record_extension_space): Remove code
7178 printing "Process record does not support".
7179 (arm_record_data_proc_misc_ld_str): Likewise.
7180 (decode_insn): Call arm_record_extension_space if condition
7181 is 0xf. Call arm_record_unsupported_insn if ret isn't
7182 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
7183 the value of thumb2_record_decode_insn_handler.
7184
73519cce
SM
71852016-03-04 Simon Marchi <simon.marchi@ericsson.com>
7186
7187 * features/feature_to_c.sh: Print the help when passing no
7188 argument.
7189
650beae3
BH
71902016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
7191
7192 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
7193
28586665
BH
71942016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
7195
7196 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
7197
f2489477
AA
71982016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
7199
7200 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
7201 exception when attempting to access the inferior's backchain.
7202
d5219069
YQ
72032016-02-29 Yao Qi <yao.qi@linaro.org>
7204
7205 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
7206 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
7207 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
7208 for aarch64_sys_epoll_create1.
7209
253b4d3a
YQ
72102016-02-29 Yao Qi <yao.qi@linaro.org>
7211
7212 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
7213 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
7214 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
7215 * linux-record.c (record_linux_system_call): Handle them.
7216
38899f16
IB
72172016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
7218
7219 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
7220 cyclic imports.
7221
1ed0c2a4
KS
72222016-02-26 Keith Seitz <keiths@redhat.com>
7223
7224 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
7225 to avoid invalid conversion from void *.
7226
9fde51ed
YQ
72272016-02-26 Yao Qi <yao.qi@linaro.org>
7228
7229 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
7230 per bit 8. Check bit 20 instead of bit 4 for VMOV
7231 instruction. Record D registers for instructions changing
7232 S registers. Change of the order of length and address
7233 in record_buf_mem array.
7234
1f33efec
YQ
72352016-02-26 Yao Qi <yao.qi@linaro.org>
7236
7237 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
7238 number of Rd.
7239
1547ef64
DE
72402016-02-25 Doug Evans <dje@google.com>
7241
7242 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
7243 compiler warning.
7244 (recv_long_data): Ditto.
7245
166616ce
SM
72462016-02-25 Simon Marchi <simon.marchi@ericsson.com>
7247
7248 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
7249 Initialize variables.
7250
1eb7c2d8
AT
72512016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
7252
7253 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
7254 (ax_reg_mask): Likewise.
7255
e7ad2f14
PA
72562016-02-24 Pedro Alves <palves@redhat.com>
7257
7258 * linux-nat.c (save_sigtrap) Delete.
7259 (stop_wait_callback): Call save_stop_reason instead of
7260 save_sigtrap.
7261 (check_stopped_by_breakpoint): Rename to ...
7262 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
7263 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
7264 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
7265 common code between the USE_SIGTRAP_SIGINFO and
7266 !USE_SIGTRAP_SIGINFO blocks.
7267 (linux_nat_filter_event): Call save_stop_reason instead of
7268 save_sigtrap.
7269 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
7270 si_code for MIPS.
7271 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
7272 comments on MIPS behavior.
7273 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
7274
338435ef
MK
72752016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
7276
7277 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
7278 to avoid spurious warnings.
7279
bf74e428
GB
72802016-02-24 Gary Benson <gbenson@redhat.com>
7281
7282 * exec.c (exec_file_locate_attach): Do not attempt to
7283 locate main executable locally if not found in sysroot.
7284
62fb310b
JB
72852016-02-24 Joel Brobecker <brobecker@adacore.com>
7286
7287 GDB 7.11 released.
7288
50ae56ec
WW
72892016-02-24 Wei-cheng Wang <cole945@gmail.com>
7290
7291 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
7292 unavailable PC/SP to build unavailable frame.
7293
cce0e923
DE
72942016-02-23 Doug Evans <dje@google.com>
7295
7296 Extend "skip" command to support -file, -gfile, -function, -rfunction.
7297 * NEWS: Document new features.
7298 * skip.c: #include "fnmatch.h", "gdb_regex.h".
7299 (skiplist_entry) <file>: Renamed from filename.
7300 <function>: Renamed from function_name.
7301 <file_is_glob, function_is_regexp>: New members.
7302 <compiled_function_regexp, compiled_function_regexp_is_valid>:
7303 New members.
7304 (make_skip_entry): New function.
7305 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
7306 (make_free_skiplist_entry_cleanup): New function.
7307 (skip_file_command): Update.
7308 (skip_function, skip_function_command): Update.
7309 (compile_skip_regexp): New functions.
7310 (skip_command): Add support for new options.
7311 (skip_info): Update.
7312 (skip_file_p, skip_gfile_p): New functions.
7313 (skip_function_p, skip_rfunction_p): New functions.
7314 (function_name_is_marked_for_skip): Update and simplify.
7315 (_initialize_step_skip): Update.
7316 * symtab.c: #include "fnmatch.h".
7317 (compare_glob_filenames_for_search): New function.
7318 * symtab.h (compare_glob_filenames_for_search): Declare.
7319 * utils.c (count_path_elements): New function.
7320 (strip_leading_path_elements): New function.
7321 * utils.h (count_path_elements): Declare.
7322 (strip_leading_path_elements): Declare.
7323
12545665
SM
73242016-02-23 Simon Marchi <simon.marchi@ericsson.com>
7325
7326 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
7327 (thumb_process_displaced_insn): Likewise.
7328 (arm_process_displaced_insn): Adjust calls.
7329
c955ae73
YQ
73302016-02-23 Yao Qi <yao.qi@linaro.org>
7331
7332 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
7333 Remove.
7334 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
7335 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
7336 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
7337 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
7338 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
7339 <aarch64_sys_faccessat>: New.
7340 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
7341 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
7342 <aarch64_sys_newfstatat>: New.
7343 (UNSUPPORTED_SYSCALL_MAP): New macro.
7344 (aarch64_canonicalize_syscall): Add missing syscalls.
7345
ac46107c
JK
73462016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7347
7348 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
7349
01e57735
YQ
73502016-02-22 Yao Qi <yao.qi@linaro.org>
7351
7352 * arm-tdep.c: Fix code format issues.
7353
30a6a7f0
IB
73542016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
7355
7356 * d-namespace.c (d_lookup_symbol_imports): Remove argument
7357 'search_parents'. All callers updated.
7358
f79a3bae
MK
73592016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
7360
7361 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
7362 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
7363
012b3a21
WT
73642016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
7365
7366 * NEWS: Add entry for bound violation.
7367 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
7368 Add handler for segmentation fault.
7369 * gdbarch.sh (handle_segmentation_fault): New.
7370 * gdbarch.c: Regenerate.
7371 * gdbarch.h: Regenerate.
7372 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
7373 (SIG_CODE_BONDARY_FAULT): New define.
7374 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
7375 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
7376 * i386-tdep.c (i386_mpx_enabled): Add as external.
7377 * i386-tdep.c (i386_mpx_enabled): Add as external.
7378 * infrun.c (handle_segmentation_fault): New function.
7379 (print_signal_received_reason): Use handle_segmentation_fault.
7380
5f034a78
MK
73812016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
7382
7383 * arch-utils.c (default_guess_tracepoint_registers): New function.
7384 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
7385 * gdbarch.c: Regenerate.
7386 * gdbarch.h: Regenerate.
7387 * gdbarch.sh: Add guess_tracepoint_registers hook.
7388 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
7389
88178e82
GB
73902016-02-17 Gary Benson <gbenson@redhat.com>
7391
7392 * exec.c (exec_file_locate_attach): Add missing cleanup.
7393
4041ed77
DB
73942016-02-16 Don Breazeal <donb@codesourcery.com>
7395
7396 PR remote/19496
7397 * remote.c (remove_new_fork_children): Check for pending
7398 fork status in thread_info.suspend.
7399
b442c911
YQ
74002016-02-16 Yao Qi <yao.qi@linaro.org>
7401
7402 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
7403 'old_chain' later.
7404
553cb527
YQ
74052016-02-16 Yao Qi <yao.qi@linaro.org>
7406
7407 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
7408 <syscall_next_pc>: Remove argument PC. Callers updated.
7409 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
7410 Remove argument PC. Get pc from regcache_read_pc.
7411 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
7412 argument PC.
7413
0a0da556
YQ
74142016-02-15 Yao Qi <yao.qi@linaro.org>
7415
7416 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
7417
01113bc1
YQ
74182016-02-12 Yao Qi <yao.qi@linaro.org>
7419
7420 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
7421 nextpc according to instruction.
7422
ed443b61
YQ
74232016-02-12 Yao Qi <yao.qi@linaro.org>
7424
7425 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
7426 self->ops->fixup if it isn't NULL.
7427 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
7428 (struct arm_get_next_pcs_ops) <fixup>: New field.
7429 * arch/arm-linux.c: Include common-regcache.h and
7430 arch/arm-get-next-pcs.h.
7431 (arm_linux_get_next_pcs_fixup): New function.
7432 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
7433 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
7434 it with arm_linux_get_next_pcs_fixup.
7435 (arm_linux_software_single_step): Move code to
7436 arm_linux_get_next_pcs_fixup.
7437 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
7438
d21b5f15
MK
74392016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
7440
7441 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
7442 and return NULL.
7443
33b4777c
MM
74442016-02-12 Markus Metzger <markus.t.metzger@intel.com>
7445
7446 * frame.h (skip_tailcall_frames): Update comment.
7447 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
7448 if only artificial frames are found. Update comment.
7449 (frame_unwind_caller_id): Handle NULL return.
7450 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
7451 skip_artificial_frames does not return NULL.
7452 (frame_pop): Add an error if only tailcall frames are found.
7453 * infcmd.c (finish_command): Move skip_tailcall_frames call into
7454 forward-execution case. Add an error if only tailcall frames are
7455 found.
7456
a038fa3e
MM
74572016-02-12 Markus Metzger <markus.t.metzger@intel.com>
7458
7459 * stack.c (frame_info): Check frame_unwind_caller_id.
7460
2f3ef606
MM
74612016-02-12 Markus Metzger <markus.t.metzger@intel.com>
7462
7463 * frame.h (skip_tailcall_frames): New.
7464 * frame.c (skip_tailcall_frames): New.
7465 (frame_pop): Call skip_tailcall_frames.
7466 * infcmd.c (finish_command): Call skip_tailcall_frames.
7467
e352bf0a
PA
74682016-02-11 Pedro Alves <palves@redhat.com>
7469
7470 * Makefile.in (check-parallel): New rule.
7471
bec2ab5a
SM
74722016-02-11 Simon Marchi <simon.marchi@ericsson.com>
7473
7474 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
7475 (arm_analyze_prologue): Likewise.
7476 (arm_scan_prologue): Likewise.
7477 (arm_m_exception_prev_register): Likewise.
7478 (arm_copy_block_xfer): Likewise.
7479 (thumb2_copy_block_xfer): Likewise.
7480 (arm_decode_miscellaneous): Likewise.
7481 (arm_decode_ld_st_word_ubyte): Likewise.
7482 (arm_decode_svc_copro): Likewise.
7483 (thumb2_decode_svc_copro): Likewise.
7484 (thumb_copy_16bit_ldr_literal): Likewise.
7485 (thumb_copy_pop_pc_16bit): Likewise.
7486 (decode_thumb_32bit_ld_mem_hints): Likewise.
7487 (arm_show_force_mode): Likewise.
7488 (_initialize_arm_tdep): Likewise.
7489 (arm_record_strx): Likewise.
7490 (arm_record_extension_space): Likewise.
7491 (arm_record_data_proc_misc_ld_str): Likewise.
7492 (arm_record_exreg_ld_st_insn): Likewise.
7493 (arm_record_vfp_data_proc_insn): Likewise.
7494 (arm_record_coproc_data_proc): Likewise.
7495 (thumb_record_misc): Likewise.
7496 (thumb_record_ldm_stm_swi): Likewise.
7497 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
7498 (thumb2_record_ld_mem_hints): Likewise.
7499 (thumb2_record_lmul_lmla_div): Likewise.
7500 (thumb2_record_asimd_struct_ld_st): Likewise.
7501 (arm_process_record): Likewise.
7502
2ba163c8
SM
75032016-02-11 Simon Marchi <simon.marchi@ericsson.com>
7504
7505 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
7506 (ARM displaced stepping support): Remove reference to
7507 arm_displaced_step_copy_insn in comment.
7508 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
7509 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
7510 reference to arm_displaced_step_copy_insn in comment.
7511
615234c1
SM
75122016-02-11 Simon Marchi <simon.marchi@ericsson.com>
7513
7514 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
7515 (thumb_copy_b): Likewise.
7516 (arm_decode_b_bl_ldmstm): Likewise.
7517 (thumb_copy_16bit_ldr_literal): Likewise.
7518 (thumb_copy_pop_pc_16bit): Likewise.
7519
82e9becd
AT
75202016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
7521
7522 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
7523 than loc->gdbarch.
7524
5ac87a99
MK
75252016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7526
7527 * tracefile-tfile.c (trace_tdesc): New static variable.
7528 (tfile_open): Clear trace_tdesc, call target_find_description.
7529 (tfile_interp_line): Recognize tdesc lines.
7530 (tfile_close): Clear trace_tdesc.
7531 (tfile_xfer_partial_features): New function.
7532 (tfile_xfer_partial): Call tfile_xfer_partial_features.
7533 (tfile_append_tdesc_line): New function.
7534
18d3cec5
MK
75352016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7536
7537 * ctf.c (ctf_write_tdesc): New function.
7538 (ctf_write_ops): Wire in ctf_write_tdesc.
7539 * tracefile-tfile.c (tfile_write_tdesc): New function.
7540 (tfile_write_ops): Wire in tfile_write_tdesc.
7541 * tracefile.c (trace_save): Call write_tdesc method.
7542 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
7543 * xml-tdesc.c (target_fetch_description_xml): New function.
7544 * xml-tdesc.h: Add target_fetch_description_xml prototype.
7545
550dc4e2
SM
75462016-02-10 Simon Marchi <simon.marchi@ericsson.com>
7547
7548 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
7549 (arm_decode_dp_misc): Likewise.
7550
62e5fd57
MK
75512016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7552
7553 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
7554 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
7555 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
7556 misleading comment.
7557 (i386_pseudo_register_write): Ditto.
7558 (i386_ax_pseudo_register_collect): New function.
7559 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
7560 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
7561
e909d859
MK
75622016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7563
7564 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
7565 instead of gdb order.
7566
473b99e5
MK
75672016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7568
7569 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
7570 check.
7571
1233c0ba
JB
75722016-02-10 Joel Brobecker <brobecker@adacore.com>
7573
7574 * NEWS: Create a new section for the next release branch.
7575 Rename the section of the current branch, now that it has
7576 been cut.
7577
d1dc0942
JB
75782016-02-10 Joel Brobecker <brobecker@adacore.com>
7579
7580 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
7581 * version.in: Bump version to 7.11.50.DATE-git.
7582
9ef9e6a6
KS
75832016-02-09 Keith Seitz <keiths@redhat.com>
7584
7585 PR breakpoints/19546
7586 * breakpoint.c (breakpoint_event_location_empty_p): New function.
7587 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
7588 instead of event_location_empty_p.
7589
39a67dc4
KS
75902016-02-09 Keith Seitz <keiths@redhat.com>
7591
7592 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
7593 string_to_event_location_basic instead of string_to_event_location.
7594
a96e36da
KS
75952016-02-09 Keith Seitz <keiths@redhat.com>
7596
7597 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
7598 leading whitespace and use string_to_event_location_basic instead
7599 of new_linespec_location.
7600
9f61929f
KS
76012016-02-09 Keith Seitz <keiths@redhat.com>
7602
7603 PR python/19506
7604 * python/py-breakpoint.c (bppy_init): Use
7605 string_to_event_location_basic instead of new_linespec_location.
7606
eeb1af43
KS
76072016-02-09 Keith Seitz <keiths@redhat.com>
7608
7609 * location.c (string_to_explicit_location): Note that "-p" is
7610 reserved for probe locations and return NULL for any input
7611 that starts with that.
7612 (string_to_event_location): Move "legacy" linespec code to ...
7613 (string_to_event_location_basic): ... here.
7614 * location.h (string_to_event_location): Update comment.
7615 (string_to_event_location_basic): New function.
7616
1e94266c
SM
76172016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7618
7619 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7620 to AC_OUTPUT. Remove "exit 0" at the end.
7621 * configure: Regenerate.
7622
2a7f3dff
PA
76232016-02-09 Pedro Alves <palves@redhat.com>
7624
7625 PR breakpoints/19548
7626 * breakpoint.c (create_overlay_event_breakpoint): Don't update
7627 global location list here.
7628 (create_longjmp_master_breakpoint)
7629 (create_std_terminate_master_breakpoint)
7630 (create_exception_master_breakpoint, create_jit_event_breakpoint)
7631 (update_breakpoint_locations):
7632 (breakpoint_re_set): Update global location list after all
7633 breakpoints are re-set.
7634
54887903
SM
76352016-02-08 Simon Marchi <simon.marchi@ericsson.com>
7636
7637 * remote.c (remote_register_number_and_offset): Remove unused
7638 variable(s).
7639 (remote_thread_always_alive): Likewise.
7640 (remote_update_thread_list): Likewise.
7641 (process_initial_stop_replies): Likewise.
7642 (remote_start_remote): Likewise.
7643 (remote_check_symbols): Likewise.
7644 (discard_pending_stop_replies): Likewise.
7645 (process_stop_reply): Likewise.
7646 (putpkt_binary): Likewise.
7647 (getpkt): Likewise.
7648 (remote_add_target_side_condition): Likewise.
7649 (remote_insert_breakpoint): Likewise.
7650 (remote_supports_stopped_by_sw_breakpoint): Likewise.
7651 (remote_supports_stopped_by_hw_breakpoint): Likewise.
7652 (remote_xfer_partial): Likewise.
7653 (remote_read_btrace): Likewise.
7654 (remote_async_serial_handler): Likewise.
7655 (remote_thread_events): Likewise.
7656 (_initialize_remote): Likewise.
7657
30914ca8
SM
76582016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
7659
7660 * varobj.h (varobj_delete): Remove dellist parameter, update and
7661 move documentation here.
7662 * varobj.c (struct cpstack, cppush, cppop): Remove.
7663 (delete_variable): Remove resultp (first) parameter.
7664 (delete_variable_1): Likewise.
7665 (varobj_delete): Remove dellist parameter and unused code.
7666 (update_dynamic_varobj_children): Adjust varobj_delete call.
7667 (update_type_if_necessary): Likewise.
7668 (varobj_set_visualizer): Likewise.
7669 (varobj_update): Likewise.
7670 (value_of_root): Likewise.
7671 (varobj_invalidate_iter): Likewise.
7672 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
7673
e42e5352
YQ
76742016-02-04 Yao Qi <yao.qi@linaro.org>
7675
7676 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
7677 0 before handling 'F' and set it back afterwards.
7678
6456a18b
SM
76792016-02-02 Simon Marchi <simon.marchi@ericsson.com>
7680
7681 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
7682
3f2f6cb5
WT
76832016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7684
7685 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
7686 New types.
7687 (compat_siginfo): New bound fields added.
7688 (compat_x32_siginfo): New field added.
7689 (cpt_si_addr_lsb): New define.
7690 (compat_siginfo_from_siginfo): Use nat_siginfo.
7691 (siginfo_from_compat_siginfo): Use nat_siginfo.
7692 (compat_x32_siginfo_from_siginfo): Likewise.
7693 (siginfo_from_compat_x32_siginfo): Likewise.
7694
96b5c49f
WT
76952016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7696
7697 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
7698 structure to the siginfo if extra_fields contains
7699 LINUX_SIGINFO_FIELD_ADDR_BND.
7700
190b495d
WT
77012016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7702
7703 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
7704 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
7705 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
7706 function.
7707 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
7708 x86_linux_get_siginfo_type for the amd64 abi.
7709 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
7710 function.
7711 (i386_linux_init_abi): Add new function at the i386 ABI
7712 initialization.
7713
43564574
WT
77142016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7715
7716 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
7717 (linux_siginfo_extra_fields): New enum type.
7718 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
7719 (linux_get_siginfo_type): Use new function.
7720
93813b37
WT
77212016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7722
7723 * nat/amd64-linux-siginfo.c: New file.
7724 * nat/amd64-linux-siginfo.h: New file.
7725 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
7726 (amd64-linux-siginfo.o): New rule.
7727 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
7728 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
7729 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7730 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
7731 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
7732 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
7733 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
7734 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
7735
5fdf6324
AB
77362016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
7737
7738 * value.c (max_value_size): New variable.
7739 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
7740 (set_max_value_size): New function.
7741 (show_max_value_size): New function.
7742 (check_type_length_before_alloc): New function.
7743 (allocate_value_contents): Call check_type_length_before_alloc.
7744 (set_value_enclosing_type): Likewise.
7745 (_initialize_values): Add set/show handler for max-value-size.
7746 * NEWS: Mention new set/show command.
7747
5fa13070
SM
77482016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
7749
7750 * varobj.h (struct varobj): Fix typos in comments.
7751 (struct lang_varobj_ops): Likewise.
7752 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
7753 (varobj_create): Move misplaced comment.
7754
a2e3e93f
SM
77552016-01-29 Simon Marchi <simon.marchi@ericsson.com>
7756
7757 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
7758 to for include additional lines.
7759 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
7760
56e374a6
SM
77612016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7762
7763 * gnulib/import/Makefile.am: Regenerate.
7764 * gnulib/import/Makefile.in: Regenerate.
7765 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7766 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
7767
8424cc97
SM
77682016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7769
7770 * remote.c (skip_to_semicolon): Remove.
7771 (remote_parse_stop_reply): Use strchrnul instead of
7772 skip_to_semicolon.
7773 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
7774 strchrnul.
7775 * gnulib/aclocal.m4: Regenerate.
7776 * gnulib/config.in: Regenerate.
7777 * gnulib/configure: Regenerate.
7778 * gnulib/import/Makefile.am: Regenerate.
7779 * gnulib/import/Makefile.in: Regenerate.
7780 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7781 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7782 * gnulib/import/m4/rawmemchr.m4: New file.
7783 * gnulib/import/m4/strchrnul.m4: New file.
7784 * gnulib/import/rawmemchr.c: New file.
7785 * gnulib/import/rawmemchr.valgrind: New file.
7786 * gnulib/import/strchrnul.c: New file.
7787 * gnulib/import/strchrnul.valgrind: New file.
7788
4a6a1ed4
YQ
77892016-01-28 Yao Qi <yao.qi@linaro.org>
7790
7791 * breakpoint.c (build_target_command_list): Don't call continue
7792 if aexpr is NULL.
7793 (build_target_condition_list): Likewise.
7794
94715c17
KB
77952016-01-27 Kevin Buettner <kevinb@redhat.com>
7796
7797 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
7798 bytes as aggregates.
7799
c07af0ab
JB
78002016-01-27 Joel Brobecker <brobecker@adacore.com>
7801
7802 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
7803 Linespec Maintainers.
7804
41548caa
SM
78052016-01-26 Simon Marchi <simon.marchi@ericsson.com>
7806
7807 * common/common-utils.c (skip_spaces): Fix comment.
7808 (skip_to_space_const): Likewise.
7809
4d18591b
YQ
78102016-01-25 Yao Qi <yao.qi@linaro.org>
7811
7812 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7813 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
7814 (arm_deal_with_atomic_sequence_raw): Likewise.
7815 (thumb_get_next_pcs_raw): Likewise.
7816 (arm_get_next_pcs_raw): Likewise.
7817 (arm_get_next_pcs): Remove argument pc. Callers updated.
7818 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
7819
a579cd9a
MW
78202016-01-25 Mark Wielaard <mjw@redhat.com>
7821
7822 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
7823 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
7824 if statement.
7825 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
7826 statement block by introducing an else.
7827 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
7828 of return statements.
7829 (record_linux_msghdr): Likewise.
7830
a2077e25
PA
78312016-01-25 Pedro Alves <palves@redhat.com>
7832
7833 PR threads/19461
7834 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
7835 parent/child running states.
7836
1d2736d4
PA
78372016-01-25 Pedro Alves <palves@redhat.com>
7838
7839 PR gdb/19494
7840 * linux-nat.c (kill_one_lwp): New, factored out from ...
7841 (kill_callback): ... this.
7842 (kill_wait_callback): New, factored out from ...
7843 (kill_wait_one_lwp): ... this.
7844 (kill_unfollowed_fork_children): New function.
7845 (linux_nat_kill): Use it.
7846
b2bae2f7
JB
78472016-01-22 John Baldwin <jhb@FreeBSD.org>
7848
7849 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
7850
d86feca3
YQ
78512016-01-22 Yao Qi <yao.qi@linaro.org>
7852
7853 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
7854 instead of warning.
7855 (store_fpregs, fetch_regs, store_regs): Likewise.
7856 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
7857 (fetch_vfp_regs, store_vfp_regs): Likewise.
7858
b35a8b2f
DE
78592016-01-21 Doug Evans <dje@google.com>
7860
7861 * breakpoint.c (init_breakpoint_sal): Add comment.
7862
f906b857
MK
78632016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7864
7865 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
7866
4a099de2
AB
78672016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
7868
7869 * disasm.c (maybe_add_dis_line_entry): Rename to...
7870 (add_dis_line_entry): ...this, and update header comment.
7871 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
7872
a994041d
PA
78732016-01-21 Pedro Alves <palves@redhat.com>
7874
7875 * Makefile.in (COMPILER_CFLAGS): New.
7876 (CXXFLAGS): Get it from configure.
7877 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
7878 instead of CFLAGS.
7879 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
7880 COMPILER_CFLAGS.
7881 * configure: Regenerate.
7882
305e13e6
JB
78832016-01-21 Joel Brobecker <brobecker@adacore.com>
7884
7885 * location.h (new_address_location): Add new parameters
7886 "addr_string" and "addr_string_len".
7887 (get_address_string_location): Add declaration.
7888 * location.c (new_address_location): Add new parameters
7889 "addr_string" and "addr_string_len". If not NULL, store
7890 a copy of the addr_string in the new location as well.
7891 (get_address_string_location): New function.
7892 (string_to_event_location): Update call to new_address_location.
7893 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
7894 Save the event location in the parser's state before
7895 passing it to convert_address_location_to_sals.
7896 * breakpoint.c (create_thread_event_breakpoint): Update call
7897 to new_address_location.
7898 (init_breakpoint_sal): Get the event location's string, if any,
7899 and use it to update call to new_address_location.
7900 * python/py-finishbreakpoint.c (bpfinishpy_init):
7901 Update call to new_address_location.
7902 * spu-tdep.c (spu_catch_start): Likewise.
7903
7904 * config/djgpp/fnchange.lst: Add entries for
7905 gdb/testsuite/gdb.base/break-fun-addr1.c and
7906 gdb/testsuite/gdb.base/break-fun-addr2.c.
7907
f7a6a40d
YQ
79082016-01-21 Yao Qi <yao.qi@linaro.org>
7909
7910 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
7911 is_thumb and set it according to CPSR saved on the stack.
7912 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
7913 arm_linux_sigreturn_next_pc.
7914
5f5dfff6
SM
79152016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7916
7917 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
7918 Fix enumerators sort key function.
7919
be56871e
JB
79202016-01-20 Joel Brobecker <brobecker@adacore.com>
7921
b12e5614 7922 * printcmd.c (print_scalar_formatted): Move binary operator from
be56871e
JB
7923 end of line to beginning of next line. Adjust formatting
7924 accordingly.
7925
f2feec98
JB
79262016-01-19 John Baldwin <jhb@FreeBSD.org>
7927
7928 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
7929 "len" with sysctl.
7930
20a0aab3
JB
79312016-01-19 John Baldwin <jhb@FreeBSD.org>
7932
7933 * fbsd-tdep.c (find_stop_signal): Remove.
7934 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
7935 <stop_signal>: New field.
7936 <abort_iteration>: New field.
7937 (fbsd_collect_regset_section_cb): Use new fields.
7938 (fbsd_collect_thread_registers): New function.
7939 (struct fbsd_corefile_thread_data): New structure.
7940 (fbsd_corefile_thread): New function.
7941 (fbsd_make_corefile_notes): Use new function to dump notes for each
7942 non-exited thread in a process.
7943
6e9567fe
JB
79442016-01-19 John Baldwin <jhb@FreeBSD.org>
7945
7946 * configure.ac: Check for support for LWP names on FreeBSD.
7947 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
7948 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
7949 (fbsd_fetch_kinfo_proc): Move function earlier.
7950 [PT_LWPINFO] (fbsd_thread_alive): New function.
7951 [PT_LWPINFO] (fbsd_pid_to_str): New function.
7952 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
7953 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
7954 [PT_LWPINFO] (fbsd_add_threads): New function.
7955 [PT_LWPINFO] (fbsd_update_thread_list): New function.
7956 [PT_LWPINFO] New variable super_resume.
7957 [PT_LWPINFO] (resume_one_thread_cb): New function.
7958 [PT_LWPINFO] (resume_all_threads_cb): New function.
7959 [PT_LWPINFO] (fbsd_resume): New function.
7960 (fbsd_remember_child): Save full ptid instead of plain pid.
7961 (fbsd_is_child_pending): Return ptid of saved child process.
7962 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
7963 first stop.
7964 [PT_LWP_EVENTS] Handle LWP events.
7965 [TDP_RFPPWAIT] Include LWP in child ptid.
7966 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
7967 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
7968 Add threads for existing processes.
7969 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
7970 "fbsd_thread_alive".
7971 Set "to_pid_to_str" to "fbsd_pid_to_str".
7972 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
7973 "fbsd_thread_name".
7974 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
7975 Set "to_has_thread_control" to "tc_schedlock".
7976 Set "to_resume" to "fbsd_resume".
7977 (_initialize_fbsd_nat): New function.
7978 * configure: Regenerate.
7979 * config.in: Regenerate.
7980
94309df7
JB
79812016-01-19 John Baldwin <jhb@FreeBSD.org>
7982
7983 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7984 get_ptrace_pid.
7985 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
7986 (amd64bsd_dr_get): Use get_ptrace_pid.
7987 (amd64bsd_dr_set): Use get_ptrace_pid.
7988 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
7989 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
7990 (i386bsd_dr_get): Use get_ptrace_pid.
7991 (i386bsd_dr_set): Use get_ptrace_pid.
7992 * inf-ptrace.c (get_ptrace_pid): Export.
7993 * inf-ptrace.h (get_ptrace_pid): Declare.
7994 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
7995 (ppcfbsd_store_inferior_registers): Use lwp id.
7996
79117428
JB
79972016-01-19 John Baldwin <jhb@FreeBSD.org>
7998
7999 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
8000 (fbsd_core_thread_name): New function.
8001 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
8002 Add "core_thread_name" gdbarch method.
8003
4dfc5dbc
JB
80042016-01-19 John Baldwin <jhb@FreeBSD.org>
8005
8006 * corelow.c (core_thread_name): New function.
8007 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
8008 target op.
8009 * gdbarch.sh (core_thread_name): New gdbarch callback.
8010 * gdbarch.h: Re-generate.
8011 * gdbarch.c: Re-generate.
8012
10e3ed90
SM
80132016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
8014
8015 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
8016 convert gdb.Value to integer type using int().
8017
a6e69c1f
JB
80182016-01-19 John Baldwin <jhb@FreeBSD.org>
8019
8020 * configure.ac: Include <sys/types.h when checking for "r_fs" in
8021 "struct reg".
8022 * configure: Regenerate.
8023
37e42b4f
PA
80242016-01-19 Pedro Alves <palves@redhat.com>
8025
8026 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
8027 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
8028 current program space down to linespec decoding and breakpoint
8029 location updating.
8030 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
8031 decode_line_full.
8032 (until_break_command): Adjust calls to decode_line_1.
8033 (base_breakpoint_decode_location, bkpt_decode_location): Add
8034 'search_pspace' parameter. Pass it along.
8035 (bkpt_probe_create_sals_from_location): Adjust calls to
8036 parse_probes.
8037 (tracepoint_decode_location, tracepoint_probe_decode_location)
8038 (strace_marker_decode_location): Add 'search_pspace' parameter.
8039 Pass it along.
8040 (all_locations_are_pending): Rewrite to take a breakpoint and
8041 program space as arguments instead.
8042 (hoist_existing_locations): New function.
8043 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
8044 hoist_existing_locations instead of always removing all locations,
8045 and adjust to all_locations_are_pending change.
8046 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
8047 Don't disable the breakpoint if there are other locations in
8048 another program space.
8049 (breakpoint_re_set_default): Adjust to pass down the current
8050 program space as filter program space.
8051 (decode_location_default): Add 'search_pspace' parameter and pass
8052 it along.
8053 (prepare_re_set_context): Don't switch program space here.
8054 (breakpoint_re_set): Use save_current_space_and_thread instead of
8055 save_current_program_space.
8056 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
8057 'search_pspace' parameter.
8058 (update_breakpoint_locations): Add 'filter_pspace' parameter.
8059 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
8060 decode_line_1.
8061 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
8062 program space as filter program space.
8063 * linespec.c (struct linespec_state) <search_pspace>: New field.
8064 (create_sals_line_offset, convert_explicit_location_to_sals)
8065 (parse_linespec): Pass the search program space down.
8066 (linespec_state_constructor): Add 'search_pspace' parameter.
8067 Store it.
8068 (linespec_parser_new): Add 'search_pspace' parameter and pass it
8069 along.
8070 (linespec_lex_to_end): Adjust.
8071 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
8072 and pass it along.
8073 (decode_line_with_last_displayed): Adjust.
8074 (collect_symtabs_from_filename, symtabs_from_filename): New
8075 'search_pspace' parameter. Use it.
8076 (find_function_symbols): Pass the search program space down.
8077 * linespec.h (decode_line_1, decode_line_full): Add
8078 'search_pspace' parameter.
8079 * probe.c (parse_probes_in_pspace): New function, factored out
8080 from ...
8081 (parse_probes): ... this. Add 'search_pspace' parameter and use
8082 it.
8083 * probe.h (parse_probes): Add pspace' parameter.
8084 * python/python.c (gdbpy_decode_line): Adjust.
8085 * tracepoint.c (scope_info): Adjust.
8086
100b4f2e
MR
80872016-01-18 Maciej W. Rozycki <macro@imgtec.com>
8088
8089 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
8090 instruction support.
8091 (micromips_next_pc): Likewise.
8092 (micromips_scan_prologue): Likewise.
8093 (micromips_deal_with_atomic_sequence): Likewise.
8094 (micromips_stack_frame_destroyed_p): Likewise.
8095 (mips_breakpoint_from_pc): Likewise.
8096
3f7f3650
MR
80972016-01-18 Maciej W. Rozycki <macro@imgtec.com>
8098
8099 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
8100 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
8101
f303dbd6
PA
81022016-01-18 Pedro Alves <palves@redhat.com>
8103
8104 * NEWS: Mention that GDB now displays the ID and name of the
8105 thread that hit a breakpoint or received a signal.
8106 * break-catch-sig.c (signal_catchpoint_print_it): Use
8107 maybe_print_thread_hit_breakpoint.
8108 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
8109 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
8110 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
8111 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
8112 (print_it_catch_exec, print_it_ranged_breakpoint)
8113 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
8114 Use maybe_print_thread_hit_breakpoint.
8115 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
8116 * gdbthread.h (show_thread_that_caused_stop): Declare.
8117 * infrun.c (print_signal_received_reason): Print which thread
8118 received signal.
8119 * thread.c (show_thread_that_caused_stop): New function.
8120
eb0edac8
GB
81212016-01-18 Gary Benson <gbenson@redhat.com>
8122
8123 * nat/linux-namespaces.c (do_fork): New function.
8124 (linux_mntns_get_helper): Use the above.
8125
dc365182
JH
81262016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
8127
8128 Pushed by Joel Brobecker <brobecker@adacore.com>.
8129 PR gdb/19208
8130 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
8131 if the function has no name.
8132
f74f61cb
SL
81332016-01-15 Sandra Loosemore <sandra@codesourcery.com>
8134
8135 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
8136 Conditionalize for Windows host.
8137 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
8138 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
8139 (phony_iconv_open): Handle both UTF-32 endiannesses.
8140 (phony_iconv): Likewise. Check for output overflow and clean up
8141 out-of-input cases. Correct adjustment to input buffer pointer.
8142 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
8143 phony_iconv_open.
8144
71ef29a8
PA
81452016-01-15 Pedro Alves <palves@redhat.com>
8146
8147 * NEWS: Mention star wildcard ranges.
8148 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
8149 (number_range_setup_range): New function.
8150 * cli/cli-utils.h (number_range_setup_range): New declaration.
8151 * thread.c (thread_apply_command): Support star TID ranges.
8152 * tid-parse.c (tid_range_parser_finished)
8153 (tid_range_parser_string, tid_range_parser_skip)
8154 (get_tid_or_range, get_tid_or_range): Handle
8155 TID_RANGE_STATE_STAR_RANGE.
8156 (tid_range_parser_star_range): New function.
8157 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
8158 New value.
8159 (tid_range_parser_star_range): New declaration.
8160
3f5b7598
PA
81612016-01-15 Pedro Alves <palves@redhat.com>
8162
8163 * thread.c (thread_apply_command): Use the tid range parser to
8164 advance past the thread ID list.
8165 * tid-parse.c (get_positive_number_trailer): New function.
8166 (parse_thread_id): Use it.
8167 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
8168 thread ID error.
8169 (get_tid_or_range): Detect negative values. Return 0 instead of
8170 throwing invalid thread ID error.
8171
e7cf25a8
YQ
81722016-01-14 Yao Qi <yao.qi@linaro.org>
8173
8174 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
8175 Declare.
8176 (arm_linux_get_next_pcs_ops): Install
8177 arm_linux_get_next_pcs_syscall_next_pc.
8178 (arm_linux_syscall_next_pc): Change to ...
8179 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
8180 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
8181 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
8182 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
8183 call tdep->syscall_next_pc.
8184 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
8185 (arm_get_next_pcs_syscall_next_pc): Remove.
8186
c0518081
YQ
81872016-01-14 Yao Qi <yao.qi@linaro.org>
8188
8189 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
8190 * thread.c (do_captured_thread_select): Cast to const char *.
8191
1b451dda
YQ
81922016-01-14 Yao Qi <yao.qi@linaro.org>
8193
8194 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
8195 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
8196 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
8197 instead.
8198 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
8199 <arm_thumb2_breakpoint>: Remove.
8200 <has_thumb2_breakpoint>: New field.
8201 (arm_get_next_pcs_ctor): Update declaration.
8202 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
8203 1 to arm_get_next_pcs_ctor.
8204 * arm-tdep.c (arm_software_single_step): Pass 0 to
8205 arm_get_next_pcs_ctor.
8206
bc06e0b1
UW
82072016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
8208
8209 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
8210
4e7b8bea
YQ
82112016-01-13 Yao Qi <yao.qi@linaro.org>
8212
8213 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
8214 byte_order_for_code to read instruction.
8215
663f6d42
PA
82162016-01-13 Pedro Alves <palves@redhat.com>
8217
8218 * NEWS: Mention $_gthread.
8219 * gdbthread.h (struct thread_info) <global_num>: Mention
8220 $_gthread.
8221 * thread.c (thread_num_make_value_helper): New function.
8222 (thread_id_make_value): Delete.
8223 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
8224 New.
8225 (thread_funcs): Adjust.
8226 (gthread_funcs): New.
8227 (_initialize_thread): Register $_gthread variable.
8228
c84f6bbf
PA
82292016-01-13 Pedro Alves <palves@redhat.com>
8230
8231 * NEWS: Mention "info threads -gid".
8232 * gdbthread.h (struct thread_info) <global_num>: Mention "info
8233 threads -gid".
8234 * thread.c (info_threads_command): Handle "-gid".
8235 (_initialize_thread): Adjust "info threads" help string to mention
8236 -gid.
8237
22a02324
PA
82382016-01-13 Pedro Alves <palves@redhat.com>
8239
8240 * NEWS: Mention InferiorThread.global_num.
8241 * python/py-infthread.c (thpy_get_global_num): New function.
8242 (thread_object_getset): Register "global_num".
8243
5d5658a1
PA
82442016-01-13 Pedro Alves <palves@redhat.com>
8245
8246 * NEWS: Mention that thread IDs are now per inferior and global
8247 thread IDs.
8248 * Makefile.in (SFILES): Add tid-parse.c.
8249 (COMMON_OBS): Add tid-parse.o.
8250 (HFILES_NO_SRCDIR): Add tid-parse.h.
8251 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
8252 * breakpoint.c (insert_breakpoint_locations)
8253 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
8254 (print_one_breakpoint_location, set_longjmp_breakpoint)
8255 (check_longjmp_breakpoint_for_call_dummy)
8256 (set_momentary_breakpoint): Adjust to use global IDs.
8257 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
8258 (until_break_command, longjmp_bkpt_dtor)
8259 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
8260 to use global IDs.
8261 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
8262 ptid_to_global_thread_id.
8263 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8264 * gdbthread.h (struct thread_info): Rename field 'num' to
8265 'global_num. Add new fields 'per_inf_num' and 'inf'.
8266 (thread_id_to_pid): Rename thread_id_to_pid to
8267 global_thread_id_to_ptid.
8268 (pid_to_thread_id): Rename to ...
8269 (ptid_to_global_thread_id): ... this.
8270 (valid_thread_id): Rename to ...
8271 (valid_global_thread_id): ... this.
8272 (find_thread_id): Rename to ...
8273 (find_thread_global_id): ... this.
8274 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
8275 (print_thread_info): Add comment.
8276 * tid-parse.h: New file.
8277 * tid-parse.c: New file.
8278 * infcmd.c (step_command_fsm_prepare)
8279 (step_command_fsm_should_stop): Adjust to use the global thread
8280 ID.
8281 (until_next_command, until_next_command)
8282 (finish_command_fsm_should_stop): Adjust to use the global thread
8283 ID.
8284 (attach_post_wait): Adjust to check the inferior number too.
8285 * inferior.h (struct inferior) <highest_thread_num>: New field.
8286 * infrun.c (handle_signal_stop)
8287 (insert_exception_resume_breakpoint)
8288 (insert_exception_resume_from_probe): Adjust to use the global
8289 thread ID.
8290 * record-btrace.c (record_btrace_open): Use global thread IDs.
8291 * remote.c (process_initial_stop_replies): Also consider the
8292 inferior number.
8293 * target.c (target_pre_inferior): Clear the inferior's highest
8294 thread num.
8295 * thread.c (clear_thread_inferior_resources): Adjust to use the
8296 global thread ID.
8297 (new_thread): New inferior parameter. Adjust to use it. Set both
8298 the thread's global ID and the thread's per-inferior ID.
8299 (add_thread_silent): Adjust.
8300 (find_thread_global_id): New.
8301 (find_thread_id): Make static. Adjust to rename.
8302 (valid_thread_id): Rename to ...
8303 (valid_global_thread_id): ... this.
8304 (pid_to_thread_id): Rename to ...
8305 (ptid_to_global_thread_id): ... this.
8306 (thread_id_to_pid): Rename to ...
8307 (global_thread_id_to_ptid): ... this. Adjust.
8308 (first_thread_of_process): Adjust.
8309 (do_captured_list_thread_ids): Adjust to use global thread IDs.
8310 (should_print_thread): New function.
8311 (print_thread_info): Rename to ...
8312 (print_thread_info_1): ... this, and add new show_global_ids
8313 parameter. Handle it. Iterate over inferiors.
8314 (print_thread_info): Reimplement as wrapper around
8315 print_thread_info_1.
8316 (show_inferior_qualified_tids): New function.
8317 (print_thread_id): Use it.
8318 (tp_array_compar): Compare inferior numbers too.
8319 (thread_apply_command): Use tid_range_parser.
8320 (do_captured_thread_select): Use parse_thread_id.
8321 (thread_id_make_value): Adjust.
8322 (_initialize_thread): Adjust "info threads" help string.
8323 * varobj.c (struct varobj_root): Update comment.
8324 (varobj_create): Adjust to use global thread IDs.
8325 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
8326 * windows-tdep.c (display_tib): No longer accept an argument.
8327 * cli/cli-utils.c (get_number_trailer): Make extern.
8328 * cli/cli-utils.h (get_number_trailer): Declare.
8329 (get_number_const): Adjust documentation.
8330 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
8331 thread IDs.
8332 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
8333 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
8334 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
8335 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
8336 Likewise.
8337 * python/py-breakpoint.c (bppy_set_thread): Likewise.
8338 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8339 * python/py-infthread.c (thpy_get_num): Add comment and return the
8340 per-inferior thread ID.
8341 (thread_object_getset): Update comment of "num".
8342
43792cf0
PA
83432016-01-13 Pedro Alves <palves@redhat.com>
8344
8345 * breakpoint.c (remove_threaded_breakpoints)
8346 (print_one_breakpoint_location): Use print_thread_id.
8347 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8348 (btrace_fetch, btrace_clear): Use print_thread_id.
8349 * common/print-utils.c (CELLSIZE): Delete.
8350 (get_cell): Rename to ...
8351 (get_print_cell): ... this and made extern. Adjust call callers.
8352 Adjust to use PRINT_CELL_SIZE.
8353 * common/print-utils.h (get_print_cell): Declare.
8354 (PRINT_CELL_SIZE): New.
8355 * gdbthread.h (print_thread_id): Declare.
8356 * infcmd.c (signal_command): Use print_thread_id.
8357 * inferior.c (print_inferior): Use print_thread_id.
8358 * infrun.c (handle_signal_stop)
8359 (insert_exception_resume_breakpoint)
8360 (insert_exception_resume_from_probe)
8361 (print_signal_received_reason): Use print_thread_id.
8362 * record-btrace.c (record_btrace_info)
8363 (record_btrace_resume_thread, record_btrace_cancel_resume)
8364 (record_btrace_step_thread, record_btrace_wait): Use
8365 print_thread_id.
8366 * thread.c (thread_apply_all_command): Use print_thread_id.
8367 (print_thread_id): New function.
8368 (thread_apply_command): Use print_thread_id.
8369 (thread_command, thread_find_command, do_captured_thread_select):
8370 Use print_thread_id.
8371
84654457
PA
83722016-01-13 Pedro Alves <palves@redhat.com>
8373
8374 * NEWS: Mention InferiorThread.inferior.
8375 * python/py-infthread.c (thpy_get_inferior): New.
8376 (thread_object_getset): Register "inferior".
8377
e3940304
PA
83782016-01-13 Pedro Alves <palves@redhat.com>
8379
8380 * NEWS: Mention $_inferior.
8381 * inferior.c (inferior_id_make_value): New.
8382 (inferior_funcs): New.
8383 (_initialize_inferior): Create $_inferior variable.
8384
a911d87a
PA
83852016-01-13 Pedro Alves <palves@redhat.com>
8386
8387 PR breakpoints/19388
8388 * frame.c (get_current_frame): Use validate_registers_access.
8389 * gdbthread.h (validate_registers_access): Declare.
8390 * infrun.c (validate_siginfo_access): Delete.
8391 (siginfo_value_read, siginfo_value_write): Use
8392 validate_registers_access.
8393 * thread.c (validate_registers_access): New function.
8394
82075af2
JS
83952016-01-12 Josh Stone <jistone@redhat.com>
8396 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8397
8398 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
8399 syscall_entry and syscall_return stop reasons. Mention GDB
8400 support for remote catch syscall.
8401 * remote.c (PACKET_QCatchSyscalls): New enum.
8402 (remote_set_syscall_catchpoint): New function.
8403 (remote_protocol_features): New element for QCatchSyscalls.
8404 (remote_parse_stop_reply): Parse syscall_entry/return stops.
8405 (init_remote_ops): Install remote_set_syscall_catchpoint.
8406 (_initialize_remote): Config QCatchSyscalls.
8407 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
8408
d18547d8
YQ
84092016-01-12 Yao Qi <yao.qi@linaro.org>
8410
8411 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
8412 to gdb_byte * and pass to linux_fork_to_function.
8413
ba4dd7c4
YQ
84142016-01-12 Yao Qi <yao.qi@linaro.org>
8415
8416 * nat/linux-ptrace.c (linux_fork_to_function): Change type
8417 of argument 'function'.
8418 (linux_grandchild_function): Change return type to 'int'.
8419 Change child_stack's type to 'void *'.
8420 (linux_child_function): Likewise.
8421
bc504a31
PA
84222016-01-12 Pedro Alves <palves@redhat.com>
8423
8424 Remove use of the registered trademark symbol throughout.
8425
5eddd578
TS
84262016-01-12 Thomas Schwinge <thomas@codesourcery.com>
8427
8428 * reply_mig_hack.awk: Rewrite one regular expression.
8429
b835bb52
MF
84302016-01-11 Mike Frysinger <vapier@gentoo.org>
8431
8432 * acinclude.m4: Include new warning.m4 file.
8433 * configure: Regenerated.
8434 * configure.ac: Move all warning logic ...
8435 * warning.m4: ... here.
8436
2f99e8fc
YQ
84372016-01-08 Yao Qi <yao.qi@linaro.org>
8438
8439 * extension.c: Include target.h.
8440 (set_active_ext_lang): Only call install_gdb_sigint_handler,
8441 check_quit_flag, and set_quit_flag if target_terminal_is_ours
8442 returns false.
8443 (restore_active_ext_lang): Likewise.
8444 * target.c (target_terminal_is_ours): New function.
8445 * target.h (target_terminal_is_ours): Declare.
8446
5dd05630
MR
84472016-01-07 Maciej W. Rozycki <macro@imgtec.com>
8448
8449 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
8450 to `err' in the little-endian leg.
8451
f5aa3069
YQ
84522016-01-06 Yao Qi <yao.qi@linaro.org>
8453
8454 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
8455 lines below.
8456 (thumb_get_next_pcs_raw): Make it static.
8457 (arm_get_next_pcs_raw): Likewise.
8458 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
8459 declaration.
8460 (arm_get_next_pcs_raw): Likewise.
8461
bf69ad5a
MF
84622016-01-05 Mike Frysinger <vapier@gentoo.org>
8463
8464 * version.in: Change cvs to git.
8465
66750332
MF
84662016-01-05 Mike Frysinger <vapier@gentoo.org>
8467
8468 * configure.tgt (score-*-*): Delete gdb_sim assignment.
8469
976102cd
PA
84702016-01-05 Pedro Alves <palves@redhat.com>
8471
8472 PR sim/13418
8473 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
8474 the target is powerpc*.
fa89c126
PA
8475 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
8476 of WITH_SIM.
976102cd
PA
8477 * configure: Regenerate.
8478 * config.in: Regenerate.
8479
43368e1d
MM
84802016-01-04 Markus Metzger <markus.t.metzger@intel.com>
8481
8482 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
8483
32273fe6
MF
84842016-01-02 Mike Frysinger <vapier@gentoo.org>
8485
8486 * configure.tgt (powerpc*-*-*): Delete test call and
8487 always assign gdb_sim.
8488
618f726f
JB
84892016-01-01 Joel Brobecker <brobecker@adacore.com>
8490
8491 Update year range in copyright notice of all files.
8492
edd88788
JB
84932016-01-01 Joel Brobecker <brobecker@adacore.com>
8494
8495 * top.c (print_gdb_version): Change copyright year in version
8496 message.
8497
0f7b3ef4 84982016-01-01 Joel Brobecker <brobecker@adacore.com>
aec47d1d 8499
0f7b3ef4 8500 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
aec47d1d 8501
0f7b3ef4 8502For older changes see ChangeLog-2015.
c906108c
SS
8503\f
8504Local Variables:
8505mode: change-log
8506left-margin: 8
8507fill-column: 74
8508version-control: never
57da7796 8509coding: utf-8
c906108c 8510End:
This page took 2.417973 seconds and 4 git commands to generate.