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