1 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3 * elfread.c (elf_symtab_read): Ditto.
4 * maint.c (maintenance_command): Ditto.
5 * somread.c (som_symtab_read): Ditto.
6 * solib.c (solib_find, solib_map_sections, update_solib_list)
7 (solib_add, info_sharedlibrary_command, solib_name_from_address)
8 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
9 (sharedlibrary_command, no_shared_libraries): Rework comments.
10 * solib-irix.c (locate_base, disable_break, enable_break)
11 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
12 (irix_current_sos, irix_open_symbol_file_object)
13 (irix_special_symbol_handling): Ditto.
14 * solib-sunos.c (locate_base, first_link_map_member)
15 (sunos_current_sos, disable_break, enable_break)
16 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
18 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
19 (open_symbol_file_object, svr4_current_sos, enable_break)
20 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
22 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
23 (frv_current_sos, enable_break, frv_special_symbol_handling)
24 (frv_solib_create_inferior_hook): Ditto.
25 * solist.h (struct target_so_ops): Extend the comments of the
26 special_symbol_handling, current_sos and open_symbol_file_object
29 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
31 * python/lib/gdb/__init__.py: Auto-load files in command and
33 * python/python.c (finish_python_initialization): Use
35 * python/lib/gdb/command/pretty_printers.py: Self register
37 * NEWS: Document auto-loading.
39 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
41 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
42 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
43 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
45 2011-08-08 Tom Tromey <tromey@redhat.com>
47 * breakpoint.c (clean_up_filters): Remove.
48 (catch_syscall_split_args): Use VEC_cleanup.
50 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
52 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
53 (main): Uncomment "Demangling error\n".
55 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
57 * solib-target.c (segment_attributes): Make them static.
58 (section_attributes, library_children, library_attributes): Likewise.
59 (library_list_children, library_list_attributes): Likesise.
60 (library_list_elements): Likewise.
62 2011-08-05 Pedro Alves <pedro@codesourcery.com>
64 * exceptions.c (throw_exception): Don't disable the current
66 * printcmd.c (disable_current_display_cleanup): New function.
67 (do_one_display): Install a cleanup to disable the current display
68 if doing the display throws.
70 2011-08-05 Eli Zaretskii <eliz@gnu.org>
72 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
73 initialization of the tp_new member to the corresponding
74 gdbpy_initialize_* function.
75 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
76 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
77 * python/py-function.c (gdbpy_initialize_functions): Likewise.
78 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
79 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
81 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
83 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
84 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
85 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
86 references to current_uiout.
88 2011-08-04 Pedro Alves <pedro@codesourcery.com>
90 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
91 (start_event_loop): Use TRY_CATCH instead of catch_errors.
92 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
93 * top.c (gdb_readline_wrapper): Adjust.
94 * tui/tui-interp.c (tui_command_loop):
95 (_initialize_tui_interp): Don't install it.
97 2011-08-04 Pedro Alves <pedro@codesourcery.com>
99 * ui-out.h (uiout): Rename to ...
100 (current_uiout): ... this.
101 * ui-out.c (uiout): Rename to ...
102 (current_uiout): ... this.
103 * ada-lang.c (print_it_exception, print_one_exception)
104 (print_mention_exception): Adjust.
105 * breakpoint.c (watchpoint_check): Adjust.
106 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
107 (default_collect_info, watchpoints_info, print_one_catch_fork)
108 (print_one_catch_vfork, print_one_catch_syscall)
109 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
110 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
111 (print_it_watchpoint, print_mention_watchpoint)
112 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
113 (print_it_exception_catchpoint, print_one_exception_catchpoint)
114 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
115 (bkpt_print_mention, momentary_bkpt_print_it)
116 (tracepoint_print_mention, update_static_tracepoint)
117 (tracepoints_info, save_breakpoints): Adjust.
118 * cli-out.c (field_separator): Adjust.
119 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
120 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
121 * frame.c (get_current_frame): Adjust.
122 * infcmd.c (run_command_1, print_return_value): Adjust.
123 * inferior.c (inferior_command, info_inferiors_command): Adjust.
124 * infrun.c (print_end_stepping_range_reason): Adjust.
125 (print_signal_exited_reason, print_exited_reason): Adjust.
126 (print_signal_received_reason, print_no_history_reason): Adjust.
127 * interps.c (interp_set): Adjust.
128 * osdata.c (info_osdata_command): Adjust.
129 * progspace.c (maintenance_info_program_spaces_command): Adjust.
130 * remote-fileio.c (remote_fileio_request): Adjust.
131 * remote.c (show_remote_cmd): Adjust.
132 * solib.c (info_sharedlibrary_command): Adjust.
133 * source.c (print_source_lines_base): Adjust.
134 * stack.c (print_stack_frame): Adjust.
135 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
136 * symfile-mem.c (add_vsyscall_page): Adjust.
137 * symfile.c (load_progress, generic_load)
138 (print_transfer_performance): Adjust.
139 * thread.c (info_threads_command, restore_selected_frame)
140 (thread_command): Adjust.
141 * top.c (make_cleanup_restore_ui_file): Adjust.
142 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
143 (print_one_static_tracepoint_marker): Adjust.
144 * cli/cli-cmds.c (print_disassembly): Adjust.
145 * cli/cli-decode.c (print_doc_line): Adjust.
146 * cli/cli-interp.c (safe_execute_command): Adjust.
147 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
148 (handle_redirections): Adjust.
149 * cli/cli-script.c (show_user_1): Adjust.
150 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
151 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
152 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
153 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
154 (mi_cmd_env_dir): Adjust.
155 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
156 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
157 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
158 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
159 (list_args_or_locals): Adjust.
160 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
161 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
162 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
163 (mi_cmd_var_list_children, mi_cmd_var_info_type)
164 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
165 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
166 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
167 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
168 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
169 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
170 (list_available_thread_groups, mi_cmd_list_thread_groups)
171 (mi_cmd_data_list_register_names)
172 (mi_cmd_data_list_changed_registers)
173 (mi_cmd_data_list_register_values, get_register)
174 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
175 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
176 (mi_cmd_list_target_features, mi_cmd_add_inferior)
177 (mi_execute_command, mi_load_progress): Adjust.
178 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
179 * python/py-auto-load.c (print_script, info_auto_load_scripts):
181 * python/py-breakpoint.c (bppy_get_commands): Adjust.
182 * tui/tui-interp.c (tui_command_loop): Adjust.
183 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
185 2011-08-04 Pedro Alves <pedro@codesourcery.com>
187 * exceptions.c (struct catcher): Remove saved_uiout field.
188 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
189 no longer save/resvore the global ui_out builder.
190 (catch_exceptions_with_msg): Save/override/restore the global
191 ui_out builder manually instead of relying on TRY_CATCH to do it.
192 (catch_errors): Save/restore the global ui_out builder manually
193 instead of relying on TRY_CATCH to do it.
194 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
197 * cli/cli-interp.c (safe_execute_command): Save/override/restore
198 the global ui_out builder manually instead of relying on TRY_CATCH
201 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
203 * breakpoint.c (update_global_location_list): Ensure
204 invariant 'first loc marked not duplicated and inserted,
205 following locs marked duplicated/not inserted' is respected
206 for multiple locations at the same address.
207 (unduplicated_should_be_inserted) New function.
208 (swap_insertion) New function.
210 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
212 * stack.c (print_frame_arguments_choices): Comment typo fix.
214 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
217 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
218 * breakpoint.c (insert_bp_location): Remove disabled_breaks
219 argument. Update callers.
221 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
224 * doublest.c (convert_doublest_to_floatformat): Pass correct
225 mantissa length to put_field.
227 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
229 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
230 exception_print code path.
231 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
232 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
233 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
235 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
238 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
239 Remove, merge them into ...
240 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
241 variable args and its initialization.
242 (struct print_args_args, print_args_stub): Remove, merge them into
244 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
246 (do_gdb_disassembly): ... here. Remove variable args and its
248 (print_frame): Remove variable args and its initialization, new
249 variable gdbarch and numargs (from print_args_stub), inline here
250 print_args_stub with a TRY_CATCH.
251 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
253 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
254 New variable e, remove variable btargs and its initialization.
256 2011-08-01 Tristan Gingold <gingold@adacore.com>
258 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
260 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
262 * breakpoint.c (insert_bp_location): Document return value.
263 (insert_breakpoint_locations): Fix documentation.
264 (remove_breakpoints): Add documentation.
266 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
268 * breakpoint.c (insert_bp_location): Remove disabled_breaks
269 argument. Update callers.
271 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
273 * stack.c (print_frame_info): Comment typo fix.
275 2011-07-29 Sterling Augustine <saugustine@google.com>
277 * MAINTAINERS (Write After Approval): Add myself to the list.
279 2011-07-29 Tom Tromey <tromey@redhat.com>
281 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
282 (library_list_start_segment): Update.
283 (library_list_start_section): Update.
285 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
287 * varobj.c (value_get_print_value): Move hint check later into the
288 function. Comment function. Free thevalue before reusing it.
290 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
291 Pedro Alves <pedro@codesourcery.com>
293 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
295 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
296 Assert the result kind.
297 * value.h (value_one): Remove parameter lv.
299 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
301 Fix crash on lval_computed values.
302 * valops.c (value_zero): Use not_lval for lval_computed.
304 2011-07-27 Tom Tromey <tromey@redhat.com>
306 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
307 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
309 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
311 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
312 "ptype" by their typedefs difference.
314 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
316 * dwarf2expr.c (ctx_no_read_reg): New function.
317 * dwarf2expr.h (ctx_no_read_reg): New declaration.
318 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
319 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
320 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
322 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
324 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
325 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
327 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
328 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
329 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
330 (ctx_no_get_base_type): Move the functions here.
331 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
332 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
333 (ctx_no_get_base_type): New declarations.
335 2011-07-27 Tom Tromey <tromey@redhat.com>
337 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
339 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
340 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
342 2011-07-26 Sterling Augustine <saugustine@google.com>
344 * cli/cli-dump.c (dump_binary_file): Change parameter type to
346 (dump_bfd_file): Likewise.
348 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
350 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
351 (remote_hw_watchpoint_length_limit): New variable.
352 (_initialize_remote) add set,show cmds for this new variable.
353 * gdb.texinfo: document these new commands.
354 * NEWS: Mention these new commands.
356 2011-07-26 Pedro Alves <pedro@codesourcery.com>
358 * breakpoint.c (works_in_software_mode_watchpoint): Also return
359 true for software watchpoints.
361 2011-07-26 Joel Brobecker <brobecker@adacore.com>
365 2011-07-26 Tom Tromey <tromey@redhat.com>
367 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
368 * dwarf2read.c (read_indirect_string_at_offset): New function.
369 (read_indirect_string): Use it.
370 (dwarf_decode_macro_bytes): New function, taken from
371 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
372 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
373 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
375 (struct dwarf2_per_objfile) <macro>: New field.
376 (dwarf2_elf_names): Add .debug_macro.
377 (dwarf2_macros_too_long_complaint): Add 'section' argument.
378 (dwarf2_locate_sections): Handle new section.
379 (read_file_scope): Handle DW_AT_GNU_macros.
380 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
382 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
384 * NEWS: Mention dcache configuration.
385 * dcache.c (dcache_set_list, dcache_show_list): New variables.
386 (dcache_size, dcache_line_size): New variables.
387 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
388 (struct dcache_block): Make it expandable.
389 (struct dcache_struct): New field.
390 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
391 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
392 (dcache_poke_byte, dcache_print_line): Adjust.
393 (set_dcache_size, set_dcache_line_size): New functions.
394 (set_dcache_command, show_dcache_command): New functions.
395 (_initialize_dcache): Add new commands.
397 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
399 * progspace.h (struct program_space): Add solib_add_generation.
400 * infcmd.c (post_create_inferior): Only call solib_add if not
402 * solib.c (solib_add): Increment solib_add_generation.
404 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
406 Fix implicit pointer offsets.
407 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
410 2011-07-25 Tom Tromey <tromey@redhat.com>
412 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
414 (ada_exception_sal): Make 'ops' const.
415 (ada_decode_exception_location): Likewise.
416 (ada_decode_assert_location): Likewise.
417 (catch_assert_command): Update.
418 (catch_ada_exception_command): Update.
419 (create_ada_exception_catchpoint): Make 'ops' const.
420 * breakpoint.c (set_raw_breakpoint_without_location)
421 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
423 (create_internal_breakpoint): Update.
424 (init_raw_breakpoint_without_location): Make 'ops' const.
425 (init_raw_breakpoint, init_catchpoint)
426 (create_fork_vfork_event_catchpoint)
427 (create_syscall_event_catchpoint, init_breakpoint_sal)
428 (create_breakpoint_sal, create_breakpoints_sal)
429 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
430 * breakpoint.h (struct breakpoint) <ops>: Now const.
431 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
434 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
436 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
438 2011-07-25 Pedro Alves <pedro@codesourcery.com>
440 * breakpoint.h (print_recreate_thread): Declare.
441 (struct breakpoint): Move step_count, pass_count,
442 number_on_target, static_trace_marker_id,
443 static_trace_marker_id_idx ...
444 (struct tracepoint): ... to this new struct.
445 (get_tracepoint, get_tracepoint_by_number_on_target)
446 (get_tracepoint_by_number): Change return type to struct
448 * breakpoint.c (is_tracepoint_type): New, factored out from
450 (is_tracepoint): Adjust.
451 (print_one_breakpoint_location): Cast to struct tracepoint as
452 necessary, and adjust.
453 (print_recreate_catch_fork, print_recreate_catch_vfork)
454 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
455 print_recreate_thread.
456 (init_breakpoint_sal): New, factored out from
457 create_breakpoint_sal.
458 (create_breakpoint_sal): Reimplement.
459 (create_breakpoint): Allocate a struct tracecepoint if the caller
460 wanted a tracepoint. Use init_breakpoint_sal and
462 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
463 (print_recreate_masked_watchpoint)
464 (print_recreate_exception_catchpoint): Call print_recreate_thread.
465 (tracepoint_print_one_detail): Adjust.
466 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
467 Dump the pass count here.
468 (update_static_tracepoint): Adjust.
469 (addr_string_to_sals): Adjust.
470 (create_tracepoint_from_upload): Adjust. Change return type to
471 struct tracepoint pointer.
472 (trace_pass_set_count): Change parameter type to struct tracepoint
474 (trace_pass_command): Adjust.
475 (get_tracepoint, get_tracepoint_by_number_on_target)
476 (get_tracepoint_by_number): Change return type to struct
477 tracepoint pointer, and adjust.
478 (print_recreate_thread): New, factored out from save_breakpoints.
479 (save_breakpoints): Don't print thread and task and passcount
481 * remote.c (remote_download_tracepoint): Adjust.
482 * tracepoint.c (trace_actions_command, validate_actionline)
483 (start_tracing, tfind_1, trace_find_tracepoint_command)
484 (trace_dump_command): Adjust.
485 (find_matching_tracepoint): Change return type to struct
486 tracepoint pointer, and adjust.
487 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
488 (tfile_trace_find, tfile_fetch_registers): Adjust.
489 * tracepoint.h (create_tracepoint_from_upload): Change return type
490 to struct tracepoint pointer.
491 * ada-lang.c (print_recreate_exception): Call
492 print_recreate_thread.
493 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
495 2011-07-25 Pedro Alves <pedro@codesourcery.com>
497 * breakpoint.h (struct breakpoint): Move ops as first field. Move
498 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
499 cond_exp_valid_block, val, val_valid, watchpoint_frame,
500 watchpoint_thread, watchpoint_triggered ...
501 (struct watchpoint): ... to this new struct.
502 (is_watchpoint): Declare.
503 (install_breakpoint): Add new `internal' parameter.
504 * breakpoint.c (is_watchpoint): Delete declaration.
505 (set_breakpoint_condition): Handle watchpoints.
506 (is_watchpoint): Make public.
507 (watchpoint_in_thread_scope): Change parameter type to struct
509 (watchpoint_del_at_next_stop): Change parameter type to struct
510 watchpoint. Remove assertion. Adjust.
511 (update_watchpoint): Ditto.
512 (insert_breakpoints, breakpoint_init_inferior)
513 (watchpoints_triggered, watchpoint_check)
514 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
515 (bpstat_stop_status, print_one_breakpoint_location)
516 (print_one_breakpoint_location, watchpoint_locations_match): Cast
517 to struct watchpoint as necessary, and adjust.
518 (install_breakpoint): Add `internal' argument. If true, don't
519 mention the new breakpoint. Use set_breakpoint_number.
520 (create_fork_vfork_event_catchpoint)
521 (create_syscall_event_catchpoint): Adjust.
522 (dtor_watchpoint): New.
523 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
524 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
525 (print_it_watchpoint, print_mention_watchpoint)
526 (print_recreate_watchpoint, insert_masked_watchpoint)
527 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
528 (print_one_detail_masked_watchpoint)
529 (print_mention_masked_watchpoint)
530 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
531 necessary, and adjust.
532 (watch_command_1): Allocate and initialize a struct watchpoint
533 instead of a struct breakpoint. Use install_breakpoint.
534 (catch_exec_command_1): Adjust.
535 (base_breakpoint_dtor): Delete accesses to watchpoint specific
537 (delete_breakpoint, enable_breakpoint_disp)
538 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
539 as necessary, and adjust.
540 (initialize_breakpoint_ops): Install dtor_watchpoint as
541 watchpoints' dtor method.
542 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
543 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
544 to struct watchpoint as necessary, and adjust.
546 2011-07-25 Pedro Alves <pedro@codesourcery.com>
548 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
549 the the base class ops table.
550 (catch_exception_breakpoint_ops)
551 (catch_exception_unhandled_breakpoint_ops)
552 (catch_assert_breakpoint_ops): Don't statically initialize.
553 (initialize_ada_catchpoint_ops): New.
554 (_initialize_ada_language): Call it.
555 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
556 (bkpt_breakpoint_ops): Forward declare.
557 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
558 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
559 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
560 (masked_watchpoint_breakpoint_ops)
561 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
562 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
563 base class ops table.
564 (null_re_set, null_check_status, null_works_in_software_mode)
565 (null_resources_needed, null_print_one_detail): Delete.
566 (bkpt_dtor): Rename to ...
567 (base_breakpoint_dtor): ... this. Make static.
568 (bkpt_allocate_location): Rename to ...
569 (base_breakpoint_allocate_location): ... this. Make static.
570 (base_breakpoint_re_set): New.
571 (internal_error_pure_virtual_called): New.
572 (base_breakpoint_insert_location, base_breakpoint_remove_location)
573 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
574 (base_breakpoint_works_in_software_mode)
575 (base_breakpoint_resources_needed, base_breakpoint_print_it)
576 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
577 (base_breakpoint_print_recreate): New functions.
578 (base_breakpoint_ops): New global.
579 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
580 (bkpt_breakpoint_hit): Make static.
581 (bkpt_check_status): Delete.
582 (bkpt_resources_needed): Make static.
583 (bkpt_works_in_software_mode): Delete.
584 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
586 (bkpt_breakpoint_ops, internal_breakpoint_ops)
587 (momentary_breakpoint_ops): Don't statically initialize.
588 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
590 (tracepoint_insert_location, tracepoint_remove_location)
591 (tracepoint_check_status, tracepoint_works_in_software_mode)
592 (tracepoint_print_it): Delete.
593 (tracepoint_breakpoint_ops): Don't statically initialize.
594 (initialize_breakpoint_ops): New.
595 (_initialize_breakpoint): Call it.
596 * breakpoint.h (null_re_set, null_works_in_software_mode)
597 (null_resources_needed, null_check_status, null_print_one_detail):
598 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
599 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
600 (bkpt_check_status, bkpt_resources_needed)
601 (bkpt_works_in_software_mode, bkpt_print_it)
602 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
604 (initialize_breakpoint_ops): Declare.
606 2011-07-25 Pedro Alves <pedro@codesourcery.com>
608 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
609 (momentary_bkpt_print_it): Simplify.
611 2011-07-25 Pedro Alves <pedro@codesourcery.com>
613 Split internal, momentary and user breakpoints breakpoint_ops
616 * breakpoint.c (internal_breakpoint_ops)
617 (momentary_breakpoint_ops): Forward declare.
618 (create_internal_breakpoint): Add new breakpoint_ops parameter.
619 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
620 (create_overlay_event_breakpoint)
621 (create_std_terminate_master_breakpoint)
622 (create_exception_master_breakpoint): Create breakpoints with
623 internal_breakpoint_ops vtable.
624 (set_longjmp_breakpoint): Create momentary breakpoints with
625 momentary_breakpoint_ops vtable, using
626 momentary_breakpoint_from_master.
627 (create_thread_event_breakpoint, create_jit_event_breakpoint)
628 (create_solib_event_breakpoint): Create breakpoints with
629 internal_breakpoint_ops vtable.
630 (set_momentary_breakpoint): Create breakpoints with
631 momentary_breakpoint_ops vtable.
632 (momentary_breakpoint_from_master): New, factored out from
633 clone_momentary_breakpoint.
634 (clone_momentary_breakpoint): Adjust.
635 (watch_command_1): Create scope breakpoints with
636 momentary_breakpoint_ops vtable.
637 (bkpt_re_set): Remove handling of internal and momentary
639 (bkpt_print_mention, bkpt_print_recreate): New.
640 (bkpt_breakpoint_ops): Adjust.
641 (internal_bkpt_re_set, internal_bkpt_check_status)
642 (internal_bkpt_print_it, internal_bkpt_print_mention)
643 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
644 (momentary_bkpt_re_set, momentary_bkpt_check_status)
645 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
646 (momentary_bkpt_print_recreate): New.
647 (momentary_breakpoint_ops): New.
649 2011-07-25 Pedro Alves <pedro@codesourcery.com>
651 Implement most breakpoint_ops methods for all breakpoint types,
652 and move the default handlings to the proper callbacks.
654 * breakpoint.c (update_watchpoint): Always call the breakpoint's
655 works_in_software_mode method.
656 (insert_bp_location): Go through breakpoint_ops->insert_location
657 for software and hardware watchpoints.
658 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
660 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
661 for software and hardware watchpoints.
662 (print_it_typical): Delete.
663 (print_bp_stop_message): Always call the breakpoint_ops->print_it
665 (watchpoint_check): Adjust comment.
666 (bpstat_check_location): Simply always call the breakpoint's
667 breakpoint_hit method.
668 (bpstat_stop_status): Always call the breakpoint's check_status
669 method. Remove special cases for watchpoints and internal event
670 breakpoints from here (moved to the check_status implementations).
671 (print_one_breakpoint_location): Assume b->ops is never NULL.
672 Remove static tracepoint marker id printing from here (moved to
673 the print_one_detail callback implementation of tracepoints).
674 (init_bp_location): Assert OPS is never NULL.
675 (allocate_bp_location): Always call the breakpoint's
676 allocate_location method, and remove the default code from here.
677 (free_bp_location): Always call the location's dtor method, and
678 remove the default code from here.
679 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
680 (set_raw_breakpoint_without_location): Add new breakpoint_ops
681 parameter. Pass it down.
682 (set_raw_breakpoint): Ditto.
683 (print_it_catch_fork): Adjust to take a bpstat as argument.
684 (catch_fork_breakpoint_ops): Install methods.
685 (print_it_catch_vfork): Adjust to take a bpstat as argument.
686 (catch_vfork_breakpoint_ops): Install methods.
687 (dtor_catch_syscall): Call the base dtor.
688 (print_it_catch_syscall): Adjust to take a bpstat as argument.
689 (catch_syscall_breakpoint_ops): Install methods.
690 (dtor_catch_exec): Call the base dtor.
691 (print_it_catch_exec): Adjust to take a bpstat as argument.
692 (catch_exec_breakpoint_ops): Install methods.
693 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
694 the breakpoint's resources_needed method, and remove the default
696 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
698 (clone_momentary_breakpoint): Clone the original's ops.
699 (mention): Always call the breakpoint's print_mention method, and
700 remove the default code from here.
701 (create_breakpoint_sal): Adjust to pass the ops to
702 set_raw_breakpoint rather than setting it manually.
703 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
704 ops to set_raw_breakpoint_without_location rather than setting it
706 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
707 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
708 (ranged_breakpoint_ops): Install methods.
709 (break_range_command): Adjust to pass the ops to
710 set_raw_breakpoint rather than setting it manually.
711 (re_set_watchpoint, breakpoint_hit_watchpoint)
712 (check_status_watchpoint, resources_needed_watchpoint)
713 (works_in_software_mode_watchpoint, print_it_watchpoint)
714 (print_mention_watchpoint, print_recreate_watchpoint): New
716 (watchpoint_breakpoint_ops): Install new methods.
717 (print_it_masked_watchpoint): New function.
718 (masked_watchpoint_breakpoint_ops): Install new methods.
719 (watch_command_1): Adjust to pass the right breakpoint_ops to
720 set_raw_breakpoint_without_location rather than setting it
721 manually later. Record the current pspace.
722 (print_it_exception_catchpoint): Adjust to take a bpstat as
724 (gnu_v3_exception_catchpoint_ops): Install new methods.
725 (say_where): New function.
726 (null_re_set, null_check_status, null_works_in_software_mode)
727 (null_resources_needed, null_print_one_detail, bp_location_dtor):
729 (bp_location_ops): New global.
730 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
731 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
732 (bkpt_check_status, bkpt_resources_needed)
733 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
734 (bkpt_print_recreate): New functions.
735 (bkpt_breakpoint_ops): New global.
736 (tracepoint_re_set, tracepoint_insert_location)
737 (tracepoint_remove_location, tracepoint_breakpoint_hit)
738 (tracepoint_check_status, tracepoint_works_in_software_mode)
739 (tracepoint_print_it, tracepoint_print_one_detail)
740 (tracepoint_print_mention, tracepoint_print_recreate): New
742 (tracepoint_breakpoint_ops): New global.
743 (delete_breakpoint): Always call the breakpoint's dtor method, and
744 remove the default handling from here.
745 (breakpoint_re_set_default): Make static.
746 (breakpoint_re_set_one): Always call the breakpoints re_set
747 method, and remove the default handling from here.
748 (trace_command, ftrace_command, strace_command)
749 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
750 to create_breakpoint.
751 (save_breakpoints): Always call the breakpoint's print_recreate
752 method, and remove the default handling from here.
754 * ada-lang.c (dtor_exception): Call the base dtor.
755 (re_set_exception): Call the base method.
756 (print_it_exception, print_it_catch_exception): Adjust to take a
758 (catch_exception_breakpoint_ops): Install methods.
759 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
761 (catch_exception_unhandled_breakpoint_ops): Install methods.
762 (print_it_catch_assert): Adjust to take a bpstat as argument.
763 (catch_assert_breakpoint_ops): Install methods.
765 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
766 to take a bpstat as argument.
767 (enum print_stop_action): Add describing comments to each enum
769 (breakpoint_re_set_default): Delete declaration.
770 (null_re_set, null_works_in_software_mode, null_resources_needed)
771 (null_check_status, null_print_one_detail): Declare.
772 (bkpt_breakpoint_ops): Declare.
773 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
774 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
775 (bkpt_check_status, bkpt_resources_needed)
776 (bkpt_works_in_software_mode, bkpt_print_it)
777 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
780 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
782 * python/py-breakpoint.c (bppy_init): Ditto.
784 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
786 * MAINTAINERS (Write After Approval): Add myself to the list.
788 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
790 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
792 2011-07-22 Pedro Alves <pedro@codesourcery.com>
794 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
795 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
796 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
798 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
799 (struct i386_debug_reg_state): New.
800 (i386_init_dregs): New.
802 (i386_cleanup_dregs): Use i386_init_dregs.
803 (i386_show_dr): Add state parameter and adjust.
804 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
806 (i386_remove_aligned_watchpoint): Likewise.
807 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
808 (i386_update_inferior_debug_regs): New.
809 (i386_insert_watchpoint): Work on a local mirror of the debug
810 registers, and only update the inferior on success.
811 (i386_remove_watchpoint): Ditto.
812 (i386_region_ok_for_watchpoint): Adjust.
813 (i386_stopped_data_address): Adjust.
814 (i386_insert_hw_breakpoint): Adjust.
815 (i386_remove_hw_breakpoint): Adjust.
817 2011-07-22 Tom Tromey <tromey@redhat.com>
819 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
820 from amd64_pseudo_register_read. Change arguments. Call
821 mark_value_bytes_unavailable when needed.
822 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
823 set_gdbarch_pseudo_register_read.
824 * sentinel-frame.c (sentinel_frame_prev_register): Use
825 regcache_cooked_read_value.
826 * regcache.h (regcache_cooked_read_value): Declare.
827 * regcache.c (regcache_cooked_read_value): New function.
828 (regcache_cooked_read): Call
829 gdbarch_pseudo_register_read_value if available.
830 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
831 (i386_pseudo_register_read): Remove.
832 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
833 i386_pseudo_register_read. Change arguments. Call
834 mark_value_bytes_unavailable when needed.
835 (i386_pseudo_register_read_value): New function.
836 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
837 not set_gdbarch_pseudo_register_read.
838 * gdbarch.sh (pseudo_register_read_value): New method.
839 * gdbarch.c, gdbarch.h: Rebuild.
840 * findvar.c (value_from_register): Call get_frame_register_value.
842 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
844 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
846 (display_gdb_prompt): Likewise.
847 (change_annotation_level): Likewise.
848 (push_prompt): Likewise.
849 (pop_prompt): Likewise.
850 (handle_stop_sig): Use get_prompt with a level.
851 * top.c (command_loop): Use get_prompt with a level.
852 (set_async_annotation_level): Use set_prompt with a level.
853 (get_prefix): New function.
857 (get_prompt): Accept a level argument.
858 (set_prompt): Accept a level argument. Free old prompts. Set
859 new_async_prompt if level is 0.
860 (init_main): Use set_prompt with a level. Do not set
862 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
863 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
864 Modify set_prompt, get_prompt to account for levels.
865 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
867 * python/python.c (before_prompt_hook): Use set_prompt.
869 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
871 * defs.h: Add guard against inclusion in gdbserver.
872 (struct ptid, ptid_t): Move to common/ptid.h.
873 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
874 xsnprintf, internal_error): Move to common/common-utils.h.
876 * gdb_assert.h: Move into common/ sub-directory.
877 * gdb_locale.h: Ditto.
878 * gdb_dirent.h: Ditto.
879 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
880 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
881 Move into common/ptid.h.
882 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
883 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
884 Change nomem to malloc_failure.
885 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
886 * utils.c (nomem): Rename to malloc_failure.
887 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
888 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
889 (gdb_buildargv): Change nomem to malloc_failure.
890 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
891 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
892 ptid_is_pid): Move into common/ptid.c.
893 (initialize_infrun): Delete initialization of null_ptid and
895 * linux-nat.c (linux_nat_xfer_osdata): Defer to
896 linux_common_xfer_osdata.
897 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
898 common/ptid.c and common/buffer.c.
899 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
900 common/ptid.h, common/buffer.h and common/linux-osdata.h.
901 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
902 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
904 * common/gdb_assert.h: New.
905 * common/gdb_dirent.h: New.
906 * common/gdb_locale.h: New.
907 * common/buffer.c: New.
908 * common/buffer.h: New.
909 * common/ptid.c: New.
910 * common/ptid.h: New.
911 * common/xml-utils.c: New.
912 * common/xml-utils.h: New.
913 * common/common-utils.c: New.
914 * common/common-utils.h: New.
915 * common/linux-osdata.c: New.
916 * common/linux-osdata.h: New.
917 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
918 * config/arm/linux.mh (NATDEPFILES): Ditto.
919 * config/i386/linux.mh (NATDEPFILES): Ditto.
920 * config/i386/linux64.mh (NATDEPFILES): Ditto.
921 * config/ia64/linux.mh (NATDEPFILES): Ditto.
922 * config/m32r/linux.mh (NATDEPFILES): Ditto.
923 * config/m68k/linux.mh (NATDEPFILES): Ditto.
924 * config/mips/linux.mh (NATDEPFILES): Ditto.
925 * config/pa/linux.mh (NATDEPFILES): Ditto.
926 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
927 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
928 * config/s390/s390.mh (NATDEPFILES): Ditto.
929 * config/sparc/linux.mh (NATDEPFILES): Ditto.
930 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
931 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
933 2011-07-21 Matt Rice <ratmice@gmail.com>
935 * NEWS: Add info macros and info definitions commands.
937 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
939 * NEWS: Document Python prompt substitution hook.
941 2011-07-18 Matt Rice <ratmice@gmail.com>
944 * macrotab.h (macro_callback_fn): Add new arguments to callback.
945 * macrotab.c (foreach_macro): Ditto.
946 (foreach_macro_in_scope): Ditto.
947 * macrocmd.c (print_macro_callback): New function.
948 (info_macro_command): Move some code to print_macro_definition.
949 (print_macro_definition): New function.
950 (print_one_macro): Add new arguments to callback.
951 (info_definitions_command): New function.
952 (info_macros_command): Ditto.
953 (_initialize_macrocmd): Add info macros and info definitions commands.
954 * symtab.c (add_macro_name): Add new arguments to callback.
956 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
957 Tom Tromey <tromey@redhat.com>
959 * top.c (set_prompt): Rewrite to free previous prompt, free
960 asynch_new_prompt and set both on new prompts.
961 * event-top.c (display_gdb_prompt): Add prompt substitution
963 * python/python.c (before_prompt_hook): New function.
965 2011-07-20 Matt Rice <ratmice@gmail.com>
967 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
968 arguments to store_unsigned_integer.
970 2011-07-20 Tom Tromey <tromey@redhat.com>
972 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
973 in some declaration-only cases.
975 2011-07-18 Tom Tromey <tromey@redhat.com>
978 * dwarf2read.c (dwarf2_section_info_def): New typedef.
979 (struct dwarf2_per_objfile) <types>: Change to a VEC.
980 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
981 <debug_type_section>: New field.
982 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
983 (load_cu): Use appropriate section.
984 (create_signatured_type_table_from_index): Add 'section'
986 (dwarf2_read_index): Only allow a single .debug_types section.
987 (dw2_get_file_names): Use appropriate section.
988 (read_type_comp_unit_head): Add 'section' argument.
989 (create_debug_types_hash_table): Loop over all .debug_types
991 (init_cu_die_reader): Use appropriate section.
992 (process_psymtab_comp_unit, load_partial_comp_unit)
993 (load_full_comp_unit, read_die_and_children, find_partial_die)
994 (lookup_die_type, determine_prefix, follow_die_offset): Update.
995 (lookup_signatured_type_at_offset): Add 'section' argument.
996 (read_signatured_type_at_offset): Add 'sect' argument.
997 (read_signatured_type): Use appropriate section.
998 (set_die_type, get_die_type_at_offset): Update.
999 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1001 (write_psymtabs_to_index): Don't allow index with more than one
1002 .debug_types section.
1004 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1006 Fix crash if referenced CU is aged out.
1007 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1008 xfree of block.data.
1009 (indirect_pieced_value): New variable back_to, use to for xfree of
1011 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1013 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1014 (load_cu): New function from ...
1015 (dw2_do_instantiate_symtab): ... the code here ...
1016 (process_full_comp_unit): ... and here.
1017 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1020 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1022 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1025 2011-07-19 Gary Benson <gbenson@redhat.com>
1027 * infrun.c (struct execution_control_state): New member
1028 stop_func_filled_in.
1029 (clear_stop_func, fill_in_stop_func): New functions.
1030 (handle_inferior_event): Call clear_stop_func rather than
1031 manipulating the execution control state directly.
1032 Call fill_in_stop_func lazily as required rather than
1033 directly calling find_pc_partial_function in all cases.
1035 2011-07-18 Tom Tromey <tromey@redhat.com>
1037 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1038 checking for variable-sized array.
1040 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1042 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1043 of supported languages.
1044 * varobj.c: Add top definitions and basic implementation of the
1045 following callbacks: ada_number_of_children, ada_name_of_variable,
1046 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1047 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1048 (languages): Register Ada-specific callbacks.
1049 (variable_language): Add the Ada case in the language setter switch.
1051 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1053 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1055 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1058 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1059 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1060 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1061 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1062 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1063 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1064 (struct dwarf_expr_context_funcs): New, move here methods from ...
1065 (struct dwarf_expr_context): ... here. New fields funcs.
1066 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1067 (dwarf_expr_ctx_funcs): New.
1068 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1069 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1070 (needs_frame_ctx_funcs): New.
1071 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1073 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1075 * MAINTAINERS (Write After Approval): Add myself to the list.
1077 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1079 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1080 that CIE pointer of an FDE really points to a CIE .
1082 2011-07-15 Hui Zhu <teawater@gmail.com>
1084 * remote.c (remote_get_trace_status): Add comments.
1086 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1088 Code cleanup - constify struct lval_funcs.
1089 * dwarf2loc.c (pieced_value_funcs): Make it const.
1090 * infrun.c (siginfo_value_funcs): Likewise.
1091 * opencl-lang.c (opencl_value_funcs): Likewise.
1092 * valops.c (value_assign, value_ind): Make the funcs variable const.
1093 * value.c (struct value): Make location.computed.funcs target const.
1094 Rearrange the comments.
1095 (allocate_computed_value): Make the funcs parameter target const.
1096 (value_computed_funcs): Return the funcs target const.
1097 (value_free, value_copy, set_value_component_location): Make the funcs
1099 * value.h (allocate_computed_value): Make the funcs parameter target
1101 (value_computed_funcs): Return the funcs target const.
1102 * windows-tdep.c (tlb_value_funcs): Make it const.
1104 2011-07-14 Hui Zhu <teawater@gmail.com>
1106 * remote.c (remote_get_trace_status): Initialize p.
1108 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1111 * remote.c (remote_get_trace_status): New variable ex. Put
1112 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1114 2011-07-13 Tom Tromey <tromey@redhat.com>
1116 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1117 value_from_contents for final conversion.
1119 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1122 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1123 Indent prototypes so they do not get into tags.
1125 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1127 Code cleanup making also optimized out values lazy.
1128 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1129 allocate_optimized_out_value. Twice.
1130 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1131 * findvar.c (read_var_value): Likewise.
1132 * value.c (allocate_optimized_out_value): New function.
1133 * value.h (allocate_optimized_out_value): New declaration.
1135 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1137 Fix occasional crash of CTRL-C during DWARF read in.
1138 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1140 2011-07-11 Tom Tromey <tromey@redhat.com>
1142 * regcache.c (struct regcache_descr): Fix typo.
1143 * i387-tdep.c (i387_supply_xsave): Fix typo.
1145 2011-07-11 Tom Tromey <tromey@redhat.com>
1147 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1148 (read_file_scope, read_type_unit_scope): Use it.
1150 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1152 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1155 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1158 * python/python.c: Set gdbpy_should_print_stack default to off.
1159 (set_python): Deprecate maint set python print-stack to
1161 (_initialize_python): Deprecate maint set/show python print-stack.
1162 Add new prefix command, python. Add new setting, print-backtrace.
1163 * NEWS: Document set python print-stack. Document default change.
1165 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1167 * python/py-inferior.c (infpy_dealloc): New function.
1168 (inferior_to_inferior_object): Return a new object, or a
1169 new reference to the existing object.
1170 (find_thread_object): Cleanup references to inferior.
1171 (delete_thread_object): Ditto.
1172 * python/py-infthread.c (create_thread_object): Do not increment
1173 inferior reference count.
1175 2011-07-08 Tom Tromey <tromey@redhat.com>
1177 * dwarf2loc.c (locexpr_regname): New function.
1178 (locexpr_describe_location_piece): Use it.
1179 (disassemble_dwarf_expression): Add per_cu argument. Use
1181 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1182 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1184 (locexpr_describe_location_1): Add per_cu argument.
1185 (locexpr_describe_location): Update.
1186 (loclist_describe_location): Update.
1188 2011-07-08 Tom Tromey <tromey@redhat.com>
1190 * dwarf2expr.c (execute_stack_op): Add QUIT.
1192 2011-07-07 Hui Zhu <teawater@gmail.com>
1195 2011-07-06 Hui Zhu <teawater@gmail.com>
1196 * remote.c (remote_start_remote): Add TRY_CATCH for
1197 remote_get_trace_status.
1198 * tracepoint.c (disconnect_tracing): Ditto.
1200 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1202 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1203 variables as signed, not unsigned.
1205 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1207 * jit.c (jit_inferior_init): Reformat forward declaration.
1209 2011-07-06 Matt Rice <ratmice@gmail.com>
1211 * MAINTAINERS (Write After Approval): Add myself to the list.
1213 2011-07-06 Hui Zhu <teawater@gmail.com>
1215 * remote.c (remote_start_remote): Add TRY_CATCH for
1216 remote_get_trace_status.
1217 * tracepoint.c (disconnect_tracing): Ditto.
1219 2011-07-05 Tom Tromey <tromey@redhat.com>
1221 * symtab.c (operator_chars): Now static.
1222 * linespec.c (operator_chars): Don't declare.
1224 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1226 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1228 2011-07-05 Tom Tromey <tromey@redhat.com>
1230 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1231 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1232 (TYPE_CPLUS_REALLY_JAVA): New macro.
1233 * dwarf2read.c (process_structure_scope): Set
1234 TYPE_CPLUS_REALLY_JAVA.
1236 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1238 * ada-lang.c: Fix typos.
1239 * amd64-tdep.c: Likewise.
1240 * breakpoint.c: Likewise.
1241 * cli/cli-decode.c: Likewise.
1242 * findcmd.c: Likewise.
1243 * inline-frame.c: Likewise.
1244 * mi/mi-main.c: Likewise.
1245 * minsyms.c: Likewise.
1246 * monitor.c: Likewise.
1247 * monitor.h: Likewise.
1248 * prologue-value.c: Likewise.
1249 * reverse.c: Likewise.
1250 * s390-tdep.c: Likewise.
1252 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1254 * jit.c (jit_inferior_init): Forward declare.
1255 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1257 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1259 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1261 2011-07-04 Tristan Gingold <gingold@adacore.com>
1263 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1264 (tcb_fieldno): Add activation_link field.
1265 (get_known_tasks_addr): Moved and rewritten.
1266 (get_tcb_types_info): Set activation_link field.
1267 (read_known_tasks_array): Add parameter. Rewritten.
1268 (read_known_tasks_list): New function.
1269 (read_known_tasks): New function.
1270 (ada_build_task_list): Call read_known_tasks instead of
1271 read_known_tasks_array.
1272 * ravenscar-thread.c: Add first_task_name constant.
1273 (has_ravenscar_runtime): Check for task list too.
1275 2011-07-04 Tristan Gingold <gingold@adacore.com>
1277 * ada-tasks.c: Renames fieldno to actb_fieldno.
1278 (ada_get_task_number): Indentation.
1279 (get_tcb_types_info): Remove all parameters. Write directly
1281 (ptid_from_atcb_common): Adjust.
1282 (read_atcb): Adjust.
1284 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1286 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1288 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1290 * ui-out.c (ui_out_field_core_addr): Mention that the function
1291 description is in the header file.
1292 * ui-out.h (ui_out_field_core_addr): Document function.
1294 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1296 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1297 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1299 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1301 * symtab.c (expand_line_sal): Remove empty line.
1303 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1305 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1306 same way as ELFOSABI_NONE.
1307 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1309 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1311 * breakpoint.c: Fix typos in comments.
1312 * linespec.c: Likewise.
1313 * symtab.c: Likewise.
1315 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1317 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1318 section in separate object files.
1320 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1322 Fix false GCC warning.
1323 * linespec.c (decode_line_1): Initialize values.
1325 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1327 * linespec.c (find_method): Accept the function type automatically only
1328 if it was specified with parameter types.
1330 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1332 Stop on first linespec terminator instead of eating what we can.
1333 * linespec.c (is_linespec_boundary): New function.
1334 (name_end): Remove function.
1335 (keep_name_info): New parameter on_boundary, replace the body.
1336 (decode_line_1): Provide the parameter to keep_name_info.
1337 (decode_compound): Likewise. Drop the trailing java return type
1340 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1342 Fall back linespec to minimal symbols.
1343 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1344 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1345 (find_method, symbol_found): Change error to cplusplus_error.
1347 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1349 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1351 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1352 Tom Tromey <tromey@redhat.com>
1354 * dwarf2read.c (check_physname): New variable.
1355 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1356 (show_check_physname): New function.
1357 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1359 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1361 * machoread.c (macho_symfile_read): Delete OBE comment.
1363 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1365 * machoread.c (struct macho_oso_data): Delete.
1366 (current_oso): Delete.
1367 (macho_relocate_common_syms): New function, mostly extracted
1369 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1370 Remove code that sets and unset current_oso.
1371 (macho_symfile_relocate): Delete handling of common symbols,
1372 now moved to macho_relocate_common_syms.
1374 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1376 * darwin-nat.c (darwin_ptrace): Add documentation.
1377 Set errno to zero before calling ptrace. If ptrace returns
1378 -1 and errno is zero, then change then return zero.
1379 (darwin_kill_inferior): Issue a warning instead of triggering
1380 a failed assertion when the PT_KILL ptrace operations returned
1383 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1385 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1386 only when inf->private->no_ptrace.
1388 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1390 * ada-lang.c (print_it_exception): Print temporary catchpoints
1391 as "Temporary catchpoint".
1392 (print_mention_exception): Likewise.
1394 2011-07-01 Tom Tromey <tromey@redhat.com>
1396 * jv-lang.c (java_language_defn): Use java_printchar,
1398 (java_get_encoding): New function.
1399 (java_emit_char): Use generic_emit_char.
1400 (java_printchar): New function.
1401 (java_printstr): Likewise.
1403 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1405 * ada-typeprint.c (print_record_type): If unable to decode
1406 the name of the parent type, use the encoded name.
1408 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1410 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1411 pointer to constrained packed array type output.
1412 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1413 packed array output.
1415 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1417 * ada-typeprint.c (print_array_type): removed if condition on show
1418 being negative for bounds printing.
1420 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1422 * ada-lang.c (ada_identical_enum_types_p): New function.
1423 (symbols_are_identical_enums): New function.
1424 (remove_extra_symbols): Do nothing if NSYMS < 2.
1425 Use symbols_are_identical_enums.
1427 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1429 * ada-valprint.c (ada_value_print): Handle typedefs.
1431 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1433 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1435 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1437 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1438 (decode_constrained_packed_array): Likewise.
1439 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1441 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1443 * ada-exp.y (convert_char_literal): Handle typedef types.
1445 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1447 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1449 2011-06-30 Tom Tromey <tromey@redhat.com>
1451 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1452 * valops.c (find_overload_match): Call do_cleanups on early exit
1454 * solib.c (solib_find): Call do_cleanups on early exit path.
1456 2011-06-30 Tom Tromey <tromey@redhat.com>
1458 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1459 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1460 return paths. Defer final do_cleanups until last return.
1461 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1464 2011-06-30 Tom Tromey <tromey@redhat.com>
1466 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1468 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1470 * MAINTAINERS (Write After Approval): Add myself to the list.
1472 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1474 Disable epilogue unwinders on recent GCCs.
1475 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1476 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1477 * dwarf2read.c (process_full_comp_unit): Initialize
1478 EPILOGUE_UNWIND_VALID.
1479 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1480 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1481 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1483 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1485 Code cleanup - reformatting.
1486 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1487 (producer_is_gcc_ge_4): ... here, change the return value.
1488 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1491 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1493 Fix non-only rename list for Fortran modules import.
1494 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1495 cp_add_using_directive caller.
1496 (cp_add_using_directive): New parameter excludes, describe it. New
1497 variables ix and param. Compare if also excludes match. Allocate NEW
1498 with variable size, initialize EXCLUDES there.
1499 (cp_lookup_symbol_imports): New variable excludep, test
1500 current->EXCLUDES with it.
1501 * cp-support.h: Include vec.h.
1502 (struct using_direct): New field excludes, describe it.
1503 (DEF_VEC_P (const_char_ptr)): New.
1504 (cp_add_using_directive): New parameter excludes.
1505 * defs.h (const_char_ptr): New typedef.
1506 * dwarf2read.c (read_import_statement): New variables child_die,
1507 excludes and cleanups, read in excludes.
1508 (read_namespace): Adjust the cp_add_using_directive caller.
1510 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1513 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1514 negative comparisons.
1516 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1518 * mi/mi-main.c (mi_cmd_list_features): Emit
1519 breakpoint-notifications.
1521 2011-06-29 Tom Tromey <tromey@redhat.com>
1524 * valprint.h (generic_emit_char, generic_printstr): Declare.
1525 * valprint.c (wchar_printable, append_string_as_wide)
1526 (print_wchar): Move from c-lang.c.
1527 (generic_emit_char): New function; mostly taken from c_emit_char.
1528 (generic_printstr): New function; mostly taken from c_printstr.
1529 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1530 represented as arrays.
1531 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1533 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1534 identically to TYPE_CODE_INT.
1535 * f-lang.c (f_get_encoding): New function.
1536 (f_emit_char): Use generic_emit_char.
1537 (f_printchar): Replace comment.
1538 (f_printstr): Use generic_printstr.
1539 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1540 "character" types specially.
1541 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1543 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1545 (c_emit_char): Call generic_emit_char.
1546 (c_printstr): Call generic_printstr.
1548 2011-06-29 Gary Benson <gbenson@redhat.com>
1550 * breakpoint.c (bpstat_what): Removed duplicated case.
1552 2011-06-28 Tom Tromey <tromey@redhat.com>
1554 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1556 2011-06-27 Tom Tromey <tromey@redhat.com>
1558 * valops.c (find_overload_match): Call do_cleanups before early
1560 * top.c (execute_command): Call do_cleanups before early return.
1561 (command_loop): Likewise.
1562 * stack.c (backtrace_command): Make a null cleanup early. Don't
1563 conditionally call do_cleanups.
1564 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1566 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1567 so cleanups are always run.
1568 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1569 * findcmd.c (parse_find_args): Call do_cleanups on early return
1571 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1572 Don't conditionally call do_cleanups.
1573 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1576 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1578 * MAINTAINERS (Write After Approval): Use default email address.
1580 2011-06-27 Joel Brobecker <brobecker@adacore.com>
1582 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1584 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1586 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1587 saved_regs_mask and copied_regs_mask fields.
1588 (sparc_record_save_insn): New prototype.
1589 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1590 (sparc_record_save_insn): New function.
1591 (sparc_analyze_prologue): Add head comment. Recognize store insns
1592 of call-saved registers. Use OFFSET consistently. Recognize flat
1593 frames and cache their settings.
1594 (sparc32_skip_prologue): Handle flat frames.
1595 (sparc_frame_cache): Add frame_offset to the base address.
1596 (sparc32_frame_cache): Adjust to new frame description.
1597 (sparc32_frame_prev_register): Likewise.
1598 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1599 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1600 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1601 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1602 frame by calling sparc_record_save_insn.
1603 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1604 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1605 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1607 2011-06-27 Tristan Gingold <gingold@adacore.com>
1609 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1610 field by map_addr and map_len.
1611 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1612 (munmap_section_buffer): Likewise.
1614 2011-06-24 Tom Tromey <tromey@redhat.com>
1616 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1617 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1618 * python/python.c (gdbpy_parameter): Make 'arg' const.
1619 (execute_gdb_command): Likewise.
1620 (gdbpy_decode_line): Likewise. Copy it.
1621 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1622 (gdbpy_write): Make 'arg' const.
1623 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1625 (gdbpy_lookup_type): Likewise.
1626 * python/py-prettyprint.c (print_children): Make 'name' const.
1627 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1628 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1630 * python/py-function.c (fnpy_init): Make 'name' const.
1631 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1632 (gdbpy_string_to_argv): Make 'input' const.
1633 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1635 * gdbtypes.h (lookup_typename): Update.
1636 * gdbtypes.c (lookup_typename): Make 'name' const.
1637 (lookup_struct): Likewise.
1638 (lookup_union): Likewise.
1639 (lookup_enum): Likewise.
1641 2011-06-24 Tom Tromey <tromey@redhat.com>
1643 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1644 gdb_thread_db.h. Move all common/ entries to be together.
1645 (TAGS): Don't depend on DEPFILES.
1647 2011-06-23 Yao Qi <yao@codesourcery.com>
1649 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1650 * remote.c (remote_start_remote): ... here.
1651 * monitor.c (monitor_open): ... here.
1653 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
1655 * gdbtypes.c (append_composite_type_field_aligned): Fix
1656 calculation of bit position based on alignment.
1658 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1660 * breakpoint.c (bpstat_stop_status): Call the check_status
1661 breakpoint_ops method.
1662 (print_one_breakpoint_location): Also print the condition for Ada
1663 exception catchpoints.
1664 (allocate_bp_location): New, factored out from
1665 allocate_bp_location.
1666 (allocate_bp_location): Adjust. Call the owner breakpoint's
1667 allocate_location method, if there is one.
1668 (free_bp_location): Call the locations's dtor method, if there is
1670 (init_raw_breakpoint_without_location): New breakpoint_ops
1672 (set_raw_breakpoint_without_location): Adjust.
1673 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1674 (set_raw_breakpoint): Adjust.
1675 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1676 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
1677 re_set and check_status methods.
1678 (init_catchpoint): Don't memset, initialize thread, addr_string
1679 and enable_state. Pass the ops down to init_raw_breakpoint.
1680 (install_catchpoint): Rename to ...
1681 (install_breakpoint): ... this, and make extern.
1682 (create_fork_vfork_event_catchpoint): Adjust.
1683 (catch_exec_breakpoint_ops): Install NULL allocate_location,
1684 re_set and check_status methods.
1685 (create_syscall_event_catchpoint): Adjust.
1686 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1687 (masked_watchpoint_breakpoint_ops): Install NULL
1688 allocate_location, re_set and check_status methods.
1689 (catch_exec_command_1): Adjust.
1690 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
1691 re_set and check_status methods.
1692 (create_ada_exception_breakpoint): Rename to ...
1693 (init_ada_exception_breakpoint): ... this. Add a struct
1694 breakpoint parameter, and delete the exp_string, cond_string and
1695 cond parameters. Use init_raw_breakpoint, and don't install or
1696 mention the breakpoint yet. Don't clear breakpoint fields that
1697 init_raw_breakpoint already clears.
1698 (re_set_breakpoint): Delete, split into ...
1699 (breakpoint_re_set_default, prepare_re_set_context): ... these new
1701 (breakpoint_re_set_one): Call the breakpoint's
1702 breakpoint_ops->re_set implementation, if there's one. Adjust.
1703 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
1704 (struct bp_location_ops): New type.
1705 (struct bp_location): New field `ops'.
1706 (struct breakpoint_ops): New `allocate_location', `re_set' and
1707 `check_status' fields. Make `breakpoint_hit''s description match
1709 (init_bp_location): Declare.
1710 (breakpoint_re_set_default): Declare.
1711 (create_ada_exception_breakpoint): Rename to ...
1712 (init_ada_exception_breakpoint): ... this. Add a struct
1713 breakpoint parameter, and delete the exp_string, cond_string and
1715 (install_breakpoint): Declare.
1716 * ada-lang.c: Include exceptions.h.
1717 <Ada exceptions description>: Update.
1718 (struct ada_catchpoint_location): New type.
1719 (ada_catchpoint_location_dtor): New function.
1720 (ada_catchpoint_location_ops): New global.
1721 (ada_catchpoint): New type.
1722 (create_excep_cond_exprs): New function.
1723 (dtor_exception, allocate_location_exception, re_set_exception)
1724 (should_stop_exception, check_status_exception): New functions.
1725 (print_one_exception, print_mention_exception)
1726 (print_recreate_exception): Adjust.
1727 (dtor_catch_exception, allocate_location_catch_exception)
1728 (re_set_catch_exception, check_status_catch_exception): New
1730 (catch_exception_breakpoint_ops): Install them.
1731 (dtor_catch_exception_unhandled)
1732 (allocate_location_catch_exception_unhandled)
1733 (re_set_catch_exception_unhandled)
1734 (check_status_catch_exception_unhandled): New functions.
1735 (catch_exception_unhandled_breakpoint_ops): Install them.
1736 (dtor_catch_assert, allocate_location_catch_assert)
1737 (re_set_catch_assert, check_status_catch_assert): New functions.
1738 (catch_assert_breakpoint_ops): Install them.
1739 (ada_exception_catchpoint_p): Delete.
1740 (catch_ada_exception_command_split)
1741 (ada_exception_catchpoint_cond_string): Rename exp_string
1742 parameter to excep_string. Adjust.
1743 (ada_parse_catchpoint_condition): Delete.
1744 (ada_exception_sal): Rename the exp_string parameter to
1745 excep_string. Delete the cond_string and cond parameters.
1747 (ada_decode_exception_location): Rename the exp_string parameter
1748 to excep_string. Delete the cond_string and cond parameters.
1750 (create_ada_exception_catchpoint): New function.
1751 (catch_ada_exception_command, ada_decode_assert_location)
1752 (catch_assert_command): Adjust.
1753 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
1755 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1757 * ada-lang.c: Include arch-utils.h.
1758 (ada_decode_exception_location): Make static.
1759 (catch_ada_exception_command): Moved here from breakpoint.c.
1760 (ada_decode_assert_location): Make static.
1761 (catch_assert_command): Moved here from breakpoint.c.
1762 (_initialize_ada_lang): Install the exception and assert
1763 catchpoint commands here.
1764 * ada-lang.h (ada_decode_exception_location)
1765 (ada_decode_assert_location): Delete declarations.
1766 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
1768 (create_ada_exception_breakpoint): Make extern.
1769 (catch_ada_exception_command, catch_assert_command): Moved to
1771 (add_catch_command): Make extern.
1772 (_initilize_breakpoint): Don't install the exception and assert
1773 catchpoint commands here.
1774 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
1776 (add_catch_command, create_ada_exception_breakpoint): Declare.
1778 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1780 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
1781 the breakpoint to the breakpoint chain here.
1782 (set_raw_breakpoint_without_location): Add the breakpoint to the
1783 breakpoint chain here.
1784 (init_raw_breakpoint): Adjust comments.
1785 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
1787 (init_catchpoint): Don't set the catchpoint's breakpoint number
1789 (install_catchpoint): New function.
1790 (create_fork_vfork_event_catchpoint)
1791 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
1792 use install_catchpoint.
1794 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1796 * breakpoint.c (create_catchpoint_without_mention)
1797 (create_catchpoint): Delete.
1799 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1801 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
1802 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1803 reference to exec_pathname.
1804 (struct exec_catchpoint): New type.
1805 (dtor_catch_exec): New function.
1806 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
1807 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
1808 (catch_exec_command_1): Adjust to use init_catchpoint.
1809 (delete_breakpoint): Remove reference to exec_pathname.
1811 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1813 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
1814 (struct breakpoint): Delete field `syscalls_to_be_caught'.
1815 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1816 reference to syscalls_to_be_caught.
1817 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
1819 (struct syscall_catchpoint): New type.
1820 (dtor_catch_syscall): New function.
1821 (insert_catch_syscall, remove_catch_syscall)
1822 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
1823 (print_recreate_catch_syscall): Adjust.
1824 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
1825 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
1826 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
1827 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1828 (masked_watchpoint_breakpoint_ops)
1829 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
1830 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
1831 there is one. Remove references to syscalls_to_be_caught.
1832 (catching_syscall_number): Adjust.
1833 * ada-lang.c (catch_exception_breakpoint_ops)
1834 (catch_exception_unhandled_breakpoint_ops)
1835 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
1837 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1839 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
1841 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1842 reference to forked_inferior_pid.
1843 (struct fork_catchpoint): New type.
1844 (breakpoint_hit_catch_fork, print_it_catch_fork)
1845 (print_one_catch_fork, breakpoint_hit_catch_vfork)
1846 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
1847 (create_fork_vfork_event_catchpoint): Adjust to use
1850 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1852 * breakpoint.c (add_to_breakpoint_chain)
1853 (init_raw_breakpoint_without_location): New functions, factored
1855 (set_raw_breakpoint_without_location): ... this one.
1856 (init_raw_breakpoint): New function, factored out from
1857 set_raw_breakpoint and adjusted to use
1858 init_raw_breakpoint_without_location.
1859 (set_raw_breakpoint): Adjust.
1860 (init_catchpoint): New function, factored out from
1861 create_catchpoint_without_mention and adjusted to use
1862 init_raw_breakpoint.
1863 (create_catchpoint_without_mention): Adjust.
1865 2011-06-22 Tom Tromey <tromey@redhat.com>
1867 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
1868 argument of 0 specially.
1870 2011-06-22 Yao Qi <yao@codesourcery.com>
1872 * infrun.c (handle_inferior_event): Remove write-only local variable
1873 `sw_single_step_trap_p'.
1875 2011-06-20 Tom Tromey <tromey@redhat.com>
1877 * symtab.c (lookup_language_this): End loop if block is NULL.
1879 2011-06-17 Tom Tromey <tromey@redhat.com>
1881 * valops.c (value_of_this): Use lookup_language_this.
1882 * symtab.h (lookup_language_this): Declare.
1883 * symtab.c (lookup_language_this): New function.
1884 (lookup_symbol_aux): Use lookup_language_this.
1885 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
1887 2011-06-17 Tom Tromey <tromey@redhat.com>
1889 * value.h (value_of_this): Update.
1890 (value_of_local): Remove.
1891 * valops.c (value_of_this): Rename from value_of_local. Change
1893 * p-exp.y (exp): Update.
1894 (variable): Likewise.
1895 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
1897 2011-06-17 Tom Tromey <tromey@redhat.com>
1899 * valops.c (value_of_local): Complain if NAME is NULL.
1900 * std-operator.def (OP_OBJC_SELF): Remove.
1901 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
1902 * objc-exp.y (name_not_typename): Use OP_THIS.
1903 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
1905 <OP_OBJC_SELF>: Remove.
1906 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
1908 2011-06-16 Tristan Gingold <gingold@adacore.com>
1910 * python/py-events.h (gdb_py_events): Make it extern.
1911 * python/py-evtregistry.c (gdb_py_events): Declare.
1913 2011-06-16 Hui Zhu <teawater@gmail.com>
1915 * remote.c (remote_trace_set_readonly_regions): Add check for
1916 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
1919 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1921 * arm-linux-tdep.c: Include "auxv.h".
1923 (ARM_LINUX_SIZEOF_VFP): Define.
1924 (arm_linux_supply_vfp): New function.
1925 (arm_linux_collect_vfp): Likewise.
1926 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
1927 (arm_linux_fpa_regset_sections): New variable.
1928 (arm_linux_vfp_regset_sections): Likewise.
1929 (arm_linux_core_read_description): New function.
1930 (arm_linux_init_abi): Install arm_linux_core_read_description and
1931 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
1932 appropriate for the architecture.
1933 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
1934 (tdesc_arm_with_m): Declare.
1935 (tdesc_arm_with_iwmmxt): Likewise.
1936 (tdesc_arm_with_vfpv2): Likewise.
1937 (tdesc_arm_with_vfpv3): Likewise.
1938 (tdesc_arm_with_neon): Likewise.
1939 * arm-linux-nat.c: Move features/*.c includes ...
1940 * arm-tdep.c: ... here.
1941 * arm-linux-nat.c (arm_linux_read_description): Move initializing
1942 target description data structures ...
1943 * arm-tdep.c (_initialize_arm_tdep): ... here.
1944 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
1945 HWCAP_VFPv3D16): Move definitions ...
1946 * arm-linux-tdep.h: ... here.
1948 2011-06-15 Hui Zhu <teawater@gmail.com>
1950 * remote.c (remote_trace_set_readonly_regions): Add a check for
1953 2011-06-14 Tom Tromey <tromey@redhat.com>
1955 * coffread.c (coffread_objfile): Rename from current_objfile.
1956 * dbxread.c (dbxread_objfile): Rename from current_objfile.
1957 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
1959 2011-06-14 Tom Tromey <tromey@redhat.com>
1961 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
1962 (class_symtab): Remove.
1963 (jv_dynamics_progspace_key): New global.
1964 (jv_per_objfile_free): Reset program space data. Update assert.
1965 Don't clear globals.
1966 (get_dynamics_objfile): Use and set program space data.
1967 (get_java_class_symtab): Use get_dynamics_objfile.
1968 (add_class_symbol): Likewise.
1969 (java_link_class_type): Likewise.
1970 (java_object_type, jv_clear_object_type, set_java_object_type):
1972 (get_java_object_type): Update. Don't cache result.
1973 (is_object_type): Don't call set_java_object_type.
1974 (_initialize_java_language): Don't set jv_type_objfile_data_key;
1975 initialize jv_dynamics_progspace_key.
1977 2011-06-14 Tom Tromey <tromey@redhat.com>
1979 * symtab.h (current_objfile): Don't declare.
1980 * objfiles.h (current_objfile): Don't declare.
1981 * objfiles.c (current_objfile): Remove.
1982 * mdebugread.c (current_objfile): New file-scope global.
1983 * dbxread.c (current_objfile): New file-scope global.
1984 * coffread.c (current_objfile): New file-scope global.
1986 2011-06-13 Pedro Alves <pedro@codesourcery.com>
1988 * top.h (line): Rename to ...
1989 (saved_command_line): ... this.
1990 (linesize): Rename to ...
1991 (saved_command_line_size): ... this.
1992 * top.c (line): Rename to ...
1993 (saved_command_line): ... this.
1994 (linesize): Rename to ...
1995 (saved_command_line_size): ... this.
1996 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
1997 * event-top.c (command_line_handler): Adjust.
1998 * main.c (captured_main): Adjust.
2000 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2002 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2003 get_frame_func instead of get_frame_pc to determine the code
2004 address used to construct the frame ID.
2005 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2006 (i386_epilogue_frame_this_id): Likewise.
2007 (i386_epilogue_frame_prev_register): New function.
2008 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2009 (i386_stack_tramp_frame_sniffer): Fix coding style.
2010 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2011 (i386_gdbarch_init): Fix comments.
2013 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2015 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2016 instruction when walking back through the instruction stream.
2018 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2020 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2021 fullname parameters order.
2023 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2026 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2028 * psymtab.c (map_symbol_filenames_psymtab)
2029 (map_partial_symbol_filenames): Likewise.
2030 * psymtab.h: Include symfile.h.
2031 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2032 * symfile.h (symbol_filename_ftype): New.
2033 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2034 map_symbol_filenames, clarify more the naming in comment.
2036 2011-06-07 Doug Evans <dje@google.com>
2038 * cc-with-index.sh: Fix typos in comment.
2039 Look for ../../gdb, for fullname.exp.
2041 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2042 Pedro Alves <pedro@codesourcery.com>
2044 * cli/cli-cmds.c (shell_escape): Use waitpid.
2045 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2047 2011-06-07 Tristan Gingold <gingold@adacore.com>
2049 * xcoffread.c (dwarf2_xcoff_names): New variable.
2050 (aix_process_linenos): Add a guard.
2051 (xcoff_symfile_finish): Free dwarf2.
2052 (xcoff_initial_scan): Add dwarf2 support.
2054 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2056 * infcall.c (run_inferior_call): Don't mask async. Instead force
2057 a synchronous wait, if the target can async.
2059 * target.h (struct target_ops): Delete to_async_mask.
2060 (target_async_mask): Delete.
2061 * target.c (update_current_target): Delete references to to_async_mask.
2062 * linux-nat.c (linux_nat_async_mask_value): Delete.
2063 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2064 to linux_nat_async_mask_value.
2065 (linux_nat_async_mask): Delete.
2066 (linux_nat_async, linux_nat_close): Remove references to
2067 linux_nat_async_mask_value.
2068 * record.c (record_async_mask_value): Delete.
2069 (record_async): Remove references to record_async_mask_value.
2070 (record_async_mask): Delete.
2071 (record_can_async_p, record_is_async_p): Remove references to
2072 record_async_mask_value.
2073 (init_record_ops, init_record_core_ops): Remove references to
2075 * remote.c (remote_async_mask_value): Delete.
2076 (init_remote_ops): Remove reference to remote_async_mask.
2077 (remote_can_async_p, remote_is_async_p): Remove references to
2078 remote_async_mask_value.
2079 (remote_async): Remove references to remote_async_mask_value.
2080 (remote_async_mask): Delete.
2082 * infrun.c (fetch_inferior_event): Don't claim registers changed
2083 if the current thread is already not executing.
2085 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2087 From Stephen Kitt <steve@sk2.org>
2088 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2089 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2091 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2093 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2094 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2096 2011-06-03 Tom Tromey <tromey@redhat.com>
2098 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2100 * python/py-exitedevent.c (create_exited_event_object): Change
2101 type of 'exit_code'. Optionally add exit_code attribute.
2102 (emit_exited_event): Change type of 'exit_code'.
2103 * python/py-event.h (emit_exited_event): Update.
2104 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2105 * infrun.c (handle_inferior_event): Set exit code fields on
2107 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2109 * inferior.c (exit_inferior_1): Initialize new fields.
2111 2011-06-03 Tom Tromey <tromey@redhat.com>
2113 * dwarf2expr.c (get_signed_type): New function.
2114 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2116 2011-06-02 Keith Seitz <keiths@redhat.com>
2118 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2120 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2122 * top.h (simplified_command_loop): Delete declaration.
2124 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2126 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2127 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2129 2011-06-01 Yao Qi <yao@codesourcery.com>
2131 * objfiles.h (obj_section_addr): Update reference to objfile from
2133 (obj_section_endaddr): Likewise.
2135 2011-06-01 Daniel Jacobowitz <drow@false.org>
2137 * MAINTAINERS: Update my email address and affiliation. Also
2138 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2140 2010-05-31 Keith Seitz <keiths@redhat.com>
2143 * linespec.c (get_search_block): New function.
2144 (find_methods): Add FILE_SYMTATB parameter and use it and
2145 get_search_block to pass an appropriate block to
2146 lookup_symbol_in_namespace.
2147 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2148 Check if *ARGPTR starts with a filename first.
2149 If it does, call locate_first_half again to locate the next
2150 "first half" of the linespec.
2151 Pass FILE_SYMTATB to decode_objc and decode_compound.
2152 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2153 (locate_first_half): Stop on the first colon seen.
2154 (decode_compound): Add FILE_SYMTAB parameter.
2155 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2156 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2157 get_search_block with lookup_symbol.
2158 (find_method): Add FILE_SYMTAB parameter and pass it to
2160 (decode_objc): Use get_search_block.
2162 2010-05-31 Keith Seitz <keiths@redhat.com>
2165 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2166 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2167 and CP_ANONYMOUS_NAMESPACE_LEN.
2168 (cp_is_anonymous): Likewise.
2169 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2170 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2171 * dwarf2read.c (namespace_name): Likewise.
2172 (fixup_partial_die): Likewise.
2173 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2174 seen in the input, keep it.
2176 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2178 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2179 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2180 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2181 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2182 * remote.c (_initialize_remote): Register
2183 async_remote_interrupt_twice directly as
2184 sigint_remote_twice_token event.
2186 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2188 * target.h (enum inferior_event_type): Delete INF_ERROR.
2189 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2191 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2193 * interps.c (interp_set): Don't cancel continuations.
2195 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2197 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2199 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2201 * continuations.h (continuation_ftype): Add `err' parameter.
2202 Document parameters.
2203 (do_all_continuations, do_all_continuations_thread)
2204 (do_all_intermediate_continuations)
2205 (do_all_intermediate_continuations_thread)
2206 (do_all_inferior_continuations): Add `err' parameter.
2207 * continuations.c (do_my_continuations_1, do_my_continuations)
2208 (do_all_inferior_continuations, do_all_continuations_ptid)
2209 (do_all_continuations_thread_callback)
2210 (do_all_continuations_thread, do_all_continuations)
2211 (do_all_intermediate_continuations_thread_callback)
2212 (do_all_intermediate_continuations_thread)
2213 (do_all_intermediate_continuations): Add `err' parameter, and pass
2214 it down all the way to the continuations proper.
2215 * inf-loop.c (inferior_event_handler): If fetching an inferior
2216 event throws an error, don't pop the target, and still call the
2217 continuations, but with `err' set. Adjust all other continuation
2219 * breakpoint.c (until_break_command_continuation): Add `err'
2221 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2222 issue another step if `err' is set.
2223 (struct until_next_continuation_args): New.
2224 (until_next_continuation): Add `err' parameter. Adjust.
2225 (until_next_command): Adjust.
2226 (struct finish_command_continuation_args): Add `thread' field.
2227 (finish_command_continuation): Add `err' parameter. Handle it.
2228 (finish_forward): Adjust.
2229 (attach_command_continuation): Add `err' parameter. Handle it.
2230 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2231 cancel the continuations.
2232 * interps.c (interp_set): Adjust to cancel the continuations.
2233 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2234 continuations rather than discarding.
2235 (free_thread): Don't clear thread inferior resources here.
2236 (delete_thread_1): Do it here instead. And do it before removing
2237 the thread from the threads list. Tag the thread as exited before
2238 clearing thread inferior resources.
2240 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2242 * infcall.c (call_function_by_hand): Rephrase error message.
2244 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2246 * defs.h (struct thread_info, struct inferior): Delete forward
2248 * breakpoint.h (struct thread_info): New forward declaration.
2249 * observer.sh (struct inferior): New forward declaration.
2250 * python/python-internal.h (struct inferior): New forward
2253 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2255 * defs.h (struct continuation, continuation_ftype)
2256 (continuation_free_arg_ftype, add_continuation)
2257 (do_all_continuations, do_all_continuations_thread)
2258 (discard_all_continuations, discard_all_continuations_thread)
2259 (add_intermediate_continuation, do_all_intermediate_continuations)
2260 (do_all_intermediate_continuations_thread)
2261 (discard_all_intermediate_continuations)
2262 (discard_all_intermediate_continuations_thread)
2263 (add_inferior_continuation, do_all_inferior_continuations)
2264 (discard_all_inferior_continuations): Move to ...
2265 * continuations.h: ... this new file.
2266 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2267 infcmd.c, inferior.c, infrun.c, interps.c: Include
2270 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2271 Doug Evans <dje@google.com>
2273 Fix PR 10970, PR 12702.
2274 * linux-nat.c (linux_lwp_is_zombie): New function.
2275 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2276 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2278 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2280 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2282 (add_continuation, add_intermediate_continuation)
2283 (add_inferior_continuation): Use them.
2284 * continuations.c (struct continuation): Use them.
2285 (make_continuation_ftype): Delete.
2286 (make_continuation, add_inferior_continuation, add_continuation)
2287 (add_intermediate_continuation): Use continuation_ftype and
2288 continuation_free_arg_ftype. Rename parameters to shorter names.
2290 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2292 * continuations.c (make_continuation): Make it return void.
2293 (do_my_continuations): Rename to ...
2294 (do_my_continuations_1): ... this. Remove old_chain parameter and
2296 (do_my_continuations): New.
2297 (discard_my_continuations): Rename to ...
2298 (discard_my_continuations_1): ... this. Remove old_chain
2299 parameter and adjust.
2300 (discard_my_continuations): New.
2301 (add_inferior_continuation): Simplify.
2302 (do_all_inferior_continuations): Reimplement on top
2303 do_my_continuations.
2304 (discard_all_inferior_continuations): Simplify.
2305 (add_continuation): Simplify.
2306 (do_all_continuations_ptid): Simplify.
2307 (discard_all_continuations_thread_callback): Simplify.
2308 (add_intermediate_continuation): Simplify.
2309 (discard_all_intermediate_continuations_thread_callback):
2312 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2314 * utils.c (struct continuation, add_continuation)
2315 (add_inferior_continuation)
2316 (do_all_inferior_continuations, discard_all_inferior_continuations)
2317 (restore_thread_cleanup, do_all_continuations_ptid)
2318 (do_all_continuations_thread_callback)
2319 (do_all_continuations_thread, do_all_continuations)
2320 (discard_all_continuations_thread_callback)
2321 (discard_all_continuations_thread, discard_all_continuations)
2322 (add_intermediate_continuation)
2323 (do_all_intermediate_continuations_thread_callback)
2324 (do_all_intermediate_continuations_thread)
2325 (do_all_intermediate_continuations)
2326 (discard_all_intermediate_continuations_thread_callback)
2327 (discard_all_intermediate_continuations_thread)
2328 (discard_all_intermediate_continuations): Move to ...
2329 * continuations.c: ... this new file, and adjust to no longer
2330 implement continuations on top of cleanups.
2331 * Makefile.in (SFILES): Add continuations.c.
2332 (COMMON_OBS): Add continuations.o.
2334 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2336 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2337 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2338 Internal error on invalid values.
2339 * reverse.c: Don't handle EXEC_ERROR.
2340 * mi/mi-main.c: Don't handle EXEC_ERROR.
2342 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2344 * record.c: Include event-loop.h, inf-loop.h.
2345 (record_beneath_to_async): New global.
2346 (tmp_to_async): New global.
2347 (record_async_inferior_event_token): New global.
2348 (record_open_1): Don't error out if async is enabled.
2349 (record_open): Handle to_async. Create an async event source in
2351 (record_close): Delete the async event source.
2352 (record_resumed): New global.
2353 (record_execution_dir): New global.
2354 (record_resume, record_core_resume): Set them. Register the
2355 target on the event loop.
2356 (record_wait): Rename to ...
2357 (record_wait_1): ... this. Add more debug output. Handle
2358 TARGET_WNOHANG, and the target beneath returning
2359 TARGET_WAITKIND_IGNORE.
2360 (record_wait): Reimplement on top of record_wait_1.
2361 (record_async_mask_value): New global.
2362 (record_async, record_async_mask, record_can_async_p)
2363 (record_is_async_p, record_execution_direction): New functions.
2364 (init_record_ops, init_record_core_ops): Install new methods.
2365 * infrun.c (fetch_inferior_event): Temporarily switch the global
2366 execution direction to the direction the target was going.
2367 (execution_direction): Change type to int.
2368 * target.c (default_execution_direction): New function.
2369 (update_current_target): Inherit and de_fault
2370 to_execution_direction.
2371 * target.h (struct target_ops) <to_execution_direction>: New
2373 (target_execution_direction): New macro.
2374 * inferior.h (execution_direction): Change type to int.
2376 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2378 * infcall.c (call_function_by_hand): Don't allow calling functions
2379 in reverse execution mode.
2381 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2383 * infcmd.c (finish_command): Allow async finish in reverse.
2385 2011-05-26 Yao Qi <yao@codesourcery.com>
2387 * gdb_thread_db.h: Delete. Move to ...
2388 * common/gdb_thread_db.h: ... here.
2390 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2392 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2393 function's entry point instead of a manually managed momentary
2394 breakpoint, and only ever issue one proceed call.
2395 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2396 doing a reverse-finish, switch to stepi mode, to do another step.
2397 (insert_step_resume_breakpoint_at_sal): Make public.
2398 (normal_stop): No need to save function value return registers if
2400 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2402 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2404 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2405 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2406 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2408 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2409 step-resume breakpoints.
2410 (print_it_typical): Handle bp_hp_step_resume.
2411 (bpstat_what): Ditto.
2412 (bptype_string): Ditto.
2413 (print_one_breakpoint_location): Ditto.
2414 (allocate_bp_location): Ditto.
2416 (breakpoint_re_set_one): Ditto.
2417 * infrun.c (handle_inferior_event): Adjust. Split
2418 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2419 BPSTAT_WHAT_HP_STEP_RESUME.
2420 (insert_step_resume_breakpoint_at_sal): Rename to ...
2421 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2422 parameter. Handle it.
2423 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2424 insert_step_resume_breakpoint_at_sal_1.
2425 (insert_step_resume_breakpoint_at_frame): Rename to ...
2426 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2427 set a high-priority step-resume breakpoint.
2428 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2429 (insert_step_resume_breakpoint_at_caller): Ditto.
2431 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2433 * breakpoint.c (iterate_over_related_breakpoints): New.
2434 (do_map_delete_breakpoint): New.
2435 (delete_command): Pass do_map_delete_breakpoint to
2436 map_breakpoint_numbers.
2437 (do_disable_breakpoint): New.
2438 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2440 (do_enable_breakpoint): Rename to ...
2441 (enable_breakpoint_disp): ... this.
2442 (enable_breakpoint): Adjust.
2443 (do_enable_breakpoint): New.
2444 (enable_once_breakpoint): Delete.
2445 (do_map_enable_breakpoint): New.
2446 (do_map_enable_once_breakpoint): New.
2447 (enable_once_command, enable_delete_command)
2448 (delete_trace_command): Iterate over the breakpoint's related
2451 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2453 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2454 for ALPHA_ZERO_REGNUM.
2455 (alpha_supply_int_regs): Explicitly supply zero as the value for
2456 ALPHA_ZERO_REGNUM in the register cache.
2457 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2459 2011-05-26 Yao Qi <yao@codesourcery.com>
2461 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2463 2011-05-26 Tristan Gingold <gingold@adacore.com>
2465 * symfile.h (struct dwarf2_section_names): New type.
2466 (struct dwarf2_debug_sections): New type.
2467 (dwarf2_has_info): Add parameter.
2468 * dwarf2read.c (dwarf2_elf_names): New variable.
2469 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2470 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2471 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2472 (dwarf2_has_info): Add names parameter. Pass names
2473 to dwarf2_locate_sections.
2474 (section_is_p): Rewrite using the names parameter.
2475 (dwarf2_locate_sections): Use section names from the names parameter.
2476 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2477 * elfread.c (read_psyms): Ditto.
2478 * machoread.c (macho_symfile_read): Ditto.
2480 2011-05-25 Andreas Schwab <schwab@redhat.com>
2483 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2485 2011-05-24 Keith Seitz <keiths@redhat.com>
2488 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2489 (decode_compound): Unconditionally call keep_name_info.
2491 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2493 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2494 scope, clear its command list.
2495 (map_breakpoint_numbers): Don't walk the related breakpoints list
2498 2011-05-24 Tom Tromey <tromey@redhat.com>
2500 * MAINTAINERS: Move Jim Blandy to past maintainers.
2502 2011-05-24 Tristan Gingold <gingold@adacore.com>
2504 * symfile.h (enum dwarf2_section_enum): New type.
2505 (dwarf2_get_section_info): New prototype.
2506 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2507 section_name by sect. Use a switch to select the info.
2508 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2509 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2511 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2513 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2514 shared library event breakpoint if there's no execution.
2516 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2518 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2519 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2521 2011-05-23 Tom Tromey <tromey@redhat.com>
2523 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2526 2011-05-23 Doug Evans <dje@google.com>
2528 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2529 entry for RuntimeError to doc string.
2531 2011-05-23 Jerome Guitton <guitton@adacore.com>
2533 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2534 sequence for probing loops.
2536 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2538 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2541 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2543 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2544 zero as the value for %g0 in the register cache.
2545 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2546 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2548 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2550 * infrun.c (proceed): Set previous_inferior_ptid here.
2551 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2552 inferior_ptid, not null_ptid.
2553 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2554 (fetch_inferior_event): Nor here.
2556 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2558 * inf-loop.c (inferior_event_handler): Only output a message if
2561 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
2563 * MAINTAINERS: Update my e-mail address.
2565 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2567 * infrun.c (proceed): Switch the inferior event loop to
2568 INF_EXEC_COMPLETE if the target refused to resume from a
2571 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2573 * infcmd.c: Include "inf-loop.h".
2574 (step_once): When stepping into an inline subroutine, pretend the
2575 target has run. If the target can async, switch the inferior
2576 event loop to INF_EXEC_COMPLETE.
2577 * inferior.h (user_visible_resume_ptid): Declare.
2578 * infrun.c (user_visible_resume_ptid): New function, factored out
2581 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2582 that the current thread is running. Merge async and sync
2585 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2587 * infcmd.c (step_1): Simplify synchronous case.
2589 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2591 * tracepoint.c: Include exceptions.h.
2592 (TFILE_PID): Move higher in file.
2593 (tfile_open): Delay pushing the tfile target until we're assured
2594 the tfile header is present in the file. Wrap reading the initial
2595 newline-terminated lines in TRY_CATCH. Pop the target if the
2596 initial setup failed. Add the tfile's thread immediately
2597 aftwards, before any non-essential setup. Don't skip
2598 post_create_inferior if there are no traceframes present in the
2600 (tfile_close): Remove redundant check for null before xfree call.
2601 (tfile_thread_alive): New function.
2602 (init_tfile_ops): Register it as to_thread_alive callback.
2604 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2606 * tracepoint.c (tfile_open): Delete #if 0'd code.
2608 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2610 Fix -readnow for -gdwarf-4 unused type units.
2611 * dwarf2read.c (struct signatured_type): Remove the field offset.
2612 (create_signatured_type_table_from_index): Remove its initialization.
2613 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2614 instead. Add a complaint call.
2615 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2616 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2617 (lookup_signatured_type_at_offset, read_signatured_type)
2618 (write_one_signatured_type): Update the field for per_cu.
2620 2011-05-19 Tom Tromey <tromey@redhat.com>
2622 * python/py-inferior.c (python_inferior_exit): Use
2624 (python_on_resume): Likewise.
2626 2011-05-19 Matt Rice <ratmice@gmail.com>
2628 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2630 2011-05-19 Hui Zhu <teawater@gmail.com>
2632 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2634 2011-05-19 Hui Zhu <teawater@gmail.com>
2636 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2638 2011-05-18 Tom Tromey <tromey@redhat.com>
2640 * dwarf2read.c (dwarf2_add_field): Constify.
2641 * value.c (value_static_field): Constify.
2642 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2644 * ax-gdb.c (gen_static_field): Constify
2646 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2648 * linux-nat.c (kill_callback): Use SIGKILL first.
2650 2011-05-18 Joel Brobecker <brobecker@adacore.com>
2652 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2654 2011-05-18 Tom Tromey <tromey@redhat.com>
2656 * value.c (value_fn_field): Constify.
2657 * symtab.c (gdb_mangle_name): Constify.
2658 * stabsread.c (update_method_name_from_physname): Make 'physname'
2660 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2661 const. Use explicit fputc_filtered loop.
2662 (pascal_type_print_base): Constify.
2663 * p-lang.h (pascal_type_print_method_args): Update.
2664 * linespec.c (add_matching_methods): Constify.
2665 (add_constructors): Likewise.
2666 * jv-typeprint.c (java_type_print_base): Constify.
2667 * gdbtypes.h (struct cplus_struct_type)
2668 <fn_fieldlist.fn_field.physname>: Now const.
2669 * dwarf2read.c (compute_delayed_physnames): Constify.
2670 (dwarf2_add_member_fn): Likewise.
2671 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2673 2011-05-18 Pedro Alves <pedro@codesourcery.com>
2675 * infrun.c (resume): Mention which is the current thread, and its
2676 current PC in debug output.
2677 (prepare_to_proceed): Mention the thread switching in debug
2680 2011-05-18 Tom Tromey <tromey@redhat.com>
2682 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
2683 path check. Use xmalloc and cleanups.
2684 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2686 2011-05-17 Tom Tromey <tromey@redhat.com>
2688 * cp-valprint.c (cp_print_value_fields): Catch errors from
2691 2011-05-17 Tom Tromey <tromey@redhat.com>
2693 * dwarf2read.c (dwarf2_get_die_type): Call
2694 get_die_type_at_offset.
2695 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
2696 get_base_type function.
2698 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
2700 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
2703 2011-05-16 Doug Evans <dje@google.com>
2705 * python/py-auto-load.c (source_section_scripts): Mention objfile
2708 2011-05-15 Doug Evans <dje@google.com>
2710 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
2711 (try_thread_db_load_from_pdir): Call it. If unable to find
2712 libthread_db in directory of libpthread, see if we're looking at
2713 the separate-debug-info copy.
2715 * python/py-autoload.c (print_script): Print "Missing" instead of
2716 "No" for missing scripts.
2717 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
2719 2011-05-13 Doug Evans <dje@google.com>
2721 * ui-file.c (stdio_file_write_async_safe): Add comment.
2723 2011-05-14 Hui Zhu <teawater@gmail.com>
2725 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
2727 2011-05-13 Doug Evans <dje@google.com>
2729 Support $pdir and $sdir in libthread-db-search-path.
2730 * NEWS: Mention $sdir,$pdir.
2731 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
2732 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
2733 (try_thread_db_load_from_sdir): New function.
2734 (try_thread_db_load_from_dir): New function.
2735 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
2736 system directories if search of libthread-db-search-path fails,
2737 that is now done via $sdir.
2738 (has_libpthread): New function.
2739 (thread_db_load): Remove search for libthread_db in directory of
2740 libpthread, that is now done via $pdir.
2742 * NEWS: Mention "info auto-load-scripts".
2743 * python/py-auto-load.c (struct auto_load_pspace_info): New member
2744 script_not_found_warning_printed.
2745 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
2746 all callers updated. Initialize script_not_found_warning_printed.
2747 (get_auto_load_pspace_data_for_loading): New function.
2748 (maybe_add_script): New function.
2749 (source_section_scripts): Simplify. Only print one warning regardless
2750 of the number of auto-load scripts not found.
2751 (clear_section_scripts): Clear script_not_found_warning_printed.
2752 (auto_load_objfile_script): Record script in hash table.
2753 (count_matching_scripts): New function.
2754 (maybe_print_script): Renamed from maybe_print_section_script, all
2755 callers updated. Rewrite to use ui_out_*.
2756 (info_auto_load_scripts): Renamed from
2757 maintenance_print_section_scripts, all callers updated.
2758 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
2759 renamed as "info auto-load-scripts".
2761 2011-05-13 Tom Tromey <tromey@redhat.com>
2763 * dwarf2expr.c (read_uleb128): Cast intermediate result.
2764 (read_sleb128): Likewise.
2766 2011-05-13 Tom Tromey <tromey@redhat.com>
2768 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
2771 2011-05-13 Doug Evans <dje@google.com>
2773 * linux-nat.c (debug_linux_nat_async): Delete.
2774 Replace all references to use debug_linux_nat instead.
2775 (show_debug_linux_nat_async): Delete.
2776 (sigchld_handler): Call ui_file_write_async_safe instead of
2778 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
2779 * ui-file.c (struct ui_file): New member to_write_async_safe.
2780 (null_file_write_async_safe): New function.
2781 (ui_file_write_async_safe): New function.
2782 (set_ui_file_write_async_safe): New function.
2783 (ui_file_new): Initialize to_write_async_safe.
2784 (stdio_file_write_async_safe): New function.
2785 (struct stdio_file): New member fd.
2786 (stdio_file_new): Initialize to_write_async_safe, fd.
2787 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
2789 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
2790 (set_ui_file_write_async_safe): Declare.
2791 (ui_file_write_async_safe): Declare.
2793 2011-05-13 Tom Tromey <tromey@redhat.com>
2795 * utils.c (do_value_free): New function.
2796 (make_cleanup_value_free): Likewise.
2797 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
2799 (dwarf2_loc_desc_needs_frame): Call
2800 make_cleanup_value_free_to_mark.
2801 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
2802 * dwarf2expr.c (free_dwarf_expr_context): Don't call
2804 (new_dwarf_expr_context): Don't call value_mark.
2805 * dwarf2-frame.c (execute_stack_op): Call
2806 make_cleanup_value_free_to_mark.
2807 * defs.h (make_cleanup_value_free): Declare.
2809 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2811 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
2812 prepare_execute_command.
2813 * top.c (prepare_execute_command): Return cleanup.
2814 (execute_command): Use cleanup from prepare_execute_command.
2815 * top.h (prepare_execute_command): Change prototype to return
2817 * defs.h (struct value): Add opaque declaration.
2818 (make_cleanup_value_free_to_mark): Add prototype.
2819 * utils.c (do_value_free_to_mark): New function.
2820 (make_cleanup_value_free_to_mark): Likewise.
2822 2011-05-12 Tom Tromey <tromey@redhat.com>
2824 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
2825 cast left-hand-side to unsigned.
2827 2011-05-12 Tom Tromey <tromey@redhat.com>
2830 * value.h (value_from_contents): Declare.
2831 * value.c (value_from_contents): New function.
2832 * dwarf2read.c (dwarf_stack_op_name): Add new values.
2833 (dwarf2_get_die_type): New function.
2834 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
2835 (allocate_piece_closure): Acquire reference to values.
2836 (read_pieced_value): Update for value-based expressions.
2837 (write_pieced_value): Likewise.
2838 (free_pieced_value_closure): Call value_free as needed.
2839 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
2840 Update for value-based expressions.
2841 * dwarf2loc.h (dwarf2_get_die_type): Declare.
2842 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
2843 <get_base_type>: New field.
2844 (struct dwarf_expr_piece) <v.value>: Change type.
2845 <v.regno>: New field.
2846 (struct dwarf_expr_context) <mark>: New field.
2847 (dwarf_expr_piece, dwarf_expr_fetch): Update.
2848 (dwarf_expr_pop, dwarf_expr_push): Remove.
2849 (dwarf_expr_push_address): Declare.
2850 * dwarf2expr.c (dwarf_arch_cookie): New global.
2851 (struct dwarf_gdbarch_types): New.
2852 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
2854 (dwarf_expr_push): Change type of 'value' argument. Update. Now
2856 (dwarf_expr_push_address): New function.
2857 (dwarf_expr_pop): Now static.
2858 (dwarf_expr_fetch): Change return type.
2859 (dwarf_require_integral): New function.
2860 (dwarf_expr_fetch): Simplify.
2861 (add_piece): Update.
2862 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
2864 (execute_stack_op) <sign_ext>: Remove.
2865 Use values for DWARF stack.
2866 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
2867 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2869 (_initialize_dwarf2expr): New function.
2870 (add_piece): Update.
2871 (new_dwarf_expr_context): Set new field.
2872 (free_dwarf_expr_context): Call value_free_to_mark.
2873 * dwarf2-frame.c (no_base_type): New function.
2874 (execute_stack_op): Set get_base_type field. Update.
2876 2011-05-12 Tom Tromey <tromey@redhat.com>
2878 * dwarf2read.c (read_common_block): Fix formatting.
2880 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
2882 * breakpoint.c (disable_breakpoint): Disable all locations
2883 associated with a tracepoint on target if a trace experiment is
2885 (disable_command): Disable a specific tracepoint location on target if
2886 a trace experiment is running.
2887 (do_enable_breakpoint): Enable all locations associated with a
2888 tracepoint on target if a trace experiment is running.
2889 (enable_command) Enable a specific tracepoint location on target if a
2890 trace experiment is running.
2891 * target.c (update_current_target): Add INHERIT and de_fault clauses for
2892 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2893 to_disable_tracepoint.
2894 * target.h: Add declaration of struct bp_location.
2895 (struct target_ops): Add new functions
2896 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2897 to_disable_tracepoint to target operations.
2898 (target_supports_enable_disable_tracepoint): New macro.
2899 (target_enable_tracepoint): New macro.
2900 (target_disable_tracepoint): New macro.
2901 * remote.c (struct remote_state): Add new field.
2902 (remote_enable_disable_tracepoint_feature): New.
2903 (remote_protocol_features): Add new entry.
2904 (remote_supports_enable_disable_tracepoint): New.
2905 (remote_enable_tracepoint): New.
2906 (remote_disable_tracepoint): New.
2907 (init_remote_ops): Add remote_enable_tracepoint,
2908 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
2909 to remote operations.
2910 * tracepoint.c (start_tracing): Allow tracing to start without any
2911 tracepoints enabled with just a warning if they can be re-enabled
2913 * NEWS: Add news item for the new behaviour of the enable and disable
2914 GDB commands when applied to tracepoints.
2915 Add news items for the new remote packets QTEnable and QTDisable.
2917 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2919 * config.in: Regenerate.
2920 * configure: Regenerate.
2921 * configure.ac <--with-system-readline> (for readline_echoing_p):
2923 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
2924 (tui_old_rl_echoing_p): ... here.
2925 (tui_setup_io): Rename extern declaration readline_echoing_p to
2926 _rl_echoing_p. Adjust assignments for the both renames.
2928 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2930 * symtab.c (lookup_symtab): Run cleanup before returning.
2932 2011-05-11 Tom Tromey <tromey@redhat.com>
2934 * dwarf2read.c (handle_data_member_location): New function.
2935 (dwarf2_add_field): Use it.
2936 (read_common_block): Likewise.
2938 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2940 Make addrs->SECTINDEX always defined.
2941 * symfile.c (relative_addr_info_to_section_offsets): Check for
2942 SECTINDEX -1, not for zero ADDR.
2943 (addrs_section_compar): Remove checking for invalid SECTINDEX.
2944 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
2945 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
2948 2011-05-10 Doug Evans <dje@google.com>
2950 * linux-thread-db.c: Whitespace cleanup.
2951 (try_thread_db_load_1): Fix comment.
2953 * linux-thread-db.c (set_libthread_db_search_path): New function.
2954 (_initialize_thread_db): Add setter for libthread-db-search-path.
2956 2011-05-09 Doug Evans <dje@google.com>
2958 * NEWS: Mention --with-iconv-bin.
2959 * configure.ac: New option --with-iconv-bin.
2960 * configure: Regenerate.
2961 * config.in: Regenerate.
2962 * defs.h (relocate_gdb_directory): Declare.
2963 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
2964 removed progname parameter, and exported. All callers updated.
2965 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
2967 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
2968 adding missing call to restore_child_signals_mask.
2970 2011-05-09 Pedro Alves <pedro@codesourcery.com>
2972 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
2974 * infrun.c (proceed, start_remote): Adjust.
2975 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
2976 and adjust to not handle it.
2977 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2978 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2979 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2980 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2981 * windows-nat.c (do_initial_windows_stuff): Adjust.
2982 * infcmd.c (attach_command): Adjust.
2983 (notice_new_inferior): Adjust.
2985 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2987 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
2988 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
2989 * spu-tdep.c (op_selb): Use correct value.
2991 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2993 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
2994 "parent" parameter to symbol_file_add_from_bfd call.
2996 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2997 Thiago Jung Bauermann <bauerman@br.ibm.com>
2999 Implement support for PowerPC BookE masked watchpoints.
3000 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3002 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3003 method. Initialize to NULL in all existing breakpoint_ops instances.
3004 (struct breakpoint) <hw_wp_mask>: New field.
3005 * breakpoint.c (is_masked_watchpoint): Add prototype.
3006 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3007 breakpoint's breakpoint_ops.works_in_software_mode if available.
3008 (watchpoints_triggered): Handle the case of a hardware masked
3010 (watchpoint_check): Likewise.
3011 (works_in_software_mode_watchpoint): New function.
3012 (insert_masked_watchpoint, remove_masked_watchpoint)
3013 (resources_needed_masked_watchpoint)
3014 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3015 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3016 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3018 (masked_watchpoint_breakpoint_ops): New structure.
3019 (watch_command_1): Check for the existence of the `mask' parameter.
3020 Set b->ops according to the type of hardware watchpoint being created.
3021 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3022 (ppc_linux_remove_mask_watchpoint)
3023 (ppc_linux_masked_watch_num_registers): New functions.
3024 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3025 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3026 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3027 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3028 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3029 (target_masked_watch_num_registers): New functions.
3030 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3031 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3033 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3034 (target_masked_watch_num_registers): Add prototypes.
3036 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3039 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3040 (producer_is_gcc_ge_4_0): New function.
3041 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3042 symtab->language code.
3043 (var_decode_location): Set cu->has_loclist.
3044 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3045 skip. Intialize force_skip from locations_valid. Move the prologue
3046 skipping code into two passes.
3047 * symtab.h (struct symtab): Make the primary field a bitfield. New
3048 field locations_valid.
3050 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3052 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3053 (classify_inner_name): Call cp_lookup_nested_type with
3055 * cp-namespace.c (cp_lookup_nested_type): New variable
3056 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3057 type_name_no_tag_or_error with saved_parent_type.
3058 * dwarf2read.c (load_partial_dies): Read in any children of
3059 DW_TAG_typedef with complaint in such case.
3060 * gdbtypes.c (type_name_no_tag_or_error): New function.
3061 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3062 * valops.c (destructor_name_p): New comment for parameter type. Remove
3063 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3064 * value.h (destructor_name_p): Remove type const.
3066 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3068 * symtab.c (compare_symbol_name): New function.
3069 (completion_list_add_name, expand_partial_symbol_name): Call it,
3070 remove the variable ncmp.
3071 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3074 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3076 Demote to sw watchpoint only in update_watchpoint.
3077 * breakpoint.c (update_watchpoint): Change between software and
3078 hardware watchpoint for all kinds of watchpoints, not just
3079 read/write ones. Determine b->exact value here instead of
3080 in watch_command_1. Error out if there are not enough resources
3081 for a read or access hardware watchpoint.
3082 (watch_command_1): Remove logic of checking whether there are
3083 enough resources available, since update_watchpoint will do that
3084 work now. Don't set b->exact here. Catch exceptions thrown by
3085 update_watchpoint and delete the watchpoint.
3086 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3087 Use target_exact_watchpoints instead.
3088 (delete_breakpoint): Notify observers only if deleted watchpoint
3089 has a breakpoint number assigned to it.
3091 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3093 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3095 2011-05-05 Jerome Guitton <guitton@adacore.com>
3097 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3099 (i386_stack_tramp_frame_unwind): New static global.
3100 (i386_match_pattern): New function, extracted from i386_match_insn.
3101 (i386_match_insn): Use i386_match_pattern.
3102 (i386_match_insn_block): New function.
3103 (i386_tramp_chain_in_reg_insns)
3104 (i386_tramp_chain_on_stack_insns): New static variables.
3105 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3108 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3110 * configure.host (xscale*): Don't handle target.
3111 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3114 2011-05-04 Yao Qi <yao@codesourcery.com>
3116 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3118 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3121 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3122 | * elfread.c (elf_symtab_read): Stop memory leak.
3124 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3126 * nto-tdep.c (nto_target): Replace deprecated call to
3127 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3129 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3131 Fix false GCC warning.
3132 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3134 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3136 * breakpoint.c (update_watchpoint): Move code to change
3137 the enable state of breakpoint from here ...
3138 (do_enable_breakpoint): ... to here.
3140 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3142 * valprint.c (val_print_array_elements): Fixed poor performance
3143 of printing very large arrays with repeat_count_threshold set
3144 to unlimited. New comment.
3146 2011-04-29 Tom Tromey <tromey@redhat.com>
3148 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3149 (mi_parse): Likewise.
3150 * breakpoint.c (break_range_command): Use sizeof char*, not
3152 (create_breakpoint): Likewise.
3153 (parse_breakpoint_sals): Likewise.
3155 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3157 * linux-nat.c (linux_child_remove_fork_catchpoint)
3158 (linux_child_remove_vfork_catchpoint)
3159 (linux_child_remove_exec_catchpoint): New functions.
3160 (linux_target_install_ops): Install them.
3162 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3166 * varobj.c (install_default_visualizer): Do not install a
3167 visualizer if the varobj is CPLUS_FAKE_CHILD.
3168 (construct_visualizer): Likewise.
3170 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3172 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3173 case insensitive comparison.
3175 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3177 * infrun.c (proceed): Revert previous change.
3178 (resume): Instead, handle the case of signal delivery while stepping
3179 off a breakpoint location here, and only if software single-stepping
3180 is used. Handle nested signals.
3182 2011-04-28 Yao Qi <yao@codesourcery.com>
3184 * arm-tdep.c (copy_unmodified): Rename to ...
3185 (arm_copy_unmodified): .. this. New.
3186 (copy_preload): Move common part to ...
3187 (install_preload): .. this. New.
3188 (arm_copy_preload): New.
3189 (copy_preload_reg): Move common part to ...
3190 (install_preload_reg): ... this. New.
3191 (arm_copy_preload_reg): New.
3192 (copy_b_bl_blx): Move common part to ...
3193 (install_b_bl_blx): .. this. New.
3194 (arm_copy_b_bl_blx): New.
3195 (copy_bx_blx_reg): Move common part to ...
3196 (install_bx_blx_reg): ... this. New.
3197 (arm_copy_bx_blx_reg): New.
3198 (copy_alu_reg): Move common part to ...
3199 (install_alu_reg): ... this. New.
3200 (arm_copy_alu_reg): New.
3201 (copy_alu_shifted_reg): Move common part to ...
3202 (install_alu_shifted_reg): ... this. New.
3203 (copy_ldr_str_ldrb_strb): Move common part to ...
3204 (install_ldr_str_ldrb_strb): ... this. New.
3205 (arm_copy_ldr_str_ldrb_strb): New.
3206 (copy_copro_load_store): Move some common part to ...
3207 (install_copy_copro_load_store): ... this. New.
3208 (arm_copy_copro_load_store): New.
3210 (arm_copy_svc): Renamed from copy_svc.
3211 (copy_undef): Delete.
3212 (arm_copy_undef): Renamed from copy_undef.
3213 (decode_ext_reg_ld_st): Delete.
3214 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3215 (decode_svc_copro): Delete.
3216 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3217 (copy_copro_load_store, copy_alu_imm): update callers.
3218 (copy_extra_ld_st, copy_block_xfer): Likewise.
3219 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3220 (decode_miscellaneous, decode_dp_misc): Likewise.
3221 (decode_ld_st_word_ubyte, decode_media): Likewise.
3222 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3223 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3224 (decode_unconditional, decode_miscellaneous): Likewise.
3225 (decode_media, decode_b_bl_ldmstm): Likewise.
3226 (arm_process_displaced_insn): Likewise..
3227 (decode_misc_memhint_neon): Delete.
3228 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3229 (decode_miscellaneous): Delete.
3230 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3231 (decode_dp_misc): Delete.
3232 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3233 (decode_ld_st_word_ubyte): Delete.
3234 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3235 (decode_media): Delete.
3236 (arm_decode_media): Renamed from decode_media.
3237 (decode_b_bl_ldmstm): Delete.
3238 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3239 (decode_ext_reg_ld_st): Delete.
3240 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3241 (decode_unconditional): Delete.
3242 (arm_decode_unconditional): Renamed from decode_unconditional.
3244 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3246 Case insensitive lookups implementation.
3247 * dwarf2read.c: Include ctype.h.
3248 (struct mapped_index): New field version.
3249 (mapped_index_string_hash): New parameter index_version. New comment
3250 for it. Call tolower appropriately.
3251 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3252 Choose the right index version for mapped_index_string_hash.
3253 (dwarf2_read_index): Support also the index version 5. Initialize the
3254 new struct mapped_index field version.
3255 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3256 (find_slot): Explain the version needs. Pass INT_MAX for the new
3258 (write_psymtabs_to_index): Produce version 5.
3259 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3260 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3261 * psymtab.c (lookup_partial_symbol): Find the
3262 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3264 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3266 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3267 (completion_list_add_name): New variable ncmp, initialize it, use it.
3268 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3269 * utils.c (strcmp_iw): Support case_sensitive_off.
3270 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3271 New function comment part. New variables saved_string1,
3272 saved_string2 and case_pass. Add a proper second pass.
3274 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3276 Replace re_comp/re_exec by regcomp/regexec.
3277 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3278 (search_symbols_name_matches): Use them, use regexec.
3279 (search_symbols): New variable retval_chain, adjust the use of
3280 old_chain against it. Replace re_comp by regcomp. Use the new struct
3281 search_symbols_data fields, use regexec instead of re_exec.
3283 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3285 Format the code for the next patch.
3286 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3287 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3288 New variables c1 and c2.
3290 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3292 * infrun.c (proceed): Do not single-step into signal delivery
3293 when stepping off a breakpoint location.
3294 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3295 (insert_step_resume_breakpoint_at_caller): Likewise.
3296 (insert_step_resume_breakpoint_at_sal): Likewise.
3297 (insert_longjmp_resume_breakpoint): Likewise.
3299 2011-04-27 Yao Qi <yao@codesourcery.com>
3301 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3303 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3305 * procfs.c (procfs_pass_signals): Fix advance declaration.
3307 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3309 * target.h (struct target_ops): Remove to_notice_signals;
3310 add to_pass_signals.
3311 (target_notice_signals): Remove.
3312 (target_pass_signals): Add prototype.
3313 * target.c (update_current_target): Remove to_notice_signals;
3314 mention to_pass_signals.
3315 (target_pass_signals): New function.
3316 (debug_to_notice_signals): Remove.
3317 (setup_target_debug): Do not install debug_to_notice_signals.
3319 * infrun.c (signal_pass): New global.
3320 (resume): Call target_pass_signals.
3321 (handle_inferior_event): Report all signals while stepping over
3322 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3323 are re-inserted when stepping over a signal handler.
3324 (signal_cache_update): New function.
3325 (signal_stop_update): Call it.
3326 (signal_print_update): Likewise.
3327 (signal_pass_update): Likewise.
3328 (handle_command): Call signal_cache_update and target_pass_signals
3329 instead of target_notice_signals.
3330 (_initialize_infrun): Initialize signal_pass.
3332 * linux-nat.c (pass_mask): New global.
3333 (linux_nat_pass_signals): New function.
3334 (linux_nat_create_inferior): Report all signals initially.
3335 (linux_nat_attach): Likewise.
3336 (linux_nat_resume): Use pass_mask to decide whether to directly
3337 handle an inferior signal.
3338 (linux_nat_wait_1): Likewise.
3339 (linux_nat_add_target): Install to_pass_signals callback.
3341 * nto-procfs.c (notice_signals): Remove.
3342 (procfs_resume): Do not call notice_signals.
3343 (procfs_notice_signals): Remove.
3344 (procfs_pass_signals): New function.
3345 (init_procfs_ops): Install to_pass_signals callback instead of
3346 to_notice_signals callback.
3347 (_initialize_procfs): Report all signals initially.
3349 * procfs.c (procfs_notice_signals): Remove.
3350 (procfs_pass_signals): New function.
3351 (procfs_target): Install to_pass_signals callback instead of
3352 to_notice_signals callback.
3353 (register_gdb_signals): Remove.
3354 (procfs_debug_inferior): Report all signals initially.
3355 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3357 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3358 parameters; use them instead of calling signal_..._state routines.
3359 (remote_notice_signals): Remove.
3360 (remote_start_remote): Report all signals initially.
3361 (remote_resume): Do not call remote_pass_signals.
3362 (_initialize_remote): Install to_pass_signals callback instead of
3363 to_notice_signals callback.
3365 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3367 * breakpoint.c (user_settable_breakpoint): Delete.
3368 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3369 (delete_command): Check user_breakpoint_p instead of looking at
3370 the breakpoint's type.
3371 (disable_command): Ditto.
3372 (enable_command): Ditto.
3373 (delete_trace_command): Use user_breakpoint_p instead of looking
3374 at the breakpoint number directly. When checking if there are
3375 user visible tracepoints, in order to know whether to ask the user
3376 for confirmation, check whether the breakpoint is actually a
3379 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3381 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3384 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3386 MI breakpoint notifications.
3388 * annotate.c (breakpoint_changed): Adjust parameter type.
3389 * breakpoint.c (set_breakpoint_condition): Adjust to change
3390 in breakpoint_modified type.
3391 (breakpoint_set_commands): Likewise.
3392 (do_map_commands_command): Likewise.
3393 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3394 changed after bumping hit count.
3395 (bpstat_stop_status): Likewise.
3396 (print_one_breakpoint_location): Don't wrap in tuple here.
3397 (print_one_breakpoint): Always print individual locations.
3398 For locations, use unnamed tuple.
3399 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3401 (create_catchpoint, create_syscall_event_catchpoint): Call
3402 breakpoint_created obsever.
3403 (mention): Don't call breakpoint_created observer.
3404 (create_breakpoint_sal): Call breakpoint_created observer.
3405 (create_breakpoint, watch_command_1): Likewise.
3406 (create_ada_exception_breakpoint): Likewise.
3407 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3408 (locations_are_equal): New.
3409 (update_breakpoint_locations): If locations were changed, notify.
3410 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3411 Call breakpoint_modified observer.
3413 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3414 (mi_cmd_break_insert): Don't set observers for modify and delete.
3415 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3416 (mi_breakpoint_created, mi_breakpoint_deleted)
3417 (mi_breakpoint_modified): New.
3418 (mi_interpreter_init): Hook the above.
3419 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3420 while -break-* commands are executing.
3421 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3422 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3424 (mi_ui_out_impl): Hook in mi_redirect.
3425 (mi_field_skip): True to the name, skip the field, don't output
3426 a field with an empty value.
3428 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3429 (gdbpy_breakpoint_deleted): Adjust.
3430 * tui/tui-hooks.c (tui_event_create_breakpoint)
3431 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3433 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3435 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3436 (procfs_remove_hw_watchpoint): Likewise.
3438 2011-04-26 Michael Walle <michael@walle.cc>
3440 * remote.c (remote_start_remote): Ack packet after sending the
3443 2011-04-26 Yao Qi <yao@codesourcery.com>
3445 * linux-nat.c: Move common macros to ...
3446 Include linux-ptrace.h.
3447 * common/linux-ptrace.h: ... here. New.
3449 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3451 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3452 !objfile_has_partial_symbols. New comment.
3453 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3454 SYM_READ_PSYMBOLS is not present. Extend the comment.
3455 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3457 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3459 * defs.h (ENUM_BITFIELD): Remove.
3461 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3462 Eli Zaretskii <eliz@gnu.org>
3464 * NEWS: Document the new gdbserver --once option.
3466 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3468 * MAINTAINERS: Update my email address.
3470 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3472 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3473 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3474 function call if __STDC_ISO_10646__ macro is defined.
3475 (intermediate_encoding): New prototype.
3476 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3477 to generate compile time error for unsupported gdb_wchar_t size.
3478 (ENDIAN_SUFFIX): New macro.
3479 (intermediate_encoding): New function.
3481 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3483 * ada-lang.c (struct add_partial_datum): Update the comment for
3484 expand_partial_symbol_name.
3485 (ada_add_partial_symbol_completions): Rename to ...
3486 (ada_expand_partial_symbol_name): ... here, change return type, update
3487 function comment, call symbol_completion_match instead of
3488 symbol_completion_add.
3489 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3490 and ada_expand_partial_symbol_name.
3491 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3493 (dw2_map_symbol_names): Remove.
3494 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3495 * psymtab.c (map_symbol_names_psymtab): Remove.
3496 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3497 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3499 (psym_functions): Unlist map_symbol_names_psymtab.
3500 (map_partial_symbol_names): Rename to ...
3501 (expand_partial_symbol_names): ... here, change the FUN type, call
3502 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3503 * psymtab.h (map_partial_symbol_names): Rename to ...
3504 (expand_partial_symbol_names): ... here, change the FUN type.
3505 * symfile.h (struct quick_symbol_functions): Update the description of
3506 expand_symtabs_matching. Remove map_symbol_names.
3507 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3508 (struct add_name_data): Update the comment for
3509 expand_partial_symbol_name.
3510 (add_partial_symbol_name): Rename to ...
3511 (expand_partial_symbol_name): ... here. Replace
3512 completion_list_add_name call by strncmp.
3513 (default_make_symbol_completion_list_break_on): Use now
3514 expand_partial_symbol_names and expand_partial_symbol_name.
3515 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3517 2011-04-20 Tom Tromey <tromey@redhat.com>
3519 * dwarf2read.c (save_gdb_index_command): Replace format
3520 documentation with a pointer to the manual.
3522 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3524 * regcache.c: Include remote.h.
3525 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3526 (regcache_dump): Handle regcache_dump_remote.
3527 (maintenance_print_remote_registers): New function.
3528 (_initialize_regcache): Install "maint print remote-registers"
3530 * remote.c (map_regcache_remote_table): New function, factored out
3532 (init_remote_state): ... here.
3533 (remote_register_number_and_offset): New.
3534 * remote.h (remote_register_number_and_offset): Declare.
3536 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3538 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3539 null_ptid, assume and allow a NULL address space, instead of
3540 asking the target for the ptid's address space.
3541 * infrun.c (ptid_is_pid): Remove assertion.
3543 2011-04-19 Tom Tromey <tromey@redhat.com>
3545 * windows-tdep.c (windows_xfer_shared_library):
3546 * windows-nat.c (get_module_name, windows_make_so):
3547 * v850-tdep.c (v850_handle_pushm):
3548 * utils.c (null_cleanup, gdb_realpath):
3549 * ui-out.c (get_next_header):
3550 * tracepoint.c (clear_traceframe_info):
3551 * symtab.c (lookup_symtab):
3552 * serial.h (struct serial_ops):
3553 * mipsread.c (read_alphacoff_dynamic_symtab):
3554 * infcmd.c (print_return_value):
3555 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3556 * f-exp.y (parse_number):
3557 * exceptions.c (catch_exceptions):
3558 * dummy-frame.c (dummy_frame_this_id):
3559 * defs.h (struct cleanup):
3560 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3561 * arm-tdep.c (arm_push_dummy_call):
3562 * amd64-tdep.h (amd64_collect_xsave):
3563 * amd64-tdep.c (amd64_collect_xsave):
3564 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3565 * README (typing): Remove duplicate words.
3566 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3567 * infrun.c (siginfo_value_read): Fix typo.
3568 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3569 * top.c (source_line_number): Add comma.
3571 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3573 * thread.c (any_live_thread_of_process): Prioritize threads
3574 that are not executing.
3575 * gdbthread.h (any_live_thread_of_process): Update comment
3576 as per above change.
3578 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3580 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3581 (scan_xcoff_symtab): Likewise.
3583 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3585 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3588 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3589 Pedro Alves <pedro@codesourcery.com>
3591 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3592 variables to simplify code and avoid == operator at end of
3593 line as this is against GNU coding standards.
3595 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3597 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3598 lm_name to name_lm to avoid conflict with lm_name function.
3600 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3602 ARI fixes: Use only lowercase function name for static functions.
3603 * nto-tdep.c (LM_ADDR): Rename to...
3604 (lm_addr): New function name.
3605 (nto_relocate_section_addresses): Adapt to change above.
3606 * solib-sunos.c (LM_ADDR): Rename to...
3607 (lm_addr): New function name.
3608 (LM_NEXT): Rename to...
3609 (lm_next): New function name.
3610 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3611 function name changes above.
3612 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3613 (lm_addr_from_link_map): New function name.
3614 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3615 (has_lm_dynamic_from_link_map): New function name.
3616 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3617 (lm_dynamic_from_link_map): New function name.
3618 (LM_ADDR_CHECK): Rename to...
3619 (lm_addr_check): New function name.
3620 (LM_NEXT): Rename to...
3621 (lm_next): New function name.
3622 (LM_PREV): Rename to...
3623 (lm_prev): New function name.
3624 (LM_NAME): Rename to...
3625 (lm_name): New function name.
3626 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3627 (ignore_first_link_map_entry): New function name.
3628 (svr4_keep_data_in_core): Adapt to function name changes above.
3629 (svr4_current_sos): Likewise.
3630 (enable_break): Likewise.
3631 (svr4_relocate_section_addresses): Likewise.
3633 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3636 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3637 sprintf. Simplify code and avoid loosing memory.
3638 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3639 (call0_frame_cache): Remove && operator from end of line.
3641 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3643 Fix libraries displacement if they change whether they were prelinked.
3644 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3645 does not match. Comment why.
3647 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3649 * corelow.c: Include wrapper.h.
3650 (core_open): Call now gdb_target_find_new_threads.
3651 * wrapper.c: Include target.h.
3652 (gdb_target_find_new_threads): New.
3653 * wrapper.h (gdb_target_find_new_threads): New declaration.
3655 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3657 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3658 even if !TARGET_HAS_EXECUTION.
3660 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3662 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3663 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3664 bfd_get_synthetic_symtab.
3665 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3666 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3667 parameter parent, remove the call to add_separate_debug_objfile.
3668 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3669 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3670 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3671 parent, new comment for it, call add_separate_debug_objfile for it.
3672 (symbol_file_add_separate): Pass objfile as the parameter parent,
3673 remove the call to add_separate_debug_objfile.
3674 (symbol_file_add_from_bfd): New parameter parent, pass it.
3675 (symbol_file_add): Pass NULL to the new parameter parent.
3676 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
3678 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3680 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
3683 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3685 Fix Python access to inlined frames.
3686 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
3687 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3689 2011-04-15 Tom Tromey <tromey@redhat.com>
3691 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
3693 2011-04-15 Gary Benson <gbenson@redhat.com>
3695 * MAINTAINERS: Add myself to write-after-approval section.
3697 2011-04-14 Mike Frysinger <vapier@gentoo.org>
3699 * remote-sim.c (sim_command_completer): New function.
3700 (_initialize_remote_sim): Set completer to sim_command_completer.
3702 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3704 * breakpoint.c (print_exception_catchpoint): Rename to ...
3705 (print_it_exception_catchpoint): ... this.
3706 (gnu_v3_exception_catchpoint_ops): Update with new name
3707 for print_it_exception_catchpoint.
3709 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
3711 * MAINTAINERS: Add myself for write after approval privileges.
3713 2011-04-13 Marek Polacek <mpolacek@redhat.com>
3715 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3717 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3719 * breakpoint.c (watch_command_1): Remove colon from exp_string.
3721 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3723 * breakpoint.c (save_breakpoints): Verify whether
3724 breakpoint_ops.print_recreate is defined before calling it.
3726 2011-04-11 Gary Benson <gbenson@redhat.com>
3728 Fix failure with --enable-maintainer-mode.
3729 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
3731 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3734 * symtab.c (search_symbols): Reorder the KIND description in the
3735 function comment. Remove the unused 4th element of types, types2,
3736 types3 and types4. New gdb_assert on KIND.
3737 (symtab_symbol_info): Remove the unused 4th element of classnames.
3738 New gdb_assert on KIND.
3739 * symtab.h (enum search_domain): New warning in the enum comment.
3740 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
3743 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3745 Fix crash of gdb save-index on a STABS file.
3746 * dwarf2read.c (write_psymtabs_to_index): Return also on no
3749 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3751 Fix DW_AT_accessibility compatibility with gcc-4.6+.
3752 * dwarf2read.c: Include ctype.h.
3753 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
3755 (dwarf2_add_field): Fix new_field->accessibility by calling
3756 dwarf2_default_access_attribute. Restructure setting accessibility
3758 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
3759 is_private and is_protected by calling
3760 dwarf2_default_access_attribute.
3762 2011-04-08 Kevin Buettner <kevinb@redhat.com>
3764 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
3765 to the initialization.
3767 2011-04-08 Steve Ellcey <sje@cup.hp.com>
3769 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
3772 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
3774 Remove support for old Cygwin 1.5 versions.
3775 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
3776 function on old Cygwin version.
3777 * windows-nat.c: Remove cygwin version check and always define
3778 __USEWIDE for Cygwin compilation.
3780 2011-04-07 Yao Qi <yao@codesourcery.com>
3782 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
3784 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
3785 (arm_copy_svc): Remove parameters INSN and TO.
3786 (decode_svc_copro): Update caller.
3787 * arm-tdep.h (struct displaced_step_closure): Remove parameters
3788 from function pointer `copy_svc_os'.
3790 2011-04-07 Yao Qi <yao@codesourcery.com>
3792 * arm-tdep.c (cleanup_branch): Set a correct return address in
3793 LR for ARM and Thumb.
3795 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3798 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
3799 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
3800 in the function comment, a new note on values compatibility.
3801 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
3802 * symtab.h (SYMBOL_HASH_NEXT): New.
3804 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
3806 * ppc-linux-nat.c (check_condition): Add len output parameter.
3807 Set it based on the memory region referenced in the condition
3808 expression. Update all callers.
3810 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3812 Fix crash regression on systems featuring .gdb_index.
3813 * objfiles.c (free_objfile): Move the
3814 forget_cached_source_info_for_objfile call earlier. Comment it.
3815 Extend the comment for objfile_free_data.
3817 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3819 Fix regression of displaying the debug format.
3820 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
3823 2011-04-04 Tom Tromey <tromey@redhat.com>
3825 * cli/cli-interp.c (struct captured_execute_command_args):
3827 (do_captured_execute_command): Remove.
3828 (safe_execute_command): Use TRY_CATCH.
3829 * cli/cli-script.c (struct wrapped_read_command_file_args):
3831 (wrapped_read_command_file): Remove.
3832 (script_from_file): Use TRY_CATCH.
3833 * exceptions.c (catch_exception): Remove.
3834 * exceptions.h (catch_exception): Remove.
3835 (deprecated_throw_reason): Update comment.
3836 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
3837 argument to 'context'.
3838 (mi_execute_command): Use TRY_CATCH.
3839 * remote.c (struct start_remote_args): Remove.
3840 (remote_start_remote): Update; change arguments.
3841 (remote_open_1): Use TRY_CATCH.
3843 2011-04-04 Tom Tromey <tromey@redhat.com>
3845 * tracepoint.c (scope_info): Update.
3846 * symtab.c (decode_line_spec): Update.
3847 * python/python.c (gdbpy_decode_line): Update.
3848 * linespec.h (decode_line_1): Update.
3849 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
3850 (decode_compound, find_method, symtab_from_filename)
3851 (decode_variable): Likewise.
3852 * cli/cli-cmds.c (edit_command): Update.
3853 (list_command): Update.
3854 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
3856 (create_breakpoint): Update.
3857 (until_break_command): Update.
3858 (addr_string_to_sals): Update.
3859 (decode_line_spec_1): Update.
3861 2011-04-04 Tom Tromey <tromey@redhat.com>
3863 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
3864 (do_captured_parse_breakpoint): Remove.
3865 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
3866 Use TRY_CATCH directly.
3868 2011-04-04 Tom Tromey <tromey@redhat.com>
3870 * symtab.h (free_symtab): Remove.
3871 (forget_cached_source_info_for_objfile): Declare.
3872 * symmisc.c (free_symtab): Remove.
3873 * source.c (forget_cached_source_info_for_objfile): New function.
3874 (forget_cached_source_info): Use it.
3875 * objfiles.c (free_objfile): Simplify check before calling
3876 clear_current_source_symtab_and_line. Call
3877 forget_cached_source_info_for_objfile.
3879 2011-04-04 Tom Tromey <tromey@redhat.com>
3881 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
3882 (new_symtab): Don't set `free_code' on symtab.
3883 (new_linetable): Properly handle size==0.
3884 * symtab.h (struct symtab) <free_code, free_func>: Remove.
3885 * symmisc.c (free_symtab): Don't free the linetable. Don't call
3887 * jv-lang.c (struct jv_per_objfile_data): New.
3888 (jv_per_objfile_free): Free the data.
3889 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
3890 (get_java_class_symtab): Set the `dict' field on the
3891 jv_per_objfile_data.
3892 (free_class_block): Remove.
3893 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
3896 2011-04-04 Tom Tromey <tromey@redhat.com>
3898 * symfile.c (reread_symbols): Update.
3899 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
3901 * objfiles.c (allocate_objfile): Update.
3902 * cp-support.h (cp_check_possible_namespace_symbols): Don't
3904 * cp-namespace.c (lookup_symbol_file): Don't call
3905 lookup_possible_namespace_symbol.
3906 (initialize_namespace_symtab, get_possible_namespace_block)
3907 (free_namespace_block, cp_check_possible_namespace_symbols)
3908 (check_possible_namespace_symbols_loop)
3909 (check_one_possible_namespace_symbol)
3910 (lookup_possible_namespace_symbol): Remove.
3911 (maintenance_cplus_namespace): Replace with notice.
3912 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
3914 2011-04-04 Tom Tromey <tromey@redhat.com>
3916 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
3917 * symtab.h (struct symtab) <producer, debugformat>: Now const.
3918 * symmisc.c (free_symtab): Don't free debugformat.
3919 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
3920 (record_debugformat, record_producer): Document.
3921 * buildsym.c (end_symtab): Don't save debugformat and producer
3923 (end_symtab): Don't free debugformat and producer fields.
3924 (record_debugformat): Don't call xstrdup.
3925 (record_producer): Likewise.
3927 2011-04-04 Tom Tromey <tromey@redhat.com>
3929 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
3930 (source_line_charpos, source_charpos_line): Remove.
3932 2011-04-04 Tom Tromey <tromey@redhat.com>
3934 * symtab.h (domain_enum): Split in two...
3935 (enum search_domain): New.
3936 (search_symbols): Update.
3937 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
3938 redundant declarations.
3939 (search_symbols): Change 'kind' argument to search_domain.
3941 (print_symbol_info): Likewise.
3942 (symtab_symbol_info): Likewise.
3943 * symfile.h (struct quick_symbol_functions)
3944 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
3945 <expand_symtabs_matching>: Likewise.
3946 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
3947 (expand_symtabs_matching_via_partial): Update.
3948 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
3949 (dw2_expand_symtabs_for_function): Update.
3950 * block.h: Moved anonymous enum...
3951 * defs.h (enum block_enum): ... here. Now named.
3953 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3955 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
3956 * version.in: Bump version to 7.3.50.20110403-cvs.
3958 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3960 * NEWS: Create a new section for the next release branch.
3961 Rename the section of the current branch, now that it has
3964 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3966 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
3967 for "fpscr" in target description.
3969 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3971 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
3972 initialize it. Delay HASH initialization. Strip the part after open
3973 parenthesis for languages with qualifiers. Call do_cleanups.
3975 2011-04-01 Tom Tromey <tromey@redhat.com>
3977 * utils.c (report_command_stats): Don't print `-' for negative
3980 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
3982 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
3983 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
3986 2011-04-01 Joel Brobecker <brobecker@adacore.com>
3988 * breakpoint.h (bpdisp_text): Add declaration.
3989 * breakpoint.c (bpdisp_text): Make non-static.
3990 * ada-lang.c: #include "mi/mi-common.h".
3991 (print_it_exception): Rewrite to improve GDB/MI output.
3993 2011-04-01 Pedro Alves <pedro@codesourcery.com>
3995 * arm-tdep.h (struct address_space): Add forward declaration.
3997 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3999 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4000 * arm-tdep.c (arm_override_mode): New global.
4001 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4002 execution mode heuristics.
4003 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4004 second single-step breakpoint if needed, using
4005 arm_insert_single_step_breakpoint.
4006 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4007 ARM execution mode, do not call thumb_get_next_pc_raw.
4008 (arm_get_next_pc): Encode execution mode in return value. Call
4009 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4010 (arm_insert_single_step_breakpoint): New function.
4011 (arm_software_single_step): Call it.
4012 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4013 argument to return execution mode of sigreturn target.
4014 (arm_linux_syscall_next_pc): Use it.
4015 (arm_linux_copy_svc): Update call.
4016 (arm_linux_software_single_step): Call
4017 arm_insert_single_step_breakpoint.
4019 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4021 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4024 2011-03-31 Tom Tromey <tromey@redhat.com>
4026 * varobj.c (update_dynamic_varobj_children): Properly handle
4027 errors from iterator.
4029 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4031 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4032 struct linkage name twice.
4034 2011-03-31 Tom Tromey <tromey@redhat.com>
4036 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4037 missing ">" to message.
4039 2011-03-31 Tom Tromey <tromey@redhat.com>
4041 * varobj.c (instantiate_pretty_printer): Remove duplicate
4044 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4046 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4047 if neither saved value nor register available (e.g. signal frame).
4049 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4051 * macroexp.c (expand): Avoid uninitialized variable
4054 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4056 * breakpoint.c (break_range_command): Fix typo in comment.
4058 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4059 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4061 Implement support for PowerPC BookE ranged breakpoints.
4062 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4063 * breakpoint.h (struct bp_target_info) <length>: New member
4065 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4066 instead of struct breakpoint as argument, and also add ASPACE
4067 and BP_ADDR arguments. Update all callers.
4068 (struct breakpoint_ops) <print_one_detail>: New method.
4069 (struct breakpoint) <addr_string_range_end>: New member variable.
4070 * breakpoint.c (breakpoint_location_address_match): Add function
4072 (insert_bp_location): Set bl->target_info.length.
4073 (breakpoint_here_p): Call breakpoint_location_address_match.
4074 (moribund_breakpoint_here_p): Likewise.
4075 (regular_breakpoint_inserted_here_p): Likewise.
4076 (breakpoint_thread_match): Likewise.
4077 (bpstat_stop_status): Likewise.
4078 (bpstat_check_location): Move call to
4079 breakpoint_ops.breakpoint_hit to the top.
4080 (print_one_breakpoint_location): Call
4081 breakpoint_ops.print_one_detail if available.
4082 (breakpoint_address_match_range): New function.
4083 (breakpoint_location_address_match): Likewise.
4084 (breakpoint_locations_match): Compare the length field of the
4086 (hw_breakpoint_used_count): Count resources used by all locations
4087 in a breakpoint, and use breakpoint_ops.resources_needed if
4089 (breakpoint_hit_ranged_breakpoint): New function.
4090 (resources_needed_ranged_breakpoint): Likewise.
4091 (print_it_ranged_breakpoint): Likewise.
4092 (print_one_ranged_breakpoint): Likewise.
4093 (print_one_detail_ranged_breakpoint): Likewise.
4094 (print_mention_ranged_breakpoint): Likewise.
4095 (print_recreate_ranged_breakpoint): Likewise.
4096 (ranged_breakpoint_ops): New structure.
4097 (find_breakpoint_range_end): New function.
4098 (break_range_command): Likewise.
4099 (delete_breakpoint): Free addr_string_range_end.
4100 (update_breakpoint_locations): Add SALS_END argument. Update
4101 all callers. Calculate breakpoint length if a non-zero SALS_END
4102 is given. Call breakpoint_locations_match instead of
4103 breakpoint_address_match.
4104 (reset_breakpoint): Find SaL of the end of the range if B is a
4106 (_initialize_breakpoint): Register break-range command.
4107 * defs.h (print_core_address): Add function prototype.
4108 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4110 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4111 (ppc_linux_remove_hw_breakpoint): Likewise.
4112 (_initialize_ppc_linux_nat): Initialize
4113 to_ranged_break_num_registers.
4114 * target.c (update_current_target): Add comment about
4115 to_ranged_break_num_registers.
4116 (target_ranged_break_num_registers): New function.
4117 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4119 (target_ranged_break_num_registers): Add function prototype.
4120 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4121 * utils.c (print_core_address): ... here.
4123 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4125 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4126 variable compiler warning.
4128 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4130 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4132 (re_set_breakpoint): ... to here ...
4133 (addr_string_to_sals): ... and here.
4135 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4137 * Makefile.in (SFILES): Add missing C sources.
4138 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4139 Add missing headers.
4141 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4143 * .gitignore: New file.
4145 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4147 * NEWS: Mention new cfi device simulation.
4149 2011-03-29 Tom Tromey <tromey@redhat.com>
4151 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4152 otherwise anonymous types.
4153 (dwarf2_name): Likewise.
4154 * valops.c (value_struct_elt_for_reference): Refine artificial
4155 type logic. Call error if j==-1.
4157 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4159 Fix false GCC warning.
4160 * infcall.c (find_function_addr): Initialize funaddr.
4162 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4164 Fix mingw compilation with --enable-targets=all.
4165 * remote-mips.c (gdb_usleep.h): Include header.
4166 (mips_enter_debug): Use gdb_usleep instead of sleep.
4168 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4170 Support resolution of STT_GNU_IFUNC via breakpoints.
4171 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4172 bp_gnu_ifunc_resolver_return.
4173 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4174 the loop. Support bp_gnu_ifunc_resolver and
4175 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4176 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4178 (bptype_string, print_one_breakpoint_location): Support
4179 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4180 (user_settable_breakpoint): Return true also for
4181 bp_gnu_ifunc_resolver.
4182 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4183 bp_gnu_ifunc_resolver_return.
4184 (set_breakpoint_location_function): New parameter explicit_loc,
4185 describe it. Call find_pc_partial_function_gnu_ifunc with new
4186 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4187 EXPLICIT_LOC is not set.
4188 (set_raw_breakpoint): Set EXPLICIT_LOC for
4189 set_breakpoint_location_function.
4190 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4191 set_breakpoint_location_function.
4192 (mention): Support bp_gnu_ifunc_resolver and
4193 bp_gnu_ifunc_resolver_return.
4194 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4195 set_breakpoint_location_function.
4196 (update_breakpoint_locations): Remove static.
4197 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4198 bp_gnu_ifunc_resolver_return.
4199 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4200 bp_gnu_ifunc_resolver_return.
4201 (update_breakpoint_locations): New declaration.
4202 * elfread.c: Include gdbthread.h and regcache.h.
4203 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4205 (elf_gnu_ifunc_fns): Install them.
4206 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4207 (stub_gnu_ifunc_resolver_return_stop): New functions.
4208 (stub_gnu_ifunc_fns): Install them.
4209 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4210 and gnu_ifunc_resolver_return_stop.
4211 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4213 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4215 STT_GNU_IFUNC reader implementation.
4216 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4217 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4218 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4219 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4220 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4221 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4222 (elf_gnu_ifunc_resolve_addr): New.
4223 (elf_symfile_read): Call elf_rel_plt_read.
4224 (elf_gnu_ifunc_fns): New.
4225 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4226 Install elf_gnu_ifunc_fns.
4227 * infcall.c (find_function_return_type): New function.
4228 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4229 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4230 (stub_gnu_ifunc_resolve_name): New functions.
4231 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4232 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4233 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4235 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4237 Code cleanup for later STT_GNU_IFUNC support.
4238 * infcall.c (find_function_addr): Remove variable code, use explicit
4239 dereferences for it. Move VALUE_TYPE initialization later.
4241 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4243 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4244 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4245 (clear_pc_function_cache): Clear it.
4246 (find_pc_partial_function): Rename to ...
4247 (find_pc_partial_function_gnu_ifunc): ... this function. New
4248 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4249 (find_pc_partial_function): New wrapper for this function.
4250 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4252 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4254 GDB internal type support for STT_GNU_IFUNC.
4255 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4256 (elf_symtab_read): Set mst_text_gnu_ifunc for
4257 BSF_GNU_INDIRECT_FUNCTION.
4258 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4259 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4260 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4261 nodebug_got_plt_symbol.
4262 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4263 (TYPE_GNU_IFUNC): New.
4264 (struct main_type): New field flag_gnu_ifunc.
4265 (struct builtin_type): New field builtin_func_func.
4266 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4267 nodebug_got_plt_symbol.
4268 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4269 (in_gnu_ifunc_stub): New.
4270 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4272 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4273 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4274 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4276 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4277 * symtab.c (search_symbols): Likewise.
4278 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4279 and mst_slot_got_plt.
4280 (in_gnu_ifunc_stub): New declaration.
4282 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4284 Support a ring of related breakpoints.
4285 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4286 other functions, add gdb_assert.
4287 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4288 watchpoint_del_at_next_stop.
4289 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4290 (bpstat_stop_status): Handle ring in related_breakpoint.
4291 (set_raw_breakpoint_without_location): Initialize ring in
4293 (delete_breakpoint): Handle ring in related_breakpoint, use
4294 watchpoint_del_at_next_stop.
4295 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4297 2011-03-28 Tom Tromey <tromey@redhat.com>
4300 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4301 with `language_minimal'.
4303 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4305 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4306 instead of checking for STT_ARM_TFUNC symbol type.
4308 2011-03-25 Tom Tromey <tromey@redhat.com>
4310 * linespec.c (symbol_found): Restore line-based result for
4311 non-LOC_LABEL symbols.
4313 2011-03-25 Kai Tietz <ktietz@redhat.com>
4315 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4316 instead of strcmp for comparison.
4317 (tui_source_is_displayed): Likewise.
4318 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4320 2011-03-24 Mark Wielaard <mjw@redhat.com>
4322 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4324 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4325 (find_partial_die_in_comp_unit): Likewise in comment.
4326 (read_attribute_value): Likewise.
4327 (lookup_die_type): Likewise.
4328 (dwarf_form_name): Likewise.
4329 (dump_die_shallow): Likewise.
4330 (follow_die_ref_or_sig): Likewise.
4332 2011-03-24 Tom Tromey <tromey@redhat.com>
4334 PR breakpoints/11816:
4335 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4336 (decode_compound): Update.
4337 (find_function_symbol): New function.
4338 (decode_dollar): Update.
4339 (decode_label): Add 'function_symbol' parameter. Handle
4340 function-relative labels.
4341 (decode_variable): Update.
4342 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4343 not its line. Set `special_display' and canonical name for
4346 2011-03-24 Tom Tromey <tromey@redhat.com>
4348 * linespec.h (struct linespec_result) <special_display>: New
4350 * breakpoint.h (struct breakpoint) <display_canonical>: New
4352 * breakpoint.c (print_breakpoint_location): Respect
4354 (create_breakpoint_sal): Add 'display_canonical' parameter.
4355 (create_breakpoints_sal): Update.
4356 (create_breakpoint): Update.
4358 2011-03-24 Tom Tromey <tromey@redhat.com>
4360 * symtab.c (decode_line_spec): Update.
4361 * linespec.c (build_canonical_line_spec): Change type of
4363 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4364 (find_method, decode_all_digits, decode_dollar, decode_label)
4365 (symbol_found): Likewise.
4366 (init_linespec_result): New function.
4367 * breakpoint.c (struct captured_parse_breakpoint_args)
4368 <canonical_p>: New field, replaces addr_string_p.
4369 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4371 (parse_breakpoint_sals): Likewise.
4372 (do_captured_parse_breakpoint): Update.
4373 (create_breakpoint): Use struct linespec_result.
4374 (until_break_command): Update.
4375 (breakpoint_re_set_one): Update.
4376 (decode_line_spec_1): Update.
4377 * linespec.h (struct linespec_result): New.
4378 (init_linespec_result): Declare.
4380 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4382 * regcache.c (regcache_raw_read): If the target didn't supply a
4383 given raw register, mark it as unavailable.
4385 2011-03-23 Kai Tietz <ktietz@redhat.com>
4387 * breakpoint.c (clear_command): Use filename_cmp
4388 instead of strcmp for comparison.
4389 * buildsym.c (watch_main_source_file_lossage): Likewise.
4390 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4391 checking just for slash.
4392 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4393 strrchr and filename_cmp instead of strcmp for filenames.
4394 (add_old_header_file): Use filename_cmp
4395 instead of strcmp for comparison.
4396 * exec.c (exec_set_section_address): Likewise.
4397 * macrotab.c (macro_lookup_inclusion): Likewise.
4398 (macro_lookup_inclusion): Likewise.
4399 * elfread.c (_initialize_elfread): Likewise.
4400 (elfstab_offset_sections): Likewise.
4401 (elfstab_offset_sections): Use lbasename instead of
4403 * mdebugread.c (parse_partial_symbols): Likewise.
4404 (arse_partial_symbols): Use filename_(n)cmp instead of
4405 str(n)cmp for comparison.
4406 * minsyms.c (lookup_minimal_symbol): Likewise.
4407 * psymtab.c (read_psymtabs_with_filename): Likewise.
4408 * solib.c (solib_read_symbols): Likewise.
4409 (reload_shared_libraries_1): Likewise.
4410 * symmisc.c (maintenance_print_symbols): Likewise.
4411 * symfile.c (separate_debug_file_exists): Likewise.
4412 (reread_symbols): Likewise.
4413 (find_separate_debug_file_by_debuglink): Likewise.
4414 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4415 * source.c (add_path): Likewise.
4416 * symtab.c (filename_seen): Likewise.
4417 (file_matches): Likewise.
4418 (print_symbol_info): Likewise.
4419 (maybe_add_partial_symtab_filename): Likewise.
4420 (make_source_files_completion_list): Likewise.
4421 * xml-syscall.c (init_sysinfo): Likewise.
4422 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4423 IS_DIR_SEPARATOR for checking for trailing path separator.
4425 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4427 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4428 label abort_expression.
4429 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4430 DWARF_VALUE_OPTIMIZED_OUT.
4432 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4435 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4436 to linkage_name. Invert its value. Update the function comment.
4437 (c_type_print_varspec_suffix): Invert it at the caller.
4438 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4440 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4442 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4443 errors when reading the `stop_pc'.
4444 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4447 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4449 * NEWS: Document gdb.Write stream keyword.
4451 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4454 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4455 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4456 (dwarf2_add_field): Fix new_field->accessibility for
4457 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4459 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4463 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4464 other error classes. Do not print stack trace.
4466 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4468 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4469 (dwarf2_add_field): Fix new_field->accessibility for
4470 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4472 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4474 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4475 encountering a load via a non-SP register.
4477 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4479 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4480 field in returned unwinder.
4482 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4484 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4486 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4488 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4491 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4493 * frame.c (frame_unwind_register): Throw an error if unwinding the
4495 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4496 an unwind stop reason.
4497 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4498 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4499 UNWIND_UNAVAILABLE>: New.
4500 * inline-frame.c (inline_frame_unwind): Install
4501 default_frame_unwind_stop_reason.
4502 * frame-unwind.c: Include "exceptions.h".
4503 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4504 (default_frame_unwind_stop_reason): New.
4505 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4506 (default_frame_unwind_stop_reason): Declare.
4507 (struct frame_unwind) <stop_reason>: New function pointer.
4509 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4510 * dwarf2-frame.c: Include exceptions.h.
4511 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4512 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4513 computing the CFA. If such an error was thrown, set
4514 unavailable_retaddr.
4515 (dwarf2_frame_unwind_stop_reason): New.
4516 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4518 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4519 (dwarf2_signal_frame_unwind): Ditto.
4521 * amd64-tdep.c: Include "exceptions.h".
4522 (struct amd64_frame_cache): New field "base_p".
4523 (amd64_init_frame_cache): Clear it.
4524 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4525 Avoid reading registers with functions that throw if the register
4526 is not necessary to compute the frame base.
4527 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4528 swallowing NOT_AVAILABLE_ERROR.
4529 (amd64_frame_unwind_stop_reason): New.
4530 (amd64_frame_this_id): Don't build a frame id if the frame base
4532 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4533 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4534 base_p if the frame base was computable.
4535 (amd64_sigtramp_frame_unwind_stop_reason): New.
4536 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4537 frame base was unavailable.
4538 (amd64_sigtramp_frame_unwind): Install
4539 amd64_sigtramp_frame_unwind_stop_reason.
4540 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4541 base_p if the frame base was computable.
4542 (amd64_epilogue_frame_unwind_stop_reason): New.
4543 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4544 frame base was unavailable.
4545 (amd64_epilogue_frame_unwind): Install
4546 amd64_epilogue_frame_unwind_stop_reason.
4547 * i386-tdep.c: Include "exceptions.h".
4548 (struct i386_frame_cache): New field "base_p".
4549 (i386_init_frame_cache): Clear it.
4550 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4551 Avoid reading registers with functions that throw if the register
4552 is not necessary to compute the frame base.
4553 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4554 swallowing NOT_AVAILABLE_ERROR.
4555 (i386_frame_unwind_stop_reason): New.
4556 (i386_frame_this_id): Don't build a frame id if the frame base was
4558 (i386_frame_prev_register): Handle unavailable SP.
4559 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4560 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4561 base_p if the frame base was computable.
4562 (i386_epilogue_frame_unwind_stop_reason): New.
4563 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4564 base was unavailable.
4565 (i386_epilogue_frame_unwind): Install
4566 i386_epilogue_frame_unwind_stop_reason.
4567 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4568 base_p if the frame base was computable.
4569 (i386_sigtramp_frame_unwind_stop_reason): New.
4570 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4571 base was unavailable.
4572 (i386_sigtramp_frame_unwind): Install
4573 i386_sigtramp_frame_unwind_stop_reason.
4574 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4575 type's size, not the register's.
4576 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4578 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4579 default_frame_unwind_stop_reason.
4580 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4581 (alpha_heuristic_frame_unwind): Ditto.
4582 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4583 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4584 * avr-tdep.c (avr_frame_unwind): Ditto.
4585 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4587 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4588 * frv-tdep.c (frv_frame_unwind): Ditto.
4589 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4590 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4591 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4592 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4593 (hppa_stub_frame_unwind): Ditto.
4594 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4595 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4596 (ia64_libunwind_frame_unwind)
4597 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4598 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4599 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4600 * m32c-tdep.c (m32c_unwind): Ditto.
4601 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4602 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4603 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4604 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4605 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4606 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4607 * mep-tdep.c (mep_frame_unwind): Ditto.
4608 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4609 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4610 (mips_stub_frame_unwind): Ditto.
4611 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4612 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4613 * mt-tdep.c (mt_frame_unwind): Ditto.
4614 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4615 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4616 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4617 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4618 (s390_sigtramp_frame_unwind): Ditto.
4619 * score-tdep.c (score_prologue_unwind): Ditto.
4620 * sh-tdep.c (sh_frame_unwind): Ditto.
4621 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4622 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4623 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4624 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4625 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4626 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4627 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4628 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4629 (sparc64obsd_trapframe_unwind): Ditto.
4630 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4631 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4632 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4633 * v850-tdep.c (v850_frame_unwind): Ditto.
4634 * vax-tdep.c (vax_frame_unwind): Ditto.
4635 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4636 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4637 * xtensa-tdep.c (xtensa_unwind): Ditto.
4639 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4641 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4642 there's always a frame. Use get_frame_pc_if_available instead of
4643 get_frame_pc, and if there's no PC available, don't look up a
4646 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4648 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4651 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4653 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4656 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4658 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4659 * frame.c (frame_unwind_caller_pc_if_available): New.
4660 * stack.c (frame_info): Handle unavailable PC.
4662 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4664 * frame.c (frame_unwind_pc): Rename to ...
4665 (frame_unwind_pc_if_available): ... this. New `pc' output
4666 parameter. Change return type to int. Gracefully handle
4667 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4668 happened, or 1 otherwise.
4669 (frame_unwind_pc): Reimplement on top of
4670 frame_unwind_pc_if_available.
4671 (get_frame_func): Rename to ...
4672 (get_frame_func_if_available): New `pc' output parameter. Change
4673 return type to int. Gracefully handle the PC not being available.
4674 (get_frame_func): Reimplement on top of
4675 get_frame_func_if_available.
4676 (select_frame): Handle the PC being unavailable.
4677 (get_prev_frame): Handle the PC being unavailable.
4678 (get_frame_pc_if_available): New.
4679 (get_frame_address_in_block_if_available): New.
4680 (find_frame_sal): Handle the frame PC not being available.
4681 * frame.h (get_frame_pc_if_available): Declare.
4682 (get_frame_address_in_block_if_available): Declare.
4683 (get_frame_func_if_available): Declare.
4684 * stack.c (print_frame_info): Handle the PC being unavailable.
4685 (find_frame_funname): Ditto.
4686 (print_frame): Handle the PC being unavailable.
4687 (get_frame_language): Ditto.
4688 * blockframe.c (get_frame_block): Ditto.
4689 * macroscope.c (default_macro_scope): Ditto.
4690 * tui/tui-stack.c (tui_show_frame_info): Ditto.
4692 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4694 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
4695 NOT_AVAILABLE_ERROR when evaluating the location expression.
4697 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4699 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
4700 returning that the register piece is unavailable/optimized out.
4701 (write_pieced_value): Handle get_frame_register_bytes returning
4702 that the register piece is unavailable/optimized out when doing a
4703 read-modify write of a bitfield.
4704 * findvar.c (value_from_register): Handle get_frame_register_bytes
4705 returning that the register piece is unavailable/optimized out.
4706 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
4707 and `unavailablep'. Throw error on bad debug info. Use
4708 frame_register instead of frame_register_read, to fill in the new
4710 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
4712 * valops.c: (value_assign): Adjust, and handle
4713 get_frame_register_bytes failing.
4714 * spu-tdep.c: Include exceptions.h.
4715 (spu_software_single_step): Adjust, and handle
4716 get_frame_register_bytes failing.
4717 (spu_get_longjmp_target): Ditto.
4718 * gdbarch.sh (register_to_value): Change to return int. New
4719 parameters `optimizedp' and `unavailablep'.
4720 * gdbarch.h, gdbarch.c: Regenerate.
4721 * i386-tdep.c (i386_register_to_value): Adjust to new
4722 gdbarch_register_to_value interface.
4723 * i387-tdep.c (i387_register_to_value): Ditto.
4724 * i387-tdep.h (i387_register_to_value): Ditto.
4725 * alpha-tdep.c (alpha_register_to_value): Ditto.
4726 * ia64-tdep.c (ia64_register_to_value): Ditto.
4727 * m68k-tdep.c (m68k_register_to_value): Ditto.
4728 * mips-tdep.c (mips_register_to_value): Ditto.
4729 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
4731 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4733 * findvar.c (value_of_register): Mark the value as unavailable, if
4734 the register is unavailable.
4735 * frame.h (frame_register_unwind): New `unavailablep' parameter.
4736 (frame_register): New `unavailablep' parameter.
4737 (frame_register_read): Update comment.
4738 * frame.c (frame_register_unwind): New `unavailablep' parameter.
4739 Set it if the register is unavailable. If the register is
4740 unavailable, clear the output buffer.
4741 (frame_register): New `unavailablep' parameter. Pass it down.
4742 (frame_unwind_register): Adjust.
4743 (put_frame_register): Adjust.
4744 (frame_register_read): Adjust. Also return false if the register
4746 (frame_register_unwind_location): Adjust.
4747 * sentinel-frame.c (sentinel_frame_prev_register): If the register
4748 is unavailable, mark the value accordingly.
4749 * stack.c (frame_info): Handle unavailable registers.
4751 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4753 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
4754 simplify, using regcache_cooked_read.
4756 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4758 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
4759 (regcache_raw_read_unsigned, regcache_raw_read_signed)
4760 (regcache_raw_read_unsigned, regcache_raw_read_part)
4761 (regcache_cooked_read, regcache_cooked_read_signed)
4762 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
4763 (regcache_cooked_read_ftype): Change return to enum
4765 * regcache.c: Include exceptions.h
4766 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
4767 (do_cooked_read): Change return to enum register_status. Always
4768 forward to regcache_cooked_read.
4769 (regcache_raw_read): Change return to enum register_status. If
4770 the register is not REG_VALID, memset the buffer. Return the
4772 (regcache_raw_read_signed): Handle non-REG_VALID registers and
4773 return the register's status.
4774 (regcache_raw_read_unsigned): Ditto.
4775 (regcache_cooked_read): Change return to enum register_status.
4776 Assert that with read-only regcaches, the register's status must
4777 be known. If the regcache is read-only, and the register is not
4778 REG_VALID, memset the buffer. Return the register's status.
4779 (regcache_cooked_read_signed): Change return to enum
4780 register_status. Handle non-REG_VALID registers and return the
4782 (regcache_cooked_read_unsigned): Change return to enum
4783 register_status. Handle non-REG_VALID registers and return the
4785 (regcache_xfer_part, regcache_raw_read_part)
4786 (regcache_cooked_read_part): Change return to enum
4787 register_status. Return the register's status.
4788 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
4790 (regcache_dump): Handle unavailable cooked registers.
4791 * frame.c (do_frame_register_read): Adjust interface to match
4792 regcache_cooked_read_ftype.
4793 * gdbarch.sh (pseudo_register_read): Change return to enum
4795 * gdbarch.h, gdbarch.c: Regenerate.
4797 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
4799 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
4800 register_status. If reading a raw register indicates the raw
4801 register is not valid, return the raw register's status,
4802 otherwise, return REG_VALID.
4803 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
4804 register_status. Handle non-REG_VALID raw registers and return
4805 the register's status.
4806 * arm-tdep.c (arm_neon_quad_read)
4807 (arm_pseudo_read): Change return to enum register_status. Handle
4808 non-REG_VALID raw registers and return the register's status.
4809 * avr-tdep.c (avr_pseudo_register_read): Ditto.
4810 * frv-tdep.c (frv_pseudo_register_read): Ditto.
4811 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
4812 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
4813 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
4815 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
4816 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
4817 (m32c_part_write, m32c_cat_read, m32c_cat_write)
4818 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
4819 (m32c_pseudo_register_read): Change return to enum
4820 register_status. Adjust.
4821 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
4822 enum register_status. Return the register's status.
4823 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
4824 register_status. Return the register's status.
4825 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
4826 * mips-tdep.c (mips_pseudo_register_read): Ditto.
4827 * mt-tdep.c (mt_pseudo_register_read): Ditto.
4828 * rs6000-tdep.c (move_ev_register_func): New typedef.
4829 (e500_move_ev_register): Use it. Change return to enum
4830 register_status. Return the register's status.
4831 (do_regcache_raw_read): New function.
4832 (do_regcache_raw_write): New function.
4833 (e500_pseudo_register_read): Change return to enum
4834 register_status. Return the register's status. Use
4835 do_regcache_raw_read.
4836 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
4837 (dfp_pseudo_register_read): Change return to enum register_status.
4838 Return the register's status.
4839 (vsx_pseudo_register_read): Ditto.
4840 (efpr_pseudo_register_read): Ditto.
4841 (rs6000_pseudo_register_read): Ditto.
4842 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
4843 register_status. Return the register's status.
4844 * sh64-tdep.c (pseudo_register_read_portions): New function.
4845 (sh64_pseudo_register_read): Change return to enum
4846 register_status. Use pseudo_register_read_portions. Return the
4848 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
4849 register_status. Return the register's status.
4850 * sh-tdep.c (pseudo_register_read_portions): New function.
4851 (sh_pseudo_register_read): Change return to enum register_status.
4852 Use pseudo_register_read_portions. Return the register's status.
4853 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
4854 enum register_status. Return the register's status.
4855 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
4856 * spu-tdep.c (spu_pseudo_register_read_spu)
4857 (spu_pseudo_register_read): Ditto.
4858 * xtensa-tdep.c (xtensa_register_read_masked)
4859 (xtensa_pseudo_register_read): Ditto.
4860 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
4862 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4864 * python/py-value.c (valpy_getitem): Fix formatting of error function
4867 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4869 ARI fixes: Add missing internationalization markups throughout
4871 * darwin-nat-info.c: Ditto.
4874 * mi/mi-main.c: Ditto.
4876 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4878 ARI fixes: Add missing internationalization markups throughout
4881 * cp-name-parser.y: Ditto.
4884 * objc-exp.y: Ditto.
4887 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4889 ARI fixes: Messages should have no trailing new lines.
4890 * darwin-nat.c (mach_check_error): Remove trailing new line from
4891 warning function call message.
4892 * record.c (bfdcore_read): Idem for error call.
4894 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4896 * common/signals.c (target_signal_from_host): Add _ markup to error
4897 function call message.
4898 (target_signal_to_host): Add _ markup and remove trailing new line
4899 from warning call message.
4900 (target_signal_from_command): Add _ markup to error function call
4903 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
4907 * python/python.c (gdbpy_write): Accept a stream argument and
4908 operate to the appropriate stream.
4909 (gdbpy_flush): Likewise.
4910 (_initialize_python): Add stream constants.
4911 (finish_python_initialization): Add GdbOutputErrorFile class.
4913 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4915 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4917 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4919 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
4920 to store_signed_integer. Add debug message when relocating CALL
4921 instructions. Fix formatting of debug message.
4922 * i386-tdep.c (i386_relocate_instruction): Ditto.
4924 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4926 * target.h (struct target_ops): Remove to_lookup_symbol field.
4927 (target_lookup_symbol): Delete macro.
4928 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
4929 (update_current_target, setup_target_debug): Remove handling
4930 of to_lookup_symbol target_ops field.
4931 * ada-tasks.c (get_known_tasks_addr): Remove use of
4932 target_lookup_symbol.
4933 * coffread.c (coff_symtab_read): Likewise.
4934 * dbxread.c (read_dbx_symtab): Ditto.
4936 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4939 * configure.ac: Add getthrds declaration check.
4940 * configure, config.in: Regenerate.
4941 * aix-thread.c (getthrds): Declare only if not already declared
4942 in procinfo.h. More declaration out of get_signaled_thread to
4945 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
4947 * python/py-symtab.c: Populate symtab_object_methods,
4949 (stpy_is_valid): New function.
4950 (salpy_is_valid): Ditto.
4951 * python/py-symbol.c: Declare symbol_object_methods. Populate.
4952 (sympy_is_valid): New function.
4953 * python/py-objfile.c: Declare objfile_object_methods. Populate.
4954 (objfpy_is_valid): New function.
4955 * python/py-inferior.c: Populate inferior_object_methods.
4956 (infpy_is_valid): New function.
4957 * python/py-infthread.c: Populate thread_object_methods.
4958 (thpy_is_valid): New function.
4959 * python/py-block.c: Declare block_object_methods. Populate. Declare
4960 block_iterator_object_methods. Populate.
4961 (blpy_is_valid): New function.
4962 (blpy_iter_is_valid): Ditto.
4964 2011-03-16 Keith Seitz <keiths@redhat.com>
4966 * linespec.c (find_methods): Canonicalize NAME before looking
4968 (name_end): New function.
4969 (keep_name_info): New function.
4970 (decode_line_1): Use keep_name_info.
4971 (decode_compound): Likewise.
4972 * cli/cli-utils.h (remove_trailing_whitespace): New function.
4973 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
4976 * linespec.c (locate_first_half): Keep overload information, too.
4977 (decode_compound): Use a string to represent break characters
4979 If P points to a break character, do not increment it.
4980 For C++ and Java, keep overload information and relevant keywords.
4981 If we cannot find a symbol, search the minimal symbols.
4984 * linespec.c (decode_compound): Rename SAVED_ARG to
4986 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
4988 Pass a valid block to lookup_symbol.
4989 (lookup_prefix_sym): Likewise.
4990 (find_method): Construct search name based on SYM_CLASS instead
4992 * psymtab.c (lookup_partial_symbol): Add language parameter.
4993 (lookup_symbol_aux_psymtabs): Likewise.
4994 Don't assume that the psymtab we found was the right one. Search
4995 for the desired symbol in the symtab to be certain.
4996 (psymtab_search_name): New function.
4997 (lookup_partial_symbol): Use psymtab_search_name.
4998 Add language parameter.
4999 (read_symtabs_for_function): Add language parameter and pass to
5000 lookup_partial_symbol.
5001 (find_symbol_file_from_partial): Likewise.
5003 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5006 * dwarf2read.c (noop_record_line): New function.
5007 (dwarf_decode_lines): Ignore line tables for GCd functions.
5009 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5011 Fix ARI warnings about new lines at the end of messages, which
5012 are unneeded as there is a new line added at the end of the message
5014 * darwin-nat.c (darwin_stop_inferior): Ditto.
5015 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5016 * dfp.c (decimal_to_number): Ditto.
5017 * exec.c (print_section_info): Ditto.
5018 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5019 * osdata.c (get_osdata): Ditto.
5020 * record.c (bfdcore_write): Ditto.
5021 * remote-mips.c (mips_readchar): Ditto.
5022 * remote.c (read_ptid): Ditto.
5023 * ser-mingw.c (ser_windows_raw): Ditto.
5024 * tracepoint.c (add_local_symbols): Ditto.
5025 * windows-nat.c (fake_create_process): Ditto.
5027 2011-03-16 Tom Tromey <tromey@redhat.com>
5029 * tracepoint.c (stop_tracing): Don't declare.
5030 * event-top.c (after_char_processing_hook): Add `(void)'.
5032 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5034 * NEWS: Add Parameter sub-classing description.
5036 2011-03-16 Kai Tietz <ktietz@redhat.com>
5038 * MAINTAINERS: Update my e-mail address.
5040 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5042 * MAINTAINERS: Add myself for write after approval privileges.
5044 2011-03-15 Michael Snyder <msnyder@vmware.com>
5046 * frame.c (find_frame_sal): Assert sym is not null.
5048 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5050 * objc-lang.c (selectors_info): Check strchr for null result.
5052 * stabsread.c (define_symbol): Guard against bad stabstring input.
5054 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5056 Remove trailing spaces and tabulations from pascal language
5061 p-valprint.c: Ditto.
5063 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5065 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5066 than LOW. Comment it.
5067 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5068 HIGHPC not strictly higher than LOWPC.
5070 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5072 Fix formatting of function declarations returning a pointer in
5074 * varobj.c (varobj_add_child): Ditto.
5075 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5076 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5078 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5080 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5081 for the "generic" vector ABI used with GCC 4.3 and later.
5082 (ppc64_sysv_abi_return_value): Likewise.
5084 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5086 * infcall.c (call_function_by_hand): Function return value is
5087 always a non_lval, even when using struct_return.
5089 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5091 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5092 (map_display_numbers): New.
5093 (do_delete_display): New.
5094 (undisplay_command): Use map_display_numbers.
5095 (do_enable_disable_display): New.
5096 (enable_disable_display_command): New function.
5097 (enable_display): Delete.
5098 (enable_display_command): New.
5099 (disable_display_command): Reimplement.
5100 (_initialize_printcmd): Adjust "enable display" command to use
5101 `enable_display_command' as callback.
5103 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5105 * NEWS: Add Python breakpoint 'stop' operation.
5107 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5109 * NEWS: Delete duplicate entry. Fix typo.
5111 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5113 Fix ARI warning about function names in first column.
5114 Put prototype declaration on same line as return type.
5115 * objc-exp.y: Ditto.
5117 * python/py-stopevent.h: Ditto.
5118 For long function names, split parameters to
5119 allow function name on same line as return type.
5120 * solib-pa64.c: Ditto.
5123 For long function declaration, use single line.
5124 * hppa-tdep.h: Ditto.
5125 * inferior.h: Ditto.
5127 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5129 * python/python.h: Declare gdbpy_should_stop and
5130 gdbpy_breakpoint_has_py_cond.
5131 * python/python.c: Add python.h to includes. Remove python.h from
5132 HAVE_PYTHON definition
5133 (gdbpy_should_stop): New dummy function.
5134 (gdbpy_breakpoint_has_py_cond): New dummy function.
5135 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5136 sub-classing capabilities.
5137 (gdbpy_should_stop): New function.
5138 (gdbpy_breakpoint_has_py_cond): New function.
5139 (local_setattro): New function.
5140 * breakpoint.c (condition_command): Add check for Python 'stop'
5142 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5143 operation function as part of stop/continue tests.
5145 2011-03-14 Tom Tromey <tromey@redhat.com>
5148 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5149 (needs_frame_dwarf_call): Likewise.
5151 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5153 Fix ARI warning about functions without parameters that do not
5155 * breakpoint.c (all_tracepoints): Replace () by (void).
5156 * f-exp.y (match_string_literal): Ditto.
5158 * m2-exp.y (yylex): Ditto.
5159 * mep-tdep.c (current_me_module): Ditto.
5160 (current_options): Ditto.
5161 (current_cop_data_bus_width): Ditto.
5162 (current_cr_names): Ditto.
5163 (current_cr_is_float): Ditto.
5164 (current_ccr_names): Ditto.
5165 * objc-exp.y (yylex): Ditto.
5166 * p-exp.y (yylex): Ditto.
5167 * remote.c (send_interrupt_sequence): Ditto.
5168 * tracepoint.c (current_trace_status): Ditto.
5169 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5170 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5172 2011-03-11 Michael Snyder <msnyder@vmware.com>
5174 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5175 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5176 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5177 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5178 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5180 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5181 (delete_async_event_handler): Ditto.
5183 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5185 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5187 * top.c (set_verbose): Assert showcmd was found.
5189 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5191 * xtensa-tdep.c (warning_once): Correct style issues.
5193 2011-03-11 Yao Qi <yao@codesourcery.com>
5195 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5197 2011-03-11 Andreas Schwab <schwab@redhat.com>
5199 * common/aclocal.m4: Remove.
5201 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5203 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5204 (xtensa_write_register, xtensa_read_register): Likewise.
5205 (xtensa_hextochar): Removed.
5206 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5208 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5210 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5211 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5212 (xtensa_alloc_frame_cache): Add initialization for new fields.
5213 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5214 (warning_once): New function.
5215 (xtensa_insn_kind): New item c0opc_and.
5216 (call0_classify_opcode): Add the case for AND instruction.
5217 (call0_track_op): Change arguments. New local variable litbase.
5218 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5219 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5221 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5222 (call0_analyze_prologue): Update the comments. Change arguments.
5223 Add the variety of updates to handle extended prologues, which now can
5224 conduct dynamic stack adjustments.
5225 (call0_frame_cache): Likewise.
5226 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5227 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5229 2011-03-10 Michael Snyder <msnyder@vmware.com>
5231 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5232 (cmd_qtframe): Ditto.
5233 (cmd_qtbuffer): Ditto.
5234 (cmd_bigqtbuffer): Ditto.
5236 2011-03-10 Tom Tromey <tromey@redhat.com>
5238 * tracepoint.c (trace_actions_command): Update.
5239 * thread.c (thread_apply_command): Update.
5240 * reverse.c (delete_bookmark_command): Update.
5241 (bookmarks_info): Update.
5242 * printcmd.c (undisplay_command): Update.
5243 * memattr.c (mem_enable_command): Update.
5244 (mem_disable_command): Update.
5245 (mem_delete_command): Update.
5246 * inferior.c (detach_inferior_command): Update.
5247 (kill_inferior_command): Update.
5248 (remove_inferior_command): Update.
5249 * cli/cli-utils.h (struct get_number_or_range_state): New.
5250 (init_number_or_range): Declare.
5251 (get_number_or_range): Update.
5252 * cli/cli-utils.c (init_number_or_range): New function.
5253 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5255 (number_is_in_list): Update.
5256 * breakpoint.h (get_tracepoint_by_number): Update.
5257 * breakpoint.c (map_breakpoint_numbers): Update for change to
5258 get_number_or_range.
5259 (find_location_by_number): Use get_number, not
5260 get_number_or_range.
5261 (trace_pass_set_count): New function.
5262 (trace_pass_command): Update for change to get_number_or_range.
5264 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5267 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5269 * python/py-param.c (add_setshow_generic): Add set/show callback
5270 parameters. Register Python object context.
5271 (get_show_value): New function.
5272 (get_set_value): New function.
5273 (call_doc_function): New function.
5274 (get_doc_string): Move behind get_show_value/get_set_value.
5276 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5278 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5280 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5282 * xtensa-tdep.c (xtensa_read_register): Add comment.
5283 (xtensa_write_register): Likewise.
5284 (xtensa_hextochar): Add comment and update to match coding conventions.
5285 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5286 (execute_l32e, execute_s32e, execute_code): Update comments.
5287 (xtensa_exception_handler_t): Update to match coding conventions.
5288 (xtensa_insn_kind): Likewise.
5290 2011-03-09 Michael Snyder <msnyder@vmware.com>
5292 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5294 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5296 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5298 2011-03-09 Tom Tromey <tromey@redhat.com>
5300 * thread.c (restore_selected_frame): Handle frame_level == -1.
5301 (make_cleanup_restore_current_thread): Use
5302 get_selected_frame_if_set.
5303 * frame.h (get_selected_frame_if_set): Declare.
5304 * frame.c (get_selected_frame_if_set): New function.
5306 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5308 * cli/cli-cmds.c (shell_escape): Use lbasename.
5309 * coffread.c (coff_start_symtab): Constify parameter.
5310 (complete_symtab): Constify `name' parameter.
5311 (coff_symtab_read): Constify `filestring' local.
5312 (coff_getfilename): Constify return and `result' local.
5314 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5315 * linux-fork.c (info_checkpoints_command): Use lbasename.
5316 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5317 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5318 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5319 * procfs.c (procfs_make_note_section): Use lbasename.
5320 * tui/tui-io.c (printable_part): Constity return and parameter.
5322 (print_filename): Constify parameters, and local `s'.
5323 (tui_rl_display_match_list): Constify local `temp'.
5325 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5328 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5329 Fix DWARF-3+ DW_AT_accessibility default assumption.
5330 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5331 cu->header.version >= 3.
5333 2011-03-09 Yao Qi <yao@codesourcery.com>
5335 * common/Makefile.in: Remove.
5336 * common/configure: Remove.
5337 * common/configure.ac: Remove.
5339 2011-03-09 Yao Qi <yao@codesourcery.com>
5342 2011-02-11 Yao Qi <yao@codesourcery.com>
5344 * common/Makefile.in: Add copyright header.
5346 2011-02-11 Yao Qi <yao@codesourcery.com>
5348 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5350 * configure.ac: Add common to sub dir.
5351 * configure: Regenerate.
5353 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5355 * xtensa-tdep.c (call0_ret): New function.
5356 (xtensa_skip_prologue): Speed up analysis.
5358 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5360 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5361 while executing MI command -data-list-changed-registers.
5363 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5365 * xtensa-tdep.c (xtensa_read_register): New function.
5366 (xtensa_write_register): New function.
5367 (xtensa_find_register_by_name): New function.
5368 (xtensa_windowed_frame_cache): Update comments in type description.
5369 (xtensa_frame_cache): Likewise.
5370 (xtensa_window_interrupt_insn): New function.
5371 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5372 (xtensa_insn_kind): Add new instructions.
5373 (rwx_special_register): New function.
5374 (call0_classify_opcode): Add new instructions to the analysis.
5375 (a0_saved, a7_saved, a11_saved): New variables.
5376 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5377 (execute_l32e): New function.
5378 (execute_s32e): New function.
5379 (xtensa_exception_handler_t): New type.
5380 (execute_code): New function.
5381 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5382 analysis for Xtensa Window Exception handlers.
5384 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5386 * xtensa-tdep.c (TX_PS): New.
5387 (windowing_enabled): Update to count for Call0 ABI.
5388 (xtensa_hextochar): New.
5389 (xtensa_init_reggroups): Make algorithm generic.
5390 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5392 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5394 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5396 2011-03-08 Michael Snyder <msnyder@vmware.com>
5398 * i386-tdep.c (i386_follow_jump): Check return value of
5400 (i386_analyze_struct_return): Ditto.
5401 (i386_skip_probe): Ditto.
5402 (i386_match_insn): Ditto.
5403 (i386_skip_noop): Ditto.
5404 (i386_analyze_frame_setup): Ditto.
5405 (i386_analyze_register_saves): Ditto.
5406 (i386_skip_prologue): Ditto.
5407 (i386_skip_main_prologue): Ditto.
5409 * target.c (read_whatever_is_readable): Fix memory leak.
5411 * i386-tdep.c (i386_process_record): Document fall through.
5413 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5415 Fix DWARF-3+ DW_AT_accessibility default assumption.
5416 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5417 cu->header.version >= 3.
5419 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5421 * remote.c (remote_check_symbols): Skip if the target has no
5424 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5426 * target.c (read_whatever_is_readable): Reformat comment,
5427 with a minor typo fix. Minor reformatting of the code.
5429 2011-03-08 Yao Qi <yao@codesourcery.com>
5431 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5432 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5433 Use cached result instead of calling displaced_in_arm_mode again.
5434 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5435 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5436 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5437 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5438 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5439 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5440 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5441 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5442 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5443 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5444 (arm_catch_kernel_helper_return): Likewise.
5445 * gdb/arm-tdep.h : Update function declarations.
5447 2011-03-07 Michael Snyder <msnyder@vmware.com>
5449 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5451 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5453 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5455 * elfread.c (elf_symtab_read): Stop memory leak.
5457 * main.c (captured_main): Fix memory leak.
5459 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5461 * ada-lang.c (compare_names): Call is_name_suffix with string1
5464 2011-03-07 Tom Tromey <tromey@redhat.com>
5466 * xcoffread.c (xcoff_sym_fns): Update.
5467 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5468 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5469 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5470 (symbol_file_add_with_addrs_or_offsets): Likewise.
5471 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5472 * somread.c (som_sym_fns): Update.
5473 * psymtab.h (require_partial_symbols): Declare.
5474 * psymtab.c (require_partial_symbols): New function.
5475 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5476 (ALL_OBJFILE_PSYMTABS): Undef.
5477 (ALL_PSYMTABS): Move from psympriv.h.
5478 (lookup_partial_symtab, find_pc_sect_psymtab)
5479 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5480 (find_last_source_symtab_from_partial)
5481 (forget_cached_source_info_partial)
5482 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5483 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5484 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5485 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5486 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5487 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5488 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5489 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5490 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5492 * mipsread.c (ecoff_sym_fns): Update.
5493 * machoread.c (macho_sym_fns): Update.
5494 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5495 (read_psyms): New function.
5496 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5497 (elf_sym_fns_lazy_psyms): New global.
5498 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5499 dwarf2_build_psymtabs.
5500 * dbxread.c (aout_sym_fns): Update.
5501 * coffread.c (coff_sym_fns): Update.
5503 2011-03-07 Tom Tromey <tromey@redhat.com>
5505 * infrun.c (print_exited_reason): Include inferior id and pid in
5508 2011-03-07 Tom Tromey <tromey@redhat.com>
5510 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5512 (target_has_execution_1): Update.
5513 (target_has_execution_current): Declare.
5514 (target_has_execution): Call target_has_execution_current.
5515 (default_child_has_execution): Update.
5516 * target.c (default_child_has_execution): Add 'the_ptid'
5518 (target_has_execution_1): Likewise.
5519 (target_has_execution_current): New function.
5520 (add_target): Update.
5521 (init_dummy_target): Update.
5522 * remote-m32r-sdi.c (m32r_has_execution): New function.
5523 (init_m32r_ops): Use it.
5524 * record.c (record_core_has_execution): Now static. Add
5525 'the_ptid' parameter.
5526 * inferior.c (have_live_inferiors): Don't save current thread.
5527 Use target_has_execution_1.
5529 2011-03-07 Yao Qi <yao@codesourcery.com>
5531 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5533 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5535 * elfread.c (elf_symtab_read): Minor reformatting.
5537 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5539 * objc-lang.c (selectors_info): Minor reformatting.
5541 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5543 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5545 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5546 Michael Snyder <msnyder@vmware.com>
5548 * ada-valprint.c (ada_val_print_array): Move the declaration of
5549 "byte_order" and "elttype" inside the block where these variables
5550 are actually used. Remove some special handling for the case
5551 where "elttype" and "eltlen" are null. Replace by a comment
5552 and a couple of assertion checks.
5554 2011-03-05 Michael Snyder <msnyder@vmware.com>
5556 * source.c (add_path): Replace semicolon at end of block.
5557 * dwarf2expr.c (execute_stack_op): Ditto.
5559 2011-03-05 Mike Frysinger <vapier@gentoo.org>
5561 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5562 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5563 (bfin-*-*): Likewise.
5565 2011-03-05 Michael Snyder <msnyder@vmware.com>
5567 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5568 * mdebugread.c (parse_symbol): Ditto.
5569 * parse.c (parse_exp_in_context): Ditto.
5570 * source.c (add_path): Ditto.
5571 * utils.c (gnu_debuglink_crc32): Ditto.
5572 * varobj.c (variable_language): Ditto.
5574 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5576 2011-03-04 Michael Snyder <msnyder@vmware.com>
5578 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5580 * symfile.c (simple_overlay_update): Check for null return value
5581 from lookup_minimal_symbol.
5583 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5585 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5587 * eval.c (parse_and_eval_address_1): Remove function.
5588 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5589 instead of parse_and_eval_address_1.
5590 * value.h (parse_and_eval_address_1): Remove prototype.
5592 2011-03-04 Michael Snyder <msnyder@vmware.com>
5594 * remote.c (putpkt_binary): Document that case stmt falls through.
5596 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5598 * breakpointc (print_it_typical): Move NULL check from here...
5599 (print_bp_stop_message): ... to here.
5601 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
5603 * breakpoint.c (enable_command): Use break instead of continue,
5604 and fill in a missing break.
5605 (disable_command): Ditto.
5607 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5609 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5610 (terminal_save_ours): Remove misleading comment.
5611 (inflow_inferior_data_cleanup): Free ttystate.
5612 (inflow_inferior_exit): Likewise.
5613 (copy_terminal_info): Copy ttystate.
5615 * serial.c (serial_copy_tty_state): New function.
5616 * serial.h (serial_copy_tty_state): Add prototype.
5617 (struct serial_ops): Add copy_tty_state callback.
5618 * ser-base.c (ser_base_copy_tty_state): New function.
5619 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5620 * ser-go32.c (dos_copy_tty_state): New function.
5621 (dos_ops): Install copy_tty_state callback.
5622 * ser-mingw.c (_initialize_ser_windows): Likewise.
5623 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5624 * ser-unix.c (hardwire_copy_tty_state): New function.
5625 (_initialize_ser_hardwire): Install it.
5627 2011-03-04 Michael Snyder <msnyder@vmware.com>
5629 * breakpoint.c (create_breakpoint): Add missing break statement.
5631 Reverting this patch:
5632 * infcall.c (call_function_by_hand): Add break statements for lint.
5634 Reverting this patch:
5635 * cli/cli-script.c (script_from_file): Add break for lint.
5637 2011-03-04 Michael Snyder <msnyder@vmware.com>
5639 * solib.c (reload_shared_libraries_1): Close memory leak.
5641 2011-03-03 Tom Tromey <tromey@redhat.com>
5644 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5647 2011-03-03 Michael Snyder <msnyder@vmware.com>
5649 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5650 fields of struct 'st' to zero.
5652 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5653 sal.pspace before calling set_current_source_symtab_and_line.
5655 2011-03-03 Yao Qi <yao@codesourcery.com>
5657 * Makefile.in (configure-common): Remove. Let Makefile
5658 in dir common to rebuild itself.
5659 (common/Makefile): Likewise.
5661 2011-03-03 Joel Brobecker <brobecker@adacore.com>
5663 * utils.c (parse_escape): Add i18n markup in error message.
5665 2011-03-03 Yao Qi <yao@codesourcery.com>
5667 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5669 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5670 (displaced_write_reg, displaced_read_reg): Likewise.
5671 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5672 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5673 (cleanup_branch): Replace magic number 14 and 15 with
5674 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5676 2011-03-02 Michael Snyder <msnyder@vmware.com>
5678 * maint.c (maintenance_do_deprecate): No need to check for NULL.
5680 * cli/cli-script.c (script_from_file): Add break for lint.
5682 * mdebugread.c (parse_partial_symbols): Fix indent.
5684 * target-descriptions.c (tdesc_gdb_type): No need to call
5685 xstrdup, callee saves a copy.
5687 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
5689 * infcall.c (call_function_by_hand): Add break statements for lint.
5691 * utils.c (parse_escape): Escape the escape char.
5693 * python/py-inferior.c (build_inferior_list): Error out if
5694 PyList_Append fails.
5695 (gdbpy_inferiors): Error out if build_inferior_list fails.
5697 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
5700 * record.c (record_restore): Move printf to before error return.
5702 2011-03-02 Yao Qi <yao@codesourcery.com>
5704 * arm-tdep.h (struct displaced_step_closure): Add two new fields
5705 is_thumb and insn_size.
5706 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
5707 on both ARM and Thumb mode.
5708 (arm_process_displaced_insn): Set is_thumb and insn_size.
5709 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
5710 (arm_displaced_step_fixup): Likewise.
5712 2011-03-01 Michael Snyder <msnyder@vmware.com>
5714 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
5716 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
5718 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
5720 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
5722 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
5725 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
5726 which shadows function parameter.
5728 * tracepoint.c (create_tsv_from_upload): Superfluous call
5729 to xstrdup. Callee already calls xstrdup.
5731 * linespec.c (decode_line_1): Remove unnecessary null check.
5733 * tracepoint.c (scope_info): Fix mem leak, remove underused
5736 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
5737 superfluous null check.
5739 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
5740 (value_of_builtin_frame_fp_reg): Ditto.
5742 * event-top.c (display_gdb_prompt): Remove superfluous null check.
5744 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
5747 * linespec.c (decode_line_1): Check for null before dereference.
5749 * reverse.c (record_restore): Move null-check to before pointer
5752 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
5754 * objc-lang.c (selectors_info): Add explanitory comment.
5755 (classes_info): Ditto.
5757 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5759 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
5760 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
5761 versions of the trampoline. Handle Thumb vs. ARM addresses.
5762 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
5763 (arm_linux_init_abi): Install it.
5764 * arm-tdep.c (arm_psr_thumb_bit): Make global.
5765 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
5767 2011-02-28 Michael Snyder <msnyder@vmware.com>
5769 * ui-out.c (ui_out_field_core_addr): Make local char buffer
5770 a little bigger, to avoid possibility of an overflow.
5772 * breakpoint.c (breakpoint_adjustment_warning): Make local char
5773 buffers a little bigger, to avoid possibility of an overflow.
5775 * coffread.c (coff_getfilename): Add check to avoid overflow.
5777 * objc-lang.c (selectors_info): Add a small safety margin to
5779 (classes_info): Error out on too long REGEXP.
5781 * infrun.c (handle_inferior_event): Remove unused function call.
5783 * fork-child.c (fork_inferior): Remove ifdef'd code and
5786 * linux-thread-db.c (attach_thread): Discard unused value.
5788 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
5790 * remote.c (remote_get_noisy_reply): Discard unused value.
5791 (remote_vcont_resume): Ditto.
5792 (remote_stop_ns): Ditto.
5794 * linespec.c (decode_objc): Delete unused variable.
5796 * tui/tui-regs.c (tui_register_format): Delete unused variable.
5798 * dwarf2read.c (add_partial_symbol): Discard unused values.
5799 (read_base_type): Delete unused variable.
5801 * dbxread.c (read_dbx_symtab): Discard unused value.
5803 * eval.c (evaluate_subexp_standard): Delete unused variable,
5804 and discard unused values.
5806 * infcmd.c (_initialize_infcmd): Discard unused values.
5808 * stabsread.c (rs6000_builtin_type): Missing break statement.
5810 * dbxread.c (process_one_symbol): Discard unused value.
5812 * coffread.c (coff_end_symtab): Delete unused variable.
5814 * dwarf2read.c (dw2_get_file_names): Discard unused value.
5815 (dwarf2_add_typedef): Delete unused variable.
5816 (read_namespace): Ditto.
5817 (dwarf_decode_macros): Ditto.
5819 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
5821 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
5823 * p-valprint.c (pascal_val_print): Discard unused value.
5825 * utils.c (nquery): Call va_end before return;
5829 * proc-service.c (ps_plog): Call va_end before return.
5831 2011-02-28 Tom Tromey <tromey@redhat.com>
5833 * python/python.c (gdbpy_value_cst): New global.
5834 (_initialize_python): Initialize it.
5835 * python/python-internal.h (gdbpy_value_cst): Declare.
5836 * python/py-value.c (convert_value_from_python): Use
5839 2011-02-28 Michael Snyder <msnyder@vmware.com>
5841 * python/py-cmd.c (cmdpy_init): Fix memory leak.
5843 * breakpoint.c (catch_syscall_completer): Free malloced list.
5845 * jv-lang.c (java_primitive_type_from_name): Add missing break.
5847 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
5848 (lval_func_check_synthetic_pointer): Ditto.
5849 (lval_func_free_closure): Fix use-after-free.
5851 2011-02-28 Tom Tromey <tromey@redhat.com>
5853 * psymtab.c (expand_partial_symbol_tables): Use
5854 ALL_OBJFILE_PSYMTABS.
5856 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5858 * objc-lang.c (selectors_info): Error on too long REGEXP.
5860 2011-02-28 Michael Snyder <msnyder@vmware.com>
5862 * python/py-param.c (set_parameter_value): Add missing
5865 * linux-record.c (record_linux_system_call): Add missing
5868 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5870 * breakpoint.c (print_one_breakpoint_location): Remove unused
5871 argument PRINT_ADDRESS_BITS. Update callers.
5872 (print_one_breakpoint): Likewise.
5874 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5876 * breakpoint.c (wrap_indent_at_field): New function.
5877 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
5878 Allocate ui_stream locally instead of using STB argument.
5879 (print_one_breakpoint_location): Update call.
5880 * ui-out.c (ui_out_query_field): New function.
5881 * ui-out.h (ui_out_query_field): Add prototype.
5883 2011-02-28 Joel Brobecker <brobecker@adacore.com>
5885 From Michael Snyder <msnyder@vmware.com>
5886 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
5888 2011-02-27 Michael Snyder <msnyder@vmware.com>
5890 * objc-lang.c (selectors_info): Prevent string overrun.
5892 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
5895 * symtab.c (rbreak_command): Move variable 'file_name' to
5898 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
5899 param with a local variable of the same name.
5901 2011-02-27 Michael Snyder <msnyder@vmware.com>
5903 * value.c (value_from_history_ref): New function.
5904 * value.h (value_from_history_ref): Export.
5905 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
5906 to parse value history references.
5907 * cli/cli-utils.h (get_number_trailer): Update comment.
5909 2011-02-27 Michael Snyder <msnyder@vmware.com>
5911 * inferior.c (detach_inferior_command): Use get_number_or_range.
5912 (kill_inferior_command): Ditto.
5913 (remove_inferior_command): Ditto.
5914 (initialize_inferiors): Make command names plural.
5915 Update help strings.
5917 2011-02-27 Michael Snyder <msnyder@vmware.com>
5919 * darwin-nat-info.c: Fix comment typo.
5920 * dwarf2expr.h: Ditto.
5921 * fbsd-nat.c: Ditto.
5922 * fbsd-nat.h: Ditto.
5923 * frame-unwind.h: Ditto.
5925 * hppa-hpux-tdep.c: Ditto.
5926 * i386-linux-nat.c: Ditto.
5927 * linux-nat.c: Ditto.
5928 * nbsd-nat.c: Ditto.
5929 * nbsd-nat.h: Ditto.
5930 * ppc-linux-tdep.c: Ditto.
5933 * tui/tui-winsource.c: Ditto.
5935 2011-02-26 Michael Snyder <msnyder@vmware.com>
5937 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
5939 * maint.c (maintenance_do_deprecate): Plug a memory leak.
5941 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
5942 with a local variable of the same name.
5944 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
5945 param with a local variable of the same name.
5946 (i387_supply_xsave): Ditto.
5948 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
5949 that it does not shadow a function parameter.
5951 * i386-nat.c (i386_length_and_rw_bits): Document that case
5952 statement is meant to fall through.
5954 * expprint.c (dump_subexp_body_standard): Document that case
5955 statement is meant to fall through.
5957 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
5958 dead if statement. Condition can't be false.
5960 2011-02-25 Michael Snyder <msnyder@vmware.com>
5962 * arm-tdep.c: Fix typos in comments.
5963 * bsd-uthread.c: Ditto.
5964 * completer.c: Ditto.
5966 * cp-namespace.c: Ditto.
5967 * cp-support.c: Ditto.
5968 * cris-tdep.c: Ditto.
5970 * dwarf2read.c: Ditto.
5972 * gdbtypes.h: Ditto.
5973 * inferior.h: Ditto.
5974 * mdebugread.c: Ditto.
5975 * mips-tdep.c: Ditto.
5976 * ppc-linux-nat.c: Ditto.
5977 * ppc-linux-tdep.c: Ditto.
5978 * printcmd.c: Ditto.
5979 * sol-thread.c: Ditto.
5980 * solib-frv.c: Ditto.
5982 * sparc64-tdep.c: Ditto.
5983 * spu-tdep.c: Ditto.
5984 * stabsread.c: Ditto.
5989 * python/py-block.c: Ditto.
5990 * python/py-symbol.c: Ditto.
5991 * python/py-symtab.c: Ditto.
5992 * python/py-value.c: Ditto.
5993 * tui/tui-win.c: Ditto.
5995 2011-02-25 Michael Snyder <msnyder@vmware.com>
5997 * inferior.c (print_inferior): Accept a string instead of an int
5998 for requested_inferiors, and use get_number_or_range to parse it.
5999 (info_inferiors_command): Pass args string to print_inferior.
6000 (initialize_inferiors): Change help string for info inferiors.
6001 * inferior.h (print_inferior): Export prototype change.
6003 2011-02-25 Tom Tromey <tromey@redhat.com>
6005 * common/ax.def (invalid2): Set to 0x31.
6007 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6009 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6011 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6013 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6015 2011-02-24 Michael Snyder <msnyder@vmware.com>
6017 * Makefile.in (clean): Make clean should remove generated files
6018 observer.h and observer.inc.
6020 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6022 Revert the following patch (not approved yet):
6023 2011-02-21 Hui Zhu <teawater@gmail.com>
6024 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6025 * ax-gdb.c (gen_printf_expr_callback): New function.
6026 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6027 * ax-general.c (ax_memcpy): New function.
6028 (ax_print): Handle "printf".
6030 * ax.h (ax_memcpy): Forward declare.
6031 * common/ax.def (invalid2): Removed.
6032 (printf): New entry.
6033 * printcmd.c (printcmd.h): New include.
6034 (string_printf): New function.
6035 (ui_printf): Removed.
6036 (printf_command): Remove static. Call string_printf.
6037 (eval_command): Call string_printf.
6038 * printcmd.h: New file.
6039 * tracepoint.c (validate_actionline,
6040 encode_actions_1): handle printf_command.
6042 2011-02-23 Tom Tromey <tromey@redhat.com>
6044 * ax-general.c (ax_pick): Add missing newline.
6046 2011-02-23 Michael Snyder <msnyder@vmware.com>
6048 * breakpoint.c (breakpoint_1): Change first argument from an int
6049 to a char pointer, so that the function now accepts a list of
6050 breakpoints rather than just one. Use new function
6051 'number_is_in_list' to implement.
6052 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6053 (watchpoints_info): Ditto.
6054 (tracepoints_info): Ditto.
6055 (maintenance_info_breakpoints): Ditto.
6056 (_initialize_breakpoint): Update help strings to reflect the fact
6057 that these functions can now take more than one argument.
6058 * cli/cli-utils.c (number_is_in_list): New function.
6059 * cli/cli-utils.h (number_is_in_list): Export.
6061 2011-02-23 Michael Snyder <msnyder@vmware.com>
6063 * memattr.c (mem_enable_command): Use get_number_or_range.
6064 (mem_disable_command): Ditto.
6065 (mem_delete_command): Ditto.
6066 (_initialize_mem): Tweak usage message to reflect multiple
6069 2011-02-22 Doug Evans <dje@google.com>
6071 Add gdb.lookup_global_symbol python function.
6073 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6074 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6075 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6077 2011-02-22 Tom Tromey <tromey@redhat.com>
6079 * language.c (language_class_name_from_physname): Rename
6080 'curr_language' argument to 'lang'; use in body.
6082 2011-02-22 Michael Snyder <msnyder@vmware.com>
6084 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6086 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6088 * frame-unwind.h: Fix comment to mention the this frame, not the
6091 2011-02-22 Tom Tromey <tromey@redhat.com>
6093 * symfile.c (auto_solib_limit): Remove.
6094 * symfile.h (auto_solib_limit): Remove.
6096 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6098 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6100 2011-02-21 Michael Snyder <msnyder@vmware.com>
6102 * gdbthread.h (print_thread_info): Change prototype.
6103 * thread.c (print_thread_info): Accept char* instead of int for
6104 requested_threads argument. Use new function number_is_in_list
6105 to determine which threads to list.
6106 (info_threads_command): Pass char* to print_thread_info.
6107 * cli/cli-utils.c (number_is_in_list): New function.
6108 * cli/cli-utils.h (number_is_in_list): Export.
6109 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6111 (print_one_inferior): Ditto.
6112 (mi_cmd_list_thread_groups): Ditto.
6114 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6116 * common/Makefile.in (CFLAGS): New.
6117 (COMPILE): Add $(CFLAGS).
6119 2011-02-21 Tom Tromey <tromey@redhat.com>
6121 * breakpoint.c (catch_syscall_command_1): Fix typo.
6123 2011-02-21 Tom Tromey <tromey@redhat.com>
6125 * reverse.c: Include cli-utils.h.
6126 * printcmd.c: Include cli-utils.h.
6127 (string_printf): Use skip_spaces.
6128 * cli/cli-utils.h: New file.
6129 * cli/cli-utils.c: New file.
6130 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6131 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6132 * breakpoint.h (get_number, get_number_or_range): Move to
6134 * breakpoint.c: Include cli-utils.h.
6135 (get_number_trailer, get_number, get_number_or_range)
6136 (ep_skip_leading_whitespace): Move to cli-utils.c.
6137 (create_breakpoint_sal, find_condition_and_thread)
6138 (decode_static_tracepoint_spec, watch_command_1)
6139 (watch_maybe_just_location, ep_parse_optional_if_clause)
6140 (catch_fork_command_1, catch_exec_command_1)
6141 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6142 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6143 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6144 (HFILES_NO_SRCDIR): Add cli-utils.h.
6145 (cli-utils.o): New target.
6147 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6149 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6150 before calling discard_all_inferiors.
6152 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6154 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6155 (struct builtin_opencl_type): Remove.
6156 (builtin_opencl_type): Change return type to "struct type **".
6157 (lookup_opencl_vector_type): Update caller.
6158 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6159 (build_opencl_types): Install plain array of "struct type *"
6160 instead of "struct builtin_opencl_type".
6162 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6163 Ulrich Weigand <uweigand@de.ibm.com>
6165 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6166 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6167 (struct arm_linux_hwbp_cap): New type.
6168 (arm_linux_get_hwbp_cap): New function.
6169 (arm_linux_get_hw_breakpoint_count): Likewise.
6170 (arm_linux_get_hw_watchpoint_count): Likewise.
6171 (arm_linux_can_use_hw_breakpoint): Likewise.
6172 (arm_hwbp_type): New type.
6173 (arm_hwbp_control_t): Likewise.
6174 (struct arm_linux_hw_breakpoint): Likewise.
6175 (struct arm_linux_thread_points): Likewise.
6176 (arm_threads): New global variable.
6177 (arm_linux_find_breakpoints_by_tid): New function.
6178 (arm_hwbp_control_initialize): Likewise.
6179 (arm_hwbp_control_is_enabled): Likewise.
6180 (arm_hwbp_control_disable): Likewise.
6181 (arm_linux_hw_breakpoint_initialize): Likewise.
6182 (arm_linux_get_hwbp_type): Likewise.
6183 (arm_linux_hw_watchpoint_initialize): Likewise.
6184 (arm_linux_hw_breakpoint_equal): Likewise.
6185 (arm_linux_insert_hw_breakpoint1): Likewise.
6186 (arm_linux_remove_hw_breakpoint1): Likewise.
6187 (arm_linux_insert_hw_breakpoint): Likewise.
6188 (arm_linux_remove_hw_breakpoint): Likewise.
6189 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6190 (arm_linux_insert_watchpoint): Likewise.
6191 (arm_linux_remove_watchpoint): Likewise.
6192 (arm_linux_stopped_data_address): Likewise.
6193 (arm_linux_stopped_by_watchpoint): Likewise.
6194 (arm_linux_watchpoint_addr_within_range): Likewise.
6195 (arm_linux_new_thread): Likewise.
6196 (arm_linux_thread_exit): Likewise.
6197 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6198 related target callbacks. Register arm_linux_new_thread and
6199 arm_linux_thread_exit.
6200 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6201 * arm-tdep.c (arm_pc_is_thumb): Make global.
6202 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6204 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6206 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6207 per-frame locations while within a function epilogue.
6209 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6211 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6212 to GNU coding standards.
6214 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6216 Allow use of mingw native on Windows 95 OS.
6217 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6218 (ser_windows_close): Only call CancelIo if function exists.
6219 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6220 to check for existence of CancelIo function in kernel32 DLL.
6222 2011-02-21 Hui Zhu <teawater@gmail.com>
6224 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6225 * ax-gdb.c (gen_printf_expr_callback): New function.
6226 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6227 * ax-general.c (ax_memcpy): New function.
6228 (ax_print): Handle "printf".
6230 * ax.h (ax_memcpy): Forward declare.
6231 * common/ax.def (invalid2): Removed.
6232 (printf): New entry.
6233 * printcmd.c (printcmd.h): New include.
6234 (string_printf): New function.
6235 (ui_printf): Removed.
6236 (printf_command): Remove static. Call string_printf.
6237 (eval_command): Call string_printf.
6238 * printcmd.h: New file.
6239 * tracepoint.c (validate_actionline,
6240 encode_actions_1): handle printf_command.
6242 2011-02-19 Michael Snyder <msnyder@vmware.com>
6244 * reverse.c (delete_one_bookmark): Argument is now bookmark
6245 id rather than pointer to bookmark struct.
6246 (delete_bookmark_command): Use get_number_or_range.
6247 (goto_bookmark_command): Parse with get_number instead of strtoul.
6248 (bookmark_1): New function. Print info for one bookmark.
6249 (bookmarks_info): Use get_number_or_range and bookmark_1.
6251 2011-02-18 Michael Snyder <msnyder@vmware.com>
6253 * thread.c (info_threads_command): Re-implement using
6254 get_number_or_range.
6255 (thread_apply_command): Ditto.
6257 2011-02-18 Tom Tromey <tromey@redhat.com>
6259 * common/ax.def: New file.
6260 * ax.h (enum agent_op): Use ax.def.
6261 * ax-general.c (aop_map): Use ax.def.
6263 2011-02-18 Tom Tromey <tromey@redhat.com>
6265 * ax-general.c (aop_map): Add pick and rot.
6266 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6267 <DW_OP_rot>: Implement.
6268 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6270 * ax-general.c (ax_pick): New function.
6272 2011-02-18 Tom Tromey <tromey@redhat.com>
6274 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6276 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6277 Tom Tromey <tromey@redhat.com>
6279 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6280 make_symbol_overload_list_block with NULL BLOCK.
6281 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6283 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6285 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6286 * breakpoint.h (get_number_or_range): Declare.
6287 * printcmd.c (ALL_DISPLAYS): Declare.
6288 (delete_display): Reimplement taking a display pointer.
6289 (undisplay_command): Accept a range of displays to delete, using
6290 get_number_or_range.
6292 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6294 * c-valprint.c (c_val_print): Add embedded_offset to address
6295 for arrays of unspecified length.
6296 * p-valprint.c (pascal_val_print): Likewise.
6298 2011-02-18 Yao Qi <yao@codesourcery.com>
6300 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6301 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6302 (thumb_process_displaced_insn): New.
6303 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6304 call to arm_process_displaced_insn.
6305 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6307 2011-02-17 Tom Tromey <tromey@redhat.com>
6309 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6310 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6311 compile_dwarf_to_ax. No longer static. Call
6312 dwarf2_compile_cfa_to_ax.
6313 (locexpr_tracepoint_var_ref): Update.
6314 (loclist_tracepoint_var_ref): Update.
6315 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6316 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6317 argument; add 'gdbarch' and 'pc'.
6318 (dwarf2_compile_cfa_to_ax): New function.
6319 (dwarf2_frame_cache): Update.
6321 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6323 * ada-lang.c (ada_type_of_array): Fix the size of the array
6324 in the case of an unconstrained packed array.
6326 2011-02-17 Yao Qi <yao@codesourcery.com>
6328 * common/Makefile.in: Add more targets for make.
6330 2011-02-16 Tom Tromey <tromey@redhat.com>
6332 * dwarf2loc.c (unimplemented): Fix typo.
6334 2011-02-16 Tom Tromey <tromey@redhat.com>
6336 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6337 (compile_dwarf_to_ax) <default>: Use unimplemented.
6338 <DW_OP_deref>: Update.
6339 (disassemble_dwarf_expression): Update.
6340 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6341 (decode_locdesc): Update.
6342 * dwarf2expr.h (dwarf_stack_op_name): Update.
6344 2011-02-16 Tom Tromey <tromey@redhat.com>
6346 * ax.h (struct aop_map) <name>: Now const.
6348 2011-02-16 Tom Tromey <tromey@redhat.com>
6350 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6353 2011-02-16 Yao Qi <yao@codesourcery.com>
6355 * infrun.c (get_displaced_step_closure_by_addr): New.
6356 * inferior.h: Declare it.
6357 * arm-tdep.c: (arm_pc_is_thumb): Call
6358 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6361 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6362 Jan Kratochvil <jan.kratochvil@redhat.com>
6365 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6367 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6368 Jan Kratochvil <jan.kratochvil@redhat.com>
6370 * value.c (value_contents_copy_raw): Extend describing comment.
6371 Assert that the destination contents we're overwriting are wholly
6373 (value_contents_copy): Extend describing comment.
6375 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6376 Jan Kratochvil <jan.kratochvil@redhat.com>
6378 * value.c (value_available_contents_eq): Remove redundant local
6379 variables. Fix available contents comparision.
6380 * value.h (value_available_contents_eq): Extend describing
6383 2011-02-16 Yao Qi <yao@codesourcery.com>
6385 * thread.c (info_threads_command): Add missing i18n markup and remove
6388 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6390 * breakpoint.c (longjmp_names): New variable.
6391 (struct breakpoint_objfile_data): New type.
6392 (breakpoint_objfile_key): New variable.
6393 (msym_not_found): New variable.
6394 (msym_not_found_p): New predicate.
6395 (get_breakpoint_objfile_data): New function.
6396 (create_overlay_event_breakpoint): Check per-objfile cache for
6398 (create_longjmp_master_breakpoint): Likewise.
6399 (create_std_terminate_master_breakpoint): Likewise.
6400 (create_exception_master_breakpoint): Likewise.
6401 (_initialize_breakpoint): Register per-objfile data key.
6403 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6405 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6407 (create_longjmp_master_breakpoint): Loop over longjmp names.
6408 (create_std_terminate_master_breakpoint): Const-propagate parameter
6410 (update_breakpoints_after_exec): Adjust.
6411 (breakpoint_re_set): Adjust.
6413 2011-02-15 Michael Snyder <msnyder@vmware.com>
6415 * thread.c (info_threads_command): Process arg as thread id,
6416 or list of thread ids.
6417 (thread_find_command): New command.
6418 (_initialize_thread): Document argument for info threads.
6419 Document 'thread find' command.
6420 * NEWS: Document new command "thread find".
6422 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6424 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6425 * aclocal.m4: Regenerated with aclocal-1.11.1.
6426 * common/configure: Regenerate with autoconf-2.64.
6428 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6430 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6431 bool data type to a size of one byte.
6433 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6434 Jan Kratochvil <jan.kratochvil@redhat.com>
6436 * target.c (memory_xfer_live_readonly_partial): Document where to
6437 look for interface description.
6439 2011-02-15 Yao Qi <yao@codesourcery.com>
6442 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6443 order to store PC value on stack instead of text section.
6445 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6447 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6448 the EFP register set size.
6449 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6450 data from the VMX register.
6451 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6452 and write data from/to the VMX register.
6454 2011-02-14 Michael Snyder <msnyder@vmware.com>
6456 * command.h (enum command_class): New class 'no_set_class', for
6457 "show" commands without a corresponding "set" command.
6458 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6459 * copying.c (_initialize_copying): Ditto for "show copying" and
6461 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6463 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6464 which there is no corresponding "set" command (eg. "show copying").
6466 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6467 Jan Kratochvil <jan.kratochvil@redhat.com>
6469 * exec.c (section_table_available_memory): Change `len' parameter
6471 * exec.h (section_table_available_memory): Ditto.
6472 * value.h (read_value_memory): Rename the `offset' parameter to
6475 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6476 Jan Kratochvil <jan.kratochvil@redhat.com>
6478 * memrange.c (compare_mem_ranges): Mention sort order in
6480 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6481 * tracepoint.c (traceframe_available_memory): Extend comment to
6482 mention what happens to RESULT when the target does not support
6485 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6486 Jan Kratochvil <jan.kratochvil@redhat.com>
6488 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6491 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6493 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6494 No longer handle NULL values.
6496 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6498 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6499 * value.c: Include "exceptions.h".
6500 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6502 * cp-abi.c: Include gdb_assert.h.
6503 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6504 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6506 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6507 parameters. No longer returns -1 on error.
6508 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6510 * cp-valprint.c: Include exceptions.h.
6511 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6512 the baseclass_offset. Handle unavailable base classes. Use
6513 val_print_invalid_address.
6514 * p-valprint.c: Include exceptions.h.
6515 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6516 when fetching the baseclass_offset. No longer expect
6517 baseclass_offset returning -1. Handle unavailable base classes.
6518 Use val_print_invalid_address.
6519 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6520 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6521 `embedded_offset' and `val' parameters. Adjust.
6522 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6523 parameter, and change its type to gdb_byte pointer. Add
6524 `embedded_offset' and `val' parameters. Adjust. No longer expect
6525 baseclass_offset returning -1.
6526 (value_dynamic_cast): Use value_contents_for_printing rather than
6527 value_contents. Adjust.
6528 (search_struct_field): No longer expect baseclass_offset returning
6530 (search_struct_method): If reading memory from the target is
6531 necessary, wrap it in a new value to pass to baseclass_offset. No
6532 longer expect baseclass_offset returning -1.
6533 (find_method_list): No longer expect baseclass_offset returning
6534 -1. Use value_contents_for_printing rather than value_contents.
6535 * valprint.c (val_print_invalid_address): New function.
6536 * valprint.h (val_print_invalid_address): Declare.
6537 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6538 and `val' parameters. No longer expect baseclass_offset returning
6540 * gnu-v2-abi.c: Include "exceptions.h".
6541 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6542 parameters. Handle unavailable memory. Recurse through
6543 gnuv2_baseclass_offset directly, rather than through
6544 baseclass_offset. No longer returns -1 on not found, instead
6546 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6547 `val' parameters. Adjust.
6549 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6551 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6552 almost but not quite adjacent.
6554 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6556 * value.h (value_entirely_available): Declare.
6557 * value.c (value_entirely_available): New function.
6558 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6559 real type if the pointer is unavailable.
6561 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6563 * valops.c (value_repeat): Use read_value_memory instead of
6566 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6568 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6569 * value.c (value_contents_copy_raw, value_contents_copy): New
6571 (value_primitive_field): Use value_contents_copy_raw instead of
6573 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6575 (value_array, value_slice): Ditto.
6576 * valarith.c (value_subscripted_rvalue): Use
6577 value_contents_copy_raw instead of memcpy.
6579 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6581 <unavailable> references.
6583 * valops.c (get_value_at): Use value_from_contents_and_address,
6584 avoiding read_memory.
6586 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6588 * c-valprint.c (c_val_print): Print a string with unavailable
6589 contents as an array.
6591 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6593 * value.h (unpack_bits_as_long): Delete declaration.
6594 (unpack_value_bits_as_long): Declare.
6595 (unpack_value_field_as_long): Declare.
6596 (value_field_bitfield): Declare.
6597 * value.c (unpack_bits_as_long): Rename to...
6598 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6599 value parameters. Return the extracted result in a new output
6600 parameter. If the value contents are unavailable, return false,
6601 otherwise return true.
6602 (unpack_value_bits_as_long): New.
6603 (unpack_field_as_long): Rename to...
6604 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6605 Add embedded_offset and value parameters. Return the extracted
6606 result in a new output parameter. If the value contents are
6607 unavailable, return false, otherwise return true.
6608 (unpack_value_field_as_long): New.
6609 (unpack_field_as_long_1): New.
6610 (unpack_field_as_long): Reimplement as wrapper around
6611 unpack_value_field_as_long_1.
6612 (value_field_bitfield): New function.
6613 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6614 unpack_value_bits_as_long. Mark the value as unavailable, if it
6616 * jv-valprint.c (java_print_value_fields): Use
6617 value_field_bitfield.
6618 * p-valprint.c (pascal_object_print_value_fields): Use
6619 value_field_bitfield.
6620 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6622 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6624 * value.c (get_internalvar_integer): Also return the int value of
6625 TYPE_CODE_INT INTERNALVAR_VALUE values.
6626 (set_internalvar): Don't special case TYPE_CODE_INT.
6628 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6630 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6631 INTERNALVAR_POINTER.
6633 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6634 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6635 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6637 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6639 * value.h (value_available_contents_eq): Declare.
6640 * value.c (find_first_range_overlap): New function.
6641 (value_available_contents_eq): New function.
6642 * valprint.c (val_print_array_elements): Use
6643 value_available_contents_eq.
6644 * ada-valprint.c (val_print_packed_array_elements): Use
6645 value_available_contents_eq.
6646 * jv-valprint.c (java_value_print): Use
6647 value_available_contents_eq.
6649 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6651 * target.c (target_read_live_memory): New function.
6652 (memory_xfer_live_readonly_partial): New.
6653 (memory_xfer_partial): If reading from a traceframe, fallback to
6654 reading unavailable read-only memory from read-only regions of
6656 * tracepoint.c (disconnect_tracing): Adjust.
6657 (set_current_traceframe): New, factored out from
6658 set_traceframe_number.
6659 (set_traceframe_number): Reimplement to only change the traceframe
6660 number on the GDB side.
6661 (do_restore_current_traceframe_cleanup): Adjust.
6662 (make_cleanup_restore_traceframe_number): New.
6663 (cur_traceframe_number): New global.
6664 (tfile_open): Set cur_traceframe_number to no traceframe.
6665 (set_tfile_traceframe): New function.
6666 (tfile_trace_find): If looking up a traceframe using any method
6667 other than by number, make sure the current tfile traceframe
6668 matches gdb's current traceframe. Update the current tfile
6669 traceframe if the lookup succeeded.
6670 (tfile_fetch_registers, tfile_xfer_partial)
6671 (tfile_get_trace_state_variable_value): Make sure the remote
6672 traceframe matches gdb's current traceframe.
6673 * remote.c (remote_traceframe_number): New global.
6674 (remote_open_1): Set it to -1.
6675 (set_remote_traceframe): New function.
6676 (remote_fetch_registers, remote_store_registers)
6677 (remote_xfer_memory, remote_xfer_partial)
6678 (remote_get_trace_state_variable_value): Make sure the remote
6679 traceframe matches gdb's current traceframe.
6680 (remote_trace_find): If looking up a traceframe using any method
6681 other than by number, make sure the current remote traceframe
6682 matches gdb's current traceframe. Update the current remote
6683 traceframe if the lookup succeeded.
6684 * infrun.c (fetch_inferior_event): Adjust.
6685 * tracepoint.h (set_current_traceframe): Declare.
6686 (get_traceframe_number, set_traceframe_number): Add describing
6689 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6691 Mark pieces of values as unavailable if the corresponding memory
6694 * valops.c: Include tracepoint.h.
6695 (value_fetch_lazy): Use read_value_memory.
6696 (read_value_memory): New.
6697 * value.h (read_value_memory): Declare.
6698 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
6699 * exec.c (section_table_available_memory): New function.
6700 * exec.h (section_table_available_memory): Declare.
6702 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6704 * Makefile.in (SFILES): Add memrange.c.
6705 (HFILES_NO_SRCDIR): Add memrange.h.
6706 (COMMON_OBS): Add memrange.o.
6707 * memrange.c: New file.
6708 * memrange.h: New file.
6709 * tracepoint.c: Include memrange.h.
6710 (struct mem_range): Delete.
6711 (mem_range_s): Delete.
6712 (traceframe_available_memory): New function.
6713 * tracepoint.h (traceframe_available_memory): Declare.
6715 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6717 * target.h (struct traceframe_info): Forward declare.
6718 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
6719 (struct target_ops) <to_traceframe_info>: New field.
6720 (target_traceframe_info): New.
6721 * target.c (update_current_target): Inherit and default
6723 * remote.c (PACKET_qXfer_traceframe_info): New.
6724 (remote_protocol_features): Register qXfer:traceframe-info:read.
6725 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
6726 (remote_traceframe_info): New.
6727 (init_remote_ops): Install it.
6728 (_initialize_remote): Install "set/show remote traceframe-info"
6730 * tracepoint.h (parse_traceframe_info): Declare.
6731 * tracepoint.c (struct mem_range): New.
6732 (mem_range_s): New typedef.
6733 (struct traceframe_info): New.
6734 (traceframe_info): New global.
6735 (free_traceframe_info): New function.
6736 (clear_traceframe_info): New function.
6737 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
6739 (build_traceframe_info): New function.
6740 (tfile_traceframe_info): New function.
6741 (init_tfile_ops): Install tfile_traceframe_info.
6742 (traceframe_info_start_memory, free_result): New functions.
6743 (memory_attributes, traceframe_info_elements): New globals.
6744 (parse_traceframe_info, get_traceframe_info): New functions.
6745 * features/traceframe-info.dtd: New file.
6746 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
6748 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6750 Base support for <unavailable> value contents.
6752 * value.h (value_bytes_available): Declare.
6753 (mark_value_bytes_unavailable): Declare.
6754 * value.c (struct range): New struct.
6755 (range_s): New typedef.
6756 (ranges_overlap): New function.
6757 (range_lessthan): New function.
6758 (ranges_contain_p): New function.
6759 (struct value) <unavailable>: New field.
6760 (value_bytes_available): New function.
6761 (mark_value_bytes_unavailable): New function.
6762 (require_not_optimized_out): Constify parameter.
6763 (require_available): New function.
6764 (value_contents_all, value_contents): Require all bytes be
6766 (value_free): Free `unavailable'.
6767 (value_copy): Copy `unavailable'.
6768 * valprint.h (val_print_unavailable): Declare.
6769 * valprint.c (valprint_check_validity): Rename `offset' parameter
6770 to `embedded_offset'. If printing a scalar, check whether the
6771 value chunk is available.
6772 (val_print_unavailable): New.
6773 (val_print_scalar_formatted): Check whether the value is
6775 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
6776 pretty-printing unavailable values.
6778 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6780 Fix const/volatile qualifiers of C++ types, PR c++/12328.
6781 * c-typeprint.c (c_type_print_args): Update the function comment. New
6782 variable param_type, initialize it. Remove const/volatile qualifiers
6783 for language_cplus and !show_artificial. Use param_type.
6785 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6787 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
6788 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
6789 * symtab.h (struct symtab) <next>: Comment extension.
6791 2011-02-12 Yao Qi <yao@codesourcery.com>
6793 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
6795 2011-02-11 Yao Qi <yao@codesourcery.com>
6797 * common/Makefile.in: Add copyright header.
6799 2011-02-11 Pedro Alves <pedro@codesourcery.com>
6801 * infrun.c (proceed): Move switching out and in of tfind mode from
6803 (fetch_inferior_event): ... to here.
6805 2011-02-11 Yao Qi <yao@codesourcery.com>
6807 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6809 * configure.ac: Add common to sub dir.
6810 * configure: Regenerate.
6812 2011-02-11 Yao Qi <yao@codesourcery.com>
6816 * common/Makefile.in: New.
6817 * common/configure.ac: New.
6818 * common/aclocal.m4: New.
6819 * common/configure: Generate.
6821 2011-02-10 Pedro Alves <pedro@codesourcery.com>
6823 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
6824 side of the parenthesis.
6827 2010-07-13 Jakub Jelinek <jakub@redhat.com>
6828 * vec.h (VEC_block_remove): Fix comment.
6830 2011-02-08 Michael Snyder <msnyder@vmware.com>
6832 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
6834 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6836 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
6837 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
6840 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6843 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
6845 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
6846 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
6848 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6850 * dwarf2read.c (read_subroutine_type): Set special calling
6851 convention flag for functions compiled by IBM XL C for OpenCL.
6852 * ppc-sysv-tdep.c: Include "dwarf2.h"
6853 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
6855 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
6856 IBM OpenCL vector types calling convention.
6857 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
6858 (ppc_sysv_abi_broken_return_value): Likewise.
6859 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
6860 types calling convention.
6861 (ppc64_sysv_abi_return_value): Likewise.
6862 * spu-tdep.c: Include "dwarf2.h"
6863 (spu_return_value): Implement IBM OpenCL vector types calling
6866 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6868 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
6869 correct ABI for AltiVec vector arguments.
6871 2011-02-07 Pedro Alves <pedro@codesourcery.com>
6873 * valprint.c (val_print): Extend comment.
6874 * ada-valprint.c (ada_valprint): Rewrite comment deferring
6875 interface explanation to val_print.
6876 (ada_val_print_array): Adjust comment to current interface.
6877 (print_field_values): Adjust comment to current interface.
6878 * c-valprint.c (c_val_print): Rewrite comment deferring interface
6879 explanation to val_print.
6880 * f-valprint.c (f_val_print): Ditto.
6881 * jv-valprint.c (java_val_print): Ditto.
6882 * m2-valprint.c (m2_val_print): Ditto.
6883 * p-valprint.c (pascal_val_print): Ditto.
6885 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6887 * breakpoint.c (parse_breakpoint_sals): Fix description.
6889 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
6890 Oguz Kayral <oguzkayral@gmail.com>
6892 * python/py-inferior.c (python_on_normal_stop): New function.
6893 (python_on_resume): New function.
6894 (python_inferior_exit): New function.
6895 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
6896 inferior_exit observers.
6897 * python/py-evtregistry.c: New file.
6898 * python/py-threadevent.c : New file.
6899 * python/py-event.c: New file.
6900 * python/py-evts.c: New file.
6901 * python/py-continueevent.c: New file.
6902 * python/py-bpevent.c: New file.
6903 * python/py-signalevent.c: New file.
6904 * python/py-exetiedevent.c: New file.
6905 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
6906 Move struct breakpoint_object from here...
6907 * python/python-internal.h: ... to here.
6908 * python/py-event.h: New file.
6909 * python/py-events.h: New file.
6910 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
6911 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
6912 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
6913 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
6914 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
6915 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
6916 Add build rules for all the above.
6918 2011-02-04 Tom Tromey <tromey@redhat.com>
6920 * dwarf2read.c (dwarf2_section_empty_p): New function.
6921 (dwarf2_read_section): Use dwarf2_section_empty_p.
6922 (dwarf2_section_size): New function.
6923 (dwarf2_get_section_info): Unconditionally read section.
6924 (dwarf2_read_index): Use dwarf2_section_empty_p.
6925 (partial_read_comp_unit_head): Use dwarf2_section_size.
6926 (dwarf2_symbol_mark_computed): Likewise.
6928 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6930 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
6932 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6934 * mips-linux-tdep.c: Include xml-syscall.h.
6935 (mips_linux_get_syscall_number): New function.
6936 (mips_linux_init_abi): Add calls to
6937 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
6938 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6939 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
6940 * syscalls/mips-n32-linux.xml: New file.
6941 * syscalls/mips-n64-linux.xml: New file.
6942 * syscalls/mips-o32-linux.xml: New file.
6944 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6946 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
6947 Complain about inverted range entries.
6948 (dwarf2_record_block_ranges): Likewise.
6950 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6953 * breakpoint.c (update_watchpoint): Fix name of the
6954 update_global_location_list function.
6955 (print_one_breakpoint): Fix typo.
6956 (_initialize_breakpoint): Remove extra space in hbreak help
6958 * breakpoint.h (struct bp_location) <length>: Fix field
6961 2011-02-04 Pedro Alves <pedro@codesourcery.com>
6963 * regcache.c (registers_changed_ptid): Don't explictly always
6964 clear `current_regcache'. Only clear current_thread_ptid and
6965 current_thread_arch when PTID matches. Only reinit the frame
6966 cache if PTID matches the current inferior_ptid. Move alloca(0)
6968 (registers_changed): ... here.
6970 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
6972 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
6973 starts with __stack_chk_guard as stack guard symbol.
6975 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
6977 * disasm.c (compare_lines): Handle the end of sequence markers
6978 within the line table to better support disassembling over
6979 compilation unit boundaries.
6981 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6983 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
6984 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
6985 implementation even if no symbols are available.
6986 (thumb_analyze_prologue): Update call to skip_prologue_function.
6987 (arm_analyze_prologue): Likewise.
6989 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6991 * arm-tdep.c: Include "observer.h".
6992 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
6993 (arm_exidx_data_key): New static variable.
6994 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
6995 (struct arm_exidx_data): Likewise.
6996 (arm_exidx_data_free): New function.
6997 (arm_compare_exidx_entries): Likewise.
6998 (arm_obj_section_from_vma): Likewise.
6999 (arm_exidx_new_objfile): Likewise.
7000 (arm_find_exidx_entry): Likewise.
7001 (arm_exidx_fill_cache): Likewise.
7002 (arm_exidx_unwind_sniffer): Likewise.
7003 (arm_exidx_unwind): New global variable.
7004 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7005 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7006 observer. Register arm_exidx_data_key as objfile data.
7008 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7010 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7011 due to accessing uninitialized variable. Fix indentation.
7013 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7015 * c-valprint.c (c_value_print): When doing virtual base pointer
7016 adjustment, create a new value with adjusted contents rather than
7017 changing the contents of the value being printed (and getting it
7020 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7022 * xml-support.c (xml_find_attribute): New.
7023 (xinclude_start_include): Use it.
7024 * xml-support.h (xml_find_attribute): Declare.
7025 * memory-map.c (memory_map_start_memory)
7026 (memory_map_start_property): Use xml_find_attribute.
7027 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7029 * remote.c (start_thread): Use xml_find_attribute.
7030 * solib-target.c (library_list_start_segment)
7031 (library_list_start_section, library_list_start_library)
7032 (library_list_start_list): Use xml_find_attribute.
7033 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7034 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7035 (tdesc_start_field): Use xml_find_attribute.
7037 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7039 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7040 (BUILD_OCL_VTYPES): Update.
7042 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7044 * configure.ac: Work around non-GNU sed limitation when computing
7045 python version number.
7046 * configure: Regenerate.
7048 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7050 Fix debug printing of TYPE_INSTANCE.
7051 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7052 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7054 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7056 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7057 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7058 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7059 * ada-operator.inc: Rename the file to ...
7060 * ada-operator.def: ... here, wrap all the entries by macro OP.
7061 * expprint.c (op_name_standard): Remove all the entries. Include
7062 "std-operator.def" instead.
7063 * expression.h (enum exp_opcode): Include "std-operator.def" and
7064 "ada-operator.def". Move all the entries ...
7065 * std-operator.def: ... here, wrap all the entries by macro OP.
7067 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7069 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7070 * breakpoint.c (remove_jit_event_breakpoints): New function.
7071 * jit.c (jit_descriptor_addr): Delete.
7072 (registering_code): Delete.
7073 (clear_int): Delete.
7074 (jit_inferior_data): New variable.
7075 (struct jit_inferior_data): New type.
7076 (get_jit_inferior_data): New function.
7077 (jit_inferior_data_cleanup): New function.
7078 (jit_read_descriptor): Adjust.
7079 (jit_register_code): Adjust.
7080 (jit_breakpoint_re_set_internal): New function; move code here ...
7081 (jit_inferior_init): ... from here.
7082 (jit_breakpoint_re_set): Adjust.
7083 (jit_reset_inferior_data_and_breakpoints): New function.
7084 (jit_inferior_created_observer): Adjust.
7085 (jit_inferior_exit_hook): Adjust.
7086 (jit_executable_changed_observer): New function.
7087 (jit_event_handler): Adjust.
7088 (_initialize_jit): Adjust.
7090 2011-01-31 Michael Snyder <msnyder@vmware.com>
7092 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7095 2011-01-31 Tom Tromey <tromey@redhat.com>
7098 * python/python.c (execute_gdb_command): Call
7099 prevent_dont_repeat.
7100 * top.c (suppress_dont_repeat): New global.
7101 (dont_repeat): Use it.
7102 (prevent_dont_repeat): New function.
7103 * command.h (prevent_dont_repeat): Declare.
7105 2011-01-31 Tom Tromey <tromey@redhat.com>
7107 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7108 * python/py-breakpoint.c (bppy_set_silent): Use
7109 breakpoint_set_silent.
7110 (bppy_set_thread): Use breakpoint_set_thread.
7111 (bppy_set_task): Use breakpoint_set_task.
7112 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7113 (breakpoint_set_task): Declare.
7114 (make_breakpoint_silent): Remove.
7115 * breakpoint.c (breakpoint_set_silent): New function.
7116 (breakpoint_set_thread): Likewise.
7117 (breakpoint_set_task): Likewise.
7118 (make_breakpoint_silent): Remove.
7120 2011-01-31 Tom Tromey <tromey@redhat.com>
7122 * breakpoint.h (user_breakpoint_p): Declare.
7123 * breakpoint.c (user_breakpoint_p): New function.
7124 (breakpoint_1): Use it.
7125 (save_breakpoints): Likewise.
7127 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7129 * configure.ac: Add handling of Python distribution on Windows.
7130 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7131 sysconfig variables are not defined, then do not use them.
7132 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7133 instead. On Windows, return all paths using forward-slashes
7134 rather than backslashes.
7136 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7138 * configure.ac: Remove fallback behavior for building
7139 against Python. Remove tweaking of Python include path.
7140 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7141 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7142 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7143 Always restore CPPFLAGS and LIBS after linking test.
7144 * configure: Regenerated.
7145 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7146 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7147 * python/python-internal.h: Adjust includes of Python .h files.
7149 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7151 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7154 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7156 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7159 2011-01-31 Yao Qi <yao@codesourcery.com>
7161 * arm-linux-nat.c: Update calls to regcache_register_status
7162 instead of regcache_valid_p.
7163 * aix-thread.c: Likewise.
7164 * i386gnu-nat.c: Likewise.
7166 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7169 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7170 touching TYPE_FIELD_ARTIFICIAL.
7172 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7174 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7177 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7179 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7180 selected, don't try iterating over the traceframe's blocks.
7181 (tfile_has_stack): If there's no traceframe selected, then there's
7183 (tfile_has_registers): If there's no traceframe selected, then
7184 there's no registers.
7186 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7188 * target.c (memory_xfer_partial): No need to restore shadows if we
7189 haven't read anything.
7191 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7193 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7194 and val_print_scalar_formatted.
7196 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7198 * tracepoint.c (tfile_read): New.
7199 (tfile_open): Use it.
7200 (tfile_get_traceframe_address): Use it.
7201 (tfile_trace_find): Use it.
7202 (walk_blocks_callback_func): New typedef.
7203 (match_blocktype): New function.
7204 (traceframe_walk_blocks): New function.
7205 (traceframe_find_block_type): New function.
7206 (tfile_fetch_registers, tfile_xfer_partial)
7207 (tfile_get_trace_state_variable_value): Use
7208 traceframe_find_block_type and tfile_read.
7210 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7212 * remote-mips.c: Add internationalization mark ups. Remove
7213 trailing \n from already marked up strings.
7215 2011-01-26 Tom Tromey <tromey@redhat.com>
7217 * python/py-prettyprint.c (print_string_repr): Clear
7218 'addressprint' option when calling val_print_string.
7219 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7220 option when calling val_print_string.
7222 2011-01-26 Tom Tromey <tromey@redhat.com>
7224 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7226 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7228 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7229 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7230 (gdb_py_long_as_ulongest): New defines.
7231 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7232 (gdb_py_int_as_long): Declare.
7233 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7234 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7235 (valpy_long): Add comment.
7236 * python/py-utils.c (get_addr_from_python): Use
7237 gdb_py_long_as_ulongest. Handle overflow properly.
7238 (gdb_py_object_from_longest): New function.
7239 (gdb_py_object_from_ulongest): Likewise.
7240 (gdb_py_int_as_long): Likewise.
7241 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7242 * python/py-symtab.c (salpy_get_pc): Use
7243 gdb_py_long_from_ulongest.
7244 (salpy_get_line): Use PyInt_FromLong.
7245 * python/py-param.c (set_parameter_value): Use
7247 * python/py-lazy-string.c (stpy_get_address): Use
7248 gdb_py_long_from_ulongest.
7249 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7250 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7251 * python/py-breakpoint.c (bppy_set_thread): Use
7253 (bppy_set_task): Likewise.
7254 (bppy_set_ignore_count): Likewise.
7255 (bppy_set_hit_count): Likewise.
7256 * python/py-block.c (blpy_get_start): Use
7257 gdb_py_object_from_ulongest.
7258 (blpy_get_end): Likewise.
7259 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7261 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7264 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7265 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7266 equality test for objfile, initialize addr_low if needed.
7268 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7270 * tui/tui-regs.c (tui_register_format): Remove dead code.
7272 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7274 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7275 instead of print_scalar_formatted.
7276 (print_scalar_formatted): Don't handle 's' format strings here,
7277 and add an assertion that we never see such format here.
7278 * valprint.h (val_print_scalar_formatted): Declare.
7279 * valprint.c (val_print_scalar_formatted): New.
7280 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7281 instead of print_scalar_formatted.
7282 * jv-valprint.c (java_val_print): Ditto.
7283 * p-valprint.c (pascal_val_print): Ditto.
7284 * ada-valprint.c (ada_val_print_1): Ditto.
7285 * f-valprint.c (f_val_print): Ditto.
7286 * infcmd.c (registers_info): Ditto.
7287 * m2-valprint.c (m2_val_print): Ditto.
7289 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7291 * m2-valprint.c (print_unbounded_array): Pass
7292 value_contents_for_printing rather than value_contents, to
7293 m2_print_array_contents. Also pass in the value.
7295 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7297 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7298 (save_gdb_index_command): Switch to .gdb_index version 4.
7300 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7302 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7303 than frame_register, and always pass a valid value to val_print.
7305 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7307 Centralize printing "<optimized out>".
7309 * valprint.h (val_print_optimized_out): Declare.
7310 * cp-valprint.c (cp_print_value_fields): Use
7311 val_print_optimized_out.
7312 * jv-valprint.c (java_print_value_fields): Ditto.
7313 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7314 * printcmd.c (print_formatted): Ditto.
7315 * valprint.c (valprint_check_validity): Ditto.
7316 (value_check_printable): Ditto.
7317 (val_print_optimized_out): New.
7319 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7321 * infcmd.c (default_print_registers_info): Allocate values so to
7322 never pass a NULL value to val_print.
7324 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7326 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7327 boolean. Make sure to always pass a value that matches the
7328 contents buffer to callees. Preserve `address' for following
7330 * value.c (value_contents_for_printing_const): New.
7331 (value_address): Constify value argument.
7332 * value.h (value_contents_for_printing_const): Declare.
7333 (value_address): Constify value argument.
7335 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7337 * regcache.c (struct regcache_descr): Rename
7338 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7339 and sizeof_cooked_register_valid_p to
7340 sizeof_cooked_register_status.
7341 (init_regcache_descr): Adjust.
7342 (struct regcache): Rename register_valid_p field to
7344 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7345 (do_cooked_read): Adjust.
7346 (regcache_valid_p): Rename to ...
7347 (regcache_register_status): ... this. Adjust.
7348 (regcache_invalidate): Adjust.
7349 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7351 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7352 as unavailable, not valid.
7353 (regcache_dump): Adjust.
7354 * regcache.h (enum register_status): New.
7355 (regcache_register_status): Declare.
7356 (regcache_invalidate): Delete declaration.
7357 * corelow.c (get_core_registers): Adjust.
7358 * tracepoint.c (tfile_fetch_registers): Adjust.
7359 * trad-frame.c (REG_VALUE): Rename to ...
7360 (TF_REG_VALUE): ... this.
7361 (REG_UNKNOWN): Rename to ...
7362 (TF_REG_UNKNOWN): ... this.
7363 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7364 * mi/mi-main.c (register_changed_p): Adjust.
7366 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7368 * regcache.c (struct regcache_descr): Remove outdated comment.
7369 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7371 (regcache_xmalloc): Rename to ...
7372 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7373 Allocate the regcache type accordingly.
7374 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7375 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7376 cooked registers, not raw.
7377 (regcache_dup_no_passthrough): Delete.
7378 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7379 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7380 mention obsolete write_register_bytes.
7381 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7383 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7385 Stop remote_read_bytes from handling partial reads itself.
7387 * remote-fileio.c: Include target.h.
7388 (remote_fileio_write_bytes): Delete.
7389 (remote_fileio_func_open, remote_fileio_func_write)
7390 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7392 (remote_fileio_func_stat): Use target_read_memory and
7393 target_write_memory.
7394 (remote_fileio_func_gettimeofday): Use target_write_memory.
7395 (remote_fileio_func_system): Use target_read_memory.
7396 * remote.c (remote_write_bytes): Make it static.
7397 (remote_read_bytes): Don't handle partial reads here.
7398 * remote.h (remote_read_bytes): Delete declaration.
7400 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7402 Simplify XML parsing a bit.
7404 * xml-support.h (gdb_xml_parse_quick): Declare.
7405 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7406 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7408 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7409 gdb_xml_create_parser_and_cleanup_1.
7410 (gdb_xml_parse_quick): New.
7411 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7412 * osdata.c (osdata_parse): Ditto.
7413 * remote.c (remote_threads_info): Ditto.
7414 * solib-target.c (solib_target_parse_libraries): Ditto.
7415 * xml-syscall.c (syscall_parse_xml): Ditto.
7416 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7418 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7420 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7421 with remote-mips.o added to gdb_target_obs.
7422 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7424 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7426 * ada-valprint.c (val_print_packed_array_elements): Pass the
7427 correct struct value to val_print.
7428 (ada_val_print_1): Ditto.
7430 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7432 Don't lose embedded_offset in printing routines throughout.
7434 * valprint.h (val_print_array_elements): Change prototype.
7435 * valprint.c (val_print_array_elements): Add `embedded_offset'
7436 parameter, and adjust to pass it down to val_print, while passing
7437 `valaddr' or `address' unmodified. Take embedded_offset into
7438 account when checking repetitions.
7439 * c-valprint.c (c_val_print): Pass embedded_offset to
7440 val_print_array_elements instead of adjusting `valaddr' and
7442 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7443 embedded_offset to val_print_array_elements instead of adjusting
7445 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7446 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7447 val_print_array_elements and pascal_object_print_value_fields
7448 instead of adjusting `valaddr'.
7449 (pascal_object_print_value_fields): Add `offset' parameter, and
7451 (pascal_object_print_value): Add `offset' parameter, and adjust to
7453 (pascal_object_print_static_field): Use
7454 value_contents_for_printing/value_embedded_offset, rather than
7456 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7457 parameter, and adjust to use it. Use
7458 value_contents_for_printing/value_embedded_offset, rather than
7460 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7461 (ada_val_print_array): Add `offset' parameter, and adjust to use
7463 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7464 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7465 Instead work with offsets. Use
7466 value_contents_for_printing/value_embedded_offset, rather than
7467 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7468 and use value_from_pointer to extract a target pointer, rather
7469 than value_from_longest.
7470 (print_variant_part): Add `offset' parameter. Replace
7471 `outer_valaddr' parameter by a new `outer_offset' parameter.
7472 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7473 (ada_value_print): Use
7474 value_contents_for_printing/value_embedded_offset, rather than
7476 (print_record): Add `offset' parameter, and adjust to pass it
7478 (print_field_values): Add `offset' parameter. Replace
7479 `outer_valaddr' parameter by a new `outer_offset' parameter.
7480 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7481 Use value_contents_for_printing/value_embedded_offset, rather than
7483 * d-valprint.c (dynamic_array_type): Use
7484 value_contents_for_printing/value_embedded_offset, rather than
7486 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7487 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7488 (java_print_value_fields): Take `offset' into account. Don't
7489 re-adjust `valaddr'. Instead pass down adjusted offsets.
7490 (java_val_print): Take `embedded_offset' into account. Pass it to
7491 java_print_value_fields.
7492 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7493 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7494 down adjusted offsets.
7495 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7496 (f_val_print): Take `embedded_offset' into account.
7498 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7500 * inflow.c: Include "gdbcmd.h".
7501 (interactive_mode): New static global, moved here from top.c.
7502 (show_interactive_mode): New function, moved here from top.c.
7503 use gdb_has_a_terminal instead of input_from_terminal_p to
7504 determine the current mode.
7505 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7507 (_initialize_inflow): Add the "set/show interactive-mode"
7508 commands. Moved here from top.c, after having adjusted slightly
7510 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7512 (input_from_terminal_p): Remove handling of "interactive-mode"
7513 setting, moved to infow.c.
7514 (init_main): Remove creation of the "set/show interactive-mode"
7515 commands, moved to inflow.c.
7517 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7519 * NEWS: Add entry for native ia64-hpux support.
7521 2011-01-19 Tom Tromey <tromey@redhat.com>
7524 * thread.c (free_thread): Free 'name'.
7525 (print_thread_info): Emit thread name. Change CLI output.
7526 (thread_name_command): New function.
7527 (do_captured_thread_select): Emit newline.
7528 (_initialize_thread): Register 'thread name' command.
7529 * target.h (struct target_ops) <to_thread_name>: New field.
7530 (target_thread_name): New macro.
7531 * target.c (update_current_target): Handle to_thread_name.
7532 * python/py-infthread.c (thpy_get_name): New function.
7533 (thpy_set_name): Likewise.
7534 (thread_object_getset): Add "name".
7535 * linux-nat.c (linux_nat_thread_name): New function.
7536 (linux_nat_add_target): Set to_thread_name.
7537 * gdbthread.h (struct thread_info) <name>: New field.
7539 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7541 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7542 (ada_val_print_1): Likewise.
7544 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7546 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7547 upper limit address is not greater than the function end address
7548 when the upper limit could not be computed using the debugging
7551 2011-01-17 Tom Tromey <tromey@redhat.com>
7553 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7555 * utils.c: Include gdb_regex.h.
7556 (do_regfree_cleanup): New function.
7557 (make_regfree_cleanup): Likewise.
7558 (get_regcomp_error): Likewise.
7559 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7561 2011-01-17 Tom Tromey <tromey@redhat.com>
7563 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7566 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7568 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7569 for internal variables.
7570 (last_was_structop): New static variable.
7571 (COMPLETE): New token.
7572 (field_exp): New rule to group all '.' suffix handling.
7573 Add mark_struct_expression calls when approriate to be able
7574 to correctly find fields for completion.
7575 (yylex): Adapt to handle field completion and set INTVAR when
7578 2011-01-14 Yao Qi <yao@codesourcery.com>
7580 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7581 save_reggroup, restore_reggroup and all_reggroup.
7583 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7585 * ada-valprint. (ada_printchar): Use the correct type length
7586 in call to ada_emit_char.
7587 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7589 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7591 * solib-som.h (hpux_major_release): Declare variable here.
7592 * solib-som.c: Remove <sys/utsname.h> header.
7593 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7594 (hpux_major_release): Make global, change default value to
7595 DEFAULT_HPUX_MAJOR_RELEASE.
7596 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7597 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7598 Add "solib-som.h" header.
7599 (set_hpux_major_release): New function.
7600 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7602 2011-01-14 Mike Frysinger <vapier@gentoo.org>
7604 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7606 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7608 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7609 new-line at end of warning message.
7610 (ia64_hpux_store_register): Remove trailing new-line at end of
7612 * ia64-hpux-tdep.c: Rephrase comment.
7613 * solib-ia64-hpux.c (struct dld_info): Change type of field
7614 dld_flags from "long long" to ULONGEST.
7616 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7618 * target.h (deprecated_child_ops): Delete declaration.
7619 * target.c (deprecated_child_ops): Delete definition.
7621 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7623 * Makefile.in (hpux-thread.o): Delete rule.
7624 * configure.ac: Don't check for HPUX DCE threads support.
7625 * configure, config.in: Regenerate.
7626 * hppa-hpux-nat.c (child_suppress_run): Delete.
7627 (hppa_hpux_child_can_run): Delete.
7628 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7629 * hpux-thread.c: Delete.
7631 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7633 * hpux-thread.c (hpux_pid_to_str): Delete.
7635 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7637 * ada-valprint.c (ada_emit_char): Remove strange code.
7638 Check that c is <= UCHAR_MAX before passing it to isascii.
7639 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7641 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7643 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7644 to the case where instream is stdin.
7646 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7648 * ia64-tdep.h (struct regcache): Forward declare.
7649 (struct ia64_infcall_ops): New struct type.
7650 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7652 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7653 Renames ia64_find_global_pointer.
7654 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7655 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7656 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7658 (ia64_infcall_ops): New static global constant.
7659 (ia64_gdbarch_init): Set tdep->infcall_ops.
7660 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7661 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7662 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7663 (ia64_hpux_dummy_code): New static global constant.
7664 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7665 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7666 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7668 (ia64_hpux_infcall_ops): New static global constant.
7669 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7670 for inferior function calls to work properly on ia64-hpux.
7672 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7674 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7675 * ia64-tdep.h (struct frame_info): forward declaration.
7676 (struct gdbarch_tdep): Add field size_of_register_frame.
7677 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
7678 to determine the size of the register frame.
7679 (ia64_size_of_register_frame): New function.
7680 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
7681 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
7682 (IA64_HPUX_UREG_REASON): New macro.
7683 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
7685 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
7686 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
7687 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
7690 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7692 Add support for ia64-hpux.
7693 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
7694 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
7696 * configure.host: Add handling for ia64-hpux hosts. Add associated
7698 * configure.tgt: Add handling for ia64-hpux targets.
7699 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
7700 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
7701 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
7703 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7705 [ttrace] Compute thread list immediately after attach.
7706 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
7708 (inf_ttrace_attach): Use it.
7710 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7712 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
7713 if we could not determine the frame's function address. Instead,
7714 use the frame's PC, and then continue.
7716 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7718 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
7719 not already defined.
7721 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7723 * ia64-tdep.c (ia64_struct_type_p): New function.
7724 (ia64_extract_return_value): Handle integral values that are
7725 less than 8 bytes long.
7726 (ia64_push_dummy_call): Likewise.
7728 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7730 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
7731 floatformat_ia64_ext.
7732 (floatformat_ia64_ext_big): New static const.
7733 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
7735 2011-01-12 Tom Tromey <tromey@redhat.com>
7737 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
7739 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
7740 (mi_cmd_thread_list_ids): Likewise.
7741 (mi_cmd_data_list_changed_registers): Likewise.
7742 (mi_cmd_data_list_register_values): Likewise.
7743 (mi_cmd_data_write_register_values): Likewise.
7744 (mi_cmd_data_evaluate_expression): Likewise.
7745 (mi_cmd_data_read_memory): Likewise.
7746 (mi_cmd_data_read_memory_bytes): Likewise.
7747 (mi_cmd_data_write_memory): Likewise.
7748 (mi_cmd_enable_timings): Likewise.
7749 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
7750 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
7751 (mi_cmd_var_delete): Likewise.
7752 (mi_cmd_var_set_format): Likewise.
7753 (mi_cmd_var_show_format): Likewise.
7754 (mi_cmd_var_info_num_children): Likewise.
7755 (mi_cmd_var_list_children): Likewise.
7756 (mi_cmd_var_info_type): Likewise.
7757 (mi_cmd_var_info_expression): Likewise.
7758 (mi_cmd_var_show_attributes): Likewise.
7759 (mi_cmd_var_assign): Likewise.
7760 (mi_cmd_var_update): Likewise.
7761 (mi_cmd_enable_pretty_printing): Likewise.
7762 (mi_cmd_var_set_update_range): Likewise.
7763 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
7765 (mi_cmd_target_file_put): Likewise.
7766 (mi_cmd_target_file_delete): Likewise.
7767 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
7769 (mi_cmd_stack_info_depth): Likewise.
7770 (mi_cmd_stack_list_locals): Likewise.
7771 (mi_cmd_stack_list_args): Likewise.
7772 (mi_cmd_stack_select_frame): Likewise.
7773 (mi_cmd_stack_select_frame): Likewise.
7774 (mi_cmd_stack_info_frame): Likewise.
7775 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
7777 (mi_cmd_file_list_exec_source_files): Likewise.
7778 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
7779 (mi_cmd_env_cd): Likewise.
7780 (mi_cmd_env_path): Likewise.
7781 (mi_cmd_env_dir): Likewise.
7782 (mi_cmd_inferior_tty_show): Likewise.
7783 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
7784 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
7785 (mi_cmd_break_watch): Likewise.
7787 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
7789 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
7790 (ppc_linux_insert_hw_breakpoint): Likewise.
7791 (ppc_linux_remove_hw_breakpoint): Likewise.
7792 (ppc_linux_insert_watchpoint): Likewise.
7794 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7795 Jan Kratochvil <jan.kratochvil@redhat.com>
7797 PR fortran/11104 and DWARF unbound arrays detection.
7798 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
7799 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
7800 unspecified upper bound.
7801 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
7802 variables array_size_array, tmp_type and offset_item. New variable
7803 array. Remove call to f77_get_upperbound. New variables array_type
7804 and index. Call value_subscripted_rvalue for each dimenasion. Remove
7805 the final call to deprecated_set_value_type.
7807 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7809 Make value allocations more lazy.
7810 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
7811 instead of allocate_value and set_value_lazy when possible.
7812 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
7813 instead of allocate_value and set_value_lazy.
7814 * findvar.c (value_of_register_lazy): Likewise.
7815 (read_var_value): Remove V preallocation, call just check_typedef in
7816 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
7817 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
7818 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
7819 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
7820 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
7821 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
7822 the end, remove set_value_lazy there.
7823 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
7824 instead of allocate_value and set_value_lazy when possible.
7825 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
7826 * value.c (allocate_computed_value): Use allocate_value_lazy instead
7827 of allocate_value and set_value_lazy.
7828 (value_from_contents_and_address): Use allocate_value_lazy instead of
7829 allocate_value and set_value_lazy when possible.
7831 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7833 * disasm.c (dump_insns): Support dumping opcodes for MI.
7834 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
7835 dumping of instruction opcodes.
7837 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
7839 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
7842 2011-01-11 Tom Tromey <tromey@redhat.com>
7844 * thread.c (do_captured_thread_select): Emit newline before
7847 2011-01-11 Michael Snyder <msnyder@vmware.com>
7849 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
7850 * score-tdep.c: Ditto.
7851 * score-tdep.h: Ditto.
7852 * ser-base.c: Ditto.
7853 * ser-go32.c: Ditto.
7856 * ser-mingw.c: Ditto.
7857 * ser-pipe.c: Ditto.
7859 * ser-unix.c: Ditto.
7860 * sh64-tdep.c: Ditto.
7861 * shnbsd-nat.c: Ditto.
7865 * solib-darwin.c: Ditto.
7866 * solib-frv.c: Ditto.
7868 * solib-irix.c: Ditto.
7869 * solib-osf.c: Ditto.
7870 * solib-pa64.c: Ditto.
7871 * solib-som.c: Ditto.
7872 * solib-spu.c: Ditto.
7873 * solib-sunos.c: Ditto.
7874 * solib-svr4.c: Ditto.
7876 * sol-thread.c: Ditto.
7880 * sparc64-linux-tdep.c: Ditto.
7881 * sparc64-tdep.c: Ditto.
7882 * sparc-linux-nat.c: Ditto.
7883 * sparc-linux-tdep.c: Ditto.
7884 * sparc-sol2-nat.c: Ditto.
7885 * sparc-sol2-tdep.c: Ditto.
7886 * sparc-tdep.c: Ditto.
7887 * sparc-tdep.h: Ditto.
7888 * spu-tdep.c: Ditto.
7889 * stabsread.c: Ditto.
7890 * stabsread.h: Ditto.
7898 * target-descriptions.c: Ditto.
7899 * target-descriptions.h: Ditto.
7901 * target-memory.c: Ditto.
7902 * terminal.h: Ditto.
7905 * tracepoint.c: Ditto.
7906 * tracepoint.h: Ditto.
7907 * trad-frame.h: Ditto.
7908 * typeprint.c: Ditto.
7910 2011-01-11 Michael Snyder <msnyder@vmware.com>
7912 * ui-file.c: Comment cleanup, mostly periods and spaces.
7917 * v850-tdep.c: Ditto.
7918 * valarith.c: Ditto.
7920 * valprint.c: Ditto.
7921 * valprint.h: Ditto.
7926 * vax-tdep.c: Ditto.
7930 * windows-nat.c: Ditto.
7931 * windows-tdep.c: Ditto.
7932 * xcoffread.c: Ditto.
7933 * xcoffsolib.c: Ditto.
7934 * xml-support.c: Ditto.
7935 * xstormy16-tdep.c: Ditto.
7936 * xtensa-tdep.c: Ditto.
7937 * xtensa-tdep.h: Ditto.
7939 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7941 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
7942 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
7944 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7945 Thiago Jung Bauermann <bauerman@br.ibm.com>
7947 Implement support for PowerPC BookE ranged watchpoints.
7949 (struct breakpoint_ops) <resources_needed>: New method.
7950 Initialize to NULL in all existing breakpoint_ops instances.
7951 (struct breakpoint) <exact>: New field.
7952 (target_exact_watchpoints): Declare external global.
7953 * breakpoint.c (target_exact_watchpoints): New global flag.
7954 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
7955 b->enable_state to bp_enabled before calling
7956 hw_watchpoint_used_count.
7957 (hw_watchpoint_used_count): Iterate over all bp_locations in a
7958 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
7960 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
7961 if the watchpoint is exact.
7962 (resources_needed_watchpoint): New function.
7963 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
7964 (watch_command_1): Set b->exact if the user asked for an exact
7965 watchpoint and one can be set.
7966 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
7967 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
7968 the user asks for an exact watchpoint and one can be set. Return
7969 number of needed debug registers to watch the expression.
7970 * gdbtypes.c (is_scalar_type): New function, based on
7971 valprint.c:scalar_type_p.
7972 (is_scalar_type_recursive): New function.
7973 * gdbtypes.h (is_scalar_type_recursive): Declare.
7974 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
7975 handle regions when ranged watchpoints are available.
7976 (create_watchpoint_request): New function.
7977 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
7978 create_watchpoint_request.
7979 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
7980 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
7981 `set powerpc' and `show powerpc' commands.
7982 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7983 Mention documentation comment in the target macro.
7984 (target_region_ok_for_hw_watchpoint): Document return value.
7986 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7988 * breakpoint.c (update_watchpoint): Decide on using a software or
7989 hardware watchpoint after the bp_locations are created.
7991 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7993 Convert hardware watchpoints to use breakpoint_ops.
7994 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
7995 <insert_location>: ... this. Return int instead of void.
7996 Accept pointer to struct bp_location instead of pointer to
7997 struct breakpoint. Adapt all implementations.
7998 (breakpoint_ops) <remove>: Rename to...
7999 <remove_location>: ... this. Accept pointer to struct bp_location
8000 instead of pointer to struct breakpoint. Adapt all implementations.
8001 * breakpoint.c (insert_catchpoint): Delete function.
8002 (insert_bp_location): Call the watchpoint or catchpoint's
8003 breakpoint_ops.insert method.
8004 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8005 breakpoint_ops.remove method.
8006 (insert_watchpoint, remove_watchpoint): New functions.
8007 (watchpoint_breakpoint_ops): New structure.
8008 (watch_command_1): Initialize the OPS field.
8009 * inf-child.c (inf_child_insert_fork_catchpoint)
8010 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8011 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8012 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8014 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8015 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8016 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8017 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8018 * target.c (update_current_target): Change default implementation of
8019 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8020 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8021 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8022 to_set_syscall_catchpoint to return_one.
8023 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8024 (debug_to_insert_exec_catchpoint): Report return value.
8025 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8026 (to_insert_exec_catchpoint): Change declaration to return int instead
8029 2011-01-11 Michael Snyder <msnyder@vmware.com>
8031 * arm-tdep.c: Internationalization.
8034 * fork-child.c: Ditto.
8035 * nto-procfs.c: Ditto.
8036 * ppc-sysv-tdep.c: Ditto.
8038 * remote-mips.c: Ditto.
8040 * rs6000-nat.c: Ditto.
8041 * rs6000-tdep.c: Ditto.
8045 * xml-support.c: Ditto.
8046 * mi/mi-cmd-break.c: Ditto.
8047 * mi/mi-cmd-var.c: Ditto.
8048 * mi/mi-interp.c: Ditto.
8049 * mi/mi-main.c: Ditto.
8051 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8053 * remote-sim.c (gdbsim_store_register): Update API to
8054 sim_store_register to check more error conditions.
8056 2011-01-10 Michael Snyder <msnyder@vmware.com>
8058 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8059 * nto-tdep.c: Ditto.
8060 * nto-tdep.h: Ditto.
8061 * objc-exp.y: Ditto.
8062 * objc-lang.c: Ditto.
8063 * objfiles.c: Ditto.
8064 * objfiles.h: Ditto.
8065 * observer.c: Ditto.
8066 * opencl-lang.c: Ditto.
8069 * parser-defs.h: Ditto.
8072 * posix-hdep.c: Ditto.
8073 * ppcbug-rom.c: Ditto.
8074 * ppc-linux-nat.c: Ditto.
8075 * ppc-linux-tdep.c: Ditto.
8076 * ppc-linux-tdep.h: Ditto.
8077 * ppcnbsd-tdep.c: Ditto.
8078 * ppcobsd-tdep.c: Ditto.
8079 * ppcobsd-tdep.h: Ditto.
8080 * ppc-sysv-tdep.c: Ditto.
8081 * ppc-tdep.h: Ditto.
8082 * printcmd.c: Ditto.
8083 * proc-abi.c: Ditto.
8084 * proc-flags.c: Ditto.
8086 * proc-utils.h: Ditto.
8087 * progspace.h: Ditto.
8088 * prologue-value.c: Ditto.
8089 * prologue-value.h: Ditto.
8090 * psympriv.h: Ditto.
8092 * p-typeprint.c: Ditto.
8093 * p-valprint.c: Ditto.
8094 * ravenscar-sparc-thread.c: Ditto.
8095 * ravenscar-thread.c: Ditto.
8096 * ravenscar-thread.h: Ditto.
8098 * regcache.c: Ditto.
8099 * regcache.h: Ditto.
8101 * remote-fileio.c: Ditto.
8102 * remote-fileio.h: Ditto.
8104 * remote-m32r-sdi.c: Ditto.
8105 * remote-mips.c: Ditto.
8106 * remote-sim.c: Ditto.
8107 * rs6000-aix-tdep.c: Ditto.
8108 * rs6000-nat.c: Ditto.
8109 * rs6000-tdep.c: Ditto.
8111 2011-01-10 Michael Snyder <msnyder@vmware.com>
8113 * charset.c (validate): Internationalization.
8114 * coffread.c (read_one_sym): Ditto.
8115 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8116 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8117 * inflow.c (new_tty): Ditto.
8118 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8119 * m32c-tdep.c (m32c_return_value): Ditto.
8120 * mep-tdep.c (mep_store_return_value): Ditto.
8121 * score-tdep.c (score7_fetch_insn): Ditto.
8122 * ser-mingw.c (pipe_windows_open): Ditto.
8123 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8124 * spu-tdep.c (spu_register_type): Ditto.
8125 * tracepoint.c (trace_find_command): Ditto.
8126 * valarith.c (value_pos): Ditto.
8128 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8130 * ada-valprint.c (printstr): Minor comment reformatting.
8132 2011-01-08 Michael Snyder <msnyder@vmware.com>
8134 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8137 2011-01-08 Michael Snyder <msnyder@vmware.com>
8139 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8140 * hppa-hpux-tdep.c: Ditto.
8141 * hppa-linux-nat.c: Ditto.
8142 * hppa-linux-tdep.c: Ditto.
8143 * hppanbsd-tdep.c: Ditto.
8144 * hppa-tdep.c: Ditto.
8145 * hppa-tdep.h: Ditto.
8146 * hpux-thread.c: Ditto.
8147 * i386-cygwin-tdep.c: Ditto.
8148 * i386-darwin-nat.c: Ditto.
8149 * i386gnu-nat.c: Ditto.
8150 * i386-linux-nat.c: Ditto.
8151 * i386-linux-tdep.c: Ditto.
8152 * i386-nat.c: Ditto.
8153 * i386-nat.h: Ditto.
8154 * i386nbsd-tdep.c: Ditto.
8155 * i386-sol2-nat.c: Ditto.
8156 * i386-stub.c: Ditto.
8157 * i386-tdep.c: Ditto.
8158 * i386-tdep.h: Ditto.
8159 * i387-tdep.c: Ditto.
8160 * ia64-linux-nat.c: Ditto.
8161 * ia64-linux-tdep.c: Ditto.
8162 * ia64-tdep.c: Ditto.
8166 * inferior.c: Ditto.
8167 * inferior.h: Ditto.
8173 * iq2000-tdep.c: Ditto.
8174 * irix5-nat.c: Ditto.
8180 * jv-typeprint.c: Ditto.
8181 * jv-valprint.c: Ditto.
8182 * language.c: Ditto.
8183 * language.h: Ditto.
8184 * linespec.c: Ditto.
8185 * linux-fork.c: Ditto.
8186 * linux-nat.c: Ditto.
8187 * linux-thread-db.c: Ditto.
8188 * lm32-tdep.c: Ditto.
8190 2011-01-08 Michael Snyder <msnyder@vmware.com>
8192 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8194 * m2-typeprint.c: Ditto.
8195 * m2-valprint.c: Ditto.
8196 * m32c-tdep.c: Ditto.
8197 * m32r-linux-nat.c: Ditto.
8198 * m32r-rom.c: Ditto.
8199 * m32r-tdep.c: Ditto.
8200 * m32r-tdep.h: Ditto.
8201 * m68hc11-tdep.c: Ditto.
8202 * m58klinux-nat.c: Ditto.
8203 * m68k-tdep.c: Ditto.
8204 * m88k-tdep.c: Ditto.
8205 * m88k-tdep.h: Ditto.
8206 * machoread.c: Ditto.
8207 * macrocmd.c: Ditto.
8208 * macroexp.c: Ditto.
8209 * macrotab.c: Ditto.
8212 * mdebugread.c: Ditto.
8213 * mdebugread.h: Ditto.
8216 * memory-map.h: Ditto.
8217 * mep-tdep.c: Ditto.
8218 * microblaze-rom.c: Ditto.
8219 * microblaze-tdep.c: Ditto.
8221 * mips-irix-tdep.c: Ditto.
8222 * mips-linux-nat.c: Ditto.
8223 * mips-linux-tdep.c: Ditto.
8224 * mips-linux-tdep.h: Ditto.
8225 * mipsnbsd-nat.c: Ditto.
8226 * mipsnbsd-tdep.c: Ditto.
8227 * mipsread.c: Ditto.
8228 * mips-tdep.c: Ditto.
8229 * mips-tdep.h: Ditto.
8230 * mn10300-linux-tdep.c: Ditto.
8231 * mn10300-tdep.c: Ditto.
8232 * mn10300-tdep.h: Ditto.
8235 * moxie-tdep.c: Ditto.
8236 * moxie-tdep.h: Ditto.
8239 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8241 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8243 2011-01-08 Robert Millan <rmh@gnu.org>
8245 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8247 2011-01-07 Michael Snyder <msnyder@vmware.com>
8249 * charset.c (_initialize_charset): Fix typo in string.
8251 2011-01-07 Michael Snyder <msnyder@vmware.com>
8253 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8255 * tui/tui-layout.c (tui_set_layout_for_display_command):
8256 Split line so that operator goes to beginning of line.
8257 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8258 assignment out of if statement.
8260 2011-01-07 Michael Snyder <msnyder@vmware.com>
8262 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8263 * ada-lang.h: Ditto.
8264 * ada-tasks.c: Ditto.
8265 * ada-valprint.c: Ditto.
8266 * aix-threads.c: Ditto.
8267 * alpha-linux-nat.c: Ditto.
8268 * alpha-linux-tdep.c: Ditto.
8269 * alpha-mdebug-tdep.c: Ditto.
8270 * alpha-nat.c: Ditto.
8271 * alpha-osf1-tdep.c: Ditto.
8272 * alpha-tdep.c: Ditto.
8273 * alphabsd-nat.c: Ditto.
8274 * alphabsd-tdep.c: Ditto.
8275 * amd64-darwin-tdep.c: Ditto.
8276 * amd64-linux-nat.c: Ditto.
8277 * amd64-linux-tdep.c: Ditto.
8278 * amd64-sol2-tdep.c: Ditto.
8279 * amd64-tdep.c: Ditto.
8280 * amd64-fbsd-tdep.c: Ditto.
8281 * amd64-nbsd-tdep.c: Ditto.
8282 * amd64-obsd-tdep.c: Ditto.
8283 * amd64-linux-nat.c: Ditto.
8284 * amd64-linux-tdep.c: Ditto.
8285 * arm-tdep.c: Ditto.
8286 * arm-tdep.h: Ditto.
8287 * armnbsd-nat.c: Ditto.
8288 * avr-tdep.c: Ditto.
8289 * bfin-tdep.c: Ditto.
8291 * c-typeprintc: Ditto.
8292 * c-valprint.c: Ditto.
8293 * coff-pe-read.h: Ditto.
8294 * coffreead.c: Ditto.
8295 * cris-tdep.c: Ditto.
8297 * darwin-nat-info.c: Ditto.
8298 * darwin-nat.c: Ditto.
8299 * dbug-rom.c: Ditto.
8303 * dec-thread.c: Ditto.
8305 * demangle.c: Ditto.
8306 * dicos-tdep.c: Ditto.
8307 * dictionary.c: Ditto.
8308 * dictionary.h: Ditto.
8309 * dink32-rom.c: Ditto.
8311 * doublest.c: Ditto.
8313 * dummy-frame.c: Ditto.
8314 * dwarf2-frame.c: Ditto.
8315 * dwarf2expr.c: Ditto.
8316 * dwarf2loc.c: Ditto.
8317 * dwarf2read.c: Ditto.
8321 * event-top.h: Ditto.
8322 * exceptions.c: Ditto.
8323 * exceptions.h: Ditto.
8325 * expprint.c: Ditto.
8326 * expression.h: Ditto.
8330 * f-typeprint.c: Ditto.
8331 * f-valprint.c: Ditto.
8332 * fbsd-nat.c: Ditto.
8334 * fork-child.c: Ditto.
8337 * frv-linux-tdep.c: Ditto.
8338 * frv-tdep.c: Ditto.
8340 * gdb-stabs.h: Ditto.
8341 * gdb_assert.h: Ditto.
8342 * gdb_string.h: Ditto.
8343 * gdb_thread_db.h: Ditto.
8344 * gdb_wait.h: Ditto.
8345 * gdbarch.sh: Ditto.
8347 * gdbthread.h: Ditto.
8348 * gdbtypes.c: Ditto.
8349 * gdbtypes.h: Ditto.
8352 * gnu-v2-abi.c: Ditto.
8353 * gnu-v3-abi.c: Ditto.
8354 * go32-nat.c: Ditto.
8355 * gdbarch.c: Regenerate.
8356 * gdbarch.h: Regenerate.
8358 2011-01-07 Michael Snyder <msnyder@vmware.com>
8360 * ax-gdb.c: Adjust some long output strings.
8361 * breakpoint.c: Ditto.
8366 * linux-nat.c: Ditto.
8367 * solib-pa64.c: Ditto.
8368 * solib-som.c: Ditto.
8370 2011-01-06 Tom Tromey <tromey@redhat.com>
8374 * python/python.c (GdbMethods): Add "newest_frame" method.
8375 * python/python-internal.h (gdbpy_newest_frame): Declare.
8376 * python/py-frame.c (gdbpy_newest_frame): New function.
8378 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8380 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8381 * jit.c (jit_debug): New variable.
8382 (show_jit_debug): New function.
8383 (struct target_buffer): Use ULONGEST.
8384 (bfd_open_from_target_memory): Likewise.
8385 (jit_register_code, jit_inferior_init): Add debug output.
8386 (_initialize_jit): Register "debug jit" command.
8388 2011-01-06 Tom Tromey <tromey@redhat.com>
8390 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8391 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8394 2011-01-06 Tom Tromey <tromey@redhat.com>
8396 * python/py-frame.c (frapy_block): Use get_frame_block.
8398 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8400 Do not stop on SIGPRIO signals by default
8401 * infrun.c (_initialize_infrun): Unset signal_stop and
8402 signal_print for TARGET_SIGNAL_PRIO.
8404 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8406 * ada-tasks.c: Fix style violation in comment.
8408 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8410 * linespec.c (decode_compound, find_method): Remove trailing \n
8411 at end of error string.
8412 * solib-irix.c (irix_current_sos): Likewise.
8413 * varobj.c (uninstall_variable): Likewise.
8415 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8417 * copyright.py: New script.
8418 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8419 Launch emacs without exec'ing. Call copyright.py afterwards.
8421 2011-01-05 Michael Snyder <msnyder@vmware.com>
8423 * addrmap.c: Shorten lines of >= 80 columns.
8424 * arch-utils.c: Ditto.
8425 * arch-utils.h: Ditto.
8427 * ax-general.c: Ditto.
8429 * blockframe.c: Ditto.
8430 * breakpoint.c: Ditto.
8431 * buildsym.c: Ditto.
8433 * c-typeprint.c: Ditto.
8435 * coffread.c: Ditto.
8439 * cp-namespace.c: Ditto.
8440 * cp-support.c: Ditto.
8441 * dbug-rom.c: Ditto.
8446 * dictionary.c: Ditto.
8448 * doublest.c: Ditto.
8449 * dwarf2-frame.c: Ditto.
8450 * dwarf2expr.c: Ditto.
8451 * dwarf2loc.c: Ditto.
8452 * dwarf2read.c: Ditto.
8455 * event-loop.c: Ditto.
8456 * event-loop.h: Ditto.
8457 * exceptions.h: Ditto.
8459 * expprint.c: Ditto.
8460 * expression.h: Ditto.
8462 * f-valprint.c: Ditto.
8464 * frame-base.c: Ditto.
8465 * frame-unwind.c: Ditto.
8466 * frame-unwind.h: Ditto.
8470 * gdb-stabs.h: Ditto.
8471 * gdb_assert.h: Ditto.
8472 * gdb_dirent.h: Ditto.
8473 * gdb_obstack.h: Ditto.
8475 * gdbtypes.c: Ditto.
8476 * gdbtypes.h: Ditto.
8477 * inf-ttrace.c: Ditto.
8482 * inline-frame.h: Ditto.
8483 * language.c: Ditto.
8484 * language.h: Ditto.
8485 * libunwind-frame.c: Ditto.
8486 * libunwind-frame.h: Ditto.
8487 * linespec.c: Ditto.
8488 * linux-nat.c: Ditto.
8489 * linux-nat.h: Ditto.
8490 * linux-thread-db.c: Ditto.
8491 * machoread.c: Ditto.
8492 * macroexp.c: Ditto.
8493 * macrotab.c: Ditto.
8496 * mdebugread.c: Ditto.
8501 * objfiles.c: Ditto.
8502 * objfiles.h: Ditto.
8504 * p-typeprint.c: Ditto.
8505 * p-valprint.c: Ditto.
8507 * printcmd.c: Ditto.
8508 * proc-events.c: Ditto.
8510 * progspace.c: Ditto.
8511 * progspace.h: Ditto.
8512 * psympriv.h: Ditto.
8515 * regcache.c: Ditto.
8516 * regcache.h: Ditto.
8517 * remote-fileio.c: Ditto.
8519 * ser-mingw.c: Ditto.
8521 * ser-unix.c: Ditto.
8524 * solib-frv.c: Ditto.
8525 * solib-irix.c: Ditto.
8526 * solib-osf.c: Ditto.
8527 * solib-pa64.c: Ditto.
8528 * solib-som.c: Ditto.
8529 * solib-sunos.c: Ditto.
8530 * solib-svr4.c: Ditto.
8531 * solib-target.c: Ditto.
8535 * stabsread.c: Ditto.
8536 * stabsread.c: Ditto.
8539 * symfile-mem.c: Ditto.
8545 * target-descriptions.c: Ditto.
8546 * target-memory.c: Ditto.
8549 * terminal.h: Ditto.
8552 * tracepoint.c: Ditto.
8553 * tracepoint.h: Ditto.
8557 * user-regs.c: Ditto.
8558 * user-regs.h: Ditto.
8560 * valarith.c: Ditto.
8562 * valprint.c: Ditto.
8563 * valprint.h: Ditto.
8568 * xcoffread.c: Ditto.
8569 * xcoffsolib.c: Ditto.
8570 * xcoffsolib.h: Ditto.
8571 * xml-syscall.c: Ditto.
8572 * xml-tdesc.c: Ditto.
8574 2011-01-05 Michael Snyder <msnyder@vmware.com>
8576 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8577 * cli/cli-decode.c: Ditto.
8578 * cli/cli-dump.c: Ditto.
8579 * cli/cli-logging.c: Ditto.
8580 * cli/cli-script.c: Ditto.
8581 * cli/cli-setshow.c: Ditto.
8582 * common/signals.c: Ditto.
8583 * mi/mi-cmd-break.c: Ditto.
8584 * mi/mi-cmd-disas.c: Ditto.
8585 * mi/mi-cmd-stack.c: Ditto.
8586 * mi/mi-cmd-var.c: Ditto.
8587 * mi/mi-cmds.c: Ditto.
8588 * mi/mi-common.h: Ditto.
8589 * mi/mi-console.c: Ditto.
8590 * mi/mi-interp.c: Ditto.
8591 * mi/mi-main.c: Ditto.
8592 * osf-share/cma_attr.c: Ditto.
8593 * osf-share/cma_deb_core.h: Ditto.
8594 * osf-share/cma_debug_client.h: Ditto.
8595 * osf-share/cma_handle.h: Ditto.
8596 * osf-share/cma_mutex.h: Ditto.
8597 * osf-share/cma_stack_int.h: Ditto.
8598 * osf-share/cma_tcb_defs.h: Ditto.
8599 * python/py-auto-load.c: Ditto.
8600 * python/py-breakpoint.c: Ditto.
8601 * python/py-cmd.c: Ditto.
8602 * python/py-frame.c: Ditto.
8603 * python/py-objfile.c: Ditto.
8604 * python/py-param.c: Ditto.
8605 * python/py-progspace.c: Ditto.
8606 * python/py-symbol.c: Ditto.
8607 * python/py-value.c: Ditto.
8608 * python/python-internal.h: Ditto.
8609 * python/python.c: Ditto.
8610 * tui/tui-data.c: Ditto.
8611 * tui/tui-disasm.c: Ditto.
8612 * tui/tui-hooks.c: Ditto.
8613 * tui/tui-io.c: Ditto.
8614 * tui/tui-layout.c: Ditto.
8615 * tui/tui-regs.c: Ditto.
8616 * tui/tui-source.c: Ditto.
8617 * tui/tui-stack.c: Ditto.
8618 * tui/tui-win.c: Ditto.
8619 * tui/tui-windata.c: Ditto.
8620 * tui/tui-winsource.c: Ditto.
8622 2011-01-05 Joel Brobecker <brobecker@adacore.com>
8624 * configure.ac, gdb.1: Copyright year update.
8626 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8628 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8629 this_pc_in_block, morestack_msym and morestack_name. Check for
8630 "__morestack" minimal symbol there.
8632 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8634 * symfile.c (find_sym_fns): Add call to dont_repeat.
8636 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8638 Copyright year update in most files (performed by copyright.sh).
8640 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8642 * top.c (print_gdb_version): Update copyright year in version output.
8644 For older changes see ChangeLog-2010.
8650 version-control: never