1 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
4 (start_event_loop): Use TRY_CATCH instead of catch_errors.
5 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
6 * top.c (gdb_readline_wrapper): Adjust.
7 * tui/tui-interp.c (tui_command_loop):
8 (_initialize_tui_interp): Don't install it.
10 2011-08-04 Pedro Alves <pedro@codesourcery.com>
12 * ui-out.h (uiout): Rename to ...
13 (current_uiout): ... this.
14 * ui-out.c (uiout): Rename to ...
15 (current_uiout): ... this.
16 * ada-lang.c (print_it_exception, print_one_exception)
17 (print_mention_exception): Adjust.
18 * breakpoint.c (watchpoint_check): Adjust.
19 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
20 (default_collect_info, watchpoints_info, print_one_catch_fork)
21 (print_one_catch_vfork, print_one_catch_syscall)
22 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
23 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
24 (print_it_watchpoint, print_mention_watchpoint)
25 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
26 (print_it_exception_catchpoint, print_one_exception_catchpoint)
27 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
28 (bkpt_print_mention, momentary_bkpt_print_it)
29 (tracepoint_print_mention, update_static_tracepoint)
30 (tracepoints_info, save_breakpoints): Adjust.
31 * cli-out.c (field_separator): Adjust.
32 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
33 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
34 * frame.c (get_current_frame): Adjust.
35 * infcmd.c (run_command_1, print_return_value): Adjust.
36 * inferior.c (inferior_command, info_inferiors_command): Adjust.
37 * infrun.c (print_end_stepping_range_reason): Adjust.
38 (print_signal_exited_reason, print_exited_reason): Adjust.
39 (print_signal_received_reason, print_no_history_reason): Adjust.
40 * interps.c (interp_set): Adjust.
41 * osdata.c (info_osdata_command): Adjust.
42 * progspace.c (maintenance_info_program_spaces_command): Adjust.
43 * remote-fileio.c (remote_fileio_request): Adjust.
44 * remote.c (show_remote_cmd): Adjust.
45 * solib.c (info_sharedlibrary_command): Adjust.
46 * source.c (print_source_lines_base): Adjust.
47 * stack.c (print_stack_frame): Adjust.
48 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
49 * symfile-mem.c (add_vsyscall_page): Adjust.
50 * symfile.c (load_progress, generic_load)
51 (print_transfer_performance): Adjust.
52 * thread.c (info_threads_command, restore_selected_frame)
53 (thread_command): Adjust.
54 * top.c (make_cleanup_restore_ui_file): Adjust.
55 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
56 (print_one_static_tracepoint_marker): Adjust.
57 * cli/cli-cmds.c (print_disassembly): Adjust.
58 * cli/cli-decode.c (print_doc_line): Adjust.
59 * cli/cli-interp.c (safe_execute_command): Adjust.
60 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
61 (handle_redirections): Adjust.
62 * cli/cli-script.c (show_user_1): Adjust.
63 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
64 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
65 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
66 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
67 (mi_cmd_env_dir): Adjust.
68 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
69 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
70 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
71 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
72 (list_args_or_locals): Adjust.
73 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
74 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
75 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
76 (mi_cmd_var_list_children, mi_cmd_var_info_type)
77 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
78 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
79 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
80 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
81 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
82 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
83 (list_available_thread_groups, mi_cmd_list_thread_groups)
84 (mi_cmd_data_list_register_names)
85 (mi_cmd_data_list_changed_registers)
86 (mi_cmd_data_list_register_values, get_register)
87 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
88 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
89 (mi_cmd_list_target_features, mi_cmd_add_inferior)
90 (mi_execute_command, mi_load_progress): Adjust.
91 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
92 * python/py-auto-load.c (print_script, info_auto_load_scripts):
94 * python/py-breakpoint.c (bppy_get_commands): Adjust.
95 * tui/tui-interp.c (tui_command_loop): Adjust.
96 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
98 2011-08-04 Pedro Alves <pedro@codesourcery.com>
100 * exceptions.c (struct catcher): Remove saved_uiout field.
101 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
102 no longer save/resvore the global ui_out builder.
103 (catch_exceptions_with_msg): Save/override/restore the global
104 ui_out builder manually instead of relying on TRY_CATCH to do it.
105 (catch_errors): Save/restore the global ui_out builder manually
106 instead of relying on TRY_CATCH to do it.
107 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
110 * cli/cli-interp.c (safe_execute_command): Save/override/restore
111 the global ui_out builder manually instead of relying on TRY_CATCH
114 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
116 * breakpoint.c (update_global_location_list): Ensure
117 invariant 'first loc marked not duplicated and inserted,
118 following locs marked duplicated/not inserted' is respected
119 for multiple locations at the same address.
120 (unduplicated_should_be_inserted) New function.
121 (swap_insertion) New function.
123 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
125 * stack.c (print_frame_arguments_choices): Comment typo fix.
127 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
130 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
131 * breakpoint.c (insert_bp_location): Remove disabled_breaks
132 argument. Update callers.
134 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
137 * doublest.c (convert_doublest_to_floatformat): Pass correct
138 mantissa length to put_field.
140 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
142 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
143 exception_print code path.
144 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
145 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
146 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
148 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
151 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
152 Remove, merge them into ...
153 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
154 variable args and its initialization.
155 (struct print_args_args, print_args_stub): Remove, merge them into
157 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
159 (do_gdb_disassembly): ... here. Remove variable args and its
161 (print_frame): Remove variable args and its initialization, new
162 variable gdbarch and numargs (from print_args_stub), inline here
163 print_args_stub with a TRY_CATCH.
164 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
166 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
167 New variable e, remove variable btargs and its initialization.
169 2011-08-01 Tristan Gingold <gingold@adacore.com>
171 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
173 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
175 * breakpoint.c (insert_bp_location): Document return value.
176 (insert_breakpoint_locations): Fix documentation.
177 (remove_breakpoints): Add documentation.
179 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
181 * breakpoint.c (insert_bp_location): Remove disabled_breaks
182 argument. Update callers.
184 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
186 * stack.c (print_frame_info): Comment typo fix.
188 2011-07-29 Sterling Augustine <saugustine@google.com>
190 * MAINTAINERS (Write After Approval): Add myself to the list.
192 2011-07-29 Tom Tromey <tromey@redhat.com>
194 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
195 (library_list_start_segment): Update.
196 (library_list_start_section): Update.
198 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
200 * varobj.c (value_get_print_value): Move hint check later into the
201 function. Comment function. Free thevalue before reusing it.
203 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
204 Pedro Alves <pedro@codesourcery.com>
206 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
208 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
209 Assert the result kind.
210 * value.h (value_one): Remove parameter lv.
212 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
214 Fix crash on lval_computed values.
215 * valops.c (value_zero): Use not_lval for lval_computed.
217 2011-07-27 Tom Tromey <tromey@redhat.com>
219 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
220 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
222 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
224 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
225 "ptype" by their typedefs difference.
227 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
229 * dwarf2expr.c (ctx_no_read_reg): New function.
230 * dwarf2expr.h (ctx_no_read_reg): New declaration.
231 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
232 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
233 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
235 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
237 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
238 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
240 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
241 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
242 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
243 (ctx_no_get_base_type): Move the functions here.
244 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
245 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
246 (ctx_no_get_base_type): New declarations.
248 2011-07-27 Tom Tromey <tromey@redhat.com>
250 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
252 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
253 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
255 2011-07-26 Sterling Augustine <saugustine@google.com>
257 * cli/cli-dump.c (dump_binary_file): Change parameter type to
259 (dump_bfd_file): Likewise.
261 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
263 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
264 (remote_hw_watchpoint_length_limit): New variable.
265 (_initialize_remote) add set,show cmds for this new variable.
266 * gdb.texinfo: document these new commands.
267 * NEWS: Mention these new commands.
269 2011-07-26 Pedro Alves <pedro@codesourcery.com>
271 * breakpoint.c (works_in_software_mode_watchpoint): Also return
272 true for software watchpoints.
274 2011-07-26 Joel Brobecker <brobecker@adacore.com>
278 2011-07-26 Tom Tromey <tromey@redhat.com>
280 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
281 * dwarf2read.c (read_indirect_string_at_offset): New function.
282 (read_indirect_string): Use it.
283 (dwarf_decode_macro_bytes): New function, taken from
284 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
285 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
286 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
288 (struct dwarf2_per_objfile) <macro>: New field.
289 (dwarf2_elf_names): Add .debug_macro.
290 (dwarf2_macros_too_long_complaint): Add 'section' argument.
291 (dwarf2_locate_sections): Handle new section.
292 (read_file_scope): Handle DW_AT_GNU_macros.
293 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
295 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
297 * NEWS: Mention dcache configuration.
298 * dcache.c (dcache_set_list, dcache_show_list): New variables.
299 (dcache_size, dcache_line_size): New variables.
300 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
301 (struct dcache_block): Make it expandable.
302 (struct dcache_struct): New field.
303 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
304 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
305 (dcache_poke_byte, dcache_print_line): Adjust.
306 (set_dcache_size, set_dcache_line_size): New functions.
307 (set_dcache_command, show_dcache_command): New functions.
308 (_initialize_dcache): Add new commands.
310 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
312 * progspace.h (struct program_space): Add solib_add_generation.
313 * infcmd.c (post_create_inferior): Only call solib_add if not
315 * solib.c (solib_add): Increment solib_add_generation.
317 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
319 Fix implicit pointer offsets.
320 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
323 2011-07-25 Tom Tromey <tromey@redhat.com>
325 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
327 (ada_exception_sal): Make 'ops' const.
328 (ada_decode_exception_location): Likewise.
329 (ada_decode_assert_location): Likewise.
330 (catch_assert_command): Update.
331 (catch_ada_exception_command): Update.
332 (create_ada_exception_catchpoint): Make 'ops' const.
333 * breakpoint.c (set_raw_breakpoint_without_location)
334 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
336 (create_internal_breakpoint): Update.
337 (init_raw_breakpoint_without_location): Make 'ops' const.
338 (init_raw_breakpoint, init_catchpoint)
339 (create_fork_vfork_event_catchpoint)
340 (create_syscall_event_catchpoint, init_breakpoint_sal)
341 (create_breakpoint_sal, create_breakpoints_sal)
342 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
343 * breakpoint.h (struct breakpoint) <ops>: Now const.
344 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
347 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
349 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
351 2011-07-25 Pedro Alves <pedro@codesourcery.com>
353 * breakpoint.h (print_recreate_thread): Declare.
354 (struct breakpoint): Move step_count, pass_count,
355 number_on_target, static_trace_marker_id,
356 static_trace_marker_id_idx ...
357 (struct tracepoint): ... to this new struct.
358 (get_tracepoint, get_tracepoint_by_number_on_target)
359 (get_tracepoint_by_number): Change return type to struct
361 * breakpoint.c (is_tracepoint_type): New, factored out from
363 (is_tracepoint): Adjust.
364 (print_one_breakpoint_location): Cast to struct tracepoint as
365 necessary, and adjust.
366 (print_recreate_catch_fork, print_recreate_catch_vfork)
367 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
368 print_recreate_thread.
369 (init_breakpoint_sal): New, factored out from
370 create_breakpoint_sal.
371 (create_breakpoint_sal): Reimplement.
372 (create_breakpoint): Allocate a struct tracecepoint if the caller
373 wanted a tracepoint. Use init_breakpoint_sal and
375 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
376 (print_recreate_masked_watchpoint)
377 (print_recreate_exception_catchpoint): Call print_recreate_thread.
378 (tracepoint_print_one_detail): Adjust.
379 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
380 Dump the pass count here.
381 (update_static_tracepoint): Adjust.
382 (addr_string_to_sals): Adjust.
383 (create_tracepoint_from_upload): Adjust. Change return type to
384 struct tracepoint pointer.
385 (trace_pass_set_count): Change parameter type to struct tracepoint
387 (trace_pass_command): Adjust.
388 (get_tracepoint, get_tracepoint_by_number_on_target)
389 (get_tracepoint_by_number): Change return type to struct
390 tracepoint pointer, and adjust.
391 (print_recreate_thread): New, factored out from save_breakpoints.
392 (save_breakpoints): Don't print thread and task and passcount
394 * remote.c (remote_download_tracepoint): Adjust.
395 * tracepoint.c (trace_actions_command, validate_actionline)
396 (start_tracing, tfind_1, trace_find_tracepoint_command)
397 (trace_dump_command): Adjust.
398 (find_matching_tracepoint): Change return type to struct
399 tracepoint pointer, and adjust.
400 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
401 (tfile_trace_find, tfile_fetch_registers): Adjust.
402 * tracepoint.h (create_tracepoint_from_upload): Change return type
403 to struct tracepoint pointer.
404 * ada-lang.c (print_recreate_exception): Call
405 print_recreate_thread.
406 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
408 2011-07-25 Pedro Alves <pedro@codesourcery.com>
410 * breakpoint.h (struct breakpoint): Move ops as first field. Move
411 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
412 cond_exp_valid_block, val, val_valid, watchpoint_frame,
413 watchpoint_thread, watchpoint_triggered ...
414 (struct watchpoint): ... to this new struct.
415 (is_watchpoint): Declare.
416 (install_breakpoint): Add new `internal' parameter.
417 * breakpoint.c (is_watchpoint): Delete declaration.
418 (set_breakpoint_condition): Handle watchpoints.
419 (is_watchpoint): Make public.
420 (watchpoint_in_thread_scope): Change parameter type to struct
422 (watchpoint_del_at_next_stop): Change parameter type to struct
423 watchpoint. Remove assertion. Adjust.
424 (update_watchpoint): Ditto.
425 (insert_breakpoints, breakpoint_init_inferior)
426 (watchpoints_triggered, watchpoint_check)
427 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
428 (bpstat_stop_status, print_one_breakpoint_location)
429 (print_one_breakpoint_location, watchpoint_locations_match): Cast
430 to struct watchpoint as necessary, and adjust.
431 (install_breakpoint): Add `internal' argument. If true, don't
432 mention the new breakpoint. Use set_breakpoint_number.
433 (create_fork_vfork_event_catchpoint)
434 (create_syscall_event_catchpoint): Adjust.
435 (dtor_watchpoint): New.
436 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
437 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
438 (print_it_watchpoint, print_mention_watchpoint)
439 (print_recreate_watchpoint, insert_masked_watchpoint)
440 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
441 (print_one_detail_masked_watchpoint)
442 (print_mention_masked_watchpoint)
443 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
444 necessary, and adjust.
445 (watch_command_1): Allocate and initialize a struct watchpoint
446 instead of a struct breakpoint. Use install_breakpoint.
447 (catch_exec_command_1): Adjust.
448 (base_breakpoint_dtor): Delete accesses to watchpoint specific
450 (delete_breakpoint, enable_breakpoint_disp)
451 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
452 as necessary, and adjust.
453 (initialize_breakpoint_ops): Install dtor_watchpoint as
454 watchpoints' dtor method.
455 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
456 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
457 to struct watchpoint as necessary, and adjust.
459 2011-07-25 Pedro Alves <pedro@codesourcery.com>
461 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
462 the the base class ops table.
463 (catch_exception_breakpoint_ops)
464 (catch_exception_unhandled_breakpoint_ops)
465 (catch_assert_breakpoint_ops): Don't statically initialize.
466 (initialize_ada_catchpoint_ops): New.
467 (_initialize_ada_language): Call it.
468 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
469 (bkpt_breakpoint_ops): Forward declare.
470 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
471 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
472 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
473 (masked_watchpoint_breakpoint_ops)
474 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
475 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
476 base class ops table.
477 (null_re_set, null_check_status, null_works_in_software_mode)
478 (null_resources_needed, null_print_one_detail): Delete.
479 (bkpt_dtor): Rename to ...
480 (base_breakpoint_dtor): ... this. Make static.
481 (bkpt_allocate_location): Rename to ...
482 (base_breakpoint_allocate_location): ... this. Make static.
483 (base_breakpoint_re_set): New.
484 (internal_error_pure_virtual_called): New.
485 (base_breakpoint_insert_location, base_breakpoint_remove_location)
486 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
487 (base_breakpoint_works_in_software_mode)
488 (base_breakpoint_resources_needed, base_breakpoint_print_it)
489 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
490 (base_breakpoint_print_recreate): New functions.
491 (base_breakpoint_ops): New global.
492 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
493 (bkpt_breakpoint_hit): Make static.
494 (bkpt_check_status): Delete.
495 (bkpt_resources_needed): Make static.
496 (bkpt_works_in_software_mode): Delete.
497 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
499 (bkpt_breakpoint_ops, internal_breakpoint_ops)
500 (momentary_breakpoint_ops): Don't statically initialize.
501 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
503 (tracepoint_insert_location, tracepoint_remove_location)
504 (tracepoint_check_status, tracepoint_works_in_software_mode)
505 (tracepoint_print_it): Delete.
506 (tracepoint_breakpoint_ops): Don't statically initialize.
507 (initialize_breakpoint_ops): New.
508 (_initialize_breakpoint): Call it.
509 * breakpoint.h (null_re_set, null_works_in_software_mode)
510 (null_resources_needed, null_check_status, null_print_one_detail):
511 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
512 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
513 (bkpt_check_status, bkpt_resources_needed)
514 (bkpt_works_in_software_mode, bkpt_print_it)
515 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
517 (initialize_breakpoint_ops): Declare.
519 2011-07-25 Pedro Alves <pedro@codesourcery.com>
521 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
522 (momentary_bkpt_print_it): Simplify.
524 2011-07-25 Pedro Alves <pedro@codesourcery.com>
526 Split internal, momentary and user breakpoints breakpoint_ops
529 * breakpoint.c (internal_breakpoint_ops)
530 (momentary_breakpoint_ops): Forward declare.
531 (create_internal_breakpoint): Add new breakpoint_ops parameter.
532 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
533 (create_overlay_event_breakpoint)
534 (create_std_terminate_master_breakpoint)
535 (create_exception_master_breakpoint): Create breakpoints with
536 internal_breakpoint_ops vtable.
537 (set_longjmp_breakpoint): Create momentary breakpoints with
538 momentary_breakpoint_ops vtable, using
539 momentary_breakpoint_from_master.
540 (create_thread_event_breakpoint, create_jit_event_breakpoint)
541 (create_solib_event_breakpoint): Create breakpoints with
542 internal_breakpoint_ops vtable.
543 (set_momentary_breakpoint): Create breakpoints with
544 momentary_breakpoint_ops vtable.
545 (momentary_breakpoint_from_master): New, factored out from
546 clone_momentary_breakpoint.
547 (clone_momentary_breakpoint): Adjust.
548 (watch_command_1): Create scope breakpoints with
549 momentary_breakpoint_ops vtable.
550 (bkpt_re_set): Remove handling of internal and momentary
552 (bkpt_print_mention, bkpt_print_recreate): New.
553 (bkpt_breakpoint_ops): Adjust.
554 (internal_bkpt_re_set, internal_bkpt_check_status)
555 (internal_bkpt_print_it, internal_bkpt_print_mention)
556 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
557 (momentary_bkpt_re_set, momentary_bkpt_check_status)
558 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
559 (momentary_bkpt_print_recreate): New.
560 (momentary_breakpoint_ops): New.
562 2011-07-25 Pedro Alves <pedro@codesourcery.com>
564 Implement most breakpoint_ops methods for all breakpoint types,
565 and move the default handlings to the proper callbacks.
567 * breakpoint.c (update_watchpoint): Always call the breakpoint's
568 works_in_software_mode method.
569 (insert_bp_location): Go through breakpoint_ops->insert_location
570 for software and hardware watchpoints.
571 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
573 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
574 for software and hardware watchpoints.
575 (print_it_typical): Delete.
576 (print_bp_stop_message): Always call the breakpoint_ops->print_it
578 (watchpoint_check): Adjust comment.
579 (bpstat_check_location): Simply always call the breakpoint's
580 breakpoint_hit method.
581 (bpstat_stop_status): Always call the breakpoint's check_status
582 method. Remove special cases for watchpoints and internal event
583 breakpoints from here (moved to the check_status implementations).
584 (print_one_breakpoint_location): Assume b->ops is never NULL.
585 Remove static tracepoint marker id printing from here (moved to
586 the print_one_detail callback implementation of tracepoints).
587 (init_bp_location): Assert OPS is never NULL.
588 (allocate_bp_location): Always call the breakpoint's
589 allocate_location method, and remove the default code from here.
590 (free_bp_location): Always call the location's dtor method, and
591 remove the default code from here.
592 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
593 (set_raw_breakpoint_without_location): Add new breakpoint_ops
594 parameter. Pass it down.
595 (set_raw_breakpoint): Ditto.
596 (print_it_catch_fork): Adjust to take a bpstat as argument.
597 (catch_fork_breakpoint_ops): Install methods.
598 (print_it_catch_vfork): Adjust to take a bpstat as argument.
599 (catch_vfork_breakpoint_ops): Install methods.
600 (dtor_catch_syscall): Call the base dtor.
601 (print_it_catch_syscall): Adjust to take a bpstat as argument.
602 (catch_syscall_breakpoint_ops): Install methods.
603 (dtor_catch_exec): Call the base dtor.
604 (print_it_catch_exec): Adjust to take a bpstat as argument.
605 (catch_exec_breakpoint_ops): Install methods.
606 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
607 the breakpoint's resources_needed method, and remove the default
609 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
611 (clone_momentary_breakpoint): Clone the original's ops.
612 (mention): Always call the breakpoint's print_mention method, and
613 remove the default code from here.
614 (create_breakpoint_sal): Adjust to pass the ops to
615 set_raw_breakpoint rather than setting it manually.
616 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
617 ops to set_raw_breakpoint_without_location rather than setting it
619 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
620 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
621 (ranged_breakpoint_ops): Install methods.
622 (break_range_command): Adjust to pass the ops to
623 set_raw_breakpoint rather than setting it manually.
624 (re_set_watchpoint, breakpoint_hit_watchpoint)
625 (check_status_watchpoint, resources_needed_watchpoint)
626 (works_in_software_mode_watchpoint, print_it_watchpoint)
627 (print_mention_watchpoint, print_recreate_watchpoint): New
629 (watchpoint_breakpoint_ops): Install new methods.
630 (print_it_masked_watchpoint): New function.
631 (masked_watchpoint_breakpoint_ops): Install new methods.
632 (watch_command_1): Adjust to pass the right breakpoint_ops to
633 set_raw_breakpoint_without_location rather than setting it
634 manually later. Record the current pspace.
635 (print_it_exception_catchpoint): Adjust to take a bpstat as
637 (gnu_v3_exception_catchpoint_ops): Install new methods.
638 (say_where): New function.
639 (null_re_set, null_check_status, null_works_in_software_mode)
640 (null_resources_needed, null_print_one_detail, bp_location_dtor):
642 (bp_location_ops): New global.
643 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
644 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
645 (bkpt_check_status, bkpt_resources_needed)
646 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
647 (bkpt_print_recreate): New functions.
648 (bkpt_breakpoint_ops): New global.
649 (tracepoint_re_set, tracepoint_insert_location)
650 (tracepoint_remove_location, tracepoint_breakpoint_hit)
651 (tracepoint_check_status, tracepoint_works_in_software_mode)
652 (tracepoint_print_it, tracepoint_print_one_detail)
653 (tracepoint_print_mention, tracepoint_print_recreate): New
655 (tracepoint_breakpoint_ops): New global.
656 (delete_breakpoint): Always call the breakpoint's dtor method, and
657 remove the default handling from here.
658 (breakpoint_re_set_default): Make static.
659 (breakpoint_re_set_one): Always call the breakpoints re_set
660 method, and remove the default handling from here.
661 (trace_command, ftrace_command, strace_command)
662 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
663 to create_breakpoint.
664 (save_breakpoints): Always call the breakpoint's print_recreate
665 method, and remove the default handling from here.
667 * ada-lang.c (dtor_exception): Call the base dtor.
668 (re_set_exception): Call the base method.
669 (print_it_exception, print_it_catch_exception): Adjust to take a
671 (catch_exception_breakpoint_ops): Install methods.
672 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
674 (catch_exception_unhandled_breakpoint_ops): Install methods.
675 (print_it_catch_assert): Adjust to take a bpstat as argument.
676 (catch_assert_breakpoint_ops): Install methods.
678 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
679 to take a bpstat as argument.
680 (enum print_stop_action): Add describing comments to each enum
682 (breakpoint_re_set_default): Delete declaration.
683 (null_re_set, null_works_in_software_mode, null_resources_needed)
684 (null_check_status, null_print_one_detail): Declare.
685 (bkpt_breakpoint_ops): Declare.
686 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
687 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
688 (bkpt_check_status, bkpt_resources_needed)
689 (bkpt_works_in_software_mode, bkpt_print_it)
690 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
693 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
695 * python/py-breakpoint.c (bppy_init): Ditto.
697 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
699 * MAINTAINERS (Write After Approval): Add myself to the list.
701 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
703 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
705 2011-07-22 Pedro Alves <pedro@codesourcery.com>
707 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
708 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
709 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
711 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
712 (struct i386_debug_reg_state): New.
713 (i386_init_dregs): New.
715 (i386_cleanup_dregs): Use i386_init_dregs.
716 (i386_show_dr): Add state parameter and adjust.
717 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
719 (i386_remove_aligned_watchpoint): Likewise.
720 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
721 (i386_update_inferior_debug_regs): New.
722 (i386_insert_watchpoint): Work on a local mirror of the debug
723 registers, and only update the inferior on success.
724 (i386_remove_watchpoint): Ditto.
725 (i386_region_ok_for_watchpoint): Adjust.
726 (i386_stopped_data_address): Adjust.
727 (i386_insert_hw_breakpoint): Adjust.
728 (i386_remove_hw_breakpoint): Adjust.
730 2011-07-22 Tom Tromey <tromey@redhat.com>
732 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
733 from amd64_pseudo_register_read. Change arguments. Call
734 mark_value_bytes_unavailable when needed.
735 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
736 set_gdbarch_pseudo_register_read.
737 * sentinel-frame.c (sentinel_frame_prev_register): Use
738 regcache_cooked_read_value.
739 * regcache.h (regcache_cooked_read_value): Declare.
740 * regcache.c (regcache_cooked_read_value): New function.
741 (regcache_cooked_read): Call
742 gdbarch_pseudo_register_read_value if available.
743 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
744 (i386_pseudo_register_read): Remove.
745 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
746 i386_pseudo_register_read. Change arguments. Call
747 mark_value_bytes_unavailable when needed.
748 (i386_pseudo_register_read_value): New function.
749 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
750 not set_gdbarch_pseudo_register_read.
751 * gdbarch.sh (pseudo_register_read_value): New method.
752 * gdbarch.c, gdbarch.h: Rebuild.
753 * findvar.c (value_from_register): Call get_frame_register_value.
755 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
757 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
759 (display_gdb_prompt): Likewise.
760 (change_annotation_level): Likewise.
761 (push_prompt): Likewise.
762 (pop_prompt): Likewise.
763 (handle_stop_sig): Use get_prompt with a level.
764 * top.c (command_loop): Use get_prompt with a level.
765 (set_async_annotation_level): Use set_prompt with a level.
766 (get_prefix): New function.
770 (get_prompt): Accept a level argument.
771 (set_prompt): Accept a level argument. Free old prompts. Set
772 new_async_prompt if level is 0.
773 (init_main): Use set_prompt with a level. Do not set
775 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
776 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
777 Modify set_prompt, get_prompt to account for levels.
778 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
780 * python/python.c (before_prompt_hook): Use set_prompt.
782 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
784 * defs.h: Add guard against inclusion in gdbserver.
785 (struct ptid, ptid_t): Move to common/ptid.h.
786 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
787 xsnprintf, internal_error): Move to common/common-utils.h.
789 * gdb_assert.h: Move into common/ sub-directory.
790 * gdb_locale.h: Ditto.
791 * gdb_dirent.h: Ditto.
792 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
793 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
794 Move into common/ptid.h.
795 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
796 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
797 Change nomem to malloc_failure.
798 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
799 * utils.c (nomem): Rename to malloc_failure.
800 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
801 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
802 (gdb_buildargv): Change nomem to malloc_failure.
803 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
804 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
805 ptid_is_pid): Move into common/ptid.c.
806 (initialize_infrun): Delete initialization of null_ptid and
808 * linux-nat.c (linux_nat_xfer_osdata): Defer to
809 linux_common_xfer_osdata.
810 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
811 common/ptid.c and common/buffer.c.
812 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
813 common/ptid.h, common/buffer.h and common/linux-osdata.h.
814 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
815 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
817 * common/gdb_assert.h: New.
818 * common/gdb_dirent.h: New.
819 * common/gdb_locale.h: New.
820 * common/buffer.c: New.
821 * common/buffer.h: New.
822 * common/ptid.c: New.
823 * common/ptid.h: New.
824 * common/xml-utils.c: New.
825 * common/xml-utils.h: New.
826 * common/common-utils.c: New.
827 * common/common-utils.h: New.
828 * common/linux-osdata.c: New.
829 * common/linux-osdata.h: New.
830 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
831 * config/arm/linux.mh (NATDEPFILES): Ditto.
832 * config/i386/linux.mh (NATDEPFILES): Ditto.
833 * config/i386/linux64.mh (NATDEPFILES): Ditto.
834 * config/ia64/linux.mh (NATDEPFILES): Ditto.
835 * config/m32r/linux.mh (NATDEPFILES): Ditto.
836 * config/m68k/linux.mh (NATDEPFILES): Ditto.
837 * config/mips/linux.mh (NATDEPFILES): Ditto.
838 * config/pa/linux.mh (NATDEPFILES): Ditto.
839 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
840 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
841 * config/s390/s390.mh (NATDEPFILES): Ditto.
842 * config/sparc/linux.mh (NATDEPFILES): Ditto.
843 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
844 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
846 2011-07-21 Matt Rice <ratmice@gmail.com>
848 * NEWS: Add info macros and info definitions commands.
850 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
852 * NEWS: Document Python prompt substitution hook.
854 2011-07-18 Matt Rice <ratmice@gmail.com>
857 * macrotab.h (macro_callback_fn): Add new arguments to callback.
858 * macrotab.c (foreach_macro): Ditto.
859 (foreach_macro_in_scope): Ditto.
860 * macrocmd.c (print_macro_callback): New function.
861 (info_macro_command): Move some code to print_macro_definition.
862 (print_macro_definition): New function.
863 (print_one_macro): Add new arguments to callback.
864 (info_definitions_command): New function.
865 (info_macros_command): Ditto.
866 (_initialize_macrocmd): Add info macros and info definitions commands.
867 * symtab.c (add_macro_name): Add new arguments to callback.
869 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
870 Tom Tromey <tromey@redhat.com>
872 * top.c (set_prompt): Rewrite to free previous prompt, free
873 asynch_new_prompt and set both on new prompts.
874 * event-top.c (display_gdb_prompt): Add prompt substitution
876 * python/python.c (before_prompt_hook): New function.
878 2011-07-20 Matt Rice <ratmice@gmail.com>
880 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
881 arguments to store_unsigned_integer.
883 2011-07-20 Tom Tromey <tromey@redhat.com>
885 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
886 in some declaration-only cases.
888 2011-07-18 Tom Tromey <tromey@redhat.com>
891 * dwarf2read.c (dwarf2_section_info_def): New typedef.
892 (struct dwarf2_per_objfile) <types>: Change to a VEC.
893 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
894 <debug_type_section>: New field.
895 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
896 (load_cu): Use appropriate section.
897 (create_signatured_type_table_from_index): Add 'section'
899 (dwarf2_read_index): Only allow a single .debug_types section.
900 (dw2_get_file_names): Use appropriate section.
901 (read_type_comp_unit_head): Add 'section' argument.
902 (create_debug_types_hash_table): Loop over all .debug_types
904 (init_cu_die_reader): Use appropriate section.
905 (process_psymtab_comp_unit, load_partial_comp_unit)
906 (load_full_comp_unit, read_die_and_children, find_partial_die)
907 (lookup_die_type, determine_prefix, follow_die_offset): Update.
908 (lookup_signatured_type_at_offset): Add 'section' argument.
909 (read_signatured_type_at_offset): Add 'sect' argument.
910 (read_signatured_type): Use appropriate section.
911 (set_die_type, get_die_type_at_offset): Update.
912 (dwarf2_per_objfile_free): Free all .debug_types sections, and
914 (write_psymtabs_to_index): Don't allow index with more than one
915 .debug_types section.
917 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
919 Fix crash if referenced CU is aged out.
920 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
922 (indirect_pieced_value): New variable back_to, use to for xfree of
924 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
926 * dwarf2read.c (dwarf2_find_base_address): New prototype.
927 (load_cu): New function from ...
928 (dw2_do_instantiate_symtab): ... the code here ...
929 (process_full_comp_unit): ... and here.
930 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
933 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
935 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
938 2011-07-19 Gary Benson <gbenson@redhat.com>
940 * infrun.c (struct execution_control_state): New member
942 (clear_stop_func, fill_in_stop_func): New functions.
943 (handle_inferior_event): Call clear_stop_func rather than
944 manipulating the execution control state directly.
945 Call fill_in_stop_func lazily as required rather than
946 directly calling find_pc_partial_function in all cases.
948 2011-07-18 Tom Tromey <tromey@redhat.com>
950 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
951 checking for variable-sized array.
953 2011-07-18 Jean-Charles Delay <delay@adacore.com>
955 * varobj.h (varobj_languages): Add vlang_ada definition to the list
956 of supported languages.
957 * varobj.c: Add top definitions and basic implementation of the
958 following callbacks: ada_number_of_children, ada_name_of_variable,
959 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
960 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
961 (languages): Register Ada-specific callbacks.
962 (variable_language): Add the Ada case in the language setter switch.
964 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
966 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
968 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
971 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
972 (execute_stack_op): Use dwarf2_frame_ctx_funcs
973 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
974 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
975 get_frame_cfa, get_tls_address and dwarf_call via funcs.
976 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
977 (struct dwarf_expr_context_funcs): New, move here methods from ...
978 (struct dwarf_expr_context): ... here. New fields funcs.
979 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
980 (dwarf_expr_ctx_funcs): New.
981 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
982 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
983 (needs_frame_ctx_funcs): New.
984 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
986 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
988 * MAINTAINERS (Write After Approval): Add myself to the list.
990 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
992 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
993 that CIE pointer of an FDE really points to a CIE .
995 2011-07-15 Hui Zhu <teawater@gmail.com>
997 * remote.c (remote_get_trace_status): Add comments.
999 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1001 Code cleanup - constify struct lval_funcs.
1002 * dwarf2loc.c (pieced_value_funcs): Make it const.
1003 * infrun.c (siginfo_value_funcs): Likewise.
1004 * opencl-lang.c (opencl_value_funcs): Likewise.
1005 * valops.c (value_assign, value_ind): Make the funcs variable const.
1006 * value.c (struct value): Make location.computed.funcs target const.
1007 Rearrange the comments.
1008 (allocate_computed_value): Make the funcs parameter target const.
1009 (value_computed_funcs): Return the funcs target const.
1010 (value_free, value_copy, set_value_component_location): Make the funcs
1012 * value.h (allocate_computed_value): Make the funcs parameter target
1014 (value_computed_funcs): Return the funcs target const.
1015 * windows-tdep.c (tlb_value_funcs): Make it const.
1017 2011-07-14 Hui Zhu <teawater@gmail.com>
1019 * remote.c (remote_get_trace_status): Initialize p.
1021 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1024 * remote.c (remote_get_trace_status): New variable ex. Put
1025 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1027 2011-07-13 Tom Tromey <tromey@redhat.com>
1029 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1030 value_from_contents for final conversion.
1032 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1035 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1036 Indent prototypes so they do not get into tags.
1038 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1040 Code cleanup making also optimized out values lazy.
1041 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1042 allocate_optimized_out_value. Twice.
1043 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1044 * findvar.c (read_var_value): Likewise.
1045 * value.c (allocate_optimized_out_value): New function.
1046 * value.h (allocate_optimized_out_value): New declaration.
1048 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1050 Fix occasional crash of CTRL-C during DWARF read in.
1051 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1053 2011-07-11 Tom Tromey <tromey@redhat.com>
1055 * regcache.c (struct regcache_descr): Fix typo.
1056 * i387-tdep.c (i387_supply_xsave): Fix typo.
1058 2011-07-11 Tom Tromey <tromey@redhat.com>
1060 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1061 (read_file_scope, read_type_unit_scope): Use it.
1063 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1065 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1068 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1071 * python/python.c: Set gdbpy_should_print_stack default to off.
1072 (set_python): Deprecate maint set python print-stack to
1074 (_initialize_python): Deprecate maint set/show python print-stack.
1075 Add new prefix command, python. Add new setting, print-backtrace.
1076 * NEWS: Document set python print-stack. Document default change.
1078 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1080 * python/py-inferior.c (infpy_dealloc): New function.
1081 (inferior_to_inferior_object): Return a new object, or a
1082 new reference to the existing object.
1083 (find_thread_object): Cleanup references to inferior.
1084 (delete_thread_object): Ditto.
1085 * python/py-infthread.c (create_thread_object): Do not increment
1086 inferior reference count.
1088 2011-07-08 Tom Tromey <tromey@redhat.com>
1090 * dwarf2loc.c (locexpr_regname): New function.
1091 (locexpr_describe_location_piece): Use it.
1092 (disassemble_dwarf_expression): Add per_cu argument. Use
1094 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1095 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1097 (locexpr_describe_location_1): Add per_cu argument.
1098 (locexpr_describe_location): Update.
1099 (loclist_describe_location): Update.
1101 2011-07-08 Tom Tromey <tromey@redhat.com>
1103 * dwarf2expr.c (execute_stack_op): Add QUIT.
1105 2011-07-07 Hui Zhu <teawater@gmail.com>
1108 2011-07-06 Hui Zhu <teawater@gmail.com>
1109 * remote.c (remote_start_remote): Add TRY_CATCH for
1110 remote_get_trace_status.
1111 * tracepoint.c (disconnect_tracing): Ditto.
1113 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1115 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1116 variables as signed, not unsigned.
1118 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1120 * jit.c (jit_inferior_init): Reformat forward declaration.
1122 2011-07-06 Matt Rice <ratmice@gmail.com>
1124 * MAINTAINERS (Write After Approval): Add myself to the list.
1126 2011-07-06 Hui Zhu <teawater@gmail.com>
1128 * remote.c (remote_start_remote): Add TRY_CATCH for
1129 remote_get_trace_status.
1130 * tracepoint.c (disconnect_tracing): Ditto.
1132 2011-07-05 Tom Tromey <tromey@redhat.com>
1134 * symtab.c (operator_chars): Now static.
1135 * linespec.c (operator_chars): Don't declare.
1137 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1139 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1141 2011-07-05 Tom Tromey <tromey@redhat.com>
1143 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1144 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1145 (TYPE_CPLUS_REALLY_JAVA): New macro.
1146 * dwarf2read.c (process_structure_scope): Set
1147 TYPE_CPLUS_REALLY_JAVA.
1149 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1151 * ada-lang.c: Fix typos.
1152 * amd64-tdep.c: Likewise.
1153 * breakpoint.c: Likewise.
1154 * cli/cli-decode.c: Likewise.
1155 * findcmd.c: Likewise.
1156 * inline-frame.c: Likewise.
1157 * mi/mi-main.c: Likewise.
1158 * minsyms.c: Likewise.
1159 * monitor.c: Likewise.
1160 * monitor.h: Likewise.
1161 * prologue-value.c: Likewise.
1162 * reverse.c: Likewise.
1163 * s390-tdep.c: Likewise.
1165 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1167 * jit.c (jit_inferior_init): Forward declare.
1168 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1170 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1172 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1174 2011-07-04 Tristan Gingold <gingold@adacore.com>
1176 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1177 (tcb_fieldno): Add activation_link field.
1178 (get_known_tasks_addr): Moved and rewritten.
1179 (get_tcb_types_info): Set activation_link field.
1180 (read_known_tasks_array): Add parameter. Rewritten.
1181 (read_known_tasks_list): New function.
1182 (read_known_tasks): New function.
1183 (ada_build_task_list): Call read_known_tasks instead of
1184 read_known_tasks_array.
1185 * ravenscar-thread.c: Add first_task_name constant.
1186 (has_ravenscar_runtime): Check for task list too.
1188 2011-07-04 Tristan Gingold <gingold@adacore.com>
1190 * ada-tasks.c: Renames fieldno to actb_fieldno.
1191 (ada_get_task_number): Indentation.
1192 (get_tcb_types_info): Remove all parameters. Write directly
1194 (ptid_from_atcb_common): Adjust.
1195 (read_atcb): Adjust.
1197 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1199 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1201 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1203 * ui-out.c (ui_out_field_core_addr): Mention that the function
1204 description is in the header file.
1205 * ui-out.h (ui_out_field_core_addr): Document function.
1207 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1209 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1210 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1212 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1214 * symtab.c (expand_line_sal): Remove empty line.
1216 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1218 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1219 same way as ELFOSABI_NONE.
1220 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1222 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1224 * breakpoint.c: Fix typos in comments.
1225 * linespec.c: Likewise.
1226 * symtab.c: Likewise.
1228 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1230 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1231 section in separate object files.
1233 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1235 Fix false GCC warning.
1236 * linespec.c (decode_line_1): Initialize values.
1238 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1240 * linespec.c (find_method): Accept the function type automatically only
1241 if it was specified with parameter types.
1243 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1245 Stop on first linespec terminator instead of eating what we can.
1246 * linespec.c (is_linespec_boundary): New function.
1247 (name_end): Remove function.
1248 (keep_name_info): New parameter on_boundary, replace the body.
1249 (decode_line_1): Provide the parameter to keep_name_info.
1250 (decode_compound): Likewise. Drop the trailing java return type
1253 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1255 Fall back linespec to minimal symbols.
1256 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1257 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1258 (find_method, symbol_found): Change error to cplusplus_error.
1260 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1262 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1264 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1265 Tom Tromey <tromey@redhat.com>
1267 * dwarf2read.c (check_physname): New variable.
1268 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1269 (show_check_physname): New function.
1270 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1272 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1274 * machoread.c (macho_symfile_read): Delete OBE comment.
1276 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1278 * machoread.c (struct macho_oso_data): Delete.
1279 (current_oso): Delete.
1280 (macho_relocate_common_syms): New function, mostly extracted
1282 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1283 Remove code that sets and unset current_oso.
1284 (macho_symfile_relocate): Delete handling of common symbols,
1285 now moved to macho_relocate_common_syms.
1287 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1289 * darwin-nat.c (darwin_ptrace): Add documentation.
1290 Set errno to zero before calling ptrace. If ptrace returns
1291 -1 and errno is zero, then change then return zero.
1292 (darwin_kill_inferior): Issue a warning instead of triggering
1293 a failed assertion when the PT_KILL ptrace operations returned
1296 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1298 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1299 only when inf->private->no_ptrace.
1301 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1303 * ada-lang.c (print_it_exception): Print temporary catchpoints
1304 as "Temporary catchpoint".
1305 (print_mention_exception): Likewise.
1307 2011-07-01 Tom Tromey <tromey@redhat.com>
1309 * jv-lang.c (java_language_defn): Use java_printchar,
1311 (java_get_encoding): New function.
1312 (java_emit_char): Use generic_emit_char.
1313 (java_printchar): New function.
1314 (java_printstr): Likewise.
1316 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1318 * ada-typeprint.c (print_record_type): If unable to decode
1319 the name of the parent type, use the encoded name.
1321 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1323 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1324 pointer to constrained packed array type output.
1325 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1326 packed array output.
1328 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1330 * ada-typeprint.c (print_array_type): removed if condition on show
1331 being negative for bounds printing.
1333 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1335 * ada-lang.c (ada_identical_enum_types_p): New function.
1336 (symbols_are_identical_enums): New function.
1337 (remove_extra_symbols): Do nothing if NSYMS < 2.
1338 Use symbols_are_identical_enums.
1340 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1342 * ada-valprint.c (ada_value_print): Handle typedefs.
1344 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1346 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1348 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1350 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1351 (decode_constrained_packed_array): Likewise.
1352 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1354 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1356 * ada-exp.y (convert_char_literal): Handle typedef types.
1358 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1360 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1362 2011-06-30 Tom Tromey <tromey@redhat.com>
1364 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1365 * valops.c (find_overload_match): Call do_cleanups on early exit
1367 * solib.c (solib_find): Call do_cleanups on early exit path.
1369 2011-06-30 Tom Tromey <tromey@redhat.com>
1371 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1372 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1373 return paths. Defer final do_cleanups until last return.
1374 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1377 2011-06-30 Tom Tromey <tromey@redhat.com>
1379 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1381 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1383 * MAINTAINERS (Write After Approval): Add myself to the list.
1385 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1387 Disable epilogue unwinders on recent GCCs.
1388 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1389 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1390 * dwarf2read.c (process_full_comp_unit): Initialize
1391 EPILOGUE_UNWIND_VALID.
1392 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1393 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1394 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1396 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1398 Code cleanup - reformatting.
1399 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1400 (producer_is_gcc_ge_4): ... here, change the return value.
1401 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1404 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1406 Fix non-only rename list for Fortran modules import.
1407 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1408 cp_add_using_directive caller.
1409 (cp_add_using_directive): New parameter excludes, describe it. New
1410 variables ix and param. Compare if also excludes match. Allocate NEW
1411 with variable size, initialize EXCLUDES there.
1412 (cp_lookup_symbol_imports): New variable excludep, test
1413 current->EXCLUDES with it.
1414 * cp-support.h: Include vec.h.
1415 (struct using_direct): New field excludes, describe it.
1416 (DEF_VEC_P (const_char_ptr)): New.
1417 (cp_add_using_directive): New parameter excludes.
1418 * defs.h (const_char_ptr): New typedef.
1419 * dwarf2read.c (read_import_statement): New variables child_die,
1420 excludes and cleanups, read in excludes.
1421 (read_namespace): Adjust the cp_add_using_directive caller.
1423 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1426 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1427 negative comparisons.
1429 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1431 * mi/mi-main.c (mi_cmd_list_features): Emit
1432 breakpoint-notifications.
1434 2011-06-29 Tom Tromey <tromey@redhat.com>
1437 * valprint.h (generic_emit_char, generic_printstr): Declare.
1438 * valprint.c (wchar_printable, append_string_as_wide)
1439 (print_wchar): Move from c-lang.c.
1440 (generic_emit_char): New function; mostly taken from c_emit_char.
1441 (generic_printstr): New function; mostly taken from c_printstr.
1442 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1443 represented as arrays.
1444 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1446 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1447 identically to TYPE_CODE_INT.
1448 * f-lang.c (f_get_encoding): New function.
1449 (f_emit_char): Use generic_emit_char.
1450 (f_printchar): Replace comment.
1451 (f_printstr): Use generic_printstr.
1452 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1453 "character" types specially.
1454 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1456 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1458 (c_emit_char): Call generic_emit_char.
1459 (c_printstr): Call generic_printstr.
1461 2011-06-29 Gary Benson <gbenson@redhat.com>
1463 * breakpoint.c (bpstat_what): Removed duplicated case.
1465 2011-06-28 Tom Tromey <tromey@redhat.com>
1467 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1469 2011-06-27 Tom Tromey <tromey@redhat.com>
1471 * valops.c (find_overload_match): Call do_cleanups before early
1473 * top.c (execute_command): Call do_cleanups before early return.
1474 (command_loop): Likewise.
1475 * stack.c (backtrace_command): Make a null cleanup early. Don't
1476 conditionally call do_cleanups.
1477 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1479 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1480 so cleanups are always run.
1481 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1482 * findcmd.c (parse_find_args): Call do_cleanups on early return
1484 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1485 Don't conditionally call do_cleanups.
1486 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1489 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1491 * MAINTAINERS (Write After Approval): Use default email address.
1493 2011-06-27 Joel Brobecker <brobecker@adacore.com>
1495 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1497 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1499 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1500 saved_regs_mask and copied_regs_mask fields.
1501 (sparc_record_save_insn): New prototype.
1502 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1503 (sparc_record_save_insn): New function.
1504 (sparc_analyze_prologue): Add head comment. Recognize store insns
1505 of call-saved registers. Use OFFSET consistently. Recognize flat
1506 frames and cache their settings.
1507 (sparc32_skip_prologue): Handle flat frames.
1508 (sparc_frame_cache): Add frame_offset to the base address.
1509 (sparc32_frame_cache): Adjust to new frame description.
1510 (sparc32_frame_prev_register): Likewise.
1511 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1512 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1513 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1514 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1515 frame by calling sparc_record_save_insn.
1516 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1517 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1518 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1520 2011-06-27 Tristan Gingold <gingold@adacore.com>
1522 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1523 field by map_addr and map_len.
1524 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1525 (munmap_section_buffer): Likewise.
1527 2011-06-24 Tom Tromey <tromey@redhat.com>
1529 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1530 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1531 * python/python.c (gdbpy_parameter): Make 'arg' const.
1532 (execute_gdb_command): Likewise.
1533 (gdbpy_decode_line): Likewise. Copy it.
1534 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1535 (gdbpy_write): Make 'arg' const.
1536 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1538 (gdbpy_lookup_type): Likewise.
1539 * python/py-prettyprint.c (print_children): Make 'name' const.
1540 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1541 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1543 * python/py-function.c (fnpy_init): Make 'name' const.
1544 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1545 (gdbpy_string_to_argv): Make 'input' const.
1546 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1548 * gdbtypes.h (lookup_typename): Update.
1549 * gdbtypes.c (lookup_typename): Make 'name' const.
1550 (lookup_struct): Likewise.
1551 (lookup_union): Likewise.
1552 (lookup_enum): Likewise.
1554 2011-06-24 Tom Tromey <tromey@redhat.com>
1556 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1557 gdb_thread_db.h. Move all common/ entries to be together.
1558 (TAGS): Don't depend on DEPFILES.
1560 2011-06-23 Yao Qi <yao@codesourcery.com>
1562 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1563 * remote.c (remote_start_remote): ... here.
1564 * monitor.c (monitor_open): ... here.
1566 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
1568 * gdbtypes.c (append_composite_type_field_aligned): Fix
1569 calculation of bit position based on alignment.
1571 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1573 * breakpoint.c (bpstat_stop_status): Call the check_status
1574 breakpoint_ops method.
1575 (print_one_breakpoint_location): Also print the condition for Ada
1576 exception catchpoints.
1577 (allocate_bp_location): New, factored out from
1578 allocate_bp_location.
1579 (allocate_bp_location): Adjust. Call the owner breakpoint's
1580 allocate_location method, if there is one.
1581 (free_bp_location): Call the locations's dtor method, if there is
1583 (init_raw_breakpoint_without_location): New breakpoint_ops
1585 (set_raw_breakpoint_without_location): Adjust.
1586 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1587 (set_raw_breakpoint): Adjust.
1588 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1589 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
1590 re_set and check_status methods.
1591 (init_catchpoint): Don't memset, initialize thread, addr_string
1592 and enable_state. Pass the ops down to init_raw_breakpoint.
1593 (install_catchpoint): Rename to ...
1594 (install_breakpoint): ... this, and make extern.
1595 (create_fork_vfork_event_catchpoint): Adjust.
1596 (catch_exec_breakpoint_ops): Install NULL allocate_location,
1597 re_set and check_status methods.
1598 (create_syscall_event_catchpoint): Adjust.
1599 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1600 (masked_watchpoint_breakpoint_ops): Install NULL
1601 allocate_location, re_set and check_status methods.
1602 (catch_exec_command_1): Adjust.
1603 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
1604 re_set and check_status methods.
1605 (create_ada_exception_breakpoint): Rename to ...
1606 (init_ada_exception_breakpoint): ... this. Add a struct
1607 breakpoint parameter, and delete the exp_string, cond_string and
1608 cond parameters. Use init_raw_breakpoint, and don't install or
1609 mention the breakpoint yet. Don't clear breakpoint fields that
1610 init_raw_breakpoint already clears.
1611 (re_set_breakpoint): Delete, split into ...
1612 (breakpoint_re_set_default, prepare_re_set_context): ... these new
1614 (breakpoint_re_set_one): Call the breakpoint's
1615 breakpoint_ops->re_set implementation, if there's one. Adjust.
1616 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
1617 (struct bp_location_ops): New type.
1618 (struct bp_location): New field `ops'.
1619 (struct breakpoint_ops): New `allocate_location', `re_set' and
1620 `check_status' fields. Make `breakpoint_hit''s description match
1622 (init_bp_location): Declare.
1623 (breakpoint_re_set_default): Declare.
1624 (create_ada_exception_breakpoint): Rename to ...
1625 (init_ada_exception_breakpoint): ... this. Add a struct
1626 breakpoint parameter, and delete the exp_string, cond_string and
1628 (install_breakpoint): Declare.
1629 * ada-lang.c: Include exceptions.h.
1630 <Ada exceptions description>: Update.
1631 (struct ada_catchpoint_location): New type.
1632 (ada_catchpoint_location_dtor): New function.
1633 (ada_catchpoint_location_ops): New global.
1634 (ada_catchpoint): New type.
1635 (create_excep_cond_exprs): New function.
1636 (dtor_exception, allocate_location_exception, re_set_exception)
1637 (should_stop_exception, check_status_exception): New functions.
1638 (print_one_exception, print_mention_exception)
1639 (print_recreate_exception): Adjust.
1640 (dtor_catch_exception, allocate_location_catch_exception)
1641 (re_set_catch_exception, check_status_catch_exception): New
1643 (catch_exception_breakpoint_ops): Install them.
1644 (dtor_catch_exception_unhandled)
1645 (allocate_location_catch_exception_unhandled)
1646 (re_set_catch_exception_unhandled)
1647 (check_status_catch_exception_unhandled): New functions.
1648 (catch_exception_unhandled_breakpoint_ops): Install them.
1649 (dtor_catch_assert, allocate_location_catch_assert)
1650 (re_set_catch_assert, check_status_catch_assert): New functions.
1651 (catch_assert_breakpoint_ops): Install them.
1652 (ada_exception_catchpoint_p): Delete.
1653 (catch_ada_exception_command_split)
1654 (ada_exception_catchpoint_cond_string): Rename exp_string
1655 parameter to excep_string. Adjust.
1656 (ada_parse_catchpoint_condition): Delete.
1657 (ada_exception_sal): Rename the exp_string parameter to
1658 excep_string. Delete the cond_string and cond parameters.
1660 (ada_decode_exception_location): Rename the exp_string parameter
1661 to excep_string. Delete the cond_string and cond parameters.
1663 (create_ada_exception_catchpoint): New function.
1664 (catch_ada_exception_command, ada_decode_assert_location)
1665 (catch_assert_command): Adjust.
1666 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
1668 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1670 * ada-lang.c: Include arch-utils.h.
1671 (ada_decode_exception_location): Make static.
1672 (catch_ada_exception_command): Moved here from breakpoint.c.
1673 (ada_decode_assert_location): Make static.
1674 (catch_assert_command): Moved here from breakpoint.c.
1675 (_initialize_ada_lang): Install the exception and assert
1676 catchpoint commands here.
1677 * ada-lang.h (ada_decode_exception_location)
1678 (ada_decode_assert_location): Delete declarations.
1679 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
1681 (create_ada_exception_breakpoint): Make extern.
1682 (catch_ada_exception_command, catch_assert_command): Moved to
1684 (add_catch_command): Make extern.
1685 (_initilize_breakpoint): Don't install the exception and assert
1686 catchpoint commands here.
1687 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
1689 (add_catch_command, create_ada_exception_breakpoint): Declare.
1691 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1693 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
1694 the breakpoint to the breakpoint chain here.
1695 (set_raw_breakpoint_without_location): Add the breakpoint to the
1696 breakpoint chain here.
1697 (init_raw_breakpoint): Adjust comments.
1698 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
1700 (init_catchpoint): Don't set the catchpoint's breakpoint number
1702 (install_catchpoint): New function.
1703 (create_fork_vfork_event_catchpoint)
1704 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
1705 use install_catchpoint.
1707 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1709 * breakpoint.c (create_catchpoint_without_mention)
1710 (create_catchpoint): Delete.
1712 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1714 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
1715 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1716 reference to exec_pathname.
1717 (struct exec_catchpoint): New type.
1718 (dtor_catch_exec): New function.
1719 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
1720 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
1721 (catch_exec_command_1): Adjust to use init_catchpoint.
1722 (delete_breakpoint): Remove reference to exec_pathname.
1724 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1726 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
1727 (struct breakpoint): Delete field `syscalls_to_be_caught'.
1728 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1729 reference to syscalls_to_be_caught.
1730 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
1732 (struct syscall_catchpoint): New type.
1733 (dtor_catch_syscall): New function.
1734 (insert_catch_syscall, remove_catch_syscall)
1735 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
1736 (print_recreate_catch_syscall): Adjust.
1737 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
1738 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
1739 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
1740 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1741 (masked_watchpoint_breakpoint_ops)
1742 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
1743 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
1744 there is one. Remove references to syscalls_to_be_caught.
1745 (catching_syscall_number): Adjust.
1746 * ada-lang.c (catch_exception_breakpoint_ops)
1747 (catch_exception_unhandled_breakpoint_ops)
1748 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
1750 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1752 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
1754 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1755 reference to forked_inferior_pid.
1756 (struct fork_catchpoint): New type.
1757 (breakpoint_hit_catch_fork, print_it_catch_fork)
1758 (print_one_catch_fork, breakpoint_hit_catch_vfork)
1759 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
1760 (create_fork_vfork_event_catchpoint): Adjust to use
1763 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1765 * breakpoint.c (add_to_breakpoint_chain)
1766 (init_raw_breakpoint_without_location): New functions, factored
1768 (set_raw_breakpoint_without_location): ... this one.
1769 (init_raw_breakpoint): New function, factored out from
1770 set_raw_breakpoint and adjusted to use
1771 init_raw_breakpoint_without_location.
1772 (set_raw_breakpoint): Adjust.
1773 (init_catchpoint): New function, factored out from
1774 create_catchpoint_without_mention and adjusted to use
1775 init_raw_breakpoint.
1776 (create_catchpoint_without_mention): Adjust.
1778 2011-06-22 Tom Tromey <tromey@redhat.com>
1780 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
1781 argument of 0 specially.
1783 2011-06-22 Yao Qi <yao@codesourcery.com>
1785 * infrun.c (handle_inferior_event): Remove write-only local variable
1786 `sw_single_step_trap_p'.
1788 2011-06-20 Tom Tromey <tromey@redhat.com>
1790 * symtab.c (lookup_language_this): End loop if block is NULL.
1792 2011-06-17 Tom Tromey <tromey@redhat.com>
1794 * valops.c (value_of_this): Use lookup_language_this.
1795 * symtab.h (lookup_language_this): Declare.
1796 * symtab.c (lookup_language_this): New function.
1797 (lookup_symbol_aux): Use lookup_language_this.
1798 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
1800 2011-06-17 Tom Tromey <tromey@redhat.com>
1802 * value.h (value_of_this): Update.
1803 (value_of_local): Remove.
1804 * valops.c (value_of_this): Rename from value_of_local. Change
1806 * p-exp.y (exp): Update.
1807 (variable): Likewise.
1808 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
1810 2011-06-17 Tom Tromey <tromey@redhat.com>
1812 * valops.c (value_of_local): Complain if NAME is NULL.
1813 * std-operator.def (OP_OBJC_SELF): Remove.
1814 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
1815 * objc-exp.y (name_not_typename): Use OP_THIS.
1816 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
1818 <OP_OBJC_SELF>: Remove.
1819 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
1821 2011-06-16 Tristan Gingold <gingold@adacore.com>
1823 * python/py-events.h (gdb_py_events): Make it extern.
1824 * python/py-evtregistry.c (gdb_py_events): Declare.
1826 2011-06-16 Hui Zhu <teawater@gmail.com>
1828 * remote.c (remote_trace_set_readonly_regions): Add check for
1829 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
1832 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1834 * arm-linux-tdep.c: Include "auxv.h".
1836 (ARM_LINUX_SIZEOF_VFP): Define.
1837 (arm_linux_supply_vfp): New function.
1838 (arm_linux_collect_vfp): Likewise.
1839 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
1840 (arm_linux_fpa_regset_sections): New variable.
1841 (arm_linux_vfp_regset_sections): Likewise.
1842 (arm_linux_core_read_description): New function.
1843 (arm_linux_init_abi): Install arm_linux_core_read_description and
1844 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
1845 appropriate for the architecture.
1846 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
1847 (tdesc_arm_with_m): Declare.
1848 (tdesc_arm_with_iwmmxt): Likewise.
1849 (tdesc_arm_with_vfpv2): Likewise.
1850 (tdesc_arm_with_vfpv3): Likewise.
1851 (tdesc_arm_with_neon): Likewise.
1852 * arm-linux-nat.c: Move features/*.c includes ...
1853 * arm-tdep.c: ... here.
1854 * arm-linux-nat.c (arm_linux_read_description): Move initializing
1855 target description data structures ...
1856 * arm-tdep.c (_initialize_arm_tdep): ... here.
1857 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
1858 HWCAP_VFPv3D16): Move definitions ...
1859 * arm-linux-tdep.h: ... here.
1861 2011-06-15 Hui Zhu <teawater@gmail.com>
1863 * remote.c (remote_trace_set_readonly_regions): Add a check for
1866 2011-06-14 Tom Tromey <tromey@redhat.com>
1868 * coffread.c (coffread_objfile): Rename from current_objfile.
1869 * dbxread.c (dbxread_objfile): Rename from current_objfile.
1870 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
1872 2011-06-14 Tom Tromey <tromey@redhat.com>
1874 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
1875 (class_symtab): Remove.
1876 (jv_dynamics_progspace_key): New global.
1877 (jv_per_objfile_free): Reset program space data. Update assert.
1878 Don't clear globals.
1879 (get_dynamics_objfile): Use and set program space data.
1880 (get_java_class_symtab): Use get_dynamics_objfile.
1881 (add_class_symbol): Likewise.
1882 (java_link_class_type): Likewise.
1883 (java_object_type, jv_clear_object_type, set_java_object_type):
1885 (get_java_object_type): Update. Don't cache result.
1886 (is_object_type): Don't call set_java_object_type.
1887 (_initialize_java_language): Don't set jv_type_objfile_data_key;
1888 initialize jv_dynamics_progspace_key.
1890 2011-06-14 Tom Tromey <tromey@redhat.com>
1892 * symtab.h (current_objfile): Don't declare.
1893 * objfiles.h (current_objfile): Don't declare.
1894 * objfiles.c (current_objfile): Remove.
1895 * mdebugread.c (current_objfile): New file-scope global.
1896 * dbxread.c (current_objfile): New file-scope global.
1897 * coffread.c (current_objfile): New file-scope global.
1899 2011-06-13 Pedro Alves <pedro@codesourcery.com>
1901 * top.h (line): Rename to ...
1902 (saved_command_line): ... this.
1903 (linesize): Rename to ...
1904 (saved_command_line_size): ... this.
1905 * top.c (line): Rename to ...
1906 (saved_command_line): ... this.
1907 (linesize): Rename to ...
1908 (saved_command_line_size): ... this.
1909 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
1910 * event-top.c (command_line_handler): Adjust.
1911 * main.c (captured_main): Adjust.
1913 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1915 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
1916 get_frame_func instead of get_frame_pc to determine the code
1917 address used to construct the frame ID.
1918 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
1919 (i386_epilogue_frame_this_id): Likewise.
1920 (i386_epilogue_frame_prev_register): New function.
1921 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
1922 (i386_stack_tramp_frame_sniffer): Fix coding style.
1923 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
1924 (i386_gdbarch_init): Fix comments.
1926 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1928 * i386-tdep.c (i386_match_insn_block): Use length of the proper
1929 instruction when walking back through the instruction stream.
1931 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1933 * symtab.c (output_partial_symbol_filename): Exchange the filename and
1934 fullname parameters order.
1936 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1939 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
1941 * psymtab.c (map_symbol_filenames_psymtab)
1942 (map_partial_symbol_filenames): Likewise.
1943 * psymtab.h: Include symfile.h.
1944 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
1945 * symfile.h (symbol_filename_ftype): New.
1946 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
1947 map_symbol_filenames, clarify more the naming in comment.
1949 2011-06-07 Doug Evans <dje@google.com>
1951 * cc-with-index.sh: Fix typos in comment.
1952 Look for ../../gdb, for fullname.exp.
1954 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1955 Pedro Alves <pedro@codesourcery.com>
1957 * cli/cli-cmds.c (shell_escape): Use waitpid.
1958 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
1960 2011-06-07 Tristan Gingold <gingold@adacore.com>
1962 * xcoffread.c (dwarf2_xcoff_names): New variable.
1963 (aix_process_linenos): Add a guard.
1964 (xcoff_symfile_finish): Free dwarf2.
1965 (xcoff_initial_scan): Add dwarf2 support.
1967 2011-06-06 Pedro Alves <pedro@codesourcery.com>
1969 * infcall.c (run_inferior_call): Don't mask async. Instead force
1970 a synchronous wait, if the target can async.
1972 * target.h (struct target_ops): Delete to_async_mask.
1973 (target_async_mask): Delete.
1974 * target.c (update_current_target): Delete references to to_async_mask.
1975 * linux-nat.c (linux_nat_async_mask_value): Delete.
1976 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
1977 to linux_nat_async_mask_value.
1978 (linux_nat_async_mask): Delete.
1979 (linux_nat_async, linux_nat_close): Remove references to
1980 linux_nat_async_mask_value.
1981 * record.c (record_async_mask_value): Delete.
1982 (record_async): Remove references to record_async_mask_value.
1983 (record_async_mask): Delete.
1984 (record_can_async_p, record_is_async_p): Remove references to
1985 record_async_mask_value.
1986 (init_record_ops, init_record_core_ops): Remove references to
1988 * remote.c (remote_async_mask_value): Delete.
1989 (init_remote_ops): Remove reference to remote_async_mask.
1990 (remote_can_async_p, remote_is_async_p): Remove references to
1991 remote_async_mask_value.
1992 (remote_async): Remove references to remote_async_mask_value.
1993 (remote_async_mask): Delete.
1995 * infrun.c (fetch_inferior_event): Don't claim registers changed
1996 if the current thread is already not executing.
1998 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2000 From Stephen Kitt <steve@sk2.org>
2001 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2002 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2004 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2006 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2007 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2009 2011-06-03 Tom Tromey <tromey@redhat.com>
2011 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2013 * python/py-exitedevent.c (create_exited_event_object): Change
2014 type of 'exit_code'. Optionally add exit_code attribute.
2015 (emit_exited_event): Change type of 'exit_code'.
2016 * python/py-event.h (emit_exited_event): Update.
2017 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2018 * infrun.c (handle_inferior_event): Set exit code fields on
2020 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2022 * inferior.c (exit_inferior_1): Initialize new fields.
2024 2011-06-03 Tom Tromey <tromey@redhat.com>
2026 * dwarf2expr.c (get_signed_type): New function.
2027 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2029 2011-06-02 Keith Seitz <keiths@redhat.com>
2031 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2033 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2035 * top.h (simplified_command_loop): Delete declaration.
2037 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2039 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2040 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2042 2011-06-01 Yao Qi <yao@codesourcery.com>
2044 * objfiles.h (obj_section_addr): Update reference to objfile from
2046 (obj_section_endaddr): Likewise.
2048 2011-06-01 Daniel Jacobowitz <drow@false.org>
2050 * MAINTAINERS: Update my email address and affiliation. Also
2051 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2053 2010-05-31 Keith Seitz <keiths@redhat.com>
2056 * linespec.c (get_search_block): New function.
2057 (find_methods): Add FILE_SYMTATB parameter and use it and
2058 get_search_block to pass an appropriate block to
2059 lookup_symbol_in_namespace.
2060 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2061 Check if *ARGPTR starts with a filename first.
2062 If it does, call locate_first_half again to locate the next
2063 "first half" of the linespec.
2064 Pass FILE_SYMTATB to decode_objc and decode_compound.
2065 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2066 (locate_first_half): Stop on the first colon seen.
2067 (decode_compound): Add FILE_SYMTAB parameter.
2068 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2069 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2070 get_search_block with lookup_symbol.
2071 (find_method): Add FILE_SYMTAB parameter and pass it to
2073 (decode_objc): Use get_search_block.
2075 2010-05-31 Keith Seitz <keiths@redhat.com>
2078 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2079 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2080 and CP_ANONYMOUS_NAMESPACE_LEN.
2081 (cp_is_anonymous): Likewise.
2082 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2083 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2084 * dwarf2read.c (namespace_name): Likewise.
2085 (fixup_partial_die): Likewise.
2086 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2087 seen in the input, keep it.
2089 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2091 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2092 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2093 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2094 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2095 * remote.c (_initialize_remote): Register
2096 async_remote_interrupt_twice directly as
2097 sigint_remote_twice_token event.
2099 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2101 * target.h (enum inferior_event_type): Delete INF_ERROR.
2102 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2104 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2106 * interps.c (interp_set): Don't cancel continuations.
2108 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2110 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2112 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2114 * continuations.h (continuation_ftype): Add `err' parameter.
2115 Document parameters.
2116 (do_all_continuations, do_all_continuations_thread)
2117 (do_all_intermediate_continuations)
2118 (do_all_intermediate_continuations_thread)
2119 (do_all_inferior_continuations): Add `err' parameter.
2120 * continuations.c (do_my_continuations_1, do_my_continuations)
2121 (do_all_inferior_continuations, do_all_continuations_ptid)
2122 (do_all_continuations_thread_callback)
2123 (do_all_continuations_thread, do_all_continuations)
2124 (do_all_intermediate_continuations_thread_callback)
2125 (do_all_intermediate_continuations_thread)
2126 (do_all_intermediate_continuations): Add `err' parameter, and pass
2127 it down all the way to the continuations proper.
2128 * inf-loop.c (inferior_event_handler): If fetching an inferior
2129 event throws an error, don't pop the target, and still call the
2130 continuations, but with `err' set. Adjust all other continuation
2132 * breakpoint.c (until_break_command_continuation): Add `err'
2134 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2135 issue another step if `err' is set.
2136 (struct until_next_continuation_args): New.
2137 (until_next_continuation): Add `err' parameter. Adjust.
2138 (until_next_command): Adjust.
2139 (struct finish_command_continuation_args): Add `thread' field.
2140 (finish_command_continuation): Add `err' parameter. Handle it.
2141 (finish_forward): Adjust.
2142 (attach_command_continuation): Add `err' parameter. Handle it.
2143 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2144 cancel the continuations.
2145 * interps.c (interp_set): Adjust to cancel the continuations.
2146 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2147 continuations rather than discarding.
2148 (free_thread): Don't clear thread inferior resources here.
2149 (delete_thread_1): Do it here instead. And do it before removing
2150 the thread from the threads list. Tag the thread as exited before
2151 clearing thread inferior resources.
2153 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2155 * infcall.c (call_function_by_hand): Rephrase error message.
2157 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2159 * defs.h (struct thread_info, struct inferior): Delete forward
2161 * breakpoint.h (struct thread_info): New forward declaration.
2162 * observer.sh (struct inferior): New forward declaration.
2163 * python/python-internal.h (struct inferior): New forward
2166 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2168 * defs.h (struct continuation, continuation_ftype)
2169 (continuation_free_arg_ftype, add_continuation)
2170 (do_all_continuations, do_all_continuations_thread)
2171 (discard_all_continuations, discard_all_continuations_thread)
2172 (add_intermediate_continuation, do_all_intermediate_continuations)
2173 (do_all_intermediate_continuations_thread)
2174 (discard_all_intermediate_continuations)
2175 (discard_all_intermediate_continuations_thread)
2176 (add_inferior_continuation, do_all_inferior_continuations)
2177 (discard_all_inferior_continuations): Move to ...
2178 * continuations.h: ... this new file.
2179 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2180 infcmd.c, inferior.c, infrun.c, interps.c: Include
2183 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2184 Doug Evans <dje@google.com>
2186 Fix PR 10970, PR 12702.
2187 * linux-nat.c (linux_lwp_is_zombie): New function.
2188 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2189 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2191 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2193 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2195 (add_continuation, add_intermediate_continuation)
2196 (add_inferior_continuation): Use them.
2197 * continuations.c (struct continuation): Use them.
2198 (make_continuation_ftype): Delete.
2199 (make_continuation, add_inferior_continuation, add_continuation)
2200 (add_intermediate_continuation): Use continuation_ftype and
2201 continuation_free_arg_ftype. Rename parameters to shorter names.
2203 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2205 * continuations.c (make_continuation): Make it return void.
2206 (do_my_continuations): Rename to ...
2207 (do_my_continuations_1): ... this. Remove old_chain parameter and
2209 (do_my_continuations): New.
2210 (discard_my_continuations): Rename to ...
2211 (discard_my_continuations_1): ... this. Remove old_chain
2212 parameter and adjust.
2213 (discard_my_continuations): New.
2214 (add_inferior_continuation): Simplify.
2215 (do_all_inferior_continuations): Reimplement on top
2216 do_my_continuations.
2217 (discard_all_inferior_continuations): Simplify.
2218 (add_continuation): Simplify.
2219 (do_all_continuations_ptid): Simplify.
2220 (discard_all_continuations_thread_callback): Simplify.
2221 (add_intermediate_continuation): Simplify.
2222 (discard_all_intermediate_continuations_thread_callback):
2225 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2227 * utils.c (struct continuation, add_continuation)
2228 (add_inferior_continuation)
2229 (do_all_inferior_continuations, discard_all_inferior_continuations)
2230 (restore_thread_cleanup, do_all_continuations_ptid)
2231 (do_all_continuations_thread_callback)
2232 (do_all_continuations_thread, do_all_continuations)
2233 (discard_all_continuations_thread_callback)
2234 (discard_all_continuations_thread, discard_all_continuations)
2235 (add_intermediate_continuation)
2236 (do_all_intermediate_continuations_thread_callback)
2237 (do_all_intermediate_continuations_thread)
2238 (do_all_intermediate_continuations)
2239 (discard_all_intermediate_continuations_thread_callback)
2240 (discard_all_intermediate_continuations_thread)
2241 (discard_all_intermediate_continuations): Move to ...
2242 * continuations.c: ... this new file, and adjust to no longer
2243 implement continuations on top of cleanups.
2244 * Makefile.in (SFILES): Add continuations.c.
2245 (COMMON_OBS): Add continuations.o.
2247 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2249 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2250 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2251 Internal error on invalid values.
2252 * reverse.c: Don't handle EXEC_ERROR.
2253 * mi/mi-main.c: Don't handle EXEC_ERROR.
2255 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2257 * record.c: Include event-loop.h, inf-loop.h.
2258 (record_beneath_to_async): New global.
2259 (tmp_to_async): New global.
2260 (record_async_inferior_event_token): New global.
2261 (record_open_1): Don't error out if async is enabled.
2262 (record_open): Handle to_async. Create an async event source in
2264 (record_close): Delete the async event source.
2265 (record_resumed): New global.
2266 (record_execution_dir): New global.
2267 (record_resume, record_core_resume): Set them. Register the
2268 target on the event loop.
2269 (record_wait): Rename to ...
2270 (record_wait_1): ... this. Add more debug output. Handle
2271 TARGET_WNOHANG, and the target beneath returning
2272 TARGET_WAITKIND_IGNORE.
2273 (record_wait): Reimplement on top of record_wait_1.
2274 (record_async_mask_value): New global.
2275 (record_async, record_async_mask, record_can_async_p)
2276 (record_is_async_p, record_execution_direction): New functions.
2277 (init_record_ops, init_record_core_ops): Install new methods.
2278 * infrun.c (fetch_inferior_event): Temporarily switch the global
2279 execution direction to the direction the target was going.
2280 (execution_direction): Change type to int.
2281 * target.c (default_execution_direction): New function.
2282 (update_current_target): Inherit and de_fault
2283 to_execution_direction.
2284 * target.h (struct target_ops) <to_execution_direction>: New
2286 (target_execution_direction): New macro.
2287 * inferior.h (execution_direction): Change type to int.
2289 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2291 * infcall.c (call_function_by_hand): Don't allow calling functions
2292 in reverse execution mode.
2294 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2296 * infcmd.c (finish_command): Allow async finish in reverse.
2298 2011-05-26 Yao Qi <yao@codesourcery.com>
2300 * gdb_thread_db.h: Delete. Move to ...
2301 * common/gdb_thread_db.h: ... here.
2303 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2305 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2306 function's entry point instead of a manually managed momentary
2307 breakpoint, and only ever issue one proceed call.
2308 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2309 doing a reverse-finish, switch to stepi mode, to do another step.
2310 (insert_step_resume_breakpoint_at_sal): Make public.
2311 (normal_stop): No need to save function value return registers if
2313 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2315 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2317 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2318 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2319 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2321 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2322 step-resume breakpoints.
2323 (print_it_typical): Handle bp_hp_step_resume.
2324 (bpstat_what): Ditto.
2325 (bptype_string): Ditto.
2326 (print_one_breakpoint_location): Ditto.
2327 (allocate_bp_location): Ditto.
2329 (breakpoint_re_set_one): Ditto.
2330 * infrun.c (handle_inferior_event): Adjust. Split
2331 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2332 BPSTAT_WHAT_HP_STEP_RESUME.
2333 (insert_step_resume_breakpoint_at_sal): Rename to ...
2334 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2335 parameter. Handle it.
2336 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2337 insert_step_resume_breakpoint_at_sal_1.
2338 (insert_step_resume_breakpoint_at_frame): Rename to ...
2339 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2340 set a high-priority step-resume breakpoint.
2341 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2342 (insert_step_resume_breakpoint_at_caller): Ditto.
2344 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2346 * breakpoint.c (iterate_over_related_breakpoints): New.
2347 (do_map_delete_breakpoint): New.
2348 (delete_command): Pass do_map_delete_breakpoint to
2349 map_breakpoint_numbers.
2350 (do_disable_breakpoint): New.
2351 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2353 (do_enable_breakpoint): Rename to ...
2354 (enable_breakpoint_disp): ... this.
2355 (enable_breakpoint): Adjust.
2356 (do_enable_breakpoint): New.
2357 (enable_once_breakpoint): Delete.
2358 (do_map_enable_breakpoint): New.
2359 (do_map_enable_once_breakpoint): New.
2360 (enable_once_command, enable_delete_command)
2361 (delete_trace_command): Iterate over the breakpoint's related
2364 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2366 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2367 for ALPHA_ZERO_REGNUM.
2368 (alpha_supply_int_regs): Explicitly supply zero as the value for
2369 ALPHA_ZERO_REGNUM in the register cache.
2370 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2372 2011-05-26 Yao Qi <yao@codesourcery.com>
2374 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2376 2011-05-26 Tristan Gingold <gingold@adacore.com>
2378 * symfile.h (struct dwarf2_section_names): New type.
2379 (struct dwarf2_debug_sections): New type.
2380 (dwarf2_has_info): Add parameter.
2381 * dwarf2read.c (dwarf2_elf_names): New variable.
2382 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2383 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2384 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2385 (dwarf2_has_info): Add names parameter. Pass names
2386 to dwarf2_locate_sections.
2387 (section_is_p): Rewrite using the names parameter.
2388 (dwarf2_locate_sections): Use section names from the names parameter.
2389 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2390 * elfread.c (read_psyms): Ditto.
2391 * machoread.c (macho_symfile_read): Ditto.
2393 2011-05-25 Andreas Schwab <schwab@redhat.com>
2396 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2398 2011-05-24 Keith Seitz <keiths@redhat.com>
2401 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2402 (decode_compound): Unconditionally call keep_name_info.
2404 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2406 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2407 scope, clear its command list.
2408 (map_breakpoint_numbers): Don't walk the related breakpoints list
2411 2011-05-24 Tom Tromey <tromey@redhat.com>
2413 * MAINTAINERS: Move Jim Blandy to past maintainers.
2415 2011-05-24 Tristan Gingold <gingold@adacore.com>
2417 * symfile.h (enum dwarf2_section_enum): New type.
2418 (dwarf2_get_section_info): New prototype.
2419 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2420 section_name by sect. Use a switch to select the info.
2421 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2422 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2424 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2426 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2427 shared library event breakpoint if there's no execution.
2429 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2431 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2432 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2434 2011-05-23 Tom Tromey <tromey@redhat.com>
2436 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2439 2011-05-23 Doug Evans <dje@google.com>
2441 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2442 entry for RuntimeError to doc string.
2444 2011-05-23 Jerome Guitton <guitton@adacore.com>
2446 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2447 sequence for probing loops.
2449 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2451 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2454 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2456 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2457 zero as the value for %g0 in the register cache.
2458 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2459 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2461 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2463 * infrun.c (proceed): Set previous_inferior_ptid here.
2464 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2465 inferior_ptid, not null_ptid.
2466 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2467 (fetch_inferior_event): Nor here.
2469 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2471 * inf-loop.c (inferior_event_handler): Only output a message if
2474 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
2476 * MAINTAINERS: Update my e-mail address.
2478 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2480 * infrun.c (proceed): Switch the inferior event loop to
2481 INF_EXEC_COMPLETE if the target refused to resume from a
2484 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2486 * infcmd.c: Include "inf-loop.h".
2487 (step_once): When stepping into an inline subroutine, pretend the
2488 target has run. If the target can async, switch the inferior
2489 event loop to INF_EXEC_COMPLETE.
2490 * inferior.h (user_visible_resume_ptid): Declare.
2491 * infrun.c (user_visible_resume_ptid): New function, factored out
2494 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2495 that the current thread is running. Merge async and sync
2498 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2500 * infcmd.c (step_1): Simplify synchronous case.
2502 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2504 * tracepoint.c: Include exceptions.h.
2505 (TFILE_PID): Move higher in file.
2506 (tfile_open): Delay pushing the tfile target until we're assured
2507 the tfile header is present in the file. Wrap reading the initial
2508 newline-terminated lines in TRY_CATCH. Pop the target if the
2509 initial setup failed. Add the tfile's thread immediately
2510 aftwards, before any non-essential setup. Don't skip
2511 post_create_inferior if there are no traceframes present in the
2513 (tfile_close): Remove redundant check for null before xfree call.
2514 (tfile_thread_alive): New function.
2515 (init_tfile_ops): Register it as to_thread_alive callback.
2517 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2519 * tracepoint.c (tfile_open): Delete #if 0'd code.
2521 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2523 Fix -readnow for -gdwarf-4 unused type units.
2524 * dwarf2read.c (struct signatured_type): Remove the field offset.
2525 (create_signatured_type_table_from_index): Remove its initialization.
2526 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2527 instead. Add a complaint call.
2528 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2529 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2530 (lookup_signatured_type_at_offset, read_signatured_type)
2531 (write_one_signatured_type): Update the field for per_cu.
2533 2011-05-19 Tom Tromey <tromey@redhat.com>
2535 * python/py-inferior.c (python_inferior_exit): Use
2537 (python_on_resume): Likewise.
2539 2011-05-19 Matt Rice <ratmice@gmail.com>
2541 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2543 2011-05-19 Hui Zhu <teawater@gmail.com>
2545 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2547 2011-05-19 Hui Zhu <teawater@gmail.com>
2549 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2551 2011-05-18 Tom Tromey <tromey@redhat.com>
2553 * dwarf2read.c (dwarf2_add_field): Constify.
2554 * value.c (value_static_field): Constify.
2555 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2557 * ax-gdb.c (gen_static_field): Constify
2559 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2561 * linux-nat.c (kill_callback): Use SIGKILL first.
2563 2011-05-18 Joel Brobecker <brobecker@adacore.com>
2565 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2567 2011-05-18 Tom Tromey <tromey@redhat.com>
2569 * value.c (value_fn_field): Constify.
2570 * symtab.c (gdb_mangle_name): Constify.
2571 * stabsread.c (update_method_name_from_physname): Make 'physname'
2573 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2574 const. Use explicit fputc_filtered loop.
2575 (pascal_type_print_base): Constify.
2576 * p-lang.h (pascal_type_print_method_args): Update.
2577 * linespec.c (add_matching_methods): Constify.
2578 (add_constructors): Likewise.
2579 * jv-typeprint.c (java_type_print_base): Constify.
2580 * gdbtypes.h (struct cplus_struct_type)
2581 <fn_fieldlist.fn_field.physname>: Now const.
2582 * dwarf2read.c (compute_delayed_physnames): Constify.
2583 (dwarf2_add_member_fn): Likewise.
2584 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2586 2011-05-18 Pedro Alves <pedro@codesourcery.com>
2588 * infrun.c (resume): Mention which is the current thread, and its
2589 current PC in debug output.
2590 (prepare_to_proceed): Mention the thread switching in debug
2593 2011-05-18 Tom Tromey <tromey@redhat.com>
2595 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
2596 path check. Use xmalloc and cleanups.
2597 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2599 2011-05-17 Tom Tromey <tromey@redhat.com>
2601 * cp-valprint.c (cp_print_value_fields): Catch errors from
2604 2011-05-17 Tom Tromey <tromey@redhat.com>
2606 * dwarf2read.c (dwarf2_get_die_type): Call
2607 get_die_type_at_offset.
2608 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
2609 get_base_type function.
2611 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
2613 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
2616 2011-05-16 Doug Evans <dje@google.com>
2618 * python/py-auto-load.c (source_section_scripts): Mention objfile
2621 2011-05-15 Doug Evans <dje@google.com>
2623 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
2624 (try_thread_db_load_from_pdir): Call it. If unable to find
2625 libthread_db in directory of libpthread, see if we're looking at
2626 the separate-debug-info copy.
2628 * python/py-autoload.c (print_script): Print "Missing" instead of
2629 "No" for missing scripts.
2630 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
2632 2011-05-13 Doug Evans <dje@google.com>
2634 * ui-file.c (stdio_file_write_async_safe): Add comment.
2636 2011-05-14 Hui Zhu <teawater@gmail.com>
2638 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
2640 2011-05-13 Doug Evans <dje@google.com>
2642 Support $pdir and $sdir in libthread-db-search-path.
2643 * NEWS: Mention $sdir,$pdir.
2644 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
2645 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
2646 (try_thread_db_load_from_sdir): New function.
2647 (try_thread_db_load_from_dir): New function.
2648 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
2649 system directories if search of libthread-db-search-path fails,
2650 that is now done via $sdir.
2651 (has_libpthread): New function.
2652 (thread_db_load): Remove search for libthread_db in directory of
2653 libpthread, that is now done via $pdir.
2655 * NEWS: Mention "info auto-load-scripts".
2656 * python/py-auto-load.c (struct auto_load_pspace_info): New member
2657 script_not_found_warning_printed.
2658 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
2659 all callers updated. Initialize script_not_found_warning_printed.
2660 (get_auto_load_pspace_data_for_loading): New function.
2661 (maybe_add_script): New function.
2662 (source_section_scripts): Simplify. Only print one warning regardless
2663 of the number of auto-load scripts not found.
2664 (clear_section_scripts): Clear script_not_found_warning_printed.
2665 (auto_load_objfile_script): Record script in hash table.
2666 (count_matching_scripts): New function.
2667 (maybe_print_script): Renamed from maybe_print_section_script, all
2668 callers updated. Rewrite to use ui_out_*.
2669 (info_auto_load_scripts): Renamed from
2670 maintenance_print_section_scripts, all callers updated.
2671 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
2672 renamed as "info auto-load-scripts".
2674 2011-05-13 Tom Tromey <tromey@redhat.com>
2676 * dwarf2expr.c (read_uleb128): Cast intermediate result.
2677 (read_sleb128): Likewise.
2679 2011-05-13 Tom Tromey <tromey@redhat.com>
2681 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
2684 2011-05-13 Doug Evans <dje@google.com>
2686 * linux-nat.c (debug_linux_nat_async): Delete.
2687 Replace all references to use debug_linux_nat instead.
2688 (show_debug_linux_nat_async): Delete.
2689 (sigchld_handler): Call ui_file_write_async_safe instead of
2691 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
2692 * ui-file.c (struct ui_file): New member to_write_async_safe.
2693 (null_file_write_async_safe): New function.
2694 (ui_file_write_async_safe): New function.
2695 (set_ui_file_write_async_safe): New function.
2696 (ui_file_new): Initialize to_write_async_safe.
2697 (stdio_file_write_async_safe): New function.
2698 (struct stdio_file): New member fd.
2699 (stdio_file_new): Initialize to_write_async_safe, fd.
2700 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
2702 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
2703 (set_ui_file_write_async_safe): Declare.
2704 (ui_file_write_async_safe): Declare.
2706 2011-05-13 Tom Tromey <tromey@redhat.com>
2708 * utils.c (do_value_free): New function.
2709 (make_cleanup_value_free): Likewise.
2710 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
2712 (dwarf2_loc_desc_needs_frame): Call
2713 make_cleanup_value_free_to_mark.
2714 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
2715 * dwarf2expr.c (free_dwarf_expr_context): Don't call
2717 (new_dwarf_expr_context): Don't call value_mark.
2718 * dwarf2-frame.c (execute_stack_op): Call
2719 make_cleanup_value_free_to_mark.
2720 * defs.h (make_cleanup_value_free): Declare.
2722 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2724 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
2725 prepare_execute_command.
2726 * top.c (prepare_execute_command): Return cleanup.
2727 (execute_command): Use cleanup from prepare_execute_command.
2728 * top.h (prepare_execute_command): Change prototype to return
2730 * defs.h (struct value): Add opaque declaration.
2731 (make_cleanup_value_free_to_mark): Add prototype.
2732 * utils.c (do_value_free_to_mark): New function.
2733 (make_cleanup_value_free_to_mark): Likewise.
2735 2011-05-12 Tom Tromey <tromey@redhat.com>
2737 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
2738 cast left-hand-side to unsigned.
2740 2011-05-12 Tom Tromey <tromey@redhat.com>
2743 * value.h (value_from_contents): Declare.
2744 * value.c (value_from_contents): New function.
2745 * dwarf2read.c (dwarf_stack_op_name): Add new values.
2746 (dwarf2_get_die_type): New function.
2747 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
2748 (allocate_piece_closure): Acquire reference to values.
2749 (read_pieced_value): Update for value-based expressions.
2750 (write_pieced_value): Likewise.
2751 (free_pieced_value_closure): Call value_free as needed.
2752 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
2753 Update for value-based expressions.
2754 * dwarf2loc.h (dwarf2_get_die_type): Declare.
2755 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
2756 <get_base_type>: New field.
2757 (struct dwarf_expr_piece) <v.value>: Change type.
2758 <v.regno>: New field.
2759 (struct dwarf_expr_context) <mark>: New field.
2760 (dwarf_expr_piece, dwarf_expr_fetch): Update.
2761 (dwarf_expr_pop, dwarf_expr_push): Remove.
2762 (dwarf_expr_push_address): Declare.
2763 * dwarf2expr.c (dwarf_arch_cookie): New global.
2764 (struct dwarf_gdbarch_types): New.
2765 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
2767 (dwarf_expr_push): Change type of 'value' argument. Update. Now
2769 (dwarf_expr_push_address): New function.
2770 (dwarf_expr_pop): Now static.
2771 (dwarf_expr_fetch): Change return type.
2772 (dwarf_require_integral): New function.
2773 (dwarf_expr_fetch): Simplify.
2774 (add_piece): Update.
2775 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
2777 (execute_stack_op) <sign_ext>: Remove.
2778 Use values for DWARF stack.
2779 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
2780 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2782 (_initialize_dwarf2expr): New function.
2783 (add_piece): Update.
2784 (new_dwarf_expr_context): Set new field.
2785 (free_dwarf_expr_context): Call value_free_to_mark.
2786 * dwarf2-frame.c (no_base_type): New function.
2787 (execute_stack_op): Set get_base_type field. Update.
2789 2011-05-12 Tom Tromey <tromey@redhat.com>
2791 * dwarf2read.c (read_common_block): Fix formatting.
2793 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
2795 * breakpoint.c (disable_breakpoint): Disable all locations
2796 associated with a tracepoint on target if a trace experiment is
2798 (disable_command): Disable a specific tracepoint location on target if
2799 a trace experiment is running.
2800 (do_enable_breakpoint): Enable all locations associated with a
2801 tracepoint on target if a trace experiment is running.
2802 (enable_command) Enable a specific tracepoint location on target if a
2803 trace experiment is running.
2804 * target.c (update_current_target): Add INHERIT and de_fault clauses for
2805 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2806 to_disable_tracepoint.
2807 * target.h: Add declaration of struct bp_location.
2808 (struct target_ops): Add new functions
2809 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2810 to_disable_tracepoint to target operations.
2811 (target_supports_enable_disable_tracepoint): New macro.
2812 (target_enable_tracepoint): New macro.
2813 (target_disable_tracepoint): New macro.
2814 * remote.c (struct remote_state): Add new field.
2815 (remote_enable_disable_tracepoint_feature): New.
2816 (remote_protocol_features): Add new entry.
2817 (remote_supports_enable_disable_tracepoint): New.
2818 (remote_enable_tracepoint): New.
2819 (remote_disable_tracepoint): New.
2820 (init_remote_ops): Add remote_enable_tracepoint,
2821 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
2822 to remote operations.
2823 * tracepoint.c (start_tracing): Allow tracing to start without any
2824 tracepoints enabled with just a warning if they can be re-enabled
2826 * NEWS: Add news item for the new behaviour of the enable and disable
2827 GDB commands when applied to tracepoints.
2828 Add news items for the new remote packets QTEnable and QTDisable.
2830 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2832 * config.in: Regenerate.
2833 * configure: Regenerate.
2834 * configure.ac <--with-system-readline> (for readline_echoing_p):
2836 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
2837 (tui_old_rl_echoing_p): ... here.
2838 (tui_setup_io): Rename extern declaration readline_echoing_p to
2839 _rl_echoing_p. Adjust assignments for the both renames.
2841 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2843 * symtab.c (lookup_symtab): Run cleanup before returning.
2845 2011-05-11 Tom Tromey <tromey@redhat.com>
2847 * dwarf2read.c (handle_data_member_location): New function.
2848 (dwarf2_add_field): Use it.
2849 (read_common_block): Likewise.
2851 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2853 Make addrs->SECTINDEX always defined.
2854 * symfile.c (relative_addr_info_to_section_offsets): Check for
2855 SECTINDEX -1, not for zero ADDR.
2856 (addrs_section_compar): Remove checking for invalid SECTINDEX.
2857 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
2858 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
2861 2011-05-10 Doug Evans <dje@google.com>
2863 * linux-thread-db.c: Whitespace cleanup.
2864 (try_thread_db_load_1): Fix comment.
2866 * linux-thread-db.c (set_libthread_db_search_path): New function.
2867 (_initialize_thread_db): Add setter for libthread-db-search-path.
2869 2011-05-09 Doug Evans <dje@google.com>
2871 * NEWS: Mention --with-iconv-bin.
2872 * configure.ac: New option --with-iconv-bin.
2873 * configure: Regenerate.
2874 * config.in: Regenerate.
2875 * defs.h (relocate_gdb_directory): Declare.
2876 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
2877 removed progname parameter, and exported. All callers updated.
2878 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
2880 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
2881 adding missing call to restore_child_signals_mask.
2883 2011-05-09 Pedro Alves <pedro@codesourcery.com>
2885 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
2887 * infrun.c (proceed, start_remote): Adjust.
2888 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
2889 and adjust to not handle it.
2890 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2891 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2892 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2893 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2894 * windows-nat.c (do_initial_windows_stuff): Adjust.
2895 * infcmd.c (attach_command): Adjust.
2896 (notice_new_inferior): Adjust.
2898 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2900 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
2901 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
2902 * spu-tdep.c (op_selb): Use correct value.
2904 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2906 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
2907 "parent" parameter to symbol_file_add_from_bfd call.
2909 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2910 Thiago Jung Bauermann <bauerman@br.ibm.com>
2912 Implement support for PowerPC BookE masked watchpoints.
2913 * NEWS: Mention masked watchpoint support. Create "Changed commands"
2915 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
2916 method. Initialize to NULL in all existing breakpoint_ops instances.
2917 (struct breakpoint) <hw_wp_mask>: New field.
2918 * breakpoint.c (is_masked_watchpoint): Add prototype.
2919 (update_watchpoint): Don't set b->val for masked watchpoints. Call
2920 breakpoint's breakpoint_ops.works_in_software_mode if available.
2921 (watchpoints_triggered): Handle the case of a hardware masked
2923 (watchpoint_check): Likewise.
2924 (works_in_software_mode_watchpoint): New function.
2925 (insert_masked_watchpoint, remove_masked_watchpoint)
2926 (resources_needed_masked_watchpoint)
2927 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
2928 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
2929 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
2931 (masked_watchpoint_breakpoint_ops): New structure.
2932 (watch_command_1): Check for the existence of the `mask' parameter.
2933 Set b->ops according to the type of hardware watchpoint being created.
2934 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
2935 (ppc_linux_remove_mask_watchpoint)
2936 (ppc_linux_masked_watch_num_registers): New functions.
2937 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
2938 to_remove_mask_watchpoint and to_masked_watch_num_registers.
2939 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
2940 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
2941 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2942 (target_masked_watch_num_registers): New functions.
2943 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
2944 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
2946 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2947 (target_masked_watch_num_registers): Add prototypes.
2949 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2952 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
2953 (producer_is_gcc_ge_4_0): New function.
2954 (process_full_comp_unit): Set also symtab->locations_valid. Move the
2955 symtab->language code.
2956 (var_decode_location): Set cu->has_loclist.
2957 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
2958 skip. Intialize force_skip from locations_valid. Move the prologue
2959 skipping code into two passes.
2960 * symtab.h (struct symtab): Make the primary field a bitfield. New
2961 field locations_valid.
2963 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2965 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
2966 (classify_inner_name): Call cp_lookup_nested_type with
2968 * cp-namespace.c (cp_lookup_nested_type): New variable
2969 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
2970 type_name_no_tag_or_error with saved_parent_type.
2971 * dwarf2read.c (load_partial_dies): Read in any children of
2972 DW_TAG_typedef with complaint in such case.
2973 * gdbtypes.c (type_name_no_tag_or_error): New function.
2974 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
2975 * valops.c (destructor_name_p): New comment for parameter type. Remove
2976 type const. Make dname and cp const. Call type_name_no_tag_or_error.
2977 * value.h (destructor_name_p): Remove type const.
2979 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2981 * symtab.c (compare_symbol_name): New function.
2982 (completion_list_add_name, expand_partial_symbol_name): Call it,
2983 remove the variable ncmp.
2984 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
2987 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2989 Demote to sw watchpoint only in update_watchpoint.
2990 * breakpoint.c (update_watchpoint): Change between software and
2991 hardware watchpoint for all kinds of watchpoints, not just
2992 read/write ones. Determine b->exact value here instead of
2993 in watch_command_1. Error out if there are not enough resources
2994 for a read or access hardware watchpoint.
2995 (watch_command_1): Remove logic of checking whether there are
2996 enough resources available, since update_watchpoint will do that
2997 work now. Don't set b->exact here. Catch exceptions thrown by
2998 update_watchpoint and delete the watchpoint.
2999 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3000 Use target_exact_watchpoints instead.
3001 (delete_breakpoint): Notify observers only if deleted watchpoint
3002 has a breakpoint number assigned to it.
3004 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3006 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3008 2011-05-05 Jerome Guitton <guitton@adacore.com>
3010 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3012 (i386_stack_tramp_frame_unwind): New static global.
3013 (i386_match_pattern): New function, extracted from i386_match_insn.
3014 (i386_match_insn): Use i386_match_pattern.
3015 (i386_match_insn_block): New function.
3016 (i386_tramp_chain_in_reg_insns)
3017 (i386_tramp_chain_on_stack_insns): New static variables.
3018 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3021 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3023 * configure.host (xscale*): Don't handle target.
3024 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3027 2011-05-04 Yao Qi <yao@codesourcery.com>
3029 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3031 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3034 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3035 | * elfread.c (elf_symtab_read): Stop memory leak.
3037 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3039 * nto-tdep.c (nto_target): Replace deprecated call to
3040 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3042 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3044 Fix false GCC warning.
3045 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3047 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3049 * breakpoint.c (update_watchpoint): Move code to change
3050 the enable state of breakpoint from here ...
3051 (do_enable_breakpoint): ... to here.
3053 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3055 * valprint.c (val_print_array_elements): Fixed poor performance
3056 of printing very large arrays with repeat_count_threshold set
3057 to unlimited. New comment.
3059 2011-04-29 Tom Tromey <tromey@redhat.com>
3061 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3062 (mi_parse): Likewise.
3063 * breakpoint.c (break_range_command): Use sizeof char*, not
3065 (create_breakpoint): Likewise.
3066 (parse_breakpoint_sals): Likewise.
3068 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3070 * linux-nat.c (linux_child_remove_fork_catchpoint)
3071 (linux_child_remove_vfork_catchpoint)
3072 (linux_child_remove_exec_catchpoint): New functions.
3073 (linux_target_install_ops): Install them.
3075 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3079 * varobj.c (install_default_visualizer): Do not install a
3080 visualizer if the varobj is CPLUS_FAKE_CHILD.
3081 (construct_visualizer): Likewise.
3083 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3085 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3086 case insensitive comparison.
3088 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3090 * infrun.c (proceed): Revert previous change.
3091 (resume): Instead, handle the case of signal delivery while stepping
3092 off a breakpoint location here, and only if software single-stepping
3093 is used. Handle nested signals.
3095 2011-04-28 Yao Qi <yao@codesourcery.com>
3097 * arm-tdep.c (copy_unmodified): Rename to ...
3098 (arm_copy_unmodified): .. this. New.
3099 (copy_preload): Move common part to ...
3100 (install_preload): .. this. New.
3101 (arm_copy_preload): New.
3102 (copy_preload_reg): Move common part to ...
3103 (install_preload_reg): ... this. New.
3104 (arm_copy_preload_reg): New.
3105 (copy_b_bl_blx): Move common part to ...
3106 (install_b_bl_blx): .. this. New.
3107 (arm_copy_b_bl_blx): New.
3108 (copy_bx_blx_reg): Move common part to ...
3109 (install_bx_blx_reg): ... this. New.
3110 (arm_copy_bx_blx_reg): New.
3111 (copy_alu_reg): Move common part to ...
3112 (install_alu_reg): ... this. New.
3113 (arm_copy_alu_reg): New.
3114 (copy_alu_shifted_reg): Move common part to ...
3115 (install_alu_shifted_reg): ... this. New.
3116 (copy_ldr_str_ldrb_strb): Move common part to ...
3117 (install_ldr_str_ldrb_strb): ... this. New.
3118 (arm_copy_ldr_str_ldrb_strb): New.
3119 (copy_copro_load_store): Move some common part to ...
3120 (install_copy_copro_load_store): ... this. New.
3121 (arm_copy_copro_load_store): New.
3123 (arm_copy_svc): Renamed from copy_svc.
3124 (copy_undef): Delete.
3125 (arm_copy_undef): Renamed from copy_undef.
3126 (decode_ext_reg_ld_st): Delete.
3127 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3128 (decode_svc_copro): Delete.
3129 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3130 (copy_copro_load_store, copy_alu_imm): update callers.
3131 (copy_extra_ld_st, copy_block_xfer): Likewise.
3132 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3133 (decode_miscellaneous, decode_dp_misc): Likewise.
3134 (decode_ld_st_word_ubyte, decode_media): Likewise.
3135 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3136 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3137 (decode_unconditional, decode_miscellaneous): Likewise.
3138 (decode_media, decode_b_bl_ldmstm): Likewise.
3139 (arm_process_displaced_insn): Likewise..
3140 (decode_misc_memhint_neon): Delete.
3141 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3142 (decode_miscellaneous): Delete.
3143 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3144 (decode_dp_misc): Delete.
3145 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3146 (decode_ld_st_word_ubyte): Delete.
3147 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3148 (decode_media): Delete.
3149 (arm_decode_media): Renamed from decode_media.
3150 (decode_b_bl_ldmstm): Delete.
3151 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3152 (decode_ext_reg_ld_st): Delete.
3153 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3154 (decode_unconditional): Delete.
3155 (arm_decode_unconditional): Renamed from decode_unconditional.
3157 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3159 Case insensitive lookups implementation.
3160 * dwarf2read.c: Include ctype.h.
3161 (struct mapped_index): New field version.
3162 (mapped_index_string_hash): New parameter index_version. New comment
3163 for it. Call tolower appropriately.
3164 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3165 Choose the right index version for mapped_index_string_hash.
3166 (dwarf2_read_index): Support also the index version 5. Initialize the
3167 new struct mapped_index field version.
3168 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3169 (find_slot): Explain the version needs. Pass INT_MAX for the new
3171 (write_psymtabs_to_index): Produce version 5.
3172 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3173 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3174 * psymtab.c (lookup_partial_symbol): Find the
3175 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3177 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3179 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3180 (completion_list_add_name): New variable ncmp, initialize it, use it.
3181 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3182 * utils.c (strcmp_iw): Support case_sensitive_off.
3183 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3184 New function comment part. New variables saved_string1,
3185 saved_string2 and case_pass. Add a proper second pass.
3187 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3189 Replace re_comp/re_exec by regcomp/regexec.
3190 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3191 (search_symbols_name_matches): Use them, use regexec.
3192 (search_symbols): New variable retval_chain, adjust the use of
3193 old_chain against it. Replace re_comp by regcomp. Use the new struct
3194 search_symbols_data fields, use regexec instead of re_exec.
3196 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3198 Format the code for the next patch.
3199 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3200 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3201 New variables c1 and c2.
3203 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3205 * infrun.c (proceed): Do not single-step into signal delivery
3206 when stepping off a breakpoint location.
3207 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3208 (insert_step_resume_breakpoint_at_caller): Likewise.
3209 (insert_step_resume_breakpoint_at_sal): Likewise.
3210 (insert_longjmp_resume_breakpoint): Likewise.
3212 2011-04-27 Yao Qi <yao@codesourcery.com>
3214 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3216 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3218 * procfs.c (procfs_pass_signals): Fix advance declaration.
3220 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3222 * target.h (struct target_ops): Remove to_notice_signals;
3223 add to_pass_signals.
3224 (target_notice_signals): Remove.
3225 (target_pass_signals): Add prototype.
3226 * target.c (update_current_target): Remove to_notice_signals;
3227 mention to_pass_signals.
3228 (target_pass_signals): New function.
3229 (debug_to_notice_signals): Remove.
3230 (setup_target_debug): Do not install debug_to_notice_signals.
3232 * infrun.c (signal_pass): New global.
3233 (resume): Call target_pass_signals.
3234 (handle_inferior_event): Report all signals while stepping over
3235 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3236 are re-inserted when stepping over a signal handler.
3237 (signal_cache_update): New function.
3238 (signal_stop_update): Call it.
3239 (signal_print_update): Likewise.
3240 (signal_pass_update): Likewise.
3241 (handle_command): Call signal_cache_update and target_pass_signals
3242 instead of target_notice_signals.
3243 (_initialize_infrun): Initialize signal_pass.
3245 * linux-nat.c (pass_mask): New global.
3246 (linux_nat_pass_signals): New function.
3247 (linux_nat_create_inferior): Report all signals initially.
3248 (linux_nat_attach): Likewise.
3249 (linux_nat_resume): Use pass_mask to decide whether to directly
3250 handle an inferior signal.
3251 (linux_nat_wait_1): Likewise.
3252 (linux_nat_add_target): Install to_pass_signals callback.
3254 * nto-procfs.c (notice_signals): Remove.
3255 (procfs_resume): Do not call notice_signals.
3256 (procfs_notice_signals): Remove.
3257 (procfs_pass_signals): New function.
3258 (init_procfs_ops): Install to_pass_signals callback instead of
3259 to_notice_signals callback.
3260 (_initialize_procfs): Report all signals initially.
3262 * procfs.c (procfs_notice_signals): Remove.
3263 (procfs_pass_signals): New function.
3264 (procfs_target): Install to_pass_signals callback instead of
3265 to_notice_signals callback.
3266 (register_gdb_signals): Remove.
3267 (procfs_debug_inferior): Report all signals initially.
3268 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3270 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3271 parameters; use them instead of calling signal_..._state routines.
3272 (remote_notice_signals): Remove.
3273 (remote_start_remote): Report all signals initially.
3274 (remote_resume): Do not call remote_pass_signals.
3275 (_initialize_remote): Install to_pass_signals callback instead of
3276 to_notice_signals callback.
3278 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3280 * breakpoint.c (user_settable_breakpoint): Delete.
3281 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3282 (delete_command): Check user_breakpoint_p instead of looking at
3283 the breakpoint's type.
3284 (disable_command): Ditto.
3285 (enable_command): Ditto.
3286 (delete_trace_command): Use user_breakpoint_p instead of looking
3287 at the breakpoint number directly. When checking if there are
3288 user visible tracepoints, in order to know whether to ask the user
3289 for confirmation, check whether the breakpoint is actually a
3292 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3294 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3297 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3299 MI breakpoint notifications.
3301 * annotate.c (breakpoint_changed): Adjust parameter type.
3302 * breakpoint.c (set_breakpoint_condition): Adjust to change
3303 in breakpoint_modified type.
3304 (breakpoint_set_commands): Likewise.
3305 (do_map_commands_command): Likewise.
3306 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3307 changed after bumping hit count.
3308 (bpstat_stop_status): Likewise.
3309 (print_one_breakpoint_location): Don't wrap in tuple here.
3310 (print_one_breakpoint): Always print individual locations.
3311 For locations, use unnamed tuple.
3312 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3314 (create_catchpoint, create_syscall_event_catchpoint): Call
3315 breakpoint_created obsever.
3316 (mention): Don't call breakpoint_created observer.
3317 (create_breakpoint_sal): Call breakpoint_created observer.
3318 (create_breakpoint, watch_command_1): Likewise.
3319 (create_ada_exception_breakpoint): Likewise.
3320 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3321 (locations_are_equal): New.
3322 (update_breakpoint_locations): If locations were changed, notify.
3323 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3324 Call breakpoint_modified observer.
3326 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3327 (mi_cmd_break_insert): Don't set observers for modify and delete.
3328 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3329 (mi_breakpoint_created, mi_breakpoint_deleted)
3330 (mi_breakpoint_modified): New.
3331 (mi_interpreter_init): Hook the above.
3332 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3333 while -break-* commands are executing.
3334 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3335 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3337 (mi_ui_out_impl): Hook in mi_redirect.
3338 (mi_field_skip): True to the name, skip the field, don't output
3339 a field with an empty value.
3341 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3342 (gdbpy_breakpoint_deleted): Adjust.
3343 * tui/tui-hooks.c (tui_event_create_breakpoint)
3344 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3346 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3348 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3349 (procfs_remove_hw_watchpoint): Likewise.
3351 2011-04-26 Michael Walle <michael@walle.cc>
3353 * remote.c (remote_start_remote): Ack packet after sending the
3356 2011-04-26 Yao Qi <yao@codesourcery.com>
3358 * linux-nat.c: Move common macros to ...
3359 Include linux-ptrace.h.
3360 * common/linux-ptrace.h: ... here. New.
3362 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3364 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3365 !objfile_has_partial_symbols. New comment.
3366 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3367 SYM_READ_PSYMBOLS is not present. Extend the comment.
3368 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3370 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3372 * defs.h (ENUM_BITFIELD): Remove.
3374 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3375 Eli Zaretskii <eliz@gnu.org>
3377 * NEWS: Document the new gdbserver --once option.
3379 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3381 * MAINTAINERS: Update my email address.
3383 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3385 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3386 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3387 function call if __STDC_ISO_10646__ macro is defined.
3388 (intermediate_encoding): New prototype.
3389 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3390 to generate compile time error for unsupported gdb_wchar_t size.
3391 (ENDIAN_SUFFIX): New macro.
3392 (intermediate_encoding): New function.
3394 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3396 * ada-lang.c (struct add_partial_datum): Update the comment for
3397 expand_partial_symbol_name.
3398 (ada_add_partial_symbol_completions): Rename to ...
3399 (ada_expand_partial_symbol_name): ... here, change return type, update
3400 function comment, call symbol_completion_match instead of
3401 symbol_completion_add.
3402 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3403 and ada_expand_partial_symbol_name.
3404 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3406 (dw2_map_symbol_names): Remove.
3407 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3408 * psymtab.c (map_symbol_names_psymtab): Remove.
3409 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3410 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3412 (psym_functions): Unlist map_symbol_names_psymtab.
3413 (map_partial_symbol_names): Rename to ...
3414 (expand_partial_symbol_names): ... here, change the FUN type, call
3415 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3416 * psymtab.h (map_partial_symbol_names): Rename to ...
3417 (expand_partial_symbol_names): ... here, change the FUN type.
3418 * symfile.h (struct quick_symbol_functions): Update the description of
3419 expand_symtabs_matching. Remove map_symbol_names.
3420 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3421 (struct add_name_data): Update the comment for
3422 expand_partial_symbol_name.
3423 (add_partial_symbol_name): Rename to ...
3424 (expand_partial_symbol_name): ... here. Replace
3425 completion_list_add_name call by strncmp.
3426 (default_make_symbol_completion_list_break_on): Use now
3427 expand_partial_symbol_names and expand_partial_symbol_name.
3428 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3430 2011-04-20 Tom Tromey <tromey@redhat.com>
3432 * dwarf2read.c (save_gdb_index_command): Replace format
3433 documentation with a pointer to the manual.
3435 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3437 * regcache.c: Include remote.h.
3438 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3439 (regcache_dump): Handle regcache_dump_remote.
3440 (maintenance_print_remote_registers): New function.
3441 (_initialize_regcache): Install "maint print remote-registers"
3443 * remote.c (map_regcache_remote_table): New function, factored out
3445 (init_remote_state): ... here.
3446 (remote_register_number_and_offset): New.
3447 * remote.h (remote_register_number_and_offset): Declare.
3449 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3451 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3452 null_ptid, assume and allow a NULL address space, instead of
3453 asking the target for the ptid's address space.
3454 * infrun.c (ptid_is_pid): Remove assertion.
3456 2011-04-19 Tom Tromey <tromey@redhat.com>
3458 * windows-tdep.c (windows_xfer_shared_library):
3459 * windows-nat.c (get_module_name, windows_make_so):
3460 * v850-tdep.c (v850_handle_pushm):
3461 * utils.c (null_cleanup, gdb_realpath):
3462 * ui-out.c (get_next_header):
3463 * tracepoint.c (clear_traceframe_info):
3464 * symtab.c (lookup_symtab):
3465 * serial.h (struct serial_ops):
3466 * mipsread.c (read_alphacoff_dynamic_symtab):
3467 * infcmd.c (print_return_value):
3468 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3469 * f-exp.y (parse_number):
3470 * exceptions.c (catch_exceptions):
3471 * dummy-frame.c (dummy_frame_this_id):
3472 * defs.h (struct cleanup):
3473 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3474 * arm-tdep.c (arm_push_dummy_call):
3475 * amd64-tdep.h (amd64_collect_xsave):
3476 * amd64-tdep.c (amd64_collect_xsave):
3477 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3478 * README (typing): Remove duplicate words.
3479 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3480 * infrun.c (siginfo_value_read): Fix typo.
3481 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3482 * top.c (source_line_number): Add comma.
3484 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3486 * thread.c (any_live_thread_of_process): Prioritize threads
3487 that are not executing.
3488 * gdbthread.h (any_live_thread_of_process): Update comment
3489 as per above change.
3491 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3493 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3494 (scan_xcoff_symtab): Likewise.
3496 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3498 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3501 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3502 Pedro Alves <pedro@codesourcery.com>
3504 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3505 variables to simplify code and avoid == operator at end of
3506 line as this is against GNU coding standards.
3508 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3510 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3511 lm_name to name_lm to avoid conflict with lm_name function.
3513 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3515 ARI fixes: Use only lowercase function name for static functions.
3516 * nto-tdep.c (LM_ADDR): Rename to...
3517 (lm_addr): New function name.
3518 (nto_relocate_section_addresses): Adapt to change above.
3519 * solib-sunos.c (LM_ADDR): Rename to...
3520 (lm_addr): New function name.
3521 (LM_NEXT): Rename to...
3522 (lm_next): New function name.
3523 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3524 function name changes above.
3525 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3526 (lm_addr_from_link_map): New function name.
3527 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3528 (has_lm_dynamic_from_link_map): New function name.
3529 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3530 (lm_dynamic_from_link_map): New function name.
3531 (LM_ADDR_CHECK): Rename to...
3532 (lm_addr_check): New function name.
3533 (LM_NEXT): Rename to...
3534 (lm_next): New function name.
3535 (LM_PREV): Rename to...
3536 (lm_prev): New function name.
3537 (LM_NAME): Rename to...
3538 (lm_name): New function name.
3539 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3540 (ignore_first_link_map_entry): New function name.
3541 (svr4_keep_data_in_core): Adapt to function name changes above.
3542 (svr4_current_sos): Likewise.
3543 (enable_break): Likewise.
3544 (svr4_relocate_section_addresses): Likewise.
3546 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3549 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3550 sprintf. Simplify code and avoid loosing memory.
3551 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3552 (call0_frame_cache): Remove && operator from end of line.
3554 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3556 Fix libraries displacement if they change whether they were prelinked.
3557 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3558 does not match. Comment why.
3560 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3562 * corelow.c: Include wrapper.h.
3563 (core_open): Call now gdb_target_find_new_threads.
3564 * wrapper.c: Include target.h.
3565 (gdb_target_find_new_threads): New.
3566 * wrapper.h (gdb_target_find_new_threads): New declaration.
3568 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3570 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3571 even if !TARGET_HAS_EXECUTION.
3573 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3575 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3576 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3577 bfd_get_synthetic_symtab.
3578 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3579 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3580 parameter parent, remove the call to add_separate_debug_objfile.
3581 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3582 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3583 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3584 parent, new comment for it, call add_separate_debug_objfile for it.
3585 (symbol_file_add_separate): Pass objfile as the parameter parent,
3586 remove the call to add_separate_debug_objfile.
3587 (symbol_file_add_from_bfd): New parameter parent, pass it.
3588 (symbol_file_add): Pass NULL to the new parameter parent.
3589 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
3591 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3593 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
3596 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3598 Fix Python access to inlined frames.
3599 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
3600 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3602 2011-04-15 Tom Tromey <tromey@redhat.com>
3604 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
3606 2011-04-15 Gary Benson <gbenson@redhat.com>
3608 * MAINTAINERS: Add myself to write-after-approval section.
3610 2011-04-14 Mike Frysinger <vapier@gentoo.org>
3612 * remote-sim.c (sim_command_completer): New function.
3613 (_initialize_remote_sim): Set completer to sim_command_completer.
3615 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3617 * breakpoint.c (print_exception_catchpoint): Rename to ...
3618 (print_it_exception_catchpoint): ... this.
3619 (gnu_v3_exception_catchpoint_ops): Update with new name
3620 for print_it_exception_catchpoint.
3622 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
3624 * MAINTAINERS: Add myself for write after approval privileges.
3626 2011-04-13 Marek Polacek <mpolacek@redhat.com>
3628 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3630 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3632 * breakpoint.c (watch_command_1): Remove colon from exp_string.
3634 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3636 * breakpoint.c (save_breakpoints): Verify whether
3637 breakpoint_ops.print_recreate is defined before calling it.
3639 2011-04-11 Gary Benson <gbenson@redhat.com>
3641 Fix failure with --enable-maintainer-mode.
3642 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
3644 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3647 * symtab.c (search_symbols): Reorder the KIND description in the
3648 function comment. Remove the unused 4th element of types, types2,
3649 types3 and types4. New gdb_assert on KIND.
3650 (symtab_symbol_info): Remove the unused 4th element of classnames.
3651 New gdb_assert on KIND.
3652 * symtab.h (enum search_domain): New warning in the enum comment.
3653 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
3656 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3658 Fix crash of gdb save-index on a STABS file.
3659 * dwarf2read.c (write_psymtabs_to_index): Return also on no
3662 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3664 Fix DW_AT_accessibility compatibility with gcc-4.6+.
3665 * dwarf2read.c: Include ctype.h.
3666 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
3668 (dwarf2_add_field): Fix new_field->accessibility by calling
3669 dwarf2_default_access_attribute. Restructure setting accessibility
3671 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
3672 is_private and is_protected by calling
3673 dwarf2_default_access_attribute.
3675 2011-04-08 Kevin Buettner <kevinb@redhat.com>
3677 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
3678 to the initialization.
3680 2011-04-08 Steve Ellcey <sje@cup.hp.com>
3682 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
3685 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
3687 Remove support for old Cygwin 1.5 versions.
3688 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
3689 function on old Cygwin version.
3690 * windows-nat.c: Remove cygwin version check and always define
3691 __USEWIDE for Cygwin compilation.
3693 2011-04-07 Yao Qi <yao@codesourcery.com>
3695 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
3697 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
3698 (arm_copy_svc): Remove parameters INSN and TO.
3699 (decode_svc_copro): Update caller.
3700 * arm-tdep.h (struct displaced_step_closure): Remove parameters
3701 from function pointer `copy_svc_os'.
3703 2011-04-07 Yao Qi <yao@codesourcery.com>
3705 * arm-tdep.c (cleanup_branch): Set a correct return address in
3706 LR for ARM and Thumb.
3708 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3711 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
3712 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
3713 in the function comment, a new note on values compatibility.
3714 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
3715 * symtab.h (SYMBOL_HASH_NEXT): New.
3717 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
3719 * ppc-linux-nat.c (check_condition): Add len output parameter.
3720 Set it based on the memory region referenced in the condition
3721 expression. Update all callers.
3723 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3725 Fix crash regression on systems featuring .gdb_index.
3726 * objfiles.c (free_objfile): Move the
3727 forget_cached_source_info_for_objfile call earlier. Comment it.
3728 Extend the comment for objfile_free_data.
3730 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3732 Fix regression of displaying the debug format.
3733 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
3736 2011-04-04 Tom Tromey <tromey@redhat.com>
3738 * cli/cli-interp.c (struct captured_execute_command_args):
3740 (do_captured_execute_command): Remove.
3741 (safe_execute_command): Use TRY_CATCH.
3742 * cli/cli-script.c (struct wrapped_read_command_file_args):
3744 (wrapped_read_command_file): Remove.
3745 (script_from_file): Use TRY_CATCH.
3746 * exceptions.c (catch_exception): Remove.
3747 * exceptions.h (catch_exception): Remove.
3748 (deprecated_throw_reason): Update comment.
3749 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
3750 argument to 'context'.
3751 (mi_execute_command): Use TRY_CATCH.
3752 * remote.c (struct start_remote_args): Remove.
3753 (remote_start_remote): Update; change arguments.
3754 (remote_open_1): Use TRY_CATCH.
3756 2011-04-04 Tom Tromey <tromey@redhat.com>
3758 * tracepoint.c (scope_info): Update.
3759 * symtab.c (decode_line_spec): Update.
3760 * python/python.c (gdbpy_decode_line): Update.
3761 * linespec.h (decode_line_1): Update.
3762 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
3763 (decode_compound, find_method, symtab_from_filename)
3764 (decode_variable): Likewise.
3765 * cli/cli-cmds.c (edit_command): Update.
3766 (list_command): Update.
3767 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
3769 (create_breakpoint): Update.
3770 (until_break_command): Update.
3771 (addr_string_to_sals): Update.
3772 (decode_line_spec_1): Update.
3774 2011-04-04 Tom Tromey <tromey@redhat.com>
3776 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
3777 (do_captured_parse_breakpoint): Remove.
3778 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
3779 Use TRY_CATCH directly.
3781 2011-04-04 Tom Tromey <tromey@redhat.com>
3783 * symtab.h (free_symtab): Remove.
3784 (forget_cached_source_info_for_objfile): Declare.
3785 * symmisc.c (free_symtab): Remove.
3786 * source.c (forget_cached_source_info_for_objfile): New function.
3787 (forget_cached_source_info): Use it.
3788 * objfiles.c (free_objfile): Simplify check before calling
3789 clear_current_source_symtab_and_line. Call
3790 forget_cached_source_info_for_objfile.
3792 2011-04-04 Tom Tromey <tromey@redhat.com>
3794 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
3795 (new_symtab): Don't set `free_code' on symtab.
3796 (new_linetable): Properly handle size==0.
3797 * symtab.h (struct symtab) <free_code, free_func>: Remove.
3798 * symmisc.c (free_symtab): Don't free the linetable. Don't call
3800 * jv-lang.c (struct jv_per_objfile_data): New.
3801 (jv_per_objfile_free): Free the data.
3802 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
3803 (get_java_class_symtab): Set the `dict' field on the
3804 jv_per_objfile_data.
3805 (free_class_block): Remove.
3806 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
3809 2011-04-04 Tom Tromey <tromey@redhat.com>
3811 * symfile.c (reread_symbols): Update.
3812 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
3814 * objfiles.c (allocate_objfile): Update.
3815 * cp-support.h (cp_check_possible_namespace_symbols): Don't
3817 * cp-namespace.c (lookup_symbol_file): Don't call
3818 lookup_possible_namespace_symbol.
3819 (initialize_namespace_symtab, get_possible_namespace_block)
3820 (free_namespace_block, cp_check_possible_namespace_symbols)
3821 (check_possible_namespace_symbols_loop)
3822 (check_one_possible_namespace_symbol)
3823 (lookup_possible_namespace_symbol): Remove.
3824 (maintenance_cplus_namespace): Replace with notice.
3825 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
3827 2011-04-04 Tom Tromey <tromey@redhat.com>
3829 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
3830 * symtab.h (struct symtab) <producer, debugformat>: Now const.
3831 * symmisc.c (free_symtab): Don't free debugformat.
3832 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
3833 (record_debugformat, record_producer): Document.
3834 * buildsym.c (end_symtab): Don't save debugformat and producer
3836 (end_symtab): Don't free debugformat and producer fields.
3837 (record_debugformat): Don't call xstrdup.
3838 (record_producer): Likewise.
3840 2011-04-04 Tom Tromey <tromey@redhat.com>
3842 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
3843 (source_line_charpos, source_charpos_line): Remove.
3845 2011-04-04 Tom Tromey <tromey@redhat.com>
3847 * symtab.h (domain_enum): Split in two...
3848 (enum search_domain): New.
3849 (search_symbols): Update.
3850 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
3851 redundant declarations.
3852 (search_symbols): Change 'kind' argument to search_domain.
3854 (print_symbol_info): Likewise.
3855 (symtab_symbol_info): Likewise.
3856 * symfile.h (struct quick_symbol_functions)
3857 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
3858 <expand_symtabs_matching>: Likewise.
3859 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
3860 (expand_symtabs_matching_via_partial): Update.
3861 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
3862 (dw2_expand_symtabs_for_function): Update.
3863 * block.h: Moved anonymous enum...
3864 * defs.h (enum block_enum): ... here. Now named.
3866 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3868 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
3869 * version.in: Bump version to 7.3.50.20110403-cvs.
3871 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3873 * NEWS: Create a new section for the next release branch.
3874 Rename the section of the current branch, now that it has
3877 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3879 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
3880 for "fpscr" in target description.
3882 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3884 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
3885 initialize it. Delay HASH initialization. Strip the part after open
3886 parenthesis for languages with qualifiers. Call do_cleanups.
3888 2011-04-01 Tom Tromey <tromey@redhat.com>
3890 * utils.c (report_command_stats): Don't print `-' for negative
3893 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
3895 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
3896 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
3899 2011-04-01 Joel Brobecker <brobecker@adacore.com>
3901 * breakpoint.h (bpdisp_text): Add declaration.
3902 * breakpoint.c (bpdisp_text): Make non-static.
3903 * ada-lang.c: #include "mi/mi-common.h".
3904 (print_it_exception): Rewrite to improve GDB/MI output.
3906 2011-04-01 Pedro Alves <pedro@codesourcery.com>
3908 * arm-tdep.h (struct address_space): Add forward declaration.
3910 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3912 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
3913 * arm-tdep.c (arm_override_mode): New global.
3914 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
3915 execution mode heuristics.
3916 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
3917 second single-step breakpoint if needed, using
3918 arm_insert_single_step_breakpoint.
3919 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
3920 ARM execution mode, do not call thumb_get_next_pc_raw.
3921 (arm_get_next_pc): Encode execution mode in return value. Call
3922 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
3923 (arm_insert_single_step_breakpoint): New function.
3924 (arm_software_single_step): Call it.
3925 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
3926 argument to return execution mode of sigreturn target.
3927 (arm_linux_syscall_next_pc): Use it.
3928 (arm_linux_copy_svc): Update call.
3929 (arm_linux_software_single_step): Call
3930 arm_insert_single_step_breakpoint.
3932 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3934 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
3937 2011-03-31 Tom Tromey <tromey@redhat.com>
3939 * varobj.c (update_dynamic_varobj_children): Properly handle
3940 errors from iterator.
3942 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3944 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
3945 struct linkage name twice.
3947 2011-03-31 Tom Tromey <tromey@redhat.com>
3949 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
3950 missing ">" to message.
3952 2011-03-31 Tom Tromey <tromey@redhat.com>
3954 * varobj.c (instantiate_pretty_printer): Remove duplicate
3957 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
3959 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
3960 if neither saved value nor register available (e.g. signal frame).
3962 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3964 * macroexp.c (expand): Avoid uninitialized variable
3967 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3969 * breakpoint.c (break_range_command): Fix typo in comment.
3971 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3972 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3974 Implement support for PowerPC BookE ranged breakpoints.
3975 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
3976 * breakpoint.h (struct bp_target_info) <length>: New member
3978 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
3979 instead of struct breakpoint as argument, and also add ASPACE
3980 and BP_ADDR arguments. Update all callers.
3981 (struct breakpoint_ops) <print_one_detail>: New method.
3982 (struct breakpoint) <addr_string_range_end>: New member variable.
3983 * breakpoint.c (breakpoint_location_address_match): Add function
3985 (insert_bp_location): Set bl->target_info.length.
3986 (breakpoint_here_p): Call breakpoint_location_address_match.
3987 (moribund_breakpoint_here_p): Likewise.
3988 (regular_breakpoint_inserted_here_p): Likewise.
3989 (breakpoint_thread_match): Likewise.
3990 (bpstat_stop_status): Likewise.
3991 (bpstat_check_location): Move call to
3992 breakpoint_ops.breakpoint_hit to the top.
3993 (print_one_breakpoint_location): Call
3994 breakpoint_ops.print_one_detail if available.
3995 (breakpoint_address_match_range): New function.
3996 (breakpoint_location_address_match): Likewise.
3997 (breakpoint_locations_match): Compare the length field of the
3999 (hw_breakpoint_used_count): Count resources used by all locations
4000 in a breakpoint, and use breakpoint_ops.resources_needed if
4002 (breakpoint_hit_ranged_breakpoint): New function.
4003 (resources_needed_ranged_breakpoint): Likewise.
4004 (print_it_ranged_breakpoint): Likewise.
4005 (print_one_ranged_breakpoint): Likewise.
4006 (print_one_detail_ranged_breakpoint): Likewise.
4007 (print_mention_ranged_breakpoint): Likewise.
4008 (print_recreate_ranged_breakpoint): Likewise.
4009 (ranged_breakpoint_ops): New structure.
4010 (find_breakpoint_range_end): New function.
4011 (break_range_command): Likewise.
4012 (delete_breakpoint): Free addr_string_range_end.
4013 (update_breakpoint_locations): Add SALS_END argument. Update
4014 all callers. Calculate breakpoint length if a non-zero SALS_END
4015 is given. Call breakpoint_locations_match instead of
4016 breakpoint_address_match.
4017 (reset_breakpoint): Find SaL of the end of the range if B is a
4019 (_initialize_breakpoint): Register break-range command.
4020 * defs.h (print_core_address): Add function prototype.
4021 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4023 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4024 (ppc_linux_remove_hw_breakpoint): Likewise.
4025 (_initialize_ppc_linux_nat): Initialize
4026 to_ranged_break_num_registers.
4027 * target.c (update_current_target): Add comment about
4028 to_ranged_break_num_registers.
4029 (target_ranged_break_num_registers): New function.
4030 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4032 (target_ranged_break_num_registers): Add function prototype.
4033 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4034 * utils.c (print_core_address): ... here.
4036 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4038 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4039 variable compiler warning.
4041 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4043 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4045 (re_set_breakpoint): ... to here ...
4046 (addr_string_to_sals): ... and here.
4048 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4050 * Makefile.in (SFILES): Add missing C sources.
4051 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4052 Add missing headers.
4054 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4056 * .gitignore: New file.
4058 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4060 * NEWS: Mention new cfi device simulation.
4062 2011-03-29 Tom Tromey <tromey@redhat.com>
4064 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4065 otherwise anonymous types.
4066 (dwarf2_name): Likewise.
4067 * valops.c (value_struct_elt_for_reference): Refine artificial
4068 type logic. Call error if j==-1.
4070 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4072 Fix false GCC warning.
4073 * infcall.c (find_function_addr): Initialize funaddr.
4075 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4077 Fix mingw compilation with --enable-targets=all.
4078 * remote-mips.c (gdb_usleep.h): Include header.
4079 (mips_enter_debug): Use gdb_usleep instead of sleep.
4081 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4083 Support resolution of STT_GNU_IFUNC via breakpoints.
4084 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4085 bp_gnu_ifunc_resolver_return.
4086 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4087 the loop. Support bp_gnu_ifunc_resolver and
4088 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4089 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4091 (bptype_string, print_one_breakpoint_location): Support
4092 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4093 (user_settable_breakpoint): Return true also for
4094 bp_gnu_ifunc_resolver.
4095 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4096 bp_gnu_ifunc_resolver_return.
4097 (set_breakpoint_location_function): New parameter explicit_loc,
4098 describe it. Call find_pc_partial_function_gnu_ifunc with new
4099 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4100 EXPLICIT_LOC is not set.
4101 (set_raw_breakpoint): Set EXPLICIT_LOC for
4102 set_breakpoint_location_function.
4103 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4104 set_breakpoint_location_function.
4105 (mention): Support bp_gnu_ifunc_resolver and
4106 bp_gnu_ifunc_resolver_return.
4107 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4108 set_breakpoint_location_function.
4109 (update_breakpoint_locations): Remove static.
4110 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4111 bp_gnu_ifunc_resolver_return.
4112 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4113 bp_gnu_ifunc_resolver_return.
4114 (update_breakpoint_locations): New declaration.
4115 * elfread.c: Include gdbthread.h and regcache.h.
4116 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4118 (elf_gnu_ifunc_fns): Install them.
4119 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4120 (stub_gnu_ifunc_resolver_return_stop): New functions.
4121 (stub_gnu_ifunc_fns): Install them.
4122 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4123 and gnu_ifunc_resolver_return_stop.
4124 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4126 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4128 STT_GNU_IFUNC reader implementation.
4129 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4130 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4131 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4132 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4133 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4134 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4135 (elf_gnu_ifunc_resolve_addr): New.
4136 (elf_symfile_read): Call elf_rel_plt_read.
4137 (elf_gnu_ifunc_fns): New.
4138 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4139 Install elf_gnu_ifunc_fns.
4140 * infcall.c (find_function_return_type): New function.
4141 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4142 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4143 (stub_gnu_ifunc_resolve_name): New functions.
4144 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4145 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4146 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4148 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4150 Code cleanup for later STT_GNU_IFUNC support.
4151 * infcall.c (find_function_addr): Remove variable code, use explicit
4152 dereferences for it. Move VALUE_TYPE initialization later.
4154 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4156 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4157 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4158 (clear_pc_function_cache): Clear it.
4159 (find_pc_partial_function): Rename to ...
4160 (find_pc_partial_function_gnu_ifunc): ... this function. New
4161 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4162 (find_pc_partial_function): New wrapper for this function.
4163 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4165 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4167 GDB internal type support for STT_GNU_IFUNC.
4168 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4169 (elf_symtab_read): Set mst_text_gnu_ifunc for
4170 BSF_GNU_INDIRECT_FUNCTION.
4171 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4172 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4173 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4174 nodebug_got_plt_symbol.
4175 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4176 (TYPE_GNU_IFUNC): New.
4177 (struct main_type): New field flag_gnu_ifunc.
4178 (struct builtin_type): New field builtin_func_func.
4179 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4180 nodebug_got_plt_symbol.
4181 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4182 (in_gnu_ifunc_stub): New.
4183 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4185 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4186 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4187 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4189 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4190 * symtab.c (search_symbols): Likewise.
4191 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4192 and mst_slot_got_plt.
4193 (in_gnu_ifunc_stub): New declaration.
4195 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4197 Support a ring of related breakpoints.
4198 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4199 other functions, add gdb_assert.
4200 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4201 watchpoint_del_at_next_stop.
4202 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4203 (bpstat_stop_status): Handle ring in related_breakpoint.
4204 (set_raw_breakpoint_without_location): Initialize ring in
4206 (delete_breakpoint): Handle ring in related_breakpoint, use
4207 watchpoint_del_at_next_stop.
4208 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4210 2011-03-28 Tom Tromey <tromey@redhat.com>
4213 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4214 with `language_minimal'.
4216 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4218 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4219 instead of checking for STT_ARM_TFUNC symbol type.
4221 2011-03-25 Tom Tromey <tromey@redhat.com>
4223 * linespec.c (symbol_found): Restore line-based result for
4224 non-LOC_LABEL symbols.
4226 2011-03-25 Kai Tietz <ktietz@redhat.com>
4228 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4229 instead of strcmp for comparison.
4230 (tui_source_is_displayed): Likewise.
4231 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4233 2011-03-24 Mark Wielaard <mjw@redhat.com>
4235 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4237 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4238 (find_partial_die_in_comp_unit): Likewise in comment.
4239 (read_attribute_value): Likewise.
4240 (lookup_die_type): Likewise.
4241 (dwarf_form_name): Likewise.
4242 (dump_die_shallow): Likewise.
4243 (follow_die_ref_or_sig): Likewise.
4245 2011-03-24 Tom Tromey <tromey@redhat.com>
4247 PR breakpoints/11816:
4248 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4249 (decode_compound): Update.
4250 (find_function_symbol): New function.
4251 (decode_dollar): Update.
4252 (decode_label): Add 'function_symbol' parameter. Handle
4253 function-relative labels.
4254 (decode_variable): Update.
4255 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4256 not its line. Set `special_display' and canonical name for
4259 2011-03-24 Tom Tromey <tromey@redhat.com>
4261 * linespec.h (struct linespec_result) <special_display>: New
4263 * breakpoint.h (struct breakpoint) <display_canonical>: New
4265 * breakpoint.c (print_breakpoint_location): Respect
4267 (create_breakpoint_sal): Add 'display_canonical' parameter.
4268 (create_breakpoints_sal): Update.
4269 (create_breakpoint): Update.
4271 2011-03-24 Tom Tromey <tromey@redhat.com>
4273 * symtab.c (decode_line_spec): Update.
4274 * linespec.c (build_canonical_line_spec): Change type of
4276 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4277 (find_method, decode_all_digits, decode_dollar, decode_label)
4278 (symbol_found): Likewise.
4279 (init_linespec_result): New function.
4280 * breakpoint.c (struct captured_parse_breakpoint_args)
4281 <canonical_p>: New field, replaces addr_string_p.
4282 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4284 (parse_breakpoint_sals): Likewise.
4285 (do_captured_parse_breakpoint): Update.
4286 (create_breakpoint): Use struct linespec_result.
4287 (until_break_command): Update.
4288 (breakpoint_re_set_one): Update.
4289 (decode_line_spec_1): Update.
4290 * linespec.h (struct linespec_result): New.
4291 (init_linespec_result): Declare.
4293 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4295 * regcache.c (regcache_raw_read): If the target didn't supply a
4296 given raw register, mark it as unavailable.
4298 2011-03-23 Kai Tietz <ktietz@redhat.com>
4300 * breakpoint.c (clear_command): Use filename_cmp
4301 instead of strcmp for comparison.
4302 * buildsym.c (watch_main_source_file_lossage): Likewise.
4303 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4304 checking just for slash.
4305 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4306 strrchr and filename_cmp instead of strcmp for filenames.
4307 (add_old_header_file): Use filename_cmp
4308 instead of strcmp for comparison.
4309 * exec.c (exec_set_section_address): Likewise.
4310 * macrotab.c (macro_lookup_inclusion): Likewise.
4311 (macro_lookup_inclusion): Likewise.
4312 * elfread.c (_initialize_elfread): Likewise.
4313 (elfstab_offset_sections): Likewise.
4314 (elfstab_offset_sections): Use lbasename instead of
4316 * mdebugread.c (parse_partial_symbols): Likewise.
4317 (arse_partial_symbols): Use filename_(n)cmp instead of
4318 str(n)cmp for comparison.
4319 * minsyms.c (lookup_minimal_symbol): Likewise.
4320 * psymtab.c (read_psymtabs_with_filename): Likewise.
4321 * solib.c (solib_read_symbols): Likewise.
4322 (reload_shared_libraries_1): Likewise.
4323 * symmisc.c (maintenance_print_symbols): Likewise.
4324 * symfile.c (separate_debug_file_exists): Likewise.
4325 (reread_symbols): Likewise.
4326 (find_separate_debug_file_by_debuglink): Likewise.
4327 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4328 * source.c (add_path): Likewise.
4329 * symtab.c (filename_seen): Likewise.
4330 (file_matches): Likewise.
4331 (print_symbol_info): Likewise.
4332 (maybe_add_partial_symtab_filename): Likewise.
4333 (make_source_files_completion_list): Likewise.
4334 * xml-syscall.c (init_sysinfo): Likewise.
4335 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4336 IS_DIR_SEPARATOR for checking for trailing path separator.
4338 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4340 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4341 label abort_expression.
4342 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4343 DWARF_VALUE_OPTIMIZED_OUT.
4345 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4348 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4349 to linkage_name. Invert its value. Update the function comment.
4350 (c_type_print_varspec_suffix): Invert it at the caller.
4351 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4353 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4355 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4356 errors when reading the `stop_pc'.
4357 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4360 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4362 * NEWS: Document gdb.Write stream keyword.
4364 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4367 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4368 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4369 (dwarf2_add_field): Fix new_field->accessibility for
4370 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4372 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4376 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4377 other error classes. Do not print stack trace.
4379 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4381 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4382 (dwarf2_add_field): Fix new_field->accessibility for
4383 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4385 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4387 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4388 encountering a load via a non-SP register.
4390 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4392 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4393 field in returned unwinder.
4395 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4397 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4399 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4401 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4404 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4406 * frame.c (frame_unwind_register): Throw an error if unwinding the
4408 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4409 an unwind stop reason.
4410 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4411 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4412 UNWIND_UNAVAILABLE>: New.
4413 * inline-frame.c (inline_frame_unwind): Install
4414 default_frame_unwind_stop_reason.
4415 * frame-unwind.c: Include "exceptions.h".
4416 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4417 (default_frame_unwind_stop_reason): New.
4418 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4419 (default_frame_unwind_stop_reason): Declare.
4420 (struct frame_unwind) <stop_reason>: New function pointer.
4422 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4423 * dwarf2-frame.c: Include exceptions.h.
4424 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4425 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4426 computing the CFA. If such an error was thrown, set
4427 unavailable_retaddr.
4428 (dwarf2_frame_unwind_stop_reason): New.
4429 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4431 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4432 (dwarf2_signal_frame_unwind): Ditto.
4434 * amd64-tdep.c: Include "exceptions.h".
4435 (struct amd64_frame_cache): New field "base_p".
4436 (amd64_init_frame_cache): Clear it.
4437 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4438 Avoid reading registers with functions that throw if the register
4439 is not necessary to compute the frame base.
4440 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4441 swallowing NOT_AVAILABLE_ERROR.
4442 (amd64_frame_unwind_stop_reason): New.
4443 (amd64_frame_this_id): Don't build a frame id if the frame base
4445 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4446 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4447 base_p if the frame base was computable.
4448 (amd64_sigtramp_frame_unwind_stop_reason): New.
4449 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4450 frame base was unavailable.
4451 (amd64_sigtramp_frame_unwind): Install
4452 amd64_sigtramp_frame_unwind_stop_reason.
4453 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4454 base_p if the frame base was computable.
4455 (amd64_epilogue_frame_unwind_stop_reason): New.
4456 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4457 frame base was unavailable.
4458 (amd64_epilogue_frame_unwind): Install
4459 amd64_epilogue_frame_unwind_stop_reason.
4460 * i386-tdep.c: Include "exceptions.h".
4461 (struct i386_frame_cache): New field "base_p".
4462 (i386_init_frame_cache): Clear it.
4463 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4464 Avoid reading registers with functions that throw if the register
4465 is not necessary to compute the frame base.
4466 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4467 swallowing NOT_AVAILABLE_ERROR.
4468 (i386_frame_unwind_stop_reason): New.
4469 (i386_frame_this_id): Don't build a frame id if the frame base was
4471 (i386_frame_prev_register): Handle unavailable SP.
4472 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4473 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4474 base_p if the frame base was computable.
4475 (i386_epilogue_frame_unwind_stop_reason): New.
4476 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4477 base was unavailable.
4478 (i386_epilogue_frame_unwind): Install
4479 i386_epilogue_frame_unwind_stop_reason.
4480 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4481 base_p if the frame base was computable.
4482 (i386_sigtramp_frame_unwind_stop_reason): New.
4483 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4484 base was unavailable.
4485 (i386_sigtramp_frame_unwind): Install
4486 i386_sigtramp_frame_unwind_stop_reason.
4487 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4488 type's size, not the register's.
4489 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4491 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4492 default_frame_unwind_stop_reason.
4493 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4494 (alpha_heuristic_frame_unwind): Ditto.
4495 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4496 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4497 * avr-tdep.c (avr_frame_unwind): Ditto.
4498 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4500 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4501 * frv-tdep.c (frv_frame_unwind): Ditto.
4502 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4503 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4504 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4505 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4506 (hppa_stub_frame_unwind): Ditto.
4507 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4508 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4509 (ia64_libunwind_frame_unwind)
4510 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4511 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4512 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4513 * m32c-tdep.c (m32c_unwind): Ditto.
4514 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4515 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4516 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4517 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4518 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4519 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4520 * mep-tdep.c (mep_frame_unwind): Ditto.
4521 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4522 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4523 (mips_stub_frame_unwind): Ditto.
4524 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4525 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4526 * mt-tdep.c (mt_frame_unwind): Ditto.
4527 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4528 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4529 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4530 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4531 (s390_sigtramp_frame_unwind): Ditto.
4532 * score-tdep.c (score_prologue_unwind): Ditto.
4533 * sh-tdep.c (sh_frame_unwind): Ditto.
4534 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4535 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4536 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4537 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4538 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4539 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4540 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4541 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4542 (sparc64obsd_trapframe_unwind): Ditto.
4543 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4544 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4545 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4546 * v850-tdep.c (v850_frame_unwind): Ditto.
4547 * vax-tdep.c (vax_frame_unwind): Ditto.
4548 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4549 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4550 * xtensa-tdep.c (xtensa_unwind): Ditto.
4552 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4554 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4555 there's always a frame. Use get_frame_pc_if_available instead of
4556 get_frame_pc, and if there's no PC available, don't look up a
4559 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4561 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4564 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4566 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4569 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4571 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4572 * frame.c (frame_unwind_caller_pc_if_available): New.
4573 * stack.c (frame_info): Handle unavailable PC.
4575 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4577 * frame.c (frame_unwind_pc): Rename to ...
4578 (frame_unwind_pc_if_available): ... this. New `pc' output
4579 parameter. Change return type to int. Gracefully handle
4580 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4581 happened, or 1 otherwise.
4582 (frame_unwind_pc): Reimplement on top of
4583 frame_unwind_pc_if_available.
4584 (get_frame_func): Rename to ...
4585 (get_frame_func_if_available): New `pc' output parameter. Change
4586 return type to int. Gracefully handle the PC not being available.
4587 (get_frame_func): Reimplement on top of
4588 get_frame_func_if_available.
4589 (select_frame): Handle the PC being unavailable.
4590 (get_prev_frame): Handle the PC being unavailable.
4591 (get_frame_pc_if_available): New.
4592 (get_frame_address_in_block_if_available): New.
4593 (find_frame_sal): Handle the frame PC not being available.
4594 * frame.h (get_frame_pc_if_available): Declare.
4595 (get_frame_address_in_block_if_available): Declare.
4596 (get_frame_func_if_available): Declare.
4597 * stack.c (print_frame_info): Handle the PC being unavailable.
4598 (find_frame_funname): Ditto.
4599 (print_frame): Handle the PC being unavailable.
4600 (get_frame_language): Ditto.
4601 * blockframe.c (get_frame_block): Ditto.
4602 * macroscope.c (default_macro_scope): Ditto.
4603 * tui/tui-stack.c (tui_show_frame_info): Ditto.
4605 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4607 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
4608 NOT_AVAILABLE_ERROR when evaluating the location expression.
4610 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4612 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
4613 returning that the register piece is unavailable/optimized out.
4614 (write_pieced_value): Handle get_frame_register_bytes returning
4615 that the register piece is unavailable/optimized out when doing a
4616 read-modify write of a bitfield.
4617 * findvar.c (value_from_register): Handle get_frame_register_bytes
4618 returning that the register piece is unavailable/optimized out.
4619 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
4620 and `unavailablep'. Throw error on bad debug info. Use
4621 frame_register instead of frame_register_read, to fill in the new
4623 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
4625 * valops.c: (value_assign): Adjust, and handle
4626 get_frame_register_bytes failing.
4627 * spu-tdep.c: Include exceptions.h.
4628 (spu_software_single_step): Adjust, and handle
4629 get_frame_register_bytes failing.
4630 (spu_get_longjmp_target): Ditto.
4631 * gdbarch.sh (register_to_value): Change to return int. New
4632 parameters `optimizedp' and `unavailablep'.
4633 * gdbarch.h, gdbarch.c: Regenerate.
4634 * i386-tdep.c (i386_register_to_value): Adjust to new
4635 gdbarch_register_to_value interface.
4636 * i387-tdep.c (i387_register_to_value): Ditto.
4637 * i387-tdep.h (i387_register_to_value): Ditto.
4638 * alpha-tdep.c (alpha_register_to_value): Ditto.
4639 * ia64-tdep.c (ia64_register_to_value): Ditto.
4640 * m68k-tdep.c (m68k_register_to_value): Ditto.
4641 * mips-tdep.c (mips_register_to_value): Ditto.
4642 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
4644 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4646 * findvar.c (value_of_register): Mark the value as unavailable, if
4647 the register is unavailable.
4648 * frame.h (frame_register_unwind): New `unavailablep' parameter.
4649 (frame_register): New `unavailablep' parameter.
4650 (frame_register_read): Update comment.
4651 * frame.c (frame_register_unwind): New `unavailablep' parameter.
4652 Set it if the register is unavailable. If the register is
4653 unavailable, clear the output buffer.
4654 (frame_register): New `unavailablep' parameter. Pass it down.
4655 (frame_unwind_register): Adjust.
4656 (put_frame_register): Adjust.
4657 (frame_register_read): Adjust. Also return false if the register
4659 (frame_register_unwind_location): Adjust.
4660 * sentinel-frame.c (sentinel_frame_prev_register): If the register
4661 is unavailable, mark the value accordingly.
4662 * stack.c (frame_info): Handle unavailable registers.
4664 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4666 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
4667 simplify, using regcache_cooked_read.
4669 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4671 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
4672 (regcache_raw_read_unsigned, regcache_raw_read_signed)
4673 (regcache_raw_read_unsigned, regcache_raw_read_part)
4674 (regcache_cooked_read, regcache_cooked_read_signed)
4675 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
4676 (regcache_cooked_read_ftype): Change return to enum
4678 * regcache.c: Include exceptions.h
4679 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
4680 (do_cooked_read): Change return to enum register_status. Always
4681 forward to regcache_cooked_read.
4682 (regcache_raw_read): Change return to enum register_status. If
4683 the register is not REG_VALID, memset the buffer. Return the
4685 (regcache_raw_read_signed): Handle non-REG_VALID registers and
4686 return the register's status.
4687 (regcache_raw_read_unsigned): Ditto.
4688 (regcache_cooked_read): Change return to enum register_status.
4689 Assert that with read-only regcaches, the register's status must
4690 be known. If the regcache is read-only, and the register is not
4691 REG_VALID, memset the buffer. Return the register's status.
4692 (regcache_cooked_read_signed): Change return to enum
4693 register_status. Handle non-REG_VALID registers and return the
4695 (regcache_cooked_read_unsigned): Change return to enum
4696 register_status. Handle non-REG_VALID registers and return the
4698 (regcache_xfer_part, regcache_raw_read_part)
4699 (regcache_cooked_read_part): Change return to enum
4700 register_status. Return the register's status.
4701 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
4703 (regcache_dump): Handle unavailable cooked registers.
4704 * frame.c (do_frame_register_read): Adjust interface to match
4705 regcache_cooked_read_ftype.
4706 * gdbarch.sh (pseudo_register_read): Change return to enum
4708 * gdbarch.h, gdbarch.c: Regenerate.
4710 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
4712 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
4713 register_status. If reading a raw register indicates the raw
4714 register is not valid, return the raw register's status,
4715 otherwise, return REG_VALID.
4716 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
4717 register_status. Handle non-REG_VALID raw registers and return
4718 the register's status.
4719 * arm-tdep.c (arm_neon_quad_read)
4720 (arm_pseudo_read): Change return to enum register_status. Handle
4721 non-REG_VALID raw registers and return the register's status.
4722 * avr-tdep.c (avr_pseudo_register_read): Ditto.
4723 * frv-tdep.c (frv_pseudo_register_read): Ditto.
4724 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
4725 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
4726 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
4728 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
4729 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
4730 (m32c_part_write, m32c_cat_read, m32c_cat_write)
4731 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
4732 (m32c_pseudo_register_read): Change return to enum
4733 register_status. Adjust.
4734 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
4735 enum register_status. Return the register's status.
4736 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
4737 register_status. Return the register's status.
4738 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
4739 * mips-tdep.c (mips_pseudo_register_read): Ditto.
4740 * mt-tdep.c (mt_pseudo_register_read): Ditto.
4741 * rs6000-tdep.c (move_ev_register_func): New typedef.
4742 (e500_move_ev_register): Use it. Change return to enum
4743 register_status. Return the register's status.
4744 (do_regcache_raw_read): New function.
4745 (do_regcache_raw_write): New function.
4746 (e500_pseudo_register_read): Change return to enum
4747 register_status. Return the register's status. Use
4748 do_regcache_raw_read.
4749 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
4750 (dfp_pseudo_register_read): Change return to enum register_status.
4751 Return the register's status.
4752 (vsx_pseudo_register_read): Ditto.
4753 (efpr_pseudo_register_read): Ditto.
4754 (rs6000_pseudo_register_read): Ditto.
4755 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
4756 register_status. Return the register's status.
4757 * sh64-tdep.c (pseudo_register_read_portions): New function.
4758 (sh64_pseudo_register_read): Change return to enum
4759 register_status. Use pseudo_register_read_portions. Return the
4761 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
4762 register_status. Return the register's status.
4763 * sh-tdep.c (pseudo_register_read_portions): New function.
4764 (sh_pseudo_register_read): Change return to enum register_status.
4765 Use pseudo_register_read_portions. Return the register's status.
4766 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
4767 enum register_status. Return the register's status.
4768 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
4769 * spu-tdep.c (spu_pseudo_register_read_spu)
4770 (spu_pseudo_register_read): Ditto.
4771 * xtensa-tdep.c (xtensa_register_read_masked)
4772 (xtensa_pseudo_register_read): Ditto.
4773 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
4775 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4777 * python/py-value.c (valpy_getitem): Fix formatting of error function
4780 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4782 ARI fixes: Add missing internationalization markups throughout
4784 * darwin-nat-info.c: Ditto.
4787 * mi/mi-main.c: Ditto.
4789 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4791 ARI fixes: Add missing internationalization markups throughout
4794 * cp-name-parser.y: Ditto.
4797 * objc-exp.y: Ditto.
4800 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4802 ARI fixes: Messages should have no trailing new lines.
4803 * darwin-nat.c (mach_check_error): Remove trailing new line from
4804 warning function call message.
4805 * record.c (bfdcore_read): Idem for error call.
4807 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4809 * common/signals.c (target_signal_from_host): Add _ markup to error
4810 function call message.
4811 (target_signal_to_host): Add _ markup and remove trailing new line
4812 from warning call message.
4813 (target_signal_from_command): Add _ markup to error function call
4816 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
4820 * python/python.c (gdbpy_write): Accept a stream argument and
4821 operate to the appropriate stream.
4822 (gdbpy_flush): Likewise.
4823 (_initialize_python): Add stream constants.
4824 (finish_python_initialization): Add GdbOutputErrorFile class.
4826 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4828 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4830 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4832 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
4833 to store_signed_integer. Add debug message when relocating CALL
4834 instructions. Fix formatting of debug message.
4835 * i386-tdep.c (i386_relocate_instruction): Ditto.
4837 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4839 * target.h (struct target_ops): Remove to_lookup_symbol field.
4840 (target_lookup_symbol): Delete macro.
4841 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
4842 (update_current_target, setup_target_debug): Remove handling
4843 of to_lookup_symbol target_ops field.
4844 * ada-tasks.c (get_known_tasks_addr): Remove use of
4845 target_lookup_symbol.
4846 * coffread.c (coff_symtab_read): Likewise.
4847 * dbxread.c (read_dbx_symtab): Ditto.
4849 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4852 * configure.ac: Add getthrds declaration check.
4853 * configure, config.in: Regenerate.
4854 * aix-thread.c (getthrds): Declare only if not already declared
4855 in procinfo.h. More declaration out of get_signaled_thread to
4858 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
4860 * python/py-symtab.c: Populate symtab_object_methods,
4862 (stpy_is_valid): New function.
4863 (salpy_is_valid): Ditto.
4864 * python/py-symbol.c: Declare symbol_object_methods. Populate.
4865 (sympy_is_valid): New function.
4866 * python/py-objfile.c: Declare objfile_object_methods. Populate.
4867 (objfpy_is_valid): New function.
4868 * python/py-inferior.c: Populate inferior_object_methods.
4869 (infpy_is_valid): New function.
4870 * python/py-infthread.c: Populate thread_object_methods.
4871 (thpy_is_valid): New function.
4872 * python/py-block.c: Declare block_object_methods. Populate. Declare
4873 block_iterator_object_methods. Populate.
4874 (blpy_is_valid): New function.
4875 (blpy_iter_is_valid): Ditto.
4877 2011-03-16 Keith Seitz <keiths@redhat.com>
4879 * linespec.c (find_methods): Canonicalize NAME before looking
4881 (name_end): New function.
4882 (keep_name_info): New function.
4883 (decode_line_1): Use keep_name_info.
4884 (decode_compound): Likewise.
4885 * cli/cli-utils.h (remove_trailing_whitespace): New function.
4886 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
4889 * linespec.c (locate_first_half): Keep overload information, too.
4890 (decode_compound): Use a string to represent break characters
4892 If P points to a break character, do not increment it.
4893 For C++ and Java, keep overload information and relevant keywords.
4894 If we cannot find a symbol, search the minimal symbols.
4897 * linespec.c (decode_compound): Rename SAVED_ARG to
4899 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
4901 Pass a valid block to lookup_symbol.
4902 (lookup_prefix_sym): Likewise.
4903 (find_method): Construct search name based on SYM_CLASS instead
4905 * psymtab.c (lookup_partial_symbol): Add language parameter.
4906 (lookup_symbol_aux_psymtabs): Likewise.
4907 Don't assume that the psymtab we found was the right one. Search
4908 for the desired symbol in the symtab to be certain.
4909 (psymtab_search_name): New function.
4910 (lookup_partial_symbol): Use psymtab_search_name.
4911 Add language parameter.
4912 (read_symtabs_for_function): Add language parameter and pass to
4913 lookup_partial_symbol.
4914 (find_symbol_file_from_partial): Likewise.
4916 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
4919 * dwarf2read.c (noop_record_line): New function.
4920 (dwarf_decode_lines): Ignore line tables for GCd functions.
4922 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4924 Fix ARI warnings about new lines at the end of messages, which
4925 are unneeded as there is a new line added at the end of the message
4927 * darwin-nat.c (darwin_stop_inferior): Ditto.
4928 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
4929 * dfp.c (decimal_to_number): Ditto.
4930 * exec.c (print_section_info): Ditto.
4931 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
4932 * osdata.c (get_osdata): Ditto.
4933 * record.c (bfdcore_write): Ditto.
4934 * remote-mips.c (mips_readchar): Ditto.
4935 * remote.c (read_ptid): Ditto.
4936 * ser-mingw.c (ser_windows_raw): Ditto.
4937 * tracepoint.c (add_local_symbols): Ditto.
4938 * windows-nat.c (fake_create_process): Ditto.
4940 2011-03-16 Tom Tromey <tromey@redhat.com>
4942 * tracepoint.c (stop_tracing): Don't declare.
4943 * event-top.c (after_char_processing_hook): Add `(void)'.
4945 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
4947 * NEWS: Add Parameter sub-classing description.
4949 2011-03-16 Kai Tietz <ktietz@redhat.com>
4951 * MAINTAINERS: Update my e-mail address.
4953 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
4955 * MAINTAINERS: Add myself for write after approval privileges.
4957 2011-03-15 Michael Snyder <msnyder@vmware.com>
4959 * frame.c (find_frame_sal): Assert sym is not null.
4961 * dbxread.c (process_one_symbol): Assert 'name' is not null.
4963 * objc-lang.c (selectors_info): Check strchr for null result.
4965 * stabsread.c (define_symbol): Guard against bad stabstring input.
4967 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4969 Remove trailing spaces and tabulations from pascal language
4974 p-valprint.c: Ditto.
4976 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4978 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
4979 than LOW. Comment it.
4980 (read_partial_die): Call complaint for inappropriate zero LOWPC or
4981 HIGHPC not strictly higher than LOWPC.
4983 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4985 Fix formatting of function declarations returning a pointer in
4987 * varobj.c (varobj_add_child): Ditto.
4988 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
4989 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
4991 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4993 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
4994 for the "generic" vector ABI used with GCC 4.3 and later.
4995 (ppc64_sysv_abi_return_value): Likewise.
4997 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4999 * infcall.c (call_function_by_hand): Function return value is
5000 always a non_lval, even when using struct_return.
5002 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5004 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5005 (map_display_numbers): New.
5006 (do_delete_display): New.
5007 (undisplay_command): Use map_display_numbers.
5008 (do_enable_disable_display): New.
5009 (enable_disable_display_command): New function.
5010 (enable_display): Delete.
5011 (enable_display_command): New.
5012 (disable_display_command): Reimplement.
5013 (_initialize_printcmd): Adjust "enable display" command to use
5014 `enable_display_command' as callback.
5016 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5018 * NEWS: Add Python breakpoint 'stop' operation.
5020 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5022 * NEWS: Delete duplicate entry. Fix typo.
5024 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5026 Fix ARI warning about function names in first column.
5027 Put prototype declaration on same line as return type.
5028 * objc-exp.y: Ditto.
5030 * python/py-stopevent.h: Ditto.
5031 For long function names, split parameters to
5032 allow function name on same line as return type.
5033 * solib-pa64.c: Ditto.
5036 For long function declaration, use single line.
5037 * hppa-tdep.h: Ditto.
5038 * inferior.h: Ditto.
5040 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5042 * python/python.h: Declare gdbpy_should_stop and
5043 gdbpy_breakpoint_has_py_cond.
5044 * python/python.c: Add python.h to includes. Remove python.h from
5045 HAVE_PYTHON definition
5046 (gdbpy_should_stop): New dummy function.
5047 (gdbpy_breakpoint_has_py_cond): New dummy function.
5048 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5049 sub-classing capabilities.
5050 (gdbpy_should_stop): New function.
5051 (gdbpy_breakpoint_has_py_cond): New function.
5052 (local_setattro): New function.
5053 * breakpoint.c (condition_command): Add check for Python 'stop'
5055 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5056 operation function as part of stop/continue tests.
5058 2011-03-14 Tom Tromey <tromey@redhat.com>
5061 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5062 (needs_frame_dwarf_call): Likewise.
5064 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5066 Fix ARI warning about functions without parameters that do not
5068 * breakpoint.c (all_tracepoints): Replace () by (void).
5069 * f-exp.y (match_string_literal): Ditto.
5071 * m2-exp.y (yylex): Ditto.
5072 * mep-tdep.c (current_me_module): Ditto.
5073 (current_options): Ditto.
5074 (current_cop_data_bus_width): Ditto.
5075 (current_cr_names): Ditto.
5076 (current_cr_is_float): Ditto.
5077 (current_ccr_names): Ditto.
5078 * objc-exp.y (yylex): Ditto.
5079 * p-exp.y (yylex): Ditto.
5080 * remote.c (send_interrupt_sequence): Ditto.
5081 * tracepoint.c (current_trace_status): Ditto.
5082 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5083 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5085 2011-03-11 Michael Snyder <msnyder@vmware.com>
5087 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5088 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5089 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5090 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5091 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5093 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5094 (delete_async_event_handler): Ditto.
5096 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5098 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5100 * top.c (set_verbose): Assert showcmd was found.
5102 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5104 * xtensa-tdep.c (warning_once): Correct style issues.
5106 2011-03-11 Yao Qi <yao@codesourcery.com>
5108 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5110 2011-03-11 Andreas Schwab <schwab@redhat.com>
5112 * common/aclocal.m4: Remove.
5114 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5116 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5117 (xtensa_write_register, xtensa_read_register): Likewise.
5118 (xtensa_hextochar): Removed.
5119 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5121 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5123 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5124 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5125 (xtensa_alloc_frame_cache): Add initialization for new fields.
5126 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5127 (warning_once): New function.
5128 (xtensa_insn_kind): New item c0opc_and.
5129 (call0_classify_opcode): Add the case for AND instruction.
5130 (call0_track_op): Change arguments. New local variable litbase.
5131 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5132 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5134 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5135 (call0_analyze_prologue): Update the comments. Change arguments.
5136 Add the variety of updates to handle extended prologues, which now can
5137 conduct dynamic stack adjustments.
5138 (call0_frame_cache): Likewise.
5139 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5140 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5142 2011-03-10 Michael Snyder <msnyder@vmware.com>
5144 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5145 (cmd_qtframe): Ditto.
5146 (cmd_qtbuffer): Ditto.
5147 (cmd_bigqtbuffer): Ditto.
5149 2011-03-10 Tom Tromey <tromey@redhat.com>
5151 * tracepoint.c (trace_actions_command): Update.
5152 * thread.c (thread_apply_command): Update.
5153 * reverse.c (delete_bookmark_command): Update.
5154 (bookmarks_info): Update.
5155 * printcmd.c (undisplay_command): Update.
5156 * memattr.c (mem_enable_command): Update.
5157 (mem_disable_command): Update.
5158 (mem_delete_command): Update.
5159 * inferior.c (detach_inferior_command): Update.
5160 (kill_inferior_command): Update.
5161 (remove_inferior_command): Update.
5162 * cli/cli-utils.h (struct get_number_or_range_state): New.
5163 (init_number_or_range): Declare.
5164 (get_number_or_range): Update.
5165 * cli/cli-utils.c (init_number_or_range): New function.
5166 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5168 (number_is_in_list): Update.
5169 * breakpoint.h (get_tracepoint_by_number): Update.
5170 * breakpoint.c (map_breakpoint_numbers): Update for change to
5171 get_number_or_range.
5172 (find_location_by_number): Use get_number, not
5173 get_number_or_range.
5174 (trace_pass_set_count): New function.
5175 (trace_pass_command): Update for change to get_number_or_range.
5177 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5180 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5182 * python/py-param.c (add_setshow_generic): Add set/show callback
5183 parameters. Register Python object context.
5184 (get_show_value): New function.
5185 (get_set_value): New function.
5186 (call_doc_function): New function.
5187 (get_doc_string): Move behind get_show_value/get_set_value.
5189 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5191 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5193 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5195 * xtensa-tdep.c (xtensa_read_register): Add comment.
5196 (xtensa_write_register): Likewise.
5197 (xtensa_hextochar): Add comment and update to match coding conventions.
5198 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5199 (execute_l32e, execute_s32e, execute_code): Update comments.
5200 (xtensa_exception_handler_t): Update to match coding conventions.
5201 (xtensa_insn_kind): Likewise.
5203 2011-03-09 Michael Snyder <msnyder@vmware.com>
5205 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5207 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5209 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5211 2011-03-09 Tom Tromey <tromey@redhat.com>
5213 * thread.c (restore_selected_frame): Handle frame_level == -1.
5214 (make_cleanup_restore_current_thread): Use
5215 get_selected_frame_if_set.
5216 * frame.h (get_selected_frame_if_set): Declare.
5217 * frame.c (get_selected_frame_if_set): New function.
5219 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5221 * cli/cli-cmds.c (shell_escape): Use lbasename.
5222 * coffread.c (coff_start_symtab): Constify parameter.
5223 (complete_symtab): Constify `name' parameter.
5224 (coff_symtab_read): Constify `filestring' local.
5225 (coff_getfilename): Constify return and `result' local.
5227 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5228 * linux-fork.c (info_checkpoints_command): Use lbasename.
5229 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5230 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5231 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5232 * procfs.c (procfs_make_note_section): Use lbasename.
5233 * tui/tui-io.c (printable_part): Constity return and parameter.
5235 (print_filename): Constify parameters, and local `s'.
5236 (tui_rl_display_match_list): Constify local `temp'.
5238 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5241 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5242 Fix DWARF-3+ DW_AT_accessibility default assumption.
5243 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5244 cu->header.version >= 3.
5246 2011-03-09 Yao Qi <yao@codesourcery.com>
5248 * common/Makefile.in: Remove.
5249 * common/configure: Remove.
5250 * common/configure.ac: Remove.
5252 2011-03-09 Yao Qi <yao@codesourcery.com>
5255 2011-02-11 Yao Qi <yao@codesourcery.com>
5257 * common/Makefile.in: Add copyright header.
5259 2011-02-11 Yao Qi <yao@codesourcery.com>
5261 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5263 * configure.ac: Add common to sub dir.
5264 * configure: Regenerate.
5266 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5268 * xtensa-tdep.c (call0_ret): New function.
5269 (xtensa_skip_prologue): Speed up analysis.
5271 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5273 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5274 while executing MI command -data-list-changed-registers.
5276 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5278 * xtensa-tdep.c (xtensa_read_register): New function.
5279 (xtensa_write_register): New function.
5280 (xtensa_find_register_by_name): New function.
5281 (xtensa_windowed_frame_cache): Update comments in type description.
5282 (xtensa_frame_cache): Likewise.
5283 (xtensa_window_interrupt_insn): New function.
5284 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5285 (xtensa_insn_kind): Add new instructions.
5286 (rwx_special_register): New function.
5287 (call0_classify_opcode): Add new instructions to the analysis.
5288 (a0_saved, a7_saved, a11_saved): New variables.
5289 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5290 (execute_l32e): New function.
5291 (execute_s32e): New function.
5292 (xtensa_exception_handler_t): New type.
5293 (execute_code): New function.
5294 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5295 analysis for Xtensa Window Exception handlers.
5297 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5299 * xtensa-tdep.c (TX_PS): New.
5300 (windowing_enabled): Update to count for Call0 ABI.
5301 (xtensa_hextochar): New.
5302 (xtensa_init_reggroups): Make algorithm generic.
5303 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5305 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5307 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5309 2011-03-08 Michael Snyder <msnyder@vmware.com>
5311 * i386-tdep.c (i386_follow_jump): Check return value of
5313 (i386_analyze_struct_return): Ditto.
5314 (i386_skip_probe): Ditto.
5315 (i386_match_insn): Ditto.
5316 (i386_skip_noop): Ditto.
5317 (i386_analyze_frame_setup): Ditto.
5318 (i386_analyze_register_saves): Ditto.
5319 (i386_skip_prologue): Ditto.
5320 (i386_skip_main_prologue): Ditto.
5322 * target.c (read_whatever_is_readable): Fix memory leak.
5324 * i386-tdep.c (i386_process_record): Document fall through.
5326 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5328 Fix DWARF-3+ DW_AT_accessibility default assumption.
5329 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5330 cu->header.version >= 3.
5332 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5334 * remote.c (remote_check_symbols): Skip if the target has no
5337 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5339 * target.c (read_whatever_is_readable): Reformat comment,
5340 with a minor typo fix. Minor reformatting of the code.
5342 2011-03-08 Yao Qi <yao@codesourcery.com>
5344 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5345 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5346 Use cached result instead of calling displaced_in_arm_mode again.
5347 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5348 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5349 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5350 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5351 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5352 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5353 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5354 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5355 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5356 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5357 (arm_catch_kernel_helper_return): Likewise.
5358 * gdb/arm-tdep.h : Update function declarations.
5360 2011-03-07 Michael Snyder <msnyder@vmware.com>
5362 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5364 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5366 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5368 * elfread.c (elf_symtab_read): Stop memory leak.
5370 * main.c (captured_main): Fix memory leak.
5372 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5374 * ada-lang.c (compare_names): Call is_name_suffix with string1
5377 2011-03-07 Tom Tromey <tromey@redhat.com>
5379 * xcoffread.c (xcoff_sym_fns): Update.
5380 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5381 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5382 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5383 (symbol_file_add_with_addrs_or_offsets): Likewise.
5384 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5385 * somread.c (som_sym_fns): Update.
5386 * psymtab.h (require_partial_symbols): Declare.
5387 * psymtab.c (require_partial_symbols): New function.
5388 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5389 (ALL_OBJFILE_PSYMTABS): Undef.
5390 (ALL_PSYMTABS): Move from psympriv.h.
5391 (lookup_partial_symtab, find_pc_sect_psymtab)
5392 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5393 (find_last_source_symtab_from_partial)
5394 (forget_cached_source_info_partial)
5395 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5396 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5397 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5398 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5399 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5400 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5401 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5402 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5403 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5405 * mipsread.c (ecoff_sym_fns): Update.
5406 * machoread.c (macho_sym_fns): Update.
5407 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5408 (read_psyms): New function.
5409 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5410 (elf_sym_fns_lazy_psyms): New global.
5411 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5412 dwarf2_build_psymtabs.
5413 * dbxread.c (aout_sym_fns): Update.
5414 * coffread.c (coff_sym_fns): Update.
5416 2011-03-07 Tom Tromey <tromey@redhat.com>
5418 * infrun.c (print_exited_reason): Include inferior id and pid in
5421 2011-03-07 Tom Tromey <tromey@redhat.com>
5423 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5425 (target_has_execution_1): Update.
5426 (target_has_execution_current): Declare.
5427 (target_has_execution): Call target_has_execution_current.
5428 (default_child_has_execution): Update.
5429 * target.c (default_child_has_execution): Add 'the_ptid'
5431 (target_has_execution_1): Likewise.
5432 (target_has_execution_current): New function.
5433 (add_target): Update.
5434 (init_dummy_target): Update.
5435 * remote-m32r-sdi.c (m32r_has_execution): New function.
5436 (init_m32r_ops): Use it.
5437 * record.c (record_core_has_execution): Now static. Add
5438 'the_ptid' parameter.
5439 * inferior.c (have_live_inferiors): Don't save current thread.
5440 Use target_has_execution_1.
5442 2011-03-07 Yao Qi <yao@codesourcery.com>
5444 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5446 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5448 * elfread.c (elf_symtab_read): Minor reformatting.
5450 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5452 * objc-lang.c (selectors_info): Minor reformatting.
5454 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5456 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5458 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5459 Michael Snyder <msnyder@vmware.com>
5461 * ada-valprint.c (ada_val_print_array): Move the declaration of
5462 "byte_order" and "elttype" inside the block where these variables
5463 are actually used. Remove some special handling for the case
5464 where "elttype" and "eltlen" are null. Replace by a comment
5465 and a couple of assertion checks.
5467 2011-03-05 Michael Snyder <msnyder@vmware.com>
5469 * source.c (add_path): Replace semicolon at end of block.
5470 * dwarf2expr.c (execute_stack_op): Ditto.
5472 2011-03-05 Mike Frysinger <vapier@gentoo.org>
5474 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5475 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5476 (bfin-*-*): Likewise.
5478 2011-03-05 Michael Snyder <msnyder@vmware.com>
5480 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5481 * mdebugread.c (parse_symbol): Ditto.
5482 * parse.c (parse_exp_in_context): Ditto.
5483 * source.c (add_path): Ditto.
5484 * utils.c (gnu_debuglink_crc32): Ditto.
5485 * varobj.c (variable_language): Ditto.
5487 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5489 2011-03-04 Michael Snyder <msnyder@vmware.com>
5491 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5493 * symfile.c (simple_overlay_update): Check for null return value
5494 from lookup_minimal_symbol.
5496 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5498 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5500 * eval.c (parse_and_eval_address_1): Remove function.
5501 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5502 instead of parse_and_eval_address_1.
5503 * value.h (parse_and_eval_address_1): Remove prototype.
5505 2011-03-04 Michael Snyder <msnyder@vmware.com>
5507 * remote.c (putpkt_binary): Document that case stmt falls through.
5509 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5511 * breakpointc (print_it_typical): Move NULL check from here...
5512 (print_bp_stop_message): ... to here.
5514 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
5516 * breakpoint.c (enable_command): Use break instead of continue,
5517 and fill in a missing break.
5518 (disable_command): Ditto.
5520 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5522 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5523 (terminal_save_ours): Remove misleading comment.
5524 (inflow_inferior_data_cleanup): Free ttystate.
5525 (inflow_inferior_exit): Likewise.
5526 (copy_terminal_info): Copy ttystate.
5528 * serial.c (serial_copy_tty_state): New function.
5529 * serial.h (serial_copy_tty_state): Add prototype.
5530 (struct serial_ops): Add copy_tty_state callback.
5531 * ser-base.c (ser_base_copy_tty_state): New function.
5532 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5533 * ser-go32.c (dos_copy_tty_state): New function.
5534 (dos_ops): Install copy_tty_state callback.
5535 * ser-mingw.c (_initialize_ser_windows): Likewise.
5536 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5537 * ser-unix.c (hardwire_copy_tty_state): New function.
5538 (_initialize_ser_hardwire): Install it.
5540 2011-03-04 Michael Snyder <msnyder@vmware.com>
5542 * breakpoint.c (create_breakpoint): Add missing break statement.
5544 Reverting this patch:
5545 * infcall.c (call_function_by_hand): Add break statements for lint.
5547 Reverting this patch:
5548 * cli/cli-script.c (script_from_file): Add break for lint.
5550 2011-03-04 Michael Snyder <msnyder@vmware.com>
5552 * solib.c (reload_shared_libraries_1): Close memory leak.
5554 2011-03-03 Tom Tromey <tromey@redhat.com>
5557 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5560 2011-03-03 Michael Snyder <msnyder@vmware.com>
5562 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5563 fields of struct 'st' to zero.
5565 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5566 sal.pspace before calling set_current_source_symtab_and_line.
5568 2011-03-03 Yao Qi <yao@codesourcery.com>
5570 * Makefile.in (configure-common): Remove. Let Makefile
5571 in dir common to rebuild itself.
5572 (common/Makefile): Likewise.
5574 2011-03-03 Joel Brobecker <brobecker@adacore.com>
5576 * utils.c (parse_escape): Add i18n markup in error message.
5578 2011-03-03 Yao Qi <yao@codesourcery.com>
5580 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5582 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5583 (displaced_write_reg, displaced_read_reg): Likewise.
5584 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5585 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5586 (cleanup_branch): Replace magic number 14 and 15 with
5587 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5589 2011-03-02 Michael Snyder <msnyder@vmware.com>
5591 * maint.c (maintenance_do_deprecate): No need to check for NULL.
5593 * cli/cli-script.c (script_from_file): Add break for lint.
5595 * mdebugread.c (parse_partial_symbols): Fix indent.
5597 * target-descriptions.c (tdesc_gdb_type): No need to call
5598 xstrdup, callee saves a copy.
5600 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
5602 * infcall.c (call_function_by_hand): Add break statements for lint.
5604 * utils.c (parse_escape): Escape the escape char.
5606 * python/py-inferior.c (build_inferior_list): Error out if
5607 PyList_Append fails.
5608 (gdbpy_inferiors): Error out if build_inferior_list fails.
5610 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
5613 * record.c (record_restore): Move printf to before error return.
5615 2011-03-02 Yao Qi <yao@codesourcery.com>
5617 * arm-tdep.h (struct displaced_step_closure): Add two new fields
5618 is_thumb and insn_size.
5619 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
5620 on both ARM and Thumb mode.
5621 (arm_process_displaced_insn): Set is_thumb and insn_size.
5622 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
5623 (arm_displaced_step_fixup): Likewise.
5625 2011-03-01 Michael Snyder <msnyder@vmware.com>
5627 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
5629 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
5631 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
5633 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
5635 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
5638 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
5639 which shadows function parameter.
5641 * tracepoint.c (create_tsv_from_upload): Superfluous call
5642 to xstrdup. Callee already calls xstrdup.
5644 * linespec.c (decode_line_1): Remove unnecessary null check.
5646 * tracepoint.c (scope_info): Fix mem leak, remove underused
5649 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
5650 superfluous null check.
5652 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
5653 (value_of_builtin_frame_fp_reg): Ditto.
5655 * event-top.c (display_gdb_prompt): Remove superfluous null check.
5657 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
5660 * linespec.c (decode_line_1): Check for null before dereference.
5662 * reverse.c (record_restore): Move null-check to before pointer
5665 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
5667 * objc-lang.c (selectors_info): Add explanitory comment.
5668 (classes_info): Ditto.
5670 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5672 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
5673 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
5674 versions of the trampoline. Handle Thumb vs. ARM addresses.
5675 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
5676 (arm_linux_init_abi): Install it.
5677 * arm-tdep.c (arm_psr_thumb_bit): Make global.
5678 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
5680 2011-02-28 Michael Snyder <msnyder@vmware.com>
5682 * ui-out.c (ui_out_field_core_addr): Make local char buffer
5683 a little bigger, to avoid possibility of an overflow.
5685 * breakpoint.c (breakpoint_adjustment_warning): Make local char
5686 buffers a little bigger, to avoid possibility of an overflow.
5688 * coffread.c (coff_getfilename): Add check to avoid overflow.
5690 * objc-lang.c (selectors_info): Add a small safety margin to
5692 (classes_info): Error out on too long REGEXP.
5694 * infrun.c (handle_inferior_event): Remove unused function call.
5696 * fork-child.c (fork_inferior): Remove ifdef'd code and
5699 * linux-thread-db.c (attach_thread): Discard unused value.
5701 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
5703 * remote.c (remote_get_noisy_reply): Discard unused value.
5704 (remote_vcont_resume): Ditto.
5705 (remote_stop_ns): Ditto.
5707 * linespec.c (decode_objc): Delete unused variable.
5709 * tui/tui-regs.c (tui_register_format): Delete unused variable.
5711 * dwarf2read.c (add_partial_symbol): Discard unused values.
5712 (read_base_type): Delete unused variable.
5714 * dbxread.c (read_dbx_symtab): Discard unused value.
5716 * eval.c (evaluate_subexp_standard): Delete unused variable,
5717 and discard unused values.
5719 * infcmd.c (_initialize_infcmd): Discard unused values.
5721 * stabsread.c (rs6000_builtin_type): Missing break statement.
5723 * dbxread.c (process_one_symbol): Discard unused value.
5725 * coffread.c (coff_end_symtab): Delete unused variable.
5727 * dwarf2read.c (dw2_get_file_names): Discard unused value.
5728 (dwarf2_add_typedef): Delete unused variable.
5729 (read_namespace): Ditto.
5730 (dwarf_decode_macros): Ditto.
5732 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
5734 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
5736 * p-valprint.c (pascal_val_print): Discard unused value.
5738 * utils.c (nquery): Call va_end before return;
5742 * proc-service.c (ps_plog): Call va_end before return.
5744 2011-02-28 Tom Tromey <tromey@redhat.com>
5746 * python/python.c (gdbpy_value_cst): New global.
5747 (_initialize_python): Initialize it.
5748 * python/python-internal.h (gdbpy_value_cst): Declare.
5749 * python/py-value.c (convert_value_from_python): Use
5752 2011-02-28 Michael Snyder <msnyder@vmware.com>
5754 * python/py-cmd.c (cmdpy_init): Fix memory leak.
5756 * breakpoint.c (catch_syscall_completer): Free malloced list.
5758 * jv-lang.c (java_primitive_type_from_name): Add missing break.
5760 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
5761 (lval_func_check_synthetic_pointer): Ditto.
5762 (lval_func_free_closure): Fix use-after-free.
5764 2011-02-28 Tom Tromey <tromey@redhat.com>
5766 * psymtab.c (expand_partial_symbol_tables): Use
5767 ALL_OBJFILE_PSYMTABS.
5769 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5771 * objc-lang.c (selectors_info): Error on too long REGEXP.
5773 2011-02-28 Michael Snyder <msnyder@vmware.com>
5775 * python/py-param.c (set_parameter_value): Add missing
5778 * linux-record.c (record_linux_system_call): Add missing
5781 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5783 * breakpoint.c (print_one_breakpoint_location): Remove unused
5784 argument PRINT_ADDRESS_BITS. Update callers.
5785 (print_one_breakpoint): Likewise.
5787 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5789 * breakpoint.c (wrap_indent_at_field): New function.
5790 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
5791 Allocate ui_stream locally instead of using STB argument.
5792 (print_one_breakpoint_location): Update call.
5793 * ui-out.c (ui_out_query_field): New function.
5794 * ui-out.h (ui_out_query_field): Add prototype.
5796 2011-02-28 Joel Brobecker <brobecker@adacore.com>
5798 From Michael Snyder <msnyder@vmware.com>
5799 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
5801 2011-02-27 Michael Snyder <msnyder@vmware.com>
5803 * objc-lang.c (selectors_info): Prevent string overrun.
5805 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
5808 * symtab.c (rbreak_command): Move variable 'file_name' to
5811 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
5812 param with a local variable of the same name.
5814 2011-02-27 Michael Snyder <msnyder@vmware.com>
5816 * value.c (value_from_history_ref): New function.
5817 * value.h (value_from_history_ref): Export.
5818 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
5819 to parse value history references.
5820 * cli/cli-utils.h (get_number_trailer): Update comment.
5822 2011-02-27 Michael Snyder <msnyder@vmware.com>
5824 * inferior.c (detach_inferior_command): Use get_number_or_range.
5825 (kill_inferior_command): Ditto.
5826 (remove_inferior_command): Ditto.
5827 (initialize_inferiors): Make command names plural.
5828 Update help strings.
5830 2011-02-27 Michael Snyder <msnyder@vmware.com>
5832 * darwin-nat-info.c: Fix comment typo.
5833 * dwarf2expr.h: Ditto.
5834 * fbsd-nat.c: Ditto.
5835 * fbsd-nat.h: Ditto.
5836 * frame-unwind.h: Ditto.
5838 * hppa-hpux-tdep.c: Ditto.
5839 * i386-linux-nat.c: Ditto.
5840 * linux-nat.c: Ditto.
5841 * nbsd-nat.c: Ditto.
5842 * nbsd-nat.h: Ditto.
5843 * ppc-linux-tdep.c: Ditto.
5846 * tui/tui-winsource.c: Ditto.
5848 2011-02-26 Michael Snyder <msnyder@vmware.com>
5850 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
5852 * maint.c (maintenance_do_deprecate): Plug a memory leak.
5854 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
5855 with a local variable of the same name.
5857 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
5858 param with a local variable of the same name.
5859 (i387_supply_xsave): Ditto.
5861 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
5862 that it does not shadow a function parameter.
5864 * i386-nat.c (i386_length_and_rw_bits): Document that case
5865 statement is meant to fall through.
5867 * expprint.c (dump_subexp_body_standard): Document that case
5868 statement is meant to fall through.
5870 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
5871 dead if statement. Condition can't be false.
5873 2011-02-25 Michael Snyder <msnyder@vmware.com>
5875 * arm-tdep.c: Fix typos in comments.
5876 * bsd-uthread.c: Ditto.
5877 * completer.c: Ditto.
5879 * cp-namespace.c: Ditto.
5880 * cp-support.c: Ditto.
5881 * cris-tdep.c: Ditto.
5883 * dwarf2read.c: Ditto.
5885 * gdbtypes.h: Ditto.
5886 * inferior.h: Ditto.
5887 * mdebugread.c: Ditto.
5888 * mips-tdep.c: Ditto.
5889 * ppc-linux-nat.c: Ditto.
5890 * ppc-linux-tdep.c: Ditto.
5891 * printcmd.c: Ditto.
5892 * sol-thread.c: Ditto.
5893 * solib-frv.c: Ditto.
5895 * sparc64-tdep.c: Ditto.
5896 * spu-tdep.c: Ditto.
5897 * stabsread.c: Ditto.
5902 * python/py-block.c: Ditto.
5903 * python/py-symbol.c: Ditto.
5904 * python/py-symtab.c: Ditto.
5905 * python/py-value.c: Ditto.
5906 * tui/tui-win.c: Ditto.
5908 2011-02-25 Michael Snyder <msnyder@vmware.com>
5910 * inferior.c (print_inferior): Accept a string instead of an int
5911 for requested_inferiors, and use get_number_or_range to parse it.
5912 (info_inferiors_command): Pass args string to print_inferior.
5913 (initialize_inferiors): Change help string for info inferiors.
5914 * inferior.h (print_inferior): Export prototype change.
5916 2011-02-25 Tom Tromey <tromey@redhat.com>
5918 * common/ax.def (invalid2): Set to 0x31.
5920 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5922 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
5924 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
5926 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
5928 2011-02-24 Michael Snyder <msnyder@vmware.com>
5930 * Makefile.in (clean): Make clean should remove generated files
5931 observer.h and observer.inc.
5933 2011-02-24 Joel Brobecker <brobecker@adacore.com>
5935 Revert the following patch (not approved yet):
5936 2011-02-21 Hui Zhu <teawater@gmail.com>
5937 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5938 * ax-gdb.c (gen_printf_expr_callback): New function.
5939 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5940 * ax-general.c (ax_memcpy): New function.
5941 (ax_print): Handle "printf".
5943 * ax.h (ax_memcpy): Forward declare.
5944 * common/ax.def (invalid2): Removed.
5945 (printf): New entry.
5946 * printcmd.c (printcmd.h): New include.
5947 (string_printf): New function.
5948 (ui_printf): Removed.
5949 (printf_command): Remove static. Call string_printf.
5950 (eval_command): Call string_printf.
5951 * printcmd.h: New file.
5952 * tracepoint.c (validate_actionline,
5953 encode_actions_1): handle printf_command.
5955 2011-02-23 Tom Tromey <tromey@redhat.com>
5957 * ax-general.c (ax_pick): Add missing newline.
5959 2011-02-23 Michael Snyder <msnyder@vmware.com>
5961 * breakpoint.c (breakpoint_1): Change first argument from an int
5962 to a char pointer, so that the function now accepts a list of
5963 breakpoints rather than just one. Use new function
5964 'number_is_in_list' to implement.
5965 (breakpoints_info): Pass char * instead of int to breakpoint_1.
5966 (watchpoints_info): Ditto.
5967 (tracepoints_info): Ditto.
5968 (maintenance_info_breakpoints): Ditto.
5969 (_initialize_breakpoint): Update help strings to reflect the fact
5970 that these functions can now take more than one argument.
5971 * cli/cli-utils.c (number_is_in_list): New function.
5972 * cli/cli-utils.h (number_is_in_list): Export.
5974 2011-02-23 Michael Snyder <msnyder@vmware.com>
5976 * memattr.c (mem_enable_command): Use get_number_or_range.
5977 (mem_disable_command): Ditto.
5978 (mem_delete_command): Ditto.
5979 (_initialize_mem): Tweak usage message to reflect multiple
5982 2011-02-22 Doug Evans <dje@google.com>
5984 Add gdb.lookup_global_symbol python function.
5986 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
5987 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
5988 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
5990 2011-02-22 Tom Tromey <tromey@redhat.com>
5992 * language.c (language_class_name_from_physname): Rename
5993 'curr_language' argument to 'lang'; use in body.
5995 2011-02-22 Michael Snyder <msnyder@vmware.com>
5997 * cli/cli-utils.c (number_is_in_list): Check for zero return.
5999 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6001 * frame-unwind.h: Fix comment to mention the this frame, not the
6004 2011-02-22 Tom Tromey <tromey@redhat.com>
6006 * symfile.c (auto_solib_limit): Remove.
6007 * symfile.h (auto_solib_limit): Remove.
6009 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6011 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6013 2011-02-21 Michael Snyder <msnyder@vmware.com>
6015 * gdbthread.h (print_thread_info): Change prototype.
6016 * thread.c (print_thread_info): Accept char* instead of int for
6017 requested_threads argument. Use new function number_is_in_list
6018 to determine which threads to list.
6019 (info_threads_command): Pass char* to print_thread_info.
6020 * cli/cli-utils.c (number_is_in_list): New function.
6021 * cli/cli-utils.h (number_is_in_list): Export.
6022 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6024 (print_one_inferior): Ditto.
6025 (mi_cmd_list_thread_groups): Ditto.
6027 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6029 * common/Makefile.in (CFLAGS): New.
6030 (COMPILE): Add $(CFLAGS).
6032 2011-02-21 Tom Tromey <tromey@redhat.com>
6034 * breakpoint.c (catch_syscall_command_1): Fix typo.
6036 2011-02-21 Tom Tromey <tromey@redhat.com>
6038 * reverse.c: Include cli-utils.h.
6039 * printcmd.c: Include cli-utils.h.
6040 (string_printf): Use skip_spaces.
6041 * cli/cli-utils.h: New file.
6042 * cli/cli-utils.c: New file.
6043 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6044 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6045 * breakpoint.h (get_number, get_number_or_range): Move to
6047 * breakpoint.c: Include cli-utils.h.
6048 (get_number_trailer, get_number, get_number_or_range)
6049 (ep_skip_leading_whitespace): Move to cli-utils.c.
6050 (create_breakpoint_sal, find_condition_and_thread)
6051 (decode_static_tracepoint_spec, watch_command_1)
6052 (watch_maybe_just_location, ep_parse_optional_if_clause)
6053 (catch_fork_command_1, catch_exec_command_1)
6054 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6055 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6056 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6057 (HFILES_NO_SRCDIR): Add cli-utils.h.
6058 (cli-utils.o): New target.
6060 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6062 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6063 before calling discard_all_inferiors.
6065 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6067 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6068 (struct builtin_opencl_type): Remove.
6069 (builtin_opencl_type): Change return type to "struct type **".
6070 (lookup_opencl_vector_type): Update caller.
6071 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6072 (build_opencl_types): Install plain array of "struct type *"
6073 instead of "struct builtin_opencl_type".
6075 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6076 Ulrich Weigand <uweigand@de.ibm.com>
6078 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6079 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6080 (struct arm_linux_hwbp_cap): New type.
6081 (arm_linux_get_hwbp_cap): New function.
6082 (arm_linux_get_hw_breakpoint_count): Likewise.
6083 (arm_linux_get_hw_watchpoint_count): Likewise.
6084 (arm_linux_can_use_hw_breakpoint): Likewise.
6085 (arm_hwbp_type): New type.
6086 (arm_hwbp_control_t): Likewise.
6087 (struct arm_linux_hw_breakpoint): Likewise.
6088 (struct arm_linux_thread_points): Likewise.
6089 (arm_threads): New global variable.
6090 (arm_linux_find_breakpoints_by_tid): New function.
6091 (arm_hwbp_control_initialize): Likewise.
6092 (arm_hwbp_control_is_enabled): Likewise.
6093 (arm_hwbp_control_disable): Likewise.
6094 (arm_linux_hw_breakpoint_initialize): Likewise.
6095 (arm_linux_get_hwbp_type): Likewise.
6096 (arm_linux_hw_watchpoint_initialize): Likewise.
6097 (arm_linux_hw_breakpoint_equal): Likewise.
6098 (arm_linux_insert_hw_breakpoint1): Likewise.
6099 (arm_linux_remove_hw_breakpoint1): Likewise.
6100 (arm_linux_insert_hw_breakpoint): Likewise.
6101 (arm_linux_remove_hw_breakpoint): Likewise.
6102 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6103 (arm_linux_insert_watchpoint): Likewise.
6104 (arm_linux_remove_watchpoint): Likewise.
6105 (arm_linux_stopped_data_address): Likewise.
6106 (arm_linux_stopped_by_watchpoint): Likewise.
6107 (arm_linux_watchpoint_addr_within_range): Likewise.
6108 (arm_linux_new_thread): Likewise.
6109 (arm_linux_thread_exit): Likewise.
6110 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6111 related target callbacks. Register arm_linux_new_thread and
6112 arm_linux_thread_exit.
6113 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6114 * arm-tdep.c (arm_pc_is_thumb): Make global.
6115 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6117 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6119 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6120 per-frame locations while within a function epilogue.
6122 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6124 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6125 to GNU coding standards.
6127 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6129 Allow use of mingw native on Windows 95 OS.
6130 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6131 (ser_windows_close): Only call CancelIo if function exists.
6132 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6133 to check for existence of CancelIo function in kernel32 DLL.
6135 2011-02-21 Hui Zhu <teawater@gmail.com>
6137 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6138 * ax-gdb.c (gen_printf_expr_callback): New function.
6139 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6140 * ax-general.c (ax_memcpy): New function.
6141 (ax_print): Handle "printf".
6143 * ax.h (ax_memcpy): Forward declare.
6144 * common/ax.def (invalid2): Removed.
6145 (printf): New entry.
6146 * printcmd.c (printcmd.h): New include.
6147 (string_printf): New function.
6148 (ui_printf): Removed.
6149 (printf_command): Remove static. Call string_printf.
6150 (eval_command): Call string_printf.
6151 * printcmd.h: New file.
6152 * tracepoint.c (validate_actionline,
6153 encode_actions_1): handle printf_command.
6155 2011-02-19 Michael Snyder <msnyder@vmware.com>
6157 * reverse.c (delete_one_bookmark): Argument is now bookmark
6158 id rather than pointer to bookmark struct.
6159 (delete_bookmark_command): Use get_number_or_range.
6160 (goto_bookmark_command): Parse with get_number instead of strtoul.
6161 (bookmark_1): New function. Print info for one bookmark.
6162 (bookmarks_info): Use get_number_or_range and bookmark_1.
6164 2011-02-18 Michael Snyder <msnyder@vmware.com>
6166 * thread.c (info_threads_command): Re-implement using
6167 get_number_or_range.
6168 (thread_apply_command): Ditto.
6170 2011-02-18 Tom Tromey <tromey@redhat.com>
6172 * common/ax.def: New file.
6173 * ax.h (enum agent_op): Use ax.def.
6174 * ax-general.c (aop_map): Use ax.def.
6176 2011-02-18 Tom Tromey <tromey@redhat.com>
6178 * ax-general.c (aop_map): Add pick and rot.
6179 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6180 <DW_OP_rot>: Implement.
6181 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6183 * ax-general.c (ax_pick): New function.
6185 2011-02-18 Tom Tromey <tromey@redhat.com>
6187 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6189 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6190 Tom Tromey <tromey@redhat.com>
6192 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6193 make_symbol_overload_list_block with NULL BLOCK.
6194 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6196 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6198 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6199 * breakpoint.h (get_number_or_range): Declare.
6200 * printcmd.c (ALL_DISPLAYS): Declare.
6201 (delete_display): Reimplement taking a display pointer.
6202 (undisplay_command): Accept a range of displays to delete, using
6203 get_number_or_range.
6205 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6207 * c-valprint.c (c_val_print): Add embedded_offset to address
6208 for arrays of unspecified length.
6209 * p-valprint.c (pascal_val_print): Likewise.
6211 2011-02-18 Yao Qi <yao@codesourcery.com>
6213 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6214 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6215 (thumb_process_displaced_insn): New.
6216 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6217 call to arm_process_displaced_insn.
6218 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6220 2011-02-17 Tom Tromey <tromey@redhat.com>
6222 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6223 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6224 compile_dwarf_to_ax. No longer static. Call
6225 dwarf2_compile_cfa_to_ax.
6226 (locexpr_tracepoint_var_ref): Update.
6227 (loclist_tracepoint_var_ref): Update.
6228 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6229 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6230 argument; add 'gdbarch' and 'pc'.
6231 (dwarf2_compile_cfa_to_ax): New function.
6232 (dwarf2_frame_cache): Update.
6234 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6236 * ada-lang.c (ada_type_of_array): Fix the size of the array
6237 in the case of an unconstrained packed array.
6239 2011-02-17 Yao Qi <yao@codesourcery.com>
6241 * common/Makefile.in: Add more targets for make.
6243 2011-02-16 Tom Tromey <tromey@redhat.com>
6245 * dwarf2loc.c (unimplemented): Fix typo.
6247 2011-02-16 Tom Tromey <tromey@redhat.com>
6249 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6250 (compile_dwarf_to_ax) <default>: Use unimplemented.
6251 <DW_OP_deref>: Update.
6252 (disassemble_dwarf_expression): Update.
6253 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6254 (decode_locdesc): Update.
6255 * dwarf2expr.h (dwarf_stack_op_name): Update.
6257 2011-02-16 Tom Tromey <tromey@redhat.com>
6259 * ax.h (struct aop_map) <name>: Now const.
6261 2011-02-16 Tom Tromey <tromey@redhat.com>
6263 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6266 2011-02-16 Yao Qi <yao@codesourcery.com>
6268 * infrun.c (get_displaced_step_closure_by_addr): New.
6269 * inferior.h: Declare it.
6270 * arm-tdep.c: (arm_pc_is_thumb): Call
6271 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6274 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6275 Jan Kratochvil <jan.kratochvil@redhat.com>
6278 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6280 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6281 Jan Kratochvil <jan.kratochvil@redhat.com>
6283 * value.c (value_contents_copy_raw): Extend describing comment.
6284 Assert that the destination contents we're overwriting are wholly
6286 (value_contents_copy): Extend describing comment.
6288 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6289 Jan Kratochvil <jan.kratochvil@redhat.com>
6291 * value.c (value_available_contents_eq): Remove redundant local
6292 variables. Fix available contents comparision.
6293 * value.h (value_available_contents_eq): Extend describing
6296 2011-02-16 Yao Qi <yao@codesourcery.com>
6298 * thread.c (info_threads_command): Add missing i18n markup and remove
6301 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6303 * breakpoint.c (longjmp_names): New variable.
6304 (struct breakpoint_objfile_data): New type.
6305 (breakpoint_objfile_key): New variable.
6306 (msym_not_found): New variable.
6307 (msym_not_found_p): New predicate.
6308 (get_breakpoint_objfile_data): New function.
6309 (create_overlay_event_breakpoint): Check per-objfile cache for
6311 (create_longjmp_master_breakpoint): Likewise.
6312 (create_std_terminate_master_breakpoint): Likewise.
6313 (create_exception_master_breakpoint): Likewise.
6314 (_initialize_breakpoint): Register per-objfile data key.
6316 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6318 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6320 (create_longjmp_master_breakpoint): Loop over longjmp names.
6321 (create_std_terminate_master_breakpoint): Const-propagate parameter
6323 (update_breakpoints_after_exec): Adjust.
6324 (breakpoint_re_set): Adjust.
6326 2011-02-15 Michael Snyder <msnyder@vmware.com>
6328 * thread.c (info_threads_command): Process arg as thread id,
6329 or list of thread ids.
6330 (thread_find_command): New command.
6331 (_initialize_thread): Document argument for info threads.
6332 Document 'thread find' command.
6333 * NEWS: Document new command "thread find".
6335 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6337 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6338 * aclocal.m4: Regenerated with aclocal-1.11.1.
6339 * common/configure: Regenerate with autoconf-2.64.
6341 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6343 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6344 bool data type to a size of one byte.
6346 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6347 Jan Kratochvil <jan.kratochvil@redhat.com>
6349 * target.c (memory_xfer_live_readonly_partial): Document where to
6350 look for interface description.
6352 2011-02-15 Yao Qi <yao@codesourcery.com>
6355 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6356 order to store PC value on stack instead of text section.
6358 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6360 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6361 the EFP register set size.
6362 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6363 data from the VMX register.
6364 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6365 and write data from/to the VMX register.
6367 2011-02-14 Michael Snyder <msnyder@vmware.com>
6369 * command.h (enum command_class): New class 'no_set_class', for
6370 "show" commands without a corresponding "set" command.
6371 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6372 * copying.c (_initialize_copying): Ditto for "show copying" and
6374 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6376 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6377 which there is no corresponding "set" command (eg. "show copying").
6379 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6380 Jan Kratochvil <jan.kratochvil@redhat.com>
6382 * exec.c (section_table_available_memory): Change `len' parameter
6384 * exec.h (section_table_available_memory): Ditto.
6385 * value.h (read_value_memory): Rename the `offset' parameter to
6388 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6389 Jan Kratochvil <jan.kratochvil@redhat.com>
6391 * memrange.c (compare_mem_ranges): Mention sort order in
6393 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6394 * tracepoint.c (traceframe_available_memory): Extend comment to
6395 mention what happens to RESULT when the target does not support
6398 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6399 Jan Kratochvil <jan.kratochvil@redhat.com>
6401 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6404 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6406 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6407 No longer handle NULL values.
6409 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6411 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6412 * value.c: Include "exceptions.h".
6413 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6415 * cp-abi.c: Include gdb_assert.h.
6416 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6417 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6419 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6420 parameters. No longer returns -1 on error.
6421 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6423 * cp-valprint.c: Include exceptions.h.
6424 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6425 the baseclass_offset. Handle unavailable base classes. Use
6426 val_print_invalid_address.
6427 * p-valprint.c: Include exceptions.h.
6428 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6429 when fetching the baseclass_offset. No longer expect
6430 baseclass_offset returning -1. Handle unavailable base classes.
6431 Use val_print_invalid_address.
6432 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6433 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6434 `embedded_offset' and `val' parameters. Adjust.
6435 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6436 parameter, and change its type to gdb_byte pointer. Add
6437 `embedded_offset' and `val' parameters. Adjust. No longer expect
6438 baseclass_offset returning -1.
6439 (value_dynamic_cast): Use value_contents_for_printing rather than
6440 value_contents. Adjust.
6441 (search_struct_field): No longer expect baseclass_offset returning
6443 (search_struct_method): If reading memory from the target is
6444 necessary, wrap it in a new value to pass to baseclass_offset. No
6445 longer expect baseclass_offset returning -1.
6446 (find_method_list): No longer expect baseclass_offset returning
6447 -1. Use value_contents_for_printing rather than value_contents.
6448 * valprint.c (val_print_invalid_address): New function.
6449 * valprint.h (val_print_invalid_address): Declare.
6450 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6451 and `val' parameters. No longer expect baseclass_offset returning
6453 * gnu-v2-abi.c: Include "exceptions.h".
6454 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6455 parameters. Handle unavailable memory. Recurse through
6456 gnuv2_baseclass_offset directly, rather than through
6457 baseclass_offset. No longer returns -1 on not found, instead
6459 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6460 `val' parameters. Adjust.
6462 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6464 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6465 almost but not quite adjacent.
6467 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6469 * value.h (value_entirely_available): Declare.
6470 * value.c (value_entirely_available): New function.
6471 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6472 real type if the pointer is unavailable.
6474 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6476 * valops.c (value_repeat): Use read_value_memory instead of
6479 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6481 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6482 * value.c (value_contents_copy_raw, value_contents_copy): New
6484 (value_primitive_field): Use value_contents_copy_raw instead of
6486 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6488 (value_array, value_slice): Ditto.
6489 * valarith.c (value_subscripted_rvalue): Use
6490 value_contents_copy_raw instead of memcpy.
6492 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6494 <unavailable> references.
6496 * valops.c (get_value_at): Use value_from_contents_and_address,
6497 avoiding read_memory.
6499 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6501 * c-valprint.c (c_val_print): Print a string with unavailable
6502 contents as an array.
6504 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6506 * value.h (unpack_bits_as_long): Delete declaration.
6507 (unpack_value_bits_as_long): Declare.
6508 (unpack_value_field_as_long): Declare.
6509 (value_field_bitfield): Declare.
6510 * value.c (unpack_bits_as_long): Rename to...
6511 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6512 value parameters. Return the extracted result in a new output
6513 parameter. If the value contents are unavailable, return false,
6514 otherwise return true.
6515 (unpack_value_bits_as_long): New.
6516 (unpack_field_as_long): Rename to...
6517 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6518 Add embedded_offset and value parameters. Return the extracted
6519 result in a new output parameter. If the value contents are
6520 unavailable, return false, otherwise return true.
6521 (unpack_value_field_as_long): New.
6522 (unpack_field_as_long_1): New.
6523 (unpack_field_as_long): Reimplement as wrapper around
6524 unpack_value_field_as_long_1.
6525 (value_field_bitfield): New function.
6526 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6527 unpack_value_bits_as_long. Mark the value as unavailable, if it
6529 * jv-valprint.c (java_print_value_fields): Use
6530 value_field_bitfield.
6531 * p-valprint.c (pascal_object_print_value_fields): Use
6532 value_field_bitfield.
6533 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6535 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6537 * value.c (get_internalvar_integer): Also return the int value of
6538 TYPE_CODE_INT INTERNALVAR_VALUE values.
6539 (set_internalvar): Don't special case TYPE_CODE_INT.
6541 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6543 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6544 INTERNALVAR_POINTER.
6546 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6547 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6548 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6550 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6552 * value.h (value_available_contents_eq): Declare.
6553 * value.c (find_first_range_overlap): New function.
6554 (value_available_contents_eq): New function.
6555 * valprint.c (val_print_array_elements): Use
6556 value_available_contents_eq.
6557 * ada-valprint.c (val_print_packed_array_elements): Use
6558 value_available_contents_eq.
6559 * jv-valprint.c (java_value_print): Use
6560 value_available_contents_eq.
6562 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6564 * target.c (target_read_live_memory): New function.
6565 (memory_xfer_live_readonly_partial): New.
6566 (memory_xfer_partial): If reading from a traceframe, fallback to
6567 reading unavailable read-only memory from read-only regions of
6569 * tracepoint.c (disconnect_tracing): Adjust.
6570 (set_current_traceframe): New, factored out from
6571 set_traceframe_number.
6572 (set_traceframe_number): Reimplement to only change the traceframe
6573 number on the GDB side.
6574 (do_restore_current_traceframe_cleanup): Adjust.
6575 (make_cleanup_restore_traceframe_number): New.
6576 (cur_traceframe_number): New global.
6577 (tfile_open): Set cur_traceframe_number to no traceframe.
6578 (set_tfile_traceframe): New function.
6579 (tfile_trace_find): If looking up a traceframe using any method
6580 other than by number, make sure the current tfile traceframe
6581 matches gdb's current traceframe. Update the current tfile
6582 traceframe if the lookup succeeded.
6583 (tfile_fetch_registers, tfile_xfer_partial)
6584 (tfile_get_trace_state_variable_value): Make sure the remote
6585 traceframe matches gdb's current traceframe.
6586 * remote.c (remote_traceframe_number): New global.
6587 (remote_open_1): Set it to -1.
6588 (set_remote_traceframe): New function.
6589 (remote_fetch_registers, remote_store_registers)
6590 (remote_xfer_memory, remote_xfer_partial)
6591 (remote_get_trace_state_variable_value): Make sure the remote
6592 traceframe matches gdb's current traceframe.
6593 (remote_trace_find): If looking up a traceframe using any method
6594 other than by number, make sure the current remote traceframe
6595 matches gdb's current traceframe. Update the current remote
6596 traceframe if the lookup succeeded.
6597 * infrun.c (fetch_inferior_event): Adjust.
6598 * tracepoint.h (set_current_traceframe): Declare.
6599 (get_traceframe_number, set_traceframe_number): Add describing
6602 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6604 Mark pieces of values as unavailable if the corresponding memory
6607 * valops.c: Include tracepoint.h.
6608 (value_fetch_lazy): Use read_value_memory.
6609 (read_value_memory): New.
6610 * value.h (read_value_memory): Declare.
6611 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
6612 * exec.c (section_table_available_memory): New function.
6613 * exec.h (section_table_available_memory): Declare.
6615 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6617 * Makefile.in (SFILES): Add memrange.c.
6618 (HFILES_NO_SRCDIR): Add memrange.h.
6619 (COMMON_OBS): Add memrange.o.
6620 * memrange.c: New file.
6621 * memrange.h: New file.
6622 * tracepoint.c: Include memrange.h.
6623 (struct mem_range): Delete.
6624 (mem_range_s): Delete.
6625 (traceframe_available_memory): New function.
6626 * tracepoint.h (traceframe_available_memory): Declare.
6628 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6630 * target.h (struct traceframe_info): Forward declare.
6631 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
6632 (struct target_ops) <to_traceframe_info>: New field.
6633 (target_traceframe_info): New.
6634 * target.c (update_current_target): Inherit and default
6636 * remote.c (PACKET_qXfer_traceframe_info): New.
6637 (remote_protocol_features): Register qXfer:traceframe-info:read.
6638 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
6639 (remote_traceframe_info): New.
6640 (init_remote_ops): Install it.
6641 (_initialize_remote): Install "set/show remote traceframe-info"
6643 * tracepoint.h (parse_traceframe_info): Declare.
6644 * tracepoint.c (struct mem_range): New.
6645 (mem_range_s): New typedef.
6646 (struct traceframe_info): New.
6647 (traceframe_info): New global.
6648 (free_traceframe_info): New function.
6649 (clear_traceframe_info): New function.
6650 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
6652 (build_traceframe_info): New function.
6653 (tfile_traceframe_info): New function.
6654 (init_tfile_ops): Install tfile_traceframe_info.
6655 (traceframe_info_start_memory, free_result): New functions.
6656 (memory_attributes, traceframe_info_elements): New globals.
6657 (parse_traceframe_info, get_traceframe_info): New functions.
6658 * features/traceframe-info.dtd: New file.
6659 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
6661 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6663 Base support for <unavailable> value contents.
6665 * value.h (value_bytes_available): Declare.
6666 (mark_value_bytes_unavailable): Declare.
6667 * value.c (struct range): New struct.
6668 (range_s): New typedef.
6669 (ranges_overlap): New function.
6670 (range_lessthan): New function.
6671 (ranges_contain_p): New function.
6672 (struct value) <unavailable>: New field.
6673 (value_bytes_available): New function.
6674 (mark_value_bytes_unavailable): New function.
6675 (require_not_optimized_out): Constify parameter.
6676 (require_available): New function.
6677 (value_contents_all, value_contents): Require all bytes be
6679 (value_free): Free `unavailable'.
6680 (value_copy): Copy `unavailable'.
6681 * valprint.h (val_print_unavailable): Declare.
6682 * valprint.c (valprint_check_validity): Rename `offset' parameter
6683 to `embedded_offset'. If printing a scalar, check whether the
6684 value chunk is available.
6685 (val_print_unavailable): New.
6686 (val_print_scalar_formatted): Check whether the value is
6688 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
6689 pretty-printing unavailable values.
6691 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6693 Fix const/volatile qualifiers of C++ types, PR c++/12328.
6694 * c-typeprint.c (c_type_print_args): Update the function comment. New
6695 variable param_type, initialize it. Remove const/volatile qualifiers
6696 for language_cplus and !show_artificial. Use param_type.
6698 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6700 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
6701 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
6702 * symtab.h (struct symtab) <next>: Comment extension.
6704 2011-02-12 Yao Qi <yao@codesourcery.com>
6706 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
6708 2011-02-11 Yao Qi <yao@codesourcery.com>
6710 * common/Makefile.in: Add copyright header.
6712 2011-02-11 Pedro Alves <pedro@codesourcery.com>
6714 * infrun.c (proceed): Move switching out and in of tfind mode from
6716 (fetch_inferior_event): ... to here.
6718 2011-02-11 Yao Qi <yao@codesourcery.com>
6720 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6722 * configure.ac: Add common to sub dir.
6723 * configure: Regenerate.
6725 2011-02-11 Yao Qi <yao@codesourcery.com>
6729 * common/Makefile.in: New.
6730 * common/configure.ac: New.
6731 * common/aclocal.m4: New.
6732 * common/configure: Generate.
6734 2011-02-10 Pedro Alves <pedro@codesourcery.com>
6736 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
6737 side of the parenthesis.
6740 2010-07-13 Jakub Jelinek <jakub@redhat.com>
6741 * vec.h (VEC_block_remove): Fix comment.
6743 2011-02-08 Michael Snyder <msnyder@vmware.com>
6745 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
6747 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6749 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
6750 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
6753 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6756 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
6758 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
6759 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
6761 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6763 * dwarf2read.c (read_subroutine_type): Set special calling
6764 convention flag for functions compiled by IBM XL C for OpenCL.
6765 * ppc-sysv-tdep.c: Include "dwarf2.h"
6766 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
6768 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
6769 IBM OpenCL vector types calling convention.
6770 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
6771 (ppc_sysv_abi_broken_return_value): Likewise.
6772 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
6773 types calling convention.
6774 (ppc64_sysv_abi_return_value): Likewise.
6775 * spu-tdep.c: Include "dwarf2.h"
6776 (spu_return_value): Implement IBM OpenCL vector types calling
6779 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6781 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
6782 correct ABI for AltiVec vector arguments.
6784 2011-02-07 Pedro Alves <pedro@codesourcery.com>
6786 * valprint.c (val_print): Extend comment.
6787 * ada-valprint.c (ada_valprint): Rewrite comment deferring
6788 interface explanation to val_print.
6789 (ada_val_print_array): Adjust comment to current interface.
6790 (print_field_values): Adjust comment to current interface.
6791 * c-valprint.c (c_val_print): Rewrite comment deferring interface
6792 explanation to val_print.
6793 * f-valprint.c (f_val_print): Ditto.
6794 * jv-valprint.c (java_val_print): Ditto.
6795 * m2-valprint.c (m2_val_print): Ditto.
6796 * p-valprint.c (pascal_val_print): Ditto.
6798 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6800 * breakpoint.c (parse_breakpoint_sals): Fix description.
6802 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
6803 Oguz Kayral <oguzkayral@gmail.com>
6805 * python/py-inferior.c (python_on_normal_stop): New function.
6806 (python_on_resume): New function.
6807 (python_inferior_exit): New function.
6808 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
6809 inferior_exit observers.
6810 * python/py-evtregistry.c: New file.
6811 * python/py-threadevent.c : New file.
6812 * python/py-event.c: New file.
6813 * python/py-evts.c: New file.
6814 * python/py-continueevent.c: New file.
6815 * python/py-bpevent.c: New file.
6816 * python/py-signalevent.c: New file.
6817 * python/py-exetiedevent.c: New file.
6818 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
6819 Move struct breakpoint_object from here...
6820 * python/python-internal.h: ... to here.
6821 * python/py-event.h: New file.
6822 * python/py-events.h: New file.
6823 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
6824 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
6825 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
6826 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
6827 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
6828 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
6829 Add build rules for all the above.
6831 2011-02-04 Tom Tromey <tromey@redhat.com>
6833 * dwarf2read.c (dwarf2_section_empty_p): New function.
6834 (dwarf2_read_section): Use dwarf2_section_empty_p.
6835 (dwarf2_section_size): New function.
6836 (dwarf2_get_section_info): Unconditionally read section.
6837 (dwarf2_read_index): Use dwarf2_section_empty_p.
6838 (partial_read_comp_unit_head): Use dwarf2_section_size.
6839 (dwarf2_symbol_mark_computed): Likewise.
6841 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6843 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
6845 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6847 * mips-linux-tdep.c: Include xml-syscall.h.
6848 (mips_linux_get_syscall_number): New function.
6849 (mips_linux_init_abi): Add calls to
6850 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
6851 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6852 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
6853 * syscalls/mips-n32-linux.xml: New file.
6854 * syscalls/mips-n64-linux.xml: New file.
6855 * syscalls/mips-o32-linux.xml: New file.
6857 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6859 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
6860 Complain about inverted range entries.
6861 (dwarf2_record_block_ranges): Likewise.
6863 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6866 * breakpoint.c (update_watchpoint): Fix name of the
6867 update_global_location_list function.
6868 (print_one_breakpoint): Fix typo.
6869 (_initialize_breakpoint): Remove extra space in hbreak help
6871 * breakpoint.h (struct bp_location) <length>: Fix field
6874 2011-02-04 Pedro Alves <pedro@codesourcery.com>
6876 * regcache.c (registers_changed_ptid): Don't explictly always
6877 clear `current_regcache'. Only clear current_thread_ptid and
6878 current_thread_arch when PTID matches. Only reinit the frame
6879 cache if PTID matches the current inferior_ptid. Move alloca(0)
6881 (registers_changed): ... here.
6883 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
6885 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
6886 starts with __stack_chk_guard as stack guard symbol.
6888 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
6890 * disasm.c (compare_lines): Handle the end of sequence markers
6891 within the line table to better support disassembling over
6892 compilation unit boundaries.
6894 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6896 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
6897 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
6898 implementation even if no symbols are available.
6899 (thumb_analyze_prologue): Update call to skip_prologue_function.
6900 (arm_analyze_prologue): Likewise.
6902 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6904 * arm-tdep.c: Include "observer.h".
6905 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
6906 (arm_exidx_data_key): New static variable.
6907 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
6908 (struct arm_exidx_data): Likewise.
6909 (arm_exidx_data_free): New function.
6910 (arm_compare_exidx_entries): Likewise.
6911 (arm_obj_section_from_vma): Likewise.
6912 (arm_exidx_new_objfile): Likewise.
6913 (arm_find_exidx_entry): Likewise.
6914 (arm_exidx_fill_cache): Likewise.
6915 (arm_exidx_unwind_sniffer): Likewise.
6916 (arm_exidx_unwind): New global variable.
6917 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
6918 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
6919 observer. Register arm_exidx_data_key as objfile data.
6921 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6923 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
6924 due to accessing uninitialized variable. Fix indentation.
6926 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6928 * c-valprint.c (c_value_print): When doing virtual base pointer
6929 adjustment, create a new value with adjusted contents rather than
6930 changing the contents of the value being printed (and getting it
6933 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6935 * xml-support.c (xml_find_attribute): New.
6936 (xinclude_start_include): Use it.
6937 * xml-support.h (xml_find_attribute): Declare.
6938 * memory-map.c (memory_map_start_memory)
6939 (memory_map_start_property): Use xml_find_attribute.
6940 * osdata.c (osdata_start_osdata, osdata_start_column): Use
6942 * remote.c (start_thread): Use xml_find_attribute.
6943 * solib-target.c (library_list_start_segment)
6944 (library_list_start_section, library_list_start_library)
6945 (library_list_start_list): Use xml_find_attribute.
6946 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
6947 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
6948 (tdesc_start_field): Use xml_find_attribute.
6950 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
6952 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
6953 (BUILD_OCL_VTYPES): Update.
6955 2011-02-02 Joel Brobecker <brobecker@adacore.com>
6957 * configure.ac: Work around non-GNU sed limitation when computing
6958 python version number.
6959 * configure: Regenerate.
6961 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6963 Fix debug printing of TYPE_INSTANCE.
6964 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
6965 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
6967 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6969 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
6970 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
6971 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
6972 * ada-operator.inc: Rename the file to ...
6973 * ada-operator.def: ... here, wrap all the entries by macro OP.
6974 * expprint.c (op_name_standard): Remove all the entries. Include
6975 "std-operator.def" instead.
6976 * expression.h (enum exp_opcode): Include "std-operator.def" and
6977 "ada-operator.def". Move all the entries ...
6978 * std-operator.def: ... here, wrap all the entries by macro OP.
6980 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6982 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
6983 * breakpoint.c (remove_jit_event_breakpoints): New function.
6984 * jit.c (jit_descriptor_addr): Delete.
6985 (registering_code): Delete.
6986 (clear_int): Delete.
6987 (jit_inferior_data): New variable.
6988 (struct jit_inferior_data): New type.
6989 (get_jit_inferior_data): New function.
6990 (jit_inferior_data_cleanup): New function.
6991 (jit_read_descriptor): Adjust.
6992 (jit_register_code): Adjust.
6993 (jit_breakpoint_re_set_internal): New function; move code here ...
6994 (jit_inferior_init): ... from here.
6995 (jit_breakpoint_re_set): Adjust.
6996 (jit_reset_inferior_data_and_breakpoints): New function.
6997 (jit_inferior_created_observer): Adjust.
6998 (jit_inferior_exit_hook): Adjust.
6999 (jit_executable_changed_observer): New function.
7000 (jit_event_handler): Adjust.
7001 (_initialize_jit): Adjust.
7003 2011-01-31 Michael Snyder <msnyder@vmware.com>
7005 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7008 2011-01-31 Tom Tromey <tromey@redhat.com>
7011 * python/python.c (execute_gdb_command): Call
7012 prevent_dont_repeat.
7013 * top.c (suppress_dont_repeat): New global.
7014 (dont_repeat): Use it.
7015 (prevent_dont_repeat): New function.
7016 * command.h (prevent_dont_repeat): Declare.
7018 2011-01-31 Tom Tromey <tromey@redhat.com>
7020 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7021 * python/py-breakpoint.c (bppy_set_silent): Use
7022 breakpoint_set_silent.
7023 (bppy_set_thread): Use breakpoint_set_thread.
7024 (bppy_set_task): Use breakpoint_set_task.
7025 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7026 (breakpoint_set_task): Declare.
7027 (make_breakpoint_silent): Remove.
7028 * breakpoint.c (breakpoint_set_silent): New function.
7029 (breakpoint_set_thread): Likewise.
7030 (breakpoint_set_task): Likewise.
7031 (make_breakpoint_silent): Remove.
7033 2011-01-31 Tom Tromey <tromey@redhat.com>
7035 * breakpoint.h (user_breakpoint_p): Declare.
7036 * breakpoint.c (user_breakpoint_p): New function.
7037 (breakpoint_1): Use it.
7038 (save_breakpoints): Likewise.
7040 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7042 * configure.ac: Add handling of Python distribution on Windows.
7043 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7044 sysconfig variables are not defined, then do not use them.
7045 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7046 instead. On Windows, return all paths using forward-slashes
7047 rather than backslashes.
7049 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7051 * configure.ac: Remove fallback behavior for building
7052 against Python. Remove tweaking of Python include path.
7053 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7054 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7055 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7056 Always restore CPPFLAGS and LIBS after linking test.
7057 * configure: Regenerated.
7058 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7059 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7060 * python/python-internal.h: Adjust includes of Python .h files.
7062 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7064 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7067 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7069 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7072 2011-01-31 Yao Qi <yao@codesourcery.com>
7074 * arm-linux-nat.c: Update calls to regcache_register_status
7075 instead of regcache_valid_p.
7076 * aix-thread.c: Likewise.
7077 * i386gnu-nat.c: Likewise.
7079 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7082 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7083 touching TYPE_FIELD_ARTIFICIAL.
7085 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7087 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7090 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7092 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7093 selected, don't try iterating over the traceframe's blocks.
7094 (tfile_has_stack): If there's no traceframe selected, then there's
7096 (tfile_has_registers): If there's no traceframe selected, then
7097 there's no registers.
7099 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7101 * target.c (memory_xfer_partial): No need to restore shadows if we
7102 haven't read anything.
7104 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7106 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7107 and val_print_scalar_formatted.
7109 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7111 * tracepoint.c (tfile_read): New.
7112 (tfile_open): Use it.
7113 (tfile_get_traceframe_address): Use it.
7114 (tfile_trace_find): Use it.
7115 (walk_blocks_callback_func): New typedef.
7116 (match_blocktype): New function.
7117 (traceframe_walk_blocks): New function.
7118 (traceframe_find_block_type): New function.
7119 (tfile_fetch_registers, tfile_xfer_partial)
7120 (tfile_get_trace_state_variable_value): Use
7121 traceframe_find_block_type and tfile_read.
7123 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7125 * remote-mips.c: Add internationalization mark ups. Remove
7126 trailing \n from already marked up strings.
7128 2011-01-26 Tom Tromey <tromey@redhat.com>
7130 * python/py-prettyprint.c (print_string_repr): Clear
7131 'addressprint' option when calling val_print_string.
7132 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7133 option when calling val_print_string.
7135 2011-01-26 Tom Tromey <tromey@redhat.com>
7137 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7139 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7141 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7142 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7143 (gdb_py_long_as_ulongest): New defines.
7144 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7145 (gdb_py_int_as_long): Declare.
7146 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7147 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7148 (valpy_long): Add comment.
7149 * python/py-utils.c (get_addr_from_python): Use
7150 gdb_py_long_as_ulongest. Handle overflow properly.
7151 (gdb_py_object_from_longest): New function.
7152 (gdb_py_object_from_ulongest): Likewise.
7153 (gdb_py_int_as_long): Likewise.
7154 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7155 * python/py-symtab.c (salpy_get_pc): Use
7156 gdb_py_long_from_ulongest.
7157 (salpy_get_line): Use PyInt_FromLong.
7158 * python/py-param.c (set_parameter_value): Use
7160 * python/py-lazy-string.c (stpy_get_address): Use
7161 gdb_py_long_from_ulongest.
7162 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7163 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7164 * python/py-breakpoint.c (bppy_set_thread): Use
7166 (bppy_set_task): Likewise.
7167 (bppy_set_ignore_count): Likewise.
7168 (bppy_set_hit_count): Likewise.
7169 * python/py-block.c (blpy_get_start): Use
7170 gdb_py_object_from_ulongest.
7171 (blpy_get_end): Likewise.
7172 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7174 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7177 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7178 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7179 equality test for objfile, initialize addr_low if needed.
7181 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7183 * tui/tui-regs.c (tui_register_format): Remove dead code.
7185 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7187 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7188 instead of print_scalar_formatted.
7189 (print_scalar_formatted): Don't handle 's' format strings here,
7190 and add an assertion that we never see such format here.
7191 * valprint.h (val_print_scalar_formatted): Declare.
7192 * valprint.c (val_print_scalar_formatted): New.
7193 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7194 instead of print_scalar_formatted.
7195 * jv-valprint.c (java_val_print): Ditto.
7196 * p-valprint.c (pascal_val_print): Ditto.
7197 * ada-valprint.c (ada_val_print_1): Ditto.
7198 * f-valprint.c (f_val_print): Ditto.
7199 * infcmd.c (registers_info): Ditto.
7200 * m2-valprint.c (m2_val_print): Ditto.
7202 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7204 * m2-valprint.c (print_unbounded_array): Pass
7205 value_contents_for_printing rather than value_contents, to
7206 m2_print_array_contents. Also pass in the value.
7208 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7210 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7211 (save_gdb_index_command): Switch to .gdb_index version 4.
7213 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7215 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7216 than frame_register, and always pass a valid value to val_print.
7218 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7220 Centralize printing "<optimized out>".
7222 * valprint.h (val_print_optimized_out): Declare.
7223 * cp-valprint.c (cp_print_value_fields): Use
7224 val_print_optimized_out.
7225 * jv-valprint.c (java_print_value_fields): Ditto.
7226 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7227 * printcmd.c (print_formatted): Ditto.
7228 * valprint.c (valprint_check_validity): Ditto.
7229 (value_check_printable): Ditto.
7230 (val_print_optimized_out): New.
7232 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7234 * infcmd.c (default_print_registers_info): Allocate values so to
7235 never pass a NULL value to val_print.
7237 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7239 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7240 boolean. Make sure to always pass a value that matches the
7241 contents buffer to callees. Preserve `address' for following
7243 * value.c (value_contents_for_printing_const): New.
7244 (value_address): Constify value argument.
7245 * value.h (value_contents_for_printing_const): Declare.
7246 (value_address): Constify value argument.
7248 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7250 * regcache.c (struct regcache_descr): Rename
7251 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7252 and sizeof_cooked_register_valid_p to
7253 sizeof_cooked_register_status.
7254 (init_regcache_descr): Adjust.
7255 (struct regcache): Rename register_valid_p field to
7257 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7258 (do_cooked_read): Adjust.
7259 (regcache_valid_p): Rename to ...
7260 (regcache_register_status): ... this. Adjust.
7261 (regcache_invalidate): Adjust.
7262 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7264 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7265 as unavailable, not valid.
7266 (regcache_dump): Adjust.
7267 * regcache.h (enum register_status): New.
7268 (regcache_register_status): Declare.
7269 (regcache_invalidate): Delete declaration.
7270 * corelow.c (get_core_registers): Adjust.
7271 * tracepoint.c (tfile_fetch_registers): Adjust.
7272 * trad-frame.c (REG_VALUE): Rename to ...
7273 (TF_REG_VALUE): ... this.
7274 (REG_UNKNOWN): Rename to ...
7275 (TF_REG_UNKNOWN): ... this.
7276 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7277 * mi/mi-main.c (register_changed_p): Adjust.
7279 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7281 * regcache.c (struct regcache_descr): Remove outdated comment.
7282 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7284 (regcache_xmalloc): Rename to ...
7285 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7286 Allocate the regcache type accordingly.
7287 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7288 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7289 cooked registers, not raw.
7290 (regcache_dup_no_passthrough): Delete.
7291 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7292 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7293 mention obsolete write_register_bytes.
7294 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7296 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7298 Stop remote_read_bytes from handling partial reads itself.
7300 * remote-fileio.c: Include target.h.
7301 (remote_fileio_write_bytes): Delete.
7302 (remote_fileio_func_open, remote_fileio_func_write)
7303 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7305 (remote_fileio_func_stat): Use target_read_memory and
7306 target_write_memory.
7307 (remote_fileio_func_gettimeofday): Use target_write_memory.
7308 (remote_fileio_func_system): Use target_read_memory.
7309 * remote.c (remote_write_bytes): Make it static.
7310 (remote_read_bytes): Don't handle partial reads here.
7311 * remote.h (remote_read_bytes): Delete declaration.
7313 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7315 Simplify XML parsing a bit.
7317 * xml-support.h (gdb_xml_parse_quick): Declare.
7318 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7319 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7321 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7322 gdb_xml_create_parser_and_cleanup_1.
7323 (gdb_xml_parse_quick): New.
7324 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7325 * osdata.c (osdata_parse): Ditto.
7326 * remote.c (remote_threads_info): Ditto.
7327 * solib-target.c (solib_target_parse_libraries): Ditto.
7328 * xml-syscall.c (syscall_parse_xml): Ditto.
7329 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7331 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7333 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7334 with remote-mips.o added to gdb_target_obs.
7335 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7337 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7339 * ada-valprint.c (val_print_packed_array_elements): Pass the
7340 correct struct value to val_print.
7341 (ada_val_print_1): Ditto.
7343 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7345 Don't lose embedded_offset in printing routines throughout.
7347 * valprint.h (val_print_array_elements): Change prototype.
7348 * valprint.c (val_print_array_elements): Add `embedded_offset'
7349 parameter, and adjust to pass it down to val_print, while passing
7350 `valaddr' or `address' unmodified. Take embedded_offset into
7351 account when checking repetitions.
7352 * c-valprint.c (c_val_print): Pass embedded_offset to
7353 val_print_array_elements instead of adjusting `valaddr' and
7355 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7356 embedded_offset to val_print_array_elements instead of adjusting
7358 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7359 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7360 val_print_array_elements and pascal_object_print_value_fields
7361 instead of adjusting `valaddr'.
7362 (pascal_object_print_value_fields): Add `offset' parameter, and
7364 (pascal_object_print_value): Add `offset' parameter, and adjust to
7366 (pascal_object_print_static_field): Use
7367 value_contents_for_printing/value_embedded_offset, rather than
7369 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7370 parameter, and adjust to use it. Use
7371 value_contents_for_printing/value_embedded_offset, rather than
7373 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7374 (ada_val_print_array): Add `offset' parameter, and adjust to use
7376 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7377 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7378 Instead work with offsets. Use
7379 value_contents_for_printing/value_embedded_offset, rather than
7380 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7381 and use value_from_pointer to extract a target pointer, rather
7382 than value_from_longest.
7383 (print_variant_part): Add `offset' parameter. Replace
7384 `outer_valaddr' parameter by a new `outer_offset' parameter.
7385 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7386 (ada_value_print): Use
7387 value_contents_for_printing/value_embedded_offset, rather than
7389 (print_record): Add `offset' parameter, and adjust to pass it
7391 (print_field_values): Add `offset' parameter. Replace
7392 `outer_valaddr' parameter by a new `outer_offset' parameter.
7393 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7394 Use value_contents_for_printing/value_embedded_offset, rather than
7396 * d-valprint.c (dynamic_array_type): Use
7397 value_contents_for_printing/value_embedded_offset, rather than
7399 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7400 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7401 (java_print_value_fields): Take `offset' into account. Don't
7402 re-adjust `valaddr'. Instead pass down adjusted offsets.
7403 (java_val_print): Take `embedded_offset' into account. Pass it to
7404 java_print_value_fields.
7405 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7406 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7407 down adjusted offsets.
7408 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7409 (f_val_print): Take `embedded_offset' into account.
7411 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7413 * inflow.c: Include "gdbcmd.h".
7414 (interactive_mode): New static global, moved here from top.c.
7415 (show_interactive_mode): New function, moved here from top.c.
7416 use gdb_has_a_terminal instead of input_from_terminal_p to
7417 determine the current mode.
7418 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7420 (_initialize_inflow): Add the "set/show interactive-mode"
7421 commands. Moved here from top.c, after having adjusted slightly
7423 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7425 (input_from_terminal_p): Remove handling of "interactive-mode"
7426 setting, moved to infow.c.
7427 (init_main): Remove creation of the "set/show interactive-mode"
7428 commands, moved to inflow.c.
7430 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7432 * NEWS: Add entry for native ia64-hpux support.
7434 2011-01-19 Tom Tromey <tromey@redhat.com>
7437 * thread.c (free_thread): Free 'name'.
7438 (print_thread_info): Emit thread name. Change CLI output.
7439 (thread_name_command): New function.
7440 (do_captured_thread_select): Emit newline.
7441 (_initialize_thread): Register 'thread name' command.
7442 * target.h (struct target_ops) <to_thread_name>: New field.
7443 (target_thread_name): New macro.
7444 * target.c (update_current_target): Handle to_thread_name.
7445 * python/py-infthread.c (thpy_get_name): New function.
7446 (thpy_set_name): Likewise.
7447 (thread_object_getset): Add "name".
7448 * linux-nat.c (linux_nat_thread_name): New function.
7449 (linux_nat_add_target): Set to_thread_name.
7450 * gdbthread.h (struct thread_info) <name>: New field.
7452 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7454 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7455 (ada_val_print_1): Likewise.
7457 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7459 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7460 upper limit address is not greater than the function end address
7461 when the upper limit could not be computed using the debugging
7464 2011-01-17 Tom Tromey <tromey@redhat.com>
7466 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7468 * utils.c: Include gdb_regex.h.
7469 (do_regfree_cleanup): New function.
7470 (make_regfree_cleanup): Likewise.
7471 (get_regcomp_error): Likewise.
7472 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7474 2011-01-17 Tom Tromey <tromey@redhat.com>
7476 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7479 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7481 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7482 for internal variables.
7483 (last_was_structop): New static variable.
7484 (COMPLETE): New token.
7485 (field_exp): New rule to group all '.' suffix handling.
7486 Add mark_struct_expression calls when approriate to be able
7487 to correctly find fields for completion.
7488 (yylex): Adapt to handle field completion and set INTVAR when
7491 2011-01-14 Yao Qi <yao@codesourcery.com>
7493 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7494 save_reggroup, restore_reggroup and all_reggroup.
7496 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7498 * ada-valprint. (ada_printchar): Use the correct type length
7499 in call to ada_emit_char.
7500 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7502 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7504 * solib-som.h (hpux_major_release): Declare variable here.
7505 * solib-som.c: Remove <sys/utsname.h> header.
7506 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7507 (hpux_major_release): Make global, change default value to
7508 DEFAULT_HPUX_MAJOR_RELEASE.
7509 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7510 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7511 Add "solib-som.h" header.
7512 (set_hpux_major_release): New function.
7513 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7515 2011-01-14 Mike Frysinger <vapier@gentoo.org>
7517 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7519 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7521 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7522 new-line at end of warning message.
7523 (ia64_hpux_store_register): Remove trailing new-line at end of
7525 * ia64-hpux-tdep.c: Rephrase comment.
7526 * solib-ia64-hpux.c (struct dld_info): Change type of field
7527 dld_flags from "long long" to ULONGEST.
7529 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7531 * target.h (deprecated_child_ops): Delete declaration.
7532 * target.c (deprecated_child_ops): Delete definition.
7534 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7536 * Makefile.in (hpux-thread.o): Delete rule.
7537 * configure.ac: Don't check for HPUX DCE threads support.
7538 * configure, config.in: Regenerate.
7539 * hppa-hpux-nat.c (child_suppress_run): Delete.
7540 (hppa_hpux_child_can_run): Delete.
7541 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7542 * hpux-thread.c: Delete.
7544 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7546 * hpux-thread.c (hpux_pid_to_str): Delete.
7548 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7550 * ada-valprint.c (ada_emit_char): Remove strange code.
7551 Check that c is <= UCHAR_MAX before passing it to isascii.
7552 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7554 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7556 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7557 to the case where instream is stdin.
7559 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7561 * ia64-tdep.h (struct regcache): Forward declare.
7562 (struct ia64_infcall_ops): New struct type.
7563 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7565 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7566 Renames ia64_find_global_pointer.
7567 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7568 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7569 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7571 (ia64_infcall_ops): New static global constant.
7572 (ia64_gdbarch_init): Set tdep->infcall_ops.
7573 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7574 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7575 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7576 (ia64_hpux_dummy_code): New static global constant.
7577 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7578 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7579 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7581 (ia64_hpux_infcall_ops): New static global constant.
7582 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7583 for inferior function calls to work properly on ia64-hpux.
7585 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7587 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7588 * ia64-tdep.h (struct frame_info): forward declaration.
7589 (struct gdbarch_tdep): Add field size_of_register_frame.
7590 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
7591 to determine the size of the register frame.
7592 (ia64_size_of_register_frame): New function.
7593 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
7594 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
7595 (IA64_HPUX_UREG_REASON): New macro.
7596 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
7598 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
7599 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
7600 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
7603 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7605 Add support for ia64-hpux.
7606 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
7607 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
7609 * configure.host: Add handling for ia64-hpux hosts. Add associated
7611 * configure.tgt: Add handling for ia64-hpux targets.
7612 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
7613 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
7614 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
7616 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7618 [ttrace] Compute thread list immediately after attach.
7619 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
7621 (inf_ttrace_attach): Use it.
7623 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7625 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
7626 if we could not determine the frame's function address. Instead,
7627 use the frame's PC, and then continue.
7629 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7631 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
7632 not already defined.
7634 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7636 * ia64-tdep.c (ia64_struct_type_p): New function.
7637 (ia64_extract_return_value): Handle integral values that are
7638 less than 8 bytes long.
7639 (ia64_push_dummy_call): Likewise.
7641 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7643 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
7644 floatformat_ia64_ext.
7645 (floatformat_ia64_ext_big): New static const.
7646 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
7648 2011-01-12 Tom Tromey <tromey@redhat.com>
7650 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
7652 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
7653 (mi_cmd_thread_list_ids): Likewise.
7654 (mi_cmd_data_list_changed_registers): Likewise.
7655 (mi_cmd_data_list_register_values): Likewise.
7656 (mi_cmd_data_write_register_values): Likewise.
7657 (mi_cmd_data_evaluate_expression): Likewise.
7658 (mi_cmd_data_read_memory): Likewise.
7659 (mi_cmd_data_read_memory_bytes): Likewise.
7660 (mi_cmd_data_write_memory): Likewise.
7661 (mi_cmd_enable_timings): Likewise.
7662 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
7663 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
7664 (mi_cmd_var_delete): Likewise.
7665 (mi_cmd_var_set_format): Likewise.
7666 (mi_cmd_var_show_format): Likewise.
7667 (mi_cmd_var_info_num_children): Likewise.
7668 (mi_cmd_var_list_children): Likewise.
7669 (mi_cmd_var_info_type): Likewise.
7670 (mi_cmd_var_info_expression): Likewise.
7671 (mi_cmd_var_show_attributes): Likewise.
7672 (mi_cmd_var_assign): Likewise.
7673 (mi_cmd_var_update): Likewise.
7674 (mi_cmd_enable_pretty_printing): Likewise.
7675 (mi_cmd_var_set_update_range): Likewise.
7676 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
7678 (mi_cmd_target_file_put): Likewise.
7679 (mi_cmd_target_file_delete): Likewise.
7680 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
7682 (mi_cmd_stack_info_depth): Likewise.
7683 (mi_cmd_stack_list_locals): Likewise.
7684 (mi_cmd_stack_list_args): Likewise.
7685 (mi_cmd_stack_select_frame): Likewise.
7686 (mi_cmd_stack_select_frame): Likewise.
7687 (mi_cmd_stack_info_frame): Likewise.
7688 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
7690 (mi_cmd_file_list_exec_source_files): Likewise.
7691 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
7692 (mi_cmd_env_cd): Likewise.
7693 (mi_cmd_env_path): Likewise.
7694 (mi_cmd_env_dir): Likewise.
7695 (mi_cmd_inferior_tty_show): Likewise.
7696 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
7697 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
7698 (mi_cmd_break_watch): Likewise.
7700 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
7702 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
7703 (ppc_linux_insert_hw_breakpoint): Likewise.
7704 (ppc_linux_remove_hw_breakpoint): Likewise.
7705 (ppc_linux_insert_watchpoint): Likewise.
7707 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7708 Jan Kratochvil <jan.kratochvil@redhat.com>
7710 PR fortran/11104 and DWARF unbound arrays detection.
7711 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
7712 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
7713 unspecified upper bound.
7714 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
7715 variables array_size_array, tmp_type and offset_item. New variable
7716 array. Remove call to f77_get_upperbound. New variables array_type
7717 and index. Call value_subscripted_rvalue for each dimenasion. Remove
7718 the final call to deprecated_set_value_type.
7720 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7722 Make value allocations more lazy.
7723 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
7724 instead of allocate_value and set_value_lazy when possible.
7725 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
7726 instead of allocate_value and set_value_lazy.
7727 * findvar.c (value_of_register_lazy): Likewise.
7728 (read_var_value): Remove V preallocation, call just check_typedef in
7729 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
7730 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
7731 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
7732 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
7733 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
7734 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
7735 the end, remove set_value_lazy there.
7736 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
7737 instead of allocate_value and set_value_lazy when possible.
7738 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
7739 * value.c (allocate_computed_value): Use allocate_value_lazy instead
7740 of allocate_value and set_value_lazy.
7741 (value_from_contents_and_address): Use allocate_value_lazy instead of
7742 allocate_value and set_value_lazy when possible.
7744 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7746 * disasm.c (dump_insns): Support dumping opcodes for MI.
7747 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
7748 dumping of instruction opcodes.
7750 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
7752 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
7755 2011-01-11 Tom Tromey <tromey@redhat.com>
7757 * thread.c (do_captured_thread_select): Emit newline before
7760 2011-01-11 Michael Snyder <msnyder@vmware.com>
7762 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
7763 * score-tdep.c: Ditto.
7764 * score-tdep.h: Ditto.
7765 * ser-base.c: Ditto.
7766 * ser-go32.c: Ditto.
7769 * ser-mingw.c: Ditto.
7770 * ser-pipe.c: Ditto.
7772 * ser-unix.c: Ditto.
7773 * sh64-tdep.c: Ditto.
7774 * shnbsd-nat.c: Ditto.
7778 * solib-darwin.c: Ditto.
7779 * solib-frv.c: Ditto.
7781 * solib-irix.c: Ditto.
7782 * solib-osf.c: Ditto.
7783 * solib-pa64.c: Ditto.
7784 * solib-som.c: Ditto.
7785 * solib-spu.c: Ditto.
7786 * solib-sunos.c: Ditto.
7787 * solib-svr4.c: Ditto.
7789 * sol-thread.c: Ditto.
7793 * sparc64-linux-tdep.c: Ditto.
7794 * sparc64-tdep.c: Ditto.
7795 * sparc-linux-nat.c: Ditto.
7796 * sparc-linux-tdep.c: Ditto.
7797 * sparc-sol2-nat.c: Ditto.
7798 * sparc-sol2-tdep.c: Ditto.
7799 * sparc-tdep.c: Ditto.
7800 * sparc-tdep.h: Ditto.
7801 * spu-tdep.c: Ditto.
7802 * stabsread.c: Ditto.
7803 * stabsread.h: Ditto.
7811 * target-descriptions.c: Ditto.
7812 * target-descriptions.h: Ditto.
7814 * target-memory.c: Ditto.
7815 * terminal.h: Ditto.
7818 * tracepoint.c: Ditto.
7819 * tracepoint.h: Ditto.
7820 * trad-frame.h: Ditto.
7821 * typeprint.c: Ditto.
7823 2011-01-11 Michael Snyder <msnyder@vmware.com>
7825 * ui-file.c: Comment cleanup, mostly periods and spaces.
7830 * v850-tdep.c: Ditto.
7831 * valarith.c: Ditto.
7833 * valprint.c: Ditto.
7834 * valprint.h: Ditto.
7839 * vax-tdep.c: Ditto.
7843 * windows-nat.c: Ditto.
7844 * windows-tdep.c: Ditto.
7845 * xcoffread.c: Ditto.
7846 * xcoffsolib.c: Ditto.
7847 * xml-support.c: Ditto.
7848 * xstormy16-tdep.c: Ditto.
7849 * xtensa-tdep.c: Ditto.
7850 * xtensa-tdep.h: Ditto.
7852 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7854 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
7855 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
7857 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7858 Thiago Jung Bauermann <bauerman@br.ibm.com>
7860 Implement support for PowerPC BookE ranged watchpoints.
7862 (struct breakpoint_ops) <resources_needed>: New method.
7863 Initialize to NULL in all existing breakpoint_ops instances.
7864 (struct breakpoint) <exact>: New field.
7865 (target_exact_watchpoints): Declare external global.
7866 * breakpoint.c (target_exact_watchpoints): New global flag.
7867 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
7868 b->enable_state to bp_enabled before calling
7869 hw_watchpoint_used_count.
7870 (hw_watchpoint_used_count): Iterate over all bp_locations in a
7871 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
7873 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
7874 if the watchpoint is exact.
7875 (resources_needed_watchpoint): New function.
7876 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
7877 (watch_command_1): Set b->exact if the user asked for an exact
7878 watchpoint and one can be set.
7879 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
7880 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
7881 the user asks for an exact watchpoint and one can be set. Return
7882 number of needed debug registers to watch the expression.
7883 * gdbtypes.c (is_scalar_type): New function, based on
7884 valprint.c:scalar_type_p.
7885 (is_scalar_type_recursive): New function.
7886 * gdbtypes.h (is_scalar_type_recursive): Declare.
7887 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
7888 handle regions when ranged watchpoints are available.
7889 (create_watchpoint_request): New function.
7890 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
7891 create_watchpoint_request.
7892 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
7893 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
7894 `set powerpc' and `show powerpc' commands.
7895 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7896 Mention documentation comment in the target macro.
7897 (target_region_ok_for_hw_watchpoint): Document return value.
7899 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7901 * breakpoint.c (update_watchpoint): Decide on using a software or
7902 hardware watchpoint after the bp_locations are created.
7904 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7906 Convert hardware watchpoints to use breakpoint_ops.
7907 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
7908 <insert_location>: ... this. Return int instead of void.
7909 Accept pointer to struct bp_location instead of pointer to
7910 struct breakpoint. Adapt all implementations.
7911 (breakpoint_ops) <remove>: Rename to...
7912 <remove_location>: ... this. Accept pointer to struct bp_location
7913 instead of pointer to struct breakpoint. Adapt all implementations.
7914 * breakpoint.c (insert_catchpoint): Delete function.
7915 (insert_bp_location): Call the watchpoint or catchpoint's
7916 breakpoint_ops.insert method.
7917 (remove_breakpoint_1): Call the watchpoint or catchpoint's
7918 breakpoint_ops.remove method.
7919 (insert_watchpoint, remove_watchpoint): New functions.
7920 (watchpoint_breakpoint_ops): New structure.
7921 (watch_command_1): Initialize the OPS field.
7922 * inf-child.c (inf_child_insert_fork_catchpoint)
7923 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
7924 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
7925 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
7927 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
7928 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
7929 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
7930 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
7931 * target.c (update_current_target): Change default implementation of
7932 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
7933 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
7934 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
7935 to_set_syscall_catchpoint to return_one.
7936 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
7937 (debug_to_insert_exec_catchpoint): Report return value.
7938 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
7939 (to_insert_exec_catchpoint): Change declaration to return int instead
7942 2011-01-11 Michael Snyder <msnyder@vmware.com>
7944 * arm-tdep.c: Internationalization.
7947 * fork-child.c: Ditto.
7948 * nto-procfs.c: Ditto.
7949 * ppc-sysv-tdep.c: Ditto.
7951 * remote-mips.c: Ditto.
7953 * rs6000-nat.c: Ditto.
7954 * rs6000-tdep.c: Ditto.
7958 * xml-support.c: Ditto.
7959 * mi/mi-cmd-break.c: Ditto.
7960 * mi/mi-cmd-var.c: Ditto.
7961 * mi/mi-interp.c: Ditto.
7962 * mi/mi-main.c: Ditto.
7964 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
7966 * remote-sim.c (gdbsim_store_register): Update API to
7967 sim_store_register to check more error conditions.
7969 2011-01-10 Michael Snyder <msnyder@vmware.com>
7971 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
7972 * nto-tdep.c: Ditto.
7973 * nto-tdep.h: Ditto.
7974 * objc-exp.y: Ditto.
7975 * objc-lang.c: Ditto.
7976 * objfiles.c: Ditto.
7977 * objfiles.h: Ditto.
7978 * observer.c: Ditto.
7979 * opencl-lang.c: Ditto.
7982 * parser-defs.h: Ditto.
7985 * posix-hdep.c: Ditto.
7986 * ppcbug-rom.c: Ditto.
7987 * ppc-linux-nat.c: Ditto.
7988 * ppc-linux-tdep.c: Ditto.
7989 * ppc-linux-tdep.h: Ditto.
7990 * ppcnbsd-tdep.c: Ditto.
7991 * ppcobsd-tdep.c: Ditto.
7992 * ppcobsd-tdep.h: Ditto.
7993 * ppc-sysv-tdep.c: Ditto.
7994 * ppc-tdep.h: Ditto.
7995 * printcmd.c: Ditto.
7996 * proc-abi.c: Ditto.
7997 * proc-flags.c: Ditto.
7999 * proc-utils.h: Ditto.
8000 * progspace.h: Ditto.
8001 * prologue-value.c: Ditto.
8002 * prologue-value.h: Ditto.
8003 * psympriv.h: Ditto.
8005 * p-typeprint.c: Ditto.
8006 * p-valprint.c: Ditto.
8007 * ravenscar-sparc-thread.c: Ditto.
8008 * ravenscar-thread.c: Ditto.
8009 * ravenscar-thread.h: Ditto.
8011 * regcache.c: Ditto.
8012 * regcache.h: Ditto.
8014 * remote-fileio.c: Ditto.
8015 * remote-fileio.h: Ditto.
8017 * remote-m32r-sdi.c: Ditto.
8018 * remote-mips.c: Ditto.
8019 * remote-sim.c: Ditto.
8020 * rs6000-aix-tdep.c: Ditto.
8021 * rs6000-nat.c: Ditto.
8022 * rs6000-tdep.c: Ditto.
8024 2011-01-10 Michael Snyder <msnyder@vmware.com>
8026 * charset.c (validate): Internationalization.
8027 * coffread.c (read_one_sym): Ditto.
8028 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8029 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8030 * inflow.c (new_tty): Ditto.
8031 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8032 * m32c-tdep.c (m32c_return_value): Ditto.
8033 * mep-tdep.c (mep_store_return_value): Ditto.
8034 * score-tdep.c (score7_fetch_insn): Ditto.
8035 * ser-mingw.c (pipe_windows_open): Ditto.
8036 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8037 * spu-tdep.c (spu_register_type): Ditto.
8038 * tracepoint.c (trace_find_command): Ditto.
8039 * valarith.c (value_pos): Ditto.
8041 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8043 * ada-valprint.c (printstr): Minor comment reformatting.
8045 2011-01-08 Michael Snyder <msnyder@vmware.com>
8047 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8050 2011-01-08 Michael Snyder <msnyder@vmware.com>
8052 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8053 * hppa-hpux-tdep.c: Ditto.
8054 * hppa-linux-nat.c: Ditto.
8055 * hppa-linux-tdep.c: Ditto.
8056 * hppanbsd-tdep.c: Ditto.
8057 * hppa-tdep.c: Ditto.
8058 * hppa-tdep.h: Ditto.
8059 * hpux-thread.c: Ditto.
8060 * i386-cygwin-tdep.c: Ditto.
8061 * i386-darwin-nat.c: Ditto.
8062 * i386gnu-nat.c: Ditto.
8063 * i386-linux-nat.c: Ditto.
8064 * i386-linux-tdep.c: Ditto.
8065 * i386-nat.c: Ditto.
8066 * i386-nat.h: Ditto.
8067 * i386nbsd-tdep.c: Ditto.
8068 * i386-sol2-nat.c: Ditto.
8069 * i386-stub.c: Ditto.
8070 * i386-tdep.c: Ditto.
8071 * i386-tdep.h: Ditto.
8072 * i387-tdep.c: Ditto.
8073 * ia64-linux-nat.c: Ditto.
8074 * ia64-linux-tdep.c: Ditto.
8075 * ia64-tdep.c: Ditto.
8079 * inferior.c: Ditto.
8080 * inferior.h: Ditto.
8086 * iq2000-tdep.c: Ditto.
8087 * irix5-nat.c: Ditto.
8093 * jv-typeprint.c: Ditto.
8094 * jv-valprint.c: Ditto.
8095 * language.c: Ditto.
8096 * language.h: Ditto.
8097 * linespec.c: Ditto.
8098 * linux-fork.c: Ditto.
8099 * linux-nat.c: Ditto.
8100 * linux-thread-db.c: Ditto.
8101 * lm32-tdep.c: Ditto.
8103 2011-01-08 Michael Snyder <msnyder@vmware.com>
8105 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8107 * m2-typeprint.c: Ditto.
8108 * m2-valprint.c: Ditto.
8109 * m32c-tdep.c: Ditto.
8110 * m32r-linux-nat.c: Ditto.
8111 * m32r-rom.c: Ditto.
8112 * m32r-tdep.c: Ditto.
8113 * m32r-tdep.h: Ditto.
8114 * m68hc11-tdep.c: Ditto.
8115 * m58klinux-nat.c: Ditto.
8116 * m68k-tdep.c: Ditto.
8117 * m88k-tdep.c: Ditto.
8118 * m88k-tdep.h: Ditto.
8119 * machoread.c: Ditto.
8120 * macrocmd.c: Ditto.
8121 * macroexp.c: Ditto.
8122 * macrotab.c: Ditto.
8125 * mdebugread.c: Ditto.
8126 * mdebugread.h: Ditto.
8129 * memory-map.h: Ditto.
8130 * mep-tdep.c: Ditto.
8131 * microblaze-rom.c: Ditto.
8132 * microblaze-tdep.c: Ditto.
8134 * mips-irix-tdep.c: Ditto.
8135 * mips-linux-nat.c: Ditto.
8136 * mips-linux-tdep.c: Ditto.
8137 * mips-linux-tdep.h: Ditto.
8138 * mipsnbsd-nat.c: Ditto.
8139 * mipsnbsd-tdep.c: Ditto.
8140 * mipsread.c: Ditto.
8141 * mips-tdep.c: Ditto.
8142 * mips-tdep.h: Ditto.
8143 * mn10300-linux-tdep.c: Ditto.
8144 * mn10300-tdep.c: Ditto.
8145 * mn10300-tdep.h: Ditto.
8148 * moxie-tdep.c: Ditto.
8149 * moxie-tdep.h: Ditto.
8152 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8154 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8156 2011-01-08 Robert Millan <rmh@gnu.org>
8158 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8160 2011-01-07 Michael Snyder <msnyder@vmware.com>
8162 * charset.c (_initialize_charset): Fix typo in string.
8164 2011-01-07 Michael Snyder <msnyder@vmware.com>
8166 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8168 * tui/tui-layout.c (tui_set_layout_for_display_command):
8169 Split line so that operator goes to beginning of line.
8170 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8171 assignment out of if statement.
8173 2011-01-07 Michael Snyder <msnyder@vmware.com>
8175 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8176 * ada-lang.h: Ditto.
8177 * ada-tasks.c: Ditto.
8178 * ada-valprint.c: Ditto.
8179 * aix-threads.c: Ditto.
8180 * alpha-linux-nat.c: Ditto.
8181 * alpha-linux-tdep.c: Ditto.
8182 * alpha-mdebug-tdep.c: Ditto.
8183 * alpha-nat.c: Ditto.
8184 * alpha-osf1-tdep.c: Ditto.
8185 * alpha-tdep.c: Ditto.
8186 * alphabsd-nat.c: Ditto.
8187 * alphabsd-tdep.c: Ditto.
8188 * amd64-darwin-tdep.c: Ditto.
8189 * amd64-linux-nat.c: Ditto.
8190 * amd64-linux-tdep.c: Ditto.
8191 * amd64-sol2-tdep.c: Ditto.
8192 * amd64-tdep.c: Ditto.
8193 * amd64-fbsd-tdep.c: Ditto.
8194 * amd64-nbsd-tdep.c: Ditto.
8195 * amd64-obsd-tdep.c: Ditto.
8196 * amd64-linux-nat.c: Ditto.
8197 * amd64-linux-tdep.c: Ditto.
8198 * arm-tdep.c: Ditto.
8199 * arm-tdep.h: Ditto.
8200 * armnbsd-nat.c: Ditto.
8201 * avr-tdep.c: Ditto.
8202 * bfin-tdep.c: Ditto.
8204 * c-typeprintc: Ditto.
8205 * c-valprint.c: Ditto.
8206 * coff-pe-read.h: Ditto.
8207 * coffreead.c: Ditto.
8208 * cris-tdep.c: Ditto.
8210 * darwin-nat-info.c: Ditto.
8211 * darwin-nat.c: Ditto.
8212 * dbug-rom.c: Ditto.
8216 * dec-thread.c: Ditto.
8218 * demangle.c: Ditto.
8219 * dicos-tdep.c: Ditto.
8220 * dictionary.c: Ditto.
8221 * dictionary.h: Ditto.
8222 * dink32-rom.c: Ditto.
8224 * doublest.c: Ditto.
8226 * dummy-frame.c: Ditto.
8227 * dwarf2-frame.c: Ditto.
8228 * dwarf2expr.c: Ditto.
8229 * dwarf2loc.c: Ditto.
8230 * dwarf2read.c: Ditto.
8234 * event-top.h: Ditto.
8235 * exceptions.c: Ditto.
8236 * exceptions.h: Ditto.
8238 * expprint.c: Ditto.
8239 * expression.h: Ditto.
8243 * f-typeprint.c: Ditto.
8244 * f-valprint.c: Ditto.
8245 * fbsd-nat.c: Ditto.
8247 * fork-child.c: Ditto.
8250 * frv-linux-tdep.c: Ditto.
8251 * frv-tdep.c: Ditto.
8253 * gdb-stabs.h: Ditto.
8254 * gdb_assert.h: Ditto.
8255 * gdb_string.h: Ditto.
8256 * gdb_thread_db.h: Ditto.
8257 * gdb_wait.h: Ditto.
8258 * gdbarch.sh: Ditto.
8260 * gdbthread.h: Ditto.
8261 * gdbtypes.c: Ditto.
8262 * gdbtypes.h: Ditto.
8265 * gnu-v2-abi.c: Ditto.
8266 * gnu-v3-abi.c: Ditto.
8267 * go32-nat.c: Ditto.
8268 * gdbarch.c: Regenerate.
8269 * gdbarch.h: Regenerate.
8271 2011-01-07 Michael Snyder <msnyder@vmware.com>
8273 * ax-gdb.c: Adjust some long output strings.
8274 * breakpoint.c: Ditto.
8279 * linux-nat.c: Ditto.
8280 * solib-pa64.c: Ditto.
8281 * solib-som.c: Ditto.
8283 2011-01-06 Tom Tromey <tromey@redhat.com>
8287 * python/python.c (GdbMethods): Add "newest_frame" method.
8288 * python/python-internal.h (gdbpy_newest_frame): Declare.
8289 * python/py-frame.c (gdbpy_newest_frame): New function.
8291 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8293 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8294 * jit.c (jit_debug): New variable.
8295 (show_jit_debug): New function.
8296 (struct target_buffer): Use ULONGEST.
8297 (bfd_open_from_target_memory): Likewise.
8298 (jit_register_code, jit_inferior_init): Add debug output.
8299 (_initialize_jit): Register "debug jit" command.
8301 2011-01-06 Tom Tromey <tromey@redhat.com>
8303 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8304 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8307 2011-01-06 Tom Tromey <tromey@redhat.com>
8309 * python/py-frame.c (frapy_block): Use get_frame_block.
8311 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8313 Do not stop on SIGPRIO signals by default
8314 * infrun.c (_initialize_infrun): Unset signal_stop and
8315 signal_print for TARGET_SIGNAL_PRIO.
8317 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8319 * ada-tasks.c: Fix style violation in comment.
8321 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8323 * linespec.c (decode_compound, find_method): Remove trailing \n
8324 at end of error string.
8325 * solib-irix.c (irix_current_sos): Likewise.
8326 * varobj.c (uninstall_variable): Likewise.
8328 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8330 * copyright.py: New script.
8331 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8332 Launch emacs without exec'ing. Call copyright.py afterwards.
8334 2011-01-05 Michael Snyder <msnyder@vmware.com>
8336 * addrmap.c: Shorten lines of >= 80 columns.
8337 * arch-utils.c: Ditto.
8338 * arch-utils.h: Ditto.
8340 * ax-general.c: Ditto.
8342 * blockframe.c: Ditto.
8343 * breakpoint.c: Ditto.
8344 * buildsym.c: Ditto.
8346 * c-typeprint.c: Ditto.
8348 * coffread.c: Ditto.
8352 * cp-namespace.c: Ditto.
8353 * cp-support.c: Ditto.
8354 * dbug-rom.c: Ditto.
8359 * dictionary.c: Ditto.
8361 * doublest.c: Ditto.
8362 * dwarf2-frame.c: Ditto.
8363 * dwarf2expr.c: Ditto.
8364 * dwarf2loc.c: Ditto.
8365 * dwarf2read.c: Ditto.
8368 * event-loop.c: Ditto.
8369 * event-loop.h: Ditto.
8370 * exceptions.h: Ditto.
8372 * expprint.c: Ditto.
8373 * expression.h: Ditto.
8375 * f-valprint.c: Ditto.
8377 * frame-base.c: Ditto.
8378 * frame-unwind.c: Ditto.
8379 * frame-unwind.h: Ditto.
8383 * gdb-stabs.h: Ditto.
8384 * gdb_assert.h: Ditto.
8385 * gdb_dirent.h: Ditto.
8386 * gdb_obstack.h: Ditto.
8388 * gdbtypes.c: Ditto.
8389 * gdbtypes.h: Ditto.
8390 * inf-ttrace.c: Ditto.
8395 * inline-frame.h: Ditto.
8396 * language.c: Ditto.
8397 * language.h: Ditto.
8398 * libunwind-frame.c: Ditto.
8399 * libunwind-frame.h: Ditto.
8400 * linespec.c: Ditto.
8401 * linux-nat.c: Ditto.
8402 * linux-nat.h: Ditto.
8403 * linux-thread-db.c: Ditto.
8404 * machoread.c: Ditto.
8405 * macroexp.c: Ditto.
8406 * macrotab.c: Ditto.
8409 * mdebugread.c: Ditto.
8414 * objfiles.c: Ditto.
8415 * objfiles.h: Ditto.
8417 * p-typeprint.c: Ditto.
8418 * p-valprint.c: Ditto.
8420 * printcmd.c: Ditto.
8421 * proc-events.c: Ditto.
8423 * progspace.c: Ditto.
8424 * progspace.h: Ditto.
8425 * psympriv.h: Ditto.
8428 * regcache.c: Ditto.
8429 * regcache.h: Ditto.
8430 * remote-fileio.c: Ditto.
8432 * ser-mingw.c: Ditto.
8434 * ser-unix.c: Ditto.
8437 * solib-frv.c: Ditto.
8438 * solib-irix.c: Ditto.
8439 * solib-osf.c: Ditto.
8440 * solib-pa64.c: Ditto.
8441 * solib-som.c: Ditto.
8442 * solib-sunos.c: Ditto.
8443 * solib-svr4.c: Ditto.
8444 * solib-target.c: Ditto.
8448 * stabsread.c: Ditto.
8449 * stabsread.c: Ditto.
8452 * symfile-mem.c: Ditto.
8458 * target-descriptions.c: Ditto.
8459 * target-memory.c: Ditto.
8462 * terminal.h: Ditto.
8465 * tracepoint.c: Ditto.
8466 * tracepoint.h: Ditto.
8470 * user-regs.c: Ditto.
8471 * user-regs.h: Ditto.
8473 * valarith.c: Ditto.
8475 * valprint.c: Ditto.
8476 * valprint.h: Ditto.
8481 * xcoffread.c: Ditto.
8482 * xcoffsolib.c: Ditto.
8483 * xcoffsolib.h: Ditto.
8484 * xml-syscall.c: Ditto.
8485 * xml-tdesc.c: Ditto.
8487 2011-01-05 Michael Snyder <msnyder@vmware.com>
8489 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8490 * cli/cli-decode.c: Ditto.
8491 * cli/cli-dump.c: Ditto.
8492 * cli/cli-logging.c: Ditto.
8493 * cli/cli-script.c: Ditto.
8494 * cli/cli-setshow.c: Ditto.
8495 * common/signals.c: Ditto.
8496 * mi/mi-cmd-break.c: Ditto.
8497 * mi/mi-cmd-disas.c: Ditto.
8498 * mi/mi-cmd-stack.c: Ditto.
8499 * mi/mi-cmd-var.c: Ditto.
8500 * mi/mi-cmds.c: Ditto.
8501 * mi/mi-common.h: Ditto.
8502 * mi/mi-console.c: Ditto.
8503 * mi/mi-interp.c: Ditto.
8504 * mi/mi-main.c: Ditto.
8505 * osf-share/cma_attr.c: Ditto.
8506 * osf-share/cma_deb_core.h: Ditto.
8507 * osf-share/cma_debug_client.h: Ditto.
8508 * osf-share/cma_handle.h: Ditto.
8509 * osf-share/cma_mutex.h: Ditto.
8510 * osf-share/cma_stack_int.h: Ditto.
8511 * osf-share/cma_tcb_defs.h: Ditto.
8512 * python/py-auto-load.c: Ditto.
8513 * python/py-breakpoint.c: Ditto.
8514 * python/py-cmd.c: Ditto.
8515 * python/py-frame.c: Ditto.
8516 * python/py-objfile.c: Ditto.
8517 * python/py-param.c: Ditto.
8518 * python/py-progspace.c: Ditto.
8519 * python/py-symbol.c: Ditto.
8520 * python/py-value.c: Ditto.
8521 * python/python-internal.h: Ditto.
8522 * python/python.c: Ditto.
8523 * tui/tui-data.c: Ditto.
8524 * tui/tui-disasm.c: Ditto.
8525 * tui/tui-hooks.c: Ditto.
8526 * tui/tui-io.c: Ditto.
8527 * tui/tui-layout.c: Ditto.
8528 * tui/tui-regs.c: Ditto.
8529 * tui/tui-source.c: Ditto.
8530 * tui/tui-stack.c: Ditto.
8531 * tui/tui-win.c: Ditto.
8532 * tui/tui-windata.c: Ditto.
8533 * tui/tui-winsource.c: Ditto.
8535 2011-01-05 Joel Brobecker <brobecker@adacore.com>
8537 * configure.ac, gdb.1: Copyright year update.
8539 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8541 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8542 this_pc_in_block, morestack_msym and morestack_name. Check for
8543 "__morestack" minimal symbol there.
8545 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8547 * symfile.c (find_sym_fns): Add call to dont_repeat.
8549 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8551 Copyright year update in most files (performed by copyright.sh).
8553 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8555 * top.c (print_gdb_version): Update copyright year in version output.
8557 For older changes see ChangeLog-2010.
8563 version-control: never