1 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
5 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
6 references to current_uiout.
8 2011-08-04 Pedro Alves <pedro@codesourcery.com>
10 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
11 (start_event_loop): Use TRY_CATCH instead of catch_errors.
12 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
13 * top.c (gdb_readline_wrapper): Adjust.
14 * tui/tui-interp.c (tui_command_loop):
15 (_initialize_tui_interp): Don't install it.
17 2011-08-04 Pedro Alves <pedro@codesourcery.com>
19 * ui-out.h (uiout): Rename to ...
20 (current_uiout): ... this.
21 * ui-out.c (uiout): Rename to ...
22 (current_uiout): ... this.
23 * ada-lang.c (print_it_exception, print_one_exception)
24 (print_mention_exception): Adjust.
25 * breakpoint.c (watchpoint_check): Adjust.
26 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
27 (default_collect_info, watchpoints_info, print_one_catch_fork)
28 (print_one_catch_vfork, print_one_catch_syscall)
29 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
30 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
31 (print_it_watchpoint, print_mention_watchpoint)
32 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
33 (print_it_exception_catchpoint, print_one_exception_catchpoint)
34 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
35 (bkpt_print_mention, momentary_bkpt_print_it)
36 (tracepoint_print_mention, update_static_tracepoint)
37 (tracepoints_info, save_breakpoints): Adjust.
38 * cli-out.c (field_separator): Adjust.
39 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
40 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
41 * frame.c (get_current_frame): Adjust.
42 * infcmd.c (run_command_1, print_return_value): Adjust.
43 * inferior.c (inferior_command, info_inferiors_command): Adjust.
44 * infrun.c (print_end_stepping_range_reason): Adjust.
45 (print_signal_exited_reason, print_exited_reason): Adjust.
46 (print_signal_received_reason, print_no_history_reason): Adjust.
47 * interps.c (interp_set): Adjust.
48 * osdata.c (info_osdata_command): Adjust.
49 * progspace.c (maintenance_info_program_spaces_command): Adjust.
50 * remote-fileio.c (remote_fileio_request): Adjust.
51 * remote.c (show_remote_cmd): Adjust.
52 * solib.c (info_sharedlibrary_command): Adjust.
53 * source.c (print_source_lines_base): Adjust.
54 * stack.c (print_stack_frame): Adjust.
55 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
56 * symfile-mem.c (add_vsyscall_page): Adjust.
57 * symfile.c (load_progress, generic_load)
58 (print_transfer_performance): Adjust.
59 * thread.c (info_threads_command, restore_selected_frame)
60 (thread_command): Adjust.
61 * top.c (make_cleanup_restore_ui_file): Adjust.
62 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
63 (print_one_static_tracepoint_marker): Adjust.
64 * cli/cli-cmds.c (print_disassembly): Adjust.
65 * cli/cli-decode.c (print_doc_line): Adjust.
66 * cli/cli-interp.c (safe_execute_command): Adjust.
67 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
68 (handle_redirections): Adjust.
69 * cli/cli-script.c (show_user_1): Adjust.
70 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
71 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
72 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
73 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
74 (mi_cmd_env_dir): Adjust.
75 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
76 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
77 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
78 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
79 (list_args_or_locals): Adjust.
80 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
81 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
82 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
83 (mi_cmd_var_list_children, mi_cmd_var_info_type)
84 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
85 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
86 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
87 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
88 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
89 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
90 (list_available_thread_groups, mi_cmd_list_thread_groups)
91 (mi_cmd_data_list_register_names)
92 (mi_cmd_data_list_changed_registers)
93 (mi_cmd_data_list_register_values, get_register)
94 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
95 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
96 (mi_cmd_list_target_features, mi_cmd_add_inferior)
97 (mi_execute_command, mi_load_progress): Adjust.
98 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
99 * python/py-auto-load.c (print_script, info_auto_load_scripts):
101 * python/py-breakpoint.c (bppy_get_commands): Adjust.
102 * tui/tui-interp.c (tui_command_loop): Adjust.
103 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
105 2011-08-04 Pedro Alves <pedro@codesourcery.com>
107 * exceptions.c (struct catcher): Remove saved_uiout field.
108 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
109 no longer save/resvore the global ui_out builder.
110 (catch_exceptions_with_msg): Save/override/restore the global
111 ui_out builder manually instead of relying on TRY_CATCH to do it.
112 (catch_errors): Save/restore the global ui_out builder manually
113 instead of relying on TRY_CATCH to do it.
114 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
117 * cli/cli-interp.c (safe_execute_command): Save/override/restore
118 the global ui_out builder manually instead of relying on TRY_CATCH
121 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
123 * breakpoint.c (update_global_location_list): Ensure
124 invariant 'first loc marked not duplicated and inserted,
125 following locs marked duplicated/not inserted' is respected
126 for multiple locations at the same address.
127 (unduplicated_should_be_inserted) New function.
128 (swap_insertion) New function.
130 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
132 * stack.c (print_frame_arguments_choices): Comment typo fix.
134 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
137 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
138 * breakpoint.c (insert_bp_location): Remove disabled_breaks
139 argument. Update callers.
141 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
144 * doublest.c (convert_doublest_to_floatformat): Pass correct
145 mantissa length to put_field.
147 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
149 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
150 exception_print code path.
151 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
152 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
153 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
155 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
158 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
159 Remove, merge them into ...
160 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
161 variable args and its initialization.
162 (struct print_args_args, print_args_stub): Remove, merge them into
164 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
166 (do_gdb_disassembly): ... here. Remove variable args and its
168 (print_frame): Remove variable args and its initialization, new
169 variable gdbarch and numargs (from print_args_stub), inline here
170 print_args_stub with a TRY_CATCH.
171 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
173 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
174 New variable e, remove variable btargs and its initialization.
176 2011-08-01 Tristan Gingold <gingold@adacore.com>
178 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
180 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
182 * breakpoint.c (insert_bp_location): Document return value.
183 (insert_breakpoint_locations): Fix documentation.
184 (remove_breakpoints): Add documentation.
186 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
188 * breakpoint.c (insert_bp_location): Remove disabled_breaks
189 argument. Update callers.
191 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
193 * stack.c (print_frame_info): Comment typo fix.
195 2011-07-29 Sterling Augustine <saugustine@google.com>
197 * MAINTAINERS (Write After Approval): Add myself to the list.
199 2011-07-29 Tom Tromey <tromey@redhat.com>
201 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
202 (library_list_start_segment): Update.
203 (library_list_start_section): Update.
205 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
207 * varobj.c (value_get_print_value): Move hint check later into the
208 function. Comment function. Free thevalue before reusing it.
210 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
211 Pedro Alves <pedro@codesourcery.com>
213 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
215 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
216 Assert the result kind.
217 * value.h (value_one): Remove parameter lv.
219 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
221 Fix crash on lval_computed values.
222 * valops.c (value_zero): Use not_lval for lval_computed.
224 2011-07-27 Tom Tromey <tromey@redhat.com>
226 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
227 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
229 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
231 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
232 "ptype" by their typedefs difference.
234 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
236 * dwarf2expr.c (ctx_no_read_reg): New function.
237 * dwarf2expr.h (ctx_no_read_reg): New declaration.
238 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
239 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
240 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
242 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
244 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
245 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
247 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
248 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
249 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
250 (ctx_no_get_base_type): Move the functions here.
251 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
252 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
253 (ctx_no_get_base_type): New declarations.
255 2011-07-27 Tom Tromey <tromey@redhat.com>
257 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
259 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
260 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
262 2011-07-26 Sterling Augustine <saugustine@google.com>
264 * cli/cli-dump.c (dump_binary_file): Change parameter type to
266 (dump_bfd_file): Likewise.
268 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
270 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
271 (remote_hw_watchpoint_length_limit): New variable.
272 (_initialize_remote) add set,show cmds for this new variable.
273 * gdb.texinfo: document these new commands.
274 * NEWS: Mention these new commands.
276 2011-07-26 Pedro Alves <pedro@codesourcery.com>
278 * breakpoint.c (works_in_software_mode_watchpoint): Also return
279 true for software watchpoints.
281 2011-07-26 Joel Brobecker <brobecker@adacore.com>
285 2011-07-26 Tom Tromey <tromey@redhat.com>
287 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
288 * dwarf2read.c (read_indirect_string_at_offset): New function.
289 (read_indirect_string): Use it.
290 (dwarf_decode_macro_bytes): New function, taken from
291 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
292 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
293 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
295 (struct dwarf2_per_objfile) <macro>: New field.
296 (dwarf2_elf_names): Add .debug_macro.
297 (dwarf2_macros_too_long_complaint): Add 'section' argument.
298 (dwarf2_locate_sections): Handle new section.
299 (read_file_scope): Handle DW_AT_GNU_macros.
300 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
302 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
304 * NEWS: Mention dcache configuration.
305 * dcache.c (dcache_set_list, dcache_show_list): New variables.
306 (dcache_size, dcache_line_size): New variables.
307 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
308 (struct dcache_block): Make it expandable.
309 (struct dcache_struct): New field.
310 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
311 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
312 (dcache_poke_byte, dcache_print_line): Adjust.
313 (set_dcache_size, set_dcache_line_size): New functions.
314 (set_dcache_command, show_dcache_command): New functions.
315 (_initialize_dcache): Add new commands.
317 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
319 * progspace.h (struct program_space): Add solib_add_generation.
320 * infcmd.c (post_create_inferior): Only call solib_add if not
322 * solib.c (solib_add): Increment solib_add_generation.
324 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
326 Fix implicit pointer offsets.
327 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
330 2011-07-25 Tom Tromey <tromey@redhat.com>
332 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
334 (ada_exception_sal): Make 'ops' const.
335 (ada_decode_exception_location): Likewise.
336 (ada_decode_assert_location): Likewise.
337 (catch_assert_command): Update.
338 (catch_ada_exception_command): Update.
339 (create_ada_exception_catchpoint): Make 'ops' const.
340 * breakpoint.c (set_raw_breakpoint_without_location)
341 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
343 (create_internal_breakpoint): Update.
344 (init_raw_breakpoint_without_location): Make 'ops' const.
345 (init_raw_breakpoint, init_catchpoint)
346 (create_fork_vfork_event_catchpoint)
347 (create_syscall_event_catchpoint, init_breakpoint_sal)
348 (create_breakpoint_sal, create_breakpoints_sal)
349 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
350 * breakpoint.h (struct breakpoint) <ops>: Now const.
351 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
354 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
356 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
358 2011-07-25 Pedro Alves <pedro@codesourcery.com>
360 * breakpoint.h (print_recreate_thread): Declare.
361 (struct breakpoint): Move step_count, pass_count,
362 number_on_target, static_trace_marker_id,
363 static_trace_marker_id_idx ...
364 (struct tracepoint): ... to this new struct.
365 (get_tracepoint, get_tracepoint_by_number_on_target)
366 (get_tracepoint_by_number): Change return type to struct
368 * breakpoint.c (is_tracepoint_type): New, factored out from
370 (is_tracepoint): Adjust.
371 (print_one_breakpoint_location): Cast to struct tracepoint as
372 necessary, and adjust.
373 (print_recreate_catch_fork, print_recreate_catch_vfork)
374 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
375 print_recreate_thread.
376 (init_breakpoint_sal): New, factored out from
377 create_breakpoint_sal.
378 (create_breakpoint_sal): Reimplement.
379 (create_breakpoint): Allocate a struct tracecepoint if the caller
380 wanted a tracepoint. Use init_breakpoint_sal and
382 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
383 (print_recreate_masked_watchpoint)
384 (print_recreate_exception_catchpoint): Call print_recreate_thread.
385 (tracepoint_print_one_detail): Adjust.
386 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
387 Dump the pass count here.
388 (update_static_tracepoint): Adjust.
389 (addr_string_to_sals): Adjust.
390 (create_tracepoint_from_upload): Adjust. Change return type to
391 struct tracepoint pointer.
392 (trace_pass_set_count): Change parameter type to struct tracepoint
394 (trace_pass_command): Adjust.
395 (get_tracepoint, get_tracepoint_by_number_on_target)
396 (get_tracepoint_by_number): Change return type to struct
397 tracepoint pointer, and adjust.
398 (print_recreate_thread): New, factored out from save_breakpoints.
399 (save_breakpoints): Don't print thread and task and passcount
401 * remote.c (remote_download_tracepoint): Adjust.
402 * tracepoint.c (trace_actions_command, validate_actionline)
403 (start_tracing, tfind_1, trace_find_tracepoint_command)
404 (trace_dump_command): Adjust.
405 (find_matching_tracepoint): Change return type to struct
406 tracepoint pointer, and adjust.
407 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
408 (tfile_trace_find, tfile_fetch_registers): Adjust.
409 * tracepoint.h (create_tracepoint_from_upload): Change return type
410 to struct tracepoint pointer.
411 * ada-lang.c (print_recreate_exception): Call
412 print_recreate_thread.
413 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
415 2011-07-25 Pedro Alves <pedro@codesourcery.com>
417 * breakpoint.h (struct breakpoint): Move ops as first field. Move
418 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
419 cond_exp_valid_block, val, val_valid, watchpoint_frame,
420 watchpoint_thread, watchpoint_triggered ...
421 (struct watchpoint): ... to this new struct.
422 (is_watchpoint): Declare.
423 (install_breakpoint): Add new `internal' parameter.
424 * breakpoint.c (is_watchpoint): Delete declaration.
425 (set_breakpoint_condition): Handle watchpoints.
426 (is_watchpoint): Make public.
427 (watchpoint_in_thread_scope): Change parameter type to struct
429 (watchpoint_del_at_next_stop): Change parameter type to struct
430 watchpoint. Remove assertion. Adjust.
431 (update_watchpoint): Ditto.
432 (insert_breakpoints, breakpoint_init_inferior)
433 (watchpoints_triggered, watchpoint_check)
434 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
435 (bpstat_stop_status, print_one_breakpoint_location)
436 (print_one_breakpoint_location, watchpoint_locations_match): Cast
437 to struct watchpoint as necessary, and adjust.
438 (install_breakpoint): Add `internal' argument. If true, don't
439 mention the new breakpoint. Use set_breakpoint_number.
440 (create_fork_vfork_event_catchpoint)
441 (create_syscall_event_catchpoint): Adjust.
442 (dtor_watchpoint): New.
443 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
444 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
445 (print_it_watchpoint, print_mention_watchpoint)
446 (print_recreate_watchpoint, insert_masked_watchpoint)
447 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
448 (print_one_detail_masked_watchpoint)
449 (print_mention_masked_watchpoint)
450 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
451 necessary, and adjust.
452 (watch_command_1): Allocate and initialize a struct watchpoint
453 instead of a struct breakpoint. Use install_breakpoint.
454 (catch_exec_command_1): Adjust.
455 (base_breakpoint_dtor): Delete accesses to watchpoint specific
457 (delete_breakpoint, enable_breakpoint_disp)
458 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
459 as necessary, and adjust.
460 (initialize_breakpoint_ops): Install dtor_watchpoint as
461 watchpoints' dtor method.
462 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
463 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
464 to struct watchpoint as necessary, and adjust.
466 2011-07-25 Pedro Alves <pedro@codesourcery.com>
468 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
469 the the base class ops table.
470 (catch_exception_breakpoint_ops)
471 (catch_exception_unhandled_breakpoint_ops)
472 (catch_assert_breakpoint_ops): Don't statically initialize.
473 (initialize_ada_catchpoint_ops): New.
474 (_initialize_ada_language): Call it.
475 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
476 (bkpt_breakpoint_ops): Forward declare.
477 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
478 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
479 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
480 (masked_watchpoint_breakpoint_ops)
481 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
482 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
483 base class ops table.
484 (null_re_set, null_check_status, null_works_in_software_mode)
485 (null_resources_needed, null_print_one_detail): Delete.
486 (bkpt_dtor): Rename to ...
487 (base_breakpoint_dtor): ... this. Make static.
488 (bkpt_allocate_location): Rename to ...
489 (base_breakpoint_allocate_location): ... this. Make static.
490 (base_breakpoint_re_set): New.
491 (internal_error_pure_virtual_called): New.
492 (base_breakpoint_insert_location, base_breakpoint_remove_location)
493 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
494 (base_breakpoint_works_in_software_mode)
495 (base_breakpoint_resources_needed, base_breakpoint_print_it)
496 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
497 (base_breakpoint_print_recreate): New functions.
498 (base_breakpoint_ops): New global.
499 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
500 (bkpt_breakpoint_hit): Make static.
501 (bkpt_check_status): Delete.
502 (bkpt_resources_needed): Make static.
503 (bkpt_works_in_software_mode): Delete.
504 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
506 (bkpt_breakpoint_ops, internal_breakpoint_ops)
507 (momentary_breakpoint_ops): Don't statically initialize.
508 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
510 (tracepoint_insert_location, tracepoint_remove_location)
511 (tracepoint_check_status, tracepoint_works_in_software_mode)
512 (tracepoint_print_it): Delete.
513 (tracepoint_breakpoint_ops): Don't statically initialize.
514 (initialize_breakpoint_ops): New.
515 (_initialize_breakpoint): Call it.
516 * breakpoint.h (null_re_set, null_works_in_software_mode)
517 (null_resources_needed, null_check_status, null_print_one_detail):
518 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
519 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
520 (bkpt_check_status, bkpt_resources_needed)
521 (bkpt_works_in_software_mode, bkpt_print_it)
522 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
524 (initialize_breakpoint_ops): Declare.
526 2011-07-25 Pedro Alves <pedro@codesourcery.com>
528 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
529 (momentary_bkpt_print_it): Simplify.
531 2011-07-25 Pedro Alves <pedro@codesourcery.com>
533 Split internal, momentary and user breakpoints breakpoint_ops
536 * breakpoint.c (internal_breakpoint_ops)
537 (momentary_breakpoint_ops): Forward declare.
538 (create_internal_breakpoint): Add new breakpoint_ops parameter.
539 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
540 (create_overlay_event_breakpoint)
541 (create_std_terminate_master_breakpoint)
542 (create_exception_master_breakpoint): Create breakpoints with
543 internal_breakpoint_ops vtable.
544 (set_longjmp_breakpoint): Create momentary breakpoints with
545 momentary_breakpoint_ops vtable, using
546 momentary_breakpoint_from_master.
547 (create_thread_event_breakpoint, create_jit_event_breakpoint)
548 (create_solib_event_breakpoint): Create breakpoints with
549 internal_breakpoint_ops vtable.
550 (set_momentary_breakpoint): Create breakpoints with
551 momentary_breakpoint_ops vtable.
552 (momentary_breakpoint_from_master): New, factored out from
553 clone_momentary_breakpoint.
554 (clone_momentary_breakpoint): Adjust.
555 (watch_command_1): Create scope breakpoints with
556 momentary_breakpoint_ops vtable.
557 (bkpt_re_set): Remove handling of internal and momentary
559 (bkpt_print_mention, bkpt_print_recreate): New.
560 (bkpt_breakpoint_ops): Adjust.
561 (internal_bkpt_re_set, internal_bkpt_check_status)
562 (internal_bkpt_print_it, internal_bkpt_print_mention)
563 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
564 (momentary_bkpt_re_set, momentary_bkpt_check_status)
565 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
566 (momentary_bkpt_print_recreate): New.
567 (momentary_breakpoint_ops): New.
569 2011-07-25 Pedro Alves <pedro@codesourcery.com>
571 Implement most breakpoint_ops methods for all breakpoint types,
572 and move the default handlings to the proper callbacks.
574 * breakpoint.c (update_watchpoint): Always call the breakpoint's
575 works_in_software_mode method.
576 (insert_bp_location): Go through breakpoint_ops->insert_location
577 for software and hardware watchpoints.
578 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
580 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
581 for software and hardware watchpoints.
582 (print_it_typical): Delete.
583 (print_bp_stop_message): Always call the breakpoint_ops->print_it
585 (watchpoint_check): Adjust comment.
586 (bpstat_check_location): Simply always call the breakpoint's
587 breakpoint_hit method.
588 (bpstat_stop_status): Always call the breakpoint's check_status
589 method. Remove special cases for watchpoints and internal event
590 breakpoints from here (moved to the check_status implementations).
591 (print_one_breakpoint_location): Assume b->ops is never NULL.
592 Remove static tracepoint marker id printing from here (moved to
593 the print_one_detail callback implementation of tracepoints).
594 (init_bp_location): Assert OPS is never NULL.
595 (allocate_bp_location): Always call the breakpoint's
596 allocate_location method, and remove the default code from here.
597 (free_bp_location): Always call the location's dtor method, and
598 remove the default code from here.
599 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
600 (set_raw_breakpoint_without_location): Add new breakpoint_ops
601 parameter. Pass it down.
602 (set_raw_breakpoint): Ditto.
603 (print_it_catch_fork): Adjust to take a bpstat as argument.
604 (catch_fork_breakpoint_ops): Install methods.
605 (print_it_catch_vfork): Adjust to take a bpstat as argument.
606 (catch_vfork_breakpoint_ops): Install methods.
607 (dtor_catch_syscall): Call the base dtor.
608 (print_it_catch_syscall): Adjust to take a bpstat as argument.
609 (catch_syscall_breakpoint_ops): Install methods.
610 (dtor_catch_exec): Call the base dtor.
611 (print_it_catch_exec): Adjust to take a bpstat as argument.
612 (catch_exec_breakpoint_ops): Install methods.
613 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
614 the breakpoint's resources_needed method, and remove the default
616 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
618 (clone_momentary_breakpoint): Clone the original's ops.
619 (mention): Always call the breakpoint's print_mention method, and
620 remove the default code from here.
621 (create_breakpoint_sal): Adjust to pass the ops to
622 set_raw_breakpoint rather than setting it manually.
623 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
624 ops to set_raw_breakpoint_without_location rather than setting it
626 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
627 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
628 (ranged_breakpoint_ops): Install methods.
629 (break_range_command): Adjust to pass the ops to
630 set_raw_breakpoint rather than setting it manually.
631 (re_set_watchpoint, breakpoint_hit_watchpoint)
632 (check_status_watchpoint, resources_needed_watchpoint)
633 (works_in_software_mode_watchpoint, print_it_watchpoint)
634 (print_mention_watchpoint, print_recreate_watchpoint): New
636 (watchpoint_breakpoint_ops): Install new methods.
637 (print_it_masked_watchpoint): New function.
638 (masked_watchpoint_breakpoint_ops): Install new methods.
639 (watch_command_1): Adjust to pass the right breakpoint_ops to
640 set_raw_breakpoint_without_location rather than setting it
641 manually later. Record the current pspace.
642 (print_it_exception_catchpoint): Adjust to take a bpstat as
644 (gnu_v3_exception_catchpoint_ops): Install new methods.
645 (say_where): New function.
646 (null_re_set, null_check_status, null_works_in_software_mode)
647 (null_resources_needed, null_print_one_detail, bp_location_dtor):
649 (bp_location_ops): New global.
650 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
651 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
652 (bkpt_check_status, bkpt_resources_needed)
653 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
654 (bkpt_print_recreate): New functions.
655 (bkpt_breakpoint_ops): New global.
656 (tracepoint_re_set, tracepoint_insert_location)
657 (tracepoint_remove_location, tracepoint_breakpoint_hit)
658 (tracepoint_check_status, tracepoint_works_in_software_mode)
659 (tracepoint_print_it, tracepoint_print_one_detail)
660 (tracepoint_print_mention, tracepoint_print_recreate): New
662 (tracepoint_breakpoint_ops): New global.
663 (delete_breakpoint): Always call the breakpoint's dtor method, and
664 remove the default handling from here.
665 (breakpoint_re_set_default): Make static.
666 (breakpoint_re_set_one): Always call the breakpoints re_set
667 method, and remove the default handling from here.
668 (trace_command, ftrace_command, strace_command)
669 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
670 to create_breakpoint.
671 (save_breakpoints): Always call the breakpoint's print_recreate
672 method, and remove the default handling from here.
674 * ada-lang.c (dtor_exception): Call the base dtor.
675 (re_set_exception): Call the base method.
676 (print_it_exception, print_it_catch_exception): Adjust to take a
678 (catch_exception_breakpoint_ops): Install methods.
679 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
681 (catch_exception_unhandled_breakpoint_ops): Install methods.
682 (print_it_catch_assert): Adjust to take a bpstat as argument.
683 (catch_assert_breakpoint_ops): Install methods.
685 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
686 to take a bpstat as argument.
687 (enum print_stop_action): Add describing comments to each enum
689 (breakpoint_re_set_default): Delete declaration.
690 (null_re_set, null_works_in_software_mode, null_resources_needed)
691 (null_check_status, null_print_one_detail): Declare.
692 (bkpt_breakpoint_ops): Declare.
693 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
694 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
695 (bkpt_check_status, bkpt_resources_needed)
696 (bkpt_works_in_software_mode, bkpt_print_it)
697 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
700 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
702 * python/py-breakpoint.c (bppy_init): Ditto.
704 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
706 * MAINTAINERS (Write After Approval): Add myself to the list.
708 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
710 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
712 2011-07-22 Pedro Alves <pedro@codesourcery.com>
714 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
715 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
716 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
718 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
719 (struct i386_debug_reg_state): New.
720 (i386_init_dregs): New.
722 (i386_cleanup_dregs): Use i386_init_dregs.
723 (i386_show_dr): Add state parameter and adjust.
724 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
726 (i386_remove_aligned_watchpoint): Likewise.
727 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
728 (i386_update_inferior_debug_regs): New.
729 (i386_insert_watchpoint): Work on a local mirror of the debug
730 registers, and only update the inferior on success.
731 (i386_remove_watchpoint): Ditto.
732 (i386_region_ok_for_watchpoint): Adjust.
733 (i386_stopped_data_address): Adjust.
734 (i386_insert_hw_breakpoint): Adjust.
735 (i386_remove_hw_breakpoint): Adjust.
737 2011-07-22 Tom Tromey <tromey@redhat.com>
739 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
740 from amd64_pseudo_register_read. Change arguments. Call
741 mark_value_bytes_unavailable when needed.
742 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
743 set_gdbarch_pseudo_register_read.
744 * sentinel-frame.c (sentinel_frame_prev_register): Use
745 regcache_cooked_read_value.
746 * regcache.h (regcache_cooked_read_value): Declare.
747 * regcache.c (regcache_cooked_read_value): New function.
748 (regcache_cooked_read): Call
749 gdbarch_pseudo_register_read_value if available.
750 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
751 (i386_pseudo_register_read): Remove.
752 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
753 i386_pseudo_register_read. Change arguments. Call
754 mark_value_bytes_unavailable when needed.
755 (i386_pseudo_register_read_value): New function.
756 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
757 not set_gdbarch_pseudo_register_read.
758 * gdbarch.sh (pseudo_register_read_value): New method.
759 * gdbarch.c, gdbarch.h: Rebuild.
760 * findvar.c (value_from_register): Call get_frame_register_value.
762 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
764 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
766 (display_gdb_prompt): Likewise.
767 (change_annotation_level): Likewise.
768 (push_prompt): Likewise.
769 (pop_prompt): Likewise.
770 (handle_stop_sig): Use get_prompt with a level.
771 * top.c (command_loop): Use get_prompt with a level.
772 (set_async_annotation_level): Use set_prompt with a level.
773 (get_prefix): New function.
777 (get_prompt): Accept a level argument.
778 (set_prompt): Accept a level argument. Free old prompts. Set
779 new_async_prompt if level is 0.
780 (init_main): Use set_prompt with a level. Do not set
782 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
783 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
784 Modify set_prompt, get_prompt to account for levels.
785 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
787 * python/python.c (before_prompt_hook): Use set_prompt.
789 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
791 * defs.h: Add guard against inclusion in gdbserver.
792 (struct ptid, ptid_t): Move to common/ptid.h.
793 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
794 xsnprintf, internal_error): Move to common/common-utils.h.
796 * gdb_assert.h: Move into common/ sub-directory.
797 * gdb_locale.h: Ditto.
798 * gdb_dirent.h: Ditto.
799 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
800 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
801 Move into common/ptid.h.
802 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
803 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
804 Change nomem to malloc_failure.
805 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
806 * utils.c (nomem): Rename to malloc_failure.
807 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
808 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
809 (gdb_buildargv): Change nomem to malloc_failure.
810 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
811 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
812 ptid_is_pid): Move into common/ptid.c.
813 (initialize_infrun): Delete initialization of null_ptid and
815 * linux-nat.c (linux_nat_xfer_osdata): Defer to
816 linux_common_xfer_osdata.
817 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
818 common/ptid.c and common/buffer.c.
819 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
820 common/ptid.h, common/buffer.h and common/linux-osdata.h.
821 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
822 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
824 * common/gdb_assert.h: New.
825 * common/gdb_dirent.h: New.
826 * common/gdb_locale.h: New.
827 * common/buffer.c: New.
828 * common/buffer.h: New.
829 * common/ptid.c: New.
830 * common/ptid.h: New.
831 * common/xml-utils.c: New.
832 * common/xml-utils.h: New.
833 * common/common-utils.c: New.
834 * common/common-utils.h: New.
835 * common/linux-osdata.c: New.
836 * common/linux-osdata.h: New.
837 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
838 * config/arm/linux.mh (NATDEPFILES): Ditto.
839 * config/i386/linux.mh (NATDEPFILES): Ditto.
840 * config/i386/linux64.mh (NATDEPFILES): Ditto.
841 * config/ia64/linux.mh (NATDEPFILES): Ditto.
842 * config/m32r/linux.mh (NATDEPFILES): Ditto.
843 * config/m68k/linux.mh (NATDEPFILES): Ditto.
844 * config/mips/linux.mh (NATDEPFILES): Ditto.
845 * config/pa/linux.mh (NATDEPFILES): Ditto.
846 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
847 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
848 * config/s390/s390.mh (NATDEPFILES): Ditto.
849 * config/sparc/linux.mh (NATDEPFILES): Ditto.
850 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
851 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
853 2011-07-21 Matt Rice <ratmice@gmail.com>
855 * NEWS: Add info macros and info definitions commands.
857 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
859 * NEWS: Document Python prompt substitution hook.
861 2011-07-18 Matt Rice <ratmice@gmail.com>
864 * macrotab.h (macro_callback_fn): Add new arguments to callback.
865 * macrotab.c (foreach_macro): Ditto.
866 (foreach_macro_in_scope): Ditto.
867 * macrocmd.c (print_macro_callback): New function.
868 (info_macro_command): Move some code to print_macro_definition.
869 (print_macro_definition): New function.
870 (print_one_macro): Add new arguments to callback.
871 (info_definitions_command): New function.
872 (info_macros_command): Ditto.
873 (_initialize_macrocmd): Add info macros and info definitions commands.
874 * symtab.c (add_macro_name): Add new arguments to callback.
876 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
877 Tom Tromey <tromey@redhat.com>
879 * top.c (set_prompt): Rewrite to free previous prompt, free
880 asynch_new_prompt and set both on new prompts.
881 * event-top.c (display_gdb_prompt): Add prompt substitution
883 * python/python.c (before_prompt_hook): New function.
885 2011-07-20 Matt Rice <ratmice@gmail.com>
887 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
888 arguments to store_unsigned_integer.
890 2011-07-20 Tom Tromey <tromey@redhat.com>
892 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
893 in some declaration-only cases.
895 2011-07-18 Tom Tromey <tromey@redhat.com>
898 * dwarf2read.c (dwarf2_section_info_def): New typedef.
899 (struct dwarf2_per_objfile) <types>: Change to a VEC.
900 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
901 <debug_type_section>: New field.
902 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
903 (load_cu): Use appropriate section.
904 (create_signatured_type_table_from_index): Add 'section'
906 (dwarf2_read_index): Only allow a single .debug_types section.
907 (dw2_get_file_names): Use appropriate section.
908 (read_type_comp_unit_head): Add 'section' argument.
909 (create_debug_types_hash_table): Loop over all .debug_types
911 (init_cu_die_reader): Use appropriate section.
912 (process_psymtab_comp_unit, load_partial_comp_unit)
913 (load_full_comp_unit, read_die_and_children, find_partial_die)
914 (lookup_die_type, determine_prefix, follow_die_offset): Update.
915 (lookup_signatured_type_at_offset): Add 'section' argument.
916 (read_signatured_type_at_offset): Add 'sect' argument.
917 (read_signatured_type): Use appropriate section.
918 (set_die_type, get_die_type_at_offset): Update.
919 (dwarf2_per_objfile_free): Free all .debug_types sections, and
921 (write_psymtabs_to_index): Don't allow index with more than one
922 .debug_types section.
924 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
926 Fix crash if referenced CU is aged out.
927 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
929 (indirect_pieced_value): New variable back_to, use to for xfree of
931 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
933 * dwarf2read.c (dwarf2_find_base_address): New prototype.
934 (load_cu): New function from ...
935 (dw2_do_instantiate_symtab): ... the code here ...
936 (process_full_comp_unit): ... and here.
937 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
940 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
942 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
945 2011-07-19 Gary Benson <gbenson@redhat.com>
947 * infrun.c (struct execution_control_state): New member
949 (clear_stop_func, fill_in_stop_func): New functions.
950 (handle_inferior_event): Call clear_stop_func rather than
951 manipulating the execution control state directly.
952 Call fill_in_stop_func lazily as required rather than
953 directly calling find_pc_partial_function in all cases.
955 2011-07-18 Tom Tromey <tromey@redhat.com>
957 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
958 checking for variable-sized array.
960 2011-07-18 Jean-Charles Delay <delay@adacore.com>
962 * varobj.h (varobj_languages): Add vlang_ada definition to the list
963 of supported languages.
964 * varobj.c: Add top definitions and basic implementation of the
965 following callbacks: ada_number_of_children, ada_name_of_variable,
966 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
967 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
968 (languages): Register Ada-specific callbacks.
969 (variable_language): Add the Ada case in the language setter switch.
971 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
973 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
975 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
978 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
979 (execute_stack_op): Use dwarf2_frame_ctx_funcs
980 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
981 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
982 get_frame_cfa, get_tls_address and dwarf_call via funcs.
983 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
984 (struct dwarf_expr_context_funcs): New, move here methods from ...
985 (struct dwarf_expr_context): ... here. New fields funcs.
986 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
987 (dwarf_expr_ctx_funcs): New.
988 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
989 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
990 (needs_frame_ctx_funcs): New.
991 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
993 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
995 * MAINTAINERS (Write After Approval): Add myself to the list.
997 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
999 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1000 that CIE pointer of an FDE really points to a CIE .
1002 2011-07-15 Hui Zhu <teawater@gmail.com>
1004 * remote.c (remote_get_trace_status): Add comments.
1006 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1008 Code cleanup - constify struct lval_funcs.
1009 * dwarf2loc.c (pieced_value_funcs): Make it const.
1010 * infrun.c (siginfo_value_funcs): Likewise.
1011 * opencl-lang.c (opencl_value_funcs): Likewise.
1012 * valops.c (value_assign, value_ind): Make the funcs variable const.
1013 * value.c (struct value): Make location.computed.funcs target const.
1014 Rearrange the comments.
1015 (allocate_computed_value): Make the funcs parameter target const.
1016 (value_computed_funcs): Return the funcs target const.
1017 (value_free, value_copy, set_value_component_location): Make the funcs
1019 * value.h (allocate_computed_value): Make the funcs parameter target
1021 (value_computed_funcs): Return the funcs target const.
1022 * windows-tdep.c (tlb_value_funcs): Make it const.
1024 2011-07-14 Hui Zhu <teawater@gmail.com>
1026 * remote.c (remote_get_trace_status): Initialize p.
1028 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1031 * remote.c (remote_get_trace_status): New variable ex. Put
1032 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1034 2011-07-13 Tom Tromey <tromey@redhat.com>
1036 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1037 value_from_contents for final conversion.
1039 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1042 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1043 Indent prototypes so they do not get into tags.
1045 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1047 Code cleanup making also optimized out values lazy.
1048 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1049 allocate_optimized_out_value. Twice.
1050 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1051 * findvar.c (read_var_value): Likewise.
1052 * value.c (allocate_optimized_out_value): New function.
1053 * value.h (allocate_optimized_out_value): New declaration.
1055 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1057 Fix occasional crash of CTRL-C during DWARF read in.
1058 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1060 2011-07-11 Tom Tromey <tromey@redhat.com>
1062 * regcache.c (struct regcache_descr): Fix typo.
1063 * i387-tdep.c (i387_supply_xsave): Fix typo.
1065 2011-07-11 Tom Tromey <tromey@redhat.com>
1067 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1068 (read_file_scope, read_type_unit_scope): Use it.
1070 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1072 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1075 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1078 * python/python.c: Set gdbpy_should_print_stack default to off.
1079 (set_python): Deprecate maint set python print-stack to
1081 (_initialize_python): Deprecate maint set/show python print-stack.
1082 Add new prefix command, python. Add new setting, print-backtrace.
1083 * NEWS: Document set python print-stack. Document default change.
1085 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1087 * python/py-inferior.c (infpy_dealloc): New function.
1088 (inferior_to_inferior_object): Return a new object, or a
1089 new reference to the existing object.
1090 (find_thread_object): Cleanup references to inferior.
1091 (delete_thread_object): Ditto.
1092 * python/py-infthread.c (create_thread_object): Do not increment
1093 inferior reference count.
1095 2011-07-08 Tom Tromey <tromey@redhat.com>
1097 * dwarf2loc.c (locexpr_regname): New function.
1098 (locexpr_describe_location_piece): Use it.
1099 (disassemble_dwarf_expression): Add per_cu argument. Use
1101 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1102 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1104 (locexpr_describe_location_1): Add per_cu argument.
1105 (locexpr_describe_location): Update.
1106 (loclist_describe_location): Update.
1108 2011-07-08 Tom Tromey <tromey@redhat.com>
1110 * dwarf2expr.c (execute_stack_op): Add QUIT.
1112 2011-07-07 Hui Zhu <teawater@gmail.com>
1115 2011-07-06 Hui Zhu <teawater@gmail.com>
1116 * remote.c (remote_start_remote): Add TRY_CATCH for
1117 remote_get_trace_status.
1118 * tracepoint.c (disconnect_tracing): Ditto.
1120 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1122 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1123 variables as signed, not unsigned.
1125 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1127 * jit.c (jit_inferior_init): Reformat forward declaration.
1129 2011-07-06 Matt Rice <ratmice@gmail.com>
1131 * MAINTAINERS (Write After Approval): Add myself to the list.
1133 2011-07-06 Hui Zhu <teawater@gmail.com>
1135 * remote.c (remote_start_remote): Add TRY_CATCH for
1136 remote_get_trace_status.
1137 * tracepoint.c (disconnect_tracing): Ditto.
1139 2011-07-05 Tom Tromey <tromey@redhat.com>
1141 * symtab.c (operator_chars): Now static.
1142 * linespec.c (operator_chars): Don't declare.
1144 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1146 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1148 2011-07-05 Tom Tromey <tromey@redhat.com>
1150 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1151 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1152 (TYPE_CPLUS_REALLY_JAVA): New macro.
1153 * dwarf2read.c (process_structure_scope): Set
1154 TYPE_CPLUS_REALLY_JAVA.
1156 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1158 * ada-lang.c: Fix typos.
1159 * amd64-tdep.c: Likewise.
1160 * breakpoint.c: Likewise.
1161 * cli/cli-decode.c: Likewise.
1162 * findcmd.c: Likewise.
1163 * inline-frame.c: Likewise.
1164 * mi/mi-main.c: Likewise.
1165 * minsyms.c: Likewise.
1166 * monitor.c: Likewise.
1167 * monitor.h: Likewise.
1168 * prologue-value.c: Likewise.
1169 * reverse.c: Likewise.
1170 * s390-tdep.c: Likewise.
1172 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1174 * jit.c (jit_inferior_init): Forward declare.
1175 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1177 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1179 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1181 2011-07-04 Tristan Gingold <gingold@adacore.com>
1183 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1184 (tcb_fieldno): Add activation_link field.
1185 (get_known_tasks_addr): Moved and rewritten.
1186 (get_tcb_types_info): Set activation_link field.
1187 (read_known_tasks_array): Add parameter. Rewritten.
1188 (read_known_tasks_list): New function.
1189 (read_known_tasks): New function.
1190 (ada_build_task_list): Call read_known_tasks instead of
1191 read_known_tasks_array.
1192 * ravenscar-thread.c: Add first_task_name constant.
1193 (has_ravenscar_runtime): Check for task list too.
1195 2011-07-04 Tristan Gingold <gingold@adacore.com>
1197 * ada-tasks.c: Renames fieldno to actb_fieldno.
1198 (ada_get_task_number): Indentation.
1199 (get_tcb_types_info): Remove all parameters. Write directly
1201 (ptid_from_atcb_common): Adjust.
1202 (read_atcb): Adjust.
1204 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1206 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1208 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1210 * ui-out.c (ui_out_field_core_addr): Mention that the function
1211 description is in the header file.
1212 * ui-out.h (ui_out_field_core_addr): Document function.
1214 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1216 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1217 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1219 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1221 * symtab.c (expand_line_sal): Remove empty line.
1223 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1225 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1226 same way as ELFOSABI_NONE.
1227 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1229 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1231 * breakpoint.c: Fix typos in comments.
1232 * linespec.c: Likewise.
1233 * symtab.c: Likewise.
1235 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1237 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1238 section in separate object files.
1240 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1242 Fix false GCC warning.
1243 * linespec.c (decode_line_1): Initialize values.
1245 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1247 * linespec.c (find_method): Accept the function type automatically only
1248 if it was specified with parameter types.
1250 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1252 Stop on first linespec terminator instead of eating what we can.
1253 * linespec.c (is_linespec_boundary): New function.
1254 (name_end): Remove function.
1255 (keep_name_info): New parameter on_boundary, replace the body.
1256 (decode_line_1): Provide the parameter to keep_name_info.
1257 (decode_compound): Likewise. Drop the trailing java return type
1260 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1262 Fall back linespec to minimal symbols.
1263 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1264 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1265 (find_method, symbol_found): Change error to cplusplus_error.
1267 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1269 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1271 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1272 Tom Tromey <tromey@redhat.com>
1274 * dwarf2read.c (check_physname): New variable.
1275 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1276 (show_check_physname): New function.
1277 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1279 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1281 * machoread.c (macho_symfile_read): Delete OBE comment.
1283 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1285 * machoread.c (struct macho_oso_data): Delete.
1286 (current_oso): Delete.
1287 (macho_relocate_common_syms): New function, mostly extracted
1289 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1290 Remove code that sets and unset current_oso.
1291 (macho_symfile_relocate): Delete handling of common symbols,
1292 now moved to macho_relocate_common_syms.
1294 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1296 * darwin-nat.c (darwin_ptrace): Add documentation.
1297 Set errno to zero before calling ptrace. If ptrace returns
1298 -1 and errno is zero, then change then return zero.
1299 (darwin_kill_inferior): Issue a warning instead of triggering
1300 a failed assertion when the PT_KILL ptrace operations returned
1303 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1305 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1306 only when inf->private->no_ptrace.
1308 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1310 * ada-lang.c (print_it_exception): Print temporary catchpoints
1311 as "Temporary catchpoint".
1312 (print_mention_exception): Likewise.
1314 2011-07-01 Tom Tromey <tromey@redhat.com>
1316 * jv-lang.c (java_language_defn): Use java_printchar,
1318 (java_get_encoding): New function.
1319 (java_emit_char): Use generic_emit_char.
1320 (java_printchar): New function.
1321 (java_printstr): Likewise.
1323 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1325 * ada-typeprint.c (print_record_type): If unable to decode
1326 the name of the parent type, use the encoded name.
1328 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1330 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1331 pointer to constrained packed array type output.
1332 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1333 packed array output.
1335 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1337 * ada-typeprint.c (print_array_type): removed if condition on show
1338 being negative for bounds printing.
1340 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1342 * ada-lang.c (ada_identical_enum_types_p): New function.
1343 (symbols_are_identical_enums): New function.
1344 (remove_extra_symbols): Do nothing if NSYMS < 2.
1345 Use symbols_are_identical_enums.
1347 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1349 * ada-valprint.c (ada_value_print): Handle typedefs.
1351 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1353 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1355 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1357 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1358 (decode_constrained_packed_array): Likewise.
1359 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1361 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1363 * ada-exp.y (convert_char_literal): Handle typedef types.
1365 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1367 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1369 2011-06-30 Tom Tromey <tromey@redhat.com>
1371 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1372 * valops.c (find_overload_match): Call do_cleanups on early exit
1374 * solib.c (solib_find): Call do_cleanups on early exit path.
1376 2011-06-30 Tom Tromey <tromey@redhat.com>
1378 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1379 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1380 return paths. Defer final do_cleanups until last return.
1381 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1384 2011-06-30 Tom Tromey <tromey@redhat.com>
1386 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1388 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1390 * MAINTAINERS (Write After Approval): Add myself to the list.
1392 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1394 Disable epilogue unwinders on recent GCCs.
1395 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1396 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1397 * dwarf2read.c (process_full_comp_unit): Initialize
1398 EPILOGUE_UNWIND_VALID.
1399 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1400 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1401 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1403 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1405 Code cleanup - reformatting.
1406 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1407 (producer_is_gcc_ge_4): ... here, change the return value.
1408 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1411 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1413 Fix non-only rename list for Fortran modules import.
1414 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1415 cp_add_using_directive caller.
1416 (cp_add_using_directive): New parameter excludes, describe it. New
1417 variables ix and param. Compare if also excludes match. Allocate NEW
1418 with variable size, initialize EXCLUDES there.
1419 (cp_lookup_symbol_imports): New variable excludep, test
1420 current->EXCLUDES with it.
1421 * cp-support.h: Include vec.h.
1422 (struct using_direct): New field excludes, describe it.
1423 (DEF_VEC_P (const_char_ptr)): New.
1424 (cp_add_using_directive): New parameter excludes.
1425 * defs.h (const_char_ptr): New typedef.
1426 * dwarf2read.c (read_import_statement): New variables child_die,
1427 excludes and cleanups, read in excludes.
1428 (read_namespace): Adjust the cp_add_using_directive caller.
1430 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1433 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1434 negative comparisons.
1436 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1438 * mi/mi-main.c (mi_cmd_list_features): Emit
1439 breakpoint-notifications.
1441 2011-06-29 Tom Tromey <tromey@redhat.com>
1444 * valprint.h (generic_emit_char, generic_printstr): Declare.
1445 * valprint.c (wchar_printable, append_string_as_wide)
1446 (print_wchar): Move from c-lang.c.
1447 (generic_emit_char): New function; mostly taken from c_emit_char.
1448 (generic_printstr): New function; mostly taken from c_printstr.
1449 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1450 represented as arrays.
1451 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1453 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1454 identically to TYPE_CODE_INT.
1455 * f-lang.c (f_get_encoding): New function.
1456 (f_emit_char): Use generic_emit_char.
1457 (f_printchar): Replace comment.
1458 (f_printstr): Use generic_printstr.
1459 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1460 "character" types specially.
1461 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1463 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1465 (c_emit_char): Call generic_emit_char.
1466 (c_printstr): Call generic_printstr.
1468 2011-06-29 Gary Benson <gbenson@redhat.com>
1470 * breakpoint.c (bpstat_what): Removed duplicated case.
1472 2011-06-28 Tom Tromey <tromey@redhat.com>
1474 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1476 2011-06-27 Tom Tromey <tromey@redhat.com>
1478 * valops.c (find_overload_match): Call do_cleanups before early
1480 * top.c (execute_command): Call do_cleanups before early return.
1481 (command_loop): Likewise.
1482 * stack.c (backtrace_command): Make a null cleanup early. Don't
1483 conditionally call do_cleanups.
1484 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1486 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1487 so cleanups are always run.
1488 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1489 * findcmd.c (parse_find_args): Call do_cleanups on early return
1491 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1492 Don't conditionally call do_cleanups.
1493 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1496 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1498 * MAINTAINERS (Write After Approval): Use default email address.
1500 2011-06-27 Joel Brobecker <brobecker@adacore.com>
1502 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1504 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1506 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1507 saved_regs_mask and copied_regs_mask fields.
1508 (sparc_record_save_insn): New prototype.
1509 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1510 (sparc_record_save_insn): New function.
1511 (sparc_analyze_prologue): Add head comment. Recognize store insns
1512 of call-saved registers. Use OFFSET consistently. Recognize flat
1513 frames and cache their settings.
1514 (sparc32_skip_prologue): Handle flat frames.
1515 (sparc_frame_cache): Add frame_offset to the base address.
1516 (sparc32_frame_cache): Adjust to new frame description.
1517 (sparc32_frame_prev_register): Likewise.
1518 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1519 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1520 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1521 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1522 frame by calling sparc_record_save_insn.
1523 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1524 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1525 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1527 2011-06-27 Tristan Gingold <gingold@adacore.com>
1529 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1530 field by map_addr and map_len.
1531 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1532 (munmap_section_buffer): Likewise.
1534 2011-06-24 Tom Tromey <tromey@redhat.com>
1536 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1537 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1538 * python/python.c (gdbpy_parameter): Make 'arg' const.
1539 (execute_gdb_command): Likewise.
1540 (gdbpy_decode_line): Likewise. Copy it.
1541 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1542 (gdbpy_write): Make 'arg' const.
1543 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1545 (gdbpy_lookup_type): Likewise.
1546 * python/py-prettyprint.c (print_children): Make 'name' const.
1547 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1548 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1550 * python/py-function.c (fnpy_init): Make 'name' const.
1551 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1552 (gdbpy_string_to_argv): Make 'input' const.
1553 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1555 * gdbtypes.h (lookup_typename): Update.
1556 * gdbtypes.c (lookup_typename): Make 'name' const.
1557 (lookup_struct): Likewise.
1558 (lookup_union): Likewise.
1559 (lookup_enum): Likewise.
1561 2011-06-24 Tom Tromey <tromey@redhat.com>
1563 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1564 gdb_thread_db.h. Move all common/ entries to be together.
1565 (TAGS): Don't depend on DEPFILES.
1567 2011-06-23 Yao Qi <yao@codesourcery.com>
1569 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1570 * remote.c (remote_start_remote): ... here.
1571 * monitor.c (monitor_open): ... here.
1573 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
1575 * gdbtypes.c (append_composite_type_field_aligned): Fix
1576 calculation of bit position based on alignment.
1578 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1580 * breakpoint.c (bpstat_stop_status): Call the check_status
1581 breakpoint_ops method.
1582 (print_one_breakpoint_location): Also print the condition for Ada
1583 exception catchpoints.
1584 (allocate_bp_location): New, factored out from
1585 allocate_bp_location.
1586 (allocate_bp_location): Adjust. Call the owner breakpoint's
1587 allocate_location method, if there is one.
1588 (free_bp_location): Call the locations's dtor method, if there is
1590 (init_raw_breakpoint_without_location): New breakpoint_ops
1592 (set_raw_breakpoint_without_location): Adjust.
1593 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1594 (set_raw_breakpoint): Adjust.
1595 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1596 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
1597 re_set and check_status methods.
1598 (init_catchpoint): Don't memset, initialize thread, addr_string
1599 and enable_state. Pass the ops down to init_raw_breakpoint.
1600 (install_catchpoint): Rename to ...
1601 (install_breakpoint): ... this, and make extern.
1602 (create_fork_vfork_event_catchpoint): Adjust.
1603 (catch_exec_breakpoint_ops): Install NULL allocate_location,
1604 re_set and check_status methods.
1605 (create_syscall_event_catchpoint): Adjust.
1606 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1607 (masked_watchpoint_breakpoint_ops): Install NULL
1608 allocate_location, re_set and check_status methods.
1609 (catch_exec_command_1): Adjust.
1610 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
1611 re_set and check_status methods.
1612 (create_ada_exception_breakpoint): Rename to ...
1613 (init_ada_exception_breakpoint): ... this. Add a struct
1614 breakpoint parameter, and delete the exp_string, cond_string and
1615 cond parameters. Use init_raw_breakpoint, and don't install or
1616 mention the breakpoint yet. Don't clear breakpoint fields that
1617 init_raw_breakpoint already clears.
1618 (re_set_breakpoint): Delete, split into ...
1619 (breakpoint_re_set_default, prepare_re_set_context): ... these new
1621 (breakpoint_re_set_one): Call the breakpoint's
1622 breakpoint_ops->re_set implementation, if there's one. Adjust.
1623 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
1624 (struct bp_location_ops): New type.
1625 (struct bp_location): New field `ops'.
1626 (struct breakpoint_ops): New `allocate_location', `re_set' and
1627 `check_status' fields. Make `breakpoint_hit''s description match
1629 (init_bp_location): Declare.
1630 (breakpoint_re_set_default): Declare.
1631 (create_ada_exception_breakpoint): Rename to ...
1632 (init_ada_exception_breakpoint): ... this. Add a struct
1633 breakpoint parameter, and delete the exp_string, cond_string and
1635 (install_breakpoint): Declare.
1636 * ada-lang.c: Include exceptions.h.
1637 <Ada exceptions description>: Update.
1638 (struct ada_catchpoint_location): New type.
1639 (ada_catchpoint_location_dtor): New function.
1640 (ada_catchpoint_location_ops): New global.
1641 (ada_catchpoint): New type.
1642 (create_excep_cond_exprs): New function.
1643 (dtor_exception, allocate_location_exception, re_set_exception)
1644 (should_stop_exception, check_status_exception): New functions.
1645 (print_one_exception, print_mention_exception)
1646 (print_recreate_exception): Adjust.
1647 (dtor_catch_exception, allocate_location_catch_exception)
1648 (re_set_catch_exception, check_status_catch_exception): New
1650 (catch_exception_breakpoint_ops): Install them.
1651 (dtor_catch_exception_unhandled)
1652 (allocate_location_catch_exception_unhandled)
1653 (re_set_catch_exception_unhandled)
1654 (check_status_catch_exception_unhandled): New functions.
1655 (catch_exception_unhandled_breakpoint_ops): Install them.
1656 (dtor_catch_assert, allocate_location_catch_assert)
1657 (re_set_catch_assert, check_status_catch_assert): New functions.
1658 (catch_assert_breakpoint_ops): Install them.
1659 (ada_exception_catchpoint_p): Delete.
1660 (catch_ada_exception_command_split)
1661 (ada_exception_catchpoint_cond_string): Rename exp_string
1662 parameter to excep_string. Adjust.
1663 (ada_parse_catchpoint_condition): Delete.
1664 (ada_exception_sal): Rename the exp_string parameter to
1665 excep_string. Delete the cond_string and cond parameters.
1667 (ada_decode_exception_location): Rename the exp_string parameter
1668 to excep_string. Delete the cond_string and cond parameters.
1670 (create_ada_exception_catchpoint): New function.
1671 (catch_ada_exception_command, ada_decode_assert_location)
1672 (catch_assert_command): Adjust.
1673 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
1675 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1677 * ada-lang.c: Include arch-utils.h.
1678 (ada_decode_exception_location): Make static.
1679 (catch_ada_exception_command): Moved here from breakpoint.c.
1680 (ada_decode_assert_location): Make static.
1681 (catch_assert_command): Moved here from breakpoint.c.
1682 (_initialize_ada_lang): Install the exception and assert
1683 catchpoint commands here.
1684 * ada-lang.h (ada_decode_exception_location)
1685 (ada_decode_assert_location): Delete declarations.
1686 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
1688 (create_ada_exception_breakpoint): Make extern.
1689 (catch_ada_exception_command, catch_assert_command): Moved to
1691 (add_catch_command): Make extern.
1692 (_initilize_breakpoint): Don't install the exception and assert
1693 catchpoint commands here.
1694 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
1696 (add_catch_command, create_ada_exception_breakpoint): Declare.
1698 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1700 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
1701 the breakpoint to the breakpoint chain here.
1702 (set_raw_breakpoint_without_location): Add the breakpoint to the
1703 breakpoint chain here.
1704 (init_raw_breakpoint): Adjust comments.
1705 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
1707 (init_catchpoint): Don't set the catchpoint's breakpoint number
1709 (install_catchpoint): New function.
1710 (create_fork_vfork_event_catchpoint)
1711 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
1712 use install_catchpoint.
1714 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1716 * breakpoint.c (create_catchpoint_without_mention)
1717 (create_catchpoint): Delete.
1719 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1721 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
1722 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1723 reference to exec_pathname.
1724 (struct exec_catchpoint): New type.
1725 (dtor_catch_exec): New function.
1726 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
1727 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
1728 (catch_exec_command_1): Adjust to use init_catchpoint.
1729 (delete_breakpoint): Remove reference to exec_pathname.
1731 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1733 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
1734 (struct breakpoint): Delete field `syscalls_to_be_caught'.
1735 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1736 reference to syscalls_to_be_caught.
1737 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
1739 (struct syscall_catchpoint): New type.
1740 (dtor_catch_syscall): New function.
1741 (insert_catch_syscall, remove_catch_syscall)
1742 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
1743 (print_recreate_catch_syscall): Adjust.
1744 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
1745 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
1746 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
1747 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1748 (masked_watchpoint_breakpoint_ops)
1749 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
1750 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
1751 there is one. Remove references to syscalls_to_be_caught.
1752 (catching_syscall_number): Adjust.
1753 * ada-lang.c (catch_exception_breakpoint_ops)
1754 (catch_exception_unhandled_breakpoint_ops)
1755 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
1757 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1759 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
1761 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1762 reference to forked_inferior_pid.
1763 (struct fork_catchpoint): New type.
1764 (breakpoint_hit_catch_fork, print_it_catch_fork)
1765 (print_one_catch_fork, breakpoint_hit_catch_vfork)
1766 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
1767 (create_fork_vfork_event_catchpoint): Adjust to use
1770 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1772 * breakpoint.c (add_to_breakpoint_chain)
1773 (init_raw_breakpoint_without_location): New functions, factored
1775 (set_raw_breakpoint_without_location): ... this one.
1776 (init_raw_breakpoint): New function, factored out from
1777 set_raw_breakpoint and adjusted to use
1778 init_raw_breakpoint_without_location.
1779 (set_raw_breakpoint): Adjust.
1780 (init_catchpoint): New function, factored out from
1781 create_catchpoint_without_mention and adjusted to use
1782 init_raw_breakpoint.
1783 (create_catchpoint_without_mention): Adjust.
1785 2011-06-22 Tom Tromey <tromey@redhat.com>
1787 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
1788 argument of 0 specially.
1790 2011-06-22 Yao Qi <yao@codesourcery.com>
1792 * infrun.c (handle_inferior_event): Remove write-only local variable
1793 `sw_single_step_trap_p'.
1795 2011-06-20 Tom Tromey <tromey@redhat.com>
1797 * symtab.c (lookup_language_this): End loop if block is NULL.
1799 2011-06-17 Tom Tromey <tromey@redhat.com>
1801 * valops.c (value_of_this): Use lookup_language_this.
1802 * symtab.h (lookup_language_this): Declare.
1803 * symtab.c (lookup_language_this): New function.
1804 (lookup_symbol_aux): Use lookup_language_this.
1805 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
1807 2011-06-17 Tom Tromey <tromey@redhat.com>
1809 * value.h (value_of_this): Update.
1810 (value_of_local): Remove.
1811 * valops.c (value_of_this): Rename from value_of_local. Change
1813 * p-exp.y (exp): Update.
1814 (variable): Likewise.
1815 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
1817 2011-06-17 Tom Tromey <tromey@redhat.com>
1819 * valops.c (value_of_local): Complain if NAME is NULL.
1820 * std-operator.def (OP_OBJC_SELF): Remove.
1821 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
1822 * objc-exp.y (name_not_typename): Use OP_THIS.
1823 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
1825 <OP_OBJC_SELF>: Remove.
1826 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
1828 2011-06-16 Tristan Gingold <gingold@adacore.com>
1830 * python/py-events.h (gdb_py_events): Make it extern.
1831 * python/py-evtregistry.c (gdb_py_events): Declare.
1833 2011-06-16 Hui Zhu <teawater@gmail.com>
1835 * remote.c (remote_trace_set_readonly_regions): Add check for
1836 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
1839 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1841 * arm-linux-tdep.c: Include "auxv.h".
1843 (ARM_LINUX_SIZEOF_VFP): Define.
1844 (arm_linux_supply_vfp): New function.
1845 (arm_linux_collect_vfp): Likewise.
1846 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
1847 (arm_linux_fpa_regset_sections): New variable.
1848 (arm_linux_vfp_regset_sections): Likewise.
1849 (arm_linux_core_read_description): New function.
1850 (arm_linux_init_abi): Install arm_linux_core_read_description and
1851 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
1852 appropriate for the architecture.
1853 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
1854 (tdesc_arm_with_m): Declare.
1855 (tdesc_arm_with_iwmmxt): Likewise.
1856 (tdesc_arm_with_vfpv2): Likewise.
1857 (tdesc_arm_with_vfpv3): Likewise.
1858 (tdesc_arm_with_neon): Likewise.
1859 * arm-linux-nat.c: Move features/*.c includes ...
1860 * arm-tdep.c: ... here.
1861 * arm-linux-nat.c (arm_linux_read_description): Move initializing
1862 target description data structures ...
1863 * arm-tdep.c (_initialize_arm_tdep): ... here.
1864 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
1865 HWCAP_VFPv3D16): Move definitions ...
1866 * arm-linux-tdep.h: ... here.
1868 2011-06-15 Hui Zhu <teawater@gmail.com>
1870 * remote.c (remote_trace_set_readonly_regions): Add a check for
1873 2011-06-14 Tom Tromey <tromey@redhat.com>
1875 * coffread.c (coffread_objfile): Rename from current_objfile.
1876 * dbxread.c (dbxread_objfile): Rename from current_objfile.
1877 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
1879 2011-06-14 Tom Tromey <tromey@redhat.com>
1881 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
1882 (class_symtab): Remove.
1883 (jv_dynamics_progspace_key): New global.
1884 (jv_per_objfile_free): Reset program space data. Update assert.
1885 Don't clear globals.
1886 (get_dynamics_objfile): Use and set program space data.
1887 (get_java_class_symtab): Use get_dynamics_objfile.
1888 (add_class_symbol): Likewise.
1889 (java_link_class_type): Likewise.
1890 (java_object_type, jv_clear_object_type, set_java_object_type):
1892 (get_java_object_type): Update. Don't cache result.
1893 (is_object_type): Don't call set_java_object_type.
1894 (_initialize_java_language): Don't set jv_type_objfile_data_key;
1895 initialize jv_dynamics_progspace_key.
1897 2011-06-14 Tom Tromey <tromey@redhat.com>
1899 * symtab.h (current_objfile): Don't declare.
1900 * objfiles.h (current_objfile): Don't declare.
1901 * objfiles.c (current_objfile): Remove.
1902 * mdebugread.c (current_objfile): New file-scope global.
1903 * dbxread.c (current_objfile): New file-scope global.
1904 * coffread.c (current_objfile): New file-scope global.
1906 2011-06-13 Pedro Alves <pedro@codesourcery.com>
1908 * top.h (line): Rename to ...
1909 (saved_command_line): ... this.
1910 (linesize): Rename to ...
1911 (saved_command_line_size): ... this.
1912 * top.c (line): Rename to ...
1913 (saved_command_line): ... this.
1914 (linesize): Rename to ...
1915 (saved_command_line_size): ... this.
1916 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
1917 * event-top.c (command_line_handler): Adjust.
1918 * main.c (captured_main): Adjust.
1920 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1922 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
1923 get_frame_func instead of get_frame_pc to determine the code
1924 address used to construct the frame ID.
1925 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
1926 (i386_epilogue_frame_this_id): Likewise.
1927 (i386_epilogue_frame_prev_register): New function.
1928 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
1929 (i386_stack_tramp_frame_sniffer): Fix coding style.
1930 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
1931 (i386_gdbarch_init): Fix comments.
1933 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1935 * i386-tdep.c (i386_match_insn_block): Use length of the proper
1936 instruction when walking back through the instruction stream.
1938 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1940 * symtab.c (output_partial_symbol_filename): Exchange the filename and
1941 fullname parameters order.
1943 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1946 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
1948 * psymtab.c (map_symbol_filenames_psymtab)
1949 (map_partial_symbol_filenames): Likewise.
1950 * psymtab.h: Include symfile.h.
1951 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
1952 * symfile.h (symbol_filename_ftype): New.
1953 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
1954 map_symbol_filenames, clarify more the naming in comment.
1956 2011-06-07 Doug Evans <dje@google.com>
1958 * cc-with-index.sh: Fix typos in comment.
1959 Look for ../../gdb, for fullname.exp.
1961 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1962 Pedro Alves <pedro@codesourcery.com>
1964 * cli/cli-cmds.c (shell_escape): Use waitpid.
1965 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
1967 2011-06-07 Tristan Gingold <gingold@adacore.com>
1969 * xcoffread.c (dwarf2_xcoff_names): New variable.
1970 (aix_process_linenos): Add a guard.
1971 (xcoff_symfile_finish): Free dwarf2.
1972 (xcoff_initial_scan): Add dwarf2 support.
1974 2011-06-06 Pedro Alves <pedro@codesourcery.com>
1976 * infcall.c (run_inferior_call): Don't mask async. Instead force
1977 a synchronous wait, if the target can async.
1979 * target.h (struct target_ops): Delete to_async_mask.
1980 (target_async_mask): Delete.
1981 * target.c (update_current_target): Delete references to to_async_mask.
1982 * linux-nat.c (linux_nat_async_mask_value): Delete.
1983 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
1984 to linux_nat_async_mask_value.
1985 (linux_nat_async_mask): Delete.
1986 (linux_nat_async, linux_nat_close): Remove references to
1987 linux_nat_async_mask_value.
1988 * record.c (record_async_mask_value): Delete.
1989 (record_async): Remove references to record_async_mask_value.
1990 (record_async_mask): Delete.
1991 (record_can_async_p, record_is_async_p): Remove references to
1992 record_async_mask_value.
1993 (init_record_ops, init_record_core_ops): Remove references to
1995 * remote.c (remote_async_mask_value): Delete.
1996 (init_remote_ops): Remove reference to remote_async_mask.
1997 (remote_can_async_p, remote_is_async_p): Remove references to
1998 remote_async_mask_value.
1999 (remote_async): Remove references to remote_async_mask_value.
2000 (remote_async_mask): Delete.
2002 * infrun.c (fetch_inferior_event): Don't claim registers changed
2003 if the current thread is already not executing.
2005 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2007 From Stephen Kitt <steve@sk2.org>
2008 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2009 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2011 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2013 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2014 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2016 2011-06-03 Tom Tromey <tromey@redhat.com>
2018 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2020 * python/py-exitedevent.c (create_exited_event_object): Change
2021 type of 'exit_code'. Optionally add exit_code attribute.
2022 (emit_exited_event): Change type of 'exit_code'.
2023 * python/py-event.h (emit_exited_event): Update.
2024 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2025 * infrun.c (handle_inferior_event): Set exit code fields on
2027 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2029 * inferior.c (exit_inferior_1): Initialize new fields.
2031 2011-06-03 Tom Tromey <tromey@redhat.com>
2033 * dwarf2expr.c (get_signed_type): New function.
2034 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2036 2011-06-02 Keith Seitz <keiths@redhat.com>
2038 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2040 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2042 * top.h (simplified_command_loop): Delete declaration.
2044 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2046 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2047 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2049 2011-06-01 Yao Qi <yao@codesourcery.com>
2051 * objfiles.h (obj_section_addr): Update reference to objfile from
2053 (obj_section_endaddr): Likewise.
2055 2011-06-01 Daniel Jacobowitz <drow@false.org>
2057 * MAINTAINERS: Update my email address and affiliation. Also
2058 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2060 2010-05-31 Keith Seitz <keiths@redhat.com>
2063 * linespec.c (get_search_block): New function.
2064 (find_methods): Add FILE_SYMTATB parameter and use it and
2065 get_search_block to pass an appropriate block to
2066 lookup_symbol_in_namespace.
2067 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2068 Check if *ARGPTR starts with a filename first.
2069 If it does, call locate_first_half again to locate the next
2070 "first half" of the linespec.
2071 Pass FILE_SYMTATB to decode_objc and decode_compound.
2072 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2073 (locate_first_half): Stop on the first colon seen.
2074 (decode_compound): Add FILE_SYMTAB parameter.
2075 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2076 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2077 get_search_block with lookup_symbol.
2078 (find_method): Add FILE_SYMTAB parameter and pass it to
2080 (decode_objc): Use get_search_block.
2082 2010-05-31 Keith Seitz <keiths@redhat.com>
2085 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2086 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2087 and CP_ANONYMOUS_NAMESPACE_LEN.
2088 (cp_is_anonymous): Likewise.
2089 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2090 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2091 * dwarf2read.c (namespace_name): Likewise.
2092 (fixup_partial_die): Likewise.
2093 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2094 seen in the input, keep it.
2096 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2098 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2099 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2100 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2101 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2102 * remote.c (_initialize_remote): Register
2103 async_remote_interrupt_twice directly as
2104 sigint_remote_twice_token event.
2106 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2108 * target.h (enum inferior_event_type): Delete INF_ERROR.
2109 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2111 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2113 * interps.c (interp_set): Don't cancel continuations.
2115 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2117 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2119 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2121 * continuations.h (continuation_ftype): Add `err' parameter.
2122 Document parameters.
2123 (do_all_continuations, do_all_continuations_thread)
2124 (do_all_intermediate_continuations)
2125 (do_all_intermediate_continuations_thread)
2126 (do_all_inferior_continuations): Add `err' parameter.
2127 * continuations.c (do_my_continuations_1, do_my_continuations)
2128 (do_all_inferior_continuations, do_all_continuations_ptid)
2129 (do_all_continuations_thread_callback)
2130 (do_all_continuations_thread, do_all_continuations)
2131 (do_all_intermediate_continuations_thread_callback)
2132 (do_all_intermediate_continuations_thread)
2133 (do_all_intermediate_continuations): Add `err' parameter, and pass
2134 it down all the way to the continuations proper.
2135 * inf-loop.c (inferior_event_handler): If fetching an inferior
2136 event throws an error, don't pop the target, and still call the
2137 continuations, but with `err' set. Adjust all other continuation
2139 * breakpoint.c (until_break_command_continuation): Add `err'
2141 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2142 issue another step if `err' is set.
2143 (struct until_next_continuation_args): New.
2144 (until_next_continuation): Add `err' parameter. Adjust.
2145 (until_next_command): Adjust.
2146 (struct finish_command_continuation_args): Add `thread' field.
2147 (finish_command_continuation): Add `err' parameter. Handle it.
2148 (finish_forward): Adjust.
2149 (attach_command_continuation): Add `err' parameter. Handle it.
2150 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2151 cancel the continuations.
2152 * interps.c (interp_set): Adjust to cancel the continuations.
2153 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2154 continuations rather than discarding.
2155 (free_thread): Don't clear thread inferior resources here.
2156 (delete_thread_1): Do it here instead. And do it before removing
2157 the thread from the threads list. Tag the thread as exited before
2158 clearing thread inferior resources.
2160 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2162 * infcall.c (call_function_by_hand): Rephrase error message.
2164 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2166 * defs.h (struct thread_info, struct inferior): Delete forward
2168 * breakpoint.h (struct thread_info): New forward declaration.
2169 * observer.sh (struct inferior): New forward declaration.
2170 * python/python-internal.h (struct inferior): New forward
2173 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2175 * defs.h (struct continuation, continuation_ftype)
2176 (continuation_free_arg_ftype, add_continuation)
2177 (do_all_continuations, do_all_continuations_thread)
2178 (discard_all_continuations, discard_all_continuations_thread)
2179 (add_intermediate_continuation, do_all_intermediate_continuations)
2180 (do_all_intermediate_continuations_thread)
2181 (discard_all_intermediate_continuations)
2182 (discard_all_intermediate_continuations_thread)
2183 (add_inferior_continuation, do_all_inferior_continuations)
2184 (discard_all_inferior_continuations): Move to ...
2185 * continuations.h: ... this new file.
2186 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2187 infcmd.c, inferior.c, infrun.c, interps.c: Include
2190 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2191 Doug Evans <dje@google.com>
2193 Fix PR 10970, PR 12702.
2194 * linux-nat.c (linux_lwp_is_zombie): New function.
2195 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2196 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2198 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2200 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2202 (add_continuation, add_intermediate_continuation)
2203 (add_inferior_continuation): Use them.
2204 * continuations.c (struct continuation): Use them.
2205 (make_continuation_ftype): Delete.
2206 (make_continuation, add_inferior_continuation, add_continuation)
2207 (add_intermediate_continuation): Use continuation_ftype and
2208 continuation_free_arg_ftype. Rename parameters to shorter names.
2210 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2212 * continuations.c (make_continuation): Make it return void.
2213 (do_my_continuations): Rename to ...
2214 (do_my_continuations_1): ... this. Remove old_chain parameter and
2216 (do_my_continuations): New.
2217 (discard_my_continuations): Rename to ...
2218 (discard_my_continuations_1): ... this. Remove old_chain
2219 parameter and adjust.
2220 (discard_my_continuations): New.
2221 (add_inferior_continuation): Simplify.
2222 (do_all_inferior_continuations): Reimplement on top
2223 do_my_continuations.
2224 (discard_all_inferior_continuations): Simplify.
2225 (add_continuation): Simplify.
2226 (do_all_continuations_ptid): Simplify.
2227 (discard_all_continuations_thread_callback): Simplify.
2228 (add_intermediate_continuation): Simplify.
2229 (discard_all_intermediate_continuations_thread_callback):
2232 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2234 * utils.c (struct continuation, add_continuation)
2235 (add_inferior_continuation)
2236 (do_all_inferior_continuations, discard_all_inferior_continuations)
2237 (restore_thread_cleanup, do_all_continuations_ptid)
2238 (do_all_continuations_thread_callback)
2239 (do_all_continuations_thread, do_all_continuations)
2240 (discard_all_continuations_thread_callback)
2241 (discard_all_continuations_thread, discard_all_continuations)
2242 (add_intermediate_continuation)
2243 (do_all_intermediate_continuations_thread_callback)
2244 (do_all_intermediate_continuations_thread)
2245 (do_all_intermediate_continuations)
2246 (discard_all_intermediate_continuations_thread_callback)
2247 (discard_all_intermediate_continuations_thread)
2248 (discard_all_intermediate_continuations): Move to ...
2249 * continuations.c: ... this new file, and adjust to no longer
2250 implement continuations on top of cleanups.
2251 * Makefile.in (SFILES): Add continuations.c.
2252 (COMMON_OBS): Add continuations.o.
2254 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2256 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2257 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2258 Internal error on invalid values.
2259 * reverse.c: Don't handle EXEC_ERROR.
2260 * mi/mi-main.c: Don't handle EXEC_ERROR.
2262 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2264 * record.c: Include event-loop.h, inf-loop.h.
2265 (record_beneath_to_async): New global.
2266 (tmp_to_async): New global.
2267 (record_async_inferior_event_token): New global.
2268 (record_open_1): Don't error out if async is enabled.
2269 (record_open): Handle to_async. Create an async event source in
2271 (record_close): Delete the async event source.
2272 (record_resumed): New global.
2273 (record_execution_dir): New global.
2274 (record_resume, record_core_resume): Set them. Register the
2275 target on the event loop.
2276 (record_wait): Rename to ...
2277 (record_wait_1): ... this. Add more debug output. Handle
2278 TARGET_WNOHANG, and the target beneath returning
2279 TARGET_WAITKIND_IGNORE.
2280 (record_wait): Reimplement on top of record_wait_1.
2281 (record_async_mask_value): New global.
2282 (record_async, record_async_mask, record_can_async_p)
2283 (record_is_async_p, record_execution_direction): New functions.
2284 (init_record_ops, init_record_core_ops): Install new methods.
2285 * infrun.c (fetch_inferior_event): Temporarily switch the global
2286 execution direction to the direction the target was going.
2287 (execution_direction): Change type to int.
2288 * target.c (default_execution_direction): New function.
2289 (update_current_target): Inherit and de_fault
2290 to_execution_direction.
2291 * target.h (struct target_ops) <to_execution_direction>: New
2293 (target_execution_direction): New macro.
2294 * inferior.h (execution_direction): Change type to int.
2296 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2298 * infcall.c (call_function_by_hand): Don't allow calling functions
2299 in reverse execution mode.
2301 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2303 * infcmd.c (finish_command): Allow async finish in reverse.
2305 2011-05-26 Yao Qi <yao@codesourcery.com>
2307 * gdb_thread_db.h: Delete. Move to ...
2308 * common/gdb_thread_db.h: ... here.
2310 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2312 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2313 function's entry point instead of a manually managed momentary
2314 breakpoint, and only ever issue one proceed call.
2315 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2316 doing a reverse-finish, switch to stepi mode, to do another step.
2317 (insert_step_resume_breakpoint_at_sal): Make public.
2318 (normal_stop): No need to save function value return registers if
2320 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2322 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2324 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2325 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2326 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2328 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2329 step-resume breakpoints.
2330 (print_it_typical): Handle bp_hp_step_resume.
2331 (bpstat_what): Ditto.
2332 (bptype_string): Ditto.
2333 (print_one_breakpoint_location): Ditto.
2334 (allocate_bp_location): Ditto.
2336 (breakpoint_re_set_one): Ditto.
2337 * infrun.c (handle_inferior_event): Adjust. Split
2338 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2339 BPSTAT_WHAT_HP_STEP_RESUME.
2340 (insert_step_resume_breakpoint_at_sal): Rename to ...
2341 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2342 parameter. Handle it.
2343 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2344 insert_step_resume_breakpoint_at_sal_1.
2345 (insert_step_resume_breakpoint_at_frame): Rename to ...
2346 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2347 set a high-priority step-resume breakpoint.
2348 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2349 (insert_step_resume_breakpoint_at_caller): Ditto.
2351 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2353 * breakpoint.c (iterate_over_related_breakpoints): New.
2354 (do_map_delete_breakpoint): New.
2355 (delete_command): Pass do_map_delete_breakpoint to
2356 map_breakpoint_numbers.
2357 (do_disable_breakpoint): New.
2358 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2360 (do_enable_breakpoint): Rename to ...
2361 (enable_breakpoint_disp): ... this.
2362 (enable_breakpoint): Adjust.
2363 (do_enable_breakpoint): New.
2364 (enable_once_breakpoint): Delete.
2365 (do_map_enable_breakpoint): New.
2366 (do_map_enable_once_breakpoint): New.
2367 (enable_once_command, enable_delete_command)
2368 (delete_trace_command): Iterate over the breakpoint's related
2371 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2373 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2374 for ALPHA_ZERO_REGNUM.
2375 (alpha_supply_int_regs): Explicitly supply zero as the value for
2376 ALPHA_ZERO_REGNUM in the register cache.
2377 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2379 2011-05-26 Yao Qi <yao@codesourcery.com>
2381 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2383 2011-05-26 Tristan Gingold <gingold@adacore.com>
2385 * symfile.h (struct dwarf2_section_names): New type.
2386 (struct dwarf2_debug_sections): New type.
2387 (dwarf2_has_info): Add parameter.
2388 * dwarf2read.c (dwarf2_elf_names): New variable.
2389 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2390 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2391 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2392 (dwarf2_has_info): Add names parameter. Pass names
2393 to dwarf2_locate_sections.
2394 (section_is_p): Rewrite using the names parameter.
2395 (dwarf2_locate_sections): Use section names from the names parameter.
2396 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2397 * elfread.c (read_psyms): Ditto.
2398 * machoread.c (macho_symfile_read): Ditto.
2400 2011-05-25 Andreas Schwab <schwab@redhat.com>
2403 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2405 2011-05-24 Keith Seitz <keiths@redhat.com>
2408 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2409 (decode_compound): Unconditionally call keep_name_info.
2411 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2413 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2414 scope, clear its command list.
2415 (map_breakpoint_numbers): Don't walk the related breakpoints list
2418 2011-05-24 Tom Tromey <tromey@redhat.com>
2420 * MAINTAINERS: Move Jim Blandy to past maintainers.
2422 2011-05-24 Tristan Gingold <gingold@adacore.com>
2424 * symfile.h (enum dwarf2_section_enum): New type.
2425 (dwarf2_get_section_info): New prototype.
2426 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2427 section_name by sect. Use a switch to select the info.
2428 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2429 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2431 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2433 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2434 shared library event breakpoint if there's no execution.
2436 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2438 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2439 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2441 2011-05-23 Tom Tromey <tromey@redhat.com>
2443 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2446 2011-05-23 Doug Evans <dje@google.com>
2448 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2449 entry for RuntimeError to doc string.
2451 2011-05-23 Jerome Guitton <guitton@adacore.com>
2453 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2454 sequence for probing loops.
2456 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2458 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2461 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2463 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2464 zero as the value for %g0 in the register cache.
2465 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2466 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2468 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2470 * infrun.c (proceed): Set previous_inferior_ptid here.
2471 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2472 inferior_ptid, not null_ptid.
2473 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2474 (fetch_inferior_event): Nor here.
2476 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2478 * inf-loop.c (inferior_event_handler): Only output a message if
2481 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
2483 * MAINTAINERS: Update my e-mail address.
2485 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2487 * infrun.c (proceed): Switch the inferior event loop to
2488 INF_EXEC_COMPLETE if the target refused to resume from a
2491 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2493 * infcmd.c: Include "inf-loop.h".
2494 (step_once): When stepping into an inline subroutine, pretend the
2495 target has run. If the target can async, switch the inferior
2496 event loop to INF_EXEC_COMPLETE.
2497 * inferior.h (user_visible_resume_ptid): Declare.
2498 * infrun.c (user_visible_resume_ptid): New function, factored out
2501 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2502 that the current thread is running. Merge async and sync
2505 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2507 * infcmd.c (step_1): Simplify synchronous case.
2509 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2511 * tracepoint.c: Include exceptions.h.
2512 (TFILE_PID): Move higher in file.
2513 (tfile_open): Delay pushing the tfile target until we're assured
2514 the tfile header is present in the file. Wrap reading the initial
2515 newline-terminated lines in TRY_CATCH. Pop the target if the
2516 initial setup failed. Add the tfile's thread immediately
2517 aftwards, before any non-essential setup. Don't skip
2518 post_create_inferior if there are no traceframes present in the
2520 (tfile_close): Remove redundant check for null before xfree call.
2521 (tfile_thread_alive): New function.
2522 (init_tfile_ops): Register it as to_thread_alive callback.
2524 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2526 * tracepoint.c (tfile_open): Delete #if 0'd code.
2528 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2530 Fix -readnow for -gdwarf-4 unused type units.
2531 * dwarf2read.c (struct signatured_type): Remove the field offset.
2532 (create_signatured_type_table_from_index): Remove its initialization.
2533 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2534 instead. Add a complaint call.
2535 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2536 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2537 (lookup_signatured_type_at_offset, read_signatured_type)
2538 (write_one_signatured_type): Update the field for per_cu.
2540 2011-05-19 Tom Tromey <tromey@redhat.com>
2542 * python/py-inferior.c (python_inferior_exit): Use
2544 (python_on_resume): Likewise.
2546 2011-05-19 Matt Rice <ratmice@gmail.com>
2548 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2550 2011-05-19 Hui Zhu <teawater@gmail.com>
2552 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2554 2011-05-19 Hui Zhu <teawater@gmail.com>
2556 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2558 2011-05-18 Tom Tromey <tromey@redhat.com>
2560 * dwarf2read.c (dwarf2_add_field): Constify.
2561 * value.c (value_static_field): Constify.
2562 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2564 * ax-gdb.c (gen_static_field): Constify
2566 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2568 * linux-nat.c (kill_callback): Use SIGKILL first.
2570 2011-05-18 Joel Brobecker <brobecker@adacore.com>
2572 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2574 2011-05-18 Tom Tromey <tromey@redhat.com>
2576 * value.c (value_fn_field): Constify.
2577 * symtab.c (gdb_mangle_name): Constify.
2578 * stabsread.c (update_method_name_from_physname): Make 'physname'
2580 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2581 const. Use explicit fputc_filtered loop.
2582 (pascal_type_print_base): Constify.
2583 * p-lang.h (pascal_type_print_method_args): Update.
2584 * linespec.c (add_matching_methods): Constify.
2585 (add_constructors): Likewise.
2586 * jv-typeprint.c (java_type_print_base): Constify.
2587 * gdbtypes.h (struct cplus_struct_type)
2588 <fn_fieldlist.fn_field.physname>: Now const.
2589 * dwarf2read.c (compute_delayed_physnames): Constify.
2590 (dwarf2_add_member_fn): Likewise.
2591 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2593 2011-05-18 Pedro Alves <pedro@codesourcery.com>
2595 * infrun.c (resume): Mention which is the current thread, and its
2596 current PC in debug output.
2597 (prepare_to_proceed): Mention the thread switching in debug
2600 2011-05-18 Tom Tromey <tromey@redhat.com>
2602 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
2603 path check. Use xmalloc and cleanups.
2604 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2606 2011-05-17 Tom Tromey <tromey@redhat.com>
2608 * cp-valprint.c (cp_print_value_fields): Catch errors from
2611 2011-05-17 Tom Tromey <tromey@redhat.com>
2613 * dwarf2read.c (dwarf2_get_die_type): Call
2614 get_die_type_at_offset.
2615 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
2616 get_base_type function.
2618 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
2620 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
2623 2011-05-16 Doug Evans <dje@google.com>
2625 * python/py-auto-load.c (source_section_scripts): Mention objfile
2628 2011-05-15 Doug Evans <dje@google.com>
2630 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
2631 (try_thread_db_load_from_pdir): Call it. If unable to find
2632 libthread_db in directory of libpthread, see if we're looking at
2633 the separate-debug-info copy.
2635 * python/py-autoload.c (print_script): Print "Missing" instead of
2636 "No" for missing scripts.
2637 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
2639 2011-05-13 Doug Evans <dje@google.com>
2641 * ui-file.c (stdio_file_write_async_safe): Add comment.
2643 2011-05-14 Hui Zhu <teawater@gmail.com>
2645 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
2647 2011-05-13 Doug Evans <dje@google.com>
2649 Support $pdir and $sdir in libthread-db-search-path.
2650 * NEWS: Mention $sdir,$pdir.
2651 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
2652 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
2653 (try_thread_db_load_from_sdir): New function.
2654 (try_thread_db_load_from_dir): New function.
2655 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
2656 system directories if search of libthread-db-search-path fails,
2657 that is now done via $sdir.
2658 (has_libpthread): New function.
2659 (thread_db_load): Remove search for libthread_db in directory of
2660 libpthread, that is now done via $pdir.
2662 * NEWS: Mention "info auto-load-scripts".
2663 * python/py-auto-load.c (struct auto_load_pspace_info): New member
2664 script_not_found_warning_printed.
2665 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
2666 all callers updated. Initialize script_not_found_warning_printed.
2667 (get_auto_load_pspace_data_for_loading): New function.
2668 (maybe_add_script): New function.
2669 (source_section_scripts): Simplify. Only print one warning regardless
2670 of the number of auto-load scripts not found.
2671 (clear_section_scripts): Clear script_not_found_warning_printed.
2672 (auto_load_objfile_script): Record script in hash table.
2673 (count_matching_scripts): New function.
2674 (maybe_print_script): Renamed from maybe_print_section_script, all
2675 callers updated. Rewrite to use ui_out_*.
2676 (info_auto_load_scripts): Renamed from
2677 maintenance_print_section_scripts, all callers updated.
2678 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
2679 renamed as "info auto-load-scripts".
2681 2011-05-13 Tom Tromey <tromey@redhat.com>
2683 * dwarf2expr.c (read_uleb128): Cast intermediate result.
2684 (read_sleb128): Likewise.
2686 2011-05-13 Tom Tromey <tromey@redhat.com>
2688 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
2691 2011-05-13 Doug Evans <dje@google.com>
2693 * linux-nat.c (debug_linux_nat_async): Delete.
2694 Replace all references to use debug_linux_nat instead.
2695 (show_debug_linux_nat_async): Delete.
2696 (sigchld_handler): Call ui_file_write_async_safe instead of
2698 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
2699 * ui-file.c (struct ui_file): New member to_write_async_safe.
2700 (null_file_write_async_safe): New function.
2701 (ui_file_write_async_safe): New function.
2702 (set_ui_file_write_async_safe): New function.
2703 (ui_file_new): Initialize to_write_async_safe.
2704 (stdio_file_write_async_safe): New function.
2705 (struct stdio_file): New member fd.
2706 (stdio_file_new): Initialize to_write_async_safe, fd.
2707 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
2709 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
2710 (set_ui_file_write_async_safe): Declare.
2711 (ui_file_write_async_safe): Declare.
2713 2011-05-13 Tom Tromey <tromey@redhat.com>
2715 * utils.c (do_value_free): New function.
2716 (make_cleanup_value_free): Likewise.
2717 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
2719 (dwarf2_loc_desc_needs_frame): Call
2720 make_cleanup_value_free_to_mark.
2721 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
2722 * dwarf2expr.c (free_dwarf_expr_context): Don't call
2724 (new_dwarf_expr_context): Don't call value_mark.
2725 * dwarf2-frame.c (execute_stack_op): Call
2726 make_cleanup_value_free_to_mark.
2727 * defs.h (make_cleanup_value_free): Declare.
2729 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2731 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
2732 prepare_execute_command.
2733 * top.c (prepare_execute_command): Return cleanup.
2734 (execute_command): Use cleanup from prepare_execute_command.
2735 * top.h (prepare_execute_command): Change prototype to return
2737 * defs.h (struct value): Add opaque declaration.
2738 (make_cleanup_value_free_to_mark): Add prototype.
2739 * utils.c (do_value_free_to_mark): New function.
2740 (make_cleanup_value_free_to_mark): Likewise.
2742 2011-05-12 Tom Tromey <tromey@redhat.com>
2744 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
2745 cast left-hand-side to unsigned.
2747 2011-05-12 Tom Tromey <tromey@redhat.com>
2750 * value.h (value_from_contents): Declare.
2751 * value.c (value_from_contents): New function.
2752 * dwarf2read.c (dwarf_stack_op_name): Add new values.
2753 (dwarf2_get_die_type): New function.
2754 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
2755 (allocate_piece_closure): Acquire reference to values.
2756 (read_pieced_value): Update for value-based expressions.
2757 (write_pieced_value): Likewise.
2758 (free_pieced_value_closure): Call value_free as needed.
2759 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
2760 Update for value-based expressions.
2761 * dwarf2loc.h (dwarf2_get_die_type): Declare.
2762 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
2763 <get_base_type>: New field.
2764 (struct dwarf_expr_piece) <v.value>: Change type.
2765 <v.regno>: New field.
2766 (struct dwarf_expr_context) <mark>: New field.
2767 (dwarf_expr_piece, dwarf_expr_fetch): Update.
2768 (dwarf_expr_pop, dwarf_expr_push): Remove.
2769 (dwarf_expr_push_address): Declare.
2770 * dwarf2expr.c (dwarf_arch_cookie): New global.
2771 (struct dwarf_gdbarch_types): New.
2772 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
2774 (dwarf_expr_push): Change type of 'value' argument. Update. Now
2776 (dwarf_expr_push_address): New function.
2777 (dwarf_expr_pop): Now static.
2778 (dwarf_expr_fetch): Change return type.
2779 (dwarf_require_integral): New function.
2780 (dwarf_expr_fetch): Simplify.
2781 (add_piece): Update.
2782 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
2784 (execute_stack_op) <sign_ext>: Remove.
2785 Use values for DWARF stack.
2786 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
2787 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2789 (_initialize_dwarf2expr): New function.
2790 (add_piece): Update.
2791 (new_dwarf_expr_context): Set new field.
2792 (free_dwarf_expr_context): Call value_free_to_mark.
2793 * dwarf2-frame.c (no_base_type): New function.
2794 (execute_stack_op): Set get_base_type field. Update.
2796 2011-05-12 Tom Tromey <tromey@redhat.com>
2798 * dwarf2read.c (read_common_block): Fix formatting.
2800 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
2802 * breakpoint.c (disable_breakpoint): Disable all locations
2803 associated with a tracepoint on target if a trace experiment is
2805 (disable_command): Disable a specific tracepoint location on target if
2806 a trace experiment is running.
2807 (do_enable_breakpoint): Enable all locations associated with a
2808 tracepoint on target if a trace experiment is running.
2809 (enable_command) Enable a specific tracepoint location on target if a
2810 trace experiment is running.
2811 * target.c (update_current_target): Add INHERIT and de_fault clauses for
2812 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2813 to_disable_tracepoint.
2814 * target.h: Add declaration of struct bp_location.
2815 (struct target_ops): Add new functions
2816 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2817 to_disable_tracepoint to target operations.
2818 (target_supports_enable_disable_tracepoint): New macro.
2819 (target_enable_tracepoint): New macro.
2820 (target_disable_tracepoint): New macro.
2821 * remote.c (struct remote_state): Add new field.
2822 (remote_enable_disable_tracepoint_feature): New.
2823 (remote_protocol_features): Add new entry.
2824 (remote_supports_enable_disable_tracepoint): New.
2825 (remote_enable_tracepoint): New.
2826 (remote_disable_tracepoint): New.
2827 (init_remote_ops): Add remote_enable_tracepoint,
2828 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
2829 to remote operations.
2830 * tracepoint.c (start_tracing): Allow tracing to start without any
2831 tracepoints enabled with just a warning if they can be re-enabled
2833 * NEWS: Add news item for the new behaviour of the enable and disable
2834 GDB commands when applied to tracepoints.
2835 Add news items for the new remote packets QTEnable and QTDisable.
2837 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2839 * config.in: Regenerate.
2840 * configure: Regenerate.
2841 * configure.ac <--with-system-readline> (for readline_echoing_p):
2843 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
2844 (tui_old_rl_echoing_p): ... here.
2845 (tui_setup_io): Rename extern declaration readline_echoing_p to
2846 _rl_echoing_p. Adjust assignments for the both renames.
2848 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2850 * symtab.c (lookup_symtab): Run cleanup before returning.
2852 2011-05-11 Tom Tromey <tromey@redhat.com>
2854 * dwarf2read.c (handle_data_member_location): New function.
2855 (dwarf2_add_field): Use it.
2856 (read_common_block): Likewise.
2858 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2860 Make addrs->SECTINDEX always defined.
2861 * symfile.c (relative_addr_info_to_section_offsets): Check for
2862 SECTINDEX -1, not for zero ADDR.
2863 (addrs_section_compar): Remove checking for invalid SECTINDEX.
2864 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
2865 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
2868 2011-05-10 Doug Evans <dje@google.com>
2870 * linux-thread-db.c: Whitespace cleanup.
2871 (try_thread_db_load_1): Fix comment.
2873 * linux-thread-db.c (set_libthread_db_search_path): New function.
2874 (_initialize_thread_db): Add setter for libthread-db-search-path.
2876 2011-05-09 Doug Evans <dje@google.com>
2878 * NEWS: Mention --with-iconv-bin.
2879 * configure.ac: New option --with-iconv-bin.
2880 * configure: Regenerate.
2881 * config.in: Regenerate.
2882 * defs.h (relocate_gdb_directory): Declare.
2883 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
2884 removed progname parameter, and exported. All callers updated.
2885 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
2887 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
2888 adding missing call to restore_child_signals_mask.
2890 2011-05-09 Pedro Alves <pedro@codesourcery.com>
2892 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
2894 * infrun.c (proceed, start_remote): Adjust.
2895 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
2896 and adjust to not handle it.
2897 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2898 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2899 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2900 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2901 * windows-nat.c (do_initial_windows_stuff): Adjust.
2902 * infcmd.c (attach_command): Adjust.
2903 (notice_new_inferior): Adjust.
2905 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2907 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
2908 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
2909 * spu-tdep.c (op_selb): Use correct value.
2911 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2913 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
2914 "parent" parameter to symbol_file_add_from_bfd call.
2916 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2917 Thiago Jung Bauermann <bauerman@br.ibm.com>
2919 Implement support for PowerPC BookE masked watchpoints.
2920 * NEWS: Mention masked watchpoint support. Create "Changed commands"
2922 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
2923 method. Initialize to NULL in all existing breakpoint_ops instances.
2924 (struct breakpoint) <hw_wp_mask>: New field.
2925 * breakpoint.c (is_masked_watchpoint): Add prototype.
2926 (update_watchpoint): Don't set b->val for masked watchpoints. Call
2927 breakpoint's breakpoint_ops.works_in_software_mode if available.
2928 (watchpoints_triggered): Handle the case of a hardware masked
2930 (watchpoint_check): Likewise.
2931 (works_in_software_mode_watchpoint): New function.
2932 (insert_masked_watchpoint, remove_masked_watchpoint)
2933 (resources_needed_masked_watchpoint)
2934 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
2935 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
2936 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
2938 (masked_watchpoint_breakpoint_ops): New structure.
2939 (watch_command_1): Check for the existence of the `mask' parameter.
2940 Set b->ops according to the type of hardware watchpoint being created.
2941 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
2942 (ppc_linux_remove_mask_watchpoint)
2943 (ppc_linux_masked_watch_num_registers): New functions.
2944 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
2945 to_remove_mask_watchpoint and to_masked_watch_num_registers.
2946 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
2947 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
2948 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2949 (target_masked_watch_num_registers): New functions.
2950 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
2951 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
2953 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2954 (target_masked_watch_num_registers): Add prototypes.
2956 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2959 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
2960 (producer_is_gcc_ge_4_0): New function.
2961 (process_full_comp_unit): Set also symtab->locations_valid. Move the
2962 symtab->language code.
2963 (var_decode_location): Set cu->has_loclist.
2964 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
2965 skip. Intialize force_skip from locations_valid. Move the prologue
2966 skipping code into two passes.
2967 * symtab.h (struct symtab): Make the primary field a bitfield. New
2968 field locations_valid.
2970 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2972 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
2973 (classify_inner_name): Call cp_lookup_nested_type with
2975 * cp-namespace.c (cp_lookup_nested_type): New variable
2976 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
2977 type_name_no_tag_or_error with saved_parent_type.
2978 * dwarf2read.c (load_partial_dies): Read in any children of
2979 DW_TAG_typedef with complaint in such case.
2980 * gdbtypes.c (type_name_no_tag_or_error): New function.
2981 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
2982 * valops.c (destructor_name_p): New comment for parameter type. Remove
2983 type const. Make dname and cp const. Call type_name_no_tag_or_error.
2984 * value.h (destructor_name_p): Remove type const.
2986 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2988 * symtab.c (compare_symbol_name): New function.
2989 (completion_list_add_name, expand_partial_symbol_name): Call it,
2990 remove the variable ncmp.
2991 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
2994 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2996 Demote to sw watchpoint only in update_watchpoint.
2997 * breakpoint.c (update_watchpoint): Change between software and
2998 hardware watchpoint for all kinds of watchpoints, not just
2999 read/write ones. Determine b->exact value here instead of
3000 in watch_command_1. Error out if there are not enough resources
3001 for a read or access hardware watchpoint.
3002 (watch_command_1): Remove logic of checking whether there are
3003 enough resources available, since update_watchpoint will do that
3004 work now. Don't set b->exact here. Catch exceptions thrown by
3005 update_watchpoint and delete the watchpoint.
3006 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3007 Use target_exact_watchpoints instead.
3008 (delete_breakpoint): Notify observers only if deleted watchpoint
3009 has a breakpoint number assigned to it.
3011 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3013 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3015 2011-05-05 Jerome Guitton <guitton@adacore.com>
3017 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3019 (i386_stack_tramp_frame_unwind): New static global.
3020 (i386_match_pattern): New function, extracted from i386_match_insn.
3021 (i386_match_insn): Use i386_match_pattern.
3022 (i386_match_insn_block): New function.
3023 (i386_tramp_chain_in_reg_insns)
3024 (i386_tramp_chain_on_stack_insns): New static variables.
3025 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3028 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3030 * configure.host (xscale*): Don't handle target.
3031 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3034 2011-05-04 Yao Qi <yao@codesourcery.com>
3036 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3038 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3041 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3042 | * elfread.c (elf_symtab_read): Stop memory leak.
3044 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3046 * nto-tdep.c (nto_target): Replace deprecated call to
3047 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3049 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3051 Fix false GCC warning.
3052 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3054 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3056 * breakpoint.c (update_watchpoint): Move code to change
3057 the enable state of breakpoint from here ...
3058 (do_enable_breakpoint): ... to here.
3060 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3062 * valprint.c (val_print_array_elements): Fixed poor performance
3063 of printing very large arrays with repeat_count_threshold set
3064 to unlimited. New comment.
3066 2011-04-29 Tom Tromey <tromey@redhat.com>
3068 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3069 (mi_parse): Likewise.
3070 * breakpoint.c (break_range_command): Use sizeof char*, not
3072 (create_breakpoint): Likewise.
3073 (parse_breakpoint_sals): Likewise.
3075 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3077 * linux-nat.c (linux_child_remove_fork_catchpoint)
3078 (linux_child_remove_vfork_catchpoint)
3079 (linux_child_remove_exec_catchpoint): New functions.
3080 (linux_target_install_ops): Install them.
3082 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3086 * varobj.c (install_default_visualizer): Do not install a
3087 visualizer if the varobj is CPLUS_FAKE_CHILD.
3088 (construct_visualizer): Likewise.
3090 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3092 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3093 case insensitive comparison.
3095 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3097 * infrun.c (proceed): Revert previous change.
3098 (resume): Instead, handle the case of signal delivery while stepping
3099 off a breakpoint location here, and only if software single-stepping
3100 is used. Handle nested signals.
3102 2011-04-28 Yao Qi <yao@codesourcery.com>
3104 * arm-tdep.c (copy_unmodified): Rename to ...
3105 (arm_copy_unmodified): .. this. New.
3106 (copy_preload): Move common part to ...
3107 (install_preload): .. this. New.
3108 (arm_copy_preload): New.
3109 (copy_preload_reg): Move common part to ...
3110 (install_preload_reg): ... this. New.
3111 (arm_copy_preload_reg): New.
3112 (copy_b_bl_blx): Move common part to ...
3113 (install_b_bl_blx): .. this. New.
3114 (arm_copy_b_bl_blx): New.
3115 (copy_bx_blx_reg): Move common part to ...
3116 (install_bx_blx_reg): ... this. New.
3117 (arm_copy_bx_blx_reg): New.
3118 (copy_alu_reg): Move common part to ...
3119 (install_alu_reg): ... this. New.
3120 (arm_copy_alu_reg): New.
3121 (copy_alu_shifted_reg): Move common part to ...
3122 (install_alu_shifted_reg): ... this. New.
3123 (copy_ldr_str_ldrb_strb): Move common part to ...
3124 (install_ldr_str_ldrb_strb): ... this. New.
3125 (arm_copy_ldr_str_ldrb_strb): New.
3126 (copy_copro_load_store): Move some common part to ...
3127 (install_copy_copro_load_store): ... this. New.
3128 (arm_copy_copro_load_store): New.
3130 (arm_copy_svc): Renamed from copy_svc.
3131 (copy_undef): Delete.
3132 (arm_copy_undef): Renamed from copy_undef.
3133 (decode_ext_reg_ld_st): Delete.
3134 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3135 (decode_svc_copro): Delete.
3136 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3137 (copy_copro_load_store, copy_alu_imm): update callers.
3138 (copy_extra_ld_st, copy_block_xfer): Likewise.
3139 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3140 (decode_miscellaneous, decode_dp_misc): Likewise.
3141 (decode_ld_st_word_ubyte, decode_media): Likewise.
3142 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3143 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3144 (decode_unconditional, decode_miscellaneous): Likewise.
3145 (decode_media, decode_b_bl_ldmstm): Likewise.
3146 (arm_process_displaced_insn): Likewise..
3147 (decode_misc_memhint_neon): Delete.
3148 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3149 (decode_miscellaneous): Delete.
3150 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3151 (decode_dp_misc): Delete.
3152 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3153 (decode_ld_st_word_ubyte): Delete.
3154 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3155 (decode_media): Delete.
3156 (arm_decode_media): Renamed from decode_media.
3157 (decode_b_bl_ldmstm): Delete.
3158 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3159 (decode_ext_reg_ld_st): Delete.
3160 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3161 (decode_unconditional): Delete.
3162 (arm_decode_unconditional): Renamed from decode_unconditional.
3164 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3166 Case insensitive lookups implementation.
3167 * dwarf2read.c: Include ctype.h.
3168 (struct mapped_index): New field version.
3169 (mapped_index_string_hash): New parameter index_version. New comment
3170 for it. Call tolower appropriately.
3171 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3172 Choose the right index version for mapped_index_string_hash.
3173 (dwarf2_read_index): Support also the index version 5. Initialize the
3174 new struct mapped_index field version.
3175 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3176 (find_slot): Explain the version needs. Pass INT_MAX for the new
3178 (write_psymtabs_to_index): Produce version 5.
3179 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3180 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3181 * psymtab.c (lookup_partial_symbol): Find the
3182 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3184 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3186 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3187 (completion_list_add_name): New variable ncmp, initialize it, use it.
3188 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3189 * utils.c (strcmp_iw): Support case_sensitive_off.
3190 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3191 New function comment part. New variables saved_string1,
3192 saved_string2 and case_pass. Add a proper second pass.
3194 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3196 Replace re_comp/re_exec by regcomp/regexec.
3197 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3198 (search_symbols_name_matches): Use them, use regexec.
3199 (search_symbols): New variable retval_chain, adjust the use of
3200 old_chain against it. Replace re_comp by regcomp. Use the new struct
3201 search_symbols_data fields, use regexec instead of re_exec.
3203 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3205 Format the code for the next patch.
3206 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3207 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3208 New variables c1 and c2.
3210 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3212 * infrun.c (proceed): Do not single-step into signal delivery
3213 when stepping off a breakpoint location.
3214 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3215 (insert_step_resume_breakpoint_at_caller): Likewise.
3216 (insert_step_resume_breakpoint_at_sal): Likewise.
3217 (insert_longjmp_resume_breakpoint): Likewise.
3219 2011-04-27 Yao Qi <yao@codesourcery.com>
3221 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3223 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3225 * procfs.c (procfs_pass_signals): Fix advance declaration.
3227 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3229 * target.h (struct target_ops): Remove to_notice_signals;
3230 add to_pass_signals.
3231 (target_notice_signals): Remove.
3232 (target_pass_signals): Add prototype.
3233 * target.c (update_current_target): Remove to_notice_signals;
3234 mention to_pass_signals.
3235 (target_pass_signals): New function.
3236 (debug_to_notice_signals): Remove.
3237 (setup_target_debug): Do not install debug_to_notice_signals.
3239 * infrun.c (signal_pass): New global.
3240 (resume): Call target_pass_signals.
3241 (handle_inferior_event): Report all signals while stepping over
3242 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3243 are re-inserted when stepping over a signal handler.
3244 (signal_cache_update): New function.
3245 (signal_stop_update): Call it.
3246 (signal_print_update): Likewise.
3247 (signal_pass_update): Likewise.
3248 (handle_command): Call signal_cache_update and target_pass_signals
3249 instead of target_notice_signals.
3250 (_initialize_infrun): Initialize signal_pass.
3252 * linux-nat.c (pass_mask): New global.
3253 (linux_nat_pass_signals): New function.
3254 (linux_nat_create_inferior): Report all signals initially.
3255 (linux_nat_attach): Likewise.
3256 (linux_nat_resume): Use pass_mask to decide whether to directly
3257 handle an inferior signal.
3258 (linux_nat_wait_1): Likewise.
3259 (linux_nat_add_target): Install to_pass_signals callback.
3261 * nto-procfs.c (notice_signals): Remove.
3262 (procfs_resume): Do not call notice_signals.
3263 (procfs_notice_signals): Remove.
3264 (procfs_pass_signals): New function.
3265 (init_procfs_ops): Install to_pass_signals callback instead of
3266 to_notice_signals callback.
3267 (_initialize_procfs): Report all signals initially.
3269 * procfs.c (procfs_notice_signals): Remove.
3270 (procfs_pass_signals): New function.
3271 (procfs_target): Install to_pass_signals callback instead of
3272 to_notice_signals callback.
3273 (register_gdb_signals): Remove.
3274 (procfs_debug_inferior): Report all signals initially.
3275 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3277 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3278 parameters; use them instead of calling signal_..._state routines.
3279 (remote_notice_signals): Remove.
3280 (remote_start_remote): Report all signals initially.
3281 (remote_resume): Do not call remote_pass_signals.
3282 (_initialize_remote): Install to_pass_signals callback instead of
3283 to_notice_signals callback.
3285 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3287 * breakpoint.c (user_settable_breakpoint): Delete.
3288 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3289 (delete_command): Check user_breakpoint_p instead of looking at
3290 the breakpoint's type.
3291 (disable_command): Ditto.
3292 (enable_command): Ditto.
3293 (delete_trace_command): Use user_breakpoint_p instead of looking
3294 at the breakpoint number directly. When checking if there are
3295 user visible tracepoints, in order to know whether to ask the user
3296 for confirmation, check whether the breakpoint is actually a
3299 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3301 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3304 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3306 MI breakpoint notifications.
3308 * annotate.c (breakpoint_changed): Adjust parameter type.
3309 * breakpoint.c (set_breakpoint_condition): Adjust to change
3310 in breakpoint_modified type.
3311 (breakpoint_set_commands): Likewise.
3312 (do_map_commands_command): Likewise.
3313 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3314 changed after bumping hit count.
3315 (bpstat_stop_status): Likewise.
3316 (print_one_breakpoint_location): Don't wrap in tuple here.
3317 (print_one_breakpoint): Always print individual locations.
3318 For locations, use unnamed tuple.
3319 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3321 (create_catchpoint, create_syscall_event_catchpoint): Call
3322 breakpoint_created obsever.
3323 (mention): Don't call breakpoint_created observer.
3324 (create_breakpoint_sal): Call breakpoint_created observer.
3325 (create_breakpoint, watch_command_1): Likewise.
3326 (create_ada_exception_breakpoint): Likewise.
3327 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3328 (locations_are_equal): New.
3329 (update_breakpoint_locations): If locations were changed, notify.
3330 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3331 Call breakpoint_modified observer.
3333 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3334 (mi_cmd_break_insert): Don't set observers for modify and delete.
3335 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3336 (mi_breakpoint_created, mi_breakpoint_deleted)
3337 (mi_breakpoint_modified): New.
3338 (mi_interpreter_init): Hook the above.
3339 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3340 while -break-* commands are executing.
3341 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3342 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3344 (mi_ui_out_impl): Hook in mi_redirect.
3345 (mi_field_skip): True to the name, skip the field, don't output
3346 a field with an empty value.
3348 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3349 (gdbpy_breakpoint_deleted): Adjust.
3350 * tui/tui-hooks.c (tui_event_create_breakpoint)
3351 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3353 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3355 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3356 (procfs_remove_hw_watchpoint): Likewise.
3358 2011-04-26 Michael Walle <michael@walle.cc>
3360 * remote.c (remote_start_remote): Ack packet after sending the
3363 2011-04-26 Yao Qi <yao@codesourcery.com>
3365 * linux-nat.c: Move common macros to ...
3366 Include linux-ptrace.h.
3367 * common/linux-ptrace.h: ... here. New.
3369 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3371 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3372 !objfile_has_partial_symbols. New comment.
3373 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3374 SYM_READ_PSYMBOLS is not present. Extend the comment.
3375 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3377 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3379 * defs.h (ENUM_BITFIELD): Remove.
3381 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3382 Eli Zaretskii <eliz@gnu.org>
3384 * NEWS: Document the new gdbserver --once option.
3386 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3388 * MAINTAINERS: Update my email address.
3390 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3392 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3393 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3394 function call if __STDC_ISO_10646__ macro is defined.
3395 (intermediate_encoding): New prototype.
3396 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3397 to generate compile time error for unsupported gdb_wchar_t size.
3398 (ENDIAN_SUFFIX): New macro.
3399 (intermediate_encoding): New function.
3401 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3403 * ada-lang.c (struct add_partial_datum): Update the comment for
3404 expand_partial_symbol_name.
3405 (ada_add_partial_symbol_completions): Rename to ...
3406 (ada_expand_partial_symbol_name): ... here, change return type, update
3407 function comment, call symbol_completion_match instead of
3408 symbol_completion_add.
3409 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3410 and ada_expand_partial_symbol_name.
3411 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3413 (dw2_map_symbol_names): Remove.
3414 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3415 * psymtab.c (map_symbol_names_psymtab): Remove.
3416 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3417 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3419 (psym_functions): Unlist map_symbol_names_psymtab.
3420 (map_partial_symbol_names): Rename to ...
3421 (expand_partial_symbol_names): ... here, change the FUN type, call
3422 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3423 * psymtab.h (map_partial_symbol_names): Rename to ...
3424 (expand_partial_symbol_names): ... here, change the FUN type.
3425 * symfile.h (struct quick_symbol_functions): Update the description of
3426 expand_symtabs_matching. Remove map_symbol_names.
3427 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3428 (struct add_name_data): Update the comment for
3429 expand_partial_symbol_name.
3430 (add_partial_symbol_name): Rename to ...
3431 (expand_partial_symbol_name): ... here. Replace
3432 completion_list_add_name call by strncmp.
3433 (default_make_symbol_completion_list_break_on): Use now
3434 expand_partial_symbol_names and expand_partial_symbol_name.
3435 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3437 2011-04-20 Tom Tromey <tromey@redhat.com>
3439 * dwarf2read.c (save_gdb_index_command): Replace format
3440 documentation with a pointer to the manual.
3442 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3444 * regcache.c: Include remote.h.
3445 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3446 (regcache_dump): Handle regcache_dump_remote.
3447 (maintenance_print_remote_registers): New function.
3448 (_initialize_regcache): Install "maint print remote-registers"
3450 * remote.c (map_regcache_remote_table): New function, factored out
3452 (init_remote_state): ... here.
3453 (remote_register_number_and_offset): New.
3454 * remote.h (remote_register_number_and_offset): Declare.
3456 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3458 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3459 null_ptid, assume and allow a NULL address space, instead of
3460 asking the target for the ptid's address space.
3461 * infrun.c (ptid_is_pid): Remove assertion.
3463 2011-04-19 Tom Tromey <tromey@redhat.com>
3465 * windows-tdep.c (windows_xfer_shared_library):
3466 * windows-nat.c (get_module_name, windows_make_so):
3467 * v850-tdep.c (v850_handle_pushm):
3468 * utils.c (null_cleanup, gdb_realpath):
3469 * ui-out.c (get_next_header):
3470 * tracepoint.c (clear_traceframe_info):
3471 * symtab.c (lookup_symtab):
3472 * serial.h (struct serial_ops):
3473 * mipsread.c (read_alphacoff_dynamic_symtab):
3474 * infcmd.c (print_return_value):
3475 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3476 * f-exp.y (parse_number):
3477 * exceptions.c (catch_exceptions):
3478 * dummy-frame.c (dummy_frame_this_id):
3479 * defs.h (struct cleanup):
3480 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3481 * arm-tdep.c (arm_push_dummy_call):
3482 * amd64-tdep.h (amd64_collect_xsave):
3483 * amd64-tdep.c (amd64_collect_xsave):
3484 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3485 * README (typing): Remove duplicate words.
3486 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3487 * infrun.c (siginfo_value_read): Fix typo.
3488 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3489 * top.c (source_line_number): Add comma.
3491 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3493 * thread.c (any_live_thread_of_process): Prioritize threads
3494 that are not executing.
3495 * gdbthread.h (any_live_thread_of_process): Update comment
3496 as per above change.
3498 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3500 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3501 (scan_xcoff_symtab): Likewise.
3503 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3505 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3508 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3509 Pedro Alves <pedro@codesourcery.com>
3511 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3512 variables to simplify code and avoid == operator at end of
3513 line as this is against GNU coding standards.
3515 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3517 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3518 lm_name to name_lm to avoid conflict with lm_name function.
3520 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3522 ARI fixes: Use only lowercase function name for static functions.
3523 * nto-tdep.c (LM_ADDR): Rename to...
3524 (lm_addr): New function name.
3525 (nto_relocate_section_addresses): Adapt to change above.
3526 * solib-sunos.c (LM_ADDR): Rename to...
3527 (lm_addr): New function name.
3528 (LM_NEXT): Rename to...
3529 (lm_next): New function name.
3530 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3531 function name changes above.
3532 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3533 (lm_addr_from_link_map): New function name.
3534 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3535 (has_lm_dynamic_from_link_map): New function name.
3536 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3537 (lm_dynamic_from_link_map): New function name.
3538 (LM_ADDR_CHECK): Rename to...
3539 (lm_addr_check): New function name.
3540 (LM_NEXT): Rename to...
3541 (lm_next): New function name.
3542 (LM_PREV): Rename to...
3543 (lm_prev): New function name.
3544 (LM_NAME): Rename to...
3545 (lm_name): New function name.
3546 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3547 (ignore_first_link_map_entry): New function name.
3548 (svr4_keep_data_in_core): Adapt to function name changes above.
3549 (svr4_current_sos): Likewise.
3550 (enable_break): Likewise.
3551 (svr4_relocate_section_addresses): Likewise.
3553 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3556 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3557 sprintf. Simplify code and avoid loosing memory.
3558 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3559 (call0_frame_cache): Remove && operator from end of line.
3561 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3563 Fix libraries displacement if they change whether they were prelinked.
3564 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3565 does not match. Comment why.
3567 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3569 * corelow.c: Include wrapper.h.
3570 (core_open): Call now gdb_target_find_new_threads.
3571 * wrapper.c: Include target.h.
3572 (gdb_target_find_new_threads): New.
3573 * wrapper.h (gdb_target_find_new_threads): New declaration.
3575 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3577 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3578 even if !TARGET_HAS_EXECUTION.
3580 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3582 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3583 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3584 bfd_get_synthetic_symtab.
3585 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3586 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3587 parameter parent, remove the call to add_separate_debug_objfile.
3588 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3589 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3590 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3591 parent, new comment for it, call add_separate_debug_objfile for it.
3592 (symbol_file_add_separate): Pass objfile as the parameter parent,
3593 remove the call to add_separate_debug_objfile.
3594 (symbol_file_add_from_bfd): New parameter parent, pass it.
3595 (symbol_file_add): Pass NULL to the new parameter parent.
3596 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
3598 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3600 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
3603 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3605 Fix Python access to inlined frames.
3606 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
3607 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3609 2011-04-15 Tom Tromey <tromey@redhat.com>
3611 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
3613 2011-04-15 Gary Benson <gbenson@redhat.com>
3615 * MAINTAINERS: Add myself to write-after-approval section.
3617 2011-04-14 Mike Frysinger <vapier@gentoo.org>
3619 * remote-sim.c (sim_command_completer): New function.
3620 (_initialize_remote_sim): Set completer to sim_command_completer.
3622 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3624 * breakpoint.c (print_exception_catchpoint): Rename to ...
3625 (print_it_exception_catchpoint): ... this.
3626 (gnu_v3_exception_catchpoint_ops): Update with new name
3627 for print_it_exception_catchpoint.
3629 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
3631 * MAINTAINERS: Add myself for write after approval privileges.
3633 2011-04-13 Marek Polacek <mpolacek@redhat.com>
3635 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3637 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3639 * breakpoint.c (watch_command_1): Remove colon from exp_string.
3641 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3643 * breakpoint.c (save_breakpoints): Verify whether
3644 breakpoint_ops.print_recreate is defined before calling it.
3646 2011-04-11 Gary Benson <gbenson@redhat.com>
3648 Fix failure with --enable-maintainer-mode.
3649 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
3651 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3654 * symtab.c (search_symbols): Reorder the KIND description in the
3655 function comment. Remove the unused 4th element of types, types2,
3656 types3 and types4. New gdb_assert on KIND.
3657 (symtab_symbol_info): Remove the unused 4th element of classnames.
3658 New gdb_assert on KIND.
3659 * symtab.h (enum search_domain): New warning in the enum comment.
3660 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
3663 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3665 Fix crash of gdb save-index on a STABS file.
3666 * dwarf2read.c (write_psymtabs_to_index): Return also on no
3669 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3671 Fix DW_AT_accessibility compatibility with gcc-4.6+.
3672 * dwarf2read.c: Include ctype.h.
3673 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
3675 (dwarf2_add_field): Fix new_field->accessibility by calling
3676 dwarf2_default_access_attribute. Restructure setting accessibility
3678 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
3679 is_private and is_protected by calling
3680 dwarf2_default_access_attribute.
3682 2011-04-08 Kevin Buettner <kevinb@redhat.com>
3684 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
3685 to the initialization.
3687 2011-04-08 Steve Ellcey <sje@cup.hp.com>
3689 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
3692 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
3694 Remove support for old Cygwin 1.5 versions.
3695 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
3696 function on old Cygwin version.
3697 * windows-nat.c: Remove cygwin version check and always define
3698 __USEWIDE for Cygwin compilation.
3700 2011-04-07 Yao Qi <yao@codesourcery.com>
3702 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
3704 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
3705 (arm_copy_svc): Remove parameters INSN and TO.
3706 (decode_svc_copro): Update caller.
3707 * arm-tdep.h (struct displaced_step_closure): Remove parameters
3708 from function pointer `copy_svc_os'.
3710 2011-04-07 Yao Qi <yao@codesourcery.com>
3712 * arm-tdep.c (cleanup_branch): Set a correct return address in
3713 LR for ARM and Thumb.
3715 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3718 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
3719 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
3720 in the function comment, a new note on values compatibility.
3721 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
3722 * symtab.h (SYMBOL_HASH_NEXT): New.
3724 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
3726 * ppc-linux-nat.c (check_condition): Add len output parameter.
3727 Set it based on the memory region referenced in the condition
3728 expression. Update all callers.
3730 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3732 Fix crash regression on systems featuring .gdb_index.
3733 * objfiles.c (free_objfile): Move the
3734 forget_cached_source_info_for_objfile call earlier. Comment it.
3735 Extend the comment for objfile_free_data.
3737 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3739 Fix regression of displaying the debug format.
3740 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
3743 2011-04-04 Tom Tromey <tromey@redhat.com>
3745 * cli/cli-interp.c (struct captured_execute_command_args):
3747 (do_captured_execute_command): Remove.
3748 (safe_execute_command): Use TRY_CATCH.
3749 * cli/cli-script.c (struct wrapped_read_command_file_args):
3751 (wrapped_read_command_file): Remove.
3752 (script_from_file): Use TRY_CATCH.
3753 * exceptions.c (catch_exception): Remove.
3754 * exceptions.h (catch_exception): Remove.
3755 (deprecated_throw_reason): Update comment.
3756 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
3757 argument to 'context'.
3758 (mi_execute_command): Use TRY_CATCH.
3759 * remote.c (struct start_remote_args): Remove.
3760 (remote_start_remote): Update; change arguments.
3761 (remote_open_1): Use TRY_CATCH.
3763 2011-04-04 Tom Tromey <tromey@redhat.com>
3765 * tracepoint.c (scope_info): Update.
3766 * symtab.c (decode_line_spec): Update.
3767 * python/python.c (gdbpy_decode_line): Update.
3768 * linespec.h (decode_line_1): Update.
3769 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
3770 (decode_compound, find_method, symtab_from_filename)
3771 (decode_variable): Likewise.
3772 * cli/cli-cmds.c (edit_command): Update.
3773 (list_command): Update.
3774 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
3776 (create_breakpoint): Update.
3777 (until_break_command): Update.
3778 (addr_string_to_sals): Update.
3779 (decode_line_spec_1): Update.
3781 2011-04-04 Tom Tromey <tromey@redhat.com>
3783 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
3784 (do_captured_parse_breakpoint): Remove.
3785 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
3786 Use TRY_CATCH directly.
3788 2011-04-04 Tom Tromey <tromey@redhat.com>
3790 * symtab.h (free_symtab): Remove.
3791 (forget_cached_source_info_for_objfile): Declare.
3792 * symmisc.c (free_symtab): Remove.
3793 * source.c (forget_cached_source_info_for_objfile): New function.
3794 (forget_cached_source_info): Use it.
3795 * objfiles.c (free_objfile): Simplify check before calling
3796 clear_current_source_symtab_and_line. Call
3797 forget_cached_source_info_for_objfile.
3799 2011-04-04 Tom Tromey <tromey@redhat.com>
3801 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
3802 (new_symtab): Don't set `free_code' on symtab.
3803 (new_linetable): Properly handle size==0.
3804 * symtab.h (struct symtab) <free_code, free_func>: Remove.
3805 * symmisc.c (free_symtab): Don't free the linetable. Don't call
3807 * jv-lang.c (struct jv_per_objfile_data): New.
3808 (jv_per_objfile_free): Free the data.
3809 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
3810 (get_java_class_symtab): Set the `dict' field on the
3811 jv_per_objfile_data.
3812 (free_class_block): Remove.
3813 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
3816 2011-04-04 Tom Tromey <tromey@redhat.com>
3818 * symfile.c (reread_symbols): Update.
3819 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
3821 * objfiles.c (allocate_objfile): Update.
3822 * cp-support.h (cp_check_possible_namespace_symbols): Don't
3824 * cp-namespace.c (lookup_symbol_file): Don't call
3825 lookup_possible_namespace_symbol.
3826 (initialize_namespace_symtab, get_possible_namespace_block)
3827 (free_namespace_block, cp_check_possible_namespace_symbols)
3828 (check_possible_namespace_symbols_loop)
3829 (check_one_possible_namespace_symbol)
3830 (lookup_possible_namespace_symbol): Remove.
3831 (maintenance_cplus_namespace): Replace with notice.
3832 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
3834 2011-04-04 Tom Tromey <tromey@redhat.com>
3836 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
3837 * symtab.h (struct symtab) <producer, debugformat>: Now const.
3838 * symmisc.c (free_symtab): Don't free debugformat.
3839 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
3840 (record_debugformat, record_producer): Document.
3841 * buildsym.c (end_symtab): Don't save debugformat and producer
3843 (end_symtab): Don't free debugformat and producer fields.
3844 (record_debugformat): Don't call xstrdup.
3845 (record_producer): Likewise.
3847 2011-04-04 Tom Tromey <tromey@redhat.com>
3849 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
3850 (source_line_charpos, source_charpos_line): Remove.
3852 2011-04-04 Tom Tromey <tromey@redhat.com>
3854 * symtab.h (domain_enum): Split in two...
3855 (enum search_domain): New.
3856 (search_symbols): Update.
3857 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
3858 redundant declarations.
3859 (search_symbols): Change 'kind' argument to search_domain.
3861 (print_symbol_info): Likewise.
3862 (symtab_symbol_info): Likewise.
3863 * symfile.h (struct quick_symbol_functions)
3864 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
3865 <expand_symtabs_matching>: Likewise.
3866 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
3867 (expand_symtabs_matching_via_partial): Update.
3868 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
3869 (dw2_expand_symtabs_for_function): Update.
3870 * block.h: Moved anonymous enum...
3871 * defs.h (enum block_enum): ... here. Now named.
3873 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3875 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
3876 * version.in: Bump version to 7.3.50.20110403-cvs.
3878 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3880 * NEWS: Create a new section for the next release branch.
3881 Rename the section of the current branch, now that it has
3884 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3886 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
3887 for "fpscr" in target description.
3889 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3891 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
3892 initialize it. Delay HASH initialization. Strip the part after open
3893 parenthesis for languages with qualifiers. Call do_cleanups.
3895 2011-04-01 Tom Tromey <tromey@redhat.com>
3897 * utils.c (report_command_stats): Don't print `-' for negative
3900 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
3902 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
3903 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
3906 2011-04-01 Joel Brobecker <brobecker@adacore.com>
3908 * breakpoint.h (bpdisp_text): Add declaration.
3909 * breakpoint.c (bpdisp_text): Make non-static.
3910 * ada-lang.c: #include "mi/mi-common.h".
3911 (print_it_exception): Rewrite to improve GDB/MI output.
3913 2011-04-01 Pedro Alves <pedro@codesourcery.com>
3915 * arm-tdep.h (struct address_space): Add forward declaration.
3917 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3919 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
3920 * arm-tdep.c (arm_override_mode): New global.
3921 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
3922 execution mode heuristics.
3923 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
3924 second single-step breakpoint if needed, using
3925 arm_insert_single_step_breakpoint.
3926 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
3927 ARM execution mode, do not call thumb_get_next_pc_raw.
3928 (arm_get_next_pc): Encode execution mode in return value. Call
3929 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
3930 (arm_insert_single_step_breakpoint): New function.
3931 (arm_software_single_step): Call it.
3932 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
3933 argument to return execution mode of sigreturn target.
3934 (arm_linux_syscall_next_pc): Use it.
3935 (arm_linux_copy_svc): Update call.
3936 (arm_linux_software_single_step): Call
3937 arm_insert_single_step_breakpoint.
3939 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3941 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
3944 2011-03-31 Tom Tromey <tromey@redhat.com>
3946 * varobj.c (update_dynamic_varobj_children): Properly handle
3947 errors from iterator.
3949 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3951 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
3952 struct linkage name twice.
3954 2011-03-31 Tom Tromey <tromey@redhat.com>
3956 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
3957 missing ">" to message.
3959 2011-03-31 Tom Tromey <tromey@redhat.com>
3961 * varobj.c (instantiate_pretty_printer): Remove duplicate
3964 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
3966 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
3967 if neither saved value nor register available (e.g. signal frame).
3969 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3971 * macroexp.c (expand): Avoid uninitialized variable
3974 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3976 * breakpoint.c (break_range_command): Fix typo in comment.
3978 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3979 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3981 Implement support for PowerPC BookE ranged breakpoints.
3982 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
3983 * breakpoint.h (struct bp_target_info) <length>: New member
3985 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
3986 instead of struct breakpoint as argument, and also add ASPACE
3987 and BP_ADDR arguments. Update all callers.
3988 (struct breakpoint_ops) <print_one_detail>: New method.
3989 (struct breakpoint) <addr_string_range_end>: New member variable.
3990 * breakpoint.c (breakpoint_location_address_match): Add function
3992 (insert_bp_location): Set bl->target_info.length.
3993 (breakpoint_here_p): Call breakpoint_location_address_match.
3994 (moribund_breakpoint_here_p): Likewise.
3995 (regular_breakpoint_inserted_here_p): Likewise.
3996 (breakpoint_thread_match): Likewise.
3997 (bpstat_stop_status): Likewise.
3998 (bpstat_check_location): Move call to
3999 breakpoint_ops.breakpoint_hit to the top.
4000 (print_one_breakpoint_location): Call
4001 breakpoint_ops.print_one_detail if available.
4002 (breakpoint_address_match_range): New function.
4003 (breakpoint_location_address_match): Likewise.
4004 (breakpoint_locations_match): Compare the length field of the
4006 (hw_breakpoint_used_count): Count resources used by all locations
4007 in a breakpoint, and use breakpoint_ops.resources_needed if
4009 (breakpoint_hit_ranged_breakpoint): New function.
4010 (resources_needed_ranged_breakpoint): Likewise.
4011 (print_it_ranged_breakpoint): Likewise.
4012 (print_one_ranged_breakpoint): Likewise.
4013 (print_one_detail_ranged_breakpoint): Likewise.
4014 (print_mention_ranged_breakpoint): Likewise.
4015 (print_recreate_ranged_breakpoint): Likewise.
4016 (ranged_breakpoint_ops): New structure.
4017 (find_breakpoint_range_end): New function.
4018 (break_range_command): Likewise.
4019 (delete_breakpoint): Free addr_string_range_end.
4020 (update_breakpoint_locations): Add SALS_END argument. Update
4021 all callers. Calculate breakpoint length if a non-zero SALS_END
4022 is given. Call breakpoint_locations_match instead of
4023 breakpoint_address_match.
4024 (reset_breakpoint): Find SaL of the end of the range if B is a
4026 (_initialize_breakpoint): Register break-range command.
4027 * defs.h (print_core_address): Add function prototype.
4028 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4030 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4031 (ppc_linux_remove_hw_breakpoint): Likewise.
4032 (_initialize_ppc_linux_nat): Initialize
4033 to_ranged_break_num_registers.
4034 * target.c (update_current_target): Add comment about
4035 to_ranged_break_num_registers.
4036 (target_ranged_break_num_registers): New function.
4037 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4039 (target_ranged_break_num_registers): Add function prototype.
4040 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4041 * utils.c (print_core_address): ... here.
4043 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4045 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4046 variable compiler warning.
4048 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4050 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4052 (re_set_breakpoint): ... to here ...
4053 (addr_string_to_sals): ... and here.
4055 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4057 * Makefile.in (SFILES): Add missing C sources.
4058 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4059 Add missing headers.
4061 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4063 * .gitignore: New file.
4065 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4067 * NEWS: Mention new cfi device simulation.
4069 2011-03-29 Tom Tromey <tromey@redhat.com>
4071 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4072 otherwise anonymous types.
4073 (dwarf2_name): Likewise.
4074 * valops.c (value_struct_elt_for_reference): Refine artificial
4075 type logic. Call error if j==-1.
4077 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4079 Fix false GCC warning.
4080 * infcall.c (find_function_addr): Initialize funaddr.
4082 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4084 Fix mingw compilation with --enable-targets=all.
4085 * remote-mips.c (gdb_usleep.h): Include header.
4086 (mips_enter_debug): Use gdb_usleep instead of sleep.
4088 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4090 Support resolution of STT_GNU_IFUNC via breakpoints.
4091 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4092 bp_gnu_ifunc_resolver_return.
4093 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4094 the loop. Support bp_gnu_ifunc_resolver and
4095 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4096 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4098 (bptype_string, print_one_breakpoint_location): Support
4099 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4100 (user_settable_breakpoint): Return true also for
4101 bp_gnu_ifunc_resolver.
4102 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4103 bp_gnu_ifunc_resolver_return.
4104 (set_breakpoint_location_function): New parameter explicit_loc,
4105 describe it. Call find_pc_partial_function_gnu_ifunc with new
4106 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4107 EXPLICIT_LOC is not set.
4108 (set_raw_breakpoint): Set EXPLICIT_LOC for
4109 set_breakpoint_location_function.
4110 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4111 set_breakpoint_location_function.
4112 (mention): Support bp_gnu_ifunc_resolver and
4113 bp_gnu_ifunc_resolver_return.
4114 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4115 set_breakpoint_location_function.
4116 (update_breakpoint_locations): Remove static.
4117 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4118 bp_gnu_ifunc_resolver_return.
4119 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4120 bp_gnu_ifunc_resolver_return.
4121 (update_breakpoint_locations): New declaration.
4122 * elfread.c: Include gdbthread.h and regcache.h.
4123 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4125 (elf_gnu_ifunc_fns): Install them.
4126 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4127 (stub_gnu_ifunc_resolver_return_stop): New functions.
4128 (stub_gnu_ifunc_fns): Install them.
4129 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4130 and gnu_ifunc_resolver_return_stop.
4131 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4133 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4135 STT_GNU_IFUNC reader implementation.
4136 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4137 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4138 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4139 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4140 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4141 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4142 (elf_gnu_ifunc_resolve_addr): New.
4143 (elf_symfile_read): Call elf_rel_plt_read.
4144 (elf_gnu_ifunc_fns): New.
4145 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4146 Install elf_gnu_ifunc_fns.
4147 * infcall.c (find_function_return_type): New function.
4148 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4149 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4150 (stub_gnu_ifunc_resolve_name): New functions.
4151 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4152 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4153 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4155 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4157 Code cleanup for later STT_GNU_IFUNC support.
4158 * infcall.c (find_function_addr): Remove variable code, use explicit
4159 dereferences for it. Move VALUE_TYPE initialization later.
4161 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4163 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4164 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4165 (clear_pc_function_cache): Clear it.
4166 (find_pc_partial_function): Rename to ...
4167 (find_pc_partial_function_gnu_ifunc): ... this function. New
4168 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4169 (find_pc_partial_function): New wrapper for this function.
4170 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4172 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4174 GDB internal type support for STT_GNU_IFUNC.
4175 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4176 (elf_symtab_read): Set mst_text_gnu_ifunc for
4177 BSF_GNU_INDIRECT_FUNCTION.
4178 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4179 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4180 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4181 nodebug_got_plt_symbol.
4182 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4183 (TYPE_GNU_IFUNC): New.
4184 (struct main_type): New field flag_gnu_ifunc.
4185 (struct builtin_type): New field builtin_func_func.
4186 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4187 nodebug_got_plt_symbol.
4188 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4189 (in_gnu_ifunc_stub): New.
4190 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4192 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4193 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4194 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4196 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4197 * symtab.c (search_symbols): Likewise.
4198 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4199 and mst_slot_got_plt.
4200 (in_gnu_ifunc_stub): New declaration.
4202 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4204 Support a ring of related breakpoints.
4205 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4206 other functions, add gdb_assert.
4207 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4208 watchpoint_del_at_next_stop.
4209 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4210 (bpstat_stop_status): Handle ring in related_breakpoint.
4211 (set_raw_breakpoint_without_location): Initialize ring in
4213 (delete_breakpoint): Handle ring in related_breakpoint, use
4214 watchpoint_del_at_next_stop.
4215 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4217 2011-03-28 Tom Tromey <tromey@redhat.com>
4220 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4221 with `language_minimal'.
4223 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4225 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4226 instead of checking for STT_ARM_TFUNC symbol type.
4228 2011-03-25 Tom Tromey <tromey@redhat.com>
4230 * linespec.c (symbol_found): Restore line-based result for
4231 non-LOC_LABEL symbols.
4233 2011-03-25 Kai Tietz <ktietz@redhat.com>
4235 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4236 instead of strcmp for comparison.
4237 (tui_source_is_displayed): Likewise.
4238 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4240 2011-03-24 Mark Wielaard <mjw@redhat.com>
4242 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4244 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4245 (find_partial_die_in_comp_unit): Likewise in comment.
4246 (read_attribute_value): Likewise.
4247 (lookup_die_type): Likewise.
4248 (dwarf_form_name): Likewise.
4249 (dump_die_shallow): Likewise.
4250 (follow_die_ref_or_sig): Likewise.
4252 2011-03-24 Tom Tromey <tromey@redhat.com>
4254 PR breakpoints/11816:
4255 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4256 (decode_compound): Update.
4257 (find_function_symbol): New function.
4258 (decode_dollar): Update.
4259 (decode_label): Add 'function_symbol' parameter. Handle
4260 function-relative labels.
4261 (decode_variable): Update.
4262 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4263 not its line. Set `special_display' and canonical name for
4266 2011-03-24 Tom Tromey <tromey@redhat.com>
4268 * linespec.h (struct linespec_result) <special_display>: New
4270 * breakpoint.h (struct breakpoint) <display_canonical>: New
4272 * breakpoint.c (print_breakpoint_location): Respect
4274 (create_breakpoint_sal): Add 'display_canonical' parameter.
4275 (create_breakpoints_sal): Update.
4276 (create_breakpoint): Update.
4278 2011-03-24 Tom Tromey <tromey@redhat.com>
4280 * symtab.c (decode_line_spec): Update.
4281 * linespec.c (build_canonical_line_spec): Change type of
4283 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4284 (find_method, decode_all_digits, decode_dollar, decode_label)
4285 (symbol_found): Likewise.
4286 (init_linespec_result): New function.
4287 * breakpoint.c (struct captured_parse_breakpoint_args)
4288 <canonical_p>: New field, replaces addr_string_p.
4289 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4291 (parse_breakpoint_sals): Likewise.
4292 (do_captured_parse_breakpoint): Update.
4293 (create_breakpoint): Use struct linespec_result.
4294 (until_break_command): Update.
4295 (breakpoint_re_set_one): Update.
4296 (decode_line_spec_1): Update.
4297 * linespec.h (struct linespec_result): New.
4298 (init_linespec_result): Declare.
4300 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4302 * regcache.c (regcache_raw_read): If the target didn't supply a
4303 given raw register, mark it as unavailable.
4305 2011-03-23 Kai Tietz <ktietz@redhat.com>
4307 * breakpoint.c (clear_command): Use filename_cmp
4308 instead of strcmp for comparison.
4309 * buildsym.c (watch_main_source_file_lossage): Likewise.
4310 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4311 checking just for slash.
4312 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4313 strrchr and filename_cmp instead of strcmp for filenames.
4314 (add_old_header_file): Use filename_cmp
4315 instead of strcmp for comparison.
4316 * exec.c (exec_set_section_address): Likewise.
4317 * macrotab.c (macro_lookup_inclusion): Likewise.
4318 (macro_lookup_inclusion): Likewise.
4319 * elfread.c (_initialize_elfread): Likewise.
4320 (elfstab_offset_sections): Likewise.
4321 (elfstab_offset_sections): Use lbasename instead of
4323 * mdebugread.c (parse_partial_symbols): Likewise.
4324 (arse_partial_symbols): Use filename_(n)cmp instead of
4325 str(n)cmp for comparison.
4326 * minsyms.c (lookup_minimal_symbol): Likewise.
4327 * psymtab.c (read_psymtabs_with_filename): Likewise.
4328 * solib.c (solib_read_symbols): Likewise.
4329 (reload_shared_libraries_1): Likewise.
4330 * symmisc.c (maintenance_print_symbols): Likewise.
4331 * symfile.c (separate_debug_file_exists): Likewise.
4332 (reread_symbols): Likewise.
4333 (find_separate_debug_file_by_debuglink): Likewise.
4334 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4335 * source.c (add_path): Likewise.
4336 * symtab.c (filename_seen): Likewise.
4337 (file_matches): Likewise.
4338 (print_symbol_info): Likewise.
4339 (maybe_add_partial_symtab_filename): Likewise.
4340 (make_source_files_completion_list): Likewise.
4341 * xml-syscall.c (init_sysinfo): Likewise.
4342 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4343 IS_DIR_SEPARATOR for checking for trailing path separator.
4345 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4347 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4348 label abort_expression.
4349 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4350 DWARF_VALUE_OPTIMIZED_OUT.
4352 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4355 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4356 to linkage_name. Invert its value. Update the function comment.
4357 (c_type_print_varspec_suffix): Invert it at the caller.
4358 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4360 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4362 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4363 errors when reading the `stop_pc'.
4364 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4367 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4369 * NEWS: Document gdb.Write stream keyword.
4371 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4374 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4375 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4376 (dwarf2_add_field): Fix new_field->accessibility for
4377 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4379 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4383 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4384 other error classes. Do not print stack trace.
4386 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4388 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4389 (dwarf2_add_field): Fix new_field->accessibility for
4390 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4392 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4394 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4395 encountering a load via a non-SP register.
4397 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4399 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4400 field in returned unwinder.
4402 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4404 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4406 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4408 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4411 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4413 * frame.c (frame_unwind_register): Throw an error if unwinding the
4415 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4416 an unwind stop reason.
4417 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4418 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4419 UNWIND_UNAVAILABLE>: New.
4420 * inline-frame.c (inline_frame_unwind): Install
4421 default_frame_unwind_stop_reason.
4422 * frame-unwind.c: Include "exceptions.h".
4423 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4424 (default_frame_unwind_stop_reason): New.
4425 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4426 (default_frame_unwind_stop_reason): Declare.
4427 (struct frame_unwind) <stop_reason>: New function pointer.
4429 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4430 * dwarf2-frame.c: Include exceptions.h.
4431 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4432 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4433 computing the CFA. If such an error was thrown, set
4434 unavailable_retaddr.
4435 (dwarf2_frame_unwind_stop_reason): New.
4436 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4438 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4439 (dwarf2_signal_frame_unwind): Ditto.
4441 * amd64-tdep.c: Include "exceptions.h".
4442 (struct amd64_frame_cache): New field "base_p".
4443 (amd64_init_frame_cache): Clear it.
4444 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4445 Avoid reading registers with functions that throw if the register
4446 is not necessary to compute the frame base.
4447 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4448 swallowing NOT_AVAILABLE_ERROR.
4449 (amd64_frame_unwind_stop_reason): New.
4450 (amd64_frame_this_id): Don't build a frame id if the frame base
4452 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4453 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4454 base_p if the frame base was computable.
4455 (amd64_sigtramp_frame_unwind_stop_reason): New.
4456 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4457 frame base was unavailable.
4458 (amd64_sigtramp_frame_unwind): Install
4459 amd64_sigtramp_frame_unwind_stop_reason.
4460 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4461 base_p if the frame base was computable.
4462 (amd64_epilogue_frame_unwind_stop_reason): New.
4463 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4464 frame base was unavailable.
4465 (amd64_epilogue_frame_unwind): Install
4466 amd64_epilogue_frame_unwind_stop_reason.
4467 * i386-tdep.c: Include "exceptions.h".
4468 (struct i386_frame_cache): New field "base_p".
4469 (i386_init_frame_cache): Clear it.
4470 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4471 Avoid reading registers with functions that throw if the register
4472 is not necessary to compute the frame base.
4473 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4474 swallowing NOT_AVAILABLE_ERROR.
4475 (i386_frame_unwind_stop_reason): New.
4476 (i386_frame_this_id): Don't build a frame id if the frame base was
4478 (i386_frame_prev_register): Handle unavailable SP.
4479 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4480 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4481 base_p if the frame base was computable.
4482 (i386_epilogue_frame_unwind_stop_reason): New.
4483 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4484 base was unavailable.
4485 (i386_epilogue_frame_unwind): Install
4486 i386_epilogue_frame_unwind_stop_reason.
4487 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4488 base_p if the frame base was computable.
4489 (i386_sigtramp_frame_unwind_stop_reason): New.
4490 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4491 base was unavailable.
4492 (i386_sigtramp_frame_unwind): Install
4493 i386_sigtramp_frame_unwind_stop_reason.
4494 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4495 type's size, not the register's.
4496 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4498 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4499 default_frame_unwind_stop_reason.
4500 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4501 (alpha_heuristic_frame_unwind): Ditto.
4502 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4503 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4504 * avr-tdep.c (avr_frame_unwind): Ditto.
4505 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4507 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4508 * frv-tdep.c (frv_frame_unwind): Ditto.
4509 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4510 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4511 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4512 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4513 (hppa_stub_frame_unwind): Ditto.
4514 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4515 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4516 (ia64_libunwind_frame_unwind)
4517 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4518 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4519 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4520 * m32c-tdep.c (m32c_unwind): Ditto.
4521 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4522 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4523 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4524 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4525 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4526 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4527 * mep-tdep.c (mep_frame_unwind): Ditto.
4528 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4529 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4530 (mips_stub_frame_unwind): Ditto.
4531 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4532 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4533 * mt-tdep.c (mt_frame_unwind): Ditto.
4534 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4535 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4536 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4537 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4538 (s390_sigtramp_frame_unwind): Ditto.
4539 * score-tdep.c (score_prologue_unwind): Ditto.
4540 * sh-tdep.c (sh_frame_unwind): Ditto.
4541 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4542 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4543 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4544 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4545 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4546 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4547 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4548 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4549 (sparc64obsd_trapframe_unwind): Ditto.
4550 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4551 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4552 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4553 * v850-tdep.c (v850_frame_unwind): Ditto.
4554 * vax-tdep.c (vax_frame_unwind): Ditto.
4555 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4556 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4557 * xtensa-tdep.c (xtensa_unwind): Ditto.
4559 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4561 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4562 there's always a frame. Use get_frame_pc_if_available instead of
4563 get_frame_pc, and if there's no PC available, don't look up a
4566 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4568 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4571 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4573 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4576 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4578 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4579 * frame.c (frame_unwind_caller_pc_if_available): New.
4580 * stack.c (frame_info): Handle unavailable PC.
4582 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4584 * frame.c (frame_unwind_pc): Rename to ...
4585 (frame_unwind_pc_if_available): ... this. New `pc' output
4586 parameter. Change return type to int. Gracefully handle
4587 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4588 happened, or 1 otherwise.
4589 (frame_unwind_pc): Reimplement on top of
4590 frame_unwind_pc_if_available.
4591 (get_frame_func): Rename to ...
4592 (get_frame_func_if_available): New `pc' output parameter. Change
4593 return type to int. Gracefully handle the PC not being available.
4594 (get_frame_func): Reimplement on top of
4595 get_frame_func_if_available.
4596 (select_frame): Handle the PC being unavailable.
4597 (get_prev_frame): Handle the PC being unavailable.
4598 (get_frame_pc_if_available): New.
4599 (get_frame_address_in_block_if_available): New.
4600 (find_frame_sal): Handle the frame PC not being available.
4601 * frame.h (get_frame_pc_if_available): Declare.
4602 (get_frame_address_in_block_if_available): Declare.
4603 (get_frame_func_if_available): Declare.
4604 * stack.c (print_frame_info): Handle the PC being unavailable.
4605 (find_frame_funname): Ditto.
4606 (print_frame): Handle the PC being unavailable.
4607 (get_frame_language): Ditto.
4608 * blockframe.c (get_frame_block): Ditto.
4609 * macroscope.c (default_macro_scope): Ditto.
4610 * tui/tui-stack.c (tui_show_frame_info): Ditto.
4612 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4614 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
4615 NOT_AVAILABLE_ERROR when evaluating the location expression.
4617 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4619 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
4620 returning that the register piece is unavailable/optimized out.
4621 (write_pieced_value): Handle get_frame_register_bytes returning
4622 that the register piece is unavailable/optimized out when doing a
4623 read-modify write of a bitfield.
4624 * findvar.c (value_from_register): Handle get_frame_register_bytes
4625 returning that the register piece is unavailable/optimized out.
4626 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
4627 and `unavailablep'. Throw error on bad debug info. Use
4628 frame_register instead of frame_register_read, to fill in the new
4630 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
4632 * valops.c: (value_assign): Adjust, and handle
4633 get_frame_register_bytes failing.
4634 * spu-tdep.c: Include exceptions.h.
4635 (spu_software_single_step): Adjust, and handle
4636 get_frame_register_bytes failing.
4637 (spu_get_longjmp_target): Ditto.
4638 * gdbarch.sh (register_to_value): Change to return int. New
4639 parameters `optimizedp' and `unavailablep'.
4640 * gdbarch.h, gdbarch.c: Regenerate.
4641 * i386-tdep.c (i386_register_to_value): Adjust to new
4642 gdbarch_register_to_value interface.
4643 * i387-tdep.c (i387_register_to_value): Ditto.
4644 * i387-tdep.h (i387_register_to_value): Ditto.
4645 * alpha-tdep.c (alpha_register_to_value): Ditto.
4646 * ia64-tdep.c (ia64_register_to_value): Ditto.
4647 * m68k-tdep.c (m68k_register_to_value): Ditto.
4648 * mips-tdep.c (mips_register_to_value): Ditto.
4649 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
4651 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4653 * findvar.c (value_of_register): Mark the value as unavailable, if
4654 the register is unavailable.
4655 * frame.h (frame_register_unwind): New `unavailablep' parameter.
4656 (frame_register): New `unavailablep' parameter.
4657 (frame_register_read): Update comment.
4658 * frame.c (frame_register_unwind): New `unavailablep' parameter.
4659 Set it if the register is unavailable. If the register is
4660 unavailable, clear the output buffer.
4661 (frame_register): New `unavailablep' parameter. Pass it down.
4662 (frame_unwind_register): Adjust.
4663 (put_frame_register): Adjust.
4664 (frame_register_read): Adjust. Also return false if the register
4666 (frame_register_unwind_location): Adjust.
4667 * sentinel-frame.c (sentinel_frame_prev_register): If the register
4668 is unavailable, mark the value accordingly.
4669 * stack.c (frame_info): Handle unavailable registers.
4671 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4673 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
4674 simplify, using regcache_cooked_read.
4676 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4678 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
4679 (regcache_raw_read_unsigned, regcache_raw_read_signed)
4680 (regcache_raw_read_unsigned, regcache_raw_read_part)
4681 (regcache_cooked_read, regcache_cooked_read_signed)
4682 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
4683 (regcache_cooked_read_ftype): Change return to enum
4685 * regcache.c: Include exceptions.h
4686 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
4687 (do_cooked_read): Change return to enum register_status. Always
4688 forward to regcache_cooked_read.
4689 (regcache_raw_read): Change return to enum register_status. If
4690 the register is not REG_VALID, memset the buffer. Return the
4692 (regcache_raw_read_signed): Handle non-REG_VALID registers and
4693 return the register's status.
4694 (regcache_raw_read_unsigned): Ditto.
4695 (regcache_cooked_read): Change return to enum register_status.
4696 Assert that with read-only regcaches, the register's status must
4697 be known. If the regcache is read-only, and the register is not
4698 REG_VALID, memset the buffer. Return the register's status.
4699 (regcache_cooked_read_signed): Change return to enum
4700 register_status. Handle non-REG_VALID registers and return the
4702 (regcache_cooked_read_unsigned): Change return to enum
4703 register_status. Handle non-REG_VALID registers and return the
4705 (regcache_xfer_part, regcache_raw_read_part)
4706 (regcache_cooked_read_part): Change return to enum
4707 register_status. Return the register's status.
4708 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
4710 (regcache_dump): Handle unavailable cooked registers.
4711 * frame.c (do_frame_register_read): Adjust interface to match
4712 regcache_cooked_read_ftype.
4713 * gdbarch.sh (pseudo_register_read): Change return to enum
4715 * gdbarch.h, gdbarch.c: Regenerate.
4717 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
4719 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
4720 register_status. If reading a raw register indicates the raw
4721 register is not valid, return the raw register's status,
4722 otherwise, return REG_VALID.
4723 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
4724 register_status. Handle non-REG_VALID raw registers and return
4725 the register's status.
4726 * arm-tdep.c (arm_neon_quad_read)
4727 (arm_pseudo_read): Change return to enum register_status. Handle
4728 non-REG_VALID raw registers and return the register's status.
4729 * avr-tdep.c (avr_pseudo_register_read): Ditto.
4730 * frv-tdep.c (frv_pseudo_register_read): Ditto.
4731 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
4732 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
4733 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
4735 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
4736 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
4737 (m32c_part_write, m32c_cat_read, m32c_cat_write)
4738 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
4739 (m32c_pseudo_register_read): Change return to enum
4740 register_status. Adjust.
4741 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
4742 enum register_status. Return the register's status.
4743 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
4744 register_status. Return the register's status.
4745 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
4746 * mips-tdep.c (mips_pseudo_register_read): Ditto.
4747 * mt-tdep.c (mt_pseudo_register_read): Ditto.
4748 * rs6000-tdep.c (move_ev_register_func): New typedef.
4749 (e500_move_ev_register): Use it. Change return to enum
4750 register_status. Return the register's status.
4751 (do_regcache_raw_read): New function.
4752 (do_regcache_raw_write): New function.
4753 (e500_pseudo_register_read): Change return to enum
4754 register_status. Return the register's status. Use
4755 do_regcache_raw_read.
4756 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
4757 (dfp_pseudo_register_read): Change return to enum register_status.
4758 Return the register's status.
4759 (vsx_pseudo_register_read): Ditto.
4760 (efpr_pseudo_register_read): Ditto.
4761 (rs6000_pseudo_register_read): Ditto.
4762 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
4763 register_status. Return the register's status.
4764 * sh64-tdep.c (pseudo_register_read_portions): New function.
4765 (sh64_pseudo_register_read): Change return to enum
4766 register_status. Use pseudo_register_read_portions. Return the
4768 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
4769 register_status. Return the register's status.
4770 * sh-tdep.c (pseudo_register_read_portions): New function.
4771 (sh_pseudo_register_read): Change return to enum register_status.
4772 Use pseudo_register_read_portions. Return the register's status.
4773 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
4774 enum register_status. Return the register's status.
4775 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
4776 * spu-tdep.c (spu_pseudo_register_read_spu)
4777 (spu_pseudo_register_read): Ditto.
4778 * xtensa-tdep.c (xtensa_register_read_masked)
4779 (xtensa_pseudo_register_read): Ditto.
4780 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
4782 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4784 * python/py-value.c (valpy_getitem): Fix formatting of error function
4787 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4789 ARI fixes: Add missing internationalization markups throughout
4791 * darwin-nat-info.c: Ditto.
4794 * mi/mi-main.c: Ditto.
4796 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4798 ARI fixes: Add missing internationalization markups throughout
4801 * cp-name-parser.y: Ditto.
4804 * objc-exp.y: Ditto.
4807 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4809 ARI fixes: Messages should have no trailing new lines.
4810 * darwin-nat.c (mach_check_error): Remove trailing new line from
4811 warning function call message.
4812 * record.c (bfdcore_read): Idem for error call.
4814 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4816 * common/signals.c (target_signal_from_host): Add _ markup to error
4817 function call message.
4818 (target_signal_to_host): Add _ markup and remove trailing new line
4819 from warning call message.
4820 (target_signal_from_command): Add _ markup to error function call
4823 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
4827 * python/python.c (gdbpy_write): Accept a stream argument and
4828 operate to the appropriate stream.
4829 (gdbpy_flush): Likewise.
4830 (_initialize_python): Add stream constants.
4831 (finish_python_initialization): Add GdbOutputErrorFile class.
4833 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4835 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4837 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4839 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
4840 to store_signed_integer. Add debug message when relocating CALL
4841 instructions. Fix formatting of debug message.
4842 * i386-tdep.c (i386_relocate_instruction): Ditto.
4844 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4846 * target.h (struct target_ops): Remove to_lookup_symbol field.
4847 (target_lookup_symbol): Delete macro.
4848 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
4849 (update_current_target, setup_target_debug): Remove handling
4850 of to_lookup_symbol target_ops field.
4851 * ada-tasks.c (get_known_tasks_addr): Remove use of
4852 target_lookup_symbol.
4853 * coffread.c (coff_symtab_read): Likewise.
4854 * dbxread.c (read_dbx_symtab): Ditto.
4856 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4859 * configure.ac: Add getthrds declaration check.
4860 * configure, config.in: Regenerate.
4861 * aix-thread.c (getthrds): Declare only if not already declared
4862 in procinfo.h. More declaration out of get_signaled_thread to
4865 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
4867 * python/py-symtab.c: Populate symtab_object_methods,
4869 (stpy_is_valid): New function.
4870 (salpy_is_valid): Ditto.
4871 * python/py-symbol.c: Declare symbol_object_methods. Populate.
4872 (sympy_is_valid): New function.
4873 * python/py-objfile.c: Declare objfile_object_methods. Populate.
4874 (objfpy_is_valid): New function.
4875 * python/py-inferior.c: Populate inferior_object_methods.
4876 (infpy_is_valid): New function.
4877 * python/py-infthread.c: Populate thread_object_methods.
4878 (thpy_is_valid): New function.
4879 * python/py-block.c: Declare block_object_methods. Populate. Declare
4880 block_iterator_object_methods. Populate.
4881 (blpy_is_valid): New function.
4882 (blpy_iter_is_valid): Ditto.
4884 2011-03-16 Keith Seitz <keiths@redhat.com>
4886 * linespec.c (find_methods): Canonicalize NAME before looking
4888 (name_end): New function.
4889 (keep_name_info): New function.
4890 (decode_line_1): Use keep_name_info.
4891 (decode_compound): Likewise.
4892 * cli/cli-utils.h (remove_trailing_whitespace): New function.
4893 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
4896 * linespec.c (locate_first_half): Keep overload information, too.
4897 (decode_compound): Use a string to represent break characters
4899 If P points to a break character, do not increment it.
4900 For C++ and Java, keep overload information and relevant keywords.
4901 If we cannot find a symbol, search the minimal symbols.
4904 * linespec.c (decode_compound): Rename SAVED_ARG to
4906 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
4908 Pass a valid block to lookup_symbol.
4909 (lookup_prefix_sym): Likewise.
4910 (find_method): Construct search name based on SYM_CLASS instead
4912 * psymtab.c (lookup_partial_symbol): Add language parameter.
4913 (lookup_symbol_aux_psymtabs): Likewise.
4914 Don't assume that the psymtab we found was the right one. Search
4915 for the desired symbol in the symtab to be certain.
4916 (psymtab_search_name): New function.
4917 (lookup_partial_symbol): Use psymtab_search_name.
4918 Add language parameter.
4919 (read_symtabs_for_function): Add language parameter and pass to
4920 lookup_partial_symbol.
4921 (find_symbol_file_from_partial): Likewise.
4923 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
4926 * dwarf2read.c (noop_record_line): New function.
4927 (dwarf_decode_lines): Ignore line tables for GCd functions.
4929 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4931 Fix ARI warnings about new lines at the end of messages, which
4932 are unneeded as there is a new line added at the end of the message
4934 * darwin-nat.c (darwin_stop_inferior): Ditto.
4935 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
4936 * dfp.c (decimal_to_number): Ditto.
4937 * exec.c (print_section_info): Ditto.
4938 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
4939 * osdata.c (get_osdata): Ditto.
4940 * record.c (bfdcore_write): Ditto.
4941 * remote-mips.c (mips_readchar): Ditto.
4942 * remote.c (read_ptid): Ditto.
4943 * ser-mingw.c (ser_windows_raw): Ditto.
4944 * tracepoint.c (add_local_symbols): Ditto.
4945 * windows-nat.c (fake_create_process): Ditto.
4947 2011-03-16 Tom Tromey <tromey@redhat.com>
4949 * tracepoint.c (stop_tracing): Don't declare.
4950 * event-top.c (after_char_processing_hook): Add `(void)'.
4952 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
4954 * NEWS: Add Parameter sub-classing description.
4956 2011-03-16 Kai Tietz <ktietz@redhat.com>
4958 * MAINTAINERS: Update my e-mail address.
4960 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
4962 * MAINTAINERS: Add myself for write after approval privileges.
4964 2011-03-15 Michael Snyder <msnyder@vmware.com>
4966 * frame.c (find_frame_sal): Assert sym is not null.
4968 * dbxread.c (process_one_symbol): Assert 'name' is not null.
4970 * objc-lang.c (selectors_info): Check strchr for null result.
4972 * stabsread.c (define_symbol): Guard against bad stabstring input.
4974 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4976 Remove trailing spaces and tabulations from pascal language
4981 p-valprint.c: Ditto.
4983 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4985 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
4986 than LOW. Comment it.
4987 (read_partial_die): Call complaint for inappropriate zero LOWPC or
4988 HIGHPC not strictly higher than LOWPC.
4990 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4992 Fix formatting of function declarations returning a pointer in
4994 * varobj.c (varobj_add_child): Ditto.
4995 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
4996 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
4998 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5000 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5001 for the "generic" vector ABI used with GCC 4.3 and later.
5002 (ppc64_sysv_abi_return_value): Likewise.
5004 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5006 * infcall.c (call_function_by_hand): Function return value is
5007 always a non_lval, even when using struct_return.
5009 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5011 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5012 (map_display_numbers): New.
5013 (do_delete_display): New.
5014 (undisplay_command): Use map_display_numbers.
5015 (do_enable_disable_display): New.
5016 (enable_disable_display_command): New function.
5017 (enable_display): Delete.
5018 (enable_display_command): New.
5019 (disable_display_command): Reimplement.
5020 (_initialize_printcmd): Adjust "enable display" command to use
5021 `enable_display_command' as callback.
5023 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5025 * NEWS: Add Python breakpoint 'stop' operation.
5027 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5029 * NEWS: Delete duplicate entry. Fix typo.
5031 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5033 Fix ARI warning about function names in first column.
5034 Put prototype declaration on same line as return type.
5035 * objc-exp.y: Ditto.
5037 * python/py-stopevent.h: Ditto.
5038 For long function names, split parameters to
5039 allow function name on same line as return type.
5040 * solib-pa64.c: Ditto.
5043 For long function declaration, use single line.
5044 * hppa-tdep.h: Ditto.
5045 * inferior.h: Ditto.
5047 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5049 * python/python.h: Declare gdbpy_should_stop and
5050 gdbpy_breakpoint_has_py_cond.
5051 * python/python.c: Add python.h to includes. Remove python.h from
5052 HAVE_PYTHON definition
5053 (gdbpy_should_stop): New dummy function.
5054 (gdbpy_breakpoint_has_py_cond): New dummy function.
5055 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5056 sub-classing capabilities.
5057 (gdbpy_should_stop): New function.
5058 (gdbpy_breakpoint_has_py_cond): New function.
5059 (local_setattro): New function.
5060 * breakpoint.c (condition_command): Add check for Python 'stop'
5062 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5063 operation function as part of stop/continue tests.
5065 2011-03-14 Tom Tromey <tromey@redhat.com>
5068 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5069 (needs_frame_dwarf_call): Likewise.
5071 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5073 Fix ARI warning about functions without parameters that do not
5075 * breakpoint.c (all_tracepoints): Replace () by (void).
5076 * f-exp.y (match_string_literal): Ditto.
5078 * m2-exp.y (yylex): Ditto.
5079 * mep-tdep.c (current_me_module): Ditto.
5080 (current_options): Ditto.
5081 (current_cop_data_bus_width): Ditto.
5082 (current_cr_names): Ditto.
5083 (current_cr_is_float): Ditto.
5084 (current_ccr_names): Ditto.
5085 * objc-exp.y (yylex): Ditto.
5086 * p-exp.y (yylex): Ditto.
5087 * remote.c (send_interrupt_sequence): Ditto.
5088 * tracepoint.c (current_trace_status): Ditto.
5089 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5090 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5092 2011-03-11 Michael Snyder <msnyder@vmware.com>
5094 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5095 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5096 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5097 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5098 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5100 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5101 (delete_async_event_handler): Ditto.
5103 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5105 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5107 * top.c (set_verbose): Assert showcmd was found.
5109 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5111 * xtensa-tdep.c (warning_once): Correct style issues.
5113 2011-03-11 Yao Qi <yao@codesourcery.com>
5115 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5117 2011-03-11 Andreas Schwab <schwab@redhat.com>
5119 * common/aclocal.m4: Remove.
5121 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5123 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5124 (xtensa_write_register, xtensa_read_register): Likewise.
5125 (xtensa_hextochar): Removed.
5126 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5128 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5130 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5131 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5132 (xtensa_alloc_frame_cache): Add initialization for new fields.
5133 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5134 (warning_once): New function.
5135 (xtensa_insn_kind): New item c0opc_and.
5136 (call0_classify_opcode): Add the case for AND instruction.
5137 (call0_track_op): Change arguments. New local variable litbase.
5138 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5139 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5141 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5142 (call0_analyze_prologue): Update the comments. Change arguments.
5143 Add the variety of updates to handle extended prologues, which now can
5144 conduct dynamic stack adjustments.
5145 (call0_frame_cache): Likewise.
5146 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5147 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5149 2011-03-10 Michael Snyder <msnyder@vmware.com>
5151 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5152 (cmd_qtframe): Ditto.
5153 (cmd_qtbuffer): Ditto.
5154 (cmd_bigqtbuffer): Ditto.
5156 2011-03-10 Tom Tromey <tromey@redhat.com>
5158 * tracepoint.c (trace_actions_command): Update.
5159 * thread.c (thread_apply_command): Update.
5160 * reverse.c (delete_bookmark_command): Update.
5161 (bookmarks_info): Update.
5162 * printcmd.c (undisplay_command): Update.
5163 * memattr.c (mem_enable_command): Update.
5164 (mem_disable_command): Update.
5165 (mem_delete_command): Update.
5166 * inferior.c (detach_inferior_command): Update.
5167 (kill_inferior_command): Update.
5168 (remove_inferior_command): Update.
5169 * cli/cli-utils.h (struct get_number_or_range_state): New.
5170 (init_number_or_range): Declare.
5171 (get_number_or_range): Update.
5172 * cli/cli-utils.c (init_number_or_range): New function.
5173 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5175 (number_is_in_list): Update.
5176 * breakpoint.h (get_tracepoint_by_number): Update.
5177 * breakpoint.c (map_breakpoint_numbers): Update for change to
5178 get_number_or_range.
5179 (find_location_by_number): Use get_number, not
5180 get_number_or_range.
5181 (trace_pass_set_count): New function.
5182 (trace_pass_command): Update for change to get_number_or_range.
5184 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5187 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5189 * python/py-param.c (add_setshow_generic): Add set/show callback
5190 parameters. Register Python object context.
5191 (get_show_value): New function.
5192 (get_set_value): New function.
5193 (call_doc_function): New function.
5194 (get_doc_string): Move behind get_show_value/get_set_value.
5196 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5198 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5200 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5202 * xtensa-tdep.c (xtensa_read_register): Add comment.
5203 (xtensa_write_register): Likewise.
5204 (xtensa_hextochar): Add comment and update to match coding conventions.
5205 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5206 (execute_l32e, execute_s32e, execute_code): Update comments.
5207 (xtensa_exception_handler_t): Update to match coding conventions.
5208 (xtensa_insn_kind): Likewise.
5210 2011-03-09 Michael Snyder <msnyder@vmware.com>
5212 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5214 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5216 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5218 2011-03-09 Tom Tromey <tromey@redhat.com>
5220 * thread.c (restore_selected_frame): Handle frame_level == -1.
5221 (make_cleanup_restore_current_thread): Use
5222 get_selected_frame_if_set.
5223 * frame.h (get_selected_frame_if_set): Declare.
5224 * frame.c (get_selected_frame_if_set): New function.
5226 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5228 * cli/cli-cmds.c (shell_escape): Use lbasename.
5229 * coffread.c (coff_start_symtab): Constify parameter.
5230 (complete_symtab): Constify `name' parameter.
5231 (coff_symtab_read): Constify `filestring' local.
5232 (coff_getfilename): Constify return and `result' local.
5234 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5235 * linux-fork.c (info_checkpoints_command): Use lbasename.
5236 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5237 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5238 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5239 * procfs.c (procfs_make_note_section): Use lbasename.
5240 * tui/tui-io.c (printable_part): Constity return and parameter.
5242 (print_filename): Constify parameters, and local `s'.
5243 (tui_rl_display_match_list): Constify local `temp'.
5245 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5248 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5249 Fix DWARF-3+ DW_AT_accessibility default assumption.
5250 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5251 cu->header.version >= 3.
5253 2011-03-09 Yao Qi <yao@codesourcery.com>
5255 * common/Makefile.in: Remove.
5256 * common/configure: Remove.
5257 * common/configure.ac: Remove.
5259 2011-03-09 Yao Qi <yao@codesourcery.com>
5262 2011-02-11 Yao Qi <yao@codesourcery.com>
5264 * common/Makefile.in: Add copyright header.
5266 2011-02-11 Yao Qi <yao@codesourcery.com>
5268 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5270 * configure.ac: Add common to sub dir.
5271 * configure: Regenerate.
5273 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5275 * xtensa-tdep.c (call0_ret): New function.
5276 (xtensa_skip_prologue): Speed up analysis.
5278 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5280 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5281 while executing MI command -data-list-changed-registers.
5283 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5285 * xtensa-tdep.c (xtensa_read_register): New function.
5286 (xtensa_write_register): New function.
5287 (xtensa_find_register_by_name): New function.
5288 (xtensa_windowed_frame_cache): Update comments in type description.
5289 (xtensa_frame_cache): Likewise.
5290 (xtensa_window_interrupt_insn): New function.
5291 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5292 (xtensa_insn_kind): Add new instructions.
5293 (rwx_special_register): New function.
5294 (call0_classify_opcode): Add new instructions to the analysis.
5295 (a0_saved, a7_saved, a11_saved): New variables.
5296 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5297 (execute_l32e): New function.
5298 (execute_s32e): New function.
5299 (xtensa_exception_handler_t): New type.
5300 (execute_code): New function.
5301 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5302 analysis for Xtensa Window Exception handlers.
5304 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5306 * xtensa-tdep.c (TX_PS): New.
5307 (windowing_enabled): Update to count for Call0 ABI.
5308 (xtensa_hextochar): New.
5309 (xtensa_init_reggroups): Make algorithm generic.
5310 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5312 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5314 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5316 2011-03-08 Michael Snyder <msnyder@vmware.com>
5318 * i386-tdep.c (i386_follow_jump): Check return value of
5320 (i386_analyze_struct_return): Ditto.
5321 (i386_skip_probe): Ditto.
5322 (i386_match_insn): Ditto.
5323 (i386_skip_noop): Ditto.
5324 (i386_analyze_frame_setup): Ditto.
5325 (i386_analyze_register_saves): Ditto.
5326 (i386_skip_prologue): Ditto.
5327 (i386_skip_main_prologue): Ditto.
5329 * target.c (read_whatever_is_readable): Fix memory leak.
5331 * i386-tdep.c (i386_process_record): Document fall through.
5333 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5335 Fix DWARF-3+ DW_AT_accessibility default assumption.
5336 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5337 cu->header.version >= 3.
5339 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5341 * remote.c (remote_check_symbols): Skip if the target has no
5344 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5346 * target.c (read_whatever_is_readable): Reformat comment,
5347 with a minor typo fix. Minor reformatting of the code.
5349 2011-03-08 Yao Qi <yao@codesourcery.com>
5351 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5352 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5353 Use cached result instead of calling displaced_in_arm_mode again.
5354 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5355 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5356 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5357 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5358 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5359 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5360 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5361 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5362 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5363 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5364 (arm_catch_kernel_helper_return): Likewise.
5365 * gdb/arm-tdep.h : Update function declarations.
5367 2011-03-07 Michael Snyder <msnyder@vmware.com>
5369 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5371 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5373 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5375 * elfread.c (elf_symtab_read): Stop memory leak.
5377 * main.c (captured_main): Fix memory leak.
5379 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5381 * ada-lang.c (compare_names): Call is_name_suffix with string1
5384 2011-03-07 Tom Tromey <tromey@redhat.com>
5386 * xcoffread.c (xcoff_sym_fns): Update.
5387 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5388 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5389 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5390 (symbol_file_add_with_addrs_or_offsets): Likewise.
5391 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5392 * somread.c (som_sym_fns): Update.
5393 * psymtab.h (require_partial_symbols): Declare.
5394 * psymtab.c (require_partial_symbols): New function.
5395 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5396 (ALL_OBJFILE_PSYMTABS): Undef.
5397 (ALL_PSYMTABS): Move from psympriv.h.
5398 (lookup_partial_symtab, find_pc_sect_psymtab)
5399 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5400 (find_last_source_symtab_from_partial)
5401 (forget_cached_source_info_partial)
5402 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5403 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5404 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5405 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5406 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5407 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5408 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5409 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5410 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5412 * mipsread.c (ecoff_sym_fns): Update.
5413 * machoread.c (macho_sym_fns): Update.
5414 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5415 (read_psyms): New function.
5416 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5417 (elf_sym_fns_lazy_psyms): New global.
5418 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5419 dwarf2_build_psymtabs.
5420 * dbxread.c (aout_sym_fns): Update.
5421 * coffread.c (coff_sym_fns): Update.
5423 2011-03-07 Tom Tromey <tromey@redhat.com>
5425 * infrun.c (print_exited_reason): Include inferior id and pid in
5428 2011-03-07 Tom Tromey <tromey@redhat.com>
5430 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5432 (target_has_execution_1): Update.
5433 (target_has_execution_current): Declare.
5434 (target_has_execution): Call target_has_execution_current.
5435 (default_child_has_execution): Update.
5436 * target.c (default_child_has_execution): Add 'the_ptid'
5438 (target_has_execution_1): Likewise.
5439 (target_has_execution_current): New function.
5440 (add_target): Update.
5441 (init_dummy_target): Update.
5442 * remote-m32r-sdi.c (m32r_has_execution): New function.
5443 (init_m32r_ops): Use it.
5444 * record.c (record_core_has_execution): Now static. Add
5445 'the_ptid' parameter.
5446 * inferior.c (have_live_inferiors): Don't save current thread.
5447 Use target_has_execution_1.
5449 2011-03-07 Yao Qi <yao@codesourcery.com>
5451 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5453 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5455 * elfread.c (elf_symtab_read): Minor reformatting.
5457 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5459 * objc-lang.c (selectors_info): Minor reformatting.
5461 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5463 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5465 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5466 Michael Snyder <msnyder@vmware.com>
5468 * ada-valprint.c (ada_val_print_array): Move the declaration of
5469 "byte_order" and "elttype" inside the block where these variables
5470 are actually used. Remove some special handling for the case
5471 where "elttype" and "eltlen" are null. Replace by a comment
5472 and a couple of assertion checks.
5474 2011-03-05 Michael Snyder <msnyder@vmware.com>
5476 * source.c (add_path): Replace semicolon at end of block.
5477 * dwarf2expr.c (execute_stack_op): Ditto.
5479 2011-03-05 Mike Frysinger <vapier@gentoo.org>
5481 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5482 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5483 (bfin-*-*): Likewise.
5485 2011-03-05 Michael Snyder <msnyder@vmware.com>
5487 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5488 * mdebugread.c (parse_symbol): Ditto.
5489 * parse.c (parse_exp_in_context): Ditto.
5490 * source.c (add_path): Ditto.
5491 * utils.c (gnu_debuglink_crc32): Ditto.
5492 * varobj.c (variable_language): Ditto.
5494 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5496 2011-03-04 Michael Snyder <msnyder@vmware.com>
5498 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5500 * symfile.c (simple_overlay_update): Check for null return value
5501 from lookup_minimal_symbol.
5503 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5505 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5507 * eval.c (parse_and_eval_address_1): Remove function.
5508 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5509 instead of parse_and_eval_address_1.
5510 * value.h (parse_and_eval_address_1): Remove prototype.
5512 2011-03-04 Michael Snyder <msnyder@vmware.com>
5514 * remote.c (putpkt_binary): Document that case stmt falls through.
5516 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5518 * breakpointc (print_it_typical): Move NULL check from here...
5519 (print_bp_stop_message): ... to here.
5521 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
5523 * breakpoint.c (enable_command): Use break instead of continue,
5524 and fill in a missing break.
5525 (disable_command): Ditto.
5527 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5529 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5530 (terminal_save_ours): Remove misleading comment.
5531 (inflow_inferior_data_cleanup): Free ttystate.
5532 (inflow_inferior_exit): Likewise.
5533 (copy_terminal_info): Copy ttystate.
5535 * serial.c (serial_copy_tty_state): New function.
5536 * serial.h (serial_copy_tty_state): Add prototype.
5537 (struct serial_ops): Add copy_tty_state callback.
5538 * ser-base.c (ser_base_copy_tty_state): New function.
5539 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5540 * ser-go32.c (dos_copy_tty_state): New function.
5541 (dos_ops): Install copy_tty_state callback.
5542 * ser-mingw.c (_initialize_ser_windows): Likewise.
5543 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5544 * ser-unix.c (hardwire_copy_tty_state): New function.
5545 (_initialize_ser_hardwire): Install it.
5547 2011-03-04 Michael Snyder <msnyder@vmware.com>
5549 * breakpoint.c (create_breakpoint): Add missing break statement.
5551 Reverting this patch:
5552 * infcall.c (call_function_by_hand): Add break statements for lint.
5554 Reverting this patch:
5555 * cli/cli-script.c (script_from_file): Add break for lint.
5557 2011-03-04 Michael Snyder <msnyder@vmware.com>
5559 * solib.c (reload_shared_libraries_1): Close memory leak.
5561 2011-03-03 Tom Tromey <tromey@redhat.com>
5564 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5567 2011-03-03 Michael Snyder <msnyder@vmware.com>
5569 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5570 fields of struct 'st' to zero.
5572 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5573 sal.pspace before calling set_current_source_symtab_and_line.
5575 2011-03-03 Yao Qi <yao@codesourcery.com>
5577 * Makefile.in (configure-common): Remove. Let Makefile
5578 in dir common to rebuild itself.
5579 (common/Makefile): Likewise.
5581 2011-03-03 Joel Brobecker <brobecker@adacore.com>
5583 * utils.c (parse_escape): Add i18n markup in error message.
5585 2011-03-03 Yao Qi <yao@codesourcery.com>
5587 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5589 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5590 (displaced_write_reg, displaced_read_reg): Likewise.
5591 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5592 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5593 (cleanup_branch): Replace magic number 14 and 15 with
5594 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5596 2011-03-02 Michael Snyder <msnyder@vmware.com>
5598 * maint.c (maintenance_do_deprecate): No need to check for NULL.
5600 * cli/cli-script.c (script_from_file): Add break for lint.
5602 * mdebugread.c (parse_partial_symbols): Fix indent.
5604 * target-descriptions.c (tdesc_gdb_type): No need to call
5605 xstrdup, callee saves a copy.
5607 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
5609 * infcall.c (call_function_by_hand): Add break statements for lint.
5611 * utils.c (parse_escape): Escape the escape char.
5613 * python/py-inferior.c (build_inferior_list): Error out if
5614 PyList_Append fails.
5615 (gdbpy_inferiors): Error out if build_inferior_list fails.
5617 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
5620 * record.c (record_restore): Move printf to before error return.
5622 2011-03-02 Yao Qi <yao@codesourcery.com>
5624 * arm-tdep.h (struct displaced_step_closure): Add two new fields
5625 is_thumb and insn_size.
5626 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
5627 on both ARM and Thumb mode.
5628 (arm_process_displaced_insn): Set is_thumb and insn_size.
5629 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
5630 (arm_displaced_step_fixup): Likewise.
5632 2011-03-01 Michael Snyder <msnyder@vmware.com>
5634 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
5636 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
5638 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
5640 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
5642 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
5645 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
5646 which shadows function parameter.
5648 * tracepoint.c (create_tsv_from_upload): Superfluous call
5649 to xstrdup. Callee already calls xstrdup.
5651 * linespec.c (decode_line_1): Remove unnecessary null check.
5653 * tracepoint.c (scope_info): Fix mem leak, remove underused
5656 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
5657 superfluous null check.
5659 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
5660 (value_of_builtin_frame_fp_reg): Ditto.
5662 * event-top.c (display_gdb_prompt): Remove superfluous null check.
5664 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
5667 * linespec.c (decode_line_1): Check for null before dereference.
5669 * reverse.c (record_restore): Move null-check to before pointer
5672 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
5674 * objc-lang.c (selectors_info): Add explanitory comment.
5675 (classes_info): Ditto.
5677 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5679 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
5680 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
5681 versions of the trampoline. Handle Thumb vs. ARM addresses.
5682 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
5683 (arm_linux_init_abi): Install it.
5684 * arm-tdep.c (arm_psr_thumb_bit): Make global.
5685 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
5687 2011-02-28 Michael Snyder <msnyder@vmware.com>
5689 * ui-out.c (ui_out_field_core_addr): Make local char buffer
5690 a little bigger, to avoid possibility of an overflow.
5692 * breakpoint.c (breakpoint_adjustment_warning): Make local char
5693 buffers a little bigger, to avoid possibility of an overflow.
5695 * coffread.c (coff_getfilename): Add check to avoid overflow.
5697 * objc-lang.c (selectors_info): Add a small safety margin to
5699 (classes_info): Error out on too long REGEXP.
5701 * infrun.c (handle_inferior_event): Remove unused function call.
5703 * fork-child.c (fork_inferior): Remove ifdef'd code and
5706 * linux-thread-db.c (attach_thread): Discard unused value.
5708 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
5710 * remote.c (remote_get_noisy_reply): Discard unused value.
5711 (remote_vcont_resume): Ditto.
5712 (remote_stop_ns): Ditto.
5714 * linespec.c (decode_objc): Delete unused variable.
5716 * tui/tui-regs.c (tui_register_format): Delete unused variable.
5718 * dwarf2read.c (add_partial_symbol): Discard unused values.
5719 (read_base_type): Delete unused variable.
5721 * dbxread.c (read_dbx_symtab): Discard unused value.
5723 * eval.c (evaluate_subexp_standard): Delete unused variable,
5724 and discard unused values.
5726 * infcmd.c (_initialize_infcmd): Discard unused values.
5728 * stabsread.c (rs6000_builtin_type): Missing break statement.
5730 * dbxread.c (process_one_symbol): Discard unused value.
5732 * coffread.c (coff_end_symtab): Delete unused variable.
5734 * dwarf2read.c (dw2_get_file_names): Discard unused value.
5735 (dwarf2_add_typedef): Delete unused variable.
5736 (read_namespace): Ditto.
5737 (dwarf_decode_macros): Ditto.
5739 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
5741 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
5743 * p-valprint.c (pascal_val_print): Discard unused value.
5745 * utils.c (nquery): Call va_end before return;
5749 * proc-service.c (ps_plog): Call va_end before return.
5751 2011-02-28 Tom Tromey <tromey@redhat.com>
5753 * python/python.c (gdbpy_value_cst): New global.
5754 (_initialize_python): Initialize it.
5755 * python/python-internal.h (gdbpy_value_cst): Declare.
5756 * python/py-value.c (convert_value_from_python): Use
5759 2011-02-28 Michael Snyder <msnyder@vmware.com>
5761 * python/py-cmd.c (cmdpy_init): Fix memory leak.
5763 * breakpoint.c (catch_syscall_completer): Free malloced list.
5765 * jv-lang.c (java_primitive_type_from_name): Add missing break.
5767 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
5768 (lval_func_check_synthetic_pointer): Ditto.
5769 (lval_func_free_closure): Fix use-after-free.
5771 2011-02-28 Tom Tromey <tromey@redhat.com>
5773 * psymtab.c (expand_partial_symbol_tables): Use
5774 ALL_OBJFILE_PSYMTABS.
5776 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5778 * objc-lang.c (selectors_info): Error on too long REGEXP.
5780 2011-02-28 Michael Snyder <msnyder@vmware.com>
5782 * python/py-param.c (set_parameter_value): Add missing
5785 * linux-record.c (record_linux_system_call): Add missing
5788 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5790 * breakpoint.c (print_one_breakpoint_location): Remove unused
5791 argument PRINT_ADDRESS_BITS. Update callers.
5792 (print_one_breakpoint): Likewise.
5794 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5796 * breakpoint.c (wrap_indent_at_field): New function.
5797 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
5798 Allocate ui_stream locally instead of using STB argument.
5799 (print_one_breakpoint_location): Update call.
5800 * ui-out.c (ui_out_query_field): New function.
5801 * ui-out.h (ui_out_query_field): Add prototype.
5803 2011-02-28 Joel Brobecker <brobecker@adacore.com>
5805 From Michael Snyder <msnyder@vmware.com>
5806 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
5808 2011-02-27 Michael Snyder <msnyder@vmware.com>
5810 * objc-lang.c (selectors_info): Prevent string overrun.
5812 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
5815 * symtab.c (rbreak_command): Move variable 'file_name' to
5818 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
5819 param with a local variable of the same name.
5821 2011-02-27 Michael Snyder <msnyder@vmware.com>
5823 * value.c (value_from_history_ref): New function.
5824 * value.h (value_from_history_ref): Export.
5825 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
5826 to parse value history references.
5827 * cli/cli-utils.h (get_number_trailer): Update comment.
5829 2011-02-27 Michael Snyder <msnyder@vmware.com>
5831 * inferior.c (detach_inferior_command): Use get_number_or_range.
5832 (kill_inferior_command): Ditto.
5833 (remove_inferior_command): Ditto.
5834 (initialize_inferiors): Make command names plural.
5835 Update help strings.
5837 2011-02-27 Michael Snyder <msnyder@vmware.com>
5839 * darwin-nat-info.c: Fix comment typo.
5840 * dwarf2expr.h: Ditto.
5841 * fbsd-nat.c: Ditto.
5842 * fbsd-nat.h: Ditto.
5843 * frame-unwind.h: Ditto.
5845 * hppa-hpux-tdep.c: Ditto.
5846 * i386-linux-nat.c: Ditto.
5847 * linux-nat.c: Ditto.
5848 * nbsd-nat.c: Ditto.
5849 * nbsd-nat.h: Ditto.
5850 * ppc-linux-tdep.c: Ditto.
5853 * tui/tui-winsource.c: Ditto.
5855 2011-02-26 Michael Snyder <msnyder@vmware.com>
5857 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
5859 * maint.c (maintenance_do_deprecate): Plug a memory leak.
5861 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
5862 with a local variable of the same name.
5864 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
5865 param with a local variable of the same name.
5866 (i387_supply_xsave): Ditto.
5868 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
5869 that it does not shadow a function parameter.
5871 * i386-nat.c (i386_length_and_rw_bits): Document that case
5872 statement is meant to fall through.
5874 * expprint.c (dump_subexp_body_standard): Document that case
5875 statement is meant to fall through.
5877 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
5878 dead if statement. Condition can't be false.
5880 2011-02-25 Michael Snyder <msnyder@vmware.com>
5882 * arm-tdep.c: Fix typos in comments.
5883 * bsd-uthread.c: Ditto.
5884 * completer.c: Ditto.
5886 * cp-namespace.c: Ditto.
5887 * cp-support.c: Ditto.
5888 * cris-tdep.c: Ditto.
5890 * dwarf2read.c: Ditto.
5892 * gdbtypes.h: Ditto.
5893 * inferior.h: Ditto.
5894 * mdebugread.c: Ditto.
5895 * mips-tdep.c: Ditto.
5896 * ppc-linux-nat.c: Ditto.
5897 * ppc-linux-tdep.c: Ditto.
5898 * printcmd.c: Ditto.
5899 * sol-thread.c: Ditto.
5900 * solib-frv.c: Ditto.
5902 * sparc64-tdep.c: Ditto.
5903 * spu-tdep.c: Ditto.
5904 * stabsread.c: Ditto.
5909 * python/py-block.c: Ditto.
5910 * python/py-symbol.c: Ditto.
5911 * python/py-symtab.c: Ditto.
5912 * python/py-value.c: Ditto.
5913 * tui/tui-win.c: Ditto.
5915 2011-02-25 Michael Snyder <msnyder@vmware.com>
5917 * inferior.c (print_inferior): Accept a string instead of an int
5918 for requested_inferiors, and use get_number_or_range to parse it.
5919 (info_inferiors_command): Pass args string to print_inferior.
5920 (initialize_inferiors): Change help string for info inferiors.
5921 * inferior.h (print_inferior): Export prototype change.
5923 2011-02-25 Tom Tromey <tromey@redhat.com>
5925 * common/ax.def (invalid2): Set to 0x31.
5927 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5929 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
5931 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
5933 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
5935 2011-02-24 Michael Snyder <msnyder@vmware.com>
5937 * Makefile.in (clean): Make clean should remove generated files
5938 observer.h and observer.inc.
5940 2011-02-24 Joel Brobecker <brobecker@adacore.com>
5942 Revert the following patch (not approved yet):
5943 2011-02-21 Hui Zhu <teawater@gmail.com>
5944 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5945 * ax-gdb.c (gen_printf_expr_callback): New function.
5946 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5947 * ax-general.c (ax_memcpy): New function.
5948 (ax_print): Handle "printf".
5950 * ax.h (ax_memcpy): Forward declare.
5951 * common/ax.def (invalid2): Removed.
5952 (printf): New entry.
5953 * printcmd.c (printcmd.h): New include.
5954 (string_printf): New function.
5955 (ui_printf): Removed.
5956 (printf_command): Remove static. Call string_printf.
5957 (eval_command): Call string_printf.
5958 * printcmd.h: New file.
5959 * tracepoint.c (validate_actionline,
5960 encode_actions_1): handle printf_command.
5962 2011-02-23 Tom Tromey <tromey@redhat.com>
5964 * ax-general.c (ax_pick): Add missing newline.
5966 2011-02-23 Michael Snyder <msnyder@vmware.com>
5968 * breakpoint.c (breakpoint_1): Change first argument from an int
5969 to a char pointer, so that the function now accepts a list of
5970 breakpoints rather than just one. Use new function
5971 'number_is_in_list' to implement.
5972 (breakpoints_info): Pass char * instead of int to breakpoint_1.
5973 (watchpoints_info): Ditto.
5974 (tracepoints_info): Ditto.
5975 (maintenance_info_breakpoints): Ditto.
5976 (_initialize_breakpoint): Update help strings to reflect the fact
5977 that these functions can now take more than one argument.
5978 * cli/cli-utils.c (number_is_in_list): New function.
5979 * cli/cli-utils.h (number_is_in_list): Export.
5981 2011-02-23 Michael Snyder <msnyder@vmware.com>
5983 * memattr.c (mem_enable_command): Use get_number_or_range.
5984 (mem_disable_command): Ditto.
5985 (mem_delete_command): Ditto.
5986 (_initialize_mem): Tweak usage message to reflect multiple
5989 2011-02-22 Doug Evans <dje@google.com>
5991 Add gdb.lookup_global_symbol python function.
5993 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
5994 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
5995 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
5997 2011-02-22 Tom Tromey <tromey@redhat.com>
5999 * language.c (language_class_name_from_physname): Rename
6000 'curr_language' argument to 'lang'; use in body.
6002 2011-02-22 Michael Snyder <msnyder@vmware.com>
6004 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6006 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6008 * frame-unwind.h: Fix comment to mention the this frame, not the
6011 2011-02-22 Tom Tromey <tromey@redhat.com>
6013 * symfile.c (auto_solib_limit): Remove.
6014 * symfile.h (auto_solib_limit): Remove.
6016 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6018 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6020 2011-02-21 Michael Snyder <msnyder@vmware.com>
6022 * gdbthread.h (print_thread_info): Change prototype.
6023 * thread.c (print_thread_info): Accept char* instead of int for
6024 requested_threads argument. Use new function number_is_in_list
6025 to determine which threads to list.
6026 (info_threads_command): Pass char* to print_thread_info.
6027 * cli/cli-utils.c (number_is_in_list): New function.
6028 * cli/cli-utils.h (number_is_in_list): Export.
6029 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6031 (print_one_inferior): Ditto.
6032 (mi_cmd_list_thread_groups): Ditto.
6034 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6036 * common/Makefile.in (CFLAGS): New.
6037 (COMPILE): Add $(CFLAGS).
6039 2011-02-21 Tom Tromey <tromey@redhat.com>
6041 * breakpoint.c (catch_syscall_command_1): Fix typo.
6043 2011-02-21 Tom Tromey <tromey@redhat.com>
6045 * reverse.c: Include cli-utils.h.
6046 * printcmd.c: Include cli-utils.h.
6047 (string_printf): Use skip_spaces.
6048 * cli/cli-utils.h: New file.
6049 * cli/cli-utils.c: New file.
6050 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6051 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6052 * breakpoint.h (get_number, get_number_or_range): Move to
6054 * breakpoint.c: Include cli-utils.h.
6055 (get_number_trailer, get_number, get_number_or_range)
6056 (ep_skip_leading_whitespace): Move to cli-utils.c.
6057 (create_breakpoint_sal, find_condition_and_thread)
6058 (decode_static_tracepoint_spec, watch_command_1)
6059 (watch_maybe_just_location, ep_parse_optional_if_clause)
6060 (catch_fork_command_1, catch_exec_command_1)
6061 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6062 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6063 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6064 (HFILES_NO_SRCDIR): Add cli-utils.h.
6065 (cli-utils.o): New target.
6067 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6069 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6070 before calling discard_all_inferiors.
6072 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6074 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6075 (struct builtin_opencl_type): Remove.
6076 (builtin_opencl_type): Change return type to "struct type **".
6077 (lookup_opencl_vector_type): Update caller.
6078 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6079 (build_opencl_types): Install plain array of "struct type *"
6080 instead of "struct builtin_opencl_type".
6082 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6083 Ulrich Weigand <uweigand@de.ibm.com>
6085 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6086 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6087 (struct arm_linux_hwbp_cap): New type.
6088 (arm_linux_get_hwbp_cap): New function.
6089 (arm_linux_get_hw_breakpoint_count): Likewise.
6090 (arm_linux_get_hw_watchpoint_count): Likewise.
6091 (arm_linux_can_use_hw_breakpoint): Likewise.
6092 (arm_hwbp_type): New type.
6093 (arm_hwbp_control_t): Likewise.
6094 (struct arm_linux_hw_breakpoint): Likewise.
6095 (struct arm_linux_thread_points): Likewise.
6096 (arm_threads): New global variable.
6097 (arm_linux_find_breakpoints_by_tid): New function.
6098 (arm_hwbp_control_initialize): Likewise.
6099 (arm_hwbp_control_is_enabled): Likewise.
6100 (arm_hwbp_control_disable): Likewise.
6101 (arm_linux_hw_breakpoint_initialize): Likewise.
6102 (arm_linux_get_hwbp_type): Likewise.
6103 (arm_linux_hw_watchpoint_initialize): Likewise.
6104 (arm_linux_hw_breakpoint_equal): Likewise.
6105 (arm_linux_insert_hw_breakpoint1): Likewise.
6106 (arm_linux_remove_hw_breakpoint1): Likewise.
6107 (arm_linux_insert_hw_breakpoint): Likewise.
6108 (arm_linux_remove_hw_breakpoint): Likewise.
6109 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6110 (arm_linux_insert_watchpoint): Likewise.
6111 (arm_linux_remove_watchpoint): Likewise.
6112 (arm_linux_stopped_data_address): Likewise.
6113 (arm_linux_stopped_by_watchpoint): Likewise.
6114 (arm_linux_watchpoint_addr_within_range): Likewise.
6115 (arm_linux_new_thread): Likewise.
6116 (arm_linux_thread_exit): Likewise.
6117 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6118 related target callbacks. Register arm_linux_new_thread and
6119 arm_linux_thread_exit.
6120 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6121 * arm-tdep.c (arm_pc_is_thumb): Make global.
6122 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6124 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6126 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6127 per-frame locations while within a function epilogue.
6129 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6131 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6132 to GNU coding standards.
6134 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6136 Allow use of mingw native on Windows 95 OS.
6137 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6138 (ser_windows_close): Only call CancelIo if function exists.
6139 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6140 to check for existence of CancelIo function in kernel32 DLL.
6142 2011-02-21 Hui Zhu <teawater@gmail.com>
6144 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6145 * ax-gdb.c (gen_printf_expr_callback): New function.
6146 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6147 * ax-general.c (ax_memcpy): New function.
6148 (ax_print): Handle "printf".
6150 * ax.h (ax_memcpy): Forward declare.
6151 * common/ax.def (invalid2): Removed.
6152 (printf): New entry.
6153 * printcmd.c (printcmd.h): New include.
6154 (string_printf): New function.
6155 (ui_printf): Removed.
6156 (printf_command): Remove static. Call string_printf.
6157 (eval_command): Call string_printf.
6158 * printcmd.h: New file.
6159 * tracepoint.c (validate_actionline,
6160 encode_actions_1): handle printf_command.
6162 2011-02-19 Michael Snyder <msnyder@vmware.com>
6164 * reverse.c (delete_one_bookmark): Argument is now bookmark
6165 id rather than pointer to bookmark struct.
6166 (delete_bookmark_command): Use get_number_or_range.
6167 (goto_bookmark_command): Parse with get_number instead of strtoul.
6168 (bookmark_1): New function. Print info for one bookmark.
6169 (bookmarks_info): Use get_number_or_range and bookmark_1.
6171 2011-02-18 Michael Snyder <msnyder@vmware.com>
6173 * thread.c (info_threads_command): Re-implement using
6174 get_number_or_range.
6175 (thread_apply_command): Ditto.
6177 2011-02-18 Tom Tromey <tromey@redhat.com>
6179 * common/ax.def: New file.
6180 * ax.h (enum agent_op): Use ax.def.
6181 * ax-general.c (aop_map): Use ax.def.
6183 2011-02-18 Tom Tromey <tromey@redhat.com>
6185 * ax-general.c (aop_map): Add pick and rot.
6186 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6187 <DW_OP_rot>: Implement.
6188 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6190 * ax-general.c (ax_pick): New function.
6192 2011-02-18 Tom Tromey <tromey@redhat.com>
6194 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6196 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6197 Tom Tromey <tromey@redhat.com>
6199 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6200 make_symbol_overload_list_block with NULL BLOCK.
6201 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6203 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6205 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6206 * breakpoint.h (get_number_or_range): Declare.
6207 * printcmd.c (ALL_DISPLAYS): Declare.
6208 (delete_display): Reimplement taking a display pointer.
6209 (undisplay_command): Accept a range of displays to delete, using
6210 get_number_or_range.
6212 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6214 * c-valprint.c (c_val_print): Add embedded_offset to address
6215 for arrays of unspecified length.
6216 * p-valprint.c (pascal_val_print): Likewise.
6218 2011-02-18 Yao Qi <yao@codesourcery.com>
6220 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6221 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6222 (thumb_process_displaced_insn): New.
6223 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6224 call to arm_process_displaced_insn.
6225 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6227 2011-02-17 Tom Tromey <tromey@redhat.com>
6229 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6230 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6231 compile_dwarf_to_ax. No longer static. Call
6232 dwarf2_compile_cfa_to_ax.
6233 (locexpr_tracepoint_var_ref): Update.
6234 (loclist_tracepoint_var_ref): Update.
6235 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6236 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6237 argument; add 'gdbarch' and 'pc'.
6238 (dwarf2_compile_cfa_to_ax): New function.
6239 (dwarf2_frame_cache): Update.
6241 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6243 * ada-lang.c (ada_type_of_array): Fix the size of the array
6244 in the case of an unconstrained packed array.
6246 2011-02-17 Yao Qi <yao@codesourcery.com>
6248 * common/Makefile.in: Add more targets for make.
6250 2011-02-16 Tom Tromey <tromey@redhat.com>
6252 * dwarf2loc.c (unimplemented): Fix typo.
6254 2011-02-16 Tom Tromey <tromey@redhat.com>
6256 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6257 (compile_dwarf_to_ax) <default>: Use unimplemented.
6258 <DW_OP_deref>: Update.
6259 (disassemble_dwarf_expression): Update.
6260 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6261 (decode_locdesc): Update.
6262 * dwarf2expr.h (dwarf_stack_op_name): Update.
6264 2011-02-16 Tom Tromey <tromey@redhat.com>
6266 * ax.h (struct aop_map) <name>: Now const.
6268 2011-02-16 Tom Tromey <tromey@redhat.com>
6270 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6273 2011-02-16 Yao Qi <yao@codesourcery.com>
6275 * infrun.c (get_displaced_step_closure_by_addr): New.
6276 * inferior.h: Declare it.
6277 * arm-tdep.c: (arm_pc_is_thumb): Call
6278 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6281 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6282 Jan Kratochvil <jan.kratochvil@redhat.com>
6285 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6287 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6288 Jan Kratochvil <jan.kratochvil@redhat.com>
6290 * value.c (value_contents_copy_raw): Extend describing comment.
6291 Assert that the destination contents we're overwriting are wholly
6293 (value_contents_copy): Extend describing comment.
6295 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6296 Jan Kratochvil <jan.kratochvil@redhat.com>
6298 * value.c (value_available_contents_eq): Remove redundant local
6299 variables. Fix available contents comparision.
6300 * value.h (value_available_contents_eq): Extend describing
6303 2011-02-16 Yao Qi <yao@codesourcery.com>
6305 * thread.c (info_threads_command): Add missing i18n markup and remove
6308 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6310 * breakpoint.c (longjmp_names): New variable.
6311 (struct breakpoint_objfile_data): New type.
6312 (breakpoint_objfile_key): New variable.
6313 (msym_not_found): New variable.
6314 (msym_not_found_p): New predicate.
6315 (get_breakpoint_objfile_data): New function.
6316 (create_overlay_event_breakpoint): Check per-objfile cache for
6318 (create_longjmp_master_breakpoint): Likewise.
6319 (create_std_terminate_master_breakpoint): Likewise.
6320 (create_exception_master_breakpoint): Likewise.
6321 (_initialize_breakpoint): Register per-objfile data key.
6323 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6325 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6327 (create_longjmp_master_breakpoint): Loop over longjmp names.
6328 (create_std_terminate_master_breakpoint): Const-propagate parameter
6330 (update_breakpoints_after_exec): Adjust.
6331 (breakpoint_re_set): Adjust.
6333 2011-02-15 Michael Snyder <msnyder@vmware.com>
6335 * thread.c (info_threads_command): Process arg as thread id,
6336 or list of thread ids.
6337 (thread_find_command): New command.
6338 (_initialize_thread): Document argument for info threads.
6339 Document 'thread find' command.
6340 * NEWS: Document new command "thread find".
6342 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6344 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6345 * aclocal.m4: Regenerated with aclocal-1.11.1.
6346 * common/configure: Regenerate with autoconf-2.64.
6348 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6350 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6351 bool data type to a size of one byte.
6353 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6354 Jan Kratochvil <jan.kratochvil@redhat.com>
6356 * target.c (memory_xfer_live_readonly_partial): Document where to
6357 look for interface description.
6359 2011-02-15 Yao Qi <yao@codesourcery.com>
6362 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6363 order to store PC value on stack instead of text section.
6365 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6367 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6368 the EFP register set size.
6369 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6370 data from the VMX register.
6371 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6372 and write data from/to the VMX register.
6374 2011-02-14 Michael Snyder <msnyder@vmware.com>
6376 * command.h (enum command_class): New class 'no_set_class', for
6377 "show" commands without a corresponding "set" command.
6378 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6379 * copying.c (_initialize_copying): Ditto for "show copying" and
6381 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6383 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6384 which there is no corresponding "set" command (eg. "show copying").
6386 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6387 Jan Kratochvil <jan.kratochvil@redhat.com>
6389 * exec.c (section_table_available_memory): Change `len' parameter
6391 * exec.h (section_table_available_memory): Ditto.
6392 * value.h (read_value_memory): Rename the `offset' parameter to
6395 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6396 Jan Kratochvil <jan.kratochvil@redhat.com>
6398 * memrange.c (compare_mem_ranges): Mention sort order in
6400 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6401 * tracepoint.c (traceframe_available_memory): Extend comment to
6402 mention what happens to RESULT when the target does not support
6405 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6406 Jan Kratochvil <jan.kratochvil@redhat.com>
6408 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6411 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6413 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6414 No longer handle NULL values.
6416 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6418 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6419 * value.c: Include "exceptions.h".
6420 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6422 * cp-abi.c: Include gdb_assert.h.
6423 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6424 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6426 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6427 parameters. No longer returns -1 on error.
6428 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6430 * cp-valprint.c: Include exceptions.h.
6431 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6432 the baseclass_offset. Handle unavailable base classes. Use
6433 val_print_invalid_address.
6434 * p-valprint.c: Include exceptions.h.
6435 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6436 when fetching the baseclass_offset. No longer expect
6437 baseclass_offset returning -1. Handle unavailable base classes.
6438 Use val_print_invalid_address.
6439 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6440 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6441 `embedded_offset' and `val' parameters. Adjust.
6442 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6443 parameter, and change its type to gdb_byte pointer. Add
6444 `embedded_offset' and `val' parameters. Adjust. No longer expect
6445 baseclass_offset returning -1.
6446 (value_dynamic_cast): Use value_contents_for_printing rather than
6447 value_contents. Adjust.
6448 (search_struct_field): No longer expect baseclass_offset returning
6450 (search_struct_method): If reading memory from the target is
6451 necessary, wrap it in a new value to pass to baseclass_offset. No
6452 longer expect baseclass_offset returning -1.
6453 (find_method_list): No longer expect baseclass_offset returning
6454 -1. Use value_contents_for_printing rather than value_contents.
6455 * valprint.c (val_print_invalid_address): New function.
6456 * valprint.h (val_print_invalid_address): Declare.
6457 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6458 and `val' parameters. No longer expect baseclass_offset returning
6460 * gnu-v2-abi.c: Include "exceptions.h".
6461 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6462 parameters. Handle unavailable memory. Recurse through
6463 gnuv2_baseclass_offset directly, rather than through
6464 baseclass_offset. No longer returns -1 on not found, instead
6466 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6467 `val' parameters. Adjust.
6469 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6471 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6472 almost but not quite adjacent.
6474 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6476 * value.h (value_entirely_available): Declare.
6477 * value.c (value_entirely_available): New function.
6478 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6479 real type if the pointer is unavailable.
6481 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6483 * valops.c (value_repeat): Use read_value_memory instead of
6486 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6488 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6489 * value.c (value_contents_copy_raw, value_contents_copy): New
6491 (value_primitive_field): Use value_contents_copy_raw instead of
6493 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6495 (value_array, value_slice): Ditto.
6496 * valarith.c (value_subscripted_rvalue): Use
6497 value_contents_copy_raw instead of memcpy.
6499 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6501 <unavailable> references.
6503 * valops.c (get_value_at): Use value_from_contents_and_address,
6504 avoiding read_memory.
6506 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6508 * c-valprint.c (c_val_print): Print a string with unavailable
6509 contents as an array.
6511 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6513 * value.h (unpack_bits_as_long): Delete declaration.
6514 (unpack_value_bits_as_long): Declare.
6515 (unpack_value_field_as_long): Declare.
6516 (value_field_bitfield): Declare.
6517 * value.c (unpack_bits_as_long): Rename to...
6518 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6519 value parameters. Return the extracted result in a new output
6520 parameter. If the value contents are unavailable, return false,
6521 otherwise return true.
6522 (unpack_value_bits_as_long): New.
6523 (unpack_field_as_long): Rename to...
6524 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6525 Add embedded_offset and value parameters. Return the extracted
6526 result in a new output parameter. If the value contents are
6527 unavailable, return false, otherwise return true.
6528 (unpack_value_field_as_long): New.
6529 (unpack_field_as_long_1): New.
6530 (unpack_field_as_long): Reimplement as wrapper around
6531 unpack_value_field_as_long_1.
6532 (value_field_bitfield): New function.
6533 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6534 unpack_value_bits_as_long. Mark the value as unavailable, if it
6536 * jv-valprint.c (java_print_value_fields): Use
6537 value_field_bitfield.
6538 * p-valprint.c (pascal_object_print_value_fields): Use
6539 value_field_bitfield.
6540 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6542 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6544 * value.c (get_internalvar_integer): Also return the int value of
6545 TYPE_CODE_INT INTERNALVAR_VALUE values.
6546 (set_internalvar): Don't special case TYPE_CODE_INT.
6548 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6550 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6551 INTERNALVAR_POINTER.
6553 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6554 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6555 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6557 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6559 * value.h (value_available_contents_eq): Declare.
6560 * value.c (find_first_range_overlap): New function.
6561 (value_available_contents_eq): New function.
6562 * valprint.c (val_print_array_elements): Use
6563 value_available_contents_eq.
6564 * ada-valprint.c (val_print_packed_array_elements): Use
6565 value_available_contents_eq.
6566 * jv-valprint.c (java_value_print): Use
6567 value_available_contents_eq.
6569 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6571 * target.c (target_read_live_memory): New function.
6572 (memory_xfer_live_readonly_partial): New.
6573 (memory_xfer_partial): If reading from a traceframe, fallback to
6574 reading unavailable read-only memory from read-only regions of
6576 * tracepoint.c (disconnect_tracing): Adjust.
6577 (set_current_traceframe): New, factored out from
6578 set_traceframe_number.
6579 (set_traceframe_number): Reimplement to only change the traceframe
6580 number on the GDB side.
6581 (do_restore_current_traceframe_cleanup): Adjust.
6582 (make_cleanup_restore_traceframe_number): New.
6583 (cur_traceframe_number): New global.
6584 (tfile_open): Set cur_traceframe_number to no traceframe.
6585 (set_tfile_traceframe): New function.
6586 (tfile_trace_find): If looking up a traceframe using any method
6587 other than by number, make sure the current tfile traceframe
6588 matches gdb's current traceframe. Update the current tfile
6589 traceframe if the lookup succeeded.
6590 (tfile_fetch_registers, tfile_xfer_partial)
6591 (tfile_get_trace_state_variable_value): Make sure the remote
6592 traceframe matches gdb's current traceframe.
6593 * remote.c (remote_traceframe_number): New global.
6594 (remote_open_1): Set it to -1.
6595 (set_remote_traceframe): New function.
6596 (remote_fetch_registers, remote_store_registers)
6597 (remote_xfer_memory, remote_xfer_partial)
6598 (remote_get_trace_state_variable_value): Make sure the remote
6599 traceframe matches gdb's current traceframe.
6600 (remote_trace_find): If looking up a traceframe using any method
6601 other than by number, make sure the current remote traceframe
6602 matches gdb's current traceframe. Update the current remote
6603 traceframe if the lookup succeeded.
6604 * infrun.c (fetch_inferior_event): Adjust.
6605 * tracepoint.h (set_current_traceframe): Declare.
6606 (get_traceframe_number, set_traceframe_number): Add describing
6609 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6611 Mark pieces of values as unavailable if the corresponding memory
6614 * valops.c: Include tracepoint.h.
6615 (value_fetch_lazy): Use read_value_memory.
6616 (read_value_memory): New.
6617 * value.h (read_value_memory): Declare.
6618 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
6619 * exec.c (section_table_available_memory): New function.
6620 * exec.h (section_table_available_memory): Declare.
6622 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6624 * Makefile.in (SFILES): Add memrange.c.
6625 (HFILES_NO_SRCDIR): Add memrange.h.
6626 (COMMON_OBS): Add memrange.o.
6627 * memrange.c: New file.
6628 * memrange.h: New file.
6629 * tracepoint.c: Include memrange.h.
6630 (struct mem_range): Delete.
6631 (mem_range_s): Delete.
6632 (traceframe_available_memory): New function.
6633 * tracepoint.h (traceframe_available_memory): Declare.
6635 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6637 * target.h (struct traceframe_info): Forward declare.
6638 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
6639 (struct target_ops) <to_traceframe_info>: New field.
6640 (target_traceframe_info): New.
6641 * target.c (update_current_target): Inherit and default
6643 * remote.c (PACKET_qXfer_traceframe_info): New.
6644 (remote_protocol_features): Register qXfer:traceframe-info:read.
6645 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
6646 (remote_traceframe_info): New.
6647 (init_remote_ops): Install it.
6648 (_initialize_remote): Install "set/show remote traceframe-info"
6650 * tracepoint.h (parse_traceframe_info): Declare.
6651 * tracepoint.c (struct mem_range): New.
6652 (mem_range_s): New typedef.
6653 (struct traceframe_info): New.
6654 (traceframe_info): New global.
6655 (free_traceframe_info): New function.
6656 (clear_traceframe_info): New function.
6657 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
6659 (build_traceframe_info): New function.
6660 (tfile_traceframe_info): New function.
6661 (init_tfile_ops): Install tfile_traceframe_info.
6662 (traceframe_info_start_memory, free_result): New functions.
6663 (memory_attributes, traceframe_info_elements): New globals.
6664 (parse_traceframe_info, get_traceframe_info): New functions.
6665 * features/traceframe-info.dtd: New file.
6666 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
6668 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6670 Base support for <unavailable> value contents.
6672 * value.h (value_bytes_available): Declare.
6673 (mark_value_bytes_unavailable): Declare.
6674 * value.c (struct range): New struct.
6675 (range_s): New typedef.
6676 (ranges_overlap): New function.
6677 (range_lessthan): New function.
6678 (ranges_contain_p): New function.
6679 (struct value) <unavailable>: New field.
6680 (value_bytes_available): New function.
6681 (mark_value_bytes_unavailable): New function.
6682 (require_not_optimized_out): Constify parameter.
6683 (require_available): New function.
6684 (value_contents_all, value_contents): Require all bytes be
6686 (value_free): Free `unavailable'.
6687 (value_copy): Copy `unavailable'.
6688 * valprint.h (val_print_unavailable): Declare.
6689 * valprint.c (valprint_check_validity): Rename `offset' parameter
6690 to `embedded_offset'. If printing a scalar, check whether the
6691 value chunk is available.
6692 (val_print_unavailable): New.
6693 (val_print_scalar_formatted): Check whether the value is
6695 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
6696 pretty-printing unavailable values.
6698 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6700 Fix const/volatile qualifiers of C++ types, PR c++/12328.
6701 * c-typeprint.c (c_type_print_args): Update the function comment. New
6702 variable param_type, initialize it. Remove const/volatile qualifiers
6703 for language_cplus and !show_artificial. Use param_type.
6705 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6707 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
6708 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
6709 * symtab.h (struct symtab) <next>: Comment extension.
6711 2011-02-12 Yao Qi <yao@codesourcery.com>
6713 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
6715 2011-02-11 Yao Qi <yao@codesourcery.com>
6717 * common/Makefile.in: Add copyright header.
6719 2011-02-11 Pedro Alves <pedro@codesourcery.com>
6721 * infrun.c (proceed): Move switching out and in of tfind mode from
6723 (fetch_inferior_event): ... to here.
6725 2011-02-11 Yao Qi <yao@codesourcery.com>
6727 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6729 * configure.ac: Add common to sub dir.
6730 * configure: Regenerate.
6732 2011-02-11 Yao Qi <yao@codesourcery.com>
6736 * common/Makefile.in: New.
6737 * common/configure.ac: New.
6738 * common/aclocal.m4: New.
6739 * common/configure: Generate.
6741 2011-02-10 Pedro Alves <pedro@codesourcery.com>
6743 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
6744 side of the parenthesis.
6747 2010-07-13 Jakub Jelinek <jakub@redhat.com>
6748 * vec.h (VEC_block_remove): Fix comment.
6750 2011-02-08 Michael Snyder <msnyder@vmware.com>
6752 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
6754 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6756 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
6757 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
6760 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6763 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
6765 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
6766 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
6768 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6770 * dwarf2read.c (read_subroutine_type): Set special calling
6771 convention flag for functions compiled by IBM XL C for OpenCL.
6772 * ppc-sysv-tdep.c: Include "dwarf2.h"
6773 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
6775 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
6776 IBM OpenCL vector types calling convention.
6777 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
6778 (ppc_sysv_abi_broken_return_value): Likewise.
6779 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
6780 types calling convention.
6781 (ppc64_sysv_abi_return_value): Likewise.
6782 * spu-tdep.c: Include "dwarf2.h"
6783 (spu_return_value): Implement IBM OpenCL vector types calling
6786 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6788 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
6789 correct ABI for AltiVec vector arguments.
6791 2011-02-07 Pedro Alves <pedro@codesourcery.com>
6793 * valprint.c (val_print): Extend comment.
6794 * ada-valprint.c (ada_valprint): Rewrite comment deferring
6795 interface explanation to val_print.
6796 (ada_val_print_array): Adjust comment to current interface.
6797 (print_field_values): Adjust comment to current interface.
6798 * c-valprint.c (c_val_print): Rewrite comment deferring interface
6799 explanation to val_print.
6800 * f-valprint.c (f_val_print): Ditto.
6801 * jv-valprint.c (java_val_print): Ditto.
6802 * m2-valprint.c (m2_val_print): Ditto.
6803 * p-valprint.c (pascal_val_print): Ditto.
6805 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6807 * breakpoint.c (parse_breakpoint_sals): Fix description.
6809 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
6810 Oguz Kayral <oguzkayral@gmail.com>
6812 * python/py-inferior.c (python_on_normal_stop): New function.
6813 (python_on_resume): New function.
6814 (python_inferior_exit): New function.
6815 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
6816 inferior_exit observers.
6817 * python/py-evtregistry.c: New file.
6818 * python/py-threadevent.c : New file.
6819 * python/py-event.c: New file.
6820 * python/py-evts.c: New file.
6821 * python/py-continueevent.c: New file.
6822 * python/py-bpevent.c: New file.
6823 * python/py-signalevent.c: New file.
6824 * python/py-exetiedevent.c: New file.
6825 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
6826 Move struct breakpoint_object from here...
6827 * python/python-internal.h: ... to here.
6828 * python/py-event.h: New file.
6829 * python/py-events.h: New file.
6830 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
6831 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
6832 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
6833 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
6834 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
6835 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
6836 Add build rules for all the above.
6838 2011-02-04 Tom Tromey <tromey@redhat.com>
6840 * dwarf2read.c (dwarf2_section_empty_p): New function.
6841 (dwarf2_read_section): Use dwarf2_section_empty_p.
6842 (dwarf2_section_size): New function.
6843 (dwarf2_get_section_info): Unconditionally read section.
6844 (dwarf2_read_index): Use dwarf2_section_empty_p.
6845 (partial_read_comp_unit_head): Use dwarf2_section_size.
6846 (dwarf2_symbol_mark_computed): Likewise.
6848 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6850 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
6852 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6854 * mips-linux-tdep.c: Include xml-syscall.h.
6855 (mips_linux_get_syscall_number): New function.
6856 (mips_linux_init_abi): Add calls to
6857 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
6858 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6859 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
6860 * syscalls/mips-n32-linux.xml: New file.
6861 * syscalls/mips-n64-linux.xml: New file.
6862 * syscalls/mips-o32-linux.xml: New file.
6864 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6866 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
6867 Complain about inverted range entries.
6868 (dwarf2_record_block_ranges): Likewise.
6870 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6873 * breakpoint.c (update_watchpoint): Fix name of the
6874 update_global_location_list function.
6875 (print_one_breakpoint): Fix typo.
6876 (_initialize_breakpoint): Remove extra space in hbreak help
6878 * breakpoint.h (struct bp_location) <length>: Fix field
6881 2011-02-04 Pedro Alves <pedro@codesourcery.com>
6883 * regcache.c (registers_changed_ptid): Don't explictly always
6884 clear `current_regcache'. Only clear current_thread_ptid and
6885 current_thread_arch when PTID matches. Only reinit the frame
6886 cache if PTID matches the current inferior_ptid. Move alloca(0)
6888 (registers_changed): ... here.
6890 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
6892 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
6893 starts with __stack_chk_guard as stack guard symbol.
6895 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
6897 * disasm.c (compare_lines): Handle the end of sequence markers
6898 within the line table to better support disassembling over
6899 compilation unit boundaries.
6901 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6903 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
6904 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
6905 implementation even if no symbols are available.
6906 (thumb_analyze_prologue): Update call to skip_prologue_function.
6907 (arm_analyze_prologue): Likewise.
6909 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6911 * arm-tdep.c: Include "observer.h".
6912 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
6913 (arm_exidx_data_key): New static variable.
6914 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
6915 (struct arm_exidx_data): Likewise.
6916 (arm_exidx_data_free): New function.
6917 (arm_compare_exidx_entries): Likewise.
6918 (arm_obj_section_from_vma): Likewise.
6919 (arm_exidx_new_objfile): Likewise.
6920 (arm_find_exidx_entry): Likewise.
6921 (arm_exidx_fill_cache): Likewise.
6922 (arm_exidx_unwind_sniffer): Likewise.
6923 (arm_exidx_unwind): New global variable.
6924 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
6925 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
6926 observer. Register arm_exidx_data_key as objfile data.
6928 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6930 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
6931 due to accessing uninitialized variable. Fix indentation.
6933 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6935 * c-valprint.c (c_value_print): When doing virtual base pointer
6936 adjustment, create a new value with adjusted contents rather than
6937 changing the contents of the value being printed (and getting it
6940 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6942 * xml-support.c (xml_find_attribute): New.
6943 (xinclude_start_include): Use it.
6944 * xml-support.h (xml_find_attribute): Declare.
6945 * memory-map.c (memory_map_start_memory)
6946 (memory_map_start_property): Use xml_find_attribute.
6947 * osdata.c (osdata_start_osdata, osdata_start_column): Use
6949 * remote.c (start_thread): Use xml_find_attribute.
6950 * solib-target.c (library_list_start_segment)
6951 (library_list_start_section, library_list_start_library)
6952 (library_list_start_list): Use xml_find_attribute.
6953 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
6954 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
6955 (tdesc_start_field): Use xml_find_attribute.
6957 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
6959 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
6960 (BUILD_OCL_VTYPES): Update.
6962 2011-02-02 Joel Brobecker <brobecker@adacore.com>
6964 * configure.ac: Work around non-GNU sed limitation when computing
6965 python version number.
6966 * configure: Regenerate.
6968 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6970 Fix debug printing of TYPE_INSTANCE.
6971 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
6972 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
6974 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6976 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
6977 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
6978 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
6979 * ada-operator.inc: Rename the file to ...
6980 * ada-operator.def: ... here, wrap all the entries by macro OP.
6981 * expprint.c (op_name_standard): Remove all the entries. Include
6982 "std-operator.def" instead.
6983 * expression.h (enum exp_opcode): Include "std-operator.def" and
6984 "ada-operator.def". Move all the entries ...
6985 * std-operator.def: ... here, wrap all the entries by macro OP.
6987 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6989 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
6990 * breakpoint.c (remove_jit_event_breakpoints): New function.
6991 * jit.c (jit_descriptor_addr): Delete.
6992 (registering_code): Delete.
6993 (clear_int): Delete.
6994 (jit_inferior_data): New variable.
6995 (struct jit_inferior_data): New type.
6996 (get_jit_inferior_data): New function.
6997 (jit_inferior_data_cleanup): New function.
6998 (jit_read_descriptor): Adjust.
6999 (jit_register_code): Adjust.
7000 (jit_breakpoint_re_set_internal): New function; move code here ...
7001 (jit_inferior_init): ... from here.
7002 (jit_breakpoint_re_set): Adjust.
7003 (jit_reset_inferior_data_and_breakpoints): New function.
7004 (jit_inferior_created_observer): Adjust.
7005 (jit_inferior_exit_hook): Adjust.
7006 (jit_executable_changed_observer): New function.
7007 (jit_event_handler): Adjust.
7008 (_initialize_jit): Adjust.
7010 2011-01-31 Michael Snyder <msnyder@vmware.com>
7012 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7015 2011-01-31 Tom Tromey <tromey@redhat.com>
7018 * python/python.c (execute_gdb_command): Call
7019 prevent_dont_repeat.
7020 * top.c (suppress_dont_repeat): New global.
7021 (dont_repeat): Use it.
7022 (prevent_dont_repeat): New function.
7023 * command.h (prevent_dont_repeat): Declare.
7025 2011-01-31 Tom Tromey <tromey@redhat.com>
7027 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7028 * python/py-breakpoint.c (bppy_set_silent): Use
7029 breakpoint_set_silent.
7030 (bppy_set_thread): Use breakpoint_set_thread.
7031 (bppy_set_task): Use breakpoint_set_task.
7032 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7033 (breakpoint_set_task): Declare.
7034 (make_breakpoint_silent): Remove.
7035 * breakpoint.c (breakpoint_set_silent): New function.
7036 (breakpoint_set_thread): Likewise.
7037 (breakpoint_set_task): Likewise.
7038 (make_breakpoint_silent): Remove.
7040 2011-01-31 Tom Tromey <tromey@redhat.com>
7042 * breakpoint.h (user_breakpoint_p): Declare.
7043 * breakpoint.c (user_breakpoint_p): New function.
7044 (breakpoint_1): Use it.
7045 (save_breakpoints): Likewise.
7047 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7049 * configure.ac: Add handling of Python distribution on Windows.
7050 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7051 sysconfig variables are not defined, then do not use them.
7052 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7053 instead. On Windows, return all paths using forward-slashes
7054 rather than backslashes.
7056 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7058 * configure.ac: Remove fallback behavior for building
7059 against Python. Remove tweaking of Python include path.
7060 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7061 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7062 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7063 Always restore CPPFLAGS and LIBS after linking test.
7064 * configure: Regenerated.
7065 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7066 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7067 * python/python-internal.h: Adjust includes of Python .h files.
7069 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7071 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7074 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7076 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7079 2011-01-31 Yao Qi <yao@codesourcery.com>
7081 * arm-linux-nat.c: Update calls to regcache_register_status
7082 instead of regcache_valid_p.
7083 * aix-thread.c: Likewise.
7084 * i386gnu-nat.c: Likewise.
7086 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7089 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7090 touching TYPE_FIELD_ARTIFICIAL.
7092 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7094 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7097 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7099 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7100 selected, don't try iterating over the traceframe's blocks.
7101 (tfile_has_stack): If there's no traceframe selected, then there's
7103 (tfile_has_registers): If there's no traceframe selected, then
7104 there's no registers.
7106 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7108 * target.c (memory_xfer_partial): No need to restore shadows if we
7109 haven't read anything.
7111 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7113 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7114 and val_print_scalar_formatted.
7116 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7118 * tracepoint.c (tfile_read): New.
7119 (tfile_open): Use it.
7120 (tfile_get_traceframe_address): Use it.
7121 (tfile_trace_find): Use it.
7122 (walk_blocks_callback_func): New typedef.
7123 (match_blocktype): New function.
7124 (traceframe_walk_blocks): New function.
7125 (traceframe_find_block_type): New function.
7126 (tfile_fetch_registers, tfile_xfer_partial)
7127 (tfile_get_trace_state_variable_value): Use
7128 traceframe_find_block_type and tfile_read.
7130 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7132 * remote-mips.c: Add internationalization mark ups. Remove
7133 trailing \n from already marked up strings.
7135 2011-01-26 Tom Tromey <tromey@redhat.com>
7137 * python/py-prettyprint.c (print_string_repr): Clear
7138 'addressprint' option when calling val_print_string.
7139 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7140 option when calling val_print_string.
7142 2011-01-26 Tom Tromey <tromey@redhat.com>
7144 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7146 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7148 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7149 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7150 (gdb_py_long_as_ulongest): New defines.
7151 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7152 (gdb_py_int_as_long): Declare.
7153 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7154 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7155 (valpy_long): Add comment.
7156 * python/py-utils.c (get_addr_from_python): Use
7157 gdb_py_long_as_ulongest. Handle overflow properly.
7158 (gdb_py_object_from_longest): New function.
7159 (gdb_py_object_from_ulongest): Likewise.
7160 (gdb_py_int_as_long): Likewise.
7161 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7162 * python/py-symtab.c (salpy_get_pc): Use
7163 gdb_py_long_from_ulongest.
7164 (salpy_get_line): Use PyInt_FromLong.
7165 * python/py-param.c (set_parameter_value): Use
7167 * python/py-lazy-string.c (stpy_get_address): Use
7168 gdb_py_long_from_ulongest.
7169 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7170 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7171 * python/py-breakpoint.c (bppy_set_thread): Use
7173 (bppy_set_task): Likewise.
7174 (bppy_set_ignore_count): Likewise.
7175 (bppy_set_hit_count): Likewise.
7176 * python/py-block.c (blpy_get_start): Use
7177 gdb_py_object_from_ulongest.
7178 (blpy_get_end): Likewise.
7179 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7181 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7184 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7185 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7186 equality test for objfile, initialize addr_low if needed.
7188 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7190 * tui/tui-regs.c (tui_register_format): Remove dead code.
7192 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7194 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7195 instead of print_scalar_formatted.
7196 (print_scalar_formatted): Don't handle 's' format strings here,
7197 and add an assertion that we never see such format here.
7198 * valprint.h (val_print_scalar_formatted): Declare.
7199 * valprint.c (val_print_scalar_formatted): New.
7200 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7201 instead of print_scalar_formatted.
7202 * jv-valprint.c (java_val_print): Ditto.
7203 * p-valprint.c (pascal_val_print): Ditto.
7204 * ada-valprint.c (ada_val_print_1): Ditto.
7205 * f-valprint.c (f_val_print): Ditto.
7206 * infcmd.c (registers_info): Ditto.
7207 * m2-valprint.c (m2_val_print): Ditto.
7209 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7211 * m2-valprint.c (print_unbounded_array): Pass
7212 value_contents_for_printing rather than value_contents, to
7213 m2_print_array_contents. Also pass in the value.
7215 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7217 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7218 (save_gdb_index_command): Switch to .gdb_index version 4.
7220 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7222 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7223 than frame_register, and always pass a valid value to val_print.
7225 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7227 Centralize printing "<optimized out>".
7229 * valprint.h (val_print_optimized_out): Declare.
7230 * cp-valprint.c (cp_print_value_fields): Use
7231 val_print_optimized_out.
7232 * jv-valprint.c (java_print_value_fields): Ditto.
7233 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7234 * printcmd.c (print_formatted): Ditto.
7235 * valprint.c (valprint_check_validity): Ditto.
7236 (value_check_printable): Ditto.
7237 (val_print_optimized_out): New.
7239 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7241 * infcmd.c (default_print_registers_info): Allocate values so to
7242 never pass a NULL value to val_print.
7244 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7246 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7247 boolean. Make sure to always pass a value that matches the
7248 contents buffer to callees. Preserve `address' for following
7250 * value.c (value_contents_for_printing_const): New.
7251 (value_address): Constify value argument.
7252 * value.h (value_contents_for_printing_const): Declare.
7253 (value_address): Constify value argument.
7255 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7257 * regcache.c (struct regcache_descr): Rename
7258 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7259 and sizeof_cooked_register_valid_p to
7260 sizeof_cooked_register_status.
7261 (init_regcache_descr): Adjust.
7262 (struct regcache): Rename register_valid_p field to
7264 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7265 (do_cooked_read): Adjust.
7266 (regcache_valid_p): Rename to ...
7267 (regcache_register_status): ... this. Adjust.
7268 (regcache_invalidate): Adjust.
7269 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7271 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7272 as unavailable, not valid.
7273 (regcache_dump): Adjust.
7274 * regcache.h (enum register_status): New.
7275 (regcache_register_status): Declare.
7276 (regcache_invalidate): Delete declaration.
7277 * corelow.c (get_core_registers): Adjust.
7278 * tracepoint.c (tfile_fetch_registers): Adjust.
7279 * trad-frame.c (REG_VALUE): Rename to ...
7280 (TF_REG_VALUE): ... this.
7281 (REG_UNKNOWN): Rename to ...
7282 (TF_REG_UNKNOWN): ... this.
7283 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7284 * mi/mi-main.c (register_changed_p): Adjust.
7286 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7288 * regcache.c (struct regcache_descr): Remove outdated comment.
7289 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7291 (regcache_xmalloc): Rename to ...
7292 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7293 Allocate the regcache type accordingly.
7294 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7295 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7296 cooked registers, not raw.
7297 (regcache_dup_no_passthrough): Delete.
7298 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7299 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7300 mention obsolete write_register_bytes.
7301 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7303 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7305 Stop remote_read_bytes from handling partial reads itself.
7307 * remote-fileio.c: Include target.h.
7308 (remote_fileio_write_bytes): Delete.
7309 (remote_fileio_func_open, remote_fileio_func_write)
7310 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7312 (remote_fileio_func_stat): Use target_read_memory and
7313 target_write_memory.
7314 (remote_fileio_func_gettimeofday): Use target_write_memory.
7315 (remote_fileio_func_system): Use target_read_memory.
7316 * remote.c (remote_write_bytes): Make it static.
7317 (remote_read_bytes): Don't handle partial reads here.
7318 * remote.h (remote_read_bytes): Delete declaration.
7320 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7322 Simplify XML parsing a bit.
7324 * xml-support.h (gdb_xml_parse_quick): Declare.
7325 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7326 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7328 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7329 gdb_xml_create_parser_and_cleanup_1.
7330 (gdb_xml_parse_quick): New.
7331 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7332 * osdata.c (osdata_parse): Ditto.
7333 * remote.c (remote_threads_info): Ditto.
7334 * solib-target.c (solib_target_parse_libraries): Ditto.
7335 * xml-syscall.c (syscall_parse_xml): Ditto.
7336 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7338 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7340 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7341 with remote-mips.o added to gdb_target_obs.
7342 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7344 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7346 * ada-valprint.c (val_print_packed_array_elements): Pass the
7347 correct struct value to val_print.
7348 (ada_val_print_1): Ditto.
7350 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7352 Don't lose embedded_offset in printing routines throughout.
7354 * valprint.h (val_print_array_elements): Change prototype.
7355 * valprint.c (val_print_array_elements): Add `embedded_offset'
7356 parameter, and adjust to pass it down to val_print, while passing
7357 `valaddr' or `address' unmodified. Take embedded_offset into
7358 account when checking repetitions.
7359 * c-valprint.c (c_val_print): Pass embedded_offset to
7360 val_print_array_elements instead of adjusting `valaddr' and
7362 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7363 embedded_offset to val_print_array_elements instead of adjusting
7365 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7366 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7367 val_print_array_elements and pascal_object_print_value_fields
7368 instead of adjusting `valaddr'.
7369 (pascal_object_print_value_fields): Add `offset' parameter, and
7371 (pascal_object_print_value): Add `offset' parameter, and adjust to
7373 (pascal_object_print_static_field): Use
7374 value_contents_for_printing/value_embedded_offset, rather than
7376 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7377 parameter, and adjust to use it. Use
7378 value_contents_for_printing/value_embedded_offset, rather than
7380 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7381 (ada_val_print_array): Add `offset' parameter, and adjust to use
7383 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7384 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7385 Instead work with offsets. Use
7386 value_contents_for_printing/value_embedded_offset, rather than
7387 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7388 and use value_from_pointer to extract a target pointer, rather
7389 than value_from_longest.
7390 (print_variant_part): Add `offset' parameter. Replace
7391 `outer_valaddr' parameter by a new `outer_offset' parameter.
7392 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7393 (ada_value_print): Use
7394 value_contents_for_printing/value_embedded_offset, rather than
7396 (print_record): Add `offset' parameter, and adjust to pass it
7398 (print_field_values): Add `offset' parameter. Replace
7399 `outer_valaddr' parameter by a new `outer_offset' parameter.
7400 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7401 Use value_contents_for_printing/value_embedded_offset, rather than
7403 * d-valprint.c (dynamic_array_type): Use
7404 value_contents_for_printing/value_embedded_offset, rather than
7406 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7407 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7408 (java_print_value_fields): Take `offset' into account. Don't
7409 re-adjust `valaddr'. Instead pass down adjusted offsets.
7410 (java_val_print): Take `embedded_offset' into account. Pass it to
7411 java_print_value_fields.
7412 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7413 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7414 down adjusted offsets.
7415 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7416 (f_val_print): Take `embedded_offset' into account.
7418 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7420 * inflow.c: Include "gdbcmd.h".
7421 (interactive_mode): New static global, moved here from top.c.
7422 (show_interactive_mode): New function, moved here from top.c.
7423 use gdb_has_a_terminal instead of input_from_terminal_p to
7424 determine the current mode.
7425 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7427 (_initialize_inflow): Add the "set/show interactive-mode"
7428 commands. Moved here from top.c, after having adjusted slightly
7430 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7432 (input_from_terminal_p): Remove handling of "interactive-mode"
7433 setting, moved to infow.c.
7434 (init_main): Remove creation of the "set/show interactive-mode"
7435 commands, moved to inflow.c.
7437 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7439 * NEWS: Add entry for native ia64-hpux support.
7441 2011-01-19 Tom Tromey <tromey@redhat.com>
7444 * thread.c (free_thread): Free 'name'.
7445 (print_thread_info): Emit thread name. Change CLI output.
7446 (thread_name_command): New function.
7447 (do_captured_thread_select): Emit newline.
7448 (_initialize_thread): Register 'thread name' command.
7449 * target.h (struct target_ops) <to_thread_name>: New field.
7450 (target_thread_name): New macro.
7451 * target.c (update_current_target): Handle to_thread_name.
7452 * python/py-infthread.c (thpy_get_name): New function.
7453 (thpy_set_name): Likewise.
7454 (thread_object_getset): Add "name".
7455 * linux-nat.c (linux_nat_thread_name): New function.
7456 (linux_nat_add_target): Set to_thread_name.
7457 * gdbthread.h (struct thread_info) <name>: New field.
7459 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7461 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7462 (ada_val_print_1): Likewise.
7464 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7466 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7467 upper limit address is not greater than the function end address
7468 when the upper limit could not be computed using the debugging
7471 2011-01-17 Tom Tromey <tromey@redhat.com>
7473 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7475 * utils.c: Include gdb_regex.h.
7476 (do_regfree_cleanup): New function.
7477 (make_regfree_cleanup): Likewise.
7478 (get_regcomp_error): Likewise.
7479 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7481 2011-01-17 Tom Tromey <tromey@redhat.com>
7483 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7486 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7488 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7489 for internal variables.
7490 (last_was_structop): New static variable.
7491 (COMPLETE): New token.
7492 (field_exp): New rule to group all '.' suffix handling.
7493 Add mark_struct_expression calls when approriate to be able
7494 to correctly find fields for completion.
7495 (yylex): Adapt to handle field completion and set INTVAR when
7498 2011-01-14 Yao Qi <yao@codesourcery.com>
7500 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7501 save_reggroup, restore_reggroup and all_reggroup.
7503 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7505 * ada-valprint. (ada_printchar): Use the correct type length
7506 in call to ada_emit_char.
7507 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7509 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7511 * solib-som.h (hpux_major_release): Declare variable here.
7512 * solib-som.c: Remove <sys/utsname.h> header.
7513 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7514 (hpux_major_release): Make global, change default value to
7515 DEFAULT_HPUX_MAJOR_RELEASE.
7516 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7517 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7518 Add "solib-som.h" header.
7519 (set_hpux_major_release): New function.
7520 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7522 2011-01-14 Mike Frysinger <vapier@gentoo.org>
7524 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7526 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7528 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7529 new-line at end of warning message.
7530 (ia64_hpux_store_register): Remove trailing new-line at end of
7532 * ia64-hpux-tdep.c: Rephrase comment.
7533 * solib-ia64-hpux.c (struct dld_info): Change type of field
7534 dld_flags from "long long" to ULONGEST.
7536 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7538 * target.h (deprecated_child_ops): Delete declaration.
7539 * target.c (deprecated_child_ops): Delete definition.
7541 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7543 * Makefile.in (hpux-thread.o): Delete rule.
7544 * configure.ac: Don't check for HPUX DCE threads support.
7545 * configure, config.in: Regenerate.
7546 * hppa-hpux-nat.c (child_suppress_run): Delete.
7547 (hppa_hpux_child_can_run): Delete.
7548 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7549 * hpux-thread.c: Delete.
7551 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7553 * hpux-thread.c (hpux_pid_to_str): Delete.
7555 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7557 * ada-valprint.c (ada_emit_char): Remove strange code.
7558 Check that c is <= UCHAR_MAX before passing it to isascii.
7559 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7561 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7563 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7564 to the case where instream is stdin.
7566 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7568 * ia64-tdep.h (struct regcache): Forward declare.
7569 (struct ia64_infcall_ops): New struct type.
7570 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7572 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7573 Renames ia64_find_global_pointer.
7574 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7575 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7576 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7578 (ia64_infcall_ops): New static global constant.
7579 (ia64_gdbarch_init): Set tdep->infcall_ops.
7580 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7581 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7582 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7583 (ia64_hpux_dummy_code): New static global constant.
7584 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7585 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7586 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7588 (ia64_hpux_infcall_ops): New static global constant.
7589 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7590 for inferior function calls to work properly on ia64-hpux.
7592 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7594 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7595 * ia64-tdep.h (struct frame_info): forward declaration.
7596 (struct gdbarch_tdep): Add field size_of_register_frame.
7597 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
7598 to determine the size of the register frame.
7599 (ia64_size_of_register_frame): New function.
7600 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
7601 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
7602 (IA64_HPUX_UREG_REASON): New macro.
7603 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
7605 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
7606 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
7607 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
7610 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7612 Add support for ia64-hpux.
7613 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
7614 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
7616 * configure.host: Add handling for ia64-hpux hosts. Add associated
7618 * configure.tgt: Add handling for ia64-hpux targets.
7619 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
7620 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
7621 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
7623 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7625 [ttrace] Compute thread list immediately after attach.
7626 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
7628 (inf_ttrace_attach): Use it.
7630 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7632 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
7633 if we could not determine the frame's function address. Instead,
7634 use the frame's PC, and then continue.
7636 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7638 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
7639 not already defined.
7641 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7643 * ia64-tdep.c (ia64_struct_type_p): New function.
7644 (ia64_extract_return_value): Handle integral values that are
7645 less than 8 bytes long.
7646 (ia64_push_dummy_call): Likewise.
7648 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7650 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
7651 floatformat_ia64_ext.
7652 (floatformat_ia64_ext_big): New static const.
7653 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
7655 2011-01-12 Tom Tromey <tromey@redhat.com>
7657 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
7659 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
7660 (mi_cmd_thread_list_ids): Likewise.
7661 (mi_cmd_data_list_changed_registers): Likewise.
7662 (mi_cmd_data_list_register_values): Likewise.
7663 (mi_cmd_data_write_register_values): Likewise.
7664 (mi_cmd_data_evaluate_expression): Likewise.
7665 (mi_cmd_data_read_memory): Likewise.
7666 (mi_cmd_data_read_memory_bytes): Likewise.
7667 (mi_cmd_data_write_memory): Likewise.
7668 (mi_cmd_enable_timings): Likewise.
7669 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
7670 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
7671 (mi_cmd_var_delete): Likewise.
7672 (mi_cmd_var_set_format): Likewise.
7673 (mi_cmd_var_show_format): Likewise.
7674 (mi_cmd_var_info_num_children): Likewise.
7675 (mi_cmd_var_list_children): Likewise.
7676 (mi_cmd_var_info_type): Likewise.
7677 (mi_cmd_var_info_expression): Likewise.
7678 (mi_cmd_var_show_attributes): Likewise.
7679 (mi_cmd_var_assign): Likewise.
7680 (mi_cmd_var_update): Likewise.
7681 (mi_cmd_enable_pretty_printing): Likewise.
7682 (mi_cmd_var_set_update_range): Likewise.
7683 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
7685 (mi_cmd_target_file_put): Likewise.
7686 (mi_cmd_target_file_delete): Likewise.
7687 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
7689 (mi_cmd_stack_info_depth): Likewise.
7690 (mi_cmd_stack_list_locals): Likewise.
7691 (mi_cmd_stack_list_args): Likewise.
7692 (mi_cmd_stack_select_frame): Likewise.
7693 (mi_cmd_stack_select_frame): Likewise.
7694 (mi_cmd_stack_info_frame): Likewise.
7695 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
7697 (mi_cmd_file_list_exec_source_files): Likewise.
7698 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
7699 (mi_cmd_env_cd): Likewise.
7700 (mi_cmd_env_path): Likewise.
7701 (mi_cmd_env_dir): Likewise.
7702 (mi_cmd_inferior_tty_show): Likewise.
7703 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
7704 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
7705 (mi_cmd_break_watch): Likewise.
7707 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
7709 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
7710 (ppc_linux_insert_hw_breakpoint): Likewise.
7711 (ppc_linux_remove_hw_breakpoint): Likewise.
7712 (ppc_linux_insert_watchpoint): Likewise.
7714 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7715 Jan Kratochvil <jan.kratochvil@redhat.com>
7717 PR fortran/11104 and DWARF unbound arrays detection.
7718 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
7719 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
7720 unspecified upper bound.
7721 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
7722 variables array_size_array, tmp_type and offset_item. New variable
7723 array. Remove call to f77_get_upperbound. New variables array_type
7724 and index. Call value_subscripted_rvalue for each dimenasion. Remove
7725 the final call to deprecated_set_value_type.
7727 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7729 Make value allocations more lazy.
7730 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
7731 instead of allocate_value and set_value_lazy when possible.
7732 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
7733 instead of allocate_value and set_value_lazy.
7734 * findvar.c (value_of_register_lazy): Likewise.
7735 (read_var_value): Remove V preallocation, call just check_typedef in
7736 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
7737 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
7738 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
7739 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
7740 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
7741 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
7742 the end, remove set_value_lazy there.
7743 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
7744 instead of allocate_value and set_value_lazy when possible.
7745 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
7746 * value.c (allocate_computed_value): Use allocate_value_lazy instead
7747 of allocate_value and set_value_lazy.
7748 (value_from_contents_and_address): Use allocate_value_lazy instead of
7749 allocate_value and set_value_lazy when possible.
7751 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7753 * disasm.c (dump_insns): Support dumping opcodes for MI.
7754 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
7755 dumping of instruction opcodes.
7757 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
7759 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
7762 2011-01-11 Tom Tromey <tromey@redhat.com>
7764 * thread.c (do_captured_thread_select): Emit newline before
7767 2011-01-11 Michael Snyder <msnyder@vmware.com>
7769 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
7770 * score-tdep.c: Ditto.
7771 * score-tdep.h: Ditto.
7772 * ser-base.c: Ditto.
7773 * ser-go32.c: Ditto.
7776 * ser-mingw.c: Ditto.
7777 * ser-pipe.c: Ditto.
7779 * ser-unix.c: Ditto.
7780 * sh64-tdep.c: Ditto.
7781 * shnbsd-nat.c: Ditto.
7785 * solib-darwin.c: Ditto.
7786 * solib-frv.c: Ditto.
7788 * solib-irix.c: Ditto.
7789 * solib-osf.c: Ditto.
7790 * solib-pa64.c: Ditto.
7791 * solib-som.c: Ditto.
7792 * solib-spu.c: Ditto.
7793 * solib-sunos.c: Ditto.
7794 * solib-svr4.c: Ditto.
7796 * sol-thread.c: Ditto.
7800 * sparc64-linux-tdep.c: Ditto.
7801 * sparc64-tdep.c: Ditto.
7802 * sparc-linux-nat.c: Ditto.
7803 * sparc-linux-tdep.c: Ditto.
7804 * sparc-sol2-nat.c: Ditto.
7805 * sparc-sol2-tdep.c: Ditto.
7806 * sparc-tdep.c: Ditto.
7807 * sparc-tdep.h: Ditto.
7808 * spu-tdep.c: Ditto.
7809 * stabsread.c: Ditto.
7810 * stabsread.h: Ditto.
7818 * target-descriptions.c: Ditto.
7819 * target-descriptions.h: Ditto.
7821 * target-memory.c: Ditto.
7822 * terminal.h: Ditto.
7825 * tracepoint.c: Ditto.
7826 * tracepoint.h: Ditto.
7827 * trad-frame.h: Ditto.
7828 * typeprint.c: Ditto.
7830 2011-01-11 Michael Snyder <msnyder@vmware.com>
7832 * ui-file.c: Comment cleanup, mostly periods and spaces.
7837 * v850-tdep.c: Ditto.
7838 * valarith.c: Ditto.
7840 * valprint.c: Ditto.
7841 * valprint.h: Ditto.
7846 * vax-tdep.c: Ditto.
7850 * windows-nat.c: Ditto.
7851 * windows-tdep.c: Ditto.
7852 * xcoffread.c: Ditto.
7853 * xcoffsolib.c: Ditto.
7854 * xml-support.c: Ditto.
7855 * xstormy16-tdep.c: Ditto.
7856 * xtensa-tdep.c: Ditto.
7857 * xtensa-tdep.h: Ditto.
7859 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7861 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
7862 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
7864 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7865 Thiago Jung Bauermann <bauerman@br.ibm.com>
7867 Implement support for PowerPC BookE ranged watchpoints.
7869 (struct breakpoint_ops) <resources_needed>: New method.
7870 Initialize to NULL in all existing breakpoint_ops instances.
7871 (struct breakpoint) <exact>: New field.
7872 (target_exact_watchpoints): Declare external global.
7873 * breakpoint.c (target_exact_watchpoints): New global flag.
7874 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
7875 b->enable_state to bp_enabled before calling
7876 hw_watchpoint_used_count.
7877 (hw_watchpoint_used_count): Iterate over all bp_locations in a
7878 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
7880 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
7881 if the watchpoint is exact.
7882 (resources_needed_watchpoint): New function.
7883 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
7884 (watch_command_1): Set b->exact if the user asked for an exact
7885 watchpoint and one can be set.
7886 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
7887 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
7888 the user asks for an exact watchpoint and one can be set. Return
7889 number of needed debug registers to watch the expression.
7890 * gdbtypes.c (is_scalar_type): New function, based on
7891 valprint.c:scalar_type_p.
7892 (is_scalar_type_recursive): New function.
7893 * gdbtypes.h (is_scalar_type_recursive): Declare.
7894 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
7895 handle regions when ranged watchpoints are available.
7896 (create_watchpoint_request): New function.
7897 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
7898 create_watchpoint_request.
7899 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
7900 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
7901 `set powerpc' and `show powerpc' commands.
7902 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7903 Mention documentation comment in the target macro.
7904 (target_region_ok_for_hw_watchpoint): Document return value.
7906 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7908 * breakpoint.c (update_watchpoint): Decide on using a software or
7909 hardware watchpoint after the bp_locations are created.
7911 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7913 Convert hardware watchpoints to use breakpoint_ops.
7914 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
7915 <insert_location>: ... this. Return int instead of void.
7916 Accept pointer to struct bp_location instead of pointer to
7917 struct breakpoint. Adapt all implementations.
7918 (breakpoint_ops) <remove>: Rename to...
7919 <remove_location>: ... this. Accept pointer to struct bp_location
7920 instead of pointer to struct breakpoint. Adapt all implementations.
7921 * breakpoint.c (insert_catchpoint): Delete function.
7922 (insert_bp_location): Call the watchpoint or catchpoint's
7923 breakpoint_ops.insert method.
7924 (remove_breakpoint_1): Call the watchpoint or catchpoint's
7925 breakpoint_ops.remove method.
7926 (insert_watchpoint, remove_watchpoint): New functions.
7927 (watchpoint_breakpoint_ops): New structure.
7928 (watch_command_1): Initialize the OPS field.
7929 * inf-child.c (inf_child_insert_fork_catchpoint)
7930 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
7931 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
7932 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
7934 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
7935 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
7936 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
7937 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
7938 * target.c (update_current_target): Change default implementation of
7939 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
7940 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
7941 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
7942 to_set_syscall_catchpoint to return_one.
7943 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
7944 (debug_to_insert_exec_catchpoint): Report return value.
7945 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
7946 (to_insert_exec_catchpoint): Change declaration to return int instead
7949 2011-01-11 Michael Snyder <msnyder@vmware.com>
7951 * arm-tdep.c: Internationalization.
7954 * fork-child.c: Ditto.
7955 * nto-procfs.c: Ditto.
7956 * ppc-sysv-tdep.c: Ditto.
7958 * remote-mips.c: Ditto.
7960 * rs6000-nat.c: Ditto.
7961 * rs6000-tdep.c: Ditto.
7965 * xml-support.c: Ditto.
7966 * mi/mi-cmd-break.c: Ditto.
7967 * mi/mi-cmd-var.c: Ditto.
7968 * mi/mi-interp.c: Ditto.
7969 * mi/mi-main.c: Ditto.
7971 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
7973 * remote-sim.c (gdbsim_store_register): Update API to
7974 sim_store_register to check more error conditions.
7976 2011-01-10 Michael Snyder <msnyder@vmware.com>
7978 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
7979 * nto-tdep.c: Ditto.
7980 * nto-tdep.h: Ditto.
7981 * objc-exp.y: Ditto.
7982 * objc-lang.c: Ditto.
7983 * objfiles.c: Ditto.
7984 * objfiles.h: Ditto.
7985 * observer.c: Ditto.
7986 * opencl-lang.c: Ditto.
7989 * parser-defs.h: Ditto.
7992 * posix-hdep.c: Ditto.
7993 * ppcbug-rom.c: Ditto.
7994 * ppc-linux-nat.c: Ditto.
7995 * ppc-linux-tdep.c: Ditto.
7996 * ppc-linux-tdep.h: Ditto.
7997 * ppcnbsd-tdep.c: Ditto.
7998 * ppcobsd-tdep.c: Ditto.
7999 * ppcobsd-tdep.h: Ditto.
8000 * ppc-sysv-tdep.c: Ditto.
8001 * ppc-tdep.h: Ditto.
8002 * printcmd.c: Ditto.
8003 * proc-abi.c: Ditto.
8004 * proc-flags.c: Ditto.
8006 * proc-utils.h: Ditto.
8007 * progspace.h: Ditto.
8008 * prologue-value.c: Ditto.
8009 * prologue-value.h: Ditto.
8010 * psympriv.h: Ditto.
8012 * p-typeprint.c: Ditto.
8013 * p-valprint.c: Ditto.
8014 * ravenscar-sparc-thread.c: Ditto.
8015 * ravenscar-thread.c: Ditto.
8016 * ravenscar-thread.h: Ditto.
8018 * regcache.c: Ditto.
8019 * regcache.h: Ditto.
8021 * remote-fileio.c: Ditto.
8022 * remote-fileio.h: Ditto.
8024 * remote-m32r-sdi.c: Ditto.
8025 * remote-mips.c: Ditto.
8026 * remote-sim.c: Ditto.
8027 * rs6000-aix-tdep.c: Ditto.
8028 * rs6000-nat.c: Ditto.
8029 * rs6000-tdep.c: Ditto.
8031 2011-01-10 Michael Snyder <msnyder@vmware.com>
8033 * charset.c (validate): Internationalization.
8034 * coffread.c (read_one_sym): Ditto.
8035 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8036 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8037 * inflow.c (new_tty): Ditto.
8038 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8039 * m32c-tdep.c (m32c_return_value): Ditto.
8040 * mep-tdep.c (mep_store_return_value): Ditto.
8041 * score-tdep.c (score7_fetch_insn): Ditto.
8042 * ser-mingw.c (pipe_windows_open): Ditto.
8043 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8044 * spu-tdep.c (spu_register_type): Ditto.
8045 * tracepoint.c (trace_find_command): Ditto.
8046 * valarith.c (value_pos): Ditto.
8048 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8050 * ada-valprint.c (printstr): Minor comment reformatting.
8052 2011-01-08 Michael Snyder <msnyder@vmware.com>
8054 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8057 2011-01-08 Michael Snyder <msnyder@vmware.com>
8059 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8060 * hppa-hpux-tdep.c: Ditto.
8061 * hppa-linux-nat.c: Ditto.
8062 * hppa-linux-tdep.c: Ditto.
8063 * hppanbsd-tdep.c: Ditto.
8064 * hppa-tdep.c: Ditto.
8065 * hppa-tdep.h: Ditto.
8066 * hpux-thread.c: Ditto.
8067 * i386-cygwin-tdep.c: Ditto.
8068 * i386-darwin-nat.c: Ditto.
8069 * i386gnu-nat.c: Ditto.
8070 * i386-linux-nat.c: Ditto.
8071 * i386-linux-tdep.c: Ditto.
8072 * i386-nat.c: Ditto.
8073 * i386-nat.h: Ditto.
8074 * i386nbsd-tdep.c: Ditto.
8075 * i386-sol2-nat.c: Ditto.
8076 * i386-stub.c: Ditto.
8077 * i386-tdep.c: Ditto.
8078 * i386-tdep.h: Ditto.
8079 * i387-tdep.c: Ditto.
8080 * ia64-linux-nat.c: Ditto.
8081 * ia64-linux-tdep.c: Ditto.
8082 * ia64-tdep.c: Ditto.
8086 * inferior.c: Ditto.
8087 * inferior.h: Ditto.
8093 * iq2000-tdep.c: Ditto.
8094 * irix5-nat.c: Ditto.
8100 * jv-typeprint.c: Ditto.
8101 * jv-valprint.c: Ditto.
8102 * language.c: Ditto.
8103 * language.h: Ditto.
8104 * linespec.c: Ditto.
8105 * linux-fork.c: Ditto.
8106 * linux-nat.c: Ditto.
8107 * linux-thread-db.c: Ditto.
8108 * lm32-tdep.c: Ditto.
8110 2011-01-08 Michael Snyder <msnyder@vmware.com>
8112 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8114 * m2-typeprint.c: Ditto.
8115 * m2-valprint.c: Ditto.
8116 * m32c-tdep.c: Ditto.
8117 * m32r-linux-nat.c: Ditto.
8118 * m32r-rom.c: Ditto.
8119 * m32r-tdep.c: Ditto.
8120 * m32r-tdep.h: Ditto.
8121 * m68hc11-tdep.c: Ditto.
8122 * m58klinux-nat.c: Ditto.
8123 * m68k-tdep.c: Ditto.
8124 * m88k-tdep.c: Ditto.
8125 * m88k-tdep.h: Ditto.
8126 * machoread.c: Ditto.
8127 * macrocmd.c: Ditto.
8128 * macroexp.c: Ditto.
8129 * macrotab.c: Ditto.
8132 * mdebugread.c: Ditto.
8133 * mdebugread.h: Ditto.
8136 * memory-map.h: Ditto.
8137 * mep-tdep.c: Ditto.
8138 * microblaze-rom.c: Ditto.
8139 * microblaze-tdep.c: Ditto.
8141 * mips-irix-tdep.c: Ditto.
8142 * mips-linux-nat.c: Ditto.
8143 * mips-linux-tdep.c: Ditto.
8144 * mips-linux-tdep.h: Ditto.
8145 * mipsnbsd-nat.c: Ditto.
8146 * mipsnbsd-tdep.c: Ditto.
8147 * mipsread.c: Ditto.
8148 * mips-tdep.c: Ditto.
8149 * mips-tdep.h: Ditto.
8150 * mn10300-linux-tdep.c: Ditto.
8151 * mn10300-tdep.c: Ditto.
8152 * mn10300-tdep.h: Ditto.
8155 * moxie-tdep.c: Ditto.
8156 * moxie-tdep.h: Ditto.
8159 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8161 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8163 2011-01-08 Robert Millan <rmh@gnu.org>
8165 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8167 2011-01-07 Michael Snyder <msnyder@vmware.com>
8169 * charset.c (_initialize_charset): Fix typo in string.
8171 2011-01-07 Michael Snyder <msnyder@vmware.com>
8173 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8175 * tui/tui-layout.c (tui_set_layout_for_display_command):
8176 Split line so that operator goes to beginning of line.
8177 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8178 assignment out of if statement.
8180 2011-01-07 Michael Snyder <msnyder@vmware.com>
8182 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8183 * ada-lang.h: Ditto.
8184 * ada-tasks.c: Ditto.
8185 * ada-valprint.c: Ditto.
8186 * aix-threads.c: Ditto.
8187 * alpha-linux-nat.c: Ditto.
8188 * alpha-linux-tdep.c: Ditto.
8189 * alpha-mdebug-tdep.c: Ditto.
8190 * alpha-nat.c: Ditto.
8191 * alpha-osf1-tdep.c: Ditto.
8192 * alpha-tdep.c: Ditto.
8193 * alphabsd-nat.c: Ditto.
8194 * alphabsd-tdep.c: Ditto.
8195 * amd64-darwin-tdep.c: Ditto.
8196 * amd64-linux-nat.c: Ditto.
8197 * amd64-linux-tdep.c: Ditto.
8198 * amd64-sol2-tdep.c: Ditto.
8199 * amd64-tdep.c: Ditto.
8200 * amd64-fbsd-tdep.c: Ditto.
8201 * amd64-nbsd-tdep.c: Ditto.
8202 * amd64-obsd-tdep.c: Ditto.
8203 * amd64-linux-nat.c: Ditto.
8204 * amd64-linux-tdep.c: Ditto.
8205 * arm-tdep.c: Ditto.
8206 * arm-tdep.h: Ditto.
8207 * armnbsd-nat.c: Ditto.
8208 * avr-tdep.c: Ditto.
8209 * bfin-tdep.c: Ditto.
8211 * c-typeprintc: Ditto.
8212 * c-valprint.c: Ditto.
8213 * coff-pe-read.h: Ditto.
8214 * coffreead.c: Ditto.
8215 * cris-tdep.c: Ditto.
8217 * darwin-nat-info.c: Ditto.
8218 * darwin-nat.c: Ditto.
8219 * dbug-rom.c: Ditto.
8223 * dec-thread.c: Ditto.
8225 * demangle.c: Ditto.
8226 * dicos-tdep.c: Ditto.
8227 * dictionary.c: Ditto.
8228 * dictionary.h: Ditto.
8229 * dink32-rom.c: Ditto.
8231 * doublest.c: Ditto.
8233 * dummy-frame.c: Ditto.
8234 * dwarf2-frame.c: Ditto.
8235 * dwarf2expr.c: Ditto.
8236 * dwarf2loc.c: Ditto.
8237 * dwarf2read.c: Ditto.
8241 * event-top.h: Ditto.
8242 * exceptions.c: Ditto.
8243 * exceptions.h: Ditto.
8245 * expprint.c: Ditto.
8246 * expression.h: Ditto.
8250 * f-typeprint.c: Ditto.
8251 * f-valprint.c: Ditto.
8252 * fbsd-nat.c: Ditto.
8254 * fork-child.c: Ditto.
8257 * frv-linux-tdep.c: Ditto.
8258 * frv-tdep.c: Ditto.
8260 * gdb-stabs.h: Ditto.
8261 * gdb_assert.h: Ditto.
8262 * gdb_string.h: Ditto.
8263 * gdb_thread_db.h: Ditto.
8264 * gdb_wait.h: Ditto.
8265 * gdbarch.sh: Ditto.
8267 * gdbthread.h: Ditto.
8268 * gdbtypes.c: Ditto.
8269 * gdbtypes.h: Ditto.
8272 * gnu-v2-abi.c: Ditto.
8273 * gnu-v3-abi.c: Ditto.
8274 * go32-nat.c: Ditto.
8275 * gdbarch.c: Regenerate.
8276 * gdbarch.h: Regenerate.
8278 2011-01-07 Michael Snyder <msnyder@vmware.com>
8280 * ax-gdb.c: Adjust some long output strings.
8281 * breakpoint.c: Ditto.
8286 * linux-nat.c: Ditto.
8287 * solib-pa64.c: Ditto.
8288 * solib-som.c: Ditto.
8290 2011-01-06 Tom Tromey <tromey@redhat.com>
8294 * python/python.c (GdbMethods): Add "newest_frame" method.
8295 * python/python-internal.h (gdbpy_newest_frame): Declare.
8296 * python/py-frame.c (gdbpy_newest_frame): New function.
8298 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8300 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8301 * jit.c (jit_debug): New variable.
8302 (show_jit_debug): New function.
8303 (struct target_buffer): Use ULONGEST.
8304 (bfd_open_from_target_memory): Likewise.
8305 (jit_register_code, jit_inferior_init): Add debug output.
8306 (_initialize_jit): Register "debug jit" command.
8308 2011-01-06 Tom Tromey <tromey@redhat.com>
8310 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8311 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8314 2011-01-06 Tom Tromey <tromey@redhat.com>
8316 * python/py-frame.c (frapy_block): Use get_frame_block.
8318 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8320 Do not stop on SIGPRIO signals by default
8321 * infrun.c (_initialize_infrun): Unset signal_stop and
8322 signal_print for TARGET_SIGNAL_PRIO.
8324 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8326 * ada-tasks.c: Fix style violation in comment.
8328 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8330 * linespec.c (decode_compound, find_method): Remove trailing \n
8331 at end of error string.
8332 * solib-irix.c (irix_current_sos): Likewise.
8333 * varobj.c (uninstall_variable): Likewise.
8335 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8337 * copyright.py: New script.
8338 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8339 Launch emacs without exec'ing. Call copyright.py afterwards.
8341 2011-01-05 Michael Snyder <msnyder@vmware.com>
8343 * addrmap.c: Shorten lines of >= 80 columns.
8344 * arch-utils.c: Ditto.
8345 * arch-utils.h: Ditto.
8347 * ax-general.c: Ditto.
8349 * blockframe.c: Ditto.
8350 * breakpoint.c: Ditto.
8351 * buildsym.c: Ditto.
8353 * c-typeprint.c: Ditto.
8355 * coffread.c: Ditto.
8359 * cp-namespace.c: Ditto.
8360 * cp-support.c: Ditto.
8361 * dbug-rom.c: Ditto.
8366 * dictionary.c: Ditto.
8368 * doublest.c: Ditto.
8369 * dwarf2-frame.c: Ditto.
8370 * dwarf2expr.c: Ditto.
8371 * dwarf2loc.c: Ditto.
8372 * dwarf2read.c: Ditto.
8375 * event-loop.c: Ditto.
8376 * event-loop.h: Ditto.
8377 * exceptions.h: Ditto.
8379 * expprint.c: Ditto.
8380 * expression.h: Ditto.
8382 * f-valprint.c: Ditto.
8384 * frame-base.c: Ditto.
8385 * frame-unwind.c: Ditto.
8386 * frame-unwind.h: Ditto.
8390 * gdb-stabs.h: Ditto.
8391 * gdb_assert.h: Ditto.
8392 * gdb_dirent.h: Ditto.
8393 * gdb_obstack.h: Ditto.
8395 * gdbtypes.c: Ditto.
8396 * gdbtypes.h: Ditto.
8397 * inf-ttrace.c: Ditto.
8402 * inline-frame.h: Ditto.
8403 * language.c: Ditto.
8404 * language.h: Ditto.
8405 * libunwind-frame.c: Ditto.
8406 * libunwind-frame.h: Ditto.
8407 * linespec.c: Ditto.
8408 * linux-nat.c: Ditto.
8409 * linux-nat.h: Ditto.
8410 * linux-thread-db.c: Ditto.
8411 * machoread.c: Ditto.
8412 * macroexp.c: Ditto.
8413 * macrotab.c: Ditto.
8416 * mdebugread.c: Ditto.
8421 * objfiles.c: Ditto.
8422 * objfiles.h: Ditto.
8424 * p-typeprint.c: Ditto.
8425 * p-valprint.c: Ditto.
8427 * printcmd.c: Ditto.
8428 * proc-events.c: Ditto.
8430 * progspace.c: Ditto.
8431 * progspace.h: Ditto.
8432 * psympriv.h: Ditto.
8435 * regcache.c: Ditto.
8436 * regcache.h: Ditto.
8437 * remote-fileio.c: Ditto.
8439 * ser-mingw.c: Ditto.
8441 * ser-unix.c: Ditto.
8444 * solib-frv.c: Ditto.
8445 * solib-irix.c: Ditto.
8446 * solib-osf.c: Ditto.
8447 * solib-pa64.c: Ditto.
8448 * solib-som.c: Ditto.
8449 * solib-sunos.c: Ditto.
8450 * solib-svr4.c: Ditto.
8451 * solib-target.c: Ditto.
8455 * stabsread.c: Ditto.
8456 * stabsread.c: Ditto.
8459 * symfile-mem.c: Ditto.
8465 * target-descriptions.c: Ditto.
8466 * target-memory.c: Ditto.
8469 * terminal.h: Ditto.
8472 * tracepoint.c: Ditto.
8473 * tracepoint.h: Ditto.
8477 * user-regs.c: Ditto.
8478 * user-regs.h: Ditto.
8480 * valarith.c: Ditto.
8482 * valprint.c: Ditto.
8483 * valprint.h: Ditto.
8488 * xcoffread.c: Ditto.
8489 * xcoffsolib.c: Ditto.
8490 * xcoffsolib.h: Ditto.
8491 * xml-syscall.c: Ditto.
8492 * xml-tdesc.c: Ditto.
8494 2011-01-05 Michael Snyder <msnyder@vmware.com>
8496 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8497 * cli/cli-decode.c: Ditto.
8498 * cli/cli-dump.c: Ditto.
8499 * cli/cli-logging.c: Ditto.
8500 * cli/cli-script.c: Ditto.
8501 * cli/cli-setshow.c: Ditto.
8502 * common/signals.c: Ditto.
8503 * mi/mi-cmd-break.c: Ditto.
8504 * mi/mi-cmd-disas.c: Ditto.
8505 * mi/mi-cmd-stack.c: Ditto.
8506 * mi/mi-cmd-var.c: Ditto.
8507 * mi/mi-cmds.c: Ditto.
8508 * mi/mi-common.h: Ditto.
8509 * mi/mi-console.c: Ditto.
8510 * mi/mi-interp.c: Ditto.
8511 * mi/mi-main.c: Ditto.
8512 * osf-share/cma_attr.c: Ditto.
8513 * osf-share/cma_deb_core.h: Ditto.
8514 * osf-share/cma_debug_client.h: Ditto.
8515 * osf-share/cma_handle.h: Ditto.
8516 * osf-share/cma_mutex.h: Ditto.
8517 * osf-share/cma_stack_int.h: Ditto.
8518 * osf-share/cma_tcb_defs.h: Ditto.
8519 * python/py-auto-load.c: Ditto.
8520 * python/py-breakpoint.c: Ditto.
8521 * python/py-cmd.c: Ditto.
8522 * python/py-frame.c: Ditto.
8523 * python/py-objfile.c: Ditto.
8524 * python/py-param.c: Ditto.
8525 * python/py-progspace.c: Ditto.
8526 * python/py-symbol.c: Ditto.
8527 * python/py-value.c: Ditto.
8528 * python/python-internal.h: Ditto.
8529 * python/python.c: Ditto.
8530 * tui/tui-data.c: Ditto.
8531 * tui/tui-disasm.c: Ditto.
8532 * tui/tui-hooks.c: Ditto.
8533 * tui/tui-io.c: Ditto.
8534 * tui/tui-layout.c: Ditto.
8535 * tui/tui-regs.c: Ditto.
8536 * tui/tui-source.c: Ditto.
8537 * tui/tui-stack.c: Ditto.
8538 * tui/tui-win.c: Ditto.
8539 * tui/tui-windata.c: Ditto.
8540 * tui/tui-winsource.c: Ditto.
8542 2011-01-05 Joel Brobecker <brobecker@adacore.com>
8544 * configure.ac, gdb.1: Copyright year update.
8546 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8548 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8549 this_pc_in_block, morestack_msym and morestack_name. Check for
8550 "__morestack" minimal symbol there.
8552 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8554 * symfile.c (find_sym_fns): Add call to dont_repeat.
8556 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8558 Copyright year update in most files (performed by copyright.sh).
8560 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8562 * top.c (print_gdb_version): Update copyright year in version output.
8564 For older changes see ChangeLog-2010.
8570 version-control: never