gdb: Remove support for obsolete OSABIs and a.out
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1736a7bd
PA
12016-12-09 Pedro Alves <palves@redhat.com>
2
3 * Makefile.in (ALL_TARGET_OBS): Remove vax-obsd-tdep.o.
4 * alpha-fbsd-tdep.c (_initialize_alphafbsd_tdep): Adjust.
5 * alpha-nbsd-tdep.c: Move comment to _initialize_alphanbsd_tdep.
6 (alphanbsd_core_osabi_sniffer): Delete.
7 (_initialize_alphanbsd_tdep): No longer handle a.out.
8 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Adjust.
9 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Adjust.
10 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Adjust.
11 * amd64-obsd-tdep.c (amd64obsd_supply_regset)
12 (amd64obsd_combined_regset)
13 (amd64obsd_iterate_over_regset_sections, amd64obsd_core_init_abi):
14 Delete.
15 (_initialize_amd64obsd_tdep): Don't handle a.out.
16 * arm-nbsd-nat.c (struct md_core, fetch_core_registers)
17 (arm_netbsd_core_fns): Delete.
18 (_initialize_arm_netbsd_nat): Don't register arm_netbsd_core_fns.
19 * arm-nbsd-tdep.c (arm_netbsd_aout_init_abi)
20 (arm_netbsd_aout_osabi_sniffer): Delete.
21 (_initialize_arm_netbsd_tdep): Don't handle a.out.
22 * arm-obsd-tdep.c (armobsd_core_osabi_sniffer): Delete.
23 (_initialize_armobsd_tdep): Don't handle a.out.
24 * arm-tdep.c (arm_gdbarch_init): Remove bfd_target_aout_flavour
25 case.
26 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Remove
27 SunOS a.out handling.
28 * configure.tgt (vax-*-netbsd* | vax-*-knetbsd*-gnu): Remove
29 vax-obsd-tdep.o from gdb_target_objs.
30 (vax-*-openbsd*): Likewise.
31 (*-*-freebsd*): Adjust default gdb_osabi.
32 (*-*-openbsd*): Likewise.
33 * dbxread.c (block_address_function_relative): Delete.
34 (dbx_symfile_read): Remove reference to
35 block_address_function_relative.
36 (dbx_symfile_read): Don't call read_dbx_dynamic_symtab.
37 (read_dbx_dynamic_symtab): Delete.
38 (process_one_symbol): Remove references to
39 block_address_function_relative.
40 * defs.h (GDB_OSABI_FREEBSD_AOUT, GDB_OSABI_NETBSD_AOUT): Remove.
41 (GDB_OSABI_FREEBSD_ELF): Rename to ...
42 (GDB_OSABI_FREEBSD): ... this.
43 (GDB_OSABI_NETBSD_ELF): Rename to ...
44 (GDB_OSABI_NETBSD): ... this.
45 (GDB_OSABI_OPENBSD_ELF): Rename to ...
46 (GDB_OSABI_OPENBSD): ... this.
47 (GDB_OSABI_HPUX_ELF, GDB_OSABI_HPUX_SOM): Remove.
48 * fbsd-tdep.c: Adjust comment.
49 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Adjust.
50 * hppa-obsd-tdep.c (GDB_OSABI_NETBSD_CORE): Delete.
51 (hppaobsd_core_osabi_sniffer): Delete.
52 (_initialize_hppabsd_tdep): Don't handle a.out.
53 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't handle
54 GDB_OSABI_HPUX_SOM.
55 (hppa_gdbarch_init): Likewise.
56 * i386-bsd-tdep.c (i386bsd_aout_osabi_sniffer)
57 (i386bsd_core_osabi_sniffer, _initialize_i386bsd_tdep): Delete.
58 * i386-fbsd-tdep.c (i386fbsdaout_init_abi): Delete. Merge bits
59 with ...
60 (i386fbsd_init_abi): ... this.
61 (_initialize_i386fbsd_tdep): Don't handle a.out.
62 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Adjust.
63 * i386-obsd-tdep.c (i386obsd_aout_supply_regset)
64 (i386obsd_aout_gregset)
65 (i386obsd_aout_iterate_over_regset_sections): Delete.
66 (i386obsd_init_abi): Merge with i386obsd_elf_init_abi.
67 (i386obsd_aout_init_abi): Delete.
68 (_initialize_i386obsd_tdep): Don't handle a.out.
69 * m68k-bsd-tdep.c (m68kobsd_sigtramp_cache_init)
70 (m68kobsd_sigtramp): Delete.
71 (m68kbsd_init_abi): Merge with ...
72 (m68kbsd_elf_init_abi): ... this, and delete it.
73 (m68kbsd_aout_init_abi): Delete.
74 (m68kbsd_aout_osabi_sniffer, m68kbsd_core_osabi_sniffer): Delete.
75 (_initialize_m68kbsd_tdep): Don't handle a.out.
76 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Adjust.
77 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Adjust.
78 * osabi.c (gdb_osabi_names): Remove "a.out" entries. Drop "ELF"
79 suffixes. Remove "HP-UX" entries.
80 (generic_elf_osabi_sniff_abi_tag_sections): Adjust.
81 (generic_elf_osabi_sniffer): No longer handle GDB_OSABI_HPUX_ELF.
82 Adjust.
83 (_initialize_ppcfbsd_tdep): Adjust.
84 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Adjust.
85 * ppc-obsd-tdep.c (GDB_OSABI_NETBSD_CORE)
86 (ppcobsd_core_osabi_sniffer): Delete.
87 (_initialize_ppcobsd_tdep): Don't handle a.out.
88 * rs6000-tdep.c (rs6000_gdbarch_init): Adjust.
89 * sh-nbsd-tdep.c (GDB_OSABI_NETBSD_CORE)
90 (shnbsd_core_osabi_sniffer): Delete.
91 (_initialize_shnbsd_tdep): Don't handle a.out.
92 * solib.c (clear_solib): Don't handle SunOS/a.out.
93 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Make extern.
94 (sparc32nbsd_aout_init_abi): Delete.
95 (sparc32nbsd_elf_init_abi): Merged into sparc32nbsd_init_abi.
96 (sparcnbsd_aout_osabi_sniffer): Delete.
97 (GDB_OSABI_NETBSD_CORE, sparcnbsd_core_osabi_sniffer): Delete.
98 (_initialize_sparcnbsd_tdep): No longer handle a.out.
99 * sparc-obsd-tdep.c (sparc32obsd_init_abi)
100 (_initialize_sparc32obsd_tdep): Adjust.
101 * sparc-tdep.h (sparc32nbsd_elf_init_abi): Rename to ...
102 (sparc32nbsd_init_abi): ... this.
103 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Adjust.
104 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Adjust.
105 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Adjust.
106 * stabsread.c: Update comment.
107 * symmisc.c (print_objfile_statistics): Don't mention "a.out" in
108 output.
109 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Adjust.
110 * vax-obsd-tdep.c: Delete file.
111
f94f411b
YQ
1122016-12-09 Yao Qi <yao.qi@linaro.org>
113
114 PR tdep/20954
115 * rx-tdep.c (rx_psw_type): New function.
116 (rx_fpsw_type): New function.
117 (rx_register_type): Call rx_psw_type and rx_fpsw_type.
118 (rx_gdbarch_init): Move code to rx_psw_type and
119 rx_fpsw_type.
120
1212016-12-09 Yao Qi <yao.qi@linaro.org>
122
123 PR tdep/20953
124 * rl78-tdep.c (rl78_psw_type): New function.
125 (rl78_register_type): Call rl78_psw_type.
126 (rl78_gdbarch_init): Move code to rl78_psw_type.
127
fc2f703e
YQ
1282016-12-09 Yao Qi <yao.qi@linaro.org>
129
130 * aarch64-tdep.c (instruction_reader::read): Call
131 read_code_unsigned_integer instead of
132 read_memory_unsigned_integer.
133
198cd59d
YQ
1342016-12-09 Yao Qi <yao.qi@linaro.org>
135
136 * arm-tdep.c (skip_prologue_function): Call
137 read_code_unsigned_integer instead of
138 read_memory_unsigned_integer.
139 (thumb_analyze_prologue): Likewise.
140 (arm_analyze_load_stack_chk_guard): Likewise.
141 (arm_skip_stack_protector): Likewise.
142 (arm_analyze_prologue):Likewise.
143 (extend_buffer_earlier): Call target_read_code instead
144 of target_read_memory.
145 (arm_adjust_breakpoint_address): Likewise.
146
53488a6e
TS
1472016-12-09 Thomas Schwinge <thomas@codesourcery.com>
148
c752a4cc
TS
149 * gnu-nat.c (gnu_create_inferior): After startup_inferior, call
150 prune_threads.
151
53488a6e
TS
152 * inferior.c (print_selected_inferior): Avoid PATH_MAX usage.
153
c3187fa5
SM
1542016-12-08 Simon Marchi <simon.marchi@ericsson.com>
155 Thomas Schwinge <thomas@codesourcery.com>
156
157 * gnu-nat.c (set_sig_thread_cmd): Use parse_thread_id instead of
158 global_thread_id_to_ptid.
159
e9e431d1
TS
1602016-12-08 Thomas Schwinge <thomas@codesourcery.com>
161
21389b7f
TS
162 * config/i386/i386gnu.mh (%_S.o %_U.o): Add "-x c" to
163 "COMPILE.post".
164 * gnu-nat.c: #include Mach/Hurd headers before all others. Wrap
165 Mach/Hurd headers and MIG stubs' prototypes in 'extern "C"'.
166 * i386-gnu-nat.c: Likewise.
167
0947023d
TS
168 * gnu-nat.c (proc_get_exception_port, proc_set_exception_port)
169 (INF_RESUME_MSGPORT_RPC, proc_get_state, _proc_get_exc_port)
170 (proc_steal_exc_port, proc_restore_exc_port, make_proc)
171 (inf_startup, inf_set_pid, inf_validate_procinfo)
172 (inf_validate_task_sc, inf_set_traced, inf_validate_procs)
173 (inf_signal, inf_continue, gnu_wait, S_exception_raise_request)
174 (do_mach_notify_dead_name, S_proc_wait_reply)
175 (S_msg_sig_post_untraced_reply, S_msg_sig_post_reply)
176 (port_msgs_queued, gnu_read_inferior, gnu_write_inferior)
177 (gnu_find_memory_regions, steal_exc_port, thread_takeover_sc_cmd)
178 (flush_inferior_icache): Instead of "error_t" use "kern_return_t".
179 * i386-gnu-nat.c (fetch_fpregs, store_fpregs, i386_gnu_dr_get)
180 (i386_gnu_dr_set): Likewise.
181
785102a7
TS
182 * gnu-nat.c (set_task_pause_cmd, set_signals_cmd)
183 (set_exceptions_cmd): Add variants taking an "int arg" instead of
184 a "char *". Make the "char *" variants use the former.
185 (set_noninvasive_cmd): Also use the "int arg" variants.
186
a9617a42
TS
187 * gnu-nat.c (gnu_create_inferior): Move nested "trace_me"
188 function...
189 (gnu_ptrace_me): ... here.
190
e9e431d1
TS
191 * i386-gnu-nat.c (i386_gnu_dr_set_control_one)
192 (i386_gnu_dr_set_addr_one): Explicitly cast "void *".
193
14f68906
TS
1942016-12-07 Thomas Schwinge <thomas@codesourcery.com>
195
196 * gnu-nat.c (set_sig_thread_cmd): Call global_thread_id_to_ptid
197 instead of thread_id_to_pid.
198
5590c2ba
SM
1992016-12-06 Simon Marchi <simon.marchi@ericsson.com>
200
201 * inferior.c (inferior_command): Remove duplicate
202 find_inferior_id call.
203
7c2ba67e
YQ
2042016-12-06 Yao Qi <yao.qi@linaro.org>
205
206 * frame.c (frame_register_unwind): Set *realnump if *lvalp is
207 lval_register.
208 * value.c (deprecated_value_next_frame_id_hack): Assert
209 value->lval is lval_register.
210 (deprecated_value_regnum_hack): Likewise.
211
bef721e2
SM
2122016-12-02 Simon Marchi <simon.marchi@polymtl.ca>
213
214 * ui-out.h: Include "common/enum-flags.h".
215 (enum ui_flags): Rename to ...
216 (enum ui_out_flag): ... this.
217 (ui_out_flags): Define enum flag type.
218 (ui_out_test_flags): Change type of parameter to ui_out_flags.
219 (ui_out_new): Likewise.
220 * ui-out.c (ui_out_test_flags): Likewise.
221 (ui_out_new): Likewise.
222 * cli-out.c (cli_out_new): Update variable type.
223 * mi/mi-out.c (mi_out_new): Likewise.
224 * tui/tui-out.c (tui_out_new): Likewise.
225
df3ee9ca
PA
2262016-12-02 Pedro Alves <palves@redhat.com>
227
228 * NEWS: Mention that user commands now accept an unlimited number
229 of arguments.
230 * cli/cli-script.c: Include <vector>.
231 (struct string_view): New type.
232 (MAXUSERARGS): Delete.
233 (struct user_args): Now a C++ class.
234 (user_args_stack): New.
235 (struct scoped_user_args_level): New type.
236 (execute_user_command): Use scoped_user_args_level.
237 (arg_cleanup): Delete.
238 (setup_user_args): Deleted, and refactored as ...
239 (user_args::user_args): ... this new constructor. Limit of number
240 of arguments removed.
241 (insert_user_defined_cmd_args): Defer to user_args_stack.
242 (user_args::insert_args): New, bits based on old
243 insert_user_defined_cmd_args with limit of number of arguments
244 eliminated.
245
01770bbd
PA
2462016-12-02 Pedro Alves <palves@redhat.com>
247
248 PR cli/20559
249 * NEWS: Mention "eval" expands user-defined command arguments.
250 * cli/cli-script.c (execute_control_command): Adjust to rename.
251 (insert_args): Rename to ...
252 (insert_user_defined_cmd_args): ... this, and make extern.
253 * cli/cli-script.h (insert_user_defined_cmd_args): New
254 declaration.
255 * printcmd.c: Include "cli/cli-script.h".
256 (eval_command): Call insert_user_defined_cmd_args.
257
0c1b455e
TT
2582016-12-02 Tom Tromey <tom@tromey.com>
259
260 PR symtab/16264:
261 * dwarf2read.c (struct partial_die_info) <main_subprogram>: New
262 member.
263 (add_partial_symbol): Call set_objfile_main_name.
264 (read_partial_die): Handle DW_AT_main_subprogram.
265 <DW_AT_calling_convention>: don't call set_objfile_main_name, but
266 set main_subprogram flag.
267
e5a873b7
SM
2682016-12-02 Simon Marchi <simon.marchi@ericsson.com>
269
270 * tracefile-tfile.c (tfile_write_status): Adjust to renames.
271 * tracefile.c (trace_save_command): Rename to...
272 (tsave_command): ...this.
273 (_initialize_tracefile): Adjust to renames.
274 * tracepoint.c (trace_actions_command): Rename to...
275 (actions_command): ...this.
276 (trace_start_command): Rename to...
277 (tstart_command): ...this, and adjust to renames..
278 (trace_stop_command): Rename to...
279 (tstop_command): ...this.
280 (trace_status_command): Rename to...
281 (tstatus_command): ...this, and adjust to renames.
282 (trace_find_command): Rename to...
283 (tfind_command): ...this.
284 (trace_find_pc_command): Rename to...
285 (tfind_pc_command): ...this.
286 (trace_find_tracepoint_command): Rename to...
287 (tfind_tracepoint_command): ...this.
288 (trace_find_line_command): Rename to...
289 (tfind_line_command): ...this.
290 (trace_find_range_command): Rename to...
291 (tfind_range_command): ...this.
292 (trace_find_outside_command): Rename to...
293 (tfind_outside_command): ...this.
294 (trace_dump_command): Rename to...
295 (tdump_command): ...this.
296 (tfind_1): Adjust to renames.
297 (trace_find_end_command): Rename to...
298 (tfind_end_command): ...this, and adjust to renames..
299 (trace_status_mi): Adjust to renames.
300 (parse_trace_status): Adjust to renames.
301 (_initialize_tracepoint): Adjust to renames.
302 * tracepoint.h (enum trace_stop_reason) <tstop_command>: Rename
303 to...
304 <trace_stop_command>: ...this.
305
233c8c27
SM
3062016-12-02 Simon Marchi <simon.marchi@ericsson.com>
307
308 * mi/mi-out.c (mi_ui_out_data) <suppress_output>: Remove.
309 (mi_table_body): Remove suppress_output check.
310 (mi_table_end): Likewise.
311 (mi_table_header): Likewise.
312 (mi_begin): Likewise.
313 (mi_end): Likewise.
314 (mi_field_int): Likewise.
315 (mi_field_string): Likewise.
316 (mi_field_fmt): Likewise.
317 (mi_out_data_ctor): Likewise.
318
432ec081
YQ
3192016-12-02 Yao Qi <yao.qi@linaro.org>
320 Pedro Alves <palves@redhat.com>
321
322 * aarch64-tdep.c (aarch64_analyze_prologue): Recognize STR
323 instruction.
324 (aarch64_analyze_prologue_test): More tests.
325
4d9a9006
YQ
3262016-12-02 Yao Qi <yao.qi@linaro.org>
327 Pedro Alves <palves@redhat.com>
328
329 * aarch64-tdep.c: Include "selftest.h".
330 (abstract_instruction_reader): New class.
331 (instruction_reader): New class.
332 (aarch64_analyze_prologue): Add new parameter reader. Call
333 reader.read instead of read_memory_unsigned_integer.
334 [GDB_SELF_TEST] (instruction_reader_test): New class.
335 (aarch64_analyze_prologue_test): New function.
336 (_initialize_aarch64_tdep) [GDB_SELF_TEST]: Register
337 selftests::aarch64_analyze_prologue_test.
338 * trad-frame.c (trad_frame_cache_zalloc):
339 (trad_frame_alloc_saved_regs): Add a new function.
340 * trad-frame.h (trad_frame_alloc_saved_regs): Declare.
341
36d18bc5
SM
3422016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
343
344 * ui-out.c (enum ui_out_table_state): Move to class
345 ui_out_table as ui_out_table::state.
346 (struct ui_out_table): Change to ...
347 (class ui_out_table): ... this.
348 <flag>: Remove.
349 <entry_level>: Rename to ...
350 <m_entry_level>: ... this.
351 <columns>: Rename to ...
352 <m_nr_cols>: ... this.
353 <id>: Rename to ...
354 <m_id>: ... this.
355 <headers>: Rename to ...
356 <m_headers>: ... this.
357 <headers_iterator>: Rename to ...
358 <m_headers_iterator>: ... this.
359 <start_body, append_header, start_row, get_next_header,
360 query_field, current_state, entry_level>: New methods.
361 (struct ui_out) <table>: Change type to unique_ptr to
362 ui_out_table.
363 (append_header_to_list, get_next_header, clear_header_list,
364 clear_table): Remove.
365 (ui_out_table_begin): Instantiate ui_out_table object. Update
366 table check.
367 (ui_out_table_body): Update table check, replace code with call
368 to ui_out_table::start_body.
369 (ui_out_table_end): Update table check, replace manual cleanup
370 with assignment of uiout->table unique_ptr to nullptr.
371 (ui_out_table_header): Update table check, replace call to
372 append_header_to_list with call to append_header method.
373 (ui_out_begin): Remove one table state check, update another.
374 Replace code with call to start_row method.
375 (verify_field): Update table checks.
376 (ui_out_query_field): Update table check, replace code with call
377 to query_field method.
378 (ui_out_new): Remove table initialization code.
379
77a179e7
SM
3802016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
381
382 * ui-out.c (enum ui_out_table_state): New enum.
383 (struct ui_out_table) <body_flag>: Remove field.
384 <state>: New field.
385 (ui_out_table_begin): Replace usages of body_flag with state.
386 (ui_out_table_body): Likewise.
387 (ui_out_table_end): Likewise.
388 (ui_out_table_header): Likewise.
389 (ui_out_begin): Likewise.
390 (verify_field): Likewise.
391 (ui_out_new): Likewise.
392
33b2fac6
SM
3932016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
394
395 * ui-out.h (ui_out_begin_ftype): Remove level parameter.
396 (ui_out_end_ftype): Likewise.
397 * ui-out.c (struct ui_out) <level>: Replace field with a method
398 that dynamically computes the result.
399 (current_level): Get vector's back item instead of using
400 uiout->level.
401 (push_level): Make return type void.
402 (pop_level): Make return type void and update access to
403 ui_out::level.
404 (uo_begin): Remove level parameter.
405 (uo_end): Likewise.
406 (ui_out_table_begin): Update access to uiout::level.
407 (ui_out_begin): Don't read return value from push_level, call
408 uiout->level() instead, update call to uo_begin.
409 (ui_out_end): Don't read return value from pop_level, update
410 call to uo_end.
411 (verify_field): Update access to uiout->level.
412 (ui_out_new): Don't initialize ui_out::level, call push_level
413 to push the initial level instead of doing it by hand.
414 * cli-out.c (cli_begin): Remove level parameter.
415 (cli_end): Likewise.
416 * mi/mi-out.c (mi_begin): Likewise.
417 (mi_end): Likewise.
418
909c0aa5
SM
4192016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
420
421 * ui-out.c (struct ui_out_level): Replace with ...
422 (class ui_out_level): ... this.
423 (current_level): Update.
424 (push_level): Update.
425 (pop_level): Update.
426 (verify_field): Update.
427 (ui_out_new): Update.
428
37e20dd6
SM
4292016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
430
431 * ui-out.c (struct ui_out_hdr): Replace with ...
432 (class ui_out_hdr): ... this.
433 (append_header_to_list): Update.
434 (get_next_header): Update.
435 (ui_out_query_field): Update.
436
c5209615
SM
4372016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
438
439 * mi/mi-out.c (mi_table_header): Change char * args to
440 std::string.
441 * cli-out.c (cli_table_header): Likewise.
442 * ui-out.h (table_header_ftype): Likewise.
443 (ui_out_table_header): Constify colhdr argument.
444 (ui_out_query_field): Constify col_name argument.
445 * ui-out.c (ui_out_hdr) <col_name, colhdr>: Change type to
446 std::string.
447 (uo_table_header): Change char * args to std::string.
448 (ui_out_table_header): Likewise.
449 (get_next_header): Constify colhdr argument and adapt.
450 (clear_header_list): Don't free col_name/colhdr fields.
451 (append_header_to_list): Change char * args to std::string and
452 adapt.
453 (verify_field): Constify variable.
454 (ui_out_query_field): Constify col_name argument and adapt.
455 * breakpoint.c (wrap_indent_at_field): Constify variable.
456
78afa7f8
SM
4572016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
458
459 * ui-out.c (struct ui_out_hdr) <next>: Remove.
460 (struct ui_out_table) <header_first, header_last, header_next>: Remove.
461 <headers, headers_iterator>: New fields.
462 (ui_out_table_body): Update for the new data structure.
463 (ui_out_begin): Likewise.
464 (clear_header_list): Likewise.
465 (append_header_to_list): Likewise.
466 (get_next_header): Likewise.
467 (ui_out_query_field): Likewise.
468 (ui_out_new): Likewise.
469
95a23284
SM
4702016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
471
472 * ui-out.c (struct ui_out_table) <id>: Change type to
473 std::string.
474 (ui_out_table_begin): Change tblid parameter type to
475 std::string, adapt code.
476 update following type change.
477 (clear_table): Update.
478 (ui_out_new): Update.
479
b9b118c3
SM
4802016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
481
482 * cli-out.h (cli_ui_out_data) <streams>: Change type to
483 std::vector.
484 * cli-out.c: Remove vec.h include.
485 (cli_uiout_dtor): Update.
486 (cli_field_fmt): Update.
487 (cli_spaces): Update.
488 (cli_text): Update.
489 (cli_message): Update.
490 (cli_flush): Update.
491 (cli_redirect): Update.
492 (out_field_fmt): Update.
493 (field_separator): Update.
494 (cli_out_data_ctor): Update.
495 (cli_out_new): Update.
496 (cli_out_set_stream): Update.
497
4a9d4ea5
SM
4982016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
499
500 * mi/mi-out.c: Remove vec.h include.
501 (mi_ui_out_data) <streams>: Change type to std::vector.
502 (mi_field_string): Update.
503 (mi_field_fmt): Update.
504 (mi_flush): Update.
505 (mi_redirect): Update.
506 (field_separator): Update.
507 (mi_open): Update.
508 (mi_close): Update.
509 (mi_out_buffered): Update.
510 (mi_out_rewind): Update.
511 (mi_out_put): Update.
512 (mi_out_data_ctor): Update.
513 (mi_out_data_dtor): Don't free streams.
514
56df3084
SM
5152016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
516
517 * ui-out.c (ui_out_level_p): Remove typedef.
518 (DEF_VEC_P (ui_out_level_p)): Remove definition.
519 (struct ui_out) <levels>: Change type to vector of unique_ptr of
520 ui_out_level.
521 (current_level): Update.
522 (push_level): Update.
523 (pop_level): Update, don't manually delete the ui_out_level
524 instance.
525 (ui_out_new): Update.
526
5486f164
SM
5272016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
528
529 * cli-out.c (cli_uiout_dtor): Use delete instead of xfree.
530 (cli_out_new): Use new instead of XNEW.
531 * mi/mi-out.c (mi_out_data_dtor): Use delete instead of xfree.
532 (mi_out_new): Use new instead of XNEW.
533 * tui/tui-out.c (tui_out_new): Likewise.
534 * ui-out.c (push_level): Likewise.
535 (pop_level): Use delete instead of xfree.
536 (clear_header_list): Use delete instead of xfree.
537 (append_header_to_list): Use new instead of XNEW.
538 (ui_out_new): Likewise.
539
ad02e4fe
SM
5402016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
541
542 * disable-implicit-rules.mk: New file.
543 * Makefile.in: Include disable-implicit-rules.mk.
544 * data-directory/Makefile.in: Likewise.
545 * gnulib/Makefile.in: Likewise.
546
7913a64c
YQ
5472016-11-30 Yao Qi <yao.qi@linaro.org>
548
549 * arm-tdep.c (arm_scan_prologue): Read memory as unsigned integer.
550 (arm_exidx_unwind_sniffer): Likewise.
551
0a0640e3
SM
5522016-11-28 Simon Marchi <simon.marchi@polymtl.ca>
553
554 * record-full.c (record_full_open_1): Fix debug output.
555
7fb048a2
SM
5562016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
557
558 * mi/mi-out.c (mi_message): Remove verbosity argument.
559 * ada-tasks.c (print_ada_task_info, info_task, task_command):
560 Update call.
561 * auto-load.c (auto_load_info_scripts): Likewise.
562 * breakpoint.c (breakpoint_1, watchpoints_info, tracepoints_info):
563 Likewise.
564 * cli-out.c (cli_message): Remove verbosity argument.
565 * inferior.c (print_inferior): Update call.
566 * linux-thread-db.c (info_auto_load_libthread_db): Likewise.
567 * probe.c (info_probes_for_ops): Likewise.
568 * skip.c (skip_info): Likewise.
569 * solib.c (info_sharedlibrary_command): Likewise.
570 * symfile.c (load_progress): Likewise.
571 * thread.c (print_thread_info_1): Likewise.
572 * ui-out.c (uo_message, ui_out_message): Remove verbosity argument.
573 (ui_out_get_verblvl): Remove.
574 * ui-out.h (ui_out_message): Remove verbosity argument.
575 (ui_out_get_verblvl): Remove.
576 (message_ftype): Remove verbosity argument.
577
d2c0eef4
SM
5782016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
579
580 * mi/mi-out.c (mi_wrap_hint): Constify argument.
581 * cli-out.c (cli_wrap_hint): Likewise.
582 * ui-out.c (ui_out_wrap_hint, uo_wrap_hint): Likewise.
583 * ui-out.h (ui_out_wrap_hint, wrap_hint_ftype): Likewise.
584 * utils.c (wrap_here): Likewise.
585 (wrap_indent): Constify.
586 * utils.h (wrap_here): Constify argument.
587
82bbe65a
SM
5882016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
589
590 * ui-out.c (uo_redirect): Return the return value from the
591 implementation function.
592
e4975d6a
SM
5932016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
594
595 * ui-out.c (ui_out_destroy, uo_data_destroy): Remove.
596 * ui-out.h (ui_out_destroy): Remove.
597
0abe66b5
SM
5982016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
599
600 * mi/mi-out.c (ui_out_data): Rename to ...
601 (mi_ui_out_data): ... this.
602
7f904c28
SM
6032016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
604
605 * ui-out.c (_initialize_ui_out): Remove.
606 (ui_out_set_flags): Remove.
607 (ui_out_clear_flags): Remove.
608 * ui-out.h (ui_out_begin_cleanup_end): Remove.
609 (ui_out_begin_cleanup_end): Remove.
610 (ui_out_set_flags): Remove.
611 (ui_out_clear_flags): Remove.
612 * mi/mi-out.c (_initialize_mi_out): Remove.
613 (mi_out_buffered): Remove.
614 * mi/mi-out.h (mi_out_buffered): Remove.
615
59b21252
SM
6162016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
617
618 * ui-out.h (struct ui_out_impl): Remove comment.
619 * ui-out.c (struct ui_out): Remove comment.
620
8227ffad
JB
6212016-11-25 John Baldwin <jhb@FreeBSD.org>
622
623 * contrib/ari/gdb_ari.sh (no parameter function): Remove check.
624
50cc587f
SM
6252016-11-25 Simon Marchi <simon.marchi@ericsson.com>
626
627 * Makefile.in: Fix typo.
628
8ce9efb0
SM
6292016-11-25 Simon Marchi <simon.marchi@ericsson.com>
630
631 * record-full.c (record_full_resume): Fix typos in comment.
632
17e5269b
SM
6332016-11-25 Simon Marchi <simon.marchi@ericsson.com>
634
635 * infcmd.c (interrupt_command): Fix typo in comment.
636
036e657b
JB
6372016-11-24 John Baldwin <jhb@FreeBSD.org>
638
639 * ada-lang.c (create_excep_cond_exprs): Do not use 'std::move'.
640 * ax-gdb.c (agent_eval_command_one): Likewise.
641 (agent_eval_command_one): Likewise.
642 * breakpoint.c (parse_cond_to_aexpr): Likewise.
643 (parse_cmd_to_aexpr): Likewise.
644 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
645 * parse.c (parse_expression_for_completion): Likewise.
646
bbe910e6
JB
6472016-11-24 John Baldwin <jhb@FreeBSD.org>
648
649 * common/new-op.c (operator new): Mark 'noexcept'.
650 (operator new[]): Likewise.
651
793c128d
AA
6522016-11-24 Andreas Arnez <arnez@linux.vnet.ibm.com>
653
654 * dwarf2loc.c (copy_bitwise): Use memcpy for the middle part, if
655 it is byte-aligned.
656
ad06383f
AA
6572016-11-24 Andreas Arnez <arnez@linux.vnet.ibm.com>
658 Pedro Alves <palves@redhat.com>
659
660 * dwarf2loc.c (bits_to_str, check_copy_bitwise)
661 (copy_bitwise_tests): New functions.
662 (_initialize_dwarf2loc): Register the new function
663 copy_bitwise_tests as a unit test.
664 * selftest.c (run_self_tests): Improve the failure message's
665 wording and formatting.
666
22347e55
AA
6672016-11-24 Andreas Arnez <arnez@linux.vnet.ibm.com>
668
669 * dwarf2loc.c (extract_bits_primitive): Remove.
670 (extract_bits): Remove.
671 (copy_bitwise): Rewrite. Fixes a possible corruption that may
672 occur for non-byte-aligned copies.
673
da5b30da
AA
6742016-11-24 Andreas Arnez <arnez@linux.vnet.ibm.com>
675
676 PR gdb/12616
677 * dwarf2read.c (dwarf2_add_field): Handle the DWARF V4 attribute
678 DW_AT_data_bit_offset.
679
dcb07cfa
PA
6802016-11-23 Pedro Alves <palves@redhat.com>
681
682 * Makefile.in (SFILES): Add common/run-time-clock.c.
683 (HFILES_NO_SRCDIR): Add common/run-time-clock.h.
684 (COMMON_OBS): Add run-time-clock.o.
685 * common/run-time-clock.c, common/run-time-clock.h: New files.
686 * defs.h (struct timeval, print_transfer_performance): Delete
687 declarations.
688 * event-loop.c (struct gdb_timer) <when>: Now a
689 std::chrono::steady_clock::time_point.
690 (create_timer): use std::chrono::steady_clock instead of
691 gettimeofday. Use new instead of malloc.
692 (delete_timer): Use delete instead of xfree.
693 (duration_cast_timeval): New.
694 (update_wait_timeout): Use std::chrono::steady_clock instead of
695 gettimeofday.
696 * maint.c: Include <chrono> instead of "gdb_sys_time.h", <time.h>
697 and "timeval-utils.h".
698 (scoped_command_stats::~scoped_command_stats)
699 (scoped_command_stats::scoped_command_stats): Use
700 std::chrono::steady_clock instead of gettimeofday. Use
701 user_cpu_time_clock instead of get_run_time.
702 * maint.h: Include "run-time-clock.h" and <chrono>.
703 (scoped_command_stats): <m_start_cpu_time>: Now a
704 user_cpu_time_clock::time_point.
705 <m_start_wall_time>: Now a std::chrono::steady_clock::time_point.
706 * mi/mi-main.c: Include "run-time-clock.h" and <chrono> instead of
707 "gdb_sys_time.h" and <sys/resource.h>.
708 (rusage): Delete.
709 (mi_execute_command): Use new instead of XNEW.
710 (mi_load_progress): Use std::chrono::steady_clock instead of
711 gettimeofday.
712 (timestamp): Rewrite in terms of std::chrono::steady_clock,
713 user_cpu_time_clock and system_cpu_time_clock.
714 (timeval_diff): Delete.
715 (print_diff): Adjust to use std::chrono::steady_clock,
716 user_cpu_time_clock and system_cpu_time_clock.
717 * mi/mi-parse.h: Include "run-time-clock.h" and <chrono> instead
718 of "gdb_sys_time.h".
719 (struct mi_timestamp): Change fields types to
720 std::chrono::steady_clock::time_point, user_cpu_time_clock::time
721 and system_cpu_time_clock::time_point, instead of struct timeval.
722 * symfile.c: Include <chrono> instead of <time.h> and
723 "gdb_sys_time.h".
724 (struct time_range): New.
725 (generic_load): Use std::chrono::steady_clock instead of
726 gettimeofday.
727 (print_transfer_performance): Replace timeval parameters with a
728 std::chrono::steady_clock::duration parameter. Adjust.
729 * utils.c: Include <chrono> instead of "timeval-utils.h",
730 "gdb_sys_time.h", and <time.h>.
731 (prompt_for_continue_wait_time): Now a
732 std::chrono::steady_clock::duration.
733 (defaulted_query, prompt_for_continue): Use
734 std::chrono::steady_clock instead of
735 gettimeofday/timeval_sub/timeval_add.
736 (reset_prompt_for_continue_wait_time): Use
737 std::chrono::steady_clock::duration instead of struct timeval.
738 (get_prompt_for_continue_wait_time): Return a
739 std::chrono::steady_clock::duration instead of struct timeval.
740 (vfprintf_unfiltered): Use std::chrono::steady_clock instead of
741 gettimeofday. Use std::string. Use '.' instead of ':'.
742 * utils.h: Include <chrono>.
743 (get_prompt_for_continue_wait_time): Return a
744 std::chrono::steady_clock::duration instead of struct timeval.
745
8629c02c
SM
7462016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
747
748 * Makefile.in: Fix whitespace formatting.
749
03b62bbb
SM
7502016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
751
752 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS,
753 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
754 * alphabsd-nat.c: Rename to ...
755 * alpha-bsd-nat.c: ... this, adjust include.
756 * alphabsd-tdep.c: Rename to ...
757 * alpha-bsd-tdep.c: ... this, adjust include.
758 * alphabsd-tdep.h: Rename to ...
759 * alpha-bsd-tdep.h: ... this, adjust include barrier and comment.
760 * alphafbsd-tdep.c: Rename to ...
761 * alpha-fbsd-tdep.c: ... this.
762 * alphanbsd-tdep.c: Rename to ...
763 * alpha-nbsd-tdep.c: ... this, adjust include.
764 * alphaobsd-tdep.c: Rename to ...
765 * alpha-obsd-tdep.c: ... this, adjust include.
766 * amd64bsd-nat.c: Rename to ...
767 * amd64-bsd-nat.c: ... this, adjust include.
768 * amd64fbsd-nat.c: Rename to ...
769 * amd64-fbsd-nat.c: ... this, adjust include.
770 * amd64fbsd-tdep.c: Rename to ...
771 * amd64-fbsd-tdep.c: ... this, adjust include.
772 * amd64nbsd-nat.c: Rename to ...
773 * amd64-nbsd-nat.c: ... this.
774 * amd64nbsd-tdep.c: Rename to ...
775 * amd64-nbsd-tdep.c: ... this.
776 * amd64obsd-nat.c: Rename to ...
777 * amd64-obsd-nat.c: ... this.
778 * amd64obsd-tdep.c: Rename to ...
779 * amd64-obsd-tdep.c: ... this.
780 * amd64-tdep.h: Update comments.
781 * armbsd-tdep.c: Rename to ...
782 * arm-bsd-tdep.c: ... this.
783 * armnbsd-nat.c: Rename to ...
784 * arm-nbsd-nat.c: ... this.
785 * armnbsd-tdep.c: Rename to ...
786 * arm-nbsd-tdep.c: ... this.
787 * armobsd-tdep.c: Rename to ...
788 * arm-obsd-tdep.c: ... this.
789 * arm-tdep.h: Update comments.
790 * hppabsd-tdep.c: Rename to ...
791 * hppa-bsd-tdep.c: ... this, adjust include.
792 * hppabsd-tdep.h: Rename to ...
793 * hppa-bsd-tdep.h: ... this, adjust include barrier and comment.
794 * hppanbsd-nat.c: Rename to ...
795 * hppa-nbsd-nat.c: ... this.
796 * hppanbsd-tdep.c: Rename to ...
797 * hppa-nbsd-tdep.c: ... this, adjust include.
798 * hppaobsd-nat.c: Rename to ...
799 * hppa-obsd-nat.c: ... this.
800 * hppaobsd-tdep.c: Rename to ...
801 * hppa-obsd-tdep.c: ... this, adjust include.
802 * i386bsd-nat.c: Rename to ...
803 * i386-bsd-nat.c: ... this, adjust include.
804 * i386bsd-nat.h: Rename to ...
805 * i386-bsd-nat.h: ... this, adjust include barrier and comment.
806 * i386bsd-tdep.c: Rename to ...
807 * i386-bsd-tdep.c: ... this.
808 * i386fbsd-nat.c: Rename to ...
809 * i386-fbsd-nat.c: ... this, adjust include.
810 * i386fbsd-tdep.c: Rename to ...
811 * i386-fbsd-tdep.c: ... this, adjust include.
812 * i386fbsd-tdep.h: Rename to ...
813 * i386-fbsd-tdep.h: ... this, adjust include barrier and comment.
814 * i386gnu-nat.c: Rename to ...
815 * i386-gnu-nat.c: ... this.
816 * i386gnu-tdep.c: Rename to ...
817 * i386-gnu-tdep.c: ... this.
818 * i386nbsd-nat.c: Rename to ...
819 * i386-nbsd-nat.c: ... this, adjust include.
820 * i386nbsd-tdep.c: Rename to ...
821 * i386-nbsd-tdep.c: ... this.
822 * i386obsd-nat.c: Rename to ...
823 * i386-obsd-nat.c: ... this, adjust include.
824 * i386obsd-tdep.c: Rename to ...
825 * i386-obsd-tdep.c: ... this.
826 * i386v4-nat.c: Rename to ...
827 * i386-v4-nat.c: ... this.
828 * i386-tdep.h: Update comments.
829 * m68k-tdep.h: Update comments.
830 * m68kbsd-nat.c: Rename to ...
831 * m68k-bsd-nat.c: ... this.
832 * m68kbsd-tdep.c: Rename to ...
833 * m68k-bsd-tdep.c: ... this.
834 * m68klinux-nat.c: Rename to ...
835 * m68k-linux-nat.c: ... this.
836 * m68klinux-tdep.c: Rename to ...
837 * m68k-linux-tdep.c: ... this.
838 * m88kbsd-nat.c: Rename to ...
839 * m88k-bsd-nat.c: ... this.
840 * mipsnbsd-nat.c: Rename to ...
841 * mips-nbsd-nat.c: ... this, adjust include.
842 * mipsnbsd-tdep.c: Rename to ...
843 * mips-nbsd-tdep.c: ... this, adjust include.
844 * mipsnbsd-tdep.h: Rename to ...
845 * mips-nbsd-tdep.h: ... this, adjust include barrier and comment.
846 * mips64obsd-nat.c: Rename to ...
847 * mips64-obsd-nat.c: ... this.
848 * mips64obsd-tdep.c: Rename to ...
849 * mips64-obsd-tdep.c: ... this.
850 * ppcfbsd-nat.c: Rename to ...
851 * ppc-fbsd-nat.c: ... this, adjust include.
852 * ppcfbsd-tdep.c: Rename to ...
853 * ppc-fbsd-tdep.c: ... this, adjust include.
854 * ppcfbsd-tdep.h: Rename to ...
855 * ppc-fbsd-tdep.h: ... this, adjust include barrier and comment.
856 * ppcnbsd-nat.c: Rename to ...
857 * ppc-nbsd-nat.c: ... this, adjust include.
858 * ppcnbsd-tdep.c: Rename to ...
859 * ppc-nbsd-tdep.c: ... this, adjust include.
860 * ppcnbsd-tdep.h: Rename to ...
861 * ppc-nbsd-tdep.h: ... this, adjust include barrier and comment.
862 * ppcobsd-nat.c: Rename to ...
863 * ppc-obsd-nat.c: ... this, adjust include.
864 * ppcobsd-tdep.c: Rename to ...
865 * ppc-obsd-tdep.c: ... this, adjust include.
866 * ppcobsd-tdep.h: Rename to ...
867 * ppc-obsd-tdep.h: ... this, adjust include barrier and comment.
868 * shnbsd-nat.c: Rename to ...
869 * sh-nbsd-nat.c: ... this.
870 * shnbsd-tdep.c: Rename to ...
871 * sh-nbsd-tdep.c: ... this.
872 * sparcnbsd-nat.c: Rename to ...
873 * sparc-nbsd-nat.c: ... this.
874 * sparcnbsd-tdep.c: Rename to ...
875 * sparc-nbsd-tdep.c: ... this.
876 * sparcobsd-tdep.c: Rename to ...
877 * sparc-obsd-tdep.c: ... this.
878 * sparc64fbsd-nat.c: Rename to ...
879 * sparc64-fbsd-nat.c: ... this.
880 * sparc64fbsd-tdep.c: Rename to ...
881 * sparc64-fbsd-tdep.c: ... this.
882 * sparc64nbsd-nat.c: Rename to ...
883 * sparc64-nbsd-nat.c: ... this.
884 * sparc64nbsd-tdep.c: Rename to ...
885 * sparc64-nbsd-tdep.c: ... this.
886 * sparc64obsd-nat.c: Rename to ...
887 * sparc64-obsd-nat.c: ... this.
888 * sparc64obsd-tdep.c: Rename to ...
889 * sparc64-obsd-tdep.c: ... this.
890 * sparc64-tdep.h: Update comments.
891 * vaxbsd-nat.c: Rename to ...
892 * vax-bsd-nat.c: ... this.
893 * vaxnbsd-tdep.c: Rename to ...
894 * vax-nbsd-tdep.c: ... this.
895 * vaxobsd-tdep.c: Rename to ...
896 * vax-obsd-tdep.c: ... this.
897 * x86bsd-nat.h: Rename to ...
898 * x86-bsd-nat.h: ... this, adjust include barrier and comment.
899 * x86bsd-nat.c: Rename to ...
900 * x86-bsd-nat.c: ... this, adjust include.
901 * configure.tgt: Update renamed files.
902 * config/alpha/fbsd.mh: Update renamed files.
903 * config/alpha/nbsd.mh: Update renamed files.
904 * config/arm/nbsdelf.mh: Update renamed files.
905 * config/djgpp/fnchange.lst: Update renamed files.
906 * config/i386/fbsd.mh: Update renamed files.
907 * config/i386/fbsd64.mh: Update renamed files.
908 * config/i386/i386gnu.mh: Update renamed files.
909 * config/i386/i386sol2.mh: Update renamed files.
910 * config/i386/nbsd64.mh: Update renamed files.
911 * config/i386/nbsdelf.mh: Update renamed files.
912 * config/i386/obsd.mh: Update renamed files.
913 * config/i386/obsd64.mh: Update renamed files.
914 * config/i386/sol2-64.mh: Update renamed files.
915 * config/m68k/linux.mh: Update renamed files.
916 * config/m68k/nbsdelf.mh: Update renamed files.
917 * config/m68k/obsd.mh: Update renamed files.
918 * config/m88k/obsd.mh: Update renamed files.
919 * config/mips/nbsd.mh: Update renamed files.
920 * config/mips/obsd64.mh: Update renamed files.
921 * config/pa/nbsd.mh: Update renamed files.
922 * config/pa/obsd.mh: Update renamed files.
923 * config/powerpc/fbsd.mh: Update renamed files.
924 * config/powerpc/nbsd.mh: Update renamed files.
925 * config/powerpc/obsd.mh: Update renamed files.
926 * config/sh/nbsd.mh: Update renamed files.
927 * config/sparc/fbsd.mh: Update renamed files.
928 * config/sparc/nbsd64.mh: Update renamed files.
929 * config/sparc/nbsdelf.mh: Update renamed files.
930 * config/sparc/obsd64.mh: Update renamed files.
931 * config/vax/nbsdelf.mh: Update renamed files.
932 * config/vax/obsd.mh: Update renamed files.
933
b593ecca
SM
9342016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
935
936 * Makefile.in: Add comment about file lists ordering.
937 (SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_MI_OBS, SUBDIR_MI_SRCS,
938 SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS, SUBDIR_GCC_COMPILE_OBS,
939 SUBDIR_GCC_COMPILE_SRCS, SUBDIR_GUILE_OBS, SUBDIR_GUILE_SRCS,
940 SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS, SUBDIR_GDBTK_OBS,
941 SUBDIR_GDBTK_SRCS, XMLFILES, REMOTE_OBS, ALL_64_TARGET_OBS,
942 ALL_TARGET_OBS, SFILES, HFILES_NO_SRCDIR, HFILES_WITH_SRCDIR,
943 COMMON_OBS, YYFILES, YYOBJ, generated_files, ALLDEPFILES):
944 Flatten list and order alphabetically.
945 * data-directory/Makefile.in: Add comment about file lists
946 ordering.
947 (GEN_SYSCALLS_FILES, PYTHON_FILE_LIST): Flatten list and order
948 alphabetically.
949
ca3cbe5c
AM
9502016-11-22 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
951
952 * contrib/expect-read1.sh: Fix spelling in comments.
953 * gdb_buildall.sh: Fix spelling in comments.
954 * gdb_mbuild.sh: Fix spelling in comments.
955
96fe4562
AM
9562016-11-22 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
957
958 * configure.ac: Fix spelling in comments.
959 * configure: Regenerate.
960
f5ea389a
YQ
9612016-11-22 Yao Qi <yao.qi@linaro.org>
962
963 * gdbarch.sh (software_single_step): Change parameter from frame_info
964 to regcache.
965 * gdbarch.c, gdbarch.h: Regenerated.
966 * aarch64-tdep.c (aarch64_software_single_step): Change parameter
967 from frame_info to regcache. Don't call get_current_regcache.
968 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Likewise.
969 (alpha_software_single_step): Likewise.
970 * alpha-tdep.h (alpha_software_single_step): Update declaration.
971 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
972 * arm-tdep.c (arm_software_single_step): Likewise.
973 * arm-tdep.h (arm_software_single_step): Likewise.
974 * breakpoint.c (insert_single_step_breakpoint): Pass regcache to
975 gdbarch_software_single_step.
976 * cris-tdep.c (cris_software_single_step): Change parameter from
977 frame_info to regcache. Don't call get_current_regcache.
978 * mips-tdep.c (mips_software_single_step): Likewise.
979 * mips-tdep.h (mips_software_single_step): Update declaration.
980 * moxie-tdep.c (moxie_software_single_step): Likewise.
981 * nios2-tdep.c (nios2_software_single_step): Likewise.
982 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Update declaration.
983 * rs6000-aix-tdep.c (rs6000_software_single_step): Likewise.
984 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
985 * s390-linux-tdep.c (s390_software_single_step): Likewise.
986 * sparc-tdep.c (sparc_software_single_step): Likewise.
987 * spu-tdep.c (spu_software_single_step): Likewise.
988 * tic6x-tdep.c (tic6x_software_single_step): Likewise.
989
b2260160
YQ
9902016-11-22 Yao Qi <yao.qi@linaro.org>
991
992 * spu-tdep.c (spu_software_single_step): Call get_regcache_arch
993 instead of get_frame_arch. Call regcache_read_pc instead of
994 get_frame_pc. Call regcache_raw_get_unsigned instead of
995 get_frame_register_unsigned.
996
fb090cfa
YQ
9972016-11-22 Yao Qi <yao.qi@linaro.org>
998
999 * tic6x-tdep.c (tic6x_condition_true): Replace frame with
1000 regcache. Call regcache_raw_get_signed instead of
1001 get_frame_register_signed.
1002 (tic6x_get_next_pc): Likewise. Caller updated.
1003
41e26ad3
YQ
10042016-11-22 Yao Qi <yao.qi@linaro.org>
1005
1006 * rs6000-aix-tdep.c (branch_dest): Replace parameter frame with
1007 regcache. Call get_regcache_arch instead of get_frame_arch.
1008 Call regcache_raw_get_unsigned instead of
1009 get_frame_register_unsigned.
1010 (rs6000_software_single_step): Likewise.
1011 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Call
1012 get_regcache_arch instead of get_frame_arch. Call
1013 regcache_read_pc instead of get_frame_pc.
1014
ad769689
YQ
10152016-11-22 Yao Qi <yao.qi@linaro.org>
1016
1017 * s390-linux-tdep.c (s390_software_single_step): Call
1018 get_regcache_arch instead of get_frame_arch. Call
1019 regcache_read_pc instead of get_frame_pc.
1020
cd76b525
YQ
10212016-11-22 Yao Qi <yao.qi@linaro.org>
1022
1023 * sparc-tdep.c (sparc_analyze_control_transfer): Replace parameter
1024 frame with regcache. Call get_current_frame.
1025 (sparc_software_single_step): Call get_regcache_arch instead of
1026 get_frame_arch. Call regcache_raw_get_unsigned instead of
1027 get_frame_register_unsigned.
1028
3889f490
YQ
10292016-11-22 Yao Qi <yao.qi@linaro.org>
1030
1031 * nios2-tdep.c (nios2_get_next_pc): Replace parameter frame
1032 with regcache. Call regcache_raw_get_signed instead of
1033 get_frame_register_unsigned.
1034 (nios2_software_single_step): Call get_regcache_arch
1035 instead of get_frame_arch.
1036
a8f34182
YQ
10372016-11-22 Yao Qi <yao.qi@linaro.org>
1038
1039 * moxie-tdep.c (moxie_software_single_step): Call
1040 get_regcache_arch instead of get_frame_arch. Call
1041 regcache_read_pc instead of get_frame_pc.
1042
7113a196
YQ
10432016-11-22 Yao Qi <yao.qi@linaro.org>
1044
1045 * mips-tdep.c (mips32_bc1_pc): Replace parameter frame with
1046 regcache. Call regcache_raw_get_unsigned instead of
1047 get_frame_register_unsigned.
1048 (mips32_next_pc): Likewise.
1049 (micromips_bc1_pc): Likewise.
1050 (micromips_next_pc): Likewise.
1051 (extended_mips16_next_pc): Likewise.
1052 (mips16_next_pc): Likewise.
1053 (mips_next_pc): Likewise.
1054 (mips_software_single_step): Call get_regcache_arch instead
1055 of get_frame_arch.
1056
5b6e2eee
YQ
10572016-11-22 Yao Qi <yao.qi@linaro.org>
1058
1059 * cris-tdep.c (find_step_target): Replace parameter frame
1060 with regcache. Call get_regcache_arch instead of
1061 get_frame_arch. Call regcache_raw_get_unsigned instead of
1062 get_frame_register_unsigned.
1063 (cris_software_single_step): Call get_regcache_arch instead
1064 of get_frame_arch.
1065
7ab2d087
YQ
10662016-11-22 Yao Qi <yao.qi@linaro.org>
1067
1068 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Call
1069 get_regcache_arch instead of get_frame_arch. Call
1070 regcache_read_pc instead of get_frame_pc.
1071 (alpha_next_pc): Replace parameter frame with regcache.
1072 Call regcache_raw_get_unsigned instead of
1073 get_frame_register_unsigned.
1074
0187a92f
YQ
10752016-11-22 Yao Qi <yao.qi@linaro.org>
1076
1077 * aarch64-tdep.c (aarch64_software_single_step): Call
1078 get_regcache_arch instead of get_frame_arch. Call
1079 regcache_read_pc instead of get_frame_pc.
1080
9fd15b2e
YQ
10812016-11-22 Yao Qi <yao.qi@linaro.org>
1082
1083 * regcache.c (regcache_raw_get_signed): New function.
1084 * regcache.h (regcache_raw_get_signed): Declare.
1085
c5acd815
YQ
10862016-11-22 Yao Qi <yao.qi@linaro.org>
1087
1088 * value.c (value_from_component): Use VALUE_NEXT_FRAME_ID
1089 instead of VALUE_FROM_ID.
1090
d0de53e2
SM
10912016-11-21 Simon Marchi <simon.marchi@ericsson.com>
1092
1093 * Makefile.in (%o: $(srcdir)/mi/%.c): Add missing POSTCOMPILE
1094 step.
1095
3fff9862
YQ
10962016-11-21 Yao Qi <yao.qi@linaro.org>
1097
1098 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1099 Don't call value_from_contents_and_address and
1100 set_value_address. Call value_from_component.
1101 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer):
1102 Likewise.
1103 * value.c (value_from_component): New function.
1104 * value.h (value_from_component): Likewise.
1105 * valarith.c (value_subscripted_rvalue): Call
1106 value_from_component.
1107
cc188e5f
JB
11082016-11-19 Joel Brobecker <brobecker@adacore.com>
1109
1110 * contrib/ari/gdb_ari.sh: Add detection of printf_vma and
1111 sprintf_vma.
1112
ef787763
SM
11132016-11-18 Simon Marchi <simon.marchi@polymtl.ca>
1114
1115 * Makefile.in (%.o: $(srcdir)/gdbtk/generic/%.c): Fix typo.
1116
470dd0a6
SM
11172016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1118
1119 (PYTHON_CFLAGS): Move up.
1120 (%.o: $(srcdir)/arch/%.c): New rule.
1121 (%.o: $(srcdir)/cli/%.c): New rule.
1122 (%.o: $(srcdir)/common/%.c): New rule.
1123 (%.o: $(srcdir)/compile/%.c): New rule.
1124 (%.o: $(srcdir)/gdbtk/generic/%.c): New rule.
1125 (%.o: $(srcdir)/guile/%.c): New rule.
1126 (%.o: $(srcdir)/mi/%.c): New rule.
1127 (%.o: $(srcdir)/nat/%.c): New rule.
1128 (%.o: $(srcdir)/python/%.c): New rule.
1129 (%.o: $(srcdir)/target/%.c): New rule.
1130 (%.o: $(srcdir)/tui/%.c): New rule.
1131 (cli-cmds.o): Remove.
1132 (cli-decode.o): Likewise.
1133 (cli-dump.o): Likewise.
1134 (cli-interp.o): Likewise.
1135 (cli-logging.o): Likewise.
1136 (cli-script.o): Likewise.
1137 (cli-setshow.o): Likewise.
1138 (cli-utils.o): Likewise.
1139 (compile.o): Likewise.
1140 (compile-c-types.o): Likewise.
1141 (compile-c-symbols.o): Likewise.
1142 (compile-object-load.o): Likewise.
1143 (compile-object-run.o): Likewise.
1144 (compile-loc2c.o): Likewise.
1145 (compile-c-support.o): Likewise.
1146 (gdbtk.o): Likewise.
1147 (gdbtk-bp.o): Likewise.
1148 (gdbtk-cmds.o): Likewise.
1149 (gdbtk-hooks.o): Likewise.
1150 (gdbtk-interp.o): Likewise.
1151 (gdbtk-main.o): Likewise.
1152 (gdbtk-register.o): Likewise.
1153 (gdbtk-stack.o): Likewise.
1154 (gdbtk-varobj.o): Likewise.
1155 (gdbtk-wrapper.o): Likewise.
1156 (mi-cmd-break.o): Likewise.
1157 (mi-cmd-catch.o): Likewise.
1158 (mi-cmd-disas.o): Likewise.
1159 (mi-cmd-env.o): Likewise.
1160 (mi-cmd-file.o): Likewise.
1161 (mi-cmd-info.o): Likewise.
1162 (mi-cmds.o): Likewise.
1163 (mi-cmd-stack.o): Likewise.
1164 (mi-cmd-target.o): Likewise.
1165 (mi-cmd-var.o): Likewise.
1166 (mi-console.o): Likewise.
1167 (mi-getopt.o): Likewise.
1168 (mi-interp.o): Likewise.
1169 (mi-main.o): Likewise.
1170 (mi-out.o): Likewise.
1171 (mi-parse.o): Likewise.
1172 (mi-symbol-cmds.o): Likewise.
1173 (mi-common.o): Likewise.
1174 (signals.o): Likewise.
1175 (common-utils.o): Likewise.
1176 (gdb_vecs.o): Likewise.
1177 (xml-utils.o): Likewise.
1178 (ptid.o): Likewise.
1179 (buffer.o): Likewise.
1180 (filestuff.o): Likewise.
1181 (format.o): Likewise.
1182 (vec.o): Likewise.
1183 (print-utils.o): Likewise.
1184 (rsp-low.o): Likewise.
1185 (errors.o): Likewise.
1186 (common-debug.o): Likewise.
1187 (cleanups.o): Likewise.
1188 (common-exceptions.o
1189 (posix-strerror.o): Likewise.
1190 (mingw-strerror.o): Likewise.
1191 (btrace-common.o): Likewise.
1192 (fileio.o): Likewise.
1193 (common-regcache.o): Likewise.
1194 (signals-state-save-restore.o): Likewise.
1195 (new-op.o): Likewise.
1196 (waitstatus.o): Likewise.
1197 (arm.o): Likewise.
1198 (arm-linux.o): Likewise.
1199 (arm-get-next-pcs.o): Likewise.
1200 (x86-dregs.o): Likewise.
1201 (linux-btrace.o): Likewise.
1202 (linux-osdata.o): Likewise.
1203 (linux-procfs.o): Likewise.
1204 (linux-ptrace.o): Likewise.
1205 (linux-waitpid.o): Likewise.
1206 (mips-linux-watch.o): Likewise.
1207 (ppc-linux.o): Likewise.
1208 (linux-personality.o): Likewise.
1209 (x86-linux.o): Likewise.
1210 (x86-linux-dregs.o): Likewise.
1211 (amd64-linux-siginfo.o): Likewise.
1212 (linux-namespaces.o): Likewise.
1213 (aarch64-linux-hw-point.o): Likewise.
1214 (aarch64-linux.o): Likewise.
1215 (aarch64-insn.o): Likewise.
1216 (tui.o): Likewise.
1217 (tui-command.o): Likewise.
1218 (tui-data.o): Likewise.
1219 (tui-disasm.o): Likewise.
1220 (tui-file.o): Likewise.
1221 (tui-hooks.o): Likewise.
1222 (tui-interp.o): Likewise.
1223 (tui-io.o): Likewise.
1224 (tui-layout.o): Likewise.
1225 (tui-out.o): Likewise.
1226 (tui-regs.o): Likewise.
1227 (tui-source.o): Likewise.
1228 (tui-stack.o): Likewise.
1229 (tui-win.o): Likewise.
1230 (tui-windata.o): Likewise.
1231 (tui-wingeneral.o): Likewise.
1232 (tui-winsource.o): Likewise.
1233 (guile.o): Likewise.
1234 (scm-arch.o): Likewise.
1235 (scm-auto-load.o): Likewise.
1236 (scm-block.o): Likewise.
1237 (scm-breakpoint.o): Likewise.
1238 (scm-cmd.o): Likewise.
1239 (scm-disasm.o): Likewise.
1240 (scm-exception.o): Likewise.
1241 (scm-frame.o): Likewise.
1242 (scm-gsmob.o): Likewise.
1243 (scm-iterator.o): Likewise.
1244 (scm-lazy-string.o): Likewise.
1245 (scm-math.o): Likewise.
1246 (scm-objfile.o): Likewise.
1247 (scm-param.o): Likewise.
1248 (scm-ports.o): Likewise.
1249 (scm-pretty-print.o): Likewise.
1250 (scm-progspace.o): Likewise.
1251 (scm-safe-call.o): Likewise.
1252 (scm-string.o): Likewise.
1253 (scm-symbol.o): Likewise.
1254 (scm-symtab.o): Likewise.
1255 (scm-type.o): Likewise.
1256 (scm-utils.o): Likewise.
1257 (scm-value.o): Likewise.
1258 (python.o): Likewise.
1259 (py-arch.o): Likewise.
1260 (py-auto-load.o): Likewise.
1261 (py-block.o): Likewise.
1262 (py-bpevent.o): Likewise.
1263 (py-breakpoint.o): Likewise.
1264 (py-cmd.o): Likewise.
1265 (py-continueevent.o): Likewise.
1266 (py-xmethods.o): Likewise.
1267 (py-event.o): Likewise.
1268 (py-evtregistry.o): Likewise.
1269 (py-evts.o): Likewise.
1270 (py-exitedevent.o): Likewise.
1271 (py-finishbreakpoint.o): Likewise.
1272 (py-frame.o): Likewise.
1273 (py-framefilter.o): Likewise.
1274 (py-function.o): Likewise.
1275 (py-gdb-readline.o): Likewise.
1276 (py-inferior.o): Likewise.
1277 (py-infevents.o): Likewise.
1278 (py-infthread.o): Likewise.
1279 (py-lazy-string.o): Likewise.
1280 (py-linetable.o): Likewise.
1281 (py-newobjfileevent.o): Likewise.
1282 (py-objfile.o): Likewise.
1283 (py-param.o): Likewise.
1284 (py-prettyprint.o): Likewise.
1285 (py-progspace.o): Likewise.
1286 (py-signalevent.o): Likewise.
1287 (py-stopevent.o): Likewise.
1288 (py-symbol.o): Likewise.
1289 (py-symtab.o): Likewise.
1290 (py-threadevent.o): Likewise.
1291 (py-type.o): Likewise.
1292 (py-unwind.o): Likewise.
1293 (py-utils.o): Likewise.
1294 (py-value.o): Likewise.
1295 (py-varobj.o): Likewise.
1296
5443506e
SM
12972016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1298
1299 * Makefile.in (.c.o): Replace rule with ...
1300 (%.o: %.c): ... this one.
1301 (.po.gmo): Replace rule with ...
1302 (%.gmo: %.po): ... this one.
1303 (.po.pox): Replace rule with ...
1304 (%.pox: %.po): ... this one.
1305 (.y.c): Replace rule with ...
1306 (%.c: %.y): ... this one.
1307 (.l.c): Replace rule with ...
1308 (%.c: %.l): ... this one.
1309 (.SUFFIXES): Remove all instances.
1310
3b165252
SM
13112016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1312
1313 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
1314 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
1315 make.
1316 * configure.ac: Remove checks for the make program.
1317 * configure: Re-generate.
1318
f2ff9acd
SM
13192016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1320
1321 * NEWS: Mention requirement of GNU make.
1322
66be918f
PA
13232016-11-17 Pedro Alves <palves@redhat.com>
1324
1325 * c-exp.y (c_print_token): Use parser_fprintf instead of fprintf.
1326
7c2683c4
PA
13272016-11-17 Pedro Alves <palves@redhat.com>
1328
1329 * ctf.c [USE_WIN32API] (mkdir): Delete.
1330
200069c7
PA
13312016-11-16 Pedro Alves <palves@redhat.com>
1332
1333 * ada-lang.c (ada_value_primitive_packed_val): Use unique_ptr and
1334 new gdb_byte[] instead of malloc and cleanups.
1335
19f1935d
PA
13362016-11-17 Pedro Alves <palves@redhat.com>
1337
1338 * tracepoint.c (collection_list::add_memrange): Add gdbarch
1339 parameter. Use paddress instead of printf_vma. Adjust recursive
1340 calls.
1341 (collection_list::stringify): Use paddress and phex_nz instead of
1342 sprintf_vma. Adjust add_memrange call.
1343 * tracepoint.h (collection_list::add_memrange): Add gdbarch
1344 parameter.
1345
256ae5db
KB
13462016-11-16 Kevin Buettner <kevinb@redhat.com>
1347
1348 * frame.c (get_prev_frame): Stash frame id for current frame
1349 prior to computing frame id for previous frame.
1350
33cc7d36
KB
13512016-11-16 Kevin Buettner <kevinb@redhat.com>
1352
1353 * python/py-unwind.c (pending_framepy_read_register): Use
1354 value_of_register() instead of get_frame_register_value().
1355
41b56feb
KB
13562016-11-16 Kevin Buettner <kevinb@redhat.com>
1357
1358 * value.h (VALUE_FRAME_ID): Rename to VALUE_NEXT_FRAME_ID. Update
1359 comment. Create new VALUE_FRAME_ID which is defined in terms of
1360 VALUE_NEXT_FRAME_ID.
1361 (deprecated_value_frame_id_hack): Rename to
1362 deprecated_value_next_frame_id_hack.
1363 * dwarf2loc.c, findvar.c, frame-unwind.c, sentinel-frame.c,
1364 valarith.c, valops.c, value.c: Adjust nearly all occurences of
1365 VALUE_FRAME_ID to VALUE_NEXT_FRAME_ID. Add comments for those
1366 which did not change.
1367 * value.c (struct value): Rename frame_id field to next_frame_id.
1368 Update comment.
1369 (deprecated_value_frame_id_hack): Rename to
1370 deprecated_value_next_frame_id_hack.
1371 (value_fetch_lazy): Call frame_unwind_register_value()
1372 instead of get_frame_register_value().
1373 * frame.c (get_prev_frame_id_by_id): New function.
1374 * frame.h (get_prev_frame_id_by_id): Declare.
1375 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Make
1376 VALUE_NEXT_FRAME_ID refer to the next frame.
1377 * findvar.c (value_of_register_lazy): Likewise.
1378 (default_value_from_register): Likewise.
1379 (value_from_register): Likewise.
1380 * frame_unwind.c (frame_unwind_got_optimized): Likewise.
1381 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1382 * value.h (VALUE_FRAME_ID): Update comment describing this macro.
1383
df433d31
KB
13842016-11-16 Kevin Buettner <kevinb@redhat.com>
1385
1386 * frame.h (enum frame_id_stack_status): Add FID_STACK_SENTINEL.
1387 (struct frame_id): Increase number of bits required for storing
1388 stack status to 3 from 2.
1389 (sentinel_frame_id): New declaration.
1390 (get_next_frame_sentinel_okay): Declare.
1391 (frame_find_by_id_sentinel_okay): Declare.
1392 * frame.c (current_frame): Rename this static global to...
1393 (sentinel_frame): ...this static global, which has also been
1394 moved an earlier location in the file.
1395 (fprint_frame_id): Add case for sentinel frame id.
1396 (get_frame_id): Return early for sentinel frame.
1397 (sentinel_frame_id): Define.
1398 (frame_find_by_id): Add case for sentinel_frame_id.
1399 (create_sentinel_frame): Use sentinel_frame_id for this_id.value
1400 instead of null_frame_id.
1401 (get_current_frame): Add local declaration for `current_frame'.
1402 Remove local declaration for `sentinel_frame.'
1403 (get_next_frame_sentinel_okay): New function.
1404 (reinit_frame_cache): Use `sentinel_frame' in place of
1405 `current_frame'.
1406
4c62b19f
PA
14072016-11-15 Pedro Alves <palves@redhat.com>
1408
1409 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1410 38237baf99386101934cd93278023aa4ae523ec0.
1411 * gnulib/configure, gnulib/config.in: Regenerate.
1412 * gnulib/import/Makefile.am: Regenerate.
1413 * gnulib/import/Makefile.in: Regenerate.
1414 * gnulib/import/canonicalize-lgpl.c: Update.
1415 * gnulib/import/extra/snippet/c++defs.h: Update.
1416 * gnulib/import/m4/stdint.m4: Update.
1417 * gnulib/import/m4/stdlib_h.m4: Update.
1418 * gnulib/import/math.in.h: Update.
1419 * gnulib/import/stdlib.in.h: Update.
1420 * gnulib/import/sys_time.in.h: Update.
1421
5cc8c731
PA
14222016-11-15 Pedro Alves <palves@redhat.com>
1423
1424 * common/common-defs.h: Update comment.
1425 * common/gdb_unique_ptr.h: Update header comment and copyright
1426 year.
1427 (gdb::unique_ptr, gdb::move): Delete.
1428
b22e99fd
PA
14292016-11-15 Pedro Alves <palves@redhat.com>
1430
1431 * ada-lang.c (create_excep_cond_exprs): Use std::move instead of
1432 gdb::move.
1433 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
1434 std::unique_ptr instead of gdb::unique_ptr.
1435 * breakpoint.c (watch_command_1): Use std::move instead of
1436 gdb::move.
1437 * cli/cli-dump.c (dump_memory_to_file, restore_binary_file): Use
1438 std::unique_ptr instead of gdb::unique_ptr.
1439 * dtrace-probe.c (dtrace_process_dof_probe): Use std::move instead
1440 of gdb::move.
1441 * elfread.c (elf_read_minimal_symbols): Use std::unique_ptr
1442 instead of gdb::unique_ptr.
1443 * mi/mi-main.c (mi_cmd_data_read_memory): Use std::unique_ptr
1444 instead of gdb::unique_ptr.
1445 * parse.c (parse_expression_for_completion): Use std::move instead
1446 of gdb::move.
1447 * printcmd.c (display_command): std::move instead of gdb::move.
1448
db58b373
MM
14492016-11-14 Markus Metzger <markus.t.metzger@intel.com>
1450
1451 * nat/linux-btrace.c (perf_event_read): Allow data_head < size.
1452 * nat/linux-btrace.c (perf_event_read_all): Do not adjust size.
1453
8001f118
TT
14542016-11-12 Tom Tromey <tom@tromey.com>
1455
1456 * rust-exp.y (super_name): Use std::vector.
1457 (lex_number): Use std::string.
1458 (convert_params_to_types): Return std::vector.
1459 (convert_ast_to_type, convert_name): Update.
1460 * rust-lang.c (rust_get_disr_info): Use unique_xmalloc_ptr.
1461
d93f4d96
TT
14622016-11-12 Tom Tromey <tom@tromey.com>
1463
1464 * rust-lang.c (rust_get_disr_info): Use std::string in one more
1465 spot.
1466
7d15592e
YQ
14672016-11-11 Yao Qi <yao.qi@linaro.org>
1468
1469 * spu-tdep.c (spu_software_single_step): Don't call
1470 get_frame_register_bytes, call get_frame_register_unsigned
1471 instead.
1472
668e1674
YQ
14732016-11-11 Yao Qi <yao.qi@linaro.org>
1474
1475 * cp-valprint.c (cp_print_value): Remove local base_valaddr.
1476 * extension-priv.h (struct extension_language_ops)
1477 <apply_val_pretty_printer>: Remove the second parameter.
1478 Remove const from "struct value *". Callers updated.
1479 * extension.c (apply_ext_lang_val_pretty_printer): Update
1480 comments. Remove parameter valaddr. Remove const from
1481 "struct value *".
1482 * extension.h (apply_ext_lang_val_pretty_printer): Update
1483 declaration.
1484 * guile/guile-internal.h (gdbscm_apply_val_pretty_printer):
1485 Update declaration.
1486 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1487 Remove parameter valaddr. Remove const from "struct value *".
1488 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer):
1489 Likewise.
1490 * python/python-internal.h (gdbpy_apply_val_pretty_printer):
1491 Update declaration.
1492
65408fa6
YQ
14932016-11-11 Yao Qi <yao.qi@linaro.org>
1494
1495 * c-lang.h (cp_print_value_fields): Update declaration.
1496 * cp-valprint.c (cp_print_value): Update declaration.
1497 (cp_print_value_fields): Remove parameter valaddr. Callers
1498 updated.
1499 (cp_print_value): Likewise.
1500
9b972014
TT
15012016-11-09 Tom Tromey <tom@tromey.com>
1502
1503 * varobj.h (varobj_get_display_hint): Change return type.
1504 * varobj.c (varobj_get_display_hint): Return unique_xmalloc_ptr.
1505 (varobj_value_get_print_value): Update.
1506 * python/python.c (gdbpy_before_prompt_hook, gdbpy_print_stack)
1507 (gdbpy_apply_type_printers): Update.
1508 * python/python-internal.h (unicode_to_target_string)
1509 (python_string_to_target_string, python_string_to_host_string)
1510 (gdbpy_obj_to_string, gdbpy_exception_to_string)
1511 (gdbpy_get_display_hint): Change return types.
1512 * python/py-varobj.c (py_varobj_iter_next): Update.
1513 * python/py-value.c (valpy_getitem, convert_value_from_python):
1514 Update.
1515 * python/py-utils.c (unicode_to_encoded_string)
1516 (unicode_to_target_string, python_string_to_target_string)
1517 (python_string_to_host_string, gdbpy_obj_to_string)
1518 (gdbpy_exception_to_string): Return unique_xmalloc_ptr.
1519 * python/py-unwind.c (pyuw_parse_register_id): Update.
1520 * python/py-type.c (typy_getitem): Update.
1521 * python/py-prettyprint.c (gdbpy_get_display_hint)
1522 (print_stack_unless_memory_error, print_children)
1523 (gdbpy_apply_val_pretty_printer): Update.
1524 * python/py-param.c (set_parameter_value): Update.
1525 (get_doc_string, call_doc_function): Return unique_xmalloc_ptr.
1526 (get_set_value, get_show_value, compute_enum_values, parmpy_init):
1527 Update.
1528 * python/py-infthread.c (thpy_set_name): Update.
1529 * python/py-function.c (fnpy_call, fnpy_init): Update.
1530 * python/py-framefilter.c (extract_sym): Change "name" to
1531 unique_xmalloc_ptr.
1532 (enumerate_args, enumerate_locals): Update.
1533 (py_print_frame): Use unique_xmalloc_ptr.
1534 * python/py-frame.c (frapy_read_var): Update. Remove cleanup.
1535 * python/py-cmd.c (cmdpy_function, cmdpy_completer, cmdpy_init):
1536 Update.
1537 * python/py-breakpoint.c (bppy_set_condition): Use
1538 unique_xmalloc_ptr.
1539 (bppy_init): Likewise. Remove cleanup.
1540 (local_setattro): Update.
1541 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_list_children)
1542 (varobj_update_one): Update.
1543
6c73cd95
PA
15442016-11-09 Pedro Alves <palves@redhat.com>
1545
1546 * ax-gdb.c (agent_eval_command_one): Use std::move instead of
1547 gdb::move.
1548 * ax.h (agent_expr_up): Use std::unique_ptr instead of
1549 gdb::unique_ptr.
1550 * breakpoint.c (parse_cond_to_aexpr): Use std::move instead of
1551 gdb::move.
1552 * tracepoint.c (collection_list::collect_symbol): Likewise.
1553 (collection_list::~collection_list): Delete.
1554 (encode_actions_1): Use std::move instead of gdb::move.
1555 (collection_list::add_aexpr): Use std::move instead of
1556 unique_ptr::release.
1557 * tracepoint.h (collection_list) <~collection_list>: Delete
1558 declaration.
1559 <m_aexprs>: Now a vector of agent_ptr_up.
1560
7a63494a
PA
15612016-11-09 Pedro Alves <palves@redhat.com>
1562
1563 * main.c (struct cmdarg): Add constructor.
1564 (captured_main_1): Use vector::emplace_back.
1565 * tracepoint.c (collection_list::add_memrange): Likewise.
1566
8c84bffb
AA
15672016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1568
1569 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove
1570 failed-xmalloc handling.
1571
7bc2c8b8
AA
15722016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1573
1574 * tui/tui-winsource.c (tui_alloc_source_buffer): Subtract
1575 highlight box's overhead when calculating the content height.
1576
f5396833
AA
15772016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1578
1579 * tui/tui-disasm.c (tui_set_disassem_content): Fix calculation of
1580 the longest disassembly line's length.
1581
0bb65f1e
AA
15822016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1583
1584 * tui/tui-disasm.c (tui_set_disassem_content): Fix line buffer
1585 overrun due to unchecked strcpy.
1586
82b19a4d
TG
15872016-11-09 Tristan Gingold <gingold@adacore.com>
1588
1589 * darwin-nat.c (find_inferior_task_it): Fix indentation.
1590 (find_inferior_notify_it): Remove.
1591 (find_inferior_pid_it): New function.
1592 (darwin_find_inferior_by_notify): Remove.
1593 (darwin_find_inferior_by_pid): New function.
1594 (darwin_find_new_inferior): New function.
1595 (darwin_check_message_ndr): New function from
1596 darwin_decode_exception_message.
1597 (darwin_decode_exception_message): Call darwin_check_message_ndr.
1598 Handle SIGTRAP addressed to an unknown task (when a task spawned).
1599 (darwin_decode_notify_message): New function.
1600 (darwin_decode_message): Handle unknown task.
1601 (darwin_deallocate_threads): New function from darwin_mourn_inferior.
1602 (darwin_mourn_inferior): Use darwin_deallocate_threads and
1603 darwin_deallocate_exception_ports.
1604 (darwin_deallocate_exception_ports): New function from
1605 darwin_mourn_inferior.
1606 (darwin_setup_exceptions): New function from darwin_attach_pid.
1607 (darwin_setup_request_notification): Likewise.
1608 (darwin_attach_pid): Call darwin_setup_request_notification and
1609 darwin_setup_request_notification.
1610
30a7bb83
TT
16112016-11-08 Tom Tromey <tom@tromey.com>
1612
1613 * python/py-framefilter.c (py_print_frame): Use
1614 get_addr_from_python. Check for errors when getting line number.
1615
e8b24d9f
YQ
16162016-11-08 Yao Qi <yao.qi@linaro.org>
1617
1618 * ada-lang.h (ada_val_print): Remove second parameter. Remove
1619 const from "struct value *".
1620 * ada-valprint.c (print_field_values): Remove const from
1621 "struct value *".
1622 (val_print_packed_array_elements): Likewise.
1623 (print_variant_part): Likewise.
1624 (ada_val_print_string): Likewise.
1625 (ada_val_print_gnat_array): Likewise.
1626 (ada_val_print_ptr): Likewise.
1627 (ada_val_print_num): Likewise.
1628 (ada_val_print_enum): Likewise.
1629 (ada_val_print_flt): Likewise.
1630 (ada_val_print_union): Likewise.
1631 (ada_val_print_struct_union): Likewise.
1632 (ada_val_print_ref): Likewise.
1633 (ada_val_print_1): Remove second parameter. Remove const from
1634 "struct value *".
1635 (ada_val_print): Likewise.
1636 * c-lang.h (c_val_print): Likewise.
1637 * c-valprint.c (c_val_print_array): Remove const from
1638 "struct value *".
1639 (c_val_print_ptr): Likewise.
1640 (c_val_print_struct): Likewise.
1641 (c_val_print_union): Likewise.
1642 (c_val_print_int): Likewise.
1643 (c_val_print_memberptr): Likewise.
1644 (c_val_print): Remove second parameter. Remove const from
1645 "struct value *". All callers updated.
1646 * cp-valprint.c (cp_print_value): Remove const from
1647 "struct value *".
1648 (cp_print_value_fields): Likewise.
1649 (c_val_print_value): Likewise.
1650 * d-lang.h (d_val_print): Remove second parameter. Remove const
1651 from "struct value *".
1652 * d-valprint.c (dynamic_array_type): Likewise.
1653 (d_val_print): Likewise.
1654 * f-lang.h (f_val_print): Likewise.
1655 * f-valprint.c (f_val_print): Likewise.
1656 * go-lang.h (go_val_print): Likewise.
1657 * go-valprint.c (print_go_string): Likewise.
1658 (go_val_print): Likewise.
1659 * language.c (unk_lang_val_print): Likewise.
1660 * language.h (struct language_defn) <la_val_print>: Likewise.
1661 Update comments.
1662 (LA_VAL_PRINT): Remove.
1663 * m2-lang.h (m2_val_print): Remove const from
1664 "struct value *".
1665 * m2-valprint.c (m2_print_array_contents): Likewise.
1666 (m2_val_print): Likewise.
1667 * p-lang.h (pascal_val_print): Remove second parameter. Remove
1668 const from "struct value *".
1669 (pascal_object_print_value_fields): Likewise.
1670 * p-valprint.c (pascal_val_print): Likewise.
1671 (pascal_object_print_value_fields): Likewise.
1672 (pascal_object_print_value): Likewise.
1673 * rust-lang.c (rust_get_disr_info): Likewise.
1674 (val_print_struct): Likewise.
1675 (rust_val_print): Likewise.
1676 * valprint.c (generic_val_print_array): Likewise.
1677 (generic_val_print_ptr): Likewise.
1678 (generic_val_print_memberptr): Likewise.
1679 (generic_val_print_ref): Likewise.
1680 (generic_val_print_enum): Likewise.
1681 (generic_val_print_flags): Likewise.
1682 (generic_val_print_func): Likewise.
1683 (generic_val_print_bool): Likewise.
1684 (generic_val_print_int): Likewise.
1685 (generic_val_print_char): Likewise.
1686 (generic_val_print_float): Likewise.
1687 (generic_val_print_decfloat): Likewise.
1688 (generic_val_print_complex): Likewise.
1689 (generic_val_print): Likewise.
1690 (val_print): Likewise.
1691 (common_val_print): Likewise.
1692 (val_print_type_code_flags): Likewise.
1693 (val_print_scalar_formatted): Likewise.
1694 (val_print_array_elements): Likewise.
1695 * valprint.h (val_print_array_elements): Update declaration.
1696 (val_print_scalar_formatted): Likewise.
1697 (generic_val_print): Likewise.
1698 * value.h (val_print): Likewise.
1699
cc977dc7
YQ
17002016-11-08 Yao Qi <yao.qi@linaro.org>
1701
1702 * mt-tdep.c (mt_registers_info): Call
1703 get_frame_register_value instead of
1704 deprecated_frame_register_read.
1705 * sh64-tdep.c (sh64_do_register): Likewise.
1706
3cde5c42
PA
17072016-11-08 Pedro Alves <palves@redhat.com>
1708
1709 * ax.h (agent_expr_p): Delete.
1710 (DEF_VEC_P (agent_expr_p)): Delete.
1711 * breakpoint.c (build_target_condition_list)
1712 (build_target_command_list): Adjust to use of std::vector.
1713 (bp_location_dtor): Remove now unnecessary VEC_free calls.
1714 * breakpoint.h: Include <vector>.
1715 (struct bp_target_info) <conditions, tcommands>: Now
1716 std::vector's.
1717 * remote.c (remote_add_target_side_condition): bp_tgt->conditions
1718 is now a std::vector; adjust.
1719 (remote_add_target_side_commands, remote_insert_breakpoint):
1720 bp_tgt->tcommands is now a std::vector; adjust.
1721
833177a4
PA
17222016-11-08 Pedro Alves <palves@redhat.com>
1723
1724 * ax-gdb.c (is_nontrivial_conversion): Use agent_expr_up.
1725 (gen_trace_for_var, gen_trace_for_expr, gen_eval_for_expr)
1726 (gen_trace_for_return_address, gen_printf): Use and return an
1727 agent_expr_up. Don't use make_cleanup_free_agent_expr.
1728 (agent_eval_command_one, maint_agent_printf_command): Use
1729 agent_expr_up. Don't use make_cleanup_free_agent_expr.
1730 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
1731 (gen_trace_for_return_address, gen_eval_for_expr, gen_printf): Use
1732 agent_expr_up.
1733 * ax-general.c (new_agent_expr): Rename to ...
1734 (agent_expr::agent_expr): ... this, and now a constructor.
1735 (free_agent_expr): Rename to ...
1736 (agent_expr::~agent_exp): ... this, and now a destructor.
1737 (do_free_agent_expr_cleanup, make_cleanup_free_agent_expr):
1738 Delete.
1739 * ax.h (struct agent_expr): Add ctor/dtor.
1740 (agent_expr_up): New typedef.
1741 (new_agent_expr, free_agent_expr, make_cleanup_free_agent_expr):
1742 Delete declarations.
1743 * breakpoint.c (parse_cond_to_aexpr): Use and return an
1744 agent_expr_up. Don't use make_cleanup_free_agent_expr.
1745 (build_target_condition_list): Adjust to use agent_expr_up.
1746 (parse_cmd_to_aexpr): Use and return an agent_expr_up. Don't use
1747 make_cleanup_free_agent_expr.
1748 (build_target_command_list): Adjust to use agent_expr_up.
1749 (force_breakpoint_reinsertion): Adjust to use agent_expr_up.
1750 (bp_location_dtor): Remove unnecessary free_agent_expr and xfree
1751 calls.
1752 * breakpoint.h (struct bp_target_info) <cond_bytecode,
1753 cmd_bytecode>: Now agent_expr_up's.
1754 * remote.c (remote_download_tracepoint): Adjust to use
1755 agent_expr_up and remove use of make_cleanup_free_agent_expr.
1756 * tracepoint.c (validate_actionline, collect_symbol): Adjust to
1757 use agent_expr_up and remove uses of make_cleanup_free_agent_expr.
1758 (collection_list::~collection_list): Call delete instead of
1759 free_agent_expr.
1760 (encode_actions_1): Adjust to use agent_expr_up and remove uses of
1761 make_cleanup_free_agent_expr.
1762 (add_aexpr): Change parameter type to agent_expr_up; Return a raw
1763 agent_expr pointer.
1764
2f408ecb
PA
17652016-11-08 Pedro Alves <palves@redhat.com>
1766
1767 * ada-lang.c (ada_name_for_lookup, type_as_string): Use and return
1768 std::string.
1769 (type_as_string_and_cleanup): Delete.
1770 (ada_lookup_struct_elt_type): Use type_as_string.
1771 * ada-lang.h (ada_name_for_lookup): Now returns std::string.
1772 * ada-varobj.c (ada_varobj_scalar_image): Return a std::string.
1773 (ada_varobj_describe_child): Make 'child_name' and
1774 'child_path_expr' parameters std::string pointers.
1775 (ada_varobj_describe_struct_child, ada_varobj_describe_ptr_child):
1776 Likewise, and use string_printf.
1777 (ada_varobj_describe_simple_array_child)
1778 (ada_varobj_describe_child): Likewise.
1779 (ada_varobj_get_name_of_child, ada_varobj_get_path_expr_of_child)
1780 (ada_varobj_get_value_image)
1781 (ada_varobj_get_value_of_array_variable)
1782 (ada_varobj_get_value_of_variable, ada_name_of_variable)
1783 (ada_name_of_child, ada_path_expr_of_child)
1784 (ada_value_of_variable): Now returns std::string. Use
1785 string_printf.
1786 (ada_value_of_child): Adjust.
1787 * break-catch-throw.c (check_status_exception_catchpoint): Adjust
1788 to use std::string.
1789 * breakpoint.c (watch_command_1): Adjust to use std::string.
1790 * c-lang.c (c_get_string): Adjust to use std::string.
1791 * c-typeprint.c (print_name_maybe_canonical): Use std::string.
1792 * c-varobj.c (varobj_is_anonymous_child): Use ==/!= std::string
1793 operators.
1794 (c_name_of_variable): Now returns a std::string.
1795 (c_describe_child): The 'cname' and 'cfull_expression' output
1796 parameters are now std::string pointers. Adjust.
1797 (c_name_of_child, c_path_expr_of_child, c_value_of_variable)
1798 (cplus_number_of_children): Adjust to use std::string and
1799 string_printf.
1800 (cplus_name_of_variable): Now returns a std::string.
1801 (cplus_describe_child): The 'cname' and 'cfull_expression' output
1802 parameters are now std::string pointers. Adjust.
1803 (cplus_name_of_child, cplus_path_expr_of_child)
1804 (cplus_value_of_variable): Now returns a std::string.
1805 * cp-abi.c (cplus_typename_from_type_info): Return std::string.
1806 * cp-abi.h (cplus_typename_from_type_info): Return std::string.
1807 (struct cp_abi_ops) <get_typename_from_type_info>: Return
1808 std::string.
1809 * cp-support.c (inspect_type): Use std::string.
1810 (cp_canonicalize_string_full, cp_canonicalize_string_no_typedefs)
1811 (cp_canonicalize_string): Return std::string and adjust.
1812 * cp-support.h (cp_canonicalize_string)
1813 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string_full):
1814 Return std::string.
1815 * dbxread.c (read_dbx_symtab): Use std::string.
1816 * dwarf2read.c (dwarf2_canonicalize_name): Adjust to use std::string.
1817 * gdbcmd.h (lookup_struct_elt_type): Adjust to use std::string.
1818 * gnu-v3-abi.c (gnuv3_get_typeid): Use std::string.
1819 (gnuv3_get_typename_from_type_info): Return a std::string and
1820 adjust.
1821 (gnuv3_get_type_from_type_info): Adjust to use std::string.
1822 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
1823 std::string.
1824 * infcmd.c (print_return_value_1): Adjust to use std::string.
1825 * linespec.c (find_linespec_symbols): Adjust to
1826 demangle_for_lookup API change. Use std::string.
1827 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_set_format)
1828 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
1829 (mi_cmd_var_info_expression, mi_cmd_var_evaluate_expression)
1830 (mi_cmd_var_assign, varobj_update_one): Adjust to use std::string.
1831 * minsyms.c (lookup_minimal_symbol): Use std::string.
1832 * python/py-varobj.c (py_varobj_iter_next): Use new instead of
1833 XNEW. vitem->name is a std::string now, adjust.
1834 * rust-exp.y (convert_ast_to_type, convert_name): Adjust to use
1835 std::string.
1836 * stabsread.c (define_symbol): Adjust to use std::string.
1837 * symtab.c (demangle_for_lookup): Now returns 'const char *'. Add
1838 a demangle_result_storage parameter. Use it for storage.
1839 (lookup_symbol_in_language)
1840 (lookup_symbol_in_objfile_from_linkage_name): Adjust to new
1841 demangle_for_lookup API.
1842 * symtab.h (struct demangle_result_storage): New type.
1843 (demangle_for_lookup): Now returns 'const char *'. Add a
1844 demangle_result_storage parameter.
1845 * typeprint.c (type_to_string): Return std::string and use
1846 ui_file_as_string.
1847 * value.h (type_to_string): Change return type to std::string.
1848 * varobj-iter.h (struct varobj_item) <name>: Now a std::string.
1849 (varobj_iter_delete): Use delete instead of xfree.
1850 * varobj.c (create_child): Return std::string instead of char * in
1851 output parameter.
1852 (name_of_variable, name_of_child, my_value_of_variable): Return
1853 std::string instead of char *.
1854 (varobj_create, varobj_get_handle): Constify 'objname' parameter.
1855 Adjust to std::string fields.
1856 (varobj_get_objname): Return a const char * instead of a char *.
1857 (varobj_get_expression): Return a std::string.
1858 (varobj_list_children): Adjust to use std::string.
1859 (varobj_get_type): Return a std::string.
1860 (varobj_get_path_expr): Return a const char * instead of a char *.
1861 Adjust to std::string fields.
1862 (varobj_get_formatted_value, varobj_get_value): Return a
1863 std::string.
1864 (varobj_set_value): Change type of 'expression' parameter to
1865 std::string. Use std::string.
1866 (install_new_value): Use std::string.
1867 (delete_variable_1): Adjust to use std::string.
1868 (create_child): Change the 'name' parameter to a std::string
1869 reference. Swap it into the new item's name.
1870 (create_child_with_value): Swap item's name into the new child's
1871 name. Use string_printf.
1872 (new_variable): Use new instead of XNEW.
1873 (free_variable): Don't xfree fields that are now std::string.
1874 (name_of_variable, name_of_child): Now returns std::string.
1875 (value_of_root): Adjust to use std::string.
1876 (my_value_of_variable, varobj_value_get_print_value): Return
1877 and use std::string.
1878 (varobj_value_get_print_value): Adjust to use ui_file_as_string
1879 and std::string.
1880 * varobj.h (struct varobj) <name, path_expr, obj_name,
1881 print_value>: Now std::string's.
1882 <name_of_variable, name_of_child, path_expr_of_child,
1883 value_of_variable>: Return std::string.
1884 (varobj_create, varobj_get_handle): Constify 'objname' parameter.
1885 (varobj_get_objname): Return a const char * instead of a char *.
1886 (varobj_get_expression, varobj_get_type): Return a std::string.
1887 (varobj_get_path_expr): Return a const char * instead of a char *.
1888 (varobj_get_formatted_value, varobj_get_value): Return a
1889 std::string.
1890 (varobj_set_value): Constify 'expression' parameter.
1891 (varobj_value_get_print_value): Return a std::string.
1892
d2af8993
PA
18932016-11-08 Pedro Alves <palves@redhat.com>
1894
1895 * language.c (add_language): Use ui_file_as_string and adjust to
1896 use std::string.
1897
5698084a
PA
18982016-11-08 Pedro Alves <palves@redhat.com>
1899 Tom Tromey <tom@tromey.com>
1900
1901 * rust-lang.c (struct disr_info) <name>: Now a std::string.
1902 (rust_get_disr_info): Use ui_file_as_string and adjust to use
1903 std::string.
1904 (rust_val_print): Adjust to use std::string.
1905
af1fe7b3
PA
19062016-11-08 Pedro Alves <palves@redhat.com>
1907
1908 * infrun.c (print_target_wait_results): Use ui_file_as_string and
1909 std::string.
1910
3b4de39c
PA
19112016-11-08 Pedro Alves <palves@redhat.com>
1912
1913 * ada-lang.c (type_as_string): Use ui_file_as_string and return
1914 std::string.
1915 (type_as_string_and_cleanup): Delete.
1916 (ada_lookup_struct_elt_type): Use type_as_string.
1917
6f030249
PA
19182016-11-08 Pedro Alves <palves@redhat.com>
1919
1920 * gdbarch.sh (verify_gdbarch): Use ui_file_as_string and
1921 std::string.
1922 * gdbarch.c: Regenerate.
1923
66bbce5b
PA
19242016-11-08 Pedro Alves <palves@redhat.com>
1925
1926 * c-exp.y (OPERATOR NEW): Adjust to use ui_file_as_string and
1927 std::string.
1928
aaee65ae
PA
19292016-11-08 Pedro Alves <palves@redhat.com>
1930
1931 * c-lang.h (c_compute_program): Now returns std::string.
1932 * compile/compile-internal.h (class compile_file_names): New
1933 class.
1934 * compile/compile-object-load.c (compile_object_load): Replace
1935 object_file and source_file parameters with a compile_file_names
1936 parameter. Adjust.
1937 * compile-object-load.h: Include "compile-internal.h".
1938 (compile_object_load): Replace object_file and source_file
1939 parameters with a compile_file_names parameter.
1940 * compile/compile-c-support.c (c_compute_program): Now returns a
1941 std::string. Use ui_file_as_string.
1942 * compile/compile.c (get_new_file_names): Remove parameters and
1943 return a compile_file_names instead.
1944 (compile_to_object): Now returns a compile_file_names. Use
1945 ui_file_as_string.
1946 (eval_compile_command): Use compile_file_names.
1947 * language.h (struct language_defn) <la_compute_program>: Now
1948 returns std::string.
1949
3d8b0d94
PA
19502016-11-08 Pedro Alves <palves@redhat.com>
1951
1952 * cli/cli-setshow.c (do_show_command): Adjust to use
1953 ui_file_as_string and std::string.
1954
b3ced9ba
PA
19552016-11-08 Pedro Alves <palves@redhat.com>
1956
1957 * remote.c (escape_buffer): Use ui_file_as_string and return
1958 std::string.
1959 (putpkt_binary, read_frame): Adjust to use std::string.
1960
c92aed16
PA
19612016-11-08 Pedro Alves <palves@redhat.com>
1962
1963 * python/py-arch.c (archpy_disassemble): Use ui_file_as_string and
1964 std::string.
1965 * python/py-breakpoint.c (bppy_get_commands): Use
1966 ui_file_as_string and std::string.
1967 * python/py-frame.c (frapy_str): Likewise.
1968 * python/py-type.c (typy_str): Likewise.
1969 * python/py-unwind.c (unwind_infopy_str): Likewise.
1970 * python/py-value.c (valpy_str): Likewise.
1971
02030646
PA
19722016-11-08 Pedro Alves <palves@redhat.com>
1973
1974 * printcmd.c (eval_command): Use ui_file_as_string and
1975 std::string.
1976
7b01d34b
PA
19772016-11-08 Pedro Alves <palves@redhat.com>
1978
1979 * top.c (quit_confirm): Use ui_file_as_string and std::string.
1980
db1ec11f
PA
19812016-11-08 Pedro Alves <palves@redhat.com>
1982
1983 * gdbcmd.h (execute_command_to_string): Now returns std::string.
1984 (lookup_struct_elt_type): Adjust to use std::string.
1985 * top.c (execute_command_to_string): Use ui_file_as_string and
1986 return std::string.
1987 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
1988 std::string.
1989 * python/python.c (execute_gdb_command): Adjust to use
1990 std::string.
1991
3ab692db
PA
19922016-11-08 Pedro Alves <palves@redhat.com>
1993
1994 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
1995 ui_file_as_string and adjust to use std::string.
1996 * guile/scm-disasm.c (gdbscm_arch_disassemble): Likewise.
1997 * guile/scm-frame.c (frscm_print_frame_smob): Likewise.
1998 * guile/scm-type.c (tyscm_type_name): Use ui_file_as_string and
1999 adjust to use std::string. Throw exception directly instead of
2000 returning it in EXCP output parameter.
2001 (tyscm_print_type_smob, gdbscm_type_print_name): Adjust to
2002 tyscm_type_name interface change.
2003 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
2004 Use ui_file_as_string and std::string.
2005
09b0e4b0
PA
20062016-11-08 Pedro Alves <palves@redhat.com>
2007
2008 * arm-tdep.c (_initialize_arm_tdep): Use ui_file_as_string and
2009 std::string.
2010
d16c5475
PA
20112016-11-08 Pedro Alves <palves@redhat.com>
2012
2013 * utils.c (error_stream): Use ui_file_as_string and std::string.
2014
56dbf317
PA
20152016-11-08 Pedro Alves <palves@redhat.com>
2016
2017 * ui-out.c (ui_out_field_stream): Use ui_file_as_string.
2018
77e1c742
PA
20192016-11-08 Pedro Alves <palves@redhat.com>
2020
2021 * ada-valprint.c (ada_print_floating): Use ui_file_as_string and
2022 std::string.
2023
a0f86e73
PA
20242016-11-08 Pedro Alves <palves@redhat.com>
2025
2026 * xtensa-tdep.c (xtensa_verify_config): Use ui_file_as_string and
2027 std::string.
2028
322a8516
PA
20292016-11-08 Pedro Alves <palves@redhat.com>
2030
2031 * dwarf2read.c (dwarf2_compute_name): Use ui_file_as_string and
2032 std::string.
2033
1f45808e
PA
20342016-11-08 Pedro Alves <palves@redhat.com>
2035
2036 * mi/mi-main.c (print_variable_or_computed): Constify 'expression'
2037 parameter.
2038 (mi_cmd_trace_frame_collected): Call encode_actions instead of
2039 encode_actions_and_make_cleanup. Adjust to use std::vector.
2040 * tracepoint.c (memrange_cmp): Delete.
2041 (memrange_comp): New.
2042 (memrange_sortmerge): Take a memrange vector as parameter instead
2043 of a collection_list. Use std::sort instead of qsort.
2044 (add_register): Now a method of collection_list. Adjust to m_
2045 prefix of data fields.
2046 (add_memrange): Now a method of collection_list. Adjust to m_
2047 prefix of data fields. Adjust to use std::vector.
2048 (collect_symbol): Now a method of collection_list. Adjust to m_
2049 prefix of data fields.
2050 (do_collect_symbol): Adjust. Call add_wholly_collected instead of
2051 accessing the vector directly.
2052 (collection_list::add_wholly_collected): New.
2053 (add_local_symbols): Now a method of collection_list.
2054 (add_static_trace_data): Now a method of collection_list. Adjust
2055 to use bool.
2056 (clear_collection_list, do_clear_collection_list): Delete.
2057 (init_collection_list): Delete.
2058 (collection_list::collection_list): New.
2059 (collection_list::~collection_list): New.
2060 (stringify_collection_list): Rename to ...
2061 (collection_list::stringify): ... this and adjust to being a
2062 method of collection_list. Adjust to use of std::vector.
2063 (append_exp): Now a method of collection_list. Use
2064 ui_file_as_string. Adjust to std::vector.
2065 (collection_list::finish): New.
2066 (encode_actions_1): Adjust.
2067 (encode_actions_and_make_cleanup): Rename to ...
2068 (encode_actions)... this. No longer returns a cleanup. No longer
2069 call init_collection_list nor install do_clear_collection_list
2070 cleanups. Call collection_list::finish instead of
2071 memrange_sortmerge directly.
2072 (encode_actions_rsp): Adjust to call encode_actions instead of
2073 encode_actions_and_make_cleanup. Adjust to method renames.
2074 (add_aexpr): Now a method of collection_list.
2075 * tracepoint.h: Include <vector> and <string>.
2076 (struct memrange): Add constructors.
2077 (struct collection_list): Now a class.
2078 (class collection_list) <collection_list, ~collection_list,
2079 add_wholly_collected, append_exp, add_aexpr, add_register,
2080 add_memrange, collect_symbol, add_local_symbols,
2081 add_static_trace_data, finish, stringify, wholly_collected, and
2082 computed>: New methods.
2083 <regs_mask>: Rename to ...
2084 <m_regs_mask>: ... this.
2085 <listsize, next_memrange, list>: Delete fields.
2086 <m_memranges>: New field.
2087 <aexpr_listsize, next_aexpr_elt, aexpr_list>: Delete fields.
2088 <m_aexprs>: New field.
2089 <strace_data>: Rename to ...
2090 <m_strace_data>: ... this. Now a bool.
2091 <wholly_collected>: Rename to ...
2092 <m_wholly_collected>: ... this. Now a std::vector<std::string>.
2093 <computed>: Rename to ...
2094 <m_computed>: ... this. Now a std::vector<std::string>.
2095 (encode_actions_and_make_cleanup): Delete declaration.
2096 (encode_actions): New declaration.
2097
8de00631
PA
20982016-11-08 Pedro Alves <palves@redhat.com>
2099
2100 * ui-file.c (do_ui_file_as_string, ui_file_as_string): New
2101 functions.
2102 * ui-file.h: Include <string>.
2103 (ui_file_as_string): New declaration.
2104
4d01a485
PA
21052016-11-08 Pedro Alves <palves@redhat.com>
2106
2107 * ada-lang.c (ada_read_renaming_var_value): Use expression_up.
2108 (struct ada_catchpoint_location) <excep_cond_expr>: Now an
2109 expression_up.
2110 (ada_catchpoint_location_dtor): Reset excep_cond_expr instead of
2111 using xfree.
2112 (create_excep_cond_exprs): Use expression_up and gdb::move.
2113 (allocate_location_exception): Use new instead of XNEW.
2114 (should_stop_exception): Likewise. Adjust to use expression_up.
2115 (create_ada_exception_catchpoint): Use new instead of XNEW.
2116 * ax-gdb.c (agent_eval_command_one): Use expression_up instead of
2117 cleanups.
2118 (maint_agent_printf_command): Use expression_up.
2119 * break-catch-sig.c (create_signal_catchpoint): Use new instead of
2120 XNEW.
2121 * break-catch-syscall.c (create_syscall_event_catchpoint):
2122 Likewise.
2123 * break-catch-throw.c (handle_gnu_v3_exceptions): Use new instead
2124 of XCNEW. Use gdb::unique_ptr instead of cleanups.
2125 * breakpoint.c (set_breakpoint_condition, update_watchpoint)
2126 (parse_cmd_to_aexpr, watchpoint_check)
2127 (bpstat_check_breakpoint_conditions, watchpoint_locations_match):
2128 Adjust to use expression_up.
2129 (init_bp_location): Adjust.
2130 (free_bp_location): Use delete instead of xfree.
2131 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2132 (add_solib_catchpoint, create_fork_vfork_event_catchpoint)
2133 (new_single_step_breakpoint, create_breakpoint_sal): Use new
2134 instead of XNEW.
2135 (find_condition_and_thread): Adjust to use expression_up.
2136 (create_breakpoint): Use new instead of XNEW.
2137 (dtor_watchpoint): Don't xfree expression pointers, they're
2138 unique_ptr's now.
2139 (insert_watchpoint, remove_watchpoint): Adjust.
2140 (watch_command_1): Use expression_up. Use new instead of XCNEW.
2141 (catch_exec_command_1): Use new instead of XNEW.
2142 (bp_location_dtor): Don't xfree expression pointers, they're
2143 unique_ptr's now.
2144 (base_breakpoint_allocate_location)
2145 (strace_marker_create_breakpoints_sal): Use new instead of XNEW.
2146 (delete_breakpoint): Use delete instead of xfree.
2147 * breakpoint.h (struct bp_location) <cond>: Now an
2148 unique_ptr<expression> instead of a raw pointer.
2149 (struct watchpoint) <exp, cond_exp>: Likewise.
2150 * cli/cli-script.c (execute_control_command): Use expression_up
2151 instead of cleanups.
2152 * dtrace-probe.c (dtrace_process_dof_probe): Use expression_up.
2153 * eval.c (parse_and_eval_address, parse_and_eval_long)
2154 (parse_and_eval, parse_to_comma_and_eval, parse_and_eval_type):
2155 Use expression_up instead of cleanups.
2156 * expression.h (expression_up): New typedef.
2157 (parse_expression, parse_expression_with_language, parse_exp_1):
2158 Change return type to expression_up.
2159 * mi/mi-main.c (mi_cmd_data_evaluate_expression)
2160 (print_variable_or_computed): Use expression_up.
2161 * objc-lang.c (print_object_command): Use expression_up instead of
2162 cleanups.
2163 * parse.c (parse_exp_1, parse_exp_in_context)
2164 (parse_exp_in_context_1, parse_expression)
2165 (parse_expression_with_language): Return an expression_up instead
2166 of a raw pointer.
2167 (parse_expression_for_completion): Use expression_up.
2168 * printcmd.c (struct display) <exp>: Now an expression_up instead
2169 of a raw pointer.
2170 (print_command_1, output_command_const, set_command, x_command):
2171 Use expression_up instead of cleanups.
2172 (display_command): Likewise. Use new instead of XNEW.
2173 (free_display): Use delete instead of xfree.
2174 (do_one_display): Adjust to use expression_up.
2175 * remote.c (remote_download_tracepoint): Likewise.
2176 * stack.c (return_command): Likewise.
2177 * tracepoint.c (validate_actionline, encode_actions_1): Use
2178 expression_up instead of cleanups.
2179 * typeprint.c (whatis_exp, maintenance_print_type): Likewise.
2180 * value.c (init_if_undefined_command): Likewise.
2181 * varobj.c (struct varobj_root) <exp>: Now an expression_up
2182 instead of a raw pointer.
2183 (varobj_create): Adjust.
2184 (varobj_set_value): Use an expression_up instead of cleanups.
2185 (new_root_variable): Use new instead of XNEW.
2186 (free_variable): Use delete instead of xfree.
2187 (value_of_root_1): Use std::swap.
2188
b0646401
PA
21892016-11-08 Pedro Alves <palves@redhat.com>
2190
2191 * cli/cli-script.c (execute_control_command): Use std::string
2192 instead of cleanups.
2193 (locate_arg): Constify return type.
2194 (insert_args): Constify paremeter. Simplify using std::string.
2195 Return a std::string.
2196
896b6bda
PA
21972016-11-08 Pedro Alves <palves@redhat.com>
2198
2199 * breakpoint.c (struct commands_info) <arg>: Constify.
2200 (commands_command_1): Constify 'arg' parameter. Use std::string
2201 and string_printf.
2202 (commands_from_control_command): Constify 'arg' parameter.
2203 (map_breakpoint_numbers): Constify 'args' parameter.
2204 * breakpoint.h (commands_from_control_command): Constify 'arg'
2205 parameter.
2206
4f8ad951
PA
22072016-11-08 Pedro Alves <palves@redhat.com>
2208
2209 * cli/cli-script.c (execute_control_command): Assume insert_args
2210 never returns NULL.
2211 (insert_args): Assume xmalloc never returns NULL.
2212
d4081a38
PA
22132016-11-08 Pedro Alves <palves@redhat.com>
2214
2215 * Makefile.in (COMMON_OBS): Add utils-selftests.o.
2216 * common/common-utils.c (string_printf): New function.
2217 * common/common-utils.h: Include <string>.
2218 (string_printf): Declare.
2219 * utils-selftests.c: New file.
2220
93f9a11f
YQ
22212016-11-08 Yao Qi <yao.qi@linaro.org>
2222
2223 * aarch64-tdep.c (aarch64_software_single_step): Return
2224 VEC (CORE_ADDR) *. Return NULL instead of 0. Don't call
2225 insert_single_step_breakpoint.
2226 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Likewise.
2227 (alpha_software_single_step): Likewise.
2228 * alpha-tdep.h (alpha_software_single_step): Update declaration.
2229 * arm-linux-tdep.c (arm_linux_software_single_step): Return
2230 VEC (CORE_ADDR) *. Return NULL instead of 0.
2231 * arm-tdep.c (arm_software_single_step): Return NULL instead of 0.
2232 * arm-tdep.h (arm_software_single_step): Update declaration.
2233 * breakpoint.c (insert_single_step_breakpoints): New function.
2234 * breakpoint.h (insert_single_step_breakpoints): Declare.
2235 * cris-tdep.c (cris_software_single_step): Return
2236 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
2237 * gdbarch.sh (software_single_step): Change it to return
2238 VEC (CORE_ADDR) *.
2239 * gdbarch.c, gdbarch.h: Regenerated.
2240 * infrun.c (maybe_software_singlestep): Adjust.
2241 * mips-tdep.c (mips_deal_with_atomic_sequence): Return
2242 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
2243 (micromips_deal_with_atomic_sequence): Likewise.
2244 (deal_with_atomic_sequence): Likewise.
2245 (mips_software_single_step): Likewise.
2246 * mips-tdep.h (mips_software_single_step): Update declaration.
2247 * moxie-tdep.c (moxie_software_single_step): Likewise.
2248 * nios2-tdep.c (nios2_software_single_step): Likewise.
2249 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Update
2250 declaration.
2251 * record-full.c (record_full_resume): Adjust.
2252 (record_full_wait_1): Likewise.
2253 * rs6000-aix-tdep.c (rs6000_software_single_step): Return
2254 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
2255 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Return
2256 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
2257 * s390-linux-tdep.c (s390_software_single_step): Likewise.
2258 * sparc-tdep.c (sparc_software_single_step): Likewise.
2259 * spu-tdep.c (spu_software_single_step): Likewise.
2260 * tic6x-tdep.c (tic6x_software_single_step): Likewise.
2261
0bc5d801
YQ
22622016-11-08 Yao Qi <yao.qi@linaro.org>
2263
2264 * arm-linux-tdep.c (arm_linux_software_single_step): Write
2265 adjusted address back to vector. Call insert_single_step_breakpoint
2266 in a new loop.
2267 * arm-tdep.c (arm_software_single_step): Likewise.
2268
771da62d
YQ
22692016-11-08 Yao Qi <yao.qi@linaro.org>
2270
2271 * arm-linux-tdep.c (arm_linux_software_single_step): Don't
2272 call arm_insert_single_step_breakpoint, call
2273 insert_single_step_breakpoint instead.
2274 * arm-tdep.c (arm_insert_single_step_breakpoint): Remove.
2275 (arm_software_single_step): Don't call
2276 arm_insert_single_step_breakpoint, call
2277 insert_single_step_breakpoint instead.
2278 * arm-tdep.h (arm_insert_single_step_breakpoint): Remove
2279 declaration.
2280
53c3572a
CD
22812016-11-08 Cordian A. Daniluk <th3c0r1uk@gmail.com>
2282
2283 PR breakpoints/20739
2284 * breakpoint.c (check_fast_tracepoint_sals): Don't print duplicate
2285 0x prefix.
2286
20955dbf
YQ
22872016-11-08 Yao Qi <yao.qi@linaro.org>
2288
2289 * rust-lang.c (val_print_struct): Fix indentation.
2290
9dc193c3
LF
22912016-11-08 Lionel Flandrin <lionel@svkt.org>
2292
2293 * remote.c (process_g_packet): Detect truncated registers in 'g'
2294 packets and raise an error.
2295
5996220c
DE
22962016-11-07 Doug Evans <dje@google.com>
2297
2298 * guile/scm-value.c (gdbscm_value_field): Fix call to value_struct_elt.
2299 * python/py-value.c (valpy_getitem): Ditto.
2300
ad9eb1fd
DE
23012016-11-07 Doug Evans <dje@google.com>
2302
2303 * i386-tdep.c (i386_gdbarch_init): Add comments.
2304
bc71081e
DE
23052016-11-07 Doug Evans <dje@google.com>
2306
2307 * python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate.
2308
a5716032
DE
23092016-11-07 Doug Evans <dje@google.com>
2310
2311 * configure.tgt (x86_64-*-elf*): Remove i386bsd-tdep.o.
2312
26c4b26f
SM
23132016-11-04 Simon Marchi <simon.marchi@polymtl.ca>
2314
2315 * maint.c (scoped_command_stats::scoped_command_stats): Fix typo.
2316 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
2317 * ppcobsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
2318 * ui-out.c (ui_out_new): Likewise.
2319 * utils.c (init_page_info): Likewise.
2320 (reset_prompt_for_continue_wait_time): Likewise.
2321 * windows-nat.c (windows_init_thread_list): Likewise.
2322 * xtensa-tdep.c (call0_analyze_prologue): Likewise.
2323
cdf5a07c
MG
23242016-10-29 Manish Goregaokar <manish@mozilla.com>
2325
2806dc7e 2326 * rust-exp.y: Parse `sizeof(exp)` as `UNOP_SIZEOF`.
cdf5a07c 2327
b96645f1
MG
23282016-10-28 Manish Goregaokar <manish@mozilla.com>
2329
2806dc7e
PA
2330 * rust-lang.c (rust_union_is_untagged): Add function to check if a
2331 union is an untagged union.
2332 (rust_val_print): Handle printing of untagged union values.
2333 (rust_print_type): Handle printing of untagged union types.
2334 (rust_evaluate_subexp): Handle evaluating field access on untagged
2335 unions.
51a789c3
MG
2336
23372016-10-27 Manish Goregaokar <manish@mozilla.com>
2338
2806dc7e
PA
2339 * rust-lang.c (rust_get_disr_info): Treat univariant enums without
2340 discriminants as encoded enums with a real field.
2341 * rust-lang.c (rust_evaluate_subexp): Handle field access on
2342 encoded struct-like enums.
51a789c3 2343
722bcb33
YQ
23442016-11-03 Yao Qi <yao.qi@linaro.org>
2345
2346 * Makefile.in (.y.c): Replace YY_NULL with YY_NULLPTR.
2347
04180708
YQ
23482016-11-03 Yao Qi <yao.qi@linaro.org>
2349 Pedro Alves <palves@redhat.com>
2350
2351 * aarch64-tdep.c (aarch64_default_breakpoint): Change it to
2352 constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
2353 (aarch64_gdbarch_init): Don't use
2354 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2355 * alpha-tdep.c (break_insn): Rename to alpha_break_insn.
2356 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
2357 (alpha_gdbarch_init): Don't use
2358 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2359 * arc-tdep.c (arc_gdbarch_init): Don't use
2360 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2361 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Remove.
2362 (struct bp_manipulation): New.
2363 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Remove.
2364 (struct bp_manipulation_endian): New.
2365 (BP_MANIPULATION): New.
2366 (BP_MANIPULATION_ENDIAN): New.
2367 * arm-tdep.c (arm_gdbarch_init): Don't use
2368 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2369 * avr-tdep.c (avr_break_insn): Change it constexpr.
2370 (avr_gdbarch_init): Don't use
2371 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2372 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2373 * cris-tdep.c (cris_gdbarch_init): Likewise.
2374 * frv-tdep.c (breakpoint): Rename it to frv_break_insn, and
2375 change its type to constexpr. Don't use
2376 GDBARCH_BREAKPOINT_MANIPULATION.
2377 (frv_gdbarch_init): Don't use
2378 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2379 * ft32-tdep.c (breakpoint): Rename it to ft32_break_insn and
2380 change its type to constexpr. Don't use
2381 GDBARCH_BREAKPOINT_MANIPULATION.
2382 (ft32_gdbarch_init): Don't use
2383 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2384 * h8300-tdep.c (breakpoint): Rename it to h8300_break_insn.
2385 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
2386 (h8300_gdbarch_init): Don't use
2387 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2388 * hppa-tdep.c (breakpoint): Rename it to h8300_break_insn.
2389 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
2390 (hppa_gdbarch_init): Don't use
2391 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2392 * i386-tdep.c (break_insn): Rename it to i386_break_insn.
2393 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
2394 (i386_gdbarch_init): Don't use
2395 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2396 * iq2000-tdep.c (iq2000_gdbarch_init): Don't use
2397 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2398 * lm32-tdep.c (breakpoint): Rename it to lm32_break_insn and
2399 change its type to constexpr. Don't use
2400 GDBARCH_BREAKPOINT_MANIPULATION.
2401 (lm32_gdbarch_init): Don't use
2402 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2403 * m32c-tdep.c (break_insn): Rename it to m32c_break_insn and change
2404 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
2405 (m32c_gdbarch_init): Don't use
2406 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2407 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2408 * m68hc11-tdep.c (breakpoint): Rename it to m68hc11_break_insn and
2409 change its type to constexpr.
2410 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
2411 (m68hc11_gdbarch_init): Don't use SET_GDBARCH_BREAKPOINT_MANIPULATION.
2412 * m68k-tdep.c (break_insn): Rename it to m68k_break_insn and change
2413 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
2414 (m68k_gdbarch_init): Don't use
2415 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2416 * m88k-tdep.c (break_insn): Rename it to m88k_break_insn and change
2417 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
2418 (m88k_gdbarch_init): Don't use
2419 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2420 * mep-tdep.c (breakpoint): Rename it to mep_break_insn and change
2421 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
2422 (mep_gdbarch_init): Don't use
2423 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2424 * microblaze-tdep.c (break_insn): Rename it to
2425 microblaze_break_insn and change its type to constexpr. Don't use
2426 GDBARCH_BREAKPOINT_MANIPULATION.
2427 (microblaze_gdbarch_init): Don't use
2428 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2429 * mips-tdep.c (mips_gdbarch_init): Likewise.
2430 * mn10300-tdep.c (breakpoint): Rename it to mn10300_break_insn and
2431 change its type to constexpr. Don't use
2432 GDBARCH_BREAKPOINT_MANIPULATION.
2433 (mn10300_gdbarch_init): Don't use
2434 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2435 * moxie-tdep.c (breakpoint): Rename it to moxie_break_insn and
2436 change its type to constexpr. Don't use
2437 GDBARCH_BREAKPOINT_MANIPULATION.
2438 (moxie_gdbarch_init): Don't use
2439 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2440 * msp430-tdep.c (breakpoint): Rename it to msp430_break_insn
2441 and change its type to constexpr. Don't use
2442 GDBARCH_BREAKPOINT_MANIPULATION.
2443 (msp430_gdbarch_init): Don't use
2444 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2445 * mt-tdep.c (mt_gdbarch_init): Likewise.
2446 * nds32-tdep.c (break_insn): Rename it to nds32_break_insn
2447 and change its type to constexpr. Don't use
2448 GDBARCH_BREAKPOINT_MANIPULATION.
2449 (nds32_gdbarch_init): Don't use
2450 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2451 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2452 * rl78-tdep.c (breakpoint): Rename it to rl78_break_ins
2453 and change its type to rl78_break_insn. Don't use
2454 GDBARCH_BREAKPOINT_MANIPULATION.
2455 (rl78_gdbarch_init): Don't use
2456 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2457 * rs6000-tdep.c (big_breakpoint): Change its type to
2458 constexpr.
2459 (little_breakpoint): Likewise.
2460 Don't use GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN.
2461 (rs6000_gdbarch_init): Don't use
2462 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2463 * rx-tdep.c (breakpoint): Rename it to rx_break_insn and
2464 change its type to constexpr. Don't use
2465 GDBARCH_BREAKPOINT_MANIPULATION.
2466 (rx_gdbarch_init): Don't use
2467 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2468 * s390-linux-tdep.c (breakpoint): Rename it to s390_break_insn
2469 and change its type to constexpr. Don't use
2470 GDBARCH_BREAKPOINT_MANIPULATION
2471 (s390_gdbarch_init): Don't use
2472 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2473 * score-tdep.c (score_gdbarch_init): Likewise.
2474 * sh-tdep.c (sh_gdbarch_init): Likewise.
2475 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2476 * sparc-tdep.c (break_insn): Rename it to sparc_break_insn
2477 and change its type to constexpr. Don't use
2478 GDBARCH_BREAKPOINT_MANIPULATION.
2479 (sparc32_gdbarch_init): Don't use
2480 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2481 * spu-tdep.c (breakpoint): Rename it to spu_break_insn and change
2482 its type to constexpr. Don't use
2483 GDBARCH_BREAKPOINT_MANIPULATION.
2484 (spu_gdbarch_init): Don't use
2485 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2486 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
2487 * tilegx-tdep.c (breakpoint): Rename it to tilegx_break_insn
2488 and change its type to constexpr. Don't use
2489 GDBARCH_BREAKPOINT_MANIPULATION.
2490 (tilegx_gdbarch_init): Don't use
2491 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2492 * v850-tdep.c (v850_gdbarch_init): Likewise.
2493 * vax-tdep.c (break_insn): Rename it to vax_break_insn and
2494 change its type to constexpr.
2495 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
2496 (vax_gdbarch_init): Don't use
2497 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2498 * xstormy16-tdep.c (breakpoint): Rename it to
2499 xstormy16_break_insn and change its type to constexpr.
2500 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
2501 (xstormy16_gdbarch_init): Don't use
2502 SET_GDBARCH_BREAKPOINT_MANIPULATION.
2503 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
2504
a97c97e8
YQ
25052016-11-03 Yao Qi <yao.qi@linaro.org>
2506
2507 * arm-tdep.c (arm_override_mode): Remove.
2508 (arm_pc_is_thumb): Update.
2509 (arm_insert_single_step_breakpoint): Update.
2510
833b7ab5
YQ
25112016-11-03 Yao Qi <yao.qi@linaro.org>
2512
2513 * arch-utils.c (default_breakpoint_kind_from_current_state):
2514 New function.
2515 * arch-utils.h (default_breakpoint_kind_from_current_state):
2516 Declare.
2517 * arm-tdep.c (arm_breakpoint_kind_from_current_state): New
2518 function.
2519 (arm_gdbarch_init): Call
2520 set_gdbarch_breakpoint_kind_from_current_state.
2521 * breakpoint.c (breakpoint_kind): Call
2522 gdbarch_breakpoint_kind_from_current_state for single step
2523 breakpoint. Update comments.
2524 * gdbarch.sh (breakpoint_kind_from_current_state): New.
2525 * gdbarch.c, gdbarch.h: Regenerate.
2526
22f13eb8
YQ
25272016-11-03 Yao Qi <yao.qi@linaro.org>
2528
2529 * arch-utils.c (default_breakpoint_from_pc): New function.
2530 * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): Remove.
2531 (GDBARCH_BREAKPOINT_MANIPULATION): Don't use
2532 GDBARCH_BREAKPOINT_FROM_PC.
2533 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Don't call
2534 set_gdbarch_breakpoint_from_pc.
2535 (default_breakpoint_from_pc): Remove declaration.
2536 * gdbarch.sh (breakpoint_from_pc): Add its default implementation.
2537 * gdbarch.c, gdbarch.h: Regenerate.
2538 * arm-tdep.c: Don't use GDBARCH_BREAKPOINT_FROM_PC.
2539 * arc-tdep.c, bfin-tdep.c, cris-tdep.c, iq2000-tdep.c: Likewise.
2540 * m32r-tdep.c, mips-tdep.c, mt-tdep.c: Likewise.
2541 * nios2-tdep.c, score-tdep.c, sh-tdep.c: Likewise.
2542 * sh64-tdep.c, tic6x-tdep.c, v850-tdep.c, xtensa-tdep.c: Likewise.
2543
c0f4a997
YQ
25442016-11-03 Yao Qi <yao.qi@linaro.org>
2545
2546 * arch-utils.c (default_remote_breakpoint_from_pc): Remove.
2547 * arch-utils.h (default_remote_breakpoint_from_pc): Remove.
2548 * arm-tdep.c (arm_remote_breakpoint_from_pc): Remove.
2549 (arm_gdbarch_init): Don't call
2550 set_gdbarch_remote_breakpoint_from_pc.
2551 * gdbarch.sh (remote_breakpoint_from_pc): Remove.
2552 * gdbarch.c, gdbarch.h: Regenerate.
2553 * mips-tdep.c (mips_remote_breakpoint_from_pc): Remove.
2554 (mips_gdbarch_init): Don't call
2555 set_gdbarch_remote_breakpoint_from_pc.
2556
579c6ad9
YQ
25572016-11-03 Yao Qi <yao.qi@linaro.org>
2558
2559 * breakpoint.h (struct bp_target_info) <placed_size>: Remove.
2560 <kind>: New field.
2561 Update all users.
2562
cd6c3b4f
YQ
25632016-11-03 Yao Qi <yao.qi@linaro.org>
2564
2565 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Define
2566 breakpoint_kind_from_pc and sw_breakpoint_from_kind.
2567 (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): Likewise.
2568 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Call
2569 set_gdbarch_breakpoint_kind_from_pc and
2570 set_gdbarch_sw_breakpoint_from_kind.
2571 * arm-tdep.c: Add comments.
2572 * bfin-tdep.c: Likewise.
2573 * breakpoint.c (breakpoint_kind): New function.
2574 (insert_bp_location): Set target_info.placed_size and
2575 target_info.placed_address.
2576 (bkpt_insert_location): Likewise.
2577 * cris-tdep.c: Add comments.
2578 * gdbarch.sh (breakpoint_kind_from_pc): New.
2579 (sw_breakpoint_from_kind): New.
2580 * gdbarch.c, gdbarch.h: Regenerated.
2581 * ia64-tdep.c (ia64_memory_insert_breakpoint): Don't set
2582 bp_tgt->placed_size.
2583 (ia64_memory_remove_breakpoint): Don't assert
2584 bp_tgt->placed_size.
2585 (ia64_breakpoint_kind_from_pc): New function.
2586 (ia64_gdbarch_init): Install ia64_breakpoint_kind_from_pc.
2587 * m32r-tdep.c (m32r_memory_insert_breakpoint): Don't set
2588 bp_tgt->placed_size.
2589 * mem-break.c (default_memory_insert_breakpoint): Don't set
2590 bp_tgt->placed_size. Call gdbarch_sw_breakpoint_from_kind.
2591 (default_memory_remove_breakpoint): Call
2592 gdbarch_sw_breakpoint_from_kind.
2593 (memory_validate_breakpoint): Don't check bp_tgt->placed_size.
2594 * mips-tdep.c: Add comments.
2595 * mt-tdep.c: Likewise.
2596 * nios2-tdep.c: Likewise.
2597 * record-full.c (record_full_insert_breakpoint): Don't call
2598 gdbarch_breakpoint_from_pc. Don't set bp_tgt->placed_address
2599 and bp_tgt->placed_size.
2600 * remote.c (remote_insert_breakpoint): Don't call
2601 gdbarch_remote_breakpoint_from_pc. Use bp_tgt->placed_size.
2602 Don't set bp_tgt->placed_address and bp_tgt->placed_size.
2603 (remote_insert_hw_breakpoint): Likewise.
2604 * score-tdep.c: Likewise.
2605 * sh-tdep.c: Likewise.
2606 * tic6x-tdep.c: Likewise.
2607 * v850-tdep.c: Likewise.
2608 * xtensa-tdep.c: Likewise.
2609
d19280ad
YQ
26102016-11-03 Yao Qi <yao.qi@linaro.org>
2611
2612 * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): New macro.
2613 (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): New macro.
2614 * arm-tdep.c (arm_breakpoint_from_pc): Remove.
2615 (arm_breakpoint_kind_from_pc): New function.
2616 (arm_sw_breakpoint_from_kind): New function.
2617 (arm_breakpoint_from_pc): Call arm_breakpoint_kind_from_pc
2618 and arm_sw_breakpoint_from_kind.
2619 Use GDBARCH_BREAKPOINT_FROM_PC.
2620 (arm_remote_breakpoint_from_pc): Call
2621 arm_breakpoint_kind_from_pc.
2622 (arm_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
2623 with SET_GDBARCH_BREAKPOINT_MANIPULATION.
2624 * arc-tdep.c: Likewise.
2625 * bfin-tdep.c: Likewise.
2626 * cris-tdep.c: Likewise.
2627 * iq2000-tdep.c: Likewise.
2628 * m32r-tdep.c: Likewise.
2629 * mips-tdep.c: Likewise.
2630 * mt-tdep.c: Likewise.
2631 * nios2-tdep.c: Likewise.
2632 * rs6000-tdep.c: Likewise.
2633 * score-tdep.c: Likewise.
2634 * sh-tdep.c: Likewise.
2635 * sh64-tdep.c: Likewise.
2636 * tic6x-tdep.c: Likewise.
2637 * v850-tdep.c: Likewise.
2638 * xtensa-tdep.c: Likewise.
2639
44f1c4d7
YQ
26402016-11-03 Yao Qi <yao.qi@linaro.org>
2641
2642 * mips-tdep.c (mips_breakpoint_kind): New enum.
2643 (mips_breakpoint_from_pc): Use it.
2644 (mips_remote_breakpoint_from_pc): Likewise.
2645
598cc9dc
YQ
26462016-11-03 Yao Qi <yao.qi@linaro.org>
2647
2648 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): New macro.
2649 (SET_GDBARCH_BREAKPOINT_MANIPULATION): New macro.
2650 aarch64-tdep.c (aarch64_breakpoint_from_pc): Remove. Use
2651 GDBARCH_BREAKPOINT_MANIPULATION.
2652 (aarch64_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
2653 with SET_GDBARCH_BREAKPOINT_MANIPULATION.
2654 * alpha-tdep.c: Likewise.
2655 * avr-tdep.c: Likewise.
2656 * frv-tdep.c: Likewise.
2657 * ft32-tdep.c: Likewise.
2658 * h8300-tdep.c: Likewise.
2659 * hppa-tdep.c: Likewise.
2660 * i386-tdep.c: Likewise.
2661 * lm32-tdep.c: Likewise.
2662 * m32c-tdep.c: Likewise.
2663 * m68hc11-tdep.c: Likewise.
2664 * m68k-tdep.c: Likewise.
2665 * m88k-tdep.c: Likewise.
2666 * mep-tdep.c: Likewise.
2667 * microblaze-tdep.c: Likewise.
2668 * mn10300-tdep.c: Likewise.
2669 * moxie-tdep.c: Likewise.
2670 * msp430-tdep.c: Likewise.
2671 * rl78-tdep.c: Likewise.
2672 * rx-tdep.c: Likewise.
2673 * s390-linux-tdep.c: Likewise.
2674 * sparc-tdep.c: Likewise.
2675 * spu-tdep.c: Likewise.
2676 * tilegx-tdep.c: Likewise.
2677 * vax-tdep.c: Likewise.
2678 * xstormy16-tdep.c: Likewise.
2679
8b55a7e4
YQ
26802016-11-03 Yao Qi <yao.qi@linaro.org>
2681
2682 * mem-break.c (default_memory_insert_breakpoint): Don't check
2683 'bp' against NULL.
2684 * microblaze-linux-tdep.c (microblaze_linux_memory_remove_breakpoint):
2685 Likewise.
2686 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2687
7d5697f9
TT
26882016-11-02 Tom Tromey <tom@tromey.com>
2689
2690 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type): Rename
2691 from impl_get_base_type. Rewrite.
2692 (struct dwarf_expr_baton): Remove.
2693 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value): Save and
2694 restore more fields.
2695 (symbol_needs_eval_context::get_frame_pc): New method.
2696 * dwarf2expr.h (dwarf_expr_context::get_base_type): Now public,
2697 virtual.
2698 (dwarf_expr_context::impl_get_base_type): Remove.
2699 * dwarf2expr.c (dwarf_expr_context::get_base_type): Remove.
2700
c5073021
MR
27012016-10-31 Maciej W. Rozycki <macro@imgtec.com>
2702
2703 * configure.ac <mips-sgi-irix5*>: Remove <sys/proc.h> _KMEMUSER
2704 workaround.
2705 * configure: Regenerate.
2706 * config.in: Regenerate.
2707
7e3d947d
MR
27082016-10-31 Maciej W. Rozycki <macro@imgtec.com>
2709
2710 * mips-tdep.c (mips_r3041_reg_names): Remove.
2711 (mips_breakpoint_from_pc): Remove IDT and PMON breakpoint
2712 encodings.
2713
de4bfa86
MR
27142016-10-31 Maciej W. Rozycki <macro@imgtec.com>
2715
2716 * defs.h (gdb_osabi): Remove GDB_OSABI_IRIX enum value.
2717 * osabi.c (gdb_osabi_names): Remove "Irix" entry.
2718 * mips-tdep.c (mips_irix_reg_names): Remove.
2719 (mips_register_type): Remove GDB_OSABI_IRIX code.
2720 (mips_pseudo_register_type): Likewise.
2721 (mips_breakpoint_from_pc): Likewise.
2722 (mips_gdbarch_init): Likewise.
2723
e6485aaf
PA
27242016-10-29 Pedro Alves <palves@redhat.com>
2725
2726 * NEWS: Clarify C++ requirement.
2727
d2946923
PA
27282016-10-29 Pedro Alves <palves@redhat.com>
2729
2730 * NEWS: Adjust to mention C++11 requirement.
2731
8ba42bc5
EZ
27322016-10-29 Eli Zaretskii <eliz@gnu.org>
2733
2734 * NEWS: Mention support for redirection on MS-Windows.
2735
2736 * windows-nat.c (redir_open, redir_set_redirection)
2737 (redirect_inferior_handles) [!__CYGWIN__]: New functions.
2738 (windows_create_inferior) [!__CYGWIN__]: Use
2739 'redirect_inferior_handles' to redirect standard handles of the
2740 debuggee if the command line requests that.
2741
0bcda685
PA
27422016-10-28 Pedro Alves <palves@redhat.com>
2743
2744 * Makefile.in (CXX_DIALECT): Get from configure.
2745 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
2746 (FLAGS_TO_PASS): Pass CXX_DIALECT.
2747 * acinclude.m4: Include ax_cxx_compile_stdcxx.m4.
2748 * ax_cxx_compile_stdcxx.m4: Add FSF copyright header. Set and
2749 AC_SUBST CXX_DIALECT instead of changing CXX/CXXCPP.
2750 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
2751 * config.in: Regenerate.
2752 * configure: Regenerate.
2753
87106a7b
PA
27542016-10-28 Pedro Alves <palves@redhat.com>
2755
2756 * ax_cxx_compile_stdcxx.m4: New file.
2757
44d83468
PA
27582016-10-28 Pedro Alves <palves@redhat.com>
2759
2760 * maint.c (scoped_command_stats::scoped_command_stats): Clear
2761 m_space_enabled, m_time_enabled and m_symtab_enabled.
2762
d87fdac3
MM
27632016-10-28 Markus Metzger <markus.t.metzger@intel.com>
2764
2765 * btrace.c (bfun_s): New typedef.
2766 (ftrace_update_caller): Print caller in debug dump.
2767 (ftrace_get_caller, ftrace_match_backtrace, ftrace_fixup_level)
2768 (ftrace_compute_global_level_offset, ftrace_connect_bfun)
2769 (ftrace_connect_backtrace, ftrace_bridge_gap, btrace_bridge_gaps): New.
2770 (btrace_compute_ftrace_bts): Pass vector of gaps. Collect gaps.
2771 (btrace_compute_ftrace_pt): Likewise.
2772 (btrace_compute_ftrace): Split into this, ...
2773 (btrace_compute_ftrace_1): ... this, and ...
2774 (btrace_finalize_ftrace): ... this. Call btrace_bridge_gaps.
2775
259ba1e8
MM
27762016-10-28 Markus Metzger <markus.t.metzger@intel.com>
2777
2778 * btrace.c (ftrace_new_return): Start from the previous function's
2779 level if we can't find a matching call for a return.
2780
2dfdb47a
MM
27812016-10-28 Markus Metzger <markus.t.metzger@intel.com>
2782
2783 * btrace.c (ftrace_update_function): Update tail call heuristic.
2784
b61ce85c
MM
27852016-10-28 Markus Metzger <markus.t.metzger@intel.com>
2786
2787 * btrace.c (btrace_compute_ftrace_bts, ftrace_add_pt): Allow
2788 leading gaps.
2789 * record-btrace.c (record_btrace_single_step_forward)
2790 (record_btrace_single_step_backward): Jump back to last
2791 instruction if step ends at a gap.
2792 (record_btrace_goto_begin): Skip gaps.
2793
63ab433e
MM
27942016-10-28 Markus Metzger <markus.t.metzger@intel.com>
2795
2796 * btrace.c (ftrace_add_pt): Fix gap indication. Add warning for non-
2797 contiguous trace and overflow. Rephrase trace decode warning and print
2798 instruction number. Remove dead gaps warning.
2799 (btrace_compute_ftrace_bts): Rephrase warnings and print instruction
2800 number.
2801
ecf45d2c
SL
28022016-10-25 Sandra Loosemore <sandra@codesourcery.com>
2803 Luis Machado <lgustavo@codesourcery.com>
2804 Pedro Alves <palves@redhat.com>
2805
2806 PR gdb/20569
2807 * exceptions.c (exception_print_same): Moved here from exec.c.
2808 * exceptions.h (exception_print_same): Declare.
2809 * exec.h: Include "symfile-add-flags.h".
2810 (try_open_exec_file): New declaration.
2811 * exec.c (exception_print_same): Moved to exceptions.c.
2812 (try_open_exec_file): New function.
2813 (exec_file_locate_attach): Rename exec_file and full_exec_path
2814 variables to avoid confusion between target and host pathnames.
2815 Move pathname processing logic to exec_file_find. Do not return
2816 early if pathname lookup fails; Call try_open_exec_file.
2817 * infrun.c (follow_exec): Split and rename execd_pathname variable
2818 to avoid confusion between target and host pathnames. Warn if
2819 pathname lookup fails. Pass target pathname to
2820 target_follow_exec, not hostpathname. Call try_open_exec_file.
2821 * main.c (symbol_file_add_main_adapter): New function.
2822 (captured_main_1): Use it.
2823 * solib-svr4.c (open_symbol_file_object): Adjust to pass
2824 symfile_add_flags to symbol_file_add_main.
2825 * solib.c (exec_file_find): Incorporate fallback logic for relative
2826 pathnames formerly in exec_file_locate_attach.
2827 * symfile.c (symbol_file_add_main, symbol_file_add_main_1):
2828 Replace 'from_tty' parameter with a symfile_add_file.
2829 (symbol_file_command): Adjust to pass symfile_add_flags to
2830 symbol_file_add_main.
2831 * symfile.h (symbol_file_add_main): Replace 'from_tty' parameter
2832 with a symfile_add_file.
2833
b15cc25c
PA
28342016-10-26 Pedro Alves <palves@redhat.com>
2835
2836 * coffread.c (coff_symfile_read): Use symfile_add_flags.
2837 * dbxread.c (dbx_symfile_read): Ditto.
2838 * elfread.c (elf_symfile_read): Ditto.
2839 * inferior.h: Include symfile-add-flags.h.
2840 (struct inferior) <symfile_flags>: Now symfile_add_flags.
2841 * machoread.c (macho_add_oso_symfile, macho_symfile_read_all_oso)
2842 (macho_symfile_read, mipscoff_symfile_read): Use
2843 symfile_add_flags.
2844 * objfile-flags.h: New file.
2845 * objfiles.c (allocate_objfile): Use objfile_flags.
2846 * objfiles.h: Include objfile-flags.h.
2847 (struct objfile) <flags>: Now an objfile_flags.
2848 (OBJF_REORDERED, OBJF_SHARED, OBJF_READNOW, OBJF_USERLOADED)
2849 (OBJF_PSYMTABS_READ, OBJF_MAINLINE, OBJF_NOT_FILENAME): Delete.
2850 Converted to an enum-flags in objfile-flags.h.
2851 (allocate_objfile): Use objfile_flags.
2852 * python/py-objfile.c (objfpy_add_separate_debug_file): Remove
2853 unnecessary local.
2854 * solib.c (solib_read_symbols, solib_add)
2855 (reload_shared_libraries_1): Use symfile_add_flags.
2856 * solib.h: Include "symfile-add-flags.h".
2857 (solib_read_symbols): Use symfile_add_flags.
2858 * symfile-add-flags.h: New file.
2859 * symfile-debug.c (debug_sym_read): Use symfile_add_flags.
2860 * symfile-mem.c (symbol_file_add_from_memory): Use
2861 symfile_add_flags.
2862 * symfile.c (read_symbols, syms_from_objfile_1)
2863 (syms_from_objfile, finish_new_objfile): Use symfile_add_flags.
2864 (symbol_file_add_with_addrs): Use symfile_add_flags and
2865 objfile_flags.
2866 (symbol_file_add_separate): Use symfile_add_flags.
2867 (symbol_file_add_from_bfd, symbol_file_add): Use symfile_add_flags
2868 and objfile_flags.
2869 (symbol_file_add_main_1): : Use objfile_flags. Fix add_flags vs
2870 flags confusion.
2871 (symbol_file_command): Use objfile_flags.
2872 (add_symbol_file_command): Use symfile_add_flags and
2873 objfile_flags.
2874 (clear_symtab_users): Use symfile_add_flags.
2875 * symfile.h: Include "symfile-add-flags.h" and "objfile-flags.h".
2876 (struct sym_fns) <sym_read>: Use symfile_add_flags.
2877 (clear_symtab_users): Use symfile_add_flags.
2878 (enum symfile_add_flags): Delete, moved to symfile-add-flags.h and
2879 converted to enum-flags.
2880 (symbol_file_add, symbol_file_add_from_bfd)
2881 (symbol_file_add_separate): Use symfile_add_flags.
2882 * xcoffread.c (xcoff_initial_scan): Use symfile_add_flags.
2883
85ad3aaf
PA
28842016-10-26 Pedro Alves <palves@redhat.com>
2885
2886 * inferior.h (ALL_NON_EXITED_INFERIORS): New macro.
2887 * infrun.c (do_target_resume): Call target_commit_resume.
2888 (proceed): Defer target_commit_resume while looping over threads,
2889 resuming them. Call target_commit_resume at the end.
2890 * record-btrace.c (record_btrace_commit_resume): New function.
2891 (init_record_btrace_ops): Install it as to_commit_resume method.
2892 * record-full.c (record_full_commit_resume): New function.
2893 (record_full_wait_1): Call the beneath target's to_commit_resume
2894 method.
2895 (init_record_full_ops): Install record_full_commit_resume as
2896 to_commit_resume method.
2897 * remote.c (struct private_thread_info) <last_resume_step,
2898 last_resume_sig, vcont_resumed>: New fields.
2899 (remote_add_thread): Set the new thread's vcont_resumed flag.
2900 (demand_private_info): Delete.
2901 (get_private_info_thread, get_private_info_ptid): New functions.
2902 (remote_update_thread_list): Adjust.
2903 (process_initial_stop_replies): Clear the thread's vcont_resumed
2904 flag.
2905 (remote_resume): If connected in non-stop mode, record the resume
2906 request and return early.
2907 (struct private_inferior): New.
2908 (struct vcont_builder): New.
2909 (vcont_builder_restart, vcont_builder_flush)
2910 (vcont_builder_push_action): New functions.
2911 (MAX_ACTION_SIZE): New macro.
2912 (remote_commit_resume): New function.
2913 (thread_pending_fork_status, is_pending_fork_parent_thread): New
2914 functions.
2915 (check_pending_event_prevents_wildcard_vcont_callback)
2916 (check_pending_events_prevent_wildcard_vcont): New functions.
2917 (process_stop_reply): Adjust. Clear the thread's vcont_resumed
2918 flag.
2919 (init_remote_ops): Install remote_commit_resume.
2920 * target-delegates.c: Regenerate.
2921 * target.c (defer_target_commit_resume): New global.
2922 (target_commit_resume, make_cleanup_defer_target_commit_resume):
2923 New functions.
2924 * target.h (struct target_ops) <to_commit_resume>: New field.
2925 (target_resume): Update comments.
2926 (target_commit_resume): New declaration.
2927
ef4a3395
PA
29282016-10-26 Pedro Alves <palves@redhat.com>
2929
2930 * inferior.c (exit_inferior_1): Free 'priv'.
2931
7b68ffbb
PA
29322016-10-26 Pedro Alves <palves@redhat.com>
2933
2934 * remote.c (remote_resume_with_hc): New function, factored out
2935 from ...
2936 (remote_resume): ... this. Always try vCont first.
2937 (remote_vcont_resume): Rename to ...
2938 (remote_resume_with_vcont): ... this. Bail out if execution
2939 direction is reverse.
2940
beb18c86
PA
29412016-10-25 Pedro Alves <palves@redhat.com>
2942
2943 * dwarf2expr.h (struct dwarf_expr_context) <~dwarf_expr_context>:
2944 Make virtual.
2945
b196bc4c
RO
29462016-10-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2947
2948 PR build/20712
2949 * defs.h: Remove obsolete comment
2950 (atof): Remove.
2951 * procfs.c (do_destroy_procinfo_cleanup): Add cast.
2952 (sysset_t_alloc): Likewise.
2953 (proc_set_traced_sysentry): Likewise.
2954 (proc_set_traced_sysexit): Likewise.
2955 [!PIOCLSTATUS && NEW_PROC_API] (do_closedir_cleanup): Likewise.
2956 (proc_get_LDT_entry): Initiate cleanups before returns.
2957 (procfs_wait): Use GDB_SIGNAL_0.
2958 (procfs_corefile_thread_callback): Add cast.
2959 * sol-thread.c (td_log_ftype, td_ta_new_ftype, td_ta_delete_ftype)
2960 (td_init_ftype, td_ta_get_ph_ftype, td_ta_get_nthreads_ftype)
2961 (td_ta_tsd_iter_ftype, td_ta_thr_iter_ftype)
2962 (td_thr_validate_ftype, td_thr_tsd_ftype, td_thr_get_info_ftype)
2963 (td_thr_getfpregs_ftype, td_thr_getxregsize_ftype)
2964 (td_thr_getxregs_ftype, td_thr_sigsetmask_ftype)
2965 (td_thr_setprio_ftype, td_thr_setsigpending_ftype)
2966 (td_thr_setfpregs_ftype, td_thr_setxregs_ftype)
2967 (td_ta_map_id2thr_ftype, td_ta_map_lwp2thr_ftype)
2968 (td_thr_getgregs_ftype, td_thr_setgregs_ftype): New typedefs.
2969 (p_td_log, p_td_ta_new, p_td_ta_delete, p_td_init, p_td_ta_get_ph)
2970 (p_td_ta_get_nthreads, p_td_ta_tsd_iter, p_td_ta_thr_iter)
2971 (p_td_thr_validate, p_td_thr_tsd, p_td_thr_get_info)
2972 (p_td_thr_getfpregs, p_td_thr_getxregsize, p_td_thr_getxregs)
2973 (p_td_thr_sigsetmask, p_td_thr_setprio, p_td_thr_setsigpending)
2974 (p_td_thr_setfpregs, p_td_thr_setxregs, p_td_ta_map_id2thr)
2975 (p_td_ta_map_lwp2thr, p_td_thr_getgregs, p_td_thr_setgregs): Use them.
2976 (ps_pdread): Add cast.
2977 (ps_ptread): Likewise.
2978 (resolve): Likewise.
2979 * top.c (gdb_safe_append_history): Print pid_t as long.
2980
b30f354a
PA
29812016-10-25 Pedro Alves <palves@redhat.com>
2982
2983 * common/common-defs.h (__STDC_FORMAT_MACROS): Define.
2984
e4426cb4
PA
29852016-10-25 Pedro Alves <palves@redhat.com>
2986
2987 * common/new-op.c: Add comment about -fsanitize=address.
2988
28fe4f87
PA
29892016-10-25 Pedro Alves <palves@redhat.com>
2990
2991 * common/common-defs.h (__STDC_CONSTANT_MACROS)
2992 (__STDC_LIMIT_MACROS): Define.
2993
3ef9d661
YQ
29942016-10-25 Yao Qi <yao.qi@linaro.org>
2995
2996 PR gdb/20716
2997 * common/new-op.c (__has_feature): New macro.
2998 Don't override operator new if asan is used.
2999
b5e1db87
LM
30002016-10-24 Luis Machado <lgustavo@codesourcery.com>
3001
3002 * exec.c (exec_file_locate_attach): Prevent NULL pointer dereference
3003 when duplicating a string.
3004
010ece9c
LM
30052016-10-24 Luis Machado <lgustavo@codesourcery.com>
3006
3007 * exec.c (exception_print_same): Fix string comparison to use
3008 statically-allocated ones.
3009
befbff86
TT
30102016-10-21 Tom Tromey <tom@tromey.com>
3011
3012 * dwarf2expr.h (class dwarf_expr_context)
3013 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
3014 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
3015 Now pure virtual.
3016 * dwarf2-frame.c (class dwarf_expr_executor)
3017 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
3018 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
3019 New methods.
3020 <invalid>: New method.
3021
ce6c454e
TT
30222016-10-21 Tom Tromey <tom@tromey.com>
3023
3024 * minsyms.h (minimal_symbol_reader::record_full): "copy_name" now
3025 a bool.
3026 (record, record_with_info): Update.
3027 * minsyms.c (record): Fix indentation.
3028 (record_full): Fix indentation. Update for type change.
3029 * elfread.c (record_minimal_symbol): "copy_name" now a bool.
3030 (elf_symtab_read): "copy_names" now a bool.
3031 (elf_rel_plt_read, elf_read_minimal_symbols): Update.
3032
f60ee22e
TT
30332016-10-21 Tom Tromey <tom@tromey.com>
3034
3035 * main.c: Include <vector>.
3036 (cmdarg_s): Remove typedef. Don't define VEC.
3037 (captured_main_1): Use vector, not VEC. Remove cleanups.
3038
192ca6d8
TT
30392016-10-21 Tom Tromey <tom@tromey.com>
3040
3041 * dwarf2loc.c (struct dwarf_expr_context_funcs): Don't declare.
3042 (dwarf_expr_read_addr_from_reg, dwarf_expr_get_reg_value)
3043 (dwarf_expr_read_mem, dwarf_expr_frame_base): Rename; turn into
3044 methods.
3045 (get_frame_pc_for_per_cu_dwarf_call): New function.
3046 (dwarf_expr_frame_cfa, dwarf_expr_frame_pc)
3047 (dwarf_expr_tls_address): Rename; turn into methods.
3048 (per_cu_dwarf_call): Remove arguments. Use
3049 get_frame_pc_for_per_cu_dwarf_call.
3050 (dwarf_evaluate_loc_desc): New class.
3051 (dwarf_expr_dwarf_call, dwarf_expr_context)
3052 (dwarf_expr_push_dwarf_reg_entry_value)
3053 (dwarf_expr_get_addr_index, dwarf_expr_get_obj_addr): Rename; turn
3054 into methods.
3055 (dwarf_expr_ctx_funcs): Remove.
3056 (dwarf2_evaluate_loc_desc_full): Update.
3057 (dwarf2_locexpr_baton_eval): Update.
3058 (symbol_needs_eval_context): New class.
3059 (symbol_needs_read_addr_from_reg, symbol_needs_get_reg_value)
3060 (symbol_needs_read_mem, symbol_needs_frame_base)
3061 (symbol_needs_frame_cfa, symbol_needs_tls_address)
3062 (symbol_needs_dwarf_call, needs_dwarf_reg_entry_value): Rename;
3063 turn into methods.
3064 (needs_get_addr_index, needs_get_obj_addr): Remove; turn into
3065 methods.
3066 (symbol_needs_ctx_funcs): Remove.
3067 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3068 * dwarf2expr.h (struct dwarf_expr_context_funcs): Remove; turn
3069 contents into methods.
3070 (struct dwarf_expr_context) <baton, funcs>: Remove.
3071 <read_addr_from_reg, get_reg_value, read_mem, get_frame_base,
3072 get_frame_cfa, get_frame_pc, get_tls_address, dwarf_call,
3073 impl_get_base_type, push_dwarf_block_entry_value, get_addr_index,
3074 get_object_address>: Declare new methods.
3075 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3076 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3077 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
3078 (ctx_no_get_addr_index): Don't declare.
3079 * dwarf2expr.c (get_base_type): Use impl_get_base_type.
3080 (execute_stack_op): Update.
3081 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3082 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3083 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
3084 (ctx_no_get_addr_index): Remove; now methods on
3085 dwarf_expr_context.
3086 * dwarf2-frame.c (read_addr_from_reg): Take a frame_info, not a
3087 baton.
3088 (class dwarf_expr_executor): New class.
3089 (get_reg_value, read_mem): Rename, turn into methods.
3090 (execute_stack_op): Use dwarf_expr_executor.
3091
595d2e30
TT
30922016-10-21 Tom Tromey <tom@tromey.com>
3093
3094 * dwarf2loc.c (per_cu_dwarf_call)
3095 (dwarf_expr_push_dwarf_reg_entry_value)
3096 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
3097 (needs_dwarf_reg_entry_value)
3098 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3099 * dwarf2expr.h (dwarf_expr_context) <push_address, eval, fetch,
3100 fetch_address, fetch_in_stack_memory, address_type, grow_stack,
3101 push, stack_empty_p, add_piece, get_base_type, execute_stack_op,
3102 pop>: New method declarations.
3103 (dwarf_expr_push_address, dwarf_expr_eval, dwarf_expr_fetch)
3104 (dwarf_expr_fetch_address, dwarf_expr_fetch_in_stack_memory):
3105 Don't declare.
3106 * dwarf2expr.c (address_type, grow_stack, push, push_address)
3107 (pop, fetch, fetch_address, fetch_in_stack_memory)
3108 (stack_empty_p, add_piece, eval, get_base_type)
3109 (execute_stack_op): Rename. Turn into methods.
3110 * dwarf2-frame.c (execute_stack_op): Update.
3111
718b9626
TT
31122016-10-21 Tom Tromey <tom@tromey.com>
3113
3114 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Stack-allocate
3115 dwarf_expr_context. Remove cleanups.
3116 (dwarf2_locexpr_baton_eval)
3117 (dwarf2_loc_desc_get_symbol_read_needs): Likewise.
3118 * dwarf2expr.h (dwarf_expr_context, ~dwarf_expr_context): Add
3119 constructors and destructors.
3120 (new_dwarf_expr_context, free_dwarf_expr_context)
3121 (make_cleanup_free_dwarf_expr_context): Don't declare.
3122 * dwarf2-frame.c (execute_stack_op): Stack-allocate
3123 dwarf_expr_context. Remove cleanups.
3124 (dwarf_expr_context): Rename from new_dwarf_expr_context. Turn
3125 into constructor.
3126 (free_dwarf_expr_context, free_dwarf_expr_context_cleanup):
3127 Remove.
3128 (~dwarf_expr_context): Rename from
3129 make_cleanup_free_dwarf_expr_context. Turn into destructor.
3130
58414334
TT
31312016-10-21 Tom Tromey <tom@tromey.com>
3132
3133 * dwarf2loc.c: Include <vector>.
3134 (read_pieced_value, write_pieced_value)
3135 (dwarf2_compile_expr_to_ax): Use std::vector.
3136
67ad9399
TT
31372016-10-21 Tom Tromey <tom@tromey.com>
3138
3139 * stack.c (print_stack_frame_to_uiout): Use scoped_restore.
3140 * ui-out.c (make_cleanup_restore_current_uiout)
3141 (restore_current_uiout_cleanup): Remove.
3142 * infrun.c (print_stop_event): Use scoped_restore.
3143 * ui-out.h (make_cleanup_restore_current_uiout): Don't declare.
3144
d1e4a624
TT
31452016-10-21 Tom Tromey <tom@tromey.com>
3146
3147 * elfread.c (elf_read_minimal_symbols): Use gdb::unique_ptr.
3148
cd9da5b0
TT
31492016-10-21 Tom Tromey <tom@tromey.com>
3150
3151 * cli/cli-dump.c (dump_memory_to_file): Use gdb::unique_ptr.
3152 (restore_binary_file): Likewise.
3153
1e3b796d
TT
31542016-10-21 Tom Tromey <tom@tromey.com>
3155
3156 * maint.h (scoped_command_stats): New class.
3157 (make_command_stats_cleanup): Don't declare.
3158 * maint.c (struct cmd_stats): Remove.
3159 (~scoped_command_stats): Rename from report_command_stats. Now a
3160 destructor.
3161 (scoped_command_stats): Rename from make_command_stats_cleanup.
3162 Now a constructor.
3163 * main.c (captured_main_1): New function. Use
3164 scoped_command_stats.
3165 (captured_main): Call captured_main_1.
3166 * event-top.c (command_handler): Use scoped_command_stats.
3167
6fc31fc7
TT
31682016-10-21 Tom Tromey <tom@tromey.com>
3169
3170 * mi/mi-main.c (mi_cmd_data_read_memory): Use gdb::unique_ptr.
3171 Remove some cleanups.
3172
0e454242
TT
31732016-10-21 Tom Tromey <tom@tromey.com>
3174
3175 * tui/tui-interp.c (tui_on_normal_stop, tui_on_signal_received)
3176 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
3177 (tui_on_no_history, tui_on_user_selected_context_changed):
3178 Update.
3179 * top.h (switch_thru_all_uis): New class.
3180 (SWITCH_THRU_ALL_UIS): Rewrite.
3181 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
3182 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Don't
3183 declare.
3184 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3185 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3186 (mi_inferior_exit, mi_inferior_removed, mi_on_signal_received)
3187 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3188 (mi_on_no_history, mi_on_normal_stop, mi_traceframe_changed)
3189 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3190 (mi_breakpoint_created, mi_breakpoint_deleted)
3191 (mi_breakpoint_modified, mi_output_running_pid, mi_on_resume)
3192 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
3193 (mi_memory_changed, mi_user_selected_context_changed): Update.
3194 * infrun.c (all_uis_check_sync_execution_done)
3195 (all_uis_on_sync_execution_starting, normal_stop): Update.
3196 * event-top.c (restore_ui_cleanup)
3197 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
3198 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Remove.
3199 * cli/cli-interp.c (cli_on_normal_stop, cli_on_signal_received)
3200 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
3201 (cli_on_no_history, cli_on_user_selected_context_changed):
3202 Update.
3203 * breakpoint.c (watchpoint_check): Update.
3204
8dddcb8f
TT
32052016-10-21 Tom Tromey <tom@tromey.com>
3206
3207 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab): Add
3208 "reader" argument. Update.
3209 (xcoff_initial_scan): Update.
3210 * symfile.h (mdebug_build_psymtabs): Add "reader" argument.
3211 * mipsread.c (mipscoff_symfile_read): Update.
3212 (read_alphacoff_dynamic_symtab): Add "reader" argument. Update.
3213 * minsyms.h (minimal_symbol_reader) <record, record_full>:
3214 Declare.
3215 <m_msym_bunch, m_msym_bunch_index, m_msym_count>: New members.
3216 <record_with_info>: New function, renamed from
3217 prim_record_minimal_symbol_and_info.
3218 * minsyms.c (msym_bunch, msym_bunch_index, msym_count): Remove
3219 globals.
3220 (minimal_symbol_reader): Initialize new members.
3221 (minimal_symbol_reader::record): Renamed from
3222 prim_record_minimal_symbol.
3223 (minimal_symbol_reader::record_full): Renamed from
3224 prim_record_minimal_symbol_full.
3225 (prim_record_minimal_symbol_and_info): Move to minsyms.h; rename.
3226 * mdebugread.c (mdebug_build_psymtabs, parse_partial_symbols)
3227 (record_minimal_symbol): Add "reader" argument. Update.
3228 (elfmdebug_build_psymtabs): Update.
3229 * machoread.c (macho_symtab_add_minsym, macho_symtab_read): Add
3230 "reader" argument. Update.
3231 (macho_symfile_read): Update.
3232 * elfread.c (record_minimal_symbol, elf_symtab_read)
3233 (elf_rel_plt_read): Add "reader" argument. Update.
3234 (elf_read_minimal_symbols): Update.
3235 * dbxread.c (record_minimal_symbol, read_dbx_dynamic_symtab)
3236 (read_dbx_symtab): Add "reader" argument. Update.
3237 (dbx_symfile_read): Update.
3238 * coffread.c (record_minimal_symbol, coff_symtab_read): Add
3239 "reader" argument. Update.
3240 (coff_symfile_read): Update.
3241 * coff-pe-read.h (read_pe_exported_syms): Add "reader" argument.
3242 * coff-pe-read.c (add_pe_exported_sym, add_pe_forwarded_sym)
3243 (read_pe_exported_syms): Add "reader" argument. Update.
3244
d25e8719
TT
32452016-10-21 Tom Tromey <tom@tromey.com>
3246
3247 * xcoffread.c (xcoff_initial_scan): Update.
3248 * mipsread.c (mipscoff_symfile_read): Update.
3249 * minsyms.c (minimal_symbol_reader): Add obj argument.
3250 Initialize member.
3251 (install): Remove objfile argument. Update.
3252 * mdebugread.c (elfmdebug_build_psymtabs): Update.
3253 * machoread.c (macho_symfile_read): Update.
3254 * elfread.c (elf_read_minimal_symbols): Update.
3255 * dbxread.c (dbx_symfile_read): Update.
3256 * coffread.c (coff_symfile_read): Update.
3257 * minsyms.h (minimal_symbol_reader): Add m_objfile member.
3258 (constructor): Add objfile argument.
3259 (minimal_symbol_reader::install): Remove objfile argument.
3260
873a915e
TT
32612016-10-21 Tom Tromey <tom@tromey.com>
3262
3263 * xcoffread.c (xcoff_initial_scan): Use
3264 minimal_symbol_reader.
3265 * mipsread.c (mipscoff_symfile_read): Use
3266 minimal_symbol_reader.
3267 * minsyms.h (minimal_symbol_reader): New class.
3268 (init_minimal_symbol_collection)
3269 (make_cleanup_discard_minimal_symbols, install_minimal_symbols):
3270 Don't declare.
3271 * minsyms.c (minimal_symbol_reader): Renamed from
3272 init_minimal_symbol_collection, turned into constructor.
3273 (~minimal_symbol_reader): Renamed from
3274 do_discard_minimal_symbols_cleanup, turned into destructor.
3275 (make_cleanup_discard_minimal_symbols): Remove.
3276 (minimal_symbol_reader::install): Rename form
3277 install_minimal_symbols.
3278 * mdebugread.c (elfmdebug_build_psymtabs): Use
3279 minimal_symbol_reader.
3280 * machoread.c (macho_symfile_read): Use
3281 minimal_symbol_reader.
3282 * elfread.c (elf_read_minimal_symbols): Use
3283 minimal_symbol_reader.
3284 * dbxread.c (dbx_symfile_read): Use minimal_symbol_reader.
3285 * coffread.c (coff_symfile_read): Use
3286 minimal_symbol_reader.
3287
4b6749b9
TT
32882016-10-21 Tom Tromey <tom@tromey.com>
3289
3290 * top.c (new_ui_command, wait_sync_command_done)
3291 (gdb_readline_wrapper): Use scoped_restore.
3292 * infrun.c (fetch_inferior_event): Use scoped_restore.
3293 * infcall.c (call_thread_fsm_should_stop): Use scoped_restore.
3294
97468094
TT
32952016-10-21 Tom Tromey <tom@tromey.com>
3296
3297 * utils.c (make_cleanup_restore_ui_file, do_restore_ui_file)
3298 (struct restore_ui_file_closure): Remove.
3299 * utils.h (make_cleanup_restore_ui_file): Don't declare.
3300 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
3301 scoped_restore.
3302 * top.c (execute_command_to_string): Use scoped_restore.
3303
b7b633e9
TT
33042016-10-21 Tom Tromey <tom@tromey.com>
3305
3306 * common/scoped_restore.h: New file.
3307 * utils.h: Include scoped_restore.h.
3308 * top.c (execute_command_to_string): Use scoped_restore.
3309 * python/python.c (python_interactive_command): Use
3310 scoped_restore.
3311 (python_command, execute_gdb_command): Likewise.
3312 * printcmd.c (do_one_display): Use scoped_restore.
3313 * mi/mi-main.c (exec_continue): Use scoped_restore.
3314 * mi/mi-cmd-var.c (mi_cmd_var_assign): Use scoped_restore.
3315 * linux-fork.c (checkpoint_command): Use scoped_restore.
3316 * infrun.c (restore_execution_direction): Remove.
3317 (fetch_inferior_event): Use scoped_restore.
3318 * compile/compile.c (compile_file_command): Use
3319 scoped_restore.
3320 (compile_code_command, compile_print_command): Likewise.
3321 * cli/cli-script.c (execute_user_command): Use
3322 scoped_restore.
3323 (while_command, if_command, script_from_file): Likewise.
3324 * arm-tdep.c (arm_insert_single_step_breakpoint): Use
3325 scoped_restore.
3326
9a1e3f00
TT
33272016-10-21 Tom Tromey <tom@tromey.com>
3328
3329 * xcoffread.c (read_xcoff_symtab): Make "filestring" const.
3330
d11261fc
UW
33312016-10-21 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
3332 Ulrich Weigand <uweigand@de.ibm.com>
3333
3334 * xcoffread.c (read_xcoff_symtab): Make name of current file as
3335 pst->filename instead of _start_ in AIX.
3336
4db41a0a
PR
33372016-10-21 Philipp Rudo <prudo@linux.vnet.ibm.com>
3338
3339 * solist.h (struct target_so_ops): Delete special_symbol_handling
3340 hook.
3341 * solib.c (solib_add, reload_shared_libraries): Adjust.
3342 * solib-aix.c (solib_aix_special_symbol_handling): Delete
3343 (_initialize_solib_aix): Adjust
3344 * solib-darwin.c (darwin_special_symbol_handling): Delete
3345 (_initialize_darwin_solib): Adjust
3346 * solib-dsbt.c (dsbt_special_symbol_handling): Delete
3347 (_initialize_dsbt_solib): Adjust
3348 * solib-frv.c (frv_special_symbol_handling): Delete
3349 (_initialize_frv_solib): Adjust
3350 * solib-svr4.c (svr4_special_symbol_handling): Delete
3351 (_initialize_svr4_solib): Adjust
3352 * solib-target.c (solib_target_special_symbol_handling): Delete
3353 (_initialize_solib_target): Adjust
3354
78836e90
YQ
33552016-10-20 Yao Qi <yao.qi@linaro.org>
3356
3357 * configure.tgt: Don't configure if target is *-*-vxworks*.
3358
f77a9b48
PA
33592016-10-19 Pedro Alves <palves@redhat.com>
3360
3361 * config.in: Regenerate.
3362
f6abaf7a
PA
33632016-10-18 Pedro Alves <palves@redhat.com>
3364
3365 * common/common-defs.h (__STDC_CONSTANT_MACROS)
3366 (__STDC_LIMIT_MACROS): Delete.
3367
49e4877c
PA
33682016-10-18 Pedro Alves <palves@redhat.com>
3369
3370 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3371 2692e23a48e21f6daa029e8af9f1a143b7532f47.
3372 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3373 Regenerate.
3374 * gnulib/import/Makefile: Update.
3375 * gnulib/import/alloca: Update.
3376 * gnulib/import/basename-lgpl: Update.
3377 * gnulib/import/canonicalize-lgpl: Update.
3378 * gnulib/import/config: Update.
3379 * gnulib/import/dirent: Update.
3380 * gnulib/import/dirfd: Update.
3381 * gnulib/import/dirname-lgpl: Update.
3382 * gnulib/import/dirname.h: Update.
3383 * gnulib/import/dosname.h: Update.
3384 * gnulib/import/errno: Update.
3385 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3386 * gnulib/import/extra/snippet/c++defs.h: Update.
3387 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3388 * gnulib/import/extra/update-copyright: Update.
3389 * gnulib/import/flexmember.h: Update.
3390 * gnulib/import/float+.h: Update.
3391 * gnulib/import/float: Update.
3392 * gnulib/import/float: Update.
3393 * gnulib/import/fnmatch: Update.
3394 * gnulib/import/fnmatch: Update.
3395 * gnulib/import/fnmatch_loop: Update.
3396 * gnulib/import/fpucw.h: Update.
3397 * gnulib/import/frexp: Update.
3398 * gnulib/import/frexpl: Update.
3399 * gnulib/import/gettimeofday: Update.
3400 * gnulib/import/hard-locale: Update.
3401 * gnulib/import/hard-locale.h: Update.
3402 * gnulib/import/inttypes: Update.
3403 * gnulib/import/isnan: Update.
3404 * gnulib/import/isnand-nolibm.h: Update.
3405 * gnulib/import/isnand: Update.
3406 * gnulib/import/isnanl-nolibm.h: Update.
3407 * gnulib/import/isnanl: Update.
3408 * gnulib/import/itold: Update.
3409 * gnulib/import/limits: Update.
3410 * gnulib/import/localcharset: Update.
3411 * gnulib/import/localcharset.h: Update.
3412 * gnulib/import/lstat: Update.
3413 * gnulib/import/m4/00gnulib: Update.
3414 * gnulib/import/m4/absolute-header: Update.
3415 * gnulib/import/m4/alloca: Update.
3416 * gnulib/import/m4/canonicalize: Update.
3417 * gnulib/import/m4/codeset: Update.
3418 * gnulib/import/m4/configmake: Update.
3419 * gnulib/import/m4/dirent_h: Update.
3420 * gnulib/import/m4/dirfd: Update.
3421 * gnulib/import/m4/dirname: Update.
3422 * gnulib/import/m4/double-slash-root: Update.
3423 * gnulib/import/m4/eealloc: Update.
3424 * gnulib/import/m4/errno_h: Update.
3425 * gnulib/import/m4/exponentd: Update.
3426 * gnulib/import/m4/exponentl: Update.
3427 * gnulib/import/m4/extensions: Update.
3428 * gnulib/import/m4/extern-inline: Update.
3429 * gnulib/import/m4/fcntl-o: Update.
3430 * gnulib/import/m4/flexmember: Update.
3431 * gnulib/import/m4/float_h: Update.
3432 * gnulib/import/m4/fnmatch: Update.
3433 * gnulib/import/m4/fpieee: Update.
3434 * gnulib/import/m4/frexp: Update.
3435 * gnulib/import/m4/frexpl: Update.
3436 * gnulib/import/m4/gettimeofday: Update.
3437 * gnulib/import/m4/glibc21: Update.
3438 * gnulib/import/m4/gnulib-cache: Update.
3439 * gnulib/import/m4/gnulib-common: Update.
3440 * gnulib/import/m4/gnulib-comp: Update.
3441 * gnulib/import/m4/gnulib-tool: Update.
3442 * gnulib/import/m4/hard-locale: Update.
3443 * gnulib/import/m4/include_next: Update.
3444 * gnulib/import/m4/inttypes-pri: Update.
3445 * gnulib/import/m4/inttypes: Update.
3446 * gnulib/import/m4/isnand: Update.
3447 * gnulib/import/m4/isnanl: Update.
3448 * gnulib/import/m4/largefile: Update.
3449 * gnulib/import/m4/limits-h: Update.
3450 * gnulib/import/m4/localcharset: Update.
3451 * gnulib/import/m4/locale-fr: Update.
3452 * gnulib/import/m4/locale-ja: Update.
3453 * gnulib/import/m4/locale-zh: Update.
3454 * gnulib/import/m4/longlong: Update.
3455 * gnulib/import/m4/lstat: Update.
3456 * gnulib/import/m4/malloc: Update.
3457 * gnulib/import/m4/malloca: Update.
3458 * gnulib/import/m4/math_h: Update.
3459 * gnulib/import/m4/mbrtowc: Update.
3460 * gnulib/import/m4/mbsinit: Update.
3461 * gnulib/import/m4/mbsrtowcs: Update.
3462 * gnulib/import/m4/mbstate_t: Update.
3463 * gnulib/import/m4/memchr: Update.
3464 * gnulib/import/m4/memmem: Update.
3465 * gnulib/import/m4/mmap-anon: Update.
3466 * gnulib/import/m4/multiarch: Update.
3467 * gnulib/import/m4/nocrash: Update.
3468 * gnulib/import/m4/off_t: Update.
3469 * gnulib/import/m4/pathmax: Update.
3470 * gnulib/import/m4/rawmemchr: Update.
3471 * gnulib/import/m4/readlink: Update.
3472 * gnulib/import/m4/rename: Update.
3473 * gnulib/import/m4/rmdir: Update.
3474 * gnulib/import/m4/signal_h: Update.
3475 * gnulib/import/m4/ssize_t: Update.
3476 * gnulib/import/m4/stat: Update.
3477 * gnulib/import/m4/stdbool: Update.
3478 * gnulib/import/m4/stddef_h: Update.
3479 * gnulib/import/m4/stdint: Update.
3480 * gnulib/import/m4/stdio_h: Update.
3481 * gnulib/import/m4/stdlib_h: Update.
3482 * gnulib/import/m4/strchrnul: Update.
3483 * gnulib/import/m4/string_h: Update.
3484 * gnulib/import/m4/strstr: Update.
3485 * gnulib/import/m4/strtok_r: Update.
3486 * gnulib/import/m4/sys_socket_h: Update.
3487 * gnulib/import/m4/sys_stat_h: Update.
3488 * gnulib/import/m4/sys_time_h: Update.
3489 * gnulib/import/m4/sys_types_h: Update.
3490 * gnulib/import/m4/time_h: Update.
3491 * gnulib/import/m4/unistd_h: Update.
3492 * gnulib/import/m4/warn-on-use: Update.
3493 * gnulib/import/m4/wchar_h: Update.
3494 * gnulib/import/m4/wchar_t: Update.
3495 * gnulib/import/m4/wctype_h: Update.
3496 * gnulib/import/m4/wint_t: Update.
3497 * gnulib/import/malloc: Update.
3498 * gnulib/import/malloca: Update.
3499 * gnulib/import/malloca.h: Update.
3500 * gnulib/import/math: Update.
3501 * gnulib/import/math: Update.
3502 * gnulib/import/mbrtowc: Update.
3503 * gnulib/import/mbsinit: Update.
3504 * gnulib/import/mbsrtowcs-impl.h: Update.
3505 * gnulib/import/mbsrtowcs-state: Update.
3506 * gnulib/import/mbsrtowcs: Update.
3507 * gnulib/import/memchr: Update.
3508 * gnulib/import/memmem: Update.
3509 * gnulib/import/pathmax.h: Update.
3510 * gnulib/import/rawmemchr: Update.
3511 * gnulib/import/readlink: Update.
3512 * gnulib/import/ref-add.sin: Update.
3513 * gnulib/import/ref-del.sin: Update.
3514 * gnulib/import/rename: Update.
3515 * gnulib/import/rmdir: Update.
3516 * gnulib/import/same-inode.h: Update.
3517 * gnulib/import/signal: Update.
3518 * gnulib/import/stat: Update.
3519 * gnulib/import/stdbool: Update.
3520 * gnulib/import/stddef: Update.
3521 * gnulib/import/stdint: Update.
3522 * gnulib/import/stdio: Update.
3523 * gnulib/import/stdlib: Update.
3524 * gnulib/import/str-two-way.h: Update.
3525 * gnulib/import/strchrnul: Update.
3526 * gnulib/import/streq.h: Update.
3527 * gnulib/import/string: Update.
3528 * gnulib/import/stripslash: Update.
3529 * gnulib/import/strnlen1: Update.
3530 * gnulib/import/strnlen1.h: Update.
3531 * gnulib/import/strstr: Update.
3532 * gnulib/import/strtok_r: Update.
3533 * gnulib/import/sys_stat: Update.
3534 * gnulib/import/sys_time: Update.
3535 * gnulib/import/sys_types: Update.
3536 * gnulib/import/time: Update.
3537 * gnulib/import/unistd: Update.
3538 * gnulib/import/unistd: Update.
3539 * gnulib/import/verify.h: Update.
3540 * gnulib/import/wchar: Update.
3541 * gnulib/import/wctype: Update.
3542 * gnulib/import/flexmember.h: New file.
3543 * gnulib/import/hard-locale.c: New file.
3544 * gnulib/import/hard-locale.h: New file.
3545 * gnulib/import/limits.in.h: New file.
3546 * gnulib/import/m4/flexmember.m4: New file.
3547 * gnulib/import/m4/hard-locale.m4: New file.
3548 * gnulib/import/m4/limits-h.m4: New file.
3549
da804164
PA
35502016-10-18 Pedro Alves <palves@redhat.com>
3551
3552 * common/common-defs.h: Include "gdb_unique_ptr.h".
3553 * common/gdb_unique_ptr.h: New.
3554
ae71e7b5
MR
35552016-10-18 Maciej W. Rozycki <macro@imgtec.com>
3556
3557 * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
3558 is `bfd_arch_i386' before proceeding.
3559 (i386_mpx_set_bounds): Likewise.
3560
b348d11b
MR
35612016-10-18 Maciej W. Rozycki <macro@imgtec.com>
3562
3563 * tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long'
3564 type for `operands'.
3565
5bad3170
SM
35662016-10-17 Simon Marchi <simon.marchi@ericsson.com>
3567
3568 * mi/mi-main.c (mi_cmd_trace_save): Check if argument is present
3569 before using it.
3570
5562a44e
PA
35712016-10-17 Pedro Alves <palves@redhat.com>
3572
3573 * charset.h (class wchar_iterator) [PHONY_ICONV] <m_desc>: Use
3574 'int' as type.
3575
754c39c2
UW
35762016-10-14 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
3577 Ulrich Weigand <uweigand@de.ibm.com>
3578
3579 * solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot
3580 path is set properly if program has a dependency on .a archive and
3581 sysroot is set via set sysroot command.
3582
afb1110b
MM
35832016-10-14 Markus Metzger <markus.t.metzger@intel.com>
3584
3585 * nat/linux-btrace.c: Remove leftover comment.
3586
8ffc1bb1
EZ
35872016-10-14 Eli Zaretskii <eliz@gnu.org>
3588
3589 * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if
3590 available, to get prototypes of 'strcasecmp' and 'strncasecmp'.
3591
1f2e9c5e
PA
35922016-10-13 Pedro Alves <palves@redhat.com>
3593
3594 * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead.
3595 (false, true): Remove checks.
3596
af533a5f
TT
35972016-10-12 Tom Tromey <tom@tromey.com>
3598
3599 * machoread.c (macho_symfile_read_all_oso): Use std::string.
3600
d1a760cb
TT
36012016-10-12 Tom Tromey <tom@tromey.com>
3602
3603 * tracepoint.c (trace_dump_command): Remove unnecessary
3604 null_cleanup.
3605
cda6c55b
TT
36062016-10-12 Tom Tromey <tom@tromey.com>
3607
3608 * valprint.c (generic_emit_char, count_next_character)
3609 (generic_printstr): Update.
3610 * charset.c (struct wchar_iterator): Move to charset.h.
3611 (wchar_iterator::wchar_iterator): Rename from
3612 make_wchar_iterator, turn into a constructor.
3613 (wchar_iterator::~wchar_iterator): Rename from
3614 do_cleanup_iterator, turn into a destructor.
3615 (make_cleanup_wchar_iterator): Remove.
3616 (wchar_iterator::iterate): Rename from wchar_iterate. Remove
3617 "iter" argument. Update.
3618 * charset.h: Include <vector>.
3619 (class wchar_iterator): New class, from old struct
3620 wchar_iterator.
3621 (make_wchar_iterator, make_cleanup_wchar_iterator): Don't
3622 declare.
3623
816d7b53
TT
36242016-10-12 Tom Tromey <tom@tromey.com>
3625
3626 * selftest.c: Include <vector>, not "vec.h".
3627 (self_test_function_ptr): Remove.
3628 (tests): Now a std::vector.
3629 (register_self_test, run_self_tests): Update.
3630
bfd28288
PA
36312016-10-13 Pedro Alves <palves@redhat.com>
3632 Tom Tromey <tom@tromey.com>
3633
3634 * tid-parse.h (tid_range_parser): New class.
3635 (enum tid_range_state): Move into tid_range_parser's scope.
3636 Remove TID_RANGE_ prefix from all values.
3637 (tid_range_parser_get_tid, tid_range_parser_get_tid_range)
3638 (tid_range_parser_star_range, tid_range_parser_finished)
3639 (tid_range_parser_skip, tid_range_parser_qualified): Don't
3640 declare.
3641 (tid_is_in_list): Update comment.
3642 * tid-parse.c (tid_range_parser::tid_range_parser): New.
3643 (init, finished, get_string, skip, tid_is_qualified)
3644 (get_tid_or_range, get_tid_range, get_tid, star_range): Rename;
3645 turn into methods.
3646 (tid_is_in_list): Adjust.
3647 * cli/cli-utils.h (number_or_range_parser): New class.
3648 (init_number_or_range, get_number_or_range)
3649 (number_range_setup_range): Don't declare.
3650 * cli/cli-utils.c
3651 (number_or_range_parser::number_or_range_parser): New.
3652 (init_number_or_range, get_number_or_range)
3653 (number_range_setup_range): Rename; turn into methods.
3654 (number_is_in_list): Adjust.
3655 * breakpoint.c (map_breakpoint_numbers): Adjust. Use bool.
3656 (trace_pass_command, get_tracepoint_by_number): Adjust.
3657 * breakpoint.h (get_tracepoint_by_number): Adjust.
3658 * inferior.c (detach_inferior_command, kill_inferior_command)
3659 (remove_inferior_command): Adjust.
3660 * linespec.c (decode_line_2): Adjust.
3661 * memattr.c (mem_enable_command, mem_disable_command)
3662 (mem_delete_command): Adjust.
3663 * printcmd.c (map_display_numbers): Adjust.
3664 * reverse.c (delete_bookmark_command, bookmarks_info): Adjust.
3665 * thread.c (thread_apply_command): Adjust.
3666
4a2f4826
AK
36672016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
3668
3669 * arc-newlib-tdep.c: New file.
3670 * configure.tgt: Add newlib support for ARC.
3671
aaf43c48
AK
36722016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
3673
3674 * arc-tdep.h (struct gdbarch_tdep) <jb_pc>: New field.
3675 * arc-tdep.c (arc_get_longjmp_target): New function.
3676 (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative.
3677 (arc_dump_tdep): Print jb_pc.
3678
b845c31e
AK
36792016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
3680
3681 * arc-tdep.h (struct gdbarch_tdep): New.
3682 * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
3683
187f5d00
YQ
36842016-10-12 Yao Qi <yao.qi@linaro.org>
3685
3686 PR tdep/20682
3687 * aarch64-tdep.c: Replace 32 with AARCH64_D_REGISTER_COUNT.
3688 (aarch64_analyze_prologue): Extend array 'regs' for D registers.
3689 Assert that operand 0 and 1 can be X or D registers. Update
3690 register number for D registers. Update registers in frame
3691 cache.
3692 * aarch64-tdep.h (AARCH64_D_REGISTER_COUNT): New macro.
3693
a1078bea
YQ
36942016-10-10 Yao Qi <yao.qi@linaro.org>
3695
3696 * arch/arm.h (enum arm_breakpoint_kinds): New.
3697 * arm-tdep.c (arm_remote_breakpoint_from_pc): Use
3698 ARM_BP_KIND_THUMB2.
3699
97ce08cb
YQ
37002016-10-10 Yao Qi <yao.qi@linaro.org>
3701
3702 * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by
3703 'gdbarch'.
3704
ff12a659
YQ
37052016-10-10 Yao Qi <yao.qi@linaro.org>
3706
3707 * v850-tdep.c (v850_breakpoint_from_pc): Use the right
3708 breakpoint instruction.
3709 (v850_dbtrap_breakpoint_from_pc): Remove.
3710 (v850_gdbarch_init): Update.
3711
49d06418
SM
37122016-10-08 Simon Marchi <simon.marchi@polymtl.ca>
3713
3714 * ui-out.c (push_level): Remove "id" parameter.
3715 (ui_out_begin): Update call.
3716
1a307001
JB
37172016-10-07 Joel Brobecker <brobecker@adacore.com>
3718
3719 GDB 7.12 released.
3720
68dadef5
MM
37212016-10-07 Markus Metzger <markus.t.metzger@intel.com>
3722
3723 * python/python.c (gdbpy_decode_line): Call
3724 string_to_event_location_basic instead of new_linespec_location.
3725
1fb77080
SDJ
37262016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
3727
3728 * target.c (target_supports_multi_process): New function, moved
3729 from...
3730 * target.h (target_supports_multi_process): ... here. Remove
3731 macro.
3732 * target/target.h (target_supports_multi_process): New prototype.
3733
ddb6d633
PA
37342016-10-06 Pedro Alves <palves@redhat.com>
3735
3736 * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
3737 EXPORTED_CONST.
3738 * stub-termcap.c: Remove __cplusplus checks.
3739 * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
3740 EXTERN_C_POP): Delete.
3741 * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
3742 (GDB_XCPT) [!__cplusplus]: Delete.
3743 (throw_exception, throw_exception_sjlj): Update comments.
3744 * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
3745 * guile/guile.c (extension_language_guile): Write "extern const"
3746 instead of EXPORTED_CONST.
3747 * features/feature_to_c.sh: Don't emit !__cplusplus code. Write
3748 "extern const" instead of EXPORTED_CONST.
3749
33fa2c6e
DE
37502016-10-06 Doug Evans <dje@google.com>
3751
3752 * python/py-value.c (valpy_long): Handle unsigned values.
3753
d73f9c4b
SM
37542016-10-06 Simon Marchi <simon.marchi@ericsson.com>
3755
3756 * frame.h: Forward-declare struct ui_out.
3757
9c37b5ae
TT
37582016-10-06 Tom Tromey <tom@tromey.com>
3759
3760 * MAINTAINERS: Remove Java test maintainer.
3761 * varobj.h (java_varobj_ops): Don't declare.
3762 * valprint.h (struct value_print_options)
3763 <pascal_static_field_print>: Update comment.
3764 * utils.c (producer_is_gcc): Remove java reference.
3765 * symtab.h (struct general_symbol_info): Remove java references.
3766 (SYMBOL_SEARCH_NAME): Likewise.
3767 * objfiles.c (allocate_objfile): Update comment.
3768 * linespec.c (find_linespec_symbols): Remove java references.
3769 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
3770 java references.
3771 * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
3772 (TYPE_CPLUS_REALLY_JAVA): Remove.
3773 * c-varobj.c (enum vsections): Update comment.
3774 * symtab.c (symbol_set_language, symbol_set_names)
3775 (symbol_natural_name, symbol_demangled_name)
3776 (demangle_for_lookup, symbol_matches_domain)
3777 (default_make_symbol_completion_list_break_on_1): Remove java
3778 references.
3779 (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
3780 * psymtab.c (match_partial_symbol, psymtab_search_name)
3781 (lookup_partial_symbol): Remove java references.
3782 * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
3783 (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
3784 (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
3785 (process_structure_scope, read_subroutine_type)
3786 (read_subrange_type, load_partial_dies)
3787 (new_symbol_full, determine_prefix, typename_concat)
3788 (dwarf2_name): Remove java references.
3789 (set_cu_language): Treat Java as C++.
3790 * c-typeprint.c (c_type_print_args): Remove java reference.
3791 * defs.h (enum language) <language_java>: Remove.
3792 * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
3793 (YYOBJ, local-maintainer-clean): Don't mention java files.
3794 * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
3795 jv-varobj.c: Remove.
3796
78b86327
MR
37972016-10-06 Maciej W. Rozycki <macro@imgtec.com>
3798
3799 * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
3800 32-bit.
3801
a6912260
MR
38022016-10-06 Maciej W. Rozycki <macro@imgtec.com>
3803
3804 * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
3805 throughout.
3806
c620c3e4
MM
38072016-10-06 Markus Metzger <markus.t.metzger@intel.com>
3808
3809 * stack.c (frame_info): Call val_print_not_saved instead of
3810 val_print_unavailable if frame_id check fails.
3811
4a556533
PA
38122016-10-06 Pedro Alves <palves@redhat.com>
3813
3814 * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
3815 the cached code address.
3816
ee8da4b8
DE
38172016-10-06 Doug Evans <dje@google.com>
3818
3819 * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
3820 "end" in all fields.
3821 * features/aarch64.c: Regenerate.
3822 * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
3823 and "enabled" fields. Correct size of "enabled" field.
3824 * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
3825 and "enabled" fields.
3826 * features/i386/i386-avx-mpx-linux.c: Regenerate.
3827 * features/i386/i386-avx-mpx.c: Regenerate.
3828 * features/i386/i386-avx512-linux.c: Regenerate.
3829 * features/i386/i386-avx512.c: Regenerate.
3830 * features/i386/i386-mpx-linux.c: Regenerate.
3831 * features/i386/i386-mpx.c: Regenerate.
3832 * features/arc-arcompact.c: Regenerate.
3833 * features/arc-v2.c: Regenerate.
3834 * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit
3835 fields default to "bool" type.
3836
3837 Revert 2016-03-15 Doug Evans <dje@google.com>
3838 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
3839 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
3840 * features/i386/64bit-core.xml (i386_eflags): Ditto.
3841 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
3842 * features/i386/x32-core.xml (i386_eflags): Ditto.
3843
e742d386
TT
38442016-10-05 Tom Tromey <tom@tromey.com>
3845
3846 PR breakpoints/20653:
3847 * location.c (string_to_explicit_location): Use NULL, not '\0'.
3848
3e611445
TT
38492016-10-05 Tom Tromey <tom@tromey.com>
3850
3851 PR symtab/20652:
3852 * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
3853 fields.
3854
f206f69c
AA
38552016-10-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
3856
3857 * dwarf2expr.c (dwarf_expr_require_composition): Allow
3858 DW_OP_GNU_uninit.
3859 (execute_stack_op): Use dwarf_expr_require_composition instead of
3860 copying its logic.
3861
ed2f09e1
AK
38622016-10-05 Anton Kolesov <anton.kolesov@synopsys.com>
3863
dba48492 3864 * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
ed2f09e1 3865
5878efd4
YQ
38662016-10-05 Yao Qi <yao.qi@linaro.org>
3867
3868 * features/Makefile (WHICH): Add
3869 rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
3870 rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
3871 rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
3872 * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
3873 * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
3874 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
3875 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
3876 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
3877 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
3878
defaaad5
YQ
38792016-10-05 Yao Qi <yao.qi@linaro.org>
3880
3881 * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
3882 s390-vx-linux64.xml, s390x-tevx-linux64.xml and
3883 s390x-vx-linux64.xml.
3884
414c838a
YQ
38852016-10-05 Yao Qi <yao.qi@linaro.org>
3886
3887 * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
3888 amd64-expedite, and x32-expedite.
3889
0a69eedb
YQ
38902016-10-05 Terry Guo <terry.guo@arm.com>
3891 Yao Qi <yao.qi@linaro.org>
3892
3893 * arm-tdep.c: Adjust includes.
3894 * features/Makefile (WHICH): Add "arm/" directory to arm
3895 target descriptions.
3896 (XMLTOC): Likewise.
3897 (arm/arm-with-iwmmxt.dat): Adjust the path for
3898 dependencies.
3899 * features/arm-core.xml: Moved to ...
3900 * features/arm/arm-core.xml: ... it.
3901 * features/arm-fpa.xml: Moved to ...
3902 * features/arm/arm-fpa.xml: ... it.
3903 * features/arm-m-profile.xml: Moved to ...
3904 * features/arm/arm-m-profile.xm: ... it.
3905 * features/arm-vfpv2.xml: Moved to ...
3906 * features/arm/arm-vfpv2.xm: ... it.
3907 * features/arm-vfpv3.xml: Moved to ...
3908 * features/arm/arm-vfpv3.xml: ... it.
3909 * features/arm-with-iwmmxt.c: Moved to ...
3910 * features/arm/arm-with-iwmmxt.c: ... it.
3911 * features/arm-with-iwmmxt.xml: Moved to ...
3912 * features/arm/arm-with-iwmmxt.xml: ... it.
3913 * features/arm-with-m-fpa-layout.c: Moved to ...
3914 * features/arm/arm-with-m-fpa-layout.c: ... it.
3915 * features/arm-with-m-fpa-layout.xml: Moved to ...
3916 * features/arm/arm-with-m-fpa-layout.xml: ... it.
3917 * features/arm-with-m-vfp-d16.c: Moved to ...
3918 * features/arm/arm-with-m-vfp-d16.c: ... it.
3919 * features/arm-with-m-vfp-d16.xml: Moved to ...
3920 * features/arm/arm-with-m-vfp-d16.xml: ... it.
3921 * features/arm-with-m.c: Moved to ...
3922 * features/arm/arm-with-m.c: ... it.
3923 * features/arm-with-m.xml: Moved to ...
3924 * features/arm/arm-with-m.xm: ... it.
3925 * features/arm-with-neon.c: Moved to ...
3926 * features/arm/arm-with-neon.c: ... it.
3927 * features/arm-with-neon.xml: Moved to ...
3928 * features/arm/arm-with-neon.xml: ... it.
3929 * features/arm-with-vfpv2.c: Moved to ...
3930 * features/arm/arm-with-vfpv2.c: ... it.
3931 * features/arm-with-vfpv2.xml: Moved to ...
3932 * features/arm/arm-with-vfpv2.xml: ... it.
3933 * features/arm-with-vfpv3.c: Moved to ...
3934 * features/arm/arm-with-vfpv3.c: ... it.
3935 * features/arm-with-vfpv3.xml: Moved to ...
3936 * features/arm/arm-with-vfpv3.xml: ... it.
3937 * features/xscale-iwmmxt.xml: Moved to ...
3938 * features/arm/xscale-iwmmxt.xml: ... it.
3939
4034d0ff
AT
39402016-10-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
39412016-10-03 Simon Marchi <simon.marchi@ericsson.com>
3942
3943 PR gdb/20487
3944 * NEWS: Mention new frame field of =thread-selected event.
3945 * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
3946 (add_com_suppress_notification): New function definition.
3947 (cmd_func): Set and restore the suppress_notification flag.
3948 * cli/cli-deicode.h (struct cmd_list_element)
3949 <suppress_notification>: New field.
3950 * cli/cli-interp.c (cli_suppress_notification): New global variable.
3951 (cli_on_user_selected_context_changed): New function.
3952 (_initialize_cli_interp): Attach to user_selected_context_changed
3953 observer.
3954 * command.h (struct cli_suppress_notification): New structure.
3955 (cli_suppress_notification): New global variable declaration.
3956 (add_com_suppress_notification): New function declaration.
3957 * defs.h (enum user_selected_what_flag): New enum.
3958 (user_selected_what): New enum flag type.
3959 * frame.h (print_stack_frame_to_uiout): New function declaration.
3960 * gdbthread.h (print_selected_thread_frame): New function declaration.
3961 * inferior.c (print_selected_inferior): New function definition.
3962 (inferior_command): Remove printing of inferior/thread/frame switch
3963 notifications, notify user_selected_context_changed observer.
3964 * inferior.h (print_selected_inferior): New function declaration.
3965 * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
3966 suppression to stack-select-frame and thread-select commands.
3967 * mi/mi-interp.c (struct mi_suppress_notification)
3968 <user_selected_context>: Initialize.
3969 (mi_user_selected_context_changed): New function definition.
3970 (_initialize_mi_interp): Attach to user_selected_context_changed.
3971 * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
3972 (mi_execute_command): Handle notification suppression. Notify
3973 user_selected_context_changed observer on thread change instead of printing
3974 event directly. Don't send it if command already sends the notification.
3975 (command_notifies_uscc_observer): New function.
3976 (mi_cmd_execute): Don't handle notification suppression.
3977 * mi/mi-main.h (struct mi_suppress_notification)
3978 <user_selected_context>: New field.
3979 * stack.c (print_stack_frame_to_uiout): New function definition.
3980 (select_frame_command): Notify user_selected_context_changed
3981 observer.
3982 (frame_command): Call print_selected_thread_frame if there's no frame
3983 change or notify user_selected_context_changed observer if there is.
3984 (up_command): Notify user_selected_context_changed observer.
3985 (down_command): Likewise.
3986 (_initialize_stack): Suppress user_selected_context notification for
3987 command select-frame.
3988 * thread.c (thread_command): Notify
3989 user_selected_context_changed if the thread has changed, print
3990 thread info directly if it hasn't.
3991 (do_captured_thread_select): Do not print thread switch event.
3992 (print_selected_thread_frame): New function definition.
3993 * tui/tui-interp.c (tui_on_user_selected_context_changed):
3994 New function definition.
3995 (_initialize_tui_interp): Attach to user_selected_context_changed
3996 observer.
3997
bb805577
JK
39982016-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3999
4000 PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
4001 * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
4002 Use it.
4003 * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
4004 * infcmd.c (setup_inferior): Update caller.
4005 * remote.c (remote_add_inferior): Likewise.
4006
6d61dee5
PA
40072016-09-28 Pedro Alves <palves@redhat.com>
4008
4009 * infcall.c (run_inferior_call): Remove input from the event
4010 loop while running the infcall.
4011
ca90e760
FH
40122016-09-27 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4013
4014 * arm-tdep.c (arm_m_addr_is_magic): New function.
4015 (arm_addr_bits_remove): Call arm_m_addr_is_magic.
4016 (arm_m_exception_unwind_sniffer): Likewise.
4017
9eee20eb
JT
40182016-09-23 Jon Turney <jon.turney@dronecode.org.uk>
4019
4020 * windows-nat.c (windows_delete_thread): Adjusting call to
4021 target_mourn_inferior to include ptid_t argument.
4022
a97e29d2
TT
40232016-09-23 Tom Tromey <tom@tromey.com>
4024
4025 * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
4026 * utils.c: Don't include dyn-string.h.
4027 (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
4028 * cli/cli-cmds.c: Include <string>. Don't include dyn-string.h.
4029 (argv_to_string): Rename. Change return type to std::string.
4030 (alias_command): Use std::string.
4031
cfe826d4
TT
40322016-09-23 Tom Tromey <tom@tromey.com>
4033
4034 * objfiles.c: Include <vector>.
4035 (objfile_relocate): Use std::vector.
4036
ab8b80a8
TT
40372016-09-23 Tom Tromey <tom@tromey.com>
4038
4039 * rust-lang.c: Include <string> and <vector>.
4040 (rust_evaluate_funcall): Use std::vector, std::string.
4041 (rust_evaluate_subexp): Use std::string.
4042 (rust_lookup_symbol_nonlocal): Use std::string.
4043
05d49c37
TT
40442016-09-23 Tom Tromey <tom@tromey.com>
4045
4046 * cp-namespace.c: Include <string>.
4047 (cp_search_static_and_baseclasses)
4048 (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
4049 Use std::string.
4050
5809899d
TT
40512016-09-23 Tom Tromey <tom@tromey.com>
4052
4053 * break-catch-sig.c: Include <string>.
4054 (signal_catchpoint_print_one): Use std::string.
4055
3e25a500
TT
40562016-09-23 Tom Tromey <tom@tromey.com>
4057
4058 * utils.c (struct restore_ui_out_closure): Remove.
4059 * objfiles.h (terminate_minimal_symbol_table): Don't declare.
4060
97e64e5a
YQ
40612016-09-23 Yao Qi <yao.qi@linaro.org>
4062
4063 * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
4064 sprintf with xsnprintf.
4065 (linux_xfer_osdata_fds): Likewise.
4066
503b1c39
PA
40672016-09-23 Pedro Alves <palves@redhat.com>
4068
4069 * Makefile.in (SFILES): Add common/new-op.c.
4070 (COMMON_OBS): Add common/new-op.o.
4071 (new-op.o): New rule.
4072 * common/common-exceptions.h: Include <new>.
4073 (struct gdb_quit_bad_alloc): New type.
4074 * common/new-op.c: New file.
4075
de678454
EBM
40762016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4077
4078 * rs6000-tdep.c (ppc_process_record_op31): Fix
4079 regcache_raw_read_unsigned call using the correct parameter type.
4080
fa42dd2e
AK
40812016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
4082
4083 * arc-tdep.c: Fix ARI warning for printf(%p).
4084
31da3f27
AK
40852016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
4086
4087 * MAINTAINERS (Write After Approval): Add Anton Kolesov.
4088
ad0a504f
AK
40892016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
4090
4091 * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
4092 (HFILES_NO_SRCDIR): Add arc-tdep.h.
4093 (ALLDEPFILES): Add arc-tdep.c.
4094 * NEWS: Mention new ARC port.
4095 * configure.tgt: Add ARC.
4096 * arc-tdep.c: New file.
4097 * arc-tdep.h: New file.
4098 * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
4099 * features/arc-v2.xml: New file.
4100 * features/arc-v2.c: New file (generated).
4101 * features/arc-arcompact.xml: New file.
4102 * features/arc-arcompact.c: New file (generated).
4103
8aabe2e2
EBM
41042016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4105
4106 * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
4107 handlers.
4108
36cf1806
TT
41092016-09-21 Tom Tromey <tom@tromey.com>
4110
4111 PR gdb/20604:
4112 * top.h (quit_force): Update.
4113 * top.c (quit_force): Changed type of first argument. Don't
4114 evaluate expression. Pass NULL to kill_or_detach.
4115 * cli/cli-cmds.c (quit_command): Evaluate "args".
4116
74172ecf
SM
41172016-09-21 Simon Marchi <simon.marchi@ericsson.com>
4118
4119 * .gitignore: Ignore more files.
4120 * data-directory/.gitignore: Likewise.
4121
6ec2b213
EBM
41222016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4123
4124 * rs6000-tdep.c (PPC_DQ): New macro.
4125 (ppc_process_record_op4): Add Power ISA 3.0 instructions.
4126 (ppc_process_record_op19): Likewise.
4127 (ppc_process_record_op31): Likewise.
4128 (ppc_process_record_op59): Likewise.
4129 (ppc_process_record_op60): Likewise.
4130 (ppc_process_record_op63): Likewise.
4131 (ppc_process_record): Likewise.
4132 (ppc_process_record_op61): New function.
4133
fc6cda2e
YQ
41342016-09-21 Yao Qi <yao.qi@linaro.org>
4135
4136 * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
4137 bits 20 to 23.
4138
12c58cd4
TT
41392016-09-20 Tom Tromey <tom@tromey.com>
4140
4141 * python/py-value.c (convert_value_from_python): Make PyInt_Check
4142 conditional on Python 2.
4143 * python/py-arch.c (archpy_disassemble): Make PyInt_Check
4144 conditional on Python 2.
4145
9f7efd5b
EBM
41462016-09-20 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4147
4148 * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
4149 Word instructions.
4150
7d5adfe3
SDJ
41512016-09-20 Sergio Durigan Junior <sergiodj@redhat.com>
4152
4153 * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
4154 'resume_ptid' to 'target_mourn_inferior'. Fix regression
4155 introduced by my last commit.
4156
66797541
PA
41572016-09-19 Pedro Alves <palves@redhat.com>
4158
4159 * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
4160 textdomain, bindtextdomain): Delete macros.
4161 * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
4162 textdomain calls.
4163
bc1e6c81
SDJ
41642016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
4165
4166 * darwin-nat.c (darwin_kill_inferior): Adjusting call to
4167 target_mourn_inferior to include ptid_t argument.
4168 * fork-child.c (startup_inferior): Likewise.
4169 * gnu-nat.c (gnu_kill_inferior): Likewise.
4170 * inf-ptrace.c (inf_ptrace_kill): Likewise.
4171 * infrun.c (handle_inferior_event_1): Likewise.
4172 * linux-nat.c (linux_nat_attach): Likewise.
4173 (linux_nat_kill): Likewise.
4174 * nto-procfs.c (interrupt_query): Likewise.
4175 (procfs_interrupt): Likewise.
4176 (procfs_kill_inferior): Likewise.
4177 * procfs.c (procfs_kill_inferior): Likewise.
4178 * record.c (record_mourn_inferior): Likewise.
4179 * remote-sim.c (gdbsim_kill): Likewise.
4180 * remote.c (remote_detach_1): Likewise.
4181 (remote_kill): Likewise.
4182 * target.c (target_mourn_inferior): Change declaration to accept
4183 new ptid_t argument; use gdb_assert on it.
4184 * target.h (target_mourn_inferior): Move function prototype from
4185 here...
4186 * target/target.h (target_mourn_inferior): ... to here. Adjust it
4187 to accept new ptid_t argument.
4188 * windows-nat.c (get_windows_debug_event): Adjusting call to
4189 target_mourn_inferior to include ptid_t argument.
4190
93689493
PA
41912016-09-18 Pedro Alves <palves@redhat.com>
4192
4193 * s390-linux-nat.c: Include <algorithm>.
4194
768adc05
PA
41952016-09-18 Pedro Alves <palves@redhat.com>
4196
4197 * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
4198 specify the std:min/std::max specialization.
4199 * exec.c (section_table_read_available_memory): Likewise.
4200 * remote.c (remote_read_qxfer): Likewise.
4201 * target.c (simple_verify_memory): Likewise.
4202
cd94f6d5
SM
42032016-09-16 Simon Marchi <simark@simark.ca>
4204
4205 * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
4206 (print_stop_event): Use make_cleanup_restore_current_uiout.
4207 * python/python.c (execute_gdb_command): Likewise.
4208 * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
4209 (make_cleanup_restore_current_uiout): New function definition.
4210 * ui-out.h (make_cleanup_restore_current_uiout): New function
4211 declaration.
4212 * utils.c (do_restore_ui_out): Remove.
4213 (make_cleanup_restore_ui_out): Remove.
4214 * utils.h (make_cleanup_restore_ui_out): Remove.
4215
325fac50
PA
42162016-09-16 Pedro Alves <palves@redhat.com>
4217
4218 * defs.h (min, max): Delete.
4219 * aarch64-tdep.c: Include <algorithm> and use std::min and
4220 std::max throughout.
4221 * aarch64-tdep.c: Likewise.
4222 * alpha-tdep.c: Likewise.
4223 * amd64-tdep.c: Likewise.
4224 * amd64-windows-tdep.c: Likewise.
4225 * arm-tdep.c: Likewise.
4226 * avr-tdep.c: Likewise.
4227 * breakpoint.c: Likewise.
4228 * btrace.c: Likewise.
4229 * ctf.c: Likewise.
4230 * disasm.c: Likewise.
4231 * doublest.c: Likewise.
4232 * dwarf2loc.c: Likewise.
4233 * dwarf2read.c: Likewise.
4234 * environ.c: Likewise.
4235 * exec.c: Likewise.
4236 * f-exp.y: Likewise.
4237 * findcmd.c: Likewise.
4238 * ft32-tdep.c: Likewise.
4239 * gcore.c: Likewise.
4240 * hppa-tdep.c: Likewise.
4241 * i386-darwin-tdep.c: Likewise.
4242 * i386-tdep.c: Likewise.
4243 * linux-thread-db.c: Likewise.
4244 * lm32-tdep.c: Likewise.
4245 * m32r-tdep.c: Likewise.
4246 * m88k-tdep.c: Likewise.
4247 * memrange.c: Likewise.
4248 * minidebug.c: Likewise.
4249 * mips-tdep.c: Likewise.
4250 * moxie-tdep.c: Likewise.
4251 * nds32-tdep.c: Likewise.
4252 * nios2-tdep.c: Likewise.
4253 * nto-procfs.c: Likewise.
4254 * parse.c: Likewise.
4255 * ppc-sysv-tdep.c: Likewise.
4256 * probe.c: Likewise.
4257 * record-btrace.c: Likewise.
4258 * remote.c: Likewise.
4259 * rs6000-tdep.c: Likewise.
4260 * rx-tdep.c: Likewise.
4261 * s390-linux-nat.c: Likewise.
4262 * s390-linux-tdep.c: Likewise.
4263 * ser-tcp.c: Likewise.
4264 * sh-tdep.c: Likewise.
4265 * sh64-tdep.c: Likewise.
4266 * source.c: Likewise.
4267 * sparc-tdep.c: Likewise.
4268 * symfile.c: Likewise.
4269 * target-memory.c: Likewise.
4270 * target.c: Likewise.
4271 * tic6x-tdep.c: Likewise.
4272 * tilegx-tdep.c: Likewise.
4273 * tracefile-tfile.c: Likewise.
4274 * tracepoint.c: Likewise.
4275 * valprint.c: Likewise.
4276 * value.c: Likewise.
4277 * xtensa-tdep.c: Likewise.
4278 * cli/cli-cmds.c: Likewise.
4279 * compile/compile-object-load.c: Likewise.
4280
8193adea
AA
42812016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4282
4283 * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
4284 (PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
4285 (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
4286 (PER_CONTROL_ALTERATION): New macros.
4287 (struct s390_debug_reg_state) <break_areas>: New member.
4288 (s390_forget_process): Free break_areas as well.
4289 (s390_linux_new_fork): Copy break_areas as well.
4290 (s390_prepare_to_resume): Install hardware breakpoints.
4291 (s390_can_use_hw_breakpoint): Indicate support for hardware
4292 breakpoints.
4293 (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
4294 linux_nat target methods.
4295 (_initialize_s390_nat): Register them.
4296
0e00e962
AA
42972016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4298
4299 * nat/linux-nat.h (lwp_is_stepping): New declaration.
4300 * linux-nat.c (lwp_is_stepping): New function.
4301
169fe0df
AA
43022016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4303
4304 * s390-linux-nat.c (gdbcmd.h): New include.
4305 (s390_show_debug_regs): New function.
4306 (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
4307 (s390_prepare_to_resume): Likewise.
4308 (_initialize_s390_nat): Register the command "maint set
4309 show-debug-regs".
4310
373c3dad
AA
43112016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4312
4313 * s390-linux-nat.c (watch_areas): Remove variable. Replace by a
4314 member of...
4315 (struct s390_debug_reg_state): ...this. New struct.
4316 (struct s390_process_info): New struct.
4317 (s390_process_list): New variable.
4318 (s390_find_process_pid, s390_add_process, s390_process_info_get)
4319 (s390_get_debug_reg_state): New functions.
4320 (s390_stopped_by_watchpoint): Now access the watch_areas VEC via
4321 s390_get_debug_reg_state.
4322 (s390_prepare_to_resume): Likewise.
4323 (s390_insert_watchpoint): Likewise.
4324 (s390_remove_watchpoint): Likewise.
4325 (s390_forget_process, s390_linux_new_fork): New linux_nat target
4326 methods.
4327 (_initialize_s390_nat): Register them.
4328
17c84cca
AA
43292016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4330
4331 * s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC.
4332 (watch_base): Remove variable.
4333 (watch_areas): New variable.
4334 (s390_stopped_by_watchpoint): Transform operations on the
4335 watch_base list to equivalent operations on the watch_areas VEC.
4336 (s390_prepare_to_resume): Likewise.
4337 (s390_insert_watchpoint): Likewise.
4338 (s390_remove_watchpoint): Likewise.
4339
9c2996c9
AA
43402016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4341
4342 * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
4343 functions instead of accessing lwp_info structure members.
4344 (s390_mark_per_info_changed): New function.
4345 (s390_new_thread): Use it.
4346 (s390_refresh_per_info_cb): New function.
4347 (s390_refresh_per_info): Remove parameter. Refresh all lwps of
4348 the current process.
4349 (s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
4350 (s390_remove_watchpoint): Likewise.
4351
e1b2624a
AA
43522016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
4353
4354 * elfread.c (auxv.h): New include.
4355 (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
4356
f5c4fcd9
TT
43572016-09-08 Tom Tromey <tom@tromey.com>
4358
4359 * remote.c (remote_notif_stop_ack, remote_wait_as)
4360 (show_remote_cmd): Remove unneeded casts.
4361
4295e285
PA
43622016-09-06 Pedro Alves <palves@redhat.com>
4363
4364 * top.c (wait_sync_command_done): Don't assume current_ui doesn't
4365 change across events. Restore the current UI before returning.
4366 (gdb_readline_wrapper): Restore the current UI before returning.
4367
a025b477
PA
43682016-09-06 Pedro Alves <palves@redhat.com>
4369
4370 * event-top.c (restore_ui_cleanup): Now static.
4371 (make_cleanup_restore_current_ui): New function.
4372 (switch_thru_all_uis_init): Use it.
4373 * infcall.c (call_thread_fsm_should_stop): Use it.
4374 * infrun.c (fetch_inferior_event): Use it.
4375 * top.c (new_ui_command): Use it.
4376 * top.h (restore_ui_cleanup): Delete declaration.
4377 (make_cleanup_restore_current_ui): New declaration.
4378
00d5215e
UW
43792016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
4380
4381 * i386-tdep.c (i386_floatformat_for_type): New function.
4382 (i386_gdbarch_init): Install it.
4383 * ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
4384 (ppc_linux_init_abi): Install it.
4385
9b790ce7
UW
43862016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
4387
4388 * gdbarch.sh (floatformat_for_type): New gdbarch callback.
4389 * gdbarch.h, gdbarch.c: Re-generate.
4390 * arch-utils.h (default_floatformat_for_type): New prototype.
4391 * arch-utils.c (default_floatformat_for_type): New function.
4392
4393 * doublest.c (floatformat_from_length): Remove.
4394 (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
4395 * gdbtypes.c (verify_floatformat): Require non-NULL format.
4396
4397 * dwarf2read.c (dwarf2_init_float_type): New function.
4398 (read_base_type): Use it.
4399 * stabsread.c (dbx_init_float_type): New function.
4400 (read_sun_floating_type): Use it.
4401 (read_range_type): Likewise.
4402
49f190bc
UW
44032016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
4404
4405 * ada-lang.c (ada_language_arch_info): Use gdbarch-provided
4406 platform ABI floating-point formats for built-in types.
4407 * d-lang.c (build_d_types): Likewise.
4408 * f-lang.c (build_fortran_types): Likewise.
4409 * m2-lang.c (build_m2_types): Likewise.
4410 * mdebugread.c (basic_type): Likewise.
4411
4412 * go-lang.c (build_go_types): Use IEEE floating-point formats
4413 for language built-in types as mandanted by the language.
4414 * jv-lang.c (build_java_types): Likewise.
4415 * rust-lang.c (rust_language_arch_info): Likewise.
4416 * stabsread.c (rs6000_builtin_type): Likewise.
4417
c413c448
UW
44182016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
4419
4420 * gdbtypes.c (init_type): Remove "char" special case.
4421 (arch_integer_type): Likewise.
4422 (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
4423 (objfile_type): Likewise.
4424 * mdebugread.c (basic_type): Likewise.
4425 * stabsread.c (rs6000_builtin_type): Likewise.
4426
a9ff5f12
UW
44272016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
4428
4429 * gdbtypes.h (enum type_flag_value): Remove.
4430 Remove references to TYPE_FLAG_... in comments throughout.
4431 * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
4432 flags, print the corresponding TYPE_... access macro names.
4433 Remove references to TYPE_FLAG_... in comments throughout.
4434 * infcall.c: Remove references to TYPE_FLAG_... in comments.
4435 * valprint.c: Likewise.
4436 * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
4437 values, only TYPE_INSTANCE_FLAG_... values.
4438 (class TypeFlagsPrinter): Likewise.
4439
19f392bc
UW
44402016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
4441
4442 * gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE
4443 argument to first position.
4444 (init_integer_type): New prototype.
4445 (init_character_type): Likewise.
4446 (init_boolean_type): Likewise.
4447 (init_float_type): Likewise.
4448 (init_decfloat_type): Likewise.
4449 (init_complex_type): Likewise.
4450 (init_pointer_type): Likewise.
4451 * gdbtypes.c (verify_floatflormat): New function.
4452 (init_type): Remove FLAGS argument and processing. Move OBJFILE
4453 argument to first position.
4454 (init_integer_type): New function.
4455 (init_character_type): Likewise.
4456 (init_boolean_type): Likewise.
4457 (init_float_type): Likewise.
4458 (init_decfloat_type): Likewise.
4459 (init_complex_type): Likewise.
4460 (init_pointer_type): Likewise.
4461 (arch_float_type): Use verify_floatflormat.
4462 (objfile_type): Use init_..._type helpers instead of calling
4463 init_type directly.
4464 * dwarf2read.c (fixup_go_packaging): Update to changed init_type
4465 prototype.
4466 (read_namespace_type): Likewise.
4467 (read_module_type): Likewise.
4468 (read_typedef): Likewise.
4469 (read_unspecified_type): Likewise.
4470 (build_error_marker_type): Likewise.
4471 (read_base_type): Use init_..._type helpers.
4472 * mdebugread.c (basic_type): Use init_..._type helpers.
4473 (parse_type): Update to changed init_type prototype.
4474 (cross_ref): Likewise.
4475 * stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
4476 (read_sun_builtin_type): Likewise.
4477 (read_sun_floating_type): Likewise.
4478 (read_range_type): Likewise. Also update to changed init_type
4479 prototype.
4480
88dfca6c
UW
44812016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
4482
4483 * gdbtypes.h (arch_decfloat_type): New prototype.
4484 (arch_pointer_type): Likewise.
4485 * gdbtypes.c (arch_decfloat_type): New function.
4486 (arch_pointer_type): Likewise.
4487 (gdbtypes_post_init): Use arch_decfloat_type.
4488 * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
4489 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
4490 * m32c-tdep.c (make_types): Likewise.
4491 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
4492
ae438bc5
UW
44932016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
4494
4495 * gdbtypes.c (set_type_code): New function.
4496 (init_type, arch_type): Use it.
4497
5f3bceb6
UW
44982016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
4499
4500 * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
4501 instead of gdbarch_double_bit for "long_long_float".
4502
cf6de44d
PA
45032016-09-05 Pedro Alves <palves@redhat.com>
4504
4505 * NEWS: Mention that a C++ compiler is now required.
4506 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
4507 (COMPILE.pre, CC_LD): Use CXX directly.
4508 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
4509 * acinclude.m4: Don't include build-with-cxx.m4.
4510 * build-with-cxx.m4: Delete file.
4511 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
4512 * warning.m4: Assume $enable_build_with_cxx is yes.
4513 * configure: Regenerate.
4514
f245535c
PA
45152016-09-05 Pedro Alves <palves@redhat.com>
4516
4517 PR backtrace/19927
4518 * frame.c (get_frame_id): Compute the frame id if not computed
4519 yet.
4520 (unwind_to_current_frame): Delete.
4521 (get_current_frame): Use get_prev_frame_always_1 to get the
4522 current frame and assert that that always succeeds.
4523 (get_prev_frame_if_no_cycle): Skip cycle detection if returning
4524 the current frame.
4525
4aa4e28b
TT
45262016-09-02 Tom Tromey <tom@tromey.com>
4527
4528 PR gdb/11616:
4529 * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
4530 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
4531 DW_OP_form_tls_address.
4532 (locexpr_describe_location_piece): Likewise.
4533 * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
4534 * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
4535 (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
4536 * compile/compile-loc2c.c (struct insn_info): Update comment.
4537 (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
4538
f2b9e3df
SDJ
45392016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4540
4541 * target.c (target_wait): Mention that the function's prototype
4542 can be found at target/target.h.
4543 * target.h (target_wait): Move prototype from here...
4544 * target/target.h (target_wait): ... to here.
4545
049a8570
SDJ
45462016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4547
4548 * fork-child.c (startup_inferior): Replace calls to target_resume
4549 by target_continue{,_no_signal}, depending on the case.
4550 * linux-nat.c (cleanup_target_stop): Call
4551 target_continue_no_signal instead of target_resume.
4552 * procfs.c (procfs_wait): Likewise.
4553 * target.c (target_continue): New function.
4554 * target/target.h (target_continue): New prototype.
4555
f99bd5f2
YQ
45562016-08-31 Yao Qi <yao.qi@linaro.org>
4557
4558 * record-full.c (record_full_insert_breakpoint): Fix typo.
4559
5af962df
AA
45602016-08-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
4561
4562 * thread.c (tp_array_compar): Insert missing parentheses.
4563
ae68ff9f
AA
45642016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4565
4566 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
4567 designated initializer list by plain initializer list, for C++
4568 compliance.
4569
754653a7
AZ
45702016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4571
4572 * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
4573 struct ps_prochandle.
4574 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
4575 * arm-linux-nat.c (ps_get_thread_area): Likewise.
4576 * gdb_proc_service.h (ps_get_thread_area): Likewise.
4577 * i386-linux-nat.c (ps_get_thread_area): Likewise.
4578 * m68klinux-nat.c (ps_get_thread_area): Likewise.
4579 * mips-linux-nat.c (ps_get_thread_area): Likewise.
4580 * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
4581 * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
4582 * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
4583
0a1ddfa6
SM
45842016-08-24 Simon Marchi <simon.marchi@ericsson.com>
4585
4586 * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
4587 NULL if terminal_name is an empty string.
4588 (_initialize_infcmd): Make the argument of "set inferior-tty"
4589 optional, mention it in the help doc.
4590
bdd78711
CL
45912016-08-24 Carl Love <cel@us.ibm.com>
4592
4593 * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
4594 set_gdbarch_deprecated_fp_regnum() architecture
4595 initialization function.
4596
34f81801
SM
45972016-08-23 Simon Marchi <simon.marchi@ericsson.com>
4598
4599 * stack.c (parse_frame_specification): Fix typo in comment.
4600
d9de1fe3
PA
46012016-08-23 Pedro Alves <palves@redhat.com>
4602
4603 PR gdb/20494
4604 * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
4605 comments.
4606 (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
4607 Delete.
4608 (set_initial_gdb_ttystate): Record our_terminal_info here too,
4609 instead of ...
4610 (gdb_has_a_terminal): ... here. Reimplement in terms of
4611 initial_gdb_ttystate. Make static.
4612 * terminal.h (gdb_has_a_terminal): Delete declaration.
4613 (set_initial_gdb_ttystate): Add comment.
4614 * top.c (show_interactive_mode): Use input_interactive_p instead
4615 of gdb_has_a_terminal.
4616
6bb90213
PA
46172016-08-22 Pedro Alves <palves@redhat.com>
4618
4619 PR gdb/20505
4620 * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
4621 find the vDSO's start address with AT_SYSINFO_EHDR too, and
4622 determine the vDSO's size by finding the PT_LOAD segment that
4623 matches AT_SYSINFO_EHDR.
4624
03bcd739
YQ
46252016-08-19 Yao Qi <yao.qi@linaro.org>
4626
4627 * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
4628 based STP instruction.
4629
bbfa2517
YQ
46302016-08-19 Yao Qi <yao.qi@linaro.org>
4631
4632 * completer.c (linespec_location_completer): Make file_to_match
4633 null-terminated.
4634
f077e978
PA
46352016-08-19 Pedro Alves <palves@redhat.com>
4636
4637 * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
4638 addresses over 0x7fffffff.
4639
46da9242
CL
46402016-08-18 Carl Love <cel@us.ibm.com>
4641
4642 * MAINTANERS Write After Approval): Add "Carl Love".
4643
d44c67f3
EBM
46442016-08-18 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4645
4646 * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
4647
eb2332d7
SM
46482016-08-17 Simon Marchi <simon.marchi@ericsson.com>
4649
4650 * inferior.c (remove_inferior_command): Fix error message.
4651
9b19e390
SM
46522016-08-17 Simon Marchi <simon.marchi@ericsson.com>
4653
4654 * inferior.c (exit_inferior_1): Remove comment.
4655
31925464
MW
46562016-08-15 Matthew Wahab <matthew.wahab@arm.com>
4657
4658 PR gdb/20457
4659 * gdb_proc_service.h: Add an include of gregset.h
4660 [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
4661
b31f9478
YQ
46622016-08-15 Yao Qi <yao.qi@linaro.org>
4663
4664 * location.c (explicit_location_lex_one): Compare the return
4665 value of strncmp with zero. Don't check (*inp)[9]. Increment
4666 *inp by 8.
4667
39b22471
PA
46682016-08-11 Pedro Alves <palves@redhat.com>
4669
4670 PR gdb/20413
4671 * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
4672 "gregset.h".
4673
01d3dedf
PA
46742016-08-10 Pedro Alves <palves@redhat.com>
4675
4676 PR gdb/19187
4677 * record-full.c (record_full_remove_breakpoint): Don't remove the
4678 breakpoint from the record_full_breakpoints VEC if we're detaching
4679 the breakpoint from a fork child.
4680
73971819
PA
46812016-08-10 Pedro Alves <palves@redhat.com>
4682
4683 PR gdb/19187
4684 * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
4685 interface.
4686 * break-catch-syscall.c (remove_catch_syscall):
4687 * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
4688 (remove_breakpoint_1): Pass 'reason' down.
4689 (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
4690 (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
4691 (base_breakpoint_remove_location, bkpt_remove_location)
4692 (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
4693 interface.
4694 * breakpoint.h (enum remove_bp_reason): Moved here from
4695 breakpoint.c.
4696 (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
4697 * corelow.c (core_remove_breakpoint): New function.
4698 (init_core_ops): Install it as to_remove_breakpoint method.
4699 * exec.c (exec_remove_breakpoint): New function.
4700 (init_exec_ops): Install it as to_remove_breakpoint method.
4701 * mem-break.c (memory_remove_breakpoint): Adjust interface.
4702 * record-btrace.c (record_btrace_remove_breakpoint): Adjust
4703 interface.
4704 * record-full.c (record_full_remove_breakpoint)
4705 (record_full_core_remove_breakpoint): Adjust interface.
4706 * remote.c (remote_remove_breakpoint): Adjust interface.
4707 * target-debug.h (target_debug_print_enum_remove_bp_reason): New
4708 macro.
4709 * target-delegates.c: Regenerate.
4710 * target.c (target_remove_breakpoint): Add 'reason' parameter.
4711 * target.h (struct target_ops) <to_remove_breakpoint>: Add
4712 'reason' parameter.
4713 (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
4714 parameter.
4715
b2b6a7da
PA
47162016-08-10 Pedro Alves <palves@redhat.com>
4717
4718 PR gdb/19187
4719 * breakpoint.c (insertion_state_t): Delete.
4720 (enum remove_bp_reason): New.
4721 (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
4722 Adjust to use enum remove_bp_reason instead of insertion_state_t.
4723
834c0d03
PA
47242016-08-10 Pedro Alves <palves@redhat.com>
4725
4726 PR gdb/19187
4727 * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
4728 always pass mark_uninserted to remove_breakpoint_1.
4729 (insert_breakpoint_locations, remove_breakpoints)
4730 (remove_breakpoints_pid, update_global_location_list): Update
4731 callers.
4732
24cdb46e
РИ
47332016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
4734 Pedro Alves <palves@redhat.com>
4735
4736 * windows-nat.c (MS_VC_EXCEPTION): New define.
4737 (handle_exception_result): New enum.
4738 (windows_delete_thread): Free the thread's name.
4739 (handle_exception): Handle MS_VC_EXCEPTION.
4740 (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
4741 (windows_thread_name): New function.
4742 (windows_target): Install it as to_thread_name method.
4743 * NEWS: Mention the thread naming support on MS-Windows.
4744
669f9429
PA
47452016-08-10 Pedro Alves <palves@redhat.com>
4746
4747 * common/signals-state-save-restore.c
4748 (save_original_signals_state, restore_original_signals_state):
4749 Wrap perror_with_name arguments with '()'.
4750
3eb7562a
PA
47512016-08-09 Pedro Alves <palves@redhat.com>
4752
4753 PR gdb/20418
4754 * event-top.c (ui_register_input_event_handler)
4755 (ui_unregister_input_event_handler): New functions.
4756 (async_enable_stdin): Register input in the event loop.
4757 (async_disable_stdin): Unregister input from the event loop.
4758 (gdb_setup_readline): Register input in the event loop.
4759 * infrun.c (check_curr_ui_sync_execution_done): Register input in
4760 the event loop.
4761 * target.c (target_terminal_inferior): Don't unregister input from
4762 the event loop.
4763 (target_terminal_ours): Don't register input in the event loop.
4764 * target.h (target_terminal_inferior)
4765 (target_terminal_ours_for_output, target_terminal_ours): Update
4766 comments.
4767 * top.h (ui_register_input_event_handler)
4768 (ui_unregister_input_event_handler): New declarations.
4769 * utils.c (ui_unregister_input_event_handler_cleanup)
4770 (prepare_to_handle_input): New functions.
4771 (defaulted_query, prompt_for_continue): Use
4772 prepare_to_handle_input.
4773
80614914
PA
47742016-08-09 Pedro Alves <palves@redhat.com>
4775
4776 PR mi/20431
4777 * mi/mi-main.c (mi_execute_command): Enable input and set prompt
4778 state to PROMPT_NEEDED.
4779
f348d89a
PA
47802016-08-09 Pedro Alves <palves@redhat.com>
4781
4782 PR gdb/18653
4783 * Makefile.in (SFILES): Add
4784 common/signals-state-save-restore.c.
4785 (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
4786 (COMMON_OBS): Add signals-state-save-restore.o.
4787 (signals-state-save-restore.o): New rule.
4788 * configure: Regenerate.
4789 * fork-child.c: Include "signals-state-save-restore.h".
4790 (fork_inferior): Call restore_original_signals_state.
4791 * main.c: Include "signals-state-save-restore.h".
4792 (captured_main): Call save_original_signals_state.
4793 * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
4794 * common/signals-state-save-restore.c: New file.
4795 * common/signals-state-save-restore.h: New file.
4796
e5ca03b4
PA
47972016-08-09 Pedro Alves <palves@redhat.com>
4798
4799 * value.c (unpack_value_bitfield): Skip unpacking if the parent
4800 has no contents buffer to begin with.
4801
6a17ca31
PA
48022016-08-08 Pedro Alves <palves@redhat.com>
4803
4804 * features/i386/amd64-avx-mpx-linux.c: Regenerate.
4805 * features/i386/amd64-avx-mpx.c: Regenerate.
4806 * features/i386/i386-avx-mpx-linux.c: Regenerate.
4807 * features/i386/i386-avx-mpx.c: Regenerate.
4808
c632e428
SM
48092016-08-05 Simon Marchi <simon.marchi@ericsson.com>
4810
4811 * event-top.h (cli_command_loop): Remove.
4812
3906a8fc
PA
48132016-08-05 Pedro Alves <palves@redhat.com>
4814
4815 PR remote/20398
4816 * remote-fileio.c (remote_fileio_quit_handler): Check the quit
4817 flag before calling quit.
4818
69ffd7f2
PA
48192016-08-05 Pedro Alves <palves@redhat.com>
4820
4821 * NEWS: Mention that GDB and GDBserver build with a C++ compiler
4822 by default.
4823
1baf5149
PA
48242016-08-05 Pedro Alves <palves@redhat.com>
4825
4826 * build-with-cxx.m4: Change help string to be in terms of
4827 --disable-build-with-cxx.
4828 * configure: Regenerate.
4829
6f67973b
YQ
48302016-08-04 Yao Qi <yao.qi@linaro.org>
4831
4832 * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
4833 declaration.
4834 (aarch64_linux_read_description): Remove code on getting
4835 auxv and select target description on it. Select target
4836 description by the result of NT_ARM_VFP ptrace request.
4837
282a0691
TT
48382016-08-03 Tom Tromey <tom@tromey.com>
4839
4840 PR python/18565:
4841 * python/py-frame.c (frapy_function): Use find_frame_funname.
4842
d10153cf
TT
48432016-08-03 Tom Tromey <tom@tromey.com>
4844
4845 * stack.c (find_frame_funname): Avoid any possible leak in case
4846 cp_remove_params can throw.
4847
8d2a0a14
TT
48482016-08-03 Tom Tromey <tom@tromey.com>
4849
4850 * NEWS: Mention new Python breakpoint events.
4851
33541b2e
TT
48522016-08-02 Tom Tromey <tom@tromey.com>
4853
4854 * MAINTAINERS (Core): Add self as Rust maintainer.
4855
751b375e
JB
48562016-08-01 Joel Brobecker <brobecker@adacore.com>
4857
4858 * NEWS: Create a new section for the next release branch.
4859 Rename the section of the current branch, now that it has
4860 been cut.
4861
b2bd7787
JB
48622016-08-01 Joel Brobecker <brobecker@adacore.com>
4863
4864 GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
4865 * version.in: Bump version to 7.12.50.DATE-git.
4866
293acfae
AM
48672016-07-27 Alan Modra <amodra@gmail.com>
4868
4869 * amd64-darwin-tdep.c: Don't include libbfd.h.
4870 * i386-darwin-tdep.c: Likewise.
4871 * rs6000-nat.c: Likewise.
4872 * rs6000-tdep.c: Likewise.
4873
0b31a4bc
TT
48742016-07-26 Tom Tromey <tom@tromey.com>
4875
4876 * symtab.c (register_symbol_computed_impl): Update.
4877 PR python/20190:
4878 * value.h (symbol_read_needs): Declare.
4879 (symbol_read_needs_frame): Add comment.
4880 * symtab.h (struct symbol_computed_ops) <read_variable>: Update
4881 comment.
4882 <get_symbol_read_needs>: Rename. Change return type.
4883 * findvar.c (symbol_read_needs): New function.
4884 (symbol_read_needs_frame): Rewrite.
4885 (default_read_var_value): Use symbol_read_needs.
4886 * dwarf2loc.c (struct symbol_needs_baton): Rename.
4887 <needs>: Renamed from needs_frame. Changed type.
4888 (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
4889 (symbol_needs_read_mem, symbol_needs_frame_base)
4890 (symbol_needs_frame_cfa, symbol_needs_tls_address)
4891 (symbol_needs_dwarf_call): Rename.
4892 (needs_dwarf_reg_entry_value): Update.
4893 (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
4894 Rename and update.
4895 (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
4896 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
4897 * defs.h (enum symbol_needs_kind): New.
4898
40c31709
PA
48992016-07-26 Pedro Alves <palves@redhat.com>
4900
4901 * nat/linux-ptrace.c: Include "gregset.h".
4902 (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
4903 PTRACE_PEEKUSER.
4904
9cf12d57
PA
49052016-07-26 Pedro Alves <palves@redhat.com>
4906
4907 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
4908 parameter to 'ptrace'.
4909 * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
4910 (nat_uptr_t): New an unsigned long.
4911 (nat_clock_t): Remove attribute __aligned__.
4912 (struct nat_timeval): Delete.
4913 (nat_siginfo_t): Remove attribute __aligned__.
4914 (ptrace_siginfo_t): Define.
4915 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
4916 (compat_x32_siginfo_from_siginfo)
4917 (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
4918 Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
4919 Remove casts.
4920 (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
4921 'ptrace'. Remove static assertions.
4922 (top level): New static assertions.
4923
8194e927
SM
49242016-07-25 Simon Marchi <simon.marchi@ericsson.com>
4925
4926 * top.h (make_delete_ui_cleanup): New declaration.
4927 * top.c (delete_ui_cleanup): New function.
4928 (make_delete_ui_cleanup): New function.
4929 (new_ui_command): Create restore_ui cleanup earlier, create a
4930 delete_ui cleanup and discard it on success.
4931
0e1a6a51
PA
49322016-07-25 Pedro Alves <palves@redhat.com>
4933 Jan Kratochvil <jan.kratochvil@redhat.com>
4934
4935 * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
4936 't'.
4937
d617208b
PA
49382016-07-25 Pedro Alves <palves@redhat.com>
4939
4940 * nat/linux-procfs.c (enum proc_state): New enum.
4941 (parse_proc_status_state): New function.
4942 (linux_proc_pid_get_state): Replace output string buffer parameter
4943 with an output proc_state parameter. Use parse_proc_status_state.
4944 (linux_proc_pid_is_gone): Adjust to use proc_state values.
4945 (linux_proc_pid_has_state): Change type of 'state' parameter; now
4946 an enum proc_state. Adjust to linux_proc_pid_get_state interface
4947 change.
4948 (linux_proc_pid_is_stopped)
4949 (linux_proc_pid_is_trace_stopped_nowarn)
4950 (linux_proc_pid_is_zombie_maybe_warn): Adjust to
4951 linux_proc_pid_get_state interface change.
4952
3a1518e4
TW
49532016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
4954
4955 * MAINTAINERS (Write After Approval): Add Tim Wiederhake
4956
c0272db5
TW
49572016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
4958
4959 * NEWS: Resume btrace on reconnect.
4960 * record-btrace.c: Added record-btrace.h include.
4961 (record_btrace_open): Split into this and ...
4962 (record_btrace_push_target): ... this.
4963 (record_btrace_disconnect): New function.
4964 (init_record_btrace_ops): Use record_btrace_disconnect.
4965 * record-btrace.h: New file.
4966 * remote.c: Added record-btrace.h include.
4967 (remote_start_remote): Check recording status.
4968 (remote_btrace_maybe_reopen): New function.
4969
e3487908
GKB
49702016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
4971
4972 * xml-syscall.c (get_syscalls_by_group): New.
4973 (get_syscall_group_names): New.
4974 (struct syscall_group_desc): New structure to store group data.
4975 (struct syscalls_info): Include field to store the group list.
4976 (sysinfo_free_syscall_group_desc): New.
4977 (free_syscalls_info): Free group list.
4978 (syscall_group_create_syscall_group_desc): New.
4979 (syscall_group_add_syscall): New.
4980 (syscall_create_syscall_desc): Add syscall to its groups.
4981 (syscall_start_syscall): Load group attribute.
4982 (syscall_group_get_group_by_name): New.
4983 (xml_list_syscalls_by_group): New.
4984 (xml_list_of_groups): New.
4985 * xml-syscall.h (get_syscalls_by_group): Export function
4986 to retrieve a list of syscalls filtered by the group name.
4987 (get_syscall_group_names): Export function to retrieve the list
4988 of syscall groups.
4989 * break-catch-syscall.c (catch_syscall_split_args): Verify if
4990 argument is a syscall group and expand it to a list of syscalls
4991 when creating catchpoints.
4992 (catch_syscall_completer): Add word completion for system call
4993 groups.
4994 * configure.ac: Include dependency for xsltproc when building
4995 in maintainer-mode.
4996 * break-catch-syscall.c (_initialize_breakpoint): Update catch
4997 syscall command documentation.
4998 * NEWS: Include section about catching groups of syscalls.
4999 * configure: Regenerate.
5000 * data-directory/Makefile.in: Generate syscall xml when building
5001 in maintainer mode.
5002 * syscalls/gdb-syscalls.dtd: Include group attribute to the
5003 syscall element.
5004 * syscalls/apply-defaults.xsl: New.
5005 * syscalls/linux-defaults.xml.in: New.
5006 * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
5007 * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
5008 * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
5009 * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
5010 * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
5011 * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
5012 * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
5013 * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
5014 * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
5015 * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
5016 * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
5017 * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
5018 * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
5019 * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
5020 * syscalls/aarch64-linux.xml: Regenerate.
5021 * syscalls/amd64-linux.xml: Regenerate.
5022 * syscalls/arm-linux.xml: Regenerate.
5023 * syscalls/i386-linux.xml: Regenerate.
5024 * syscalls/mips-n32-linux.xml: Regenerate.
5025 * syscalls/mips-n64-linux.xml: Regenerate.
5026 * syscalls/mips-o32-linux.xml: Regenerate.
5027 * syscalls/ppc-linux.xml: Regenerate.
5028 * syscalls/ppc64-linux.xml: Regenerate.
5029 * syscalls/s390-linux.xml: Regenerate.
5030 * syscalls/s390x-linux.xml: Regenerate.
5031 * syscalls/sparc-linux.xml: Regenerate.
5032 * syscalls/sparc64-linux.xml: Regenerate.
5033
49ecef2a
AP
50342016-07-23 Andrew Pinski <apinski@cavium.com>
5035
5036 * nat/aarch64-linux-hw-point.c
5037 (aarch64_linux_get_debug_reg_capacity): Handle
5038 ARMv8.1 and ARMv8.2 debug versions.
5039 * nat/aarch64-linux-hw-point.h
5040 (AARCH64_DEBUG_ARCH_V8_1): New define.
5041 (AARCH64_DEBUG_ARCH_V8_2): New define.
5042
463888ab
РИ
50432016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
5044
5045 PR gdb/14529
5046 * windows-nat.c (signal_event_command): New command 'signal-event'
5047 for W32 JIT debug support.
5048 * NEWS: Add an entry about the new 'signal-event' command.
5049
e98c9e7c
TT
50502016-07-22 Tom Tromey <tom@tromey.com>
5051
5052 PR rust/20162:
5053 * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
5054 Call scan_partial_symbols for children when reading a Rust CU.
5055 (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
5056 rustc.
5057 (process_structure_scope) <DW_TAG_subprogram>: Call
5058 read_func_scope for Rust.
5059
eed2386e
YQ
50602016-07-22 Yao Qi <yao.qi@linaro.org>
5061
5062 * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
5063 bt_ctf_get_int64.
5064
12df5c00
TT
50652016-07-21 Tom Tromey <tom@tromey.com>
5066
5067 * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
5068 structs.
5069 * rust-exp.y (struct_expr_list): Allow empty elements.
5070
305450ed
TT
50712016-07-21 Tom Tromey <tom@tromey.com>
5072
5073 * configure: Rebuild.
5074 * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
5075 -Wunused-but-set-parameter, -Wunused-but-set-variable.
5076
f515a1d6
PA
50772016-07-21 Pedro Alves <palves@redhat.com>
5078
5079 * go32-nat.c (go32_create_inferior): Add cast.
5080 * ser-go32.c (dos_noop): Delete.
5081 (dos_flush_output, dos_setparity, dos_drain_output): New
5082 functions.
5083 (dos_write): Add cast.
5084 (dos_ops): Use dos_flush_output, dos_setparity and
5085 dos_drain_output.
5086 * top.c (do_chdir_cleanup): Add cast.
5087
c25b7cce
PA
50882016-07-21 Pedro Alves <palves@redhat.com>
5089
5090 * windows-nat.c (handle_exception): Remove "th".
5091
e3821cca
PA
50922016-07-21 Pedro Alves <palves@redhat.com>
5093
5094 * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
5095 scope that uses it.
5096
dbaed385
JB
50972016-07-20 John Baldwin <jhb@FreeBSD.org>
5098
5099 * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
5100 events.
5101 (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
5102 defined.
5103 (fbsd_add_vfork_done): Likewise.
5104 (fbsd_is_vfork_done_pending): Likewise.
5105 (fbsd_next_vfork_done): Likewise.
5106 (fbsd_resume): Only ignore pending vfork done events if
5107 "PTRACE_VFORK" is not defined.
5108 (fbsd_wait): Only look for pending vfork done events if
5109 "PTRACE_VFORK" is not defined.
5110 [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
5111 events.
5112 (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
5113 is not defined.
5114
5fa14c6b
JB
51152016-07-20 John Baldwin <jhb@FreeBSD.org>
5116
5117 * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
5118 new child processes.
5119
da95a26c
JB
51202016-07-20 John Baldwin <jhb@FreeBSD.org>
5121
5122 * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
5123 (fbsd_enable_proc_events): New function.
5124 (fbsd_enable_follow_fork): Remove function.
5125 (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
5126 (fbsd_post_attach): Likewise.
5127
bc7b765a
JB
51282016-07-15 John Baldwin <jhb@FreeBSD.org>
5129
5130 * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
5131 (do_gdb_signal_to_host): Likewise.
5132 * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
5133 programs.
5134 * proc-events.c (signal_table): Add entry for SIGLIBRT.
5135
7f131b39
TT
51362016-07-14 Tom Tromey <tom@tromey.com>
5137
5138 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
5139 newline.
5140
78cc6c2d
TT
51412016-07-14 Tom Tromey <tom@tromey.com>
5142
5143 * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
5144 (mips_o32_push_dummy_call): Remove "stack_used_p".
5145 * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
5146 "insn_bit28".
5147 * rust-lang.c (rust_print_type): Remove "len".
5148 * rust-exp.y (super_name): Remove "current_len".
5149 * python/py-framefilter.c (py_print_type): Remove "type".
5150 * mdebugread.c (parse_partial_symbols): Remove
5151 "past_first_source_file".
5152 <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
5153 * m2-valprint.c (m2_print_unbounded_array): Remove
5154 "content_type".
5155 (m2_val_print): Remove "i".
5156 * linespec.c (unexpected_linespec_error): Remove "cleanup".
5157 * f-valprint.c (f_val_print): Remove "i".
5158 * elfread.c (elf_symtab_read): Remove "offset".
5159 * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
5160 * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
5161
ac298888
TT
51622016-07-14 Tom Tromey <tom@tromey.com>
5163
5164 * arch-utils.c (default_skip_permanent_breakpoint): Remove
5165 "bp_insn".
5166 * disasm.c (do_assembly_only): Remove "num_displayed".
5167 * dwarf2read.c (read_abbrev_offset): Remove "length".
5168 (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
5169 "constant".
5170 * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
5171 * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
5172 * tracefile.c (trace_save): Remove "status".
5173
764c99c1
TT
51742016-07-14 Tom Tromey <tom@tromey.com>
5175
5176 * symfile.c (simple_overlay_update_1): Remove initialization
5177 of "size", and commented-out code.
5178 (simple_overlay_update): Likewise.
5179
cecc8b99
TT
51802016-07-14 Tom Tromey <tom@tromey.com>
5181
5182 * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
5183 * tui/tui-io.c (tui_puts): Use getcurx.
5184 (tui_redisplay_readline): Likewise.
5185
821fc4ae
TT
51862016-07-14 Tom Tromey <tom@tromey.com>
5187
5188 * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
5189
537d9b85
TT
51902016-07-14 Tom Tromey <tom@tromey.com>
5191
5192 * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
5193 succeeded.
5194
dac790e1
TT
51952016-07-13 Tom Tromey <tom@tromey.com>
5196
5197 PR python/15620, PR python/18620:
5198 * python/py-evts.c (gdbpy_initialize_py_events): Call
5199 add_new_registry for new events.
5200 * python/py-events.h (events_object) <breakpoint_created,
5201 breakpoint_deleted, breakpoint_modified>: New fields.
5202 * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
5203 breakpoint changed event.
5204 (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
5205 (gdbpy_breakpoint_modified): New function.
5206 (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
5207 observer.
5208
93daf339
TT
52092016-07-13 Tom Tromey <tom@tromey.com>
5210
5211 PR python/17698:
5212 * NEWS: Update.
5213 * python/py-breakpoint.c (bppy_get_pending): New function.
5214 (breakpoint_object_getset): Add entry for "pending".
5215 * breakpoint.h (pending_breakpoint_p): Declare.
5216 * breakpoint.c (pending_breakpoint_p): New function.
5217
43684a7b
TT
52182016-07-13 Tom Tromey <tom@tromey.com>
5219
5220 * python/py-breakpoint.c (bppy_get_visibility)
5221 (gdbpy_breakpoint_created): Use user_breakpoint_p.
5222
6571a381
TT
52232016-07-13 Tom Tromey <tom@tromey.com>
5224
5225 PR cli/18053:
5226 * jit.c (jit_reader_load_command): Use tilde_expand.
5227 (_initialize_jit): Fix help for jit-reader-unload. Set completer
5228 for new commands.
5229
e0f3fd7c
TT
52302016-07-12 Tom Tromey <tom@tromey.com>
5231
5232 PR python/19293:
5233 * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
5234 gdb.invalidate_cached_frames.
5235 * python/lib/gdb/unwinder.py (register_unwinder): Call
5236 gdb.invalidate_cached_frames.
5237 * python/python.c (gdbpy_invalidate_cached_frames): New function.
5238 (python_GdbMethods): Add entry for invalidate_cached_frames.
5239
41c977aa
WT
52402016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
5241
5242 * cp-namespace.c (cp_lookup_bare_symbol): Initialize
5243 lang_this.symbol.
5244
4f19a0e6
WT
52452016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
5246
5247 * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
5248 parameter to look for the symbol "this".
5249
5250
fb36c6bf
JB
52512016-07-06 John Baldwin <jhb@FreeBSD.org>
5252
5253 * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
5254
db297a65
JB
52552016-07-06 John Baldwin <jhb@FreeBSD.org>
5256
5257 * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
5258 left shifts.
5259
9ca10714
JB
52602016-07-06 John Baldwin <jhb@FreeBSD.org>
5261
5262 * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
5263 the MEDIA_FP_REGNUM register.
5264
d66ff635
JB
52652016-07-06 John Baldwin <jhb@FreeBSD.org>
5266
5267 * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
5268 negative size.
5269
ee950322
JB
52702016-07-06 John Baldwin <jhb@FreeBSD.org>
5271
5272 * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
5273
1040b979
YQ
52742016-07-06 Yao Qi <yao.qi@linaro.org>
5275
5276 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
5277 arm_vfp_cprc_sub_candidate for static field.
5278
42d94011
MG
52792016-07-06 Manish Goregaokar <manish@mozilla.com>
5280
2806dc7e 5281 * rust-lang.c (rust_subscript): Allow subscripting pointers.
42d94011 5282
13cdc2af
JK
52832016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5284
5285 * configure: Regenerate.
5286 * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
5287
09c98b44
DB
52882016-07-01 Don Breazeal <donb@codesourcery.com>
5289
5290 * remote.c (remote_get_memory_xfer_limit): New function.
5291 * target-delegates.c: Regenerate.
5292 * target.c (memory_xfer_partial): Call
5293 target_ops.to_get_memory_xfer_limit.
5294 * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
5295 member.
5296
2c5c2a33
JB
52972016-07-01 John Baldwin <jhb@FreeBSD.org>
5298
5299 * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
5300 (struct fbsd_fork_info): ... this.
5301 (struct fbsd_fork_info) <child>: Rename to ...
5302 (struct fbsd_fork_info) <ptid>: ... this.
5303 (fbsd_pending_children): Update type.
5304 (fbsd_remember_child): Update type and field name.
5305 (fbsd_is_child_pending): Likewise.
5306 (fbsd_pending_vfork_done): New variable.
5307 (fbsd_is_vfork_done_pending): New function.
5308 (fbsd_next_vfork_done): New function.
5309 (fbsd_resume): Don't resume processes with a pending vfork done
5310 event.
5311 (fbsd_wait): Report pending vfork done events.
5312 (fbsd_follow_fork): Delay and record a pending vfork done event
5313 for a vfork parent when detaching the child.
5314
8607ea63
JB
53152016-07-01 John Baldwin <jhb@FreeBSD.org>
5316
5317 * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
5318 (resume_one_thread_cb): Move below fork following helper code.
5319 (resume_all_threads_cb): Likewise.
5320 (fbsd_resume): Likewise.
5321
bb2a62e6
JB
53222016-07-01 John Baldwin <jhb@FreeBSD.org>
5323
5324 * fbsd-nat.c (fbsd_follow_fork): Only detach child if
5325 "detach_fork" is true.
5326
5077bfff
JB
53272016-07-01 John Baldwin <jhb@FreeBSD.org>
5328
5329 * x86bsd-nat.c: Include 'gdbthread.h'.
5330 (x86bsd_dr_set): Set debug registers on all threads belonging to
5331 the current inferior.
5332
a3405d12
JB
53332016-07-01 John Baldwin <jhb@FreeBSD.org>
5334
5335 * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
5336 'x86bsd-nat.h'.
5337 * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
5338 'amd64bsd-nat.h'.
5339 (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
5340 (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
5341 with 'x86bsd_xsave_len'.
5342 (amd64bsd_store_inferior_registers): Likewise.
5343 (amd64bsd_target): Inherit from x86bsd_target.
5344 (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
5345 (amd64bsd_dr_set): Likewise.
5346 (amd64bsd_dr_set_control): Likewise.
5347 (amd64bsd_dr_set_addr): Likewise.
5348 (amd64bsd_dr_get_addr): Likewise.
5349 (amd64bsd_dr_get_status): Likewise.
5350 (amd64bsd_dr_get_control): Likewise.
5351 * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
5352 'amd64bsd-nat.h'.
5353 (super_mourn_inferior): Move to x86bsd-nat.c.
5354 (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
5355 (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
5356 'x86bsd_xsave_len'.
5357 (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
5358 mourn_inferior' target op.
5359 * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
5360 * config/i386/fbsd64.mh: Likewise.
5361 * config/i386/nbsd64.mh: Likewise.
5362 * config/i386/nbsdelf.mh: Likewise.
5363 * config/i386/obsd.mh: Likewise.
5364 * config/i386/obsd64.mh: Likewise.
5365 * i386bsd-nat.c: Include 'x86bsd-nat.h'.
5366 (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
5367 (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
5368 with 'x86bsd_xsave_len'.
5369 (i386bsd_store_inferior_registers): Likewise.
5370 (i386bsd_target): Inherit from x86bsd_target.
5371 (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
5372 (i386bsd_dr_set): Likewise.
5373 (i386bsd_dr_set_control): Likewise.
5374 (i386bsd_dr_set_addr): Likewise.
5375 (i386bsd_dr_get_addr): Likewise.
5376 (i386bsd_dr_get_status): Likewise.
5377 (i386bsd_dr_get_control): Likewise.
5378 * i386bsd-nat.h (i386bsd_xsave_len): Remove.
5379 (i386bsd_dr_set_control): Remove.
5380 (i386bsd_dr_set_addr): Remove.
5381 (i386bsd_dr_get_addr): Remove.
5382 (i386bsd_dr_get_status): Remove.
5383 (i386bsd_dr_get_control): Remove.
5384 * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
5385 (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
5386 'x86bsd_xsave_len'.
5387 (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
5388 mourn_inferior' target op.
5389 * x86bsd-nat.c: New file.
5390 * x86bsd-nat.h: New file.
5391
20aa2c60
PA
53922016-07-01 Pedro Alves <palves@redhat.com>
5393 Tom Tromey <tom@tromey.com>
5394
5395 * jit.c (jit_reader_load_command): Call reinit_frame_cache and
5396 jit_inferior_created_hook.
5397 (jit_reader_unload_command): Call reinit_frame_cache and
5398 jit_inferior_exit_hook.
5399 * jit.c (struct jit_unwind_private) <registers>: Delete field.
5400 <regcache>: New field.
5401 (jit_unwind_reg_set_impl): Set the register's value in the
5402 regcache. Free the passed-in gdb_reg_value.
5403 (jit_dealloc_cache): Adjust to free the regcache.
5404 (jit_frame_sniffer): Allocate a regcache instead of an array of
5405 gdb_reg_value pointers.
5406 (jit_frame_this_id): Adjust.
5407 (jit_frame_prev_register): Read raw registers off of the regcache
5408 instead of from the gdb_reg_value pointer array. Use
5409 gdbarch_pseudo_register_read_value to read pseudo registers.
5410 * regcache.c (regcache_raw_set_cached_value): New function,
5411 factored out from ...
5412 (regcache_raw_write): ... here.
5413 * regcache.h (regcache_raw_set_cached_value): Declare.
5414
ced2dffb
PA
54152016-07-01 Pedro Alves <palves@redhat.com>
5416 Antoine Tremblay <antoine.tremblay@ericsson.com>
5417
5418 * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
5419 out from ...
5420 (inf_ptrace_detach): ... here.
5421 * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
5422 * linux-nat.c (get_pending_status): Rename to ...
5423 (get_detach_signal): ... this, and return a host signal instead of
5424 filling in a wait status.
5425 (detach_one_lwp): New function, factored out from detach_callback
5426 and adjusted to handle detaching from a zombie thread.
5427 (detach_callback): Skip the leader thread.
5428 (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
5429 the leader thread, nor build a signal string to pass down.
5430 Instead, use target_announce_detach, detach_one_lwp and
5431 inf_ptrace_detach_success.
5432
63000888
PA
54332016-07-01 Pedro Alves <palves@redhat.com>
5434
5435 * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
5436 locations.
5437 * infcmd.c (detach_command): Call breakpoint_init_inferior.
5438
0f48b757
PA
54392016-07-01 Pedro Alves <palves@redhat.com>
5440
5441 * darwin-nat.c (darwin_detach): Use target_announce_detach.
5442 * inf-ptrace.c (inf_ptrace_detach): Likewise.
5443 * nto-procfs.c (procfs_detach): Likewise.
5444 * remote.c (remote_detach_1): Likewise.
5445 * target.c (target_announce_detach): New function.
5446 * target.h (target_announce_detach): New declaration.
5447
803b47e5
TT
54482016-06-29 Tom Tromey <tom@tromey.com>
5449
5450 PR python/20129:
5451 * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
5452 (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
5453 not "name".
5454
9d78f827
TT
54552016-06-29 Tom Tromey <tom@tromey.com>
5456
5457 PR gdb/17210:
5458 * target.c (free_memory_read_result_vector): Take a pointer to the
5459 VEC as an argument.
5460 (read_memory_robust): Install a cleanup for "result".
5461 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
5462
a405c228
MG
54632016-06-29 Manish Goregaokar <manish@mozilla.com>
5464
9bf74fb2
MG
5465 * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
5466
54672016-06-29 Manish Goregaokar <manish@mozilla.com>
5468
a405c228
MG
5469 * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
5470
2ac09a5b
YQ
54712016-06-28 Yao Qi <yao.qi@linaro.org>
5472
5473 * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
5474 variable new_offset.
5475
921d8f54
MG
54762016-06-27 Manish Goregaokar <manish@mozilla.com>
5477
6763d566 5478 * rust-lang.c (rust_print_type, rust_decorations): Print unit
0b08e1f3
PA
5479 types as "()".
5480 (rust_print_type): Omit return type for functions returning unit.
921d8f54 5481
f4952523
PMR
54822016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
5483
5484 * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
5485 when there is an error during the breakpoint creation.
5486
9e8a8ea8
TT
54872016-06-25 Tom Tromey <tom@tromey.com>
5488
5489 * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
5490 formatting.
5491
b5a4b3c5
MG
54922016-06-25 Manish Goregaokar <manish@mozilla.com>
5493
5494 PR gdb/20239
5495 * rust-lang.c (rust_get_disr_info): Correctly interpret
5496 NonZero-optimized enums of arbitrary depth.
5497 (rust_print_type): Correctly print NonZero-optimized
5498 enums.
5499
6b850546
DT
55002016-06-24 David Taylor <dtaylor@emc.com>
5501
5502 PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
5503 * c-lang.h: Change all parameters, variables, and struct or union
5504 members used as struct or union fie3ld offsets from int to
5505 LONGEST.
5506 * c-valprint.c: Likewise.
5507 * cp-abi.c: Likewise.
5508 * cp-abi.h: Likewise.
5509 * cp-valprint.c: Likewise.
5510 * d-valprint.c: Likewise.
5511 * dwarf2loc.c: Likewise.
5512 * eval.c: Likewise.
5513 * extension-priv.h: Likewise.
5514 * extension.c: Likewise.
5515 * extension.h: Likewise.
5516 * findvar.c: Likewise.
5517 * gdbtypes.h: Likewise.
5518 * gnu-v2-abi.c: Likewise.
5519 * gnu-v3-abi.c: Likewise.
5520 * go-valprint.c: Likewise.
5521 * guile/guile-internal.h: Likewise.
5522 * guile/scm-pretty-print.c: Likewise.
5523 * jv-valprint.c Likewise.
5524 * opencl-lang.c: Likewise.
5525 * p-lang.h: Likewise.
5526 * python/py-prettyprint.c: Likewise.
5527 * python/python-internal.h: Likewise.
5528 * spu-tdep.c: Likewise.
5529 * typeprint.c: Likewise.
5530 * valarith.c: Likewise.
5531 * valops.c: Likewise.
5532 * valprint.c: Likewise.
5533 * valprint.h: Likewise.
5534 * value.c: Likewise.
5535 * value.h: Likewise.
5536 * p-valprint.c: Likewise.
5537 * c-typeprint.c (c_type_print_base): When printing offset, use
5538 plongest, not %d.
5539 * gdbtypes.c (recursive_dump_type): Ditto.
5540
2907f414
DT
55412016-06-24 David Taylor <david.taylor@emc.com>
5542
5543 * MAINTAINERS (Write After Approval): Add David Taylor.
5544
e6cdd38e
JB
55452016-06-24 John Baldwin <jhb@FreeBSD.org>
5546
5547 * configure.ac: Check for support for system call LWP fields on
5548 FreeBSD.
5549 * config.in, configure: Rebuild.
5550 * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
5551 * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
5552 Report system call events.
5553 [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
5554 (fbsd_set_syscall_catchpoint): New function.
5555 (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
5556 Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
5557 * fbsd-tdep.c: Include xml-syscall.h
5558 (fbsd_get_syscall_number): New function.
5559 (fbsd_init_abi): Set XML system call file name.
5560 Add "get_syscall_number" gdbarch method.
5561 * syscalls/freebsd.xml: New file.
5562
82372b2f
JB
55632016-06-24 John Baldwin <jhb@FreeBSD.org>
5564
5565 * fbsd-tdep.c: Include "auxv.h".
5566 (fbsd_print_auxv_entry): New function.
5567 (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
5568
2faa3447
JB
55692016-06-24 John Baldwin <jhb@FreeBSD.org>
5570
5571 * auxv.c (fprint_auxv_entry): New function.
5572 (default_print_auxv_entry): New function.
5573 (fprint_target_auxv): Use gdbarch_print_auxv_entry.
5574 * auxv.h (enum auxv_format): New enum.
5575 (fprint_auxv_entry): Declare.
5576 (default_print_auxv_entry): Declare.
5577 * gdbarch.sh (print_auxv_entry): New.
5578 * gdbarch.c, gdbarch.h: Re-generated.
5579
7697fc9e
JB
55802016-06-24 John Baldwin <jhb@FreeBSD.org>
5581
5582 * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
5583 (fbsd_xfer_partial): New function.
5584 (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
5585 "fbsd_xfer_partial".
5586
8b302db8
TT
55872016-06-23 Tom Tromey <tom@tromey.com>
5588
5589 * symtab.c (symbol_find_demangled_name): Loop over languages and
5590 use language_sniff_from_mangled_name.
5591 * rust-lang.c (rust_sniff_from_mangled_name): New function.
5592 (rust_language_defn): Update.
5593 * p-lang.c (pascal_language_defn): Update.
5594 * opencl-lang.c (opencl_language_defn): Update.
5595 * objc-lang.c (objc_sniff_from_mangled_name): New function.
5596 (objc_language_defn): Update.
5597 * m2-lang.c (m2_language_defn): Update.
5598 * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
5599 field.
5600 (language_sniff_from_mangled_name): Declare.
5601 * language.c (language_sniff_from_mangled_name): New function.
5602 (unknown_language_defn, auto_language_defn, local_language_defn):
5603 Update.
5604 * jv-lang.c (java_sniff_from_mangled_name): New function.
5605 (java_language_defn): Use it.
5606 * go-lang.c (go_sniff_from_mangled_name): New function.
5607 (go_language_defn): Use it.
5608 * f-lang.c (f_language_defn): Update.
5609 * defs.h (enum language): Reorder.
5610 * d-lang.c (d_sniff_from_mangled_name): New function.
5611 (d_language_defn): Use it.
5612 * cp-support.h (gdb_sniff_from_mangled_name): Declare.
5613 * cp-support.c (gdb_sniff_from_mangled_name): New function.
5614 * c-lang.c (c_language_defn, cplus_language_defn)
5615 (asm_language_defn, minimal_language_defn): Update.
5616 * ada-lang.c (ada_sniff_from_mangled_name): New function.
5617 (ada_language_defn): Use it.
5618
56618e20
TT
56192016-06-23 Tom Tromey <tom@tromey.com>
5620
5621 * ada-lang.c (ada_extensions): New array.
5622 (ada_language_defn): Use it.
5623 * c-lang.c (c_extensions): New array.
5624 (c_language_defn): Use it.
5625 (cplus_extensions): New array.
5626 (cplus_language_defn): Use it.
5627 (asm_extensions): New array.
5628 (asm_language_defn): Use it.
5629 (minimal_language_defn): Update.
5630 * d-lang.c (d_extensions): New array.
5631 (d_language_defn): Use it.
5632 * f-lang.c (f_extensions): New array.
5633 (f_language_defn): Use it.
5634 * go-lang.c (go_language_defn): Update.
5635 * jv-lang.c (java_extensions): New array.
5636 (java_language_defn): Use it.
5637 * language.c (add_language): Call add_filename_language.
5638 (unknown_language_defn, auto_language_defn, local_language_defn):
5639 Update.
5640 * language.h (struct language_defn) <la_filename_extensions>: New
5641 field.
5642 * m2-lang.c (m2_language_defn): Update.
5643 * objc-lang.c (objc_extensions): New array.
5644 (objc_language_defn): Use it.
5645 * opencl-lang.c (opencl_language_defn): Update.
5646 * p-lang.c (p_extensions): New array.
5647 (pascal_language_defn): Use it.
5648 * rust-lang.c (rust_extensions): New array.
5649 (rust_language_defn): Use it.
5650 * symfile.c (add_filename_language): No longer static. Make "ext"
5651 const.
5652 (init_filename_language_table): Remove.
5653 (_initialize_symfile): Update.
5654 * symfile.h (add_filename_language): Declare.
5655
3fcf0b0d
TT
56562016-06-23 Tom Tromey <tom@tromey.com>
5657
5658 * symfile.c (filename_language_table): Now a VEC.
5659 (fl_table_size, fl_table_next): Remove.
5660 (add_filename_language): Use VEC_safe_push.
5661 (set_ext_lang_command, info_ext_lang_command)
5662 (deduce_language_from_filename): Use VEC_iterate.
5663 (init_filename_language_table): Use VEC_empty.
5664
0c72ed4c
TT
56652016-06-23 Tom Tromey <tom@tromey.com>
5666
5667 * python/python.c (gdbpy_parameter): Now static.
5668 * python/python-internal.h (gdbpy_parameter): Don't declare.
5669
17621150
TT
56702016-06-23 Tom Tromey <tom@tromey.com>
5671
5672 PR gdb/16483:
5673 * python/lib/gdb/command/frame_filters.py
5674 (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
5675 nothing if no filters found. Return value indicating whether
5676 filters were printed.
5677 (InfoFrameFilter.print_list): Remove.
5678 (InfoFrameFilter.invoke): Print message if no frame filters
5679 found.
5680
04d59df6
WT
56812016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
5682
5683 * f-valprint.c (f_val_print): Add field names for printing
5684 derived types fields.
5685
34a60ddb
AA
56862016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5687
5688 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
5689 in name of last-break regset.
5690
49940788
PA
56912016-06-21 Pedro Alves <palves@redhat.com>
5692
5693 * fork-child.c (fork_inferior): Switch the child to the main UI
5694 right after vfork. Save/restore the current UI in the parent.
5695 Flush outputs of the main UI instead of the current UI.
5696
468afe6c
PA
56972016-06-21 Pedro Alves <palves@redhat.com>
5698
5699 * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
5700 to all UIs.
5701
86f78169
PA
57022016-06-21 Pedro Alves <palves@redhat.com>
5703
5704 * NEWS: Mention support for running interpreters on separate
5705 UIs and the new new-ui command.
5706
60eb5395
PA
57072016-06-21 Pedro Alves <palves@redhat.com>
5708
5709 * interps.c (set_top_level_interpreter): New function, factored
5710 out from captured_main.
5711 (interpreter_completer): Make extern.
5712 * interps.h (set_top_level_interpreter, interpreter_completer):
5713 New declarations.
5714 (captured_main): Use set_top_level_interpreter.
5715 * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
5716 (open_terminal_stream, new_ui_command): New functions.
5717 (init_main): Install the "new-ui" command.
5718
268a799a
PA
57192016-06-21 Pedro Alves <palves@redhat.com>
5720
5721 * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
5722 (read_command_lines): Use input_interactive_p instead of
5723 input_from_terminal_p.
5724 * defs.h (struct ui): Forward declare.
5725 (input_from_terminal_p): Rename to ...
5726 (input_interactive_p): ... this.
5727 * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
5728 to quit_command.
5729 (command_handler): Adjust to per-UI stdin.
5730 (handle_line_of_input): Adjust to per-UI stdin and use
5731 input_interactive_p instead of ISATTY and input_from_terminal_p.
5732 (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
5733 (command_line_handler): Always pass true as "from_tty" parameter
5734 of handle_line_of_input and execute_command.
5735 (async_sigterm_handler): Pass 0 as from_tty argument to
5736 quit_command.
5737 * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
5738 (gdb_has_a_terminal): Don't check interactive_mode here.
5739 (_initialize_inflow): Don't install "set interactive-mode" here.
5740 * main.c (captured_command_loop): Adjust to per-UI stdin.
5741 * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
5742 stdin.
5743 * top.c (new_ui): Save the stdin stream and whether it's a tty.
5744 (dont_repeat): Adjust to per-UI stdin.
5745 (command_line_input): Adjust to per-UI stdin and to use
5746 input_interactive_p.
5747 (quit_force): Write history if any UI supports interactive input.
5748 (interactive_mode, show_interactive_mode): Move here, from
5749 inflow.c.
5750 (input_from_terminal_p): Rename to ...
5751 (input_interactive_p): ... this, and check the "interactive_mode"
5752 global instead of calling gdb_has_a_terminal.
5753 (_initialize_top): Install "set interactive-mode" here.
5754 * top.h (struct ui) <stdin_stream, input_interactive_p>: New
5755 fields.
5756 * utils.c (quit): Pass 0 as from_tty argument to quit_force.
5757 (defaulted_query): Adjust to per-UI stdin and to use
5758 input_interactive_p.
5759
07169ff7
PA
57602016-06-21 Pedro Alves <palves@redhat.com>
5761
5762 * event-top.c (stdin_event_handler): Don't quit gdb if it was a
5763 secondary UI's input stream that closed. Instead, just delete the
5764 UI.
5765
98d9f24e
PA
57662016-06-21 Pedro Alves <palves@redhat.com>
5767
5768 * event-top.c (main_ui_): Delete.
5769 (main_ui, current_ui, ui_list): No longer initialize here.
5770 * main.c (captured_main): UI initialization code factored out to
5771 new new_ui function.
5772 (gdb_main): Wrap captured_main with TRY/CATCH instead of
5773 catch_errors.
5774 * top.c (highest_ui_num): New global.
5775 (new_ui): New function.
5776 * top.h (struct ui) <num>: New field.
5777 (new_ui): New declaration.
5778
eaae60fd
PA
57792016-06-21 Pedro Alves <palves@redhat.com>
5780
5781 * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
5782 nothing to print. Use should_print_stop_to_console.
5783 * tui/tui-interp.c (tui_on_normal_stop): Likewise.
5784
8980e177
PA
57852016-06-21 Pedro Alves <palves@redhat.com>
5786
5787 * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
5788 (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
5789 thread parameter.
5790 (until_break_command): Pass command interpreter to thread fsm
5791 ctor.
5792 * cli/cli-interp.c (should_print_stop_to_console): Adjust.
5793 * gdbthread.h (struct thread_control_state) <command_interp>:
5794 Delete field.
5795 * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
5796 Pass it down.
5797 (call_thread_fsm_should_stop): Add thread parameter.
5798 (call_function_by_hand_dummy): Pass command interpreter to thread
5799 fsm ctor. Pass thread pointer to fsm clean up method.
5800 * infcmd.c: Include interps.h.
5801 (struct step_command_fsm) <thread>: Delete field.
5802 (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
5803 (step_command_fsm_prepare): Remove references to fsm's thread
5804 field.
5805 (step_1): Pass command interpreter to thread
5806 fsm ctor. Pass thread pointer to fsm clean up method.
5807 (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
5808 thread parameter and use it.
5809 (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
5810 (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
5811 parameter and use it.
5812 (until_next_command): Pass command interpreter to thread fsm ctor.
5813 (struct finish_command_fsm) <thread>: Delete field.
5814 (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
5815 (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
5816 down. Remove thread parameter and adjust.
5817 (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
5818 thread parameter and use it.
5819 (finish_command): Pass command interpreter to thread fsm ctor.
5820 Don't pass thread.
5821 * infrun.c (follow_fork): Move thread fsm to child fork instead of
5822 command interpreter, only.
5823 (clear_proceed_status_thread): Remove reference to command_interp.
5824 (proceed): Don't record the thread's command interpreter.
5825 (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
5826 method.
5827 (fetch_inferior_event): Pass thread to fsm should_stop method.
5828 * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
5829 Store it.
5830 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
5831 parameter and pass it down.
5832 * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
5833 (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
5834 parameter.
5835 (thread_fsm_ctor): Add 'cmd_interp' parameter.
5836 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
5837 parameter.
5838 * thread.c (thread_cancel_execution_command): Pass thread to
5839 thread fsm clean_up method.
5840
26cde2cc
PA
58412016-06-21 Pedro Alves <palves@redhat.com>
5842
5843 * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
5844 (should_print_stop_to_console): New function, factored out from
5845 mi_on_normal_stop_1.
5846 * cli/cli-interp.h (should_print_stop_to_console): Declare.
5847 * mi/mi-interp.c (mi_on_normal_stop_1): Use
5848 should_print_stop_to_console. Pass it the current UI's console
5849 interpreter.
5850 * mi/mi-main.c (captured_mi_execute_command): Use the
5851 INTERP_CONSOLE symbol rather than explicit "console".
5852
a8836c93
PA
58532016-06-21 Pedro Alves <palves@redhat.com>
5854
5855 * infcmd.c (prepare_execution_command): Use
5856 all_uis_on_sync_execution_starting.
5857 * infrun.c (all_uis_on_sync_execution_starting): New function.
5858 * infrun.h (all_uis_on_sync_execution_starting): Declare.
5859
3b12939d
PA
58602016-06-21 Pedro Alves <palves@redhat.com>
5861
5862 * annotate.c: Include top.h.
5863 (async_background_execution_p): Delete.
5864 (print_value_flags): Check the UI's prompt state rather then
5865 async_background_execution_p.
5866 * event-loop.c (start_event_loop): Set the prompt state to
5867 PROMPT_NEEDED.
5868 * event-top.c (display_gdb_prompt, async_enable_stdin)
5869 (async_disable_stdin): Check the current UI's prompt state instead
5870 of the sync_execution global.
5871 (command_line_handler): Set the prompt state to PROMPT_NEEDED
5872 before running a command, and display the prompt if still needed
5873 afterwards.
5874 * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
5875 (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
5876 (call_thread_fsm_should_stop): Set the prompt state to
5877 PROMPT_NEEDED.
5878 (run_inferior_call): Adjust to temporarily set the prompt state to
5879 PROMPT_BLOCKED instead of using the sync_execution global.
5880 (call_function_by_hand_dummy): Pass the current UI to
5881 new_call_thread_fsm.
5882 * infcmd.c: Include top.h.
5883 (continue_1): Check the current UI's prompt state instead of the
5884 sync_execution global.
5885 (continue_command): Validate global execution state before calling
5886 prepare_execution_command.
5887 (step_1): Call all_uis_check_sync_execution_done.
5888 (attach_post_wait): Don't call async_enable_stdin here. Remove
5889 reference to sync_execution.
5890 * infrun.c (sync_execution): Delete global.
5891 (follow_fork_inferior)
5892 (reinstall_readline_callback_handler_cleanup): Check the current
5893 UI's prompt state instead of the sync_execution global.
5894 (check_curr_ui_sync_execution_done)
5895 (all_uis_check_sync_execution_done): New functions.
5896 (fetch_inferior_event): Call all_uis_check_sync_execution_done
5897 instead of trying to determine whether the global sync execution
5898 changed.
5899 (handle_no_resumed): Check the prompt state of all UIs.
5900 (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
5901 UIs. Emit the "Switching to" notification to all UIs. Enable
5902 stdin in all UIs.
5903 * infrun.h (sync_execution): Delete.
5904 (all_uis_check_sync_execution_done): Declare.
5905 * main.c (captured_command_loop): Don't call
5906 interp_pre_command_loop if the prompt is blocked.
5907 (catch_command_errors, catch_command_errors_const): Adjust.
5908 (captured_main): Set the initial prompt state to PROMPT_NEEDED.
5909 * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
5910 PROMPTED.
5911 (mi_interpreter_resume): Don't clear sync_execution. Remove hack
5912 comment.
5913 (mi_execute_command_input_handler): Set the prompt state to
5914 PROMPT_NEEDED before executing the command, and only display the
5915 prompt if the prompt state is PROMPT_NEEDED afterwards.
5916 (mi_on_resume_1): Adjust to check the prompt state.
5917 * target.c (target_terminal_inferior): Adjust to check the prompt
5918 state.
5919 * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
5920 (execute_command): Check the current UI's prompt state instead of
5921 sync_execution.
5922 * top.h (enum prompt_state): New.
5923 (struct ui) <prompt_state>: New field.
5924 (ALL_UIS): New macro.
5925
dbf30ca3
PA
59262016-06-21 Pedro Alves <palves@redhat.com>
5927
5928 * top.c (gdb_secondary_prompt_depth): Delete.
5929 (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
5930 (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
5931 per-UI gdb_secondary_prompt_depth.
5932 * top.h (struct ui) <secondary_prompt_depth>: New field.
5933
b2d86570
PA
59342016-06-21 Pedro Alves <palves@redhat.com>
5935
5936 * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
5937 function.
5938 (cli_interp_procs): Install it instead of cli_command_loop.
5939 * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
5940 * event-top.c (cli_command_loop): Delete.
5941 * interps.c (interp_new): Remove reference to command_loop_proc.
5942 (current_interp_command_loop): Delete.
5943 (interp_pre_command_loop): New function.
5944 (interp_command_loop_ftype): Delete.
5945 * interps.h (interp_pre_command_loop_ftype): New typedef.
5946 (struct interp_procs) <command_loop_proc>: Delele field.
5947 <pre_command_loop_proc>: New field.
5948 (current_interp_command_loop): Delete declaration.
5949 (interp_pre_command_loop): New declaration.
5950 * main.c (captured_command_loop): Call interp_pre_command_loop
5951 instead of current_interp_command_loop and start an event loop.
5952 * mi/mi-interp.c (mi_command_loop): Delete.
5953 (mi_interpreter_pre_command_loop): New.
5954 (mi_interp_procs): Update.
5955 * tui/tui-interp.c (tui_interp_procs): Install
5956 cli_interpreter_pre_command_loop instead of cli_command_loop.
5957
9204d692
PA
59582016-06-21 Pedro Alves <palves@redhat.com>
5959
5960 * interps.c (current_interpreter): New function.
5961 * interps.h (current_interpreter): New declaration.
5962 * mi/mi-cmds.h (raw_stdout): Delete declaration.
5963 * mi/mi-common.h (struct mi_interp) <raw_stdout,
5964 saved_raw_stdout>: New field.
5965 * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
5966 to per-UI raw_stdout.
5967 (mi_interpreter_init): Adjust to per-UI raw_stdout.
5968 (mi_on_sync_execution_done, mi_execute_command_input_handler)
5969 (mi_command_loop): Pass MI instance to display_mi_prompt.
5970 (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
5971 (mi_on_resume): Adjust to per-UI raw_stdout.
5972 (saved_raw_stdout): Delete.
5973 (mi_set_logging): Adjust to per-UI raw_stdout and
5974 saved_raw_stdout.
5975 * mi/mi-main.c (raw_stdout): Delete.
5976 (mi_cmd_gdb_exit, captured_mi_execute_command)
5977 (mi_print_exception, mi_load_progress): Adjust to per-UI
5978 raw_stdout.
5979 (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
5980 Pass it along.
5981 (print_diff): New ui_file parameter. Send output there instead of
5982 raw_stdout.
5983 * mi/mi-main.h (struct ui_file): Forward declare.
5984 (mi_print_timing_maybe): Add ui_file parameter.
5985
05beb275
PA
59862016-06-21 Pedro Alves <palves@redhat.com>
5987
5988 * mi/mi-interp.c (display_mi_prompt): New function.
5989
215d3118
PA
59902016-06-21 Pedro Alves <palves@redhat.com>
5991
5992 * target.c (target_terminal_inferior): Bail out after
5993 unregistering input_fd if not on the main UI.
5994 (target_terminal_ours): Bail out after registering input_fd if not
5995 on the main UI.
5996 (target_terminal_ours_for_output): Bail out if not on the main UI.
5997
c61db772
PA
59982016-06-21 Pedro Alves <palves@redhat.com>
5999
6000 * event-top.c (restore_ui_cleanup): Make extern.
6001 * infrun.c (fetch_inferior_event): Always switch to the main UI.
6002 * top.h (restore_ui_cleanup): Declare.
6003
3c216924
PA
60042016-06-21 Pedro Alves <palves@redhat.com>
6005
6006 PR mi/20034
6007 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
6008 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
6009 UI's input_handler here.
6010 (cli_interpreter_supports_command_editing): New function.
6011 (cli_interp_procs): Install it.
6012 * cli/cli-interp.h: New file.
6013 * event-top.c (async_command_editing_p): Rename to ...
6014 (set_editing_cmd_var): ... this.
6015 (change_line_handler): Add parameter 'editing', and use it. Bail
6016 early if the interpreter doesn't support editing. Don't touch
6017 readline state if editing is off.
6018 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
6019 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
6020 main UI.
6021 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
6022 not using readline. Check whether the current UI is using command
6023 editing instead of checking the async_command_editing_p global.
6024 (set_async_editing_command): Delete.
6025 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
6026 on the main UI. Don't touch readline state if editing is off.
6027 (gdb_disable_readline): Don't touch readline state if editing is
6028 off.
6029 * event-top.h (gdb_setup_readline): Add 'int' parameter.
6030 (set_async_editing_command): Delete declaration.
6031 (change_line_handler, command_line_handler): Declare.
6032 (async_command_editing_p): Rename to ...
6033 (set_editing_cmd_var): ... this.
6034 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
6035 whether the current UI has editing enabled rather than checking
6036 the async_command_editing_p global.
6037 * interps.c (interp_supports_command_editing): New function.
6038 * interps.h (interp_supports_command_editing_ftype): New typedef.
6039 (struct interp_procs) <supports_command_editing_proc>: New field.
6040 (interp_supports_command_editing): Declare.
6041 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
6042 gdb_setup_readline. Don't clear the async_command_editing_p
6043 global. Update comments.
6044 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
6045 whether the current UI has editing enabled rather than checking
6046 the async_command_editing_p global. Don't touch readline state if
6047 editing is off.
6048 (undo_terminal_modifications_before_exit): Switch to the main UI.
6049 Unconditionally call gdb_disable_readline.
6050 (set_editing): New function.
6051 (show_async_command_editing_p): Rename to ...
6052 (show_editing): ... this. Show the state of the current UI.
6053 (_initialize_top): Adjust.
6054 * top.h (struct ui) <command_editing>: New field.
6055 * tui/tui-interp.c: Include cli/cli-interp.h.
6056 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
6057 input_handler.
6058 (tui_interp_procs): Install
6059 cli_interpreter_supports_command_editing.
6060 * tui/tui-io.c (tui_getc): Check whether the current UI has
6061 editing enabled rather than checking the async_command_editing_p
6062 global.
6063
b6dcde57
PA
60642016-06-21 Pedro Alves <palves@redhat.com>
6065
6066 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
6067 * top.h (struct ui) <m_current_uiout>: New field.
6068 * ui-out.c (current_uiout): Delete.
6069 * ui-out.h (current_uiout): Delete.
6070 (current_ui_current_uiout_ptr): New declaration.
6071 (current_uiout): Reimplement as wrapper around
6072 current_ui_current_uiout_ptr.
6073
23ff98d2
PA
60742016-06-21 Pedro Alves <palves@redhat.com>
6075
6076 * ui-out.c (default_ui_out_impl): Delete.
6077 (def_uiout): Delete.
6078 (current_uiout): Set to NULL.
6079 (default_table_begin, default_table_body, default_table_end)
6080 (default_table_header, default_begin, default_end)
6081 (default_field_int, default_field_skip, default_field_string)
6082 (default_field_fmt, default_spaces, default_text, default_message)
6083 (default_wrap_hint, default_flush, default_data_destroy): Delete.
6084
694ec099
PA
60852016-06-21 Pedro Alves <palves@redhat.com>
6086
6087 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
6088 errstream to stdout_fileopen and stderr_fileopen.
6089 * exceptions.c: Include top.h.
6090 (print_flush): Open the current UI's outstream file descriptor,
6091 instead of hardcoding file descriptor 1.
6092 * main.c (captured_main): Save the main UI's out and error
6093 streams. Adjust stderr_fileopen call.
6094 * top.h (struct ui) <outstream, errstream>: New fields.
6095 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
6096 instead of stderr.
6097 * ui-file.h (stderr_fileopen): Add stream parameter and update
6098 comment.
6099
41fd2b0f
PA
61002016-06-21 Pedro Alves <palves@redhat.com>
6101
6102 * event-top.c (input_fd): Delete.
6103 (stdin_event_handler): Switch to the UI whose input descriptor got
6104 the event. Adjust to per-UI input_fd.
6105 (gdb_setup_readline): Don't set the input_fd global. Adjust to
6106 per-UI input_fd.
6107 (gdb_disable_readline): Adjust to per-UI input_fd.
6108 * event-top.h (input_fd): Delete declaration.
6109 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
6110 from the event-loop here.
6111 (linux_nat_terminal_ours): Don't register input_fd in the
6112 event-loop here.
6113 * main.c (captured_main): Adjust to per-UI input_fd.
6114 * remote.c (remote_terminal_inferior): Don't remove input_fd from
6115 the event-loop here.
6116 (remote_terminal_ours): Don't register input_fd in the event-loop
6117 here.
6118 * target.c: Include top.h and event-top.h.
6119 (target_terminal_inferior): Remove input_fd from the event-loop
6120 here.
6121 (target_terminal_ours): Register input_fd in the event-loop.
6122 * top.h (struct ui) <input_fd>: New field.
6123
f38d3ad1
PA
61242016-06-21 Pedro Alves <palves@redhat.com>
6125
6126 * cli/cli-script.c (execute_user_command, read_next_line)
6127 (read_next_line): Adjust to per-UI instream.
6128 * event-top.c (stdin_event_handler, command_handler)
6129 (handle_line_of_input, command_line_handler)
6130 (gdb_readline_no_editing_callback, async_sigterm_handler)
6131 (gdb_setup_readline): Likewise.
6132 * inflow.c: Include top.h.
6133 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
6134 (gdb_save_tty_state, child_terminal_inferior)
6135 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
6136 (initialize_stdin_serial): Adjust to per-UI instream.
6137 * main.c (captured_command_loop, captured_main): Adjust to per-UI
6138 instream.
6139 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
6140 * python/python.c (python_interactive_command): Likewise.
6141 * terminal.h (struct ui): Forward declare.
6142 (initialize_stdin_serial): Add struct ui parameter.
6143 * top.c (instream): Delete.
6144 (do_restore_instream_cleanup, read_command_file, dont_repeat)
6145 (gdb_readline_no_editing, command_line_input)
6146 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
6147 * top.h (struct ui) <instream>: New field.
6148 (instream): Delete declaration.
6149 (quit): Adjust to per-UI instream.
6150
61512016-06-21 Pedro Alves <palves@redhat.com>
6152
6153 * event-loop.c: Include top.h.
6154 (invoke_async_signal_handlers): Switch to the main UI.
6155 * event-top.c (main_ui_): Update comment.
6156 (main_ui): New global.
6157 * top.h (main_ui): Declare.
6158
73ab01a0
PA
61592016-06-21 Pedro Alves <palves@redhat.com>
6160
6161 * cli/cli-interp.c (cli_interp): Delete.
6162 (as_cli_interp): New function.
6163 (cli_on_normal_stop, cli_on_signal_received)
6164 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
6165 (cli_on_no_history): Send output to all CLI UIs.
6166 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
6167 the top level interpreter is not a CLI.
6168 (cli_interpreter_init): Don't set cli_interp or install observers
6169 here.
6170 (_initialize_cli_interp): Install observers here.
6171 * event-top.c (main_ui_, ui_list): New globals.
6172 (current_ui): Point to main_ui_.
6173 (restore_ui_cleanup, switch_thru_all_uis_init)
6174 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
6175 functions.
6176 * mi/mi-interp.c (as_mi_interp): New function.
6177 (mi_interpreter_init): Don't install observers here.
6178 (mi_on_sync_execution_done): Skip output if the top level
6179 interpreter is not a MI.
6180 (mi_new_thread, mi_thread_exit, mi_record_changed)
6181 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
6182 (mi_inferior_removed): Send output to all MI UIs.
6183 (find_mi_interpreter, mi_interp_data): Delete.
6184 (find_mi_interp): New function.
6185 (mi_on_signal_received, mi_on_end_stepping_range)
6186 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
6187 to all MI UIs.
6188 (mi_on_normal_stop): Rename to ...
6189 (mi_on_normal_stop_1): ... this.
6190 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
6191 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
6192 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
6193 (mi_breakpoint_modified, mi_output_running_pid): Send output to
6194 all MI UIs.
6195 (mi_on_resume): Rename to ...
6196 (mi_on_resume_1): ... this. Don't handle infcalls here.
6197 (mi_on_resume): Reimplement, sending output to all MI UIs.
6198 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
6199 (mi_memory_changed): Send output to all MI UIs.
6200 (report_initial_inferior): Install observers here.
6201 * top.h (struct ui) <next>: New field.
6202 (ui_list): Declare.
6203 (struct switch_thru_all_uis): New.
6204 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
6205 (switch_thru_all_uis_next): Declare.
6206 (SWITCH_THRU_ALL_UIS): New macro.
6207 * tui/tui-interp.c (tui_interp): Delete global.
6208 (as_tui_interp): New function.
6209 (tui_on_normal_stop, tui_on_signal_received)
6210 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
6211 (tui_on_no_history): Send output to all TUI UIs.
6212 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
6213 the top level interpreter is not a TUI.
6214 (tui_init): Don't set tui_interp or install observers here.
6215 (_initialize_tui_interp): Install observers here.
6216
8322445e
PA
62172016-06-21 Pedro Alves <palves@redhat.com>
6218
6219 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
6220 (struct cli_interp): ... this new structure.
6221 (cli_on_normal_stop, cli_on_signal_received)
6222 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
6223 (cli_on_no_history): Use interp_ui_out.
6224 (cli_interpreter_init): If top level, set the cli_interp global.
6225 (cli_interpreter_init): Return the interp's data instead of NULL.
6226 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
6227 to cli_uiout being in the interpreter's data.
6228 (cli_interp_procs): New, factored out from _initialize_cli_interp.
6229 (cli_interp_factory): New function.
6230 (_initialize_cli_interp): Call interp_factory_register.
6231 * interps.c (get_interp_info): New, factored out from ...
6232 (get_current_interp_info): ... this.
6233 (interp_new): Add parameter 'data'. Store it.
6234 (struct interp_factory): New function.
6235 (interp_factory_p): New typedef. Define a VEC_P.
6236 (interpreter_factories): New global.
6237 (interp_factory_register): New function.
6238 (interp_add): Add 'ui' parameter. Use get_interp_info and
6239 interp_lookup_existing.
6240 (interp_lookup): Rename to ...
6241 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
6242 check for NULL or empty name here.
6243 (interp_lookup): Add 'ui' parameter and reimplement.
6244 (interp_set_temp, interpreter_exec_cmd): Adjust.
6245 (interpreter_completer): Complete on registered interpreter
6246 factories instead of interpreters.
6247 * interps.h (interp_factory_func): New typedef.
6248 (interp_factory_register): Declare.
6249 (interp_new, interp_add): Adjust.
6250 (interp_lookup): Declare.
6251 * main.c (captured_main): Adjust.
6252 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
6253 (mi_interp_procs): New, factored out from
6254 _initialize_mi_interp.
6255 (mi_interp_factory): New function.
6256 * python/python.c (execute_gdb_command): Adjust.
6257 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
6258 global.
6259 (tui_interp_procs): New.
6260 (tui_interp_factory): New function.
6261 (_initialize_tui_interp): Call interp_factory_register.
6262
cb814510
PA
62632016-06-21 Pedro Alves <palves@redhat.com>
6264
6265 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
6266 async field instead of the interpreter_async global.
6267 * cli/cli-script.c (execute_user_command, while_command)
6268 (if_command, script_from_file): Likewise.
6269 * compile/compile.c: Include top.h instead of interps.h.
6270 (compile_file_command, compile_code_command)
6271 (compile_print_command): Access the current UI's async field
6272 instead of the interpreter_async global.
6273 * guile/guile.c: Include top.h instead of interps.h.
6274 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
6275 Access the current UI's async field instead of the
6276 interpreter_async global.
6277 * guile/scm-ports.c: Include top.h instead of interps.h.
6278 (ioscm_with_output_to_port_worker): Access the current UI's async
6279 field instead of the interpreter_async global.
6280 * inf-loop.c (inferior_event_handler): Likewise.
6281 * infcall.c (run_inferior_call): Likewise.
6282 * infrun.c (reinstall_readline_callback_handler_cleanup)
6283 (fetch_inferior_event): Likewise.
6284 * interps.c (interpreter_async): Delete.
6285 (struct ui_interp_info): New.
6286 (get_current_interp_info): New function.
6287 (interp_list, current_interpreter, top_level_interpreter_ptr):
6288 Delete.
6289 (interp_add, interp_set, interp_lookup, interp_ui_out)
6290 (current_interp_set_logging, interp_set_temp)
6291 (current_interp_named_p): Adjust to per-UI interpreters.
6292 (command_interpreter): Delete.
6293 (command_interp, current_interp_command_loop, interp_quiet_p)
6294 (interp_exec, interpreter_exec_cmd, interpreter_completer)
6295 (top_level_interpreter, top_level_interpreter_data): Adjust to
6296 per-UI interpreters.
6297 * interps.h (interpreter_async): Delete.
6298 * main.c (captured_command_loop): Access the current UI's async
6299 field instead of the interpreter_async global.
6300 * python/python.c (python_interactive_command, python_command)
6301 (execute_gdb_command): Likewise.
6302 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
6303 Access the current UI's async field instead of the
6304 interpreter_async global.
6305 * top.h (struct tl_interp_info): Forward declare.
6306 (struct ui) <interp_info, async>: New fields.
6307
79aa2fe8
PA
63082016-06-21 Pedro Alves <palves@redhat.com>
6309
6310 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
6311 globals.
6312 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
6313 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
6314 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
6315 m_gdb_stdlog>: New fields.
6316 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
6317 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
6318 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
6319 macros.
6320
a74e1786
PA
63212016-06-21 Pedro Alves <palves@redhat.com>
6322
6323 * event-top.c: Update readline-related comments.
6324 (input_handler, call_readline): Delete globals.
6325 (gdb_rl_callback_handler): Call the current UI's input_handler
6326 method.
6327 (change_line_handler): Adjust to set current UI's properties
6328 instead of globals.
6329 (current_ui_, current_ui): New globals.
6330 (get_command_line_buffer): Rewrite to refer to the current UI.
6331 (stdin_event_handler): Adjust to call the call_readline method of
6332 the current UI.
6333 (gdb_readline_no_editing_callback): Adjust to call the current UI's
6334 input_handler method.
6335 (gdb_setup_readline): Adjust to set current UI's properties
6336 instead of globals.
6337 * event-top.h (call_readline, input_handler): Delete declarations.
6338 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
6339 UI's properties instead of globals.
6340 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
6341 properties instead of globals.
6342 (gdb_readline_wrapper): Adjust to call and set current UI's
6343 methods instead of globals.
6344 * top.h: Include buffer.h and event-loop.h.
6345 (struct ui): New struct.
6346 (current_ui): New declaration.
6347
45db7c09
PA
63482016-06-21 Pedro Alves <palves@redhat.com>
6349
6350 * ada-lang.c (ada_exception_name_addr_1): Add comment.
6351 (print_it_exception): Select the current frame.
6352
a28d8e50
YTL
63532016-06-17 Yan-Ting Lin <currygt52@gmail.com>
6354
6355 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
6356 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
6357 (ALLDEPFILES): Add nds32-tdep.c.
6358 * NEWS: Mention new NDS32 port.
6359 * configure.tgt: Add NDS32.
6360 * nds32-tdep.c: New file.
6361 * nds32-tdep.h: New file.
6362 * features/Makefile (XMLTOC): Add nds32.xml.
6363 * features/nds32-core.xml: New file.
6364 * features/nds32-fpu.xml: New file.
6365 * features/nds32-system.xml: New file.
6366 * features/nds32.c: New file (generated).
6367 * features/nds32.xml: New file.
6368
4bf5402d
JB
63692016-06-14 John Baldwin <jhb@FreeBSD.org>
6370
6371 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
6372
683cd65e
JB
63732016-06-14 John Baldwin <jhb@FreeBSD.org>
6374
6375 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
6376
bec734b2
JB
63772016-06-14 John Baldwin <jhb@FreeBSD.org>
6378
6379 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
6380
e46dd0f4
NC
63812016-06-13 Nick Clifton <nickc@redhat.com>
6382
6383 * gdbtypes.c (replace_type): Fix assertion.
6384
695bfa52
TT
63852016-06-10 Tom Tromey <tom@tromey.com>
6386
6387 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
6388 (arch_boolean_type, arch_float_type, arch_complex_type)
6389 (arch_flags_type, append_flags_type_field)
6390 (append_flags_type_flag, arch_composite_type)
6391 (append_composite_type_field_raw)
6392 (append_composite_type_field_aligned)
6393 (append_composite_type_field): Make "name" parameter const.
6394 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
6395 (arch_boolean_type, arch_float_type, arch_complex_type)
6396 (append_composite_type_field, append_composite_type_field_aligned)
6397 (append_composite_type_field_raw, arch_flags_type)
6398 (append_flags_type_field, append_flags_type_flag): Constify.
6399
347dc102
TT
64002016-06-10 Tom Tromey <tom@tromey.com>
6401
6402 PR rust/20110:
6403 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
6404
edef7b8c
TT
64052016-06-10 Tom Tromey <tom@tromey.com>
6406
6407 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
6408 (YYFILES): Add rust-exp.c.
6409 (YYOBJ): Add rust-exp.o.
6410 (local-maintainer-clean): Remove rust-exp.c.
6411
bb556f1f
TK
64122016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
6413
6414 * NEWS: Mention that GDB now supports a negative repeat count in
6415 the 'x' command.
6416 * printcmd.c (decode_format): Allow '-' in the parameter
6417 "string_ptr" to accept a negative repeat count.
6418 (find_instruction_backward): New function.
6419 (read_memory_backward): New function.
6420 (integer_is_zero): New function.
6421 (find_string_backward): New function.
6422 (do_examine): Use new functions to examine memory backward.
6423 (_initialize_printcmd): Mention that 'x' command supports a negative
6424 repeat count.
6425
c040f3fb
TK
64262016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
6427
6428 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
6429
4dee3531
TT
64302016-06-09 Tom Tromey <tom@tromey.com>
6431
6432 PR python/19819:
6433 * python/py-xmethods.c (invoke_method_name)
6434 (py_get_result_type_method_name, py_invoke_method_name): Remove.
6435 (gdbpy_initialize_xmethods): Don't initialize
6436 py_invoke_method_name, py_get_result_type_method_name.
6437
1aec0b6a
SM
64382016-06-07 Simon Marchi <simon.marchi@ericsson.com>
6439
6440 * mi/mi-interp.c (mi_record_changed): Add missing braces.
6441
2091da29
BH
64422016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
6443
6444 * findvar.c (follow_static_link): Check for valid pointer.
6445
38b022b4
SM
64462016-06-06 Simon Marchi <simon.marchi@ericsson.com>
6447
6448 * NEWS: Mention the new fields in =record-started.
6449 * common/btrace-common.h (btrace_format_short_string): New function
6450 declaration.
6451 * common/btrace-common.c (btrace_format_short_string): New
6452 function.
6453 * mi/mi-interp.c (mi_record_changed): Output method and format
6454 fields in the =record-started record.
6455 * record-btrace.c (record_btrace_open): Adapt record_changed
6456 notification.
6457 * record-full.c (record_full_open): Likewise.
6458 * record.c (cmd_record_stop): Likewise.
6459
0ae534d2
JT
64602016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
6461
6462 * windows-nat.c (handle_output_debug_string): Return type of
6463 gdb_signal_from_host() is gdb_signal, not an int.
6464 (windows_get_exec_module_filename): Add pointer casts for C++.
6465
1b40ec05
TT
64662016-06-02 Tom Tromey <tom@tromey.com>
6467
6468 PR python/18984:
6469 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
6470
bb7c96de
PA
64712016-06-01 Pedro Alves <palves@redhat.com>
6472
6473 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
6474 (remote_fio_osa)
6475 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
6476 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
6477 Delete.
6478 (remote_fileio_o_quit_handler): New global.
6479 (remote_fileio_quit_handler): New function.
6480 (remote_fileio_reply): Check the quit flag instead of the custom
6481 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
6482 of changing the SIGINT handler.
6483 (do_remote_fileio_request): Override the quit handler instead of
6484 changing the SIGINT handler.
6485
51403f74
NC
64862016-06-01 Nick Clifton <nickc@redhat.com>
6487
6488 * common/common-utils.c (xmalloc_failed): New function. Provided
6489 so that the version in libiberty is not linked in.
6490
e3b5daf9
MM
64912016-06-01 Markus Metzger <markus.t.metzger@intel.com>
6492
6493 * infcmd.c (skip_finish_frames): New.
6494 (finish_command): Call skip_finish_frames.
6495
03d73f1f
YQ
64962016-06-01 Yao Qi <yao.qi@linaro.org>
6497
6498 PR remote/19998
6499 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
6500 quit_serial_event_set.
6501
c799dec7
JB
65022016-06-01 Joel Brobecker <brobecker@adacore.com>
6503
6504 GDB 7.11.1 released.
6505
3326303b
MG
65062016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
6507
6508 PR c++/19893
6509 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
6510 fetch_const_value_from_synthetic_pointer): New functions.
6511 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
6512 (pieced_value_funcs): Implement coerce_ref.
6513 * valops.c (value_addr): Call coerce_ref for synthetic references.
6514 * valprint.c (valprint_check_validity): Return true for synthetic
6515 references. Also, don't show "<synthetic pointer>" if they reference
6516 addressable values.
6517 (generic_val_print_ref): Handle synthetic references. Also move some
6518 code to print_ref_address.
6519 (print_ref_address, get_value_addr_contents): New functions.
6520
e385593e
JK
65212016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6522
6523 PR c++/15231
6524 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
6525 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
6526 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
6527 (read_call_site_scope): Adjust callers.
6528 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
6529 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
6530
3a2b436a
JK
65312016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6532
6533 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
6534 * dwarf2read.c (enum pc_bounds_kind) New.
6535 (dwarf2_get_pc_bounds): Use it in the declaration.
6536 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
6537 to cu_bounds_kind.
6538 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
6539 Adjust callers.
6540 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
6541 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
6542
aab3c527
JK
65432016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6544
6545 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
6546 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
6547 deleted.
6548
c64e0f61
JK
65492016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6550
6551 * NEWS (N stop reply): Remove empty line.
6552
1a72702b
AM
65532016-05-28 Alan Modra <amodra@gmail.com>
6554
6555 * compile/compile-object-load.c (link_callbacks_multiple_definition,
6556 link_callbacks_warning, link_callbacks_undefined_symbol,
6557 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
6558 link_callbacks_reloc_dangerous,
6559 link_callbacks_unattached_reloc): Return void.
6560
51415b9f
AB
65612016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
6562
6563 * opencl-lang.c (evaluate_subexp_opencl): If
6564 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
6565 the returned value in the STRUCTOP_STRUCT case.
6566
ac775bf4
AB
65672016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
6568
6569 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
6570 mode, forward the VALUE_LVAL attribute to the returned value in
6571 the STRUCTOP_PTR case.
6572
7bd787e8
TT
65732016-05-25 Tom Tromey <tom@tromey.com>
6574
6575 * python/py-value.c (value_object_as_number): Use correct spelling
6576 of HAVE_LIBPYTHON2_4.
6577
2bbad2ea
BH
65782016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
6579
6580 * f-typeprint.c (f_type_print_base): Replace 0 by show.
6581
e188eb36
BH
65822016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
6583
6584 * f-typeprint.c (f_type_print_base): Decrease show by one.
6585
9b2db1fd
BH
65862016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
6587
6588 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
6589
72b17055
BH
65902016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
6591
6592 * f-typeprint.c (f_type_print_base): Take print level into account.
6593
ddae9462
TT
65942016-05-24 Tom Tromey <tom@tromey.com>
6595
6596 PR python/17386:
6597 * python/py-value.c (value_object_as_number): Add
6598 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
6599
e2b7f516
TT
66002016-05-24 Tom Tromey <tom@tromey.com>
6601
6602 * python/py-value.c (value_object_as_number): Add
6603 nb_inplace_divide for Python 2.
6604
1957f6b8
TT
66052016-05-23 Tom Tromey <tom@tromey.com>
6606
6607 PR python/17981:
6608 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
6609 when there are no breakpoints.
6610
026a9174
PA
66112016-05-24 Pedro Alves <palves@redhat.com>
6612
6613 PR gdb/19828
6614 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
6615 resumed, and add the thread to GDB's thread list.
6616
72b049d3
PA
66172016-05-24 Pedro Alves <palves@redhat.com>
6618
6619 PR gdb/19828
6620 * linux-nat.c (get_pending_status): If the thread reported the
6621 event to the core and it's pending, use the pending status signal
6622 number.
6623
774113b0
PA
66242016-05-24 Pedro Alves <palves@redhat.com>
6625
6626 PR gdb/19828
6627 * linux-nat.c (lwp_lwpid_htab): New htab.
6628 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
6629 (lwp_lwpid_htab_add_lwp): New functions.
6630 (lwp_list): Tweak comment.
6631 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
6632 functions.
6633 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
6634 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
6635 (delete_lwp): Use lwp_list_remove. Remove htab too.
6636 (find_lwp_pid): Search in htab.
6637 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
6638 * linux-nat.h (struct lwp_info) <prev>: New field.
6639
66402016-05-24 Pedro Alves <palves@redhat.com>
6641
6642 PR gdb/19828
6643 * linux-nat.c (lwp_lwpid_htab): New htab.
6644 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
6645 (lwp_lwpid_htab_add_lwp): New functions.
6646 (lwp_list): Tweak comment.
6647 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
6648 functions.
6649 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
6650 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
6651 (delete_lwp): Use lwp_list_remove. Remove htab too.
6652 (find_lwp_pid): Search in htab.
6653 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
6654 * linux-nat.h (struct lwp_info) <prev>: New field.
6655
1ad3de98
PA
66562016-05-24 Pedro Alves <palves@redhat.com>
6657
6658 PR gdb/19828
6659 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
6660 field.
6661 (linux_nat_update_thread_list): Don't fetch the core if already
6662 known.
6663
95e94c3f
PA
66642016-05-24 Pedro Alves <palves@redhat.com>
6665
6666 PR gdb/19828
6667 * linux-tdep.c (find_mapping_size): Delete.
6668 (linux_vsyscall_range_raw): Rewrite reading from
6669 /proc/PID/task/PID/maps directly instead of using
6670 gdbarch_find_memory_regions.
6671
aa01bd36
PA
66722016-05-24 Pedro Alves <palves@redhat.com>
6673
6674 PR gdb/19828
6675 * linux-nat.c (report_thread_events): New global.
6676 (linux_handle_extended_wait): Report
6677 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
6678 enabled.
6679 (wait_lwp, linux_nat_filter_event): Report all thread exits if
6680 thread event reporting is enabled. Remove comment.
6681 (filter_exit_event): New function.
6682 (linux_nat_wait_1): Use it.
6683 (linux_nat_thread_events): New function.
6684 (linux_nat_add_target): Install it as target_thread_events method.
6685
00a3cb9c
YTL
66862016-05-24 Yan-Ting Lin <currygt52@gmail.com>
6687
6688 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
6689
7eb89530
YQ
66902016-05-23 Yao Qi <yao.qi@arm.com>
6691
6692 * arch-utils.c (default_code_of_frame_writable): New function.
6693 * arch-utils.h (default_code_of_frame_writable): Declare.
6694 * arm-tdep.c (arm_code_of_frame_writable): New function.
6695 (arm_gdbarch_init): Install gdbarch method
6696 code_of_frame_writable if the target is M-profile.
6697 * frame.c (skip_unwritable_frames): New function.
6698 * frame.h (skip_unwritable_frames): Declare.
6699 * gdbarch.sh (code_of_frame_writable): New.
6700 * gdbarch.c, gdbarch.h: Re-generated.
6701 * infcmd.c (finish_command): Call skip_unwritable_frames.
6702
0f6ed0e0
TT
67032016-05-23 Tom Tromey <tom@tromey.com>
6704
6705 PR python/19438, PR python/18393:
6706 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
6707 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
6708
d0571b99
GB
67092016-05-23 Gary Benson <gbenson@redhat.com>
6710
6711 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
6712 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
6713 Remove field.
6714 (try_thread_db_load_1): Remove td_thr_validate initialization.
6715
37773e78
JB
67162016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
6717
6718 * configure.ac: Search for libutil-freebsd as alternative to libutil.
6719 * configure: Re-generated.
6720
bfb0d950
AS
67212016-05-19 Andreas Schwab <schwab@suse.de>
6722
6723 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
6724 (libunwind_frame_set_descr): Likewise.
6725 (libunwind_frame_cache): Likewise.
6726 (libunwind_frame_dealloc_cache): Likewise.
6727 (libunwind_frame_sniffer): Likewise.
6728 (libunwind_search_unwind_table): Likewise.
6729 (libunwind_sigtramp_frame_sniffer): Likewise.
6730 (libunwind_get_reg_special): Likewise.
6731 (libunwind_load): Likewise.
6732 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
6733 (ia64_linux_store_register): Likewise.
6734 (ia64_linux_xfer_partial): Likewise.
6735 * ia64-tdep.c (ia64_access_reg): Likewise.
6736 (ia64_access_fpreg): Likewise.
6737 (ia64_access_rse_reg): Likewise.
6738 (ia64_access_rse_fpreg): Likewise.
6739
45f4ed92
TT
67402016-05-18 Tom Tromey <tom@tromey.com>
6741
6742 * rust-lang.c (rust_subscript): Initialize "high".
6743
28addb40
SM
67442016-05-17 Simon Marchi <simon.marchi@ericsson.com>
6745
6746 PR gdb/20045
6747 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
6748 of target_is_async_p.
6749
61c6156d
SM
67502016-05-17 Simon Marchi <simon.marchi@ericsson.com>
6751
6752 PR gdb/18077
6753 * mi/mi-main.c (run_one_inferior): Use run target to determine
6754 whether to run async or not.
6755 (mi_cmd_exec_run): Likewise.
6756
01739a3b
TT
67572016-05-17 Tom Tromey <tom@tromey.com>
6758
6759 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
6760 * rust-lang.c: Don't include f-lang.h.
6761 (rust_range, rust_compute_range, rust_subscript)
6762 (rust_evaluate_subexp): Update.
6763 * rust-exp.y: Don't include f-lang.h.
6764 (ast_range, convert_ast_to_expression): Update.
6765 * parse.c (operator_length_standard): Update.
6766 * f-lang.h (enum f90_range_type): Move to expression.h.
6767 * f-exp.y: Use OP_RANGE.
6768 * expression.h (enum range_type): New enum; renamed from
6769 f90_range_type.
6770 * expprint.c: Don't include f-lang.h.
6771 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
6772 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
6773
0bdfa368
TT
67742016-05-17 Tom Tromey <tom@tromey.com>
6775
6776 * NEWS: Add Rust item.
6777
c44af4eb
TT
67782016-05-17 Tom Tromey <tom@tromey.com>
6779 Manish Goregaokar <manishsmail@gmail.com>
6780
6781 * symtab.c (symbol_find_demangled_name): Handle Rust.
6782 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
6783 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
6784 constants.
6785 * rust-lang.h: New file.
6786 * rust-lang.c: New file.
6787 * rust-exp.y: New file.
6788 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
6789 (dwarf2_compute_name, read_func_scope, read_structure_type)
6790 (read_base_type, read_subrange_type, set_cu_language)
6791 (new_symbol_full, determine_prefix): Handle Rust.
6792 * defs.h (enum language) <language_rust>: New constant.
6793 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
6794 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
6795
00272ec4
TT
67962016-05-17 Tom Tromey <tom@tromey.com>
6797
6798 * valprint.h (struct generic_val_print_array) <array_start,
6799 array_end>: New fields.
6800 * valprint.c (generic_val_print_array): Add "decorations"
6801 parameter. Use "array_start", "array_end".
6802 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
6803 * p-valprint.c (p_decorations): Update.
6804 * m2-valprint.c (m2_decorations): Update.
6805 * f-valprint.c (f_decorations): Update.
6806 * c-valprint.c (c_decorations): Update.
6807
dcd1f979
TT
68082016-05-17 Tom Tromey <tom@tromey.com>
6809
6810 * NEWS: Add "maint selftest" entry.
6811 * selftest.h: New file.
6812 * selftest.c: New file.
6813 * maint.c: Include selftest.h.
6814 (maintenance_selftest): New function.
6815 (_initialize_maint_cmds): Add "maint selftest" command.
6816 * configure.ac (GDB_SELF_TEST): Maybe define.
6817 * config.in, configure: Rebuild.
6818 * Makefile.in (SFILES): Add selftest.c.
6819 (COMMON_OBS): Add selftest.o.
6820
e4b8a1c8
TT
68212016-05-17 Tom Tromey <tom@tromey.com>
6822
6823 * expprint.c: Include f-lang.h.
6824 (print_subexp_standard, dump_subexp_body_standard): Handle
6825 OP_F90_RANGE.
6826
9ab0bb2a
TT
68272016-05-17 Tom Tromey <tom@tromey.com>
6828
6829 * Makefile.in (init.c): Search .y files for initialization
6830 functions.
6831
8ddd5a6c
DE
68322016-05-12 Doug Evans <dje@google.com>
6833
6834 PR symtab/19999
6835 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
6836 add base_offset.
6837
df140a0b
TS
68382016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
6839
6840 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
6841 anything.
6842 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
6843
39d911fc
TP
68442016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
6845
6846 * arm-tdep.c (arm_elf_make_msymbol_special): Use
6847 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
6848
870f88f7
TS
68492016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
6850
6851 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
6852 variables.
6853 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
6854 (aarch64_scan_prologue): Likewise.
6855 (aarch64_prologue_prev_register): Likewise.
6856 (aarch64_dwarf2_prev_register): Likewise.
6857 (pass_in_v): Likewise.
6858 (aarch64_push_dummy_call): Likewise.
6859 (aarch64_breakpoint_from_pc): Likewise.
6860 (aarch64_return_in_memory): Likewise.
6861 (aarch64_return_value): Likewise.
6862 (aarch64_displaced_step_b_cond): Likewise.
6863 (aarch64_displaced_step_cb): Likewise.
6864 (aarch64_displaced_step_tb): Likewise.
6865 (aarch64_gdbarch_init): Likewise.
6866 (aarch64_process_record): Likewise.
6867 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
6868 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
6869 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
6870 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
6871 * amd64-tdep.c (fixup_riprel): Likewise.
6872 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
6873 (amd64_windows_frame_decode_insns): Likewise.
6874 (amd64_windows_frame_cache): Likewise.
6875 (amd64_windows_frame_prev_register): Likewise.
6876 (amd64_windows_frame_this_id): Likewise.
6877 (amd64_windows_init_abi): Likewise.
6878 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
6879 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
6880 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
6881 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
6882 (arm_epilogue_frame_prev_register): Likewise.
6883 (arm_record_vdata_transfer_insn): Likewise.
6884 (arm_record_exreg_ld_st_insn): Likewise.
6885 * auto-load.c (execute_script_contents): Likewise.
6886 (print_scripts): Likewise.
6887 * avr-tdep.c (avr_frame_prev_register): Likewise.
6888 (avr_push_dummy_call): Likewise.
6889 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
6890 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6891 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
6892 * break-catch-throw.c (fetch_probe_arguments): Likewise.
6893 * breakpoint.c (breakpoint_xfer_memory): Likewise.
6894 (breakpoint_init_inferior): Likewise.
6895 (breakpoint_inserted_here_p): Likewise.
6896 (software_breakpoint_inserted_here_p): Likewise.
6897 (hardware_breakpoint_inserted_here_p): Likewise.
6898 (bpstat_what): Likewise.
6899 (break_range_command): Likewise.
6900 (save_breakpoints): Likewise.
6901 * coffread.c (coff_symfile_read): Likewise.
6902 * cris-tdep.c (cris_push_dummy_call): Likewise.
6903 (cris_scan_prologue): Likewise.
6904 (cris_register_size): Likewise.
6905 (_initialize_cris_tdep): Likewise.
6906 * d-exp.y: Likewise.
6907 * dbxread.c (dbx_read_symtab): Likewise.
6908 (process_one_symbol): Likewise.
6909 (coffstab_build_psymtabs): Likewise.
6910 (elfstab_build_psymtabs): Likewise.
6911 * dicos-tdep.c (dicos_init_abi): Likewise.
6912 * disasm.c (do_mixed_source_and_assembly): Likewise.
6913 (gdb_disassembly): Likewise.
6914 * dtrace-probe.c (dtrace_process_dof): Likewise.
6915 * dwarf2read.c (error_check_comp_unit_head): Likewise.
6916 (build_type_psymtabs_1): Likewise.
6917 (skip_one_die): Likewise.
6918 (process_imported_unit_die): Likewise.
6919 (dwarf2_physname): Likewise.
6920 (read_file_scope): Likewise.
6921 (setup_type_unit_groups): Likewise.
6922 (create_dwo_cu_reader): Likewise.
6923 (create_dwo_cu): Likewise.
6924 (create_dwo_unit_in_dwp_v1): Likewise.
6925 (create_dwo_unit_in_dwp_v2): Likewise.
6926 (lookup_dwo_unit_in_dwp): Likewise.
6927 (free_dwo_file): Likewise.
6928 (check_producer): Likewise.
6929 (dwarf2_add_typedef): Likewise.
6930 (dwarf2_add_member_fn): Likewise.
6931 (read_unsigned_leb128): Likewise.
6932 (read_signed_leb128): Likewise.
6933 (dwarf2_const_value): Likewise.
6934 (follow_die_sig_1): Likewise.
6935 (dwarf_decode_macro_bytes): Likewise.
6936 * extension.c (restore_active_ext_lang): Likewise.
6937 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
6938 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
6939 * gdbtypes.c (lookup_typename): Likewise.
6940 (resolve_dynamic_range): Likewise.
6941 (check_typedef): Likewise.
6942 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
6943 (h8300_gdbarch_init): Likewise.
6944 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
6945 (hppa_frame_this_id): Likewise.
6946 (_initialize_hppa_tdep): Likewise.
6947 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
6948 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
6949 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
6950 * i386-tdep.c (i386_bnd_type): Likewise.
6951 (i386_gdbarch_init): Likewise.
6952 (i386_mpx_bd_base): Likewise.
6953 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
6954 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
6955 * ia64-tdep.c (examine_prologue): Likewise.
6956 (ia64_frame_cache): Likewise.
6957 (ia64_push_dummy_call): Likewise.
6958 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
6959 (default_print_one_register_info): Likewise.
6960 * infrun.c (infrun_thread_ptid_changed): Likewise.
6961 (thread_still_needs_step_over): Likewise.
6962 (stop_all_threads): Likewise.
6963 (restart_threads): Likewise.
6964 (keep_going_stepped_thread): Likewise.
6965 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
6966 * language.c (language_init_primitive_type_symbols): Likewise.
6967 * linespec.c (add_sal_to_sals): Likewise.
6968 * linux-nat.c (status_callback): Likewise.
6969 (kill_unfollowed_fork_children): Likewise.
6970 (linux_nat_kill): Likewise.
6971 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
6972 * linux-thread-db.c (thread_db_notice_clone): Likewise.
6973 (record_thread): Likewise.
6974 * location.c (string_to_event_location_basic): Likewise.
6975 * m32c-tdep.c (m32c_prev_register): Likewise.
6976 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
6977 * m32r-tdep.c (decode_prologue): Likewise.
6978 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
6979 * machoread.c (macho_symtab_read): Likewise.
6980 (macho_symfile_read): Likewise.
6981 (macho_symfile_offsets): Likewise.
6982 * maint.c (set_per_command_cmd): Likewise.
6983 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
6984 (mi_cmd_stack_list_variables): Likewise.
6985 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
6986 (output_register): Likewise.
6987 (mi_cmd_execute): Likewise.
6988 (mi_cmd_trace_define_variable): Likewise.
6989 (print_variable_or_computed): Likewise.
6990 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
6991 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
6992 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
6993 * mt-tdep.c (mt_registers_info): Likewise.
6994 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
6995 (nios2_push_dummy_call): Likewise.
6996 (nios2_frame_unwind_cache): Likewise.
6997 (nios2_stub_frame_cache): Likewise.
6998 (nios2_stub_frame_sniffer): Likewise.
6999 (nios2_gdbarch_init): Likewise.
7000 * ppc-ravenscar-thread.c: Likewise.
7001 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
7002 * python/py-evts.c (add_new_registry): Likewise.
7003 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
7004 (bpfinishpy_detect_out_scope_cb): Likewise.
7005 * python/py-framefilter.c (py_print_value): Likewise.
7006 * python/py-inferior.c (infpy_write_memory): Likewise.
7007 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
7008 * python/py-infthread.c (thpy_get_ptid): Likewise.
7009 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
7010 (ltpy_get_all_source_lines): Likewise.
7011 (ltpy_is_valid): Likewise.
7012 (ltpy_iternext): Likewise.
7013 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
7014 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
7015 (unwind_infopy_str): Likewise.
7016 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
7017 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
7018 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
7019 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
7020 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
7021 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
7022 (s390_frame_prev_register): Likewise.
7023 (s390_dwarf2_frame_init_reg): Likewise.
7024 (s390_record_vr): Likewise.
7025 (s390_process_record): Likewise.
7026 * score-tdep.c (score_push_dummy_call): Likewise.
7027 (score3_analyze_prologue): Likewise.
7028 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
7029 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
7030 (sh64_push_dummy_call): Likewise.
7031 (sh64_extract_return_value): Likewise.
7032 (sh64_do_fp_register): Likewise.
7033 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
7034 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
7035 (darwin_solib_read_all_image_info_addr): Likewise.
7036 * solib-dsbt.c (enable_break): Likewise.
7037 * solib-frv.c (enable_break2): Likewise.
7038 (frv_fdpic_find_canonical_descriptor): Likewise.
7039 * solib-svr4.c (svr4_handle_solib_event): Likewise.
7040 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
7041 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
7042 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7043 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
7044 * stack.c (read_frame_local): Likewise.
7045 * symfile.c (symbol_file_add_separate): Likewise.
7046 (remove_symbol_file_command): Likewise.
7047 * symmisc.c (maintenance_print_one_line_table): Likewise.
7048 * symtab.c (symbol_cache_flush): Likewise.
7049 (basic_lookup_transparent_type): Likewise.
7050 (sort_search_symbols_remove_dups): Likewise.
7051 * target.c (target_memory_map): Likewise.
7052 (target_detach): Likewise.
7053 (target_resume): Likewise.
7054 (acquire_fileio_fd): Likewise.
7055 (target_store_registers): Likewise.
7056 * thread.c (print_thread_info_1): Likewise.
7057 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
7058 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
7059 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
7060 (tilegx_analyze_prologue): Likewise.
7061 (tilegx_stack_frame_destroyed_p): Likewise.
7062 (tilegx_frame_cache): Likewise.
7063 * tracefile.c (trace_save): Likewise.
7064 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
7065 (start_tracing): Likewise.
7066 (print_one_static_tracepoint_marker): Likewise.
7067 * tui/tui.c (tui_enable): Likewise.
7068 * valops.c (value_struct_elt_bitpos): Likewise.
7069 (find_overload_match): Likewise.
7070 (find_oload_champ): Likewise.
7071 * value.c (value_contents_copy_raw): Likewise.
7072 * windows-tdep.c (windows_get_tlb_type): Likewise.
7073 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
7074 * xcoffread.c (record_minimal_symbol): Likewise.
7075 (scan_xcoff_symtab): Likewise.
7076 * xtensa-tdep.c (execute_code): Likewise.
7077 (xtensa_gdbarch_init): Likewise.
7078 (_initialize_xtensa_tdep): Likewise.
7079
c1aebf87
UW
70802016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7081
7082 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
7083 (spu_bfd_open): Likewise.
7084
edf689f0
YQ
70852016-05-04 Yao Qi <yao.qi@linaro.org>
7086
7087 PR gdb/19947
7088 * corefile.c (read_memory): Rename it to ...
7089 (read_memory_object): ... it. Add parameter object.
7090 (read_memory): Call read_memory_object.
7091 (read_stack): Likewise.
7092 (read_code): Likewise.
7093
6c447423
DE
70942016-05-03 Yunlian Jiang <yunlian@google.com>
7095 Doug Evans <dje@google.com>
7096
7097 PR symtab/19914
7098 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
7099 is separate debug file.
7100
a1ec3d24
DB
71012016-05-03 Don Breazeal <donb@codesourcery.com>
7102
7103 * serial.h (gdb_pipe): Fix argument names in comment.
7104
86f1abec
PA
71052016-05-03 Pedro Alves <palves@redhat.com>
7106
7107 PR python/20037
7108 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
7109 oldloc.
7110
1aa96702
PA
71112016-05-03 Pedro Alves <palves@redhat.com>
7112
7113 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
7114 code.
7115
a4a1c157
PA
71162016-05-03 Pedro Alves <palves@redhat.com>
7117
7118 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
7119 * configure: Regenerate.
7120
1b4f615e
PA
71212016-05-03 Pedro Alves <palves@redhat.com>
7122
7123 * configure.ac (checking for the dynamic export flag): Add
7124 $PYTHON_CPPFLAGS to CPPFLAGS.
7125 * configure: Regenerate.
7126
b631e59b
KT
71272016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7128
7129 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
7130 warning.
7131 (find_pc_mapped_section): Likewise.
7132 (list_overlays_command): Likewise.
7133
1270fac6
EZ
71342016-05-02 Eli Zaretskii <eliz@gnu.org>
7135
7136 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
7137 error in allocation of space for "$HOME/.gdbinit" string. This
7138 caused GDB to abort on startup whenever a '~/gdb.ini' file was
7139 actually found, because xsnprintf would hit an assertion
7140 violation.
7141
0400cf2f
SM
71422016-04-28 Simon Marchi <simon.marchi@ericsson.com>
7143
7144 * cli/cli-decode.c (help_cmd_list): Do not list commands that
7145 are deprecated.
7146
57809e5e
JK
71472016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7148
7149 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
7150
476350ba
MG
71512016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
7152
7153 * c-valprint.c (c_value_print): Always convert val back to reference
7154 type if we converted it to a pointer type.
7155
2d681be4
AA
71562016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
7157
7158 * configure.ac: Enhance configure check for babeltrace to reject
7159 non-C++-enabled versions.
7160 * configure: Regenerate.
7161
3e2e34f8
KB
71622016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
7163 Keven Boell <keven.boell@intel.com>
7164 Bernhard Heckel <bernhard.heckel@intel.com>
7165
7166 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
7167 function.
7168 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
7169 (f77_print_array_1): Use value_subscript to subscript a
7170 value array.
7171 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
7172 (f_val_print): Use value_field to construct a field value.
7173
8f07e298
BH
71742016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
7175
7176 * valarith.c (value_address): Resolve dynamic types.
7177
9920b434
BH
71782016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
7179 Keven Boell <kevel.boell@intel.com>
7180
7181 * NEWS: Add new supported features for fortran.
7182 * gdbtypes.c (remove_dyn_prop): New.
7183 (resolve_dynamic_struct): Keep type length for fortran structs.
7184 * gdbtypes.h: Forward declaration of new function.
7185 * value.c (value_address): Return dynamic resolved location of a value.
7186 (set_value_component_location): Adjust the value address
7187 for single value prints.
7188 (value_primitive_field): Support value types with a dynamic location.
7189 (set_internalvar): Remove dynamic location property of
7190 internal variables.
7191
20249ae4
YQ
71922016-04-25 Pedro Alves <palves@redhat.com>
7193 Yao Qi <yao.qi@linaro.org>
7194
7195 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
7196 object. Insert it if it is not inserted yet. Increase the
7197 refcount and link it into the proc's raw breakpoint list.
7198
21edc42f
YQ
71992016-04-25 Yao Qi <yao.qi@linaro.org>
7200
7201 * breakpoint.c (should_be_inserted): Return 0 if the location's
7202 owner is not single step breakpoint or single step breakpoint's
7203 thread isn't the thread which is stepping past a breakpoint.
7204 * gdbarch.sh (software_single_step): Update comments.
7205 * gdbarch.h: Regenerated.
7206 * infrun.c (struct step_over_info) <thread>: New field.
7207 (set_step_over_info): New argument 'thread'. Callers updated.
7208 (clear_step_over_info): Set field thread to -1.
7209 (thread_is_stepping_over_breakpoint): New function.
7210 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
7211
0154d990
EBM
72122016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7213
7214 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
7215 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
7216
6d7e9d3b
YQ
72172016-04-22 Yao Qi <yao.qi@linaro.org>
7218
7219 * valops.c (read_value_memory): New local variable 'stack'.
7220 Set it to either TARGET_OBJECT_STACK_MEMORY or
7221 TARGET_OBJECT_MEMORY.
7222
b3f11165
PA
72232016-04-22 Pedro Alves <palves@redhat.com>
7224
7225 * ada-exp.y: Remove all yy symbol remappings.
7226 (GDB_YY_REMAP_PREFIX): Define.
7227 Include "yy-remap.h".
7228 * ada-lang.c (ada_language_defn): Adjust.
7229 * ada-lang.h (ada_error): Rename to ...
7230 (ada_yyerror): ... this.
7231 * c-exp.y: Remove all yy symbol remappings.
7232 (GDB_YY_REMAP_PREFIX): Define.
7233 Include "yy-remap.h".
7234 * c-lang.c (c_language_defn, cplus_language_defn)
7235 (asm_language_defn, minimal_language_defn): Adjust.
7236 * c-lang.h (c_error): Rename to ...
7237 (c_yyerror): ... this.
7238 * d-exp.y: Remove all yy symbol remappings.
7239 (GDB_YY_REMAP_PREFIX): Define.
7240 Include "yy-remap.h".
7241 * d-lang.c (d_language_defn): Adjust.
7242 * d-lang.h (d_error): Rename to ...
7243 (d_yyerror): ... this.
7244 * f-exp.y: Remove all yy symbol remappings.
7245 (GDB_YY_REMAP_PREFIX): Define.
7246 Include "yy-remap.h".
7247 * f-lang.c (f_language_defn): Adjust.
7248 * f-lang.h (f_error): Rename to ...
7249 (f_yyerror): ... this.
7250 * go-exp.y: Remove all yy symbol remappings.
7251 (GDB_YY_REMAP_PREFIX): Define.
7252 Include "yy-remap.h".
7253 * go-lang.c (go_language_defn): Adjust.
7254 * go-lang.h (go_error): Rename to ...
7255 (go_yyerror): ... this.
7256 * jv-exp.y: Remove all yy symbol remappings.
7257 (GDB_YY_REMAP_PREFIX): Define.
7258 Include "yy-remap.h".
7259 * jv-lang.c (java_language_defn): Adjust.
7260 * jv-lang.h (java_error): Rename to ...
7261 (java_yyerror): ... this.
7262 * m2-exp.y: Remove all yy symbol remappings.
7263 (GDB_YY_REMAP_PREFIX): Define.
7264 Include "yy-remap.h".
7265 * m2-lang.c (m2_language_defn): Adjust.
7266 * m2-lang.h (m2_error): Rename to ...
7267 (m2_yyerror): ... this.
7268 * objc-exp.y: Remove all yy symbol remappings.
7269 (GDB_YY_REMAP_PREFIX): Define.
7270 Include "yy-remap.h".
7271 * objc-lang.c (objc_language_defn): Adjust.
7272 * opencl-lang.c (opencl_language_defn): Adjust.
7273 * p-exp.y: Remove all yy symbol remappings.
7274 (GDB_YY_REMAP_PREFIX): Define.
7275 Include "yy-remap.h".
7276 * p-lang.c (pascal_language_defn): Adjust.
7277 * p-lang.h (pascal_error): Rename to ...
7278 (pascal_yyerror): ... this.
7279 * yy-remap.h: New file.
7280
6290672f
PA
72812016-04-22 Pedro Alves <palves@redhat.com>
7282
7283 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
7284 the foreign frames issue.
7285 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
7286
89525768
PA
72872016-04-22 Pedro Alves <palves@redhat.com>
7288
7289 * common/common-exceptions.c (enum catcher_state, struct catcher)
7290 (current_catcher): Define in C++ mode too.
7291 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
7292 throw_exception.
7293 (throw_exception_sjlj, throw_exception_cxx): New functions,
7294 factored out from throw_exception.
7295 (throw_exception): Reimplement.
7296 * common/common-exceptions.h (exceptions_state_mc_init)
7297 (exceptions_state_mc_action_iter)
7298 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7299 Declare in C++ mode too.
7300 (TRY): Rename to ...
7301 (TRY_SJLJ): ... this.
7302 (CATCH): Rename to ...
7303 (CATCH_SJLJ): ... this.
7304 (END_CATCH): Rename to ...
7305 (END_CATCH_SJLJ): ... this.
7306 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
7307 equivalents.
7308 (throw_exception): Update comments.
7309 (throw_exception_sjlj): Declare.
7310 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
7311 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
7312 intercepted exception.
7313 (gdb_rl_callback_handler): New function.
7314 (gdb_rl_callback_handler_install): Always install
7315 gdb_rl_callback_handler as readline callback.
7316
3c610247
PA
73172016-04-22 Pedro Alves <palves@redhat.com>
7318
7319 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
7320 (gdb_rl_callback_read_char_wrapper): ... this.
7321 (change_line_handler, gdb_setup_readline): Adjust.
7322
3539aa13
YQ
73232016-04-22 Yao Qi <yao.qi@linaro.org>
7324
7325 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
7326 bits 20 to 23.
7327
0f60e29b
JB
73282016-04-22 Joel Brobecker <brobecker@adacore.com>
7329
7330 * MAINTAINER: Remove myself as AIX Maintainer.
7331
3877922e
MR
73322016-04-22 Maciej W. Rozycki <macro@imgtec.com>
7333
7334 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
7335 `num_regs' to 90 rather than 79. Where a target description is
7336 present adjust the setting appropriately.
7337
88c3cd8d
PA
73382016-04-21 Pedro Alves <palves@redhat.com>
7339
7340 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
7341 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
7342
71829b1a
PA
73432016-04-21 Pedro Alves <palves@redhat.com>
7344
7345 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
7346 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
7347 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
7348 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
7349 pointer, and cast return to gdb_byte pointer.
7350
3451269c
PA
73512016-04-21 Pedro Alves <palves@redhat.com>
7352
7353 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
7354 void * instead of gdb_byte *.
7355
b36cec19
PA
73562016-04-21 Pedro Alves <palves@redhat.com>
7357
7358 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
7359 (file_file_name, file_full_name): Add char * cast to sentinel in
7360 concat/reconcat calls.
7361 * event-top.c (top_level_prompt): Likewise.
7362 * guile/guile.c (initialize_scheme_side): Likewise.
7363 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
7364 * macrotab.c (macro_source_fullname): Likewise.
7365 * main.c (get_init_files, captured_main): Likewise.
7366 * psymtab.c (psymtab_to_fullname): Likewise.
7367 * python/python.c (_initialize_python)
7368 (gdbpy_finish_initialization): Likewise.
7369 * source.c (symtab_to_fullname): Likewise.
7370
a2358508
PA
73712016-04-20 Pedro Alves <palves@redhat.com>
7372
7373 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
7374 * configure: Renegerate.
7375
5ae00552
PA
73762016-04-20 Pedro Alves <palves@redhat.com>
7377
7378 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
7379
d9436c7c
PA
73802016-04-20 Pedro Alves <palves@redhat.com>
7381
7382 * aarch64-tdep.c (aarch64_record_load_store): Change type of
7383 'reg_rm_val' local to ULONGEST.
7384
597e448c
PA
73852016-04-20 Pedro Alves <palves@redhat.com>
7386
7387 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
7388
6c739336
DE
73892016-04-20 Doug Evans <xdje42@gmail.com>
7390
7391 * symmisc.c (dump_symtab_1): Print owning compunit for identical
7392 blockvectors.
7393
8cef59a2
YQ
73942016-04-20 Yao Qi <yao.qi@linaro.org>
7395
7396 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
7397
6885166d
YQ
73982016-04-20 Yao Qi <yao.qi@linaro.org>
7399
7400 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
7401 * arch/arm-linux.h: ... here.
7402
21002a63
JB
74032016-04-19 John Baldwin <jhb@FreeBSD.org>
7404
7405 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
7406 to void *.
7407 (amd64bsd_store_inferior_registers): Likewise.
7408 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
7409 (resume_all_threads_cb): Likewise.
7410 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
7411 (i386bsd_collect_gregset): Likewise.
7412 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
7413 (i386bsd_store_inferior_registers): Likewise.
7414
f39c07ac
JB
74152016-04-19 John Baldwin <jhb@FreeBSD.org>
7416
7417 * main.c (setup_alternate_signal_stack): Cast to char *.
7418
d04c1a59
DE
74192016-04-19 Doug Evans <xdje42@gmail.com>
7420
7421 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
7422 All callers updated.
7423
a55411b9
DE
74242016-04-19 Doug Evans <xdje42@gmail.com>
7425
ee2915c9 7426 PR gdb/17911
a55411b9
DE
7427 * source.c (is_regular_file): New arg errno_ptr.
7428 All callers updated.
7429
73e6209f
AA
74302016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
7431
7432 * linux-record.c (record_linux_system_call): Merge handling for
7433 readlink/recv/read and pipe/pipe2.
7434
f42bf748
WT
74352016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
7436
7437 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
7438 * features/i386/amd64-mpx.xml: Remove AVX feature.
7439 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
7440 * features/i386/i386-mpx.xml: Remove AVX feature.
7441 * features/i386/amd64-mpx-linux.c: Regenerate.
7442 * features/i386/amd64-mpx.c: Regenerate.
7443 * features/i386/i386-mpx-linux.c: Regenerate.
7444 * features/i386/i386-mpx.c: Regenerate.
7445 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
7446 * regformats/i386/amd64-mpx.dat: Regenerate.
7447 * regformats/i386/i386-mpx-linux.dat: Regenerate.
7448 * regformats/i386/i386-mpx.dat: Regenerate.
7449
2b863f51
WT
74502016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7451
7452 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
7453 New include.
7454 (amd64_linux_core_read_description): Add case for
7455 X86_XSTATE_AVX_MPX_MASK.
7456 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
7457 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
7458 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
7459 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
7460 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
7461 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
7462 (X86_XSTATE_AVX_MPX_MASK): New case.
7463 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
7464 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
7465 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
7466 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
7467 New expedites.
7468 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
7469 include.
7470 (i386_linux_core_read_description): Add case
7471 X86_XSTATE_AVX_MPX_MASK.
7472 (_initialize_i386_linux_tdep): Call
7473 initialize_tdesc_i386_avx_mpx_linux.
7474 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
7475 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
7476 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
7477 * x86-linux-nat.c (x86_linux_read_description): Add case for
7478 X86_XSTATE_AVX_MPX_MASK.
7479 * features/i386/amd64-avx-mpx-linux.xml: New file.
7480 * features/i386/i386-avx-mpx-linux.xml: New file.
7481 * features/i386/i386-avx-mpx.xml: New file.
7482 * features/i386/amd64-avx-mpx.xml: New file.
7483 * features/i386/amd64-avx-mpx-linux.c: Generated.
7484 * features/i386/amd64-avx-mpx.c: Generated.
7485 * features/i386/i386-avx-mpx-linux.c: Generated.
7486 * features/i386/i386-avx-mpx.c: Generated.
7487 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
7488 * regformats/i386/amd64-avx-mpx.dat: Generated.
7489 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
7490 * regformats/i386/i386-avx-mpx.dat: Generated.
7491
9b30624b
PA
74922016-04-18 Pedro Alves <palves@redhat.com>
7493
7494 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
7495 * configure: Regenerate.
7496
a22df60a
MG
74972016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
7498
7499 * valops.c (value_addr): For C++ references, set the copied value's
7500 enclosing_type as well.
7501
5947319e
YQ
75022016-04-18 Yao Qi <yao.qi@linaro.org>
7503
7504 Revert:
7505 2016-04-15 Yao Qi <yao.qi@linaro.org>
7506
7507 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
7508 PC is far from the end of function.
7509
58484447
PA
75102016-04-16 Pedro Alves <palves@redhat.com>
7511
7512 * ada-exp.y (yydefred): Define as ada_yydefred.
7513
2b2798cc
PA
75142016-04-15 Pedro Alves <palves@redhat.com>
7515
7516 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
7517 'name_str' locals.
7518
d7abe101
PA
75192016-04-15 Pedro Alves <palves@redhat.com>
7520
7521 * btrace.c (pt_btrace_insn_flags): Change return type to
7522 btrace_insn_flags. Use btrace_insn_flags for local.
7523
77770d83
PA
75242016-04-15 Pedro Alves <palves@redhat.com>
7525
7526 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
7527 accept TRAP_BRKPT.
7528 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
7529
415fa612
YQ
75302016-04-15 Yao Qi <yao.qi@linaro.org>
7531
7532 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
7533 PC is far from the end of function.
7534
7f31862a
PA
75352016-04-14 Pedro Alves <palves@redhat.com>
7536
7537 * cli/cli-cmds.c (alias_usage_error): New function.
7538 (alias_command): Use it.
7539 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
7540 ctf_save_write_metadata call.
7541
aebf07fc
PA
75422016-04-14 Pedro Alves <palves@redhat.com>
7543
7544 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
7545 argument to function expecting LONGEST.
7546 * value.c (unpack_long): Add casts to LONGEST.
7547
57d1de9c
LM
75482016-04-13 Luis Machado <lgustavo@codesourcery.com>
7549
7550 * exec.c (exec_file_locate_attach): Guard a couple functions
7551 that can throw errors.
7552 (exception_print_same): New helper function.
7553
3a00c802
PA
75542016-04-13 Pedro Alves <palves@redhat.com>
7555
7556 PR remote/19840
7557 * remote.c (struct remote_state) <last_resume_exec_dir>: New
7558 field.
7559 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
7560 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
7561 (remote_resume): Store the last execution direction.
7562 (remote_execution_direction): New function.
7563 (init_remote_ops): Install it as to_execution_direction target_ops
7564 method.
7565
0f41b320
PA
75662016-04-12 Pedro Alves <palves@redhat.com>
7567
7568 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
7569 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
7570
173981bc
PA
75712016-04-12 Pedro Alves <palves@redhat.com>
7572
7573 * common/common-exceptions.c (struct catcher) <buf>: Now a
7574 'jmp_buf' instead of SIGJMP_BUF.
7575 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
7576 (throw_exception): Use longjmp instead of SIGLONGJMP.
7577 * common/common-exceptions.h: Include <setjmp.h> instead of
7578 "gdb_setjmp.h".
7579 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
7580 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
7581 SIGSETJMP.
7582 * cp-support.c: Include "gdb_setjmp.h".
7583
2afc13ff
PA
75842016-04-12 Pedro Alves <palves@redhat.com>
7585
7586 * common/common-exceptions.c (exception_rethrow): Remove
7587 prepare_to_throw_exception call.
7588 * common/common-exceptions.h (prepare_to_throw_exception): Delete
7589 declaration.
7590 * exceptions.c (prepare_to_throw_exception): Delete.
7591
cfd0fbdd
PA
75922016-04-12 Pedro Alves <palves@redhat.com>
7593
7594 * target.c (target_check_pending_interrupt): Delete.
7595 * target.h (struct target_ops) <to_check_pending_interrupt>:
7596 Remove method.
7597 (target_check_pending_interrupt): Remove declaration.
7598 * target-delegates.c: Regenerate.
7599
585a46a2
PA
76002016-04-12 Pedro Alves <palves@redhat.com>
7601
7602 * defs.h: Update comments on SIGINT handling.
7603 (immediate_quit): Delete declaration.
7604 * event-loop.c (call_async_signal_handler): Delete.
7605 * event-loop.h (call_async_signal_handler): Delete declaration.
7606 (mark_async_signal_handler): Update comments.
7607 (gdb_call_async_signal_handler): Delete declaration.
7608 * event-top.c (handle_sigint): Call mark_async_signal_handler
7609 instead of gdb_call_async_signal_handler.
7610 * exceptions.c (prepare_to_throw_exception): Remove reference to
7611 immediate_quit.
7612 (exception_fprintf): Remove comments about immediate_quit.
7613 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
7614 (gdb_select): Don't wait on sigint_event.
7615 (gdb_call_async_signal_handler): Delete.
7616 (_initialize_mingw_hdep): Delete.
7617 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
7618 * utils.c (immediate_quit): Delete.
7619
048094ac
PA
76202016-04-12 Pedro Alves <palves@redhat.com>
7621
7622 * defs.h (quit_handler_ftype, quit_handler)
7623 (make_cleanup_override_quit_handler, default_quit_handler): New.
7624 (QUIT): Adjust comments.
7625 * event-top.c (default_quit_handler): New function.
7626 (quit_handler): New global.
7627 (struct quit_handler_cleanup_data): New.
7628 (restore_quit_handler, restore_quit_handler_dtor)
7629 (make_cleanup_override_quit_handler): New.
7630 (async_request_quit): Call QUIT.
7631 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
7632 (async_sigint_remote_twice_token, async_sigint_remote_token):
7633 Delete.
7634 (remote_close): Update comments.
7635 (remote_start_remote): Don't set immediate_quit. Set starting_up
7636 earlier.
7637 (remote_serial_quit_handler, remote_unpush_and_throw): New
7638 functions.
7639 (remote_open_1): Clear got_ctrlc_during_io. Set
7640 remote_async_terminal_ours_p unconditionally.
7641 (async_initialize_sigint_signal_handler)
7642 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
7643 (remote_check_pending_interrupt, async_remote_interrupt)
7644 (async_remote_interrupt_twice)
7645 (async_cleanup_sigint_signal_handler, ofunc)
7646 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
7647 (remote_terminal_inferior, remote_terminal_ours): Remove async
7648 checks.
7649 (remote_wait_as): Don't install a SIGINT handler in sync mode.
7650 (readchar, remote_serial_write): Override the quit handler with
7651 remote_serial_quit_handler.
7652 (getpkt_or_notif_sane_1): Don't call QUIT.
7653 (initialize_remote_ops): Don't install
7654 remote_check_pending_interrupt.
7655 (_initialize_remote): Don't create async_sigint_remote_token and
7656 async_sigint_remote_twice_token.
7657 * ser-base.c (ser_base_wait_for): Call QUIT and use
7658 interruptible_select.
7659 (ser_base_write): Call QUIT.
7660 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
7661 * ser-unix.c (wait_for): Don't use VTIME. Always take the
7662 gdb_select path, but call QUIT and interruptible_select.
7663 * utils.c (maybe_quit): Call the current quit handler. Don't call
7664 target_check_pending_interrupt.
7665 (defaulted_query, prompt_for_continue): Override the quit handler
7666 with the default quit handler.
7667
a12ac513
PA
76682016-04-12 Pedro Alves <palves@redhat.com>
7669
7670 * tui/tui-hooks.c (tui_target_has_run): Delete.
7671 (tui_about_to_proceed): Delete.
7672 (tui_about_to_proceed_observer): Delete.
7673 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
7674 about_to_proceed observer.
7675
5fe96654
PA
76762016-04-12 Pedro Alves <palves@redhat.com>
7677
7678 * mi/mi-interp.c (mi_new_thread): Put
7679 target_terminal_ours_for_output in effect while outputting.
7680 (mi_thread_exit): Use target_terminal_ours_for_output instead of
7681 target_terminal_ours.
7682 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7683 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7684 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7685 (mi_breakpoint_created, mi_breakpoint_deleted)
7686 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
7687 (mi_command_param_changed, mi_memory_changed)
7688 (report_initial_inferior): Use target_terminal_ours_for_output
7689 instead of target_terminal_ours. Restore terminal settings.
7690 * mi/mi-main.c (mi_execute_command): Use
7691 target_terminal_ours_for_output instead of target_terminal_ours.
7692 Restore terminal settings.
7693
651ce16a
PA
76942016-04-12 Pedro Alves <palves@redhat.com>
7695
7696 PR gdb/19828
7697 * gnu-nat.c (inf_validate_task_sc): Don't call
7698 target_terminal_ours / target_terminal_inferior around query.
7699 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
7700 call target_terminal_ours / target_terminal_inferior around
7701 yquery.
7702 * linux-record.c (record_linux_system_call): Don't call
7703 target_terminal_ours / target_terminal_inferior around yquery.
7704 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
7705 / target_terminal_inferior around query.
7706 * record-full.c (record_full_check_insn_num): Remove
7707 'set_terminal' parameter. Don't call target_terminal_ours /
7708 target_terminal_inferior around query.
7709 (record_full_message, record_full_registers_change)
7710 (record_full_xfer_partial): Adjust.
7711 * remote.c (interrupt_query): Don't call target_terminal_ours /
7712 target_terminal_inferior around query.
7713 * utils.c (defaulted_query): Install cleanup to restore target
7714 terminal. Put target_terminal_ours_for_output in effect while
7715 defaulted producing, and target_terminal_ours in in effect while
7716 handling input.
7717 (prompt_for_continue): Install cleanup to restore target terminal.
7718 Put target_terminal_ours in in effect while handling input.
7719
80dbc9fd
PA
77202016-04-12 Pedro Alves <palves@redhat.com>
7721
7722 * utils.c (defaulted_query, prompt_for_continue): Free temporary
7723 strings with cleanups, instead of xfree.
7724
c5ac1540
PA
77252016-04-12 Pedro Alves <palves@redhat.com>
7726
7727 * utils.c (vwarning, internal_vproblem): Use
7728 make_cleanup_restore_target_terminal and
7729 target_terminal_ours_for_output.
7730
f8e3ef9d
PA
77312016-04-12 Pedro Alves <palves@redhat.com>
7732
7733 * infcmd.c (post_create_inferior, prepare_one_step): Use
7734 target_terminal_ours_for_output instead of target_terminal_ours.
7735
481ac8c9
PA
77362016-04-12 Pedro Alves <palves@redhat.com>
7737
7738 * exceptions.c (print_flush): Use target_terminal_ours_for_output
7739 instead of target_terminal_ours, and restore target terminal with
7740 a cleanup.
7741
c509f1e1
PA
77422016-04-12 Pedro Alves <palves@redhat.com>
7743
7744 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
7745 instead of target_terminal_ours, and restore target terminal with
7746 a cleanup.
7747
99bbb428
PA
77482016-04-12 Pedro Alves <palves@redhat.com>
7749
7750 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
7751 functions.
7752 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
7753
75ee5925
PA
77542016-04-12 Pedro Alves <palves@redhat.com>
7755
7756 * ser-base.c (fd_event): Retry read_prim on EINTR.
7757 (do_ser_base_readchar): Retry read_prim on EINTR.
7758 (ser_base_write): Retry write_prim on EINTR.
7759 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
7760 (ser_unix_write_prim): Remove comment.
7761
93692b58
PA
77622016-04-12 Pedro Alves <palves@redhat.com>
7763
7764 * remote.c (remote_pass_ctrlc): New function.
7765 (init_remote_ops): Install it.
7766 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
7767 target.
7768 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
7769 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
7770 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
7771 * target-delegates.c: Regenerate.
7772
e42de8c7
PA
77732016-04-12 Pedro Alves <palves@redhat.com>
7774
7775 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
7776 mode.
7777 * linux-nat.c (linux_nat_interrupt): Delete.
7778 (linux_nat_add_target): Don't install linux_nat_interrupt.
7779 * remote.c (remote_interrupt_ns): Change return type to void.
7780 Throw error if interrupting the target is not supported.
7781 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
7782
a149683b
PA
77832016-04-12 Pedro Alves <palves@redhat.com>
7784
7785 * defs.h (clear_quit_flag): Remove declaration.
7786 * extension-priv.h (struct extension_language_ops)
7787 <clear_quit_flag>: Remove field and update comments.
7788 * extension.c (clear_quit_flag): Delete.
7789 * guile/guile.c (guile_extension_ops): Adjust.
7790 * python/python.c (python_extension_ops): Adjust.
7791 (gdbpy_clear_quit_flag): Delete.
7792
da1e5f54
PA
77932016-04-12 Pedro Alves <palves@redhat.com>
7794
7795 * main.c (captured_main): Don't clear the quit flag.
7796
0af679c6
PA
77972016-04-12 Pedro Alves <palves@redhat.com>
7798
7799 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
7800 flag.
7801
4a81fd47
PA
78022016-04-12 Pedro Alves <palves@redhat.com>
7803
7804 * event-top.c (command_handler): Don't call clear_quit_flag.
7805
abf009ef
PA
78062016-04-12 Pedro Alves <palves@redhat.com>
7807
7808 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
7809 * remote.c (remote_wait_as): Don't call clear_quit_flag.
7810
6eddd09a
PA
78112016-04-12 Pedro Alves <palves@redhat.com>
7812
7813 * python/python.c: Include "ser-event.h".
7814 (gdbpy_event_fds): Delete.
7815 (gdbpy_serial_event): New.
7816 (gdbpy_run_events): Change prototype. Use serial_event_clear
7817 instead of serial_readchar.
7818 (gdbpy_post_event): Use serial_event_set instead of serial_write.
7819 (gdbpy_initialize_events): Use make_serial_event instead of
7820 serial_pipe.
7821
f0881b37
PA
78222016-04-12 Pedro Alves <palves@redhat.com>
7823
7824 * defs.h: Extend QUIT-related comments to mention
7825 interruptible_select.
7826 (quit_serial_event_set, quit_serial_event_clear): Declare.
7827 * event-top.c: Include "ser-event.h" and "gdb_select.h".
7828 (quit_serial_event): New global.
7829 (async_init_signals): Make quit_serial_event.
7830 (quit_serial_event_set, quit_serial_event_clear)
7831 (quit_serial_event_fd, interruptible_select): New functions.
7832 * extension.c (set_quit_flag): Set the quit serial event.
7833 (check_quit_flag): Clear the quit serial event.
7834 * gdb_select.h (interruptible_select): New declaration.
7835 * guile/scm-ports.c (ioscm_input_waiting): Use
7836 interruptible_select instead of gdb_select.
7837 * top.c (gdb_readline_no_editing): Likewise.
7838 * ui-file.c (stdio_file_read): Likewise.
7839
5cc3ce8b
PA
78402016-04-12 Pedro Alves <palves@redhat.com>
7841
7842 * event-loop.c: Include "ser-event.h".
7843 (async_signal_handlers_serial_event): New global.
7844 (async_signals_handler, initialize_async_signal_handlers): New
7845 functions.
7846 (mark_async_signal_handler): Set
7847 async_signal_handlers_serial_event.
7848 (invoke_async_signal_handlers): Clear
7849 async_signal_handlers_serial_event.
7850 * event-top.c (async_init_signals): Call
7851 initialize_async_signal_handlers.
7852
00340e1b
PA
78532016-04-12 Pedro Alves <palves@redhat.com>
7854
7855 * Makefile.in (SFILES): Add ser-event.c.
7856 (HFILES_NO_SRCDIR): Add ser-event.h.
7857 (COMMON_OBS): Add ser-event.o.
7858 * ser-event.c, ser-event.h: New files.
7859 * serial.c (new_serial): New function, factored out from
7860 (serial_fdopen_ops): ... this.
7861 (serial_open_ops_1): New function, factored out from
7862 (serial_open): ... this.
7863 (serial_open_ops): New function.
7864 * serial.h (struct serial): Forware declare.
7865 (serial_open_ops): New declaration.
7866
5f5219fc
PA
78672016-04-12 Pedro Alves <palves@redhat.com>
7868
7869 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
7870 Remove references to name.
7871 * serial.h (struct serial) <name>: Delete.
7872
acd5494d
PA
78732016-04-12 Pedro Alves <palves@redhat.com>
7874
7875 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
7876 Delete.
7877 (async_remote_fileio_interrupt): Delete.
7878 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
7879 handler. Instead just always set the ctrl_c flag.
7880 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
7881 re-enabling the SIGINT handler.
7882 (remote_fileio_func_open, remote_fileio_func_close)
7883 (remote_fileio_func_read, remote_fileio_func_write)
7884 (remote_fileio_func_lseek, remote_fileio_func_rename)
7885 (remote_fileio_func_unlink, remote_fileio_func_stat)
7886 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7887 (remote_fileio_func_isatty, remote_fileio_func_system)
7888 (remote_fileio_request): Remove references to
7889 remote_fio_no_longjmp.
7890 (initialize_remote_fileio): Don't create an async signal handler.
7891
d2acc30b
PA
78922016-04-12 Pedro Alves <palves@redhat.com>
7893
7894 * event-top.c (stdin_event_handler): Call QUIT;
7895 (prompt_for_continue): Don't run with immediate_quit set.
7896
ab33ab13
PA
78972016-04-12 Pedro Alves <palves@redhat.com>
7898
7899 * tui/tui-io.c (tui_redisplay_readline): Check
7900 gdb_in_secondary_prompt_p instead of immediate_quit.
7901 * tui/tui.c: Include top.h.
7902 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
7903 immediate_quit.
7904
faa4ebe1
PA
79052016-04-12 Pedro Alves <palves@redhat.com>
7906
7907 * top.c (read_command_file): Inline command_loop here.
7908 (command_loop): Delete.
7909
3212b858
PA
79102016-04-12 Pedro Alves <palves@redhat.com>
7911
7912 * top.c: Include "gdb_select.h".
7913 (gdb_readline_no_editing): Wait for input with gdb_select instead
7914 of blocking in fgetc.
7915 (command_line_input): Don't set immediate_quit.
7916
4bf7b526
MG
79172016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
7918
7919 * value.c (value_next): Make pass-by-reference parameters const-correct.
7920 (value_parent): Likewise.
7921 (value_enclosing_type): Likewise.
7922 (value_lazy): Likewise.
7923 (value_stack): Likewise.
7924 (value_embedded_offset): Likewise.
7925 (value_pointed_to_offset): Likewise.
7926 (value_raw_address): Likewise.
7927 (deprecated_value_modifiable): Likewise.
7928 (value_free_to_mark): Likewise.
7929 (value_release_to_mark): Likewise.
7930 (internalvar_name): Likewise.
7931 (readjust_indirect_value_type): Likewise.
7932 (value_initialized): Likewise.
7933 * value.h (value_next): Likewise.
7934 (value_parent): Likewise.
7935 (value_enclosing_type): Likewise.
7936 (value_lazy): Likewise.
7937 (value_stack): Likewise.
7938 (value_embedded_offset): Likewise.
7939 (value_pointed_to_offset): Likewise.
7940 (value_raw_address): Likewise.
7941 (deprecated_value_modifiable): Likewise.
7942 (value_free_to_mark): Likewise.
7943 (value_release_to_mark): Likewise.
7944 (internalvar_name): Likewise.
7945 (readjust_indirect_value_type): Likewise.
7946 (value_initialized): Likewise.
7947
e390720b
YQ
79482016-04-07 Yao Qi <yao.qi@linaro.org>
7949
7950 * record-full.c (record_full_insert_breakpoint): Return
7951 early if entry on the address is found in
7952 record_full_breakpoints.
7953
1ccd06e4
YQ
79542016-04-07 Yao Qi <yao.qi@linaro.org>
7955
7956 * record-full.c (record_full_insert_breakpoint): Set
7957 bp_tgt->reqstd_address and bp_tgt->placed_size.
7958
ecf2e90c
DB
79592016-04-06 Don Breazeal <donb@codesourcery.com>
7960
7961 * value.c (value_actual_type): Don't try to get rtti type
7962 of the value if it has been optimized out.
7963 (value_optimized_out): If a memory access error occurs,
7964 just check vaue->optimized_out.
7965
14731617
JK
79662016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7967
7968 Revert the previous commit adding unknown_v_replies_ok.
7969
319cb5d0
JK
79702016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7971
7972 * remote.c (struct remote_state): New field unknown_v_replies_ok.
7973 (packet_config_support): Read it.
7974 (remote_start_remote): Set it.
7975
052d2eb2
JK
79762016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7977
7978 * remote.c: Revert check-in by a mistake in the previous commit.
7979
fef3cb9f
JK
79802016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7981 Pedro Alves <palves@redhat.com>
7982
7983 * exec.c (exec_file_locate_attach): Print warning for unsupported
7984 target_pid_to_exec_file.
7985 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
7986 message part.
7987
2aa08bd1
SM
79882016-04-04 Simon Marchi <simon.marchi@ericsson.com>
7989
7990 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
7991 trailing spaces.
7992
cc63428a
AV
79932016-04-01 Artemiy Volkov <artemiyv@acm.org>
7994
7995 PR gdb/19820
7996 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
7997 the type of BINOP_REPEAT's second operand.
7998
9bb84c9f
YY
79992016-03-31 Yichao Yu <yyc1992@gmail.com>
8000
8001 PR gdb/19858
8002 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
8003 got the breakpoint at the right address.
8004 (jit_inferior_created): New function.
8005 (_initialize_jit): Install jit_inferior_created as
8006 inferior_created observer.
8007
22084c42
MK
80082016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8009
8010 * NEWS: Mention support for tracepoints on powerpc*-linux.
8011
e7ea3ec7
CU
80122016-03-31 Catalin Udma <catalin.udma@freescale.com>
8013
8014 PR python/19743
8015 * python/python.c (execute_gdb_command): Use console uiout
8016 when executing gdb command.
8017 * utils.c (restore_ui_out_closure): New structure.
8018 (do_restore_ui_out): New function.
8019 (make_cleanup_restore_ui_out): Likewise.
8020 * utils.h (make_cleanup_restore_ui_out): Declare.
8021
f7c38292
PA
80222016-03-31 Pedro Alves <palves@redhat.com>
8023
8024 * NEWS: Mention that support for "target m32rsdi", "target mips",
8025 "target pmon", "target ddb", "target rockhopper", and "target lsi"
8026 was removed.
8027 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
8028 remote-mips.o.
8029 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
8030 * configure.tgt: Remove all references to remote-m32r-sdi.o and
8031 remote-mips.o.
8032 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
8033 function.
8034 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
8035 declaration.
8036 * remote-m32r-sdi.c, remote-mips.c: Delete files.
8037 * symfile.c (generic_load, generic_load): Remove comments.
8038
fb3f3d25
YQ
80392016-03-30 Yao Qi <yao.qi@linaro.org>
8040
8041 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
8042 0 rather than NULL.
8043
779aa56f
YQ
80442016-03-30 Yao Qi <yao.qi@linaro.org>
8045
8046 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
8047 (arm_epilogue_frame_this_id): New function.
8048 (arm_epilogue_frame_prev_register): New function.
8049 (arm_epilogue_frame_sniffer): New function.
8050 (arm_epilogue_frame_unwind): New.
8051 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
8052
c58b006a
YQ
80532016-03-30 Yao Qi <yao.qi@linaro.org>
8054
8055 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
8056 (arm_stack_frame_destroyed_p_1): ... here. Don't call
8057 arm_pc_is_thumb.
8058 (arm_stack_frame_destroyed_p): Call
8059 thumb_stack_frame_destroyed_p and
8060 arm_stack_frame_destroyed_p_1.
8061
4ae6cc19
DE
80622016-03-30 Doug Evans <dje@google.com>
8063
8064 * python/py-utils.c (host_string_to_python_string): New function.
8065 * python/python-internal.h (host_string_to_python_string): Declare it.
8066 * python/py-*.c (*): Update all calls to
8067 PyString_Decode (str, strlen (str), host_charset (), NULL);
8068 to use host_string_to_python_string instead.
8069
28170b88
MK
80702016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8071
8072 * remote.c (remote_check_symbols): Allocate own buffer for reply.
8073
a08b52b5
MF
80742016-03-29 Max Filippov <jcmvbkbc@gmail.com>
8075
8076 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
8077 Use safe_read_memory_integer instead of read_memory_integer.
8078
c37c0ba6
MK
80792016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8080
8081 * NEWS: Mention support for tracepoints on s390*-linux.
8082
444bca65
DB
80832016-03-29 Don Breazeal <donb@codesourcery.com>
8084
8085 * gdb/value.c (value_actual_type): Fix formatting issue.
8086
cc651c1c
YQ
80872016-03-23 Yao Qi <yao.qi@linaro.org>
8088
8089 * gdbarch.sh (software_single_step): Remove comments.
8090 * gdbarch.h: Regenerated.
8091
c55978a6
YQ
80922016-03-21 Yao Qi <yao.qi@linaro.org>
8093
8094 * arm-tdep.c (arm_record_media): New.
8095 (arm_record_ld_st_reg_offset): Call arm_record_media.
8096
479fe002
YQ
80972016-03-21 Yao Qi <yao.qi@linaro.org>
8098
8099 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
8100 more syscalls.
8101
9c3f2234
YQ
81022016-03-18 Yao Qi <yao.qi@linaro.org>
8103
8104 * sparc-tdep.c (sparc_software_single_step): Make it static.
8105 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
8106
941319d1
YQ
81072016-03-18 Yao Qi <yao.qi@linaro.org>
8108
8109 * spu-tdep.c (spu_software_single_step): Throw error when
8110 target_read_memory fails.
8111
708bf0a1
JK
81122016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8113
8114 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
8115
0d5b594f
PA
81162016-03-17 Pedro Alves <palves@redhat.com>
8117 Don Breazeal <donb@codesourcery.com>
8118
8119 PR remote/19496
8120 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
8121 instead of checking the 'non_stop' global.
8122 * remote.c (remote_add_thread): New parameter 'executing'. Use it
8123 to set the new thread's executing state.
8124 (remote_notice_new_inferior): Rename parameter 'running' to
8125 'executing'. Always set the thread state to THREAD_RUNNING in
8126 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
8127 EXECUTING to remote_add_thread and notice_new_inferior.
8128 (remote_update_thread_list): Update to pass executing state, not
8129 running state.
8130
bba960fc
AA
81312016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8132
8133 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
8134 to 374.
8135 * syscalls/s390x-linux.xml: Likewise.
8136
5fd0888a
AA
81372016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8138
8139 * linux-record.c (record_mem_at_reg): New helper function.
8140 (record_linux_system_call): Exploit new helper function where
8141 applicable.
8142
0fc8f115
AA
81432016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8144
8145 * linux-record.c: Fix whitespace issues; tabify, remove trailing
8146 spaces.
8147
afdab916
AA
81482016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8149
8150 * linux-record.c (record_linux_system_call): Add missing return
8151 statements to handling of pipe and pipe2 syscalls.
8152
bfeeb14b
DE
81532016-03-16 Doug Evans <dje@google.com>
8154
8155 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
8156
6b94a855
YQ
81572016-03-16 Yao Qi <yao.qi@linaro.org>
8158
8159 * arm-linux-tdep.c (arm_linux_init_abi): Fix
8160 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
8161 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
8162 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
8163 arm_linux_record_tdep.arg7.
8164
1cafadb4
DB
81652016-03-15 Keith Seitz <keiths@redhat.com>
8166
8167 PR breakpoints/18303
8168 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
8169 look for "::" instead of simply ":".
8170 (cp_search_static_and_baseclasses): Return null_block_symbol for
8171 malformed input.
8172 Remove assertions.
8173 * cp-support.c (cp_find_first_component_aux): Do not return
8174 a prefix length for ':' unless the next character is also ':'.
8175
89c200ed
DE
81762016-03-15 Doug Evans <dje@google.com>
8177
8178 * features/aarch64-core.xml (cpsr_flags): New flags type.
8179 (cpsr): Use it.
8180 * features/aarch64.c: Regenerate.
8181
49b7ae7b
DE
81822016-03-15 Doug Evans <dje@google.com>
8183
8184 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
8185 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
8186 * features/i386/64bit-core.xml (i386_eflags): Ditto.
8187 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
8188 * features/i386/x32-core.xml (i386_eflags): Ditto.
8189
81516450 81902016-03-15 Doug Evans <dje@google.com>
79427bd2 8191 Wei-cheng Wang <cole945@gmail.com>
81516450
DE
8192
8193 Extend flags to support multibit and enum bitfields.
79427bd2 8194 * NEWS: Document new features.
81516450
DE
8195 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
8196 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
8197 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
8198 (append_flags_type_field): New function.
8199 (append_flags_type_flag): Call it.
8200 * gdbtypes.h (append_flags_type_field): Declare.
8201 * target-descriptions.c (struct tdesc_type_flag): Delete.
8202 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
8203 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
8204 (struct tdesc_type) <u.f>: Delete.
8205 (tdesc_predefined_types): Add "bool".
8206 (tdesc_predefined_type): New function.
8207 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
8208 Update TDESC_TYPE_FLAGS support.
8209 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
8210 (tdesc_create_flags): Update.
8211 (tdesc_create_enum): New function.
8212 (tdesc_add_field): Initialize start,end to -1.
8213 (tdesc_add_typed_bitfield): New function.
8214 (tdesc_add_bitfield): Call it.
8215 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
8216 (tdesc_add_enum_value): New function.
8217 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
8218 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
8219 * target-descriptions.h (tdesc_create_enum): Declare.
8220 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
8221 * valprint.c (generic_val_print_enum_1): New function.
8222 (generic_val_print_enum): Call it.
8223 (val_print_type_code_flags): Make static. Handle multibit bitfields
8224 and enum bitfields.
8225 * valprint.h (val_print_type_code_flags): Delete.
8226 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
8227 Delete. All uses removed.
8228 (tdesc_start_enum): New function.
8229 (tdesc_start_field): Handle multibit and enum bitfields.
8230 (tdesc_start_enum_value): New function.
8231 (enum_value_attributes, enum_children, enum_attributes): New static
8232 globals.
8233 (feature_children): Add "enum".
8234 * features/gdb-target.dtd (enum, evalue): New elements.
8235
54157a25
DE
82362016-03-15 Doug Evans <dje@google.com>
8237
8238 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
8239 from LONGEST to int.
8240 (struct tdesc_type) <u.f.size>: Ditto.
8241 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
8242 to int. Add assertion size > 0.
8243 (tdesc_create_flags): Ditto.
8244 * target-descriptions.h (tdesc_set_struct_size): Update.
8245 (tdesc_create_flags): Update.
8246 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
8247 (MAX_VECTOR_SIZE): New macro.
8248 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
8249 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
8250
73b4f516
DE
82512016-03-15 Doug Evans <dje@google.com>
8252
8253 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
8254 TYPE_CODE_FLAGS instead of "field_type", for consistency.
8255 * features/i386/amd64-avx-linux.c: Regenerate.
8256 * features/i386/amd64-avx.c: Regenerate.
8257 * features/i386/amd64-avx512-linux.c: Regenerate.
8258 * features/i386/amd64-avx512.c: Regenerate.
8259 * features/i386/amd64-linux.c: Regenerate.
8260 * features/i386/amd64-mpx-linux.c: Regenerate.
8261 * features/i386/amd64-mpx.c: Regenerate.
8262 * features/i386/amd64.c: Regenerate.
8263 * features/i386/i386-avx-linux.c: Regenerate.
8264 * features/i386/i386-avx.c: Regenerate.
8265 * features/i386/i386-avx512-linux.c: Regenerate.
8266 * features/i386/i386-avx512.c: Regenerate.
8267 * features/i386/i386-linux.c: Regenerate.
8268 * features/i386/i386-mmx-linux.c: Regenerate.
8269 * features/i386/i386-mmx.c: Regenerate.
8270 * features/i386/i386-mpx-linux.c: Regenerate.
8271 * features/i386/i386-mpx.c: Regenerate.
8272 * features/i386/i386.c: Regenerate.
8273 * features/i386/x32-avx-linux.c: Regenerate.
8274 * features/i386/x32-avx.c: Regenerate.
8275 * features/i386/x32-avx512-linux.c: Regenerate.
8276 * features/i386/x32-avx512.c: Regenerate.
8277 * features/i386/x32-linux.c: Regenerate.
8278 * features/i386/x32.c: Regenerate.
8279
1eb2dbb8
PA
82802016-03-15 Pedro Alves <palves@redhat.com>
8281
8282 PR gdb/19676
8283 * linux-thread-db.c (try_thread_db_load_1): Leave
8284 info->td_ta_thr_iter_p NULL iff debugging a live process and we
8285 have /proc access.
8286 (find_new_threads_once): Assert that we have a non-NULL
8287 info->td_ta_thr_iter_p instead of checking whether the target has
8288 execution.
8289
16b41842
PA
82902016-03-15 Pedro Alves <palves@redhat.com>
8291
8292 PR gdb/19676
8293 * infrun.c (displaced_step_prepare): Also disable displaced
8294 stepping on NOT_SUPPORTED_ERROR.
8295 * linux-tdep.c (linux_displaced_step_location): If reading auxv
8296 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
8297
70104a90
MK
82982016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
8299
8300 * s390-linux-tdep.c (s390_gen_return_address): New function.
8301 (s390_gdbarch_init): Fill gen_return_address hook.
8302
f2403c39
AB
83032016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8304
8305 * symmisc.c (maintenance_info_line_tables): New function.
8306 (maintenance_print_one_line_table): New function.
8307 (_initialize_symmisc): Register 'maint info line-table' command.
8308 * NEWS: Mention new command.
8309
c4b3e547
MK
83102016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
8311
8312 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
8313 (s390_ax_pseudo_register_push_stack): New function.
8314 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
8315 ax_pseudo_register_push_stack hooks.
8316
f2f3ccb9
SM
83172016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
8318
8319 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
8320 gdb/function/as_string.py.
8321 * python/lib/gdb/function/as_string.py: New file.
8322 * NEWS: Mention the new $_as_string function.
8323
2343b78a
JM
83242016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
8325
8326 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
8327
b69d38af
PA
83282016-03-09 Pedro Alves <palves@redhat.com>
8329
8330 * event-top.c (more_to_come): Delete.
8331 (struct readline_input_state): Delete.
8332 (readline_input_state): Delete.
8333 (get_command_line_buffer): New function.
8334 (command_handler): Update comments. Don't handle NULL commands
8335 here. Do not execute commented lines.
8336 (command_line_append_input_line): New function.
8337 (handle_line_of_input): New function, partly based on
8338 command_line_handler and command_line_input.
8339 (command_line_handler): Rewrite.
8340 * event-top.h (command_handler): New declaration.
8341 (command_loop): Defer command execution to command_handler.
8342 (command_line_input): Update comments. Simplify, using struct
8343 buffer and handle_line_of_input.
8344 * top.h (struct buffer): New forward declaration.
8345 (handle_line_of_input): New declaration.
8346
2669cade
PA
83472016-03-09 Pedro Alves <palves@redhat.com>
8348
8349 * event-top.c (command_line_handler): Use xfree + xstrdup instead
8350 of xrealloc + strcpy.
8351 * main.c (captured_main): Use xstrdup instead of xmalloc plus
8352 manual clear.
8353 * top.c (saved_command_line): Rewrite comment.
8354 (saved_command_line_size): Delete.
8355 (command_line_input): Use xfree + xstrdup instead of xrealloc +
8356 strcpy.
8357 * top.h (saved_command_line_size): Delete declaration.
8358
187212b3
PA
83592016-03-09 Pedro Alves <palves@redhat.com>
8360
8361 * event-top.c: Include buffer.h.
8362 (gdb_readline_no_editing_callback): Use struct buffer instead
8363 of xrealloc.
8364
7a3bde34
PA
83652016-03-09 Pedro Alves <palves@redhat.com>
8366
8367 * common/buffer.h (buffer_grow_char): New function.
8368 * top.c: Include buffer.h.
8369 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
8370 'prompt'. Use struct buffer instead of xrealloc.
8371
c5c136ea
PA
83722016-03-09 Pedro Alves <palves@redhat.com>
8373
8374 * defs.h (gdb_readline): Delete declaration.
8375 * top.c (gdb_readline): Rename to ...
8376 (gdb_readline_no_editing): ... this, and make static.
8377
720d2e96
PA
83782016-03-09 Pedro Alves <palves@redhat.com>
8379
8380 * utils.c (prompt_for_continue): Update comments.
8381
608ff013
PA
83822016-03-09 Pedro Alves <palves@redhat.com>
8383
8384 * event-top.c (async_annotation_suffix): Delete.
8385 (top_level_prompt, command_line_handler): Don't use
8386 'async_annotation_suffix' and simplify.
8387 * event-top.h (async_annotation_suffix): Delete declaration.
8388 (init_main): Remove reference to 'async_annotation_suffix'.
8389
c70061cf
PA
83902016-03-09 Pedro Alves <palves@redhat.com>
8391
8392 * event-top.c (gdb_readline2): Rename to ...
8393 (gdb_readline_no_editing_callback): ... this.
8394 (change_line_handler, stdin_event_handler)
8395 (gdb_setup_readline): Adjust.
8396 * event-top.h (gdb_readline2): Rename to ...
8397 (gdb_readline_no_editing_callback): ... this, and move closer to
8398 other readline-related declarations.
8399 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
8400
8a243832
PA
84012016-03-09 Pedro Alves <palves@redhat.com>
8402
8403 * top.c (window_hook): Delete.
8404 (command_loop): Remove references to window_hook.
8405
cc2c4da8
MK
84062016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8407
8408 * corefile.c (safe_read_memory_unsigned_integer): New function.
8409 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
8410 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
8411
a67914de
MK
84122016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8413
8414 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
8415 (rs6000_gen_return_address): New function.
8416 (rs6000_gdbarch_init): Wire in the above.
8417
2a2fa07b
MK
84182016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8419
8420 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
8421 (rs6000_gdbarch_init): Wire in the above.
8422
bc0e3f49
AA
84232016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
8424
8425 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
8426 instructions that do nothing or are conditional traps.
8427
6d53bec8
AA
84282016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
8429
8430 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
8431 frame func's PC in info->func before any other failure can occur.
8432 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
8433 info->func has been filled out.
8434
f7990f16
PA
84352016-03-09 Pedro Alves <palves@redhat.com>
8436
8437 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
8438
087ccc6a
PA
84392016-03-09 Pedro Alves <palves@redhat.com>
8440
8441 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
8442
114d7832
PA
84432016-03-09 Pedro Alves <palves@redhat.com>
8444
8445 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
8446 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
8447
d7a87b5e
PA
84482016-03-09 Pedro Alves <palves@redhat.com>
8449
8450 * doublest.c: Extend comments.
8451 (floatformat_to_doublest, floatformat_from_doublest): Copy the
8452 floatformat's total size, not the host type's size.
8453
b79497cb
PA
84542016-03-09 Pedro Alves <palves@redhat.com>
8455
8456 * doublest.c (floatformat_totalsize_bytes): New function.
8457 (floatformat_from_type): Assert that the type's length is at least
8458 as long as the floatformat's totalsize.
8459 * doublest.h (floatformat_totalsize_bytes): New declaration.
8460 * gdbtypes.c (arch_float_type): Assert that the type's length is
8461 at least as long as the floatformat's totalsize.
8462
aacca8a7
PA
84632016-03-09 Pedro Alves <palves@redhat.com>
8464
8465 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
8466 format to floatformats_ieee_double.
8467
e6c2f47b
PA
84682016-03-07 Pedro Alves <palves@redhat.com>
8469
8470 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
8471 before calling bfd_get_flavour.
8472
cb86f388
DC
84732016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8474
8475 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
8476 (avr_push_dummy_call): Correct last needed argument register.
8477 Write MSB of argument into register and subsequent bytes into
8478 other registers in decreasing order.
8479
f1771dce
YQ
84802016-03-04 Yao Qi <yao.qi@linaro.org>
8481
8482 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
8483 condition check. Record the right D register number.
8484
ca92db2d
YQ
84852016-03-04 Yao Qi <yao.qi@linaro.org>
8486
8487 * arm-tdep.c (arm_record_extension_space): Remove code
8488 printing "Process record does not support".
8489 (arm_record_data_proc_misc_ld_str): Likewise.
8490 (decode_insn): Call arm_record_extension_space if condition
8491 is 0xf. Call arm_record_unsupported_insn if ret isn't
8492 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
8493 the value of thumb2_record_decode_insn_handler.
8494
73519cce
SM
84952016-03-04 Simon Marchi <simon.marchi@ericsson.com>
8496
8497 * features/feature_to_c.sh: Print the help when passing no
8498 argument.
8499
650beae3
BH
85002016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
8501
8502 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
8503
28586665
BH
85042016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
8505
8506 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
8507
f2489477
AA
85082016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
8509
8510 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
8511 exception when attempting to access the inferior's backchain.
8512
d5219069
YQ
85132016-02-29 Yao Qi <yao.qi@linaro.org>
8514
8515 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
8516 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
8517 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
8518 for aarch64_sys_epoll_create1.
8519
253b4d3a
YQ
85202016-02-29 Yao Qi <yao.qi@linaro.org>
8521
8522 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
8523 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
8524 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
8525 * linux-record.c (record_linux_system_call): Handle them.
8526
38899f16
IB
85272016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
8528
8529 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
8530 cyclic imports.
8531
1ed0c2a4
KS
85322016-02-26 Keith Seitz <keiths@redhat.com>
8533
8534 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
8535 to avoid invalid conversion from void *.
8536
9fde51ed
YQ
85372016-02-26 Yao Qi <yao.qi@linaro.org>
8538
8539 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
8540 per bit 8. Check bit 20 instead of bit 4 for VMOV
8541 instruction. Record D registers for instructions changing
8542 S registers. Change of the order of length and address
8543 in record_buf_mem array.
8544
1f33efec
YQ
85452016-02-26 Yao Qi <yao.qi@linaro.org>
8546
8547 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
8548 number of Rd.
8549
1547ef64
DE
85502016-02-25 Doug Evans <dje@google.com>
8551
8552 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
8553 compiler warning.
8554 (recv_long_data): Ditto.
8555
166616ce
SM
85562016-02-25 Simon Marchi <simon.marchi@ericsson.com>
8557
8558 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
8559 Initialize variables.
8560
1eb7c2d8
AT
85612016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
8562
8563 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
8564 (ax_reg_mask): Likewise.
8565
e7ad2f14
PA
85662016-02-24 Pedro Alves <palves@redhat.com>
8567
8568 * linux-nat.c (save_sigtrap) Delete.
8569 (stop_wait_callback): Call save_stop_reason instead of
8570 save_sigtrap.
8571 (check_stopped_by_breakpoint): Rename to ...
8572 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
8573 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
8574 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
8575 common code between the USE_SIGTRAP_SIGINFO and
8576 !USE_SIGTRAP_SIGINFO blocks.
8577 (linux_nat_filter_event): Call save_stop_reason instead of
8578 save_sigtrap.
8579 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
8580 si_code for MIPS.
8581 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
8582 comments on MIPS behavior.
8583 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
8584
338435ef
MK
85852016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
8586
8587 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
8588 to avoid spurious warnings.
8589
bf74e428
GB
85902016-02-24 Gary Benson <gbenson@redhat.com>
8591
8592 * exec.c (exec_file_locate_attach): Do not attempt to
8593 locate main executable locally if not found in sysroot.
8594
62fb310b
JB
85952016-02-24 Joel Brobecker <brobecker@adacore.com>
8596
8597 GDB 7.11 released.
8598
50ae56ec
WW
85992016-02-24 Wei-cheng Wang <cole945@gmail.com>
8600
8601 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
8602 unavailable PC/SP to build unavailable frame.
8603
cce0e923
DE
86042016-02-23 Doug Evans <dje@google.com>
8605
8606 Extend "skip" command to support -file, -gfile, -function, -rfunction.
8607 * NEWS: Document new features.
8608 * skip.c: #include "fnmatch.h", "gdb_regex.h".
8609 (skiplist_entry) <file>: Renamed from filename.
8610 <function>: Renamed from function_name.
8611 <file_is_glob, function_is_regexp>: New members.
8612 <compiled_function_regexp, compiled_function_regexp_is_valid>:
8613 New members.
8614 (make_skip_entry): New function.
8615 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
8616 (make_free_skiplist_entry_cleanup): New function.
8617 (skip_file_command): Update.
8618 (skip_function, skip_function_command): Update.
8619 (compile_skip_regexp): New functions.
8620 (skip_command): Add support for new options.
8621 (skip_info): Update.
8622 (skip_file_p, skip_gfile_p): New functions.
8623 (skip_function_p, skip_rfunction_p): New functions.
8624 (function_name_is_marked_for_skip): Update and simplify.
8625 (_initialize_step_skip): Update.
8626 * symtab.c: #include "fnmatch.h".
8627 (compare_glob_filenames_for_search): New function.
8628 * symtab.h (compare_glob_filenames_for_search): Declare.
8629 * utils.c (count_path_elements): New function.
8630 (strip_leading_path_elements): New function.
8631 * utils.h (count_path_elements): Declare.
8632 (strip_leading_path_elements): Declare.
8633
12545665
SM
86342016-02-23 Simon Marchi <simon.marchi@ericsson.com>
8635
8636 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
8637 (thumb_process_displaced_insn): Likewise.
8638 (arm_process_displaced_insn): Adjust calls.
8639
c955ae73
YQ
86402016-02-23 Yao Qi <yao.qi@linaro.org>
8641
8642 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
8643 Remove.
8644 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
8645 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
8646 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
8647 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
8648 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
8649 <aarch64_sys_faccessat>: New.
8650 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
8651 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
8652 <aarch64_sys_newfstatat>: New.
8653 (UNSUPPORTED_SYSCALL_MAP): New macro.
8654 (aarch64_canonicalize_syscall): Add missing syscalls.
8655
ac46107c
JK
86562016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8657
8658 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
8659
01e57735
YQ
86602016-02-22 Yao Qi <yao.qi@linaro.org>
8661
8662 * arm-tdep.c: Fix code format issues.
8663
30a6a7f0
IB
86642016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
8665
8666 * d-namespace.c (d_lookup_symbol_imports): Remove argument
8667 'search_parents'. All callers updated.
8668
f79a3bae
MK
86692016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
8670
8671 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
8672 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
8673
012b3a21
WT
86742016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
8675
8676 * NEWS: Add entry for bound violation.
8677 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
8678 Add handler for segmentation fault.
8679 * gdbarch.sh (handle_segmentation_fault): New.
8680 * gdbarch.c: Regenerate.
8681 * gdbarch.h: Regenerate.
8682 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
8683 (SIG_CODE_BONDARY_FAULT): New define.
8684 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
8685 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
8686 * i386-tdep.c (i386_mpx_enabled): Add as external.
8687 * i386-tdep.c (i386_mpx_enabled): Add as external.
8688 * infrun.c (handle_segmentation_fault): New function.
8689 (print_signal_received_reason): Use handle_segmentation_fault.
8690
5f034a78
MK
86912016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
8692
8693 * arch-utils.c (default_guess_tracepoint_registers): New function.
8694 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
8695 * gdbarch.c: Regenerate.
8696 * gdbarch.h: Regenerate.
8697 * gdbarch.sh: Add guess_tracepoint_registers hook.
8698 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
8699
88178e82
GB
87002016-02-17 Gary Benson <gbenson@redhat.com>
8701
8702 * exec.c (exec_file_locate_attach): Add missing cleanup.
8703
4041ed77
DB
87042016-02-16 Don Breazeal <donb@codesourcery.com>
8705
8706 PR remote/19496
8707 * remote.c (remove_new_fork_children): Check for pending
8708 fork status in thread_info.suspend.
8709
b442c911
YQ
87102016-02-16 Yao Qi <yao.qi@linaro.org>
8711
8712 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
8713 'old_chain' later.
8714
553cb527
YQ
87152016-02-16 Yao Qi <yao.qi@linaro.org>
8716
8717 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
8718 <syscall_next_pc>: Remove argument PC. Callers updated.
8719 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
8720 Remove argument PC. Get pc from regcache_read_pc.
8721 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
8722 argument PC.
8723
0a0da556
YQ
87242016-02-15 Yao Qi <yao.qi@linaro.org>
8725
8726 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
8727
01113bc1
YQ
87282016-02-12 Yao Qi <yao.qi@linaro.org>
8729
8730 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
8731 nextpc according to instruction.
8732
ed443b61
YQ
87332016-02-12 Yao Qi <yao.qi@linaro.org>
8734
8735 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
8736 self->ops->fixup if it isn't NULL.
8737 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
8738 (struct arm_get_next_pcs_ops) <fixup>: New field.
8739 * arch/arm-linux.c: Include common-regcache.h and
8740 arch/arm-get-next-pcs.h.
8741 (arm_linux_get_next_pcs_fixup): New function.
8742 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
8743 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
8744 it with arm_linux_get_next_pcs_fixup.
8745 (arm_linux_software_single_step): Move code to
8746 arm_linux_get_next_pcs_fixup.
8747 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
8748
d21b5f15
MK
87492016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8750
8751 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
8752 and return NULL.
8753
33b4777c
MM
87542016-02-12 Markus Metzger <markus.t.metzger@intel.com>
8755
8756 * frame.h (skip_tailcall_frames): Update comment.
8757 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
8758 if only artificial frames are found. Update comment.
8759 (frame_unwind_caller_id): Handle NULL return.
8760 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
8761 skip_artificial_frames does not return NULL.
8762 (frame_pop): Add an error if only tailcall frames are found.
8763 * infcmd.c (finish_command): Move skip_tailcall_frames call into
8764 forward-execution case. Add an error if only tailcall frames are
8765 found.
8766
a038fa3e
MM
87672016-02-12 Markus Metzger <markus.t.metzger@intel.com>
8768
8769 * stack.c (frame_info): Check frame_unwind_caller_id.
8770
2f3ef606
MM
87712016-02-12 Markus Metzger <markus.t.metzger@intel.com>
8772
8773 * frame.h (skip_tailcall_frames): New.
8774 * frame.c (skip_tailcall_frames): New.
8775 (frame_pop): Call skip_tailcall_frames.
8776 * infcmd.c (finish_command): Call skip_tailcall_frames.
8777
e352bf0a
PA
87782016-02-11 Pedro Alves <palves@redhat.com>
8779
8780 * Makefile.in (check-parallel): New rule.
8781
bec2ab5a
SM
87822016-02-11 Simon Marchi <simon.marchi@ericsson.com>
8783
8784 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
8785 (arm_analyze_prologue): Likewise.
8786 (arm_scan_prologue): Likewise.
8787 (arm_m_exception_prev_register): Likewise.
8788 (arm_copy_block_xfer): Likewise.
8789 (thumb2_copy_block_xfer): Likewise.
8790 (arm_decode_miscellaneous): Likewise.
8791 (arm_decode_ld_st_word_ubyte): Likewise.
8792 (arm_decode_svc_copro): Likewise.
8793 (thumb2_decode_svc_copro): Likewise.
8794 (thumb_copy_16bit_ldr_literal): Likewise.
8795 (thumb_copy_pop_pc_16bit): Likewise.
8796 (decode_thumb_32bit_ld_mem_hints): Likewise.
8797 (arm_show_force_mode): Likewise.
8798 (_initialize_arm_tdep): Likewise.
8799 (arm_record_strx): Likewise.
8800 (arm_record_extension_space): Likewise.
8801 (arm_record_data_proc_misc_ld_str): Likewise.
8802 (arm_record_exreg_ld_st_insn): Likewise.
8803 (arm_record_vfp_data_proc_insn): Likewise.
8804 (arm_record_coproc_data_proc): Likewise.
8805 (thumb_record_misc): Likewise.
8806 (thumb_record_ldm_stm_swi): Likewise.
8807 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
8808 (thumb2_record_ld_mem_hints): Likewise.
8809 (thumb2_record_lmul_lmla_div): Likewise.
8810 (thumb2_record_asimd_struct_ld_st): Likewise.
8811 (arm_process_record): Likewise.
8812
2ba163c8
SM
88132016-02-11 Simon Marchi <simon.marchi@ericsson.com>
8814
8815 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
8816 (ARM displaced stepping support): Remove reference to
8817 arm_displaced_step_copy_insn in comment.
8818 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
8819 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
8820 reference to arm_displaced_step_copy_insn in comment.
8821
615234c1
SM
88222016-02-11 Simon Marchi <simon.marchi@ericsson.com>
8823
8824 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
8825 (thumb_copy_b): Likewise.
8826 (arm_decode_b_bl_ldmstm): Likewise.
8827 (thumb_copy_16bit_ldr_literal): Likewise.
8828 (thumb_copy_pop_pc_16bit): Likewise.
8829
82e9becd
AT
88302016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
8831
8832 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
8833 than loc->gdbarch.
8834
5ac87a99
MK
88352016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
8836
8837 * tracefile-tfile.c (trace_tdesc): New static variable.
8838 (tfile_open): Clear trace_tdesc, call target_find_description.
8839 (tfile_interp_line): Recognize tdesc lines.
8840 (tfile_close): Clear trace_tdesc.
8841 (tfile_xfer_partial_features): New function.
8842 (tfile_xfer_partial): Call tfile_xfer_partial_features.
8843 (tfile_append_tdesc_line): New function.
8844
18d3cec5
MK
88452016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
8846
8847 * ctf.c (ctf_write_tdesc): New function.
8848 (ctf_write_ops): Wire in ctf_write_tdesc.
8849 * tracefile-tfile.c (tfile_write_tdesc): New function.
8850 (tfile_write_ops): Wire in tfile_write_tdesc.
8851 * tracefile.c (trace_save): Call write_tdesc method.
8852 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
8853 * xml-tdesc.c (target_fetch_description_xml): New function.
8854 * xml-tdesc.h: Add target_fetch_description_xml prototype.
8855
550dc4e2
SM
88562016-02-10 Simon Marchi <simon.marchi@ericsson.com>
8857
8858 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
8859 (arm_decode_dp_misc): Likewise.
8860
62e5fd57
MK
88612016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
8862
8863 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
8864 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
8865 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
8866 misleading comment.
8867 (i386_pseudo_register_write): Ditto.
8868 (i386_ax_pseudo_register_collect): New function.
8869 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
8870 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
8871
e909d859
MK
88722016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
8873
8874 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
8875 instead of gdb order.
8876
473b99e5
MK
88772016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
8878
8879 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
8880 check.
8881
1233c0ba
JB
88822016-02-10 Joel Brobecker <brobecker@adacore.com>
8883
8884 * NEWS: Create a new section for the next release branch.
8885 Rename the section of the current branch, now that it has
8886 been cut.
8887
d1dc0942
JB
88882016-02-10 Joel Brobecker <brobecker@adacore.com>
8889
8890 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
8891 * version.in: Bump version to 7.11.50.DATE-git.
8892
9ef9e6a6
KS
88932016-02-09 Keith Seitz <keiths@redhat.com>
8894
8895 PR breakpoints/19546
8896 * breakpoint.c (breakpoint_event_location_empty_p): New function.
8897 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
8898 instead of event_location_empty_p.
8899
39a67dc4
KS
89002016-02-09 Keith Seitz <keiths@redhat.com>
8901
8902 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
8903 string_to_event_location_basic instead of string_to_event_location.
8904
a96e36da
KS
89052016-02-09 Keith Seitz <keiths@redhat.com>
8906
8907 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
8908 leading whitespace and use string_to_event_location_basic instead
8909 of new_linespec_location.
8910
9f61929f
KS
89112016-02-09 Keith Seitz <keiths@redhat.com>
8912
8913 PR python/19506
8914 * python/py-breakpoint.c (bppy_init): Use
8915 string_to_event_location_basic instead of new_linespec_location.
8916
eeb1af43
KS
89172016-02-09 Keith Seitz <keiths@redhat.com>
8918
8919 * location.c (string_to_explicit_location): Note that "-p" is
8920 reserved for probe locations and return NULL for any input
8921 that starts with that.
8922 (string_to_event_location): Move "legacy" linespec code to ...
8923 (string_to_event_location_basic): ... here.
8924 * location.h (string_to_event_location): Update comment.
8925 (string_to_event_location_basic): New function.
8926
1e94266c
SM
89272016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8928
8929 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8930 to AC_OUTPUT. Remove "exit 0" at the end.
8931 * configure: Regenerate.
8932
2a7f3dff
PA
89332016-02-09 Pedro Alves <palves@redhat.com>
8934
8935 PR breakpoints/19548
8936 * breakpoint.c (create_overlay_event_breakpoint): Don't update
8937 global location list here.
8938 (create_longjmp_master_breakpoint)
8939 (create_std_terminate_master_breakpoint)
8940 (create_exception_master_breakpoint, create_jit_event_breakpoint)
8941 (update_breakpoint_locations):
8942 (breakpoint_re_set): Update global location list after all
8943 breakpoints are re-set.
8944
54887903
SM
89452016-02-08 Simon Marchi <simon.marchi@ericsson.com>
8946
8947 * remote.c (remote_register_number_and_offset): Remove unused
8948 variable(s).
8949 (remote_thread_always_alive): Likewise.
8950 (remote_update_thread_list): Likewise.
8951 (process_initial_stop_replies): Likewise.
8952 (remote_start_remote): Likewise.
8953 (remote_check_symbols): Likewise.
8954 (discard_pending_stop_replies): Likewise.
8955 (process_stop_reply): Likewise.
8956 (putpkt_binary): Likewise.
8957 (getpkt): Likewise.
8958 (remote_add_target_side_condition): Likewise.
8959 (remote_insert_breakpoint): Likewise.
8960 (remote_supports_stopped_by_sw_breakpoint): Likewise.
8961 (remote_supports_stopped_by_hw_breakpoint): Likewise.
8962 (remote_xfer_partial): Likewise.
8963 (remote_read_btrace): Likewise.
8964 (remote_async_serial_handler): Likewise.
8965 (remote_thread_events): Likewise.
8966 (_initialize_remote): Likewise.
8967
30914ca8
SM
89682016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
8969
8970 * varobj.h (varobj_delete): Remove dellist parameter, update and
8971 move documentation here.
8972 * varobj.c (struct cpstack, cppush, cppop): Remove.
8973 (delete_variable): Remove resultp (first) parameter.
8974 (delete_variable_1): Likewise.
8975 (varobj_delete): Remove dellist parameter and unused code.
8976 (update_dynamic_varobj_children): Adjust varobj_delete call.
8977 (update_type_if_necessary): Likewise.
8978 (varobj_set_visualizer): Likewise.
8979 (varobj_update): Likewise.
8980 (value_of_root): Likewise.
8981 (varobj_invalidate_iter): Likewise.
8982 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
8983
e42e5352
YQ
89842016-02-04 Yao Qi <yao.qi@linaro.org>
8985
8986 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
8987 0 before handling 'F' and set it back afterwards.
8988
6456a18b
SM
89892016-02-02 Simon Marchi <simon.marchi@ericsson.com>
8990
8991 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
8992
3f2f6cb5
WT
89932016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8994
8995 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
8996 New types.
8997 (compat_siginfo): New bound fields added.
8998 (compat_x32_siginfo): New field added.
8999 (cpt_si_addr_lsb): New define.
9000 (compat_siginfo_from_siginfo): Use nat_siginfo.
9001 (siginfo_from_compat_siginfo): Use nat_siginfo.
9002 (compat_x32_siginfo_from_siginfo): Likewise.
9003 (siginfo_from_compat_x32_siginfo): Likewise.
9004
96b5c49f
WT
90052016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9006
9007 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
9008 structure to the siginfo if extra_fields contains
9009 LINUX_SIGINFO_FIELD_ADDR_BND.
9010
190b495d
WT
90112016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9012
9013 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
9014 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
9015 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
9016 function.
9017 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
9018 x86_linux_get_siginfo_type for the amd64 abi.
9019 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
9020 function.
9021 (i386_linux_init_abi): Add new function at the i386 ABI
9022 initialization.
9023
43564574
WT
90242016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9025
9026 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
9027 (linux_siginfo_extra_fields): New enum type.
9028 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
9029 (linux_get_siginfo_type): Use new function.
9030
93813b37
WT
90312016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9032
9033 * nat/amd64-linux-siginfo.c: New file.
9034 * nat/amd64-linux-siginfo.h: New file.
9035 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
9036 (amd64-linux-siginfo.o): New rule.
9037 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
9038 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
9039 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9040 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9041 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9042 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9043 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9044 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
9045
5fdf6324
AB
90462016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
9047
9048 * value.c (max_value_size): New variable.
9049 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
9050 (set_max_value_size): New function.
9051 (show_max_value_size): New function.
9052 (check_type_length_before_alloc): New function.
9053 (allocate_value_contents): Call check_type_length_before_alloc.
9054 (set_value_enclosing_type): Likewise.
9055 (_initialize_values): Add set/show handler for max-value-size.
9056 * NEWS: Mention new set/show command.
9057
5fa13070
SM
90582016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
9059
9060 * varobj.h (struct varobj): Fix typos in comments.
9061 (struct lang_varobj_ops): Likewise.
9062 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
9063 (varobj_create): Move misplaced comment.
9064
a2e3e93f
SM
90652016-01-29 Simon Marchi <simon.marchi@ericsson.com>
9066
9067 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
9068 to for include additional lines.
9069 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
9070
56e374a6
SM
90712016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9072
9073 * gnulib/import/Makefile.am: Regenerate.
9074 * gnulib/import/Makefile.in: Regenerate.
9075 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
9076 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
9077
8424cc97
SM
90782016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9079
9080 * remote.c (skip_to_semicolon): Remove.
9081 (remote_parse_stop_reply): Use strchrnul instead of
9082 skip_to_semicolon.
9083 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
9084 strchrnul.
9085 * gnulib/aclocal.m4: Regenerate.
9086 * gnulib/config.in: Regenerate.
9087 * gnulib/configure: Regenerate.
9088 * gnulib/import/Makefile.am: Regenerate.
9089 * gnulib/import/Makefile.in: Regenerate.
9090 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
9091 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
9092 * gnulib/import/m4/rawmemchr.m4: New file.
9093 * gnulib/import/m4/strchrnul.m4: New file.
9094 * gnulib/import/rawmemchr.c: New file.
9095 * gnulib/import/rawmemchr.valgrind: New file.
9096 * gnulib/import/strchrnul.c: New file.
9097 * gnulib/import/strchrnul.valgrind: New file.
9098
4a6a1ed4
YQ
90992016-01-28 Yao Qi <yao.qi@linaro.org>
9100
9101 * breakpoint.c (build_target_command_list): Don't call continue
9102 if aexpr is NULL.
9103 (build_target_condition_list): Likewise.
9104
94715c17
KB
91052016-01-27 Kevin Buettner <kevinb@redhat.com>
9106
9107 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
9108 bytes as aggregates.
9109
c07af0ab
JB
91102016-01-27 Joel Brobecker <brobecker@adacore.com>
9111
9112 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
9113 Linespec Maintainers.
9114
41548caa
SM
91152016-01-26 Simon Marchi <simon.marchi@ericsson.com>
9116
9117 * common/common-utils.c (skip_spaces): Fix comment.
9118 (skip_to_space_const): Likewise.
9119
4d18591b
YQ
91202016-01-25 Yao Qi <yao.qi@linaro.org>
9121
9122 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9123 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
9124 (arm_deal_with_atomic_sequence_raw): Likewise.
9125 (thumb_get_next_pcs_raw): Likewise.
9126 (arm_get_next_pcs_raw): Likewise.
9127 (arm_get_next_pcs): Remove argument pc. Callers updated.
9128 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
9129
a579cd9a
MW
91302016-01-25 Mark Wielaard <mjw@redhat.com>
9131
9132 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
9133 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
9134 if statement.
9135 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
9136 statement block by introducing an else.
9137 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
9138 of return statements.
9139 (record_linux_msghdr): Likewise.
9140
a2077e25
PA
91412016-01-25 Pedro Alves <palves@redhat.com>
9142
9143 PR threads/19461
9144 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
9145 parent/child running states.
9146
1d2736d4
PA
91472016-01-25 Pedro Alves <palves@redhat.com>
9148
9149 PR gdb/19494
9150 * linux-nat.c (kill_one_lwp): New, factored out from ...
9151 (kill_callback): ... this.
9152 (kill_wait_callback): New, factored out from ...
9153 (kill_wait_one_lwp): ... this.
9154 (kill_unfollowed_fork_children): New function.
9155 (linux_nat_kill): Use it.
9156
b2bae2f7
JB
91572016-01-22 John Baldwin <jhb@FreeBSD.org>
9158
9159 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
9160
d86feca3
YQ
91612016-01-22 Yao Qi <yao.qi@linaro.org>
9162
9163 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
9164 instead of warning.
9165 (store_fpregs, fetch_regs, store_regs): Likewise.
9166 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
9167 (fetch_vfp_regs, store_vfp_regs): Likewise.
9168
b35a8b2f
DE
91692016-01-21 Doug Evans <dje@google.com>
9170
9171 * breakpoint.c (init_breakpoint_sal): Add comment.
9172
f906b857
MK
91732016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
9174
9175 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
9176
4a099de2
AB
91772016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9178
9179 * disasm.c (maybe_add_dis_line_entry): Rename to...
9180 (add_dis_line_entry): ...this, and update header comment.
9181 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
9182
a994041d
PA
91832016-01-21 Pedro Alves <palves@redhat.com>
9184
9185 * Makefile.in (COMPILER_CFLAGS): New.
9186 (CXXFLAGS): Get it from configure.
9187 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
9188 instead of CFLAGS.
9189 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
9190 COMPILER_CFLAGS.
9191 * configure: Regenerate.
9192
305e13e6
JB
91932016-01-21 Joel Brobecker <brobecker@adacore.com>
9194
9195 * location.h (new_address_location): Add new parameters
9196 "addr_string" and "addr_string_len".
9197 (get_address_string_location): Add declaration.
9198 * location.c (new_address_location): Add new parameters
9199 "addr_string" and "addr_string_len". If not NULL, store
9200 a copy of the addr_string in the new location as well.
9201 (get_address_string_location): New function.
9202 (string_to_event_location): Update call to new_address_location.
9203 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
9204 Save the event location in the parser's state before
9205 passing it to convert_address_location_to_sals.
9206 * breakpoint.c (create_thread_event_breakpoint): Update call
9207 to new_address_location.
9208 (init_breakpoint_sal): Get the event location's string, if any,
9209 and use it to update call to new_address_location.
9210 * python/py-finishbreakpoint.c (bpfinishpy_init):
9211 Update call to new_address_location.
9212 * spu-tdep.c (spu_catch_start): Likewise.
9213
9214 * config/djgpp/fnchange.lst: Add entries for
9215 gdb/testsuite/gdb.base/break-fun-addr1.c and
9216 gdb/testsuite/gdb.base/break-fun-addr2.c.
9217
f7a6a40d
YQ
92182016-01-21 Yao Qi <yao.qi@linaro.org>
9219
9220 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
9221 is_thumb and set it according to CPSR saved on the stack.
9222 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
9223 arm_linux_sigreturn_next_pc.
9224
5f5dfff6
SM
92252016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
9226
9227 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
9228 Fix enumerators sort key function.
9229
be56871e
JB
92302016-01-20 Joel Brobecker <brobecker@adacore.com>
9231
b12e5614 9232 * printcmd.c (print_scalar_formatted): Move binary operator from
be56871e
JB
9233 end of line to beginning of next line. Adjust formatting
9234 accordingly.
9235
f2feec98
JB
92362016-01-19 John Baldwin <jhb@FreeBSD.org>
9237
9238 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
9239 "len" with sysctl.
9240
20a0aab3
JB
92412016-01-19 John Baldwin <jhb@FreeBSD.org>
9242
9243 * fbsd-tdep.c (find_stop_signal): Remove.
9244 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
9245 <stop_signal>: New field.
9246 <abort_iteration>: New field.
9247 (fbsd_collect_regset_section_cb): Use new fields.
9248 (fbsd_collect_thread_registers): New function.
9249 (struct fbsd_corefile_thread_data): New structure.
9250 (fbsd_corefile_thread): New function.
9251 (fbsd_make_corefile_notes): Use new function to dump notes for each
9252 non-exited thread in a process.
9253
6e9567fe
JB
92542016-01-19 John Baldwin <jhb@FreeBSD.org>
9255
9256 * configure.ac: Check for support for LWP names on FreeBSD.
9257 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
9258 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
9259 (fbsd_fetch_kinfo_proc): Move function earlier.
9260 [PT_LWPINFO] (fbsd_thread_alive): New function.
9261 [PT_LWPINFO] (fbsd_pid_to_str): New function.
9262 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
9263 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
9264 [PT_LWPINFO] (fbsd_add_threads): New function.
9265 [PT_LWPINFO] (fbsd_update_thread_list): New function.
9266 [PT_LWPINFO] New variable super_resume.
9267 [PT_LWPINFO] (resume_one_thread_cb): New function.
9268 [PT_LWPINFO] (resume_all_threads_cb): New function.
9269 [PT_LWPINFO] (fbsd_resume): New function.
9270 (fbsd_remember_child): Save full ptid instead of plain pid.
9271 (fbsd_is_child_pending): Return ptid of saved child process.
9272 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
9273 first stop.
9274 [PT_LWP_EVENTS] Handle LWP events.
9275 [TDP_RFPPWAIT] Include LWP in child ptid.
9276 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
9277 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
9278 Add threads for existing processes.
9279 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
9280 "fbsd_thread_alive".
9281 Set "to_pid_to_str" to "fbsd_pid_to_str".
9282 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
9283 "fbsd_thread_name".
9284 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
9285 Set "to_has_thread_control" to "tc_schedlock".
9286 Set "to_resume" to "fbsd_resume".
9287 (_initialize_fbsd_nat): New function.
9288 * configure: Regenerate.
9289 * config.in: Regenerate.
9290
94309df7
JB
92912016-01-19 John Baldwin <jhb@FreeBSD.org>
9292
9293 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9294 get_ptrace_pid.
9295 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
9296 (amd64bsd_dr_get): Use get_ptrace_pid.
9297 (amd64bsd_dr_set): Use get_ptrace_pid.
9298 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
9299 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
9300 (i386bsd_dr_get): Use get_ptrace_pid.
9301 (i386bsd_dr_set): Use get_ptrace_pid.
9302 * inf-ptrace.c (get_ptrace_pid): Export.
9303 * inf-ptrace.h (get_ptrace_pid): Declare.
9304 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
9305 (ppcfbsd_store_inferior_registers): Use lwp id.
9306
79117428
JB
93072016-01-19 John Baldwin <jhb@FreeBSD.org>
9308
9309 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
9310 (fbsd_core_thread_name): New function.
9311 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
9312 Add "core_thread_name" gdbarch method.
9313
4dfc5dbc
JB
93142016-01-19 John Baldwin <jhb@FreeBSD.org>
9315
9316 * corelow.c (core_thread_name): New function.
9317 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
9318 target op.
9319 * gdbarch.sh (core_thread_name): New gdbarch callback.
9320 * gdbarch.h: Re-generate.
9321 * gdbarch.c: Re-generate.
9322
10e3ed90
SM
93232016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9324
9325 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
9326 convert gdb.Value to integer type using int().
9327
a6e69c1f
JB
93282016-01-19 John Baldwin <jhb@FreeBSD.org>
9329
9330 * configure.ac: Include <sys/types.h when checking for "r_fs" in
9331 "struct reg".
9332 * configure: Regenerate.
9333
37e42b4f
PA
93342016-01-19 Pedro Alves <palves@redhat.com>
9335
9336 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
9337 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
9338 current program space down to linespec decoding and breakpoint
9339 location updating.
9340 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
9341 decode_line_full.
9342 (until_break_command): Adjust calls to decode_line_1.
9343 (base_breakpoint_decode_location, bkpt_decode_location): Add
9344 'search_pspace' parameter. Pass it along.
9345 (bkpt_probe_create_sals_from_location): Adjust calls to
9346 parse_probes.
9347 (tracepoint_decode_location, tracepoint_probe_decode_location)
9348 (strace_marker_decode_location): Add 'search_pspace' parameter.
9349 Pass it along.
9350 (all_locations_are_pending): Rewrite to take a breakpoint and
9351 program space as arguments instead.
9352 (hoist_existing_locations): New function.
9353 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
9354 hoist_existing_locations instead of always removing all locations,
9355 and adjust to all_locations_are_pending change.
9356 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
9357 Don't disable the breakpoint if there are other locations in
9358 another program space.
9359 (breakpoint_re_set_default): Adjust to pass down the current
9360 program space as filter program space.
9361 (decode_location_default): Add 'search_pspace' parameter and pass
9362 it along.
9363 (prepare_re_set_context): Don't switch program space here.
9364 (breakpoint_re_set): Use save_current_space_and_thread instead of
9365 save_current_program_space.
9366 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
9367 'search_pspace' parameter.
9368 (update_breakpoint_locations): Add 'filter_pspace' parameter.
9369 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
9370 decode_line_1.
9371 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
9372 program space as filter program space.
9373 * linespec.c (struct linespec_state) <search_pspace>: New field.
9374 (create_sals_line_offset, convert_explicit_location_to_sals)
9375 (parse_linespec): Pass the search program space down.
9376 (linespec_state_constructor): Add 'search_pspace' parameter.
9377 Store it.
9378 (linespec_parser_new): Add 'search_pspace' parameter and pass it
9379 along.
9380 (linespec_lex_to_end): Adjust.
9381 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
9382 and pass it along.
9383 (decode_line_with_last_displayed): Adjust.
9384 (collect_symtabs_from_filename, symtabs_from_filename): New
9385 'search_pspace' parameter. Use it.
9386 (find_function_symbols): Pass the search program space down.
9387 * linespec.h (decode_line_1, decode_line_full): Add
9388 'search_pspace' parameter.
9389 * probe.c (parse_probes_in_pspace): New function, factored out
9390 from ...
9391 (parse_probes): ... this. Add 'search_pspace' parameter and use
9392 it.
9393 * probe.h (parse_probes): Add pspace' parameter.
9394 * python/python.c (gdbpy_decode_line): Adjust.
9395 * tracepoint.c (scope_info): Adjust.
9396
100b4f2e
MR
93972016-01-18 Maciej W. Rozycki <macro@imgtec.com>
9398
9399 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
9400 instruction support.
9401 (micromips_next_pc): Likewise.
9402 (micromips_scan_prologue): Likewise.
9403 (micromips_deal_with_atomic_sequence): Likewise.
9404 (micromips_stack_frame_destroyed_p): Likewise.
9405 (mips_breakpoint_from_pc): Likewise.
9406
3f7f3650
MR
94072016-01-18 Maciej W. Rozycki <macro@imgtec.com>
9408
9409 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
9410 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
9411
f303dbd6
PA
94122016-01-18 Pedro Alves <palves@redhat.com>
9413
9414 * NEWS: Mention that GDB now displays the ID and name of the
9415 thread that hit a breakpoint or received a signal.
9416 * break-catch-sig.c (signal_catchpoint_print_it): Use
9417 maybe_print_thread_hit_breakpoint.
9418 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9419 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
9420 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
9421 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
9422 (print_it_catch_exec, print_it_ranged_breakpoint)
9423 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
9424 Use maybe_print_thread_hit_breakpoint.
9425 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
9426 * gdbthread.h (show_thread_that_caused_stop): Declare.
9427 * infrun.c (print_signal_received_reason): Print which thread
9428 received signal.
9429 * thread.c (show_thread_that_caused_stop): New function.
9430
eb0edac8
GB
94312016-01-18 Gary Benson <gbenson@redhat.com>
9432
9433 * nat/linux-namespaces.c (do_fork): New function.
9434 (linux_mntns_get_helper): Use the above.
9435
dc365182
JH
94362016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
9437
9438 Pushed by Joel Brobecker <brobecker@adacore.com>.
9439 PR gdb/19208
9440 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
9441 if the function has no name.
9442
f74f61cb
SL
94432016-01-15 Sandra Loosemore <sandra@codesourcery.com>
9444
9445 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
9446 Conditionalize for Windows host.
9447 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
9448 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
9449 (phony_iconv_open): Handle both UTF-32 endiannesses.
9450 (phony_iconv): Likewise. Check for output overflow and clean up
9451 out-of-input cases. Correct adjustment to input buffer pointer.
9452 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
9453 phony_iconv_open.
9454
71ef29a8
PA
94552016-01-15 Pedro Alves <palves@redhat.com>
9456
9457 * NEWS: Mention star wildcard ranges.
9458 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
9459 (number_range_setup_range): New function.
9460 * cli/cli-utils.h (number_range_setup_range): New declaration.
9461 * thread.c (thread_apply_command): Support star TID ranges.
9462 * tid-parse.c (tid_range_parser_finished)
9463 (tid_range_parser_string, tid_range_parser_skip)
9464 (get_tid_or_range, get_tid_or_range): Handle
9465 TID_RANGE_STATE_STAR_RANGE.
9466 (tid_range_parser_star_range): New function.
9467 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
9468 New value.
9469 (tid_range_parser_star_range): New declaration.
9470
3f5b7598
PA
94712016-01-15 Pedro Alves <palves@redhat.com>
9472
9473 * thread.c (thread_apply_command): Use the tid range parser to
9474 advance past the thread ID list.
9475 * tid-parse.c (get_positive_number_trailer): New function.
9476 (parse_thread_id): Use it.
9477 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
9478 thread ID error.
9479 (get_tid_or_range): Detect negative values. Return 0 instead of
9480 throwing invalid thread ID error.
9481
e7cf25a8
YQ
94822016-01-14 Yao Qi <yao.qi@linaro.org>
9483
9484 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
9485 Declare.
9486 (arm_linux_get_next_pcs_ops): Install
9487 arm_linux_get_next_pcs_syscall_next_pc.
9488 (arm_linux_syscall_next_pc): Change to ...
9489 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
9490 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
9491 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
9492 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
9493 call tdep->syscall_next_pc.
9494 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
9495 (arm_get_next_pcs_syscall_next_pc): Remove.
9496
c0518081
YQ
94972016-01-14 Yao Qi <yao.qi@linaro.org>
9498
9499 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
9500 * thread.c (do_captured_thread_select): Cast to const char *.
9501
1b451dda
YQ
95022016-01-14 Yao Qi <yao.qi@linaro.org>
9503
9504 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
9505 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
9506 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
9507 instead.
9508 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
9509 <arm_thumb2_breakpoint>: Remove.
9510 <has_thumb2_breakpoint>: New field.
9511 (arm_get_next_pcs_ctor): Update declaration.
9512 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
9513 1 to arm_get_next_pcs_ctor.
9514 * arm-tdep.c (arm_software_single_step): Pass 0 to
9515 arm_get_next_pcs_ctor.
9516
bc06e0b1
UW
95172016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
9518
9519 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
9520
4e7b8bea
YQ
95212016-01-13 Yao Qi <yao.qi@linaro.org>
9522
9523 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
9524 byte_order_for_code to read instruction.
9525
663f6d42
PA
95262016-01-13 Pedro Alves <palves@redhat.com>
9527
9528 * NEWS: Mention $_gthread.
9529 * gdbthread.h (struct thread_info) <global_num>: Mention
9530 $_gthread.
9531 * thread.c (thread_num_make_value_helper): New function.
9532 (thread_id_make_value): Delete.
9533 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
9534 New.
9535 (thread_funcs): Adjust.
9536 (gthread_funcs): New.
9537 (_initialize_thread): Register $_gthread variable.
9538
c84f6bbf
PA
95392016-01-13 Pedro Alves <palves@redhat.com>
9540
9541 * NEWS: Mention "info threads -gid".
9542 * gdbthread.h (struct thread_info) <global_num>: Mention "info
9543 threads -gid".
9544 * thread.c (info_threads_command): Handle "-gid".
9545 (_initialize_thread): Adjust "info threads" help string to mention
9546 -gid.
9547
22a02324
PA
95482016-01-13 Pedro Alves <palves@redhat.com>
9549
9550 * NEWS: Mention InferiorThread.global_num.
9551 * python/py-infthread.c (thpy_get_global_num): New function.
9552 (thread_object_getset): Register "global_num".
9553
5d5658a1
PA
95542016-01-13 Pedro Alves <palves@redhat.com>
9555
9556 * NEWS: Mention that thread IDs are now per inferior and global
9557 thread IDs.
9558 * Makefile.in (SFILES): Add tid-parse.c.
9559 (COMMON_OBS): Add tid-parse.o.
9560 (HFILES_NO_SRCDIR): Add tid-parse.h.
9561 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
9562 * breakpoint.c (insert_breakpoint_locations)
9563 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
9564 (print_one_breakpoint_location, set_longjmp_breakpoint)
9565 (check_longjmp_breakpoint_for_call_dummy)
9566 (set_momentary_breakpoint): Adjust to use global IDs.
9567 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
9568 (until_break_command, longjmp_bkpt_dtor)
9569 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
9570 to use global IDs.
9571 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
9572 ptid_to_global_thread_id.
9573 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9574 * gdbthread.h (struct thread_info): Rename field 'num' to
9575 'global_num. Add new fields 'per_inf_num' and 'inf'.
9576 (thread_id_to_pid): Rename thread_id_to_pid to
9577 global_thread_id_to_ptid.
9578 (pid_to_thread_id): Rename to ...
9579 (ptid_to_global_thread_id): ... this.
9580 (valid_thread_id): Rename to ...
9581 (valid_global_thread_id): ... this.
9582 (find_thread_id): Rename to ...
9583 (find_thread_global_id): ... this.
9584 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
9585 (print_thread_info): Add comment.
9586 * tid-parse.h: New file.
9587 * tid-parse.c: New file.
9588 * infcmd.c (step_command_fsm_prepare)
9589 (step_command_fsm_should_stop): Adjust to use the global thread
9590 ID.
9591 (until_next_command, until_next_command)
9592 (finish_command_fsm_should_stop): Adjust to use the global thread
9593 ID.
9594 (attach_post_wait): Adjust to check the inferior number too.
9595 * inferior.h (struct inferior) <highest_thread_num>: New field.
9596 * infrun.c (handle_signal_stop)
9597 (insert_exception_resume_breakpoint)
9598 (insert_exception_resume_from_probe): Adjust to use the global
9599 thread ID.
9600 * record-btrace.c (record_btrace_open): Use global thread IDs.
9601 * remote.c (process_initial_stop_replies): Also consider the
9602 inferior number.
9603 * target.c (target_pre_inferior): Clear the inferior's highest
9604 thread num.
9605 * thread.c (clear_thread_inferior_resources): Adjust to use the
9606 global thread ID.
9607 (new_thread): New inferior parameter. Adjust to use it. Set both
9608 the thread's global ID and the thread's per-inferior ID.
9609 (add_thread_silent): Adjust.
9610 (find_thread_global_id): New.
9611 (find_thread_id): Make static. Adjust to rename.
9612 (valid_thread_id): Rename to ...
9613 (valid_global_thread_id): ... this.
9614 (pid_to_thread_id): Rename to ...
9615 (ptid_to_global_thread_id): ... this.
9616 (thread_id_to_pid): Rename to ...
9617 (global_thread_id_to_ptid): ... this. Adjust.
9618 (first_thread_of_process): Adjust.
9619 (do_captured_list_thread_ids): Adjust to use global thread IDs.
9620 (should_print_thread): New function.
9621 (print_thread_info): Rename to ...
9622 (print_thread_info_1): ... this, and add new show_global_ids
9623 parameter. Handle it. Iterate over inferiors.
9624 (print_thread_info): Reimplement as wrapper around
9625 print_thread_info_1.
9626 (show_inferior_qualified_tids): New function.
9627 (print_thread_id): Use it.
9628 (tp_array_compar): Compare inferior numbers too.
9629 (thread_apply_command): Use tid_range_parser.
9630 (do_captured_thread_select): Use parse_thread_id.
9631 (thread_id_make_value): Adjust.
9632 (_initialize_thread): Adjust "info threads" help string.
9633 * varobj.c (struct varobj_root): Update comment.
9634 (varobj_create): Adjust to use global thread IDs.
9635 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
9636 * windows-tdep.c (display_tib): No longer accept an argument.
9637 * cli/cli-utils.c (get_number_trailer): Make extern.
9638 * cli/cli-utils.h (get_number_trailer): Declare.
9639 (get_number_const): Adjust documentation.
9640 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
9641 thread IDs.
9642 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
9643 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
9644 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
9645 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
9646 Likewise.
9647 * python/py-breakpoint.c (bppy_set_thread): Likewise.
9648 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
9649 * python/py-infthread.c (thpy_get_num): Add comment and return the
9650 per-inferior thread ID.
9651 (thread_object_getset): Update comment of "num".
9652
43792cf0
PA
96532016-01-13 Pedro Alves <palves@redhat.com>
9654
9655 * breakpoint.c (remove_threaded_breakpoints)
9656 (print_one_breakpoint_location): Use print_thread_id.
9657 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9658 (btrace_fetch, btrace_clear): Use print_thread_id.
9659 * common/print-utils.c (CELLSIZE): Delete.
9660 (get_cell): Rename to ...
9661 (get_print_cell): ... this and made extern. Adjust call callers.
9662 Adjust to use PRINT_CELL_SIZE.
9663 * common/print-utils.h (get_print_cell): Declare.
9664 (PRINT_CELL_SIZE): New.
9665 * gdbthread.h (print_thread_id): Declare.
9666 * infcmd.c (signal_command): Use print_thread_id.
9667 * inferior.c (print_inferior): Use print_thread_id.
9668 * infrun.c (handle_signal_stop)
9669 (insert_exception_resume_breakpoint)
9670 (insert_exception_resume_from_probe)
9671 (print_signal_received_reason): Use print_thread_id.
9672 * record-btrace.c (record_btrace_info)
9673 (record_btrace_resume_thread, record_btrace_cancel_resume)
9674 (record_btrace_step_thread, record_btrace_wait): Use
9675 print_thread_id.
9676 * thread.c (thread_apply_all_command): Use print_thread_id.
9677 (print_thread_id): New function.
9678 (thread_apply_command): Use print_thread_id.
9679 (thread_command, thread_find_command, do_captured_thread_select):
9680 Use print_thread_id.
9681
84654457
PA
96822016-01-13 Pedro Alves <palves@redhat.com>
9683
9684 * NEWS: Mention InferiorThread.inferior.
9685 * python/py-infthread.c (thpy_get_inferior): New.
9686 (thread_object_getset): Register "inferior".
9687
e3940304
PA
96882016-01-13 Pedro Alves <palves@redhat.com>
9689
9690 * NEWS: Mention $_inferior.
9691 * inferior.c (inferior_id_make_value): New.
9692 (inferior_funcs): New.
9693 (_initialize_inferior): Create $_inferior variable.
9694
a911d87a
PA
96952016-01-13 Pedro Alves <palves@redhat.com>
9696
9697 PR breakpoints/19388
9698 * frame.c (get_current_frame): Use validate_registers_access.
9699 * gdbthread.h (validate_registers_access): Declare.
9700 * infrun.c (validate_siginfo_access): Delete.
9701 (siginfo_value_read, siginfo_value_write): Use
9702 validate_registers_access.
9703 * thread.c (validate_registers_access): New function.
9704
82075af2
JS
97052016-01-12 Josh Stone <jistone@redhat.com>
9706 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9707
9708 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
9709 syscall_entry and syscall_return stop reasons. Mention GDB
9710 support for remote catch syscall.
9711 * remote.c (PACKET_QCatchSyscalls): New enum.
9712 (remote_set_syscall_catchpoint): New function.
9713 (remote_protocol_features): New element for QCatchSyscalls.
9714 (remote_parse_stop_reply): Parse syscall_entry/return stops.
9715 (init_remote_ops): Install remote_set_syscall_catchpoint.
9716 (_initialize_remote): Config QCatchSyscalls.
9717 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
9718
d18547d8
YQ
97192016-01-12 Yao Qi <yao.qi@linaro.org>
9720
9721 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
9722 to gdb_byte * and pass to linux_fork_to_function.
9723
ba4dd7c4
YQ
97242016-01-12 Yao Qi <yao.qi@linaro.org>
9725
9726 * nat/linux-ptrace.c (linux_fork_to_function): Change type
9727 of argument 'function'.
9728 (linux_grandchild_function): Change return type to 'int'.
9729 Change child_stack's type to 'void *'.
9730 (linux_child_function): Likewise.
9731
bc504a31
PA
97322016-01-12 Pedro Alves <palves@redhat.com>
9733
9734 Remove use of the registered trademark symbol throughout.
9735
5eddd578
TS
97362016-01-12 Thomas Schwinge <thomas@codesourcery.com>
9737
9738 * reply_mig_hack.awk: Rewrite one regular expression.
9739
b835bb52
MF
97402016-01-11 Mike Frysinger <vapier@gentoo.org>
9741
9742 * acinclude.m4: Include new warning.m4 file.
9743 * configure: Regenerated.
9744 * configure.ac: Move all warning logic ...
9745 * warning.m4: ... here.
9746
2f99e8fc
YQ
97472016-01-08 Yao Qi <yao.qi@linaro.org>
9748
9749 * extension.c: Include target.h.
9750 (set_active_ext_lang): Only call install_gdb_sigint_handler,
9751 check_quit_flag, and set_quit_flag if target_terminal_is_ours
9752 returns false.
9753 (restore_active_ext_lang): Likewise.
9754 * target.c (target_terminal_is_ours): New function.
9755 * target.h (target_terminal_is_ours): Declare.
9756
5dd05630
MR
97572016-01-07 Maciej W. Rozycki <macro@imgtec.com>
9758
9759 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
9760 to `err' in the little-endian leg.
9761
f5aa3069
YQ
97622016-01-06 Yao Qi <yao.qi@linaro.org>
9763
9764 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
9765 lines below.
9766 (thumb_get_next_pcs_raw): Make it static.
9767 (arm_get_next_pcs_raw): Likewise.
9768 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
9769 declaration.
9770 (arm_get_next_pcs_raw): Likewise.
9771
bf69ad5a
MF
97722016-01-05 Mike Frysinger <vapier@gentoo.org>
9773
9774 * version.in: Change cvs to git.
9775
66750332
MF
97762016-01-05 Mike Frysinger <vapier@gentoo.org>
9777
9778 * configure.tgt (score-*-*): Delete gdb_sim assignment.
9779
976102cd
PA
97802016-01-05 Pedro Alves <palves@redhat.com>
9781
9782 PR sim/13418
9783 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
9784 the target is powerpc*.
fa89c126
PA
9785 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
9786 of WITH_SIM.
976102cd
PA
9787 * configure: Regenerate.
9788 * config.in: Regenerate.
9789
43368e1d
MM
97902016-01-04 Markus Metzger <markus.t.metzger@intel.com>
9791
9792 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
9793
32273fe6
MF
97942016-01-02 Mike Frysinger <vapier@gentoo.org>
9795
9796 * configure.tgt (powerpc*-*-*): Delete test call and
9797 always assign gdb_sim.
9798
618f726f
JB
97992016-01-01 Joel Brobecker <brobecker@adacore.com>
9800
9801 Update year range in copyright notice of all files.
9802
edd88788
JB
98032016-01-01 Joel Brobecker <brobecker@adacore.com>
9804
9805 * top.c (print_gdb_version): Change copyright year in version
9806 message.
9807
0f7b3ef4 98082016-01-01 Joel Brobecker <brobecker@adacore.com>
aec47d1d 9809
0f7b3ef4 9810 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
aec47d1d 9811
0f7b3ef4 9812For older changes see ChangeLog-2015.
c906108c
SS
9813\f
9814Local Variables:
9815mode: change-log
9816left-margin: 8
9817fill-column: 74
9818version-control: never
57da7796 9819coding: utf-8
c906108c 9820End:
This page took 2.43406 seconds and 4 git commands to generate.