]>
Commit | Line | Data |
---|---|---|
c02866a0 MS |
1 | 2010-05-10 Michael Snyder <[email protected]> |
2 | ||
3 | * utils.c (do_fclose_cleanup) Restore local variable. | |
4 | ||
06280d23 DE |
5 | 2010-05-09 Doug Evans <[email protected]> |
6 | ||
7 | * record.c (init_record_core_ops): Rename record_core to record-core. | |
8 | ||
fa07e785 JB |
9 | 2010-05-08 Joel Brobecker <[email protected]> |
10 | ||
11 | Implement task switching on pa-hpux. | |
12 | * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function. | |
13 | (inf_ttrace_target): Set t->to_get_ada_task_ptid. | |
14 | ||
4c680d1d PM |
15 | 2010-05-08 Pierre Muller <[email protected]> |
16 | ||
17 | * valops.c (find_overload_match): Add missing i18n markup. | |
18 | ||
28e176a6 PM |
19 | 2010-05-08 Pierre Muller <[email protected]> |
20 | ||
21 | * p-exp.y (exp : SIZEOF '(' exp ')'): New rule. | |
22 | ||
48cb83fd JK |
23 | 2010-05-08 Jan Kratochvil <[email protected]> |
24 | ||
25 | * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg | |
26 | list for the obconcat call. | |
27 | * mdebugread.c (parse_symbol): Likewise. | |
28 | * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev): | |
29 | Likewise. | |
30 | * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'. | |
31 | New variable ap. Remove variables len and val. | |
32 | * symfile.h (obconcat): Likewise for the prototype. | |
33 | ||
f92adf3c MS |
34 | 2010-05-07 Michael Snyder <[email protected]> |
35 | ||
36 | * python/python.c (execute_gdb_command): Remove unused variables. | |
37 | * python/py-block.c (gdbpy_block_for_pc): Remove unused variable. | |
38 | * python/py-breakpoint.c (gdbpy_breakpoint_created): | |
39 | Remove unused variable. | |
40 | * python/py-cmd.c (cmdpy_function): Remove unused variable. | |
41 | (cmdpy_completer): Remove unused variable. | |
42 | * python/py-frame.c (frapy_find_sal): Remove unused variable. | |
43 | * python/py-function.c (fnpy_call): Remove unused variable. | |
44 | * python/py-objfile.c (objfile_to_objfile_object): | |
45 | Remove unused variable. | |
46 | * python/py-param.c (parmpy_init): Remove unused variable. | |
47 | * python/py-prettyprint.c (apply_varobj_pretty_printer): | |
48 | Remove unused variable. | |
49 | (gdbpy_default_visualizer): Remove unused variable. | |
50 | * python/py-progspace.c (pspace_to_pspace_object): | |
51 | Remove unused variable. | |
52 | * python/py-symtab.c (symtab_and_line_to_sal_object): | |
53 | Remove unused variable. | |
54 | * python/py-type.c (typy_template_argument): | |
55 | Remove unused variable. | |
56 | * python/py-value.c (valpy_string): Remove unused variable. | |
57 | (convert_value_from_python): Remove unused variables. | |
58 | ||
d160942f MS |
59 | 2010-05-07 Michael Snyder <[email protected]> |
60 | ||
61 | * valops.c (value_cast_pointers): Restore unused variable 'type1', | |
62 | and use it to compute variable 't1'. | |
63 | ||
587542ab JB |
64 | 2010-05-07 Joel Brobecker <[email protected]> |
65 | ||
66 | * ada-lang.c (assign_aggregate): Remove unused variable. | |
67 | ||
7322dca9 SW |
68 | 2010-05-07 Sami Wagiaalla <[email protected]> |
69 | ||
70 | PR C++/7943: | |
71 | * valops.c (find_overload_match): Handle fsym == NULL case. | |
72 | Add int no_adl argument. | |
73 | (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl | |
74 | when appropriate. | |
75 | Add int no_adl argument. | |
76 | (find_oload_champ_namespace): Add int no_adl argument. | |
77 | * parse.c (operator_length_standard): Return length for OP_ADL_FUNC | |
78 | expression. | |
79 | * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case. | |
80 | * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case. | |
81 | Evaluate arguments and use them to perform ADL lookup. | |
82 | Pass no_adl argument to find_overload_match. | |
83 | Disable adl lookup when evaluating a fully qualified OP_FUNCALL. | |
84 | * cp-support.h: Added prototype for | |
85 | make_symbol_overload_list_namespace. | |
86 | * cp-support.c (make_symbol_overload_list_namespace): New function. | |
87 | (make_symbol_overload_list_adl_namespace): New function. | |
88 | (make_symbol_overload_list_adl): New function. | |
89 | (make_symbol_overload_list_using): Moved code to add function to | |
90 | overload set to make_symbol_overload_list_namespace. | |
91 | * c-exp.y: create UNKNOWN_CPP_NAME token. | |
92 | Add parse rule for ADL functions. | |
93 | (classify_name): Recognize an UNKNOWN_CPP_NAME. | |
94 | ||
3f1f6884 JK |
95 | 2010-05-07 Jan Kratochvil <[email protected]> |
96 | ||
97 | * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as | |
98 | sentinel. | |
99 | ||
3caf13b4 JB |
100 | 2010-05-07 Joel Brobecker <[email protected]> |
101 | ||
102 | Implement task switching on solaris targets. | |
103 | * sol-thread.c (thread_db_find_thread_from_tid) | |
104 | (sol_get_ada_task_ptid): New functions. | |
105 | (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid. | |
106 | ||
94b0dee1 PA |
107 | 2010-05-07 Pedro Alves <[email protected]> |
108 | ||
109 | * remote.c (remote_query_supported_append): Use reconcat. | |
110 | (remote_query_supported): Install a cleanup. Use reconcat. | |
111 | ||
1408c251 PA |
112 | 2010-05-07 Pedro Alves <[email protected]> |
113 | ||
114 | * gdbarch.sh (qsupported): Delete. | |
115 | * gdbarch.h, gdbarch.c: Regenerate. | |
116 | * remote.c (remote_query_supported): Remove use of | |
117 | gdbarch_qsupported. | |
118 | ||
f8e50cfe SDJ |
119 | 2010-05-06 Sergio Durigan Junior <[email protected]> |
120 | ||
121 | * xml-syscall.c (syscall_start_syscalls_info): Remove unused | |
122 | function. | |
123 | ||
8ea13695 MS |
124 | 2010-05-06 Michael Snyder <[email protected]> |
125 | ||
c6913b7d MS |
126 | * xml-support.c (xinclude_start_include): Delete unused variable. |
127 | (xml_process_xincludes): Delete unused variable. | |
128 | * xml-syscall.c (syscall_parse_xml): Delete unused variable. | |
129 | * target-descriptions.c (tdesc_gdb_type): Delete unused variable. | |
130 | (tdesc_find_arch_register): Delete unused variable. | |
131 | (tdesc_use_registers): Delete unused variable. | |
132 | * xml-tdesc.c (tdesc_start_target): Delete unused variable. | |
133 | * inferior.c (print_inferior): Delete unused variable. | |
134 | * record.c (record_open_1): Delete unused variable. | |
135 | (record_restore): Delete unused variable. | |
136 | (cmd_record_save): Delete unused variable. | |
137 | * gcore.c (derive_heap_segment): Delete unused variable. | |
138 | (objfile_find_memory_regions): Use unused variable. | |
139 | * jit.c (jit_inferior_init): Delete unused variable. | |
140 | * progspace.c (clone_program_space): Delete unused variable. | |
141 | (pspace_empty_p): Delete unused variable. | |
142 | ||
1c5465ac MS |
143 | * frame-unwind.c (frame_unwind_find_by_frame): |
144 | Delete unused variable. | |
145 | * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable. | |
146 | * cp-support.c (mangled_name_to_comp): Delete unused variable. | |
147 | (method_name_from_physname): Delete unused variable. | |
148 | (cp_func_name): Delete unused variable. | |
149 | (cp_validate_operator): Delete unused variable. | |
150 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): | |
151 | Delete unused variable. | |
152 | * trad-frame.c (trad_frame_get_prev_register): | |
153 | Delete unused variable. | |
154 | * tramp-frame.c (tramp_frame_cache): Delete unused variable. | |
155 | ||
1be757cf MS |
156 | * serial.c (serial_for_fd): Delete unused variable. |
157 | * mdebugread.c (psymtab_to_symtab_1): Delete unused variable. | |
158 | * top.c (execute_command): Delete unused variable. | |
159 | (init_main): Delete unused variable. | |
160 | * utils.c (do_fclose_cleanup): Delete unused variable. | |
161 | (do_all_inferior_continuations): Delete unused variable. | |
162 | (initialize_utils): Delete unused variable. | |
163 | (internal_problem_mode): Delete unused global. | |
164 | * frame.c (get_prev_frame): Delete unused global. | |
165 | (get_frame_locals_address): Delete unused global. | |
166 | (get_frame_args_address): Delete unused global. | |
167 | ||
9216103f MS |
168 | * p-typeprint.c (pascal_type_print_base): Delete unused variable. |
169 | (pascal_type_print_varspec_prefix): Delete unused variable. | |
170 | * f-typeprint.c (f_type_print_base): Delete unused variable. | |
171 | (f_type_print_varspec_suffix): Delete unused variable. | |
172 | * m2-typeprint.c (m2_print_type): Delete unused variable. | |
173 | (m2_long_set): Delete unused variable. | |
174 | * ada-valprint.c (ada_val_print_1): Delete unused variable. | |
175 | * d-valprint.c (dynamic_array_type): Delete unused variable. | |
176 | * f-valprint.c (f77_get_dynamic_length_of_aggregate): | |
177 | Delete unused variable. | |
178 | (f77_create_arrayprint_offset_tbl): Delete unused variable. | |
179 | * m2-valprint.c (m2_val_print): Delete unused variable. | |
180 | ||
34fa1d9d MS |
181 | * ui-out.c (ui_out_field_int): Delete unused variable. |
182 | (ui_out_field_fmt_int): Delete unused variable. | |
183 | * varobj.c (varobj_list_children): Delete unused variable. | |
184 | (varobj_set_value): Delete unused variable. | |
185 | (install_new_value_visualizer): Delete unused variable. | |
186 | (varobj_set_visualizer): Delete unused variable. | |
187 | (varobj_update): Delete unused variable. | |
188 | (varobj_editable_p): Delete unused variable. | |
189 | (c_value_of_root): Delete unused variable. | |
190 | (cplus_describe_child): Delete unused variable. | |
191 | ||
b5385fc0 MS |
192 | * ada-lang.c (add_defn_to_vec): Delete unused variable. |
193 | (decode_constrained_packed_array_type): Delete unused variable. | |
194 | (add_defn_to_vec): Delete unused variable. | |
195 | (symbol_completion_match): Delete unused variable. | |
196 | (value_tag_from_contents_and_address): Delete unused variable. | |
197 | (ada_evaluate_subexp): Delete unused variable. | |
198 | * c-lang.c (classify_type): Delete unused variable. | |
199 | * f-lang.c (f_printstr): Delete unused variable. | |
200 | * objc-lang.c (objc_printstr): Delete unused variable. | |
201 | * ada-tasks.c (get_known_tasks_addr): Delete unused variable. | |
202 | * jv-lang.c (type_from_class): ifdef unused variable. | |
203 | (java_class_name_from_physname): Delete unused variable. | |
204 | * m2-lang.c (m2_printstr): Delete unused variable. | |
205 | ||
4fc06681 MS |
206 | * objfiles.c (objfile_relocate): Delete unused variable. |
207 | * maint.c (_initialize_maint_cmds): Delete unused variable. | |
208 | * demangle.c (_initialize_demangler): Delete unused variable. | |
209 | * corefile.c (reopen_exec_file): Delete unused variable. | |
210 | * dwarf2expr.c (dwarf2_read_address): Delete unused variable. | |
211 | * dwarf2-frame.c (decode_frame_entry): Delete unused variable. | |
212 | ||
6b4398f7 MS |
213 | * osabi.c (_initialize_gdb_osabi): Delete unused variable. |
214 | * memattr.c (mem_delete): Delete unused variable. | |
215 | (invalidate_target_mem_regions): Delete unused variable. | |
216 | * mem-break.c (default_memory_insert_breakpoint): | |
217 | Delete unused variable. | |
218 | * target.c (target_get_osdata): Delete unused variable. | |
219 | * parse.c (length_of_subexp): Delete unused variable. | |
220 | (prefixify_subexp): Delete unused variable. | |
221 | (exp_iterate): Delete unused variable. | |
222 | * reverse.c (delete_bookmark_command): Delete unused variable. | |
223 | ||
308d96ed MS |
224 | * macrocmd.c (_initialize_macrocmd): Delete unused variable. |
225 | * macroexp.c (gather_arguments): Delete unused variable. | |
226 | (substitute_args): Delete unused variable. | |
227 | * completer.c (gdb_completer_loc_break_characters): Unused, delete. | |
228 | * gdbarch.sh (gdbarch_printable_names): Delete unused variable. | |
229 | (_initialize_gdbarch): Delete unused variable. | |
230 | * gdbarch.c, gdbarch.h: Regenerate. | |
231 | * arch-utils.c (initialize_current_architecture): | |
232 | Delete unused variable. | |
233 | (_initialize_gdbarch_utils): Delete unused variable. | |
234 | * gdbtypes.c (make_cv_type): Delete unused variable. | |
235 | (make_type_with_address_space): Delete unused variable. | |
236 | ||
167e4384 MS |
237 | * linespec.c (decode_compound): Delete unused variable. |
238 | * dictionary.c (iterator_next_hashed): Delete unused variable. | |
239 | * infcall.c (call_function_by_hand): Delete unused variable. | |
240 | * infcmd.c (step_1): Delete unused variable. | |
241 | (registers_info): Delete unused variable. | |
242 | (attach_command): Delete unused variable. | |
243 | * infrun.c (follow_exec): Delete unused variable. | |
244 | (handle_step_into_function_backwards): Delete unused variable. | |
245 | (_initialize_infrun): Delete unused variable. | |
246 | * stack.c (parse_frame_specification_1): Delete unused variable. | |
247 | (frame_info): Delete unused variable. | |
248 | (backtrace_command_1): Delete unused variable. | |
249 | (catch_info): Delete unused variable. | |
250 | ||
8f78b329 MS |
251 | * eval.c (evaluate_subexp_standard): Delete unused variable. |
252 | * valops.c (value_cast_pointers): Delete unused variable. | |
253 | (value_dynamic_cast): Delete unused variable. | |
254 | (value_array): Delete unused variable. | |
255 | (find_overload_match): Delete unused variable. | |
256 | * valarith.c (value_subscript): Delete unused variable. | |
257 | (value_binop): Delete unused variable. | |
258 | * valprint.c (_initialize_valprint): Delete unused variable. | |
259 | * printcmd.c (print_command_1): Delete unused variable. | |
260 | (address_info): Delete unused variable. | |
261 | (printf_command): Delete unused variable. | |
262 | ||
8ea13695 MS |
263 | * auxv.c (target_auxv_search): Delete unused variable. |
264 | * blockframe.c (get_frame_block): Delete unused variable. | |
265 | * regcache.c (regcache_cpy): Delete unused variable. | |
266 | (regcache_cpy_no_passthrough): Delete unused variable. | |
267 | * charset.c (wchar_iterate): Delete unused variable. | |
268 | (find_charset_names): Delete unused variable. | |
269 | (_initialize_charset): Delete unused variable. | |
270 | * disasm.c (do_mixed_source_and_assembly): | |
271 | Delete unused variable. | |
272 | * source.c (set_default_source_symtab_and_line): | |
273 | Delete unused variable. | |
274 | (set_substitute_path_command): Delete unused variable. | |
275 | * value.c (preserve_values): Delete unused variable. | |
276 | (value_from_double): Delete unused variable. | |
277 | ||
afe38095 MS |
278 | 2010-05-05 Michael Snyder <[email protected]> |
279 | ||
952a6d41 MS |
280 | * psymtab.c (lookup_partial_symbol): Delete unused variable. |
281 | (find_last_source_symtab_from_partial): Delete unused variable. | |
282 | * symfile.c (place_section): Delete unused variable. | |
283 | (default_symfile_offsets): Delete unused variable. | |
284 | (get_debug_link_info): Delete unused variable. | |
285 | (find_separate_debug_file_by_debuglink): Delete unused variable. | |
286 | (add_symbol_file_command): Delete unused variable. | |
287 | (symfile_find_segment_sections): Delete unused variable. | |
288 | * symmisc.c (free_symtab): Delete unused variable. | |
289 | (dump_symtab_1): Delete unused variable. | |
290 | * symtab.c (lookup_symbil_aux_quick): Delete unused variable. | |
291 | (find_pc_sect_symtab): Delete unused variable. | |
292 | (skip_prologue_using_lineinfo): Delete unused variable. | |
293 | (sources_info): Delete unused variable. | |
294 | (completion_list_add_name): Delete unused variable. | |
295 | (expand_line_sal): Delete unused variable. | |
296 | ||
afe38095 MS |
297 | * breakpoint.c (validate_commands_for_breakpoint): |
298 | Delete unused variables. | |
299 | (insert_catchpoint): Delete unused variable. | |
300 | (update_watchpoint): Delete unused variable. | |
301 | (insert_bp_location): Delete unused variable. | |
302 | (insert_breakpoint_locations): Delete unused variable. | |
303 | (remove_breakpoint_1): Delete unused variable. | |
304 | (software_breakpoint_inserted_here_p): Delete unused variable. | |
305 | (watchpoints_triggered): Delete unused variable. | |
306 | (bpstat_check_watchpoint): Delete unused variable. | |
307 | (bpstat_stop_status): Delete unused variable. | |
308 | (print_one_breakpoint_location): Delete unused variable. | |
309 | (allocate_bp_location): Delete unused variable. | |
310 | (create_breakpoint): Delete unused variable. | |
311 | (watch_command_1): Delete unused variable. | |
312 | (catch_exception_command_1): Delete unused variable. | |
313 | (catch_ada_exception_command): Delete unused variable. | |
314 | (delete_breakpoint): Delete unused variable. | |
315 | (breakpoint_re_set_one): Delete unused variable. | |
316 | (do_enable_breakpoint): Delete unused variable. | |
317 | ||
eda5a4d7 PA |
318 | 2010-05-06 Pedro Alves <[email protected]> |
319 | ||
320 | * amd64-tdep.c: Include disasm.h. | |
321 | (amd64_insn_length_fprintf, amd64_insn_length_init_dis) | |
322 | (amd64_insn_length): Moved to disasm.c and renamed. | |
323 | (fixup_riprel): Adjust. | |
324 | * disasm.c (do_ui_file_delete): New. | |
325 | (gdb_insn_length): New. | |
326 | (gdb_buffered_insn_length_fprintf) | |
327 | (gdb_buffered_insn_length_init_dis) | |
328 | (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and | |
329 | renamed. | |
330 | * disasm.h (gdb_insn_length): Declare. | |
331 | (gdb_buffered_insn_length): Declare. | |
332 | ||
02357a4a PA |
333 | 2010-05-06 Pedro Alves <[email protected]> |
334 | ||
335 | * remote.c (clear_threads_parsing_context): New. | |
336 | (remote_threads_info): Delete unused null_cleanup. Install a | |
337 | cleanup to clear the threads_parsing_context in case parsing | |
338 | throws. | |
339 | ||
8c5630cb MS |
340 | 2010-05-05 Michael Snyder <[email protected]> |
341 | ||
342 | * c-exp.y (parse_string_or_char): Delete unused variable. | |
343 | (c_lex): Delete unused variable. | |
344 | * cp-name-parser.y (cpname_lex): Delete unused variable. | |
345 | * ada-exp.y (find_primitive_type): Delete unused variable. | |
346 | (write_var_or_type): Delete unused variable. | |
347 | * jv-exp.y (java_parse): Delete unused variable. | |
348 | (push_expression_name): Delete unused variable. | |
349 | * p-exp.y (pascal_lex): Delete unused variable. | |
350 | ||
46c162d4 PA |
351 | 2010-05-05 Pedro Alves <[email protected]> |
352 | ||
353 | * remote.c (remote_threads_info): Really revert previous previous | |
354 | change. | |
355 | ||
0043e6a5 MS |
356 | 2010-05-05 Michael Snyder <[email protected]> |
357 | ||
fa238c03 MS |
358 | * elfread.c (elf_symtab_read): Delete unused variable. |
359 | (find_separate_debug_file_by_buildid): Delete unused variables. | |
360 | (elf_symfile_read): Delete unused variable. | |
361 | ||
362 | * coffread.c (coff_symfile_read): Delete unused variables. | |
363 | ||
364 | * coff-pe-read.c (add_pe_exported_sym): Delete unused variable. | |
365 | (read_pe_exported_syms): Delete unused variable. | |
366 | ||
367 | * stabsread.c (define_symbol): Delete unused variable. | |
368 | ||
369 | * dwarf2read.c (read_type_comp_unit_head): Delete unused variable. | |
370 | (process_psymtab_comp_unit): Delete unused variable. | |
371 | (dwarf2_build_psymtabs_hard): Delete unused variable. | |
372 | (load_partial_comp_unit): Delete unused variable. | |
373 | (create_all_comp_units): Delete unused variable. | |
374 | (scan_partial_symbols): Delete unused variable. | |
375 | (add_partial_symbol): Delete unused variable. | |
376 | (add_partial_namespace): Delete unused variable. | |
377 | (add_partial_enumeration): Delete unused variable. | |
378 | (load_full_comp_unit): Delete unused variable. | |
379 | (process_full_comp_unit): Delete unused variable. | |
380 | (read_file_scope): Delete unused variable. | |
381 | (read_type_unit_scope): Delete unused variable. | |
382 | (process_structure_scope): Delete unused variable. | |
383 | (process_enumeration_scope): Delete unused variable. | |
384 | (read_tag_ptr_to_member_type): Delete unused variable. | |
385 | (read_typedef): Delete unused variable. | |
386 | (read_partial_die): Delete unused variable. | |
387 | (decode_locdesc): Delete unused variable. | |
388 | (zeroed_partial_die): Delete unused global variable. | |
389 | ||
0043e6a5 MS |
390 | * tui/tui-interp.c (_initialize_tui_interp): |
391 | Delete unused variable. | |
392 | * tui/tui-regs.c tui_display_registers_from): | |
393 | Delete unused variable. | |
394 | (tui_check_register_values): Delete unused variable. | |
395 | (tui_register_format): Delete unused variable. | |
396 | * tui/tui-win.c (_initialize_tui_win): Delete unused variable. | |
397 | * tui/tui-windata.c (tui_display_data_from_line): | |
398 | Delete unused variables. | |
399 | (tui_vertical_data_scroll): Delete unused variables. | |
400 | ||
75721c66 MS |
401 | 2010-05-05 Michael Snyder <[email protected]> |
402 | ||
c31a71f4 MS |
403 | * remote.c (remote_threads_info): Revert questionable part of |
404 | the previous change. | |
405 | ||
406 | 2010-05-05 Michael Snyder <[email protected]> | |
407 | ||
408 | * mi/mi-out.c (mi_table_begin): Delete unused variable. | |
409 | * mi/mi-cmd-var.c (print_varobj): Delete unused variable. | |
410 | (mi_cmd_var_list_children): Delete unused variable. | |
411 | (varobj_update_one): Delete unused variable. | |
412 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables. | |
413 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): | |
414 | Delete unused variable. | |
415 | (mi_cmd_stack_list_variables): Delete unused variable. | |
416 | (list_args_or_locals): Delete unused variable. | |
417 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): | |
418 | Delete unused variables. | |
419 | (mi_cmd_file_list_exec_source_files): Delete unused variable. | |
420 | * mi/mi-cmd-target.c (mi_cmd_target_file_delete): | |
421 | Delete unused variable. | |
422 | * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable. | |
423 | (mi_cmd_interpreter_exec): Delete unused variable. | |
424 | (mi_on_normal_stop): Delete unused variable. | |
425 | * mi/mi-main.c (run_one_inferior): Delete unused variable. | |
426 | (print_one_inferior): Delete unused variables. | |
427 | (mi_execute_command): Delete unused variable. | |
428 | (mi_cmd_execute): Delete unused variable. | |
429 | (timestamp): Delete unused variable. | |
430 | ||
431 | * cli/cli-dump.c (dump_memory_to_file): Delete unused variable. | |
d36fc00b | 432 | (restore_binary_file): Delete unused variable. |
c31a71f4 MS |
433 | * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables. |
434 | * cli/cli-script.c (define_command): Delete unused variables. | |
d36fc00b MS |
435 | (recurse_read_control_structure): Delete unused variable. |
436 | (script_from_file): Delete unused variable. | |
c31a71f4 | 437 | * cli/cli-cmds.c (complete_command): Delete unused variable. |
d36fc00b MS |
438 | (disassemble_command): Delete unused variable. |
439 | ||
440 | * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables. | |
441 | * tracepoint.c (delete_trace_variable_command): | |
442 | Delete unused variables. | |
443 | (encode_actions_1): Delete unused variables. | |
444 | (start_tracing): Delete unused variable. | |
445 | (trace_status_mi): Delete unused variable. | |
446 | (tfind_1): Delete unused variable. | |
447 | (trace_find_pc_command): Delete unused variable. | |
448 | (trace_find_line_command): Delete unused variables. | |
449 | (trace_find_range_command): Delete unused variables. | |
450 | (trace_find_outside_command): Delete unused variables. | |
451 | (parse_tracepoint_definition): Delete unused variables. | |
452 | (tfile_fetch_registers): Delete unused variable. | |
453 | ||
9128a503 MS |
454 | * dcache.c (dcache_init): Delete unused variable. |
455 | (dcache_info): Delete unused variable. | |
456 | ||
aa369b55 | 457 | * remote.c (remote_threads_info): Delete unused variable. |
9128a503 | 458 | (process_stop_reply) :Delete unused variable. |
aa369b55 MS |
459 | (remote_get_trace_status): Delete unused variables. |
460 | ||
9e9547e4 MS |
461 | * linux-thread-db.c (add_thread_db_info): Delete unused variable. |
462 | (thread_from_lwp): Delete unused variable. | |
463 | (enable_thread_event_reporting): Delete unused variable. | |
464 | (check_for_thread_db): Delete unused variables. | |
465 | (thread_db_find_new_threads_2): Delete unused variable. | |
466 | ||
467 | * linux-fork.c (info_checkpoints_command): Delete unused variables. | |
468 | (checkpoint_command): Delete unused variable. | |
469 | (linux_fork_context): Delete unused variables. | |
470 | ||
fa238c03 | 471 | * linux-nat.c (linux_parent_pid): Delete unused global variable. |
75083f7e MS |
472 | (linux_tracefork_child): Delete unused variable. |
473 | (linux_child_follow_fork): Delete unused variable. | |
474 | (linux_nat_detach): Delete unused variable. | |
475 | (linux_handle_extended_wait): Delete unused variable. | |
476 | (linux_nat_has_pending_sigint): Delete unused variable. | |
477 | (linux_nat_find_memory_regions): Delete unused variable. | |
478 | (linux_nat_make_corefile_notes): Delete unused variables. | |
479 | (linux_nat_info_proc_cmd): Delete unused variable. | |
480 | (linux_proc_pending_signals): Delete unused variable. | |
481 | (linux_nat_stop_lwp): Delete unused variables. | |
482 | (_initialize_linux_nat): Delete unused variable. | |
483 | ||
fa238c03 | 484 | * ser-pipe.c (pipe_ops): Delete unused global variable. |
2d148b94 | 485 | |
e0f069a3 MS |
486 | * linux-record.c (record_linux_system_call): |
487 | Delete unused variables. | |
488 | ||
789d24f0 MS |
489 | * corelow.c (core_xfer_partial): Delete unused variables. |
490 | ||
1cd337a5 MS |
491 | * solib-svr4.c (find_program_interpreter): Delete unused variable. |
492 | (svr4_solib_create_inferior_hook): Add ifdef around | |
493 | conditionally-used variable declarations. | |
494 | ||
b00e3f56 MS |
495 | * solib.c (solib_find): Delete unused variable. |
496 | (free_so_symbols): Delete unused variable. | |
497 | (info_sharedlibrary_command): Delete unused variable. | |
498 | (reload_shared_libraries_1): Delete unused variable. | |
499 | (_initialize_solib): Delete unused variable. | |
500 | ||
90f62196 MS |
501 | * i386-tdep.c (i386_supply_xstateregset) Delete unused variable. |
502 | (i386_collect_xstateregset): Delete unused variable. | |
503 | * i387-tdep.c (i387_print_float_info): Delete unused variable. | |
504 | ||
75721c66 MS |
505 | * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx): |
506 | Delete unused variable 'type'. | |
507 | ||
af33db37 JB |
508 | 2010-05-05 Joel Brobecker <[email protected]> |
509 | ||
90f62196 | 510 | * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. * |
63db82b2 JB |
511 | ada-lang.c: Remove comment mentioning these macros. |
512 | * m2-exp.y: Delete commented out code. | |
af33db37 | 513 | |
0497f5b0 JB |
514 | 2010-05-05 Joel Brobecker <[email protected]> |
515 | ||
516 | * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero | |
517 | for array types. | |
518 | * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise. | |
519 | ||
6e39997a PM |
520 | 2010-05-04 Pierre Muller <[email protected]> |
521 | ||
522 | ARI fix: Remove ATTRIBUTE_UNUSED throughout. | |
523 | * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove | |
524 | ATTRIBUTE_UNUSED. | |
525 | (cleanup_kernel_helper_return): Likewise. | |
526 | * arm-tdep.c (copy_unmodified): Likewise. | |
527 | (copy_preload): Likewise. | |
528 | (copy_copro_load_store): Likewise. | |
529 | (cleanup_branch): Likewise. | |
530 | (copy_b_bl_blx): Likewise. | |
531 | (copy_bx_blx_reg): Likewise. | |
532 | (copy_alu_imm): Likewise. | |
533 | (copy_alu_reg): Likewise. | |
534 | (copy_alu_shifted_reg): Likewise. | |
535 | (cleanup_load): Likewise. | |
536 | (cleanup_store): Likewise. | |
537 | (cleanup_block_load_pc): Likewise. | |
538 | (cleanup_svc): Likewise. | |
539 | (copy_undef): Likewise. | |
540 | (copy_unpred): Likewise. | |
541 | * remote.c (register_remote_support_xml): Likewise. | |
542 | ||
1412f70b HZ |
543 | 2010-05-05 Hui Zhu <[email protected]> |
544 | ||
545 | * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment. | |
546 | ||
c4f7c687 MK |
547 | 2010-05-04 Mark Kettenis <[email protected]> |
548 | ||
549 | * remote.c (register_remote_support_xml) | |
550 | (remote_query_supported_append, remote_query_supported): Add cast | |
551 | to NULL used as sentinel. | |
552 | * tracepoint.c (tvariables_info_1): Likewise. | |
553 | * utils.c (add_internal_problem_command): Likewise. | |
554 | ||
63b4f126 MGD |
555 | 2010-05-04 Matthew Gretton-Dann <[email protected]> |
556 | ||
557 | * dwarf2loc.c (read_pieced_value, write_pieced_value, | |
558 | dwarf2_evaluate_loc_desc): Handle not being able to access DWARF | |
559 | registers gracefully. | |
560 | ||
2f1bdd26 MGD |
561 | 2010-05-04 Matthew Gretton-Dann <[email protected]> |
562 | ||
563 | * exec.c (print_section_info): Display entry point without arch | |
564 | specific parts. | |
565 | ||
e1c34c5d PM |
566 | 2010-05-04 Pierre Muller <[email protected]> |
567 | ||
568 | PR exp/11349. | |
569 | * printcmd.c (x_command): Only dereference once implicitly for | |
570 | TYPE_CODE_REF. | |
571 | ||
ae462839 DE |
572 | 2010-05-03 Doug Evans <[email protected]> |
573 | ||
574 | * event-loop.c (gdb_timer): Delete unused global. | |
575 | (create_timer): Update. | |
576 | ||
1ac77ea1 JK |
577 | 2010-05-03 Jan Kratochvil <[email protected]> |
578 | ||
579 | * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the | |
580 | CURRENT->DECLARATION case. | |
581 | * cp-support.h (struct using_direct): Provide extended comment. | |
582 | ||
7c54a108 MK |
583 | 2010-05-03 Mark Kettenis <[email protected]> |
584 | ||
585 | * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from | |
586 | HPPABSD_SIZEOF_GREGS. | |
587 | (HPPAOBSD_SIZEOF_FPREGS): New define. | |
588 | (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset. | |
589 | (hppaobsd_supply_fpregset): New function. | |
590 | (hppaobsd_gregset): Renamed from hppabsd_gregset. | |
591 | (hppaobsd_fpregset): New variable. | |
592 | (hppaobsd_regset_from_core_section): Handle floating-point registers. | |
593 | (_initialize_hppabsd_tdep): Remove spurious blank line. | |
594 | ||
278582cb PM |
595 | 2010-05-03 Pierre Muller <[email protected]> |
596 | ||
597 | PR pascal/11349. | |
598 | * p-valprint.c (pascal_value_print): Always dereference a value with | |
599 | type code TYPE_CODE_REF. | |
600 | ||
f0223081 PA |
601 | 2010-05-03 Pedro Alves <[email protected]> |
602 | ||
603 | * remote.c (remote_notice_signals): New. | |
604 | (remote_start_remote): In non-stop mode, update the remote end on | |
605 | which signals it can silently pass. | |
606 | (init_remote_ops): Install remote_notice_signals. | |
607 | ||
c25c4a8b JK |
608 | 2010-05-02 Jan Kratochvil <[email protected]> |
609 | ||
610 | * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ... | |
611 | * command.h (error_no_arg): ... here. Remove NORETURN, change | |
612 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
613 | * defs.h (NORETURN, ATTR_NORETURN): Remove. | |
614 | (perror_with_name, verror, error, error_stream, vfatal, fatal) | |
615 | (internal_verror, internal_error, nomem): Remove NORETURN, change | |
616 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
617 | * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror) | |
618 | (throw_vfatal, throw_error): Remove NORETURN. | |
619 | (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
620 | * exceptions.h (throw_exception, throw_verror, throw_vfatal) | |
621 | (throw_error, deprecated_throw_reason): Remove NORETURN, change | |
622 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
623 | * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN | |
624 | to ATTRIBUTE_NORETURN for prototype, for the definition only remove | |
625 | NORETURN. | |
626 | * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN. | |
627 | * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to | |
628 | ATTRIBUTE_NORETURN. | |
629 | * target.c (tcomplain): Likewise. | |
630 | * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to | |
631 | ATTRIBUTE_NORETURN. | |
632 | * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror) | |
633 | (internal_error, perror_with_name, nomem): Remove NORETURN. | |
634 | * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to | |
635 | ATTRIBUTE_NORETURN. | |
636 | ||
a0b31db1 JK |
637 | 2010-05-02 Jan Kratochvil <[email protected]> |
638 | ||
639 | * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
640 | * amd64-tdep.c (amd64_insn_length_fprintf): Likewise. | |
641 | * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF. | |
642 | (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
643 | * complaints.c (find_complaint): New ATTRIBUTE_PRINTF. | |
644 | (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
645 | * complaints.h (complaint, internal_complaint): Likewise. | |
646 | * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment. | |
647 | (ATTR_FORMAT): Remove. | |
648 | (query, nquery, yquery, vprintf_filtered, vfprintf_filtered) | |
649 | (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered) | |
650 | (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered) | |
651 | (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf) | |
652 | (xsnprintf, verror, error, vfatal, fatal, internal_verror) | |
653 | (internal_error, internal_vwarning, internal_warning, warning) | |
654 | (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
655 | * disasm.c (fprintf_disasm): Likewise. | |
656 | * exceptions.c (throw_it): Likewise. | |
657 | * exceptions.h (exception_fprintf, throw_verror, throw_vfatal) | |
658 | (throw_error): Likewise. | |
659 | * language.h (type_error, range_error): Likewise. | |
660 | * linespec.c (cplusplus_error): Likewise. | |
661 | * mi/mi-interp.c (mi_interp_query_hook): Likewise. | |
662 | * mi/mi-out.c (mi_field_fmt, mi_message): Likewise. | |
663 | * monitor.c (monitor_debug): Likewise. | |
664 | * parser-defs.h (parser_fprintf): Likewise. | |
665 | * serial.h (serial_printf): Likewise. | |
666 | * tui/tui-hooks.c (tui_query_hook): Likewise. | |
667 | * ui-out.c (default_field_fmt, default_message, uo_field_fmt) | |
668 | (uo_message): Likewise. | |
669 | * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise. | |
670 | * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query): | |
671 | Likewise. | |
672 | * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise. | |
673 | ||
02a45ac0 PA |
674 | 2010-05-02 Pedro Alves <[email protected]> |
675 | ||
676 | * cli-out.c (cli_table_begin, cli_table_body, cli_table_end) | |
677 | (cli_table_header, cli_begin, cli_end, cli_field_int) | |
678 | (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces) | |
679 | (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect): | |
680 | Delete forward declarations. | |
681 | (cli_ui_out_impl): Move below the callbacks. | |
682 | (_initialize_cli_out): Delete. | |
683 | ||
1915ef4f PA |
684 | 2010-05-02 Pedro Alves <[email protected]> |
685 | ||
686 | * README: Use consistent `GDB' and `GDBserver' spellings. | |
687 | ||
0dfb946f JK |
688 | 2010-05-02 Jan Kratochvil <[email protected]> |
689 | ||
690 | * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration. | |
691 | ||
4d533103 PA |
692 | 2010-05-01 Pedro Alves <[email protected]> |
693 | ||
694 | * infrun.c (prepare_for_detach): In non-stop, context switch to | |
695 | the thread that got the event before handling the event. | |
696 | ||
705b5767 TT |
697 | 2010-04-30 Tom Tromey <[email protected]> |
698 | ||
699 | * symtab.c (symbol_set_names): Fix typo. | |
700 | ||
3c0ee1a4 PM |
701 | 2010-04-30 Pierre Muller <[email protected]> |
702 | ||
703 | * python/py-param.c (parm_constants): Avoid ARI warning | |
704 | by adding ARI comment. | |
705 | (parmpy_init): Likewise. | |
706 | ||
ea1fae46 PM |
707 | 2010-04-30 Pierre Muller <[email protected]> |
708 | ||
709 | * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH | |
710 | and created type for re-use. | |
711 | ||
c24d0242 PM |
712 | 2010-04-30 Pierre Muller <[email protected]> |
713 | ||
714 | * NEWS: Mention gdbserver support for x86_64 Windows 64-bit. | |
715 | ||
a26d8d11 DE |
716 | 2010-04-29 Doug Evans <[email protected]> |
717 | ||
718 | * ser-base.h (reschedule): Delete prototype. | |
719 | * ser-base.c (reschedule): Make static. | |
720 | ||
f8624c62 MGD |
721 | 2010-04-29 Matthew Gretton-Dann <[email protected]> |
722 | ||
723 | * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove. | |
724 | (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA. | |
725 | (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for | |
726 | EABI. | |
727 | (arm_linux_init_abi): Set up JB_PC field dependent on FP model in | |
728 | use. | |
729 | ||
e66408ed PA |
730 | 2010-04-29 Pedro Alves <[email protected]> |
731 | ||
732 | PR gdb/11557 | |
733 | ||
734 | * regcache.c (registers_changed): Rename to ... | |
735 | (registers_changed_ptid): ... this, and only delete register cache | |
736 | entries matching the ptid filter argument. | |
737 | (registers_changed): Reimplement on top of registers_changed_ptid. | |
738 | * regcache.h (registers_changed_ptid): Declare. | |
739 | * target.c (target_resume): Flush register caches. | |
740 | ||
d7b32ed3 PM |
741 | 2010-04-29 Phil Muldoon <[email protected]> |
742 | Tom Tromey <[email protected]> | |
743 | Thiago Jung Bauermann <[email protected]> | |
744 | ||
745 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter. | |
746 | (SUBDIR_PYTHON_SRCS): Likewise. | |
747 | (py-parameter.o): New rule. | |
748 | * python/py-parameter.c: New file. | |
749 | * python/python-internal.h (gdbpy_initialize_parameter) | |
750 | (gdbpy_parameter, gdbpy_parameter_value) | |
751 | (gdbpy_parse_command_name): Declare. | |
752 | * python/py-cmd.c (parse_command_name): Rename to | |
753 | gdbpy_parse_command_name. | |
754 | (gdbpy_parse_command_name): Accept a starting list parameter and | |
755 | use over cmdlist. | |
756 | (cmdpy_init): Use gdbpy_parse_command_name. | |
757 | * python/python.c (parameter_to_python): Rename to | |
758 | gdbpy_parameter_to_python. Accept enum var_types and value. | |
759 | (gdbpy_parameter): Use gdbpy_parameter_value. | |
760 | (_initialize_python): Call gdbpy_initialize_parameters. | |
761 | ||
ce72ce41 MGD |
762 | 2010-04-29 Matthew Gretton-Dann <[email protected]> |
763 | ||
764 | * MAINTAINERS: Add myself for write after approval privileges. | |
765 | ||
6aecb9c2 JB |
766 | 2010-04-29 Mihail Zenkov <[email protected]> |
767 | ||
768 | D language support. | |
769 | * Makefile.in (SFILES): Add d-lang.c d-valprint.c. | |
770 | (COMMON_OBS): Add d-lang.o d-valprint.o. | |
771 | (HFILES_NO_SRCDIR): Add d-lang.h. | |
772 | * NEWS: Mention D language support. | |
773 | * c-lang.c (c_emit_char, exp_descriptor_c): Make public. | |
774 | * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration. | |
775 | * d-lang.c: New file. | |
776 | * d-lang.h: New file. | |
777 | * d-valprint.c: New file. | |
778 | * defs.h (enum language): Add language_d. | |
779 | * dwarf2read.c (set_cu_language): Add DW_LANG_D. | |
780 | * language.c (binop_result_type, integral_type, character_type) | |
781 | (string_type, boolean_type, structured_type): Add language_d. | |
782 | * symfile.c (init_filename_language_table): Add language_d. | |
783 | * symtab.c: Include d-lang.h. | |
784 | (symbol_init_language_specific, symbol_find_demangled_name) | |
785 | (symbol_natural_name, lookup_symbol_in_language) | |
786 | (symbol_demangled_name, symbol_matches_domain): Add language_d. | |
787 | ||
6f992fbf JB |
788 | 2010-04-27 Joel Brobecker <[email protected]> |
789 | ||
790 | * solib-svr4.c (solib_svr4_r_map): Expand function description. | |
791 | ||
dde59185 JB |
792 | 2010-04-27 Joel Brobecker <[email protected]> |
793 | ||
794 | * symfile.c (init_filename_language_table): Register .dg files | |
795 | with language_ada. | |
796 | ||
d09ce91e JB |
797 | 2010-04-27 Joel Brobecker <[email protected]> |
798 | ||
799 | * gdbtypes.h (struct main_type): Expand comment about target_type | |
800 | field. | |
801 | ||
67f1675e JB |
802 | 2010-04-27 Pedro Alves <[email protected]> |
803 | Tristan Gingold <[email protected]> | |
02aeec7b JB |
804 | |
805 | * symfile.c (reread_symbols): Also search for file in libraries. | |
806 | Update comment. | |
807 | ||
dfd0fe27 JB |
808 | 2010-04-27 Joel Brobecker <[email protected]> |
809 | ||
810 | * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets | |
811 | in terms of configuration. | |
812 | ||
0133421a JK |
813 | 2010-04-27 Jan Kratochvil <[email protected]> |
814 | ||
815 | * objfiles.c: Include solist.h. | |
816 | (free_all_objfiles): New variable so. Check stale solist objfiles. | |
817 | * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles | |
818 | and no_shared_libraries. | |
819 | ||
e78f4312 JB |
820 | 2010-04-27 Joel Brobecker <[email protected]> |
821 | ||
822 | ARI warning fix. | |
823 | * python/py-auto-load.c (source_section_scripts): Remove trailing | |
824 | new-line in i18n string. | |
825 | ||
9214d371 DE |
826 | 2010-04-26 Doug Evans <[email protected]> |
827 | ||
828 | * serial.c (serial_write): Handle serial_debug_p akin to serial_read. | |
829 | ||
3f172e24 TT |
830 | 2010-04-26 Tom Tromey <[email protected]> |
831 | ||
832 | * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the | |
833 | command list. | |
834 | ||
e790e06e PM |
835 | 2010-04-26 Pierre Muller <[email protected]> |
836 | ||
837 | Removal of config/i386/nm-i386sol2.h native configuration file. | |
838 | * config/i386/nm-i386sol2.h: Remove file. | |
839 | * config/i386/i386sol2.mh: Remove NAT_FILE definition. | |
840 | * config/i386/sol2-64.mh: Idem. | |
88562582 PM |
841 | * config/djgpp/fnchange.lst: Remove reference to that file. |
842 | * Makefile.in (HFILES_NO_SRCDIR): Idem. | |
e790e06e | 843 | |
b7da9e9f PM |
844 | 2010-04-26 Pierre Muller <[email protected]> |
845 | ||
846 | PR breakpoints/11531. | |
847 | * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove | |
848 | macro definition and related comment. | |
849 | * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro. | |
850 | (resume): Remove code and comment related to this macro. | |
851 | ||
72f6eb52 JK |
852 | 2010-04-26 Jan Kratochvil <[email protected]> |
853 | ||
854 | * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. | |
855 | Fix whitespace. | |
856 | ||
ab38a727 PA |
857 | 2010-04-24 Pedro Alves <[email protected]> |
858 | ||
859 | * defs.h: Adjust comment. | |
860 | * filesystem.h, filesystem.c: New files. | |
861 | * Makefile.in (SFILES): Add filesystem.c. | |
862 | (COMMON_OBS): Add filesystem.o. | |
863 | * solib.c (solib_find): Handle DOS-based filesystems. Handle | |
864 | different target and host path flavours. | |
865 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
866 | has_dos_based_file_system on the gdbarch. | |
867 | * arm-wince-tdep.c (arm_wince_init_abi): Ditto. | |
868 | * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto. | |
869 | * i386-tdep.c (i386_go32_init_abi): Ditto. | |
870 | * gdbarch.sh (has_dos_based_file_system): New. | |
871 | * gdbarch.h, gdbarch.c: Regenerate. | |
872 | * NEWS: Mention improved support for remote targets with DOS-based | |
873 | filesystems. Mention new `set/show target-file-system-kind' | |
874 | commands. | |
875 | ||
35c9c7ba SS |
876 | 2010-04-23 Stan Shebs <[email protected]> |
877 | ||
878 | * ax.h (struct agent_expr): Merge in agent_reqs fields, add some | |
879 | comments. | |
880 | (struct agent_reqs): Remove. | |
881 | (ax_reg_mask): Declare. | |
882 | * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields. | |
883 | (free_agent_expr): Free reg_mask. | |
884 | (ax_print): Add scope and register mask info. | |
885 | (ax_reqs): Remove agent_reqs argument, use agent expression | |
886 | fields, and move part of register mask computation to... | |
887 | (ax_reg_mask): New function. | |
888 | * ax-gdb.c (gen_trace_static_fields): Call it. | |
889 | (gen_traced_pop): Ditto. | |
890 | (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr. | |
891 | (gen_trace_for_var): Pass gdbarch to new_agent_expr. | |
892 | (gen_trace_for_expr): Ditto, and clear optimized_out flag. | |
893 | (gen_eval_for_expr): Ditto, and require an rvalue. | |
894 | (agent_command): Call ax_reqs. | |
895 | (agent_eval_command): Ditto. | |
896 | * tracepoint.c (report_agent_reqs_errors): Use agent expression fields. | |
897 | (validate_action_line): Ditto. | |
898 | (collect_symbol): Ditto. | |
899 | (encode_actions_1): Ditto. | |
900 | ||
492928e4 JK |
901 | 2010-04-23 Daniel Jacobowitz <[email protected]> |
902 | Paul Pluzhnikov <[email protected]> | |
903 | Jan Kratochvil <[email protected]> | |
904 | ||
905 | Fix deadlock on looped list of loaded shared objects. | |
906 | * solib-svr4.c (LM_PREV): New function. | |
907 | (IGNORE_FIRST_LINK_MAP_ENTRY): Use it. | |
908 | (svr4_current_sos): Check for correct l_prev. New variables prev_lm | |
909 | and next_lm. Clear prev_lm for solib_svr4_r_ldsomap. | |
910 | * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp. | |
911 | ||
66d09542 DE |
912 | 2010-04-23 Doug Evans <[email protected]> |
913 | ||
88a1906b DE |
914 | * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using |
915 | python. | |
916 | * configure: Regenerate. | |
917 | * main.c: #include "python/python.h". | |
918 | (captured_main): Defer loading auto-loaded scripts until after | |
919 | local_gdbinit has been sourced. | |
920 | * python/py-auto-load.c (gdbpy_global_auto_load): New global. | |
921 | (load_auto_scripts_for_objfile): New function. | |
922 | (auto_load_new_objfile): Call it. | |
923 | * python/python.h (gdbpy_global_auto_load): Declare. | |
924 | (load_auto_scripts_for_objfile): Declare. | |
925 | ||
66d09542 DE |
926 | Add support for auto-loading scripts from .debug_gdb_scripts section. |
927 | * NEWS: Add entry for .debug_gdb_scripts. | |
928 | * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o. | |
929 | (SUBDIR_PYTHON_SRCS): Add py-auto-load.c. | |
930 | (py-auto-load.o): New rule. | |
931 | * cli/cli-cmds.c (find_and_open_script): Make externally visible. | |
932 | * cli/cli-cmds.h (find_and_open_script): Update prototype. | |
933 | * python/py-auto-load.c: New file. | |
934 | * python/python-internal.h: #include <stdio.h>. | |
935 | (set_python_list, show_python_list): Declare. | |
936 | (gdbpy_initialize_auto_load): Declare. | |
937 | (source_python_script_for_objfile): Declare. | |
938 | * python/python.c: Remove #include of observer.h. | |
939 | (gdbpy_auto_load): Moved to py-auto-load.c. | |
940 | (GDBPY_AUTO_FILENAME): Ditto. | |
941 | (gdbpy_new_objfile): Delete. | |
942 | (source_python_script_for_objfile): New function. | |
943 | (set_python_list, show_python_list): Make externally visible. | |
944 | (_initialize_python): Move "auto-load" command to py-auto-load.c | |
945 | and observer_attach_new_objfile to py-auto-load.c. | |
946 | ||
3a48e6ff JG |
947 | 2010-04-23 Jerome Guitton <[email protected]> |
948 | ||
949 | * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA) | |
950 | (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros. | |
951 | (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function): | |
952 | New constants. | |
953 | (alpha_heuristic_analyze_probing_loop): New function. | |
954 | (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect | |
955 | and handle cases when a stack probe loop is generated. | |
956 | * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function. | |
957 | (alpha_mdebug_max_frame_size_exceeded): New function. | |
958 | (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless. | |
959 | (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer): | |
960 | Return 0 when the maximum debuggable frame size has been exceeded. | |
961 | ||
e4166a49 JB |
962 | 2010-04-23 Joel Brobecker <[email protected]> |
963 | ||
964 | Fix ARI warning. | |
965 | * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline. | |
966 | ||
8bd10a10 CM |
967 | 2010-04-20 Chris Moller <[email protected]> |
968 | ||
969 | PR 10179 | |
970 | ||
971 | * symtab.c (rbreak_command): Added code to include a filename | |
972 | specification in the rbreak argument. | |
973 | * NEWS: Added a brief description of filename-qualified rbreak. | |
974 | ||
c0201579 JK |
975 | 2010-04-22 Jan Kratochvil <[email protected]> |
976 | ||
977 | Fix crashes on dangling display expressions. | |
978 | * ada-lang.c (ada_operator_check): New function. | |
979 | (ada_exp_descriptor): Fill-in the field operator_check. | |
980 | * c-lang.c (exp_descriptor_c): Fill-in the field operator_check. | |
981 | * jv-lang.c (exp_descriptor_java): Likewise. | |
982 | * m2-lang.c (exp_descriptor_modula2): Likewise. | |
983 | * scm-lang.c (exp_descriptor_scm): Likewise. | |
984 | * parse.c (exp_descriptor_standard): Likewise. | |
985 | (operator_check_standard): New function. | |
986 | (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions. | |
987 | * parser-defs.h (struct exp_descriptor): New field operator_check. | |
988 | (operator_check_standard, exp_uses_objfile): New declarations. | |
989 | * printcmd.c: Remove the inclusion of solib.h. | |
990 | (display_uses_solib_p): Remove the function. | |
991 | (clear_dangling_display_expressions): Call lookup_objfile_from_block | |
992 | and exp_uses_objfile instead of display_uses_solib_p. | |
993 | * solist.h (struct so_list) <objfile>: New comment. | |
994 | * symtab.c (lookup_objfile_from_block): Remove the static qualifier. | |
995 | * symtab.h (lookup_objfile_from_block): New declaration. | |
996 | (struct general_symbol_info) <obj_section>: Extend the comment. | |
997 | ||
6ffbb7ab TJB |
998 | 2010-04-22 Sergio Durigan Junior <[email protected]> |
999 | Thiago Jung Bauermann <[email protected]> | |
1000 | ||
1001 | * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment. | |
1002 | (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG, | |
1003 | ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE, | |
1004 | PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE, | |
1005 | PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint, | |
1006 | PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ, | |
1007 | PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW, | |
1008 | PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE, | |
1009 | PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK, | |
1010 | PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND, | |
1011 | PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR, | |
1012 | PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL, | |
1013 | PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE): | |
1014 | Define, in case <ptrace.h> doesn't provide it. | |
1015 | (booke_debug_info): New variable. | |
1016 | (max_slots_number): Ditto. | |
1017 | (hw_break_tuple): New struct. | |
1018 | (thread_points): Ditto. | |
1019 | (ppc_threads): New variable. | |
1020 | (PPC_DEBUG_CURRENT_VERSION): New define. | |
1021 | (have_ptrace_new_debug_booke): New function. | |
1022 | (ppc_linux_check_watch_resources): Renamed to ... | |
1023 | (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors. | |
1024 | (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors. | |
1025 | (booke_cmp_hw_point): New function. | |
1026 | (booke_find_thread_points_by_tid): Ditto. | |
1027 | (booke_insert_point): Ditto. | |
1028 | (booke_remove_point): Ditto. | |
1029 | (ppc_linux_insert_hw_breakpoint): Ditto. | |
1030 | (ppc_linux_remove_hw_breakpoint): Ditto. | |
1031 | (get_trigger_type): Ditto. | |
1032 | (ppc_linux_insert_watchpoint): Handle BookE processors. | |
1033 | (ppc_linux_remove_watchpoint): Ditto. | |
1034 | (ppc_linux_new_thread): Ditto. | |
1035 | (ppc_linux_thread_exit): New function.. | |
1036 | (ppc_linux_stopped_data_address): Handle BookE processors. | |
1037 | (ppc_linux_watchpoint_addr_within_range): Ditto. | |
1038 | (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and | |
1039 | to_remove_hw_breakpoint fields of the target operations struct. | |
1040 | Add observe for the thread_exit event. | |
1041 | ||
be0d2954 L |
1042 | 2010-04-22 H.J. Lu <[email protected]> |
1043 | ||
1044 | * i386-linux-nat.c (regmap): Removed. | |
1045 | (fetch_register): Replace regmap with | |
1046 | i386_linux_gregset_reg_offset. | |
1047 | (store_register): Likewise. | |
1048 | (supply_gregset): Likewise. | |
1049 | (fill_gregset): Likewise. | |
1050 | ||
1051 | * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it | |
1052 | global. | |
1053 | ||
1054 | * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New. | |
1055 | ||
f56dcb88 CM |
1056 | 2010-04-22 Chris Moller <[email protected]> |
1057 | ||
1058 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
758afad7 L |
1059 | method of popping recursion-detection stack with a method based on |
1060 | obstack_object_size(). (Similar to the PR9167 patch below, but for | |
f56dcb88 CM |
1061 | the static array obstack rather than the static member obstack.) |
1062 | ||
6cd6a2ae L |
1063 | 2010-04-22 H.J. Lu <[email protected]> |
1064 | ||
1065 | * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed. | |
1066 | (_initialize_amd64_linux_nat): Replace | |
1067 | amd64_linux_gregset64_reg_offset with | |
1068 | amd64_linux_gregset_reg_offset. | |
1069 | ||
1070 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it | |
1071 | global. | |
1072 | ||
1073 | * amd64-tdep.h (amd64_linux_gregset_reg_offset): New. | |
1074 | ||
621791b8 PM |
1075 | 2010-04-22 Pierre Muller <[email protected]> |
1076 | ||
1077 | PR stabs/11479. | |
1078 | * stabsread.c (set_length_in_type_chain): New function. | |
1079 | (read_struct_type): Call set_length_in_type_chain function. | |
1080 | (read_enum_type): Idem. | |
1081 | ||
105c2d85 SS |
1082 | 2010-04-21 Stan Shebs <[email protected]> |
1083 | Nathan Sidwell <[email protected]> | |
1084 | ||
1085 | * tracepoint.c (trace_save): Open in binary mode. | |
1086 | ||
9a22f0d0 PM |
1087 | 2010-04-22 Pierre Muller <[email protected]> |
1088 | ||
1089 | * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32 | |
1090 | fields. | |
1091 | * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and | |
1092 | builtin_char32 fields. | |
1093 | * printcmd.c (decode_format): Set char size to '\0' | |
1094 | for strings unless explicit size is given. | |
1095 | (print_formatted): Correct calculation of NEXT_ADDRESS | |
1096 | for 16 or 32 bit strings. | |
1097 | (do_examine): Do not force byte size for strings. | |
1098 | Use builtin_char16 and builtin_char32 types to display | |
1099 | 16 or 32 bit-wide strings. | |
1100 | (x_command): Set LAST_SIZE to 'b' for string type. | |
1101 | ||
f335d1b3 L |
1102 | 2010-04-21 H.J. Lu <[email protected]> |
1103 | ||
1104 | PR corefiles/11523 | |
1105 | * amd64-linux-tdep.c (amd64_linux_core_read_description): Check | |
1106 | XCR0 first. | |
1107 | ||
1108 | * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if | |
1109 | there is no .reg-xstate section. | |
1110 | (i386_linux_core_read_description): Check XCR0 first. | |
1111 | ||
a9789a6b MF |
1112 | 2010-04-21 Mike Frysinger <[email protected]> |
1113 | ||
1114 | * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert () | |
1115 | for len <= 8. | |
1116 | ||
0b66f317 CM |
1117 | 2010-04-21 Chris Moller <[email protected]> |
1118 | ||
1119 | PR 9167 | |
1120 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
32d7376d L |
1121 | method of popping recursion-detection stack with a method based on |
1122 | obstack_object_size(). | |
0b66f317 | 1123 | |
6e354e5e PM |
1124 | 2010-04-21 Pierre Muller <[email protected]> |
1125 | ||
1126 | PR pascal/11492. | |
1127 | * p-valprint.c (pascal_val_print): Fix default printing of integer | |
1128 | arrays. | |
1129 | ||
57174f31 PM |
1130 | 2010-04-21 Pierre Muller <[email protected]> |
1131 | ||
1132 | Fix compilation warning on gcc-4.1.2. | |
1133 | * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize | |
1134 | local variable`pc' to zero. | |
1135 | ||
6fbc7cd8 JB |
1136 | 2010-04-20 Joel Brobecker <[email protected]> |
1137 | ||
1138 | Implement thread support with core files on alpha-tru64. | |
1139 | * dec-thread.c (dec_thread_find_new_threads): New function, | |
1140 | extracted from resync_thread_list. | |
1141 | (resync_thread_list): Add OPS parameter. Replace extracted-out | |
1142 | code by call to dec_thread_find_new_threads. | |
1143 | (dec_thread_wait): Update call to resync_thread_list. | |
1144 | (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads. | |
1145 | ||
438c98a1 JB |
1146 | 2010-04-20 Joel Brobecker <[email protected]> |
1147 | ||
1148 | * ada-lang.c (value_pointer): New function. | |
1149 | (make_array_descriptor): Call value_pointer to convert addresses to | |
1150 | pointers. | |
1151 | ||
2971b56b JB |
1152 | 2010-04-20 Joel Brobecker <[email protected]> |
1153 | ||
1154 | * rs6000-aix-tdep.c: #include exceptions.h. | |
1155 | (rs6000_convert_from_func_ptr_addr): If an exception is thrown | |
1156 | while reading the memory at ADDR, then ADDR cannot be a function | |
1157 | descriptor. | |
1158 | ||
be942545 JB |
1159 | 2010-04-20 Joel Brobecker <[email protected]> |
1160 | ||
1161 | * ada-typeprint.c (ada_print_typedef): New function. | |
1162 | * ada-lang.h (ada_print_typedef): Add declaration. | |
1163 | * ada-lang.c (ada_language_defn): set la_print_typdef field | |
1164 | to ada_print_typedef. | |
1165 | ||
1ca8fce0 JB |
1166 | 2010-04-20 Joel Brobecker <[email protected]> |
1167 | ||
1168 | * procfs.c (procfs_address_to_host_pointer): Only define when used. | |
1169 | ||
e9ef4f39 JB |
1170 | 2010-04-20 Joel Brobecker <[email protected]> |
1171 | ||
1172 | * procfs.c (iterate_over_mappings_cb_ftype): New typedef. | |
1173 | (iterate_over_mappings): Adjust function profile. Add declaration. | |
1174 | (insert_dbx_link_bpt_in_region, info_mappings_callback): | |
1175 | Adjust accordingly. | |
1176 | ||
e294797a JB |
1177 | 2010-04-20 Joel Brobecker <[email protected]> |
1178 | ||
1179 | * procfs.c (solib_mappings_callback): Move function up to avoid | |
1180 | a compiler warning. | |
1181 | ||
a223f1e7 JB |
1182 | 2010-04-20 Joel Brobecker <[email protected]> |
1183 | ||
1184 | * procfs.c (find_signalled_thread, find_stop_signal): Move | |
1185 | these functions down to define them only when used. | |
1186 | ||
0c3acc09 JB |
1187 | 2010-04-20 Joel Brobecker <[email protected]> |
1188 | ||
1189 | * valprint.c (common_val_print): Fix the value before extracting | |
1190 | its contents. | |
1191 | * ada-lang.c (ada_to_fixed_value): Make this function extern. | |
1192 | * ada-lang.h (ada_to_fixed_value): New function declaration. | |
1193 | * ada-valprint.c (ada_value_print): Use ada_to_fixed_value | |
1194 | to avoid code duplication and fix a bug in the handling of | |
1195 | fixed types contents. | |
1196 | ||
31ef98ae TT |
1197 | 2010-04-20 Tom Tromey <[email protected]> |
1198 | ||
1199 | * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name. | |
1200 | (read_partial_die): Likewise. | |
1201 | (dwarf_attr_name): Likewise. | |
1202 | ||
ec31cde5 CM |
1203 | 2010-04-20 Chris Moller <[email protected]> |
1204 | ||
1205 | PR 10867 | |
1206 | ||
1207 | * cp-valprint.c (global): Adding new static array recursion | |
1208 | detection obstack. | |
1209 | (cp_print_value_fields, cp_print_static_field): Added new static | |
1210 | array recursion detection code. | |
1211 | ||
e0e0e543 MK |
1212 | 2010-04-20 Mark Kettenis <[email protected]> |
1213 | ||
1214 | * i386-linux-tdep.c (i386_linux_regset_sections): Size of the | |
1215 | general-purpose register set should be 68 instead of 144. | |
1216 | (i386_linux_sse_regset_sections): Likewise. | |
1217 | (i386_linux_avx_regset_sections): Likewise. | |
1218 | ||
08922a10 SS |
1219 | 2010-04-20 Stan Shebs <[email protected]> |
1220 | Nathan Sidwell <[email protected]> | |
1221 | ||
1222 | * dwarf2loc.c (struct axs_var_loc): New struct. | |
1223 | (dwarf2_tracepoint_var_loc): New function. | |
1224 | (dwarf2_tracepoint_var_access): New function. | |
1225 | (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal | |
1226 | with DW_OP_piece. | |
1227 | (locexpr_describe_location_piece): New function. | |
1228 | (locexpr_describe_location_1): New function. | |
1229 | (locexpr_describe_location): Call it, update signature. | |
1230 | (loclist_describe_location): Rewrite to loop over locations, | |
1231 | update signature. | |
1232 | * symtab.h (struct symbol_computed_ops): Add address to | |
1233 | describe_location arguments, return void. | |
1234 | * printcmd.c (address_info): Get context PC, pass to computed | |
1235 | location description. | |
1236 | * tracepoint.c (scope_info): Ditto. | |
1237 | * ax-gdb.c (trace_kludge): Export. | |
1238 | ||
2dc7f7b3 TT |
1239 | 2010-04-20 Tom Tromey <[email protected]> |
1240 | ||
1241 | * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4. | |
1242 | (struct dwarf2_cie) <segment_size>: New field. | |
1243 | * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4. | |
1244 | (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset, | |
1245 | DW_FORM_exprloc. | |
1246 | (read_attribute_value): Handle DW_FORM_flag_present, | |
1247 | DW_FORM_sec_offset, DW_FORM_exprloc. | |
1248 | (dump_die_shallow): Likewise. | |
1249 | (attr_form_is_section_offset): Handle DW_FORM_sec_offset. | |
1250 | (dwarf2_const_value): Handle DW_FORM_exprloc. | |
1251 | (attr_form_is_block): Likewise. | |
1252 | (struct line_header) <maximum_ops_per_instruction>: New field. | |
1253 | (dwarf_decode_line_header): Set new field. | |
1254 | (dwarf_decode_lines): Handle new field. | |
1255 | ||
ce4b0682 SDJ |
1256 | 2010-04-20 Jan Kratochvil <[email protected]> |
1257 | ||
1258 | * f-exp.y: Add new production to recognize the `logical*8' type. | |
1259 | (LOGICAL_S8_KEYWORD): New token. | |
1260 | * f-lang.c (enum f_primitive_types) | |
1261 | <f_primitive_type_logical_s8>: New field. | |
1262 | (f_language_arch_info): Handling `logical*8' type. | |
1263 | (build_fortran_types): Building `logical*8' type. | |
1264 | * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field. | |
1265 | ||
ff9f22f1 DE |
1266 | 2010-04-19 Doug Evans <[email protected]> |
1267 | ||
1268 | * ser-base.c (generic_readchar): Watch for EOF in read of error_fd. | |
1269 | * ser-pipe.c (pipe_open): Fix file descriptor leaks. | |
1270 | (pipe_close): Ditto. | |
1271 | ||
437125bd PM |
1272 | 2010-04-19 Pierre Muller <[email protected]> |
1273 | ||
1274 | * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes. | |
1275 | ||
e8e6c82e PM |
1276 | 2010-04-19 Pierre Muller <[email protected]> |
1277 | ||
1278 | * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle | |
1279 | type to void function. | |
1280 | ||
4136fdd2 SS |
1281 | 2010-04-19 Stan Shebs <[email protected]> |
1282 | Vladimir Prus <[email protected]> | |
1283 | ||
1284 | * tracepoint.c (tfind_1): Add missing newline, report exit from | |
1285 | tfind mode as such. | |
1286 | * target.c (update_current_target): Make default | |
1287 | to_trace_find return -1. | |
1288 | ||
0c4b2e63 MF |
1289 | 2010-04-19 Mike Frysinger <[email protected]> |
1290 | ||
1291 | * objc-lang.c (find_methods): Move symname check up. | |
1292 | ||
78076abc PA |
1293 | 2010-04-19 Pedro Alves <[email protected]> |
1294 | ||
1295 | * ada-lang.c (print_recreate_exception) | |
1296 | <ex_catch_exception_unhandled>: It's "catch exception unhandled", | |
1297 | not "catch unhandled". | |
1298 | ||
6149aea9 PA |
1299 | 2010-04-19 Pedro Alves <[email protected]> |
1300 | ||
1301 | PR breakpoints/8554. | |
1302 | ||
1303 | Implement `save-breakpoints'. | |
1304 | ||
1305 | * breakpoint.c (save_cmdlist): New. | |
1306 | (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close | |
1307 | to save_cmdlist. | |
1308 | (print_recreate_catch_fork): New. | |
1309 | (catch_fork_breakpoint_ops): Install it. | |
1310 | (print_recreate_catch_vfork): New. | |
1311 | (catch_vfork_breakpoint_ops): Install it. | |
1312 | (print_recreate_catch_syscall): New. | |
1313 | (catch_syscall_breakpoint_ops): Install it. | |
1314 | (print_recreate_catch_exec): New. | |
1315 | (catch_exec_breakpoint_ops): Install it. | |
1316 | (print_recreate_exception_catchpoint): New. | |
1317 | (gnu_v3_exception_catchpoint_ops): Install it. | |
1318 | (save_breakpoints): New, based on tracepoint_save_command, but | |
1319 | handle all breakpoint types. | |
1320 | (save_breakpoints_command): New. | |
1321 | (tracepoint_save_command): Rename to... | |
1322 | (save_tracepoints_command): ... this, and reimplement using | |
1323 | save_breakpoints. | |
1324 | (save_command): New. | |
1325 | (_initialize_breakpoints): Install the "save" command prefix. | |
1326 | Install the "save breakpoints" command. Make "save-tracepoints" a | |
1327 | deprecated alias for "save tracepoints". | |
1328 | * breakpoint.h (struct breakpoint_ops): New field `print_recreate'. | |
1329 | * ada-lang.c (print_recreate_exception): New. | |
1330 | (print_recreate_catch_exception): New. | |
1331 | (catch_exception_breakpoint_ops): Install it. | |
1332 | (print_recreate_catch_exception_unhandled): New. | |
1333 | (catch_exception_unhandled_breakpoint_ops): Install it. | |
1334 | (print_recreate_catch_assert): New. | |
1335 | (catch_assert_breakpoint_ops): Install it. | |
1336 | ||
1337 | * NEWS: Mention the new `save breakpoints' command. Mention the | |
1338 | new `save tracepoints' alias and that `save-tracepoints' is now | |
1339 | deprecated. | |
1340 | ||
0a8fce9a PA |
1341 | 2010-04-18 Pedro Alves <[email protected]> |
1342 | ||
1343 | PR tui/9217 | |
1344 | ||
1345 | * tui/tui-out.c: Include cli-out.h. | |
1346 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
1347 | (tui_begin, tui_end, tui_field_int, tui_field_skip) | |
1348 | (tui_field_string, tui_field_fmt, tui_spaces, tui_text) | |
1349 | (tui_message, tui_wrap_hint, tui_flush): Delete forward | |
1350 | declarations. | |
1351 | (struct ui_out_data): Rename to... | |
1352 | (struct tui_ui_out_data): ... this. Remove `stream' and | |
1353 | `suppress_output' fields, and inherit cli_ui_out_data. | |
1354 | (tui_out_data): New typedef. | |
1355 | (tui_ui_out_impl): Don't initialize fields staticaly. | |
1356 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
1357 | (tui_begin, tui_end): Delete. | |
1358 | (tui_field_int): Adjust to delegate most work to the base type. | |
1359 | (tui_field_skip): Delete. | |
1360 | (tui_field_string, tui_field_fmt): Adjust comment. Adjust to | |
1361 | delegate most work to the base type. | |
1362 | (tui_spaces): Delete. | |
1363 | (tui_text): Adjust to delegate most work to the base type. | |
1364 | (tui_message): Delete. | |
1365 | (tui_wrap_hint): Delete. | |
1366 | (tui_flush): Delete. | |
1367 | (out_field_fmt): Delete. | |
1368 | (field_separator): Delete. | |
1369 | (tui_out_new): Adjust to initialize the base type. | |
1370 | (_initialize_tui_out): Initialize tui_ui_out_impl. | |
1371 | * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed | |
1372 | cli_ui_out_data. | |
1373 | (cli_out_data): Adjust. | |
1374 | (cli_ui_out_impl): Make extern. | |
1375 | (cli_table_header, cli_field_int, cli_field_skip): Use | |
1376 | uo_field_string instead of cli_field_string. | |
1377 | (cli_redirect): Adjust to use cli_out_data. | |
1378 | (cli_out_data_ctor): New. | |
1379 | (cli_out_new): Use it. | |
1380 | * cli-out.h (struct ui_file): Remove forward declaration. | |
1381 | (struct cli_ui_out_data): New, moved from cli-out.c, and renamed. | |
1382 | (cli_ui_out_impl): Declare. | |
1383 | (cli_out_data_ctor): Declare. | |
1384 | * ui-out.c (struct ui_out) <data>: Change type to void pointer. | |
1385 | (uo_field_string): No longer static. | |
1386 | (ui_out_data): Change return type to void pointer. | |
1387 | (ui_out_new): Change `data' parameter type to void pointer. | |
1388 | * ui-out.h (struct ui_out_data): Don't forward declare. | |
1389 | (ui_out_data): Change return type to void pointer. | |
1390 | (ui_out_new): Change `data' parameter type to void pointer. | |
1391 | (uo_field_string): Declare. | |
1392 | ||
172240dd PA |
1393 | 2010-04-17 Pedro Alves <[email protected]> |
1394 | ||
1395 | * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty, | |
1396 | instead of always false. | |
1397 | ||
ed41462c L |
1398 | 2010-04-17 H.J. Lu <[email protected]> |
1399 | ||
1400 | PR corefiles/11511 | |
1401 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support | |
1402 | orig_rax. | |
1403 | ||
cc60f2e3 PA |
1404 | 2010-04-17 Pedro Alves <[email protected]> |
1405 | ||
1406 | * breakpoint.c (watchpoints_triggered): Use | |
1407 | is_hardware_watchpoint. | |
1408 | (watchpoints_triggered): Ditto. | |
1409 | (bpstat_check_location): Use is_watchpoint and | |
1410 | is_hardware_watchpoint. | |
1411 | (bpstat_check_watchpoint): Use is_watchpoint and | |
1412 | is_hardware_watchpoint. | |
1413 | (bpstat_stop_status): Fix comment. | |
1414 | (user_settable_breakpoint): Use is_watchpoint. | |
1415 | (hw_watchpoint_used_count): Use is_hardware_watchpoint. | |
1416 | (disable_watchpoints_before_interactive_call_start): Use | |
1417 | is_watchpoint. | |
1418 | (enable_watchpoints_after_interactive_call_stop): Use | |
1419 | is_watchpoint. | |
1420 | (clear_command): Use is_watchpoint. | |
1421 | (do_enable_breakpoint): Use is_watchpoint. | |
1422 | ||
cb7db0f2 MF |
1423 | 2010-04-16 Mike Frysinger <[email protected]> |
1424 | ||
1425 | * solib-frv.c (enable_break1_done): Delete. | |
1426 | (enable_break2): Do not check enable_break1_done. Move the | |
1427 | enable_break2_done setting and call to | |
1428 | remove_solib_event_breakpoints() to the end. Return without | |
1429 | warning when the contents of _dl_debug_addr are 0. | |
1430 | (enable_break): Do not set enable_break1_done. | |
1431 | (frv_clear_solib): Likewise. | |
1432 | ||
d77b48cf KB |
1433 | 2010-04-16 Kevin Buettner <[email protected]> |
1434 | ||
1435 | * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning | |
1436 | instead of an error if no PLT entry is found. Return a | |
1437 | potentially useful result. | |
1438 | (m32c_m16c_pointer_to_address): Add code to search for function | |
1439 | address when no .plt entry is found. | |
1440 | ||
f90824dc SS |
1441 | 2010-04-16 Stan Shebs <[email protected]> |
1442 | ||
1443 | * tracepoint.c (trace_variable_command): Run a cleanup. | |
1444 | ||
9b79b476 PM |
1445 | 2010-04-16 Pierre Muller <[email protected]> |
1446 | ||
1447 | * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range. | |
1448 | ||
711e434b PM |
1449 | 2010-04-16 Pierre Muller <[email protected]> |
1450 | ||
1451 | Support for Windows OS Thread Information Block. | |
1452 | * NEWS: Document new feature. | |
1453 | * remote.c (PACKET_qGetTIBAddr): New enum element. | |
1454 | (remote_get_tib_address): New function. | |
1455 | (init_remote_ops): Set to_get_tib_address field | |
1456 | to remote_get_tib_address. | |
1457 | (_initialize_remote): Add add_packet_config_cmd | |
1458 | for PACKET_qGetTIBAddr. | |
1459 | * target.c (update_current_target): Set default value for | |
1460 | new to_get_tib_address field. | |
1461 | * target.h (target_ops): New field to_get_tib_address. | |
1462 | (target_get_tib_address): New macro. | |
1463 | * windows-nat.c (thread_info): Add thread_local_base field. | |
1464 | (windows_add_thread): Add tlb argument of type 'void *'. | |
1465 | (fake_create_process): Adapt windows_add_thread call. | |
1466 | (get_windows_debug_event): Idem. | |
1467 | (windows_get_tib_address): New function. | |
1468 | (init_windows_ops): Set to_get_tib_address field | |
1469 | to remote_get_tib_address. | |
1470 | (_initialize_windows_nat): Replace info_w32_cmdlist | |
1471 | initialization by a call to init_w32_command_list. | |
1472 | (info_w32_command, info_w32_cmdlist): Removed from here... | |
1473 | to windows-tdep.c file. | |
1474 | * windows-tdep.h (info_w32_cmdlist): Declare. | |
1475 | (init_w32_command_list): New external function | |
1476 | declaration. | |
1477 | * windows-tdep.c: Add several headers. | |
1478 | (info_w32_cmdlist): to here, made global. | |
1479 | (thread_information_32): New struct. | |
1480 | (thread_information_64): New struct. | |
1481 | (TIB_NAME): New char array. | |
1482 | (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants. | |
1483 | (maint_display_all_tib): New static variable. | |
1484 | (windows_get_tlb_type): New function. | |
1485 | (tlb_value_read, tlb_value_write): New functions. | |
1486 | (tlb_value_funcs): New static struct. | |
1487 | (tlb_make_value): New function. | |
1488 | (display_one_tib): New function. | |
1489 | (display_tib): New function. | |
1490 | (show_maint_show_all_tib):New function. | |
1491 | (info_w32_command): Moved from windows-nat.c. | |
1492 | (init_w32_command_list): New function. | |
1493 | (_initialize_windows_tdep): New function. | |
1494 | New "maint set/show show-all-tib" command | |
1495 | New "$_tlb" internal variable. | |
1496 | ||
cae3f17b JB |
1497 | 2010-04-16 Joel Brobecker <[email protected]> |
1498 | ||
1499 | * tui/tui-regs.c (tui_display_register): Add comment about | |
1500 | a couple of casts. | |
1501 | * tui/tui-stack.c (tui_show_locator_content): Ditto. | |
1502 | ||
2ce6d6bf SS |
1503 | 2010-04-15 Stan Shebs <[email protected]> |
1504 | ||
1505 | * frame.c: Include tracepoint.h. | |
1506 | (get_current_frame): Allow a trace frame to be an alternate source | |
1507 | of stack frame data. | |
1508 | * tracepoint.c (tfind_1): Don't try to get current stack frame if | |
1509 | it won't succeed. | |
1510 | ||
7e559477 PA |
1511 | 2010-04-15 Pedro Alves <[email protected]> |
1512 | ||
1513 | * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for | |
1514 | flags. | |
1515 | * solib-spu.c (spu_solib_loaded): Always pass 0 for flags. | |
1516 | ||
3f7b2faa DE |
1517 | 2010-04-15 Doug Evans <[email protected]> |
1518 | ||
fa33c3cd DE |
1519 | * NEWS: Add entry for python program space support. |
1520 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o. | |
1521 | (SUBDIR_PYTHON_SRCS): Add py-progspace.c. | |
1522 | (py-progspace.o): New rule. | |
1523 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New | |
1524 | function. | |
1525 | (find_pretty_printer_from_progspace): New function. | |
1526 | (find_pretty_printer_from_gdb): New function. | |
1527 | (find_pretty_printer): Rewrite. | |
1528 | * python/py-progspace.c: New file. | |
1529 | * python/python-internal.h (program_space): Add forward decl. | |
1530 | (pspace_to_pspace_object, pspy_get_printers): Declare. | |
1531 | (gdbpy_initialize_pspace): Declare. | |
1532 | * python/python.c: #include "progspace.h". | |
1533 | (gdbpy_get_current_progspace, gdbpy_progspaces): New functions. | |
1534 | (_initialize_python): Call gdbpy_initialize_pspace. | |
1535 | (GdbMethods): Add current_progspace, progspaces. | |
1536 | ||
3f7b2faa DE |
1537 | Add -s option to source command. |
1538 | * NEWS: Document new option. | |
1539 | * cli/cli-cmds.c (find_and_open_script): Add function comment. | |
1540 | Delete from_tty and cleanupp args. Split filep arg into file and | |
1541 | full_pathp. New arg search_path. | |
1542 | (source_script_from_stream): New function. | |
1543 | (source_script_with_search): New function. | |
1544 | (source_script): Rewrite. | |
1545 | (source_command): Parse "-s" option. | |
1546 | (init_cli_cmds): Add "-s" docs to source command help, and reformat. | |
1547 | * python/python.c (source_python_script): Make file arg a const char *. | |
1548 | Don't call fclose, leave for caller. | |
1549 | * python/python.h (source_python_script): Update. | |
1550 | ||
a86988f2 PA |
1551 | 2010-04-14 Daniel Jacobowitz <[email protected]> |
1552 | Pedro Alves <[email protected]> | |
1553 | ||
1554 | Avoid rereading shared libraries that haven't changed. | |
1555 | ||
1556 | * solib.c (free_so_symbols): New function, from ... | |
1557 | (free_so): ... here. Call it. | |
1558 | (solib_read_symbols): Don't warn here if symbols have already been | |
1559 | loaded. | |
1560 | (solib_add): Warn here instead, if a pattern was specified. | |
1561 | (reload_shared_libraries_1): New. | |
1562 | (reload_shared_libraries): Rewrite to not fetch the library list. | |
1563 | ||
e6d9b9c2 DE |
1564 | 2010-04-14 Doug Evans <[email protected]> |
1565 | ||
589390d6 | 1566 | * source.c (openp): Strip DOS drive letter if present before |
e6d9b9c2 DE |
1567 | concatenating string to search path. |
1568 | ||
516ba659 PA |
1569 | 2010-04-14 Pedro Alves <[email protected]> |
1570 | ||
1571 | * objfiles.h (gdb_bfd_close_or_warn): Declare. | |
1572 | * objfiles.c (gdb_bfd_close_or_warn): New. | |
1573 | * corelow.c: Include objfiles.h | |
1574 | (core_close): Use gdb_bfd_close_or_warn. | |
1575 | * elfread.c (build_id_verify): Ditto. | |
1576 | * exec.c (exec_close, exec_close_1): Ditto. | |
1577 | ||
048d532d PA |
1578 | 2010-04-14 Daniel Jacobowitz <[email protected]> |
1579 | Pedro Alves <[email protected]> | |
1580 | ||
1581 | Group errors for many missing shared libraries. | |
1582 | ||
1583 | * solist.h (struct so_list): Remove from_tty. | |
1584 | * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD. | |
1585 | (solib_map_sections): Take so_list argument. Return 0 if we | |
1586 | failed to open a BFD. Add target sections here. | |
1587 | (symbol_add_stub): Delete. | |
1588 | (solib_read_symbols): Inline symbol_add_stub. Use current flags, | |
1589 | not from_tty copied from the so_list. Don't warn a second time | |
1590 | for a missing library. | |
1591 | (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not | |
1592 | add to the section table here. Print out a single warning for all | |
1593 | missing libraries. | |
1594 | * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for | |
1595 | flags. | |
1596 | ||
044c0f87 PM |
1597 | 2010-04-14 Phil Muldoon <[email protected]> |
1598 | ||
1599 | * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass | |
1600 | error/warning messages. Capitalize and use complete sentences. | |
1601 | (blpy_block_syms_iternext): Likewise. | |
1602 | * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise. | |
1603 | * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block) | |
1604 | (frame_info_to_frame_object, frapy_read_var) | |
1605 | (gdbpy_frame_stop_reason_string): Likewise. | |
1606 | * python/py-lazy-string.c (stpy_convert_to_value) | |
1607 | (gdbpy_create_lazy_string_object): Likewise. | |
1608 | * python/py-objfile.c (objfpy_set_printers): Likewise. | |
1609 | * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise. | |
1610 | * python/python.c (parameter_to_python): Likewise. | |
1611 | * python/py-type.c (typy_range, typy_target): Likewise. | |
1612 | * python/py-value.c (valpy_cast, valpy_length, valpy_getitem) | |
1613 | (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise. | |
1614 | ||
1615 | ||
79f283fe PM |
1616 | 2010-04-14 Phil Muldoon <[email protected]> |
1617 | ||
1618 | PR python/11381 | |
1619 | ||
1620 | * python/py-prettyprint.c (pretty_print_one_value): Test for | |
1621 | Py_None. | |
1622 | (print_string_repr): Test for Py_None. Set flags accordingly. | |
1623 | Return value depending on return type. | |
1624 | (print_children): Take a value indicating whether data was printed | |
1625 | before this function was called. Alter output accordingly. | |
1626 | (apply_val_pretty_printer): Capture return value from | |
1627 | print_string_repr and pass to print_children. | |
1628 | ||
4ac5d44e MK |
1629 | 2010-04-13 Mark Kettenis <[email protected]> |
1630 | ||
e1caee70 | 1631 | PR corefiles/11481 |
4ac5d44e MK |
1632 | * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended |
1633 | register note sections. | |
1634 | (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections): | |
1635 | New variables. | |
1636 | (i386_linux_init_abi): Install list of supported register note | |
1637 | sections that matches the target description. | |
1638 | ||
ad91cd99 PA |
1639 | 2010-04-13 Pedro Alves <[email protected]> |
1640 | ||
1641 | * remote.c (remote_get_noisy_reply): Don't error out on empty | |
1642 | replies. | |
1643 | (remote_start_remote): Update and merge tracepoints and trace | |
1644 | state variables as long as the target supports tracepoints. | |
1645 | (remote_trace_init): Fix prototype. | |
1646 | (remote_download_trace_state_variable): Validate reply. | |
1647 | (remote_trace_set_readonly_regions): Fix prototype. | |
1648 | (remote_trace_start): Fix prototype. Check for empty reply. | |
1649 | (remote_get_trace_status): Small cleanup. | |
1650 | (remote_trace_stop): Fix prototype. Check for empty reply. | |
1651 | (remote_trace_find): Check for empty reply. | |
1652 | (remote_save_trace_data): Validate reply. | |
1653 | (remote_set_disconnected_tracing): Check for empty reply, and | |
1654 | validate reply. | |
1655 | (remote_set_circular_trace_buffer): Ditto. | |
1656 | ||
ae3bccd4 PM |
1657 | 2010-04-13 Pierre Muller <[email protected]> |
1658 | ||
1659 | Suppress unused value warning during compilation. | |
1660 | * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend | |
1661 | calls to void. | |
1662 | * tui/tui-stack.c (tui_show_locator_content): Likewise. | |
1663 | ||
523136f2 SS |
1664 | 2010-04-12 Stan Shebs <[email protected]> |
1665 | ||
1666 | * tracepoint.c (tfile_xfer_partial): Check read result. | |
1667 | ||
0d18d720 MF |
1668 | 2010-04-12 Mike Frysinger <[email protected]> |
1669 | ||
1670 | * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var. | |
1671 | * remote-sim.c (gdbsim_files_info): Likewise. | |
1672 | ||
3b273a55 RE |
1673 | 2010-04-12 Matthew Gretton-Dann <[email protected]> |
1674 | ||
1675 | * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM | |
1676 | * arm-linux-nat.c (arm_linux_vfp_register_count): New | |
1677 | variable. | |
1678 | (fetch_vfp_registers): New function to fetch VFP registers. | |
1679 | (store_vfp_registers): New function to store VFP registers. | |
1680 | (arm_linux_fetch_inferior_registers): Add support for VFP | |
1681 | registers. | |
1682 | (arm_linux_store_inferior_registers): Likewise. | |
1683 | (arm_linux_read_description): Likewise. | |
1684 | (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc | |
1685 | until we need it. | |
1686 | ||
778c7095 L |
1687 | 2010-04-11 H.J. Lu <[email protected]> |
1688 | ||
1689 | * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused | |
1690 | tdep. | |
1691 | (amd64_collect_xstateregset): Likewise. | |
1692 | ||
2114d44c SS |
1693 | 2010-04-09 Stan Shebs <[email protected]> |
1694 | ||
87290684 SS |
1695 | * tracepoint.c (trace_status_mi): Report frames created. |
1696 | ||
2114d44c SS |
1697 | * tracepoint.c (trace_dump_command): Include default-collect |
1698 | expressions. | |
1699 | ||
86da934b UW |
1700 | 2010-04-09 Ulrich Weigand <[email protected]> |
1701 | ||
1702 | * symtab.c (find_function_start_sal): Never return SAL pointing | |
1703 | before function start address, even if line info is missing. | |
1704 | ||
2d6e647a | 1705 | 2010-04-09 Pedro Alves <[email protected]> |
d337e9f0 PA |
1706 | |
1707 | * NEWS: Mention tracepoints support. | |
1708 | ||
a97153c7 PA |
1709 | 2010-04-09 Pedro Alves <[email protected]> |
1710 | ||
1711 | * tracepoint.c (trace_status_mi): Report disconnected tracing and | |
1712 | circular trace buffer statuses. | |
1713 | ||
7a66d603 JK |
1714 | 2010-04-09 Jan Kratochvil <[email protected]> |
1715 | ||
1716 | * config/djgpp/fnchange.lst: Fix typo in translations for | |
1717 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
1718 | ||
2566ad2d PA |
1719 | 2010-04-09 Pedro Alves <[email protected]> |
1720 | ||
1721 | * breakpoint.c (condition_command): Pass condition expression to | |
1722 | set_breakpoint_condition stripped from breakpoint number. | |
1723 | ||
adc36818 PM |
1724 | 2010-04-09 Phil Muldoon <[email protected]> |
1725 | Thiago Jung Bauermann <[email protected]> | |
2566ad2d | 1726 | Tom Tromey <[email protected]> |
adc36818 PM |
1727 | |
1728 | * breakpoint.c (condition_command): Simplify. Move condition | |
1729 | setting code to ... | |
1730 | (set_breakpoint_condition): ... here. New function. | |
1731 | * breakpoint.h (set_breakpoint_condition): Declare. | |
1732 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint. | |
1733 | (SUBDIR_PYTHON_SRCS): Likewise. | |
1734 | (py-breakpoint.o): New rule. | |
1735 | * python/py-breakpoint.c: New file. | |
1736 | * python/python-internal.h (gdbpy_breakpoints) | |
1737 | (gdbpy_initialize_breakpoints): Declare. | |
1738 | (GDB_PY_SET_HANDLE_EXCEPTION) Define. | |
1739 | ||
219f2f23 PA |
1740 | 2010-04-09 Pedro Alves <[email protected]> |
1741 | ||
1742 | * regformats/regdat.sh: Include server.h. Don't include | |
1743 | regcache.h. | |
1744 | ||
33da3f1c SS |
1745 | 2010-04-08 Stan Shebs <[email protected]> |
1746 | Pedro Alves <[email protected]> | |
1747 | ||
1748 | * tracepoint.h (struct trace_status): New fields disconnected_tracing | |
1749 | and circular_buffer. | |
1750 | (disconnect_tracing): Rename from disconnect_or_stop_tracing. | |
1751 | * tracepoint.c (trace_status_command): Display target's status for | |
1752 | disconnected tracing and circular buffer. | |
1753 | (disconnect_tracing): Rename from disconnect_or_stop_tracing, add | |
1754 | query for non-disconnected-tracing case, remove the stop_tracing | |
1755 | call. | |
1756 | (tfile_open): Clear disconnected and circular buffer status. | |
1757 | (trace_save): Save disconnected and circular buffer status. | |
1758 | (parse_trace_status): Parse disconnected and circular buffer status, | |
1759 | also recognize disconnected as a stop reason. | |
1760 | * remote.c (remote_set_disconnected_tracing): Only set | |
1761 | QTDisconnected if the remote end supports disconnected tracing. | |
1762 | Warn otherwise, if trying to enable disconnected tracing. | |
1763 | * infcmd.c (detach_command): Update disconnect_tracing call. | |
1764 | * cli/cli-cmds.c (quit_command): Ditto. | |
1765 | ||
4e4d8374 L |
1766 | 2010-04-08 H.J. Lu <[email protected]> |
1767 | ||
1768 | * i387-tdep.c (i387_collect_xsave): Replace abort with | |
1769 | internal_error. | |
1770 | ||
ad443146 SS |
1771 | 2010-04-08 Stan Shebs <[email protected]> |
1772 | ||
1773 | * breakpoint.c (default_collect_info): New function. | |
1774 | (breakpoints_info): Call it. | |
1775 | (maintenance_info_breakpoints): Ditto. | |
1776 | (tracepoints_info): Ditto. | |
1777 | ||
40936b0d L |
1778 | 2010-04-08 H.J. Lu <[email protected]> |
1779 | ||
1780 | * i387-tdep.c (i387_collect_xsave): Re-indent. | |
1781 | ||
3a13a53b L |
1782 | 2010-04-08 H.J. Lu <[email protected]> |
1783 | ||
1784 | * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1 | |
1785 | if HAVE_PTRACE_GETFPXREGS is defined. | |
1786 | (i386_linux_read_description): Set have_ptrace_getfpxregs and | |
1787 | have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed. | |
1788 | ||
1789 | * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c" | |
1790 | (i386_linux_core_read_description): Return tdesc_i386_mmx_linux | |
1791 | if .reg-xfp section doesn't exist. | |
1792 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux. | |
1793 | ||
1794 | * i386-linux-tdep.h (tdesc_i386_mmx_linux): New. | |
1795 | ||
1796 | * i386-tdep.c: Include "features/i386/i386-mmx.c". | |
1797 | (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx. | |
1798 | (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set | |
1799 | xcr0 to I386_XSTATE_X87_MASK if SSE isn't available. | |
1800 | (i386_gdbarch_init): Update comments. | |
1801 | (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx. | |
1802 | ||
1803 | * common/i386-xstate.h (I386_XSTATE_X87_MASK): New. | |
1804 | ||
1805 | * config/djgpp/fnchange.lst: Add i386 MMX XML files. | |
1806 | ||
1807 | * features/Makefile (i386/i386-mmx-expedite): New. | |
1808 | (i386/i386-mmx-linux-expedite): Likewise. | |
1809 | ($(outdir)/i386/i386-mmx.dat): Likewise. | |
1810 | ($(outdir)/i386/i386-mmx-linux.dat): Likewise. | |
1811 | ||
1812 | * features/i386/i386-mmx-linux.c: New. | |
1813 | * features/i386/i386-mmx-linux.xml: Likewise. | |
1814 | * features/i386/i386-mmx.c: Likewise. | |
1815 | * features/i386/i386-mmx.xml: Likewise. | |
1816 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
1817 | * regformats/i386/i386-mmx.dat: Likewise. | |
1818 | ||
1819 | * features/Makefile (WHICH): Add i386/i386-mmx and | |
1820 | i386/i386-mmx-linux. | |
1821 | ||
08001717 DE |
1822 | 2010-04-08 Doug Evans <[email protected]> |
1823 | ||
1824 | * source.c (openp): Skip $cdir in PATH. | |
1825 | ||
fff5cc64 PM |
1826 | 2010-04-08 Phil Muldoon <[email protected]> |
1827 | ||
1828 | PR python/11417 | |
fff5cc64 | 1829 | * python/py-lazy-string.c (stpy_convert_to_value): Check for |
3a13a53b L |
1830 | a NULL address. |
1831 | (gdbpy_create_lazy_string_object): Allow strings with a NULL | |
1832 | address and a zero length. | |
fff5cc64 | 1833 | |
f8c4f480 HZ |
1834 | 2010-04-08 Hui Zhu <[email protected]> |
1835 | ||
1836 | * i386-tdep.c (i386_process_record): Add support for insn | |
1837 | rdtsc. | |
1838 | ||
eb5cda86 DE |
1839 | 2010-04-07 Doug Evans <[email protected]> |
1840 | ||
1841 | * python/python.c (source_python_script): Use ensure_python_env | |
1842 | to prepare environment for script. | |
1843 | ||
a055a187 L |
1844 | 2010-04-07 H.J. Lu <[email protected]> |
1845 | ||
1846 | * amd64-linux-nat.c: Include "regset.h", "elf/common.h", | |
1847 | <sys/uio.h> and "i386-xstate.h". | |
1848 | (PTRACE_GETREGSET): New. | |
1849 | (PTRACE_SETREGSET): Likewise. | |
1850 | (have_ptrace_getregset): Likewise. | |
1851 | (amd64_linux_gregset64_reg_offset): Include 16 upper YMM | |
1852 | registers. | |
1853 | (amd64_linux_gregset32_reg_offset): Include 8 upper YMM | |
1854 | registers. | |
1855 | (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS. | |
1856 | (amd64_linux_store_inferior_registers): Likewise. | |
1857 | (amd64_linux_read_description): Check and enable AVX target | |
1858 | descriptions. | |
1859 | ||
1860 | * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h" | |
1861 | and "features/i386/amd64-avx-linux.c". | |
1862 | (amd64_linux_regset_sections): New. | |
1863 | (amd64_linux_core_read_description): Check and enable AVX | |
1864 | target description. | |
1865 | (amd64_linux_init_abi): Set xsave_xcr0_offset. Call | |
1866 | set_gdbarch_core_regset_sections. | |
1867 | (_initialize_amd64_linux_tdep): Call | |
1868 | initialize_tdesc_amd64_avx_linux. | |
1869 | ||
1870 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace | |
1871 | AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM. | |
1872 | (tdesc_amd64_avx_linux): New. | |
1873 | (amd64_linux_update_xstateregset): Likewise. | |
1874 | ||
1875 | * amd64-tdep.c: Include "features/i386/amd64-avx.c". | |
1876 | (amd64_ymm_names): New. | |
1877 | (amd64_ymmh_names): Likewise. | |
1878 | (amd64_register_name): Likewise. | |
1879 | (amd64_supply_xstateregset): Likewise. | |
1880 | (amd64_collect_xstateregset): Likewise. | |
1881 | (amd64_supply_xsave): Likewise. | |
1882 | (amd64_collect_xsave): Likewise. | |
1883 | (AMD64_NUM_REGS): Removed. | |
1884 | (amd64_dwarf_reg_to_regnum): Return %ymmN register number for | |
1885 | %xmmN if AVX is available. | |
1886 | (amd64_pseudo_register_name): Support pseudo YMM registers. | |
1887 | (amd64_regset_from_core_section): Support .reg-xstate section. | |
1888 | (amd64_init_abi): Set ymmh_register_names, num_ymm_regs | |
1889 | and ymm0h_regnum. Call set_gdbarch_register_name. | |
1890 | (amd64_init_abi): Call initialize_tdesc_amd64_avx. | |
1891 | ||
1892 | * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and | |
1893 | AMD64_YMM15H_REGNUM. | |
1894 | (AMD64_NUM_REGS): New. | |
1895 | (amd64_supply_xsave): Likewise. | |
1896 | (amd64_collect_xsave): Likewise. | |
1897 | (amd64_register_name): Removed. | |
1898 | (amd64_register_type): Likewise. | |
1899 | ||
31aeac78 L |
1900 | 2010-04-07 H.J. Lu <[email protected]> |
1901 | ||
1902 | * i387-tdep.c: Include "i386-xstate.h". | |
1903 | (XSAVE_XSTATE_BV_ADDR): New. | |
1904 | (xsave_avxh_offset): Likewise. | |
1905 | (XSAVE_AVXH_ADDR): Likewise. | |
1906 | (i387_supply_xsave): Likewise. | |
1907 | (i387_collect_xsave): Likewise. | |
1908 | ||
1909 | * i387-tdep.h (I387_NUM_YMM_REGS): New. | |
1910 | (I387_YMM0H_REGNUM): Likewise. | |
1911 | (I387_YMMENDH_REGNUM): Likewise. | |
1912 | (i387_supply_xsave): Likewise. | |
1913 | (i387_collect_xsave): Likewise. | |
1914 | ||
c131fcee L |
1915 | 2010-04-07 H.J. Lu <[email protected]> |
1916 | ||
1917 | * i386-linux-nat.c: Include "regset.h", "elf/common.h", | |
1918 | <sys/uio.h> and "i386-xstate.h". | |
1919 | (PTRACE_GETREGSET): New. | |
1920 | (PTRACE_SETREGSET): Likewise. | |
1921 | (fetch_xstateregs): Likewise. | |
1922 | (store_xstateregs): Likewise. | |
1923 | (GETXSTATEREGS_SUPPLIES): Likewise. | |
1924 | (regmap): Include 8 upper YMM registers. | |
1925 | (i386_linux_fetch_inferior_registers): Support XSAVE extended | |
1926 | state. | |
1927 | (i386_linux_store_inferior_registers): Likewise. | |
1928 | (i386_linux_read_description): Check and enable AVX target | |
1929 | descriptions. | |
1930 | ||
1931 | * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h", | |
1932 | "i386-xstate.h" and "features/i386/i386-avx-linux.c". | |
1933 | (i386_linux_regset_sections): Add ".reg-xstate". | |
1934 | (i386_linux_gregset_reg_offset): Include 8 upper YMM registers. | |
1935 | (i386_linux_core_read_xcr0): New. | |
1936 | (i386_linux_core_read_description): Check and enable AVX target | |
1937 | description. | |
1938 | (i386_linux_init_abi): Set xsave_xcr0_offset. | |
1939 | (_initialize_i386_linux_tdep): Call | |
1940 | initialize_tdesc_i386_avx_linux. | |
1941 | ||
1942 | * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace | |
1943 | I386_SSE_NUM_REGS with I386_AVX_NUM_REGS. | |
1944 | (i386_linux_core_read_xcr0): New. | |
1945 | (tdesc_i386_avx_linux): Likewise. | |
1946 | (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise. | |
1947 | ||
1948 | * i386-tdep.c: Include "i386-xstate.h" and | |
1949 | "features/i386/i386-avx.c". | |
1950 | (i386_ymm_names): New. | |
1951 | (i386_ymmh_names): Likewise. | |
1952 | (i386_ymmh_regnum_p): Likewise. | |
1953 | (i386_ymm_regnum_p): Likewise. | |
1954 | (i386_xmm_regnum_p): Likewise. | |
1955 | (i386_register_name): Likewise. | |
1956 | (i386_ymm_type): Likewise. | |
1957 | (i386_supply_xstateregset): Likewise. | |
1958 | (i386_collect_xstateregset): Likewise. | |
1959 | (i386_sse_regnum_p): Removed. | |
1960 | (i386_pseudo_register_name): Support pseudo YMM registers. | |
1961 | (i386_pseudo_register_type): Likewise. | |
1962 | (i386_pseudo_register_read): Likewise. | |
1963 | (i386_pseudo_register_write): Likewise. | |
1964 | (i386_dbx_reg_to_regnum): Return %ymmN register number for | |
1965 | %xmmN if AVX is available. | |
1966 | (i386_regset_from_core_section): Support .reg-xstate section. | |
1967 | (i386_register_reggroup_p): Supper upper YMM and YMM registers. | |
1968 | (i386_process_record): Replace i386_sse_regnum_p with | |
1969 | i386_xmm_regnum_p. | |
1970 | (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature. | |
1971 | Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0. | |
8d95cc3b | 1972 | (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset. |
c131fcee L |
1973 | Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with |
1974 | I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and | |
1975 | num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs. | |
1976 | Set ymm0_regnum. | |
1977 | (_initialize_i386_tdep): Call initialize_tdesc_i386_avx. | |
1978 | ||
1979 | * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum, | |
1980 | xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and | |
1981 | i386_ymm_type. | |
1982 | (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM. | |
1983 | (I386_AVX_NUM_REGS): New. | |
1984 | (i386_xmm_regnum_p): Likewise. | |
1985 | (i386_ymm_regnum_p): Likewise. | |
1986 | (i386_ymmh_regnum_p): Likewise. | |
1987 | ||
1988 | * common/i386-xstate.h: New. | |
1989 | ||
98adf0f3 L |
1990 | 2010-04-07 H.J. Lu <[email protected]> |
1991 | ||
1992 | * config/djgpp/fnchange.lst: Add x86 AVX XML files. | |
1993 | ||
1994 | * features/Makefile (WHICH): Add i386/i386-avx, | |
1995 | i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux. | |
1996 | (i386/i386-avx-expedite): New. | |
1997 | (i386/i386-avx-linux-expedite): Likewise. | |
1998 | (i386/x86-64-avx-expedite):Likewise. | |
1999 | (i386/x86-64-avx-linux-expedite): Likewise. | |
2000 | ($(outdir)/i386/i386-avx.dat): New dependency. | |
2001 | ($(outdir)/i386/i386-avx-linux.dat): Likewise. | |
2002 | ($(outdir)/i386/x86-avx-64.dat): Likewise. | |
2003 | ($(outdir)/i386/x86-64-avx-linux.dat): Likewise. | |
2004 | ||
2005 | * features/i386/32bit-avx.xml: New. | |
2006 | * features/i386/64bit-avx.xml: Likewise. | |
2007 | * features/i386/i386-avx-linux.c: Likewise. | |
2008 | * features/i386/i386-avx-linux.xml: Likewise. | |
2009 | * features/i386/i386-avx.c: Likewise. | |
2010 | * features/i386/i386-avx.xml: Likewise. | |
2011 | * features/i386/x86-64-avx-linux.c: Likewise. | |
2012 | * features/i386/x86-64-avx-linux.xml: Likewise. | |
2013 | * features/i386/x86-64-avx.c: Likewise. | |
2014 | * features/i386/x86-64-avx.xml: Likewise. | |
2015 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
2016 | * regformats/i386/i386-avx.dat: Likewise. | |
2017 | * regformats/i386/x86-64-avx-linux.dat: Likewise. | |
2018 | * regformats/i386/x86-64-avx.dat: Likewise. | |
2019 | ||
05159abe DE |
2020 | 2010-04-07 Doug Evans <[email protected]> |
2021 | ||
2022 | * top.c (source_file_name): Make const char *. | |
2023 | * top.h (source_file_name): Update. | |
2024 | * cli/cli-script.c (source_cleanup_lines_args): Make old_file | |
2025 | const char *. | |
2026 | (script_from_file): Change `file' arg to const char *. | |
2027 | * cli/cli-script.h (script_from_file): Update. | |
2028 | ||
96e39866 DE |
2029 | 2010-04-06 Doug Evans <[email protected]> |
2030 | ||
2031 | * cli/cli-cmds.c (source_command): Run cleanups. | |
2032 | ||
3149d8c1 SS |
2033 | 2010-04-06 Stan Shebs <[email protected]> |
2034 | ||
2035 | * defs.h (char_ptr): Move typedef here from... | |
2036 | * ada-lang.c (char_ptr): Remove. | |
2037 | * charset.c (char_ptr): Remove. | |
2038 | * tracepoint.h (struct uploaded_string): Remove. | |
2039 | (struct uploaded_tp): Use vectors for string arrays. | |
2040 | * tracepoint.c (trace_save): Use vectors of actions. | |
2041 | (parse_tracepoint_definition): Ditto. | |
2042 | (get_uploaded_tp): Clear vectors. | |
2043 | * breakpoint.c (create_tracepoint_from_upload): Use vectors. | |
2044 | (next_cmd): Change to an int. | |
2045 | (read_next_cmd): Use vector of command strings. | |
2046 | ||
4cc23ede DE |
2047 | 2010-04-06 Doug Evans <[email protected]> |
2048 | ||
2049 | * top.h (source_script, cd_command): Delete. | |
2050 | * main.c: #include "cli/cli-cmds.h" | |
2051 | ||
bd333fb7 KB |
2052 | 2010-04-06 Kevin Buettner <[email protected]> |
2053 | ||
2054 | * m32c-tdep.c (make_types): When calling `arch_type', pass size of | |
2055 | type in bytes, not bits. | |
2056 | ||
ec8a089a PM |
2057 | 2010-04-06 Pierre Muller <[email protected]> |
2058 | ||
2059 | * stabsread.c (define_symbol): Add support for char | |
2060 | and string constants. | |
2061 | ||
2244ba2e PM |
2062 | 2010-04-06 Pierre Muller <[email protected]> |
2063 | ||
2064 | Remove remaining "%ll" uses. | |
2065 | * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using | |
2066 | hex_string call. | |
2067 | * rs6000-nat.c (rs6000_ptrace64): Idem. | |
2068 | * solib-pa64.c (pa64_current_sos): Idem. | |
2069 | * solib-spu.c (spu_current_sos): Idem. | |
2070 | * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using | |
2071 | plongest call. | |
2072 | * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using | |
2073 | phex (VAR, 8) call. | |
2074 | * sh64-tdep.c (sh64_show_media_regs): Idem. | |
2075 | ||
fce3c1f0 SS |
2076 | 2010-04-05 Stan Shebs <[email protected]> |
2077 | ||
2078 | * tracepoint.c: Include gdbcore.h. | |
2079 | (tfile_xfer_partial): Return partial results, also try reading | |
2080 | from executable. | |
2081 | (tfile_has_all_memory): New function. | |
2082 | (init_tfile_ops): Use it. | |
2083 | ||
626ea16d SDJ |
2084 | 2010-04-05 Sergio Durigan Junior <[email protected]> |
2085 | ||
2086 | PR gdb/10736: | |
2087 | * xml-syscall.c (my_gdb_datadir): New variable to keep track of | |
2088 | the changes in data-directory. | |
2089 | (init_sysinfo): Reload the syscall XML file if the data-directory | |
2090 | has changed. | |
2091 | ||
1f7ccab2 JK |
2092 | 2010-04-05 Jan Kratochvil <[email protected]> |
2093 | ||
2094 | Code cleanup. | |
2095 | * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop. | |
2096 | ||
d77f58be SS |
2097 | 2010-04-04 Stan Shebs <[email protected]> |
2098 | Nathan Sidwell <[email protected]> | |
2099 | ||
2100 | * breakpoint.c (breakpoint_1): Add filter argument, return number of | |
2101 | breakpoints printed. | |
2102 | (is_hardware_watchpoint): Make argument const. | |
2103 | (is_watchpoint): Ditto. | |
2104 | (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint, | |
2105 | use it everywhere. | |
2106 | (breakpoints_info): Pass NULL to breakpoint_1. | |
2107 | (maintenance_info_breakpoints): Ditto. | |
2108 | (watchpoints_info): New function. | |
2109 | (tracepoints_info): Use breakpoint_1 filter. | |
2110 | (set_ignore_count): Warn that tracepoint ignore count will be ignored. | |
2111 | (_initialize_breakpoint): Make "info watchpoints" its own command. | |
2112 | * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint. | |
2113 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint. | |
2114 | ||
af54718e SS |
2115 | 2010-04-04 Stan Shebs <[email protected]> |
2116 | ||
2117 | * tracepoint.c (tfile_fetch_registers): Add fallback case. | |
2118 | ||
74d1f91e JK |
2119 | 2010-04-04 Jan Kratochvil <[email protected]> |
2120 | ||
2121 | * infcmd.c (run_command_1): Call proceed with regcache_read_pc address. | |
2122 | * config/djgpp/fnchange.lst: Add translation for break-entry.exp. | |
2123 | ||
91d91ceb JK |
2124 | 2010-04-04 Jan Kratochvil <[email protected]> |
2125 | ||
2126 | * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove. | |
2127 | * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove. | |
2128 | ||
60531b24 JK |
2129 | 2010-04-02 Jan Kratochvil <[email protected]> |
2130 | ||
2131 | * dwarf2read.c (read_namespace_type): Use common "return set_die_type" | |
2132 | code form. | |
2133 | ||
a3c4230a HZ |
2134 | 2010-04-02 Hui Zhu <[email protected]> |
2135 | ||
2136 | * i386-tdep.c (OT_DQUAD): New enum. | |
2137 | (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2, | |
2138 | SSE3, SSSE3 and SSE4. | |
2139 | ||
b15758fe HZ |
2140 | 2010-04-02 Hui Zhu <[email protected]> |
2141 | ||
2142 | * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless | |
2143 | "*addr = 0". | |
2144 | ||
afd02f27 PA |
2145 | 2010-04-02 Pedro Alves <[email protected]> |
2146 | ||
2147 | * tracepoint.c (trace_dump_actions): New, factored out from | |
2148 | trace_dump_command, and adjusted to recurse into while-stepping's | |
2149 | action list. | |
2150 | (trace_dump_command): Use it. | |
2151 | ||
5cea2a26 PA |
2152 | 2010-04-02 Pedro Alves <[email protected]> |
2153 | ||
2154 | * breakpoint.h (struct counted_command_line): Moved definition to | |
2155 | breakpoint.c, and forward declare. | |
2156 | (breakpoint_commands): Declare. | |
2157 | * breakpoint.c (struct counted_command_line): Moved here. | |
2158 | (breakpoint_commands): New. | |
2159 | * tracepoint.c (encode_actions): Use breakpoint_commands. | |
2160 | * remote.c (remote_download_tracepoint): Ditto. | |
2161 | ||
7c47795c L |
2162 | 2010-04-01 H.J. Lu <[email protected]> |
2163 | ||
2164 | * remote.c (remote_parse_stop_reply): Use hex_string instead | |
2165 | of phex_nz for error. | |
2166 | ||
fff87407 SS |
2167 | 2010-04-01 Stan Shebs <[email protected]> |
2168 | Nathan Sidwell <[email protected]> | |
2169 | ||
2170 | * tracepoint.h (enum actionline_type): Remove. | |
2171 | (validate_actionline): Change return to void. | |
2172 | * tracepoint.c (report_agent_reqs_errors): New function. | |
2173 | (validate_actionline): Call it, change return to void, report errors | |
2174 | more consistently. | |
2175 | (collect_symbol): Call report_agent_reqs_errors. | |
2176 | (encode_actions_1): Ditto. | |
2177 | (encode_actions): Don't expect a result from validate_actionline. | |
2178 | ||
615bcdef SS |
2179 | 2010-04-01 Stan Shebs <[email protected]> |
2180 | ||
2181 | * tracepoint.c (trace_start_command): Confirm if trace is running. | |
2182 | (trace_stop_command): Error if trace not running. | |
2183 | ||
fe01d668 L |
2184 | 2010-04-01 H.J. Lu <[email protected]> |
2185 | ||
2186 | * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh". | |
2187 | (AMD64_NUM_LOWER_BYTE_REGS): New. | |
2188 | (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh". | |
2189 | (amd64_pseudo_register_write): Likewise. | |
2190 | (amd64_init_abi): Set num_byte_regs to 20. | |
2191 | ||
86b17b60 PA |
2192 | 2010-04-01 Pedro Alves <[email protected]> |
2193 | ||
2194 | * breakpoint.c (multi_start, multi_end, last_was_multi): Delete. | |
2195 | (prev_breakpoint_count): New. | |
2196 | (set_breakpoint_count): Adjust. | |
2197 | (rbreak_start_breakpoint_count): New. | |
2198 | (start_rbreak_breakpoints): Adjust. | |
2199 | (end_rbreak_breakpoints): Adjust. | |
2200 | (struct commands_info) <arg>: New field. | |
2201 | (do_map_commands_command): Tweak output to include breakpoint spec | |
2202 | range. | |
2203 | (commands_command_1): Adjust. Avoid setting an xfree cleanup if | |
2204 | ARG was empty on entry. Set INFO's arg. | |
2205 | (create_breakpoint): Adjust. | |
2206 | ||
2207 | * NEWS: Clarify `commands' changes. | |
2208 | ||
2c58c0a9 PA |
2209 | 2010-04-01 Pedro Alves <[email protected]> |
2210 | ||
2211 | * tracepoint.c: Include stack.h. | |
2212 | (struct add_local_symbols_data): New. | |
2213 | (do_collect_symbol): New. | |
2214 | (add_local_symbols): Rewrite using iterate_over_block_arg_vars and | |
2215 | iterate_over_block_local_vars. | |
2216 | * stack.c (print_block_frame_locals): Rewrite as ... | |
2217 | (iterate_over_block_locals): ... this. Take a callback function | |
2218 | pointer and generic data pointer, and call that instead of | |
2219 | print_variable_and_value. | |
2220 | (struct print_variable_and_value_data): New. | |
2221 | (do_print_variable_and_value): New. | |
2222 | (iterate_over_block_local_vars): New, abstracted out from | |
2223 | print_frame_local_vars. | |
2224 | (print_frame_local_vars): Rewrite using | |
2225 | iterate_over_block_local_vars. | |
2226 | (iterate_over_block_arg_vars): New, abstracted out from | |
2227 | print_frame_arg_vars. | |
2228 | (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars. | |
2229 | * stack.h (iterate_over_block_arg_local_vars_cb): New typedef. | |
2230 | (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare. | |
2231 | ||
d476da0e RE |
2232 | 2010-03-31 Richard Earnshaw <[email protected]> |
2233 | ||
2234 | * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH | |
8d95cc3b | 2235 | instructions. Use the PC+4 if the base of the TBB or TBH is the |
d476da0e RE |
2236 | PC register. |
2237 | ||
8072405b JK |
2238 | 2010-03-31 Jan Kratochvil <[email protected]> |
2239 | ||
2240 | Fix crash on reading wrong function declaration DWARF. | |
2241 | * dwarf2read.c (read_subroutine_type): New variable void_type. | |
2242 | Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization | |
2243 | more close to their use. | |
2244 | ||
8bf6485c SS |
2245 | 2010-03-31 Stan Shebs <[email protected]> |
2246 | ||
2247 | * breakpoint.c (tracepoint_save_command): Include variables, | |
8d95cc3b | 2248 | conditionals, tracepoint types, and default-collect. |
8bf6485c SS |
2249 | * tracepoint.c (save_trace_state_variables): New function. |
2250 | * tracepoint.h (save_trace_state_variables): Declare it. | |
2251 | ||
2ae2a0b7 PM |
2252 | 2010-03-31 Pierre Muller <[email protected]> |
2253 | ||
1a161f72 | 2254 | * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup. |
2ae2a0b7 | 2255 | |
86ffb506 KS |
2256 | 2010-03-30 Keith Seitz <[email protected]> |
2257 | ||
2258 | * c-typeprint.c (c_type_print_args): Don't print "void" | |
2259 | for java, regardless of whether it is TYPE_PROTOTYPED. | |
2260 | Use the passed-in language instead of current_language. | |
2261 | (c_type_print_varspec_suffix): Use current_language instead | |
2262 | of assuming language_c. | |
2263 | * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off | |
2264 | any return type specifier from the physname. | |
2265 | ||
956c2c8b PA |
2266 | 2010-03-30 Pedro Alves <[email protected]> |
2267 | ||
2268 | * tui/tui-interp.c (tui_is_toplevel): New. | |
2269 | (tui_init): Set it. | |
2270 | (tui_allowed_p): New. | |
2271 | * tui/tui.c (tui_enable): Check if the TUI is allowed before | |
2272 | enabling it. | |
2273 | * tui/tui.h (tui_allowed_p): Declare. | |
2274 | ||
98e5a990 TT |
2275 | 2010-03-30 Ozkan Sezer <[email protected]> |
2276 | ||
2277 | * serial.h: Include winsock2.h before windows.h. | |
2278 | ||
c8d5aac9 L |
2279 | 2010-03-30 H.J. Lu <[email protected]> |
2280 | ||
2281 | * NEWS: Mention xmlRegisters= in qSupported packet. | |
2282 | ||
2283 | * i386-tdep.c: Include "remote.h". | |
2284 | (_initialize_i386_tdep): Call register_remote_support_xml. | |
2285 | ||
2286 | * remote.c (remote_support_xml): New. | |
2287 | (register_remote_support_xml): Likewise. | |
2288 | (remote_query_supported_append): Likewise. | |
2289 | (remote_query_supported): Support remote_support_xml. | |
2290 | ||
2291 | * remote.h (register_remote_support_xml): New. | |
2292 | ||
76a2b958 SS |
2293 | 2010-03-29 Stan Shebs <[email protected]> |
2294 | ||
42e08e69 SS |
2295 | * tracepoint.c (trace_find_line_command): Remove dead code. |
2296 | ||
409873ef SS |
2297 | * tracepoint.h (struct uploaded_string): New struct. |
2298 | (struct uploaded_tp): New fields for source strings. | |
2299 | * breakpoint.c (this_utp, next_cmd): New globals. | |
2300 | (read_uploaded_action): New function. | |
2301 | (create_tracepoint_from_upload): Fill in more parts | |
2302 | of a tracepoint. | |
2303 | * tracepoint.c (encode_source_string): New function. | |
2304 | (trace_save): Write out source strings, fix error checks. | |
2305 | (parse_tracepoint_definition): Add source string parsing. | |
2306 | * remote.c (PACKET_TracepointSource): New packet type. | |
2307 | (remote_download_command_source): New function. | |
2308 | (remote_download_tracepoint): Download source pieces also. | |
2309 | (_initialize_remote): Add packet config command. | |
2310 | ||
a0405854 SS |
2311 | * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to |
2312 | expression handler. | |
2313 | ||
76a2b958 SS |
2314 | * tracepoint.c (start_tracing): Check tracepoints before sending |
2315 | commands to target, don't start if all tracepoints disabled. | |
2316 | ||
d350db38 PA |
2317 | 2010-03-28 Pedro Alves <[email protected]> |
2318 | ||
12f2d601 | 2319 | * cli/cli-script.c (process_next_line): Handle 'stepping'. |
d350db38 | 2320 | |
8b9b7ef8 SS |
2321 | 2010-03-26 Stan Shebs <[email protected]> |
2322 | ||
2323 | * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode. | |
2324 | ||
9766ced4 SS |
2325 | 2010-03-26 Tom Tromey <[email protected]> |
2326 | ||
2327 | * breakpoint.c (commands_command_1): Duplicate 'arg'. | |
2328 | ||
059acae7 UW |
2329 | 2010-03-26 Ulrich Weigand <[email protected]> |
2330 | ||
2331 | * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal. | |
2332 | (skip_prologue_sal): Remove local definition. | |
2333 | (resolve_sal_pc): Remove now unnecessary code. | |
2334 | * linespec.c (minsym_found): Call skip_prologue_sal. | |
2335 | * symtab.c (find_function_start_pc): Remove. | |
2336 | (find_function_start_sal): Extract prologue skipping into ... | |
2337 | (skip_prologue_sal): ... this new function. Handle code both | |
2338 | with and without debug info. Respect SAL's explicit_pc and | |
2339 | explicit_line flags. Inline old find_function_start_pc. | |
2340 | * symtab.h (find_function_start_pc): Remove. | |
2341 | (skip_prologue_sal): Add prototype. | |
2342 | ||
4a811a97 UW |
2343 | 2010-03-26 Ulrich Weigand <[email protected]> |
2344 | ||
2345 | * dwarf2read.c (read_func_scope): Also scan specification DIEs | |
2346 | for DW_TAG_imported_module children. | |
2347 | ||
907af001 UW |
2348 | 2010-03-26 Ulrich Weigand <[email protected]> |
2349 | ||
2350 | * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by | |
2351 | ignoring spurious DW_AT_name attributes for unnamed structs or unions. | |
2352 | * completer.c (add_struct_fields): Fix inverted logic. | |
2353 | ||
dde2d684 UW |
2354 | 2010-03-26 Ulrich Weigand <[email protected]> |
2355 | ||
2356 | * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left. | |
2357 | ||
a609a0c8 PA |
2358 | 2010-03-26 Pedro Alves <[email protected]> |
2359 | ||
2360 | * tracepoint.c (current_trace_status): Don't make sure error_desc | |
2361 | is non-NULL here. | |
2362 | (parse_trace_status): Release a previous error_desc string, and | |
2363 | set it to NULL by default. If stop reason is tracepoint_error, | |
2364 | make sure error_desc is not left NULL. | |
2365 | ||
610197fd PA |
2366 | 2010-03-26 Pedro Alves <[email protected]> |
2367 | ||
2368 | * tracepoint.c (trace_save): Remove X from tracepoint error | |
2369 | description. | |
2370 | ||
99b5e152 PA |
2371 | 2010-03-26 Pedro Alves <[email protected]> |
2372 | ||
2373 | * tracepoint.c (parse_trace_status): Don't allow plain strings in | |
2374 | the terror description. Don't expect an X prefix. | |
2375 | ||
6c28cbf2 SS |
2376 | 2010-03-25 Stan Shebs <[email protected]> |
2377 | ||
2378 | * tracepoint.h (trace_stop_reason): Add tracepoint_error. | |
2379 | (struct trace_status): New field error_desc. | |
2380 | * tracepoint.c (stop_reason_names): Add terror. | |
2381 | (current_trace_status): Ensure non-NULL error description. | |
2382 | (trace_status_command): Add error report. | |
2383 | (trace_status_mi): Ditto. | |
2384 | (trace_save): Add special case for error description. | |
2385 | (parse_trace_status): Add case for errors. | |
2386 | ||
418835cc KS |
2387 | 2010-03-25 Keith Seitz <[email protected]> |
2388 | ||
2389 | * dwarf2read.c (read_subroutine_type): If the compilation unit | |
2390 | language is Java, mark any formal parameter named "this" as | |
2391 | artificial (GCC/43521). | |
2392 | (dwarf2_name): Add special handling for Java constructors. | |
2393 | ||
aa7d318d TT |
2394 | 2010-03-25 Tom Tromey <[email protected]> |
2395 | ||
2396 | PR gdb/11327, PR gdb/11328, PR breakpoints/11368: | |
2397 | * infrun.c (handle_inferior_event): Change initialization of | |
2398 | stop_stack_dummy. | |
2399 | (handle_inferior_event): Change assignment to stop_stack_dummy. | |
2400 | (normal_stop): Update use of stop_stack_dummy. | |
2401 | (struct inferior_status) <stop_stack_dummy>: Change type. | |
2402 | * inferior.h (stop_stack_dummy): Update. | |
2403 | * infcmd.c (stop_stack_dummy): Change type. | |
2404 | * infcall.c (cleanup_delete_std_terminate_breakpoint): New | |
2405 | function. | |
2406 | (call_function_by_hand): Call set_std_terminate_breakpoint. | |
2407 | Rewrite std::terminate handling. | |
2408 | * breakpoint.h (enum bptype) <bp_std_terminate, | |
2409 | bp_std_terminate_master>: New. | |
2410 | (enum stop_stack_kind): New. | |
2411 | (struct bpstat_what) <call_dummy>: Change type. | |
2412 | (set_std_terminate_breakpoint, delete_std_terminate_breakpoint): | |
2413 | Declare. | |
2414 | * breakpoint.c (create_std_terminate_master_breakpoint): New | |
2415 | function. | |
2416 | (update_breakpoints_after_exec): Handle bp_std_terminate_master. | |
2417 | Call create_std_terminate_master_breakpoint. | |
2418 | (print_it_typical): Handle new breakpoint kinds. | |
2419 | (bpstat_stop_status): Handle bp_std_terminate_master. | |
2420 | (bpstat_what): Correctly set call_dummy field. Handle | |
2421 | bp_std_terminate_master and bp_std_terminate. | |
2422 | (print_one_breakpoint_location): Update. | |
2423 | (allocate_bp_location): Update. | |
2424 | (set_std_terminate_breakpoint): New function. | |
2425 | (delete_std_terminate_breakpoint): Likewise. | |
2426 | (create_thread_event_breakpoint): Update. | |
2427 | (delete_command): Update. | |
2428 | (breakpoint_re_set_one): Update. | |
2429 | (breakpoint_re_set): Call create_std_terminate_master_breakpoint. | |
2430 | ||
82ccf5a5 JK |
2431 | 2010-03-25 Jan Kratochvil <[email protected]> |
2432 | ||
2433 | * symfile.c (build_section_addr_info_from_bfd): New. | |
2434 | (build_section_addr_info_from_objfile): Base it on | |
2435 | build_section_addr_info_from_bfd. | |
2436 | (addrs_section_compar, addrs_section_sort): New. | |
2437 | (addr_info_make_relative): New variables my_cleanup, abfd_addrs, | |
2438 | addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build | |
2439 | addrs_to_abfd_addrs. Use it for recalculating ADDRS. | |
2440 | ||
737c4c52 MS |
2441 | 2010-03-24 Michael Snyder <[email protected]> |
2442 | ||
8d95cc3b | 2443 | * elfread.c (find_separate_debug_file_by_buildid): |
737c4c52 MS |
2444 | Remove unused local variable. |
2445 | ||
95a42b64 TT |
2446 | 2010-03-24 Tom Tromey <[email protected]> |
2447 | ||
2448 | PR breakpoints/9352: | |
2449 | * NEWS: Mention changes to `commands' and `rbreak'. | |
2450 | * symtab.c (do_end_rbreak_breakpoints): New function. | |
2451 | (rbreak_command): Call start_rbreak_breakpoints; arrange to call | |
2452 | end_rbreak_breakpoints. | |
2453 | * breakpoint.c (breakpoint_count, tracepoint_count): Now static. | |
2454 | (set_breakpoint_count): Likewise. Clear last_was_multi. | |
2455 | (multi_start, multi_end, last_was_multi): New globals. | |
2456 | (start_rbreak_breakpoints, end_rbreak_breakpoints): New | |
2457 | functions. | |
2458 | (struct commands_info): New | |
2459 | (do_map_commands_command): New function. | |
2460 | (commands_command_1): New function. | |
2461 | (commands_command): Use it. | |
2462 | (commands_from_control_command): Likewise. | |
2463 | (do_delete_breakpoint): New function. | |
2464 | (delete_command): Use it. | |
2465 | (map_breakpoint_numbers): Add 'data' argument. Pass to callback. | |
2466 | (do_map_disable_breakpoint): New function. | |
2467 | (disable_command): Use it. | |
2468 | (do_map_enable_breakpoint): New function. | |
2469 | (enable_command): Use it. | |
2470 | (enable_once_breakpoint): Add argument. | |
2471 | (enable_once_command): Update. | |
2472 | (enable_delete_breakpoint): Add argument. | |
2473 | (enable_delete_command): Update. | |
2474 | (break_command_really): Set last_was_multi when needed. | |
2475 | (check_tracepoint_command): Fix formatting. | |
2476 | (validate_commands_for_breakpoint): New function. | |
2477 | (breakpoint_set_commands): Use it. | |
2478 | (tracepoint_save_command): Update. | |
2479 | * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints): | |
2480 | Declare. | |
2481 | ||
9add0f1b TT |
2482 | 2010-03-24 Tom Tromey <[email protected]> |
2483 | ||
2484 | * breakpoint.h (struct counted_command_line): New struct. | |
2485 | (struct breakpoint) <commands>: Change type. | |
2486 | (struct bpstats) <commands>: Change type. | |
2487 | <commands_left>: New field. | |
2488 | * breakpoint.c (alloc_counted_command_line): New function. | |
2489 | (incref_counted_command_line): Likewise. | |
2490 | (decref_counted_command_line): Likewise. | |
2491 | (do_cleanup_counted_command_line): Likewise. | |
2492 | (make_cleanup_decref_counted_command_line): Likewise. | |
2493 | (breakpoint_set_commands): Use decref_counted_command_line and | |
2494 | alloc_counted_command_line. | |
2495 | (commands_command): Don't error if breakpoint commands are | |
2496 | executing. | |
2497 | (commands_from_control_command): Likewise. | |
2498 | (bpstat_free): Update. | |
2499 | (bpstat_copy): Likewise. | |
2500 | (bpstat_clear_actions): Likewise. | |
2501 | (bpstat_do_actions_1): Likewise. | |
2502 | (bpstat_stop_status): Likewise. | |
2503 | (print_one_breakpoint_location): Likewise. | |
2504 | (delete_breakpoint): Likewise. | |
2505 | (bpstat_alloc): Initialize new field. | |
2506 | (tracepoint_save_command): Update. | |
2507 | * tracepoint.c (encode_actions): Update. | |
2508 | (trace_dump_command): Update. | |
2509 | ||
a6c727b2 DJ |
2510 | 2010-03-24 Daniel Jacobowitz <[email protected]> |
2511 | ||
2512 | * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview. | |
2513 | * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer. | |
2514 | (read_structure_type): For RealView, set TYPE_STUB on structures with | |
2515 | no byte size and no children. | |
2516 | (read_subroutine_type): Mark functions as prototyped by default. | |
2517 | * symtab.c (producer_is_realview): New function. | |
2518 | * symtab.h (expand_line_sal): Fix declaration formatting. | |
2519 | (producer_is_realview): Declare. | |
2520 | ||
0d39a070 DJ |
2521 | 2010-03-24 Daniel Jacobowitz <[email protected]> |
2522 | ||
2523 | * arm-tdep.c (skip_prologue_function): New function. | |
2524 | (submask, bit, bits, sbits, BranchDest): Move higher in the file. | |
2525 | (thumb_analyze_prologue): Document return value. Recognize more | |
2526 | Thumb instructions, skippable calls, and some Thumb-2 instructions. | |
2527 | Add debug output. | |
2528 | (arm_skip_prologue): Remove call dummy check. Check the prologue | |
2529 | for non-GNU compilers. | |
2530 | (arm_instruction_changes_pc): New function. | |
2531 | (arm_analyze_prologue): New function, broken out from | |
2532 | arm_scan_prologue. Recognize more ARM instructions and skippable | |
2533 | calls. Update comments. Handle NULL cache. Return the address | |
2534 | of the first unrecognized instruction. Do not skip past other | |
2535 | instructions which change control flow. Add debug output. | |
2536 | (arm_scan_prologue): Use arm_analyze_prologue. | |
2537 | (ARM_PC_32): Delete. | |
2538 | (shifted_reg_val): Simplify ARM_PC_32 check. | |
2539 | ||
4baf5cf4 VP |
2540 | 2010-03-24 Vladimir Prus <[email protected]> |
2541 | ||
2542 | * tracepoint.c (tvariables_info_1): Actually compute | |
2543 | the number of rows in the result. | |
2544 | ||
4a5e7a5b PA |
2545 | 2010-03-24 Pedro Alves <[email protected]> |
2546 | ||
2547 | * remote.c (crc32): Constify `buf' parameter. | |
2548 | (remote_verify_memory): New, abstracted out from... | |
2549 | (compare_sections_command): ... this. Remove hardcoded target | |
2550 | checks. | |
2551 | (init_remote_ops): Install remote_verify_memory. | |
2552 | * target.c (target_verify_memory): New. | |
2553 | * target.h (struct target_ops) <to_verify_memory>: New field. | |
2554 | (target_verify_memory): Declare. | |
2555 | ||
011aacb0 VP |
2556 | 2010-03-24 Vladimir Prus <[email protected]> |
2557 | ||
2558 | Implement -trace-save. | |
2559 | ||
2560 | * mi-cmds.h (mi_cmds_trace_save): Declare. | |
2561 | * mi-cmds.c (mi_cmds): Register -trace-save. | |
2562 | * mi/mi-main.c (mi_cmd_trace_save): New. | |
2563 | * remote.c (remote_save_trace_data): Take const parameter. | |
2564 | * target.h (struct target_ops::to_save_trace_data): Take | |
2565 | const parameter. | |
2566 | * target.c (update_current_target): Adjust to the above. | |
2567 | * tracepoint.c (trave_save): New, extracted from | |
2568 | (trace_save_command): ...this. | |
2569 | (tfile_trace_find): Remove message that is unnecessary now | |
2570 | that 'tfind' reports found frame. | |
2571 | * tracepoint.h (trace_save): Declare. | |
2572 | ||
f197e0f1 VP |
2573 | 2010-03-24 Vladimir Prus <[email protected]> |
2574 | ||
2575 | Implement -trace-find. | |
2576 | ||
2577 | * mi/mi-cmds.c (mi_cmds): Register -trace-find. | |
2578 | * mi/mi-cmds.h (mi_cmd_trace_find): Declare. | |
2579 | * mi/mi-main.c (mi_cmd_trace_find): New. | |
2580 | * target.h (struct target_ops): Document to_trace_find. | |
2581 | * tracepoint.h (tfind_1): Declare. | |
2582 | * tracepoint.c (finish_tfind_command): Rename to... | |
2583 | (tfind_1): ...this. | |
2584 | * remote.c (remote_trace_find): Return -1 if target say | |
2585 | there's no frame. Improve error diagnostics. | |
2586 | ||
40e1c229 VP |
2587 | 2010-03-24 Vladimir Prus <[email protected]> |
2588 | ||
2589 | -trace-define-variable and -trace-list-variables. | |
2590 | ||
2591 | * tracepoint.c (create_trace_state_variable): Make | |
2592 | private copy of name, as opposed to assuming the | |
2593 | pointer lives forever. | |
2594 | (tvariables_info_1): New. | |
2595 | (tvariables_info): Use the above. | |
2596 | * tracepoint.h (create_trace_state_variable, tvariables_info_1): | |
2597 | Declare. | |
2598 | * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable | |
2599 | and -trace-list-variables. | |
2600 | * mi/mi-cmds.h (mi_cmd_trace_define_variable) | |
2601 | (mi_cmd_trace_list_variables): New. | |
2602 | * mi/mi-main.c (mi_cmd_trace_define_variable) | |
2603 | (mi_cmd_trace_list_variables): New. | |
2604 | ||
9b4c786c VP |
2605 | 2010-03-24 Vladimir Prus <[email protected]> |
2606 | ||
2607 | Implement -break-passcount. | |
2608 | ||
2609 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): New. | |
2610 | * mi/mi-cmds.c (mi_cmds): Register -break-passcount. | |
2611 | * mi/mi-cmds.h (mi_cmd_break_passcount): Declare. | |
2612 | ||
f224b49d VP |
2613 | 2010-03-24 Vladimir Prus <[email protected]> |
2614 | ||
2615 | -trace-start/-trace-end/-trace-status. | |
2616 | ||
2617 | * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status | |
2618 | and -trace-stop. | |
2619 | * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status) | |
2620 | (mi_cmd_trace_stop): Declare. | |
2621 | * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status) | |
2622 | (mi_cmd_trace_stop): New. | |
2623 | * tracepoint.c (start_tracing): New, extracted from... | |
2624 | (trace_start_command): ...this. | |
2625 | (trace_status_mi): New. | |
2626 | * tracepoint.h (struct trace_status): Document | |
2627 | stopping_tracepoint. | |
2628 | (start_tracing, stop_tracing, trace_status_mi): Declare. | |
2629 | ||
6534d786 VP |
2630 | 2010-03-24 Vladimir Prus <[email protected]> |
2631 | ||
2632 | Implement creating tracepoints with -break-insert. | |
2633 | ||
2634 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a | |
2635 | to mean that tracepoint should be created. | |
2636 | ||
51661e93 VP |
2637 | 2010-03-24 Vladimir Prus <[email protected]> |
2638 | ||
2639 | * breakpoint.c (check_no_tracepoint_commands): Use | |
2640 | current spelling of 'teval'. | |
2641 | ||
a7bdde9e VP |
2642 | 2010-03-24 Vladimir Prus <[email protected]> |
2643 | ||
2644 | Unify actions and commands | |
2645 | ||
2646 | * defs.h (read_command_lines, read_command_lines_1): New | |
2647 | parameters validator and closure. | |
2648 | * tracepoint.h (struct action_line): Remove. | |
2649 | * breakpoint.h (struct breakpoint): Remove the 'actions' | |
2650 | field. | |
2651 | * defs.h (enum command_control_type): New value | |
2652 | while_stepping_control. | |
2653 | (struct command_line): Add comments. | |
2654 | * breakpoint.c (breakoint_is_tracepoint): New. | |
2655 | (breakpoint_set_commands): For tracepoints, | |
2656 | verify the commands are permissible. | |
2657 | (check_tracepoint_commands): New. | |
2658 | (commands_command): Require that each new line is validated using | |
2659 | check_tracepoint_command, if we set commands for a tracepoint. | |
2660 | (create_tracepoint_from_upload): Likewise. | |
2661 | (print_one_breakpoint_location): Remove the code to print | |
2662 | actions specifically. | |
2663 | (tracepoint_save_command): Relay to print_command_lines. | |
2664 | * cli/cli-script.c (process_next_line): New parameters validator | |
2665 | and closure. Handle 'while-stepping'. Call validator if not null. | |
2666 | (read_command_lines, read_command_lines1): Likewise. | |
2667 | (recurse_read_control_structure): New parameters validator and | |
2668 | closure. Handle while_stepping_control. | |
2669 | (print_command_lines): Handle while-stepping. | |
2670 | (get_command_line, define_command, document_command): Adjust. | |
2671 | * remote.c (remote_download_tracepoint): Adjust. | |
2672 | * tracepoint.c (make_cleanup_free_actions, read_actions) | |
2673 | (free_actions, do_free_actions_cleanup): Remove. | |
2674 | (trace_actions_command): Use read_command_lines. | |
2675 | (validate_actionline): Use error in one place. | |
2676 | (encode_actions_1): New, extracted from... | |
2677 | (encode_actions): ...this. Also use cleanups for exception | |
2678 | safety. | |
2679 | (trace_dump_command): Adjust. | |
2680 | * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if | |
2681 | it's tracepoint. | |
2682 | ||
64e3cf3d MF |
2683 | 2010-03-23 Mike Frysinger <[email protected]> |
2684 | ||
2685 | * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/.. | |
2686 | ||
52e9fde8 SS |
2687 | 2010-03-22 Stan Shebs <[email protected]> |
2688 | ||
2689 | * value.c (value_static_field): Be lazy about the field's value. | |
2690 | ||
508ccb1f TT |
2691 | 2010-03-22 Reid Kleckner <[email protected]> |
2692 | ||
2693 | PR gdb/11094 | |
2694 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add | |
2695 | bp_jit_event. | |
2696 | (disable_breakpoints_in_shlibs): Likewise. | |
2697 | ||
acebe513 UW |
2698 | 2010-03-22 Ulrich Weigand <[email protected]> |
2699 | ||
2700 | * dwarf2read.c (partial_die_parent_scope): Work around buggy | |
2701 | GCC 4.1 debug info generation (GCC PR c++/28460). | |
2702 | (determine_prefix): Likewise. | |
2703 | ||
957b8b5a DJ |
2704 | 2010-03-20 Daniel Jacobowitz <[email protected]> |
2705 | ||
2706 | * tui/tui-disasm.c (tui_get_begin_asm_address): Default to | |
2707 | get_current_arch. | |
2708 | * tui/tui-layout.c (extract_display_start_addr): Likewise. | |
2709 | ||
3b11a015 SS |
2710 | 2010-03-19 Stan Shebs <[email protected]> |
2711 | ||
2712 | * ax-gdb.c (gen_fetch): Handle bool. | |
2713 | (gen_usual_unary): Ditto. | |
2714 | (gen_cast): Ditto. | |
2715 | (gen_equal): New function. | |
2716 | (gen_less): New function. | |
2717 | (gen_expr_binop_rest): Call them, also return integer type from | |
2718 | logical operations. | |
2719 | (gen_expr): Ditto. | |
2720 | ||
20781792 TT |
2721 | 2010-03-19 Tom Tromey <[email protected]> |
2722 | ||
2723 | * jv-lang.c (jv_dynamics_objfile_data_key) | |
2724 | (jv_type_objfile_data_key): New globals. | |
2725 | (class_symtab): Move earlier. | |
2726 | (jv_per_objfile_free): New function. | |
2727 | (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch' | |
2728 | parameter. | |
2729 | Remove ancient #if 1. | |
2730 | (add_class_symbol): Remove redundant declaration. | |
2731 | (java_lookup_class): Use alloc_type, not alloc_type_arch. | |
2732 | (java_link_class_type): Mark as static. Update. | |
2733 | (jv_clear_object_type): New function. | |
2734 | (set_java_object_type): Likewise. | |
2735 | (get_java_object_type): Use set_java_object_type. | |
2736 | (is_object_type): Likewise. | |
2737 | (_initialize_java_language): Register new objfile keys. | |
2738 | (get_java_class_symtab): Add 'gdbarch' parameter. | |
2739 | (add_class_symtab_symbol): Update. | |
2740 | (type_from_class): Update. | |
2741 | ||
cf3e25ca SS |
2742 | 2010-03-19 Stan Shebs <[email protected]> |
2743 | ||
8d95cc3b | 2744 | * ax-general.c (ax_const_l): Fix a sizing bug. |
cf3e25ca | 2745 | |
f1ae44c9 | 2746 | 2010-03-18 Joel Brobecker <[email protected]> |
2747 | ||
2748 | GDB 7.1 released. | |
2749 | ||
4daf5ac0 SS |
2750 | 2010-03-18 Stan Shebs <[email protected]> |
2751 | Pedro Alves <[email protected]> | |
2752 | ||
2753 | * target.h (struct target_ops): New method | |
2754 | to_set_circular_trace_buffer. | |
2755 | (target_set_circular_trace_buffer): New macro. | |
2756 | * target.c (update_current_target): Add | |
2757 | to_set_circular_trace_buffer, fix to_set_disconnected_tracing | |
2758 | default behavior. | |
2759 | * remote.c (remote_set_circular_trace_buffer): New function. | |
2760 | (init_remote_ops): Add it to vector. | |
2761 | * tracepoint.h (struct trace_status): New field traceframes_created, | |
2762 | change buffer_size and buffer_free to int. | |
2763 | * tracepoint.c (circular_trace_buffer): New global. | |
2764 | (start_tracing): Send values of disconnected tracing and circular | |
2765 | trace buffer settings. | |
2766 | (set_circular_trace_buffer): New function. | |
2767 | (parse_trace_state): Handle total space and frames created. | |
2768 | (trace_status_command): Display total space and total frames | |
2769 | created. | |
2770 | (trace_save): Write out new status values. | |
2771 | (parse_trace_status): Set traceframe_count, traceframes_created, | |
2772 | buffer_free and buffer_size to -1 by default. | |
2773 | (_initialize_tracepoint): New setshow for circular-trace-buffer. | |
2774 | * NEWS: Mention the circular trace buffer option. | |
2775 | ||
40c549d6 TT |
2776 | 2010-03-18 Tom Tromey <[email protected]> |
2777 | ||
2778 | * infcmd.c (finish_command_continuation): Wrap print_return_value | |
2779 | in TRY_CATCH. | |
2780 | ||
e8d05480 JB |
2781 | 2010-03-18 Joel Brobecker <[email protected]> |
2782 | ||
2783 | * dwarf2read.c (add_partial_subprogram): Make sure the subprogram | |
2784 | DIE has a name before creating the associated partial symbol. | |
2785 | (read_func_scope): Emit a complaint if the subprogram does not | |
2786 | have a name or when we can't extract the subprogram PC bounds. | |
2787 | ||
441b986a UW |
2788 | 2010-03-18 Ulrich Weigand <[email protected]> |
2789 | ||
2790 | * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch | |
2791 | instead of selected frame architecture. | |
2792 | ||
4247603b PA |
2793 | 2010-03-18 Pedro Alves <[email protected]> |
2794 | ||
2795 | * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's | |
2796 | a valid selected thread, and that it is not running. | |
2797 | (advance_command): Ditto. | |
2798 | (finish_command): Ditto. | |
2799 | ||
400c6af0 SS |
2800 | 2010-03-17 Stan Shebs <[email protected]> |
2801 | ||
3a96536b SS |
2802 | * ax-gdb.c (require_rvalue): Disallow non-scalars. |
2803 | ||
573cda03 SS |
2804 | * infcall.c: Include tracepoint.h. |
2805 | (call_function_by_hand): Disallow calls in tfind mode. | |
2806 | * infcmd.c: Include tracepoint.h. | |
2807 | (ensure_not_tfind_mode): New function. | |
2808 | (continue_1): Call it. | |
2809 | (step_1) Ditto. | |
2810 | (jump_command): Ditto. | |
2811 | (signal_command): Ditto. | |
2812 | (advance_command): Ditto. | |
2813 | (until_command): Ditto. | |
2814 | (finish_command): Ditto. | |
2815 | * tracepoint.h (disconnect_or_stop_tracing): Declare. | |
2816 | ||
400c6af0 SS |
2817 | * ax-gdb.h (struct axs_value): New field optimized_out. |
2818 | (gen_trace_for_var): Add gdbarch argument. | |
2819 | * ax-gdb.c (gen_trace_static_fields): New function. | |
2820 | (gen_traced_pop): Call it, add gdbarch argument. | |
2821 | (gen_trace_for_expr): Update call to it. | |
2822 | (gen_trace_for_var): Ditto, and report optimized-out variables. | |
2823 | (gen_struct_ref_recursive): Check for optimized-out value. | |
2824 | (gen_struct_elt_for_reference): Ditto. | |
2825 | (gen_static_field): Pass gdbarch instead of expression, assume | |
2826 | optimization if field not found. | |
2827 | (gen_var_ref): Set the optimized_out flag. | |
2828 | (gen_expr): Error on optimized-out variable. | |
2829 | * tracepoint.c (collect_symbol): Handle struct-valued vars as | |
2830 | expressions, skip optimized-out variables with computed locations. | |
2831 | * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of | |
2832 | erroring out if location expression missing. | |
2833 | (loclist_tracepoint_var_ref): Don't error out here. | |
2834 | ||
a3b2a86b TT |
2835 | 2010-03-17 Tom Tromey <[email protected]> |
2836 | ||
2837 | * dwarf2read.c (dwarf2_get_section_info): Handle case where no | |
2838 | DWARF data is available. | |
2839 | ||
38963c97 DJ |
2840 | 2010-03-17 Daniel Jacobowitz <[email protected]> |
2841 | ||
2842 | * symfile.c (generic_load): Reset breakpoints after loading. | |
2843 | ||
ddabfc73 TT |
2844 | 2010-03-17 Tom Tromey <[email protected]> |
2845 | ||
2846 | * linux-nat.c (linux_nat_detach): Check debug_linux_nat. | |
2847 | ||
d8c09fb5 JK |
2848 | 2010-03-17 Jan Kratochvil <[email protected]> |
2849 | ||
2850 | * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the | |
2851 | create_breakpoint call, adjust the parameters. | |
2852 | ||
bbb0eef6 JK |
2853 | 2010-03-16 Jan Kratochvil <[email protected]> |
2854 | Chandru <[email protected]> | |
2855 | ||
2856 | * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED. | |
2857 | * valarith.c (value_subscripted_rvalue): Suppress error if | |
2858 | TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. | |
2859 | ||
46956e39 HZ |
2860 | 2010-03-16 Holger Hans Peter Freyther <[email protected]> |
2861 | ||
2862 | * linux-record.c (record_linux_msghdr): Remove unintended semicolons. | |
2863 | ||
b8d088ac JB |
2864 | 2010-03-16 Joel Brobecker <[email protected]> |
2865 | ||
2866 | * ada-tasks.c (task_command_1): Check that the task ptid is valid | |
2867 | before doing the associated thread switch. | |
2868 | ||
322be962 DJ |
2869 | 2010-03-16 Daniel Jacobowitz <[email protected]> |
2870 | ||
2871 | * MAINTAINERS: Update my email address. | |
2872 | ||
8cdf0e15 VP |
2873 | 2010-03-16 Vladimir Prus <[email protected]> |
2874 | ||
2875 | Simplify MI breakpoint setting. | |
2876 | ||
2877 | * breakpoint.c (break_command_really): Make nonstatic and | |
2878 | rename to... | |
2879 | (create_breakpoint): ...this. Rename prior function by this name | |
2880 | to... | |
2881 | (create_breakpoint_sal): ...this. | |
2882 | (create_breakpoints): Rename to... | |
2883 | (create_breakpoints_sal): ...this. | |
2884 | (set_breakpoint): Remove. | |
2885 | * breakpoint.h: Adjust to above changes. | |
2886 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify. | |
2887 | ||
b6e7192f SS |
2888 | 2010-03-15 Stan Shebs <[email protected]> |
2889 | ||
2890 | * ax-gdb.c: Include cp-support.h. | |
2891 | (find_field): Remove. | |
2892 | (gen_primitive_field): New function. | |
2893 | (gen_struct_ref_recursive): New function. | |
2894 | (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead | |
2895 | of find_field. | |
2896 | (gen_static_field): New function. | |
2897 | (gen_struct_elt_for_reference): New. | |
2898 | (gen_namespace_elt): New. | |
2899 | (gen_maybe_namespace_elt): New. | |
2900 | (gen_aggregate_elt_ref): New. | |
2901 | (gen_expr): Add OP_SCOPE, display opcode name in error message. | |
2902 | ||
1054b214 TT |
2903 | 2010-03-15 Tom Tromey <[email protected]> |
2904 | ||
2905 | * dwarf2read.c (die_needs_namespace): Also return 0 for | |
2906 | DW_TAG_subprogram. | |
2907 | ||
13387711 SW |
2908 | 2010-03-15 Sami Wagiaalla <[email protected]> |
2909 | ||
2910 | PR c++/7936: | |
2911 | * cp-support.h: Added char *declaration element to using_direct | |
2912 | data struct. | |
2913 | (cp_add_using): Added char *declaration argument. | |
2914 | (cp_add_using_directive): Ditto. | |
2915 | (cp_lookup_symbol_imports): made extern. | |
2916 | * cp-namespace.c: Updated with the above changes. | |
2917 | * dwarf2read.c (read_import_statement): Ditto. | |
2918 | (read_namespace): Ditto. | |
2919 | (read_import_statement): Support import declarations. | |
2920 | * cp-namespace.c (cp_lookup_symbol_imports): Check for imported | |
2921 | declarations. | |
2922 | Added support for 'declaration_only' search. | |
2923 | (cp_lookup_symbol_namespace): Attempt to search for the name as | |
2924 | is before consideration of imports. | |
2925 | * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only' | |
2926 | search at every block level search. | |
2927 | Now takes language argument. | |
2928 | (lookup_symbol_aux): Updated. | |
2929 | ||
6e31430b TT |
2930 | 2010-03-15 Tom Tromey <[email protected]> |
2931 | ||
2932 | * c-exp.y (name_not_typename): Add 'operator' clause. | |
2933 | ||
4dea3bb7 | 2934 | 2010-03-15 Ralf Corsepius <[email protected]> (tiny change) |
bf307134 JB |
2935 | |
2936 | * configure.ac: Exit if ${gdb_target_obs}" is not set. | |
2937 | * configure: Regenerate. | |
2938 | ||
4d9743af JK |
2939 | 2010-03-15 Jan Kratochvil <[email protected]> |
2940 | ||
2941 | * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss" | |
2942 | and ".sdynbss". Update the comment. | |
2943 | ||
f75150fe JZ |
2944 | 2010-03-15 Jie Zhang <[email protected]> |
2945 | ||
2946 | * MAINTAINERS: Update my email address. | |
2947 | ||
3c13bc11 DJ |
2948 | 2010-03-14 Daniel Jacobowitz <[email protected]> |
2949 | ||
2950 | * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check. | |
2951 | ||
43484f03 DJ |
2952 | 2010-03-14 Daniel Jacobowitz <[email protected]> |
2953 | ||
2954 | * charset.c [USE_WIN32API]: Include <windows.h>. | |
2955 | (_initialize_charset): Correct type of w32_host_default_charset. | |
2956 | ||
5f25d77d PA |
2957 | 2010-03-14 Pedro Alves <[email protected]> |
2958 | ||
2959 | * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid. | |
2960 | ||
1c809c68 TT |
2961 | 2010-03-12 Tom Tromey <[email protected]> |
2962 | ||
2963 | PR c++/9708: | |
2964 | * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable | |
2965 | in a lexical block does not need a namespace. | |
2966 | (new_symbol) <DW_TAG_variable>: Put extern variables on | |
2967 | list_in_scope in all cases. | |
2968 | ||
948103cf SS |
2969 | 2010-03-12 Stan Shebs <[email protected]> |
2970 | ||
2971 | * ax-gdb.c (gen_expr): Add shift expressions. | |
2972 | (gen_expr_binop_rest): Ditto. | |
2973 | ||
00ae8fef SW |
2974 | 2010-03-12 Sami Wagiaalla <[email protected]> |
2975 | ||
2976 | * buildsym.c (finish_block): Reset using_directives pointer | |
2977 | after block initialization. | |
2978 | ||
9cad29ac L |
2979 | 2010-03-12 H.J. Lu <[email protected]> |
2980 | ||
2981 | * amd64-tdep.c (amd64_word_names): Replace "sp" with "". | |
2982 | * i386-tdep.c (i386_word_names): Likewise. | |
2983 | ||
2f4d8875 PA |
2984 | 2010-03-12 Pedro Alves <[email protected]> |
2985 | ||
2986 | * target.c (memory_xfer_partial): Don't use the stack cache if | |
2987 | inspecting trace frames. | |
2988 | * tracepoint.c (finish_tfind_command): Invalidate the target | |
2989 | dcache. | |
2990 | ||
ccf26247 JK |
2991 | 2010-03-11 Jan Kratochvil <[email protected]> |
2992 | ||
2993 | * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered | |
2994 | for the PIC displacement, print also the displacement value. | |
2995 | (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE. | |
2996 | ||
477c84a7 KB |
2997 | 2010-03-10 Kevin Buettner <[email protected]> |
2998 | ||
2999 | * remote-mips.c (close_ports, mips_initialize_cleanups) | |
3000 | (mips_exit_cleanups, mips_send_command, mips_open, pmon_open) | |
3001 | (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint) | |
3002 | (mips_stopped_by_watchpoint, send_srec, pmon_checkset) | |
3003 | (pmon_make_fastrec, pmon_check_ack, mips_expect_download) | |
3004 | (pmon_check_entry_address, pmon_check_total, pmon_end_download) | |
3005 | (pmon_download, pmon_load_fast, _initialize_remote_mips): Add | |
3006 | comments describing each of these functions. | |
3007 | (mips_enter_debug, mips_exit_debug, common_open) | |
3008 | (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add | |
3009 | blank line after the comment describing the function. | |
3010 | ||
01c30d6e JK |
3011 | 2010-03-10 Jan Kratochvil <[email protected]> |
3012 | ||
3013 | * solib-svr4.c (svr4_exec_displacement): Return now success, new | |
3014 | parameter displacementp. Update comment. | |
3015 | (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS | |
3016 | element exists. Return if svr4_exec_displacement was not successful. | |
3017 | Update comment. | |
3018 | ||
09919ac2 JK |
3019 | 2010-03-10 Jan Kratochvil <[email protected]> |
3020 | Daniel Jacobowitz <[email protected]> | |
3021 | ||
3022 | * solib-svr4.c (read_program_header): Support type == -1 to read | |
3023 | all program headers. | |
3024 | (read_program_headers_from_bfd): New function. | |
3025 | (svr4_static_exec_displacement): Remove and move the comment ... | |
3026 | (svr4_exec_displacement): ... here. Remove variable found. New | |
3027 | variable displacement. Check also DYNAMIC. Verify DISPLACEMENT | |
3028 | alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF | |
3029 | targets using read_program_headers_from_bfd. Remove the call of | |
3030 | svr4_static_exec_displacement. | |
3031 | ||
d146bf1e TT |
3032 | 2010-03-10 Tom Tromey <[email protected]> |
3033 | ||
3034 | * dwarf2read.c (struct pubnames_header): Remove. | |
3035 | (_PUBNAMES_HEADER): Remove. | |
3036 | (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove. | |
3037 | (struct aranges_header): Remove. | |
3038 | (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove. | |
3039 | (struct dwarf2_per_objfile) <pubnames, aranges>: Remove. | |
3040 | (PUBNAMES_SECTION): Remove. | |
3041 | (ARANGES_SECTION): Remove. | |
3042 | (dwarf2_locate_sections): Don't handle pubnames or aranges. | |
3043 | (dwarf2_build_psymtabs): Remove dead code. | |
3044 | (dwarf2_build_psymtabs_easy): Remove. | |
3045 | ||
be391dca TT |
3046 | 2010-03-10 Tom Tromey <[email protected]> |
3047 | ||
3048 | * elfread.c (elf_symfile_read): Don't call | |
3049 | dwarf2_build_frame_info. | |
3050 | * dwarf2read.c (struct dwarf2_section_info) <readin>: New field. | |
3051 | (struct dwarf2_per_objfile) <objfile>: New field. | |
3052 | (dwarf2_has_info): Now idempotent. Set objfile field. | |
3053 | (dwarf2_read_section): Check and set readin field. Call | |
3054 | posix_madvise. | |
3055 | (dwarf2_build_psymtabs): Don't read all sections. | |
3056 | (read_type_comp_unit_head): Read types section. | |
3057 | (create_debug_types_hash_table): Likewise. | |
3058 | (init_cu_die_reader): Add asserts. | |
3059 | (process_type_comp_unit): Add assert. | |
3060 | (dwarf2_build_psymtabs_hard): Read info section. | |
3061 | (load_partial_comp_unit): Add assert. | |
3062 | (create_all_comp_units): Read info section. | |
3063 | (load_full_comp_unit): Likewise. | |
3064 | (dwarf2_ranges_read): Read ranges section. | |
3065 | (dwarf2_record_block_ranges): Add assert. | |
3066 | (dwarf2_read_abbrevs): Read abbrev section. | |
3067 | (read_indirect_string): Read str section. | |
3068 | (dwarf_decode_line_header): Read line section. | |
3069 | (read_signatured_type_at_offset): Read types section. | |
3070 | (dwarf_decode_macros): Read macinfo section. | |
3071 | (dwarf2_symbol_mark_computed): Read loc section. | |
3072 | * dwarf2-frame.c (dwarf2_frame_find_fde): Call | |
3073 | dwarf2_build_frame_info. | |
3074 | (dwarf2_build_frame_info): Unconditionally set | |
3075 | dwarf2_frame_objfile_data on the objfile. | |
3076 | * configure.ac: Check for posix_madvise. | |
3077 | * config.in, configure: Rebuild. | |
3078 | ||
ccefe4c4 TT |
3079 | 2010-03-10 Tom Tromey <[email protected]> |
3080 | ||
e38df1d0 TT |
3081 | * xcoffread.c (xcoff_start_psymtab): Update. |
3082 | (xcoff_end_psymtab): Update. | |
3083 | * psymtab.c (allocate_psymtab): Remove dead code. | |
3084 | * psympriv.h (struct partial_symtab) <read_symtab_private>: Now | |
3085 | void*. | |
3086 | * mdebugread.c (parse_partial_symbols): Update. | |
3087 | (new_psymtab): Likewise. | |
3088 | * dwarf2read.c (process_psymtab_comp_unit): Update. | |
3089 | (psymtab_to_symtab_1): Update. | |
3090 | * dbxread.c (start_psymtab): Update. | |
3091 | (end_psymtab): Likewise. | |
3092 | ||
be391dca | 3093 | 2010-03-10 Tom Tromey <[email protected]> |
e38df1d0 | 3094 | |
ccefe4c4 TT |
3095 | * xcoffread.c: Include psymtab.h. |
3096 | (xcoff_sym_fns): Update. | |
3097 | * symtab.h (struct partial_symbol): Remove. | |
3098 | (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove. | |
3099 | (struct partial_symtab): Remove. | |
3100 | (PSYMTAB_TO_SYMTAB): Remove. | |
3101 | (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab) | |
3102 | (find_pc_sect_psymtab): Remove. | |
3103 | (find_pc_sect_symtab_via_partial): Declare. | |
3104 | (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab) | |
3105 | (find_main_psymtab): Remove. | |
3106 | (find_main_filename): Declare. | |
3107 | (fixup_psymbol_section): Remove. | |
3108 | (fixup_section): Declare. | |
3109 | * symtab.c: Include psymtab.h. | |
3110 | (lookup_symtab): Use lookup_symtab method. | |
3111 | (lookup_partial_symtab): Remove. | |
3112 | (find_pc_sect_psymtab_closer): Remove. | |
3113 | (find_pc_sect_psymtab): Remove. | |
3114 | (find_pc_sect_symtab_via_partial): New function. | |
3115 | (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove. | |
3116 | (fixup_section): No longer static. | |
3117 | (fixup_psymbol_section): Remove. | |
3118 | (lookup_symbol_aux): Use lookup_symbol_aux_quick. | |
3119 | (lookup_global_symbol_from_objfile): Likewise. | |
3120 | (lookup_symbol_aux_psymtabs): Remove. | |
3121 | (lookup_symbol_aux_quick): New function. | |
3122 | (lookup_symbol_global): Use lookup_symbol_aux_quick. | |
3123 | (lookup_partial_symbol): Remove. | |
3124 | (basic_lookup_transparent_type_quick): New function. | |
3125 | (basic_lookup_transparent_type): Use it. | |
3126 | (find_main_psymtab): Remove. | |
3127 | (find_main_filename): New function. | |
3128 | (find_pc_sect_symtab): Use find_pc_sect_symtab method. | |
3129 | (find_line_symtab): Use expand_symtabs_with_filename method. | |
3130 | (output_partial_symbol_filename): New function. | |
3131 | (sources_info): Use map_partial_symbol_filenames. | |
3132 | (struct search_symbols_data): New type. | |
3133 | (search_symbols_file_matches): New function. | |
3134 | (search_symbols_name_matches): Likewise. | |
3135 | (search_symbols): Use expand_symtabs_matching method. | |
3136 | (struct add_name_data): Rename from add_macro_name_data. | |
3137 | (add_macro_name): Update. | |
3138 | (add_partial_symbol_name): New function. | |
3139 | (default_make_symbol_completion_list): Use | |
3140 | map_partial_symbol_names. | |
3141 | (struct add_partial_symbol_name): New type. | |
3142 | (maybe_add_partial_symtab_filename): New function. | |
3143 | (make_source_files_completion_list): Use | |
3144 | map_partial_symbol_filenames. | |
3145 | (expand_line_sal): Use expand_symtabs_with_filename method. | |
3146 | * symmisc.c: Include psymtab.h. | |
3147 | (print_objfile_statistics): Use print_stats method. | |
3148 | (dump_objfile): Use dump method. | |
3149 | (dump_psymtab, maintenance_print_psymbols) | |
3150 | (maintenance_info_psymtabs, maintenance_check_symtabs) | |
3151 | (extend_psymbol_list): Remove. | |
3152 | * symfile.h (struct quick_symbol_functions): New struct. | |
3153 | (struct sym_fns) <qf>: New field. | |
3154 | (sort_pst_symbols): Remove. | |
3155 | (increment_reading_symtab): Declare. | |
3156 | * symfile.c: Include psymtab.h. | |
3157 | (compare_psymbols, sort_pst_symbols): Remove. | |
3158 | (psymtab_to_symtab): Remove. | |
3159 | (increment_reading_symtab): New function. | |
3160 | (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs | |
3161 | method. | |
3162 | (set_initial_language): Use find_main_filename. | |
3163 | (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove. | |
3164 | (free_named_symtabs): Remove unused code. | |
3165 | (start_psymtab_common, add_psymbol_to_bcache) | |
3166 | (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list): | |
3167 | Remove. | |
3168 | * stack.c: Include psymtab.h, symfile.h. | |
3169 | (backtrace_command_1): Use find_pc_sect_symtab_via_partial. | |
3170 | * source.h (psymtab_to_fullname): Don't declare. | |
3171 | * source.c: Include psymtab.h. | |
3172 | (select_source_symtab): Use find_last_source_symtab method. | |
3173 | (forget_cached_source_info): Use forget_cached_source_info | |
3174 | method. | |
3175 | (find_and_open_source): No longer static. | |
3176 | (psymtab_to_fullname): Remove. | |
3177 | * somread.c: Include psymtab.h. | |
3178 | (som_sym_fns): Update. | |
3179 | * psympriv.h: New file. | |
3180 | * psymtab.h: New file. | |
3181 | * psymtab.c: New file. | |
3182 | * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove. | |
3183 | (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise. | |
3184 | * objfiles.c: Include psymtab.h. | |
3185 | (objfile_relocate1): Use relocate method. | |
3186 | (objfile_has_partial_symbols): Use has_symbols method. | |
3187 | * mipsread.c: Include psymtab.h. | |
3188 | (ecoff_sym_fns): Update. | |
3189 | * mi/mi-cmd-file.c: Include psymtab.h. | |
3190 | (print_partial_file_name): New function. | |
3191 | (mi_cmd_file_list_exec_source_files): Use | |
3192 | map_partial_symbol_filenames. | |
3193 | * mdebugread.c: Include psympriv.h. | |
3194 | * machoread.c: Include psympriv.h. | |
3195 | (macho_sym_fns): Update. | |
3196 | * m2-exp.y (yylex): Use lookup_symtab. | |
3197 | * elfread.c: Include psympriv.h. | |
3198 | (elf_sym_fns): Update. | |
3199 | * dwarf2read.c: Include psympriv.h. | |
3200 | * dbxread.c: Include psympriv.h. | |
3201 | (aout_sym_fns): Update. | |
3202 | * cp-support.c: Include psymtab.h. | |
3203 | (read_in_psymtabs): Remove. | |
3204 | (make_symbol_overload_list_qualified): Use | |
3205 | expand_symtabs_for_function method. | |
3206 | * coffread.c: Include psympriv.h. | |
3207 | (coff_sym_fns): Update. | |
3208 | * blockframe.c: Include psymtab.h. | |
3209 | (find_pc_partial_function): Use find_pc_sect_symtab method. | |
3210 | * ada-lang.h (ada_update_initial_language): Update. | |
3211 | * ada-lang.c: Include psymtab.h. | |
3212 | (ada_update_initial_language): Remove 'main_pst' argument. | |
3213 | (ada_lookup_partial_symbol): Remove. | |
3214 | (struct ada_psym_data): New type. | |
3215 | (ada_add_psyms): New function. | |
3216 | (ada_add_non_local_symbols): Use map_ada_symtabs method. | |
3217 | (struct add_partial_datum): New type. | |
3218 | (ada_add_partial_symbol_completions): New function. | |
3219 | (ada_make_symbol_completion_list): Use map_partial_symbol_names. | |
3220 | (ada_exception_support_info_sniffer): Update. | |
3221 | * Makefile.in (SFILES): Add psymtab.c. | |
3222 | (COMMON_OBS): Add psymtab.o. | |
3223 | (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h. | |
3224 | ||
7d8500b7 PM |
3225 | 2010-03-10 Pierre Muller <[email protected]> |
3226 | ||
3227 | * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API. | |
3228 | ||
c0cc3a76 SW |
3229 | 2010-03-10 Sami Wagiaalla <[email protected]> |
3230 | ||
3231 | PR C++/11236: | |
3232 | * cp-namespace.c (cp_add_using): Deleted. | |
3233 | (cp_add_using_directive): Use obstack allocations. | |
3234 | Merged the function cp_add_using into this one. | |
3235 | Added 'struct obstack *' argument. | |
3236 | (cp_scan_for_anonymous_namespaces): Updated. | |
3237 | * cp-support.h: Updated. | |
3238 | * dwarf2read.c (read_import_statement): Updated. | |
3239 | (read_namespace): Updated. | |
3240 | ||
452fa064 CF |
3241 | 2010-03-10 Pierre Muller <[email protected]> |
3242 | ||
3243 | * windows-nat.c (cygwin_conv_path): Remove old macro. | |
3244 | ||
60e1c644 PA |
3245 | 2010-03-10 Pedro Alves <[email protected]> |
3246 | ||
3247 | * breakpoint.c (condition_command): Handle watchpoint conditions. | |
3248 | (is_hardware_watchpoint): Add comment. | |
3249 | (is_watchpoint): New. | |
3250 | (update_watchpoint): Don't reparse the watchpoint's condition | |
3251 | unless necessary. | |
3252 | (WP_IGNORE): New. | |
3253 | (watchpoint_check): Use it. | |
3254 | (bpstat_check_watchpoint): Handle it. | |
3255 | (bpstat_check_breakpoint_conditions): Evaluate watchpoint local | |
3256 | conditions in a frame where it makes sense. | |
3257 | (watch_command_1): Store the innermost block of the condition | |
3258 | expression. | |
3259 | (delete_breakpoint): Delete the watchpoint condition expression. | |
3260 | * breakpoint.h (struct bp_location) <cond>: Update comment. | |
3261 | (struct breakpoint): New field `cond_exp_valid_block'. | |
3262 | ||
af6b7be1 JB |
3263 | 2010-03-09 Joel Brobecker <[email protected]> |
3264 | ||
3265 | Adjust handling of Ada DIEs after dwarf2_physname patch. | |
3266 | * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs. | |
3267 | ||
60c5c021 CF |
3268 | 2010-03-09 Christopher Faylor <[email protected]> |
3269 | Pierre Muller <[email protected]> | |
3270 | ||
3271 | * windows-nat.c (cygwin_conv_path): Redefine to properly convert | |
3272 | from/to posix/win32. | |
3273 | (windows_make_so): Use non-Cygwin 1.7 specific function. | |
3274 | (windows_create_inferior): Make sure that cygallargs points to | |
3275 | original args in non Cygwin 1.7. case. | |
3276 | ||
60a1502a MS |
3277 | 2010-03-09 Michael Snyder <[email protected]> |
3278 | ||
3279 | * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int | |
3280 | after target_read_memory to get host byte order. | |
3281 | (i386_process_record): Ditto. | |
3282 | ||
94af9270 KS |
3283 | 2010-03-09 Keith Seitz <[email protected]> |
3284 | ||
3285 | Based on work from Daniel Jacobowitz <[email protected]> | |
3286 | * c-typeprint.c (cp_type_print_method_args): For non-static methods, | |
3287 | print out const or volatile qualifiers, too. | |
3288 | (c_type_print_args): Add parameters show_artificial and language. | |
3289 | Skip artificial parameters when requested. | |
3290 | Use the appropriate language printer. | |
3291 | (c_type_print_varspec): Tell c_type_print_args to skip artificial | |
3292 | parameters and pass language_c. | |
3293 | * dwarf2read.c (die_list): New file global. | |
3294 | (struct partial_die_info): Update comments for name field. | |
3295 | (pdi_needs_namespace): Renamed to ... | |
3296 | (die_needs_namespace): ... this. Rewrite. | |
3297 | (dwarf2_linkage_name): Remove. | |
3298 | (add_partial_symbol): Do not predicate the call to | |
3299 | partial_die_full_name based on pdi_needs_namespace. | |
3300 | Remove call to cp_check_possible_namespace_symbols and associated | |
3301 | outdated comments. | |
3302 | (guess_structure_name): Do not inspect child subprogram DIEs. | |
3303 | (dwarf2_fullname): Update comments. | |
3304 | Use die_needs_namespace to assist in computing the name. | |
3305 | (read_func_scope): Use dwarf2_name to get the DIE's name. | |
3306 | Use dwarf2_physname to get the "linkage name" of the DIE. | |
3307 | (dwarf2_add_member_field): Use dwarf2_physname instead of | |
3308 | dwarf2_linkage_name. | |
3309 | (read_structure_type): For structs and classes, set TYPE_NAME, too. | |
3310 | (determine_class): Remove. | |
3311 | (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages | |
3312 | except Ada. | |
3313 | (new_symbol): Unconditionally call dwarf2_name. | |
3314 | Compute the "linkage name" using dwarf2_physname. | |
3315 | Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs. | |
3316 | When determining to scan for anonymous C++ namespaces, ignore | |
3317 | the linkage name. | |
3318 | (dwarf2_physname): New function. | |
3319 | (dwarf2_full_name): Move content to new function and call | |
3320 | that. | |
3321 | (dwarf2_compute_name): "New" function. | |
3322 | (_initialize_dwarf2_read): Initialize die_list. | |
3323 | * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable | |
3324 | physname. | |
3325 | (gnu_v3_print_method_ptr): Use the physname for virtual methods | |
3326 | without a demangled name. | |
3327 | Print out type information for non-virtual methods. | |
c8d5aac9 | 3328 | * linespec.c (decode_line_1): Force ANY string using "::" (or |
94af9270 | 3329 | "." for java) to use decode_compound, and clean up any stray quoting. |
c8d5aac9 L |
3330 | If we found a file symtab, re-evaluate whether the remainder is_quoted. |
3331 | (decode_compound): Stop consuming at an open parenthesis. | |
3332 | Keep template parameters. | |
3333 | Keep any overload information. | |
3334 | Keep keywords like "const". | |
3335 | Remove paren_pointer. | |
3336 | Move is_quoted check from set_flags to here. | |
3337 | Remove #if 0 code from 2000. Ten years is long enough. | |
3338 | (find_method): Before comparing symbol names, canonicalize the string | |
3339 | from the user. | |
3340 | If a specific overload is requested, find it. Otherwise throw an error. | |
94af9270 KS |
3341 | (find_method_overload_end): New function. |
3342 | (set_flags): Remove. | |
c8d5aac9 L |
3343 | (decode_compound): Assume that parentheses are matched. |
3344 | It's a lot easier. | |
94af9270 KS |
3345 | * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag |
3346 | to cplus_demangle. | |
3347 | * linespec.c (decode_line_1): Keep important keywords like | |
3348 | "const" and "volatile". | |
3349 | * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove. | |
3350 | * typeprint.h (c_type_print_args): Add declaration. | |
3351 | * ui-file.c (do_ui_file_obsavestring): New function. | |
3352 | (ui_file_obsavestring): New function. | |
3353 | * ui-file.h (ui_file_obsavestring): Add declaration. | |
3354 | * valops.c (find_overload_match): Resolve the object to | |
3355 | a non-pointer type. | |
3356 | If the object is a data member, search the object for the member | |
3357 | and return with staticp set. | |
3358 | Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME. | |
3359 | Do not attempt to extract a function name from non-function types. | |
3360 | If the extracted function name and the original name are the same, | |
3361 | we don't have a C++ method. | |
3362 | ||
8d95cc3b PA |
3363 | From Jan Kratochvil <[email protected]>: |
3364 | * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name. | |
94af9270 KS |
3365 | |
3366 | * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters | |
3367 | and arguments from symbol lookups. | |
3368 | * ax-gdb.c (gen_expr): Likewise. | |
3369 | * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope, | |
3370 | cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type, | |
3371 | lookup_possible_namespace_symbol): Likewise. | |
3372 | * cp-support.c (read_in_psymtabs): Likewise. | |
3373 | * cp-support.h (cp_lookup_symbol_nonlocal): Likewise. | |
3374 | * language.h (la_lookup_symbol_nonlocal): Likewise. | |
3375 | * scm-valprint.c (scm_inferior_print): Likewise. | |
3376 | * solib-darwin.c (darwin_relocate_section_addresses): Likewise. | |
3377 | * solib-svr.c (elf_lookup_lib): Likewise. | |
3378 | * solib.c (show_auto_solib_add): Likewise. | |
3379 | * solist.h (lookup_lib_global, solib_global_lookup): Likewise. | |
3380 | * symmisc.c (maintenance_check_symtabs): Likewise. | |
3381 | * symtab.c (lookup_symbol_in_language, lookup_symbol_aux, | |
3382 | lookup_symbol_aux_local, lookup_symbol_aux_block, | |
3383 | lookup_symbol_from_objfile, lookup_symbol_aux_symtabs, | |
3384 | lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal, | |
3385 | lookup_symbol_static, lookup_symbol_global, symbol_matches_domain, | |
3386 | basic_lookup_transparent_type, find_main_psymtab, | |
3387 | lookup_block_symbol): Likewise. | |
3388 | * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static, | |
3389 | lookup_symbol_global, lookup_symbol_aux_block, | |
3390 | lookup_symbol_partial_symbol, lookup_block_symbol, | |
3391 | lookup_global_symbol, value_maybe_namespace_elt): Likewise. | |
3392 | ||
9cb74f47 PM |
3393 | 2010-03-09 Pierre Muller <[email protected]> |
3394 | ||
3395 | * python/python-internal.h: Include symtab.h. | |
3396 | ||
af6b7be1 JB |
3397 | 2010-03-09 Joel Brobecker <[email protected]> |
3398 | Pierre Muller <[email protected]> | |
e13eedd5 PM |
3399 | |
3400 | * p-lang.c (is_pascal_string_type): Remove unneeded parentheses. | |
3401 | * p-valprint.c (pascal_val_print): Remove undeed block and fix | |
3402 | indentation. | |
3403 | ||
bad56014 TT |
3404 | 2010-03-08 Tom Tromey <[email protected]> |
3405 | ||
3406 | * breakpoint.c (breakpoint_1): Add "QUIT". | |
3407 | ||
08105857 PA |
3408 | 2010-03-08 Daniel Jacobowitz <[email protected]> |
3409 | Pedro Alves <[email protected]> | |
3410 | ||
3411 | * solib.c (solib_find): Replace extension if | |
3412 | solib_symbols_extension is set in the target gdbarch. | |
3413 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
3414 | solib_symbols_extension to "sym". | |
3415 | * gdbarch.sh (solib_symbols_extension): New variable. | |
3416 | (pstring): New function. | |
3417 | * gdbarch.h, gdbarch.c: Regenerate. | |
3418 | ||
7c953934 TT |
3419 | 2010-03-08 Tom Tromey <[email protected]> |
3420 | ||
3421 | PR cli/9591: | |
3422 | * NEWS: Update. | |
3423 | * utils.c: Include main.h. | |
3424 | (fputs_maybe_filtered): Don't paginate if `batch_flag'. | |
3425 | (defaulted_query): Use default answer if `batch_flag'. | |
3426 | * main.h (batch_flag): Declare. | |
3427 | * main.c (batch_flag): New global. | |
3428 | (captured_main): Remove 'batch'. Update. | |
3429 | ||
bbd2783e KB |
3430 | 2010-03-08 Kevin Buettner <[email protected]> |
3431 | ||
3432 | From Richard Sandiford, Martin M. Hunt, Corinna Vinschen, | |
3433 | and Kevin Buettner: | |
3434 | ||
3435 | * remote-mips.c (rockhopper_ops): New target_ops struct. | |
3436 | (MON_ROCKHOPPER): New mips_monitor_type. | |
3437 | (read_hex_value): New function. | |
3438 | (mips_request): Send 8-byte values with a 'T' packet. Read the | |
8d95cc3b | 3439 | packet argument as a string and use read_hex_value to parse it. |
bbd2783e KB |
3440 | (mips_exit_debug): Wait for response when using MON_ROCKHOPPER. |
3441 | (rockhopper_open): New function. | |
3442 | (mips_wait): Read the PC, FP and SP fields as strings. Use | |
3443 | read_hex_value to parse them and mips_set_register to commit them. | |
3444 | (mips_set_register): New function. | |
3445 | (mips_fetch_registers): Do not cast register value to "unsigned" | |
3446 | when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register. | |
3447 | (mips_store_registers): Use a 'T' packet to set registers when | |
3448 | using MON_ROCKHOPPER. | |
3449 | (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER | |
3450 | and expect the total to be printed before the entry address. | |
3451 | (_initialize_remote_mips): Initialize and add rockhopper_ops. | |
3452 | ||
566f3d17 KB |
3453 | 2010-03-08 Kevin Buettner <[email protected]> |
3454 | ||
3455 | * remote-mips.c (mips_fetch_word): Add new parameter, `valp'. | |
3456 | Change return value to int. Store value fetched in location | |
3457 | addressed by `val'. Use function's return value as success | |
3458 | or failure indicator. Adjust all callers. | |
3459 | ||
9c8ee2ab | 3460 | 2010-03-08 Pierre Muller <[email protected]> |
f72d4b77 PM |
3461 | |
3462 | * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL. | |
3463 | ||
7155de5a HZ |
3464 | 2010-03-08 Jan Kratochvil <[email protected]> |
3465 | Hui Zhu <[email protected]> | |
3466 | ||
3467 | * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and | |
3468 | tmp_to_stopped_data_address. | |
3469 | (record_open): Reset tmp_to_stopped_by_watchpoint and | |
3470 | tmp_to_stopped_data_address. | |
3471 | * target.c (init_dummy_target): Add to_stopped_by_watchpoint and | |
3472 | to_stopped_data_address. | |
3473 | ||
580879fc HZ |
3474 | 2010-03-08 Hui Zhu <[email protected]> |
3475 | ||
3476 | * i386-tdep.c (i386_process_record): Initialize regnum. | |
3477 | ||
b0fcb67f JK |
3478 | 2010-03-08 Jan Kratochvil <[email protected]> |
3479 | ||
3480 | * symfile.c (addr_info_make_relative): New variable sect_name, use it. | |
3481 | Do not warn on ".gnu.liblist" and ".gnu.conflict". | |
3482 | ||
08597104 JB |
3483 | 2010-03-08 Joel Brobecker <[email protected]> |
3484 | ||
3485 | Memory error when reading wrong core file. | |
3486 | * solib-svr4.c (solib_svr4_r_map): catch and print all exception | |
3487 | errors while reading the inferior memory, and return zero if | |
3488 | an exception was raised. | |
3489 | ||
425b824a MS |
3490 | 2010-03-07 Michael Snyder <[email protected]> |
3491 | ||
ec6dbf37 MS |
3492 | * record.c (record_restore): Rename tmpu8 to rectype. |
3493 | ||
648d0c8b MS |
3494 | * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables |
3495 | tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64. | |
3496 | ||
3497 | (i386_record_push): Rename local tmpulongest to addr. | |
3498 | ||
3499 | (i386_process_record): Rename local tmpulongest to addr. | |
3500 | ||
3501 | Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32, | |
3502 | addr64. | |
955db0c0 MS |
3503 | |
3504 | Rename local variable tmpu8 to opcode8 and regnum. | |
425b824a | 3505 | |
10760264 JB |
3506 | 2010-03-07 Joel Brobecker <[email protected]> |
3507 | ||
3508 | * remote.c (remote_get_ada_task_ptid): New function. | |
c8d5aac9 | 3509 | (init_remote_ops): Set remote_ops.to_get_ada_task_ptid. |
10760264 | 3510 | |
b3c613f2 CF |
3511 | 2010-03-06 Christopher Faylor <[email protected]> |
3512 | ||
3513 | * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one | |
3514 | block. Define helper macros to reduce ifdefs in code. | |
3515 | (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer | |
3516 | size. Call unadorned GetModuleFileNameEx rather than | |
3517 | GetModuleFileNameEx*. | |
3518 | (windows_make_so): Use __PMAX to denote maximum buffer size and | |
3519 | cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as | |
3520 | appropriate. | |
3521 | (get_image_name): Use __PMAX to denote maximum buffer size. | |
3522 | (handle_load_dll): Likewise. | |
3523 | (windows_pid_to_exec_file): Likewise. | |
3524 | (windows_create_inferior): Add many accommodations for older Cygwin and | |
3525 | non-Cygwin. | |
3526 | (bad_GetModuleFileNameExW): Control inclusion of this function based on | |
3527 | __USEWIDE conditional. | |
3528 | (bad_GetModuleFileNameExA): Likewise. | |
3529 | (_initialize_loadable): Just use real function names without the dyn_ | |
3530 | part since they are defined earlier. | |
3531 | ||
f870a310 TT |
3532 | 2010-03-05 Corinna Vinschen <[email protected]> |
3533 | Tom Tromey <[email protected]> | |
3534 | ||
3535 | * utils.c (host_char_to_target): Add 'gdbarch' argument. | |
3536 | (parse_escape): Likewise. | |
3537 | * python/py-utils.c (unicode_to_target_string): Update. | |
3538 | (unicode_to_target_python_string): Update. | |
3539 | (target_string_to_unicode): Update. | |
3540 | * printcmd.c (printf_command): Update. | |
3541 | * p-exp.y (yylex): Update. | |
3542 | * objc-exp.y (yylex): Update. | |
3543 | * mi/mi-parse.c: Include charset.h. | |
3544 | (mi_parse_escape): New function. | |
3545 | (mi_parse_argv): Use it. | |
3546 | * jv-exp.y (yylex): Update. | |
3547 | * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New | |
3548 | function. | |
3549 | (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset. | |
3550 | * gdbarch.sh (auto_charset, auto_wide_charset): New. | |
3551 | * gdbarch.c: Rebuild. | |
3552 | * gdbarch.h: Rebuild. | |
3553 | * defs.h (parse_escape): Update. | |
3554 | * cli/cli-setshow.c: Include arch-utils.h. | |
3555 | (do_setshow_command): Update. | |
3556 | * cli/cli-cmds.c (echo_command): Update. | |
3557 | * charset.h (target_charset, target_wide_charset): Update. | |
3558 | * charset.c: Include arch-utils.h. | |
3559 | (target_charset_name): Default to "auto". | |
3560 | (target_wide_charset_name): Likewise. | |
3561 | (show_target_charset_name): Handle "auto". | |
3562 | (show_target_wide_charset_name): Likewise. | |
3563 | (be_le_arch): New global. | |
3564 | (set_be_le_names): Add 'gdbarch' argument. | |
3565 | (validate): Likewise. Don't call set_be_le_names. | |
3566 | (set_charset_sfunc, set_host_charset_sfunc) | |
3567 | (set_target_charset_sfunc, set_target_wide_charset_sfunc): | |
3568 | Update. | |
3569 | (target_charset): Add 'gdbarch' argument. | |
3570 | (target_wide_charset): Likewise. Remove 'byte_order' argument. | |
3571 | (auto_target_charset_name): New global. | |
3572 | (default_auto_charset, default_auto_wide_charset): New functions. | |
3573 | (_initialize_charset): Set auto_target_charset_name. Allow "auto" | |
3574 | for target charsets. Copy result of nl_langinfo. Use GetACP if | |
3575 | USE_WIN32API. | |
3576 | * c-lang.c (charset_for_string_type): Add 'gdbarch' argument, | |
3577 | remove 'byte_order' argument. Update. | |
3578 | (classify_type): Likewise. | |
3579 | (c_emit_char): Update. | |
3580 | (c_printchar): Update. | |
3581 | (c_printstr): Update. | |
3582 | (c_get_string): Update. | |
3583 | (evaluate_subexp_c): Update. | |
3584 | * arch-utils.h (default_auto_charset, default_auto_wide_charset): | |
3585 | Declare. | |
3586 | * python/python.c (gdbpy_target_charset): New function. | |
3587 | (gdbpy_target_wide_charset): Likewise. | |
3588 | (GdbMethods): Update. | |
3589 | * NEWS: Update. | |
3590 | ||
4e7386b0 UW |
3591 | 2010-03-05 Ulrich Weigand <[email protected]> |
3592 | ||
3593 | * symfile.c (build_section_addr_info_from_objfile): Do not mask | |
3594 | off high address bits. | |
3595 | ||
aab48ede UW |
3596 | 2010-03-05 Ulrich Weigand <[email protected]> |
3597 | ||
3598 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract | |
3599 | address as UnsignedLongLong, not LongLong. | |
3600 | ||
8eeafb51 | 3601 | 2010-03-05 Kevin Buettner <[email protected]> |
c8d5aac9 | 3602 | Pedro Alves <[email protected]> |
8eeafb51 KB |
3603 | |
3604 | * remote-mips.c (gdbthread.h): Include. | |
3605 | (remote_mips_ptid): Declare. | |
3606 | (mips_error): Only mourn the inferior when inferior_ptid is non-null. | |
3607 | (common_open): Set inferior_ptid, add it as an inferior, and | |
3608 | as a thread too. Delete FIXME comment regarding start_remote(). | |
3609 | (mips_close): Invoke generic_mourn_inferior(). | |
3610 | (mips_kill): Make sure that target_mourn_inferior is invoked. | |
3611 | (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as | |
3612 | it's now invoked from mips_close(). | |
3613 | (mips_load): Don't null out inferior_ptid. Don't call | |
3614 | clear_symtab_users(). | |
3615 | (mips_thread_alive, mips_pid_to_str): New functions. | |
3616 | (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize | |
3617 | to_thread_alive and to_pid_to_str operations. | |
3618 | ||
ae411497 TT |
3619 | 2010-03-04 Tom Tromey <[email protected]> |
3620 | ||
3621 | * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size | |
3622 | in DWARF 3 and later. | |
3623 | (read_attribute_value) <DW_FORM_ref_addr>: Likewise. | |
3624 | ||
0e0b460e KS |
3625 | 2010-03-04 Keith Seitz <[email protected]> |
3626 | ||
3627 | * linespec.c (decode_line_1): Update comments for is_quote_enclosed. | |
3628 | If the filename portion of the linespec was quoted, recheck the | |
3629 | remainder for additional quoting. | |
3630 | (locate_first_half): Skip over completer chars, too. | |
3631 | ||
1b93ff13 TT |
3632 | 2010-03-04 Tom Tromey <[email protected]> |
3633 | ||
3634 | * printcmd.c (printf_command): Pass dummy argument to | |
3635 | printf_filtered. | |
3636 | ||
fc36e839 DE |
3637 | 2010-03-04 Doug Evans <[email protected]> |
3638 | ||
111f853c DE |
3639 | * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg, |
3640 | unwound_fp. | |
3641 | ||
fc36e839 DE |
3642 | * arm-tdep.c (arm_stub_unwind_sniffer): Add comment. |
3643 | ||
c7437ca6 PA |
3644 | 2010-03-04 Pedro Alves <[email protected]> |
3645 | ||
3646 | * breakpoint.c (update_watchpoint): Create a sentinel location if | |
3647 | the software watchpoint isn't watching any memory. | |
3648 | (breakpoint_address_bits): Skip dummy software watchpoint locations. | |
3649 | ||
58dadb1b PA |
3650 | 2010-03-04 Pedro Alves <[email protected]> |
3651 | ||
3652 | * utils.c (fputs_maybe_filtered): Check if there's already a top | |
3653 | level interpreter before dereferencing it. If there isn't one, | |
3654 | don't paginate either. | |
3655 | ||
50e98be4 DJ |
3656 | 2010-03-04 Matthew Gretton-Dann <[email protected]> |
3657 | ||
3658 | * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get | |
3659 | the state right when single stepping. | |
3660 | (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions. | |
3661 | Get the next PC along with the instruction state. | |
3662 | (thumb_get_next_pc): Remove. | |
3663 | (arm_get_next_pc): Modified to use arm_get_next_pc_raw. | |
3664 | ||
2e3ceee9 HZ |
3665 | 2010-03-04 Hui Zhu <[email protected]> |
3666 | ||
3667 | * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64". | |
3668 | ||
390a8aca PA |
3669 | 2010-03-03 Pedro Alves <[email protected]> |
3670 | ||
3671 | * utils.c (fputs_maybe_filtered): Always disable pagination if the | |
3672 | top level interpreter is MI. | |
3673 | ||
9355b391 SS |
3674 | 2010-03-03 Stan Shebs <[email protected]> |
3675 | ||
3676 | * remote.c (remote_download_tracepoint): Iterate over locations. | |
3677 | * tracepoint.c (validate_actionline): Ditto. | |
3678 | (encode_actions): Add location argument. | |
3679 | (trace_dump_command): Check all locations to see if stepping | |
3680 | frame. | |
390a8aca | 3681 | |
8685c86f L |
3682 | 2010-03-03 H.J. Lu <[email protected]> |
3683 | Eli Zaretskii <[email protected]> | |
3684 | ||
3685 | * NEWS: Add X86 general purpose registers section. | |
3686 | ||
e8f781e2 TT |
3687 | 2010-03-03 Tom Tromey <[email protected]> |
3688 | ||
3689 | PR mi/11098: | |
3690 | * varobj.c (install_new_value): Handle case where new print_value | |
3691 | is NULL. | |
3692 | ||
a0e0ef55 TT |
3693 | 2010-03-03 Dainis Jonitis <[email protected]> |
3694 | ||
3695 | PR gdb/11345: | |
3696 | * printcmd.c (printf_command): Print end of format string using | |
3697 | printf_filtered. | |
3698 | ||
a58d7472 TT |
3699 | 2010-03-02 Tom Tromey <[email protected]> |
3700 | ||
3701 | * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'. | |
3702 | * defs.h (read_command_lines_1): Add missing 'void'. | |
3703 | * cli/cli-script.c (recurse_read_control_structure): Add missing | |
3704 | 'void'. | |
3705 | (read_next_line): Likewise. | |
3706 | (read_command_lines_1): Likewise. | |
3707 | ||
ce50d78b UW |
3708 | 2010-03-02 Ulrich Weigand <[email protected]> |
3709 | ||
3710 | * spu-tdep.c (spu_analyze_prologue): Track instruction to | |
3711 | store backchain as part of prologue. | |
3712 | ||
7e9af34a DJ |
3713 | 2010-03-02 Daniel Jacobowitz <[email protected]> |
3714 | ||
3715 | * progspace.c (update_address_spaces): Update inferior address spaces | |
3716 | also. | |
3717 | ||
01637564 DE |
3718 | 2010-03-02 Doug Evans <[email protected]> |
3719 | ||
3720 | * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to | |
3721 | lowpc,highpc args to addrmap_set_empty. | |
3722 | ||
1ba53b71 L |
3723 | 2010-03-02 H.J. Lu <[email protected]> |
3724 | ||
3725 | * amd64-tdep.c (amd64_byte_names): New. | |
3726 | (amd64_word_names): Likewise. | |
3727 | (amd64_dword_names): Likewise. | |
3728 | (amd64_pseudo_register_name): Likewise. | |
3729 | (amd64_pseudo_register_read): Likewise. | |
3730 | (amd64_pseudo_register_write): Likewise. | |
3731 | (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs | |
3732 | and num_mmx_regs. Call set_gdbarch_pseudo_register_read, | |
3733 | set_gdbarch_pseudo_register_write and | |
3734 | set_tdesc_pseudo_register_name. Don't call | |
3735 | set_gdbarch_num_pseudo_regs. Don't set mm0_regnum. | |
3736 | ||
3737 | * i386-tdep.c (i386_num_mmx_regs): Removed. | |
3738 | (i386_num_pseudo_regs): Likewise. | |
3739 | (i386_byte_names): New. | |
3740 | (i386_word_names): Likewise. | |
3741 | (i386_byte_regnum_p): Likewise. | |
3742 | (i386_word_regnum_p): Likewise. | |
3743 | (i386_mmx_regnum_p): Updated. | |
3744 | (i386_pseudo_register_name): Make it global. Handle byte and | |
3745 | word pseudo-registers. | |
3746 | (i386_pseudo_register_read): Likewise. | |
3747 | (i386_pseudo_register_write): Likewise. | |
3748 | (i386_pseudo_register_type): Handle byte, word and dword | |
3749 | pseudo-registers | |
3750 | (i386_register_reggroup_p): Don't include pseudo | |
3751 | registers, except for MXX, in any register groups. Don't | |
3752 | include pseudo byte, word, dword registers in general_reggroup. | |
3753 | (i386_gdbarch_init): Set num_byte_regs, num_word_regs, | |
3754 | num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX | |
3755 | pseudo-registers after word pseudo-registers. Call | |
3756 | set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi. | |
3757 | ||
3758 | * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs, | |
3759 | al_regnum, num_word_regs, ax_regnum, num_dword_regs and | |
3760 | eax_regnum. | |
3761 | (i386_byte_regnum_p): New. | |
3762 | (i386_word_regnum_p): Likewise. | |
3763 | (i386_dword_regnum_p): Likewise. | |
3764 | (i386_pseudo_register_name): Likewise. | |
3765 | (i386_pseudo_register_read): Likewise. | |
3766 | (i386_pseudo_register_write): Likewise. | |
3767 | ||
a6f5ef51 L |
3768 | 2010-03-01 H.J. Lu <[email protected]> |
3769 | ||
3770 | * target-descriptions.c (tdesc_type): Remove | |
3771 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
3772 | (tdesc_predefined_types): Likewise. | |
3773 | (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag | |
3774 | if flag name is empty. | |
3775 | (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS. | |
3776 | ||
3777 | * features/i386/32bit-core.xml: Define i386_eflags. | |
3778 | * features/i386/64bit-core.xml: Likewise. | |
3779 | ||
3780 | * features/i386/32bit-sse.xml: Define i386_mxcsr. | |
3781 | * features/i386/64bit-sse.xml: Likewise. | |
3782 | ||
3783 | * features/i386/amd64-linux.c: Regenerated. | |
3784 | * features/i386/amd64.c: Likewise. | |
3785 | * features/i386/i386-linux.c: Likewise. | |
3786 | * features/i386/i386.c: Likewise. | |
3787 | ||
f5dff777 DJ |
3788 | 2010-03-01 Daniel Jacobowitz <[email protected]> |
3789 | ||
3790 | * gdbtypes.c (append_composite_type_field_raw): New. | |
3791 | (append_composite_type_field_aligned): Use the new function. | |
3792 | * gdbtypes.h (append_composite_type_field_raw): Declare. | |
3793 | * target-descriptions.c (struct tdesc_type_field): Add start and end. | |
3794 | (struct tdesc_type_flag): New type. | |
3795 | (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to | |
3796 | kind. Add size to u.u. Add u.f for flags. | |
3797 | (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS. | |
3798 | (tdesc_free_type): Likewise. | |
3799 | (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New. | |
3800 | (tdesc_add_field): Handle TDESC_TYPE_STRUCT. | |
3801 | (tdesc_add_bitfield, tdesc_add_flag): New. | |
3802 | * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size) | |
3803 | (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare. | |
3804 | * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to | |
3805 | current_type. Add current_type_size and current_type_is_flags. | |
3806 | (tdesc_start_union): Clear the new fields. | |
3807 | (tdesc_start_struct, tdesc_start_flags): New. | |
3808 | (tdesc_start_field): Handle struct fields, including bitfields. | |
3809 | (field_attributes): Make type optional. Add start and end. | |
3810 | (union_children): Rename to struct_union_children. | |
3811 | (union_attributes): Rename to struct_union_attributes. Add optional | |
3812 | size. | |
3813 | (flags_attributes): New. | |
3814 | (feature_children): Add struct and flags. | |
3815 | * features/gdb-target.dtd: Add flags and struct to features. | |
3816 | Make field type optional. Add field start and end. | |
3817 | ||
90884b2b L |
3818 | 2010-03-01 H.J. Lu <[email protected]> |
3819 | ||
3820 | * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New. | |
3821 | (amd64_linux_read_description): Likewise. | |
3822 | (_initialize_amd64_linux_nat): Set to_read_description to | |
3823 | amd64_linux_read_description. | |
3824 | ||
3825 | * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c". | |
3826 | (amd64_linux_register_name): Removed. | |
3827 | (amd64_linux_register_type): Likewise. | |
3828 | (amd64_linux_core_read_description): New. | |
3829 | (amd64_linux_init_abi): Set target description to | |
3830 | tdesc_amd64_linux if needed. Support orig_rax in target | |
3831 | description. Don't call set_gdbarch_register_name nor | |
3832 | set_gdbarch_register_type. Call | |
3833 | set_gdbarch_core_read_description. | |
3834 | (_initialize_amd64_linux_tdep): Call | |
3835 | initialize_tdesc_amd64_linux. | |
3836 | ||
3837 | * amd64-linux-tdep.h (tdesc_amd64_linux): New. | |
3838 | ||
3839 | * amd64-tdep.c: Include "features/i386/amd64.c". | |
3840 | (amd64_register_names): Removed. | |
3841 | (amd64_register_name): Likewise. | |
3842 | (amd64_register_type): Likewise. | |
3843 | (amd64_init_abi): Set num_core_regs and register_names. Set | |
8d95cc3b | 3844 | target description to tdesc_amd64 if needed. Don't call |
90884b2b L |
3845 | set_gdbarch_register_name nor set_gdbarch_register_type. |
3846 | (_initialize_amd64_tdep): New. | |
3847 | ||
3848 | * i386-linux-nat.c (i386_linux_read_description): New. | |
3849 | (_initialize_i386_linux_nat): Set to_read_description to | |
3850 | i386_linux_read_description. | |
3851 | ||
3852 | * i386-linux-tdep.c: Include "features/i386/i386-linux.c". | |
3853 | (i386_linux_register_name): Removed. | |
3854 | (i386_linux_core_read_description): New. | |
3855 | (i386_linux_read_description): Likewise. | |
3856 | (i386_linux_init_abi): Don't call set_gdbarch_register_name. | |
3857 | Set target description to tdesc_i386_linux if needed. Support | |
3858 | orig_eax. Set register_reggroup_p. Call | |
3859 | set_gdbarch_core_read_description. | |
3860 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux. | |
3861 | ||
3862 | * i386-linux-tdep.h (tdesc_i386_linux): New. | |
3863 | ||
3864 | * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS | |
3865 | with I387_NUM_REGS. | |
3866 | ||
3867 | * i386-tdep.c: Include "features/i386/i386.c". | |
3868 | (i386_register_names): Make it const. | |
3869 | (i386_mmx_names): Likewise. | |
3870 | (i386_num_register_names): Removed. | |
3871 | (i386_register_name): Likewise. | |
3872 | (i386_eflags_type): Likewise. | |
3873 | (i386_mxcsr_type): Likewise. | |
3874 | (i386_sse_type): Likewise. | |
3875 | (i386_register_type): Likewise. | |
3876 | (i387_ext_type): Call tdesc_find_type instead of arch_float_type. | |
3877 | (i386_pseudo_register_name): New. | |
3878 | (i386_pseudo_register_type): Likewise. | |
3879 | (i386_mmx_type): Make it static. | |
3880 | (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with | |
3881 | I387_NUM_REGS. Set num_core_regs and register_names. Don't | |
3882 | call set_gdbarch_register_name nor set_gdbarch_register_type. | |
3883 | Set register_reggroup_p. Set target description to tdesc_i386 | |
3884 | if needed. Call set_tdesc_pseudo_register_type, | |
3885 | set_tdesc_pseudo_register_name and tdesc_use_registers. | |
3886 | (_initialize_i386_tdep): Call initialize_tdesc_i386. | |
3887 | initialize_tdesc_x86_64. | |
3888 | ||
3889 | * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type, | |
3890 | i386_mxcsr_type and i386_sse_type. Add num_core_regs, | |
3891 | register_names, tdesc and register_reggroup_p. | |
3892 | (I386_NUM_FREGS): Removed. | |
3893 | (i386_eflags_type): Likewise. | |
3894 | (i386_mxcsr_type): Likewise. | |
3895 | (i386_mmx_type): Likewise. | |
3896 | (i386_sse_type): Likewise. | |
3897 | (i386_register_name): Likewise. | |
3898 | (i386_regnum): Add I386_MXCSR_REGNUM. | |
3899 | (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM. | |
3900 | ||
3901 | * i387-tdep.h (I387_NUM_REGS): New. | |
3902 | ||
3903 | * regformats/i386/i386-linux.dat: Generated. | |
3904 | * regformats/i386/i386.dat: Likewise. | |
3905 | * regformats/i386/amd64-linux.dat: Likewise. | |
3906 | * regformats/i386/amd64.dat: Likewise. | |
3907 | ||
3908 | * regformats/reg-i386-linux.dat: Removed. | |
3909 | * regformats/reg-i386.dat: Likewise. | |
3910 | * regformats/reg-x86-64-linux.dat: Likewise. | |
3911 | * regformats/reg-x86-64.dat: Likewise. | |
3912 | ||
d0d0ab16 CV |
3913 | 2010-03-01 Corinna Vinschen <[email protected]> |
3914 | ||
3915 | * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7 | |
3916 | cygwin_conv_path API rather than the deprecated | |
3917 | cygwin_conv_to_full_posix_path. | |
3918 | * windows-nat.c: | |
3919 | (GetModuleFileNameExA): Undefine for Cygwin. | |
3920 | (GetModuleFileNameExW): Define for Cygwin. | |
3921 | (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin. | |
3922 | Call GetModuleFileNameExW and convert path to POSIX using | |
3923 | cygwin_conv_path. | |
3924 | (windows_make_so): Always define p. Drop unused variable m. | |
3925 | Don't use Win32 functions to check file existance, rather use | |
3926 | access on Cygwin. Fetch system directory using GetSystemDirectoryW. | |
3927 | Use canonicalize_file_name to get full path. | |
3928 | (get_image_name): Use wcstombs, rather than WideCharToMultiByte | |
3929 | to convert Unicode pathname to multibyte on Cygwin. Otherwise, | |
3930 | use correct target buffer size in call to WideCharToMultiByte. | |
3931 | (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin. | |
3932 | (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin. | |
3933 | (windows_create_inferior): Convert all paths and arguments to wchar_t | |
3934 | and use CreateProcessW on Cygwin. | |
3935 | (_initialize_windows_nat): Disable DOS-style path warning on Cygwin. | |
3936 | (bad_GetModuleFileNameExA): Undefine for Cygwin. | |
3937 | (bad_GetModuleFileNameExW): Define for Cygwin. | |
3938 | (_initialize_loadable): Load GetModuleFileNameExW into | |
3939 | dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin. | |
3940 | ||
dc00d89f PM |
3941 | 2010-02-28 Phil Muldoon <[email protected]> |
3942 | ||
3943 | PR python/11036 | |
3944 | * python/py-frame.c (frapy_read_var): Add block argument and logic | |
3945 | to cope with user provided blocks. | |
3946 | ||
0e095b7e JK |
3947 | 2010-02-28 Jan Kratochvil <[email protected]> |
3948 | ||
3949 | * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp. | |
3950 | New comment. | |
3951 | ||
2f9e05b4 CV |
3952 | 2010-02-28 Corinna Vinschen <[email protected]> |
3953 | ||
3954 | * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here... | |
3955 | (COMMON_OBS): ... to here since it's used unconditionally. | |
3956 | (SUBDIR_MI_SRCS): Move mi/mi-common.c from here... | |
3957 | (SFILES): To here. | |
3958 | ||
eb195664 DD |
3959 | 2010-02-26 David Daney <[email protected]> |
3960 | ||
3961 | * mips-linux-tdep.c: Update struct sigframe comments. | |
3962 | (SIGFRAME_CODE_OFFSET): Delete macro. | |
3963 | (mips_linux_o32_sigframe_init): Calculate sigcontext_base using | |
3964 | this_frame's sp. | |
3965 | (mips_linux_n32n64_sigframe_init): Same. | |
3966 | ||
97b0f3e2 KB |
3967 | 2010-02-26 Kevin Buettner <[email protected]> |
3968 | ||
3969 | * remote-mips.c (mips_load): Don't use pseudo-register when | |
3970 | invalidating regcache. | |
3971 | ||
4069ebbe DJ |
3972 | 2010-02-26 Daniel Jacobowitz <[email protected]> |
3973 | ||
3974 | * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode. | |
3975 | ||
05071a4d PA |
3976 | 2010-02-26 Pedro Alves <[email protected]> |
3977 | ||
3978 | * NEWS: Add "New targets" section, and mention ARM Symbian | |
3979 | support. | |
3980 | ||
6063c216 UW |
3981 | 2010-02-26 Ulrich Weigand <[email protected]> |
3982 | ||
3983 | * dwarf2loc.c (struct piece_closure): Remove ARCH member, | |
3984 | add ADDR_SIZE member. | |
3985 | (allocate_piece_closure): Update. | |
3986 | (copy_pieced_value_closure): Likewise. | |
3987 | (dwarf2_evaluate_loc_desc): Likewise. | |
3988 | (read_pieced_value): Use DWARF address size instead of | |
3989 | GDB's gdbarch_addr_bit as size of values on the DWARF stack. | |
3990 | ||
5107b149 | 3991 | 2010-02-26 Phil Muldoon <[email protected]> |
c8d5aac9 | 3992 | Tom Tromey <[email protected]> |
5107b149 PM |
3993 | |
3994 | * python/py-type.c (typy_lookup_typename): Add in block argument. | |
3995 | If provided restrict lookup to specified blocks. | |
3996 | (gdbpy_lookup_type): Likewise. | |
3997 | (typy_lookup_type): Likewise. | |
3998 | ||
78664fa3 | 3999 | 2010-02-25 Daniel Jacobowitz <[email protected]> |
8d95cc3b | 4000 | |
78664fa3 PA |
4001 | Symbian config |
4002 | ||
4003 | gdb/ | |
4004 | * arm-symbian-tdep.c: New. | |
4005 | * configure.tgt (arm*-*-symbianelf*): New target. | |
4006 | (*-*-symbianelf*): New OS. | |
4007 | * osabi.c (gdb_osabi_names): Add Symbian. | |
4008 | * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN. | |
4009 | * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o. | |
4010 | (ALLDEPFILES): Add arm-symbian-tdep.c. | |
4011 | ||
eb73e134 DJ |
4012 | 2010-02-25 Daniel Jacobowitz <[email protected]> |
4013 | ||
4014 | * symfile.c (find_lowest_section): Include SEC_ALLOC sections. | |
4015 | ||
46ef47e5 PA |
4016 | 2010-02-24 Pedro Alves <[email protected]> |
4017 | ||
4018 | * mi/mi-main.c (mi_cmd_execute): Fix typo. | |
4019 | ||
f3e9a817 | 4020 | 2010-02-24 Phil Muldoon <[email protected]> |
8d95cc3b | 4021 | Tom Tromey <[email protected]> |
f3e9a817 PM |
4022 | Thiago Jung Bauermann <[email protected]> |
4023 | ||
4024 | * python/python.c (_initialize_python): Call | |
4025 | gdbpy_initialize_symtabs, gdbpy_initialize_symbols and | |
4026 | gdbpy_initialize_blocks. | |
4027 | * python/python-internal.h: Declare struct symbol, block and | |
4028 | symtab_and_line. Declare block_object_type and | |
4029 | symbol_object_type | |
4030 | (gdbpy_lookup_symbol gdbpy_block_for_pc) | |
4031 | (symtab_and_line_to_sal_object, symtab_to_symtab_object) | |
4032 | (symbol_to_symbol_object, block_to_block_object) | |
4033 | (gdbpy_initialize_symtabs,gdbpy_initialize_symbols) | |
4034 | (gdbpy_initialize_blocks ): Declare. | |
4035 | * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal) | |
4036 | (frapy_select): Add methods. | |
4037 | (frapy_read_var): Add symbol branch. | |
4038 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab, | |
4039 | py-block. | |
4040 | (SUBDIR_PYTHON_SRCS): Likewise. | |
4041 | (py-symbol.o): New rule. | |
4042 | (py-symtab.o): Likewise. | |
4043 | (py-block.o): Likewise. | |
4044 | * python/py-symbol.c: New file. | |
4045 | * python/py-symtab.c: Likewise. | |
4046 | * python/py-block.c: Likewise. | |
4047 | ||
24291992 PA |
4048 | 2010-02-24 Pedro Alves <[email protected]> |
4049 | ||
4050 | PR gdb/11321 | |
4051 | ||
4052 | * inferior.h (prepare_for_detach): Declare. | |
4053 | (struct inferior) <detaching>: New field. | |
4054 | * infrun.c (prepare_for_detach): New. | |
4055 | (handle_inferior_event) <random signal>: Don't stop if detaching. | |
4056 | * target.c (target_detach): Call prepare_for_detach. | |
4057 | ||
fc1cf338 PA |
4058 | 2010-02-24 Pedro Alves <[email protected]> |
4059 | ||
4060 | Per-process displaced stepping queue. | |
4061 | ||
4062 | * infrun.c (displaced_step_ptid, displaced_step_request_queue) | |
4063 | (displaced_step_gdbarch, displaced_step_closure, | |
4064 | (displaced_step_original, displaced_step_copy): Move globals to | |
4065 | this... | |
4066 | (struct displaced_step_inferior_state): ... new structure. | |
4067 | (displaced_step_inferior_states): New global. | |
4068 | (get_displaced_stepping_state, add_displaced_stepping_state) | |
4069 | (remove_displaced_stepping_state, infrun_inferior_exit): New | |
4070 | functions. | |
4071 | (displaced_step_clear): Add displaced_step_inferior_state | |
4072 | parameter, and adjust to handle it. | |
4073 | (displaced_step_clear_cleanup): Parameter is now a | |
4074 | displaced_step_inferior_state. Adjust. | |
4075 | (displaced_step_prepare): Adjust. | |
4076 | (displaced_step_fixup, displaced_step_fixup) | |
4077 | (infrun_thread_ptid_changed, resume): Adjust. | |
4078 | (init_wait_for_inferior): Don't call displaced_step_clear. | |
4079 | (infrun_thread_stop_requested): Rewrite. | |
4080 | (_initialize_infrun): Install infrun_inferior_exit as | |
4081 | inferior_exit observer. | |
4082 | ||
0723dbf5 PA |
4083 | 2010-02-24 Pedro Alves <[email protected]> |
4084 | ||
4085 | * inferior.h (ptid_match): Declare. | |
4086 | * infrun.c (ptid_match): New. | |
4087 | * remote.c (queued_stop_reply): Rewrite and use ptid_match. | |
4088 | (handle_notification): Add debug output. | |
4089 | * linux-nat.c (ptid_match): Delete. | |
4090 | ||
09de9781 DM |
4091 | 2010-02-24 David S. Miller <[email protected]> |
4092 | ||
4093 | * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it. | |
4094 | * syscalls/sparc-linux.xml: New. | |
4095 | * syscalls/sparc64-linux.xml: New. | |
4096 | * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files. | |
4097 | * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define. | |
4098 | (sparc32_linux_get_syscall_number): New function. | |
4099 | (sparc32_linux_init_abi): Set syscall XML file name and hook up | |
4100 | syscall number fetcher. | |
4101 | * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define. | |
4102 | (sparc64_linux_get_syscall_number): New function. | |
4103 | (sparc64_linux_init_abi): Set syscall XML file name and hook up | |
4104 | syscall number fetcher. | |
4105 | ||
a79b8f6e VP |
4106 | 2010-02-24 Vladimir Prus <[email protected]> |
4107 | ||
4108 | Multiexec MI | |
4109 | ||
4110 | * breakpoint.c (clear_syscall_counts): Take struct inferior*. | |
4111 | * inferior.c (add_inferior_silent): Notify inferior_added | |
4112 | observer. | |
4113 | (delete_inferior_1): Notify inferior_removed observer. | |
4114 | (exit_inferior_1): Pass inferior, not pid, to observer. | |
4115 | (inferior_appeared): Likewise. | |
4116 | (add_inferior_with_spaces): New. | |
4117 | (add_inferior_command): Use the above. | |
4118 | * inferior.h (delete_inferior_1, add_inferior_with_spaces): | |
4119 | Declare. | |
4120 | ||
4121 | * inflow.c (inflow_inferior_exit): Likewise. | |
4122 | * jit.c (jit_inferior_exit_hook): Likewise. | |
4123 | ||
4124 | * mi/mi-cmds.c (mi_cmds): Register add-inferior and | |
4125 | remove-inferior. | |
4126 | * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
4127 | * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New. | |
4128 | (report_initial_inferior): New. | |
4129 | (mi_inferior_removed): Register the above. Make sure | |
4130 | inferior_added observer is called on the first inferior. | |
4131 | (mi_new_thread, mi_thread_exit): Thread group is now identified by | |
4132 | inferior number, not pid. | |
4133 | (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are | |
4134 | affected. | |
4135 | * mi/mi-main.c (current_context): New. | |
4136 | (proceed_thread_callback): Use typed closure. | |
4137 | Proceed everything if pid is 0. Most implementation split into | |
4138 | (proceed_thread): ... this. | |
4139 | (run_one_inferior): New. | |
4140 | (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run): | |
4141 | Adjust for multiexec behaviour. | |
4142 | (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
4143 | (mi_cmd_execute): Handle the 'thread-group' option here. | |
4144 | Do some extra checks. | |
4145 | * mi-parse.c (mi_parse): Handle the --all and --thread-group | |
4146 | options. | |
4147 | * mi-parse.h (struct mi_parse): New fields all and thread_group. | |
4148 | ||
115d30f9 VP |
4149 | 2010-02-24 Vladimir Prus <[email protected]> |
4150 | ||
4151 | Make -exec-run a proper MI commands. | |
4152 | ||
4153 | * mi/mi-cmds.h (mi_cmd_exec_run): Declare. | |
4154 | * mi/mi-cmds.c (mi_cmds): Adjust. | |
4155 | * mi/mi-main.c (mi_cmd_exec_run): New. | |
4156 | ||
06cd862c PA |
4157 | 2010-02-24 Pedro Alves <[email protected]> |
4158 | Stan Shebs <[email protected]> | |
4159 | ||
4160 | * tracepoint.h (set_traceframe_number) | |
4161 | (cleanup_restore_current_traceframe): Declare. | |
4162 | * tracepoint.c (set_traceframe_number): New. | |
4163 | (struct current_traceframe_cleanup): New. | |
4164 | (do_restore_current_traceframe_cleanup) | |
4165 | (restore_current_traceframe_cleanup_dtor) | |
4166 | (make_cleanup_restore_current_traceframe): New. | |
4167 | * infrun.c: Include tracepoint.h. | |
4168 | (fetch_inferior_event): Switch out and in of tfind mode. | |
4169 | ||
ab92d69b PA |
4170 | 2010-02-24 Pedro Alves <[email protected]> |
4171 | ||
4172 | * breakpoint.c (breakpoint_init_inferior): Also delete | |
4173 | bp_shlib_event breakpoints. | |
4174 | * solib-frv.c (enable_break): Remove call to | |
4175 | remove_solib_event_breakpoints. | |
4176 | * solib-svr4.c (enable_break): Ditto. | |
4177 | * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto. | |
4178 | * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto. | |
4179 | * solib-som.c (som_solib_create_inferior_hook): Ditto. | |
4180 | * solib-spu.c (spu_enable_break): Ditto. | |
4181 | ||
e707a91d PA |
4182 | 2010-02-23 Harald Koenig <[email protected]> |
4183 | ||
4184 | * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE. | |
4185 | ||
cfce2ea2 PA |
4186 | 2010-02-23 Harald Koenig <[email protected]> |
4187 | ||
4188 | * varobj.c (varobj_update): Avoid non-constants in initializers. | |
4189 | ||
05566b3b TT |
4190 | 2010-02-23 Tom Tromey <[email protected]> |
4191 | ||
4192 | * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly | |
4193 | handle big-endian values. | |
4194 | (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise. | |
4195 | ||
85d721b8 PA |
4196 | 2010-02-22 Pedro Alves <[email protected]> |
4197 | ||
4198 | PR9605 | |
4199 | ||
4200 | gdb/ | |
4201 | * breakpoint.c (insert_bp_location): If inserting the read | |
4202 | watchpoint failed, fallback to an access watchpoint. | |
4203 | (bpstat_check_watchpoint): Stop for read watchpoint triggers even | |
4204 | if the value changed, if not watching the same memory for writes. | |
4205 | (watchpoint_locations_match): Add comment. | |
4206 | (update_global_location_list): Copy the location's watchpoint type. | |
4207 | * i386-nat.c (i386_length_and_rw_bits): It's an internal error to | |
4208 | handle read watchpoints here. | |
4209 | (i386_insert_watchpoint): Read watchpoints aren't supported. | |
4210 | * remote.c (remote_insert_watchpoint): Return 1 for unsupported | |
4211 | packets. | |
4212 | * target.h (target_insert_watchpoint): Update description. | |
4213 | ||
48ea67a7 TT |
4214 | 2010-02-19 Tom Tromey <[email protected]> |
4215 | ||
4216 | * p-typeprint.c (pascal_type_print_varspec_prefix): Update. | |
4217 | * m2-typeprint.c (m2_print_type): Update. | |
4218 | * gdbtypes.c (recursive_dump_type): Update. | |
4219 | (copy_type_recursive): Update. | |
4220 | * c-typeprint.c (c_type_print_varspec_prefix): Update. | |
4221 | (c_type_print_base): Update. | |
4222 | * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG): | |
4223 | Remove. | |
4224 | (struct cplus_struct_type) <ntemplate_args>: Remove. | |
4225 | <struct template_arg>: Remove. | |
4226 | <is_dynamic>: Move earlier. | |
4227 | (TYPE_TEMPLATE_ARGS): Remove. | |
4228 | (TYPE_NTEMPLATE_ARGS): Remove. | |
4229 | (TYPE_TEMPLATE_ARG): Remove. | |
4230 | ||
48e32051 TT |
4231 | 2010-02-19 Tom Tromey <[email protected]> |
4232 | ||
4233 | PR c++/8693, PR c++/9496: | |
4234 | * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION. | |
4235 | * c-exp.y (lex_one_token): Rename from yylex. Don't call | |
4236 | write_dollar_variable. Don't try to classify NAME tokens. | |
4237 | (token_and_value): New type. | |
4238 | (token_fifo, popping, name_obstack): New globals. | |
4239 | (classify_name): New function. | |
4240 | (classify_inner_name): Likewise. | |
4241 | (yylex): Likewise. | |
4242 | (VARIABLE): Now has type sval. | |
4243 | (exp : VARIABLE): Call write_dollar_variable. | |
4244 | (qualified_name): Use TYPENAME, not typebase. Add production for | |
4245 | multiple "::" instances. | |
4246 | (variable): Use name_not_typename. | |
4247 | (qualified_type): Remove. | |
4248 | (typebase): Update. | |
4249 | ||
672d9c23 JK |
4250 | 2010-02-19 Jan Kratochvil <[email protected]> |
4251 | ||
4252 | * symfile.c (addr_info_make_relative): Extend comment. Move SECT to | |
4253 | a more inner block. Initialize ADDR by LOWER_OFFSET only if it was | |
4254 | found by bfd_get_section_by_name. | |
4255 | * symfile.h (struct section_addr_info) <sectindex>: New comment. | |
4256 | ||
bfbf3774 JB |
4257 | 2010-02-19 Joel Brobecker <[email protected]> |
4258 | ||
4259 | * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since | |
4260 | 7.0 section" into "Changes in 7.1". | |
4261 | ||
6756b09b | 4262 | 2010-02-19 Joel Brobecker <[email protected]> |
4263 | ||
4264 | GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC) | |
4265 | * version.in: Bump version to 7.1.50.20100219-cvs. | |
4266 | ||
202b96c1 PA |
4267 | 2010-02-18 Harald Koenig <[email protected]> |
4268 | ||
4269 | * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'. | |
4270 | * symfile.c (symfile_map_offsets_to_segments): Fix assertion. | |
4271 | ||
de2e5182 TT |
4272 | 2010-02-17 Tom Tromey <[email protected]> |
4273 | ||
4274 | * NEWS: Add Python API Improvements section. | |
4275 | ||
7280022e DJ |
4276 | 2010-02-18 Daniel Jacobowitz <[email protected]> |
4277 | ||
4278 | * NEWS: Correct typo. | |
4279 | ||
6f451e5e TT |
4280 | 2010-02-17 Tom Tromey <[email protected]> |
4281 | ||
4282 | * objfiles.c (gdb_bfd_ref): Handle abfd==NULL. | |
4283 | ||
012836ea JK |
4284 | 2010-02-17 Jan Kratochvil <[email protected]> |
4285 | ||
4286 | * symfile.c (build_section_addr_info_from_objfile): Include sections | |
4287 | only if they are SEC_ALLOC or SEC_LOAD. | |
4288 | ||
d182d057 L |
4289 | 2010-02-17 H.J. Lu <[email protected]> |
4290 | ||
4291 | PR shlibs/11293 | |
4292 | * solib-svr4.c (enable_break): Check size of CORE_ADDR instead | |
4293 | of ULONGEST for address size. | |
4294 | ||
4eef138c TT |
4295 | 2010-02-17 Tom Tromey <[email protected]> |
4296 | ||
4297 | * NEWS: Add C++ improvements section. | |
4298 | ||
548a926a UW |
4299 | 2010-02-17 Ulrich Weigand <[email protected]> |
4300 | ||
4301 | * python/python-internal.h [!WITH_THREAD] (PyGILState_Release, | |
4302 | PyThreadState_Swap): Avoid "statement with no effect" warning. | |
4303 | ||
ad3a0e5b JK |
4304 | 2010-02-17 Jan Kratochvil <[email protected]> |
4305 | ||
4306 | * solib-svr4.c (enable_break <target_auxv_search>): New variable | |
4307 | addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors. | |
4308 | ||
243e2c5d | 4309 | 2010-02-17 Tristan Gingold <[email protected]> |
b2319725 | 4310 | Petr Hluzin <[email protected]> |
243e2c5d TG |
4311 | |
4312 | * avr-tdep.c (avr_scan_prologue): Convert an if statement to a | |
4313 | gdb_assert. Fix info->size for SIG prologue. | |
4314 | ||
275f2e57 DJ |
4315 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
4316 | ||
4317 | * infcmd.c (show_inferior_tty_command): Check for NULL. | |
4318 | Correct output message. | |
4319 | ||
791dfb64 DJ |
4320 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
4321 | ||
4322 | * linespec.c (decode_line_1): Handle FILE:FUNCTION even if | |
4323 | FUNCTION contains parentheses. Improve removal of a trailing | |
4324 | single quote. | |
4325 | ||
14d1346b DJ |
4326 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
4327 | ||
4328 | * gcore.c (do_bfd_delete_cleanup): New function. | |
4329 | (gcore_command): Use it. Discard the cleanup after success. | |
4330 | (gcore_copy_callback): Delete dead code. | |
4331 | ||
e76ab67f DJ |
4332 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
4333 | ||
4334 | * symfile.c (addr_info_make_relative): Always use | |
4335 | find_lowest_section. | |
4336 | ||
71dee663 SW |
4337 | 2010-02-16 Sami Wagiaalla <[email protected]> |
4338 | ||
4339 | * NEWS: Added entry for namespace fixes. | |
4340 | ||
a9854bd5 TT |
4341 | 2010-02-15 Tom Tromey <[email protected]> |
4342 | ||
4343 | * dwarf2read.c (guess_structure_name): Allocate name on the | |
4344 | objfile obstack. | |
4345 | ||
fd9e29b5 TT |
4346 | 2010-02-15 Tom Tromey <[email protected]> |
4347 | ||
4348 | * c-typeprint.c (c_type_print_base): Reverse order of test. | |
4349 | ||
4e1fc9c9 JK |
4350 | 2010-02-15 Jan Kratochvil <[email protected]> |
4351 | ||
4352 | * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally | |
4353 | initialize it from ELF BFD. Extend the prelink condition by it. | |
4354 | ||
74164c56 JK |
4355 | 2010-02-15 Jan Kratochvil <[email protected]> |
4356 | ||
4357 | * defs.h (parse_pid_to_attach): New. | |
4358 | * utils.c (parse_pid_to_attach): New. | |
4359 | * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid. | |
4360 | * gnu-nat.c (gnu_attach): Likewise. | |
4361 | * nto-procfs.c (procfs_attach): Likewise. | |
4362 | * procfs.c (procfs_attach): Likewise. | |
4363 | * windows-nat.c (windows_attach): Likewise. | |
4364 | * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy. | |
4365 | * inf-ttrace.c (inf_ttrace_attach): Likewise. | |
4366 | * remote.c (extended_remote_attach_1): Likewise. New comment on getpid | |
4367 | check. | |
4368 | ||
bf6adea8 MM |
4369 | 2010-02-14 Masaki Muranaka <[email protected]> |
4370 | ||
4371 | * MAINTAINERS: Add myself for write after approval privileges. | |
4372 | ||
28f34a8f JK |
4373 | 2010-02-13 Jan Kratochvil <[email protected]> |
4374 | ||
4375 | * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner | |
4376 | block. | |
4377 | ||
701ed6dc JK |
4378 | 2010-02-13 Jan Kratochvil <[email protected]> |
4379 | ||
4380 | * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment | |
4381 | only if INFO_VERBOSE. | |
4382 | ||
e5829bee MS |
4383 | 2010-02-12 Tomas Holmberg <[email protected]> |
4384 | ||
4385 | * mi/mi-main.c: Added the --reverse flag to the following MI | |
4386 | commands: exec-continue, exec-finish, exec-next, exec-step, | |
4387 | exec-next-instruction, exec-step-instruction. This is to | |
4388 | support reverse execution over the MI interface to gdb. | |
4389 | ||
081dfbf7 PA |
4390 | 2010-02-12 Pedro Alves <[email protected]> |
4391 | ||
4392 | * tracepoint.c (_initialize_tracepoint): Specify that the address | |
4393 | range of `tfind outsize' is exclusive, and that the address range | |
4394 | of `tfind range' is inclusive, in the commands' help strings. | |
4395 | ||
ecc13e53 JB |
4396 | 2010-02-12 Joel Brobecker <[email protected]> |
4397 | ||
4398 | Spurious "dll not found" error messages on x64-windows. | |
4399 | * windows-nat.c: Add include of complaints.h. | |
4400 | (handle_unload_dll): Change dll-not-found error into a complaint. | |
4401 | ||
15c3d785 PA |
4402 | 2010-02-12 Pedro Alves <[email protected]> |
4403 | ||
4404 | * breakpoint.c (allocate_bp_location): Use bp_loc_other for | |
4405 | bp_tracepoint and bp_fast_tracepoint, not | |
4406 | bp_loc_software_breakpoint. | |
4407 | (update_global_location_list): Tracepoints are never duplicates of | |
4408 | anything. | |
4409 | ||
fd9b8c24 PA |
4410 | 2010-02-12 Pedro Alves <[email protected]> |
4411 | ||
4412 | * breakpoint.c (break_command_really): Change return type to int. | |
4413 | Return false if no breakpoint was created, true otherwise. | |
4414 | (trace_command): Don't set the tracepoint count if no tracepoint | |
4415 | was created. | |
4416 | (ftrace_command): Ditto. | |
4417 | (create_tracepoint_from_upload): Bail out if the tracepoint wasn't | |
4418 | created in the breakpoints table. | |
4419 | ||
5c0d192f JK |
4420 | 2010-02-11 Jan Kratochvil <[email protected]> |
4421 | Ulrich Weigand <[email protected]> | |
4422 | ||
4423 | * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition. | |
4424 | ||
5d5b640e PA |
4425 | 2010-02-11 Pedro Alves <[email protected]> |
4426 | ||
4427 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if | |
4428 | the offset value isn't of integral type. | |
4429 | ||
e5a0a904 JK |
4430 | 2010-02-11 Jan Kratochvil <[email protected]> |
4431 | ||
4432 | * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>: | |
4433 | New. | |
4434 | ||
be636754 PA |
4435 | 2010-02-11 Pedro Alves <[email protected]> |
4436 | ||
4437 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on | |
4438 | non-subscriptable types. | |
4439 | * valarith.c (binop_types_user_defined_p): New, abstracted out | |
4440 | from ... | |
4441 | (binop_user_defined_p): ... this. | |
4442 | * value.h (binop_types_user_defined_p): Declare. | |
4443 | ||
10ef8d6a PA |
4444 | 2010-02-11 Pedro Alves <[email protected]> |
4445 | ||
4446 | * tracepoint.c (tfile_open): Remove spurious discard_cleanups. | |
4447 | Merge uploaded TSVs before merging uploaded tracepoints. | |
4448 | ||
b1028c8e PA |
4449 | 2010-02-11 Pedro Alves <[email protected]> |
4450 | ||
4451 | * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers. | |
4452 | ||
7a93fb82 | 4453 | 2010-02-11 Vladimir Prus <[email protected]> |
84d90c10 | 4454 | |
7a93fb82 VP |
4455 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra |
4456 | whitespace character after a dot in comment. | |
4457 | (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables): | |
4458 | Likewise. | |
4459 | (list_args_or_locals): For the 'all' (that is | |
4460 | -stack-list-variables) case, always output list of tuples. | |
4461 | Output 'arg' field if variable is argument. | |
84d90c10 | 4462 | |
92981e24 TT |
4463 | 2010-02-10 Tom Tromey <[email protected]> |
4464 | ||
4465 | * parser-defs.h (parser_debug): Declare. | |
4466 | * parse.c (_initialize_parse): Install "debug parser" set/show | |
4467 | command. | |
4468 | (parser_debug): New global. | |
4469 | (show_parserdebug): New function. | |
4470 | * c-exp.y (c_parse): Set yydebug. | |
4471 | ||
9fd3625f L |
4472 | 2010-02-10 H.J. Lu <[email protected]> |
4473 | ||
4474 | * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT, | |
4475 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
4476 | (tdesc_predefined_types): Add i387_ext, i386_eflags and | |
4477 | i386_mxcsr. | |
4478 | (tdesc_find_type): New. | |
4479 | (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT, | |
4480 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
4481 | ||
4482 | * target-descriptions.h (tdesc_find_type): New. | |
4483 | ||
2fe842e5 MS |
4484 | 2010-02-10 Michael Snyder <[email protected]> |
4485 | ||
4486 | * gdb-gdb.py: Comment fix. | |
4487 | ||
f18b4cab TG |
4488 | 2010-02-09 Tristan Gingold <[email protected]> |
4489 | ||
4490 | * machoread.c (macho_symfile_relocate): New function. | |
4491 | (macho_sym_fns): Use macho_symfile_relocate instead of | |
4492 | default_symfile_relocate. | |
4493 | (macho_oso_data): New type. | |
4494 | (current_oso): New variable. | |
4495 | (macho_add_oso_symfile): Do not compute section_addr_info, but | |
4496 | instead set vma of sections. | |
4497 | Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd. | |
4498 | Set and clear current_oso. | |
4499 | ||
31dbc1c5 JB |
4500 | 2010-02-09 Joel Brobecker <[email protected]> |
4501 | ||
4502 | Wrong type description for tagged type parameter. | |
4503 | * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is | |
4504 | EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a | |
4505 | reference to a tagged type. | |
4506 | ||
399f313b TG |
4507 | 2010-02-09 Tristan Gingold <[email protected]> |
4508 | ||
4509 | * objfiles.c (objfile_separate_debug_iterate): Do not iterate on | |
4510 | brothers of the parent. | |
4511 | ||
714f19d5 TT |
4512 | 2010-02-08 Tom Tromey <[email protected]> |
4513 | ||
4514 | PR c++/8017: | |
4515 | * value.h: Update. | |
4516 | * valops.c (search_struct_field): Make 'name' const. | |
4517 | (search_struct_method): Likewise. | |
4518 | (find_method_list): Make 'method' const. | |
4519 | (value_struct_elt): Make 'name' and 'err' const. | |
4520 | (value_find_oload_method_list): Make 'method' const. | |
4521 | (find_overload_match): Make 'name' const. | |
4522 | * eval.c (evaluate_subexp_standard): New locals function, | |
4523 | function_name. | |
4524 | <OP_FUNCALL>: Handle OP_SCOPE specially. | |
4525 | ||
de0a0249 UW |
4526 | 2010-02-08 Ulrich Weigand <[email protected]> |
4527 | ||
4528 | * infrun.c (handle_inferior_event): Do not look up regcache | |
4529 | for exited processes. | |
4530 | ||
8d95cc3b | 4531 | 2010-02-08 Chris Moller <[email protected]> |
83b10087 CM |
4532 | |
4533 | PR gdb/10728 | |
4534 | * valarith.c (value_ptrdiff): Added a test for a zero type length, | |
8d95cc3b | 4535 | warn if found, and assume length = 1. |
83b10087 | 4536 | |
99903ae3 CM |
4537 | 2010-02-08 Chris Moller <[email protected]> |
4538 | ||
4539 | PR gdb/9067 | |
4540 | * cp-valprint.c (cp_print_value_fields) Fix use of obstacks. | |
4541 | cp_print_static_field) Fix use of obstacks. | |
8d95cc3b | 4542 | |
e3e9f5a2 PA |
4543 | 2010-02-08 Pedro Alves <[email protected]> |
4544 | ||
4545 | * linux-nat.c (linux_nat_resume): In non-stop, also only tag | |
4546 | resumed LWPs as resumed. | |
4547 | (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs | |
4548 | we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead | |
4549 | of throwing an internal error. If an LWP of a process we're not | |
4550 | waiting for reports a signal, don't force collecting a SIGSTOP, | |
4551 | and if it was breakpoint hit in non-stop mode, cancel it. Don't | |
4552 | go through all LWPs cancelling breakpoints in non-stop mode. | |
4553 | (resume_stopped_resumed_lwps): New. | |
4554 | (linux_nat_wait): Use it. | |
4555 | ||
46763423 L |
4556 | 2010-02-07 H.J. Lu <[email protected]> |
4557 | ||
4558 | * features/Makefile (WHICH): Add i386/i386, i386/i386-linux, | |
4559 | i386/amd64 and i386/amd64-linux. | |
4560 | (i386/i386-expedite): New. | |
4561 | (i386/i386-linux-expedite): Likewise. | |
4562 | (i386/amd64-expedite):Likewise. | |
4563 | (i386/amd64-linux-expedite): Likewise. | |
4564 | ($(outdir)/i386/i386-linux.dat): Likewise. | |
4565 | ($(outdir)/i386/amd64.dat): Likewise. | |
4566 | ($(outdir)/i386/amd64-linux.dat): Likewise. | |
4567 | ||
4568 | * features/i386/32bit-core.xml: New. | |
4569 | * features/i386/32bit-linux.xml: Likewise. | |
4570 | * features/i386/32bit-sse.xml: Likewise. | |
4571 | * features/i386/64bit-core.xml: Likewise. | |
4572 | * features/i386/64bit-linux.xml: Likewise. | |
4573 | * features/i386/64bit-sse.xml: Likewise. | |
4574 | * features/i386/i386-linux.xml: Likewise. | |
4575 | * features/i386/i386.xml: Likewise. | |
4576 | * features/i386/amd64-linux.xml: Likewise. | |
4577 | * features/i386/amd64.xml: Likewise. | |
4578 | * features/i386/i386-linux.c: Likewise. | |
4579 | * features/i386/i386.c: Likewise. | |
4580 | * features/i386/amd64-linux.c: Likewise. | |
4581 | * features/i386/amd64.c: Likewise. | |
4582 | ||
82856980 SW |
4583 | 2010-02-05 Sami Wagiaalla <[email protected]> |
4584 | ||
4585 | PR c++/7935: | |
4586 | * cp-support.h: Added char* alias element to using_direct data | |
4587 | struct. | |
4588 | (cp_add_using): Added char* alias argument. | |
4589 | (cp_add_using_directive): Ditto. | |
4590 | * cp-namespace.c: Updated with the above changes. | |
4591 | (cp_lookup_symbol_imports): Check for aliases. | |
4592 | * dwarf2read.c (read_import_statement): Figure out local alias | |
4593 | for the import and pass it on to cp_add_using. | |
4594 | (read_namespace): Pass alias argument to cp_add_using. | |
4595 | ||
d18b8b7a HZ |
4596 | 2010-02-05 Hui Zhu <[email protected]> |
4597 | ||
4598 | * defs.h (gdb_bfd_errmsg): New extern. | |
4599 | * exec.c (exec_file_attach): Change bfd_errmsg to | |
4600 | gdb_bfd_errmsg. | |
4601 | * utils.c (AMBIGUOUS_MESS1): New macro. | |
4602 | (AMBIGUOUS_MESS2): New macro. | |
4603 | (gdb_bfd_errmsg): New function. | |
4604 | ||
48379de6 DE |
4605 | 2010-02-04 Doug Evans <[email protected]> |
4606 | ||
4607 | * solib-svr4.c (enable_break): Add comment. | |
4608 | ||
4ee73e90 AG |
4609 | 2010-02-04 Anthony Green <[email protected]> |
4610 | ||
4611 | * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis | |
4612 | gracefully. | |
4613 | ||
1a334831 TT |
4614 | 2010-02-04 Tom Tromey <[email protected]> |
4615 | ||
4616 | * valops.c (search_struct_field): Account for | |
4617 | value_embedded_offset. Fix check for virtual base past the end of | |
4618 | the object. Use value_copy when making a slice of the value. | |
4619 | ||
1180b2c8 L |
4620 | 2010-02-04 H.J. Lu <[email protected]> |
4621 | ||
4622 | PR tui/9622 | |
4623 | * tui/tui-interp.c (tui_init): Call tui_initialize_readline | |
4624 | only if gdb_stdout is a tty. | |
4625 | ||
c3f08eb7 L |
4626 | 2010-02-04 H.J. Lu <[email protected]> |
4627 | ||
4628 | * target-descriptions.c: Include "osabi.h". | |
4629 | (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid | |
4630 | OSABI. | |
4631 | ||
2d33f7b8 TG |
4632 | 2010-02-04 Tristan Gingold <[email protected]> |
4633 | ||
4634 | * machoread.c (macho_add_oso): Renamed to macho_register_oso. | |
4635 | (macho_symtab_read): Adjust calls to macho_add_oso. | |
4636 | (macho_oso_symfile): Renamed to macho_symfile_read_all_oso. | |
4637 | (macho_symfile_read): Adjust call to macho_oso_symfile. | |
4638 | (macho_new_init): Move this function after declarations. | |
4639 | (macho_symfile_init): Ditto. | |
4640 | * darwin-nat-info.c (darwin_lib_gdb_ports): Remove. | |
4641 | * darwin-nat.c (darwin_lookup_task): Remove unused prototype. | |
4642 | ||
11334b82 VP |
4643 | 2010-02-04 Vladimir Prus <[email protected]> |
4644 | ||
4645 | Include MI command in remotelog. | |
4646 | ||
4647 | * mi/mi-main.c (mi_execute_command): Call target_log_command. | |
4648 | ||
ff97be06 L |
4649 | 2010-02-03 H.J. Lu <[email protected]> |
4650 | ||
4651 | * remote.c (remote_state): Remove gdbarch. | |
4652 | (init_remote_state): Don't set gdbarch. | |
4653 | (remote_query_supported): Pass target_gdbarch instead of | |
4654 | rs->gdbarch to gdbarch_qsupported. | |
4655 | ||
75cebea9 L |
4656 | 2010-02-03 H.J. Lu <[email protected]> |
4657 | ||
4658 | * gdbarch.sh: Add qsupported. | |
4659 | ||
4660 | * gdbarch.c: Regenerated. | |
4661 | * gdbarch.h: Likewise. | |
4662 | ||
4663 | * remote.c (remote_state): Add gdbarch. | |
4664 | (init_remote_state): Set gdbarch. | |
4665 | (remote_query_supported): Support gdbarch_qsupported. | |
4666 | ||
c1dec97b DJ |
4667 | 2010-02-03 Daniel Jacobowitz <[email protected]> |
4668 | ||
4669 | * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for | |
4670 | __FreeBSD_kernel_version. | |
4671 | ||
ac8035ab TG |
4672 | 2010-02-03 Tristan Gingold <[email protected]> |
4673 | ||
4674 | * symfile.h (struct sym_fns): Add sym_relocate field. | |
4675 | (default_symfile_relocate): New prototype. | |
4676 | (symfile_relocate_debug_section): First argument is now an objfile. | |
4677 | * symfile.c (default_symfile_relocate): Rename from | |
4678 | symfile_relocate_debug_section, first argument is now an objfile. | |
4679 | (symfile_relocate_debug_section): New function. | |
4680 | * coffread.c (coff_sym_fns): Set sym_relocate field. | |
4681 | * somread.c (som_sym_fns): Ditto. | |
4682 | * mipsread.c (ecoff_sym_fns): Ditto. | |
4683 | * machoread.c (macho_sym_fns): Ditto. | |
4684 | * elfread.c (elf_sym_fns): Ditto. | |
4685 | * dwarf2read.c (dwarf2_read_section): Ditto. | |
4686 | * xcoffread.c (xcoff_sym_fns): Ditto. | |
4687 | * dbxread.c (aout_sym_fns): Ditto. | |
4688 | (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section. | |
4689 | (elfstab_build_psymtabs): Ditto. | |
4690 | ||
be52b756 L |
4691 | 2010-02-03 H.J. Lu <[email protected]> |
4692 | ||
4693 | * defs.h (MAX_REGISTER_SIZE): Increase to 32. | |
4694 | ||
9c3c02fd TT |
4695 | 2010-02-02 Tom Tromey <[email protected]> |
4696 | ||
4697 | * valops.c (value_cast_structs): Try downcasting using the RTTI | |
4698 | type. | |
4699 | ||
f23f4c59 TT |
4700 | 2010-02-02 Tom Tromey <[email protected]> |
4701 | ||
4702 | * gnu-v2-abi.c: Don't include gnu-v2-abi.h. | |
4703 | (gnuv2_baseclass_offset): Now static. | |
4704 | * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h. | |
4705 | * gnu-v2-abi.h: Remove. | |
4706 | ||
0cc2414c TT |
4707 | 2010-02-02 Tom Tromey <[email protected]> |
4708 | ||
4709 | * m2-typeprint.c (m2_record_fields): Don't use | |
4710 | TYPE_DECLARED_TYPE. | |
4711 | * gdbtypes.h (TYPE_DECLARED_CLASS): New macro. | |
4712 | (struct main_type) <flag_declared_class>: New field. | |
4713 | (struct cplus_struct_type) <declared_type>: Remove. | |
4714 | <ntemplate_args>: Move earlier. | |
4715 | (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT) | |
4716 | (DECLARED_TYPE_TEMPLATE): Remove. | |
4717 | (TYPE_DECLARED_TYPE): Remove. | |
4718 | * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE. | |
4719 | * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS. | |
4720 | * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not | |
4721 | TYPE_DECLARED_TYPE. | |
4722 | ||
edf3d5f3 TT |
4723 | 2010-02-02 Tom Tromey <[email protected]> |
4724 | ||
4725 | PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: | |
4726 | * valops.c (search_struct_field): Compute nbases after calling | |
4727 | CHECK_TYPEDEF. | |
4728 | (check_field): Call CHECK_TYPEDEF. | |
4729 | * cp-valprint.c (cp_print_value): Pass correct address to | |
4730 | baseclass_offset. Fix check for virtual base past the end of the | |
4731 | object. Don't offset address passed to cp_print_value_fields or | |
4732 | apply_val_pretty_printer. | |
4733 | (cp_print_value_fields): Fix call to val_print. | |
4734 | (cp_print_value_fields_rtti): New function. | |
4735 | * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. | |
4736 | * p-valprint.c (pascal_object_print_value_fields): Fix call to | |
4737 | val_print. | |
4738 | * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded | |
4739 | offset to address. | |
4740 | * language.h (struct language_defn) <la_val_print>: Document. | |
4741 | * c-lang.h (cp_print_value_fields_rtti): Declare. | |
4742 | ||
e4b7f41c JK |
4743 | 2010-02-01 Jan Kratochvil <[email protected]> |
4744 | ||
4745 | PR libc/11214: | |
4746 | * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
4747 | (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU]. | |
4748 | (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
4749 | ||
7618e12b DJ |
4750 | 2010-02-01 Michael Matz <[email protected]> |
4751 | Daniel Jacobowitz <[email protected]> | |
4752 | ||
e4b7f41c | 4753 | * i386-tdep.c (i386_frame_cache): Assume valid anonymous |
7618e12b DJ |
4754 | functions use a frame pointer. |
4755 | ||
b381ea14 JK |
4756 | 2010-02-01 Jan Kratochvil <[email protected]> |
4757 | ||
4758 | * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert | |
4759 | by a conditional setting DYN_ADDR. Use DYN_ADDR. | |
4760 | * config/djgpp/fnchange.lst: Add translations for | |
4761 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
4762 | ||
0e05dfcb DJ |
4763 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
4764 | ||
4765 | * gdbarch.sh: Set LANG and LC_ALL to C, not c. | |
4766 | (remote_breakpoint_for_pc): Correct invalid_p check. | |
4767 | * gdbarch.c: Regenerated. | |
4768 | ||
f9d67f43 DJ |
4769 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
4770 | ||
4771 | * arm-tdep.c (arm_find_mapping_symbol): New function, from | |
4772 | arm_pc_is_thumb. | |
4773 | (arm_pc_is_thumb): Use arm_find_mapping_symbol. | |
4774 | (extend_buffer_earlier): New function. | |
4775 | (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants. | |
4776 | (arm_adjust_breakpoint_address): New function. | |
4777 | (arm_gdbarch_init): Register arm_adjust_breakpoint_address. | |
4778 | ||
177321bd DJ |
4779 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
4780 | ||
4781 | * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint) | |
4782 | (arm_linux_thumb2_le_breakpoint): New constants. | |
4783 | (arm_linux_init_abi): Set thumb2_breakpoint and | |
4784 | thumb2_breakpoint_size. | |
4785 | * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions. | |
4786 | (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE. | |
4787 | Implement support for single stepping through IT blocks if | |
4788 | a 32-bit Thumb breakpoint instruction is available. | |
4789 | (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction | |
4790 | is available, use it when needed. | |
4791 | (arm_remote_breakpoint_from_pc): New function. | |
4792 | (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc. | |
4793 | * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint | |
4794 | comment. Add thumb2_breakpoint and thumb2_breakpoint_size. | |
4795 | ||
a1dcb23a DJ |
4796 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
4797 | ||
4798 | * arch-utils.c (default_remote_breakpoint_from_pc): New function. | |
4799 | * arch-utils.h (default_remote_breakpoint_from_pc): Declare. | |
4800 | * gdbarch.c, gdbarch.h: Regenerated. | |
4801 | * gdbarch.sh (remote_breakpoint_from_pc): New architecture method. | |
4802 | * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use | |
4803 | gdbarch_remote_breakpoint_from_pc. | |
4804 | ||
2b009048 DJ |
4805 | 2010-01-29 Daniel Jacobowitz <[email protected]> |
4806 | ||
4807 | * infrun.c (prepare_to_proceed): Handle other signals which might | |
4808 | match a breakpoint. | |
4809 | (handle_inferior_event): Move the check for unusual breakpoint | |
4810 | signals earlier. | |
4811 | ||
e4e2711a JB |
4812 | 2010-01-29 Paul Hilfinger <[email protected]> |
4813 | ||
4814 | amd64 - function returning record with field straddling 2 registers. | |
4815 | * amd64-tdep.c (amd_classify_aggregate): Handle the case of | |
4816 | a record of length <= 16 in which a field straddles the two | |
4817 | eightbytes. | |
4818 | ||
cba6fab5 JB |
4819 | 2010-01-29 Joel Brobecker <[email protected]> |
4820 | ||
4821 | Implement return values on amd64-windows. | |
4822 | * amd64-windows-tdep.c: #include gdbcore.h and regcache.h. | |
4823 | (amd64_windows_return_value): New function. | |
4824 | (amd64_windows_init_abi): Call set_gdbarch_return_value with | |
4825 | amd64_windows_return_value. | |
4826 | ||
3af6ddfe JB |
4827 | 2010-01-29 Joel Brobecker <[email protected]> |
4828 | ||
4829 | amd64-windows: 32 bytes allocated on stack by caller for integer | |
cba6fab5 | 4830 | parameter registers. |
3af6ddfe JB |
4831 | * i386-tdep.h (struct gdbarch_tdep): Add new field |
4832 | integer_param_regs_saved_in_caller_frame. | |
4833 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
4834 | tdep->integer_param_regs_saved_in_caller_frame to 1. | |
4835 | * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on | |
4836 | stack if tdep->integer_param_regs_saved_in_caller_frame is set. | |
4837 | ||
80d19a06 JB |
4838 | 2010-01-29 Joel Brobecker <[email protected]> |
4839 | ||
4840 | amd64-windows: memory args passed by pointer during function calls. | |
4841 | * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer. | |
4842 | * amd64-tdep.c (amd64_push_arguments): Add handling of architectures | |
4843 | where tdep->memory_args_by_pointer is non-zero. | |
4844 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
4845 | tdep->memory_args_by_pointer to 1. | |
4846 | ||
ba581dc1 JB |
4847 | 2010-01-29 Joel Brobecker <[email protected]> |
4848 | ||
4966b6c2 | 4849 | amd64-windows: Integer parameters in function calls. |
ba581dc1 JB |
4850 | * i386-tdep.h (enum amd64_reg_class): New, moved here from |
4851 | amd64-tdep.c. | |
4852 | (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs, | |
4853 | call_dummy_integer_regs, and classify. | |
4854 | * amd64-tdep.h (amd64_classify): Add declaration. | |
4855 | * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant. | |
4856 | (amd64_reg_class): Delete, moved to i386-tdep.h. | |
4857 | (amd64_classify): Make non-static. Move declaration to amd64-tdep.h. | |
4858 | Replace call to amd64_classify by call to tdep->classify. | |
4859 | (amd64_push_arguments): Get the list of registers to use for | |
4860 | passing integer parameters from the gdbarch tdep structure, | |
4861 | rather than using a hardcoded one. Replace calls to amd64_classify | |
4862 | by calls to tdep->classify. | |
4863 | (amd64_push_dummy_call): Get the register number used for | |
4864 | the "hidden" argument from tdep->call_dummy_integer_regs. | |
4865 | (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
4866 | and tdep->call_dummy_integer_regs. Set tdep->classify. | |
4867 | * amd64-windows-tdep.c: Add include of gdbtypes.h. | |
4868 | (amd64_windows_dummy_call_integer_regs): New static global. | |
4869 | (amd64_windows_classify): New function. | |
4870 | (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
4871 | tdep->call_dummy_integer_regs and tdep->classify. | |
4872 | ||
d37346f0 DJ |
4873 | 2010-01-28 Daniel Jacobowitz <[email protected]> |
4874 | ||
4875 | * regcache.c (regcache_xmalloc): Add aspace argument. Use it | |
4876 | for the new regcache. All callers updated. | |
4877 | (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here. | |
4878 | (get_thread_arch_regcache): Do not set aspace here. | |
4879 | * regcache.h (regcache_xmalloc): Update declaration. | |
4880 | ||
4881 | * frame.c, infcall.c, ppc-linux-tdep.c: Calls to | |
4882 | regcache_xmalloc updated. | |
4883 | ||
7434dadd JB |
4884 | 2010-01-28 Joel Brobecker <[email protected]> |
4885 | ||
4886 | Another -Wunused-function error in procfs.c (sparc-solaris) | |
4887 | * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up. | |
4888 | Only define if SYS_syssgi is defined. | |
4889 | (remove_dbx_link_breakpoint): Delete declaration. Move up. | |
4890 | (dbx_link_addr, insert_dbx_link_bpt_in_file) | |
4891 | (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi | |
4892 | is itself defined. | |
4893 | ||
16d905e2 CF |
4894 | 2010-01-27 Christopher Faylor <[email protected]> |
4895 | ||
4896 | * windows-nat.c (windows_initialization_done): New variable. | |
4897 | (get_windows_debug_event): Issue error when process dies before | |
4898 | completely initializing. | |
4899 | (do_initial_windows_stuff): Set flag to indicate when we are done with | |
4900 | the initial steps of attaching to the child. | |
4901 | ||
cd55e50f JK |
4902 | 2010-01-27 Jan Kratochvil <[email protected]> |
4903 | ||
4904 | * symtab.h (struct symbol <symtab>): New comment on NULL values. | |
4905 | ||
99cc78aa DE |
4906 | 2010-01-27 Doug Evans <[email protected]> |
4907 | ||
4c7dcb84 DE |
4908 | * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity. |
4909 | ||
99cc78aa DE |
4910 | * breakpoint.c (bpstat_stop_status): Delete useless code. |
4911 | ||
52334bf5 JK |
4912 | 2010-01-27 Jan Kratochvil <[email protected]> |
4913 | ||
4914 | * printcmd.c (display_uses_solib_p): Remove variable section. Access | |
4915 | objfile via SYMBOL_SYMTAB. | |
4916 | ||
708ead4e TT |
4917 | 2010-01-26 Tom Tromey <[email protected]> |
4918 | ||
4919 | PR exp/7643: | |
4920 | * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call | |
4921 | coerce_array on result. | |
4922 | ||
b14e635e SW |
4923 | 2010-01-26 Sami Wagiaalla <[email protected]> |
4924 | ||
4925 | * cp-namespace.c (cp_lookup_symbol_namespace): Added | |
4926 | search_parent argument. | |
4927 | (cp_add_using): Initialize 'searched' field. | |
4928 | (reset_directive_searched): New function. | |
4929 | * cp-support.h: Add 'searched' field to using_direct struct. | |
4930 | (cp_lookup_symbol_imports): Ditto. | |
4931 | * cp-namespace.c (cp_lookup_symbol_imports): Ditto. | |
4932 | Perform recursive search. | |
4933 | Implement non parent search. | |
4934 | * valops.c (value_maybe_namespace_elt): Updated. | |
4935 | ||
8540c487 SW |
4936 | 2010-01-26 Sami Wagiaalla <[email protected]> |
4937 | ||
4938 | PR gdb/10929: | |
4939 | * dwarf2read.c (read_lexical_block_scope): Create blocks for | |
4940 | scopes which contain using directives even if they contain no | |
4941 | declarations. | |
4942 | * symtab.c (lookup_symbol_aux): Pass lowest level block to | |
4943 | la_lookup_symbol_nonlocal. | |
4944 | * cp-namespace.c (cp_lookup_symbol_nonlocal): call | |
4945 | cp_lookup_symbol_namespace. | |
4946 | (cp_lookup_symbol_namespace): Perform an import lookup at every | |
4947 | block level. | |
4948 | (cp_lookup_symbol_imports): New function. | |
4949 | (cp_lookup_symbol_in_namespace): New function. | |
4950 | ||
421d5d99 TT |
4951 | 2010-01-25 Tom Tromey <[email protected]> |
4952 | ||
4953 | PR gdb/11049: | |
4954 | * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer | |
4955 | result. | |
4956 | ||
6bcc772d RO |
4957 | 2010-01-25 Rainer Orth <[email protected]> |
4958 | ||
4959 | * configure.ac: Only use host_os part when disabling TUI on osf. | |
4960 | Use test to check variables, prefix strings with x. | |
4961 | * configure: Regenerate. | |
4962 | ||
4963 | * solib-osf.c (osf_current_sos): Initialize tail. | |
4964 | ||
1c1238a5 TG |
4965 | 2010-01-25 gingold <[email protected]> |
4966 | ||
c8d5aac9 L |
4967 | * windows-nat.c (windows_continue): Use %x to print thread id. |
4968 | (get_windows_debug_event): Ditto. | |
1c1238a5 | 4969 | |
0b92b5bb TT |
4970 | 2010-01-22 Tom Tromey <[email protected]> |
4971 | ||
4972 | PR symtab/11199: | |
4973 | * dwarf2read.c (quirk_gcc_member_function_pointer): Change return | |
4974 | type and arguments. Use smash_to_methodptr_type. | |
4975 | (read_structure_type): Call quirk_gcc_member_function_pointer | |
4976 | later. | |
4977 | * gdbtypes.h (smash_to_methodptr_type): Declare. | |
4978 | * gdbtypes.c (smash_to_methodptr_type): New function. | |
4979 | (lookup_methodptr_type): Use it. | |
4980 | ||
0d5392b8 TT |
4981 | 2010-01-21 Tom Tromey <[email protected]> |
4982 | ||
4983 | PR symtab/11198: | |
4984 | * symtab.h (lookup_minimal_symbol_and_objfile): Declare. | |
4985 | * minsyms.c (lookup_minimal_symbol_and_objfile): New function. | |
4986 | * glibc-tdep.c (find_minsym_and_objfile): Remove. | |
4987 | (glibc_skip_solib_resolver): Use | |
4988 | lookup_minimal_symbol_and_objfile. | |
4989 | ||
e6d088ec KT |
4990 | 2010-01-21 Kai Tietz <[email protected]> |
4991 | ||
4992 | * inflow.c (check_syscall): Guard by #if clause for GO32 and | |
4993 | WIN32 targets. | |
4994 | ||
b966cb8a TT |
4995 | 2010-01-20 Tom Tromey <[email protected]> |
4996 | ||
4997 | PR backtrace/10770: | |
4998 | * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and | |
4999 | BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case. | |
5000 | * dwarf2expr.c (new_dwarf_expr_context): Allocate | |
5001 | dwarf_stack_values, not CORE_ADDRs. | |
5002 | (execute_stack_op): Change DW_OP_div and comparison operators to | |
5003 | use signed operands. | |
5004 | ||
3f81c18a VP |
5005 | 2010-01-20 Vladimir Prus <[email protected]> |
5006 | ||
5007 | Per-inferior args and tty and environment. | |
5008 | ||
5009 | * infcmd.c (inferior_args): Rename to ... | |
5010 | (inferior_args_scratch): ... this. | |
5011 | (inferior_io_terminal): Rename to ... | |
5012 | (inferior_io_terminal_scratch): ... this. | |
5013 | (inferior_argc, inferior_argv): Remove. | |
5014 | (set_inferior_io_terminal, get_inferior_io_terminal): Store | |
5015 | inside current_inferior(). | |
5016 | (set_inferior_tty_command, show_inferior_tty_command): New. | |
5017 | (get_inferior_args, set_inferior_args): Store inside | |
5018 | current_inferior(). | |
5019 | (notice_args_set): Likewise and rename to... | |
5020 | (set_args_command): ... this. | |
5021 | (set_inferior_args_vector): Likewise. | |
5022 | (notice_args_read): Rename to... | |
5023 | (show_args_command): ...new. | |
5024 | (tty_command): Remove. | |
5025 | (run_command_1): Don't free old args, as they are freed by | |
5026 | set_inferior_arg now. | |
5027 | (run_no_args_command): Likewise. | |
5028 | (inferior_environ): Remove. | |
5029 | (run_command_1): Use environment of the current inferior. | |
5030 | (environment_info, set_environment_command) | |
5031 | (unset_environment_command, path_info, path_command): Likewise. | |
5032 | (_initialize_infcmd): Adjust for function and variable renames. | |
5033 | Do not init inferior_environ. | |
5034 | * inferior.h (set_inferior_arg): Adjust prototype. | |
5035 | (struct inferior): New fields args, argc, argv, terminal, environment. | |
5036 | (inferior_environ): Remove declaration. | |
5037 | * inferior.c (free_inferior): Free new fields. | |
5038 | (add_inferior_silent): Initialize 'environment' field. | |
5039 | * main.c (captured_main): Set arguments only after the initial | |
5040 | inferior has been created. Set set_inferior_io_terminal, | |
5041 | not tty_command. | |
5042 | * mi/mi-main.c (mi_cmd_env_path): Use environment of the current | |
5043 | inferior. | |
5044 | (_initialize_mi_cmd_env): Adjust for disappearance of global | |
5045 | inferior_environ. | |
5046 | * solib.c (solib_find): Use environment of the current inferior. | |
5047 | ||
d8b65138 JK |
5048 | 2010-01-20 Jan Kratochvil <[email protected]> |
5049 | ||
5050 | * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if | |
5051 | HAVE_PYTHON. | |
5052 | (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function. | |
5053 | ||
692465f1 JB |
5054 | 2010-01-20 Joel Brobecker <[email protected]> |
5055 | ||
5056 | Get rid of ada-lang.c:function_name_from_pc. | |
5057 | * ada-lang.c: Add "stack.h" #include. | |
5058 | (function_name_from_pc): Delete. | |
5059 | (is_known_support_routine): Replace call to function_name_from_pc | |
5060 | by call to find_frame_funname. | |
5061 | (ada_unhandled_exception_name_addr_from_raise): Likewise. | |
5062 | ||
95519e0e TT |
5063 | 2010-01-19 Tom Tromey <[email protected]> |
5064 | ||
5065 | PR c++/11026: | |
5066 | * dwarf2read.c (read_partial_die): Allocate partial DIE's name on | |
5067 | objfile obstack. | |
5068 | ||
95c11dc7 TT |
5069 | 2010-01-19 Tom Tromey <[email protected]> |
5070 | ||
5071 | * top.c (stop_sig, float_handler, do_nothing): Remove. | |
5072 | ||
a0f49112 JK |
5073 | 2010-01-19 Jan Kratochvil <[email protected]> |
5074 | ||
5075 | * breakpoint.c (watchpoint_check): Check the call | |
5076 | gdbarch_in_function_epilogue_p before calling frame_find_by_id. | |
5077 | Extend the comment. | |
8d95cc3b | 5078 | * config/djgpp/fnchange.lst: Add translations for |
a0f49112 JK |
5079 | watchpoint-cond-gone.exp, watchpoint-cond-gone.c and |
5080 | watchpoint-cond-gone-stripped.c. | |
5081 | ||
ceeb3d5a TT |
5082 | 2010-01-19 Tom Tromey <[email protected]> |
5083 | ||
5084 | PR c++/8000: | |
5085 | * dwarf2read.c (partial_die_parent_scope): Put enumeration type | |
5086 | into parent scope, and enumerator into grandparent scope. | |
5087 | ||
2b71fc8e JB |
5088 | 2010-01-19 Joel Brobecker <[email protected]> |
5089 | ||
5090 | * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands. | |
5091 | ||
03564ed9 JB |
5092 | 2010-01-19 Joel Brobecker <[email protected]> |
5093 | ||
5094 | * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of | |
5095 | i[34567]86-*-solaris2.1[0-9]*. | |
5096 | * configure.tgt: Likewise. | |
5097 | ||
fb2e7cb4 JB |
5098 | 2010-01-19 Joel Brobecker <[email protected]> |
5099 | ||
5100 | * NEWS: Document the source command enhancement allowing it | |
5101 | to load Python scripts. Document the "set/show script-extension" | |
5102 | commands. | |
5103 | ||
1cb5e2a4 JB |
5104 | 2010-01-19 Joel Brobecker <[email protected]> |
5105 | ||
5106 | Add -Wunused-function to compile flags. | |
5107 | * configure.ac: Add -Wunused-function to build_warnings. | |
5108 | * configure: Regenerate. | |
5109 | ||
0ec6cd0c JB |
5110 | 2010-01-19 Joel Brobecker <[email protected]> |
5111 | ||
5112 | "delete" ada-lex.c:input function, not used. | |
5113 | * ada-lex.l: #define YY_NO_INPUT. | |
5114 | ||
b74845da JB |
5115 | 2010-01-19 Joel Brobecker <[email protected]> |
5116 | ||
5117 | Delete free_named_symtabs and associated cleanup. | |
5118 | * symfile.h (free_named_symtabs): Delete declaration. | |
5119 | * symfile.c: Remove some commented out code (clear_symtab_users_once). | |
5120 | (cashier_psymtab): Comment function out. | |
5121 | Delete declaration. | |
5122 | (free_named_symtabs): Delete. | |
5123 | * coffread.c (coff_end_symtab): Remove call to free_named_symtabs. | |
5124 | * dbxread.c (end_psymtab): Likewise. | |
5125 | * dwarf2read.c (process_psymtab_comp_unit): Ditto. | |
5126 | * exec.c (exec_close_1): Ditto. | |
5127 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
5128 | ||
65c06092 JB |
5129 | 2010-01-19 Joel Brobecker <[email protected]> |
5130 | ||
5131 | * stack.c (print_block_frame_labels): Comment function out. | |
5132 | ||
d5cd6034 JB |
5133 | 2010-01-19 Joel Brobecker <[email protected]> |
5134 | ||
5135 | Delete unused or undefined functions. | |
5136 | * breakpoint.c (ep_parse_optional_filename): Delete. | |
5137 | * dcache.c (dcache_write_line): Remove declaration. | |
5138 | * infrun.c (build_infrun): Remove declaration. | |
5139 | * tracepoint.c (tracepoint_save_command): Remove declaration. | |
5140 | * linux-nat.c (init_lwp_list): Delete. No longer used. | |
5141 | * event-loop.c (check_async_signal_handlers): Delete declaration. | |
5142 | * infrun.c (init_execution_control_state): Delete. | |
5143 | (proceed): Update comment to avoid mentioning | |
5144 | init_execution_control_state. | |
5145 | * target.c (kill_or_be_killed, nosupport_runtime): Delete. | |
5146 | * ada-lang.c (ada_to_static_fixed_value): Delete. | |
5147 | * scm-lang.c (evaluate_subexp_scm): Delete declaration. | |
5148 | * cp-namespace.c (cp_copy_usings): Delete. | |
5149 | * xml-syscall.c (xml_number_of_syscalls): Delete. | |
5150 | * progspace.c (find_program_space_by_num): Delete. | |
5151 | * inflow.c (handle_sigio): Delete declaration. | |
5152 | * hppa-tdep.c (hppa_alignof): Delete. | |
5153 | * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset) | |
5154 | (mipsnbsd_core_osabi_sniffer): Delete. | |
5155 | ||
4e8f195d TT |
5156 | 2010-01-18 Tom Tromey <[email protected]> |
5157 | ||
5158 | PR c++/9680: | |
5159 | * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST) | |
5160 | (CONST_CAST): New tokens. | |
5161 | (exp): Add new productions. | |
5162 | (ident_tokens): Add const_cast, dynamic_cast, static_cast, and | |
5163 | reinterpret_cast. | |
5164 | (is_cast_operator): New function. | |
5165 | (yylex): Handle cast operators specially. | |
5166 | * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST, | |
5167 | UNOP_REINTERPRET_CAST>: New cases. | |
5168 | * expprint.c (print_subexp_standard): Likewise. | |
5169 | (op_name_standard): Likewise. | |
5170 | (dump_subexp_body_standard): Likewise. | |
5171 | * parse.c (operator_length_standard): Likewise. | |
5172 | * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST, | |
5173 | UNOP_REINTERPRET_CAST. | |
5174 | * gdbtypes.c (class_types_same_p): New function. | |
5175 | (is_ancestor): Use it. | |
5176 | (is_public_ancestor): New function. | |
5177 | (is_unique_ancestor_worker): Likewise. | |
5178 | (is_unique_ancestor): Likewise. | |
5179 | * gdbtypes.h (class_types_same_p, is_public_ancestor) | |
5180 | (is_unique_ancestor): Declare. | |
5181 | * valops.c (value_reinterpret_cast): New function. | |
5182 | (dynamic_cast_check_1): Likewise. | |
5183 | (dynamic_cast_check_2): Likewise. | |
5184 | (value_dynamic_cast): Likewise. | |
5185 | * value.h (value_reinterpret_cast, value_dynamic_cast): Declare. | |
5186 | ||
d9c57d9f JB |
5187 | 2010-01-18 Joel Brobecker <[email protected]> |
5188 | ||
5189 | Fix build failure when building without Python support. | |
5190 | * python/python.c: Always include exceptions.h, even when HAVE_PYTHON | |
5191 | is not defined. | |
5192 | ||
f80d3ff2 JB |
5193 | 2010-01-18 Joel Brobecker <[email protected]> |
5194 | ||
5195 | Use XVS field type instead of doing a parallel lookup. | |
5196 | * ada-lang.c (ada_get_base_type): Follow the XVS field type | |
5197 | if it is a reference type instead of doing a type lookup using | |
5198 | the XVS field name. | |
5199 | ||
5bf03f13 JB |
5200 | 2010-01-18 Joel Brobecker <[email protected]> |
5201 | ||
5202 | Trust PAD types instead of using PAD___XVS. | |
5203 | * ada-lang.c (trust_pad_over_xvs): New static variable. | |
5204 | (ada_is_aligner_type): If !trust_pad_over_xvs and there is a | |
5205 | parallel XVS type, follow the XVS type instead of the PAD type. | |
5206 | (unwrap_value): Make sure that there is no parallel XVE type | |
5207 | before returning the value as is. | |
5208 | (set_ada_list, show_ada_list): New static variables. | |
5209 | (set_ada_command, show_ada_command): New functions. | |
5210 | (_initialize_ada_language): Add new "set/show ada" prefix commands. | |
5211 | Add new "set/show ada trust-PAD-over-XVS" setting. | |
5212 | ||
973817a3 JB |
5213 | 2010-01-18 Tom Tromey <[email protected]> |
5214 | Thiago Jung Bauermann <[email protected]> | |
5215 | ||
5216 | Allow "source" to load python scripts. | |
5217 | * exceptions.h (enum errors): Add UNSUPPORTED_ERROR. | |
5218 | * python/python.c (source_python_script): New function. | |
5219 | * python/python.h (source_python_script): Add declaration. | |
5220 | * cli/cli-cmds.c: #include exceptions.h and python/python.h. | |
5221 | (script_ext_off, script_ext_soft, script_ext_strict) | |
5222 | (script_ext_enums, script_ext_mode): New static constants. | |
5223 | (show_script_ext_mode, find_and_open_script): New functions. | |
5224 | (source_script): Enhance to handle Python scripts. | |
5225 | (init_cli_cmds): Add set/show script-extension commands. | |
5226 | ||
98e03262 SS |
5227 | 2010-01-16 Stan Shebs <[email protected]> |
5228 | ||
5229 | * tracepoint.h (struct trace_status): Use unsigned long long | |
5230 | instead of size_t. | |
5231 | * tracepoint.c (trace_status_command): Fix printf directive. | |
5232 | (trace_save_command): Check fwrite returns, fix printf directive. | |
5233 | (trace_filename): New global. | |
5234 | (tfile_open): Set it, check read returns. | |
5235 | (tfile_close): Free trace_filename. | |
5236 | (tfile_get_traceframe_address): Check read returns. | |
5237 | (tfile_trace_find): Ditto. | |
5238 | (tfile_fetch_registers): Ditto. | |
5239 | (tfile_xfer_partial): Ditto. | |
5240 | (tfile_get_trace_state_variable_value): Ditto. | |
5241 | ||
00bf0b85 SS |
5242 | 2010-01-15 Stan Shebs <[email protected]> |
5243 | ||
5244 | Add trace file support. | |
5245 | * tracepoint.h (enum trace_stop_reason): New enum. | |
5246 | (struct trace_status): New struct. | |
5247 | (parse_trace_status): Declare. | |
5248 | (struct uploaded_tp): Move here from remote.c, | |
5249 | add fields for actions. | |
5250 | (struct uploaded_tsv): New struct. | |
5251 | * tracepoint.c (tfile_ops): New target vector. | |
5252 | (trace_fd): New global. | |
5253 | (tfile_open): New function. | |
5254 | (tfile_close): New function. | |
5255 | (tfile_files_info): New function. | |
5256 | (tfile_get_trace_status): New function. | |
5257 | (tfile_get_traceframe_address): New function. | |
5258 | (tfile_trace_find): New function. | |
5259 | (tfile_fetch_registers): New function. | |
5260 | (tfile_xfer_partial): New function. | |
5261 | (tfile_get_trace_state_variable_value): New function. | |
5262 | (init_tfile_ops): New function. | |
5263 | (_initialize_tracepoint): Call it, add tfile target. | |
5264 | (trace_status): New global. | |
5265 | (current_trace_status): New function. | |
5266 | (trace_running_p): Remove, change all users to get from | |
5267 | current_trace_status()->running. | |
5268 | (get_trace_status): Remove. | |
5269 | (trace_status_command): Call target_get_trace_status directly, | |
5270 | report more detail including tracing stop reasons. | |
5271 | (trace_find_command): Always allow tfind on a file. | |
5272 | (trace_find_pc_command): Ditto. | |
5273 | (trace_find_tracepoint_command): Ditto. | |
5274 | (trace_find_line_command): Ditto. | |
5275 | (trace_find_range_command): Ditto. | |
5276 | (trace_find_outside_command): Ditto. | |
5277 | (trace_frames_offset, cur_offset): Declare as off_t. | |
5278 | (trace_regblock_size): Rename from reg_size, update users. | |
5279 | (parse_trace_status): New function. | |
5280 | (tfile_interp_line): New function. | |
5281 | (disconnect_or_stop_tracing): Ensure current trace | |
5282 | status before asking what to do. | |
5283 | (stop_reason_names): New global. | |
5284 | (trace_save_command): New command. | |
5285 | (get_uploaded_tp): Move here from remote.c. | |
5286 | (find_matching_tracepoint): Ditto. | |
5287 | (merge_uploaded_tracepoints): New function. | |
5288 | (parse_trace_status): Use stop_reason_names. | |
5289 | (_initialize_tracepoint): Define tsave command. | |
5290 | * target.h (target_ops): New fields to_save_trace_data, | |
5291 | to_upload_tracepoints, to_upload_trace_state_variables, | |
5292 | to_get_raw_trace_data, change to_get_trace_status | |
5293 | to take a pointer to a status struct. | |
5294 | (target_save_trace_data): New macro. | |
5295 | (target_upload_tracepoints): New macro. | |
5296 | (target_upload_trace_state_variables): New macro. | |
5297 | (target_get_raw_trace_data): New macro. | |
5298 | * target.c (update_current_target): Add new methods, change | |
5299 | signature of to_get_trace_status. | |
5300 | * remote.c (hex2bin): Make globally visible. | |
5301 | (bin2hex): Ditto. | |
5302 | (remote_download_trace_state_variable): Download name also. | |
5303 | (remote_get_trace_status): Update parameter, use | |
5304 | parse_trace_status. | |
5305 | (remote_save_trace_data): New function. | |
5306 | (remote_upload_tracepoints): New function. | |
5307 | (remote_upload_trace_state_variables): New function. | |
5308 | (remote_get_raw_trace_data): New function. | |
5309 | (remote_start_remote): Use them. | |
5310 | (_initialize_remote_ops): Add operations. | |
5311 | * ax-gdb.c: Include breakpoint.h. | |
5312 | * breakpoint.c (create_tracepoint_from_upload): Use | |
5313 | break_command_really, return tracepoint, warn about unimplemented | |
5314 | parts. | |
5315 | * NEWS: Mention trace file addition. | |
5316 | ||
d904de5b JK |
5317 | 2010-01-15 Jan Kratochvil <[email protected]> |
5318 | ||
5319 | Fix compilation warning on gcc-3.4. | |
5320 | * exec.c (print_section_info): Move the `displacement' variable | |
5321 | initialization to its declaration. | |
5322 | ||
64aa9731 JK |
5323 | 2010-01-15 Jan Kratochvil <[email protected]> |
5324 | ||
5325 | * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE | |
5326 | comparison. | |
5327 | ||
ca1f5def | 5328 | 2010-01-15 Eric Botcazou <[email protected]> |
9f0dec2d JB |
5329 | |
5330 | "info tasks" broken by typedefs in ATCB type definitions. | |
5331 | * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to | |
5332 | ada_check_typedef before retrieving the length of the type for | |
5333 | regular fields. | |
5334 | ||
12ab9e09 JB |
5335 | 2010-01-15 Joel Brobecker <[email protected]> |
5336 | ||
5337 | Do not use name-based lookup for unconstrained packed arrays. | |
5338 | * ada-lang.c (find_parallel_type_by_descriptive_type): | |
5339 | Limit the fallback to name-based lookups to the case where | |
5340 | the type is a constrained packed array. | |
5341 | ||
c389c3dc JB |
5342 | 2010-01-15 Joel Brobecker <[email protected]> |
5343 | ||
5344 | Enhance gdb-gdb.py to handle main_type.type_specific. | |
5345 | * gdb-gdb.py: Print the type-specific part of struct main_type. | |
5346 | ||
7991dee7 JK |
5347 | 2010-01-15 Jan Kratochvil <[email protected]> |
5348 | ||
5349 | * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit. | |
5350 | * configure: Regenerate. | |
5351 | * config.in: Regenerate. | |
5352 | * utils.c: Include sys/resource.h. | |
5353 | (dump_core, can_dump_core): New. | |
5354 | (internal_vproblem): Update the comment. Check can_dump_core while | |
5355 | setting dump_core_p. Replace two abort calls by dump_core calls. | |
5356 | ||
93c26624 JK |
5357 | 2010-01-14 Jan Kratochvil <[email protected]> |
5358 | Eli Zaretskii <[email protected]> | |
5359 | ||
5360 | * NEWS: Document the PIE support. | |
5361 | ||
55235ad7 JK |
5362 | 2010-01-14 Jan Kratochvil <[email protected]> |
5363 | ||
5364 | * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h. | |
5365 | (check_is_pie_binary, _initialize_linux_tdep): Remove. | |
5366 | ||
41752192 JK |
5367 | 2010-01-14 Jan Kratochvil <[email protected]> |
5368 | ||
5369 | * solib-svr4.c (svr4_exec_displacement): New comment for entry_point. | |
5370 | Replace exec_entry_point call by bfd_get_start_address. | |
5371 | ||
9f2982ff JK |
5372 | 2010-01-14 Jan Kratochvil <[email protected]> |
5373 | ||
5374 | Support Valgrind attachments broken by the PIE support. | |
5375 | * auxv.c: Include gdbcore.h. | |
5376 | (procfs_xfer_auxv): Make static. Reduce its comment. Drop its | |
5377 | parameters ops, object and annex. Remove their assertions. | |
5378 | (ld_so_xfer_auxv, memory_xfer_auxv): New function. | |
5379 | * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ... | |
5380 | (memory_xfer_auxv): ... here. | |
5381 | * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to | |
5382 | memory_xfer_auxv. | |
5383 | * procfs.c (procfs_xfer_partial): Likewise. | |
5384 | * solib-svr4.c (svr4_relocate_main_executable): New prototype. | |
5385 | (svr4_special_symbol_handling): Call svr4_relocate_main_executable. | |
5386 | (svr4_solib_create_inferior_hook): Conditionalize the | |
5387 | svr4_relocate_main_executable call. | |
5388 | ||
61f0d762 JK |
5389 | 2010-01-14 Jan Kratochvil <[email protected]> |
5390 | ||
5391 | * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable | |
5392 | target_section. Find SECT in current_target_sections, gdb_assert it. | |
5393 | (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile. | |
5394 | New variable abfd. | |
5395 | * symtab.c (lookup_objfile_from_block): Return the binary file instead | |
5396 | of separate debug info file. | |
5397 | ||
51bee8e9 JK |
5398 | 2010-01-14 Jan Kratochvil <[email protected]> |
5399 | ||
5400 | Support PIEs with no symfile_objfile. | |
5401 | * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point. | |
5402 | * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block. | |
5403 | ||
b8040f19 JK |
5404 | 2010-01-14 Jan Kratochvil <[email protected]> |
5405 | ||
5406 | * solib-svr4.c (svr4_relocate_main_executable): Move the static exec | |
5407 | code part to ... | |
5408 | (svr4_static_exec_displacement): ... a new function. | |
5409 | (svr4_exec_displacement): New function. | |
5410 | (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate | |
5411 | new_offsets using alloca now. Remove variable old_chain and changed. | |
5412 | Call objfile_relocate unconditionally now. | |
5413 | ||
eb90ce83 DE |
5414 | 2010-01-14 Doug Evans <[email protected]> |
5415 | ||
5416 | * gdbtypes.c (arch_flags_type): Fix comment. | |
5417 | * gdbtypes.h (arch_composite_type): Fix comment. | |
5418 | ||
bdfed3bc TG |
5419 | 2009-01-14 Tristan Gingold <[email protected]> |
5420 | ||
5421 | * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter. | |
5422 | Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags | |
5423 | to symbol_file_add_from_bfd. Add OSO as separate objfile. | |
5424 | (macho_oso_symfile): Add symfile_flags parameter. Pass it to | |
5425 | macho_add_oso_symfile. | |
5426 | (macho_symfile_read): Pass symfile_flags to macho_oso_symfile. | |
5427 | ||
1596ad23 JB |
5428 | 2010-01-14 Joel Brobecker <[email protected]> |
5429 | ||
5430 | Tru64: Dead threads are never deleted. | |
5431 | * dec-thread.c (dec_thread_ptid_is_alive): New function. | |
5432 | (dec_thread_count_gdb_threads): Fix counter increment. | |
5433 | (dec_thread_add_gdb_thread): Fix *listp increment. | |
5434 | (resync_thread_list): Fix bug in deletion of dead threads that | |
5435 | caused all threads to be deleted, instead of just the dead ones. | |
5436 | ||
be759fcf PM |
5437 | 2010-01-13 Phil Muldoon <[email protected]> |
5438 | ||
5439 | PR python/10705 | |
5440 | ||
5441 | * python/python-internal.h: Add lazy_string_object_type | |
5442 | definition. | |
5443 | (create_lazy_string_object, gdbpy_initialize_lazy_string) | |
5444 | (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define. | |
5445 | * python/py-value.c (valpy_lazy_string): New function. | |
5446 | (convert_value_from_python): Add lazy string conversion. | |
5447 | * python/py-prettyprint.c (pretty_print_one_value): Check if | |
5448 | return is also a lazy string. | |
5449 | (print_string_repr): Add lazy string printing branch. | |
5450 | (print_children): Likewise. | |
5451 | * python/py-lazy-string.c: New file. Implement lazy strings. | |
5452 | * python/python.c (_initialize_python): Call | |
5453 | gdbpy_initialize_lazy_string. | |
5454 | * varobj.c (value_get_print_value): Add lazy string printing | |
5455 | branch. Account for encoding. | |
5456 | * c-lang.c (c_printstr): Account for new encoding argument. If | |
5457 | encoding is NULL, find encoding suited for type, otherwise use | |
5458 | user encoding. | |
5459 | * language.h (language_defn): Add encoding argument. | |
5460 | (LA_PRINT_STRING): Likewise. | |
5461 | * language.c (unk_lang_printstr): Update to reflect new encoding | |
5462 | argument to language_defn. | |
5463 | * ada-lang.h (ada_printstr): Likewise. | |
5464 | * c-lang.h (c_printstr): Likewise. | |
5465 | * p-lang.h (pascal_printstr); | |
5466 | * f-lang.c (f_printstr): Likewise. | |
5467 | * m2-lang.c (m2_printstr): Likewise. | |
5468 | * objc-lang.c (objc_printstr): Likewise. | |
5469 | * p-lang.c (pascal_printstr): Likewise. | |
5470 | * scm-lang.c (scm_printstr): Likewise. | |
5471 | * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for | |
5472 | encoding argument. | |
5473 | * ada-valprint.c (ada_printstr): Likewise. | |
5474 | * f-valprint.c (f_val_print): Likewise | |
5475 | * m2-valprint.c (m2_val_print): Likewise. | |
5476 | * p-valprint.c (pascal_val_print): Likewise. | |
5477 | * expprint.c (print_subexp_standard): Likewise. | |
5478 | * valprint.c (val_print_string): Likewise. | |
5479 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string. | |
5480 | (SUBDIR_PYTHON_SRCS): Likewise. | |
5481 | (py-lazy-string.o): New rule. | |
5482 | ||
1fe72117 | 5483 | 2010-01-13 Doug Evans <[email protected]> |
8eee9c5a DE |
5484 | |
5485 | * mi/mi-main.c (list_available_thread_groups): Avoid "may be used | |
5486 | uninitialized" warning from gcc on local `tree'. | |
5487 | ||
dc146f7c VP |
5488 | 2010-01-13 Vladimir Prus <[email protected]> |
5489 | ||
5490 | Implement core awareness. | |
5491 | ||
5492 | * bcache.c (compare_ints): Remove | |
5493 | (print_percentage): Use compare_positive_ints. | |
5494 | * defs.h (compare_positive_ints): Declare. | |
5495 | * linux-nat.h (struct lin_lwp): New field core. | |
5496 | (linux_nat_core_of_thread_1): Declare. | |
5497 | * linux-nat.c (add_lwp): Init the 'core' field. | |
5498 | (linux_nat_wait_1): Record the core. | |
5499 | (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New. | |
5500 | (linux_nat_add_target): Register the above. | |
5501 | * linux-thread-db.c (update_thread_core): New. | |
5502 | (thread_db_find_new_threads): Update core information for | |
5503 | every thread. | |
5504 | * remote.c (struct private_thread_info): New. | |
5505 | (free_private_thread_info, demand_private_info): New. | |
5506 | (PACKET_qXfer_threads, use_osdata_threads): New. | |
5507 | (struct thread_item, threads_parsing_context | |
5508 | (start_thread, end_thread, thread_attributes) | |
5509 | (thread_children, threads_children, threads_elements): New. | |
5510 | (remote_threads_info): Try qXfer:threads before anything | |
5511 | else. | |
5512 | (remote_protocol_packets): Register qXfer:threads. | |
5513 | (remote_open_1): Init use_osdata_threads. | |
5514 | (struct stop_reply): New field 'core'. | |
5515 | (remote_parse_stop_reply): Parse core number. | |
5516 | (process_stop_reply): Record core number. | |
5517 | (remote_xfer_partial): Handle qXfer:threads. | |
5518 | (remote_core_of_thread): New. | |
5519 | (init_remote_ops): Register remote_core_of_thread. | |
5520 | (_initialize_remote): Register qXfer:read. | |
5521 | * target.c (target_core_of_thread): New | |
5522 | * target.h (enum target_object): New value TARGET_OBJECT_THREADS. | |
5523 | (struct target_ops): New field to_core_of_threads. | |
5524 | (target_core_of_thread): Declare. | |
5525 | * gdbthread.h (struct thread_info): New field private_dtor. | |
5526 | * thread.c (print_thread_info): Report the core. | |
5527 | * ui-out.c (MAX_UI_OUT_LEVELS): Increase. | |
5528 | * utils.c (compare_positive_ints): New. | |
5529 | * features/threads.dtd: New. | |
5530 | * mi/mi-interp.c (mi_on_normal_stop): Report the core. | |
5531 | * mi/mi-main.c (struct collect_cores_data, collect_cores) | |
5532 | (do_nothing, free_vector_of_osdata_items) | |
5533 | (splay_tree_int_comparator, free_splay_tree): New. | |
5534 | (print_one_inferior_data): Implemented printing of selected | |
5535 | inferiors. Collect and print cores. | |
5536 | (output_cores): New. | |
5537 | (mi_cmd_list_thread_groups): Support --recurse. Permit specifying | |
5538 | thread groups together with --available. | |
5539 | ||
d30c5336 JK |
5540 | 2010-01-12 Jan Kratochvil <[email protected]> |
5541 | ||
5542 | * configure: Regenerate (for _STRUCTURED_PROC). | |
5543 | ||
02893727 JB |
5544 | 2010-01-12 Joel Brobecker <[email protected]> |
5545 | ||
5546 | Delete dead function. | |
5547 | * ada-lang.c (extract_string): Delete. No longer used. | |
5548 | ||
46ed2d6f JB |
5549 | 2010-01-12 Joel Brobecker <[email protected]> |
5550 | ||
5551 | Fix -Wunused warning in dec-thread.c. | |
5552 | * dec-thread.c (dec_thread_count_gdb_threads) | |
5553 | (dec_thread_add_gdb_thread): Prevent -Wunused warning. | |
5554 | ||
606b8d1a JB |
5555 | 2010-01-12 Joel Brobecker <[email protected]> |
5556 | ||
5557 | * ada-valprint.c (ada_print_floating): Remove trailing space. | |
5558 | ||
b4ba55a1 JB |
5559 | 2010-01-12 Joel Brobecker <[email protected]> |
5560 | ||
5561 | Add support for DW_AT_GNAT_descriptive_type. | |
5562 | * gdbtypes.h (enum type_specific_kind): New enum. | |
5563 | (struct main_type) [type_specific_field]: New component. | |
5564 | [type_specific]: Add new component "gnat_stuff". | |
5565 | (struct gnat_aux_type): New type. | |
5566 | (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type). | |
5567 | (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type). | |
5568 | (gnat_aux_default, allocate_gnat_aux_type): Add declaration. | |
5569 | (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO) | |
5570 | (TYPE_SPECIFIC_FIELD): New macros. | |
5571 | (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given | |
5572 | type does not hold any cplus-specific data. | |
5573 | (TYPE_RAW_CPLUS_SPECIFIC): New macro. | |
5574 | (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros. | |
5575 | (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has | |
5576 | cplus-specific data. | |
5577 | * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite. | |
5578 | Set new component TYPE_SPECIFIC_FIELD (type). | |
5579 | (gnat_aux_default): New constant. | |
5580 | (allocate_gnat_aux_type): New function. | |
5581 | (init_type): Add initialization the type-specific stuff for | |
5582 | TYPE_CODE_FLT and TYPE_CODE_FUNC types. | |
5583 | (print_gnat_stuff): New function. | |
5584 | (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus- | |
5585 | specific data. Adjust code that prints the contents of the | |
5586 | type-specific union using the TYPE_SPECIFIC_FIELD value. | |
5587 | * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate | |
5588 | the type cplus stuff for Ada types. | |
5589 | (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type): | |
5590 | Error out if these routines are called with an Ada type. | |
5591 | (read_structure_type, read_array_type, read_subrange_type): | |
5592 | Add call to set_descriptive_type. | |
5593 | (set_die_type): Initialize the gnat-specific data if necessary. | |
5594 | (need_gnat_info, die_descriptive_type, set_descriptive_type): | |
5595 | New functions. | |
5596 | * ada-lang.c (decode_constrained_packed_array_type): Use | |
5597 | decode_constrained_packed_array_type instead of doing a standard | |
5598 | lookup to locate a parallel type. | |
5599 | (find_parallel_type_by_descriptive_type): New function. | |
5600 | (ada_find_parallel_type_with_name): New function. | |
5601 | (ada_find_parallel_type): Reimplement using | |
5602 | ada_find_parallel_type_with_name. | |
5603 | * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT | |
5604 | to check if type has a cplus stuff. | |
5605 | * linespec.c (total_number_of_methods): Likewise. | |
5606 | * mdebugread.c (new_type): Likewise. | |
5607 | ||
b0f02ee9 JK |
5608 | 2010-01-11 Jan Kratochvil <[email protected]> |
5609 | ||
5610 | * NEWS: Document the 0b binary number prefix parsing. | |
5611 | ||
b260e109 JK |
5612 | 2010-01-11 Jan Kratochvil <[email protected]> |
5613 | ||
5614 | * objfiles.c (objfile_relocate1): Change the return type to int. | |
5615 | Describe the new return value. Return non-zero if data changed. | |
5616 | (objfile_relocate): New variable changed. Set it. Call | |
5617 | breakpoint_re_set depending on CHANGED. | |
5618 | ||
b5cfddf5 JK |
5619 | 2010-01-11 Jan Kratochvil <[email protected]> |
5620 | ||
5621 | Implement binary numbers parsing. | |
5622 | * c-exp.y (parse_number): New case 'b' and 'B'. | |
5623 | ||
e0ae4240 JK |
5624 | 2010-01-11 Jan Kratochvil <[email protected]> |
5625 | Tristan Gingold <[email protected]> | |
5626 | ||
5627 | * solib.c (info_sharedlibrary_command): Replace | |
5628 | objfile_has_partial_symbols and objfile_has_full_symbols calls by | |
5629 | objfile_has_symbols. | |
5630 | ||
6e0e5977 JB |
5631 | 2010-01-10 Joel Brobecker <[email protected]> |
5632 | ||
5633 | * NEWS: Document the improvements made to the mips-irix port. | |
5634 | ||
7348c5e1 JB |
5635 | 2010-01-09 Joel Brobecker <[email protected]> |
5636 | ||
5637 | Fix the documentation of valprint.c:value_print. | |
5638 | * valprint.c (value_print): Update the function description to | |
5639 | mention that the syntax of the output follows the current_language, | |
5640 | not necessarily C. | |
5641 | ||
567995e1 JK |
5642 | 2010-01-09 Jan Kratochvil <[email protected]> |
5643 | ||
5644 | Fix displacement of separate debug info files. | |
5645 | * objfiles.c (objfile_relocate): Rename to ... | |
5646 | (objfile_relocate1): ... here and make it static. Extend the comment. | |
5647 | (objfile_relocate): New function. | |
5648 | * solib-spu.c (spu_relocate_main_executable): Explicitly check if | |
5649 | SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain. | |
5650 | Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now | |
5651 | allocated using alloca. | |
5652 | * symfile.c (copy_section_addr_info): Remove. | |
5653 | (build_section_addr_info_from_objfile): Make it global. New variables | |
5654 | addr_bit and mask, use them. | |
5655 | * symfile.h (build_section_addr_info_from_objfile): New prototype. | |
5656 | (copy_section_addr_info): Remove. | |
5657 | ||
6d8eadbd JB |
5658 | 2010-01-09 Joel Brobecker <[email protected]> |
5659 | ||
5660 | Signal unwinder for mips-irix N32. | |
5661 | * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and | |
5662 | tramp-frame.h. | |
5663 | (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF) | |
5664 | (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF) | |
8d95cc3b PA |
5665 | (SIGCONTEXT_LO_OFF): New macros. |
5666 | (mips_irix_n32_tramp_frame_init): New function. | |
6d8eadbd JB |
5667 | (mips_irix_n32_tramp_frame): New static constant. |
5668 | (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder. | |
5669 | ||
27087a3d JB |
5670 | 2010-01-09 Joel Brobecker <[email protected]> |
5671 | ||
5672 | Breakpoint in shared library does not work on mips-irix. | |
5673 | * procfs.c: #include "observer.h". | |
5674 | (procfs_inferior_created): New function, moving here the code | |
5675 | which unsets the syssgi syscall-exit notifications. | |
5676 | (procfs_create_inferior): Remove the code which unsets the syssgi | |
5677 | syscall-exit notifications. It is too early to do this here. | |
5678 | (_initialize_procfs): Attach the procfs_inferior_created observer. | |
5679 | ||
f08877ba JB |
5680 | 2010-01-09 Joel Brobecker <[email protected]> |
5681 | ||
5682 | Wrong return convention for arrays (mips-irix). | |
5683 | * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is | |
5684 | 128 bits or smaller are returned the same way as structs | |
5685 | and unions of the the same size. | |
5686 | ||
e4b97d48 JB |
5687 | 2010-01-09 Joel Brobecker <[email protected]> |
5688 | ||
5689 | Cannot set the PC on mips-irix. | |
5690 | * irix5-nat.c (fill_gregset): Check regno against the raw PC | |
5691 | register number, no the cooked one. | |
5692 | ||
11377e68 JB |
5693 | 2010-01-09 Joel Brobecker <[email protected]> |
5694 | ||
5695 | Error while loading core file on mips-irix. | |
5696 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing | |
5697 | if debugging from a core file. | |
5698 | ||
b2391021 JB |
5699 | 2010-01-09 Joel Brobecker <[email protected]> |
5700 | ||
5701 | GDB hangs when attaching to process on mips-irix. | |
5702 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if | |
5703 | attaching to a process. | |
5704 | ||
f2ec0ecf JB |
5705 | 2010-01-09 Joel Brobecker <[email protected]> |
5706 | ||
5707 | Use the correct breakpoint instruction on mips-irix. | |
5708 | * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable | |
5709 | containing the correct breakpoint instruction to use on mips-irix. | |
5710 | Use it when the osabi is GDB_OSABI_IRIX. | |
5711 | ||
3c95f01c JB |
5712 | 2010-01-09 Joel Brobecker <[email protected]> |
5713 | ||
5714 | -Wunused warning in procfs.c (mips-irix only). | |
5715 | * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them | |
5716 | throughout instead of using praddset and prdelset respectively. | |
5717 | ||
4b7703ad JB |
5718 | 2010-01-09 Joel Brobecker <[email protected]> |
5719 | ||
5720 | GDB crash while stepping into function. | |
5721 | * infrun.c (handle_inferior_event): Refetch the current frame | |
5722 | after handling what.main_action, in case that pointer became | |
5723 | dangling. | |
5724 | ||
12c89474 JB |
5725 | 2010-01-09 Joel Brobecker <[email protected]> |
5726 | ||
5727 | Fix build failure of solaris-hosted cross debuggers. | |
5728 | * ada-valprint.c, parse.c: Include defs.h before including ctype.h. | |
5729 | ||
1a3fd262 | 5730 | 2010-01-09 Daniel Gutson <[email protected]> |
4c490650 JB |
5731 | |
5732 | Fix build failure on sparc-solaris. | |
5733 | * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus. | |
5734 | ||
75242ef4 JK |
5735 | 2010-01-08 Jan Kratochvil <[email protected]> |
5736 | ||
5737 | Move some symfile code into subroutines. | |
5738 | * symfile.h (relative_addr_info_to_section_offsets) | |
5739 | (addr_info_make_relative): New prototypes. | |
5740 | * symfile.c (default_symfile_offsets): Move a part to ... | |
5741 | (relative_addr_info_to_section_offsets): ... this new function. | |
5742 | (default_symfile_offsets): Call it. | |
5743 | (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move | |
5744 | this part to ... | |
5745 | (addr_info_make_relative): ... this new function. | |
5746 | ||
268a4a75 JK |
5747 | 2010-01-08 Jan Kratochvil <[email protected]> |
5748 | ||
5749 | Add from_tty to solib_create_inferior_hook. | |
5750 | * infcmd.c (post_create_inferior): Move solib_add after | |
5751 | solib_create_inferior_hook. Pass from_tty to | |
5752 | solib_create_inferior_hook. Call solib_add and SOLIB_ADD with | |
5753 | 0 from_tty and comment why. | |
5754 | * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0. | |
5755 | * linux-nat.c (linux_child_follow_fork): Likewise. | |
5756 | * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise. | |
5757 | * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter | |
5758 | from_tty. | |
5759 | * solib-frv.c (frv_solib_create_inferior_hook): Likewise. | |
5760 | * solib-irix.c (irix_solib_create_inferior_hook): Likewise. | |
5761 | * solib-null.c (null_solib_create_inferior_hook): Likewise. | |
5762 | * solib-osf.c (osf_solib_create_inferior_hook): Likewise. | |
5763 | * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise. | |
5764 | * solib-som.c (som_solib_create_inferior_hook): Likewise. | |
5765 | * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty. | |
5766 | Pass it to svr4_so_ops.solib_create_inferior_hook. | |
5767 | * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter | |
5768 | from_tty. | |
5769 | * solib-svr4.c (enable_break): New parameter from_tty. Pass it to | |
5770 | solib_add. | |
5771 | (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to | |
5772 | enable_break. | |
5773 | * solib-target.c (solib_target_solib_create_inferior_hook): New | |
5774 | parameter from_tty. | |
5775 | * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass | |
5776 | it to ops->solib_create_inferior_hook. | |
5777 | (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook. | |
5778 | Move solib_add after solib_create_inferior_hook, call it now with | |
5779 | from_tty as 0. New comment there. | |
5780 | * solib.h (solib_create_inferior_hook): New parameter from_tty. | |
5781 | * solist.h (struct target_so_ops <solib_create_inferior_hook>): | |
5782 | Likewise. | |
5783 | ||
cf00dfa7 VP |
5784 | 2010-01-08 Vladimir Prus <[email protected]> |
5785 | ||
5786 | Fix multiexec race. | |
5787 | * infrun.c (handle_inferior_event): Use get_thread_regcache | |
5788 | with events ptid, not get_current_regcache. | |
5789 | ||
f91e5ac3 JB |
5790 | 2009-01-08 Joel Brobecker <[email protected]> |
5791 | ||
5792 | GDB crash with empty executable name (MinGW). | |
5793 | * source.c (openp): Add assert that parameter string is not NULL. | |
5794 | if parameter string is an empty string, then return with a failure | |
5795 | immediately. | |
5796 | ||
92b9ce5b JB |
5797 | 2009-01-08 Joel Brobecker <[email protected]> |
5798 | ||
5799 | Get rid of support for VAX Floats. | |
5800 | * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
5801 | (ada_vax_float_print_function): Delete. | |
5802 | * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
5803 | (ada_vax_float_print_function): Delete. | |
5804 | * ada-typeprint.c (print_vax_floating_point_type): Delete. | |
5805 | (ada_print_type): Remove support for VAX floats. | |
5806 | * ada-valprint.c (ada_val_print_1): Remove support for VAX floats. | |
5807 | ||
268a4a75 | 5808 | 2010-01-08 Jan Kratochvil <[email protected]> |
d24d8548 JK |
5809 | |
5810 | * stabsread.c (read_args): Handle zero arguments. | |
5811 | ||
f0f20949 JB |
5812 | 2009-01-08 Joel Brobecker <[email protected]> |
5813 | ||
5814 | Cannot find in-tree libiconv.a after reconfigure. | |
5815 | * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a | |
5816 | that we can use, then cache the path to this archive. | |
5817 | * configure: Regenerate. | |
5818 | ||
6b6218c5 SS |
5819 | 2010-01-07 Stan Shebs <[email protected]> |
5820 | ||
35b1e5cc SS |
5821 | Make tracepoint operations go through target vector. |
5822 | * target.h (enum trace_find_type): New enum. | |
5823 | (struct target_ops): New fields to_trace_init, | |
5824 | to_download_tracepoint, to_download_trace_state_variable, | |
5825 | to_trace_set_readonly_regions, to_trace_start, to_get_trace_status, | |
5826 | to_trace_stop, to_trace_find, to_get_trace_state_variable_value, | |
5827 | to_set_disconnected_tracing. | |
5828 | (target_trace_init): New macro. | |
5829 | (target_download_tracepoint): New macro. | |
5830 | (target_download_trace_state_variable): New macro. | |
5831 | (target_trace_start): New macro. | |
5832 | (target_trace_set_readonly_regions): New macro. | |
5833 | (target_get_trace_status): New macro. | |
5834 | (target_trace_stop): New macro. | |
5835 | (target_trace_find): New macro. | |
5836 | (target_get_trace_state_variable_value): New macro. | |
5837 | (target_set_disconnected_tracing): New macro. | |
5838 | * target.c (update_current_target): Inherit and set defaults for | |
5839 | tracepoint operations. | |
5840 | * tracepoint.c (default_collect): Make globally visible. | |
5841 | (target_is_remote): Remove, along with all calls. | |
5842 | (tvariables_info): Call target_get_trace_state_variable_value. | |
5843 | (remote_set_transparent_ranges): Remove. | |
5844 | (trace_start_command): Call target_trace_init, | |
5845 | target_download_tracepoint, etc. | |
5846 | (download_tracepoint): Remove. | |
5847 | (trace_stop_command): Simplify. | |
5848 | (stop_tracing): Call target_trace_stop. | |
5849 | (get_trace_status): Call target_get_trace_status. | |
5850 | (trace_status_command): Add case for targets that cannot trace. | |
5851 | (finish_tfind_command): Change to take numerical arguments, call | |
5852 | target_trace_find. | |
5853 | (trace_find_command): Update call to finish_tfind_command. | |
5854 | (trace_find_pc_command): Ditto. | |
5855 | (trace_find_tracepoint_command): Ditto. | |
5856 | (trace_find_line_command): Ditto. | |
5857 | (trace_find_range_command): Ditto. | |
5858 | (trace_find_outside_command): Ditto. | |
5859 | (set_disconnected_tracing_value): Call | |
5860 | target_set_disconnected_tracing. | |
5861 | * remote.c: Add protocol encoding bits from tracepoint.c. | |
5862 | (trace_error): Move from tracepoint.c. | |
5863 | (remote_get_noisy_reply): Ditto. | |
5864 | (free_actions_list_cleanup_wrapper): Ditto. | |
5865 | (free_actions_list): Ditto. | |
5866 | (remote_trace_init): New function. | |
5867 | (remote_download_tracepoint): New function. | |
5868 | (remote_download_trace_state_variable): New function. | |
5869 | (remote_trace_set_readonly_regions): New function. | |
5870 | (remote_trace_start): New function. | |
5871 | (remote_get_trace_status): New function. | |
5872 | (remote_trace_stop): New function. | |
5873 | (remote_trace_find): New function. | |
5874 | (remote_download_trace_state_variable): New function. | |
5875 | (remote_set_disconnected_tracing): New function. | |
5876 | (init_remote_ops): Add tracepoint operations. | |
5877 | ||
6b6218c5 SS |
5878 | * tracepoint.c (trace_dump_command): Don't decr_pc_after_break. |
5879 | ||
089b4803 TG |
5880 | 2010-01-07 Tristan Gingold <[email protected]> |
5881 | ||
5882 | * symfile.c (build_section_addr_info_from_objfile): New function. | |
5883 | (symbol_file_add_separate): Don't use offsets from objfile but | |
5884 | built an addr info. | |
5885 | ||
d5551862 SS |
5886 | 2010-01-06 Stan Shebs <[email protected]> |
5887 | ||
5888 | Support disconnected tracing. | |
5889 | * infcmd.c (detach_command): Ask whether to stop tracing. | |
5890 | * cli/cli-cmds.c (quit_command): Ditto. | |
5891 | * breakpoint.h (struct breakpoint): New field number_on_target. | |
5892 | * breakpoint.c (create_tracepoint_from_upload): New function. | |
5893 | (get_tracepoint_by_number_on_target): New function. | |
5894 | * remote.c (struct remote): New field disconnected_tracing. | |
5895 | (remote_disconnected_tracing_feature): New function. | |
5896 | (remote_protocol_features): Add DisconnectedTracing. | |
5897 | (struct uploaded_tp): New struct. | |
5898 | (uploaded_tps): New global. | |
5899 | (get_uploaded_tp): New function. | |
5900 | (find_matching_tracepoint): New function. | |
5901 | (remote_get_tracing_state): New function. | |
5902 | (remote_start_remote): Call it. | |
5903 | * tracepoint.c (disconnected_tracing): New global. | |
5904 | (trace_start_command): Initialize number_on_target. | |
5905 | (stop_tracing): New function, split out from... | |
5906 | (trace_stop_command): Call stop_tracing. | |
5907 | (get_trace_status): New function, split out from... | |
5908 | (trace_status_command): Call get_trace_status, add info on | |
5909 | disconnection behavior. | |
5910 | (disconnect_or_stop_tracing): New function. | |
5911 | (finish_tfind_command): Translate from number on target. | |
5912 | (trace_find_tracepoint_command): Translate to number on target. | |
5913 | (send_disconnected_tracing_value): New function. | |
5914 | (set_disconnected_tracing): New function. | |
5915 | (_initialize_tracepoint): Add disconnected-tracing variable. | |
5916 | * NEWS: Mention disconnected tracing. | |
5917 | ||
15d123c9 TG |
5918 | 2010-01-06 Tristan Gingold <[email protected]> |
5919 | ||
5920 | * symtab.c (lookup_global_symbol_from_objfile): Rename objfile | |
5921 | parameter to main_objfile. Iterate on all separate debug objfiles. | |
5922 | * symfile.h (symbol_file_add_separate) | |
5923 | (find_separate_debug_file_by_debuglink): Remove parameter names. | |
5924 | * symfile.c (symbol_file_add_separate): Use add_separate_objfile. | |
5925 | (reread_symbols): Use free_objfile_separate_debug. | |
5926 | * objfiles.h (struct objfile): Add separate_debug_objfile_link. | |
5927 | Adjust comment. | |
5928 | (objfile_separate_debug_iterate, add_separate_debug_objfile) | |
5929 | (free_objfile_separate_debug): New prototypes. | |
5930 | * objfiles.c (objfile_separate_debug_iterate): New function. | |
5931 | (add_separate_debug_objfile, free_objfile_separate_debug): New | |
5932 | functions. | |
5933 | (free_objfile): Use free_objfile_separate_debug. Adjust for | |
5934 | multiple separate debug objfile. | |
5935 | (objfile_has_symbols): Adjust comment. Iterate on all separate | |
5936 | debug objfiles. | |
5937 | * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate | |
5938 | debug objfile. | |
5939 | (lookup_minimal_symbol_text): Ditto. | |
5940 | (lookup_minimal_symbol_by_pc_name): Ditto. | |
5941 | (lookup_minimal_symbol_solib_trampoline): Ditto. | |
5942 | (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate | |
5943 | debug objfiles. | |
5944 | ||
7a697b8d SS |
5945 | 2010-01-05 Stan Shebs <[email protected]> |
5946 | ||
5947 | Add fast tracepoints. | |
5948 | * arch-utils.h (default_fast_tracepoint_valid_at): Declare. | |
5949 | * arch-utils.c (default_fast_tracepoint_valid_at): New function. | |
5950 | * breakpoint.h (enum bptype): Add bp_fast_tracepoint. | |
5951 | * breakpoint.c (tracepoint_type): New function. | |
5952 | (ALL_TRACEPOINTS): Use it. | |
5953 | (should_be_inserted): Ditto. | |
5954 | (bpstat_check_location): Ditto. | |
5955 | (print_one_breakpoint_location): Ditto. | |
5956 | (user_settable_breakpoint): Ditto. | |
5957 | (set_breakpoint_location_function): Ditto. | |
5958 | (disable_breakpoints_in_shlibs): Ditto. | |
5959 | (delete_trace_command): Ditto. | |
5960 | (print_it_typical): Add bp_fast_tracepoint case. | |
5961 | (bpstat_what): Ditto. | |
5962 | (print_one_breakpoint_location): Ditto. | |
5963 | (allocate_bp_location): Ditto. | |
5964 | (mention): Ditto. | |
5965 | (breakpoint_re_set_one): Ditto. | |
5966 | (disable_command): Ditto. | |
5967 | (enable_command): Ditto. | |
5968 | (check_fast_tracepoint_sals): New function. | |
5969 | (break_command_really): Call it. | |
5970 | (ftrace_command): New function. | |
5971 | (_initialize_breakpoint): Add ftrace command. | |
5972 | * gdbarch.sh (fast_tracepoint_valid_at): New. | |
5973 | * gdbarch.h, gdbarch.c: Regenerate. | |
5974 | * i386-tdep.c (i386_fast_tracepoint_valid_at): New function. | |
5975 | (i386_gdbarch_init): Use it. | |
5976 | * remote.c (struct remote_state): New field fast_tracepoints. | |
5977 | (PACKET_FastTracepoints): New packet config type. | |
5978 | (remote_fast_tracepoint_feature): New function. | |
5979 | (remote_protocol_features): Add FastTracepoints. | |
5980 | (remote_supports_fast_tracepoints): New function. | |
5981 | (_initialize_remote): Add FastTracepoints. | |
5982 | * tracepoint.c (download_tracepoint): Add fast tracepoint option. | |
5983 | * NEWS: Mention fast tracepoints. | |
5984 | ||
737a160e JB |
5985 | 2010-01-06 Joel Brobecker <[email protected]> |
5986 | ||
5987 | * gdb-gdb.py: New file. | |
5988 | ||
ce6cca6d MS |
5989 | 2010-01-05 Michael Snyder <[email protected]> |
5990 | ||
5991 | * infrun.c (handle_inferior_event): Fix typo in comment. | |
5992 | ||
0d15807d JK |
5993 | 2010-01-05 Jan Kratochvil <[email protected]> |
5994 | ||
5995 | * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional. | |
5996 | ||
7803799a UW |
5997 | 2010-01-04 Ulrich Weigand <[email protected]> |
5998 | ||
c8d5aac9 | 5999 | * features/Makefile (WHICH): Add s390-linux32, s390-linux64, |
7803799a UW |
6000 | and s390x-linux64. |
6001 | (s390-linux32-expedite): Define. | |
6002 | (s390-linux64-expedite): Define. | |
6003 | (s390x-linux64-expedite): Define. | |
6004 | * features/s390-acr.xml: New file. | |
6005 | * features/s390-fpr.xml: New file. | |
6006 | * features/s390-core32.xml: New file. | |
6007 | * features/s390-core64.xml: New file. | |
6008 | * features/s390x-core64.xml: New file. | |
6009 | * features/s390-linux32.xml: New file. | |
6010 | * features/s390-linux64.xml: New file. | |
6011 | * features/s390x-linux64.xml: New file. | |
6012 | * features/s390-linux32.c: New generated file. | |
6013 | * features/s390-linux64.c: New generated file. | |
6014 | * features/s390x-linux64.c: New generated file. | |
6015 | ||
6016 | * regformats/s390-linux32.dat: New generated file. | |
6017 | * regformats/s390-linux64.dat: New generated file. | |
6018 | * regformats/s390x-linux64.dat: New generated file. | |
6019 | * regformats/reg-s390.dat: Remove. | |
6020 | * regformats/reg-s390x.dat: Remove. | |
6021 | ||
6022 | * s390-nat.c: Include "auxv.h" and <elf.h>. | |
6023 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
6024 | (s390_target_wordsize): New function. | |
6025 | (s390_auxv_parse): Likewise. | |
6026 | (s390_get_hwcap): Likewise. | |
6027 | (s390_read_description): Likewise. | |
6028 | (_initialize_s390_nat): Install s390_auxv_parse and | |
6029 | s390_read_description. | |
6030 | ||
6031 | * s390-tdep.c: Include "features/s390-linux32.c", | |
6032 | "features/s390-linux64.c", and "features/s390x-linux64.c". | |
6033 | (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum. | |
6034 | (s390_register_call_saved): New function. | |
6035 | (s390_register_name): Remove. | |
6036 | (s390_register_type): Remove. | |
6037 | (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums. | |
6038 | (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs. | |
6039 | (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI. | |
6040 | (s390_pseudo_register_name): New function. | |
6041 | (s390_pseudo_register_type): New function. | |
6042 | (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases. | |
6043 | Handle full GPR pesudos and varying pseudo register numbers. | |
6044 | (s390_pseudo_register_write): Likewise | |
6045 | (s390x_pseudo_register_read): Remove. | |
6046 | (s390x_pseudo_register_write): Likewise. | |
6047 | (s390_register_group): Remove. | |
6048 | (s390_pseudo_register_group): New function. | |
6049 | (s390_regmap_gregset): Add GPR upper halves. | |
6050 | (s390x_regmap_gregset): Likewise. | |
6051 | (s390_regmap_fpregset): Likewise. | |
6052 | (s390_regmap_upper): New global variable. | |
6053 | (s390_upper_regset): New global variable. | |
6054 | (s390_upper_regset_sections): New global variable. | |
6055 | (s390_regset_from_core_section): Handle GPR upper halves. | |
6056 | (s390_core_read_description): New function. | |
6057 | (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered | |
6058 | register information. Handle varying pseudo register numbers. | |
6059 | (s390_backchain_frame_unwind_cache): Likewise. | |
6060 | (s390_frame_prev_register): Unwind full GPRs to show lower halves. | |
6061 | (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers. | |
6062 | (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as | |
6063 | PC and CC pseudos. Unwind upper halves and full GPRs as appropriate. | |
6064 | Handle varying pseudo register numbers. | |
6065 | (s390_unwind_pc): Handle varying pseudo register numbers. | |
6066 | (s390_dwarf2_prev_register): New function. | |
6067 | (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered | |
6068 | register information. Handle varying pseudo register numbers. | |
6069 | Install s390_dwarf2_prev_register to unwind full GPRs. | |
6070 | (s390_gdbarch_init): Handle target descriptions. Assign varying | |
6071 | pseudo register numbers. Install s390_adjust_frame_regnum. | |
6072 | (_initialize_s390_tdep): Initialize target descriptions. | |
6073 | ||
6074 | * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define. | |
6075 | (S390_NUM_REGS): Redefine to include upper half registers. | |
6076 | (S390_PC_REGNUM, S390_CC_REGNUM): Remove. | |
6077 | (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise. | |
6078 | (tdesc_s390_linux32): Add declaration. | |
6079 | (tdesc_s390_linux64): Likewise. | |
6080 | (tdesc_s390x_linux64): Likewise. | |
6081 | ||
1b1818e4 UW |
6082 | 2010-01-04 Ulrich Weigand <[email protected]> |
6083 | ||
6084 | * regset.h (struct core_regset_section): Add HUMAN_NAME. | |
6085 | * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME. | |
6086 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
6087 | (ppc_linux_vmx_regset_sections): Likewise. | |
6088 | (ppc_linux_fp_regset_sections): Likewise. | |
6089 | ||
6090 | * corelow.c (get_core_register_section): Constify arguments. | |
6091 | (get_core_registers): Use gdbarch_core_regset_sections instead | |
6092 | of hard-coded platform-specific register section names. | |
6093 | ||
dcbf108f UW |
6094 | 2010-01-04 Ulrich Weigand <[email protected]> |
6095 | ||
6096 | * dwarf2loc.c (read_pieced_value): If a piece occupies part of | |
b3f41522 | 6097 | a register, assume the least-significant part is used. |
dcbf108f UW |
6098 | (write_pieced_value): Likewise. |
6099 | ||
704e9165 UW |
6100 | 2010-01-04 Ulrich Weigand <[email protected]> |
6101 | ||
6102 | * printcmd.c: Include "arch-utils.h". | |
6103 | (do_one_display): Re-parse expression if current architecture changed. | |
6104 | ||
c54eabfa JK |
6105 | 2010-01-03 Jan Kratochvil <[email protected]> |
6106 | Joel Brobecker <[email protected]> | |
6107 | ||
6108 | * gdbtypes.c (check_typedef): New comment on type length. | |
6109 | * value.c (allocate_value_lazy): Remove the unused atype variable. New | |
6110 | comment on type length. | |
6111 | (value_primitive_field): Keep the original TYPE value, new comment. | |
6112 | ||
50cb2941 JK |
6113 | 2010-01-01 Jan Kratochvil <[email protected]> |
6114 | ||
6115 | * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as | |
6116 | p_start. Change != comparisons to > and < comparisons. | |
6117 | ||
be66db07 JK |
6118 | 2010-01-01 Jan Kratochvil <[email protected]> |
6119 | ||
6120 | * cli/cli-script.c (process_next_line): Check P2 overrun. | |
6121 | ||
abd775ce JB |
6122 | 2009-01-01 Joel Brobecker <[email protected]> |
6123 | ||
6124 | Update the copyright hearder to add year 2010 for most GDB files. | |
6125 | ||
6479260d JB |
6126 | 2009-01-01 Joel Brobecker <[email protected]> |
6127 | ||
6128 | Fix build failure in inf-ptrace.c. | |
6129 | * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo. | |
6130 | ||
4a70f654 JB |
6131 | 2010-01-01 Joel Brobecker <[email protected]> |
6132 | ||
6133 | * top.c (print_gdb_version): Update copyright year. | |
6134 | ||
b9ee2233 JB |
6135 | 2010-01-01 Joel Brobecker <[email protected]> |
6136 | ||
6137 | Fix break *FUN'address thread NUM. | |
6138 | * ada-lex.l (task): Expand rule to also match the thread keyword. | |
6139 | ||
70575d34 JB |
6140 | 2010-01-01 Joel Brobecker <[email protected]> |
6141 | ||
6142 | Fix break *FUN'address task NUM. | |
6143 | * ada-lex.l (task): New rule. | |
6144 | * ada-lang.c (valid_task_id): Make sure the Ada task list has | |
6145 | been built before using it. | |
6146 | ||
e1e4d4a4 | 6147 | For older changes see ChangeLog-2009. |
c906108c SS |
6148 | \f |
6149 | Local Variables: | |
6150 | mode: change-log | |
6151 | left-margin: 8 | |
6152 | fill-column: 74 | |
6153 | version-control: never | |
57da7796 | 6154 | coding: utf-8 |
c906108c | 6155 | End: |