Commit | Line | Data |
---|---|---|
8b061563 PA |
1 | 2015-08-07 Pedro Alves <palves@redhat.com> |
2 | ||
3 | * infrun.c (currently_stepping): Extend intro comment. | |
4 | * target.h (target_resume): Extend intro comment. | |
5 | ||
1afd5965 PA |
6 | 2015-08-07 Pedro Alves <palves@redhat.com> |
7 | ||
8 | * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead | |
9 | of inferior_ptid. If the stepped thread vanished, return 0 | |
10 | instead of resuming here. Use reset_ecs. Print the prev_pc and | |
11 | the current stop_pc in log message. Clear trap_expected if the | |
12 | thread advanced. Don't pass currently_stepping to | |
13 | do_target_resume. | |
14 | ||
4d9d9d04 PA |
15 | 2015-08-07 Pedro Alves <palves@redhat.com> |
16 | ||
17 | * gdbthread.h (struct thread_info) <prev_pc>: Extend comment. | |
18 | * infrun.c (struct execution_control_state): Move higher up in the | |
19 | file. | |
20 | (reset_ecs): New function. | |
21 | (start_step_over): Now returns int. Rewrite to use | |
22 | keep_going_pass_signal instead of manually starting a displaced step. | |
23 | (resume): Don't call set_running here. If displaced stepping | |
24 | can't start now, clear trap_expected. | |
25 | (find_thread_needs_step_over): Delete function. | |
26 | (proceed): Set up finish_thread_state_cleanup. Call set_running. | |
27 | If the current thread needs a step over, push it in the step-over | |
28 | chain. Don't set insert breakpoints nor call resume directly | |
29 | here. Instead rewrite to use start_step_over and | |
30 | keep_going_pass_signal. | |
31 | (finish_step_over): New function. | |
32 | (handle_signal_stop): Call finish_step_over instead of | |
33 | start_step_over. | |
34 | (switch_back_to_stepped_thread): If the event thread needs another | |
35 | step-over do that first. Use start_step_over. | |
36 | (keep_going_pass_signal): New function, factored out from ... | |
37 | (keep_going): ... here. | |
38 | (_initialize_infrun): Comment moved here. | |
39 | * thread.c (set_running_thread): New function. | |
40 | (set_running, finish_thread_state): Use set_running_thread. | |
41 | ||
c2829269 PA |
42 | 2015-08-07 Pedro Alves <palves@redhat.com> |
43 | ||
44 | * gdbthread.h (struct thread_info) <step_over_prev, | |
45 | step_over_next>: New fields. | |
46 | (thread_step_over_chain_enqueue, thread_step_over_chain_remove) | |
47 | (thread_step_over_chain_next, thread_is_in_step_over_chain): New | |
48 | declarations. | |
49 | * infrun.c (struct displaced_step_request): Delete. | |
50 | (struct displaced_step_inferior_state) <step_request_queue>: | |
51 | Delete field. | |
52 | (displaced_step_prepare): Assert that trap_expected is set. Use | |
53 | thread_step_over_chain_enqueue. Split starting a new displaced | |
54 | step to ... | |
55 | (start_step_over): ... this new function. | |
56 | (resume): Assert the thread isn't waiting for a step over already. | |
57 | (proceed): Assert the thread isn't waiting for a step over | |
58 | already. | |
59 | (infrun_thread_stop_requested): Adjust to remove threads from the | |
60 | embedded step-over chain. | |
61 | (handle_inferior_event) <fork/vfork>: Call start_step_over after | |
62 | displaced_step_fixup. | |
63 | (handle_signal_stop): Call start_step_over after | |
64 | displaced_step_fixup. | |
65 | * infrun.h (step_over_queue_head): New declaration. | |
66 | * thread.c (step_over_chain_enqueue, step_over_chain_remove) | |
67 | (thread_step_over_chain_next, thread_is_in_step_over_chain) | |
68 | (thread_step_over_chain_enqueue) | |
69 | (thread_step_over_chain_remove): New functions. | |
70 | (delete_thread_1): Remove thread from the step-over chain. | |
71 | ||
6c4cfb24 PA |
72 | 2015-08-07 Pedro Alves <palves@redhat.com> |
73 | ||
74 | * infrun.c (thread_still_needs_step_over): Rename to ... | |
75 | (thread_still_needs_step_over_bp): ... this. | |
76 | (enum step_over_what): New. | |
77 | (thread_still_needs_step_over): Reimplement. | |
78 | ||
567420d1 PA |
79 | 2015-08-07 Pedro Alves <palves@redhat.com> |
80 | ||
81 | * remote.c (remote_wait_as): If not waiting for a stop reply, | |
82 | return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is | |
83 | requested, don't block waiting forever. | |
84 | ||
d8dd4d5f PA |
85 | 2015-08-07 Pedro Alves <pedro@codesourcery.com> |
86 | ||
87 | * infrun.c (adjust_pc_after_break): Now takes thread_info and | |
88 | waitstatus pointers instead of an ecs. Adjust. | |
89 | (handle_inferior_event): Adjust caller. | |
90 | ||
e1316e60 PA |
91 | 2015-08-07 Pedro Alves <palves@redhat.com> |
92 | ||
93 | * infrun.c (handle_inferior_event): If we get | |
94 | TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop | |
95 | mode, mark all threads of the exiting process as not-executing. | |
96 | (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or | |
97 | TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the | |
98 | exiting process, if inferior_ptid still points at a process. | |
99 | * thread.c (struct current_thread_cleanup) <next>: New field. | |
100 | (current_thread_cleanup_chain): New global. | |
101 | (restore_current_thread_ptid_changed): New function. | |
102 | (restore_current_thread_cleanup_dtor): Remove the cleanup from the | |
103 | current_thread_cleanup_chain list. | |
104 | (make_cleanup_restore_current_thread): Add the cleanup data to the | |
105 | current_thread_cleanup_chain list. | |
106 | (_initialize_thread): Install restore_current_thread_ptid_changed | |
107 | as thread_ptid_changed observer. | |
108 | ||
47e9c225 JB |
109 | 2015-08-07 Joel Brobecker <brobecker@adacore.com> |
110 | ||
111 | * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF | |
112 | data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be | |
113 | smaller than expected. | |
114 | ||
06096720 AB |
115 | 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com> |
116 | ||
117 | * stack.c (get_frame_language): Moved ... | |
118 | * frame.c (get_frame_language): ... to here. | |
119 | * language.h (get_frame_language): Declaration moved to frame.h. | |
120 | * frame.h: Add language.h include, for language enum. | |
121 | (get_frame_language): Declaration moved from language.h. | |
122 | * language.c: Add frame.h include. | |
123 | * top.c: Add frame.h include. | |
124 | * symtab.h (struct obj_section): Declare. | |
125 | (struct cmd_list_element): Declare. | |
126 | ||
7ff38b1c AB |
127 | 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com> |
128 | ||
129 | * language.c (show_language_command): Find selected frame before | |
130 | asking for the language of that frame. | |
131 | (set_language_command): Likewise. | |
132 | * language.h (get_frame_language): Add frame parameter. | |
133 | * stack.c (get_frame_language): Add frame parameter, assert | |
134 | parameter is not NULL, update comment and reindent. | |
135 | * top.c (check_frame_language_change): Pass the selected frame | |
136 | into get_frame_language. | |
137 | ||
da8c46d2 MM |
138 | 2015-08-07 Markus Metzger <markus.t.metzger@intel.com> |
139 | ||
140 | * btrace.c (btrace_compute_ftrace_bts): Clear insn flags. | |
141 | (pt_btrace_insn_flags): New. | |
142 | (ftrace_add_pt): Call pt_btrace_insn_flags. | |
143 | * btrace.h (btrace_insn_flag): New. | |
144 | (btrace_insn) <flags>: New. | |
145 | * record-btrace.c (btrace_insn_history): Print insn prefix. | |
146 | * NEWS: Announce it. | |
147 | ||
5599c404 MM |
148 | 2015-08-07 Markus Metzger <markus.t.metzger@intel.com> |
149 | ||
150 | * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h | |
151 | * configure: Regenerate. | |
152 | ||
016a3251 DD |
153 | 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com> |
154 | ||
155 | * Makefile.in (LIBICONV): Define. | |
156 | (CLIBS): Add LIBICONV. | |
157 | * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV. | |
158 | * configure: Regenerate. | |
159 | ||
aead7601 SM |
160 | 2015-08-06 Simon Marchi <simon.marchi@ericsson.com> |
161 | Pedro Alves <palves@redhat.com> | |
162 | ||
163 | * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum. | |
164 | (arm_set_abi): Likewise. | |
165 | * ax-general.c (ax_print): Likewise. | |
166 | * c-exp.y (exp : string_exp): Likewise. | |
167 | * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise. | |
168 | (do_compile_dwarf_expr_to_c): Likewise. | |
169 | * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start): | |
170 | Likewise. | |
171 | * dwarf2expr.c (execute_stack_op): Likewise. | |
172 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise. | |
173 | (disassemble_dwarf_expression): Likewise. | |
174 | * dwarf2read.c (dwarf2_add_member_fn): Likewise. | |
175 | (read_array_order): Likewise. | |
176 | (abbrev_table_read_table): Likewise. | |
177 | (read_attribute_value): Likewise. | |
178 | (skip_unknown_opcode): Likewise. | |
179 | (dwarf_decode_macro_bytes): Likewise. | |
180 | (dwarf_decode_macros): Likewise. | |
181 | * eval.c (value_f90_subarray): Likewise. | |
182 | * guile/scm-param.c (gdbscm_make_parameter): Likewise. | |
183 | * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise. | |
184 | * infrun.c (handle_command): Likewise. | |
185 | * memory-map.c (memory_map_start_memory): Likewise. | |
186 | * osabi.c (set_osabi): Likewise. | |
187 | * parse.c (operator_length_standard): Likewise. | |
188 | * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use | |
189 | single return point. | |
190 | * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise. | |
191 | * python/py-symbol.c (gdbpy_lookup_symbol): Likewise. | |
192 | (gdbpy_lookup_global_symbol): Likewise. | |
193 | * record-full.c (record_full_restore): Likewise. | |
194 | * regcache.c (regcache_register_status): Likewise. | |
195 | (regcache_raw_read): Likewise. | |
196 | (regcache_cooked_read): Likewise. | |
197 | * rs6000-tdep.c (powerpc_set_vector_abi): Likewise. | |
198 | * symtab.c (initialize_ordinary_address_classes): Likewise. | |
199 | * target-debug.h (target_debug_print_signals): Likewise. | |
200 | * utils.c (do_restore_current_language): Likewise. | |
201 | ||
ca0a5f0b CD |
202 | 2015-08-06 Clem Dickey <clemd@acm.org> |
203 | ||
204 | PR python/17136 | |
205 | * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo. | |
206 | ||
05d999b0 SM |
207 | 2015-08-06 Simon Marchi <simon.marchi@ericsson.com> |
208 | ||
209 | * complaints.c (enum complaint_series): Add newlines and remove | |
210 | out of date comment. | |
211 | (struct complaints) <series>: Change type to enum | |
212 | complaint_series and remove out of date comment. | |
213 | (symfile_complaint_hook): Use equivalent enum value | |
214 | ISOLATED_MESSAGE instead of 0. | |
215 | ||
bf47e248 PA |
216 | 2015-08-06 Pedro Alves <palves@redhat.com> |
217 | ||
218 | * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid | |
219 | returned > 0. | |
220 | ||
b6b9ffcc PL |
221 | 2015-08-06 Pierre Langlois <pierre.langlois@arm.com> |
222 | ||
223 | * common/agent.c (symbol_list) <required>: Remove. | |
224 | ||
863d01bd PA |
225 | 2015-08-06 Pedro Alves <palves@redhat.com> |
226 | ||
227 | * target/waitstatus.h (enum target_stop_reason) | |
228 | <TARGET_STOPPED_BY_SINGLE_STEP>: New value. | |
229 | ||
0a39bb32 PA |
230 | 2015-08-05 Pedro Alves <palves@redhat.com> |
231 | Joel Brobecker <brobecker@adacore.com> | |
232 | ||
9d996aba | 233 | * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy> |
0a39bb32 PA |
234 | <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the |
235 | case where BS->STOP is not set. | |
236 | ||
260439cb UW |
237 | 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com> |
238 | ||
239 | * nat/gdb_thread_db.h: Add copyright header. | |
240 | Protect against multiple inclusion. | |
241 | ||
d89fa914 YQ |
242 | 2015-08-05 Yao Qi <yao.qi@linaro.org> |
243 | ||
244 | * aarch64-linux-nat.c (get_thread_id): Remove. | |
245 | (debug_reg_change_callback): Call ptid_get_lwp instead of | |
246 | get_thread_id. | |
247 | (fetch_gregs_from_thread): Likewise. | |
248 | (store_gregs_to_thread): Likewise. | |
249 | (fetch_fpregs_from_thread): Likewise. | |
250 | (store_fpregs_to_thread): Likewise. | |
251 | (aarch64_linux_get_debug_reg_capacity): Likewise. | |
252 | * arm-linux-nat.c (get_thread_id): Remove. | |
253 | (GET_THREAD_ID): Update macro to use ptid_get_lwp. | |
254 | * xtensa-linux-nat.c (get_thread_id): Remove. | |
255 | (GET_THREAD_ID): Update macro to use ptid_get_lwp. | |
256 | * arm-linux-nat.c (get_thread_id): Remove. | |
257 | (GET_THREAD_ID): Remove. | |
258 | (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID. | |
259 | (store_fpregs, fetch_regs, store_regs): Likewise. | |
260 | (fetch_wmmx_regs, store_wmmx_regs): Likewise. | |
261 | (fetch_vfp_regs, store_vfp_regs): Likewise. | |
262 | (arm_linux_read_description): Likewise. | |
263 | (arm_linux_get_hwbp_cap): Likewise. | |
264 | * xtensa-linux-nat.c (get_thread_id): Remove. | |
265 | (GET_THREAD_ID): Remove. | |
266 | (fetch_gregs, store_gregs): Call ptid_get_lwp instead of | |
267 | GET_THREAD_ID. | |
268 | ||
4efd80aa CS |
269 | 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch) |
270 | ||
271 | * python/py-linetable.c: Fix case of Linetable to LineTable | |
272 | in docstrings and code comments. | |
273 | * python/py-symtab.c: Same. | |
274 | ||
c6343a91 JK |
275 | 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
276 | ||
277 | * infcmd.c (signal_command): Call do_cleanups for args_chain. | |
278 | ||
978b9495 JK |
279 | 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
280 | ||
281 | PR gdb/18767 | |
282 | * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS | |
283 | use. | |
284 | ||
96e9210f PA |
285 | 2015-08-04 Pedro Alves <palves@redhat.com> |
286 | ||
287 | * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype) | |
288 | (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype) | |
289 | (td_ta_event_addr_ftype, td_ta_set_event_ftype) | |
290 | (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype) | |
291 | (td_thr_validate_ftype, td_thr_get_info_ftype) | |
292 | (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype) | |
293 | (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype): | |
294 | New typedefs. | |
295 | * linux-thread-db.c (struct thread_db_info): Use new typedefs. | |
296 | (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK | |
297 | local macros and use them instead of verbose_dlsym and dlsym | |
298 | calls. | |
299 | ||
af60a1ef SL |
300 | 2015-08-03 Sandra Loosemore <sandra@codesourcery.com> |
301 | ||
302 | * nios2-tdep.h: Include opcode/nios2.h here. | |
303 | (NIOS2_CDX_OPCODE_SIZE): New. | |
304 | (struct gdbarch_tdep): Add OP parameter to syscall_next_pc. | |
305 | * nios2-tdep.c: Don't include opcode/nios2.h here. | |
306 | (nios2_fetch_insn): For R2, try reading 2-byte instruction if | |
307 | 4-byte read fails. | |
308 | (nios2_match_add, nios2_match_sub): Add cases for R2 encodings. | |
309 | (nios2_match_addi, nios2_match_orhi): Likewise. | |
310 | (nios2_match_stw, nios2_match_ldw): Likewise. | |
311 | (nios2_match_rdctl): Likewise. | |
312 | (nios2_match_stwm, nios2_match_ldwm): New. | |
313 | (nios2_match_branch): Add cases for R2 encodings. | |
314 | (nios2_match_jmpi, nios2_match_calli): Likewise. | |
315 | (nios2_match_jmpr, nios2_match_callr): Likewise. | |
316 | (nios2_match_break, nios2_match_trap): Likewise. | |
317 | (nios2_in_epilogue_p): Add R2 support. | |
318 | (nios2_analyze_prologue): Update comments. Recognize R2 CDX | |
319 | prologues. | |
320 | (nios2_breakpoint_from_pc): Handle R2 instructions. | |
321 | (nios2_get_next_pc): Likewise. Adjust call to | |
322 | tdep->syscall_next_pc. | |
323 | * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame): | |
324 | Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use | |
325 | instruction field macros instead of literal hex values. | |
326 | (nios2_r2_linux_rt_sigreturn_tramp_frame): New. | |
327 | (nios2_linux_syscall_next_pc): Adjust signature to pass OP. | |
328 | Use size field from OP instead of assuming all instructions | |
329 | are the same size. | |
330 | (nios2_linux_init_abi): Register appropriate unwinder for mach. | |
331 | ||
1da03605 UW |
332 | 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com> |
333 | ||
334 | * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized | |
335 | variable warning with some compilers. | |
336 | ||
8156fe7f YQ |
337 | 2015-08-03 Yao Qi <yao.qi@linaro.org> |
338 | ||
339 | * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type" | |
340 | in comment. Replace "rw" with "type". | |
341 | (arm_linux_remove_watchpoint): Change type of "rw" to | |
342 | "enum target_hw_bp_type". | |
343 | ||
835a09d9 PMR |
344 | 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com> |
345 | ||
346 | * alpha-mdebug-tdep.c (find_proc_desc): Update call to | |
347 | lookup_symbol. | |
348 | * ft32-tdep.c (ft32_skip_prologue): Likewise. | |
349 | * moxie-tdep.c (moxie_skip_prologue): Likewise. | |
350 | * mt-tdep.c (mt_skip_prologue): Likewise. | |
351 | * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise. | |
352 | ||
d12307c1 PMR |
353 | 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com> |
354 | ||
355 | * ada-exp.y (write_object_renaming): Replace struct | |
356 | ada_symbol_info with struct block_symbol. Update field | |
357 | references accordingly. | |
358 | (block_lookup, select_possible_type_sym): Likewise. | |
359 | (find_primitive_type): Likewise. Also update call to | |
360 | ada_lookup_symbol to extract the symbol itself. | |
361 | (write_var_or_type, write_name_assoc): Likewise. | |
362 | * ada-lang.h (struct ada_symbol_info): Remove. | |
363 | (ada_lookup_symbol_list): Replace struct ada_symbol_info with | |
364 | struct block_symbol. | |
365 | (ada_lookup_encoded_symbol, user_select_syms): Likewise. | |
366 | (ada_lookup_symbol): Return struct block_symbol instead of a | |
367 | mere symbol. | |
368 | * ada-lang.c (defns_collected): Replace struct ada_symbol_info | |
369 | with struct block_symbol. | |
370 | (resolve_subexp, ada_resolve_function, sort_choices, | |
371 | user_select_syms, is_nonfunction, add_defn_to_vec, | |
372 | num_defns_collected, defns_collected, | |
373 | symbols_are_identical_enums, remove_extra_symbols, | |
374 | remove_irrelevant_renamings, add_lookup_symbol_list_worker, | |
375 | ada_lookup_symbol_list, ada_iterate_over_symbols, | |
376 | ada_lookup_encoded_symbol, get_var_value): Likewise. | |
377 | (ada_lookup_symbol): Return a block_symbol instead of a mere | |
378 | symbol. Replace struct ada_symbol_info with struct | |
379 | block_symbol. | |
380 | (ada_lookup_symbol_nonlocal): Likewise. | |
381 | (standard_lookup): Make block passing explicit through | |
382 | lookup_symbol_in_language. | |
383 | * ada-tasks.c (get_tcb_types_info): Update the calls to | |
384 | lookup_symbol_in_language to extract the mere symbol out of the | |
385 | returned value. | |
386 | (ada_tasks_inferior_data_sniffer): Likewise. | |
387 | * ax-gdb.c (gen_static_field): Likewise for the call to | |
388 | lookup_symbol. | |
a5fdf78a | 389 | (gen_maybe_namespace_elt): Deal with struct block_symbol from |
d12307c1 PMR |
390 | lookup functions. |
391 | (gen_expr): Likewise. | |
392 | * c-exp.y: Likewise. Remove uses of block_found. | |
393 | (lex_one_token, classify_inner_name, c_print_token): Likewise. | |
394 | (classify_name): Likewise. Rename the "sym" local variable to | |
395 | "bsym". | |
396 | * c-valprint.c (print_unpacked_pointer): Likewise. | |
397 | * compile/compile-c-symbols.c (convert_symbol_sym): Promote the | |
398 | "sym" parameter from struct symbol * to struct block_symbol. | |
399 | Use it to remove uses of block_found. Deal with struct | |
a5fdf78a | 400 | block_symbol from lookup functions. |
d12307c1 PMR |
401 | (gcc_convert_symbol): Likewise. Update the call to |
402 | convert_symbol_sym. | |
403 | * compile/compile-object-load.c (compile_object_load): Deal with | |
a5fdf78a | 404 | struct block_symbol from lookup functions. |
d12307c1 PMR |
405 | * cp-namespace.c (cp_lookup_nested_symbol_1, |
406 | cp_lookup_nested_symbol, cp_lookup_bare_symbol, | |
407 | cp_search_static_and_baseclasses, | |
408 | cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports, | |
409 | cp_lookup_symbol_imports_or_template, | |
410 | cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace, | |
411 | lookup_namespace_scope, cp_lookup_nonlocal, | |
a5fdf78a PMR |
412 | find_symbol_in_baseclass): Return struct block_symbol instead of |
413 | mere symbols and deal with struct block_symbol from lookup | |
d12307c1 PMR |
414 | functions. |
415 | * cp-support.c (inspect_type, replace_typedefs, | |
a5fdf78a | 416 | cp_lookup_rtti_type): Deal with struct block_symbol from |
d12307c1 PMR |
417 | lookup functions. |
418 | * cp-support.h (cp_lookup_symbol_nonlocal, | |
419 | cp_lookup_symbol_from_namespace, | |
420 | cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol): | |
a5fdf78a | 421 | Return struct block_symbol instead of mere symbols. |
d12307c1 PMR |
422 | * d-exp.y (d_type_from_name, d_module_from_name, push_variable, |
423 | push_module_name): | |
a5fdf78a | 424 | Deal with struct block_symbol from lookup functions. Remove |
d12307c1 PMR |
425 | uses of block_found. |
426 | * eval.c (evaluate_subexp_standard): Update call to | |
427 | cp_lookup_symbol_namespace. | |
a5fdf78a PMR |
428 | * f-exp.y: Deal with struct block_symbol from lookup functions. |
429 | Remove uses of block_found. | |
d12307c1 PMR |
430 | (yylex): Likewise. |
431 | * gdbtypes.c (lookup_typename, lookup_struct, lookup_union, | |
432 | lookup_enum, lookup_template_type, check_typedef): Deal with | |
a5fdf78a | 433 | struct block_symbol from lookup functions. |
d12307c1 PMR |
434 | * guile/scm-frame.c (gdbscm_frame_read_var): Likewise. |
435 | * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise. | |
436 | (gdbscm_lookup_global_symbol): Likewise. | |
437 | * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise. | |
438 | * go-exp.y: Likewise. Remove uses of block_found. | |
439 | (package_name_p, classify_packaged_name, classify_name): | |
440 | Likewise. | |
441 | * infrun.c (insert_exception_resume_breakpoint): Likewise. | |
442 | * jv-exp.y (push_variable): Likewise. | |
443 | * jv-lang.c (java_lookup_class, get_java_object_type): Likewise. | |
444 | * language.c (language_bool_type): Likewise. | |
445 | * language.h (struct language_defn): Update | |
a5fdf78a PMR |
446 | la_lookup_symbol_nonlocal to return a struct block_symbol rather |
447 | than a mere symbol. | |
448 | * linespec.c (find_label_symbols): Deal with struct block_symbol | |
449 | from lookup functions. | |
d12307c1 PMR |
450 | * m2-exp.y: Likewise. Remove uses of block_found. |
451 | (yylex): Likewise. | |
452 | * mi/mi-cmd-stack.c (list_args_or_locals): Likewise. | |
453 | * objc-lang.c (lookup_struct_typedef, find_imps): Likewise. | |
454 | * p-exp.y: Likewise. Remove uses of block_found. | |
455 | (yylex): Likewise. | |
456 | * p-valprint.c (pascal_val_print): Likewise. | |
457 | * parse.c (write_dollar_variable): Likewise. Remove uses of | |
458 | block_found. | |
459 | * parser-defs.h (struct symtoken): Turn the SYM field into a | |
a5fdf78a PMR |
460 | struct block_symbol. |
461 | * printcmd.c (address_info): Deal with struct block_symbol from | |
462 | lookup functions. | |
d12307c1 PMR |
463 | * python/py-frame.c (frapy_read_var): Likewise. |
464 | * python/py-symbol.c (gdbpy_lookup_symbol, | |
465 | gdbpy_lookup_global_symbol): Likewise. | |
466 | * skip.c (skip_function_command): Likewise. | |
467 | * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct | |
a5fdf78a | 468 | block_symbol instead of a mere symbol. |
d12307c1 PMR |
469 | * solib-spu.c (spu_lookup_lib_symbol): Likewise. |
470 | * solib-svr4.c (elf_lookup_lib_symbol): Likewise. | |
471 | * solib.c (solib_global_lookup): Likewise. | |
472 | * solist.h (solib_global_lookup): Likewise. | |
473 | (struct target_so_ops): Update lookup_lib_global_symbol to | |
a5fdf78a PMR |
474 | return a struct block_symbol rather than a mere symbol. |
475 | * source.c (select_source_symtab): Deal with struct block_symbol | |
476 | from lookup functions. | |
d12307c1 PMR |
477 | * stack.c (print_frame_args, iterate_over_block_arg_vars): |
478 | Likewise. | |
479 | * symfile.c (set_initial_language): Likewise. | |
480 | * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct | |
a5fdf78a | 481 | block_symbol. |
d12307c1 PMR |
482 | (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro. |
483 | (struct symbol_cache_slot): Turn the FOUND field into a struct | |
a5fdf78a | 484 | block_symbol. |
d12307c1 | 485 | (block_found): Remove. |
a5fdf78a | 486 | (eq_symbol_entry): Update to deal with struct block_symbol in |
d12307c1 | 487 | cache slots. |
a5fdf78a PMR |
488 | (symbol_cache_lookup): Return a struct block_symbol rather than |
489 | a mere symbol. | |
d12307c1 PMR |
490 | (symbol_cache_mark_found): Add a BLOCK parameter to fill |
491 | appropriately the cache slots. Update callers. | |
492 | (symbol_cache_dump): Update cache slots handling to the type | |
493 | change. | |
494 | (lookup_symbol_in_language, lookup_symbol, lookup_language_this, | |
495 | lookup_symbol_aux, lookup_local_symbol, | |
496 | lookup_symbol_in_objfile, lookup_global_symbol_from_objfile, | |
497 | lookup_symbol_in_objfile_symtabs, | |
498 | lookup_symbol_in_objfile_from_linkage_name, | |
499 | lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal, | |
500 | lookup_symbol_in_static_block, lookup_static_symbol, | |
501 | lookup_global_symbol): | |
a5fdf78a PMR |
502 | Return a struct block_symbol rather than a mere symbol. Deal |
503 | with struct block_symbol from other lookup functions. Remove | |
d12307c1 PMR |
504 | uses of block_found. |
505 | (lookup_symbol_in_block): Remove uses of block_found. | |
506 | (struct global_sym_lookup_data): Turn the RESULT field into a | |
a5fdf78a | 507 | struct block_symbol. |
d12307c1 PMR |
508 | (lookup_symbol_global_iterator_cb): Update references to the |
509 | RESULT field. | |
a5fdf78a | 510 | (search_symbols): Deal with struct block_symbol from lookup |
d12307c1 | 511 | functions. |
a5fdf78a | 512 | * symtab.h (struct block_symbol): New structure. |
d12307c1 PMR |
513 | (block_found): Remove. |
514 | (lookup_symbol_in_language, lookup_symbol, | |
515 | basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block, | |
a5fdf78a PMR |
516 | lookup_static_symbol, lookup_global_symbol, lookup_language_this, |
517 | lookup_global_symbol_from_objfile): Return a struct block_symbol | |
518 | rather than just a mere symbol. Update comments to remove | |
519 | mentions of block_found. | |
d12307c1 PMR |
520 | * valops.c (find_function_in_inferior, |
521 | value_struct_elt_for_reference, value_maybe_namespace_elt, | |
a5fdf78a | 522 | value_of_this): Deal with struct block_symbol from lookup |
d12307c1 PMR |
523 | functions. |
524 | * value.c (value_static_field, value_fn_field): Likewise. | |
525 | ||
b1c59ddc SM |
526 | 2015-07-31 Simon Marchi <simon.marchi@ericsson.com> |
527 | ||
528 | * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type | |
529 | instead of integer. | |
530 | ||
f486487f | 531 | 2015-07-31 Simon Marchi <simon.marchi@ericsson.com> |
84da3f0c | 532 | Pedro Alves <palves@redhat.com> |
f486487f SM |
533 | |
534 | * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum | |
535 | type or value instead of integer. | |
536 | (aarch64_linux_insert_watchpoint): Likewise. | |
537 | (aarch64_linux_remove_watchpoint): Likewise. | |
538 | * ada-lang.c (ada_op_print_tab): Likewise. | |
539 | * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise. | |
540 | (amd64_linux_syscall_record_common): Likewise. | |
541 | * arch-utils.c (target_byte_order_user): Likewise. | |
542 | (default_byte_order): Likewise. | |
543 | * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise. | |
544 | (arm_linux_get_hwbp_type): Likewise. | |
545 | (arm_linux_hw_watchpoint_initialize): Likewise. | |
546 | (arm_linux_insert_watchpoint): Likewise. | |
547 | * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise. | |
548 | (arm_linux_syscall_record): Likewise. | |
549 | * breakpoint.c (update_watchpoint): Likewise. | |
550 | (breakpoint_here_p): Likewise. | |
551 | (bpstat_print): Likewise. | |
552 | (enable_breakpoint_disp): Likewise. | |
553 | * c-lang.c (c_op_print_tab): Likewise. | |
554 | * cli/cli-decode.c (add_info_alias): Likewise. | |
555 | * d-lang.c (d_op_print_tab): Likewise. | |
556 | * eval.c (evaluate_subexp_standard): Likewise. | |
557 | * f-exp.y (dot_ops): Likewise. | |
558 | (f77_keywords): Likewise. | |
559 | * f-lang.c (f_op_print_tab): Likewise. | |
560 | * go-lang.c (go_op_print_tab): Likewise. | |
561 | * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise. | |
562 | * guile/scm-cmd.c (gdbscm_make_command): Likewise. | |
563 | * guile/scm-param.c (gdbscm_make_parameter): Likewise. | |
564 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise. | |
565 | * guile/scm-string.c (struct scm_to_stringn_data): Likewise. | |
566 | (struct scm_from_stringn_data): Likewise. | |
567 | * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise. | |
568 | * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise. | |
569 | (ia64_linux_remove_watchpoint): Likewise. | |
570 | (ia64_linux_can_use_hw_breakpoint): Likewise. | |
571 | * infrun.c (print_stop_event): Likewise. | |
572 | * jv-lang.c (java_op_print_tab): Likewise. | |
573 | * linux-nat.c (linux_proc_xfer_partial): Likewise. | |
574 | * linux-nat.h (struct lwp_info): Likewise. | |
575 | * linux-thread-db.c (enable_thread_event): Likewise. | |
576 | * m2-lang.c (m2_op_print_tab): Likewise. | |
577 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise. | |
578 | (mi_cmd_stack_list_variables): Likewise. | |
579 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise. | |
580 | * mi/mi-out.c (mi_table_begin): Likewise. | |
581 | (mi_table_header): Likewise. | |
582 | * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise. | |
583 | (mips_linux_insert_watchpoint): Likewise. | |
584 | (mips_linux_remove_watchpoint): Likewise. | |
585 | * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise. | |
586 | * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise. | |
587 | (mips_linux_watch_type_to_irw): Likewise. | |
588 | * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise. | |
589 | (procfs_insert_hw_watchpoint): Likewise. | |
590 | (procfs_remove_hw_watchpoint): Likewise. | |
591 | (procfs_hw_watchpoint): Likewise. | |
592 | (procfs_can_use_hw_breakpoint): Likewise. | |
593 | (procfs_remove_hw_watchpoint): Likewise. | |
594 | (procfs_insert_hw_watchpoint): Likewise. | |
595 | * p-lang.c (pascal_op_print_tab): Likewise. | |
596 | * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise. | |
597 | * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise. | |
598 | * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise. | |
599 | * procfs.c (procfs_can_use_hw_breakpoint): Likewise. | |
600 | (procfs_insert_watchpoint): Likewise. | |
601 | (procfs_remove_watchpoint): Likewise. | |
602 | * psymtab.c (recursively_search_psymtabs): Likewise. | |
603 | * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise. | |
604 | (m32r_insert_watchpoint): Likewise. | |
605 | * remote-mips.c (mips_can_use_watchpoint): Likewise. | |
606 | (mips_insert_watchpoint): Likewise. | |
607 | (mips_remove_watchpoint): Likewise. | |
608 | * remote.c (watchpoint_to_Z_packet): Likewise. | |
609 | (remote_insert_watchpoint): Likewise. | |
610 | (remote_remove_watchpoint): Likewise. | |
611 | (remote_check_watch_resources): Likewise. | |
612 | * s390-linux-nat.c (s390_insert_watchpoint): Likewise. | |
613 | (s390_remove_watchpoint): Likewise. | |
614 | (s390_can_use_hw_breakpoint): Likewise. | |
615 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
616 | * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise. | |
617 | * target.h (struct target_ops): Likewise. | |
618 | * tilegx-tdep.c (tilegx_analyze_prologue): Likewise. | |
619 | * ui-out.c (struct ui_out_hdr): Likewise. | |
620 | (append_header_to_list): Likewise. | |
621 | (get_next_header): Likewise. | |
622 | (verify_field): Likewise. | |
623 | (ui_out_begin): Likewise. | |
624 | (ui_out_field_int): Likewise. | |
625 | (ui_out_field_fmt_int): Likewise. | |
626 | (ui_out_field_skip): Likewise. | |
627 | (ui_out_field_string): Likewise. | |
628 | (ui_out_field_fmt): Likewise. | |
629 | * varobj.c (new_variable): Likewise. | |
630 | * x86-nat.c (x86_insert_watchpoint): Likewise. | |
631 | (x86_remove_watchpoint): Likewise. | |
632 | (x86_can_use_hw_breakpoint): Likewise. | |
633 | * xtensa-tdep.h (struct gdbarch_tdep): Likewise. | |
634 | * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to | |
635 | previously anonymous enumeration type.. | |
636 | * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall | |
637 | value. | |
638 | * target-debug.h (target_debug_print_enum_target_hw_bp_type): New. | |
639 | (target_debug_print_enum_bptype): New. | |
640 | * target-delegates.c: Regenerate. | |
641 | ||
e1b5381f SL |
642 | 2015-07-30 Sandra Loosemore <sandra@codesourcery.com> |
643 | ||
644 | * nios2-tdep.c (nios2_analyze_prologue): Do what the comment | |
645 | already says and disallow non-stack memory writes in the prologue. | |
646 | ||
9aaf8e3a SL |
647 | 2015-07-30 Sandra Loosemore <sandra@codesourcery.com> |
648 | ||
649 | * nios2-tdep.c (nios2_analyze_prologue): Update comments to | |
650 | reflect how current GCC emits stack overflow checks. Match | |
651 | both trap and break instructions for backward compatbility. | |
652 | Disallow other trap and break instructions in the prologue. | |
653 | ||
69dde7dc PA |
654 | 2015-07-30 Pedro Alves <palves@redhat.com> |
655 | ||
656 | PR threads/18600 | |
657 | * linux-nat.c (wait_lwp): Report to the core when thread group | |
658 | leader exits. | |
659 | ||
4dd63d48 PA |
660 | 2015-07-30 Pedro Alves <palves@redhat.com> |
661 | Simon Marchi <simon.marchi@ericsson.com> | |
662 | ||
663 | PR threads/18600 | |
664 | * linux-nat.c (linux_handle_extended_wait): On CLONE event, always | |
665 | mark the new thread as resumed. Remove STOPPING parameter. | |
666 | (wait_lwp): Adjust call to linux_handle_extended_wait. | |
667 | (linux_nat_filter_event): Adjust call to | |
668 | linux_handle_extended_wait. | |
669 | (resume_stopped_resumed_lwps): Add debug output. | |
670 | ||
6b940e6a PL |
671 | 2015-07-30 Pierre Langlois <pierre.langlois@arm.com> |
672 | ||
673 | * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused | |
674 | isize argument. | |
675 | * arch-utils.h (default_fast_tracepoint_valid_at): Likewise. | |
676 | * breakpoint.c (check_fast_tracepoint_sals): Adjust call to | |
677 | gdbarch_fast_tracepoint_valid_at. | |
678 | * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument. | |
679 | * gdbarch.h: Regenerate. | |
680 | * gdbarch.c: Regenerate. | |
681 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize | |
682 | argument. Do not set it. | |
683 | * remote.c (remote_download_tracepoint): Adjust call to | |
684 | gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get | |
685 | the instruction length. | |
686 | ||
ec741292 YQ |
687 | 2015-07-30 Yao Qi <yao.qi@linaro.org> |
688 | ||
689 | * arm-tdep.h (enum gdb_regnum): Move it to ... | |
690 | * arch/arm.h: ... here. New file. | |
691 | * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h. | |
692 | ||
0ea6402e PL |
693 | 2015-07-30 Pierre Langlois <pierre.langlois@arm.com> |
694 | ||
695 | * aarch64-tdep.c (decode_b): Rename link argument to is_bl. | |
696 | Change its type to int *. | |
697 | (decode_br): Rename link argument to is_blr. Change its type to | |
698 | int *. | |
699 | (decode_cb): Rename op argument to is_cbnz. Change its type to | |
700 | int *. | |
701 | (decode_tb): Rename op argument to is_tbnz. Change its type to | |
702 | int *. Set is_tbnz to either 1 or 0. | |
703 | (aarch64_analyze_prologue): Change type of is_link to int. Add | |
704 | new variables is_cbnz and is_tbnz. Adjust call to | |
705 | aarch64_decode_cb and aarch64_decode_tb. | |
706 | ||
aa58a496 SM |
707 | 2015-07-29 Simon Marchi <simon.marchi@ericsson.com> |
708 | ||
709 | * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th | |
710 | parameter. | |
711 | (mips_linux_new_thread): Likewise. | |
712 | * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise. | |
713 | ||
18206ca3 PP |
714 | 2015-07-29 Patrick Palka <patrick@parcs.ath.cx> |
715 | ||
716 | * top.c: Include "tui/tui.h". | |
717 | (undo_terminal_modifications_before_exit): New static function. | |
718 | (quit_force): Use it. | |
719 | ||
7afa63c6 PP |
720 | 2015-07-29 Patrick Palka <patrick@parcs.ath.cx> |
721 | ||
722 | * target.c (terminal_state): Initialize to terminal_is_ours. | |
723 | ||
cc9f16aa YQ |
724 | 2015-07-29 Yao Qi <yao.qi@linaro.org> |
725 | ||
726 | PR record/18691 | |
727 | * dcache.c (dcache_read_memory_partial): Call | |
728 | raw_memory_xfer_partial. | |
729 | * target.c (raw_memory_xfer_partial): Make it non-static. | |
730 | * target.h (raw_memory_xfer_partial): Declare. | |
731 | ||
3ae385af SM |
732 | 2015-07-28 Simon Marchi <simon.marchi@ericsson.com> |
733 | ||
734 | * c-valprint.c (c_val_print_array): Consider addressable memory | |
735 | unit size. | |
736 | (c_val_print_ptr): Likewise. | |
737 | (c_val_print_int): Likewise. | |
738 | * findvar.c (read_frame_register_value): Likewise. | |
739 | * valarith.c (find_size_for_pointer_math): Likewise. | |
740 | (value_ptrdiff): Likewise. | |
741 | (value_subscripted_rvalue): Likewise. | |
742 | * valops.c (read_value_memory): Likewise (and rename variables). | |
743 | (value_assign): Likewise. | |
744 | (value_repeat): Likewise. | |
745 | (value_array): Likewise. | |
746 | (value_slice): Likewise. | |
747 | * valprint.c (generic_val_print_ptr): Likewise. | |
748 | (generic_val_print_enum): Likewise. | |
749 | (generic_val_print_bool): Likewise. | |
750 | (generic_val_print_int): Likewise. | |
751 | (generic_val_print_char): Likewise. | |
752 | (generic_val_print_float): Likewise. | |
753 | (generic_val_print_decfloat): Likewise. | |
754 | (generic_val_print_complex): Likewise. | |
755 | (val_print_scalar_formatted): Likewise. | |
756 | (val_print_array_elements): Likewise. | |
757 | * value.c (set_value_parent): Likewise. | |
758 | (value_contents_copy_raw): Likewise. | |
759 | (set_internalvar_component): Likewise. | |
760 | (value_primitive_field): Likewise. | |
761 | (value_fetch_lazy): Likewise. | |
762 | * value.h (read_value_memory): Update comment. | |
763 | ||
e512cdbd SM |
764 | 2015-07-28 Simon Marchi <simon.marchi@ericsson.com> |
765 | ||
766 | * value.c (get_value_arch): New function. | |
767 | * value.h (get_value_arch): New declaration. | |
768 | ||
3723fda8 SM |
769 | 2015-07-28 Simon Marchi <simon.marchi@ericsson.com> |
770 | ||
771 | * value.c (struct value): Update comments. | |
772 | ||
2e056931 SM |
773 | 2015-07-28 Simon Marchi <simon.marchi@ericsson.com> |
774 | ||
775 | * gdbtypes.c (type_length_units): New function. | |
776 | * gdbtypes.h (type_length_units): New declaration. | |
777 | (struct type) <length>: Update comment. | |
778 | ||
0c87c0bf SM |
779 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
780 | ||
781 | * valprint.c (generic_val_print): Factor out complex | |
782 | printing code to ... | |
783 | (generic_val_print_complex): ... this new function. | |
784 | ||
9550ae5e SM |
785 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
786 | ||
787 | * valprint.c (generic_val_print): Factor out decfloat | |
788 | printing code to ... | |
789 | (generic_val_print_decfloat): ... this new function. | |
790 | ||
7784724b SM |
791 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
792 | ||
793 | * valprint.c (generic_val_print): Factor out float | |
794 | printing code to ... | |
795 | (generic_val_print_float): ... this new function. | |
796 | ||
385f5aff SM |
797 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
798 | ||
799 | * valprint.c (generic_val_print): Factor out char | |
800 | printing code to ... | |
801 | (generic_val_print_char): ... this new function. | |
802 | ||
b21b6342 SM |
803 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
804 | ||
805 | * valprint.c (generic_val_print): Factor out integer | |
806 | printing code to ... | |
807 | (generic_val_print_int): ... this new function. | |
808 | ||
e5bead4b SM |
809 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
810 | ||
811 | * valprint.c (generic_val_print): Factor out bool | |
812 | printing code to ... | |
813 | (generic_val_print_bool): ... this new function. | |
814 | ||
4a8c372f SM |
815 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
816 | ||
817 | * valprint.c (generic_val_print): Factor out function/method | |
818 | printing code to ... | |
819 | (generic_val_print_func): ... this new function. | |
820 | ||
d93880bd SM |
821 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
822 | ||
823 | * valprint.c (generic_val_print): Factor out flags | |
824 | printing code to ... | |
825 | (generic_val_print_flags): ... this new function. | |
826 | ||
ef0bc0dd SM |
827 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
828 | ||
829 | * valprint.c (generic_val_print): Factor out enum | |
830 | printing code to ... | |
831 | (generic_val_print_enum): ... this new function. | |
832 | ||
fe43fede SM |
833 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
834 | ||
835 | * valprint.c (generic_val_print): Factor out reference | |
836 | printing code to ... | |
837 | (generic_val_print_ref): ... this new function. | |
838 | ||
45000ea2 SM |
839 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
840 | ||
841 | * valprint.c (generic_val_print): Factor out memberptr | |
842 | printing code to ... | |
843 | (generic_val_print_memberptr): ... this new function. | |
844 | ||
81eb921a SM |
845 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
846 | ||
847 | * valprint.c (generic_val_print): Factor out pointer | |
848 | printing code to ... | |
849 | (generic_val_print_ptr): ... this new function. | |
850 | ||
557dbe8a SM |
851 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
852 | ||
853 | * valprint.c (generic_val_print): Factor out array | |
854 | printing code to ... | |
855 | (generic_val_print_array): ... this new function. | |
856 | ||
9f436164 SM |
857 | 2015-07-27 Simon Marchi <simon.marchi@ericsson.com> |
858 | ||
859 | * valprint.c (generic_val_print): Factor out | |
860 | print_unpacked_pointer code to ... | |
861 | (print_unpacked_pointer): ... this new function. | |
862 | ||
077836f7 PP |
863 | 2015-07-27 Patrick Palka <patrick@parcs.ath.cx> |
864 | ||
865 | * event-top.c (handle_sigterm): Don't inspect | |
866 | target_can_async_p. Always set the quit flag and always mark | |
867 | the async signal handler. | |
868 | ||
3a60804f YQ |
869 | 2015-07-27 Yao Qi <yao.qi@linaro.org> |
870 | ||
871 | * Makefile.in (REMOTE_EXAMPLES): Remove it. | |
872 | ||
c9f35b34 KB |
873 | 2015-07-25 Kevin Buettner <kevinb@redhat.com> |
874 | ||
875 | * remote.c (read_ptid): Return null_ptid when no thread id | |
876 | is found. | |
877 | (remote_current_thread): Add log warning for malformed | |
878 | qC reply. | |
879 | (remote_start_remote): Add log warning when current thread | |
880 | not found. | |
881 | ||
2b4cab86 PA |
882 | 2015-07-24 Pedro Alves <palves@redhat.com> |
883 | ||
884 | * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs) | |
885 | (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as | |
886 | forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA. | |
887 | ||
77598427 PA |
888 | 2015-07-24 Pedro Alves <palves@redhat.com> |
889 | ||
890 | PR gdb/18717 | |
891 | * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp | |
892 | is resumed, and extend the debug log. | |
893 | ||
fe23c31f PA |
894 | 2015-07-24 Pedro Alves <palves@redhat.com> |
895 | ||
896 | * fork-child.c (fork_inferior): Print argv[0] instead of exec_file. | |
897 | ||
5826e159 PA |
898 | 2015-07-24 Pedro Alves <palves@redhat.com> |
899 | ||
900 | * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of | |
901 | sys/ptrace.h. | |
902 | * alpha-linux-nat.c: Likewise. | |
903 | * amd64-linux-nat.c: Likewise. | |
904 | * arm-linux-nat.c: Likewise. | |
905 | * hppa-linux-nat.c: Likewise. | |
906 | * i386-linux-nat.c: Likewise. | |
907 | * ia64-linux-nat.c: Likewise. | |
908 | * linux-fork.c: Likewise. | |
909 | * linux-nat.c: Likewise. | |
910 | * m32r-linux-nat.c: Likewise. | |
911 | * m68klinux-nat.c: Likewise. | |
912 | * mips-linux-nat.c: Likewise. | |
913 | * nat/linux-btrace.c: Likewise. | |
914 | * nat/linux-ptrace.c: Likewise. | |
915 | * nat/linux-ptrace.h | |
916 | * nat/mips-linux-watch.c: Likewise. | |
917 | * nat/x86-linux-dregs.c: Likewise. | |
918 | * ppc-linux-nat.c: Likewise. | |
919 | * s390-linux-nat.c: Likewise. | |
920 | * spu-linux-nat.c: Likewise. | |
921 | * tilegx-linux-nat.c: Likewise. | |
922 | * x86-linux-nat.c: Likewise. | |
923 | * xtensa-linux-nat.c: Likewise. | |
924 | ||
54019719 PA |
925 | 2015-07-24 Pedro Alves <palves@redhat.com> |
926 | ||
927 | * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum | |
928 | __ptrace_request as first parameter type instead of int. | |
929 | (PTRACE_TYPE_ARG1): Define. | |
930 | * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper | |
931 | that casts first argument to PTRACE_TYPE_ARG1. | |
932 | * config.in: Regenerate. | |
933 | * configure: Regenerate. | |
934 | ||
e3790375 PA |
935 | 2015-07-24 Pedro Alves <palves@redhat.com> |
936 | ||
937 | * gdb_ptrace.h: Move ... | |
938 | * nat/gdb_ptrace.h: ... here. | |
939 | * inf-ptrace.c: Adjust. | |
940 | ||
eb7aa561 PA |
941 | 2015-07-24 Pedro Alves <palves@redhat.com> |
942 | ||
943 | * acinclude.m4: Include ptrace.m4. | |
944 | * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ... | |
945 | * ptrace.m4: ... to this new file. | |
946 | ||
cc12ce38 DE |
947 | 2015-07-23 Doug Evans <dje@google.com> |
948 | ||
949 | * dwarf2read.c (dwarf2_per_cu_data): Add comment. | |
950 | (load_cu): Handle dummy CUs. | |
951 | (dw2_do_instantiate_symtab, process_queuef): Ditto. | |
952 | (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto. | |
953 | ||
7b849db4 CS |
954 | 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch) |
955 | ||
956 | * py-linetable.c (ltpy_get_all_source_lines): Adjust function | |
957 | documentation to say that it returns a list rather than | |
958 | a FrozenSet. | |
959 | (linetable_object_methods): Update the docstring of the | |
960 | "source_line" entry. | |
961 | ||
d0d84780 PMR |
962 | 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com> |
963 | ||
964 | * gdbtypes.c (resolve_dynamic_array): Pass the peeled element | |
965 | type to the recursive call instead of the original (maybe | |
966 | TYPE_CODE_TYPEDEF) type. | |
967 | ||
c2fbdc59 YQ |
968 | 2015-07-23 Yao Qi <yao.qi@linaro.org> |
969 | ||
970 | * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If | |
971 | TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero. | |
972 | If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero. | |
973 | ||
af1b22f3 YQ |
974 | 2015-07-21 Yao Qi <yao.qi@linaro.org> |
975 | ||
976 | * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): | |
977 | Move it to nat/aarch64-linux-hw-point.c. | |
978 | (aarch64_linux_child_post_startup_inferior): Update. | |
979 | * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity): | |
980 | New function. | |
981 | * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity): | |
982 | Declare it. | |
983 | ||
40e050d2 MM |
984 | 2015-07-21 Markus Metzger <markus.t.metzger@intel.com> |
985 | ||
986 | * common/btrace-common.c (btrace_data_append): Change case label. | |
987 | ||
3675a06a YQ |
988 | 2015-07-20 Yao Qi <yao.qi@linaro.org> |
989 | ||
990 | * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint): | |
991 | Re-indent the code. | |
992 | * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than | |
993 | "unsigned long long". | |
994 | ||
b4e1fd61 KB |
995 | 2015-07-18 Kevin Buettner <kevinb@redhat.com> |
996 | ||
997 | * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero | |
998 | to be set for SEC_ALLOC sections too. | |
999 | ||
554717a3 YQ |
1000 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
1001 | ||
1002 | * Makefile.in (HFILES_NO_SRCDIR): Add | |
1003 | nat/aarch64-linux-hw-point.h. | |
1004 | (aarch64-linux-hw-point.o): New rule. | |
1005 | * nat/aarch64-linux-hw-point.h: New file. | |
1006 | * nat/aarch64-linux-hw-point.c: New file. | |
1007 | * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h. | |
1008 | (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h. | |
1009 | (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise. | |
1010 | (AARCH64_HWP_ALIGNMENT): Likewise. | |
1011 | (AARCH64_HWP_MAX_LEN_PER_REG): Likewise. | |
1012 | (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise. | |
1013 | (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise. | |
1014 | (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise. | |
1015 | (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise. | |
1016 | (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise. | |
1017 | (struct aarch64_debug_reg_state): Likewise. | |
1018 | (struct arch_lwp_info): Likewise. | |
1019 | (aarch64_linux_set_debug_regs): Likewise. | |
1020 | (aarch64_notify_debug_reg_change): Remove static. | |
1021 | (aarch64_align_watchpoint): Likewise. | |
1022 | (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise. | |
1023 | (aarch64_watchpoint_length): Likewise. | |
1024 | (aarch64_point_encode_ctrl_reg): Likewise | |
1025 | (aarch64_point_is_aligned): Likewise. | |
1026 | (aarch64_dr_state_insert_one_point): Likewise. | |
1027 | (aarch64_dr_state_remove_one_point): Likewise. | |
1028 | (aarch64_handle_breakpoint): Likewise. | |
1029 | (aarch64_handle_aligned_watchpoint): Likewise. | |
1030 | (aarch64_handle_unaligned_watchpoint): Likewise. | |
1031 | (aarch64_handle_watchpoint): Likewise. | |
1032 | * config/aarch64/linux.mh (NAT_FILE): Add | |
1033 | aarch64-linux-hw-point.o. | |
1034 | ||
c67ca4de YQ |
1035 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
1036 | ||
1037 | * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument | |
1038 | state and don't call aarch64_get_debug_reg_state. All callers | |
1039 | update. | |
1040 | (aarch64_linux_insert_hw_breakpoint): Call | |
1041 | aarch64_get_debug_reg_state earlier. | |
1042 | (aarch64_linux_remove_hw_breakpoint): Likewise. | |
1043 | (aarch64_handle_aligned_watchpoint): Add argument state and | |
1044 | don't call aarch64_get_debug_reg_state. All callers update. | |
1045 | (aarch64_handle_unaligned_watchpoint): Likewise. | |
1046 | (aarch64_handle_watchpoint): Add argument state. | |
1047 | (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state | |
1048 | earlier. | |
1049 | (aarch64_linux_remove_watchpoint): Likewise. | |
1050 | ||
25abf979 YQ |
1051 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
1052 | ||
1053 | * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use | |
1054 | debug_printf. | |
1055 | (aarch64_handle_unaligned_watchpoint): Likewise. | |
1056 | ||
2ecd81c2 YQ |
1057 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
1058 | ||
1059 | * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change | |
1060 | argument type's type to 'enum target_hw_bp_type'. | |
1061 | (aarch64_dr_state_remove_one_point): Likewise. | |
1062 | (aarch64_handle_breakpoint): Likewise. | |
1063 | (aarch64_linux_insert_hw_breakpoint): Likewise. | |
1064 | (aarch64_linux_remove_hw_breakpoint): Likewise. | |
1065 | (aarch64_handle_aligned_watchpoint): Likewise. | |
1066 | ||
e53b6938 YQ |
1067 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
1068 | ||
1069 | * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call | |
1070 | ptid_get_pid instead of get_thread_id. | |
1071 | ||
6a49a997 YQ |
1072 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
1073 | ||
1074 | * remote.c (get_current_thread): Initialise ptid to null_ptid. | |
1075 | (add_current_inferior_and_thread): Don't initialise ptid. | |
1076 | ||
4bcddace PL |
1077 | 2015-07-16 Pierre Langlois <pierre.langlois@arm.com> |
1078 | ||
1079 | * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as | |
1080 | unavailable if invalid. | |
1081 | ||
db1ff28b JK |
1082 | 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
1083 | ||
1084 | Revert the previous 6 commits: | |
1085 | Create empty nat/linux-maps.[ch] and common/target-utils.[ch]. | |
1086 | Move gdb_regex* to common/ | |
1087 | Prepare linux_find_memory_regions_full & co. for move | |
1088 | Move linux_find_memory_regions_full & co. | |
1089 | gdbserver build-id attribute generator | |
1090 | Validate symbol file using build-id | |
1091 | ||
ca5268b6 JK |
1092 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
1093 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1094 | ||
1095 | Validate symbol file using build-id. | |
1096 | * NEWS (Changes since GDB 7.10): Add 'set validate-build-id' | |
1097 | and 'show validate-build-id'. Add build-id attribute. | |
1098 | * solib-darwin.c (_initialize_darwin_solib): Assign validate value. | |
1099 | * solib-dsbt.c (_initialize_dsbt_solib): Ditto. | |
1100 | * solib-frv.c (_initialize_frv_solib): Ditto. | |
1101 | * solib-spu.c (set_spu_solib_ops): Ditto. | |
1102 | * solib-svr4.c: Include rsp-low.h. | |
1103 | (NOTE_GNU_BUILD_ID_NAME): New define. | |
1104 | (svr4_validate): New function. | |
1105 | (svr4_copy_library_list): Duplicate field build_id. | |
1106 | (library_list_start_library): Parse 'build-id' attribute. | |
1107 | (svr4_library_attributes): Add 'build-id' attribute. | |
1108 | (_initialize_svr4_solib): Assign validate value. | |
1109 | * solib-target.c (solib.h): Include. | |
1110 | (_initialize_solib_target): Assign validate value. | |
1111 | * solib.c (validate_build_id, show_validate_build_id): New. | |
1112 | (solib_map_sections): Use ops->validate. | |
1113 | (clear_so): Free build_id. | |
1114 | (default_solib_validate): New function. | |
1115 | (_initialize_solib): Add "validate-build-id". | |
1116 | * solib.h (default_solib_validate): New declaration. | |
1117 | * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'. | |
1118 | (target_so_ops): New field 'validate'. | |
1119 | ||
700ca40f JK |
1120 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
1121 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1122 | ||
1123 | gdbserver build-id attribute generator. | |
1124 | * features/library-list-svr4.dtd (library-list-svr4): New | |
1125 | 'build-id' attribute. | |
1126 | ||
9904185c JK |
1127 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
1128 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1129 | ||
1130 | Move linux_find_memory_regions_full & co. | |
1131 | * linux-tdep.c (nat/linux-maps.h): Include. | |
1132 | (gdb_regex.h): Remove the include. | |
1133 | (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags) | |
1134 | (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c. | |
1135 | (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h. | |
1136 | (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c. | |
1137 | * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h | |
1138 | and target/target.h. | |
1139 | (struct smaps_vmflags, read_mapping, decode_vmflags) | |
1140 | (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c. | |
1141 | (linux_find_memory_regions_full): Move from linux-tdep.c. | |
1142 | * nat/linux-maps.h (read_mapping): New declaration. | |
1143 | (linux_find_memory_region_ftype, enum filterflags): Moved from | |
1144 | linux-tdep.c. | |
1145 | (linux_find_memory_regions_full): New declaration. | |
1146 | * target.c (target/target-utils.h): Include. | |
1147 | (read_alloc_pread_ftype): Moved typedef to target/target-utils.h. | |
1148 | (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved | |
1149 | definitions to target/target-utils.c. | |
1150 | * target.h (target_fileio_read_stralloc): Move it to target/target.h. | |
1151 | * target/target-utils.c (read_alloc, read_stralloc): Move definitions | |
1152 | from target.c. | |
1153 | * target/target-utils.h (read_alloc_pread_ftype): New typedef. | |
1154 | (read_alloc): New declaration. | |
1155 | (read_stralloc_func_ftype): New typedef. | |
1156 | (read_stralloc): New declaration. | |
1157 | * target/target.h (target_fileio_read_stralloc): Move it from target.h. | |
1158 | ||
f7af1fcd JK |
1159 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
1160 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1161 | ||
1162 | Prepare linux_find_memory_regions_full & co. for move. | |
1163 | * linux-tdep.c (linux_find_memory_region_ftype): Comment. | |
1164 | (linux_find_memory_regions_full): Change signature and prepare | |
1165 | for moving to linux-maps. | |
1166 | (linux_find_memory_regions_data): Rename field 'obfd' to 'data'. | |
1167 | (linux_find_memory_regions_thunk): New. | |
1168 | (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'. | |
1169 | (linux_find_memory_regions_gdb): New. | |
1170 | (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'. | |
1171 | (linux_make_mappings_corefile_notes): Use | |
1172 | linux_find_memory_regions_gdb. | |
1173 | * target.c (read_alloc_pread_ftype): New typedef. | |
1174 | (target_fileio_read_alloc_1_pread): New function. | |
1175 | (read_alloc): Refactor from target_fileio_read_alloc_1. | |
1176 | (read_stralloc_func_ftype): New typedef. | |
1177 | (target_fileio_read_alloc_1): New implementation. Use read_alloc. | |
1178 | (read_stralloc): Refactored from target_fileio_read_stralloc. | |
1179 | (target_fileio_read_stralloc): New implementation, use read_stralloc. | |
1180 | ||
6e5b4429 JK |
1181 | 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
1182 | ||
1183 | * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to | |
1184 | common/gdb_regex.h. | |
1185 | (COMMON_OBS): Add gdb_regex.o. | |
1186 | (gdb_regex.o): New. | |
1187 | * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex, | |
1188 | --without-included-regex and USE_INCLUDED_REGEX. | |
1189 | * common/gdb_regex.c: New file from utils.c functions. | |
1190 | * common/gdb_regex.h: Move it here from gdb_regex.h, update include | |
1191 | file wrapping define name. | |
1192 | * configure: Rebuilt. | |
1193 | * configure.ac (gdb_use_included_regex, --without-included-regex) | |
1194 | (USE_INCLUDED_REGEX): Move them to common/common.m4. | |
1195 | * gdb_regex.h: Move it to common/gdb_regex.h. | |
1196 | * utils.c: Remove include gdb_regex.h. | |
1197 | (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error) | |
1198 | (compile_rx_or_error): Move them to common/gdb_regex.c. | |
1199 | ||
ddc98fbf JK |
1200 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
1201 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1202 | ||
1203 | Create empty nat/linux-maps.[ch] and common/target-utils.[ch]. | |
1204 | * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h, | |
1205 | common/target-utils.h. | |
1206 | (COMMON_OBS): Add target-utils.o. | |
1207 | (linux-maps.o, target-utils.o): New. | |
1208 | * target/target-utils.c: New file. | |
1209 | * target/target-utils.h: New file. | |
1210 | * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o. | |
1211 | * config/i386/linux64.mh (NATDEPFILES): Ditto. | |
1212 | * nat/linux-maps.c: New file. | |
1213 | * nat/linux-maps.h: New file. | |
1214 | ||
e7b01ce0 MM |
1215 | 2015-07-15 Markus Metzger <markus.t.metzger@intel.com> |
1216 | Pedro Alves <palves@redhat.com> | |
1217 | ||
1218 | * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD. | |
1219 | (perf_event_read_all): Change the type of SIZE and DATA_HEAD. | |
1220 | (perf_event_read_bts): Change the type of SIZE and READ. | |
1221 | (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE, | |
1222 | and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size | |
1223 | to UINT_MAX. Check for overflows when using DATA_HEAD from the perf | |
1224 | mmap page. | |
1225 | (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the | |
1226 | buffer size to UINT_MAX. | |
1227 | (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and | |
1228 | DATA_TAIL. | |
1229 | * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head> | |
1230 | <last_head>: Change type. | |
1231 | * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type. | |
1232 | * common/btrace-common.c (btrace_data_append): Change the type of | |
1233 | SIZE. | |
1234 | * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness | |
1235 | check. | |
1236 | ||
f168693b SM |
1237 | 2015-07-14 Simon Marchi <simon.marchi@ericsson.com> |
1238 | ||
1239 | * gdbtypes.h (CHECK_TYPEDEF): Remove. | |
1240 | * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF | |
1241 | with check_typedef. | |
1242 | * ada-lang.c (decode_constrained_packed_array_type): Likewise. | |
1243 | (ada_array_length): Likewise. | |
1244 | (find_parallel_type_by_descriptive_type): Likewise. | |
1245 | (ada_check_typedef): Likewise. | |
1246 | * arm-tdep.c (arm_return_in_memory): Likewise. | |
1247 | * ax-gdb.c (gen_trace_static_fields): Likewise. | |
1248 | (gen_struct_ref_recursive): Likewise. | |
1249 | * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise. | |
1250 | (variable: block COLONCOLON name): Likewise. | |
1251 | (qualified_name: TYPENAME COLONCOLON name): Likewise. | |
1252 | * c-lang.c (classify_type): Likewise. | |
1253 | * c-typeprint.c (c_print_type): Likewise. | |
1254 | (c_print_typedef): Likewise. | |
1255 | (c_type_print_base): Likewise. | |
1256 | * c-valprint.c (c_val_print): Likewise. | |
1257 | * compile/compile-c-types.c (convert_type): Likewise. | |
1258 | * compile/compile-object-load.c (get_out_value_type): Likewise. | |
1259 | * completer.c (add_struct_fields): Likewise. | |
1260 | (expression_completer): Likewise. | |
1261 | * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise. | |
1262 | (cp_lookup_nested_symbol_1): Likewise. | |
1263 | (cp_lookup_nested_symbol): Likewise. | |
1264 | * cp-valprint.c (cp_print_value_fields): Likewise. | |
1265 | (cp_print_static_field): Likewise. | |
1266 | * d-valprint.c (d_val_print): Likewise. | |
1267 | * eval.c (evaluate_subexp_standard): Likewise. | |
1268 | (evaluate_subexp_for_sizeof): Likewise. | |
1269 | * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise. | |
1270 | * f-typeprint.c (f_type_print_base): Likewise. | |
1271 | * f-valprint.c (f_val_print): Likewise. | |
1272 | * gdbtypes.c (get_discrete_bounds): Likewise. | |
1273 | (create_array_type_with_stride): Likewise. | |
1274 | (type_name_no_tag_or_error): Likewise. | |
1275 | (lookup_struct_elt_type): Likewise. | |
1276 | (get_unsigned_type_max): Likewise. | |
1277 | (internal_type_vptr_fieldno): Likewise. | |
1278 | (set_type_vptr_fieldno): Likewise. | |
1279 | (internal_type_vptr_basetype): Likewise. | |
1280 | (set_type_vptr_basetype): Likewise. | |
1281 | (get_vptr_fieldno): Likewise. | |
1282 | (is_integral_type): Likewise. | |
1283 | (is_scalar_type): Likewise. | |
1284 | (is_scalar_type_recursive): Likewise. | |
1285 | (distance_to_ancestor): Likewise. | |
1286 | (is_unique_ancestor_worker): Likewise. | |
1287 | (check_types_equal): Likewise. | |
1288 | * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise. | |
1289 | ||
45280282 IB |
1290 | 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org> |
1291 | ||
1292 | * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to | |
1293 | also test for language_d. | |
1294 | (dwarf2_compute_name): Likewise. | |
1295 | (read_func_scope): Likewise. | |
1296 | (read_structure_type): Likewise. | |
1297 | (new_symbol_full): Likewise. | |
1298 | (determine_prefix): Likewise. | |
1299 | (read_import_statement): Use dot as the separator for language_d. | |
1300 | (typename_concat): Likewise, but don't prefix the D main function. | |
1301 | ||
99fe86f7 PB |
1302 | 2015-07-14 Peter Bergner <bergner@vnet.ibm.com> |
1303 | ||
1304 | * nat/linux-namespaces.c (setns): Rename from this ... | |
1305 | (do_setns): ... to this. Support calling setns if it exists. | |
1306 | (mnsh_handle_setns): Call do_setns. | |
1307 | ||
d5131498 YQ |
1308 | 2015-07-13 Yao Qi <yao.qi@linaro.org> |
1309 | ||
1310 | * exec.c (exec_file_attach): Add period at the end of error | |
1311 | message. | |
1312 | ||
97605e61 AB |
1313 | 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com> |
1314 | ||
1315 | * tui/tui-win.c (window_name_completer): New function. | |
1316 | (focus_completer): Call window_name_completer. All old content | |
1317 | moved into window_name_completer. | |
1318 | (winheight_completer): New function. | |
1319 | (_initialize_tui_win): Rename variable. Add completer to | |
1320 | winheight command. Update doc string on winheight. | |
1321 | ||
8d6dbeb4 SL |
1322 | 2015-07-12 Sandra Loosemore <sandra@codesourcery.com> |
1323 | ||
1324 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register | |
1325 | all nios2 mach variants. | |
1326 | ||
a0e28e54 KB |
1327 | 2015-07-10 Kevin Buettner <kevinb@redhat.com> |
1328 | ||
1329 | * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead | |
1330 | of target_read_memory. | |
1331 | ||
c101f28f AB |
1332 | 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com> |
1333 | ||
1334 | * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the | |
1335 | string copy. | |
1336 | (parse_scrolling_args): Likewise. | |
1337 | ||
150375dc AB |
1338 | 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com> |
1339 | ||
1340 | * tui/tui-win.c (focus_completer): Don't duplicate the tui window | |
1341 | names in this function. | |
1342 | ||
6dce28e4 AB |
1343 | 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com> |
1344 | ||
1345 | * tui/tui-data.h (SRC_NAME): Convert to lower case. | |
1346 | (CMD_NAME): Likewise. | |
1347 | (DATA_NAME): Likewise. | |
1348 | (DISASSEM_NAME): Likewise. | |
1349 | * tui/tui-win.c (tui_set_focus): Window names are now lower case. | |
1350 | (tui_set_win_height): Likewise. | |
1351 | (parse_scrolling_args): Likewise. | |
1352 | ||
485668e5 MM |
1353 | 2015-07-10 Markus Metzger <markus.t.metzger@intel.com> |
1354 | ||
1355 | * record-btrace.c (record_btrace_goto_begin) | |
1356 | (record_btrace_goto_end, record_btrace_goto): Move call to | |
1357 | print_stack_frame ... | |
1358 | (record_btrace_set_replay): ... here. Set stop_pc. | |
1359 | * record-full.c (record_full_goto_entry): Set stop_pc. | |
1360 | ||
58d2eda5 PL |
1361 | 2015-07-09 Pierre Langlois <pierre.langlois@arm.com> |
1362 | ||
1363 | * NEWS: Mention support for tracepoints on aarch64-linux. | |
1364 | ||
7671bf47 PL |
1365 | 2015-07-09 Pierre Langlois <pierre.langlois@arm.com> |
1366 | ||
1367 | * linux-aarch64-low.c (aarch64_supports_tracepoints): New | |
1368 | function. Return 1. | |
1369 | (the_low_target): Install it. | |
1370 | ||
7890fb45 PL |
1371 | 2015-07-09 Pierre Langlois <pierre.langlois@arm.com> |
1372 | ||
1373 | * gdb.trace/backtrace.exp: Set registers for aarch64 target. | |
1374 | * gdb.trace/collection.exp: Likewise. | |
1375 | * gdb.trace/mi-trace-frame-collected.exp: Likewise. | |
1376 | * gdb.trace/mi-trace-unavailable.exp: Likewise. | |
1377 | * gdb.trace/report.exp: Likewise. | |
1378 | * gdb.trace/trace-break.exp: Likewise. | |
1379 | * gdb.trace/unavailable.exp: Likewise. | |
1380 | * gdb.trace/while-dyn.exp: Likewise. | |
1381 | ||
ea873d8e PL |
1382 | 2015-07-09 Pierre Langlois <pierre.langlois@arm.com> |
1383 | ||
1384 | * aarch64-tdep.c: Add ax.h and ax-gdb.h includes. | |
1385 | (aarch64_gen_return_address): New function. | |
1386 | (aarch64_gdbarch_init): Hook it. | |
1387 | ||
02a2a705 PL |
1388 | 2015-07-09 Pierre Langlois <pierre.langlois@arm.com> |
1389 | ||
1390 | * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and | |
1391 | swallow NOT_AVAILABLE_ERROR. | |
1392 | (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if | |
1393 | available_p is not set. | |
1394 | (aarch64_stub_frame_unwind_stop_reason): New function. | |
1395 | (aarch64_stub_unwind): Install it. | |
1396 | ||
7dfa3edc PL |
1397 | 2015-07-09 Pierre Langlois <pierre.langlois@arm.com> |
1398 | ||
1399 | * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New | |
1400 | field. | |
1401 | (aarch64_make_prologue_cache_1): New function, factored out from | |
1402 | aarch64_make_prologue_cache. Do not allocate cache. Set | |
1403 | available_p. | |
1404 | (aarch64_make_prologue_cache): Reimplement wrapping | |
1405 | aarch64_make_prologue_cache_1, and swallowing | |
1406 | NOT_AVAILABLE_ERROR. | |
1407 | (aarch64_prologue_frame_unwind_stop_reason): New function. | |
1408 | Return UNWIND_UNAVAILABLE if available_p is not set. | |
1409 | (aarch64_prologue_unwind): Install it. | |
1410 | (aarch64_prologue_this_id): Move prev_pc and prev_sp limit | |
1411 | checks into aarch64_prologue_frame_unwind_stop_reason. Call | |
1412 | frame_id_build_unavailable_stack if available_p is not set. | |
1413 | ||
db634143 PL |
1414 | 2015-07-09 Pierre Langlois <pierre.langlois@arm.com> |
1415 | ||
1416 | * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New | |
1417 | fields. | |
1418 | (aarch64_scan_prologue): Set prev_pc. | |
1419 | (aarch64_make_prologue_cache): Set func. | |
1420 | (aarch64_make_stub_cache): Set prev_pc. | |
1421 | (aarch64_prologue_this_id): Remove local variables id, pc and | |
1422 | func. Read prev_pc and func from cache. | |
1423 | (aarch64_stub_this_id): Read prev_pc from cache. | |
1424 | ||
8b61f75d PL |
1425 | 2015-07-09 Pierre Langlois <pierre.langlois@arm.com> |
1426 | ||
1427 | * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New | |
1428 | argument this_cache. Remove unused local variables reg and | |
1429 | unwound_fp. Return early if this_cache is already set. Set | |
1430 | this_cache. | |
1431 | (aarch64_stub_this_id): Update call to aarch64_make_stub_cache. | |
1432 | ||
7c8edfae PL |
1433 | 2015-07-09 Pierre Langlois <pierre.langlois@arm.com> |
1434 | ||
1435 | * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment. | |
1436 | New argument this_cache. Return early if this_cache is already | |
1437 | set. Set this_cache. | |
1438 | (aarch64_prologue_this_id): Update call to | |
1439 | aarch64_make_prologue_cache. | |
1440 | (aarch64_prologue_prev_register): Likewise. | |
1441 | (aarch64_normal_frame_base): Likewise. | |
1442 | ||
938c69a1 SM |
1443 | 2015-07-09 Simon Marchi <simon.marchi@ericsson.com> |
1444 | ||
1445 | * c-valprint.c (c_val_print): Factor out memberptr printing code | |
1446 | from c_val_print to ... | |
1447 | (c_val_print_memberptr): ... this new function. | |
1448 | ||
49f7fe28 SM |
1449 | 2015-07-09 Simon Marchi <simon.marchi@ericsson.com> |
1450 | ||
1451 | * c-valprint.c (c_val_print): Factor out int printing code to ... | |
1452 | (c_val_print_int): ... this new function. | |
1453 | ||
9e4f353c SM |
1454 | 2015-07-09 Simon Marchi <simon.marchi@ericsson.com> |
1455 | ||
1456 | * c-valprint.c (c_val_print): Factor out struct and union | |
1457 | printing code to ... | |
1458 | (c_val_print_struct): ... this new function ... | |
1459 | (c_val_print_union): ... and this new function. | |
1460 | ||
1c67f032 SM |
1461 | 2015-07-09 Simon Marchi <simon.marchi@ericsson.com> |
1462 | ||
1463 | * c-valprint.c (c_val_print): Factor out pointer printing code | |
1464 | to ... | |
1465 | (c_val_print_ptr): ... this new function. | |
1466 | ||
0b6ef777 SM |
1467 | 2015-07-09 Simon Marchi <simon.marchi@ericsson.com> |
1468 | ||
1469 | * c-valprint.c (c_valprint): Factor our array printing code from | |
1470 | c_val_print to ... | |
1471 | (c_val_print_array): ... this new function. | |
1472 | ||
1033c33c SM |
1473 | 2015-07-09 Simon Marchi <simon.marchi@ericsson.com> |
1474 | ||
1475 | * c-valprint.c (c_val_print): Factor out pointer printing code | |
1476 | to ... | |
1477 | (print_unpacked_pointer): ... this new function. | |
1478 | ||
f6b93c34 SM |
1479 | 2015-07-09 Simon Marchi <simon.marchi@ericsson.com> |
1480 | ||
1481 | * c-valprint.c (c_val_print): Remove an assignment to i and move | |
1482 | its declaration. | |
1483 | ||
0f4576e3 YQ |
1484 | 2015-07-09 Yao Qi <yao.qi@linaro.org> |
1485 | ||
1486 | * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add | |
1487 | argument ptid. Update comments. Caller update. | |
1488 | ||
37fdfe4c MM |
1489 | 2015-07-09 Markus Metzger <markus.t.metzger@intel.com> |
1490 | ||
1491 | * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and | |
1492 | mnt packets. | |
1493 | ||
80a2b330 MM |
1494 | 2015-07-09 Markus Metzger <markus.t.metzger@intel.com> |
1495 | ||
1496 | * btrace.c (btrace_pt_readmem_callback): Change type of PC argument. | |
1497 | ||
4ab31498 SM |
1498 | 2015-07-08 Simon Marchi <simon.marchi@ericsson.com> |
1499 | ||
1500 | * progspace.c (delete_program_space): Add missing spaces. | |
1501 | ||
7a41607e SM |
1502 | 2015-07-08 Simon Marchi <simon.marchi@ericsson.com> |
1503 | ||
1504 | * inferior.c (delete_inferior_1): Rename to ... | |
1505 | (delete_inferior): ..., remove 'silent' parameter, delete | |
1506 | program space when unused and remove call to prune_program_spaces. | |
1507 | Remove the old, unused, delete_inferior. | |
1508 | (delete_inferior_silent): Remove. | |
1509 | (prune_inferiors): Change call from delete_inferior_1 to | |
1510 | delete_inferior and remove 'silent' parameter. Remove call to | |
1511 | prune_program_spaces. | |
1512 | (remove_inferior_command): Idem. | |
1513 | * inferior.h (delete_inferior_1): Rename to... | |
1514 | (delete_inferior): ..., remove 'silent' parameter and remove the | |
1515 | original delete_inferior. | |
1516 | (delete_inferior_silent): Remove. | |
1517 | * mi/mi-main.c (mi_cmd_remove_inferior): Change call from | |
1518 | delete_inferior_1 to delete_inferior and remove 'silent' | |
1519 | parameter. | |
1520 | * progspace.c (prune_program_spaces): Remove. | |
1521 | (pspace_empty_p): Rename to... | |
1522 | (program_space_empty_p): ... and make non-static. | |
1523 | (delete_program_space): New. | |
1524 | * progspace.h (prune_program_spaces): Remove declaration. | |
1525 | (program_space_empty_p): New declaration. | |
1526 | (delete_program_space): New declaration. | |
1527 | * monitor.c (monitor_close): Replace call to | |
1528 | delete_thread_silent and delete_inferior_silent with | |
1529 | discard_all_inferiors. | |
1530 | ||
a9bd710f PP |
1531 | 2015-07-08 Patrick Palka <patrick@parcs.ath.cx> |
1532 | ||
1533 | * defs.h (deprecated_register_changed_hook): Remove prototype. | |
1534 | * interps.c (clear_iterpreter_hooks): Remove reference to | |
1535 | deprecated_register_changed_hook. | |
1536 | * top.c (deprecated_register_changed_hook): Remove prototype. | |
1537 | * valops.c (value_assign): Remove reference to | |
1538 | deprecated_register_changed_hook. | |
1539 | * tui/tui-hooks.c (tui_register_changed): Add parameter "frame". | |
1540 | Add comment documenting the function. | |
1541 | (tui_register_changed_observer): Define. | |
1542 | (tui_install_hooks): Remove reference to | |
1543 | deprecated_register_changed_hook. Set | |
1544 | tui_register_changed_observer. | |
1545 | (tui_remove_hooks): Remove reference to | |
1546 | deprecated_register_changed_hook. Unset | |
1547 | tui_register_changed_observer. | |
1548 | ||
08464196 JK |
1549 | 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
1550 | ||
1551 | PR compile/18484 | |
1552 | * compile/compile-c-types.c (insert_type): Change gdb_assert to error. | |
1553 | ||
bcf5c1d9 RC |
1554 | 2015-07-08 Robert O'Callahan <robert@ocallahan.org> |
1555 | ||
1556 | PR exp/18617 | |
1557 | * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'. | |
1558 | ||
e8643a45 MM |
1559 | 2015-07-08 Markus Metzger <markus.t.metzger@intel.com> |
1560 | ||
1561 | * MAINTAINERS (Write After Approval): Add Markus T. Metzger. | |
1562 | ||
76fb6829 MM |
1563 | 2015-07-08 Markus Metzger <markus.t.metzger@intel.com> |
1564 | ||
1565 | * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt): | |
1566 | Use safe_strerror() instead of strerror(). | |
1567 | ||
82c40d4b YQ |
1568 | 2015-07-07 Yao Qi <yao.qi@linaro.org> |
1569 | ||
1570 | * features/arm-with-m-fpa-layout.xml: Set architecture to arm. | |
1571 | * features/arm-with-m-fpa-layout.c: Regenerated. | |
1572 | * features/arm-with-m-vfp-d16.xml: Likewise. | |
1573 | * features/arm-with-m-vfp-d16.c: Regenerated. | |
1574 | * features/arm-with-m.xml: Likewise. | |
1575 | * features/arm-with-m.c: Regenerated. | |
1576 | * features/arm-with-neon.xml: Likewise. | |
1577 | * features/arm-with-neon.c: Regenerated. | |
1578 | * features/arm-with-vfpv2.xml: Likewise. | |
1579 | * features/arm-with-vfpv2.c: Regenerated. | |
1580 | * features/arm-with-vfpv3.xml: Likewise. | |
1581 | * features/arm-with-vfpv3.c: Regenerated. | |
1582 | ||
607685ec YQ |
1583 | 2015-07-07 Yao Qi <yao.qi@linaro.org> |
1584 | ||
1585 | * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from | |
1586 | arm-linux-nat.c. | |
1587 | * aarch64-linux-nat.c: Include aarch32-linux-nat.h and | |
1588 | elf/external.h. | |
1589 | (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply | |
1590 | if target is 32-bit. | |
1591 | (store_gregs_to_thread): Call aarch32_gp_regcache_collect | |
1592 | if target is 32-bit. | |
1593 | (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply | |
1594 | if target is 32-bit. | |
1595 | (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect | |
1596 | if target is 32-bit. | |
1597 | (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare. | |
1598 | (aarch64_linux_read_description): Return the right target | |
1599 | description. | |
1600 | * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h. | |
1601 | * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o. | |
1602 | * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and | |
1603 | arm-linux-tdep.o. | |
1604 | ||
f1b67888 YQ |
1605 | 2015-07-07 Yao Qi <yao.qi@linaro.org> |
1606 | ||
1607 | * aarch32-linux-nat.c: New file. | |
1608 | * aarch32-linux-nat.h: New file. | |
1609 | * arm-linux-nat.c: Include aarch32-linux-nat.h. | |
1610 | (fetch_regs): Move code to aarch32-linux-nat.c. Call | |
1611 | aarch32_gp_regcache_supply. | |
1612 | (store_regs): Move code to aarch32-linux-nat.c. Call | |
1613 | aarch32_gp_regcache_collect. | |
1614 | (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call | |
1615 | aarch32_vfp_regcache_supply. | |
1616 | (store_vfp_regs): Move code to aarch32-linux-nat.c. Call | |
1617 | aarch32_vfp_regcache_collect. | |
1618 | * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o. | |
1619 | ||
179bfe82 YQ |
1620 | 2015-07-07 Yao Qi <yao.qi@linaro.org> |
1621 | ||
1622 | * arm-linux-nat.c (store_fpregister): Remove. | |
1623 | (store_register): Likewise. | |
1624 | (fetch_fpregister): Likewise. | |
1625 | (fetch_register): Likewise. | |
1626 | (arm_linux_store_inferior_registers): Call store_regs and | |
1627 | store_fpregs instead. | |
1628 | (arm_linux_fetch_inferior_registers): Call fetch_fpregs and | |
1629 | fetch_regs instead. | |
1630 | ||
6008fc5f AB |
1631 | 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1632 | ||
1633 | * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout | |
1634 | and focus commands. | |
1635 | ||
7c79d316 JB |
1636 | 2015-07-06 Joel Brobecker <brobecker@adacore.com> |
1637 | ||
1638 | * NEWS: Create a new section for the next release branch. | |
1639 | Rename the section of the current branch, now that it has | |
1640 | been cut. | |
1641 | ||
f2232bea JB |
1642 | 2015-07-06 Joel Brobecker <brobecker@adacore.com> |
1643 | ||
1644 | GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e): | |
1645 | * version.in: Bump version to 7.10.50.DATE-cvs. | |
1646 | ||
66c4b3e8 LM |
1647 | 2015-07-06 Luis Machado <lgustavo@codesourcery.com> |
1648 | ||
1649 | * breakpoint.c (remove_breakpoint_1): Don't handle permanent | |
1650 | breakpoints in a special way. | |
1651 | (remove_breakpoint): Likewise. | |
1652 | (mark_breakpoints_out): Likewise. | |
1653 | ||
bcd8537c AB |
1654 | 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1655 | ||
1656 | * doc/gdb.texinfo (TUI): Add comma after @xref. | |
1657 | ||
10e9aaa3 AB |
1658 | 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1659 | ||
1660 | * tui/tui-win.c (tui_set_focus): Use structure member 'generic' | |
1661 | instead of casting the structure type. | |
1662 | ||
8a13d42d SM |
1663 | 2015-07-06 Simon Marchi <simon.marchi@ericsson.com> |
1664 | ||
1665 | * valops.c (search_struct_field): Remove OFFSET parameter. | |
1666 | (value_cast_structs): Adjust calls to search_struct_field. | |
1667 | (value_struct_elt): Same. | |
1668 | (find_overload_match): Same. | |
1669 | ||
a844296a SM |
1670 | 2015-07-06 Simon Marchi <simon.marchi@ericsson.com> |
1671 | ||
1672 | * value.c (value_fetch_lazy): Update comment, change return | |
1673 | value to void. | |
1674 | * value.h (value_fetch_lazy): Change return value to void. | |
1675 | ||
f41cbf58 AB |
1676 | 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1677 | ||
1678 | * tui/tui-data.c (tui_partial_win_by_name): Window name is const. | |
1679 | (tui_win_name): Make parameter and result const. | |
1680 | * tui/tui-data.h (tui_win_name): Make parameter and result const. | |
1681 | ||
118ca224 PP |
1682 | 2015-07-06 Patrick Palka <patrick@parcs.ath.cx> |
1683 | ||
1684 | * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead | |
1685 | use printf_unfiltered. | |
1686 | (set_mpx_cmd): Add missing trailing space to command string | |
1687 | literal. | |
1688 | (_initialize_i386_tdep): Give the "mpx" prefix command its | |
1689 | correct name. | |
1690 | ||
1b485e67 KB |
1691 | 2015-07-02 Kevin Buettner <kevinb@redhat.com> |
1692 | ||
1693 | * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants. | |
1694 | (enum rx_frame_type): New. | |
1695 | (struct rx_prologue): Add new field `frame_type'. | |
1696 | (rx_analyze_prologue): Add `frame_type' parameter. Cache this | |
1697 | parameter in the prologue struct. Add code for recording | |
1698 | locations of PC and PSW for fast interrupt and exception frames. | |
1699 | (rx_skip_prologue): Adjust call to rx_analyze_prologue. | |
1700 | (rx_analyze_frame_prologue): Add `frame_type' parameter. | |
1701 | (rx_frame_type): New function. | |
1702 | (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue. | |
1703 | (rx_frame_this_id): Rename parameter `this_prologue_cache' to | |
1704 | `this_cache'. | |
1705 | (rx_frame_prev_register): Rename parameter `this_prologue_cache' to | |
72f4393d | 1706 | `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and |
1b485e67 KB |
1707 | RX_FRAME_TYPE_FAST_INTERRUPT. |
1708 | (normal_frame_p, exception_frame_p, rx_frame_sniffer_common) | |
1709 | (rx_frame_sniffer, rx_exception_sniffer): New functions. | |
1710 | (rx_frame_unwind): Use rx_frame_sniffer instead of | |
1711 | default_frame_sniffer. | |
1712 | (rx_frame_unwind): New unwinder. | |
1713 | (rx_gdbarch_init): Register new unwinder. | |
1714 | ||
0561fea4 KB |
1715 | 2015-07-02 Kevin Buettner <kevinb@redhat.com> |
1716 | ||
1717 | * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants. | |
1718 | (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type. | |
1719 | (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM, | |
1720 | and RX_FPSW_REGNUM. | |
1721 | (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types. | |
1722 | ||
decf8d9a JK |
1723 | 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1724 | ||
1725 | Fix GCC false warning. | |
1726 | * s390-linux-tdep.c (s390_handle_arg): Initialize VAL. | |
1727 | ||
2fd0f80d YQ |
1728 | 2015-07-02 Yao Qi <yao.qi@linaro.org> |
1729 | ||
1730 | * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix | |
1731 | typo in the debugging message. | |
1732 | ||
b0627500 MM |
1733 | 2015-07-02 Markus Metzger <markus.t.metzger@intel.com> |
1734 | ||
1735 | * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h. | |
1736 | (maint_btrace_cmdlist, maint_btrace_set_cmdlist) | |
1737 | (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist) | |
1738 | (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad) | |
1739 | (btrace_maint_clear): New. | |
1740 | (btrace_fetch, btrace_clear): Call btrace_maint_clear. | |
1741 | (pt_print_packet, btrace_maint_decode_pt) | |
1742 | (btrace_maint_update_pt_packets, btrace_maint_update_packets) | |
1743 | (btrace_maint_print_packets, get_uint, get_context_size, no_chunk) | |
1744 | (maint_btrace_packet_history_cmd) | |
1745 | (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd) | |
1746 | (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd) | |
1747 | (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd) | |
1748 | (maint_info_btrace_cmd, _initialize_btrace): New. | |
1749 | * btrace.h (btrace_pt_packet, btrace_pt_packet_s) | |
1750 | (btrace_maint_packet_history, btrace_maint_info): New. | |
1751 | (btrace_thread_info) <maint>: New. | |
1752 | * NEWS: Announce it. | |
1753 | ||
9be54cae MM |
1754 | 2015-07-02 Markus Metzger <markus.t.metzger@intel.com> |
1755 | ||
1756 | * btrace.c (btrace_fetch): Append the new trace data. | |
1757 | (btrace_clear): Clear the stored trace data. | |
1758 | * btrace.h (btrace_thread_info) <data>: New. | |
1759 | * common/btrace-common.h (btrace_data_clear) | |
1760 | (btrace_data_append): New. | |
1761 | * common/btrace-common.c (btrace_data_clear) | |
1762 | (btrace_data_append): New. | |
1763 | ||
010a18a1 MM |
1764 | 2015-07-02 Markus Metzger <markus.t.metzger@intel.com> |
1765 | ||
1766 | * nat/linux-btrace.c (linux_enable_bts): Check for | |
1767 | PERF_ATTR_SIZE_VER5. | |
1768 | Check for data_offset and data_size fields. Use them. | |
1769 | ||
b20a6524 MM |
1770 | 2015-07-02 Markus Metzger <markus.t.metzger@intel.com> |
1771 | ||
1772 | * NEWS: Announce new commands "record btrace pt" and "record pt". | |
1773 | Announce new options "set|show record btrace pt buffer-size". | |
1774 | * btrace.c: Include "rsp-low.h". | |
1775 | Include "inttypes.h". | |
1776 | (btrace_add_pc): Add forward declaration. | |
1777 | (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback) | |
1778 | (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt) | |
1779 | (btrace_compute_ftrace_pt): New. | |
1780 | (btrace_compute_ftrace): Support BTRACE_FORMAT_PT. | |
1781 | (check_xml_btrace_version): Update version check. | |
1782 | (parse_xml_raw, parse_xml_btrace_pt_config_cpu) | |
1783 | (parse_xml_btrace_pt_raw, parse_xml_btrace_pt) | |
1784 | (btrace_pt_config_cpu_attributes, btrace_pt_config_children) | |
1785 | (btrace_pt_children): New. | |
1786 | (btrace_children): Add support for "pt". | |
1787 | (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New. | |
1788 | (btrace_conf_children): Add support for "pt". | |
1789 | * btrace.h: Include "intel-pt.h". | |
1790 | (btrace_pt_error): New. | |
1791 | * common/btrace-common.c (btrace_format_string, btrace_data_fini) | |
1792 | (btrace_data_empty): Support BTRACE_FORMAT_PT. | |
1793 | * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT. | |
1794 | (struct btrace_config_pt): New. | |
1795 | (struct btrace_config)<pt>: New. | |
1796 | (struct btrace_data_pt_config, struct btrace_data_pt): New. | |
1797 | (struct btrace_data)<pt>: New. | |
1798 | * features/btrace-conf.dtd (btrace-conf)<pt>: New. | |
1799 | (pt): New. | |
1800 | * features/btrace.dtd (btrace)<pt>: New. | |
1801 | (pt, pt-config, cpu): New. | |
1802 | * nat/linux-btrace.c (perf_event_read, perf_event_read_all) | |
1803 | (perf_event_pt_event_type, kernel_supports_pt) | |
1804 | (linux_supports_pt): New. | |
1805 | (linux_supports_btrace): Support BTRACE_FORMAT_PT. | |
1806 | (linux_enable_bts): Free tinfo on error. | |
1807 | (linux_enable_pt): New. | |
1808 | (linux_enable_btrace): Support BTRACE_FORMAT_PT. | |
1809 | (linux_disable_pt): New. | |
1810 | (linux_disable_btrace): Support BTRACE_FORMAT_PT. | |
1811 | (linux_fill_btrace_pt_config, linux_read_pt): New. | |
1812 | (linux_read_btrace): Support BTRACE_FORMAT_PT. | |
1813 | * nat/linux-btrace.h (struct btrace_tinfo_pt): New. | |
1814 | (struct btrace_target_info)<pt>: New. | |
1815 | * record-btrace.c (set_record_btrace_pt_cmdlist) | |
1816 | (show_record_btrace_pt_cmdlist): New. | |
1817 | (record_btrace_print_pt_conf): New. | |
1818 | (record_btrace_print_conf): Support BTRACE_FORMAT_PT. | |
1819 | (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT. | |
1820 | (cmd_record_btrace_pt_start): New. | |
1821 | (cmd_record_btrace_start): Support BTRACE_FORMAT_PT. | |
1822 | (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New. | |
1823 | (_initialize_record_btrace): Add new commands. | |
1824 | * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New. | |
1825 | (remote_protocol_features): Add "Qbtrace:pt". | |
1826 | Add "Qbtrace-conf:pt:size". | |
1827 | (remote_supports_btrace): Support BTRACE_FORMAT_PT. | |
1828 | (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size. | |
1829 | (remote_enable_btrace): Support BTRACE_FORMAT_PT. | |
1830 | (_initialize_remote): Add new commands. | |
1831 | ||
58bfce93 MM |
1832 | 2015-07-02 Markus Metzger <markus.t.metzger@intel.com> |
1833 | ||
1834 | * configure.ac: check for libipt | |
1835 | * configure: Regenerate. | |
1836 | * config.in: Regenerate. | |
1837 | * Makefile.in (LIBIPT): New. | |
1838 | (CLIBS): Add $LIBIPT. | |
1839 | * NEWS: document new configure options | |
1840 | ||
b0fd6b30 JK |
1841 | 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1842 | ||
1843 | * compile/compile-object-load.c (compile_object_load): Replace debug | |
1844 | message "lookup undefined ELF symbol" by 3 more specific messages. | |
1845 | ||
e6280369 KB |
1846 | 2015-07-01 Kevin Buettner <kevinb@redhat.com> |
1847 | ||
1848 | * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type. | |
1849 | (rl78_register_type): Add case for RL78_PSW_REGNUM. | |
1850 | (rl78_gdbarch_init): Initialize rl78_psw_type. | |
1851 | ||
bbcbf914 PP |
1852 | 2015-07-01 Patrick Palka <patrick@parcs.ath.cx> |
1853 | ||
1854 | * tui/tui-hooks.c (tui_refresh_frame_and_register_information): | |
1855 | Update commentary. Always refresh the registers when frame | |
1856 | information has changed. | |
1857 | * tui/tui-stack.c (tui_show_frame_info): Update commentary. | |
1858 | Change return type to int. Return 1 if frame information has | |
1859 | changed, 0 otherwise. | |
1860 | (tui_before_prompt): Update commentary. | |
1861 | * tui/tui-stack.h (tui_show_frame_info): Change return type to | |
1862 | int. | |
1863 | ||
0986c744 PP |
1864 | 2015-06-30 Patrick Palka <patrick@parcs.ath.cx> |
1865 | ||
1866 | PR tui/13378 | |
1867 | * frame.c (select_frame): Remove reference to | |
1868 | deprecated_selected_frame_level_changed_hook. | |
1869 | * frame.h (deprecated_selected_frame_level_changed_hook): Remove | |
1870 | declaration. | |
1871 | * stack.c (deprecated_selected_frame_level_changed_hook): | |
1872 | Likewise. | |
1873 | * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): | |
1874 | Rename to ... | |
1875 | (tui_refresh_frame_and_register_information): ... this. Bail | |
1876 | out if there is no stack. Don't update register information | |
1877 | unless registers_too_p is true. | |
1878 | (tui_print_frame_info_listing_hook): Rename to ... | |
1879 | (tui_dummy_print_frame_info_listing_hook): ... this. | |
1880 | (tui_before_prompt): New function. | |
1881 | (tui_normal_stop): New function. | |
1882 | (tui_before_prompt_observer): New observer. | |
1883 | (tui_normal_stop_observer): New observer. | |
1884 | (tui_install_hooks): Set | |
1885 | deprecated_print_frame_info_listing_hook to | |
1886 | tui_dummy_print_frame_info_listing_hook. Register | |
1887 | tui_before_prompt_observer to call tui_before_prompt and | |
1888 | tui_normal_stop_observer to call tui_normal_stop. Remove | |
1889 | reference to deprecated_selected_frame_level_changed_hook. | |
1890 | (tui_remove_hooks): Detach and unset tui_before_prompt_observer | |
1891 | and tui_normal_stop_observer. Remove reference to | |
1892 | deprecated_selected_frame_level_changed_hook. | |
1893 | ||
b5fca6d7 PP |
1894 | 2015-06-30 Patrick Palka <patrick@parcs.ath.cx> |
1895 | ||
1896 | PR tui/13378 | |
1897 | * tui/tui-stack.c (tui_set_locator_info): Change prototype to | |
1898 | return an int instead of void. Return whether the locator | |
1899 | window has changed. | |
1900 | (tui_show_frame_info): If the locator info has not changed, then | |
1901 | bail out early to avoid refreshing the windows. | |
1902 | ||
c45613e3 PP |
1903 | 2015-06-30 Patrick Palka <patrick@parcs.ath.cx> |
1904 | ||
1905 | * tui/tui-stack.c (tui_set_locator_info): Explicitly pass | |
1906 | LOCATOR_WIN to tui_alloc_content. | |
1907 | ||
7b9be803 YQ |
1908 | 2015-06-30 Yao Qi <yao.qi@linaro.org> |
1909 | ||
1910 | PR tdep/18605 | |
1911 | * arm-tdep.c (arm_get_next_pc_raw): Break for media | |
1912 | instructions. | |
1913 | ||
fd6e021d KB |
1914 | 2015-06-29 Kevin Buettner <kevinb@redhat.com> |
1915 | ||
78ab7e9d KB |
1916 | * rx-tdep.c (RX_PSW_REGNUM): New enum constant. |
1917 | (rx_dwarf_reg_to_regnum): New function. | |
1918 | (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2 | |
1919 | unwinding. | |
fd6e021d | 1920 | |
28bf096c PA |
1921 | 2015-06-29 Pedro Alves <palves@redhat.com> |
1922 | ||
1923 | PR threads/18127 | |
1924 | * infcall.c (run_inferior_call): On infcall success, if the thread | |
1925 | was marked stopped before, reset it back to stopped. | |
1926 | * infrun.c (resume): Don't suppress the set_running calls when | |
1927 | doing an infcall. | |
1928 | (normal_stop): Only discard the finish_thread_state cleanup if the | |
1929 | infcall succeeded. | |
1930 | ||
2880b51c | 1931 | 2015-06-29 Pierre Langlois <pierre.langlois@arm.com> |
1451ea7d PL |
1932 | |
1933 | * MAINTAINERS (Write After Approval): Update my email address. | |
1934 | ||
ee93cd5e KS |
1935 | 2015-06-26 Keith Seitz <keiths@redhat.com> |
1936 | Doug Evans <dje@google.com> | |
1937 | ||
1938 | PR 16253 | |
1939 | * block.c (block_lookup_symbol): For non-function blocks, | |
1940 | continue to search for a symbol with an exact domain match | |
1941 | Otherwise, return any previously found "best domain" symbol. | |
1942 | (block_lookup_symbol_primary): Likewise. | |
1943 | ||
fc637f04 PP |
1944 | 2015-06-26 Patrick Palka <patrick@parcs.ath.cx> |
1945 | ||
1946 | * NEWS: Mention the new option "history remove-duplicates". | |
1947 | * top.c (history_remove_duplicates): New static variable. | |
1948 | (show_history_remove_duplicates): New static function. | |
1949 | (gdb_add_history): Conditionally remove duplicate history | |
1950 | entries. | |
1951 | (init_main): Add "history remove-duplicates" option. | |
1952 | ||
2e52ae68 PP |
1953 | 2015-06-26 Patrick Palka <patrick@parcs.ath.cx> |
1954 | ||
1955 | * tui/tui-win.c (focus_completer): New static function. | |
1956 | (_initialize_tui_win): Set the completion function of the | |
1957 | "focus" command to focus_completer. | |
1958 | ||
6e22494e JK |
1959 | 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
1960 | ||
1961 | * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID | |
1962 | and language_asm.. | |
1963 | * symtab.c (find_function_start_sal): Likewise. | |
1964 | ||
f8773be1 GB |
1965 | 2015-06-25 Gary Benson <gbenson@redhat.com> |
1966 | ||
1967 | * solib.c (solib_find_1): Set local variable sysroot to NULL if | |
1968 | it is the empty string after trailing slashes have been stripped. | |
1969 | ||
a3be80c3 GB |
1970 | 2015-06-25 Gary Benson <gbenson@redhat.com> |
1971 | ||
1972 | * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check. | |
1973 | * infrun.c (follow_exec): Likewise. | |
1974 | * remote.c (remote_filesystem_is_local): Likewise. | |
1975 | * solib.c (solib_find_1): Likewise. | |
1976 | ||
32fad71f KS |
1977 | 2015-06-24 Keith Seitz <keiths@redhat.com> |
1978 | ||
1979 | * build-id.c (build_id_to_debug_bfd): Add cleanup to free | |
1980 | return value from lrealpath. | |
1981 | ||
87d1b309 MF |
1982 | 2015-06-24 Mike Frysinger <vapier@gentoo.org> |
1983 | ||
1984 | * remote-sim.c (gdbsim_open): Move sysroot update to the top. | |
1985 | ||
23bf70af MF |
1986 | 2015-06-24 Mike Frysinger <vapier@gentoo.org> |
1987 | ||
1988 | * remote-sim.c: Include gdb_bfd.h. | |
1989 | (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot. | |
1990 | Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active. | |
1991 | ||
5cd867b4 YQ |
1992 | 2015-06-24 Yao Qi <yao.qi@linaro.org> |
1993 | ||
1994 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call | |
1995 | set_gdbarch_get_siginfo_type. | |
1996 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise. | |
1997 | * arm-linux-tdep.c (arm_linux_init_abi): Likewise. | |
1998 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
1999 | * m68klinux-tdep.c (m68k_linux_init_abi): Likewise. | |
2000 | * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise. | |
2001 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
2002 | * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise. | |
2003 | * linux-tdep.c (linux_get_siginfo_type): Change it to static. | |
2004 | (linux_init_abi): Call set_gdbarch_get_siginfo_type. | |
2005 | * linux-tdep.h (linux_get_siginfo_type): Remove the declaration. | |
2006 | ||
dc06243f GB |
2007 | 2015-06-24 Gary Benson <gbenson@redhat.com> |
2008 | ||
2009 | * common/buffer.c (stdint.h): Do not include. | |
2010 | * common/print-utils.c (stdint.h): Likewise. | |
2011 | * compile/compile-c-symbols.c (gdb_assert.h): Likewise. | |
2012 | * compile/compile-c-types.c (gdb_assert.h): Likewise. | |
2013 | * ft32-tdep.c (gdb_assert.h): Likewise. | |
2014 | * guile/scm-utils.c (stdint.h): Likewise. | |
2015 | * i386-linux-tdep.c (stdint.h): Likewise. | |
2016 | * i386-tdep.c (stdint.h): Likewise. | |
2017 | * nat/linux-btrace.c (stdint.h): Likewise. | |
2018 | * nat/linux-btrace.h (stdint.h): Likewise. | |
2019 | * nat/linux-ptrace.c (stdint.h): Likewise. | |
2020 | * nat/mips-linux-watch.h (stdint.h): Likewise. | |
2021 | * ppc-linux-nat.c (stdint.h): Likewise. | |
2022 | * python/python-internal.h (stdint.h): Likewise. | |
2023 | * stub-termcap.c (stdlib.h): Likewise. | |
2024 | * target/target.h (stdint.h): Likewise. | |
2025 | * xtensa-linux-nat.c (stdint.h): Likewise. | |
2026 | ||
0fc26caf PP |
2027 | 2015-06-23 Patrick Palka <patrick@parcs.ath.cx> |
2028 | ||
2029 | * top.c (init_history): Look at errno after calling strtol to | |
2030 | properly map large GDBHISTSIZE values to infinity. | |
2031 | ||
a38fe4fe DE |
2032 | 2015-06-23 Doug Evans <dje@google.com> |
2033 | ||
2034 | * inferior.h (struct inferior_suspend_state): Delete, unused. | |
2035 | All references deleted. | |
2036 | ||
7564fe45 MF |
2037 | 2015-06-23 Mike Frysinger <vapier@gentoo.org> |
2038 | ||
2039 | * microblaze-tdep.c (microblaze_push_dummy_code): Delete. | |
2040 | (microblaze_push_dummy_call): Likewise. | |
2041 | (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code | |
2042 | and set_gdbarch_push_dummy_call. | |
2043 | ||
0bdb2f78 YQ |
2044 | 2015-06-23 Yao Qi <yao.qi@linaro.org> |
2045 | ||
2046 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): | |
2047 | Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly. | |
2048 | (amd64_linux_store_inferior_registers): Likewise. | |
2049 | * arm-linux-nat.c (fetch_fpregister): Likewise. | |
2050 | (fetch_fpregs, store_fpregister): Likewise. | |
2051 | (store_fpregister, store_fpregs): Likewise. | |
2052 | (fetch_register, fetch_regs): Likewise. | |
2053 | (store_register, store_regs): Likewise. | |
2054 | (fetch_vfp_regs, store_vfp_regs): Likewise. | |
2055 | (arm_linux_read_description): Check have_ptrace_getregset is | |
2056 | TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE | |
2057 | or TRIBOOL_FALSE. | |
2058 | * i386-linux-nat.c (fetch_xstateregs): Check | |
2059 | have_ptrace_getregset is not TRIBOOL_TRUE. | |
2060 | (store_xstateregs): Likewise. | |
2061 | * linux-nat.c (have_ptrace_getregset): Change its type to | |
2062 | enum tribool. | |
2063 | * linux-nat.h (tribool): New enum. | |
2064 | * x86-linux-nat.c (x86_linux_read_description): Use enum tribool. | |
2065 | Check whether have_ptrace_getregset is TRIBOOL_TRUE. | |
2066 | ||
18a94d75 DE |
2067 | 2015-06-19 Doug Evans <dje@google.com> |
2068 | ||
2069 | * NEWS: Mention Sun's version of stabs is no longer supported. | |
2070 | * elfread.c (free_elfinfo): Delete. All uses updated. | |
2071 | (elfstab_offset_sections): Delete. All uses updated. | |
2072 | * gdb-stabs.h (stab_section_info): Delete. All uses updated. | |
2073 | * psympriv.h (partial_symtab) <section_offsets>: Delete. | |
2074 | All uses updated. | |
2075 | * psymtab.c (start_psymtab_common): Delete arg section_offsets. | |
2076 | All callers updated. | |
2077 | ||
124e13d9 SM |
2078 | 2015-06-18 Simon Marchi <simon.marchi@ericsson.com> |
2079 | ||
2080 | * common/rsp-low.c (needs_escaping): New. | |
2081 | (remote_escape_output): Add unit_size parameter. Refactor to | |
2082 | support multi-byte addressable units. Rename parameters. | |
2083 | * common/rsp-low.h (remote_escape_output): Add unit_size | |
2084 | parameter and rename others. Update doc. | |
2085 | * remote.c (align_for_efficient_write): New. | |
2086 | (remote_write_bytes_aux): Add unit_size parameter and use it. | |
2087 | Rename some variables. Update doc. | |
2088 | (remote_xfer_partial): Get unit size and use it. | |
2089 | (remote_read_bytes_1): Add unit_size parameter and use it. | |
2090 | Rename some variables. Update doc. | |
2091 | (remote_write_bytes): Same. | |
2092 | (remote_xfer_live_readonly_partial): Same. | |
2093 | (remote_read_bytes): Same. | |
2094 | (remote_flash_write): Update call to remote_write_bytes_aux. | |
2095 | (remote_write_qxfer): Update call to remote_escape_output. | |
2096 | (remote_search_memory): Same. | |
2097 | (remote_hostio_pwrite): Same. | |
2098 | ||
6ae88661 LM |
2099 | 2015-06-17 Luis Machado <lgustavo@codesourcery.com> |
2100 | ||
2101 | * breakpoint.c (add_location_to_breakpoint): Don't mark permanent | |
2102 | locations as inserted. | |
2103 | Update and expand comment about permanent locations. | |
2104 | (bp_loc_is_permanent): Don't return 0 for bp_call_dummy. | |
2105 | Move comment to add_location_to_breakpoint. | |
2106 | (update_global_location_list): Don't error out if a permanent | |
2107 | breakpoint is not marked inserted. | |
2108 | Don't error out if a non-permanent breakpoint location is inserted on | |
2109 | top of a permanent breakpoint. | |
2110 | ||
da4616f6 LM |
2111 | 2015-06-17 Luis Machado <lgustavo@codesourcery.com> |
2112 | ||
2113 | * breakpoint.c (make_breakpoint_permanent): Remove unused | |
2114 | function. | |
2115 | * breakpoint.h (make_breakpoint_permanent): Remove declaration. | |
2116 | ||
bc460514 PP |
2117 | 2015-06-17 Patrick Palka <patrick@parcs.ath.cx> |
2118 | ||
2119 | PR gdb/16999 | |
2120 | * NEWS: Mention new GDBHISTSIZE behavior. | |
2121 | * top.c (init_history): For null or out-of-range GDBHISTSIZE, | |
2122 | set history size to unlimited. Ignore non-numeric GDBHISTSIZE. | |
2123 | ||
b58c513b PP |
2124 | 2015-06-17 Patrick Palka <patrick@parcs.ath.cx> |
2125 | ||
2126 | * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE. | |
2127 | * top.c (init_history): Read from GDBHISTSIZE instead of | |
2128 | HISTSIZE. | |
2129 | (init_main): Refer to GDBHISTSIZE instead of HISTSIZE. | |
2130 | ||
2093d2d3 PP |
2131 | 2015-06-17 Patrick Palka <patrick@parcs.ath.cx> |
2132 | ||
2133 | * top.c (gdb_safe_append_history): Do not call | |
2134 | history_truncate_file if the history is not stifled. | |
2135 | ||
fc248485 AA |
2136 | 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2137 | ||
2138 | * syscalls/s390-linux.xml: Add syscalls 344 through 354. | |
2139 | * syscalls/s390x-linux.xml: Likewise. | |
2140 | ||
4da680ad ME |
2141 | 2015-06-16 Michael Eager <eager@eagercon.com> |
2142 | ||
2143 | * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined. | |
2144 | ||
0a75489f PP |
2145 | 2015-06-16 Patrick Palka <patrick@parcs.ath.cx> |
2146 | ||
2147 | * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call | |
2148 | target_terminal_ours_for_output() before calling | |
2149 | tui_show_frame_info(), and restore the original terminal | |
2150 | settings afterwards. | |
2151 | ||
95855ca8 MS |
2152 | 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch) |
2153 | ||
2154 | * arm-linux-nat.c: Include nat/linux-ptrace.h. | |
2155 | ||
cfc32360 SM |
2156 | 2015-06-15 Simon Marchi <simon.marchi@ericsson.com> |
2157 | ||
2158 | * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable | |
2159 | memory unit size. | |
2160 | (mi_cmd_data_write_memory_bytes): Same. | |
2161 | ||
cb6f16cf SM |
2162 | 2015-06-15 Simon Marchi <simon.marchi@ericsson.com> |
2163 | ||
2164 | * corefile.c (write_memory): Update doc. | |
2165 | * gdbcore.h (write_memory): Same. | |
2166 | ||
31b7833d JK |
2167 | 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
2168 | ||
2169 | * linux-tdep.c (enum filterflags): Make it from anonymous enum. | |
2170 | (dump_mapping_p): Use it for parameter filterflags. | |
2171 | (linux_find_memory_regions_full): Use it for variable filterflags. | |
2172 | ||
909c2cda JK |
2173 | 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com |
2174 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2175 | ||
2176 | Merge multiple hex conversions. | |
2177 | * monitor.c: Include rsp-low.h. | |
2178 | (fromhex): Remove definition. | |
2179 | ||
03aef70f JK |
2180 | 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com |
2181 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2182 | ||
2183 | Move utility functions to common/. | |
2184 | * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const): | |
2185 | Move defs to common/common-utils.c. | |
2186 | * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space) | |
2187 | (skip_to_space_const): Move decls to common/common-utils.h. | |
2188 | * common/common-defs.h: Move include of common-types.h before | |
2189 | common-utils.h. | |
2190 | * common/common-utils.c: Include host-defs.h and ctype.h. | |
2191 | (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move | |
2192 | from utils.c. | |
2193 | (skip_spaces, skip_spaces_const, skip_to_space_const): Move from | |
2194 | cli/cli-utils.c. | |
2195 | * common/common-utils.h (strtoulst): Move decl from utils.h. | |
2196 | (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const): | |
2197 | Move from cli/cli-utils.h. | |
2198 | * common/host-defs.h: Include limits.h. | |
2199 | (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h. | |
2200 | (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h. | |
2201 | * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to | |
2202 | common/common-utils.h. | |
2203 | * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int) | |
2204 | (strtoulst): Move to common/common-utils.c. | |
2205 | * utils.h (strtoulst): Moved decl to common/common-utils.h. | |
2206 | ||
d1168cc1 YQ |
2207 | 2015-06-15 Yao Qi <yao.qi@linaro.org> |
2208 | ||
2209 | * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml. | |
2210 | ||
c74f7d1c JT |
2211 | 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk> |
2212 | ||
2213 | * build-id.c: Don't include elf-bfd.h. | |
2214 | (build_id_bfd_get): Use bfd_build_id. | |
2215 | (build_id_verify): Ditto. | |
2216 | * build-id.h: Ditto. | |
2217 | (find_separate_debug_file_by_buildid): Ditto. | |
2218 | * python/py-objfile.c: Don't include elf-bfd.h. | |
2219 | (objfpy_get_build_id) Use bfd_build_id. | |
2220 | (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto. | |
2221 | * coffread.c: Include build-id.h. | |
2222 | (coff_symfile_read): Try find_separate_debug_file_by_buildid. | |
2223 | ||
f20c58f5 JT |
2224 | 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk> |
2225 | ||
2226 | * windows-nat.c (do_windows_fetch_inferior_registers) | |
2227 | (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE | |
2228 | conditional with __CYGWIN__. | |
2229 | ||
51f0e40d AB |
2230 | 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com> |
2231 | ||
2232 | * completer.c: Add arch-utils.h include. | |
2233 | (enum reg_completer_targets): New enum. | |
2234 | (reg_or_group_completer_1): New function containing old | |
2235 | reg_or_group_completer, add and use new parameter to control what | |
2236 | is completed on. Use get_current_arch rather than architecture of | |
2237 | currently selected frame. | |
2238 | (reg_or_group_completer): Call new reg_or_group_completer_1. | |
2239 | (reggroup_completer): Call new reg_or_group_completer_1. | |
2240 | * completer.h (reggroup_completer): Add declaration. | |
2241 | * tui/tui-regs.c: Add 'completer.h' include. | |
2242 | (tui_reg_next_command): Renamed to... | |
2243 | (tui_reg_next): ...this. Adjust parameters and return rather than | |
2244 | display new group. | |
2245 | (tui_reg_prev_command): Renamed to... | |
2246 | (tui_reg_prev): ...this. Adjust parameters and return rather than | |
2247 | display new group. | |
2248 | (tui_reg_float_command): Delete. | |
2249 | (tui_reg_general_command): Delete. | |
2250 | (tui_reg_system_command): Delete. | |
2251 | (tui_reg_command): Rewrite to perform switching of register group. | |
2252 | Add header comment. | |
2253 | (tuireglist): Remove. | |
2254 | (tui_reggroup_completer): New function. | |
2255 | (_initialize_tui_regs): Remove 'tui reg' sub-commands, update | |
2256 | creation of 'tui reg' command. | |
2257 | * NEWS: Add comment about 'tui reg' changes. | |
2258 | ||
d309493c SM |
2259 | 2015-06-12 Simon Marchi <simon.marchi@ericsson.com> |
2260 | ||
2261 | * target.c (target_read): Consider addressable unit size when | |
2262 | reading from a memory object. | |
2263 | (read_memory_robust): Same. | |
2264 | (read_whatever_is_readable): Same. | |
2265 | (target_write_with_progress): Consider addressable unit size | |
2266 | when writing to a memory object. | |
2267 | * target.h (target_read): Update documentation. | |
2268 | (target_write): Add documentation. | |
2269 | ||
3374165f SM |
2270 | 2015-06-12 Simon Marchi <simon.marchi@ericsson.com> |
2271 | ||
2272 | * arch-utils.h (default_addressable_memory_unit_size): New. | |
2273 | * arch-utils.c (default_addressable_memory_unit_size): New. | |
2274 | * gdbarch.sh (addressable_memory_unit_size): New. | |
2275 | * gdbarch.h: Re-generate. | |
2276 | * gdbarch.c: Re-generate. | |
2277 | ||
279a6fed SM |
2278 | 2015-06-12 Simon Marchi <simon.marchi@ericsson.com> |
2279 | ||
2280 | * target.c (target_read): Rename variables and use | |
2281 | TARGET_XFER_E_IO. | |
2282 | (target_read_with_progress): Same. | |
2283 | (read_memory_robust): Constify parameters and rename | |
2284 | variables. | |
2285 | (read_whatever_is_readable): Constify parameters, | |
2286 | rename variables, adjust formatting. | |
2287 | * target.h (read_memory_robust): Constify parameters. | |
2288 | ||
1e5338b6 | 2289 | 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
a1da2672 UW |
2290 | |
2291 | * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short | |
2292 | synthetic (non-AltiVec) vector types. | |
2293 | (ppc64_sysv_abi_return_value): Likewise. | |
2294 | ||
98aa42ee AT |
2295 | 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com> |
2296 | ||
2297 | PR breakpoints/16465 | |
2298 | * breakpoint.c (create_breakpoint): Save extra_string for | |
2299 | pending breakpoints. | |
2300 | ||
966f0aef WT |
2301 | 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com> |
2302 | ||
2303 | * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask | |
2304 | and bt_mask to CORE_ADDR. | |
2305 | ||
6449ed0d GB |
2306 | 2015-06-11 Gary Benson <gbenson@redhat.com> |
2307 | ||
2308 | * nat/linux-namespaces.c (mnsh_send_message): Use pulongest. | |
2309 | (mnsh_recv_message): Likewise. | |
2310 | ||
34f8ac9f WT |
2311 | 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com> |
2312 | ||
2313 | * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of | |
2314 | long long int and plongest instead of %ll. | |
2315 | ||
198c808c GB |
2316 | 2015-06-11 Gary Benson <gbenson@redhat.com> |
2317 | ||
2318 | * nat/linux-namespaces.c (gdb_wait.h): New include. | |
2319 | (sys/wait.h): Do not include. | |
2320 | ||
e815d2d2 SM |
2321 | 2015-06-10 Simon Marchi <simon.marchi@ericsson.com> |
2322 | ||
2323 | * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if | |
2324 | end_sequence is true. | |
2325 | ||
8847cac2 JK |
2326 | 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
2327 | ||
2328 | Code cleanup. | |
2329 | * solib-target.c (library_list_start_list): Use explicit NULL | |
2330 | comparison. | |
2331 | ||
24c05f46 JK |
2332 | 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
2333 | ||
2334 | * solib-target.c (library_list_start_list): Do not dereference | |
2335 | variable version in its initialization. Make the VERSION check handle | |
2336 | NULL. | |
2337 | (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL. | |
2338 | ||
51aad7cc GB |
2339 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
2340 | ||
2341 | * NEWS: Announce support for direct access of executable and | |
2342 | shared library files when attaching to inferiors in containers | |
2343 | on GNU/Linux systems. | |
2344 | ||
15a201c8 GB |
2345 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
2346 | ||
2347 | * remote.c (struct remote_state) <fs_pid>: New field. | |
2348 | (new_remote_state): Initialize the above. | |
2349 | (PACKET_vFile_setfs): New enum value. | |
2350 | (remote_hostio_set_filesystem): New function. | |
2351 | (remote_hostio_open): Call the above. | |
2352 | (remote_hostio_unlink): Likewise. | |
2353 | (remote_hostio_readlink): Likewise. | |
2354 | (_initialize_remote): Register new "set/show remote | |
2355 | hostio-setfs-packet" command. | |
2356 | * NEWS: Announce new vFile:setfs packet. | |
2357 | ||
7a6a1731 GB |
2358 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
2359 | ||
2360 | * linux-nat.c (nat/linux-namespaces.h): New include. | |
2361 | (fileio.h): Likewise. | |
2362 | (linux_nat_filesystem_is_local): New function. | |
2363 | (linux_nat_fileio_pid_of): Likewise. | |
2364 | (linux_nat_fileio_open): Likewise. | |
2365 | (linux_nat_fileio_readlink): Likewise. | |
2366 | (linux_nat_fileio_unlink): Likewise. | |
2367 | (linux_nat_add_target): Initialize to_filesystem_is_local, | |
2368 | to_fileio_open, to_fileio_readlink and to_fileio_unlink. | |
2369 | (_initialize_linux_nat): New "set/show debug linux-namespaces" | |
2370 | commands. | |
2371 | * NEWS: Mention new "set/show debug linux-namespaces" commands. | |
2372 | ||
07c138c8 GB |
2373 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
2374 | ||
2375 | * target.h (struct inferior): New forward declaration. | |
2376 | (struct target_ops) <to_filesystem_is_local>: Update comment. | |
2377 | (struct target_ops) <to_fileio_open>: New argument inf. | |
2378 | Update comment. All implementations updated. | |
2379 | (struct target_ops) <to_fileio_unlink>: Likewise. | |
2380 | (struct target_ops) <to_fileio_readlink>: Likewise. | |
2381 | (target_filesystem_is_local): Update comment. | |
2382 | (target_fileio_open): New argument inf. Update comment. | |
2383 | (target_fileio_unlink): Likewise. | |
2384 | (target_fileio_readlink): Likewise. | |
2385 | (target_fileio_read_alloc): Likewise. | |
2386 | (target_fileio_read_stralloc): Likewise. | |
2387 | * target.c (target_fileio_open): New argument inf. | |
2388 | Pass inf to implementation. Update debug printing. | |
2389 | (target_fileio_unlink): Likewise. | |
2390 | (target_fileio_readlink): Likewise. | |
2391 | (target_fileio_read_alloc_1): New argument inf. Pass inf | |
2392 | to target_fileio_open. | |
2393 | (target_fileio_read_alloc): New argument inf. Pass inf to | |
2394 | target_fileio_read_alloc_1. | |
2395 | (target_fileio_read_stralloc): Likewise. | |
2396 | * gdb_bfd.c (inferior.h): New include. | |
2397 | (gdb_bfd_iovec_fileio_open): Replace unused "open_closure" | |
2398 | argument with new argument "inferior". Pass inferior to | |
2399 | target_fileio_open. | |
2400 | (gdb_bfd_open): Supply inferior argument to | |
2401 | gdb_bfd_iovec_fileio_open. | |
2402 | * linux-tdep.c (linux_info_proc): Supply inf argument to | |
2403 | relevant target_fileio calls. | |
2404 | (linux_find_memory_regions_full): Likewise. | |
2405 | (linux_fill_prpsinfo): Likewise. | |
2406 | * remote.c (remote_filesystem_is_local): Supply inf | |
2407 | argument to remote_hostio_open. | |
2408 | (remote_file_put): Likewise. | |
2409 | (remote_file_get): Likewise. | |
2410 | (remote_file_delete): Supply inf argument to | |
2411 | remote_hostio_unlink. | |
2412 | ||
12e2a5fd GB |
2413 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
2414 | ||
2415 | * inf-child.c (inf_child_fileio_open): Replace comment. | |
2416 | (inf_child_fileio_pwrite): Likewise. | |
2417 | (inf_child_fileio_pread): Likewise. | |
2418 | (inf_child_fileio_fstat): Insert blank line before comment. | |
2419 | (inf_child_fileio_close): Replace comment. | |
2420 | (inf_child_fileio_unlink): Likewise. | |
2421 | (inf_child_fileio_readlink): Likewise. | |
2422 | * remote.c (remote_hostio_open): Likewise. | |
2423 | (remote_hostio_pread): Likewise. | |
2424 | (remote_hostio_pwrite): Likewise. | |
2425 | (remote_hostio_close): Likewise. | |
2426 | (remote_hostio_unlink): Likewise. | |
2427 | (remote_hostio_readlink): Likewise. | |
2428 | (remote_hostio_fstat): Likewise. | |
2429 | (remote_filesystem_is_local): Likewise. | |
2430 | * target.c (target_fileio_open): Likewise. | |
2431 | (target_fileio_pwrite): Likewise. | |
2432 | (target_fileio_pread): Likewise. | |
2433 | (target_fileio_fstat): Insert blank line before comment. | |
2434 | (target_fileio_close): Replace comment. | |
2435 | (target_fileio_unlink): Likewise. | |
2436 | (target_fileio_readlink): Likewise. | |
2437 | (target_fileio_read_alloc): Likewise. | |
2438 | (target_fileio_read_stralloc): Likewise. | |
2439 | ||
9bc3a976 GB |
2440 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
2441 | ||
2442 | * linux-thread-db.c (nat/linux-namespaces.h): New include. | |
2443 | (check_pid_namespace_match): Use linux_ns_same rather than | |
2444 | linux_proc_pid_get_ns to spot PID namespace mismatches. | |
2445 | * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove. | |
2446 | * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise. | |
2447 | ||
4b8b5e72 GB |
2448 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
2449 | ||
2450 | * configure.ac (AC_CHECK_FUNCS): Add setns. | |
2451 | * config.in: Regenerate. | |
2452 | * configure: Likewise. | |
2453 | * nat/linux-namespaces.h: New file. | |
2454 | * nat/linux-namespaces.c: Likewise. | |
2455 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h. | |
2456 | (linux-namespaces.o): New rule. | |
2457 | * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o. | |
2458 | * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise. | |
2459 | * config/arm/linux.mh (NATDEPFILES): Likewise. | |
2460 | * config/i386/linux.mh (NATDEPFILES): Likewise. | |
2461 | * config/i386/linux64.mh (NATDEPFILES): Likewise. | |
2462 | * config/ia64/linux.mh (NATDEPFILES): Likewise. | |
2463 | * config/m32r/linux.mh (NATDEPFILES): Likewise. | |
2464 | * config/m68k/linux.mh (NATDEPFILES): Likewise. | |
2465 | * config/mips/linux.mh (NATDEPFILES): Likewise. | |
2466 | * config/pa/linux.mh (NATDEPFILES): Likewise. | |
2467 | * config/powerpc/linux.mh (NATDEPFILES): Likewise. | |
2468 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise. | |
2469 | * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise. | |
2470 | * config/s390/linux.mh (NATDEPFILES): Likewise. | |
2471 | * config/sparc/linux.mh (NATDEPFILES): Likewise. | |
2472 | * config/sparc/linux64.mh (NATDEPFILES): Likewise. | |
2473 | * config/tilegx/linux.mh (NATDEPFILES): Likewise. | |
2474 | * config/xtensa/linux.mh (NATDEPFILES): Likewise. | |
2475 | ||
ca095836 GB |
2476 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
2477 | ||
2478 | * utils.h (make_cleanup_close): Moved to common/filestuff.h. | |
2479 | * utils.c (do_close_cleanup): Moved to common/filestuff.c. | |
2480 | (make_cleanup_close): Likewise. | |
2481 | * common/filestuff.h (make_cleanup_close): Moved from utils.h. | |
2482 | * common/filestuff.c (do_close_cleanup): Moved from utils.c. | |
2483 | (make_cleanup_close): Likewise. | |
2484 | ||
5d9c55d3 JT |
2485 | 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk> |
2486 | ||
2487 | * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE | |
2488 | from SuspendThread(). | |
2489 | ||
040ea00b JT |
2490 | 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk> |
2491 | ||
2492 | * windows-nat.c (handle_output_debug_string): Trim trailing '\n' | |
2493 | from OutputDebugString. | |
2494 | ||
7d73c23c WT |
2495 | 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com> |
2496 | Mircea Gherzan <mircea.gherzan@intel.com> | |
2497 | ||
2498 | * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32, | |
2499 | MPX_BT_MASK_32): New macros. | |
2500 | (i386_mpx_set_bounds): New function that implements | |
2501 | the command "set-mpx-bound". | |
2502 | (i386_mpx_enabled): Helper function to test MPX availability. | |
2503 | (i386_mpx_bd_base): Helper function to calculate the base directory | |
2504 | address. | |
2505 | (i386_mpx_get_bt_entry): Helper function to access a bound | |
2506 | table entry. | |
2507 | (i386_mpx_print_bounds): Effectively display bound information. | |
2508 | (_initialize_i386_tdep): Add new commands to commands "set mpx" and | |
2509 | "show mpx". | |
2510 | (_initialize_i386_tdep): | |
2511 | Add "bound" to the commands "show mpx" and "set mpx" commands. | |
2512 | (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx" | |
2513 | and "show mpx" commands. | |
2514 | * NEWS: List new commands for MPX support. | |
2515 | ||
3ac2e371 GB |
2516 | 2015-06-09 Gary Benson <gbenson@redhat.com> |
2517 | ||
2518 | * common/fileio.h (fileio_to_host_mode): New declaration. | |
2519 | * common/fileio.c (fileio_to_host_mode): New Function. | |
2520 | * inf-child.c (inf_child_fileio_open): Process mode argument | |
2521 | with fileio_to_host_mode. | |
2522 | ||
ecef18c5 GB |
2523 | 2015-06-09 Gary Benson <gbenson@redhat.com> |
2524 | ||
2525 | * common/fileio.c (fileio_mode_pack): Fix preprocessor | |
2526 | conditional. | |
2527 | ||
e3dd7556 GB |
2528 | 2015-06-05 Gary Benson <gbenson@redhat.com> |
2529 | ||
2530 | * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to... | |
2531 | * remote.c (remote_filesystem_is_local): ...here. | |
2532 | ||
5b74bf7d YQ |
2533 | 2015-06-04 Yao Qi <yao.qi@linaro.org> |
2534 | ||
2535 | * gdbarch.c: Regenerate it. | |
2536 | ||
7f361056 JK |
2537 | 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
2538 | ||
2539 | * arch-utils.c (default_infcall_munmap): New. | |
2540 | * arch-utils.h (default_infcall_munmap): New declaration. | |
2541 | * compile/compile-object-load.c (struct munmap_list, munmap_list_add) | |
2542 | (munmap_list_free, munmap_listp_free_cleanup): New. | |
2543 | (struct setup_sections_data): Add field munmap_list_headp. | |
2544 | (setup_sections): Call munmap_list_add. | |
2545 | (compile_object_load): New variable munmap_list_head, initialize | |
2546 | setup_sections_data.munmap_list_headp, return munmap_list_head. | |
2547 | * compile/compile-object-load.h (struct munmap_list): New declaration. | |
2548 | (struct compile_module): Add field munmap_list_head. | |
2549 | (munmap_list_free): New declaration. | |
2550 | * compile/compile-object-run.c (struct do_module_cleanup): Add field | |
2551 | munmap_list_head. | |
2552 | (do_module_cleanup): Call munmap_list_free. | |
2553 | (compile_object_run): Pass munmap_list_head to do_module_cleanup. | |
2554 | * gdbarch.c: Regenerate. | |
2555 | * gdbarch.h: Regenerate. | |
2556 | * gdbarch.sh (infcall_munmap): New. | |
2557 | * linux-tdep.c (linux_infcall_munmap): New. | |
2558 | (linux_init_abi): Install it. | |
2559 | ||
3b462ec2 SM |
2560 | 2015-06-02 Simon Marchi <simon.marchi@ericsson.com> |
2561 | ||
2562 | PR gdb/15564 | |
2563 | * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0. | |
2564 | ||
8d683210 YQ |
2565 | 2015-06-02 Yao Qi <yao.qi@linaro.org> |
2566 | ||
2567 | * i386-linux-nat.c: Include linux-nat.h. | |
2568 | ||
e0619de6 JK |
2569 | 2015-06-01 Andreas Schwab <schwab@linux-m68k.org> |
2570 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2571 | ||
2572 | PR symtab/18392 | |
2573 | * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct | |
2574 | assertion. | |
2575 | * dwarf2loc.c (chain_candidate): Likewise. | |
2576 | ||
bd16da51 YQ |
2577 | 2015-06-01 Yao Qi <yao.qi@linaro.org> |
2578 | ||
2579 | * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET. | |
2580 | (store_vfp_regs): Use PTRACE_SETREGSET. | |
2581 | ||
df9d7ec9 YQ |
2582 | 2015-06-01 Yao Qi <yao.qi@linaro.org> |
2583 | ||
2584 | * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET. | |
2585 | (fetch_fpregs): Likewise. | |
2586 | * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET. | |
2587 | (store_fpregs): Likewise. | |
2588 | ||
10766686 YQ |
2589 | 2015-06-01 Yao Qi <yao.qi@linaro.org> |
2590 | ||
2591 | * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET. | |
2592 | (fetch_regs): Likewise. | |
2593 | (store_regs): Use PTRACE_SETREGSET. | |
2594 | (store_register): Likewise. | |
2595 | ||
7efe48d1 YQ |
2596 | 2015-06-01 Yao Qi <yao.qi@linaro.org> |
2597 | ||
2598 | * arm-linux-nat.c (arm_linux_read_description): Check whether | |
2599 | kernel supports PTRACE_GETREGSET. | |
2600 | ||
433bbbf8 YQ |
2601 | 2015-06-01 Yao Qi <yao.qi@linaro.org> |
2602 | ||
2603 | * x86-linux-nat.c (have_ptrace_getregset): Move it to ... | |
2604 | * linux-nat.c: ... here. | |
2605 | * x86-linux-nat.h (have_ptrace_getregset): Move the declaration | |
2606 | to ... | |
2607 | * linux-nat.h: ... here. | |
2608 | ||
ca9b78ce YQ |
2609 | 2015-06-01 Yao Qi <yao.qi@linaro.org> |
2610 | ||
2611 | * amd64-linux-nat.c: Include "nat/linux-ptrace.h". | |
2612 | * i386-linux-nat.c: Likewise. | |
2613 | * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define. | |
2614 | * s390-linux-nat.c: Include "nat/linux-ptrace.h". | |
2615 | (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove. | |
2616 | * x86-linux-nat.c: Include "nat/linux-ptrace.h". | |
2617 | * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove. | |
2618 | ||
99cee7b7 EZ |
2619 | 2015-05-30 Eli Zaretskii <eliz@gnu.org> |
2620 | ||
2621 | * go32-nat.c (go32_xfer_memory): Fix the return value to be | |
2622 | compatible to what read_child and write_child return. This | |
2623 | unbreaks that DJGPP build of GDB which was broken since v7.7. | |
2624 | ||
2147f5bd MG |
2625 | 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com> |
2626 | ||
2627 | * MAINTAINERS (Write After Approval): Add Martin Galvan. | |
2628 | ||
c8f6c93c RM |
2629 | 2015-05-29 Roland McGrath <mcgrathr@google.com> |
2630 | ||
2631 | PR gdb/18464 | |
2632 | * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning | |
2633 | rather than internal_error for an unrecognized value. | |
2634 | ||
8c6a948d MF |
2635 | 2015-05-29 Max Filippov <jcmvbkbc@gmail.com> |
2636 | ||
2637 | * xtensa-tdep.c (xtensa_pseudo_register_read) | |
2638 | (xtensa_pseudo_register_write): Don't alias last pseudo register | |
2639 | to a1. | |
2640 | ||
8dd06f7a DB |
2641 | 2015-05-28 Don Breazeal <donb@codesourcery.com> |
2642 | ||
2643 | * infrun.c (follow_fork_inferior): Ensure the use of | |
2644 | process-style ptids (pid,0,0) in verbose/debug "Detaching" | |
2645 | messages. | |
2646 | ||
a051152b DE |
2647 | 2015-05-28 Doug Evans <dje@google.com> |
2648 | ||
2649 | * dwarf2read.c (record_line_ftype): Remove, duplicate. | |
2650 | ||
a56cc1ce YQ |
2651 | 2015-05-28 Yao Qi <yao.qi@linaro.org> |
2652 | ||
2653 | * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove. | |
2654 | (arm_linux_fetch_inferior_registers): Use | |
2655 | tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers. | |
2656 | (arm_linux_store_inferior_registers): Likewise. | |
2657 | (arm_linux_read_description): Don't set | |
2658 | arm_linux_has_wmmx_registers. | |
2659 | * arm-tdep.c (arm_gdbarch_init): Set | |
2660 | tdep->have_wmmx_registers according target descriptions. | |
2661 | * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New | |
2662 | field. | |
2663 | ||
330c6ca9 YQ |
2664 | 2015-05-28 Yao Qi <yao.qi@linaro.org> |
2665 | ||
2666 | * arm-linux-nat.c (arm_linux_vfp_register_count): Remove. | |
2667 | (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep | |
2668 | instead of arm_linux_vfp_register_count. | |
2669 | (store_vfp_regs): Likewise. | |
2670 | (arm_linux_fetch_inferior_registers): Likewise. | |
2671 | (arm_linux_store_inferior_registers): Likewise. | |
2672 | (arm_linux_read_description): Don't set | |
2673 | arm_linux_vfp_register_count. | |
2674 | * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections): | |
2675 | Adjust. | |
2676 | * arm-tdep.c (arm_gdbarch_init): Add assert on | |
2677 | vfp_register_count. | |
2678 | * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename | |
2679 | field to vfp_register_count. All users updated. | |
2680 | ||
d403db27 KH |
2681 | 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch) |
2682 | ||
2683 | * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on | |
2684 | ELFOSABI_GNU binaries. | |
2685 | ||
d9b3de22 DE |
2686 | 2015-05-27 Doug Evans <dje@google.com> |
2687 | ||
2688 | * dwarf2read.c (lnp_state_machine): New typedef. | |
2689 | (lnp_reader_state): New typedef. | |
2690 | (dwarf_record_line_1): Renamed from dwarf_record_line. | |
2691 | All callers updated. | |
2692 | (dwarf_record_line): New function. | |
2693 | (init_lnp_state_machine): New function. | |
2694 | (check_line_address): Replace p_record_line parameter with state. | |
2695 | All callers updated. | |
2696 | (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine. | |
2697 | Update to record state in lnp_state_machine. | |
2698 | ||
924c2928 DE |
2699 | 2015-05-27 Doug Evans <dje@google.com> |
2700 | ||
2701 | * dwarf2read.c (record_line_ftype): New typedef. | |
2702 | (check_line_address): New function. | |
2703 | (dwarf_decode_lines_1): Call it. | |
2704 | ||
27e0867f DE |
2705 | 2015-05-27 Doug Evans <dje@google.com> |
2706 | ||
2707 | * NEWS: Mention "set debug dwarf-line". | |
2708 | * dwarf2read.c (dwarf_line_debug): New static global. | |
2709 | (add_include_dir): Add debug dwarf-line support. | |
2710 | (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto. | |
2711 | (_initialize_dwarf2_read): New parameter "debug dwarf-line". | |
2712 | ||
4dcabcc2 DE |
2713 | 2015-05-27 Doug Evans <dje@google.com> |
2714 | ||
2715 | * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain". | |
2716 | All callers updated. | |
2717 | (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto. | |
2718 | * cp-support.h (cp_lookup_nested_symbol): Update. | |
2719 | ||
b2e2f908 DE |
2720 | 2015-05-27 Doug Evans <dje@google.com> |
2721 | ||
2722 | PR symtab/18258 | |
2723 | * block.c (block_find_symbol): New function. | |
2724 | (block_find_non_opaque_type): Ditto. | |
2725 | (block_find_non_opaque_type_preferred): Ditto. | |
2726 | * block.h (block_symbol_matcher_ftype): New typedef. | |
2727 | (block_find_symbol): Declare. | |
2728 | (block_find_non_opaque_type): Ditto. | |
2729 | (block_find_non_opaque_type_preferred): Ditto. | |
2730 | * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol. | |
2731 | * psymtab.c (psym_lookup_symbol): Ditto. | |
2732 | * symtab.c (basic_lookup_transparent_type_1): New function. | |
2733 | (basic_lookup_transparent_type): Call it. | |
2734 | ||
f62fce35 YQ |
2735 | 2015-05-27 Yao Qi <yao.qi@linaro.org> |
2736 | ||
2737 | * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return | |
2738 | AARCH64_RECORD_UNKNOWN for unknown instruction encoding. | |
2739 | ||
5d98d3cd YQ |
2740 | 2015-05-27 Yao Qi <yao.qi@linaro.org> |
2741 | ||
2742 | * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines | |
2743 | before operator &&. | |
2744 | (aarch64_record_load_store): Likewise. | |
2745 | ||
82c7be31 DE |
2746 | 2015-05-26 Doug Evans <dje@google.com> |
2747 | ||
2748 | PR c++/18141, c++/18417. | |
2749 | * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being | |
2750 | a typedef. | |
2751 | ||
b4f54984 DE |
2752 | 2015-05-26 Doug Evans <dje@google.com> |
2753 | ||
2754 | * NEWS: Add entries for command renamings. | |
2755 | * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug. | |
2756 | All uses updated. | |
2757 | (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated. | |
2758 | (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age. | |
2759 | All uses updated. | |
2760 | (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age. | |
2761 | All callers updated. Fix spelling of DWARF in help text. | |
2762 | (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist. | |
2763 | All uses updated. | |
2764 | (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist. | |
2765 | All uses updated. | |
2766 | (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated. | |
2767 | (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated. | |
2768 | (dwarf_always_disassemble): Renamed from dwarf_always_disassemble. | |
2769 | All uses updated. | |
2770 | (show_dwarf_always_disassemble): Renamed from | |
2771 | show_dwarf2_always_disassemble. All callers updated. | |
2772 | (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to | |
2773 | "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to | |
2774 | "set/show dwarf max-cache-age". Rename | |
2775 | "set/show dwarf2 always-disassemble" to | |
2776 | "set/show dwarf always-disassemble". Rename | |
2777 | "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename | |
2778 | "set/show debug dwarf2-die" to "set/show debug dwarf-die". | |
2779 | ||
4ea6efe9 DE |
2780 | 2015-05-26 Doug Evans <dje@google.com> |
2781 | ||
2782 | PR python/18438 | |
2783 | * python/py-lazy-string.c (stpy_convert_to_value): Use | |
2784 | gdbpy_gdb_memory_error not PyExc_MemoryError. | |
2785 | (gdbpy_create_lazy_string_object): Ditto. | |
2786 | ||
b93fd21d AB |
2787 | 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com> |
2788 | ||
2789 | * tui/tui-regs.c (tui_reg_next_command): Compare against NULL. | |
2790 | ||
55b40027 AB |
2791 | 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com> |
2792 | ||
2793 | * tui/tui-regs.c (tui_reg_prev_command): New function. | |
2794 | (_initialize_tui_regs): Add 'prev' command for 'tui reg'. | |
2795 | * reggroups.c (reggroup_prev): New function. | |
2796 | * reggroups.h (reggroup_prev): Add declaration. Update comment. | |
2797 | ||
99afc88b OJ |
2798 | 2015-05-26 Omair Javaid <omair.javaid@linaro.org> |
2799 | Yao Qi <yao.qi@linaro.org> | |
2800 | ||
2801 | * aarch64-linux-tdep.c: Include linux-record.h and | |
2802 | record-full.h. | |
2803 | (struct linux_record_tdep aarch64_linux_record_tdep): Declare. | |
2804 | (aarch64_syscall): New enum. | |
2805 | (aarch64_canonicalize_syscall): New function. | |
2806 | (aarch64_all_but_pc_registers_record): New function. | |
2807 | (aarch64_linux_syscall_record): New function. | |
2808 | (aarch64_linux_init_abi): Install AArch64 process record | |
2809 | handler. Update to handle syscall recording. | |
2810 | * aarch64-tdep.c: Include record.h and record-full.h. | |
2811 | (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros. | |
2812 | (struct aarch64_mem_r): Define. | |
2813 | (aarch64_record_result): New enum. | |
2814 | (struct insn_decode_record): Define. | |
2815 | (insn_decode_record): New typedef. | |
2816 | (aarch64_record_data_proc_reg): New function. | |
2817 | (aarch64_record_data_proc_imm): New function. | |
2818 | (aarch64_record_branch_except_sys): New function. | |
2819 | (aarch64_record_load_store): New function. | |
2820 | (aarch64_record_data_proc_simd_fp): New function. | |
2821 | (aarch64_record_asimd_load_store): New function. | |
2822 | (aarch64_record_decode_insn_handler): New function. | |
2823 | (deallocate_reg_mem): New function. | |
2824 | (aarch64_process_record): New function. | |
2825 | * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>: | |
2826 | New field. | |
2827 | (aarch64_process_record): New extern declaration. | |
2828 | * configure.tgt: Add linux-record.o to gdb_target_obs. | |
2829 | * linux-record.h (struct linux_record_tdep) <arg7>: New field. | |
2830 | ||
c16a3f52 OJ |
2831 | 2015-05-26 Omair Javaid <omair.javaid@linaro.org> |
2832 | ||
2833 | * NEWS: Add a note on process record-replay support on aarch64*-linux* | |
2834 | targets. | |
2835 | ||
c9cf6e20 MG |
2836 | 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com> |
2837 | ||
2838 | * amd64-tdep.c: Replace in_function_epilogue_p with | |
2839 | stack_frame_destroyed_p throughout. | |
2840 | * arch-utils.c: Ditto. | |
2841 | * arch-utils.h: Ditto. | |
2842 | * arm-tdep.c: Ditto. | |
2843 | * breakpoint.c: Ditto. | |
2844 | * gdbarch.sh: Ditto. | |
2845 | * hppa-tdep.c: Ditto. | |
2846 | * i386-tdep.c: Ditto. | |
2847 | * mips-tdep.c: Ditto. | |
2848 | * nios2-tdep.c: Ditto. | |
2849 | * rs6000-tdep.c: Ditto. | |
2850 | * s390-linux-tdep.c: Ditto. | |
2851 | * score-tdep.c: Ditto. | |
2852 | * sh-tdep.c: Ditto. | |
2853 | * sparc-tdep.c: Ditto. | |
2854 | * sparc-tdep.h: Ditto. | |
2855 | * sparc64-tdep.c: Ditto. | |
2856 | * spu-tdep.c: Ditto. | |
2857 | * tic6x-tdep.c: Ditto. | |
2858 | * tilegx-tdep.c: Ditto. | |
2859 | * xstormy16-tdep.c: Ditto. | |
2860 | * gdbarch.c, gdbarch.h: Re-generated. | |
2861 | ||
a4ea0946 AB |
2862 | 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com> |
2863 | ||
2864 | * NEWS: Mention 'tui enable' and 'tui disable'. | |
2865 | * tui/tui.c (tui_enable_command): New function. | |
2866 | (tui_disable_command): New function. | |
2867 | (_initialize_tui): New function. | |
2868 | ||
b75c69bb AB |
2869 | 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com> |
2870 | ||
2871 | * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0. | |
2872 | ||
c1b009ee AB |
2873 | 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com> |
2874 | ||
2875 | * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure | |
2876 | buf_ptr is freed. | |
2877 | ||
880d1e40 AB |
2878 | 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com> |
2879 | ||
2880 | * tui/tui-layout.c (tui_layout_command): Move call to tui_enable | |
2881 | into ... | |
2882 | (tui_set_layout_for_display_command): ...here, before calling | |
2883 | tui_set_layout. Only set the layout if gdb has not already | |
2884 | entered the TUI_FAILURE state. | |
2885 | ||
a0145030 AB |
2886 | 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com> |
2887 | ||
2888 | * tui/tui-layout.c (layout_completer): New function. | |
2889 | (_initialize_tui_layout): Set completer on layout command. | |
2890 | ||
7bd0be3a AB |
2891 | 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com> |
2892 | ||
2893 | * tui/tui-layout.c (tui_set_layout): Remove | |
2894 | tui_register_display_type parameter. Remove all checking of this | |
2895 | parameter, and reindent function. Update header comment. | |
2896 | (tui_set_layout_for_display_command): Rename to... | |
2897 | (tui_set_layout_by_name): ...this, and don't check for different | |
2898 | register class types, don't pass a tui_register_display_type to | |
2899 | tui_set_layout. Update header comment. | |
2900 | (layout_names): Remove register set specific names. | |
2901 | * tui/tui-layout.h (tui_set_layout): Remove | |
2902 | tui_register_display_type parameter. | |
2903 | * tui/tui.c (tui_rl_change_windows): Don't pass a | |
2904 | tui_register_display_type to tui_set_layout. | |
2905 | (tui_rl_delete_other_windows): Likewise. | |
2906 | (tui_enable): Likewise. | |
2907 | * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove. | |
2908 | (TUI_FLOAT_REGS_NAME_LOWER): Remove. | |
2909 | (TUI_GENERAL_REGS_NAME): Remove. | |
2910 | (TUI_GENERAL_REGS_NAME_LOWER): Remove. | |
2911 | (TUI_SPECIAL_REGS_NAME): Remove. | |
2912 | (TUI_SPECIAL_REGS_NAME_LOWER): Remove. | |
2913 | (TUI_GENERAL_SPECIAL_REGS_NAME): Remove. | |
2914 | (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove. | |
2915 | (enum tui_register_display_type): Remove. | |
2916 | (struct tui_layout_def): Remove regs_display_type and | |
2917 | float_regs_display_type fields. | |
2918 | (struct tui_data_info): Remove regs_display_type field. | |
2919 | (tui_layout_command): Use new name for | |
2920 | tui_set_layout_for_display_command. | |
2921 | * tui/tui-data.c (layout_def): Don't initialise removed fields. | |
2922 | (tui_clear_win_detail): Don't initialise removed fields of | |
2923 | win_info. | |
2924 | * tui/tui-regs.c (tui_show_registers): Use new name for | |
2925 | tui_set_layout_for_display_command. | |
2926 | * tui/tui.h (tui_set_layout_for_display_command): Rename | |
2927 | declaration to... | |
2928 | (tui_set_layout_by_name): ...this. | |
2929 | * printcmd.c (display_command): Remove tui related layout call, | |
2930 | and reindent. | |
2931 | ||
0b6e5e10 JB |
2932 | 2015-05-20 Joel Brobecker <brobecker@adacore.com> |
2933 | ||
2934 | * infrun.c (handle_inferior_event_1): Renames handle_inferior_event. | |
2935 | (handle_inferior_event): New function. | |
2936 | ||
1da0522e JB |
2937 | 2015-05-20 Joel Brobecker <brobecker@adacore.com> |
2938 | ||
2939 | * ada-lang.c (to_fixed_array_type): Rename local variable | |
2940 | typename into type_name. | |
2941 | ||
5fe75eec JK |
2942 | 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
2943 | ||
2944 | Fix ASAN crash for gdb.compile/compile.exp. | |
2945 | * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME. | |
2946 | ||
a4063588 JK |
2947 | 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
2948 | ||
2949 | * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol) | |
2950 | (gcc_symbol_address): Change gdb_stdout to gdb_stdlog. | |
2951 | * compile/compile-object-load.c (setup_sections, compile_object_load): | |
2952 | Likewise. | |
2953 | * compile/compile.c (compile_to_object): Likewise. | |
2954 | ||
37442ce1 DE |
2955 | 2015-05-16 Doug Evans <xdje42@gmail.com> |
2956 | ||
2957 | * NEWS: Mention support for unbuffered Guile memory ports. | |
2958 | * scm-ports.c (ioscm_memory_port): Update comments on end, size. | |
2959 | (ioscm_lseek_address): Improve overflow calculation. | |
2960 | (gdbscm_memory_port_fill_input): Add assert. | |
2961 | (gdbscm_memory_port_write): Handle unbuffered ports. | |
2962 | Handle large writes identical to Guile's fport_write. | |
2963 | (gdbscm_memory_port_seek): Fix seeking past end check. | |
2964 | (gdbscm_memory_port_close): Handle closing unbuffered port. | |
2965 | (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports. | |
2966 | (ioscm_init_memory_port): Handle unbuffered ports. | |
2967 | (ioscm_reinit_memory_port): Ditto. | |
2968 | (ioscm_init_memory_port): Update size calculation. | |
2969 | (gdbscm_open_memory): Support zero sized ports. | |
2970 | ||
d976bace JK |
2971 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
2972 | ||
2973 | * compile/compile-object-load.c (get_out_value_type): Fix uninitialized | |
2974 | variable compiler warnings. | |
2975 | ||
4d18dfad JK |
2976 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
2977 | ||
2978 | * compile/compile-object-load.c (get_out_value_type): Fix returned type. | |
2979 | ||
36de76f9 JK |
2980 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
2981 | Phil Muldoon <pmuldoon@redhat.com> | |
2982 | ||
2983 | * NEWS (Changes since GDB 7.9): Add compile print. | |
2984 | * compile/compile-c-support.c (add_code_header, add_code_footer) | |
2985 | (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and | |
2986 | COMPILE_I_PRINT_VALUE_SCOPE. | |
2987 | * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE) | |
2988 | (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE): | |
2989 | New. | |
2990 | * compile/compile-object-load.c: Include block.h. | |
2991 | (get_out_value_type): New function. | |
2992 | (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and | |
2993 | COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and | |
2994 | OUT_VALUE_TYPE. | |
2995 | * compile/compile-object-load.h (struct compile_module): Add fields | |
2996 | out_value_addr and out_value_type. | |
2997 | * compile/compile-object-run.c: Include valprint.h and compile.h. | |
2998 | (struct do_module_cleanup): Add fields out_value_addr and | |
2999 | out_value_type. | |
3000 | (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and | |
3001 | COMPILE_I_PRINT_VALUE_SCOPE. | |
3002 | (compile_object_run): Propagate out_value_addr and out_value_type. | |
3003 | Pass OUT_VALUE_ADDR. | |
3004 | * compile/compile.c: Include valprint.h. | |
3005 | (compile_print_value, compile_print_command): New functions. | |
3006 | (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE. | |
3007 | (_initialize_compile): Update compile code help text. Install | |
3008 | compile_print_command. | |
3009 | * compile/compile.h (compile_print_value): New prototype. | |
3010 | * defs.h (enum compile_i_scope_types): Add | |
3011 | COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE. | |
3012 | ||
83d3415e JK |
3013 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
3014 | ||
3015 | * compile/compile-object-load.c (get_regs_type): Add parameter func_sym. | |
3016 | Rely on its parameter count. | |
3017 | (compile_object_load): Replace lookup_minimal_symbol_text by | |
3018 | lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the | |
3019 | return value. | |
3020 | * compile/compile-object-load.h (struct compile_module): Replace | |
3021 | func_addr by func_sym. | |
3022 | * compile/compile-object-run.c: Include block.h. | |
3023 | (compile_object_run): Reset module variable after it is freed. Use | |
3024 | FUNC_SYM instead of FUNC_ADDR. Rely on it. | |
3025 | ||
3a9558c4 JK |
3026 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
3027 | ||
3028 | * compile/compile-c-support.c (print_one_macro): Use #ifndef. | |
3029 | (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR. | |
3030 | (c_compute_program): Call generate_register_struct after typedefs. | |
3031 | * compile/compile-loc2c.c (push, pushf_register_address) | |
3032 | (pushf_register): Cast to GCC_UINTPTR. | |
3033 | (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after | |
3034 | type. Use GCC_UINTPTR instead of void *. Remove excessive cast. | |
3035 | (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *. | |
3036 | * compile/compile.c (_initialize_compile): Enable warnings for | |
3037 | COMPILE_ARGS. | |
3038 | ||
5c65b58a JK |
3039 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
3040 | ||
3041 | * cli/cli-script.c (execute_control_command): Update | |
3042 | eval_compile_command caller. | |
3043 | * compile/compile-object-load.c (compile_object_load): Add parameters | |
3044 | scope and scope_data. Set them. | |
3045 | * compile/compile-object-load.h (struct compile_module): Add fields | |
3046 | scope and scope_data. | |
3047 | (compile_object_load): Add parameters scope and scope_data. | |
3048 | * compile/compile-object-run.c (struct do_module_cleanup): Add fields | |
3049 | scope and scope_data. | |
3050 | (compile_object_run): Propagate the fields scope and scope_data. | |
3051 | * compile/compile.c (compile_file_command, compile_code_command): | |
3052 | Update eval_compile_command callers. | |
3053 | (eval_compile_command): Add parameter scope_data. Pass it plus scope. | |
3054 | * compile/compile.h (eval_compile_command): Add parameter scope_data. | |
3055 | * defs.h (struct command_line): Add field scope_data. | |
3056 | ||
1c88ceb1 JK |
3057 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
3058 | ||
3059 | * printcmd.c (struct format_data): Move it to valprint.h. | |
3060 | (print_command_parse_format, print_value): New functions from ... | |
3061 | (print_command_1): ... here. Call them. | |
3062 | * valprint.h (struct format_data): Move it here from printcmd.c. | |
3063 | (print_command_parse_format, print_value): New declarations. | |
3064 | ||
0b738f27 JK |
3065 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
3066 | ||
3067 | * compile/compile-object-load.c (compile_object_load): Add | |
3068 | COMPILE_DEBUG message. | |
3069 | ||
aa715135 JG |
3070 | 2015-05-15 Jerome Guitton <guitton@adacore.com> |
3071 | ||
3072 | * ada-lang.c (ada_value_ptr_subscript): Use enum position of | |
3073 | index to get element instead of enum value. | |
3074 | (ada_value_slice_from_ptr, ada_value_slice): Use enum position | |
3075 | of index to compute length, but enum values to compute bounds. | |
3076 | (ada_array_length): Use enum position of index instead of enum value. | |
3077 | (pos_atr): Move position computation to... | |
3078 | (ada_evaluate_subexp): Use enum values to compute bounds. | |
3079 | * gdbtypes.c (discrete_position): ...this new function. | |
3080 | * gdbtypes.h (discrete_position): New function declaration. | |
3081 | * valprint.c (val_print_array_elements): Call discrete_position | |
3082 | to handle array indexed by non-contiguous enumeration types. | |
3083 | ||
931e5bc3 JG |
3084 | 2015-05-15 Jerome Guitton <guitton@adacore.com> |
3085 | ||
3086 | * ada-lang.c (find_parallel_type_by_descriptive_type): | |
3087 | Go through typedefs during lookup. | |
3088 | (to_fixed_array_type): Add support for non-bit packed arrays | |
3089 | as variable-length fields. | |
3090 | ||
4e63d0ac PA |
3091 | 2015-05-15 Pedro Alves <palves@redhat.com> |
3092 | Simon Marchi <simon.marchi@ericsson.com> | |
3093 | ||
3094 | * event-loop.c (gdb_notifier) <next_file_handler, | |
3095 | next_poll_fds_index>: New fields. | |
3096 | (get_next_file_handler_to_handle_and_advance): New function. | |
3097 | (delete_file_handler): If deleting the next file handler to | |
3098 | handle, advance to the next file handler. | |
3099 | (gdb_wait_for_event): Bail early if no event fired. Poll file | |
3100 | handlers in round-robin fashion. | |
3101 | ||
52e48b36 PA |
3102 | 2015-05-15 Pedro Alves <palves@redhat.com> |
3103 | ||
3104 | * linux-tdep.c (linux_find_memory_regions_full): Rename local | |
3105 | 'private' to 'priv'. | |
3106 | ||
2465e12e PA |
3107 | 2015-05-15 Pedro Alves <palves@redhat.com> |
3108 | ||
3109 | * nat/linux-nat.h: Include "target/waitstatus.h". | |
3110 | ||
13fa0398 YZ |
3111 | 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com> |
3112 | ||
3113 | * python/py-unwind.c (struct reg_info): Move out of ... | |
3114 | (struct cached_frame_info): ... this scope. | |
3115 | (pending_frame_object_type, unwind_info_object_type): Make extern. | |
3116 | ||
9cd4d857 JB |
3117 | 2015-05-15 Joel Brobecker <brobecker@adacore.com> |
3118 | ||
3119 | * ada-lang.c (ada_value_primitive_packed_val): Make sure | |
3120 | accumSize is never negative. | |
3121 | ||
e3555239 PP |
3122 | 2015-05-14 Patrick Palka <patrick@parcs.ath.cx> |
3123 | ||
3124 | * tui/tui-command.c: Remove include of <ctype.h>. | |
3125 | (tui_dispatch_ctrl_char): Remove workaround for xterm terminals. | |
3126 | ||
08a76f8a MG |
3127 | 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com> |
3128 | ||
3129 | * dwarf2read.c (die_needs_namespace): Return 1 for | |
3130 | DW_TAG_inlined_subroutine. | |
3131 | ||
bd49952b JK |
3132 | 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
3133 | ||
3134 | * regcache.c (regcache_cpy_no_passthrough): New declaration. | |
3135 | (regcache_cpy_no_passthrough): Make it static, add function comment. | |
3136 | * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment. | |
3137 | (regcache_cpy_no_passthrough): Remove declaration. | |
3138 | ||
46c03469 JK |
3139 | 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
3140 | ||
3141 | * gdbthread.h (struct thread_control_state): Update comment for | |
3142 | proceed_to_finish. | |
3143 | * infcall.c (run_inferior_call): Update comment about | |
3144 | proceed_to_finish. | |
3145 | * infcmd.c (get_return_value): Update comment about stop_registers. | |
3146 | (finish_forward): Update comment about proceed_to_finish. | |
3147 | * infrun.c (stop_registers): Remove. | |
3148 | (clear_proceed_status, normal_stop): Remove stop_registers handling. | |
3149 | * infrun.h (stop_registers): Remove. | |
3150 | ||
8a6c4031 JK |
3151 | 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
3152 | ||
3153 | * infcall.c (struct dummy_frame_context_saver) | |
3154 | (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor) | |
3155 | (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup) | |
3156 | (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup): | |
3157 | New. | |
3158 | (call_function_by_hand_dummy): Move discard_cleanups of | |
3159 | inf_status_cleanup before dummy_frame_push. Call | |
3160 | dummy_frame_context_saver_setup and prepare context_saver_cleanup. | |
3161 | Use dummy_frame_context_saver_get_regs instead of stop_registers. | |
3162 | * infcall.h (struct dummy_frame_context_saver) | |
3163 | (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup) | |
3164 | (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup): | |
3165 | New declarations. | |
3166 | * infcmd.c: Include infcall.h. | |
3167 | (get_return_value): Add parameter ctx_saver, use it instead of | |
3168 | stop_registers. | |
3169 | (print_return_value): Add parameter ctx_saver, pass it. | |
3170 | (struct finish_command_continuation_args): Add field ctx_saver. | |
3171 | (finish_command_continuation): Update print_return_value caller. | |
3172 | (finish_command_continuation_free_arg): Free also ctx_saver. | |
3173 | (finish_forward): Call dummy_frame_context_saver_setup. | |
3174 | * inferior.h (struct dummy_frame_context_saver): New declaration. | |
3175 | (get_return_value): Add parameter ctx_saver. | |
3176 | * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update | |
3177 | get_return_value caller. | |
3178 | ||
10989690 JK |
3179 | 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
3180 | ||
3181 | * dummy-frame.c (struct dummy_frame_dtor_list): New. | |
3182 | (struct dummy_frame): Replace dtor and dtor_data by dtor_list. | |
3183 | (remove_dummy_frame): Process dtor_list. | |
3184 | (pop_dummy_frame): Process dtor_list. | |
3185 | (register_dummy_frame_dtor): Maintain dtor_list. | |
3186 | (find_dummy_frame_dtor): Handle dtor_list. | |
3187 | * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor): | |
3188 | Update comments. | |
3189 | ||
5e970501 JK |
3190 | 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
3191 | ||
3192 | * compile/compile-object-run.c (do_module_cleanup): Add parameter | |
3193 | registers_valid. | |
3194 | (compile_object_run): Update do_module_cleanup caller. | |
3195 | * dummy-frame.c: Include infcall.h. | |
3196 | (struct dummy_frame): Update dtor comment. | |
3197 | (remove_dummy_frame): Call dtor. | |
3198 | (pop_dummy_frame): Update dtor caller. | |
3199 | * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter | |
3200 | registers_valid. | |
3201 | ||
1c4eb778 JB |
3202 | 2015-05-13 Joel Brobecker <brobecker@adacore.com> |
3203 | ||
3204 | GDB 7.9.1 released. | |
3205 | ||
f5f85ab9 JB |
3206 | 2015-05-13 Joel Brobecker <brobecker@adacore.com> |
3207 | ||
3208 | * NEWS: Create "Changes in GDB 7.9.1" section. Move news about | |
3209 | Xmethods now being able to specify a result type to that new | |
3210 | sectioin. | |
3211 | ||
242cd84c PP |
3212 | 2015-05-13 Patrick Palka <patrick@parcs.ath.cx> |
3213 | ||
3214 | * tui/tui-win.c (tui_async_resize_screen): Clear win_resized | |
3215 | first before resizing the window. | |
e3555239 | 3216 | * tui/tui.c (tui_enable): Likewise. |
242cd84c PP |
3217 | |
3218 | 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> | |
558e5469 JK |
3219 | |
3220 | * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor. | |
3221 | * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment. | |
3222 | * infcall.c (call_function_by_hand_dummy): Use proper typedef for | |
3223 | dummy_dtor parameter. | |
3224 | * infcall.h: Include dummy-frame.h. | |
3225 | (call_function_by_hand_dummy_dtor_ftype): Remove. | |
3226 | (call_function_by_hand_dummy): Use proper typedef for dummy_dtor | |
3227 | parameter. | |
3228 | ||
ebfd00d2 PP |
3229 | 2015-05-13 Patrick Palka <patrick@parcs.ath.cx> |
3230 | ||
3231 | PR gdb/17820 | |
3232 | * top.c (history_size_setshow_var): Change type to signed. | |
3233 | Initialize to -2. Update documentation. | |
3234 | (set_readline_history_size): Define. | |
3235 | (set_history_size_command): Use it. Remove logic for handling | |
3236 | out-of-range sizes. | |
3237 | (init_history): Use set_readline_history_size(). Test for a | |
3238 | value of -2 instead of 0 when determining whether to set a | |
3239 | default history size. | |
3240 | (init_main): Decode the argument of the "size" command as a | |
3241 | zuinteger_unlimited. | |
3242 | ||
83769d0b DE |
3243 | 2015-05-12 Doug Evans <dje@google.com> |
3244 | ||
3245 | * dwarf2read.c (struct file_entry): Tweak comments. | |
3246 | (get_debug_line_section): Tweak comments. | |
3247 | ||
0d71eef5 DB |
3248 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
3249 | ||
3250 | * NEWS: Announce fork support in the RSP and support | |
3251 | for fork debugging in extended mode. | |
3252 | ||
cbb8991c DB |
3253 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
3254 | ||
3255 | * remote.c (remote_insert_fork_catchpoint): New function. | |
3256 | (remote_remove_fork_catchpoint): New function. | |
3257 | (remote_insert_vfork_catchpoint): New function. | |
3258 | (remote_remove_vfork_catchpoint): New function. | |
3259 | (pending_fork_parent_callback): New function. | |
3260 | (remove_new_fork_child): New function. | |
3261 | (remote_update_thread_list): Call remote_notif_get_pending_events | |
3262 | and remove_new_fork_child. | |
3263 | (extended_remote_kill): Kill fork child when killing the | |
3264 | parent before follow_fork completes. | |
3265 | (init_extended_remote_ops): Initialize target vector with | |
3266 | new fork catchpoint functions. | |
3267 | ||
c269dbdb DB |
3268 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
3269 | ||
3270 | * remote.c (remove_vfork_event_p): New function. | |
3271 | (remote_follow_fork): Add vfork event type to event checking. | |
3272 | (remote_parse_stop_reply): New stop reasons "vfork" and | |
3273 | "vforkdone" for RSP 'T' Stop Reply Packet. | |
3274 | ||
de0d863e DB |
3275 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
3276 | ||
3277 | * linux-nat.c (linux_nat_ptrace_options): New function. | |
3278 | (linux_init_ptrace, wait_lwp, linux_nat_filter_event): | |
3279 | Call linux_nat_ptrace_options and use different argument to | |
3280 | linux_enable_event_reporting. | |
3281 | (_initialize_linux_nat): Delete call to | |
3282 | linux_ptrace_set_additional_flags. | |
c8f6c93c | 3283 | * nat/linux-ptrace.c (current_ptrace_options): Rename to |
de0d863e DB |
3284 | supported_ptrace_options. |
3285 | (additional_flags): Delete variable. | |
3286 | (linux_check_ptrace_features): Use supported_ptrace_options. | |
3287 | (linux_test_for_tracesysgood, linux_test_for_tracefork): | |
3288 | Likewise, and remove additional_flags check. | |
3289 | (linux_enable_event_reporting): Change 'attached' argument to | |
3290 | 'options'. Use supported_ptrace_options. | |
c8f6c93c | 3291 | (ptrace_supports_feature): Change comment. Use |
de0d863e DB |
3292 | supported_ptrace_options. |
3293 | (linux_ptrace_set_additional_flags): Delete function. | |
3294 | * nat/linux-ptrace.h (linux_ptrace_set_additional_flags): | |
3295 | Delete function prototype. | |
3296 | * remote.c (remote_fork_event_p): New function. | |
3297 | (remote_detach_pid): New function. | |
3298 | (remote_detach_1): Call remote_detach_pid, don't mourn inferior | |
3299 | if doing detach-on-fork. | |
3300 | (remote_follow_fork): New function. | |
3301 | (remote_parse_stop_reply): Handle new "T" stop reason "fork". | |
3302 | (remote_pid_to_str): Print "process" strings for pid/0/0 ptids. | |
3303 | (init_extended_remote_ops): Initialize to_follow_fork. | |
3304 | ||
89245bc0 DB |
3305 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
3306 | ||
3307 | * nat/linux-ptrace.c (linux_check_ptrace_features): Change | |
3308 | from static to extern. | |
3309 | * nat/linux-ptrace.h (linux_check_ptrace_features): Declare. | |
3310 | * remote.c (anonymous enum): <PACKET_fork_event_feature, | |
3311 | * PACKET_vfork_event_feature>: New enumeration constants. | |
3312 | (remote_protocol_features): Add table entries for new packets. | |
3313 | (remote_query_supported): Add new feature queries to qSupported | |
3314 | packet. | |
3315 | ||
835205d0 GB |
3316 | 2015-05-12 Gary Benson <gbenson@redhat.com> |
3317 | ||
3318 | * remote.c (remote_add_inferior): Call exec_file_locate_attach | |
3319 | for fake PIDs as well as real ones. | |
3320 | (remote_pid_to_exec_file): Send empty annex if PID is fake. | |
3321 | ||
4c082a81 SC |
3322 | 2015-05-09 Siva Chandra Reddy <sivachandra@google.com> |
3323 | ||
3324 | * NEWS (Python Scripting): Mention the new gdb.Value methods. | |
3325 | * python/py-value.c (valpy_reference_value): New function. | |
3326 | (valpy_const_value): Likewise. | |
3327 | (value_object_methods): Add new methods. | |
3328 | * value.c (make_cv_value): New function. | |
3329 | * value.h (make_cv_value): Declare. | |
3330 | ||
afa6c9ab SL |
3331 | 2015-05-08 Yao Qi <yao@codesourcery.com> |
3332 | Sandra Loosemore <sandra@codesourcery.com> | |
3333 | ||
3334 | * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check | |
3335 | to 'lh->include_dirs' before accessing to it. | |
3336 | (psymtab_include_file_name): Likewise. | |
3337 | (dwarf_decode_lines_1): Likewise. | |
3338 | (dwarf_decode_lines): Likewise. | |
3339 | (file_file_name): Likewise. | |
3340 | ||
35d54293 SL |
3341 | 2015-05-08 Sandra Loosemore <sandra@codesourcery.com> |
3342 | ||
3343 | * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define. | |
3344 | (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define. | |
3345 | (nios2_linux_rt_sigreturn_init): Adjust base address of | |
3346 | register save area. | |
3347 | ||
b73c49b7 SL |
3348 | 2015-05-08 Sandra Loosemore <sandra@codesourcery.com> |
3349 | ||
3350 | * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using | |
3351 | "trap 31" as the breakpoint instruction on all targets. | |
3352 | ||
dd9f02a0 JK |
3353 | 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3354 | ||
3355 | * infcmd.c (print_return_value): Remove unused declaration. | |
3356 | ||
6ad395a7 JB |
3357 | 2015-05-08 Joel Brobecker <brobecker@adacore.com> |
3358 | ||
3359 | * dwarf2read.c (attr_to_dynamic_prop) | |
3360 | <DW_AT_data_member_location>: Use read_type_die isntead of | |
3361 | get_die_type. | |
3362 | ||
8344af1e JB |
3363 | 2015-05-08 Joel Brobecker <brobecker@adacore.com> |
3364 | ||
3365 | * ada-lang.c (ada_convert_actual): Add handling of formals | |
3366 | passed inside an aligner type. | |
3367 | ||
80b0912b JB |
3368 | 2015-05-08 Joel Brobecker <brobecker@adacore.com> |
3369 | ||
3370 | * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries. | |
3371 | ||
df2eb078 SC |
3372 | 2015-05-08 Siva Chandra Reddy <sivachandra@google.com> |
3373 | ||
3374 | PR python/18291 | |
3375 | * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo. | |
3376 | Print xmethod matcher status. | |
3377 | ||
2492f0d0 AA |
3378 | 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3379 | ||
3380 | * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA | |
3381 | register in the regcache when treating the PSWM register, and vice | |
3382 | versa. | |
3383 | ||
1c56a84d GB |
3384 | 2015-05-07 Gary Benson <gbenson@redhat.com> |
3385 | ||
3386 | * linux-thread-db.c (struct thread_db_info) | |
3387 | <td_ta_map_id2thr_p>: Remove field. | |
3388 | (try_thread_db_load_1): Remove initialization for the above. | |
3389 | ||
74850322 GB |
3390 | 2015-05-07 Gary Benson <gbenson@redhat.com> |
3391 | ||
3392 | * linux-thread-db.c (struct thread_db_info) | |
3393 | <td_thr_validate_p>: Remove field. | |
3394 | (try_thread_db_load_1): Remove initialization for the above. | |
3395 | ||
e26efa40 JK |
3396 | 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
3397 | ||
3398 | * compile/compile-object-load.c (compile_object_load): Support | |
3399 | mst_text_gnu_ifunc. | |
3400 | ||
851c9091 JK |
3401 | 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
3402 | ||
3403 | * compile/compile.c (compile_to_object): Make the cmd_string parameter | |
3404 | const. Use new variables for the const compatibility. | |
3405 | (eval_compile_command): Make the cmd_string parameter const. | |
3406 | * compile/compile.h (eval_compile_command): Make the cmd_string | |
3407 | parameter const. | |
3408 | ||
f218b647 JB |
3409 | 2015-05-06 Joel Brobecker <brobecker@adacore.com> |
3410 | ||
3411 | * defs.h (deprecated_init_ui_hook): Delete. Remove associated | |
3412 | comment. | |
3413 | * top.c (deprecated_init_ui_hook): Delete. | |
3414 | (gdb_init): Remove handling of deprecated_init_ui_hook. | |
3415 | * interps.c (clear_interpreter_hooks): Remove handling of | |
3416 | deprecated_init_ui_hook. | |
3417 | * main.c (captured_main): Update comment. | |
3418 | ||
b30a0bc3 JB |
3419 | 2015-05-06 Joel Brobecker <brobecker@adacore.com> |
3420 | ||
3421 | * solib.c (_initialize_solib): Add "info dll" alias creation. | |
3422 | * windows-nat.c (set_windows_aliases): Delete. | |
3423 | (_initialize_windows_nat): Remove deprecated_init_ui_hook | |
3424 | assignment. | |
3425 | * NEWS: Add news entry about "info dll" now being available | |
3426 | on all platforms. | |
3427 | ||
7c512744 JB |
3428 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
3429 | ||
3430 | * ada-lang.c (value_assign_to_component): Reformat and improve | |
3431 | documentation. Remove all trailing spaces. | |
3432 | ||
0fa7fe50 JB |
3433 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
3434 | ||
3435 | * inline-frame.c (inline_frame_sniffer, skip_inline_frames): | |
3436 | Stop counting inlined frames as soon as an out-of-line function | |
3437 | is found. | |
3438 | ||
3ea89b92 PMR |
3439 | 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com> |
3440 | ||
3441 | * dwarf2read.c (inherit_abstract_dies): Skip | |
3442 | DW_TAG_GNU_call_site dies while inheriting children of an | |
3443 | abstract DIE into a scope. | |
3444 | (read_lexical_block_scope): Inherit abstract DIE's for | |
3445 | lexical scopes. | |
3446 | ||
2478d075 JB |
3447 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
3448 | ||
3449 | * ada-valprint.c (val_print_packed_array_elements): Delete | |
3450 | variable "len". Add a type-length check when comparing two | |
3451 | consecutive elements of the array. Use the element's actual | |
3452 | length in call to value_contents_eq. | |
3453 | * ada-lang.c (ada_value_primitive_packed_val): Always return | |
3454 | a value whose type has been resolved. | |
3455 | ||
fc958966 JB |
3456 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
3457 | ||
3458 | * ada-lang.c (ada_value_primitive_packed_val): Recompute | |
3459 | BIT_SIZE and LEN if the size of the resolved type is smaller | |
3460 | than BIT_SIZE * HOST_CHAR_BIT. | |
3461 | ||
ca34b84f JB |
3462 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
3463 | ||
3464 | * ada-lang.c (ada_value_primitive_packed_val): Use a more | |
3465 | correct address in call to value_at. Adjust call to | |
3466 | value_address accordingly. | |
3467 | ||
62c67f3c JB |
3468 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
3469 | ||
3470 | * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying | |
3471 | to print it. | |
3472 | ||
c3345124 JB |
3473 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
3474 | ||
3475 | * dwarf2loc.h (struct property_addr_info): Add "valaddr" field. | |
3476 | * dwarf2loc.c (dwarf2_evaluate_property): Add handling of | |
3477 | pinfo->valaddr. | |
3478 | * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter. | |
3479 | * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr. | |
3480 | (resolve_dynamic_type_internal): Set pinfo.valaddr. | |
3481 | Add handling of addr_stack->valaddr. | |
3482 | (resolve_dynamic_type): Add "valaddr" parameter. | |
3483 | Set pinfo.valaddr field. | |
3484 | * ada-lang.c (ada_discrete_type_high_bound): Update call to | |
3485 | resolve_dynamic_type. | |
3486 | (ada_discrete_type_low_bound): Likewise. | |
3487 | * findvar.c (default_read_var_value): Likewise. | |
3488 | * value.c (value_from_contents_and_address): Likewise. | |
3489 | ||
75ea5859 JB |
3490 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
3491 | ||
3492 | * gdbtypes.c (resolve_dynamic_array): Use | |
3493 | create_array_type_with_stride instead of create_array_type. | |
3494 | ||
0952813b DD |
3495 | 2015-04-30 DJ Delorie <dj@redhat.com> |
3496 | ||
3497 | * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to | |
3498 | rl78_decode_opcode | |
3499 | ||
2ce1cdbf DE |
3500 | 2015-04-29 Doug Evans <dje@google.com> |
3501 | ||
3502 | PR python/18285 | |
3503 | * NEWS: Document new gdb.XMethodWorker.get_result_type method. | |
3504 | * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle | |
3505 | EVAL_AVOID_SIDE_EFFECTS for xmethods. | |
3506 | * extension-priv.h (struct extension_language_ops) | |
3507 | <get_xmethod_result_type>: New member. | |
3508 | * extension.c (get_xmethod_result_type): New function. | |
3509 | * extension.h (get_xmethod_result_type): Declare. | |
3510 | * python/py-xmethods.c (get_result_type_method_name): New static | |
3511 | global. | |
3512 | (py_get_result_type_method_name): Ditto. | |
3513 | (gdbpy_get_xmethod_result_type): New function. | |
3514 | (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name. | |
3515 | * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare. | |
3516 | * python/python.c (python_extension_ops): Add | |
3517 | gdbpy_get_xmethod_result_type. | |
3518 | * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type. | |
3519 | * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for | |
3520 | xmethods. | |
3521 | (value_x_unop): Ditto. | |
3522 | * value.c (result_type_of_xmethod): New function. | |
3523 | * value.h (result_type_of_xmethod): Declare. | |
3524 | ||
998d2a3e GB |
3525 | 2015-04-29 Gary Benson <gbenson@redhat.com> |
3526 | ||
3527 | * solib.c (solib_find_1): Allow fd argument to be NULL. | |
3528 | (exec_file_find): Update comment. | |
3529 | (solib_find): Likewise. | |
3530 | * exec.c (exec_file_locate_attach): Use NULL as fd | |
3531 | argument to exec_file_find to avoid having to close | |
3532 | the opened file. | |
3533 | * infrun.c (follow_exec): Likewise. | |
3534 | ||
34f5f757 DE |
3535 | 2015-04-28 Doug Evans <dje@google.com> |
3536 | ||
3537 | PR python/18299 | |
3538 | * python/lib/gdb/printing.py (register_pretty_printer): Handle | |
3539 | name or __name__ attributes. Handle gdb module as first argument. | |
3540 | ||
69b4374a DE |
3541 | 2015-04-28 Doug Evans <dje@google.com> |
3542 | ||
3543 | PR python/18089 | |
3544 | * python/py-prettyprint.c (print_children): Verify result of children | |
3545 | iterator. Provide better error message. | |
3546 | * python/python-internal..h (gdbpy_print_python_errors_p): Declare. | |
3547 | * python/python.c (gdbpy_print_python_errors_p): New function. | |
3548 | ||
5e7cf078 DE |
3549 | 2015-04-28 Doug Evans <dje@google.com> |
3550 | ||
3551 | * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment. | |
3552 | ||
59fb7612 SS |
3553 | 2015-04-28 Sasha Smundak <asmundak@google.com> |
3554 | ||
3555 | * NEWS: Mention gdb.Type.optimized_out method. | |
3556 | * python/py-type.c (typy_optimized_out): New function. | |
3557 | ||
cea6e4f1 JB |
3558 | 2015-04-28 John Baldwin <jhb@FreeBSD.org> |
3559 | ||
3560 | * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>. | |
3561 | ||
24b73f8e PP |
3562 | 2015-04-28 Patrick Palka <patrick@parcs.ath.cx> |
3563 | ||
3564 | * utils.c (init_page_info): Set rl_catch_sigwinch to zero. | |
3565 | (initialize_utils): Move call of init_page_info() to ... | |
3566 | * top.c (gdb_init): ... here. | |
3567 | ||
a88d0bb3 PP |
3568 | 2015-04-28 Patrick Palka <patrick@parcs.ath.cx> |
3569 | ||
3570 | * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment. | |
3571 | (tui_sigwinch_handler): Still update our idea of | |
3572 | the terminal's width and height even when TUI is not active. | |
3573 | ||
d6e5e7f7 PP |
3574 | 2015-04-28 Patrick Palka <patrick@parcs.ath.cx> |
3575 | ||
3576 | * utils.h (set_screen_width_and_height): Declare. | |
3577 | * utils.c (set_screen_width_and_height): Define. | |
3578 | * tui/tui-win.c (tui_update_gdb_sizes): Use it. | |
3579 | ||
ff862be4 GB |
3580 | 2015-04-28 Gary Benson <gbenson@redhat.com> |
3581 | ||
3582 | * infrun.c (solist.h): New include. | |
3583 | (follow_exec): Use exec_file_find to prefix execd_pathname | |
3584 | with gdb_sysroot. | |
3585 | ||
2eb639cb PP |
3586 | 2015-04-28 Patrick Palka <patrick@parcs.ath.cx> |
3587 | ||
3588 | * tui/tui-source.c (tui_set_source_content): Avoid calling | |
3589 | strcpy() when offset is 0. | |
3590 | ||
97206799 PP |
3591 | 2015-04-28 Patrick Palka <patrick@parcs.ath.cx> |
3592 | ||
3593 | PR gdb/18155 | |
3594 | * tui/tui-data.c (tui_free_window): Don't free the locator | |
3595 | window when passed an SRC_WIN or a DISASSEM_WIN. | |
3596 | ||
63ed8182 PP |
3597 | 2015-04-28 Patrick Palka <patrick@parcs.ath.cx> |
3598 | ||
3599 | * tui/tui-data.h (struct tui_win_element): Forward-declare. | |
3600 | (tui_win_content): Move declaration. | |
3601 | (struct tui_gen_win_info): Give 'content' field the | |
3602 | type tui_win_content. | |
3603 | * tui/tui-data.c (init_content_element): Remove redundant and | |
3604 | erroneous casts. | |
3605 | (tui_add_content_elements): Remove erroneous cast. | |
3606 | * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant | |
3607 | casts. | |
3608 | (tui_get_begin_asm_address): Likewise. | |
3609 | * tui/tui-regs.c (tui_show_registers): Likewise. | |
3610 | (tui_show_register_group): Likewise. | |
3611 | (tui_display_registers_from): Likewise. | |
3612 | (tui_check_register_values): Likewise. | |
3613 | * tui/tui-source.c (tui_set_source_content): Likewise. | |
3614 | (tui_set_source_content_nil): Likewise. | |
3615 | (tui_source_is_displayed): Likewise. | |
3616 | * tui/tui-stack.c (tui_show_locator_content): Likewise. | |
3617 | (tui_set_locator_fullname): Likewise. | |
3618 | (tui_set_locator_info): Likewise. | |
3619 | (tui_show_frame_info): Likewise. | |
3620 | * tui/tui-winsource.c (tui_clear_source_content): Likewise. | |
3621 | (tui_show_source_line): Likewise. | |
3622 | (tui_horizontal_source_scroll): Likewise. | |
3623 | (tui_update_breakpoint_info): Likewise. | |
3624 | (tui_set_exec_info_content): Likewise. | |
3625 | (tui_show_exec_info_content): Likewise. | |
3626 | (tui_alloc_source_buffer): Likewise. | |
3627 | (tui_line_is_displayed): Likewise. | |
3628 | (tui_addr_is_displayed): Likewise. | |
3629 | ||
d2b41ca0 JB |
3630 | 2015-04-27 John Baldwin <jhb@FreeBSD.org> |
3631 | ||
3632 | * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD | |
3633 | event if PL_FLAG_EXEC is set. | |
3634 | [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function. | |
3635 | [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function. | |
3636 | (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set | |
3637 | "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint". | |
3638 | Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint". | |
3639 | ||
e58e05d6 JB |
3640 | 2015-04-27 John Baldwin <jhb@FreeBSD.org> |
3641 | ||
3642 | * fbsd-nat.c: [PT_LWPINFO] New variable super_wait. | |
3643 | [TDP_RFPPWAIT] New variable fbsd_pending_children. | |
3644 | [TDP_RFPPWAIT] (fbsd_remember_child): New function. | |
3645 | [TDP_RFPPWAIT] (fbsd_is_child_pending): New function. | |
3646 | [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function. | |
3647 | [PT_LWPINFO] (fbsd_wait): New function. | |
3648 | [TDP_RFPPWAIT] (fbsd_follow_fork): New function. | |
3649 | [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function. | |
3650 | [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function. | |
3651 | [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function. | |
3652 | [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function. | |
3653 | [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function. | |
3654 | [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function. | |
3655 | [TDP_RFPPWAIT] (fbsd_post_attach): New function. | |
3656 | (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to | |
3657 | "fbsd_wait". | |
3658 | [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork". | |
3659 | Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint". | |
3660 | Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint". | |
3661 | Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint". | |
3662 | Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint". | |
3663 | Set "to_post_startup_inferior" to "fbsd_post_startup_inferior". | |
3664 | Set "to_post_attach" to "fbsd_post_attach". | |
3665 | ||
8f60fe01 JB |
3666 | 2015-04-27 John Baldwin <jhb@FreeBSD.org> |
3667 | ||
3668 | * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static. | |
3669 | (fbsd_find_memory_regions): Mark static. | |
3670 | (fbsd_nat_add_target): New function. | |
3671 | * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for | |
3672 | fbsd_pid_to_exec_file and fbsd_find_memory_regions. | |
3673 | * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target. | |
3674 | * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise. | |
3675 | * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise. | |
3676 | * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise. | |
3677 | ||
5fbae7d1 GB |
3678 | 2015-04-27 Gary Benson <gbenson@redhat.com> |
3679 | ||
3680 | * objfiles.c (allocate_objfile): Do not attempt to expand name | |
3681 | if name is a "target:" filename. | |
3682 | * auto-load.c (load_auto_scripts_for_objfile): Do not attempt | |
3683 | to load auto-load scripts for objfiles with "target:" filenames. | |
3684 | ||
417c80f9 AA |
3685 | 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3686 | ||
3687 | * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h". | |
3688 | (enum s390_vector_abi_kind): New enum. | |
3689 | (struct gdbarch_tdep)<vector_abi>: New field. | |
3690 | (s390_effective_inner_type): Add parameter min_size. Stop | |
3691 | unwrapping if the inner type is smaller than min_size. | |
3692 | (s390_function_arg_float): Adjust call to | |
3693 | s390_effective_inner_type. | |
3694 | (s390_function_arg_vector): New function. | |
3695 | (s390_function_arg_integer): Adjust comment. | |
3696 | (struct s390_arg_state)<vr>: New field. | |
3697 | (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector | |
3698 | arguments according to vector ABI when appropriate. | |
3699 | (s390_push_dummy_call): Initialize the argument state's field | |
3700 | 'vr'. Adjust calls to s390_handle_arg. | |
3701 | (s390_register_return_value): Handle vector return values. | |
3702 | (s390_return_value): Apply the "register" return value convention | |
3703 | to a vector when appropriate. | |
3704 | (s390_gdbarch_init): Initialize tdep->vector_abi. | |
3705 | * NEWS: Announce S390 vector ABI support. | |
3706 | ||
4e65a17e AA |
3707 | 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3708 | ||
3709 | * s390-linux-tdep.c (s390_return_value_convention): Remove | |
3710 | function. Inline its logic... | |
3711 | (s390_return_value): ...here. Instead, move the handling of the | |
3712 | "register" return value convention... | |
3713 | (s390_register_return_value): ...here. New function. | |
3714 | ||
80f75320 AA |
3715 | 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3716 | ||
3717 | * s390-linux-tdep.c | |
3718 | (is_float_singleton): Remove function. Move the "singleton" part | |
3719 | of the logic... | |
3720 | (s390_effective_inner_type): ...here. New function. | |
3721 | (is_float_like): Remove function. Inline its logic... | |
3722 | (s390_function_arg_float): ...here. | |
3723 | (is_pointer_like, is_integer_like, is_struct_like): Remove | |
3724 | functions. Inline their logic... | |
3725 | (s390_function_arg_integer): ...here. | |
3726 | (s390_function_arg_pass_by_reference): Remove function. | |
3727 | (extend_simple_arg): Remove function. | |
3728 | (alignment_of): Remove function. | |
3729 | (struct s390_arg_state): New structure. | |
3730 | (s390_handle_arg): New function. | |
3731 | (s390_push_dummy_call): Move parameter placement logic to the new | |
3732 | function s390_handle_arg. Call it for calculating the stack area | |
3733 | sizes first, and again for actually writing the parameters. | |
3734 | ||
6dbc9c04 AA |
3735 | 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3736 | ||
3737 | * s390-linux-tdep.c (is_power_of_two): Add comment. Return | |
3738 | false if the argument is zero. | |
3739 | ||
9e195661 PMR |
3740 | 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com> |
3741 | ||
3742 | * ada-lang.c (template_to_static_fixed_type): Return input type | |
3743 | when it is already fixed. Cache the input type itself when not | |
3744 | creating a static fixed copy. Make it explicit that we never | |
3745 | molestate the input type. | |
3746 | * gdbtypes.c (resolve_dynamic_struct): Reset the | |
3747 | TYPE_TARGET_TYPE field for resolved copies. | |
3748 | ||
460efde1 JB |
3749 | 2015-04-27 Joel Brobecker <brobecker@adacore.com> |
3750 | ||
3751 | * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef. | |
3752 | (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef. | |
3753 | (template_to_static_fixed_type): Call ada_check_typedef only | |
3754 | when necessary. | |
3755 | ||
6faec16b AB |
3756 | 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3757 | ||
3758 | * cli/cli-dump.c (srec_dump_command): Add internationalization | |
3759 | mark ups. | |
3760 | (ihex_dump_command): Likewise. | |
3761 | (tekhex_dump_command): Likewise. | |
3762 | (binary_dump_command): Likewise. | |
3763 | (binary_append_command): Likewise. | |
3764 | ||
cf75d6c3 AB |
3765 | 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3766 | ||
3767 | * cli/cli-dump.c (verilog_cmdlist): New variable. | |
3768 | (dump_verilog_memory): New function. | |
3769 | (dump_verilog_value): New function. | |
3770 | (verilog_dump_command): New function. | |
3771 | (_initialize_cli_dump): Add new commands to support verilog dump | |
3772 | format. | |
3773 | * NEWS: Add entry for "dump verilog". | |
3774 | ||
8cd00c59 PMR |
3775 | 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com> |
3776 | ||
3777 | * gdbtypes.c (print_gnat_stuff): Do not recurse on the | |
3778 | descriptive type when there is none. | |
3779 | ||
8900d71e PP |
3780 | 2015-04-23 Patrick Palka <patrick@parcs.ath.cx> |
3781 | ||
3782 | * tui/tui-win.c (tui_async_resize_screen): Call | |
3783 | rl_resize_terminal(). | |
3784 | ||
f16eab5f JT |
3785 | 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk> |
3786 | ||
3787 | * windows-nat.c (handle_output_debug_string): Don't change | |
3788 | current_event.dwThreadId. | |
3789 | (get_windows_debug_event): Use thread_id, rather than relying on | |
3790 | current_event.dwThreadId being changed. | |
3791 | ||
68ffc902 JT |
3792 | 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk> |
3793 | ||
3794 | * windows-nat.c (windows_continue): Report an error if | |
3795 | ContinueDebugEvent() fails. | |
3796 | ||
23942819 JT |
3797 | 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk> |
3798 | ||
3799 | * windows-nat.c (windows_resume): Fix misspelling in debug output. | |
3800 | ||
e6ad66bd JT |
3801 | 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk> |
3802 | ||
3803 | * windows-nat.c (get_windows_debug_event): Replace retval with | |
3804 | thread_id throughout. Update stale comment. | |
3805 | ||
776704b9 JT |
3806 | 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk> |
3807 | ||
3808 | * windows-nat.c (get_windows_debug_event): Don't use ternary | |
3809 | conditional operator. | |
3810 | ||
8aae4344 PM |
3811 | 2015-04-21 Pierre Muller <muller@sourceware.org> |
3812 | ||
3813 | PR pascal/17815 | |
3814 | p-exp.y (yylex): Reorganize code to return the matched pattern | |
3815 | for a field of this. | |
3816 | ||
819843c7 GB |
3817 | 2015-04-21 Gary Benson <gbenson@redhat.com> |
3818 | ||
3819 | * common/fileio.h (fileio_to_host_openflags): New declaration. | |
3820 | * common/fileio.c (fcntl.h): New include. | |
3821 | (fileio_to_host_openflags): New function, factored out from... | |
3822 | * inf-child.c (inf_child_fileio_open_flags_to_host): ...here. | |
3823 | Single use updated. | |
3824 | ||
0bca7f99 KB |
3825 | 2015-04-21 Kevin Buettner <kevinb@redhat.com> |
3826 | ||
3827 | * rl78-tdep.c (RL78_SP_ADDR): Define. | |
3828 | (opc_reg_to_gdb_regnum): New static function. | |
3829 | (rl78_analyze_prologue): Recognize instructions forming slightly | |
3830 | more interesting prologues. | |
3831 | ||
e771e4be PMR |
3832 | 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com> |
3833 | ||
3834 | Revert: | |
3835 | 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com> | |
3836 | * gdbtypes.c (is_dynamic_type_internal): Remove special handling of | |
3837 | TYPE_CODE_REF types so that they are not considered as dynamic | |
3838 | depending on the referenced type. | |
3839 | (resolve_dynamic_type_internal): Likewise. | |
3840 | ||
ee715b5a PMR |
3841 | 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com> |
3842 | ||
3843 | Revert: | |
3844 | 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com> | |
3845 | * gdbtypes.c (is_dynamic_type_internal): Remove the unused | |
3846 | "top_level" parameter. | |
3847 | (resolve_dynamic_type_internal): Remove the unused "top_level" | |
3848 | parameter. Update call to is_dynamic_type_internal. | |
3849 | (is_dynamic_type): Update call to is_dynamic_type_internal. | |
3850 | (resolve_dynamic_range): Update call to | |
3851 | resolve_dynamic_type_internal. | |
3852 | (resolve_dynamic_union): Likewise. | |
3853 | (resolve_dynamic_struct): Likewise. | |
3854 | (resolve_dynamic_type): Likewise. | |
3855 | ||
e31d7699 GKB |
3856 | 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be> |
3857 | ||
3858 | * breakpoint.c (update_dprintf_command_list): Remove duplicated | |
3859 | xmalloc. | |
3860 | ||
d214e5e7 TS |
3861 | 2015-04-20 Thomas Schwinge <thomas@codesourcery.com> |
3862 | ||
110f9112 TS |
3863 | * reply_mig_hack.awk: Robustify parsing. |
3864 | ||
d214e5e7 TS |
3865 | * reply_mig_hack.awk: Don't bother to declare an intermediate |
3866 | function pointer variable. | |
3867 | ||
8f61baf8 DE |
3868 | 2015-04-17 Doug Evans <dje@google.com> |
3869 | ||
3870 | * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement" | |
3871 | to "exec_displacement" to avoid confusion with inner use of the name. | |
3872 | ||
dbbf180a YQ |
3873 | 2015-04-17 Pedro Alves <palves@redhat.com> |
3874 | ||
3875 | * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero | |
3876 | if HW point of TYPE isn't supported. | |
3877 | ||
059790a0 YQ |
3878 | 2015-04-17 Yao Qi <yao.qi@linaro.org> |
3879 | Pedro Alves <palves@redhat.com> | |
3880 | ||
3881 | * target.h (target_can_use_hardware_watchpoint): Update comments. | |
3882 | Remove trailing ";". | |
3883 | ||
1b6e6f5c GB |
3884 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
3885 | ||
3886 | * remote.c (remote_add_inferior): New argument try_open_exec. | |
3887 | If nonzero, attempt to open the inferior's executable file as | |
3888 | the main executable if no main executable is open already. | |
3889 | All callers updated. | |
3890 | * NEWS: Mention that GDB now supports automatic location and | |
3891 | retrieval of executable + files from remote targets. | |
3892 | ||
c78fa86a GB |
3893 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
3894 | ||
3895 | * target.h (TARGET_OBJECT_EXEC_FILE): New enum value. | |
3896 | * remote.c (PACKET_qXfer_exec_file): Likewise. | |
3897 | (remote_protocol_features): Register the | |
3898 | "qXfer:exec-file:read" feature. | |
3899 | (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE. | |
3900 | (remote_pid_to_exec_file): New function. | |
3901 | (init_remote_ops): Initialize to_pid_to_exec_file. | |
3902 | (_initialize_remote): Register new "set/show remote | |
3903 | pid-to-exec-file-packet" command. | |
3904 | * NEWS: Announce new qXfer:exec-file:read packet. | |
3905 | ||
e0d86d2c GB |
3906 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
3907 | ||
3908 | * nat/linux-procfs.h (linux_proc_pid_to_exec_file): | |
3909 | New declaration. | |
3910 | * nat/linux-procfs.c (linux_proc_pid_to_exec_file): | |
3911 | New function, factored out from... | |
3912 | * linux-nat.c (linux_child_pid_to_exec_file): ...here. | |
3913 | ||
a9a5a3d1 GB |
3914 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
3915 | ||
3916 | * exec.c (solist.h): New include. | |
3917 | (exec_file_locate_attach): Prefix absolute executable | |
3918 | paths with gdb_sysroot if set. | |
3919 | * NEWS: Mention that executable paths may be prepended | |
3920 | with sysroot. | |
3921 | ||
af1900b0 GB |
3922 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
3923 | ||
3924 | * solist.h (exec_file_find): New declaration. | |
3925 | * solib.c (solib_find_1): New function, factored out from... | |
3926 | (solib_find): ...here. | |
3927 | (exec_file_find): New function. | |
3928 | ||
a10de604 GB |
3929 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
3930 | ||
3931 | * gdbcore.h (exec_file_locate_attach): New declaration. | |
3932 | * exec.c (exec_file_locate_attach): New function, factored | |
3933 | out from... | |
3934 | * infcmd.c (attach_command_post_wait): ...here. | |
3935 | ||
92209ddf MF |
3936 | 2015-04-17 Mike Frysinger <vapier@gentoo.org> |
3937 | ||
3938 | * MAINTAINERS: Add myself for Blackfin/write-after-approval. | |
3939 | ||
8550d3b3 YQ |
3940 | 2015-04-16 Yao Qi <yao.qi@linaro.org> |
3941 | ||
3942 | * infrun.c (maybe_software_singlestep): Declare. | |
3943 | (displaced_step_fixup): Call maybe_software_singlestep. | |
3944 | ||
30b3dd9d DE |
3945 | 2015-04-15 Doug Evans <dje@google.com> |
3946 | ||
3947 | * psymtab.c (psym_expand_symtabs_matching): Add QUIT call. | |
3948 | ||
61d96d7e DE |
3949 | 2015-04-15 Doug Evans <dje@google.com> |
3950 | ||
3951 | * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls. | |
3952 | ||
40d2f8d6 SM |
3953 | 2015-04-15 Simon Marchi <simon.marchi@ericsson.com> |
3954 | ||
3955 | * python/lib/gdb/command/unwinders.py: Add parentheses. | |
3956 | ||
6bbbba9b YQ |
3957 | 2015-04-15 Yao Qi <yao.qi@linaro.org> |
3958 | ||
3959 | * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message. | |
3960 | ||
2bb2dcab YQ |
3961 | 2015-04-15 Yao Qi <yao.qi@linaro.org> |
3962 | ||
3963 | * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation. | |
3964 | ||
41f071ef YQ |
3965 | 2015-04-15 Yao Qi <yao.qi@linaro.org> |
3966 | ||
3967 | * arm-linux-tdep.c (arm_linux_cleanup_svc): Use | |
3968 | dsc->insn_size instead of 4. | |
3969 | ||
326a5c7e GB |
3970 | 2015-04-14 Gary Benson <gbenson@redhat.com> |
3971 | ||
3972 | * jit.c (mem_bfd_iovec_stat): Zero supplied buffer. | |
3973 | * minidebug.c (lzma_stat): Likewise. | |
3974 | * solib-spu.c (spu_bfd_iovec_stat): Likewise. | |
3975 | * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise. | |
3976 | ||
dd177e81 SS |
3977 | 2015-04-13 Stan Shebs <stanshebs@google.com> |
3978 | ||
3979 | * MAINTAINERS: Update my email address. | |
3980 | ||
97de3545 JB |
3981 | 2015-04-13 John Baldwin <jhb@FreeBSD.org> |
3982 | ||
3983 | * amd64-tdep.c (amd64_target_description): New function. | |
3984 | * amd64-tdep.h: Export amd64_target_description and tdesc_amd64. | |
3985 | * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len. | |
3986 | (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle | |
3987 | x86 extended save area. | |
3988 | (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise. | |
3989 | * amd64bsd-nat.h: Export amd64bsd_xsave_len. | |
3990 | * amd64fbsd-nat.c (amd64fbsd_read_description): New function. | |
3991 | (_initialize_amd64fbsd_nat): Set "to_read_description" to | |
3992 | "amd64fbsd_read_description". | |
3993 | * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function. | |
3994 | (amd64fbsd_supply_xstateregset): New function. | |
3995 | (amd64fbsd_collect_xstateregset): New function. | |
3996 | Add "amd64fbsd_xstateregset". | |
3997 | (amd64fbsd_iterate_over_regset_sections): New function. | |
3998 | (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to | |
3999 | "I386_FBSD_XSAVE_XCR0_OFFSET". | |
4000 | Add "iterate_over_regset_sections" gdbarch method. | |
4001 | Add "core_read_description" gdbarch method. | |
4002 | * i386-tdep.c (i386_target_description): New function. | |
4003 | * i386-tdep.h: Export i386_target_description and tdesc_i386. | |
4004 | * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len. | |
4005 | (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle | |
4006 | x86 extended save area. | |
4007 | (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise. | |
4008 | * i386bsd-nat.h: Export i386bsd_xsave_len. | |
4009 | * i386fbsd-nat.c (i386fbsd_read_description): New function. | |
4010 | (_initialize_i386fbsd_nat): Set "to_read_description" to | |
4011 | "i386fbsd_read_description". | |
4012 | * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function. | |
4013 | (i386fbsd_core_read_description): New function. | |
4014 | (i386fbsd_supply_xstateregset): New function. | |
4015 | (i386fbsd_collect_xstateregset): New function. | |
4016 | Add "i386fbsd_xstateregset". | |
4017 | (i386fbsd_iterate_over_regset_sections): New function. | |
4018 | (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to | |
4019 | "I386_FBSD_XSAVE_XCR0_OFFSET". | |
4020 | Add "iterate_over_regset_sections" gdbarch method. | |
4021 | Add "core_read_description" gdbarch method. | |
4022 | * i386fbsd-tdep.h: New file. | |
4023 | ||
4f45d445 JK |
4024 | 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
4025 | ||
4026 | * NEWS (Changes since GDB 7.9): Add removed -xdb. | |
4027 | * breakpoint.c (command_line_is_silent): Remove xdb_commands | |
4028 | conditional. | |
4029 | (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba | |
4030 | and lb. | |
4031 | * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and | |
4032 | va. | |
4033 | * cli/cli-decode.c (find_command_name_length): Remove xdb_commands | |
4034 | conditional. | |
4035 | * defs.h (xdb_commands): Remove declaration. | |
4036 | * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc. | |
4037 | * guile/scm-cmd.c (command_classes): Remove xdb from comment. | |
4038 | * infcmd.c (run_no_args_command, go_command): Remove. | |
4039 | (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr. | |
4040 | * infrun.c (xdb_handle_command): Remove. | |
4041 | (_initialize_infrun): Remove xdb_commands for lz and z. | |
4042 | * main.c (xdb_commands): Remove variable. | |
4043 | (captured_main): Remove "xdb" from long_options. | |
4044 | (print_gdb_help): Remove --xdb from help. | |
4045 | * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment. | |
4046 | * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?. | |
4047 | * stack.c (backtrace_full_command, args_plus_locals_info) | |
4048 | (current_frame_command): Remove. | |
4049 | (_initialize_stack): Remove xdb_commands for t, T and l. | |
4050 | * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg. | |
4051 | * thread.c (_initialize_thread): Remove xdb_commands condition. | |
4052 | * tui/tui-layout.c (tui_toggle_layout_command) | |
4053 | (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove. | |
4054 | (_initialize_tui_layout): Remove xdb_commands for td and ts. | |
4055 | * tui/tui-regs.c (tui_scroll_regs_forward_command) | |
4056 | (tui_scroll_regs_backward_command): Remove. | |
4057 | (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r. | |
4058 | * tui/tui-win.c (tui_xdb_set_win_height_command): Remove. | |
4059 | (_initialize_tui_win): Remove xdb_commands for U and w. | |
4060 | * utils.c (pagination_on_command, pagination_off_command): Remove. | |
4061 | (initialize_utils): Remove xdb_commands for am and sm. | |
4062 | ||
cb71640d PA |
4063 | 2015-04-10 Pedro Alves <palves@redhat.com> |
4064 | ||
4065 | * infrun.c (displaced_step_fixup): Switch to the event ptid | |
4066 | earlier. If the thread stopped for a watchpoint and the | |
4067 | target/arch has non-continuable watchpoints, cancel the displaced | |
4068 | step. | |
4069 | (resume): Don't start a displaced step if in-line step-over info | |
4070 | is valid. | |
4071 | ||
8f572e5c PA |
4072 | 2015-04-10 Pedro Alves <palves@redhat.com> |
4073 | ||
4074 | * infrun.c (displaced_step_in_progress): New function. | |
4075 | (do_target_resume): Advise target to report all signals if | |
4076 | displaced stepping. | |
4077 | ||
8d707a12 PA |
4078 | 2015-04-10 Pedro Alves <palves@redhat.com> |
4079 | ||
4080 | PR gdb/18216 | |
4081 | * infrun.c (process_event_stop_test): Don't assume a step-resume | |
4082 | is set if tp->stepped_breakpoint is true. | |
4083 | ||
ef713951 YQ |
4084 | 2015-04-10 Yao Qi <yao.qi@linaro.org> |
4085 | ||
4086 | * arm-tdep.c (install_alu_reg): Update comment. | |
4087 | (thumb_copy_alu_reg): Remove local variable rn. Update | |
4088 | debugging message. Use r2 instead of r1 in the modified | |
4089 | instruction. | |
4090 | ||
906d60cf PA |
4091 | 2015-04-10 Pedro Alves <palves@redhat.com> |
4092 | ||
4093 | PR gdb/13858 | |
4094 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install | |
4095 | linux_displaced_step_location as gdbarch_displaced_step_location | |
4096 | hook. | |
4097 | * arm-linux-tdep.c (arm_linux_init_abi): Likewise. | |
4098 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
4099 | * linux-tdep.c (linux_displaced_step_location): New function, | |
4100 | based on ppc_linux_displaced_step_location. | |
4101 | * linux-tdep.h (linux_displaced_step_location): New declaration. | |
4102 | * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete. | |
4103 | (ppc_linux_inferior_created, ppc_linux_displaced_step_location): | |
4104 | Delete. | |
4105 | (ppc_linux_init_abi): Install linux_displaced_step_location as | |
4106 | gdbarch_displaced_step_location hook, even without Cell/B.E.. | |
4107 | (_initialize_ppc_linux_tdep): Don't install | |
4108 | ppc_linux_inferior_created as inferior_created observer. | |
4109 | * s390-linux-tdep.c (s390_gdbarch_init): Install | |
4110 | linux_displaced_step_location as gdbarch_displaced_step_location | |
4111 | hook. | |
4112 | ||
7823a941 GB |
4113 | 2015-04-09 Gary Benson <gbenson@redhat.com> |
4114 | ||
4115 | * common/common-remote-fileio.h: Rename to... | |
4116 | * common/fileio.h: ...this. Update all references. | |
4117 | (remote_fileio_to_fio_error): Rename to... | |
4118 | (host_to_fileio_error): ...this. | |
4119 | (remote_fileio_to_be): Rename to... | |
4120 | (host_to_bigendian): ...this. Update all callers. | |
4121 | (remote_fileio_to_fio_uint): Rename to... | |
4122 | (host_to_fileio_uint): ...this. Update all callers. | |
4123 | (remote_fileio_to_fio_time): Rename to... | |
4124 | (host_to_fileio_time): ...this. Update all callers. | |
4125 | (remote_fileio_to_fio_stat): Rename to... | |
4126 | (host_to_fileio_stat): ...this. | |
4127 | Update all references. | |
4128 | * common/common-remote-fileio.c: Rename to... | |
4129 | * common/fileio.c: ...this. Update all references. | |
4130 | (remote_fileio_to_fio_error): Rename to... | |
4131 | (host_to_fileio_error): ...this. Update all callers. | |
4132 | (remote_fileio_mode_to_target): Rename to... | |
4133 | (fileio_mode_pack): ...this. Update all callers. | |
4134 | (remote_fileio_to_fio_mode): Rename to... | |
4135 | (host_to_fileio_mode): ...this. Update all callers. | |
4136 | (remote_fileio_to_fio_ulong): Rename to... | |
4137 | (host_to_fileio_ulong): ...this. Update all callers. | |
4138 | (remote_fileio_to_fio_stat): Rename to... | |
4139 | (host_to_fileio_stat): ...this. Update all callers. | |
4140 | ||
f2983cc3 AW |
4141 | 2015-04-09 Andy Wingo <wingo@igalia.com> |
4142 | ||
4143 | * guile/scm-frame.c (gdbscm_frame_read_register): New function. | |
4144 | (frame_functions): Bind gdbscm_frame_read_register to | |
4145 | frame-read-register. | |
4146 | * guile/lib/gdb.scm (frame-read-register): Export. | |
4147 | ||
b88bb450 GB |
4148 | 2015-04-09 Gary Benson <gbenson@redhat.com> |
4149 | ||
4150 | * common/common-remote-fileio.h (remote_fileio_to_fio_error): | |
4151 | New declaration. | |
4152 | * common/common-remote-fileio.c (remote_fileio_to_fio_error): | |
4153 | New function, factored out the named functions below. | |
4154 | * inf-child.c (gdb/fileio.h): Remove include. | |
4155 | (common-remote-fileio.h): New include. | |
4156 | (inf_child_errno_to_fileio_error): Remove function. Update | |
4157 | all callers to use remote_fileio_to_fio_error. | |
4158 | * remote-fileio.c (remote_fileio_errno_to_target): Likewise. | |
4159 | ||
2f2680f3 AW |
4160 | 2015-04-09 Andy Wingo <wingo@igalia.com> |
4161 | ||
4162 | * MAINTAINERS (Write After Approval): Add Andy Wingo. | |
4163 | ||
5a2d4533 L |
4164 | 2015-04-09 H.J. Lu <hongjiu.lu@intel.com> |
4165 | ||
4166 | * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir. | |
4167 | Replace $zlibdir with $ZLIBDIR in LDFLAGS. | |
4168 | * configure: Regenerated. | |
4169 | ||
421693b0 PA |
4170 | 2015-04-09 Pedro Alves <palves@redhat.com> |
4171 | ||
4172 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r. | |
4173 | * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4. | |
4174 | * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate. | |
4175 | * gnulib/import/Makefile.am: Update. | |
4176 | * gnulib/import/Makefile.in: Update. | |
4177 | * gnulib/import/m4/gnulib-cache.m4: Update. | |
4178 | * gnulib/import/m4/gnulib-comp.m4: Update. | |
4179 | * gnulib/import/m4/strtok_r.m4: New file. | |
4180 | * gnulib/import/strtok_r.c: New file. | |
4181 | ||
f543dc83 PA |
4182 | 2015-04-09 Pedro Alves <palves@redhat.com> |
4183 | ||
4184 | * gnulib/update-gnulib.sh (aclocal version check): Filter out | |
4185 | "called too early to check prototype". | |
4186 | ||
6d62641c SDJ |
4187 | 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com> |
4188 | ||
4189 | PR python/16699 | |
4190 | * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not | |
4191 | use a caching mechanism. Adjust comments and code to reflect | |
4192 | that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'. | |
4193 | (cmdpy_completer_handle_brkchars): Adjust call to | |
4194 | cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'. | |
4195 | (cmdpy_completer): Likewise. | |
4196 | ||
85558555 YQ |
4197 | 2015-04-08 Yao Qi <yao.qi@linaro.org> |
4198 | ||
4199 | * spu-tdep.c (spu_gdbarch_init): Don't call | |
4200 | set_gdbarch_cannot_step_breakpoint. | |
4201 | ||
d249a14a SDJ |
4202 | 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com> |
4203 | ||
4204 | * linux-tdep.c (decode_vmflags): Initialize 'saveptr'. | |
4205 | ||
8a06aea7 PA |
4206 | 2015-04-07 Pedro Alves <palves@redhat.com> |
4207 | ||
4208 | * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ... | |
4209 | (ALL_THREADS_SAFE): ... this, and don't skip exited threads. | |
4210 | (delete_exited_threads): New declaration. | |
4211 | * infrun.c (follow_exec): Use ALL_THREADS_SAFE. | |
4212 | * linux-nat.c (linux_nat_update_thread_list): New function. | |
4213 | (linux_nat_add_target): Install it. | |
4214 | * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE. | |
4215 | * thread.c (prune_threads): Use ALL_THREADS_SAFE. | |
4216 | (delete_exited_threads): New function. | |
4217 | ||
d9b67d9f PA |
4218 | 2015-04-07 Pedro Alves <pedro@codesourcery.com> |
4219 | ||
4220 | * infrun.c (resume) <displaced stepping debug output>: Get the | |
4221 | leader thread's regcache, not resume_ptid's. | |
4222 | ||
2c26b84f DE |
4223 | 2015-04-06 Doug Evans <xdje42@gmail.com> |
4224 | ||
4225 | * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as | |
4226 | VAR_DOMAIN. | |
4227 | (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters. | |
4228 | Include symbol domain in debugging output. | |
4229 | ||
7a85168d PA |
4230 | 2015-04-06 Pedro Alves <palves@redhat.com> |
4231 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
4232 | ||
4233 | * configure.ac: Remove the mingw32-specific stub-termcap.o | |
4234 | fallback, and instead fallback to the stub termcap on all hosts. | |
4235 | * configure: Regenerate. | |
4236 | * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak | |
4237 | symbols. | |
4238 | ||
25755e2b PMR |
4239 | 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com> |
4240 | ||
4241 | * gdbtypes.c (is_dynamic_type_internal): Remove the unused | |
4242 | "top_level" parameter. | |
4243 | (resolve_dynamic_type_internal): Remove the unused "top_level" | |
4244 | parameter. Update call to is_dynamic_type_internal. | |
4245 | (is_dynamic_type): Update call to is_dynamic_type_internal. | |
4246 | (resolve_dynamic_range): Update call to | |
4247 | resolve_dynamic_type_internal. | |
4248 | (resolve_dynamic_union): Likewise. | |
4249 | (resolve_dynamic_struct): Likewise. | |
4250 | (resolve_dynamic_type): Likewise. | |
4251 | ||
961f4160 PMR |
4252 | 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com> |
4253 | ||
4254 | * gdbtypes.c (is_dynamic_type_internal): Remove special handling of | |
4255 | TYPE_CODE_REF types so that they are not considered as dynamic | |
4256 | depending on the referenced type. | |
4257 | (resolve_dynamic_type_internal): Likewise. | |
4258 | ||
39f3de7c L |
4259 | 2015-04-02 H.J. Lu <hongjiu.lu@intel.com> |
4260 | ||
4261 | * Makefile.in (top_srcdir): New. | |
4262 | * configure: Regenerated. | |
4263 | ||
599bd15c GB |
4264 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
4265 | ||
4266 | * NEWS: Announce the new default sysroot of "target:". | |
4267 | ||
fed040c6 GB |
4268 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
4269 | ||
4270 | * main.c (captured_main): Set gdb_sysroot to "target:" | |
4271 | if not otherwise set. | |
4272 | ||
64c0b5de GB |
4273 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
4274 | ||
4275 | * exec.c (exec_file_attach): Support "target:" filenames. | |
4276 | ||
b57fbfba GB |
4277 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
4278 | ||
4279 | * solib.c (solib_find): Strip "target:" prefix from sysroot | |
4280 | if accessing local files. | |
4281 | ||
97a41605 GB |
4282 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
4283 | ||
4284 | * symfile.c (symfile_bfd_open): Reorder to remove duplicated | |
4285 | checks and error messages. | |
4286 | ||
2938e6cf GB |
4287 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
4288 | ||
4289 | * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition. | |
4290 | (remote_filename_p): Remove declaration. | |
4291 | (remote_bfd_open): Likewise. | |
4292 | * remote.c (remote_bfd_iovec_open): Remove function. | |
4293 | (remote_bfd_iovec_close): Likewise. | |
4294 | (remote_bfd_iovec_pread): Likewise. | |
4295 | (remote_bfd_iovec_stat): Likewise. | |
4296 | (remote_filename_p): Likewise. | |
4297 | (remote_bfd_open): Likewise. | |
4298 | * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration. | |
4299 | * symfile.c (separate_debug_file_exists): Use gdb_bfd_open. | |
4300 | (gdb_bfd_open_maybe_remote): Remove function. | |
4301 | (symfile_bfd_open): Replace remote filename check with | |
4302 | target filename check. | |
4303 | (reread_symbols): Use gdb_bfd_open. | |
4304 | * build-id.c (gdbcore.h): New include. | |
4305 | (build_id_to_debug_bfd): Use gdb_bfd_open. | |
4306 | * infcmd.c (attach_command_post_wait): Remove remote filename | |
4307 | check. | |
4308 | * solib.c (solib_find): Replace remote-specific handling with | |
4309 | target-specific handling. Update comments where necessary. | |
4310 | (solib_bfd_open): Replace remote-specific handling with | |
4311 | target-specific handling. | |
4312 | (gdb_sysroot_changed): New function. | |
4313 | (_initialize_solib): Call the above when gdb_sysroot changes. | |
4314 | * windows-tdep.c (gdbcore.h): New include. | |
4315 | (windows_xfer_shared_library): Use gdb_bfd_open. | |
4316 | ||
f08e97fe GB |
4317 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
4318 | ||
4319 | * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition. | |
4320 | (is_target_filename): New declaration. | |
4321 | (gdb_bfd_has_target_filename): Likewise. | |
4322 | (gdb_bfd_open): Update documentation comment. | |
4323 | * gdb_bfd.c (target.h): New include. | |
4324 | (gdb/fileio.h): Likewise. | |
4325 | (is_target_filename): New function. | |
4326 | (gdb_bfd_has_target_filename): Likewise. | |
4327 | (fileio_errno_to_host): Likewise. | |
4328 | (gdb_bfd_iovec_fileio_open): Likewise. | |
4329 | (gdb_bfd_iovec_fileio_pread): Likewise. | |
4330 | (gdb_bfd_iovec_fileio_close): Likewise. | |
4331 | (gdb_bfd_iovec_fileio_fstat): Likewise. | |
4332 | (gdb_bfd_open): Use target fileio to access paths prefixed | |
4333 | with "target:" where necessary. | |
4334 | ||
4bd7dc42 GB |
4335 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
4336 | ||
4337 | * target.h (struct target_ops) <to_filesystem_is_local>: | |
4338 | New field. | |
4339 | (target_filesystem_is_local): New macro. | |
4340 | * target-delegates.c: Regenerate. | |
4341 | * remote.c (remote_filesystem_is_local): New function. | |
4342 | (init_remote_ops): Initialize to_filesystem_is_local. | |
4343 | ||
9b15c1f0 GB |
4344 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
4345 | ||
4346 | * target.h (struct target_ops) <to_fileio_fstat>: New field. | |
4347 | (target_fileio_fstat): New declaration. | |
4348 | * target.c (target_fileio_fstat): New function. | |
4349 | * inf-child.c (inf_child_fileio_fstat): Likewise. | |
4350 | (inf_child_target): Initialize to_fileio_fstat. | |
4351 | * remote.c (init_remote_ops): Likewise. | |
4352 | ||
d11916aa SS |
4353 | 2015-04-01 Sasha Smundak <asmundak@google.com> |
4354 | ||
4355 | * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o. | |
4356 | (SUBDIR_PYTHON_SRCS): Add py-unwind.c. | |
4357 | (py-unwind.o): New recipe. | |
4358 | * NEWS: mention Python frame unwinding. | |
4359 | * data-directory/Makefile.in (PYTHON_FILE_LIST): Add | |
4360 | gdb/unwinder.py and gdb/command/unwinder.py | |
4361 | * python/lib/gdb/__init__.py (packages): Add frame_unwinders | |
4362 | list. | |
4363 | (execute_unwinders): New function. | |
4364 | * python/lib/gdb/command/unwinders.py: New file. | |
4365 | * python/lib/gdb/unwinder.py: New file. | |
4366 | * python/py-objfile.c (objfile_object): Add frame_unwinders field. | |
4367 | (objfpy_dealloc): Decrement frame_unwinders reference count. | |
4368 | (objfpy_initialize): Create frame_unwinders list. | |
4369 | (objfpy_get_frame_unwinders): New function. | |
4370 | (objfpy_set_frame_unwinders): Ditto. | |
4371 | (objfile_getset): Add frame_unwinders attribute to Objfile. | |
4372 | * python/py-progspace.c (pspace_object): Add frame_unwinders field. | |
4373 | (pspy_dealloc): Decrement frame_unwinders reference count. | |
4374 | (pspy_initialize): Create frame_unwinders list. | |
4375 | (pspy_get_frame_unwinders): New function. | |
4376 | (pspy_set_frame_unwinders): Ditto. | |
4377 | (pspy_getset): Add frame_unwinders attribute to gdb.Progspace. | |
4378 | * python/py-unwind.c: New file. | |
4379 | * python/python-internal.h (pspy_get_name_unwinders): New prototype. | |
4380 | (objpy_get_frame_unwinders): New prototype. | |
4381 | (gdbpy_initialize_unwind): New prototype. | |
4382 | * python/python.c (gdbpy_apply_type_printers): Call | |
4383 | gdbpy_initialize_unwind. | |
4384 | ||
6b403daa PA |
4385 | 2015-04-01 Pedro Alves <palves@redhat.com> |
4386 | ||
4387 | * infrun.c (resume): Check currently_stepping after clearing | |
4388 | stepped_breakpoint, not before. | |
4389 | ||
1176ecec PA |
4390 | 2015-04-01 Pedro Alves <palves@redhat.com> |
4391 | ||
4392 | * infrun.c (print_target_wait_results): Print all the ptid | |
4393 | elements. | |
4394 | ||
de1fe8c8 PA |
4395 | 2015-04-01 Pedro Alves <palves@redhat.com> |
4396 | ||
4397 | * infrun.c (keep_going): Also discard cleanups if inserting | |
4398 | breakpoints fails. | |
4399 | ||
e6f5c25b PA |
4400 | 2015-04-01 Pedro Alves <palves@redhat.com> |
4401 | ||
4402 | * infrun.c (wait_for_inferior): Install the | |
4403 | finish_thread_state_cleanup cleanup across the whole function, not | |
4404 | just around handle_inferior_event. | |
4405 | ||
1ac806b8 PA |
4406 | 2015-04-01 Pedro Alves <palves@redhat.com> |
4407 | ||
4408 | * infrun.c (resume) <step past permanent breakpoint>: Use | |
4409 | do_target_resume. | |
4410 | ||
2ee52aa4 PA |
4411 | 2015-04-01 Pedro Alves <palves@redhat.com> |
4412 | ||
4413 | * linux-nat.c (linux_handle_extended_wait): Always call set_running. | |
4414 | ||
5445da1b PMR |
4415 | 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com> |
4416 | ||
4417 | * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat". | |
4418 | ||
4eec2deb PA |
4419 | 2015-04-01 Pedro Alves <palves@redhat.com> |
4420 | ||
4421 | * linux-thread-db.c (record_thread): Readd the thread to gdb's | |
4422 | list if it was marked exited. | |
4423 | ||
afa59b79 L |
4424 | 2015-04-01 H.J. Lu <hongjiu.lu@intel.com> |
4425 | ||
4426 | * configure: Regenerated. | |
4427 | ||
df8411da SDJ |
4428 | 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com> |
4429 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
4430 | Oleg Nesterov <oleg@redhat.com> | |
4431 | ||
4432 | PR corefiles/16092 | |
4433 | * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'. | |
4434 | New enum identifying the various options of the coredump_filter | |
4435 | file. | |
4436 | (struct smaps_vmflags): New struct. | |
4437 | (use_coredump_filter): New variable. | |
4438 | (decode_vmflags): New function. | |
4439 | (mapping_is_anonymous_p): Likewise. | |
4440 | (dump_mapping_p): Likewise. | |
4441 | (linux_find_memory_regions_full): New variables | |
4442 | 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'. | |
4443 | Removed variable 'modified'. Read /proc/<PID>/smaps file; improve | |
4444 | parsing of its information. Implement memory mapping filtering | |
4445 | based on its contents. | |
4446 | (show_use_coredump_filter): New function. | |
4447 | (_initialize_linux_tdep): New command 'set use-coredump-filter'. | |
4448 | * NEWS: Mention the possibility of using the | |
4449 | '/proc/PID/coredump_filter' file when generating a corefile. | |
4450 | Mention new command 'set use-coredump-filter'. | |
4451 | ||
416f679e SDJ |
4452 | 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com> |
4453 | ||
4454 | * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by | |
4455 | read_memory_unsigned_integer. | |
4456 | ||
711a72d3 L |
4457 | 2015-03-31 H.J. Lu <hongjiu.lu@intel.com> |
4458 | ||
4459 | * Makefile.in (ZLIB): New. | |
4460 | (ZLIBINC): Likewise. | |
4461 | (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC). | |
4462 | (CLIBS): Add $(ZLIB). | |
4463 | * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS. | |
4464 | Add -lz to LIBS. | |
4465 | * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>. | |
4466 | * top.c (print_gdb_configuration): Remove --with-zlib and | |
4467 | --without-zlib. | |
4468 | * config.in: Regenerated. | |
4469 | * configure: Likewise. | |
4470 | ||
d33279b3 AT |
4471 | 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4472 | ||
4473 | * NEWS: Mention info os cpus support. | |
4474 | * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function. | |
4475 | (struct osdata_type): Add cpus entry, reorder the entries in | |
4476 | alphabetical order. | |
4477 | ||
71b30f27 MK |
4478 | 2015-03-31 Matthias Klose <doko@ubuntu.com> |
4479 | ||
4480 | * compile/compile.c (compile_to_object): Allow triplets with or | |
4481 | without vendor set. | |
4482 | ||
13ce9222 DE |
4483 | 2015-03-30 Doug Evans <dje@google.com> |
4484 | ||
4485 | PR c++/18141 | |
4486 | * cp-namespace.c (cp_search_static_and_baseclasses): Always look for | |
4487 | klass in VAR_DOMAIN. | |
4488 | ||
20f796c9 GB |
4489 | 2015-03-30 Gary Benson <gbenson@redhat.com> |
4490 | ||
4491 | * remote.c (remote_mourn_1): Remove function. Update all callers | |
4492 | to use remote_mourn. | |
4493 | (extended_remote_mourn_1): Remove function. Update all callers | |
4494 | to use extended_remote_mourn. | |
4495 | (extended_remote_attach_1): Remove function. Update all callers | |
4496 | to use extended_remote_attach. | |
4497 | ||
49d45b20 JB |
4498 | 2015-03-28 James Bowman <james.bowman@ftdichip.com> |
4499 | ||
4500 | * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o. | |
4501 | (HFILES_NO_SRCDIR): Add ft32-tdep.h. | |
4502 | (ALLDEPFILES): Add ft32-tdep.c. | |
4503 | * configure.tgt: Add FT32 entry. | |
4504 | * ft32-tdep.c: New file, FT32 target-dependent code. | |
4505 | * ft32-tdep.h: New file, FT32 target-dependent code. | |
4506 | ||
1c4ff080 JK |
4507 | 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
4508 | ||
4509 | Revert: | |
4510 | 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com> | |
4511 | Code cleanup. | |
4512 | * printcmd.c (print_command_1): Move expr variable scope. | |
4513 | ||
79498702 JB |
4514 | 2015-03-27 Joel Brobecker <brobecker@adacore.com> |
4515 | ||
4516 | * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL. | |
4517 | ||
ce9c0ca1 AK |
4518 | 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> |
4519 | ||
4520 | * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special | |
4521 | sections. | |
4522 | ||
429e1e81 JB |
4523 | 2015-03-26 Joel Brobecker <brobecker@adacore.com> |
4524 | ||
4525 | * dtrace-probe.c (dtrace_process_dof_probe): Contain any | |
4526 | exception raised while parsing the probe arguments. | |
4527 | Force parsing to be done using the C language parser. | |
4528 | * expression.h (parse_expression_with_language): Declare. | |
4529 | * parse.c (parse_expression_with_language): New function. | |
4530 | ||
4593441b JT |
4531 | 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk> |
4532 | ||
4533 | * MAINTAINERS (Write After Approval): Add "Jon Turney". | |
4534 | ||
ff908ebf AW |
4535 | 2015-03-26 Andy Wingo <wingo@igalia.com> |
4536 | ||
4537 | PR symtab/18148 | |
4538 | * dwarf2read.c (struct partial_die_info): Add has_const_value | |
4539 | member. | |
4540 | (add_partial_symbol): Don't punt on symbols that have const_value | |
4541 | attributes. | |
4542 | (read_partial_die): Detect DW_AT_const_value. | |
4543 | ||
f30d5c78 JK |
4544 | 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
4545 | ||
4546 | Code cleanup. | |
4547 | * printcmd.c (print_command_1): Move expr variable scope. | |
4548 | ||
8d89f51a JK |
4549 | 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
4550 | ||
4551 | Code cleanup. | |
4552 | * printcmd.c (validate_format): Make the parameter cmdname const. | |
4553 | ||
0b736949 DB |
4554 | 2015-03-26 Don Breazeal <donb@codesourcery.com> |
4555 | ||
4556 | * remote.c (_initialize_remote): Update comment. | |
4557 | ||
20d35291 PA |
4558 | 2015-03-26 Pedro Alves <palves@redhat.com> |
4559 | Jon TURNEY <jon.turney@dronecode.org.uk> | |
4560 | ||
4561 | * coffread.c (coff_symfile_read): When constructing the name of an | |
4562 | import stub symbol from import symbol for amd64, only skip the | |
4563 | char after _imp_ if the target is underscored (like i386) and the | |
4564 | char is indeed the target's leading char. | |
4565 | ||
6a3753b3 PA |
4566 | 2015-03-25 Pedro Alves <palves@redhat.com> |
4567 | ||
4568 | * target.h <to_async>: Replace 'callback' and 'context' parameters | |
4569 | with boolean 'enable' parameter. | |
4570 | (target_async): Replace CALLBACK and CONTEXT parameters with | |
4571 | boolean ENABLE parameter. | |
4572 | * inf-loop.c (inferior_event_handler): Adjust. | |
4573 | * linux-nat.c (linux_nat_attach, linux_nat_resume) | |
4574 | (linux_nat_resume): Adjust. | |
4575 | (async_client_callback, async_client_context): Delete. | |
4576 | (handle_target_event): Call inferior_event_handler directly. | |
4577 | (linux_nat_async): Replace 'callback' and 'context' parameters | |
4578 | with boolean 'enable' parameter. Adjust. Remove references to | |
4579 | async_client_callback and async_client_context. | |
4580 | (linux_nat_close): Adjust. | |
4581 | * record-btrace.c (record_btrace_async): Replace 'callback' and | |
4582 | 'context' parameters with boolean 'enable' parameter. Adjust. | |
4583 | (record_btrace_resume): Adjust. | |
4584 | * record-full.c (record_full_async): Replace 'callback' and | |
4585 | 'context' parameters with boolean 'enable' parameter. Adjust. | |
4586 | (record_full_resume, record_full_core_resume): Adjust. | |
4587 | * remote.c (struct remote_state) <async_client_callback, | |
4588 | async_client_context>: Delete fields. | |
4589 | (remote_start_remote, extended_remote_attach_1, remote_resume) | |
4590 | (extended_remote_create_inferior): Adjust. | |
4591 | (remote_async_serial_handler): Call inferior_event_handler | |
4592 | directly. | |
4593 | (remote_async): Replace 'callback' and 'context' parameters with | |
4594 | boolean 'enable' parameter. Adjust. | |
4595 | * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): | |
4596 | Adjust. | |
4597 | * target-delegates.c: Regenerate. | |
4598 | ||
1c4b552b GB |
4599 | 2015-03-25 Gary Benson <gbenson@redhat.com> |
4600 | Pedro Alves <palves@redhat.com> | |
4601 | ||
4602 | * target.c (fileio_ft_t): New typedef, define object vector. | |
4603 | (fileio_fhandles): New static variable. | |
4604 | (is_closed_fileio_fh): New macro. | |
4605 | (lowest_closed_fd): New static variable. | |
4606 | (acquire_fileio_fd): New function. | |
4607 | (release_fileio_fd): Likewise. | |
4608 | (fileio_fd_to_fh): New macro. | |
4609 | (target_fileio_open): Wrap the file descriptor on success. | |
4610 | (target_fileio_pwrite): Updated to use wrapped file descriptor. | |
4611 | (target_fileio_pread): Likewise. | |
4612 | (target_fileio_close): Likewise. | |
4613 | ||
a25d8bf9 PA |
4614 | 2015-03-24 Pedro Alves <palves@redhat.com> |
4615 | ||
4616 | * thread.c (thread_apply_all_command): Take exited threads into | |
4617 | account. | |
4618 | ||
44a1ee51 PA |
4619 | 2015-03-24 Pedro Alves <palves@redhat.com> |
4620 | ||
4621 | * infrun.c (resume, proceed): Mention | |
4622 | switch_back_to_stepped_thread, not switch_back_to_stepping. | |
4623 | ||
f3263aa4 PA |
4624 | 2015-03-24 Pedro Alves <palves@redhat.com> |
4625 | ||
4626 | * infrun.c (user_visible_resume_ptid): Rewrite going from | |
4627 | most-locked to unlocked instead of the opposite. Move comment ... | |
4628 | * infrun.h (user_visible_resume_ptid): ... here. | |
4629 | ||
2bf6fb9d PA |
4630 | 2015-03-24 Pedro Alves <palves@redhat.com> |
4631 | ||
4632 | * linux-nat.c (linux_nat_resume): Output debug logs before trying | |
4633 | to resume the event lwp. Use the lwp's ptid instead of the passed | |
4634 | in (maybe wildcard) ptid. | |
4635 | (stop_wait_callback): Tweak debug log output. | |
4636 | (check_stopped_by_breakpoint): Tweak debug log output. Also dump | |
4637 | TRAP_TRACE. | |
4638 | (linux_nat_filter_event): In debug output, distinguish a | |
4639 | resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs | |
4640 | before trying to resume the lwp. | |
4641 | ||
283a9958 JB |
4642 | 2015-03-24 Joel Brobecker <brobecker@adacore.com> |
4643 | ||
4644 | * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove | |
4645 | pointer indirection. | |
4646 | * gdbtypes.c (get_dyn_prop): Adjust, following change above. | |
4647 | (add_dyn_prop, copy_dynamic_prop_list): Likewise. | |
4648 | ||
93a8e227 JB |
4649 | 2015-03-24 Joel Brobecker <brobecker@adacore.com> |
4650 | ||
4651 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>: | |
4652 | Renames DYN_ATTR_DATA_LOCATION. | |
4653 | (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of | |
4654 | DYN_ATTR_DATA_LOCATION. | |
4655 | * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION | |
4656 | instead of DYN_ATTR_DATA_LOCATION. | |
4657 | ||
64ce06e4 PA |
4658 | 2015-03-24 Pedro Alves <palves@redhat.com> |
4659 | ||
4660 | * breakpoint.c (until_break_command): Adjust call to proceed. | |
4661 | * gdbthread.h (struct thread_control_state) <stepping_command>: | |
4662 | New field. | |
4663 | * infcall.c (run_inferior_call): Adjust call to proceed. | |
4664 | * infcmd.c (run_command_1, proceed_thread_callback, continue_1): | |
4665 | Adjust calls to proceed. | |
4666 | (set_step_frame): Set the current thread's step_start_function | |
4667 | here. | |
4668 | (step_once): Adjust calls to proceed. | |
4669 | (jump_command, signal_command, until_next_command) | |
4670 | (finish_backward, finish_forward, proceed_after_attach_callback) | |
4671 | (attach_command_post_wait): Adjust calls to proceed. | |
4672 | * infrun.c (proceed_after_vfork_done): Adjust call to proceed. | |
4673 | (do_target_resume): New function, factored out from ... | |
4674 | (resume): ... here. Remove 'step' parameter. Instead, check | |
4675 | currently_stepping to determine whether the thread should be | |
4676 | single-stepped. | |
4677 | (proceed): Remove 'step' parameter and don't set the thread's | |
4678 | step_start_function here. Adjust call to 'resume'. | |
4679 | (handle_inferior_event): Adjust calls to 'resume'. | |
4680 | (switch_back_to_stepped_thread): Use do_target_resume instead of | |
4681 | 'resume'. | |
4682 | (keep_going): Adjust calls to 'resume'. | |
4683 | * infrun.h (proceed): Remove 'step' parameter. | |
4684 | (resume): Likewise. | |
4685 | * windows-nat.c (do_initial_windows_stuff): Adjust call to | |
4686 | 'resume'. | |
4687 | * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'. | |
4688 | ||
856e7dd6 PA |
4689 | 2015-03-24 Pedro Alves <palves@redhat.com> |
4690 | ||
4691 | * gdbthread.h (struct thread_control_state) <stepping_command>: | |
4692 | New field. | |
4693 | * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set | |
4694 | the thread's stepping_command field. | |
4695 | * infrun.c (resume): Check the thread's stepping_command flag to | |
4696 | determine which threads should be resumed. Rename 'entry_step' | |
4697 | local to user_step. | |
4698 | (clear_proceed_status_thread): Clear 'stepping_command'. | |
4699 | (schedlock_applies): Change parameter type to struct thread_info | |
4700 | pointer. Adjust. | |
4701 | (find_thread_needs_step_over): Remove 'step' parameter. Adjust. | |
4702 | (switch_back_to_stepped_thread): Adjust calls to | |
4703 | 'schedlock_applies'. | |
4704 | (_initialize_infrun): Adjust "set scheduler-locking step" help. | |
4705 | ||
885eeb5b PA |
4706 | 2015-03-24 Pedro Alves <palves@redhat.com> |
4707 | ||
4708 | * infrun.c (step_start_function): Delete and ... | |
4709 | * gdbthread.h (struct thread_control_state) <step_start_function>: | |
4710 | ... now a field here. | |
4711 | * infrun.c (clear_proceed_status_thread): Clear the thread's | |
4712 | step_start_function. | |
4713 | (proceed, process_event_stop_test, print_stop_event): Adjust. | |
4714 | ||
3333f03a PA |
4715 | 2015-03-24 Pedro Alves <palves@redhat.com> |
4716 | ||
4717 | * infrun.c (proceed): No longer handle negative step. | |
4718 | ||
369f6daa GB |
4719 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
4720 | ||
4721 | * nat/x86-linux.h (x86_linux_new_thread): New declaration. | |
4722 | (x86_linux_prepare_to_resume): Likewise. | |
4723 | * x86-linux-nat.c (x86_linux_new_thread): | |
4724 | Moved to nat/x86-linux.c. | |
4725 | (x86_linux_prepare_to_resume): Likewise. | |
4726 | * nat/x86-linux.c (x86_linux_new_thread): New function. | |
4727 | (x86_linux_prepare_to_resume): Likewise. | |
4728 | ||
8e5d4070 GB |
4729 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
4730 | ||
4731 | * nat/x86-linux-dregs.h: New file. | |
4732 | * nat/x86-linux-dregs.c: Likewise. | |
4733 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h. | |
4734 | (x86-linux-dregs.o): New rule. | |
4735 | * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o. | |
4736 | * config/i386/linux64.mh (NATDEPFILES): Likewise. | |
4737 | * x86-linux-nat.c: Include nat/x86-linux-dregs.h. | |
4738 | (u_debugreg_offset): Moved to nat/x86-linux-dregs.c. | |
4739 | (x86_linux_dr_get): Likewise. | |
4740 | (x86_linux_dr_set): Likewise. | |
4741 | (x86_linux_dr_get_addr): Likewise. | |
4742 | (x86_linux_dr_get_control): Likewise. | |
4743 | (x86_linux_dr_get_status): Likewise. | |
4744 | (update_debug_registers_callback): Likewise. | |
4745 | (x86_linux_dr_set_control): Likewise. | |
4746 | (x86_linux_dr_set_addr): Likewise. | |
4747 | (x86_linux_update_debug_registers): Likewise. | |
4748 | ||
2b95d440 GB |
4749 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
4750 | ||
4751 | * x86-linux-nat.c (x86_linux_update_debug_registers): | |
4752 | New function, factored out from... | |
4753 | (x86_linux_prepare_to_resume): ...this. | |
4754 | ||
14b0bc68 GB |
4755 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
4756 | ||
4757 | * x86-linux-nat.c (x86_linux_dr_get): Update comments. | |
4758 | (x86_linux_dr_set): Likewise. | |
4759 | (x86_linux_dr_get_addr): Likewise. | |
4760 | (x86_linux_dr_get_control): Likewise. | |
4761 | (x86_linux_dr_get_status): Likewise. | |
4762 | (update_debug_registers_callback): Likewise. | |
4763 | (x86_linux_dr_set_control): Likewise. | |
4764 | (x86_linux_dr_set_addr): Likewise. | |
4765 | (x86_linux_prepare_to_resume): Likewise. | |
4766 | (x86_linux_new_thread): Likewise. | |
4767 | ||
5dfe6ca8 GB |
4768 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
4769 | ||
4770 | * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion. | |
4771 | (x86_linux_new_thread): Rename argument. | |
4772 | ||
4b134ca1 GB |
4773 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
4774 | ||
4775 | * nat/x86-linux.h: New file. | |
4776 | * nat/x86-linux.c: Likewise. | |
4777 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h. | |
4778 | (x86-linux.o): New rule. | |
4779 | * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o. | |
4780 | * config/i386/linux64.mh (NATDEPFILES): Likewise. | |
4781 | * nat/linux-nat.h (struct arch_lwp_info): New forward declaration. | |
4782 | (lwp_set_arch_private_info): New declaration. | |
4783 | (lwp_arch_private_info): Likewise. | |
4784 | * linux-nat.c (lwp_set_arch_private_info): New function. | |
4785 | (lwp_arch_private_info): Likewise. | |
4786 | * x86-linux-nat.c: Include nat/x86-linux.h. | |
4787 | (arch_lwp_info): Removed structure. | |
4788 | (update_debug_registers_callback): | |
4789 | Use lwp_set_debug_registers_changed. | |
4790 | (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed | |
4791 | and lwp_set_debug_registers_changed. | |
4792 | (x86_linux_new_thread): Use lwp_set_debug_registers_changed. | |
4793 | ||
cff068da GB |
4794 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
4795 | ||
4796 | * nat/linux-nat.h (ptid_of_lwp): New declaration. | |
4797 | (lwp_is_stopped): Likewise. | |
4798 | (lwp_stop_reason): Likewise. | |
4799 | * linux-nat.c (ptid_of_lwp): New function. | |
4800 | (lwp_is_stopped): Likewise. | |
4801 | (lwp_is_stopped_by_watchpoint): Likewise. | |
4802 | * x86-linux-nat.c (update_debug_registers_callback): | |
4803 | Use lwp_is_stopped. | |
4804 | (x86_linux_prepare_to_resume): Use ptid_of_lwp and | |
4805 | lwp_stop_reason. | |
4806 | ||
b2f7c7e8 GB |
4807 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
4808 | ||
4809 | * linux-nat.h (linux_stop_lwp): Move declaration to... | |
4810 | * nat/linux-nat.h (linux_stop_lwp): New declaration. | |
4811 | ||
6d4ee8c6 GB |
4812 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
4813 | ||
4814 | * linux-nat.h: Include nat/linux-nat.h. | |
4815 | (iterate_over_lwps): Move declaration to nat/linux-nat.h. | |
4816 | * nat/linux-nat.h (struct lwp_info): New forward declaration. | |
4817 | (iterate_over_lwps_ftype): New typedef. | |
4818 | (iterate_over_lwps): New declaration. | |
4819 | * linux-nat.h (iterate_over_lwps): Update comment. Use | |
4820 | iterate_over_lwps_ftype. Update callback return value check. | |
4821 | ||
70a0bb6b GB |
4822 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
4823 | ||
4824 | * x86-nat.h (x86_debug_reg_state): Move declaration to... | |
4825 | * nat/x86-dregs.h (x86_debug_reg_state): New declaration. | |
4826 | ||
7b669087 GB |
4827 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
4828 | ||
4829 | * nat/linux-nat.h (current_lwp_ptid): New declaration. | |
4830 | * linux-nat.c (current_lwp_ptid): New function. | |
4831 | * x86-linux-nat.c: Include nat/linux-nat.h. | |
4832 | (x86_linux_dr_get_addr): Use current_lwp_ptid. | |
4833 | (x86_linux_dr_get_control): Likewise. | |
4834 | (x86_linux_dr_get_status): Likewise. | |
4835 | (x86_linux_dr_set_control): Likewise. | |
4836 | (x86_linux_dr_set_addr): Likewise. | |
4837 | ||
15630549 AT |
4838 | 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4839 | ||
4840 | PR breakpoints/16466 | |
4841 | * breakpoint.c (create_breakpoint): Set thread on breakpoint struct. | |
4842 | ||
8a4506c0 JB |
4843 | 2015-03-23 Joel Brobecker <brobecker@adacore.com> |
4844 | ||
4845 | * ser-mingw.c (ser_windows_setparity): Fix indentation. | |
4846 | * ser-unix.c (hardwire_setparity): Likewise. | |
4847 | ||
236af5e3 YG |
4848 | 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com> |
4849 | ||
4850 | * NEWS: Mention set/show serial parity command. | |
4851 | * monitor.c (monitor_open): Call serial_setparity. | |
4852 | * remote.c (remote_open_1): Likewise. | |
4853 | * ser-base.c (ser_base_serparity): New function. | |
4854 | * ser-base.h (ser_base_setparity): Add declaration. | |
4855 | * ser-go32.c (dos_ops): Set "setparity" field. | |
4856 | * ser-mingw.c (ser_windows_raw): Do not set state.fParity and | |
4857 | state.Parity. | |
4858 | (ser_windows_setparity): New function. | |
4859 | (hardwire_ops): Add ser_windows_setparity. | |
4860 | (tty_ops): Add NULL for setparity field. | |
4861 | (pipe_ops): Add ser_base_setparity. | |
4862 | (tcp_ops): Likewise. | |
4863 | * ser-pipe.c (pipe_ops): Likewise. | |
4864 | * ser-tcp.c (tcp_ops): Likewise. | |
4865 | * ser-unix.c (hardwire_setparity): Add declaration. | |
4866 | (hardwire_raw): Don't reset PARENB flag. | |
4867 | (hardwire_setparity): New function. | |
4868 | (hardwire_ops): Add hardwire_setparity. | |
4869 | * serial.c (serial_setparity): New function. | |
4870 | (serial_parity): New global. | |
4871 | (parity_none, parity_odd, parity_even, parity_enums, parity): | |
4872 | New static globals. | |
4873 | (set_parity): New function. | |
4874 | (_initialize_serial): Add set/show serial parity commands. | |
4875 | * serial.h (GDBPARITY_NONE): Define. | |
4876 | (GDBPARITY_ODD): Define. | |
4877 | (GDBPARITY_EVEN): Define. | |
4878 | (serial_setparity) Add declaration. | |
4879 | (struct serial_ops): Add setparity field. | |
4880 | * target.h (serial_parity): Add declaration. | |
4881 | ||
32b40af9 KS |
4882 | 2015-03-23 Keith Seitz <keiths@redhat.com> |
4883 | ||
4884 | * linespec.c (linespec_lexer_lex_keyword): Update comment. | |
4885 | ||
693dca06 KS |
4886 | 2015-03-23 Keith Seitz <keiths@redhat.com> |
4887 | ||
4888 | * breakpoint.c (parse_breakpoint_sals): Use | |
4889 | linespec_lexer_lex_keyword to ascertain if the user specified | |
4890 | a NULL location. | |
4891 | * linespec.c [IF_KEYWORD_INDEX]: Define. | |
4892 | (linespec_lexer_lex_keyword): Export. | |
4893 | (struct ls_parser) <keyword_ok>: Remove. | |
4894 | A keyword is only a keyword if not followed by another keyword. | |
4895 | (linespec_lexer_lex_one): Remove keyword_ok handling. | |
4896 | Add comment explaining why the parsing stream is not advanced | |
4897 | when a keyword is seen. | |
4898 | (parse_linespec): Remove parser->keyword_ok. | |
4899 | * linespec.h (linespec_lexer_lex_keyword): Add declaration. | |
4900 | ||
7e993ebf KS |
4901 | 2015-03-23 Keith Seitz <keiths@redhat.com> |
4902 | ||
4903 | PR gdb/18021 | |
4904 | * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint | |
4905 | if we find a static method with DW_AT_vtable_elem_location. | |
4906 | ||
b1a0f704 EZ |
4907 | 2015-03-21 Eli Zaretskii <eliz@gnu.org> |
4908 | ||
4909 | * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter | |
4910 | before the second loop, to avoid undefined behavior. Reported by | |
4911 | Anton Blanchard <anton@samba.org>. | |
4912 | ||
d9823cbb KB |
4913 | 2015-03-20 Keven Boell <keven.boell@intel.com> |
4914 | ||
4915 | * gdbtypes.c (resolve_dynamic_type_internal): Adapt | |
4916 | data_location usage to linked list. | |
4917 | (resolve_dynamic_type_internal): Adapt data_location to | |
4918 | linked list. | |
4919 | (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function. | |
4920 | (copy_type_recursive, copy_type): Add copy of linked list. | |
4921 | * gdbtypes.h (enum dynamic_prop_node_kind): New enum. | |
4922 | (struct dynamic_prop_list): New struct. | |
4923 | * dwarf2read.c (set_die_type): Set data_location data. | |
4924 | ||
2e7bf1d7 PA |
4925 | 2015-03-20 Pedro Alves <palves@redhat.com> |
4926 | ||
4927 | * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to | |
4928 | inner block and make it const. | |
4929 | * machoread.c (get_archive_prefix_len): Make "lparen" const. | |
4930 | ||
7a26bd4d PA |
4931 | 2015-03-20 Pedro Alves <palves@redhat.com> |
4932 | ||
4933 | * breakpoint.c (set_breakpoint_condition): Make argument "exp" const. | |
4934 | * breakpoint.h (set_breakpoint_condition): Update declaration. | |
4935 | ||
cd46431b PA |
4936 | 2015-03-20 Pedro Alves <palves@redhat.com> |
4937 | ||
4938 | * tui/tui-io.c (tui_expand_tabs): Make "s1" const. | |
4939 | ||
e28566f7 PA |
4940 | 2015-03-20 Pedro Alves <palves@redhat.com> |
4941 | ||
4942 | * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const. | |
4943 | ||
f6fc92f6 PA |
4944 | 2015-03-20 Pedro Alves <palves@redhat.com> |
4945 | ||
4946 | * remote-m32r-sdi.c (m32r_open): Make "port_str" const. | |
4947 | ||
c32ed3ef PA |
4948 | 2015-03-20 Pedro Alves <palves@redhat.com> |
4949 | ||
4950 | * nto-tdep.c (nto_find_and_open_solib): Make "endian" const. | |
4951 | (nto_init_solib_absolute_prefix): Likewise. | |
4952 | ||
53e78085 PA |
4953 | 2015-03-20 Pedro Alves <palves@redhat.com> |
4954 | ||
4955 | * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const. | |
4956 | * spu-tdep.c (spu_gdbarch_init): Make "name" const. | |
4957 | ||
bc23328c JK |
4958 | 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
4959 | ||
4960 | * config/djgpp/README: Remove gdb.hp. | |
4961 | ||
e8ffc436 YQ |
4962 | 2015-03-20 Yao Qi <yao.qi@linaro.org> |
4963 | ||
4964 | * aarch64-tdep.c (aarch64_gdbarch_init): Don't call | |
4965 | set_gdbarch_cannot_step_breakpoint. | |
4966 | ||
23f238d3 PA |
4967 | 2015-03-19 Pedro Alves <palves@redhat.com> |
4968 | ||
4969 | * linux-nat.c (linux_resume_one_lwp): Rename to ... | |
4970 | (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here, | |
4971 | instead call perror_with_name. | |
4972 | (check_ptrace_stopped_lwp_gone): New function. | |
4973 | (linux_resume_one_lwp): Reimplement as wrapper around | |
4974 | linux_resume_one_lwp_throw that swallows errors if the LWP is | |
4975 | gone. | |
4976 | (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and | |
4977 | swallows errors if the LWP is gone. Use | |
4978 | linux_resume_one_lwp_throw instead of linux_resume_one_lwp. | |
4979 | ||
eb54c8bf PA |
4980 | 2015-03-19 Pedro Alves <palves@redhat.com> |
4981 | ||
4982 | * linux-nat.c (status_callback): Return early if the LWP has no | |
4983 | status pending. | |
4984 | ||
b90fc188 PA |
4985 | 2015-03-19 Pedro Alves <palves@redhat.com> |
4986 | ||
4987 | * linux-nat.c (select_event_lwp_callback): Update comment to no | |
4988 | longer mention SIGTRAP. | |
4989 | ||
670f82d4 TG |
4990 | 2015-03-18 Tristan Gingold <gingold@adacore.com> |
4991 | ||
72f4393d L |
4992 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move |
4993 | redirection code to ... | |
4994 | (amd64_windows_frame_decode_insns): ... Here. Fix in prologue | |
4995 | checks. Fix SAVE_NONVOL operations. Add debug code and comments. | |
670f82d4 | 4996 | |
464b0089 GB |
4997 | 2015-03-18 Gary Benson <gbenson@redhat.com> |
4998 | ||
4999 | (remote_protocol_features): Remove the "vFile:fstat" feature. | |
5000 | (remote_hostio_fstat): Probe for "vFile:fstat" support. | |
5001 | ||
f68f11b7 YQ |
5002 | 2015-03-11 Yao Qi <yao.qi@linaro.org> |
5003 | ||
5004 | PR tdep/18107 | |
5005 | * aarch64-linux-tdep.c: Include xml-syscall.h | |
5006 | (aarch64_linux_get_syscall_number): New function. | |
5007 | (aarch64_linux_init_abi): Call | |
5008 | set_gdbarch_get_syscall_number. | |
5009 | * syscalls/aarch64-linux.xml: New file. | |
5010 | ||
393bd0c0 YG |
5011 | 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com> |
5012 | ||
5013 | * ser-base.h (ser_base_setstopbits): Change second argument name | |
5014 | from "rate" to "num". | |
5015 | ||
7f3647e2 GB |
5016 | 2015-03-17 Gary Benson <gbenson@redhat.com> |
5017 | Luke Allardyce <lukeallardyce@gmail.com> | |
5018 | ||
5019 | PR gdb/18131 | |
5020 | * common/common-remote-fileio.h (sys/stat.h): New include. | |
5021 | (stuct stat): Remove forward declaration. | |
5022 | ||
3ce5b6e2 JB |
5023 | 2015-03-16 John Baldwin <jhb@FreeBSD.org> |
5024 | ||
5025 | * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers | |
5026 | before writing core register notes. | |
5027 | ||
d053f6be YZ |
5028 | 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com> |
5029 | Pedro Alves <palves@redhat.com> | |
5030 | ||
5031 | * gdb_curses.h (tgetnum): Mark with EXTERN_C. | |
5032 | * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs) | |
5033 | (tgoto): Wrap with extern "C". | |
5034 | ||
b1a921c8 PA |
5035 | 2015-03-16 Pedro Alves <palves@redhat.com> |
5036 | Yuanhui Zhang <asmwarrior@gmail.com> | |
5037 | ||
5038 | * stub-termcap.c (tputs): Change prototype. | |
5039 | ||
876d1cd7 YZ |
5040 | 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com> |
5041 | Pedro Alves <palves@redhat.com> | |
5042 | ||
5043 | * windows-nat.c (struct thread_info_struct): Rename to ... | |
5044 | (struct windows_thread_info_struct): ... this. | |
5045 | (thread_info): Rename to ... | |
5046 | (windows_thread_info): ... this. | |
5047 | All users updated. | |
5048 | ||
0800b440 JK |
5049 | 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
5050 | Pedro Alves <palves@redhat.com> | |
5051 | ||
5052 | * NEWS: New Removed targets and native configurations. | |
5053 | ||
5054 | 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> | |
61a12cfa JK |
5055 | |
5056 | Remove HPUX. | |
5057 | * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o. | |
5058 | (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o. | |
5059 | (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and | |
5060 | ia64-hpux-tdep.h, solib-ia64-hpux.h. | |
5061 | (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c, | |
5062 | ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c. | |
5063 | * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and | |
5064 | hppa-hpux-tdep.c. | |
5065 | * config/ia64/hpux.mh: Remove file. | |
5066 | * config/pa/hpux.mh: Remove file. | |
5067 | * configure: Rebuilt. | |
5068 | * configure.ac (dlgetmodinfo, somread.o): Remove. | |
5069 | * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete. | |
5070 | (ia64-*-hpux*): Remove its float format exception. | |
5071 | * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete. | |
5072 | * hppa-hpux-nat.c: Remove file. | |
5073 | * hppa-hpux-tdep.c: Remove file. | |
5074 | * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private): | |
5075 | Move them here from hppa-tdep.h | |
5076 | (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static. | |
5077 | (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception. | |
5078 | * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private): | |
5079 | Move them to hppa-tdep.c. | |
5080 | (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove | |
5081 | declarations. | |
5082 | * ia64-hpux-nat.c: Remove file. | |
5083 | * ia64-hpux-tdep.c: Remove file. | |
5084 | * ia64-hpux-tdep.h: Remove file. | |
5085 | * inf-ttrace.c: Remove file. | |
5086 | * inf-ttrace.h: Remove file. | |
5087 | * solib-ia64-hpux.c: Remove file. | |
5088 | * solib-ia64-hpux.h: Remove file. | |
5089 | * solib-pa64.c: Remove file. | |
5090 | * solib-pa64.h: Remove file. | |
5091 | * solib-som.c: Remove file. | |
5092 | * solib-som.h: Remove file. | |
5093 | * somread.c: Remove file. | |
5094 | ||
25268153 JB |
5095 | 2015-03-13 John Baldwin <jhb@FreeBSD.org> |
5096 | ||
5097 | * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util). | |
5098 | * config.in: Regenerate. | |
5099 | * configure: Regenerate. | |
5100 | * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't | |
72f4393d | 5101 | define. |
25268153 JB |
5102 | (fbsd_find_memory_regions): Use kinfo_getvmmap to |
5103 | enumerate memory regions if present. | |
5104 | ||
773eacf5 JB |
5105 | 2015-03-13 John Baldwin <jhb@FreeBSD.org> |
5106 | ||
5107 | * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes. | |
5108 | * i386fbsd-tdep.c: Fix style in various gdb_static_assert | |
5109 | expressions. | |
5110 | (i386fbsd_sigtramp_p): Likewise. | |
5111 | ||
01b6bdb0 JB |
5112 | 2015-03-12 John Baldwin <jhb@FreeBSD.org> |
5113 | ||
5114 | * MAINTAINERS (Write After Approval): Add John Baldwin. | |
5115 | ||
811a659a GB |
5116 | 2015-03-12 Gary Benson <gbenson@redhat.com> |
5117 | ||
5118 | * solib.c (_initialize_solib): Make "set/show sysroot" use | |
5119 | add_setshow_optional_filename_cmd so it can be restored to | |
5120 | empty after being set. | |
5121 | ||
10304ef3 SDJ |
5122 | 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com> |
5123 | ||
5124 | * Makefile.in (SFILES): New source break-catch-syscall.c. | |
5125 | (COMMON_OBS): New object break-catch-syscall.o. | |
5126 | * break-catch-syscall.c: New file. | |
5127 | * breakpoint.c: Remove inclusion of "xml-syscall.h". | |
5128 | (syscall_catchpoint_p): Move declaration to break-catch-syscall.c | |
5129 | (struct syscall_catchpoint): Likewise. | |
5130 | (dtor_catch_syscall): Likewise. | |
5131 | (catch_syscall_inferior_data): Likewise. | |
5132 | (struct catch_syscall_inferior_data): Likewise. | |
5133 | (get_catch_syscall_inferior_data): Likewise. | |
5134 | (catch_syscall_inferior_data_cleanup): Likewise. | |
5135 | (insert_catch_syscall): Likewise. | |
5136 | (remove_catch_syscall): Likewise. | |
5137 | (breakpoint_hit_catch_syscall): Likewise. | |
5138 | (print_it_catch_syscall): Likewise. | |
5139 | (print_one_catch_syscall): Likewise. | |
5140 | (print_mention_catch_syscall): Likewise. | |
5141 | (print_recreate_catch_syscall): Likewise. | |
5142 | (catch_syscall_breakpoint_ops): Likewise. | |
5143 | (syscall_catchpoint_p): Likewise. | |
5144 | (create_syscall_event_catchpoint): Likewise. | |
5145 | (catch_syscall_split_args): Likewise. | |
5146 | (catch_syscall_command_1): Likewise. | |
5147 | (is_syscall_catchpoint_enabled): Likewise. | |
5148 | (catch_syscall_enabled): Likewise. | |
5149 | (catching_syscall_number): Likewise. | |
5150 | (catch_syscall_completer): Likewise. | |
5151 | (clear_syscall_counts): Likewise. | |
5152 | (initialize_breakpoint_ops): Move initialization of syscall | |
5153 | catchpoints to break-catch-syscall.c. | |
5154 | (_initialize_breakpoint): Move code related to syscall catchpoints | |
5155 | to break-catch-syscall.c. | |
5156 | ||
badd37ce SDJ |
5157 | 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com> |
5158 | ||
5159 | * breakpoint.c (breakpoint_find_if): New function. | |
5160 | * breakpoint.h (breakpoint_find_if): New prototype. | |
5161 | ||
0a93529c GB |
5162 | 2015-03-11 Gary Benson <gbenson@redhat.com> |
5163 | ||
5164 | * remote-fileio.h (remote_fileio_to_host_stat): New declaration. | |
5165 | * remote-fileio.c (remote_fileio_to_host_uint): New function. | |
5166 | (remote_fileio_to_host_ulong): Likewise. | |
5167 | (remote_fileio_to_host_mode): Likewise. | |
5168 | (remote_fileio_to_host_time): Likewise. | |
5169 | (remote_fileio_to_host_stat): Likewise. | |
5170 | * remote.c (PACKET_vFile_fstat): New enum value. | |
5171 | (remote_protocol_features): Register the "vFile:fstat" feature. | |
5172 | (remote_hostio_fstat): New function. | |
5173 | (remote_bfd_iovec_stat): Use the above. | |
5174 | (_initialize_remote): Register new "set/show remote | |
5175 | hostio-fstat-packet" command. | |
5176 | * symfile.c (separate_debug_file_exists): Update comment. | |
5177 | * NEWS: Announce new vFile:fstat packet. | |
5178 | ||
791c0056 GB |
5179 | 2015-03-11 Gary Benson <gbenson@redhat.com> |
5180 | ||
5181 | * common/common-remote-fileio.h: New file. | |
5182 | * common/common-remote-fileio.c: Likewise. | |
5183 | * Makefile.in (SFILES): Add common/common-remote-fileio.c. | |
5184 | (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h. | |
5185 | (COMMON_OBS): Add common-remote-fileio.o. | |
5186 | (common-remote-fileio.o): New rule. | |
5187 | * remote-fileio.h (common-remote-fileio.h): New include. | |
5188 | * remote-fileio.c (gdb/fileio.h): Do not include. | |
5189 | (remote_fileio_to_be): Moved to common-remote-fileio.h. | |
5190 | (remote_fileio_to_fio_uint): Likewise. | |
5191 | (remote_fileio_to_fio_time): Likewise. | |
5192 | (remote_fileio_mode_to_target): Moved to common-remote-fileio.c. | |
5193 | (remote_fileio_to_fio_mode): Likewise. | |
5194 | (remote_fileio_to_fio_ulong): Likewise. | |
5195 | (remote_fileio_to_fio_stat): Likewise. | |
5196 | ||
1390d0ef AW |
5197 | 2015-03-11 Andy Wingo <wingo@igalia.com> |
5198 | ||
5199 | * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which | |
5200 | we were checking the cached type, not the cached dynamic type. | |
5201 | ||
84a4591a AW |
5202 | 2015-03-11 Andy Wingo <wingo@igalia.com> |
5203 | ||
5204 | * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and | |
5205 | other strings, as these are on the GC'd heap, and will be | |
5206 | collected along with the smob. | |
5207 | ||
85642ba0 AW |
5208 | 2015-03-11 Andy Wingo <wingo@igalia.com> |
5209 | ||
5210 | * guile/scm-objfile.c (gdbscm_objfile_progspace): New function. | |
5211 | (objfile_functions): Bind gdbscm_objfile_progspace to | |
5212 | objfile-progspace. | |
5213 | * guile/lib/gdb.scm: Add objfile-progspace to exports. | |
5214 | ||
92fab5a6 AW |
5215 | 2015-03-11 Andy Wingo <wingo@igalia.com> |
5216 | ||
5217 | * guile/guile.c (_initialize_guile): Disable automatic | |
5218 | finalization, if Guile offers us that possibility. | |
5219 | * guile/guile.c (call_initialize_gdb_module): | |
5220 | * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run | |
5221 | finalizers in appropriate places. | |
5222 | * configure.ac (AC_TRY_LIBGUILE): Add a check for | |
5223 | scm_set_automatic_finalization_enabled. | |
5224 | * configure: Regenerated. | |
5225 | ||
f054145e AA |
5226 | 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5227 | ||
5228 | * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using | |
5229 | SAL, if possible. | |
5230 | ||
18396193 AA |
5231 | 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5232 | ||
5233 | * s390-linux-nat.c (struct arch_lwp_info): New. | |
5234 | (s390_fix_watch_points): Rename to... | |
5235 | (s390_prepare_to_resume): ...this. Skip the PER info update | |
5236 | unless the watch points have changed. | |
5237 | (s390_refresh_per_info, s390_new_thread): New functions. | |
5238 | (s390_insert_watchpoint): Call s390_refresh_per_info instead of | |
5239 | s390_fix_watch_points. | |
5240 | (s390_remove_watchpoint): Likewise. | |
5241 | (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points. | |
5242 | Register s390_prepare_to_resume. | |
5243 | ||
9eb1356e PA |
5244 | 2015-03-09 Pedro Alves <palves@redhat.com> |
5245 | ||
5246 | Revert: | |
5247 | 2015-03-07 Pedro Alves <palves@redhat.com> | |
5248 | * common/gdb_socket.h: New file. | |
5249 | * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor | |
5250 | sys/socket.h. | |
5251 | (net_open): Use union gdb_sockaddr_u. | |
5252 | ||
aac331e4 PA |
5253 | 2015-03-07 Pedro Alves <palves@redhat.com> |
5254 | ||
5255 | * configure.ac (build_warnings): Move -Wmissing-prototypes | |
5256 | -Wdeclaration-after-statement -Wmissing-parameter-type | |
5257 | -Wold-style-declaration -Wold-style-definition to the C-specific | |
5258 | set. | |
5259 | * configure: Regenerate. | |
5260 | ||
366c75fc PA |
5261 | 2015-03-07 Pedro Alves <palves@redhat.com> |
5262 | ||
5263 | * common/gdb_socket.h: New file. | |
5264 | * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor | |
5265 | sys/socket.h. | |
5266 | (net_open): Use union gdb_sockaddr_u. | |
5267 | ||
72df25b2 PA |
5268 | 2015-03-07 Pedro Alves <palves@redhat.com> |
5269 | ||
5270 | * common/common-exceptions.c [!__cplusplus] (enum catcher_state) | |
5271 | (exceptions_state_mc_action_iter) | |
5272 | (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch): | |
5273 | Don't define. | |
5274 | [__cplusplus] (try_scope_depth): New global. | |
5275 | [__cplusplus] (exception_try_scope_entry) | |
5276 | (exception_try_scope_exit, gdb_exception_sliced_copy) | |
5277 | (exception_rethrow): New functions. | |
5278 | (throw_exception): In C++ mode, throw | |
5279 | gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and | |
5280 | gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR. | |
5281 | (throw_it): In C++ mode, use try_scope_depth. | |
5282 | * common/common-exceptions.h [!__cplusplus] | |
5283 | (exceptions_state_mc_action_iter) | |
5284 | (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch): | |
5285 | Don't declare. | |
5286 | [__cplusplus] (exception_try_scope_entry) | |
5287 | (exception_try_scope_exit, exception_rethrow): Declare. | |
5288 | [__cplusplus] (struct exception_try_scope): New struct. | |
5289 | [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real | |
5290 | C++ exceptions. | |
5291 | (struct gdb_exception_RETURN_MASK_ALL) | |
5292 | (struct gdb_exception_RETURN_MASK_ERROR) | |
5293 | (struct gdb_exception_RETURN_MASK_QUIT): New types. | |
5294 | ||
284e6217 PA |
5295 | 2015-03-07 Pedro Alves <palves@redhat.com> |
5296 | ||
5297 | * main.c (handle_command_errors): Remove volatile qualifier from | |
5298 | parameter. | |
5299 | ||
6c63c96a PA |
5300 | 2015-03-07 Pedro Alves <palves@redhat.com> |
5301 | ||
5302 | * breakpoint.c (save_breakpoints): Adjust to avoid code between | |
5303 | TRY and CATCH. | |
5304 | * gdbtypes.c (safe_parse_type): Remove empty line. | |
5305 | (types_deeply_equal): | |
5306 | * guile/scm-frame.c (gdbscm_frame_name): | |
5307 | * linux-thread-db.c (find_new_threads_once): | |
5308 | * python/py-breakpoint.c (bppy_get_commands): | |
5309 | * record-btrace.c (record_btrace_insert_breakpoint) | |
5310 | (record_btrace_remove_breakpoint, record_btrace_start_replaying) | |
5311 | (record_btrace_start_replaying): Adjust to avoid code between TRY | |
5312 | and CATCH. | |
5313 | ||
492d29ea PA |
5314 | 2015-03-07 Pedro Alves <palves@redhat.com> |
5315 | ||
5316 | * common/common-exceptions.c (struct catcher) <exception>: No | |
5317 | longer a pointer to volatile exception. Now an exception value. | |
5318 | <mask>: Delete field. | |
5319 | (exceptions_state_mc_init): Remove all parameters. Adjust. | |
5320 | (exceptions_state_mc): No longer pop the catcher here. | |
5321 | (exceptions_state_mc_catch): New function. | |
5322 | (throw_exception): Adjust. | |
5323 | * common/common-exceptions.h (exceptions_state_mc_init): Remove | |
5324 | all parameters. | |
5325 | (exceptions_state_mc_catch): Declare. | |
5326 | (TRY_CATCH): Rename to ... | |
5327 | (TRY): ... this. Remove EXCEPTION and MASK parameters. | |
5328 | (CATCH, END_CATCH): New. | |
5329 | All callers adjusted. | |
5330 | ||
ece957c8 TT |
5331 | 2015-03-07 Tom Tromey <tromey@redhat.com> |
5332 | ||
5333 | * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX. | |
5334 | ||
7556d4a4 PA |
5335 | 2015-03-07 Pedro Alves <palves@redhat.com> |
5336 | ||
5337 | * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache) | |
5338 | (amd64_epilogue_frame_cache): Normal exception handling code. | |
5339 | * break-catch-throw.c (check_status_exception_catchpoint) | |
5340 | (re_set_exception_catchpoint): Ditto. | |
5341 | * cli/cli-interp.c (safe_execute_command): | |
5342 | * cli/cli-script.c (script_from_file): Ditto. | |
5343 | * compile/compile-c-symbols.c (generate_c_for_for_one_variable): | |
5344 | Ditto. | |
5345 | * compile/compile-object-run.c (compile_object_run): Ditto. | |
5346 | * cp-abi.c (baseclass_offset): Ditto. | |
5347 | * cp-valprint.c (cp_print_value): Ditto. | |
5348 | * exceptions.c (catch_exceptions_with_msg): | |
5349 | * frame-unwind.c (frame_unwind_try_unwinder): Ditto. | |
5350 | * frame.c (get_frame_address_in_block_if_available): Ditto. | |
5351 | * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache) | |
5352 | (i386_sigtramp_frame_cache): Ditto. | |
5353 | * infcmd.c (post_create_inferior): Ditto. | |
5354 | * linespec.c (parse_linespec, find_linespec_symbols): | |
5355 | * p-valprint.c (pascal_object_print_value): Ditto. | |
5356 | * parse.c (parse_expression_for_completion): Ditto. | |
5357 | * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto. | |
5358 | * remote.c (remote_get_noisy_reply): Ditto. | |
5359 | * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto. | |
5360 | * solib-svr4.c (solib_svr4_r_map): Ditto. | |
5361 | ||
f873665f | 5362 | 2015-03-06 Gary Benson <gbenson@redhat.com> |
61012eef GB |
5363 | |
5364 | * common/common-utils.h (startswith): New inline function. | |
5365 | All places where this logic was used updated to use the above. | |
5366 | ||
68901c4d PA |
5367 | 2015-03-05 Pedro Alves <palves@redhat.com> |
5368 | ||
5369 | PR gdb/18002 | |
5370 | * mem-break.c (default_memory_insert_breakpoint): Set shadow_len | |
5371 | after reading the breakpoint's shadow memory. | |
5372 | ||
2dcb2b1a MK |
5373 | 2015-03-05 Mark Kettenis <kettenis@gnu.org> |
5374 | ||
5375 | * hppabsd-nat.c: Remove file. | |
5376 | * hppaobsd-nat.c: New file. | |
5377 | * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add | |
5378 | hppaobsd-nat.c. | |
5379 | * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with | |
5380 | hppaobsd-nat.o. | |
5381 | ||
527a273a PA |
5382 | 2015-03-04 Pedro Alves <palves@redhat.com> |
5383 | ||
5384 | * target.h (struct target_ops) <to_decr_pc_after_break>: Delete. | |
5385 | (target_decr_pc_after_break): Delete declaration. | |
5386 | * target.c (default_target_decr_pc_after_break) | |
5387 | (target_decr_pc_after_break): Delete. | |
5388 | * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use | |
5389 | gdbarch_decr_pc_after_break instead of target_decr_pc_after_break. | |
5390 | * linux-thread-db.c (check_event): Likewise. | |
5391 | * infrun.c (adjust_pc_after_break): Likewise. | |
5392 | * darwin-nat.c (cancel_breakpoint): Likewise. | |
5393 | * aix-thread.c (aix_thread_wait): Likewise. | |
5394 | * target-delegates.c: Regenerate. | |
5395 | ||
faf09f01 PA |
5396 | 2015-03-04 Pedro Alves <palves@redhat.com> |
5397 | ||
5398 | * linux-nat.c (save_sigtrap): Check for breakpoints before | |
5399 | checking watchpoints. | |
5400 | (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a | |
5401 | breakpoint is inserted if relying on SIGTRAP's siginfo.si_code. | |
5402 | (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether | |
5403 | a breakpoint triggered based on the SIGTRAP's siginfo.si_code. | |
5404 | (linux_nat_stopped_by_sw_breakpoint) | |
5405 | (linux_nat_supports_stopped_by_sw_breakpoint) | |
5406 | (linux_nat_stopped_by_hw_breakpoint) | |
5407 | (linux_nat_supports_stopped_by_hw_breakpoint): New functions. | |
5408 | (linux_nat_wait_1): Don't re-increment the PC if relying on | |
5409 | SIGTRAP's siginfo->si_code. | |
5410 | (linux_nat_add_target): Install new target methods. | |
5411 | * linux-thread-db.c (check_event): Don't account for breakpoint PC | |
5412 | offset if the target already adjusted the PC. | |
5413 | * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New. | |
5414 | (GDB_ARCH_TRAP_BRKPT): New. | |
5415 | (TRAP_HWBKPT): Define if not already defined. | |
5416 | ||
f7e6eed5 PA |
5417 | 2015-03-04 Pedro Alves <palves@redhat.com> |
5418 | ||
5419 | * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons. | |
5420 | * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>: | |
5421 | Delete field. | |
5422 | <stop_reason>: New field. | |
5423 | (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values. | |
5424 | (packet_set_cmd_state): New function. | |
5425 | (remote_protocol_features): Register the "swbreak" and "hwbreak" | |
5426 | features. | |
5427 | (remote_query_supported): If not disabled with the corresponding | |
5428 | "set remote foo-packet" command, report support for the swbreak | |
5429 | and hwbreak features. | |
5430 | (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete | |
5431 | field. | |
5432 | <stop_reason>: New field. | |
5433 | (remote_parse_stop_reply): Handle "swbreak" and "hwbreak". | |
5434 | (remote_wait_as): Adjust. | |
5435 | (remote_stopped_by_sw_breakpoint) | |
5436 | (remote_supports_stopped_by_sw_breakpoint) | |
5437 | (remote_stopped_by_hw_breakpoint) | |
5438 | (remote_supports_stopped_by_hw_breakpoint): New functions. | |
5439 | (remote_stopped_by_watchpoint): New function. | |
5440 | (init_remote_ops): Install them. | |
5441 | (_initialize_remote): Register new "set/show remote | |
5442 | swbreak-feature-packet" and "set/show remote | |
5443 | swbreak-feature-packet" commands. | |
5444 | ||
9e8915c6 PA |
5445 | 2015-03-04 Pedro Alves <palves@redhat.com> |
5446 | ||
5447 | * btrace.h: Include target/waitstatus.h. | |
5448 | (struct btrace_thread_info) <stop_reason>: New field. | |
5449 | * record-btrace.c (record_btrace_step_thread): Use | |
5450 | record_check_stopped_by_breakpoint instead of breakpoint_here_p. | |
5451 | (record_btrace_decr_pc_after_break): Delete. | |
5452 | (record_btrace_stopped_by_sw_breakpoint) | |
5453 | (record_btrace_supports_stopped_by_sw_breakpoint) | |
5454 | (record_btrace_stopped_by_hw_breakpoint) | |
5455 | (record_btrace_supports_stopped_by_hw_breakpoint): New functions. | |
5456 | (init_record_btrace_ops): Install them. | |
5457 | * record-full.c (record_full_hw_watchpoint): Delete and replace | |
5458 | with ... | |
5459 | (record_full_stop_reason): ... this throughout. | |
5460 | (record_full_exec_insn): Adjust. | |
5461 | (record_full_wait_1): Adjust. No longer re-increment the PC. | |
5462 | (record_full_wait_1): Adjust. Use | |
5463 | record_check_stopped_by_breakpoint instead of breakpoint_here_p. | |
5464 | (record_full_stopped_by_watchpoint): Adjust. | |
5465 | (record_full_stopped_by_sw_breakpoint) | |
5466 | (record_full_supports_stopped_by_sw_breakpoint) | |
5467 | (record_full_supports_stopped_by_sw_breakpoint) | |
5468 | (record_full_stopped_by_hw_breakpoint) | |
5469 | (record_full_supports_stopped_by_hw_breakpoint): New functions. | |
5470 | (init_record_full_ops, init_record_full_core_ops): Install them. | |
5471 | * record.c (record_check_stopped_by_breakpoint): New function. | |
5472 | * record.h: Include target/waitstatus.h. | |
5473 | (record_check_stopped_by_breakpoint): New declaration. | |
5474 | ||
15c66dd6 PA |
5475 | 2015-03-04 Pedro Alves <palves@redhat.com> |
5476 | ||
5477 | enum lwp_stop_reason -> enum target_stop_reason | |
5478 | * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint) | |
5479 | (linux_nat_stopped_by_watchpoint, status_callback) | |
5480 | (linux_nat_wait_1): Adjust. | |
5481 | * linux-nat.h (enum lwp_stop_reason): Delete. | |
5482 | (struct lwp_info) <stop_reason>: Now an enum target_stop_reason. | |
5483 | * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust. | |
5484 | * target/waitstatus.h (enum target_stop_reason): New. | |
5485 | ||
1cf4d951 PA |
5486 | 2015-03-04 Pedro Alves <palves@redhat.com> |
5487 | ||
5488 | * breakpoint.c (need_moribund_for_location_type): New function. | |
5489 | (bpstat_stop_status): Don't skipping checking moribund locations | |
5490 | of breakpoint types which the target tell caused a stop. | |
5491 | (program_breakpoint_here_p): New function, factored out from ... | |
5492 | (bp_loc_is_permanent): ... this. | |
5493 | (update_global_location_list): Don't create a moribund location if | |
5494 | the target supports reporting stops of the type of the removed | |
5495 | breakpoint. | |
5496 | * breakpoint.h (program_breakpoint_here_p): New declaration. | |
5497 | * infrun.c (adjust_pc_after_break): Return early if the target has | |
5498 | already adjusted the PC. Add comments. | |
5499 | (handle_signal_stop): If nothing explains a signal, and the target | |
5500 | tells us the stop was caused by a software breakpoint, check if | |
5501 | there's a breakpoint instruction in the memory. If so, adjust the | |
5502 | PC before presenting the stop to the user. Otherwise, ignore the | |
5503 | trap. If nothing explains a signal, and the target tells us the | |
5504 | stop was caused by a hardware breakpoint, ignore the trap. | |
5505 | * target.h (struct target_ops) <to_stopped_by_sw_breakpoint, | |
5506 | to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint, | |
5507 | to_supports_stopped_by_hw_breakpoint>: New fields. | |
5508 | (target_stopped_by_sw_breakpoint) | |
5509 | (target_supports_stopped_by_sw_breakpoint) | |
5510 | (target_stopped_by_hw_breakpoint) | |
5511 | (target_supports_stopped_by_hw_breakpoint): Define. | |
5512 | * target-delegates.c: Regenerate. | |
5513 | ||
79639e11 PA |
5514 | 2015-03-04 Pedro Alves <palves@redhat.com> |
5515 | ||
5516 | * infrun.c (follow_fork_inferior): Use the whole of the | |
5517 | inferior_ptid and pending_follow.related_pid ptids instead of | |
5518 | building ptids from the process components. Adjust verbose output | |
5519 | to use target_pid_to_str. | |
5520 | * linux-nat.c (linux_child_follow_fork): Use the whole of the | |
5521 | inferior_ptid and pending_follow.related_pid ptids instead of | |
5522 | building ptids from the process components. | |
5523 | ||
e85e8e5e MK |
5524 | 2015-03-04 Mark Kettenis <kettenis@gnu.org> |
5525 | ||
5526 | * inf-ptrace.c [PT_GET_PROCESS_STATE] | |
5527 | (inf_ptrace_insert_fork_catchpoint): New function. | |
5528 | (inf_ptrace_remove_fork_catchpoint): New function. | |
5529 | (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them. | |
5530 | ||
87de11c0 AA |
5531 | 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5532 | ||
5533 | * s390-linux-tdep.c (s390_register_name): Return empty string | |
5534 | instead of NULL for registers that shouldn't be visible. | |
5535 | ||
d851a69a AA |
5536 | 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5537 | ||
5538 | * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall | |
5539 | XML file for 64-bit targets. | |
5540 | ||
b072f6c1 SM |
5541 | 2015-03-03 Simon Marchi <simon.marchi@ericsson.com> |
5542 | ||
5543 | * target.h (find_default_create_inferior): Remove declaration. | |
5544 | (find_default_attach): Likewise. | |
5545 | ||
c1593e4f PA |
5546 | 2015-03-03 Pedro Alves <palves@redhat.com> |
5547 | ||
5548 | * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace. | |
5549 | Use ptid_get_pid to get the overall process id when resuming all | |
5550 | threads. | |
5551 | ||
90ad5e1d PA |
5552 | 2015-03-03 Pedro Alves <palves@redhat.com> |
5553 | ||
5554 | * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of | |
5555 | the lwp field of ptid. Pass the full ptid to get_thread_regcache. | |
5556 | * inf-ptrace.c (get_ptrace_pid): New function. | |
5557 | (inf_ptrace_resume): Use it. | |
5558 | * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified | |
5559 | to the lower layer. | |
5560 | ||
d68e53f4 MM |
5561 | 2015-03-03 Markus Metzger <markus.t.metzger@intel.com> |
5562 | ||
5563 | * nat/linux-btrace.c: Include sys/utsname.h. | |
5564 | (linux_determine_kernel_ptr_bits): New. | |
5565 | (linux_enable_bts): Call linux_determine_kernel_ptr_bits. | |
5566 | * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero | |
5567 | ptr_bits. | |
5568 | ||
986b6601 MM |
5569 | 2015-03-03 Markus Metzger <markus.t.metzger@intel.com> |
5570 | ||
5571 | * btrace.c (ftrace_update_function): Treat return as tailcall for | |
5572 | "_dl_runtime_resolve". | |
5573 | ||
ce0dfbea MM |
5574 | 2015-03-03 Markus Metzger <markus.t.metzger@intel.com> |
5575 | ||
5576 | * btrace.h (btrace_function) <lbegin, lend>: Remove. | |
5577 | * btrace.c (ftrace_debug): Do not print the line range. | |
5578 | (ftrace_skip_file, ftrace_update_lines): Remove. | |
5579 | (ftrace_new_function): Remove lbegin and lend initialization. | |
5580 | (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines. | |
5581 | * record-btrace.c (btrace_compute_src_line_range): New. | |
5582 | (btrace_call_history_src_line): Call btrace_compute_src_line_range. | |
5583 | ||
95e50b27 PA |
5584 | 2015-03-02 Pedro Alves <palves@redhat.com> |
5585 | ||
5586 | * infrun.c (follow_exec): Delete all threads of the process except | |
5587 | the event thread. Extended comments. | |
5588 | ||
00e474c2 JB |
5589 | 2015-03-02 Joel Brobecker <brobecker@adacore.com> |
5590 | ||
5591 | * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false". | |
5592 | ||
cc7039d3 JB |
5593 | 2015-03-02 Joel Brobecker <brobecker@adacore.com> |
5594 | ||
5595 | * utils.h: Remove <stdbool.h> #include. | |
5596 | (producer_is_gcc): Change return type to "int". | |
5597 | * utils.c (producer_is_gcc): Change return type to int. | |
5598 | Return 1 instead of true, and 0 instead of false. | |
5599 | Adjust function documentation accordingly. | |
5600 | ||
550bdf96 AA |
5601 | 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5602 | ||
5603 | * s390-linux-nat.c (have_regset_vxrs): New static variable. | |
5604 | (s390_linux_fetch_inferior_registers): Handle vector registers, if | |
5605 | present. | |
5606 | (s390_linux_store_inferior_registers): Likewise. | |
5607 | (s390_get_hwcap): Remove function. Embed its logic... | |
5608 | (s390_read_description): ...here. Yield a target description with | |
5609 | vector registers if applicable. | |
5610 | * s390-linux-tdep.c: Include "features/s390-vx-linux64.c", | |
5611 | "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and | |
5612 | "features/s390x-tevx-linux64.c". | |
5613 | (struct gdbarch_tdep) <v0_full_regnum>: New field. | |
5614 | (s390_dwarf_regmap): Add vector registers. Remove bogus entries | |
5615 | for "GNU/Linux-specific registers". | |
5616 | (s390_dwarf_reg_r0l): New enum value. | |
5617 | (s390_dwarf_reg_to_regnum): Support vector registers. | |
5618 | (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers | |
5619 | of GPR lower halves. | |
5620 | (regnum_is_vxr_full): New function. | |
5621 | (s390_register_name): New function. | |
5622 | (s390_pseudo_register_name): Handle v0-v15, which are composed of | |
5623 | f0-f15 and v0l-v15l. | |
5624 | (s390_pseudo_register_type): Likewise. | |
5625 | (s390_pseudo_register_read): Likewise. | |
5626 | (s390_pseudo_register_write): Likewise. | |
5627 | (s390_value_from_register): Account for the fact that values are | |
5628 | placed left-justified in vector registers. | |
5629 | (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to | |
5630 | the vector reggroup and omit them from the general reggroup. | |
5631 | (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps. | |
5632 | (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets. | |
5633 | (s390_iterate_over_regset_sections): Add iterations for the two | |
5634 | new vector regsets. | |
5635 | (s390_core_read_description): Yield a target description with | |
5636 | vector registers if applicable. | |
5637 | (s390_gdbarch_init): Handle target descriptions with vector | |
5638 | registers. Add "register_name" gdbarch method. | |
5639 | (_initialize_s390_tdep): Call new tdesc initialization functions. | |
5640 | * s390-linux-tdep.h (HWCAP_S390_VX): New macro. | |
5641 | (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM) | |
5642 | (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM) | |
5643 | (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM) | |
5644 | (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM) | |
5645 | (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM) | |
5646 | (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM) | |
5647 | (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM) | |
5648 | (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM) | |
5649 | (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM) | |
5650 | (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM) | |
5651 | (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM) | |
5652 | (S390_V30_REGNUM, S390_V31_REGNUM): New macros. | |
5653 | (S390_NUM_REGS): Adjust value. | |
5654 | (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare. | |
5655 | (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64) | |
5656 | (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise. | |
5657 | * NEWS: Announce S/390 vector register support. | |
5658 | ||
446899e4 AA |
5659 | 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5660 | ||
5661 | * features/s390-tevx-linux64.xml: New file. | |
5662 | * features/s390-vx-linux64.xml: New file. | |
5663 | * features/s390-vx.xml: New file. | |
5664 | * features/s390x-tevx-linux64.xml: New file. | |
5665 | * features/s390x-vx-linux64.xml: New file. | |
5666 | * features/Makefile (WHICH): Add s390-vx-linux64, | |
5667 | s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64. | |
5668 | (s390-vx-linux64-expedite, s390-tevx-linux64-expedite) | |
5669 | (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New | |
5670 | macros. | |
5671 | * features/s390-tevx-linux64.c: New generated file. | |
5672 | * features/s390-vx-linux64.c: Likewise. | |
5673 | * features/s390x-tevx-linux64.c: Likewise. | |
5674 | * features/s390x-vx-linux64.c: Likewise. | |
5675 | * regformats/s390-tevx-linux64.dat: Likewise. | |
5676 | * regformats/s390-vx-linux64.dat: Likewise. | |
5677 | * regformats/s390x-tevx-linux64.dat: Likewise. | |
5678 | * regformats/s390x-vx-linux64.dat: Likewise. | |
5679 | ||
b7236fbe DE |
5680 | 2015-02-28 Doug Evans <xdje42@gmail.com> |
5681 | ||
5682 | * symtab.h (struct symtab) <next>: Fix comment. | |
5683 | ||
02e62830 SM |
5684 | 2015-02-27 Simon Marchi <simon.marchi@ericsson.com> |
5685 | ||
5686 | * python/python.c (python_GdbModuleDef): Rename GdbMethods to | |
5687 | python_GdbMethods. | |
5688 | ||
bf36a1e7 PA |
5689 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5690 | ||
5691 | * dtrace-probe.c (dtrace_probe_ops): Make extern. | |
5692 | ||
ad6aff7d PA |
5693 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5694 | ||
5695 | * common/common-exceptions.h (exception_none): Declare. | |
5696 | * common/common-exceptions.c (exception_none): Moved from | |
5697 | exceptions.c. | |
5698 | (exceptions_state_mc_init): Use exception_none. | |
5699 | * exceptions.c (exception_none): Move to | |
5700 | common/common-exceptions.c. | |
5701 | * exceptions.h (exception_none): Move to | |
5702 | common/common-exceptions.h. | |
5703 | ||
97c18565 PA |
5704 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5705 | ||
5706 | * main.c (catch_command_errors, catch_command_errors_const): | |
5707 | Remove 'mask' argument. Adjust. | |
5708 | (captured_main): Adjust callers. | |
5709 | ||
e992c591 PA |
5710 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5711 | ||
5712 | * python/python-internal.h: Include "extension-priv.h". | |
5713 | ||
64166036 PA |
5714 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5715 | ||
5716 | * breakpoint.h (enum print_stop_action): Move further up in the | |
5717 | file. | |
5718 | ||
8a526fa6 PA |
5719 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5720 | ||
5721 | * gdbarch.sh: Include regcache.h. | |
5722 | * gdbarch.h: Regenerate. | |
5723 | ||
0fa9c223 PA |
5724 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5725 | ||
5726 | * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>: | |
5727 | Remove duplicate const. | |
5728 | * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove | |
5729 | duplicate const. | |
5730 | ||
7cf99fb1 PA |
5731 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5732 | ||
5733 | * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST. | |
5734 | * guile/guile.c (extension_language_guile): Use EXPORTED_CONST. | |
5735 | * features/feature_to_c.sh: Tag the generated xml_builtin array | |
5736 | with extern const in C++ mode. | |
5737 | ||
1424c16e TT |
5738 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
5739 | ||
5740 | * minidebug.c (struct lzma_stream): Rename to ... | |
5741 | (struct gdb_lzma_stream): ... this. | |
5742 | (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust. | |
5743 | ||
10367c7c PA |
5744 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5745 | ||
5746 | * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New | |
5747 | function. | |
5748 | (mi_cmd_stack_list_locals, mi_cmd_stack_list_args) | |
5749 | (mi_cmd_stack_list_variables): Use it. | |
5750 | ||
4180215b PA |
5751 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5752 | ||
5753 | * x86-linux-nat.c (u_debugreg_offset): New function. | |
5754 | (x86_linux_dr_get, x86_linux_dr_set): Use it. | |
5755 | ||
2f56f7c3 PA |
5756 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5757 | ||
5758 | * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward | |
5759 | declaration. | |
5760 | Include break-common.h. | |
5761 | ||
570dc176 TT |
5762 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
5763 | Pedro Alves <palves@redhat.com> | |
5764 | ||
5765 | * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for | |
5766 | local used to iterate over enums. | |
5767 | * completer.c (signal_completer): Likewise. | |
5768 | * i386-tdep.c (i386_stap_parse_special_token): Likewise. | |
5769 | * rs6000-tdep.c (powerpc_set_vector_abi): Likewise. | |
5770 | * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise. | |
5771 | * tui/tui-layout.c (next_layout, prev_layout): Likewise. | |
5772 | * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all) | |
5773 | (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise. | |
5774 | * tui-wingeneral.c (tui_refresh_all): Likewise. | |
5775 | ||
68c14faa PA |
5776 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5777 | ||
5778 | * target.h: Include "infrun.h". | |
5779 | ||
749bab01 PA |
5780 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5781 | ||
5782 | * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP. | |
5783 | ||
3c14e5a3 PA |
5784 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5785 | ||
5786 | * common/agent.h (IPA_SYM_EXPORTED_NAME): New. | |
5787 | (IPA_SYM): Use it. | |
5788 | * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros. | |
5789 | ||
56000a98 PA |
5790 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5791 | ||
5792 | * cli-out.c (_rl_erase_entire_line): Move declaration out of | |
5793 | cli_mld_erase_entire_line, and make it extern "C". | |
5794 | * common/common-defs.h (EXTERN_C): New. | |
5795 | * completer.c (_rl_completion_prefix_display_length) | |
5796 | (_rl_print_completions_horizontally, QSFUNC): Move declarations | |
5797 | out of gdb_display_match_list_1. | |
5798 | (_rl_qsort_string_compare): Move declaration out of | |
5799 | gdb_display_match_list_1, and make it extern "C". | |
5800 | * defs.h (re_comp): Use EXTERN_C. | |
5801 | * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper, | |
5802 | and make it extern "C". | |
5803 | (monstartup): Move declaration out of maintenance_set_profile_cmd, | |
5804 | and make it extern "C". | |
5805 | (main): Move declaration out of maintenance_set_profile_cmd. | |
5806 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use | |
5807 | EXTERN_C. | |
5808 | ||
bcabf420 PA |
5809 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5810 | ||
5811 | * python/python.c (GdbMethods): Rename to ... | |
5812 | (python_GdbMethods): ... this and make extern. | |
5813 | (GdbModuleDef): Rename to ... | |
5814 | (python_GdbModuleDef): ... this and make extern. | |
5815 | ||
928dbe07 PA |
5816 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5817 | ||
5818 | * record-btrace.c (set_record_btrace_cmdlist) | |
5819 | (show_record_btrace_cmdlist): Remove redefinitions. | |
5820 | ||
52059ffd TT |
5821 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
5822 | Pedro Alves <palves@redhat.com> | |
5823 | ||
5824 | * dwarf2-frame.c (enum cfa_how_kind, struct | |
5825 | dwarf2_frame_state_reg_info): Move out of struct | |
5826 | dwarf2_frame_state. | |
5827 | * dwarf2read.c (struct tu_stats): Move out of struct | |
5828 | dwarf2_per_objfile. | |
5829 | (struct file_entry): Move out of struct line_header. | |
5830 | (struct nextfield, struct nextfnfield, struct fnfieldlist, struct | |
5831 | typedef_field_list): Move out of struct field_info. | |
5832 | * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data): | |
5833 | Move out of struct dynamic_prop. | |
5834 | (union type_owner, union field_location, struct field, struct | |
5835 | range_bounds, union type_specific): Move out of struct main_type. | |
5836 | (struct fn_fieldlist, struct fn_field, struct typedef_field) | |
5837 | (VOFFSET_STATIC): Move out of struct cplus_struct_type. | |
5838 | (struct call_site_target, union call_site_parameter_u, struct | |
5839 | call_site_parameter): Move out of struct call_site. | |
5840 | * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct | |
5841 | m32c_prologue. | |
5842 | (enum srcdest_kind): Move out of struct srcdest. | |
5843 | * main.c (enum cmdarg_kind): Move out of struct cmdarg. | |
5844 | * prologue-value.h (enum prologue_value_kind): Move out of struct | |
5845 | prologue_value. | |
5846 | * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct | |
5847 | gdbarch_tdep. | |
5848 | * stabsread.c (struct nextfield, struct next_fnfieldlist): Move | |
5849 | out of struct field_info. | |
5850 | * symfile.h (struct other_sections): Move out of struct | |
5851 | section_addr_info. | |
5852 | * symtab.c (struct symbol_cache_slot): Move out struct | |
5853 | block_symbol_cache. | |
5854 | * target-descriptions.c (enum tdesc_type_kind): Move out of | |
5855 | typedef struct tdesc_type. | |
5856 | * tui/tui-data.h (enum tui_line_or_address_kind): Move out of | |
5857 | struct tui_line_or_address. | |
5858 | * value.c (enum internalvar_kind, union internalvar_data): Move | |
5859 | out of struct internalvar. | |
5860 | * xtensa-tdep.h (struct ctype_cache): Move out of struct | |
5861 | gdbarch_tdep. | |
5862 | ||
fe978cb0 PA |
5863 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
5864 | Pedro Alves <palves@redhat.com> | |
5865 | ||
5866 | Rename symbols whose names are reserved C++ keywords throughout. | |
5867 | ||
3bc3d82a PA |
5868 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5869 | ||
5870 | * Makefile.in (COMPILER): New, get it from autoconf. | |
5871 | (COMPILE.pre, CC_LD): Use COMPILER. | |
5872 | (CXX): Get from autoconf instead. | |
5873 | (CXX_FOR_TARGET): Default to g++ instead of gcc. | |
5874 | * acinclude.m4: Include build-with-cxx.m4. | |
5875 | * build-with-cxx.m4: New file. | |
5876 | * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX. | |
5877 | Disable -Werror by default if building in C++ mode. | |
5878 | (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and | |
5879 | -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode. | |
5880 | Run supported-warning-flags tests with the C++ compiler. | |
5881 | Save/restore CXXFLAGS too. | |
5882 | * configure: Regenerate. | |
5883 | ||
07697489 PA |
5884 | 2015-02-27 Pedro Alves <palves@redhat.com> |
5885 | ||
5886 | * libiberty.m4: New file. | |
5887 | * acinclude.m4: Include libiberty.m4. | |
5888 | * configure.ac: Call libiberty_INIT. | |
5889 | * config.in, configure: Regenerate. | |
5890 | ||
60abeae4 AA |
5891 | 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5892 | ||
5893 | * s390-linux-tdep.c (s390_gcc_target_options): Not just handle | |
5894 | 31-bit targets, but 64-bit targets as well. | |
5895 | (s390_gnu_triplet_regexp): New function. | |
5896 | (s390_gdbarch_init): Set the gcc_target_options gdbarch method for | |
5897 | 64-bit targets as well. Set the gnu_triplet_regexp gdbarch | |
5898 | method. | |
5899 | ||
f44466fb | 5900 | 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch) |
f0666312 JT |
5901 | |
5902 | * windows-nat.c (CONTEXT_DEBUGGER): Remove. | |
5903 | (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags | |
5904 | from CONTEXT_DEBUGGER. | |
5905 | ||
0def5aaa DE |
5906 | 2015-02-26 Doug Evans <dje@google.com> |
5907 | ||
5908 | * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to | |
5909 | CHECK_TYPEDEF. | |
5910 | (set_type_vptr_fieldno): Ditto. | |
5911 | (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto. | |
5912 | * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto. | |
5913 | ||
77b64a49 PA |
5914 | 2015-02-26 Pedro Alves <palves@redhat.com> |
5915 | ||
5916 | * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF. | |
5917 | * complaints.c (vcomplaint): Pass argument FMT directly to | |
5918 | printf-like functions instead of complaint->fmt. | |
5919 | * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF. | |
5920 | * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF. | |
5921 | * compile/compile-loc2c.c (pushf, unary, binary): Add | |
5922 | ATTRIBUTE_PRINTF. | |
5923 | (do_compile_dwarf_expr_to_c): Pass string literal as format string | |
5924 | to pushf. | |
5925 | (BINARY): Pass string literal as format string to 'binary'. | |
5926 | * compile/compile-object-load.c (link_callbacks_einfo): Add | |
5927 | ATTRIBUTE_PRINTF. | |
5928 | * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF. | |
5929 | ||
532f44ed PA |
5930 | 2015-02-26 Pedro Alves <palves@redhat.com> |
5931 | ||
5932 | * windows-termcap.c: Rename to ... | |
5933 | * stub-termcap.c: ... this. Adjust header line. | |
5934 | * Makefile.in (SFILES): Refer to stub-termcap.c instead of | |
5935 | windows-termcap.c. | |
5936 | * configure: Regenerate. | |
5937 | * configure.ac: Refer to stub-termcap.o instead of | |
5938 | windows-termcap.o. | |
5939 | * gdb_curses.h: Mention stub-termcap.c instead of | |
5940 | windows-termcap.c. | |
5941 | ||
081a1c2c JK |
5942 | 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
5943 | ||
5944 | * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym) | |
5945 | (gcc_symbol_address): Call gnu_ifunc_resolve_addr. | |
5946 | ||
2f41223f AT |
5947 | 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
5948 | ||
5949 | * gdb/infcmd.c (print_return_value): use type_to_string to print type. | |
5950 | ||
80c57053 JK |
5951 | 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
5952 | ||
5953 | * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for | |
5954 | bfd_canonicalize_symtab. | |
5955 | ||
cf424aef JB |
5956 | 2015-02-25 John Baldwin <jhb@FreeBSD.org> |
5957 | ||
5958 | * amd64fbsd-nat.c: Include sys/user.h. | |
5959 | (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl | |
5960 | instead of KERN_PS_STRINGS to locate the signal trampoline. | |
5961 | * i386fbsd-nat.c: Include sys/user.h. | |
5962 | (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl | |
5963 | instead of KERN_PS_STRINGS to locate the signal trampoline. | |
5964 | * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New. | |
5965 | (amd64fbsd_sigtramp_p): New. | |
5966 | (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No | |
5967 | longer set default values. | |
5968 | (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p". | |
5969 | * i386fbsd-tdep.c (i386fbsd_sigtramp_start) | |
5970 | (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end) | |
5971 | (i386fbsd_freebsd4_sigtramp_start) | |
5972 | (i386fbsd_freebsd4_sigtramp_middle) | |
5973 | (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start) | |
5974 | (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New. | |
5975 | (i386fbsd_sigtramp_p): New. | |
5976 | (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No | |
5977 | longer set default values. | |
5978 | (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p". | |
5979 | ||
c5cb74ee JB |
5980 | 2015-02-25 John Baldwin <jhb@freebsd.org> |
5981 | ||
5982 | * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use | |
5983 | get_frame_register instead of frame_unwind_register_unsigned. | |
5984 | ||
17487d85 JK |
5985 | 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
5986 | ||
5987 | PR build/18033 | |
5988 | * compile/compile-c-support.c (c_compute_program): Change // comment. | |
5989 | * compile/compile-object-load.c (setup_sections): Change // comment. | |
5990 | ||
9357a9e6 JB |
5991 | 2015-02-26 Joel Brobecker <brobecker@adacore.com> |
5992 | ||
5993 | PR build/18033: | |
5994 | * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment. | |
5995 | ||
1f10ba14 PA |
5996 | 2015-02-23 Pedro Alves <palves@redhat.com> |
5997 | ||
5998 | * remote.c (skip_to_semicolon): New function. | |
5999 | (remote_parse_stop_reply) <T stop reply>: Use it. Don't | |
6000 | special case the stop reasons that look like hex numbers | |
6001 | upfront. Instead handle real register numbers after matching | |
6002 | all the known stop reasons. | |
6003 | ||
96553a0c DE |
6004 | 2015-02-21 Doug Evans <dje@google.com> |
6005 | ||
6006 | PR c++/17976, symtab/17821 | |
6007 | * cp-namespace.c (cp_search_static_and_baseclasses): New parameter | |
6008 | is_in_anonymous. All callers updated. | |
6009 | (find_symbol_in_baseclass): Ditto. | |
6010 | (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks | |
6011 | for symbols in an anonymous namespace. | |
6012 | * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch | |
6013 | DW_AT_name directly. | |
6014 | (dwarf2_name): Convert missing namespace name to | |
6015 | CP_ANONYMOUS_NAMESPACE_STR. | |
6016 | ||
2db9a427 PA |
6017 | 2015-02-20 Pedro Alves <palves@redhat.com> |
6018 | ||
6019 | * linux-nat.c (linux_handle_extended_wait): Call | |
6020 | thread_db_notice_clone whenever a new clone LWP is detected. | |
6021 | (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New | |
6022 | functions. | |
6023 | * linux-nat.h (thread_db_attach_lwp): Delete declaration. | |
6024 | (thread_db_notice_clone, linux_stop_and_wait_all_lwps) | |
6025 | (linux_unstop_all_lwps): Declare. | |
6026 | * linux-thread-db.c (struct thread_get_info_inout): Delete. | |
6027 | (thread_get_info_callback): Delete. | |
6028 | (thread_from_lwp): Use td_thr_get_info and record_thread. | |
6029 | (thread_db_attach_lwp): Delete. | |
6030 | (thread_db_notice_clone): New function. | |
6031 | (try_thread_db_load_1): If /proc is mounted and shows the | |
6032 | process'es task list, walk over all LWPs and call thread_from_lwp | |
6033 | instead of relying on td_ta_thr_iter. | |
6034 | (attach_thread): Don't call check_thread_signals here. Split the | |
6035 | tail part of the function (which adds the thread to the core GDB | |
6036 | thread list) to ... | |
6037 | (record_thread): ... this function. Call check_thread_signals | |
6038 | here. | |
6039 | (thread_db_wait): Don't call thread_db_find_new_threads_1. Always | |
6040 | call thread_from_lwp. | |
6041 | (thread_db_update_thread_list): Rename to ... | |
6042 | (thread_db_update_thread_list_org): ... this. | |
6043 | (thread_db_update_thread_list): New function. | |
6044 | (thread_db_find_thread_from_tid): Delete. | |
6045 | (thread_db_get_ada_task_ptid): Simplify. | |
6046 | * nat/linux-procfs.c: Include <sys/stat.h>. | |
6047 | (linux_proc_task_list_dir_exists): New function. | |
6048 | * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare. | |
6049 | ||
3b27ef47 PA |
6050 | 2015-02-20 Pedro Alves <palves@redhat.com> |
6051 | ||
6052 | * linux-nat.c (lin_lwp_attach_lwp): No longer special case the | |
6053 | main LWP. Handle the case of waitpid returning 0 if we're already | |
6054 | attached to the LWP. Don't set the LWP's last_resume_kind to | |
6055 | resume_stop if we already knew about the LWP. | |
6056 | (linux_nat_filter_event): Add debug logs. | |
6057 | ||
1cc28231 PA |
6058 | 2015-02-20 Pedro Alves <palves@redhat.com> |
6059 | ||
6060 | * target.h (forward_target_decr_pc_after_break): Delete | |
6061 | declaration. | |
6062 | ||
5c5019c2 PA |
6063 | 2015-02-20 Pedro Alves <palves@redhat.com> |
6064 | ||
6065 | PR threads/18006 | |
6066 | * linux-thread-db.c (thread_get_info_callback): Return early if | |
6067 | the thread's lwp id is -1. | |
6068 | ||
f3978e91 JB |
6069 | 2015-02-20 Joel Brobecker <brobecker@adacore.com> |
6070 | ||
6071 | GDB 7.9 released. | |
6072 | ||
ffdf88ec SE |
6073 | 2015-02-19 Steve Ellcey <sellcey@imgtec.com> |
6074 | ||
6075 | * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr. | |
6076 | (dtrace_get_probes) Change type of variable 'dof'. | |
6077 | ||
c9587f88 AT |
6078 | 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com> |
6079 | ||
6080 | PR breakpoints/16812 | |
6081 | * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV. | |
6082 | * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add. | |
6083 | * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint. | |
6084 | ||
53cf2ee0 DT |
6085 | 2015-02-19 David Taylor <dtaylor@emc.com> |
6086 | ||
6087 | * common/ax.def (setv): Fix consumed entry in setv DEFOP. | |
6088 | ||
acfe0940 PP |
6089 | 2015-02-18 Patrick Palka <patrick@parcs.ath.cx> |
6090 | ||
6091 | * tui/tui-io.c (tui_handle_resize_during_io): Remove this | |
6092 | function. | |
6093 | (tui_putc): Don't call tui_handle_resize_during_io. | |
6094 | (tui_getc): Likewise. | |
6095 | (tui_mld_getc): Likewise. | |
6096 | * tui/tui-win.c: Include event-loop.h and tui/tui-io.h. | |
6097 | (tui_sigwinch_token): New static variable. | |
6098 | (tui_initialize_win): Adjust documentation. Set | |
6099 | tui_sigwinch_token. | |
6100 | (tui_async_resize_screen): New asynchronous callback. | |
6101 | (tui_sigwinch_handler): Adjust documentation. Asynchronously | |
6102 | invoke tui_async_resize_screen. | |
6103 | ||
f6a88844 JM |
6104 | 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com> |
6105 | ||
6106 | * configure: Regenerated. | |
6107 | * configure.ac: Use GDB_AC_TRANSFORM. | |
6108 | * Makefile.in (aclocal_m4_deps): Added transform.m4. | |
6109 | * acinclude.m4: sinclude transform.m4. | |
6110 | * transform.m4: New file. | |
6111 | (GDB_AC_TRANSFORM): New macro. | |
6112 | ||
b05e3b0d JM |
6113 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
6114 | ||
6115 | * NEWS: Announce the support for DTrace SDT probes. | |
6116 | ||
c3e3045e JM |
6117 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
6118 | ||
6119 | * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h". | |
6120 | (amd64_dtrace_parse_probe_argument): New function. | |
6121 | (amd64_dtrace_probe_is_enabled): Likewise. | |
6122 | (amd64_dtrace_enable_probe): Likewise. | |
6123 | (amd64_dtrace_disable_probe): Likewise. | |
6124 | (amd64_linux_init_abi): Register the | |
6125 | `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe', | |
6126 | `gdbarch_dtrace_disable_probe' and | |
6127 | `gdbarch_dtrace_probe_is_enabled' hooks. | |
6128 | (amd64_dtrace_disabled_probe_sequence_1): New constant. | |
6129 | (amd64_dtrace_disabled_probe_sequence_2): Likewise. | |
6130 | (amd64_dtrace_enable_probe_sequence): Likewise. | |
6131 | (amd64_dtrace_disable_probe_sequence): Likewise. | |
6132 | ||
d4777acb JM |
6133 | 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
6134 | ||
6135 | * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention | |
6136 | the -probe-dtrace new vpossible value for PROBE_MODIFIER. | |
6137 | * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can | |
6138 | handle ELF files. | |
6139 | * Makefile.in (SFILES): dtrace-probe.c added. | |
6140 | * configure: Regenerate. | |
6141 | * dtrace-probe.c: New file. | |
6142 | (SHT_SUNW_dof): New constant. | |
6143 | (dtrace_probe_type): New enum. | |
6144 | (dtrace_probe_arg): New struct. | |
6145 | (dtrace_probe_arg_s): New typedef. | |
6146 | (struct dtrace_probe_enabler): New struct. | |
6147 | (dtrace_probe_enabler_s): New typedef. | |
6148 | (dtrace_probe): New struct. | |
6149 | (dtrace_probe_is_linespec): New function. | |
6150 | (dtrace_dof_sect_type): New enum. | |
6151 | (dtrace_dof_dofh_ident): Likewise. | |
6152 | (dtrace_dof_encoding): Likewise. | |
6153 | (DTRACE_DOF_ENCODE_LSB): Likewise. | |
6154 | (DTRACE_DOF_ENCODE_MSB): Likewise. | |
6155 | (dtrace_dof_hdr): New struct. | |
6156 | (dtrace_dof_sect): Likewise. | |
6157 | (dtrace_dof_provider): Likewise. | |
6158 | (dtrace_dof_probe): Likewise. | |
6159 | (DOF_UINT): New macro. | |
6160 | (DTRACE_DOF_PTR): Likewise. | |
6161 | (DTRACE_DOF_SECT): Likewise. | |
6162 | (dtrace_process_dof_probe): New function. | |
6163 | (dtrace_process_dof): Likewise. | |
6164 | (dtrace_build_arg_exprs): Likewise. | |
6165 | (dtrace_get_arg): Likewise. | |
6166 | (dtrace_get_probes): Likewise. | |
6167 | (dtrace_get_probe_argument_count): Likewise. | |
6168 | (dtrace_can_evaluate_probe_arguments): Likewise. | |
6169 | (dtrace_evaluate_probe_argument): Likewise. | |
6170 | (dtrace_compile_to_ax): Likewise. | |
6171 | (dtrace_probe_destroy): Likewise. | |
6172 | (dtrace_gen_info_probes_table_header): Likewise. | |
6173 | (dtrace_gen_info_probes_table_values): Likewise. | |
6174 | (dtrace_probe_is_enabled): Likewise. | |
6175 | (dtrace_probe_ops): New variable. | |
6176 | (info_probes_dtrace_command): New function. | |
6177 | (_initialize_dtrace_probe): Likewise. | |
6178 | (dtrace_type_name): Likewise. | |
6179 | ||
8b367e17 JM |
6180 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
6181 | ||
6182 | * gdbarch.sh (dtrace_parse_probe_argument): New. | |
6183 | (dtrace_probe_is_enabled): Likewise. | |
6184 | (dtrace_enable_probe): Likewise. | |
6185 | (dtrace_disable_probe): Likewise. | |
6186 | * gdbarch.c: Regenerate. | |
6187 | * gdbarch.h: Regenerate. | |
6188 | ||
9aca2ff8 JM |
6189 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
6190 | ||
6191 | * stap-probe.c (stap_probe_ops): Add NULLs in the static | |
6192 | stap_probe_ops for `enable_probe' and `disable_probe'. | |
6193 | * probe.c (enable_probes_command): New function. | |
6194 | (disable_probes_command): Likewise. | |
6195 | (_initialize_probe): Define the cli commands `enable probe' and | |
6196 | `disable probe'. | |
6197 | (parse_probe_linespec): New function. | |
6198 | (info_probes_for_ops): Use parse_probe_linespec. | |
6199 | * probe.h (probe_ops): New hooks `enable_probe' and | |
6200 | `disable_probe'. | |
6201 | ||
03e98035 JM |
6202 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
6203 | ||
6204 | * probe.c (compute_probe_arg): Moved from stap-probe.c | |
6205 | (compile_probe_arg): Likewise. | |
6206 | (probe_funcs): Likewise. | |
6207 | * stap-probe.c (compute_probe_arg): Moved to probe.c. | |
6208 | (compile_probe_arg): Likewise. | |
6209 | (probe_funcs): Likewise. | |
6210 | ||
6f9b8491 JM |
6211 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
6212 | ||
6213 | * probe.c (print_ui_out_not_applicables): New function. | |
6214 | (exists_probe_with_pops): Likewise. | |
6215 | (info_probes_for_ops): Do not include column headers for probe | |
6216 | types for which no probe has been actually found on any object. | |
6217 | Also invoke `print_ui_out_not_applicables' in order to match the | |
6218 | column rows with the header when probes of several types are | |
6219 | listed. | |
6220 | Print the "Type" column. | |
6221 | * probe.h (probe_ops): Added a new probe operation `type_name'. | |
6222 | * stap-probe.c (stap_probe_ops): Add `stap_type_name'. | |
6223 | (stap_type_name): New function. | |
6224 | ||
69efdff1 PP |
6225 | 2015-02-17 Patrick Palka <patrick@parcs.ath.cx> |
6226 | ||
6227 | * tui/tui-io.c (tui_getc): Don't call key_is_command_char. | |
6228 | (key_is_command_char): Delete. | |
6229 | ||
f8e5e23e PA |
6230 | 2015-02-17 Pedro Alves <palves@redhat.com> |
6231 | ||
6232 | * tui/tui.c (tui_enable): Resize windows before anything | |
6233 | might show a window. | |
6234 | ||
9f2e0721 MO |
6235 | 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com> |
6236 | ||
6237 | PR gdb/17984 | |
6238 | * aarch64-linux-nat.c: Don't include features/aarch64.c anymore. | |
6239 | (aarch64_linux_read_description): Remove initialize_tdesc_aarch64 | |
6240 | call. | |
6241 | * aarch64-tdep.h (tdesc_aarch64): Declare. | |
6242 | ||
171e6b1c MW |
6243 | 2015-02-12 Mark Wielaard <mjw@redhat.com> |
6244 | ||
6245 | * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false". | |
6246 | ||
d5ff0482 DE |
6247 | 2015-02-13 Doug Evans <dje@google.com> |
6248 | ||
6249 | * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter | |
6250 | anonymous_namespace to is_in_anonymous for consistency with the rest | |
6251 | of the file. | |
6252 | (cp_lookup_bare_symbol): Fix typo in comment. | |
6253 | (cp_search_static_and_baseclasses): Ditto. | |
6254 | (search_symbol_list): Use vertical space in comment better. | |
6255 | (reset_directive_searched): Ditto. Fix typo. | |
6256 | (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter. | |
6257 | ||
9f04ac5f YQ |
6258 | 2015-02-13 Yao Qi <yao.qi@arm.com> |
6259 | ||
6260 | * MAINTAINERS: Update my email address. | |
6261 | ||
013d0319 DE |
6262 | 2015-02-12 Doug Evans <dje@google.com> |
6263 | ||
b615dd20 | 6264 | * symtab.c (completion_list_add_name): Fix memory leak. |
013d0319 | 6265 | |
9a7e538e DE |
6266 | 2015-02-12 Doug Evans <dje@google.com> |
6267 | ||
6268 | * completer.c (complete_line): Remove incorrect comment. | |
6269 | ||
e1fcd575 JK |
6270 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
6271 | ||
6272 | * python/py-framefilter.c (py_print_single_arg, enumerate_locals) | |
6273 | (py_print_frame): Use RETURN_MASK_ERROR. | |
6274 | ||
b99bf4e3 JK |
6275 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
6276 | ||
6277 | * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in | |
6278 | function comment. Wrap all function that can throw in cleanups. | |
6279 | (gdbpy_apply_frame_filter): Wrap all function that can throw in | |
6280 | cleanups. | |
6281 | ||
800eb1ce JK |
6282 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
6283 | ||
6284 | * python/py-framefilter.c (py_print_frame): Substitute goto error. | |
6285 | Remove the error label. | |
6286 | ||
34019068 JK |
6287 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
6288 | ||
6289 | * python/py-framefilter.c (py_print_frame): Put conditional code paths | |
6290 | with goto first, indent the former else codepath left. Put variable | |
6291 | 'elided' to a new inner block. | |
6292 | ||
8d4a54e2 JK |
6293 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
6294 | ||
6295 | * python/py-framefilter.c (py_print_frame): Whitespacing fixes. | |
6296 | ||
18ad82c1 PA |
6297 | 2015-02-11 Pedro Alves <palves@redhat.com> |
6298 | ||
6299 | * xcoffread.c (within_function): Delete. | |
6300 | ||
e36122e9 TT |
6301 | 2015-02-11 Tom Tromey <tromey@redhat.com> |
6302 | Pedro Alves <palves@redhat.com> | |
6303 | ||
6304 | * breakpoint.c (base_breakpoint_ops): Delete. | |
6305 | * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern. | |
6306 | * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern. | |
6307 | * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern. | |
6308 | * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern. | |
6309 | * python/py-arch.c (arch_object_type): Make extern. | |
6310 | * python/py-block.c (block_syms_iterator_object_type): Make extern. | |
6311 | * python/py-bpevent.c (breakpoint_event_object_type): Make extern. | |
6312 | * python/py-cmd.c (cmdpy_object_type): Make extern. | |
6313 | * python/py-continueevent.c (continue_event_object_type) | |
6314 | * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual' | |
6315 | parameter. Update all callers. | |
6316 | * python/py-evtregistry.c (eventregistry_object_type): Make extern. | |
6317 | * python/py-exitedevent.c (exited_event_object_type): Make extern. | |
6318 | * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern. | |
6319 | * python/py-function.c (fnpy_object_type): Make extern. | |
6320 | * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern. | |
6321 | * python/py-infevents.c (call_pre_event_object_type) | |
6322 | (inferior_call_post_event_object_type). | |
6323 | (memory_changed_event_object_type): Make extern. | |
6324 | * python/py-infthread.c (thread_object_type): Make extern. | |
6325 | * python/py-lazy-string.c (lazy_string_object_type): Make extern. | |
6326 | * python/py-linetable.c (linetable_entry_object_type) | |
6327 | (linetable_object_type, ltpy_iterator_object_type): Make extern. | |
6328 | * python/py-newobjfileevent.c (new_objfile_event_object_type) | |
6329 | (clear_objfiles_event_object_type): Make extern. | |
6330 | * python/py-objfile.c (objfile_object_type): Make extern. | |
6331 | * python/py-param.c (parmpy_object_type): Make extern. | |
6332 | * python/py-progspace.c (pspace_object_type): Make extern. | |
6333 | * python/py-signalevent.c (signal_event_object_type): Make extern. | |
6334 | * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern. | |
6335 | * python/py-type.c (type_object_type, field_object_type) | |
6336 | (type_iterator_object_type): Make extern. | |
6337 | * python/python.c (python_extension_script_ops) | |
6338 | (python_extension_ops): Make extern. | |
6339 | * stap-probe.c (stap_probe_ops): Make extern. | |
6340 | ||
0703599a PA |
6341 | 2015-02-11 Pedro Alves <pedro@codesourcery.com> |
6342 | ||
6343 | * infrun.c (adjust_pc_after_break): Don't adjust the PC just | |
6344 | because the event thread is not the current thread. | |
6345 | ||
eaaf76ab DE |
6346 | 2015-02-11 Doug Evans <xdje42@gmail.com> |
6347 | ||
6348 | * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't | |
6349 | been initialized yet, return NULL. | |
6350 | ||
e7d52ed3 DE |
6351 | 2015-02-11 Doug Evans <dje@google.com> |
6352 | ||
6353 | * symfile.h (new_symfile_objfile): Delete. | |
6354 | * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile. | |
6355 | All callers updated. | |
6356 | ||
fc6b1256 PP |
6357 | 2015-02-11 Patrick Palka <patrick@parcs.ath.cx> |
6358 | ||
6359 | * tui/tui-io.c (tui_handle_resize_during_io): Call | |
6360 | tui_update_gdb_sizes() after resizing the screen. | |
6361 | * tui/tui.c (tui_enable): Resize the terminal before | |
6362 | calling tui_update_gdb_sizes(). | |
6363 | ||
d9080678 PP |
6364 | 2015-02-11 Patrick Palka <patrick@parcs.ath.cx> |
6365 | ||
6366 | * tui/tui-io.c (tui_getc): Move cursor to the end of the command | |
6367 | line before printing a newline. | |
6368 | ||
9f615e3a MW |
6369 | 2015-02-11 Mark Wielaard <mjw@redhat.com> |
6370 | ||
6371 | * utils.c (producer_is_gcc): Return true or false. | |
6372 | ||
d9080678 | 6373 | 2015-02-10 Mark Wielaard <mjw@redhat.com> |
b1ffba5a MW |
6374 | |
6375 | * utils.h (producer_is_gcc): Change return type to bool. Add major | |
6376 | argument. | |
6377 | * utils.c (producer_is_gcc): Likewise. | |
6378 | (producer_is_gcc_ge_4): Adjust producer_is_gcc call. | |
6379 | * dwarf2read.c (check_producer): Likewise. | |
6380 | ||
b052c4fb PA |
6381 | 2015-02-10 Pedro Alves <palves@redhat.com> |
6382 | ||
6383 | * infrun.c (displaced_step_fixup): Switch to the event thread | |
6384 | before calling gdbarch_displaced_step_fixup. | |
6385 | ||
3ac240d4 AT |
6386 | 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com> |
6387 | ||
6388 | * MAINTAINERS (Write After Approval): Add Antoine Tremblay. | |
6389 | ||
c1cc6152 SM |
6390 | 2015-02-10 Simon Marchi <simon.marchi@ericsson.com> |
6391 | ||
6392 | * ada-varobj.c (ada_name_of_child): Constify parent. | |
6393 | (ada_path_expr_of_child): Same. | |
6394 | (ada_value_of_child): Same. | |
6395 | (ada_type_of_child): Same. | |
6396 | * c-varobj.c (c_is_path_expr_parent): Same. | |
6397 | (c_describe_child): Same. | |
6398 | (c_name_of_child): Same. | |
6399 | (c_value_of_child): Same. | |
6400 | (c_type_of_child): Same. | |
6401 | (cplus_number_of_children): Same. | |
6402 | (cplus_describe_child): Constify var. | |
6403 | (cplus_name_of_child): Constify parent. | |
6404 | (cplus_value_of_child): Same. | |
6405 | (cplus_type_of_child): Same. | |
6406 | * jv-varobj.c (java_name_of_child): Same. | |
6407 | (java_value_of_child): Same. | |
6408 | (java_type_of_child): Same. | |
6409 | * varobj.c (value_of_child): Same. | |
6410 | (varobj_default_is_path_expr_parent): Constify var, parent and return | |
6411 | value. | |
6412 | (varobj_get_path_expr): Constify var, modify path_expr through | |
6413 | mutable_var. | |
6414 | (install_new_value): Constify parent. | |
6415 | (value_of_child): Constify parent. | |
6416 | * varobj.h (struct varobj): Constify parent. | |
6417 | (struct lang_varobj_ops): Constify name_of_child, value_of_child and | |
6418 | type_of_child. | |
6419 | (varobj_get_path_expr): Constify var. | |
6420 | (varobj_get_path_expr_parent): Constify var and return value. | |
6421 | ||
c1ee9414 LM |
6422 | 2015-02-10 Luis Machado <lgustavo@codesourcery.com> |
6423 | ||
6424 | * arm-tdep.c (arm_prologue_unwind_stop_reason): New function. | |
6425 | (arm_prologue_this_id): Move PC and SP limit checks to | |
6426 | arm_prologue_unwind_stop_reason. | |
6427 | (arm_prologue_unwind) <stop_reason> : Set to | |
6428 | arm_prologue_unwind_stop_reason. | |
6429 | ||
f7de9aab MW |
6430 | 2015-02-09 Mark Wielaard <mjw@redhat.com> |
6431 | ||
6432 | * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and | |
6433 | DW_LANG_Fortran08 as language_fortran. | |
6434 | ||
0b24eb2d SDJ |
6435 | 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com> |
6436 | ||
6437 | PR remote/17946 | |
6438 | * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison | |
6439 | of pointer against char. | |
6440 | ||
a2c2acaf MW |
6441 | 2015-02-09 Mark Wielaard <mjw@redhat.com> |
6442 | ||
6443 | * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'. | |
6444 | (c_type_print_modifier): Likewise. | |
6445 | * dwarf2read.c (read_tag_atomic_type): New function. | |
6446 | (read_type_die_1): Handle DW_TAG_atomic_type. | |
6447 | * gdbtypes.c (make_atomic_type): New function. | |
6448 | (recursive_dump_type): Handle TYPE_ATOMIC. | |
6449 | * gdbtypes.h (enum type_flag_values): Renumber. | |
6450 | (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC. | |
6451 | (TYPE_ATOMIC): New macro. | |
6452 | (make_atomic_type): Declare. | |
6453 | ||
31fd9caa MM |
6454 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6455 | ||
6456 | * btrace.c (ftrace_find_call): Skip gaps. | |
6457 | (ftrace_new_function): Initialize level. | |
6458 | (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return) | |
6459 | (ftrace_new_switch): Update | |
6460 | level computation. | |
6461 | (ftrace_new_gap): New. | |
6462 | (ftrace_update_function): Create new function after gap. | |
6463 | (btrace_compute_ftrace_bts): Create gap on error. | |
6464 | (btrace_stitch_bts): Update parameters. Clear trace if it | |
6465 | becomes empty. | |
6466 | (btrace_stitch_trace): Update parameters. Update callers. | |
6467 | (btrace_clear): Reset the number of gaps. | |
6468 | (btrace_insn_get): Return NULL if the iterator points to a gap. | |
6469 | (btrace_insn_number): Return zero if the iterator points to a gap. | |
6470 | (btrace_insn_end): Allow gaps at the end. | |
6471 | (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps. | |
6472 | (btrace_find_insn_by_number): Assert that the found iterator does | |
6473 | not point to a gap. | |
6474 | (btrace_call_next, btrace_call_prev): Assert that the last function | |
6475 | is not a gap. | |
6476 | * btrace.h (btrace_bts_error): New. | |
6477 | (btrace_function): Update comment. | |
6478 | (btrace_function) <insn, insn_offset, number>: Update comment. | |
6479 | (btrace_function) <errcode>: New. | |
6480 | (btrace_thread_info) <ngaps>: New. | |
6481 | (btrace_thread_info) <replay>: Update comment. | |
6482 | (btrace_insn_get): Update comment. | |
6483 | * record-btrace.c (btrace_ui_out_decode_error): New. | |
6484 | (record_btrace_info): Print number of gaps. | |
6485 | (btrace_insn_history, btrace_call_history): Call | |
6486 | btrace_ui_out_decode_error for gaps. | |
6487 | (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps. | |
6488 | ||
afb778a2 MM |
6489 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6490 | ||
6491 | * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New. | |
6492 | * nat/linux-btrace.c: (btrace_this_cpu): New. | |
6493 | (cpu_supports_bts): Call btrace_this_cpu. | |
6494 | (intel_supports_bts): Add cpu parameter. | |
6495 | ||
7d5c24b3 MM |
6496 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6497 | ||
6498 | * btrace.h (btrace_insn_class): New. | |
6499 | (btrace_insn) <size, iclass>: New. | |
6500 | * btrace.c (ftrace_find_call): Update parameters. Update users. | |
6501 | Use instruction classification. | |
6502 | (ftrace_new_return): Update parameters. Update users. | |
6503 | (ftrace_update_function): Update parameters. Update users. Use | |
6504 | instruction classification. | |
6505 | (ftrace_update_insns): Update parameters. Update users. | |
6506 | (ftrace_classify_insn): New. | |
6507 | (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add | |
6508 | TRY_CATCH around call to gdb_insn_length. | |
6509 | ||
76235df1 MM |
6510 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6511 | ||
6512 | * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace): | |
6513 | Update parameters. Update users. | |
6514 | ||
d33501a5 MM |
6515 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6516 | ||
6517 | * btrace.c (parse_xml_btrace_conf_bts): Add size. | |
6518 | (btrace_conf_bts_attributes): New. | |
6519 | (btrace_conf_children): Add attributes. | |
6520 | * common/btrace-common.h (btrace_config_bts): New. | |
6521 | (btrace_config)<bts>: New. | |
6522 | (btrace_config): Update comment. | |
6523 | * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts): | |
6524 | Use config. | |
6525 | * features/btrace-conf.dtd: Increment version. Add size | |
6526 | attribute to bts element. | |
6527 | * record-btrace.c (set_record_btrace_bts_cmdlist, | |
6528 | show_record_btrace_bts_cmdlist): New. | |
6529 | (record_btrace_adjust_size, record_btrace_print_bts_conf, | |
6530 | record_btrace_print_conf, cmd_set_record_btrace_bts, | |
6531 | cmd_show_record_btrace_bts): New. | |
6532 | (record_btrace_info): Call record_btrace_print_conf. | |
6533 | (_initialize_record_btrace): Add commands. | |
6534 | * remote.c: Add PACKET_Qbtrace_conf_bts_size enum. | |
6535 | (remote_protocol_features): Add Qbtrace-conf:bts:size packet. | |
6536 | (btrace_sync_conf): Synchronize bts size. | |
6537 | (_initialize_remote): Add Qbtrace-conf:bts:size packet. | |
6538 | * NEWS: Announce new commands and new packets. | |
6539 | ||
f4abbc16 MM |
6540 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6541 | ||
6542 | * Makefile.in (XMLFILES): Add btrace-conf.dtd. | |
6543 | * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters. | |
6544 | (x86_linux_btrace_conf): New. | |
6545 | (x86_linux_create_target): Initialize to_btrace_conf. | |
6546 | * nat/linux-btrace.c (linux_enable_btrace): Update parameters. | |
6547 | Check format. Split into this and ... | |
6548 | (linux_enable_bts): ... this. | |
6549 | (linux_btrace_conf): New. | |
6550 | (perf_event_skip_record): Renamed into ... | |
6551 | (perf_event_skip_bts_record): ... this. Updated users. | |
6552 | (linux_disable_btrace): Split into this and ... | |
6553 | (linux_disable_bts): ... this. | |
6554 | (linux_read_btrace): Check format. | |
6555 | * nat/linux-btrace.h (linux_enable_btrace): Update parameters. | |
6556 | (linux_btrace_conf): New. | |
6557 | (btrace_target_info)<ptid>: Moved. | |
6558 | (btrace_target_info)<conf>: New. | |
6559 | (btrace_target_info): Split into this and ... | |
6560 | (btrace_tinfo_bts): ... this. Updated users. | |
6561 | * btrace.c (btrace_enable): Update parameters. | |
6562 | (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf) | |
6563 | (btrace_conf_children, btrace_conf_attributes) | |
6564 | (btrace_conf_elements): New. | |
6565 | * btrace.h (btrace_enable): Update parameters. | |
6566 | (btrace_conf, parse_xml_btrace_conf): New. | |
6567 | * common/btrace-common.h (btrace_config): New. | |
6568 | * feature/btrace-conf.dtd: New. | |
6569 | * record-btrace.c (record_btrace_conf): New. | |
6570 | (record_btrace_cmdlist): New. | |
6571 | (record_btrace_enable_warn, record_btrace_open): Pass | |
6572 | &record_btrace_conf. | |
6573 | (record_btrace_info): Print recording format. | |
6574 | (cmd_record_btrace_bts_start): New. | |
6575 | (cmd_record_btrace_start): Call cmd_record_btrace_bts_start. | |
6576 | (_initialize_record_btrace): Add "record btrace bts" subcommand. | |
6577 | Add "record bts" alias command. | |
6578 | * remote.c (remote_state)<btrace_config>: New. | |
6579 | (remote_btrace_reset, PACKET_qXfer_btrace_conf): New. | |
6580 | (remote_protocol_features): Add qXfer:btrace-conf:read. | |
6581 | (remote_open_1): Call remote_btrace_reset. | |
6582 | (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF. | |
6583 | (btrace_target_info)<conf>: New. | |
6584 | (btrace_sync_conf, btrace_read_config): New. | |
6585 | (remote_enable_btrace): Update parameters. Call btrace_sync_conf and | |
6586 | btrace_read_conf. | |
6587 | (remote_btrace_conf): New. | |
6588 | (init_remote_ops): Initialize to_btrace_conf. | |
6589 | (_initialize_remote): Add qXfer:btrace-conf packet. | |
6590 | * target.c (target_enable_btrace): Update parameters. | |
6591 | (target_btrace_conf): New. | |
6592 | * target.h (target_enable_btrace): Update parameters. | |
6593 | (target_btrace_conf): New. | |
6594 | (target_object)<TARGET_OBJECT_BTRACE_CONF>: New. | |
6595 | (target_ops)<to_enable_btrace>: Update parameters and comment. | |
6596 | (target_ops)<to_btrace_conf>: New. | |
6597 | * target-delegates: Regenerate. | |
6598 | * target-debug.h (target_debug_print_const_struct_btrace_config_p) | |
6599 | (target_debug_print_const_struct_btrace_target_info_p): New. | |
6600 | * NEWS: Announce new command and new packet. | |
6601 | ||
aadf7753 MM |
6602 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6603 | ||
6604 | * nat/linux-btrace.h (perf_event_buffer): New. | |
6605 | (btrace_target_info) <buffer, size, data_head>: Replace with ... | |
6606 | <bts>: ... this. | |
6607 | * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size) | |
6608 | (perf_event_buffer_size, perf_event_buffer_begin) | |
6609 | (perf_event_buffer_end, linux_btrace_has_changed): Removed. | |
6610 | Updated users. | |
6611 | (perf_event_new_data): New. | |
6612 | ||
043c3577 MM |
6613 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6614 | ||
6615 | * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS. | |
6616 | * record-btrace.c (record_btrace_open): Remove call to | |
6617 | target_supports_btrace. | |
6618 | * remote.c (remote_supports_btrace): Update parameters. | |
6619 | * target.c (target_supports_btrace): Update parameters. | |
6620 | * target.h (to_supports_btrace, target_supports_btrace): Update | |
6621 | parameters. | |
6622 | * target-delegates.c: Regenerate. | |
6623 | * target-debug.h (target_debug_print_enum_btrace_format): New. | |
6624 | * nat/linux-btrace.c | |
6625 | (kernel_supports_btrace): Rename into ... | |
6626 | (kernel_supports_bts): ... this. Update users. Update warning text. | |
6627 | (intel_supports_btrace): Rename into ... | |
6628 | (intel_supports_bts): ... this. Update users. | |
6629 | (cpu_supports_btrace): Rename into ... | |
6630 | (cpu_supports_bts): ... this. Update users. | |
6631 | (linux_supports_btrace): Update parameters. Split into this and ... | |
6632 | (linux_supports_bts): ... this. | |
6633 | * nat/linux-btrace.h (linux_supports_btrace): Update parameters. | |
6634 | ||
734b0e4b MM |
6635 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6636 | ||
6637 | * Makefile.in (SFILES): Add common/btrace-common.c. | |
6638 | (COMMON_OBS): Add common/btrace-common.o. | |
6639 | (btrace-common.o): Add build rules. | |
6640 | * btrace.c (parse_xml_btrace): Update parameters. | |
6641 | (parse_xml_btrace_block): Set format field. | |
6642 | (btrace_add_pc, btrace_fetch): Use struct btrace_data. | |
6643 | (do_btrace_data_cleanup, make_cleanup_btrace_data): New. | |
6644 | (btrace_compute_ftrace): Split into this and... | |
6645 | (btrace_compute_ftrace_bts): ...this. | |
6646 | (btrace_stitch_trace): Split into this and... | |
6647 | (btrace_stitch_bts): ...this. | |
6648 | * btrace.h (parse_xml_btrace): Update parameters. | |
6649 | (make_cleanup_btrace_data): New. | |
6650 | * common/btrace-common.c: New. | |
6651 | * common/btrace-common.h: Include common-defs.h. | |
6652 | (btrace_block_s): Update comment. | |
6653 | (btrace_format): New. | |
6654 | (btrace_format_string): New. | |
6655 | (btrace_data_bts): New. | |
6656 | (btrace_data): New. | |
6657 | (btrace_data_init, btrace_data_fini, btrace_data_empty): New. | |
6658 | * remote.c (remote_read_btrace): Update parameters. | |
6659 | * target.c (target_read_btrace): Update parameters. | |
6660 | * target.h (target_read_btrace): Update parameters. | |
6661 | (target_ops)<to_read_btrace>: Update parameters. | |
6662 | * x86-linux-nat.c (x86_linux_read_btrace): Update parameters. | |
6663 | * target-delegates.c: Regenerate. | |
6664 | * target-debug (target_debug_print_struct_btrace_data_p): New. | |
6665 | * nat/linux-btrace.c (linux_read_btrace): Split into this and... | |
6666 | (linux_read_bts): ...this. | |
6667 | * nat/linux-btrace.h (linux_read_btrace): Update parameters. | |
6668 | ||
bd2e0e9e DE |
6669 | 2015-02-06 Doug Evans <dje@google.com> |
6670 | ||
6671 | * remote-m32r-sdi.c: Include symfile.h. | |
6672 | ||
f176c4b5 DE |
6673 | 2015-02-06 Doug Evans <dje@google.com> |
6674 | ||
6675 | * symtab.h (clear_symtab_users, deduce_language_from_filename): Move | |
6676 | * symfile.h (clear_symtab_users, deduce_language_from_filename): ... | |
6677 | to here. | |
6678 | ||
d6c146e9 PA |
6679 | 2015-02-06 Pedro Alves <palves@redhat.com> |
6680 | ||
6681 | * linux-thread-db.c (find_new_threads_callback): Add debug output. | |
6682 | ||
b9d61307 SM |
6683 | 2015-02-06 Simon Marchi <simon.marchi@ericsson.com> |
6684 | ||
6685 | PR gdb/15678 | |
6686 | * breakpoint.c (map_breakpoint_numbers): Check for empty args string. | |
6687 | (enable_count_command): Check args for NULL value. | |
6688 | ||
e9fbd043 DE |
6689 | 2015-02-05 Doug Evans <xdje42@gmail.com> |
6690 | ||
6691 | * guile/scm-frame.c: Fix spelling errors in a comment. | |
6692 | ||
881d5d5d JK |
6693 | 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
6694 | ||
6695 | * python/python-internal.h (Py_hash_t): Define it for Python <3.2. | |
6696 | * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the | |
6697 | return type. | |
6698 | ||
20ba1ce6 PA |
6699 | 2015-02-04 Pedro Alves <palves@redhat.com> |
6700 | ||
6701 | * linux-nat.c (handle_extended_wait): Don't resume LWPs here. | |
6702 | (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait | |
6703 | returns true. | |
6704 | (resume_stopped_resumed_lwps): Don't check whether the thread is | |
6705 | marked as executing. | |
6706 | (linux_nat_wait_1): Use resume_stopped_resumed_lwps. | |
6707 | ||
f962539a AA |
6708 | 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6709 | ||
6710 | * regset.h (struct regset): Add flags field. | |
6711 | (REGSET_VARIABLE_SIZE): New value for a regset's flags field. | |
6712 | * corelow.c (get_core_register_section): Add warning if the size | |
6713 | exceeds the requested size and the regset does not have the | |
6714 | REGSET_VARIABLE_SIZE flag set. | |
6715 | * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE | |
6716 | flag. | |
6717 | * armbsd-tdep.c (armbsd_gregset): Likewise. | |
6718 | * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise. | |
6719 | * hppaobsd-tdep.c (hppaobsd_gregset): Likewise. | |
6720 | * m68kbsd-tdep.c (m68kbsd_gregset): Likewise. | |
6721 | * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise. | |
6722 | ||
dde9acd6 AA |
6723 | 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6724 | ||
6725 | * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections): | |
6726 | For ".reg-xstate", explicitly specify the requested section size | |
6727 | via X86_XSTATE_SIZE instead of just 0 on input and | |
6728 | X86_XSTATE_MAX_SIZE on output. | |
6729 | * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): | |
6730 | Likewise. | |
6731 | ||
1528345d AA |
6732 | 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6733 | ||
6734 | PR corefiles/17808: | |
6735 | * gdbarch.sh (iterate_over_regset_sections_cb): Document this | |
6736 | function type, particularly its SIZE parameter. | |
6737 | * gdbarch.h: Regenerate. | |
6738 | * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare | |
6739 | actual against required size using ">=" instead of "==". | |
6740 | (amd64_collect_fpregset): Likewise. | |
6741 | * i386-tdep.c (i386_supply_gregset): Likewise. | |
6742 | (i386_collect_gregset): Likewise. | |
6743 | (i386_supply_fpregset): Likewise. | |
6744 | (i386_collect_fpregset): Likewise. | |
6745 | * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise. | |
6746 | (mips_fill_gregset_wrapper): Likewise. | |
6747 | (mips_supply_fpregset_wrapper): Likewise. | |
6748 | (mips_fill_fpregset_wrapper): Likewise. | |
6749 | (mips64_supply_gregset_wrapper): Likewise. | |
6750 | (mips64_fill_gregset_wrapper): Likewise. | |
6751 | (mips64_supply_fpregset_wrapper): Likewise. | |
6752 | (mips64_fill_fpregset_wrapper): Likewise. | |
6753 | * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise. | |
6754 | (am33_supply_fpregset_method): Likewise. | |
6755 | (am33_collect_gregset_method): Likewise. | |
6756 | (am33_collect_fpregset_method): Likewise. | |
6757 | ||
518be979 DE |
6758 | 2015-02-04 Doug Evans <dje@google.com> |
6759 | Pedro Alves <palves@redhat.com> | |
6760 | Eli Zaretskii <eliz@gnu.org> | |
6761 | ||
6762 | PR tui/17810 | |
6763 | * tui/tui-command.c (tui_refresh_cmd_win): New function. | |
6764 | * tui/tui-command.c (tui_refresh_cmd_win): Declare. | |
6765 | * tui/tui-file.c: #include tui/tui-command.h. | |
6766 | (tui_file_fputs): Refresh command window if stream is not gdb_stdout. | |
6767 | (tui_file_flush): Refresh command window if stream is gdb_stdout. | |
6768 | * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush. | |
6769 | ||
80bd5fab PA |
6770 | 2015-02-04 Pedro Alves <palves@redhat.com> |
6771 | ||
6772 | Fix build breakage. | |
6773 | * event-loop.c (gdb_do_one_event): Add default switch case. | |
6774 | ||
a7606d80 JK |
6775 | 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
6776 | ||
6777 | Filter out inferior gcc option -fpreprocessed. | |
6778 | * compile/compile.c (filter_args): New function. | |
6779 | (get_args): Use it. | |
6780 | ||
70b66289 PA |
6781 | 2015-02-03 Pedro Alves <palves@redhat.com> |
6782 | ||
6783 | * event-loop.c: Don't declare nor define a queue type for | |
6784 | gdb_event_p. | |
6785 | (event_queue): Delete. | |
6786 | (create_event, create_file_event, gdb_event_xfree) | |
6787 | (initialize_event_loop, process_event): Delete. | |
6788 | (gdb_do_one_event): Return as soon as one event is handled. | |
6789 | (handle_file_event): Change prototype. Used the passed in | |
6790 | file_handler pointer and ready_mask instead of looping over all | |
6791 | file handlers. | |
6792 | (gdb_wait_for_event): Update the poll/select timeouts before | |
6793 | blocking. Run event handlers directly instead of queueing events. | |
6794 | Return as soon as one event is handled. | |
6795 | (struct async_event_handler_data): Delete. | |
6796 | (invoke_async_event_handler): Delete. | |
6797 | (check_async_event_handlers): Change return type to int. Run | |
6798 | event handlers directly instead of queueing events. Return as | |
6799 | soon as one event is handled. | |
6800 | (handle_timer_event): Delete. | |
6801 | (update_wait_timeout): New function, factored out from | |
6802 | poll_timers. | |
6803 | (poll_timers): Reimplement. | |
6804 | * event-loop.h (initialize_event_loop): Delete declaration. | |
6805 | * top.c (gdb_init): Don't call initialize_event_loop. | |
6806 | ||
b7d2e916 PA |
6807 | 2015-02-03 Pedro Alves <palves@redhat.com> |
6808 | ||
6809 | * event-loop.c (clear_async_event_handler): New function. | |
6810 | * event-loop.h (clear_async_event_handler): New declaration. | |
6811 | * record-btrace.c (record_btrace_async): New function. | |
6812 | (init_record_btrace_ops): Install record_btrace_async. | |
6813 | * record-full.c (record_full_async): New function. | |
6814 | (record_full_resume): Don't mark the async event source here. | |
6815 | (init_record_full_ops): Install record_full_async. | |
6816 | (record_full_core_resume): Don't mark the async event source here. | |
6817 | (init_record_full_core_ops): Install record_full_async. | |
6818 | * remote.c (remote_async): Mark and clear the async stop reply | |
6819 | queue event-loop token as appropriate. | |
6820 | ||
d9d41e78 PA |
6821 | 2015-02-03 Pedro Alves <palves@redhat.com> |
6822 | ||
6823 | * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use | |
6824 | target_is_async_p instead of target_can_async. | |
6825 | (linux_nat_wait): Use target_is_async_p instead of | |
6826 | target_can_async. Don't enable async here. | |
6827 | * remote.c (interrupt_query, remote_wait, putpkt_binary): Use | |
6828 | target_is_async_p instead of target_can_async. | |
6829 | ||
aa3de267 SM |
6830 | 2015-02-02 Simon Marchi <simon.marchi@ericsson.com> |
6831 | ||
6832 | * varobj.h (lang_varobj_ops): Mention which return values need | |
6833 | to be freed. | |
6834 | ||
2c811c0f JB |
6835 | 2015-02-02 Joel Brobecker <brobecker@adacore.com> |
6836 | ||
6837 | * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker. | |
6838 | ||
b1eedac9 JB |
6839 | 2015-02-02 Joel Brobecker <brobecker@adacore.com> |
6840 | ||
6841 | PR gdb/17856: | |
6842 | * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache | |
6843 | results found in the cache. | |
6844 | ||
66c168ae JB |
6845 | 2015-02-02 Joel Brobecker <brobecker@adacore.com> |
6846 | ||
6847 | PR gdb/17854: | |
6848 | * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache | |
6849 | when allocating a new one. | |
6850 | ||
4bdc02b2 TT |
6851 | 2015-02-01 Tom Tromey <tom@tromey.com> |
6852 | ||
6853 | * MAINTAINERS: Remove myself. | |
6854 | ||
ae6ae975 DE |
6855 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
6856 | ||
6857 | * dwarf2read.c (process_structure_scope): Update setting of | |
6858 | TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO. | |
6859 | * gdbtypes.c (internal_type_vptr_fieldno): New function. | |
6860 | (set_type_vptr_fieldno): New function. | |
6861 | (internal_type_vptr_basetype): New function. | |
6862 | (set_type_vptr_basetype): New function. | |
6863 | (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO, | |
6864 | TYPE_VPTR_BASETYPE. | |
6865 | (allocate_cplus_struct_type): Initialize vptr_fieldno. | |
6866 | (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ... | |
6867 | (print_cplus_stuff): ... moved here. | |
6868 | (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE. | |
6869 | * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype | |
6870 | moved to ... | |
6871 | (struct cplus_struct_type): ... here. All uses updated. | |
6872 | (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite. | |
6873 | (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare. | |
6874 | (internal_type_vptr_basetype, set_type_vptr_basetype): Declare. | |
6875 | * stabsread.c (read_tilde_fields): Update setting of | |
6876 | TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE. | |
6877 | ||
09e2d7c7 DE |
6878 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
6879 | ||
6880 | * cp-valprint.c (cp_find_class_member): Rename parameter domain_p | |
6881 | to self_p. | |
6882 | (cp_print_class_member): Rename local domain to self_type. | |
6883 | * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local | |
6884 | domain_type to self_type. | |
6885 | (set_die_type) <need_gnat_info>: Handle | |
6886 | TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD. | |
6887 | * gdb-gdb.py (StructMainTypePrettyPrinter): Handle | |
6888 | TYPE_SPECIFIC_SELF_TYPE. | |
6889 | * gdbtypes.c (internal_type_self_type): New function. | |
6890 | (set_type_self_type): New function. | |
6891 | (smash_to_memberptr_type): Rename parameter domain to self_type. | |
6892 | Update setting of TYPE_SELF_TYPE. | |
6893 | (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE. | |
6894 | (smash_to_method_type): Rename parameter domain to self_type. | |
6895 | Update setting of TYPE_SELF_TYPE. | |
6896 | (check_stub_method): Call smash_to_method_type. | |
6897 | (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE. | |
6898 | (copy_type_recursive): Ditto. | |
6899 | * gdbtypes.h (enum type_specific_kind): New value | |
6900 | TYPE_SPECIFIC_SELF_TYPE. | |
6901 | (struct main_type) <type_specific>: New member self_type. | |
6902 | (struct cplus_struct_type) <fn_field.type>: Update comment. | |
6903 | (TYPE_SELF_TYPE): Rewrite. | |
6904 | (internal_type_self_type, set_type_self_type): Declare. | |
6905 | * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to | |
6906 | self_type. | |
6907 | (gnuv3_method_ptr_to_value): Rename local domain_type to self_type. | |
6908 | * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with | |
6909 | TYPE_TARGET_TYPE. | |
6910 | * stabsread.c (read_member_functions): Mark methods with | |
6911 | TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of | |
6912 | TYPE_SELF_TYPE. | |
6913 | ||
4bfb94b8 DE |
6914 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
6915 | ||
6916 | * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE. | |
6917 | All uses updated. | |
6918 | ||
5f4ce105 DE |
6919 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
6920 | ||
6921 | * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs | |
6922 | or unions. Return zero if union. | |
6923 | (gnuv3_get_vtable): Call check_typedef. Assert only passed structs. | |
6924 | (gnuv3_rtti_type): Pass already-check_typedef'd value to | |
6925 | gnuv3_get_vtable. | |
6926 | (compute_vtable_size): Assert only passed structs. | |
6927 | (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs. | |
6928 | ||
f6b3afbf DE |
6929 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
6930 | ||
6931 | * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD | |
6932 | kinds. | |
6933 | ||
cfb069a8 GB |
6934 | 2015-01-31 Gary Benson <gbenson@redhat.com> |
6935 | Doug Evans <dje@google.com> | |
6936 | ||
6937 | PR cli/9007 | |
6938 | PR cli/11920 | |
6939 | PR cli/15548 | |
6940 | * cli/cli-cmds.c (complete_command): Notify user if max-completions | |
6941 | reached. | |
6942 | * common/common-exceptions.h (enum errors) | |
6943 | <MAX_COMPLETIONS_REACHED_ERROR>: New value. | |
6944 | * completer.h (get_max_completions_reached_message): New declaration. | |
6945 | (max_completions): Likewise. | |
6946 | (completion_tracker_t): New typedef. | |
6947 | (new_completion_tracker): New declaration. | |
6948 | (make_cleanup_free_completion_tracker): Likewise. | |
6949 | (maybe_add_completion_enum): New enum. | |
6950 | (maybe_add_completion): New declaration. | |
6951 | (throw_max_completions_reached_error): Likewise. | |
6952 | * completer.c (max_completions): New global variable. | |
6953 | (new_completion_tracker): New function. | |
6954 | (free_completion_tracker): Likewise. | |
6955 | (make_cleanup_free_completion_tracker): Likewise. | |
6956 | (maybe_add_completions): Likewise. | |
6957 | (throw_max_completions_reached_error): Likewise. | |
6958 | (complete_line): Remove duplicates and limit result to max_completions | |
6959 | entries. | |
6960 | (get_max_completions_reached_message): New function. | |
6961 | (gdb_display_match_list): Handle max_completions. | |
6962 | (_initialize_completer): New declaration and function. | |
6963 | * symtab.c: Include completer.h. | |
6964 | (completion_tracker): New static variable. | |
6965 | (completion_list_add_name): Call maybe_add_completion. | |
6966 | (default_make_symbol_completion_list_break_on_1): Renamed from | |
6967 | default_make_symbol_completion_list_break_on. Maintain | |
6968 | completion_tracker across calls to completion_list_add_name. | |
6969 | (default_make_symbol_completion_list_break_on): New function. | |
6970 | * top.c (init_main): Set rl_completion_display_matches_hook. | |
6971 | * tui/tui-io.c: Include completer.h. | |
6972 | (tui_old_rl_display_matches_hook): New static global. | |
6973 | (tui_rl_display_match_list): Notify user if max-completions reached. | |
6974 | (tui_setup_io): Save/restore rl_completion_display_matches_hook. | |
6975 | * NEWS (New Options): Mention set/show max-completions. | |
6976 | ||
e11c72c7 GB |
6977 | 2015-01-31 Gary Benson <gbenson@redhat.com> |
6978 | ||
6979 | * symtab.c (struct add_name_data) <code>: New field. | |
6980 | Updated comments. | |
6981 | (add_symtab_completions): New function. | |
6982 | (symtab_expansion_callback): Likewise. | |
6983 | (default_make_symbol_completion_list_break_on): Set datum.code. | |
6984 | Move minimal symbol scan before calling expand_symtabs_matching. | |
6985 | Scan known primary symtabs for externs and statics before calling | |
6986 | expand_symtabs_matching. Pass symtab_expansion_callback as | |
6987 | expansion_notify argument to expand_symtabs_matching. Do not scan | |
6988 | primary symtabs for externs and statics after calling | |
6989 | expand_symtabs_matching. | |
6990 | ||
276d885b GB |
6991 | 2015-01-31 Gary Benson <gbenson@redhat.com> |
6992 | ||
6993 | * symfile.h (expand_symtabs_exp_notify_ftype): New typedef. | |
6994 | (struct quick_symbol_functions) <expand_symtabs_matching>: | |
6995 | New argument expansion_notify. All uses updated. | |
6996 | (expand_symtabs_matching): New argument expansion_notify. | |
6997 | All uses updated. | |
6998 | * symfile-debug.c (debug_qf_expand_symtabs_matching): | |
6999 | Also print expansion notify. | |
7000 | * symtab.c (expand_symtabs_matching_via_partial): Call | |
7001 | expansion_notify whenever a partial symbol table is expanded. | |
7002 | * dwarf2read.c (dw2_expand_symtabs_matching): Call | |
7003 | expansion_notify whenever a symbol table is instantiated. | |
7004 | ||
82083d6d DE |
7005 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
7006 | ||
7007 | * cli-out.c: #include completer.h, readline/readline.h. | |
7008 | (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions. | |
7009 | (cli_mld_flush, cld_mld_erase_entire_line): Ditto. | |
7010 | (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto. | |
7011 | * cli-out.h (cli_display_match_list): Declare. | |
7012 | * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros. | |
7013 | (ELLIPSIS_LEN): Ditto. | |
7014 | (gdb_get_y_or_n, gdb_display_match_list_pager): New functions. | |
7015 | (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto. | |
7016 | (gdb_fnprint, gdb_print_filename): Ditto. | |
7017 | (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto. | |
7018 | (gdb_display_match_list): Ditto. | |
7019 | * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs. | |
7020 | (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto. | |
7021 | (mld_beep_ftype, mld_read_key_ftype): Ditto. | |
7022 | (match_list_displayer): New struct. | |
7023 | (gdb_display_match_list): Declare. | |
7024 | * top.c (init_main): Set rl_completion_display_matches_hook. | |
7025 | * tui/tui-io.c: #include completer.h. | |
7026 | (printable_part, PUTX, print_filename, get_y_or_n): Delete. | |
7027 | (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions. | |
7028 | (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto. | |
7029 | (tui_mld_getc, tui_mld_read_key): Ditto. | |
7030 | (tui_rl_display_match_list): Rewrite. | |
7031 | (tui_handle_resize_during_io): New arg for_completion. All callers | |
7032 | updated. | |
7033 | ||
f57d2163 DE |
7034 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
7035 | ||
7036 | Add symbol lookup cache. | |
7037 | * NEWS: Document new options and commands. | |
7038 | * symtab.c (symbol_cache_key): New static global. | |
7039 | (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros. | |
7040 | (SYMBOL_LOOKUP_FAILED): New macro. | |
7041 | (symbol_cache_slot_state): New enum. | |
7042 | (block_symbol_cache): New struct. | |
7043 | (symbol_cache): New struct. | |
7044 | (new_symbol_cache_size, symbol_cache_size): New static globals. | |
7045 | (hash_symbol_entry, eq_symbol_entry): New functions. | |
7046 | (symbol_cache_byte_size, resize_symbol_cache): New functions. | |
7047 | (make_symbol_cache, free_symbol_cache): New functions. | |
7048 | (get_symbol_cache, symbol_cache_cleanup): New function. | |
7049 | (set_symbol_cache_size, set_symbol_cache_size_handler): New functions. | |
7050 | (symbol_cache_lookup, symbol_cache_clear_slot): New function. | |
7051 | (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions. | |
7052 | (symbol_cache_flush, symbol_cache_dump): New functions. | |
7053 | (maintenance_print_symbol_cache): New function. | |
7054 | (maintenance_flush_symbol_cache): New function. | |
7055 | (symbol_cache_stats): New function. | |
7056 | (maintenance_print_symbol_cache_statistics): New function. | |
7057 | (symtab_new_objfile_observer): New function. | |
7058 | (symtab_free_objfile_observer): New function. | |
7059 | (lookup_static_symbol, lookup_global_symbol): Use symbol cache. | |
7060 | (_initialize_symtab): Init symbol_cache_key. New parameter | |
7061 | maint symbol-cache-size. New maint commands print symbol-cache, | |
7062 | print symbol-cache-statistics, flush-symbol-cache. | |
7063 | Install new_objfile, free_objfile observers. | |
7064 | ||
e700d1b2 JB |
7065 | 2015-01-31 Joel Brobecker <brobecker@adacore.com> |
7066 | ||
7067 | PR symtab/17855 | |
7068 | * symfile.c (clear_symtab_users): Move call to breakpoint_re_set | |
7069 | to end. | |
7070 | ||
9f050062 DE |
7071 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
7072 | ||
7073 | * NEWS: Mention inlined scripts in .debug_gdb_scripts section. | |
7074 | * auto-load.c: #include ctype.h. | |
7075 | (struct auto_load_pspace_info): Replace member loaded_scripts with | |
7076 | new members loaded_script_files, loaded_script_texts. | |
7077 | (auto_load_pspace_data_cleanup): Update. | |
7078 | (init_loaded_scripts_info): Update. | |
7079 | (get_auto_load_pspace_data_for_loading): Update. | |
7080 | (maybe_add_script_file): Renamed from maybe_add_script. All callers | |
7081 | updated. | |
7082 | (maybe_add_script_text): New function. | |
7083 | (clear_section_scripts): Update. | |
7084 | (source_script_file, execute_script_contents): New functions. | |
7085 | (source_section_scripts): Add support for | |
7086 | SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT. | |
7087 | (print_scripts): New function. | |
7088 | (auto_load_info_scripts): Also print inlined scripts. | |
7089 | (maybe_print_unsupported_script_warning): Renamed from | |
7090 | unsupported_script_warning_print. All callers updated. | |
7091 | (maybe_print_script_not_found_warning): Renamed from | |
7092 | script_not_found_warning_print. All callers updated. | |
7093 | * extension-priv.h (struct extension_language_script_ops): New member | |
7094 | objfile_script_executor. | |
7095 | * extension.c (ext_lang_objfile_script_executor): New function. | |
7096 | * extension.h (objfile_script_executor_func): New typedef. | |
7097 | (ext_lang_objfile_script_executor): Declare. | |
7098 | * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare. | |
7099 | * guile/guile.c (guile_extension_script_ops): Update. | |
7100 | * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function. | |
7101 | * python/python.c (python_extension_script_ops): Update. | |
7102 | (gdbpy_execute_objfile_script): New function. | |
7103 | ||
312809f8 EZ |
7104 | 2015-01-31 Eli Zaretskii <eliz@gnu.org> |
7105 | ||
7106 | * tui/tui-io.c (tui_expand_tabs): New function. | |
7107 | (tui_puts, tui_redisplay_readline): Expand TABs into the | |
7108 | appropriate number of spaces. | |
7109 | * tui/tui-regs.c: Include tui-io.h. | |
7110 | (tui_register_format): Call tui_expand_tabs to expand TABs into | |
7111 | the appropriate number of spaces. | |
7112 | * tui/tui-io.h: Add prototype for tui_expand_tabs. | |
7113 | ||
b6577aab DE |
7114 | 2015-01-30 Doug Evans <dje@google.com> |
7115 | ||
7116 | * NEWS: "info source" command now display producer string if present. | |
7117 | * source.c (source_info): Print producer string if present. | |
7118 | ||
6da58d3e SM |
7119 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
7120 | ||
7121 | * varobj.c (varobj_delete): Fix comment. | |
7122 | ||
837ce252 SM |
7123 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
7124 | ||
7125 | * varobj.c (create_child): Modify comment. | |
7126 | ||
b09e2c59 SM |
7127 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
7128 | ||
7129 | * ada-varobj.c (ada_number_of_children): Constify struct varobj * | |
7130 | parameter. | |
7131 | (ada_name_of_variable): Same. | |
7132 | (ada_path_expr_of_child): Same. | |
7133 | (ada_value_of_variable): Same. | |
7134 | (ada_value_is_changeable_p): Same. | |
7135 | (ada_value_has_mutated): Same. | |
7136 | * c-varobj.c (varobj_is_anonymous_child): Same. | |
7137 | (c_is_path_expr_parent): Same. | |
7138 | (c_number_of_children): Same. | |
7139 | (c_name_of_variable): Same. | |
7140 | (c_path_expr_of_child): Same. | |
7141 | (get_type): Same. | |
7142 | (c_value_of_variable): Same. | |
7143 | (cplus_number_of_children): Same. | |
7144 | (cplus_name_of_variable): Same. | |
7145 | (cplus_path_expr_of_child): Same. | |
7146 | (cplus_value_of_variable): Same. | |
7147 | * jv-varobj.c (java_number_of_children): Same. | |
7148 | (java_name_of_variable): Same. | |
7149 | (java_path_expr_of_child): Same. | |
7150 | (java_value_of_variable): Same. | |
7151 | * varobj.c (number_of_children): Same. | |
7152 | (name_of_variable): Same. | |
7153 | (is_root_p): Same. | |
7154 | (varobj_ensure_python_env): Same. | |
7155 | (varobj_get_objname): Same. | |
7156 | (varobj_get_expression): Same. | |
7157 | (varobj_get_display_format): Same. | |
7158 | (varobj_get_display_hint): Same. | |
7159 | (varobj_has_more): Same. | |
7160 | (varobj_get_thread_id): Same. | |
7161 | (varobj_get_frozen): Same. | |
7162 | (dynamic_varobj_has_child_method): Same. | |
7163 | (varobj_get_gdb_type): Same. | |
7164 | (is_path_expr_parent): Same. | |
7165 | (varobj_default_is_path_expr_parent): Same. | |
7166 | (varobj_get_language): Same. | |
7167 | (varobj_get_attributes): Same. | |
7168 | (varobj_is_dynamic_p): Same. | |
7169 | (varobj_get_child_range): Same. | |
7170 | (varobj_value_has_mutated): Same. | |
7171 | (varobj_get_value_type): Same. | |
7172 | (number_of_children): Same. | |
7173 | (name_of_variable): Same. | |
7174 | (check_scope): Same. | |
7175 | (varobj_editable_p): Same. | |
7176 | (varobj_value_is_changeable_p): Same. | |
7177 | (varobj_floating_p): Same. | |
7178 | (varobj_default_value_is_changeable_p): Same. | |
7179 | ||
2568868e SM |
7180 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
7181 | ||
7182 | * varobj.c (varobj_get_path_expr): Set var->path_expr. | |
7183 | * c-varobj.c (c_path_expr_of_child): Set local var instead of | |
7184 | child->path_expr. | |
7185 | (cplus_path_expr_of_child): Same. | |
7186 | ||
ca83fa81 SM |
7187 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
7188 | ||
7189 | * mi-cmd-var.c (print_varobj): Free varobj_get_expression | |
7190 | result. | |
7191 | (mi_cmd_var_info_expression): Same. | |
7192 | * varobj.c (varobj_get_expression): Mention in the comment that | |
7193 | the result must by freed by the caller. | |
7194 | ||
afa269ae SM |
7195 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
7196 | ||
7197 | * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of | |
7198 | varobj_get_type. | |
7199 | (varobj_update_one): Same. | |
7200 | * varobj.c (update_type_if_necessary): Free curr_type_str and | |
7201 | new_type_str. | |
7202 | (varobj_get_type): Specify in comment that the result needs to be | |
7203 | freed by the caller. | |
7204 | ||
cd366ee8 DE |
7205 | 2015-01-29 Doug Evans <dje@google.com> |
7206 | ||
7207 | PR symtab/17890 | |
7208 | * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4. | |
7209 | ||
38360086 MW |
7210 | 2015-01-25 Mark Wielaard <mjw@redhat.com> |
7211 | ||
7212 | * dwarf2read.c (checkproducer): Call producer_is_gcc. | |
7213 | * utils.c (producer_is_gcc_ge_4): Likewise. | |
7214 | (producer_is_gcc): New function. | |
7215 | * utils.h (producer_is_gcc): New declaration. | |
7216 | ||
df25ebbd JB |
7217 | 2015-01-29 Joel Brobecker <brobecker@adacore.com> |
7218 | ||
7219 | * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum | |
7220 | kind. | |
7221 | * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr" | |
7222 | parameter by "addr_stack" parameter. | |
7223 | (resolve_dynamic_range): Replace "addr" parameter by | |
7224 | "stack_addr" parameter. Update function documentation. | |
7225 | Update code accordingly. | |
7226 | (resolve_dynamic_array, resolve_dynamic_union) | |
7227 | (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise. | |
7228 | (resolve_dynamic_type): Update code, following the changes made | |
7229 | to resolve_dynamic_type_internal's interface. | |
7230 | * dwarf2loc.h (struct property_addr_info): New. | |
7231 | (dwarf2_evaluate_property): Replace "address" parameter | |
7232 | by "addr_stack" parameter. Adjust function documentation. | |
7233 | (struct dwarf2_offset_baton): New. | |
7234 | (struct dwarf2_property_baton): Update documentation of | |
7235 | field "referenced_type" to be more general. New field | |
7236 | "offset_info" in union data field. | |
7237 | * dwarf2loc.c (dwarf2_evaluate_property): Replace "address" | |
7238 | parameter by "addr_stack" parameter. Adjust code accordingly. | |
7239 | Add support for PROP_ADDR_OFFSET properties. | |
7240 | * dwarf2read.c (attr_to_dynamic_prop): Add support for | |
7241 | DW_AT_data_member_location attributes as well. Use case | |
7242 | statements instead of if/else condition. | |
7243 | ||
4a0ca9ec JB |
7244 | 2015-01-29 Joel Brobecker <brobecker@adacore.com> |
7245 | ||
7246 | * ada-varobj.c (ada_varobj_get_array_number_of_children): | |
7247 | Return zero if PARENT_VALUE is NULL and parent_type's | |
7248 | range type is dynamic. | |
7249 | ||
ddb87a81 JB |
7250 | 2015-01-29 Joel Brobecker <brobecker@adacore.com> |
7251 | ||
7252 | * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return | |
7253 | nonzero if the type's subtype is dynamic. | |
7254 | (resolve_dynamic_range): Also resolve the range's subtype. | |
7255 | ||
3d7ad9b4 | 7256 | 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch) |
7a270e0c | 7257 | |
3d7ad9b4 | 7258 | Pushed by Joel Brobecker <brobecker@adacore.com>. |
7a270e0c AK |
7259 | * symfile.c (unmap_overlay_command): Initialize sec to NULL. |
7260 | ||
3a8b707a DE |
7261 | 2015-01-27 Doug Evans <dje@google.com> |
7262 | ||
7263 | * NEWS: Mention gdb.Objfile.username. | |
7264 | * python/py-objfile.c (objfpy_get_username): New function. | |
7265 | (objfile_getset): Add "username". | |
7266 | ||
d35b90fb MW |
7267 | 2015-01-24 Mark Wielaard <mjw@redhat.com> |
7268 | ||
7269 | * stack.c (return_command): Markup warning message with _. | |
7270 | ||
734ae125 DE |
7271 | 2015-01-24 Doug Evans <xdje42@gmail.com> |
7272 | ||
7273 | * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete. | |
7274 | ||
527f3840 JK |
7275 | 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
7276 | ||
7277 | Fix 100x slowdown regression on DWZ files. | |
7278 | * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash. | |
7279 | (struct line_header): Add offset and offset_in_dwz. | |
7280 | (dwarf_decode_lines): Add parameter decode_mapping to the declaration. | |
7281 | (free_line_header_voidp): New declaration. | |
7282 | (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New | |
7283 | functions. | |
7284 | (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller. | |
7285 | (handle_DW_AT_stmt_list): Use line_header_hash. | |
7286 | (free_line_header_voidp): New function. | |
7287 | (dwarf_decode_line_header): Initialize offset and offset_in_dwz. | |
7288 | (dwarf_decode_lines): New parameter decode_mapping, use it. | |
7289 | (dwarf2_free_objfile): Free line_header_hash. | |
7290 | ||
f7e5394d SM |
7291 | 2015-01-23 Simon Marchi <simon.marchi@ericsson.com> |
7292 | ||
7293 | PR gdb/17416 | |
7294 | * valops.c (value_rtti_indirect_type): Catch exception thrown by | |
7295 | value_ind. | |
7296 | ||
743649fd MW |
7297 | 2015-01-15 Mark Wielaard <mjw@redhat.com> |
7298 | ||
7299 | * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from | |
7300 | DW_AT_noreturn. | |
7301 | * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make | |
7302 | calling_convention an 8 bit bit field. | |
7303 | (TYPE_NO_RETURN): New macro. | |
7304 | * infcmd.c (finish_command): Query if function does not return | |
7305 | normally. | |
7306 | * stack.c (return_command): Likewise. | |
7307 | ||
198297aa PA |
7308 | 2015-01-23 Pedro Alves <palves@redhat.com> |
7309 | ||
7310 | * linux-nat.c (linux_is_async_p): New macro. | |
7311 | (linux_nat_is_async_p): | |
7312 | (linux_nat_terminal_inferior): Check whether the target can async | |
7313 | instead of whether it is already async. | |
7314 | (linux_nat_terminal_ours): Don't check whether the target is | |
7315 | async. | |
7316 | (linux_async_pipe): Use linux_is_async_p. | |
7317 | ||
253828f1 JK |
7318 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
7319 | ||
7320 | * NEWS (Changes since GDB 7.9): Add 'thread apply all' option | |
7321 | '-ascending'. | |
7322 | * thread.c (tp_array_compar_ascending, tp_array_compar): New. | |
7323 | (thread_apply_all_command): Parse CMD for tp_array_compar_ascending. | |
7324 | Sort tp_array using tp_array_compar. | |
7325 | (_initialize_thread): Extend thread_apply_all_command help. | |
7326 | ||
f0e8c4c5 JK |
7327 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
7328 | ||
7329 | * corelow.c (core_open): Call also thread_command. | |
7330 | * gdbthread.h (thread_command): New prototype moved from ... | |
7331 | * thread.c (thread_command): ... here. | |
7332 | (thread_command): Make it global. | |
7333 | ||
03b79603 PA |
7334 | 2015-01-22 Pedro Alves <palves@redhat.com> |
7335 | ||
7336 | * configure.ac [*mingw32*]: Check $curses_found instead of | |
7337 | $prefer_curses. | |
7338 | * configure: Regenerate. | |
7339 | * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and | |
7340 | HAVE_NCURSES_NCURSES_H checks. | |
7341 | ||
6b8a872f EZ |
7342 | 2015-01-22 Eli Zaretskii <eliz@gnu.org> |
7343 | ||
bbbbffbb | 7344 | * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm' |
6b8a872f EZ |
7345 | fails with the 1st arg NULL, try again with "unknown". Don't test |
7346 | the "cup" capability: it isn't supported by the Windows port of | |
7347 | ncurses, but the Windows console driver is still capable of | |
7348 | supporting TUI. | |
7349 | ||
4b62a76e JK |
7350 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
7351 | ||
7352 | * compile/compile.c (_initialize_compile): Use -fPIE for compile_args. | |
7353 | ||
82a864f9 EZ |
7354 | 2015-01-22 Eli Zaretskii <eliz@gnu.org> |
7355 | ||
7356 | * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h. | |
7357 | (ALLDEPFILES): Remove irix5-nat.c. These two are part of the | |
7358 | reason that "make TAGS" is broken. | |
7359 | ||
b35018fd CG |
7360 | 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com> |
7361 | ||
7362 | * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues | |
7363 | and check additional store instructions. | |
7364 | ||
ffbc4646 WW |
7365 | 2015-01-21 Wei-cheng Wang <cole945@gmail.com> |
7366 | ||
7367 | * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang". | |
7368 | ||
ddeca1df WW |
7369 | 2015-01-21 Wei-cheng Wang <cole945@gmail.com> |
7370 | ||
7371 | * ppc-linux-tdep.c (ppc_skip_trampoline_code, | |
7372 | ppc_canonicalize_syscall, ppc_linux_syscall_record, | |
7373 | ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments. | |
7374 | * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise. | |
7375 | * rs6000-tdep.c (rs6000_epilogue_frame_cache, | |
7376 | rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register, | |
7377 | rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4, | |
7378 | ppc_process_record_op19, ppc_process_record_op31, | |
7379 | ppc_process_record_op59, ppc_process_record_op60, | |
7380 | ppc_process_record_op63): Likewise. | |
7381 | ||
049bb5de JB |
7382 | 2015-01-20 Joel Brobecker <brobecker@adacore.com> |
7383 | ||
7384 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string) | |
7385 | (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of | |
7386 | strerror. | |
7387 | ||
42b87c63 | 7388 | 2015-01-20 Wei-cheng Wang <cole945@gmail.com> |
810c1026 WW |
7389 | |
7390 | * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19, | |
7391 | ppc_process_record_op31, ppc_process_record_op59, | |
7392 | ppc_process_record_op60, ppc_process_record_op63, | |
7393 | ppc_process_record): Fix -Wformat warning. | |
7394 | * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60): | |
7395 | Remove unused variables. | |
7396 | ||
569340fc CG |
7397 | 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com> |
7398 | ||
7399 | * MAINTAINERS (Write After Approval): Add "Chen Gang". | |
7400 | ||
63413d85 EZ |
7401 | 2015-01-19 Eli Zaretskii <eliz@gnu.org> |
7402 | ||
7403 | * configure.ac [*mingw32*]: Only add windows-termcap.o to | |
7404 | CONFIG_OBS if not building with a curses library. | |
7405 | * configure: Regenerate. | |
7406 | ||
7407 | * windows-termcap.c: Include defs.h. Make the whole body empty if | |
7408 | either one of HAVE_CURSES_H or HAVE_NCURSES_H or | |
7409 | HAVE_NCURSES_NCURSES_H is defined. | |
7410 | ||
16d8013c JB |
7411 | 2015-01-19 Joel Brobecker <brobecker@adacore.com> |
7412 | ||
7413 | * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator | |
7414 | from end of line to start of next line. | |
7415 | ||
cf90fd9a WW |
7416 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
7417 | ||
7418 | * ppc-linux-tdep.c (ppc_skip_trampoline_code): | |
7419 | Scan PLT stub backward for reverse debugging. | |
7420 | * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise. | |
7421 | ||
b4cdae6f WW |
7422 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
7423 | Ulrich Weigand <uweigand@de.ibm.com> | |
7424 | ||
7425 | * configure.tgt (powerpc*-*-linux): Add linux-record.o to | |
7426 | gdb_target_obs. | |
7427 | (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall | |
7428 | record. | |
7429 | (ppc_canonicalize_syscall, ppc_linux_syscall_record, | |
7430 | ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions. | |
7431 | (ppc_linux_init_abi): Set process_record, process_record_signal. | |
7432 | * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and | |
7433 | ppc_linux_record_tdep to gdbarch_tdep. | |
7434 | (ppc_process_record): New declaration. | |
7435 | * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4, | |
7436 | ppc_process_record_op19, ppc_process_record_op31, | |
7437 | ppc_process_record_op59, ppc_process_record_op60, | |
7438 | ppc_process_record_op63, ppc_process_record): New functions. | |
7439 | ||
2608dbf8 WW |
7440 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
7441 | ||
7442 | * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to | |
7443 | rs6000_in_function_epilogue_frame_p and add an argument | |
7444 | for frame_info. | |
7445 | (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id, | |
7446 | rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer): | |
7447 | New functions. | |
7448 | (rs6000_epilogue_frame_unwind): New. | |
7449 | (rs6000_gdbarch_init): Append epilogue unwinder. | |
7450 | ||
4c347be6 SDJ |
7451 | 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com> |
7452 | ||
7453 | * nat/linux-personality.c: Replace "#ifndef | |
7454 | HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if | |
7455 | !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5 | |
7456 | systems. | |
7457 | ||
9f2850ba EZ |
7458 | 2015-01-16 Eli Zaretskii <eliz@gnu.org> |
7459 | ||
6cdb25f4 EZ |
7460 | * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New |
7461 | functions. | |
7462 | (_initialize_tui_win) <border-kind, border-mode>: | |
7463 | <active-border-mode>: Use tui_set_var_cmd as the "set" function. | |
c54da50d EZ |
7464 | (tui_set_tab_width_command): Fix the commentary. |
7465 | ||
6cdb25f4 EZ |
7466 | * tui/tui-win.h: Add prototype for tui_rehighlight_all. |
7467 | ||
bf555842 EZ |
7468 | * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command): |
7469 | Doc fix. | |
cb86fcc1 EZ |
7470 | (tui_set_tab_width_command): Delete and recreate the source and |
7471 | the disassembly windows, to show the effect of the changed tab | |
7472 | size immediately. | |
bf555842 | 7473 | |
9f2850ba EZ |
7474 | * tui/tui-data.h (LINE_PREFIX): Make shorter |
7475 | (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for | |
7476 | "Thread NNNNN.XXXX" thread ID notation on Windows. | |
7477 | ||
95761b2d JK |
7478 | 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
7479 | ||
7480 | Fix gcc-5 compilation. | |
7481 | * hppa-tdep.c (inst_saves_gr): Fix parentheses typo. | |
7482 | ||
8cc73a39 SDJ |
7483 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
7484 | ||
7485 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h. | |
7486 | (linux-personality.o): New rule. | |
7487 | * common/common-defs.h: Include <stdint.h>. | |
7488 | * config/aarch64/linux.mh (NATDEPFILES): Include | |
7489 | linux-personality.o. | |
7490 | * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise. | |
7491 | * config/arm/linux.mh (NATDEPFILES): Likewise. | |
7492 | * config/i386/linux64.mh (NATDEPFILES): Likewise. | |
7493 | * config/i386/linux.mh (NATDEPFILES): Likewise. | |
7494 | * config/ia64/linux.mh (NATDEPFILES): Likewise. | |
7495 | * config/m32r/linux.mh (NATDEPFILES): Likewise. | |
7496 | * config/m68k/linux.mh (NATDEPFILES): Likewise. | |
7497 | * config/mips/linux.mh (NATDEPFILES): Likewise. | |
7498 | * config/pa/linux.mh (NATDEPFILES): Likewise. | |
7499 | * config/powerpc/linux.mh (NATDEPFILES): Likewise. | |
7500 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise. | |
7501 | * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise. | |
7502 | * config/s390/linux.mh (NATDEPFILES): Likewise. | |
7503 | * config/sparc/linux64.mh (NATDEPFILES): Likewise. | |
7504 | * config/sparc/linux.mh (NATDEPFILES): Likewise. | |
7505 | * config/tilegx/linux.mh (NATDEPFILES): Likewise. | |
7506 | * config/xtensa/linux.mh (NATDEPFILES): Likewise. | |
7507 | * defs.h: Remove #include <stdint.h> (moved to | |
7508 | common/common-defs.h). | |
7509 | * linux-nat.c: Include nat/linux-personality.h. Remove #include | |
7510 | <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to | |
7511 | nat/linux-personality.c). | |
7512 | (linux_nat_create_inferior): Remove code to disable address space | |
7513 | randomization (moved to nat/linux-personality.c). Create cleanup | |
7514 | to disable address space randomization. | |
7515 | * nat/linux-personality.c: New file. | |
7516 | * nat/linux-personality.h: Likewise. | |
7517 | ||
fb23d554 SDJ |
7518 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
7519 | ||
7520 | * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and | |
7521 | common/posix-strerror.c. | |
7522 | (posix-strerror.o): New rule. | |
7523 | (mingw-strerror.o): Likewise. | |
7524 | * common/common-utils.h (safe_strerror): Move prototype to here, | |
7525 | from utils.h. | |
7526 | * common/common.host: New file. | |
7527 | * common/mingw-strerror.c: Likewise. | |
7528 | * common/posix-strerror.c: Likewise. | |
7529 | * configure: Regenerated. | |
7530 | * configure.ac: Source common/common.host. Add variable | |
7531 | common_host_obs to gdb_host_obs. | |
7532 | * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and | |
7533 | gdb/common/posix-strerror.c when warning about the use of | |
7534 | strerror. | |
7535 | * mingw-hdep.c (safe_strerror): Remove definition; move it to | |
7536 | common/mingw-strerror.c. | |
7537 | * posix-hdep.c (safe_strerror): Remove definition; move it to | |
7538 | common/posix-hdep.c. | |
7539 | * utils.h (safe_strerror): Remove prototype; move to | |
7540 | common/common-utils.h. | |
7541 | ||
3af8af43 JB |
7542 | 2015-01-15 Joel Brobecker <brobecker@adacore.com> |
7543 | ||
7544 | GDB 7.8.2 released. | |
7545 | ||
bafffb51 JB |
7546 | 2015-01-15 Joel Brobecker <brobecker@adacore.com> |
7547 | ||
7548 | * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel | |
7549 | ___XA type if the array has already been fixed. | |
7550 | ||
cdf43629 YQ |
7551 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
7552 | ||
7553 | * Makefile.in (ppc-linux.o): New rule. | |
7554 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o. | |
7555 | * configure.ac: AC_CHECK_FUNCS(getauxval). | |
7556 | * config.in: Re-generated. | |
7557 | * configure: Re-generated. | |
7558 | * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p): | |
7559 | Declare. | |
7560 | * nat/ppc-linux.c: New file. | |
7561 | * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]: | |
7562 | Call ppc64_64bit_inferior_p. | |
7563 | ||
514c5338 YQ |
7564 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
7565 | ||
7566 | * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to | |
7567 | nat/ppc-linux.h. | |
7568 | (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise. | |
7569 | (PPC_FEATURE_HAS_DFP): Likewise. | |
7570 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise. | |
7571 | (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise. | |
7572 | (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise. | |
7573 | Include "nat/ppc-linux.h". | |
7574 | * nat/ppc-linux.h: New file. | |
7575 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h. | |
7576 | ||
5589af0e PA |
7577 | 2015-01-14 Pedro Alves <palves@redhat.com> |
7578 | ||
7579 | PR gdb/17525 | |
7580 | * breakpoint.c: Include "interps.h". | |
7581 | (bpstat_do_actions_1): Also check whether the interpreter is | |
7582 | async. | |
7583 | ||
6c400b59 PA |
7584 | 2015-01-14 Pedro Alves <palves@redhat.com> |
7585 | ||
7586 | PR cli/17828 | |
7587 | * infrun.c (reinstall_readline_callback_handler_cleanup): Don't | |
7588 | reinstall if the interpreter is sync. | |
7589 | ||
e02c96a7 DE |
7590 | 2015-01-13 Doug Evans <dje@google.com> |
7591 | ||
7592 | * objfiles.c (objfile_filename): New function. | |
7593 | * objfiles.h (objfile_filename): Declare it. | |
7594 | (objfile_name): Add function comment. | |
7595 | * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the | |
7596 | bfd file name (which may be realpath'd), and the original name. | |
7597 | ||
3b2f13ff JB |
7598 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
7599 | ||
7600 | * NEWS: Create a new section for the next release branch. | |
7601 | Rename the section of the current branch, now that it has | |
7602 | been cut. | |
7603 | ||
b4cfe7f8 JB |
7604 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
7605 | ||
7606 | GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37): | |
7607 | * version.in: Bump version to 7.9.50.DATE-cvs. | |
7608 | ||
92fc2e69 JB |
7609 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
7610 | ||
7611 | * nat/linux-procfs.c (linux_proc_attach_tgid_threads): | |
7612 | Remove trailing new-line in argument of call to warning. | |
7613 | ||
f71f0b0d JB |
7614 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
7615 | ||
7616 | * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing | |
7617 | new-line in argument of call to "warning". | |
7618 | ||
04dccad0 JB |
7619 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
7620 | ||
7621 | * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found | |
7622 | in static block, then try searching for primitive types. | |
7623 | ||
08b13bdd PP |
7624 | 2015-01-12 Patrick Palka <patrick@parcs.ath.cx> |
7625 | ||
7626 | * top.h (gdb_add_history): Declare. | |
7627 | * top.c (command_count): New variable. | |
7628 | (gdb_add_history): New function. | |
7629 | (gdb_safe_append_history): New static function. | |
7630 | (quit_force): Call it. | |
7631 | (command_line_input): Use gdb_add_history instead of | |
7632 | add_history. | |
7633 | * event-top.c (command_line_handler): Likewise. | |
7634 | ||
4ac15b59 JC |
7635 | 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch) |
7636 | ||
7637 | PR gdb/17046 | |
7638 | * darwin-nat.c: Replace <machine/setjmp.h> #include by | |
7639 | <setjmp.h> #include. | |
7640 | ||
005e54bb DE |
7641 | 2015-01-11 Doug Evans <xdje42@gmail.com> |
7642 | ||
7643 | * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME. | |
7644 | ||
439250fb DE |
7645 | 2015-01-11 Doug Evans <xdje42@gmail.com> |
7646 | ||
7647 | PR gdb/15830 | |
7648 | * NEWS: The "maint demangle" command is renamed as "demangle". | |
7649 | * demangle.c: #include cli/cli-utils.h, language.h. | |
7650 | (demangle_command): New function. | |
7651 | (_initialize_demangle): Add new command "demangle". | |
7652 | * maint.c (maintenance_demangle): Stub out. | |
7653 | (_initialize_maint_cmds): Update help text for "maint demangle", | |
7654 | and mark as deprecated. | |
7655 | ||
ebf3aa72 MK |
7656 | 2015-01-11 Mark Kettenis <kettenis@gnu.org> |
7657 | ||
7658 | * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that | |
7659 | inferior_thread is a function. | |
7660 | ||
6bf045cd PP |
7661 | 2015-01-09 Patrick Palka <patrick@parcs.ath.cx> |
7662 | ||
7663 | * Makefile.in (.y.c): Don't munge yacc's #line | |
7664 | directives. | |
7665 | ||
588dcc3e PP |
7666 | 2015-01-09 Patrick Palka <patrick@parcs.ath.cx> |
7667 | ||
7668 | * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper | |
7669 | to prompt for input. | |
7670 | * tui/tui-hooks.c (tui_query_hook): Remove. | |
7671 | (tui_install_hooks): Don't set deprecated_query_hook. | |
7672 | * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in | |
7673 | height calculation. Always update the command window's cur_line. | |
7674 | ||
9c02b525 PA |
7675 | 2015-01-09 Pedro Alves <palves@redhat.com> |
7676 | ||
7677 | * breakpoint.c (hardware_breakpoint_inserted_here_p): New | |
7678 | function. | |
7679 | * breakpoint.h (hardware_breakpoint_inserted_here_p): New | |
7680 | declaration. | |
7681 | * linux-nat.c (linux_nat_status_is_event): Move higher up in file. | |
7682 | (linux_resume_one_lwp): Store the thread's PC. Adjust to clear | |
7683 | stop_reason. | |
7684 | (check_stopped_by_watchpoint): New function. | |
7685 | (save_sigtrap): Reimplement. | |
7686 | (linux_nat_stopped_by_watchpoint): Adjust. | |
7687 | (linux_nat_lp_status_is_event): Delete. | |
7688 | (stop_wait_callback): Only call save_sigtrap after storing the | |
7689 | pending status. | |
7690 | (status_callback): If the thread had been stopped for a breakpoint | |
7691 | that has since been removed, discard the event and resume the LWP. | |
7692 | (count_events_callback, select_event_lwp_callback): Use | |
7693 | lwp_status_pending_p instead of linux_nat_lp_status_is_event. | |
7694 | (cancel_breakpoint): Rename to ... | |
7695 | (check_stopped_by_breakpoint): ... this. Record whether the LWP | |
7696 | stopped for a software breakpoint or hardware breakpoint. | |
7697 | (select_event_lwp): Only give preference to the stepping LWP in | |
7698 | all-stop mode. Adjust comments. | |
7699 | (stop_and_resume_callback): Remove references to new_pending_p. | |
7700 | (linux_nat_filter_event): Likewise. Leave exit events of the | |
7701 | leader thread pending here. Handle signal short circuiting here. | |
7702 | Only call save_sigtrap after storing the pending waitstatus. | |
7703 | (linux_nat_wait_1): Remove 'retry' label. Remove references to | |
7704 | new_pending. Don't handle leaving events the caller is not | |
7705 | interested in pending here, nor handle signal short-circuiting | |
7706 | here. Also give equal priority to all LWPs that have had events | |
7707 | in non-stop mode. If reporting a software breakpoint event, | |
7708 | unadjust the LWP's PC. | |
7709 | * linux-nat.h (enum lwp_stop_reason): New. | |
7710 | (struct lwp_info) <stop_pc>: New field. | |
7711 | (struct lwp_info) <stopped_by_watchpoint>: Delete field. | |
7712 | (struct lwp_info) <stop_reason>: New field. | |
7713 | * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust. | |
7714 | ||
8af756ef PA |
7715 | 2015-01-09 Pedro Alves <palves@redhat.com> |
7716 | ||
7717 | * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>: | |
7718 | Set the LWP's 'resumed' flag. | |
7719 | ||
8a99810d PA |
7720 | 2015-01-09 Pedro Alves <palves@redhat.com> |
7721 | ||
7722 | * linux-nat.c (linux_resume_one_lwp): New function. | |
7723 | (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp. | |
7724 | (linux_nat_resume): Use lwp_status_pending_p and | |
7725 | linux_resume_one_lwp. | |
7726 | (linux_handle_syscall_trap): Use linux_resume_one_lwp. | |
7727 | (linux_handle_extended_wait): Use linux_resume_one_lwp. | |
7728 | (status_callback, running_callback): Use lwp_status_pending_p. | |
7729 | (lwp_status_pending_p): New function. | |
7730 | (stop_and_resume_callback): Use lwp_status_pending_p. | |
7731 | (linux_nat_filter_event): Use linux_resume_one_lwp. | |
7732 | (linux_nat_wait_1): Always use status_callback to look for an LWP | |
7733 | with a pending status. Use linux_resume_one_lwp. | |
7734 | (resume_stopped_resumed_lwps): Use lwp_status_pending_p and | |
7735 | linux_resume_one_lwp. | |
7736 | ||
f7ce857f PA |
7737 | 2015-01-09 Pedro Alves <palves@redhat.com> |
7738 | ||
7739 | * breakpoint.c (bp_location_inserted_here_p): New function, | |
7740 | factored out from ... | |
7741 | (breakpoint_inserted_here_p): ... here. Use | |
7742 | ALL_BP_LOCATIONS_AT_ADDR. | |
7743 | (software_breakpoint_inserted_here_p): Use | |
7744 | bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR. | |
7745 | ||
c1a747c1 PA |
7746 | 2014-01-09 Pedro Alves <palves@redhat.com> |
7747 | ||
7748 | Skip enabling event reporting if the kernel supports | |
7749 | PTRACE_EVENT_CLONE. | |
7750 | * linux-thread-db.c: Include "nat/linux-ptrace.h". | |
7751 | (thread_db_use_events): New function. | |
7752 | (try_thread_db_load_1): Check thread_db_use_events before enabling | |
7753 | event reporting. | |
7754 | (update_thread_state): New function. | |
7755 | (attach_thread): Use it. Check thread_db_use_events before | |
7756 | enabling event reporting. | |
7757 | (thread_db_detach): Check thread_db_use_events before disabling | |
7758 | event reporting. | |
7759 | (find_new_threads_callback): Check thread_db_use_events before | |
7760 | enabling event reporting. Update the thread's state if not using | |
7761 | libthread_db events. | |
7762 | ||
a33e3959 PA |
7763 | 2015-01-09 Pedro Alves <palves@redhat.com> |
7764 | ||
7765 | * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're | |
7766 | about to wait for is > 0. | |
7767 | * linux-thread-db.c (find_new_threads_callback): Ignore thread if | |
7768 | the kernel thread ID is -1. | |
7769 | ||
8784d563 PA |
7770 | 2015-01-09 Pedro Alves <palves@redhat.com> |
7771 | ||
7772 | * linux-nat.c (attach_proc_task_lwp_callback): New function. | |
7773 | (linux_nat_attach): Use linux_proc_attach_tgid_threads. | |
7774 | (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's | |
7775 | ptrace option flags. | |
7776 | * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New | |
7777 | field. | |
7778 | * nat/linux-procfs.c: Include <dirent.h>. | |
7779 | (linux_proc_get_int): New parameter "warn". Handle it. | |
7780 | (linux_proc_get_tgid): Adjust. | |
7781 | (linux_proc_get_tracerpid): Rename to ... | |
7782 | (linux_proc_get_tracerpid_nowarn): ... this. | |
7783 | (linux_proc_pid_get_state): New function, factored out from | |
7784 | (linux_proc_pid_has_state): ... this. Add new parameter "warn" | |
7785 | and handle it. | |
7786 | (linux_proc_pid_is_gone): New function. | |
7787 | (linux_proc_pid_is_stopped): Adjust. | |
7788 | (linux_proc_pid_is_zombie_maybe_warn) | |
7789 | (linux_proc_pid_is_zombie_nowarn): New functions. | |
7790 | (linux_proc_pid_is_zombie): Use | |
7791 | linux_proc_pid_is_zombie_maybe_warn. | |
7792 | (linux_proc_attach_tgid_threads): New function. | |
7793 | * nat/linux-procfs.h (linux_proc_get_tgid): Update comment. | |
7794 | (linux_proc_get_tracerpid): Rename to ... | |
7795 | (linux_proc_get_tracerpid_nowarn): ... this, and update comment. | |
7796 | (linux_proc_pid_is_gone): New declaration. | |
7797 | (linux_proc_pid_is_zombie): Update comment. | |
7798 | (linux_proc_pid_is_zombie_nowarn): New declaration. | |
7799 | (linux_proc_attach_lwp_func): New typedef. | |
7800 | (linux_proc_attach_tgid_threads): New declaration. | |
7801 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to | |
7802 | use nowarn functions. | |
7803 | (linux_ptrace_attach_fail_reason_string): Move here from | |
7804 | gdbserver/linux-low.c and rename. | |
7805 | (ptrace_supports_feature): If the current ptrace options are not | |
7806 | known yet, check them now, instead of asserting. | |
7807 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string): | |
7808 | Declare. | |
7809 | ||
883ed13e PA |
7810 | 2015-01-09 Pedro Alves <palves@redhat.com> |
7811 | ||
7812 | * linux-thread-db.c (thread_db_find_new_threads_silently) | |
7813 | (try_thread_db_load_1, try_thread_db_load, thread_db_load_search) | |
7814 | (find_new_threads_once): Print debug output on gdb_stdlog. | |
7815 | ||
1710aab8 CG |
7816 | 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com> |
7817 | Pedro Alves <palves@redhat.com> | |
7818 | ||
7819 | * compile/compile.c: Include "gdb_wait.h". | |
7820 | (do_rmdir): Check return value, and free 'zap'. | |
7821 | ||
b597c318 YQ |
7822 | 2015-01-08 Pedro Alves <palves@redhat.com> |
7823 | Yao Qi <yao@codesourcery.com> | |
7824 | ||
7825 | * dwarf2loc.c (indirect_pieced_value): Don't call | |
7826 | gdb_sign_extend. Call extract_signed_integer instead. | |
7827 | * utils.c (gdb_sign_extend): Remove. | |
7828 | * utils.h (gdb_sign_extend): Remove declaration. | |
7829 | ||
025ac414 PM |
7830 | 2015-01-07 Pierre Muller <muller@sourceware.org> |
7831 | ||
7832 | PR symtab/17811 | |
7833 | * stabsread.c (define_symbol): Set language for C++ special symbols. | |
7834 | ||
fa5af12a PP |
7835 | 2015-01-07 Patrick Palka <patrick@parcs.ath.cx> |
7836 | ||
7837 | * inflow.c (initial_gdb_ttystate): Tweak comment. | |
7838 | ||
ea42d6f8 JB |
7839 | 2015-01-07 Joel Brobecker <brobecker@adacore.com> |
7840 | ||
7841 | * inflow.c (set_initial_gdb_ttystate): Add empty line after | |
7842 | comment documenting function. | |
7843 | ||
6a06d660 PP |
7844 | 2015-01-07 Patrick Palka <patrick@parcs.ath.cx> |
7845 | ||
7846 | * terminal.h (set_initial_gdb_ttystate): Declare. | |
7847 | * inflow.c (initial_gdb_ttystate): New static variable. | |
7848 | (set_initial_gdb_ttystate): New setter. | |
7849 | (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate | |
7850 | instead of our current terminal state. | |
7851 | * top.c (gdb_init): Call set_initial_gdb_ttystate. | |
7852 | ||
e810d75b JB |
7853 | 2015-01-07 Joel Brobecker <brobecker@adacore.com> |
7854 | ||
7855 | * guile/scm-type.c (tyscm_array_1): Add comment. | |
7856 | * python/py-type.c (typy_array_1): Add comment. | |
7857 | ||
fce10a84 JB |
7858 | 2015-01-06 Joel Brobecker <brobecker@adacore.com> |
7859 | ||
7860 | * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range | |
7861 | error if N2 is equal to N1 - 1. | |
7862 | ||
8503d6e1 JB |
7863 | 2015-01-06 Joel Brobecker <brobecker@adacore.com> |
7864 | ||
7865 | * python/py-type.c (typy_array_1): Do not raise negative-length | |
7866 | exception if N2 is equal to N1 - 1. | |
7867 | ||
4d29c0a8 DE |
7868 | 2015-01-03 Doug Evans <xdje42@gmail.com> |
7869 | ||
7870 | * c-exp.y: Whitespace cleanup. | |
7871 | (classify_inner_name): Remove extra ;. | |
7872 | ||
eaa6a9a4 MR |
7873 | 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com> |
7874 | ||
7875 | * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack | |
7876 | offset signed. | |
7877 | ||
02fe9972 DE |
7878 | 2015-01-02 Doug Evans <dje@google.com> |
7879 | ||
7880 | * dwarf2read.c (setup_type_unit_groups): Remove outdated comment. | |
7881 | ||
e2ada9cb DE |
7882 | 2015-01-02 Doug Evans <dje@google.com> |
7883 | ||
7884 | * symtab.h (struct symbol): Fix typo in comment. | |
7885 | ||
32d0add0 JB |
7886 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
7887 | ||
7888 | Update year range in copyright notice of all files. | |
7889 | ||
76f2b779 JB |
7890 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
7891 | ||
7892 | * top.c (print_gdb_version): Update copyright year to 2015. | |
7893 | ||
077309e2 | 7894 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
6bf6fd09 | 7895 | |
077309e2 | 7896 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014. |
6bf6fd09 | 7897 | |
077309e2 | 7898 | For older changes see ChangeLog-2014. |
c906108c SS |
7899 | \f |
7900 | Local Variables: | |
7901 | mode: change-log | |
7902 | left-margin: 8 | |
7903 | fill-column: 74 | |
7904 | version-control: never | |
57da7796 | 7905 | coding: utf-8 |
c906108c | 7906 | End: |