1 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2 Yao Qi <yao@codesourcery.com>
4 * remote.c (PACKET_qXfer_fdpic): New enum value.
5 (remote_protocol_features): Add qXfer:fdpic:read packet.
6 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
7 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
8 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
10 2011-08-14 Yao Qi <yao@codesourcery.com>
12 Target description for tic6x.
13 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
14 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
15 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
16 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
17 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
18 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
19 * features/tic6x-c64xp-linux.xml: New.
20 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
21 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
22 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
23 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
24 * regformats/tic6x-c64xp.dat, regformats/tic6x-c62x-linux.dat: Generated.
25 * regformats/tic6x-c64x-linux.dat, regformats/tic6x-c64xp-linux.dat: Generated.
26 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
27 features/tic6x-*.c files.
28 Add regformats/tic6x-*.dat files.
30 2011-08-12 Doug Evans <dje@google.com>
32 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
33 * python/py-symbol.c (sympy_get_type): New function.
34 (symbol_object_getset): Add "type".
36 2011-08-12 Pedro Alves <pedro@codesourcery.com>
40 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
42 (tui_show_register_group): Don't store a byte buffer in the data
44 (tui_register_format): Skip registers with an empty name.
45 (tui_get_register): Store a struct value in the data element's
46 value field instead of a byte buffer holding the raw register
47 contents. Account for optimized-out and unavailable registers
48 when comparing register contents.
50 2011-08-09 Pedro Alves <pedro@codesourcery.com>
52 * printcmd.c (current_display_number): Update comment.
53 (disable_current_display_cleanup): Delete.
54 (do_one_display): Use make_cleanup_restore_integer. Gracefully
55 catch errors thrown while evaluating and printing the display.
57 2011-08-09 Tom Tromey <tromey@redhat.com>
59 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
61 2011-08-09 Pedro Alves <pedro@codesourcery.com>
63 * elfread.c (elf_symtab_read): Rework comments.
64 * maint.c (maintenance_command): Ditto.
65 * somread.c (som_symtab_read): Ditto.
66 * solib.c (solib_find, solib_map_sections, update_solib_list)
67 (solib_add, info_sharedlibrary_command, solib_name_from_address)
68 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
69 (sharedlibrary_command, no_shared_libraries): Ditto.
70 * solib-irix.c (locate_base, disable_break, enable_break)
71 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
72 (irix_current_sos, irix_open_symbol_file_object)
73 (irix_special_symbol_handling): Ditto.
74 * solib-sunos.c (locate_base, first_link_map_member)
75 (sunos_current_sos, disable_break, enable_break)
76 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
78 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
79 (open_symbol_file_object, svr4_current_sos, enable_break)
80 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
82 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
83 (frv_current_sos, enable_break, frv_special_symbol_handling)
84 (frv_solib_create_inferior_hook): Ditto.
85 * solist.h (struct target_so_ops): Extend the comments of the
86 special_symbol_handling, current_sos and open_symbol_file_object
89 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
91 * python/lib/gdb/__init__.py: Auto-load files in command and
93 * python/python.c (finish_python_initialization): Use
95 * python/lib/gdb/command/pretty_printers.py: Self register
97 * NEWS: Document auto-loading.
99 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
101 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
102 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
103 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
105 2011-08-08 Tom Tromey <tromey@redhat.com>
107 * breakpoint.c (clean_up_filters): Remove.
108 (catch_syscall_split_args): Use VEC_cleanup.
110 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
112 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
113 (main): Uncomment "Demangling error\n".
115 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
117 * solib-target.c (segment_attributes): Make them static.
118 (section_attributes, library_children, library_attributes): Likewise.
119 (library_list_children, library_list_attributes): Likesise.
120 (library_list_elements): Likewise.
122 2011-08-05 Pedro Alves <pedro@codesourcery.com>
124 * exceptions.c (throw_exception): Don't disable the current
126 * printcmd.c (disable_current_display_cleanup): New function.
127 (do_one_display): Install a cleanup to disable the current display
128 if doing the display throws.
130 2011-08-05 Eli Zaretskii <eliz@gnu.org>
132 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
133 initialization of the tp_new member to the corresponding
134 gdbpy_initialize_* function.
135 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
136 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
137 * python/py-function.c (gdbpy_initialize_functions): Likewise.
138 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
139 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
141 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
143 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
144 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
145 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
146 references to current_uiout.
148 2011-08-04 Pedro Alves <pedro@codesourcery.com>
150 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
151 (start_event_loop): Use TRY_CATCH instead of catch_errors.
152 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
153 * top.c (gdb_readline_wrapper): Adjust.
154 * tui/tui-interp.c (tui_command_loop):
155 (_initialize_tui_interp): Don't install it.
157 2011-08-04 Pedro Alves <pedro@codesourcery.com>
159 * ui-out.h (uiout): Rename to ...
160 (current_uiout): ... this.
161 * ui-out.c (uiout): Rename to ...
162 (current_uiout): ... this.
163 * ada-lang.c (print_it_exception, print_one_exception)
164 (print_mention_exception): Adjust.
165 * breakpoint.c (watchpoint_check): Adjust.
166 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
167 (default_collect_info, watchpoints_info, print_one_catch_fork)
168 (print_one_catch_vfork, print_one_catch_syscall)
169 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
170 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
171 (print_it_watchpoint, print_mention_watchpoint)
172 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
173 (print_it_exception_catchpoint, print_one_exception_catchpoint)
174 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
175 (bkpt_print_mention, momentary_bkpt_print_it)
176 (tracepoint_print_mention, update_static_tracepoint)
177 (tracepoints_info, save_breakpoints): Adjust.
178 * cli-out.c (field_separator): Adjust.
179 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
180 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
181 * frame.c (get_current_frame): Adjust.
182 * infcmd.c (run_command_1, print_return_value): Adjust.
183 * inferior.c (inferior_command, info_inferiors_command): Adjust.
184 * infrun.c (print_end_stepping_range_reason): Adjust.
185 (print_signal_exited_reason, print_exited_reason): Adjust.
186 (print_signal_received_reason, print_no_history_reason): Adjust.
187 * interps.c (interp_set): Adjust.
188 * osdata.c (info_osdata_command): Adjust.
189 * progspace.c (maintenance_info_program_spaces_command): Adjust.
190 * remote-fileio.c (remote_fileio_request): Adjust.
191 * remote.c (show_remote_cmd): Adjust.
192 * solib.c (info_sharedlibrary_command): Adjust.
193 * source.c (print_source_lines_base): Adjust.
194 * stack.c (print_stack_frame): Adjust.
195 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
196 * symfile-mem.c (add_vsyscall_page): Adjust.
197 * symfile.c (load_progress, generic_load)
198 (print_transfer_performance): Adjust.
199 * thread.c (info_threads_command, restore_selected_frame)
200 (thread_command): Adjust.
201 * top.c (make_cleanup_restore_ui_file): Adjust.
202 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
203 (print_one_static_tracepoint_marker): Adjust.
204 * cli/cli-cmds.c (print_disassembly): Adjust.
205 * cli/cli-decode.c (print_doc_line): Adjust.
206 * cli/cli-interp.c (safe_execute_command): Adjust.
207 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
208 (handle_redirections): Adjust.
209 * cli/cli-script.c (show_user_1): Adjust.
210 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
211 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
212 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
213 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
214 (mi_cmd_env_dir): Adjust.
215 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
216 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
217 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
218 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
219 (list_args_or_locals): Adjust.
220 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
221 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
222 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
223 (mi_cmd_var_list_children, mi_cmd_var_info_type)
224 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
225 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
226 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
227 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
228 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
229 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
230 (list_available_thread_groups, mi_cmd_list_thread_groups)
231 (mi_cmd_data_list_register_names)
232 (mi_cmd_data_list_changed_registers)
233 (mi_cmd_data_list_register_values, get_register)
234 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
235 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
236 (mi_cmd_list_target_features, mi_cmd_add_inferior)
237 (mi_execute_command, mi_load_progress): Adjust.
238 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
239 * python/py-auto-load.c (print_script, info_auto_load_scripts):
241 * python/py-breakpoint.c (bppy_get_commands): Adjust.
242 * tui/tui-interp.c (tui_command_loop): Adjust.
243 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
245 2011-08-04 Pedro Alves <pedro@codesourcery.com>
247 * exceptions.c (struct catcher): Remove saved_uiout field.
248 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
249 no longer save/resvore the global ui_out builder.
250 (catch_exceptions_with_msg): Save/override/restore the global
251 ui_out builder manually instead of relying on TRY_CATCH to do it.
252 (catch_errors): Save/restore the global ui_out builder manually
253 instead of relying on TRY_CATCH to do it.
254 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
257 * cli/cli-interp.c (safe_execute_command): Save/override/restore
258 the global ui_out builder manually instead of relying on TRY_CATCH
261 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
263 * breakpoint.c (update_global_location_list): Ensure
264 invariant 'first loc marked not duplicated and inserted,
265 following locs marked duplicated/not inserted' is respected
266 for multiple locations at the same address.
267 (unduplicated_should_be_inserted) New function.
268 (swap_insertion) New function.
270 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
272 * stack.c (print_frame_arguments_choices): Comment typo fix.
274 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
277 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
278 * breakpoint.c (insert_bp_location): Remove disabled_breaks
279 argument. Update callers.
281 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
284 * doublest.c (convert_doublest_to_floatformat): Pass correct
285 mantissa length to put_field.
287 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
289 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
290 exception_print code path.
291 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
292 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
293 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
295 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
298 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
299 Remove, merge them into ...
300 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
301 variable args and its initialization.
302 (struct print_args_args, print_args_stub): Remove, merge them into
304 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
306 (do_gdb_disassembly): ... here. Remove variable args and its
308 (print_frame): Remove variable args and its initialization, new
309 variable gdbarch and numargs (from print_args_stub), inline here
310 print_args_stub with a TRY_CATCH.
311 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
313 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
314 New variable e, remove variable btargs and its initialization.
316 2011-08-01 Tristan Gingold <gingold@adacore.com>
318 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
320 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
322 * breakpoint.c (insert_bp_location): Document return value.
323 (insert_breakpoint_locations): Fix documentation.
324 (remove_breakpoints): Add documentation.
326 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
328 * breakpoint.c (insert_bp_location): Remove disabled_breaks
329 argument. Update callers.
331 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
333 * stack.c (print_frame_info): Comment typo fix.
335 2011-07-29 Sterling Augustine <saugustine@google.com>
337 * MAINTAINERS (Write After Approval): Add myself to the list.
339 2011-07-29 Tom Tromey <tromey@redhat.com>
341 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
342 (library_list_start_segment): Update.
343 (library_list_start_section): Update.
345 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
347 * varobj.c (value_get_print_value): Move hint check later into the
348 function. Comment function. Free thevalue before reusing it.
350 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
351 Pedro Alves <pedro@codesourcery.com>
353 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
355 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
356 Assert the result kind.
357 * value.h (value_one): Remove parameter lv.
359 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
361 Fix crash on lval_computed values.
362 * valops.c (value_zero): Use not_lval for lval_computed.
364 2011-07-27 Tom Tromey <tromey@redhat.com>
366 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
367 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
369 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
371 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
372 "ptype" by their typedefs difference.
374 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
376 * dwarf2expr.c (ctx_no_read_reg): New function.
377 * dwarf2expr.h (ctx_no_read_reg): New declaration.
378 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
379 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
380 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
382 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
384 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
385 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
387 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
388 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
389 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
390 (ctx_no_get_base_type): Move the functions here.
391 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
392 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
393 (ctx_no_get_base_type): New declarations.
395 2011-07-27 Tom Tromey <tromey@redhat.com>
397 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
399 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
400 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
402 2011-07-26 Sterling Augustine <saugustine@google.com>
404 * cli/cli-dump.c (dump_binary_file): Change parameter type to
406 (dump_bfd_file): Likewise.
408 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
410 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
411 (remote_hw_watchpoint_length_limit): New variable.
412 (_initialize_remote) add set,show cmds for this new variable.
413 * gdb.texinfo: document these new commands.
414 * NEWS: Mention these new commands.
416 2011-07-26 Pedro Alves <pedro@codesourcery.com>
418 * breakpoint.c (works_in_software_mode_watchpoint): Also return
419 true for software watchpoints.
421 2011-07-26 Joel Brobecker <brobecker@adacore.com>
425 2011-07-26 Tom Tromey <tromey@redhat.com>
427 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
428 * dwarf2read.c (read_indirect_string_at_offset): New function.
429 (read_indirect_string): Use it.
430 (dwarf_decode_macro_bytes): New function, taken from
431 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
432 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
433 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
435 (struct dwarf2_per_objfile) <macro>: New field.
436 (dwarf2_elf_names): Add .debug_macro.
437 (dwarf2_macros_too_long_complaint): Add 'section' argument.
438 (dwarf2_locate_sections): Handle new section.
439 (read_file_scope): Handle DW_AT_GNU_macros.
440 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
442 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
444 * NEWS: Mention dcache configuration.
445 * dcache.c (dcache_set_list, dcache_show_list): New variables.
446 (dcache_size, dcache_line_size): New variables.
447 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
448 (struct dcache_block): Make it expandable.
449 (struct dcache_struct): New field.
450 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
451 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
452 (dcache_poke_byte, dcache_print_line): Adjust.
453 (set_dcache_size, set_dcache_line_size): New functions.
454 (set_dcache_command, show_dcache_command): New functions.
455 (_initialize_dcache): Add new commands.
457 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
459 * progspace.h (struct program_space): Add solib_add_generation.
460 * infcmd.c (post_create_inferior): Only call solib_add if not
462 * solib.c (solib_add): Increment solib_add_generation.
464 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
466 Fix implicit pointer offsets.
467 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
470 2011-07-25 Tom Tromey <tromey@redhat.com>
472 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
474 (ada_exception_sal): Make 'ops' const.
475 (ada_decode_exception_location): Likewise.
476 (ada_decode_assert_location): Likewise.
477 (catch_assert_command): Update.
478 (catch_ada_exception_command): Update.
479 (create_ada_exception_catchpoint): Make 'ops' const.
480 * breakpoint.c (set_raw_breakpoint_without_location)
481 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
483 (create_internal_breakpoint): Update.
484 (init_raw_breakpoint_without_location): Make 'ops' const.
485 (init_raw_breakpoint, init_catchpoint)
486 (create_fork_vfork_event_catchpoint)
487 (create_syscall_event_catchpoint, init_breakpoint_sal)
488 (create_breakpoint_sal, create_breakpoints_sal)
489 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
490 * breakpoint.h (struct breakpoint) <ops>: Now const.
491 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
494 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
496 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
498 2011-07-25 Pedro Alves <pedro@codesourcery.com>
500 * breakpoint.h (print_recreate_thread): Declare.
501 (struct breakpoint): Move step_count, pass_count,
502 number_on_target, static_trace_marker_id,
503 static_trace_marker_id_idx ...
504 (struct tracepoint): ... to this new struct.
505 (get_tracepoint, get_tracepoint_by_number_on_target)
506 (get_tracepoint_by_number): Change return type to struct
508 * breakpoint.c (is_tracepoint_type): New, factored out from
510 (is_tracepoint): Adjust.
511 (print_one_breakpoint_location): Cast to struct tracepoint as
512 necessary, and adjust.
513 (print_recreate_catch_fork, print_recreate_catch_vfork)
514 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
515 print_recreate_thread.
516 (init_breakpoint_sal): New, factored out from
517 create_breakpoint_sal.
518 (create_breakpoint_sal): Reimplement.
519 (create_breakpoint): Allocate a struct tracecepoint if the caller
520 wanted a tracepoint. Use init_breakpoint_sal and
522 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
523 (print_recreate_masked_watchpoint)
524 (print_recreate_exception_catchpoint): Call print_recreate_thread.
525 (tracepoint_print_one_detail): Adjust.
526 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
527 Dump the pass count here.
528 (update_static_tracepoint): Adjust.
529 (addr_string_to_sals): Adjust.
530 (create_tracepoint_from_upload): Adjust. Change return type to
531 struct tracepoint pointer.
532 (trace_pass_set_count): Change parameter type to struct tracepoint
534 (trace_pass_command): Adjust.
535 (get_tracepoint, get_tracepoint_by_number_on_target)
536 (get_tracepoint_by_number): Change return type to struct
537 tracepoint pointer, and adjust.
538 (print_recreate_thread): New, factored out from save_breakpoints.
539 (save_breakpoints): Don't print thread and task and passcount
541 * remote.c (remote_download_tracepoint): Adjust.
542 * tracepoint.c (trace_actions_command, validate_actionline)
543 (start_tracing, tfind_1, trace_find_tracepoint_command)
544 (trace_dump_command): Adjust.
545 (find_matching_tracepoint): Change return type to struct
546 tracepoint pointer, and adjust.
547 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
548 (tfile_trace_find, tfile_fetch_registers): Adjust.
549 * tracepoint.h (create_tracepoint_from_upload): Change return type
550 to struct tracepoint pointer.
551 * ada-lang.c (print_recreate_exception): Call
552 print_recreate_thread.
553 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
555 2011-07-25 Pedro Alves <pedro@codesourcery.com>
557 * breakpoint.h (struct breakpoint): Move ops as first field. Move
558 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
559 cond_exp_valid_block, val, val_valid, watchpoint_frame,
560 watchpoint_thread, watchpoint_triggered ...
561 (struct watchpoint): ... to this new struct.
562 (is_watchpoint): Declare.
563 (install_breakpoint): Add new `internal' parameter.
564 * breakpoint.c (is_watchpoint): Delete declaration.
565 (set_breakpoint_condition): Handle watchpoints.
566 (is_watchpoint): Make public.
567 (watchpoint_in_thread_scope): Change parameter type to struct
569 (watchpoint_del_at_next_stop): Change parameter type to struct
570 watchpoint. Remove assertion. Adjust.
571 (update_watchpoint): Ditto.
572 (insert_breakpoints, breakpoint_init_inferior)
573 (watchpoints_triggered, watchpoint_check)
574 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
575 (bpstat_stop_status, print_one_breakpoint_location)
576 (print_one_breakpoint_location, watchpoint_locations_match): Cast
577 to struct watchpoint as necessary, and adjust.
578 (install_breakpoint): Add `internal' argument. If true, don't
579 mention the new breakpoint. Use set_breakpoint_number.
580 (create_fork_vfork_event_catchpoint)
581 (create_syscall_event_catchpoint): Adjust.
582 (dtor_watchpoint): New.
583 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
584 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
585 (print_it_watchpoint, print_mention_watchpoint)
586 (print_recreate_watchpoint, insert_masked_watchpoint)
587 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
588 (print_one_detail_masked_watchpoint)
589 (print_mention_masked_watchpoint)
590 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
591 necessary, and adjust.
592 (watch_command_1): Allocate and initialize a struct watchpoint
593 instead of a struct breakpoint. Use install_breakpoint.
594 (catch_exec_command_1): Adjust.
595 (base_breakpoint_dtor): Delete accesses to watchpoint specific
597 (delete_breakpoint, enable_breakpoint_disp)
598 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
599 as necessary, and adjust.
600 (initialize_breakpoint_ops): Install dtor_watchpoint as
601 watchpoints' dtor method.
602 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
603 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
604 to struct watchpoint as necessary, and adjust.
606 2011-07-25 Pedro Alves <pedro@codesourcery.com>
608 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
609 the the base class ops table.
610 (catch_exception_breakpoint_ops)
611 (catch_exception_unhandled_breakpoint_ops)
612 (catch_assert_breakpoint_ops): Don't statically initialize.
613 (initialize_ada_catchpoint_ops): New.
614 (_initialize_ada_language): Call it.
615 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
616 (bkpt_breakpoint_ops): Forward declare.
617 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
618 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
619 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
620 (masked_watchpoint_breakpoint_ops)
621 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
622 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
623 base class ops table.
624 (null_re_set, null_check_status, null_works_in_software_mode)
625 (null_resources_needed, null_print_one_detail): Delete.
626 (bkpt_dtor): Rename to ...
627 (base_breakpoint_dtor): ... this. Make static.
628 (bkpt_allocate_location): Rename to ...
629 (base_breakpoint_allocate_location): ... this. Make static.
630 (base_breakpoint_re_set): New.
631 (internal_error_pure_virtual_called): New.
632 (base_breakpoint_insert_location, base_breakpoint_remove_location)
633 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
634 (base_breakpoint_works_in_software_mode)
635 (base_breakpoint_resources_needed, base_breakpoint_print_it)
636 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
637 (base_breakpoint_print_recreate): New functions.
638 (base_breakpoint_ops): New global.
639 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
640 (bkpt_breakpoint_hit): Make static.
641 (bkpt_check_status): Delete.
642 (bkpt_resources_needed): Make static.
643 (bkpt_works_in_software_mode): Delete.
644 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
646 (bkpt_breakpoint_ops, internal_breakpoint_ops)
647 (momentary_breakpoint_ops): Don't statically initialize.
648 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
650 (tracepoint_insert_location, tracepoint_remove_location)
651 (tracepoint_check_status, tracepoint_works_in_software_mode)
652 (tracepoint_print_it): Delete.
653 (tracepoint_breakpoint_ops): Don't statically initialize.
654 (initialize_breakpoint_ops): New.
655 (_initialize_breakpoint): Call it.
656 * breakpoint.h (null_re_set, null_works_in_software_mode)
657 (null_resources_needed, null_check_status, null_print_one_detail):
658 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
659 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
660 (bkpt_check_status, bkpt_resources_needed)
661 (bkpt_works_in_software_mode, bkpt_print_it)
662 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
664 (initialize_breakpoint_ops): Declare.
666 2011-07-25 Pedro Alves <pedro@codesourcery.com>
668 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
669 (momentary_bkpt_print_it): Simplify.
671 2011-07-25 Pedro Alves <pedro@codesourcery.com>
673 Split internal, momentary and user breakpoints breakpoint_ops
676 * breakpoint.c (internal_breakpoint_ops)
677 (momentary_breakpoint_ops): Forward declare.
678 (create_internal_breakpoint): Add new breakpoint_ops parameter.
679 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
680 (create_overlay_event_breakpoint)
681 (create_std_terminate_master_breakpoint)
682 (create_exception_master_breakpoint): Create breakpoints with
683 internal_breakpoint_ops vtable.
684 (set_longjmp_breakpoint): Create momentary breakpoints with
685 momentary_breakpoint_ops vtable, using
686 momentary_breakpoint_from_master.
687 (create_thread_event_breakpoint, create_jit_event_breakpoint)
688 (create_solib_event_breakpoint): Create breakpoints with
689 internal_breakpoint_ops vtable.
690 (set_momentary_breakpoint): Create breakpoints with
691 momentary_breakpoint_ops vtable.
692 (momentary_breakpoint_from_master): New, factored out from
693 clone_momentary_breakpoint.
694 (clone_momentary_breakpoint): Adjust.
695 (watch_command_1): Create scope breakpoints with
696 momentary_breakpoint_ops vtable.
697 (bkpt_re_set): Remove handling of internal and momentary
699 (bkpt_print_mention, bkpt_print_recreate): New.
700 (bkpt_breakpoint_ops): Adjust.
701 (internal_bkpt_re_set, internal_bkpt_check_status)
702 (internal_bkpt_print_it, internal_bkpt_print_mention)
703 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
704 (momentary_bkpt_re_set, momentary_bkpt_check_status)
705 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
706 (momentary_bkpt_print_recreate): New.
707 (momentary_breakpoint_ops): New.
709 2011-07-25 Pedro Alves <pedro@codesourcery.com>
711 Implement most breakpoint_ops methods for all breakpoint types,
712 and move the default handlings to the proper callbacks.
714 * breakpoint.c (update_watchpoint): Always call the breakpoint's
715 works_in_software_mode method.
716 (insert_bp_location): Go through breakpoint_ops->insert_location
717 for software and hardware watchpoints.
718 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
720 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
721 for software and hardware watchpoints.
722 (print_it_typical): Delete.
723 (print_bp_stop_message): Always call the breakpoint_ops->print_it
725 (watchpoint_check): Adjust comment.
726 (bpstat_check_location): Simply always call the breakpoint's
727 breakpoint_hit method.
728 (bpstat_stop_status): Always call the breakpoint's check_status
729 method. Remove special cases for watchpoints and internal event
730 breakpoints from here (moved to the check_status implementations).
731 (print_one_breakpoint_location): Assume b->ops is never NULL.
732 Remove static tracepoint marker id printing from here (moved to
733 the print_one_detail callback implementation of tracepoints).
734 (init_bp_location): Assert OPS is never NULL.
735 (allocate_bp_location): Always call the breakpoint's
736 allocate_location method, and remove the default code from here.
737 (free_bp_location): Always call the location's dtor method, and
738 remove the default code from here.
739 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
740 (set_raw_breakpoint_without_location): Add new breakpoint_ops
741 parameter. Pass it down.
742 (set_raw_breakpoint): Ditto.
743 (print_it_catch_fork): Adjust to take a bpstat as argument.
744 (catch_fork_breakpoint_ops): Install methods.
745 (print_it_catch_vfork): Adjust to take a bpstat as argument.
746 (catch_vfork_breakpoint_ops): Install methods.
747 (dtor_catch_syscall): Call the base dtor.
748 (print_it_catch_syscall): Adjust to take a bpstat as argument.
749 (catch_syscall_breakpoint_ops): Install methods.
750 (dtor_catch_exec): Call the base dtor.
751 (print_it_catch_exec): Adjust to take a bpstat as argument.
752 (catch_exec_breakpoint_ops): Install methods.
753 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
754 the breakpoint's resources_needed method, and remove the default
756 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
758 (clone_momentary_breakpoint): Clone the original's ops.
759 (mention): Always call the breakpoint's print_mention method, and
760 remove the default code from here.
761 (create_breakpoint_sal): Adjust to pass the ops to
762 set_raw_breakpoint rather than setting it manually.
763 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
764 ops to set_raw_breakpoint_without_location rather than setting it
766 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
767 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
768 (ranged_breakpoint_ops): Install methods.
769 (break_range_command): Adjust to pass the ops to
770 set_raw_breakpoint rather than setting it manually.
771 (re_set_watchpoint, breakpoint_hit_watchpoint)
772 (check_status_watchpoint, resources_needed_watchpoint)
773 (works_in_software_mode_watchpoint, print_it_watchpoint)
774 (print_mention_watchpoint, print_recreate_watchpoint): New
776 (watchpoint_breakpoint_ops): Install new methods.
777 (print_it_masked_watchpoint): New function.
778 (masked_watchpoint_breakpoint_ops): Install new methods.
779 (watch_command_1): Adjust to pass the right breakpoint_ops to
780 set_raw_breakpoint_without_location rather than setting it
781 manually later. Record the current pspace.
782 (print_it_exception_catchpoint): Adjust to take a bpstat as
784 (gnu_v3_exception_catchpoint_ops): Install new methods.
785 (say_where): New function.
786 (null_re_set, null_check_status, null_works_in_software_mode)
787 (null_resources_needed, null_print_one_detail, bp_location_dtor):
789 (bp_location_ops): New global.
790 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
791 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
792 (bkpt_check_status, bkpt_resources_needed)
793 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
794 (bkpt_print_recreate): New functions.
795 (bkpt_breakpoint_ops): New global.
796 (tracepoint_re_set, tracepoint_insert_location)
797 (tracepoint_remove_location, tracepoint_breakpoint_hit)
798 (tracepoint_check_status, tracepoint_works_in_software_mode)
799 (tracepoint_print_it, tracepoint_print_one_detail)
800 (tracepoint_print_mention, tracepoint_print_recreate): New
802 (tracepoint_breakpoint_ops): New global.
803 (delete_breakpoint): Always call the breakpoint's dtor method, and
804 remove the default handling from here.
805 (breakpoint_re_set_default): Make static.
806 (breakpoint_re_set_one): Always call the breakpoints re_set
807 method, and remove the default handling from here.
808 (trace_command, ftrace_command, strace_command)
809 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
810 to create_breakpoint.
811 (save_breakpoints): Always call the breakpoint's print_recreate
812 method, and remove the default handling from here.
814 * ada-lang.c (dtor_exception): Call the base dtor.
815 (re_set_exception): Call the base method.
816 (print_it_exception, print_it_catch_exception): Adjust to take a
818 (catch_exception_breakpoint_ops): Install methods.
819 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
821 (catch_exception_unhandled_breakpoint_ops): Install methods.
822 (print_it_catch_assert): Adjust to take a bpstat as argument.
823 (catch_assert_breakpoint_ops): Install methods.
825 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
826 to take a bpstat as argument.
827 (enum print_stop_action): Add describing comments to each enum
829 (breakpoint_re_set_default): Delete declaration.
830 (null_re_set, null_works_in_software_mode, null_resources_needed)
831 (null_check_status, null_print_one_detail): Declare.
832 (bkpt_breakpoint_ops): Declare.
833 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
834 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
835 (bkpt_check_status, bkpt_resources_needed)
836 (bkpt_works_in_software_mode, bkpt_print_it)
837 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
840 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
842 * python/py-breakpoint.c (bppy_init): Ditto.
844 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
846 * MAINTAINERS (Write After Approval): Add myself to the list.
848 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
850 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
852 2011-07-22 Pedro Alves <pedro@codesourcery.com>
854 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
855 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
856 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
858 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
859 (struct i386_debug_reg_state): New.
860 (i386_init_dregs): New.
862 (i386_cleanup_dregs): Use i386_init_dregs.
863 (i386_show_dr): Add state parameter and adjust.
864 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
866 (i386_remove_aligned_watchpoint): Likewise.
867 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
868 (i386_update_inferior_debug_regs): New.
869 (i386_insert_watchpoint): Work on a local mirror of the debug
870 registers, and only update the inferior on success.
871 (i386_remove_watchpoint): Ditto.
872 (i386_region_ok_for_watchpoint): Adjust.
873 (i386_stopped_data_address): Adjust.
874 (i386_insert_hw_breakpoint): Adjust.
875 (i386_remove_hw_breakpoint): Adjust.
877 2011-07-22 Tom Tromey <tromey@redhat.com>
879 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
880 from amd64_pseudo_register_read. Change arguments. Call
881 mark_value_bytes_unavailable when needed.
882 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
883 set_gdbarch_pseudo_register_read.
884 * sentinel-frame.c (sentinel_frame_prev_register): Use
885 regcache_cooked_read_value.
886 * regcache.h (regcache_cooked_read_value): Declare.
887 * regcache.c (regcache_cooked_read_value): New function.
888 (regcache_cooked_read): Call
889 gdbarch_pseudo_register_read_value if available.
890 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
891 (i386_pseudo_register_read): Remove.
892 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
893 i386_pseudo_register_read. Change arguments. Call
894 mark_value_bytes_unavailable when needed.
895 (i386_pseudo_register_read_value): New function.
896 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
897 not set_gdbarch_pseudo_register_read.
898 * gdbarch.sh (pseudo_register_read_value): New method.
899 * gdbarch.c, gdbarch.h: Rebuild.
900 * findvar.c (value_from_register): Call get_frame_register_value.
902 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
904 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
906 (display_gdb_prompt): Likewise.
907 (change_annotation_level): Likewise.
908 (push_prompt): Likewise.
909 (pop_prompt): Likewise.
910 (handle_stop_sig): Use get_prompt with a level.
911 * top.c (command_loop): Use get_prompt with a level.
912 (set_async_annotation_level): Use set_prompt with a level.
913 (get_prefix): New function.
917 (get_prompt): Accept a level argument.
918 (set_prompt): Accept a level argument. Free old prompts. Set
919 new_async_prompt if level is 0.
920 (init_main): Use set_prompt with a level. Do not set
922 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
923 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
924 Modify set_prompt, get_prompt to account for levels.
925 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
927 * python/python.c (before_prompt_hook): Use set_prompt.
929 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
931 * defs.h: Add guard against inclusion in gdbserver.
932 (struct ptid, ptid_t): Move to common/ptid.h.
933 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
934 xsnprintf, internal_error): Move to common/common-utils.h.
936 * gdb_assert.h: Move into common/ sub-directory.
937 * gdb_locale.h: Ditto.
938 * gdb_dirent.h: Ditto.
939 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
940 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
941 Move into common/ptid.h.
942 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
943 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
944 Change nomem to malloc_failure.
945 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
946 * utils.c (nomem): Rename to malloc_failure.
947 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
948 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
949 (gdb_buildargv): Change nomem to malloc_failure.
950 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
951 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
952 ptid_is_pid): Move into common/ptid.c.
953 (initialize_infrun): Delete initialization of null_ptid and
955 * linux-nat.c (linux_nat_xfer_osdata): Defer to
956 linux_common_xfer_osdata.
957 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
958 common/ptid.c and common/buffer.c.
959 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
960 common/ptid.h, common/buffer.h and common/linux-osdata.h.
961 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
962 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
964 * common/gdb_assert.h: New.
965 * common/gdb_dirent.h: New.
966 * common/gdb_locale.h: New.
967 * common/buffer.c: New.
968 * common/buffer.h: New.
969 * common/ptid.c: New.
970 * common/ptid.h: New.
971 * common/xml-utils.c: New.
972 * common/xml-utils.h: New.
973 * common/common-utils.c: New.
974 * common/common-utils.h: New.
975 * common/linux-osdata.c: New.
976 * common/linux-osdata.h: New.
977 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
978 * config/arm/linux.mh (NATDEPFILES): Ditto.
979 * config/i386/linux.mh (NATDEPFILES): Ditto.
980 * config/i386/linux64.mh (NATDEPFILES): Ditto.
981 * config/ia64/linux.mh (NATDEPFILES): Ditto.
982 * config/m32r/linux.mh (NATDEPFILES): Ditto.
983 * config/m68k/linux.mh (NATDEPFILES): Ditto.
984 * config/mips/linux.mh (NATDEPFILES): Ditto.
985 * config/pa/linux.mh (NATDEPFILES): Ditto.
986 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
987 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
988 * config/s390/s390.mh (NATDEPFILES): Ditto.
989 * config/sparc/linux.mh (NATDEPFILES): Ditto.
990 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
991 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
993 2011-07-21 Matt Rice <ratmice@gmail.com>
995 * NEWS: Add info macros and info definitions commands.
997 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
999 * NEWS: Document Python prompt substitution hook.
1001 2011-07-18 Matt Rice <ratmice@gmail.com>
1004 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1005 * macrotab.c (foreach_macro): Ditto.
1006 (foreach_macro_in_scope): Ditto.
1007 * macrocmd.c (print_macro_callback): New function.
1008 (info_macro_command): Move some code to print_macro_definition.
1009 (print_macro_definition): New function.
1010 (print_one_macro): Add new arguments to callback.
1011 (info_definitions_command): New function.
1012 (info_macros_command): Ditto.
1013 (_initialize_macrocmd): Add info macros and info definitions commands.
1014 * symtab.c (add_macro_name): Add new arguments to callback.
1016 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1017 Tom Tromey <tromey@redhat.com>
1019 * top.c (set_prompt): Rewrite to free previous prompt, free
1020 asynch_new_prompt and set both on new prompts.
1021 * event-top.c (display_gdb_prompt): Add prompt substitution
1023 * python/python.c (before_prompt_hook): New function.
1025 2011-07-20 Matt Rice <ratmice@gmail.com>
1027 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1028 arguments to store_unsigned_integer.
1030 2011-07-20 Tom Tromey <tromey@redhat.com>
1032 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1033 in some declaration-only cases.
1035 2011-07-18 Tom Tromey <tromey@redhat.com>
1038 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1039 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1040 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1041 <debug_type_section>: New field.
1042 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1043 (load_cu): Use appropriate section.
1044 (create_signatured_type_table_from_index): Add 'section'
1046 (dwarf2_read_index): Only allow a single .debug_types section.
1047 (dw2_get_file_names): Use appropriate section.
1048 (read_type_comp_unit_head): Add 'section' argument.
1049 (create_debug_types_hash_table): Loop over all .debug_types
1051 (init_cu_die_reader): Use appropriate section.
1052 (process_psymtab_comp_unit, load_partial_comp_unit)
1053 (load_full_comp_unit, read_die_and_children, find_partial_die)
1054 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1055 (lookup_signatured_type_at_offset): Add 'section' argument.
1056 (read_signatured_type_at_offset): Add 'sect' argument.
1057 (read_signatured_type): Use appropriate section.
1058 (set_die_type, get_die_type_at_offset): Update.
1059 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1061 (write_psymtabs_to_index): Don't allow index with more than one
1062 .debug_types section.
1064 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1066 Fix crash if referenced CU is aged out.
1067 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1068 xfree of block.data.
1069 (indirect_pieced_value): New variable back_to, use to for xfree of
1071 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1073 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1074 (load_cu): New function from ...
1075 (dw2_do_instantiate_symtab): ... the code here ...
1076 (process_full_comp_unit): ... and here.
1077 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1080 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1082 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1085 2011-07-19 Gary Benson <gbenson@redhat.com>
1087 * infrun.c (struct execution_control_state): New member
1088 stop_func_filled_in.
1089 (clear_stop_func, fill_in_stop_func): New functions.
1090 (handle_inferior_event): Call clear_stop_func rather than
1091 manipulating the execution control state directly.
1092 Call fill_in_stop_func lazily as required rather than
1093 directly calling find_pc_partial_function in all cases.
1095 2011-07-18 Tom Tromey <tromey@redhat.com>
1097 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1098 checking for variable-sized array.
1100 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1102 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1103 of supported languages.
1104 * varobj.c: Add top definitions and basic implementation of the
1105 following callbacks: ada_number_of_children, ada_name_of_variable,
1106 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1107 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1108 (languages): Register Ada-specific callbacks.
1109 (variable_language): Add the Ada case in the language setter switch.
1111 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1113 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1115 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1118 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1119 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1120 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1121 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1122 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1123 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1124 (struct dwarf_expr_context_funcs): New, move here methods from ...
1125 (struct dwarf_expr_context): ... here. New fields funcs.
1126 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1127 (dwarf_expr_ctx_funcs): New.
1128 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1129 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1130 (needs_frame_ctx_funcs): New.
1131 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1133 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1135 * MAINTAINERS (Write After Approval): Add myself to the list.
1137 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1139 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1140 that CIE pointer of an FDE really points to a CIE .
1142 2011-07-15 Hui Zhu <teawater@gmail.com>
1144 * remote.c (remote_get_trace_status): Add comments.
1146 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1148 Code cleanup - constify struct lval_funcs.
1149 * dwarf2loc.c (pieced_value_funcs): Make it const.
1150 * infrun.c (siginfo_value_funcs): Likewise.
1151 * opencl-lang.c (opencl_value_funcs): Likewise.
1152 * valops.c (value_assign, value_ind): Make the funcs variable const.
1153 * value.c (struct value): Make location.computed.funcs target const.
1154 Rearrange the comments.
1155 (allocate_computed_value): Make the funcs parameter target const.
1156 (value_computed_funcs): Return the funcs target const.
1157 (value_free, value_copy, set_value_component_location): Make the funcs
1159 * value.h (allocate_computed_value): Make the funcs parameter target
1161 (value_computed_funcs): Return the funcs target const.
1162 * windows-tdep.c (tlb_value_funcs): Make it const.
1164 2011-07-14 Hui Zhu <teawater@gmail.com>
1166 * remote.c (remote_get_trace_status): Initialize p.
1168 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1171 * remote.c (remote_get_trace_status): New variable ex. Put
1172 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1174 2011-07-13 Tom Tromey <tromey@redhat.com>
1176 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1177 value_from_contents for final conversion.
1179 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1182 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1183 Indent prototypes so they do not get into tags.
1185 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1187 Code cleanup making also optimized out values lazy.
1188 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1189 allocate_optimized_out_value. Twice.
1190 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1191 * findvar.c (read_var_value): Likewise.
1192 * value.c (allocate_optimized_out_value): New function.
1193 * value.h (allocate_optimized_out_value): New declaration.
1195 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1197 Fix occasional crash of CTRL-C during DWARF read in.
1198 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1200 2011-07-11 Tom Tromey <tromey@redhat.com>
1202 * regcache.c (struct regcache_descr): Fix typo.
1203 * i387-tdep.c (i387_supply_xsave): Fix typo.
1205 2011-07-11 Tom Tromey <tromey@redhat.com>
1207 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1208 (read_file_scope, read_type_unit_scope): Use it.
1210 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1212 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1215 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1218 * python/python.c: Set gdbpy_should_print_stack default to off.
1219 (set_python): Deprecate maint set python print-stack to
1221 (_initialize_python): Deprecate maint set/show python print-stack.
1222 Add new prefix command, python. Add new setting, print-backtrace.
1223 * NEWS: Document set python print-stack. Document default change.
1225 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1227 * python/py-inferior.c (infpy_dealloc): New function.
1228 (inferior_to_inferior_object): Return a new object, or a
1229 new reference to the existing object.
1230 (find_thread_object): Cleanup references to inferior.
1231 (delete_thread_object): Ditto.
1232 * python/py-infthread.c (create_thread_object): Do not increment
1233 inferior reference count.
1235 2011-07-08 Tom Tromey <tromey@redhat.com>
1237 * dwarf2loc.c (locexpr_regname): New function.
1238 (locexpr_describe_location_piece): Use it.
1239 (disassemble_dwarf_expression): Add per_cu argument. Use
1241 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1242 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1244 (locexpr_describe_location_1): Add per_cu argument.
1245 (locexpr_describe_location): Update.
1246 (loclist_describe_location): Update.
1248 2011-07-08 Tom Tromey <tromey@redhat.com>
1250 * dwarf2expr.c (execute_stack_op): Add QUIT.
1252 2011-07-07 Hui Zhu <teawater@gmail.com>
1255 2011-07-06 Hui Zhu <teawater@gmail.com>
1256 * remote.c (remote_start_remote): Add TRY_CATCH for
1257 remote_get_trace_status.
1258 * tracepoint.c (disconnect_tracing): Ditto.
1260 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1262 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1263 variables as signed, not unsigned.
1265 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1267 * jit.c (jit_inferior_init): Reformat forward declaration.
1269 2011-07-06 Matt Rice <ratmice@gmail.com>
1271 * MAINTAINERS (Write After Approval): Add myself to the list.
1273 2011-07-06 Hui Zhu <teawater@gmail.com>
1275 * remote.c (remote_start_remote): Add TRY_CATCH for
1276 remote_get_trace_status.
1277 * tracepoint.c (disconnect_tracing): Ditto.
1279 2011-07-05 Tom Tromey <tromey@redhat.com>
1281 * symtab.c (operator_chars): Now static.
1282 * linespec.c (operator_chars): Don't declare.
1284 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1286 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1288 2011-07-05 Tom Tromey <tromey@redhat.com>
1290 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1291 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1292 (TYPE_CPLUS_REALLY_JAVA): New macro.
1293 * dwarf2read.c (process_structure_scope): Set
1294 TYPE_CPLUS_REALLY_JAVA.
1296 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1298 * ada-lang.c: Fix typos.
1299 * amd64-tdep.c: Likewise.
1300 * breakpoint.c: Likewise.
1301 * cli/cli-decode.c: Likewise.
1302 * findcmd.c: Likewise.
1303 * inline-frame.c: Likewise.
1304 * mi/mi-main.c: Likewise.
1305 * minsyms.c: Likewise.
1306 * monitor.c: Likewise.
1307 * monitor.h: Likewise.
1308 * prologue-value.c: Likewise.
1309 * reverse.c: Likewise.
1310 * s390-tdep.c: Likewise.
1312 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1314 * jit.c (jit_inferior_init): Forward declare.
1315 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1317 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1319 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1321 2011-07-04 Tristan Gingold <gingold@adacore.com>
1323 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1324 (tcb_fieldno): Add activation_link field.
1325 (get_known_tasks_addr): Moved and rewritten.
1326 (get_tcb_types_info): Set activation_link field.
1327 (read_known_tasks_array): Add parameter. Rewritten.
1328 (read_known_tasks_list): New function.
1329 (read_known_tasks): New function.
1330 (ada_build_task_list): Call read_known_tasks instead of
1331 read_known_tasks_array.
1332 * ravenscar-thread.c: Add first_task_name constant.
1333 (has_ravenscar_runtime): Check for task list too.
1335 2011-07-04 Tristan Gingold <gingold@adacore.com>
1337 * ada-tasks.c: Renames fieldno to actb_fieldno.
1338 (ada_get_task_number): Indentation.
1339 (get_tcb_types_info): Remove all parameters. Write directly
1341 (ptid_from_atcb_common): Adjust.
1342 (read_atcb): Adjust.
1344 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1346 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1348 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1350 * ui-out.c (ui_out_field_core_addr): Mention that the function
1351 description is in the header file.
1352 * ui-out.h (ui_out_field_core_addr): Document function.
1354 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1356 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1357 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1359 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1361 * symtab.c (expand_line_sal): Remove empty line.
1363 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1365 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1366 same way as ELFOSABI_NONE.
1367 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1369 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1371 * breakpoint.c: Fix typos in comments.
1372 * linespec.c: Likewise.
1373 * symtab.c: Likewise.
1375 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1377 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1378 section in separate object files.
1380 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1382 Fix false GCC warning.
1383 * linespec.c (decode_line_1): Initialize values.
1385 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1387 * linespec.c (find_method): Accept the function type automatically only
1388 if it was specified with parameter types.
1390 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1392 Stop on first linespec terminator instead of eating what we can.
1393 * linespec.c (is_linespec_boundary): New function.
1394 (name_end): Remove function.
1395 (keep_name_info): New parameter on_boundary, replace the body.
1396 (decode_line_1): Provide the parameter to keep_name_info.
1397 (decode_compound): Likewise. Drop the trailing java return type
1400 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1402 Fall back linespec to minimal symbols.
1403 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1404 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1405 (find_method, symbol_found): Change error to cplusplus_error.
1407 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1409 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1411 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1412 Tom Tromey <tromey@redhat.com>
1414 * dwarf2read.c (check_physname): New variable.
1415 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1416 (show_check_physname): New function.
1417 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1419 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1421 * machoread.c (macho_symfile_read): Delete OBE comment.
1423 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1425 * machoread.c (struct macho_oso_data): Delete.
1426 (current_oso): Delete.
1427 (macho_relocate_common_syms): New function, mostly extracted
1429 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1430 Remove code that sets and unset current_oso.
1431 (macho_symfile_relocate): Delete handling of common symbols,
1432 now moved to macho_relocate_common_syms.
1434 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1436 * darwin-nat.c (darwin_ptrace): Add documentation.
1437 Set errno to zero before calling ptrace. If ptrace returns
1438 -1 and errno is zero, then change then return zero.
1439 (darwin_kill_inferior): Issue a warning instead of triggering
1440 a failed assertion when the PT_KILL ptrace operations returned
1443 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1445 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1446 only when inf->private->no_ptrace.
1448 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1450 * ada-lang.c (print_it_exception): Print temporary catchpoints
1451 as "Temporary catchpoint".
1452 (print_mention_exception): Likewise.
1454 2011-07-01 Tom Tromey <tromey@redhat.com>
1456 * jv-lang.c (java_language_defn): Use java_printchar,
1458 (java_get_encoding): New function.
1459 (java_emit_char): Use generic_emit_char.
1460 (java_printchar): New function.
1461 (java_printstr): Likewise.
1463 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1465 * ada-typeprint.c (print_record_type): If unable to decode
1466 the name of the parent type, use the encoded name.
1468 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1470 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1471 pointer to constrained packed array type output.
1472 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1473 packed array output.
1475 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1477 * ada-typeprint.c (print_array_type): removed if condition on show
1478 being negative for bounds printing.
1480 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1482 * ada-lang.c (ada_identical_enum_types_p): New function.
1483 (symbols_are_identical_enums): New function.
1484 (remove_extra_symbols): Do nothing if NSYMS < 2.
1485 Use symbols_are_identical_enums.
1487 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1489 * ada-valprint.c (ada_value_print): Handle typedefs.
1491 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1493 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1495 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1497 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1498 (decode_constrained_packed_array): Likewise.
1499 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1501 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1503 * ada-exp.y (convert_char_literal): Handle typedef types.
1505 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1507 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1509 2011-06-30 Tom Tromey <tromey@redhat.com>
1511 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1512 * valops.c (find_overload_match): Call do_cleanups on early exit
1514 * solib.c (solib_find): Call do_cleanups on early exit path.
1516 2011-06-30 Tom Tromey <tromey@redhat.com>
1518 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1519 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1520 return paths. Defer final do_cleanups until last return.
1521 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1524 2011-06-30 Tom Tromey <tromey@redhat.com>
1526 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1528 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1530 * MAINTAINERS (Write After Approval): Add myself to the list.
1532 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1534 Disable epilogue unwinders on recent GCCs.
1535 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1536 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1537 * dwarf2read.c (process_full_comp_unit): Initialize
1538 EPILOGUE_UNWIND_VALID.
1539 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1540 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1541 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1543 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1545 Code cleanup - reformatting.
1546 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1547 (producer_is_gcc_ge_4): ... here, change the return value.
1548 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1551 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1553 Fix non-only rename list for Fortran modules import.
1554 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1555 cp_add_using_directive caller.
1556 (cp_add_using_directive): New parameter excludes, describe it. New
1557 variables ix and param. Compare if also excludes match. Allocate NEW
1558 with variable size, initialize EXCLUDES there.
1559 (cp_lookup_symbol_imports): New variable excludep, test
1560 current->EXCLUDES with it.
1561 * cp-support.h: Include vec.h.
1562 (struct using_direct): New field excludes, describe it.
1563 (DEF_VEC_P (const_char_ptr)): New.
1564 (cp_add_using_directive): New parameter excludes.
1565 * defs.h (const_char_ptr): New typedef.
1566 * dwarf2read.c (read_import_statement): New variables child_die,
1567 excludes and cleanups, read in excludes.
1568 (read_namespace): Adjust the cp_add_using_directive caller.
1570 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1573 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1574 negative comparisons.
1576 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1578 * mi/mi-main.c (mi_cmd_list_features): Emit
1579 breakpoint-notifications.
1581 2011-06-29 Tom Tromey <tromey@redhat.com>
1584 * valprint.h (generic_emit_char, generic_printstr): Declare.
1585 * valprint.c (wchar_printable, append_string_as_wide)
1586 (print_wchar): Move from c-lang.c.
1587 (generic_emit_char): New function; mostly taken from c_emit_char.
1588 (generic_printstr): New function; mostly taken from c_printstr.
1589 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1590 represented as arrays.
1591 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1593 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1594 identically to TYPE_CODE_INT.
1595 * f-lang.c (f_get_encoding): New function.
1596 (f_emit_char): Use generic_emit_char.
1597 (f_printchar): Replace comment.
1598 (f_printstr): Use generic_printstr.
1599 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1600 "character" types specially.
1601 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1603 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1605 (c_emit_char): Call generic_emit_char.
1606 (c_printstr): Call generic_printstr.
1608 2011-06-29 Gary Benson <gbenson@redhat.com>
1610 * breakpoint.c (bpstat_what): Removed duplicated case.
1612 2011-06-28 Tom Tromey <tromey@redhat.com>
1614 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1616 2011-06-27 Tom Tromey <tromey@redhat.com>
1618 * valops.c (find_overload_match): Call do_cleanups before early
1620 * top.c (execute_command): Call do_cleanups before early return.
1621 (command_loop): Likewise.
1622 * stack.c (backtrace_command): Make a null cleanup early. Don't
1623 conditionally call do_cleanups.
1624 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1626 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1627 so cleanups are always run.
1628 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1629 * findcmd.c (parse_find_args): Call do_cleanups on early return
1631 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1632 Don't conditionally call do_cleanups.
1633 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1636 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1638 * MAINTAINERS (Write After Approval): Use default email address.
1640 2011-06-27 Joel Brobecker <brobecker@adacore.com>
1642 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1644 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1646 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1647 saved_regs_mask and copied_regs_mask fields.
1648 (sparc_record_save_insn): New prototype.
1649 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1650 (sparc_record_save_insn): New function.
1651 (sparc_analyze_prologue): Add head comment. Recognize store insns
1652 of call-saved registers. Use OFFSET consistently. Recognize flat
1653 frames and cache their settings.
1654 (sparc32_skip_prologue): Handle flat frames.
1655 (sparc_frame_cache): Add frame_offset to the base address.
1656 (sparc32_frame_cache): Adjust to new frame description.
1657 (sparc32_frame_prev_register): Likewise.
1658 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1659 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1660 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1661 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1662 frame by calling sparc_record_save_insn.
1663 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1664 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1665 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1667 2011-06-27 Tristan Gingold <gingold@adacore.com>
1669 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1670 field by map_addr and map_len.
1671 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1672 (munmap_section_buffer): Likewise.
1674 2011-06-24 Tom Tromey <tromey@redhat.com>
1676 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1677 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1678 * python/python.c (gdbpy_parameter): Make 'arg' const.
1679 (execute_gdb_command): Likewise.
1680 (gdbpy_decode_line): Likewise. Copy it.
1681 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1682 (gdbpy_write): Make 'arg' const.
1683 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1685 (gdbpy_lookup_type): Likewise.
1686 * python/py-prettyprint.c (print_children): Make 'name' const.
1687 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1688 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1690 * python/py-function.c (fnpy_init): Make 'name' const.
1691 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1692 (gdbpy_string_to_argv): Make 'input' const.
1693 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1695 * gdbtypes.h (lookup_typename): Update.
1696 * gdbtypes.c (lookup_typename): Make 'name' const.
1697 (lookup_struct): Likewise.
1698 (lookup_union): Likewise.
1699 (lookup_enum): Likewise.
1701 2011-06-24 Tom Tromey <tromey@redhat.com>
1703 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1704 gdb_thread_db.h. Move all common/ entries to be together.
1705 (TAGS): Don't depend on DEPFILES.
1707 2011-06-23 Yao Qi <yao@codesourcery.com>
1709 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1710 * remote.c (remote_start_remote): ... here.
1711 * monitor.c (monitor_open): ... here.
1713 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
1715 * gdbtypes.c (append_composite_type_field_aligned): Fix
1716 calculation of bit position based on alignment.
1718 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1720 * breakpoint.c (bpstat_stop_status): Call the check_status
1721 breakpoint_ops method.
1722 (print_one_breakpoint_location): Also print the condition for Ada
1723 exception catchpoints.
1724 (allocate_bp_location): New, factored out from
1725 allocate_bp_location.
1726 (allocate_bp_location): Adjust. Call the owner breakpoint's
1727 allocate_location method, if there is one.
1728 (free_bp_location): Call the locations's dtor method, if there is
1730 (init_raw_breakpoint_without_location): New breakpoint_ops
1732 (set_raw_breakpoint_without_location): Adjust.
1733 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1734 (set_raw_breakpoint): Adjust.
1735 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1736 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
1737 re_set and check_status methods.
1738 (init_catchpoint): Don't memset, initialize thread, addr_string
1739 and enable_state. Pass the ops down to init_raw_breakpoint.
1740 (install_catchpoint): Rename to ...
1741 (install_breakpoint): ... this, and make extern.
1742 (create_fork_vfork_event_catchpoint): Adjust.
1743 (catch_exec_breakpoint_ops): Install NULL allocate_location,
1744 re_set and check_status methods.
1745 (create_syscall_event_catchpoint): Adjust.
1746 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1747 (masked_watchpoint_breakpoint_ops): Install NULL
1748 allocate_location, re_set and check_status methods.
1749 (catch_exec_command_1): Adjust.
1750 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
1751 re_set and check_status methods.
1752 (create_ada_exception_breakpoint): Rename to ...
1753 (init_ada_exception_breakpoint): ... this. Add a struct
1754 breakpoint parameter, and delete the exp_string, cond_string and
1755 cond parameters. Use init_raw_breakpoint, and don't install or
1756 mention the breakpoint yet. Don't clear breakpoint fields that
1757 init_raw_breakpoint already clears.
1758 (re_set_breakpoint): Delete, split into ...
1759 (breakpoint_re_set_default, prepare_re_set_context): ... these new
1761 (breakpoint_re_set_one): Call the breakpoint's
1762 breakpoint_ops->re_set implementation, if there's one. Adjust.
1763 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
1764 (struct bp_location_ops): New type.
1765 (struct bp_location): New field `ops'.
1766 (struct breakpoint_ops): New `allocate_location', `re_set' and
1767 `check_status' fields. Make `breakpoint_hit''s description match
1769 (init_bp_location): Declare.
1770 (breakpoint_re_set_default): Declare.
1771 (create_ada_exception_breakpoint): Rename to ...
1772 (init_ada_exception_breakpoint): ... this. Add a struct
1773 breakpoint parameter, and delete the exp_string, cond_string and
1775 (install_breakpoint): Declare.
1776 * ada-lang.c: Include exceptions.h.
1777 <Ada exceptions description>: Update.
1778 (struct ada_catchpoint_location): New type.
1779 (ada_catchpoint_location_dtor): New function.
1780 (ada_catchpoint_location_ops): New global.
1781 (ada_catchpoint): New type.
1782 (create_excep_cond_exprs): New function.
1783 (dtor_exception, allocate_location_exception, re_set_exception)
1784 (should_stop_exception, check_status_exception): New functions.
1785 (print_one_exception, print_mention_exception)
1786 (print_recreate_exception): Adjust.
1787 (dtor_catch_exception, allocate_location_catch_exception)
1788 (re_set_catch_exception, check_status_catch_exception): New
1790 (catch_exception_breakpoint_ops): Install them.
1791 (dtor_catch_exception_unhandled)
1792 (allocate_location_catch_exception_unhandled)
1793 (re_set_catch_exception_unhandled)
1794 (check_status_catch_exception_unhandled): New functions.
1795 (catch_exception_unhandled_breakpoint_ops): Install them.
1796 (dtor_catch_assert, allocate_location_catch_assert)
1797 (re_set_catch_assert, check_status_catch_assert): New functions.
1798 (catch_assert_breakpoint_ops): Install them.
1799 (ada_exception_catchpoint_p): Delete.
1800 (catch_ada_exception_command_split)
1801 (ada_exception_catchpoint_cond_string): Rename exp_string
1802 parameter to excep_string. Adjust.
1803 (ada_parse_catchpoint_condition): Delete.
1804 (ada_exception_sal): Rename the exp_string parameter to
1805 excep_string. Delete the cond_string and cond parameters.
1807 (ada_decode_exception_location): Rename the exp_string parameter
1808 to excep_string. Delete the cond_string and cond parameters.
1810 (create_ada_exception_catchpoint): New function.
1811 (catch_ada_exception_command, ada_decode_assert_location)
1812 (catch_assert_command): Adjust.
1813 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
1815 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1817 * ada-lang.c: Include arch-utils.h.
1818 (ada_decode_exception_location): Make static.
1819 (catch_ada_exception_command): Moved here from breakpoint.c.
1820 (ada_decode_assert_location): Make static.
1821 (catch_assert_command): Moved here from breakpoint.c.
1822 (_initialize_ada_lang): Install the exception and assert
1823 catchpoint commands here.
1824 * ada-lang.h (ada_decode_exception_location)
1825 (ada_decode_assert_location): Delete declarations.
1826 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
1828 (create_ada_exception_breakpoint): Make extern.
1829 (catch_ada_exception_command, catch_assert_command): Moved to
1831 (add_catch_command): Make extern.
1832 (_initilize_breakpoint): Don't install the exception and assert
1833 catchpoint commands here.
1834 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
1836 (add_catch_command, create_ada_exception_breakpoint): Declare.
1838 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1840 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
1841 the breakpoint to the breakpoint chain here.
1842 (set_raw_breakpoint_without_location): Add the breakpoint to the
1843 breakpoint chain here.
1844 (init_raw_breakpoint): Adjust comments.
1845 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
1847 (init_catchpoint): Don't set the catchpoint's breakpoint number
1849 (install_catchpoint): New function.
1850 (create_fork_vfork_event_catchpoint)
1851 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
1852 use install_catchpoint.
1854 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1856 * breakpoint.c (create_catchpoint_without_mention)
1857 (create_catchpoint): Delete.
1859 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1861 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
1862 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1863 reference to exec_pathname.
1864 (struct exec_catchpoint): New type.
1865 (dtor_catch_exec): New function.
1866 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
1867 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
1868 (catch_exec_command_1): Adjust to use init_catchpoint.
1869 (delete_breakpoint): Remove reference to exec_pathname.
1871 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1873 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
1874 (struct breakpoint): Delete field `syscalls_to_be_caught'.
1875 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1876 reference to syscalls_to_be_caught.
1877 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
1879 (struct syscall_catchpoint): New type.
1880 (dtor_catch_syscall): New function.
1881 (insert_catch_syscall, remove_catch_syscall)
1882 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
1883 (print_recreate_catch_syscall): Adjust.
1884 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
1885 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
1886 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
1887 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1888 (masked_watchpoint_breakpoint_ops)
1889 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
1890 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
1891 there is one. Remove references to syscalls_to_be_caught.
1892 (catching_syscall_number): Adjust.
1893 * ada-lang.c (catch_exception_breakpoint_ops)
1894 (catch_exception_unhandled_breakpoint_ops)
1895 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
1897 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1899 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
1901 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1902 reference to forked_inferior_pid.
1903 (struct fork_catchpoint): New type.
1904 (breakpoint_hit_catch_fork, print_it_catch_fork)
1905 (print_one_catch_fork, breakpoint_hit_catch_vfork)
1906 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
1907 (create_fork_vfork_event_catchpoint): Adjust to use
1910 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1912 * breakpoint.c (add_to_breakpoint_chain)
1913 (init_raw_breakpoint_without_location): New functions, factored
1915 (set_raw_breakpoint_without_location): ... this one.
1916 (init_raw_breakpoint): New function, factored out from
1917 set_raw_breakpoint and adjusted to use
1918 init_raw_breakpoint_without_location.
1919 (set_raw_breakpoint): Adjust.
1920 (init_catchpoint): New function, factored out from
1921 create_catchpoint_without_mention and adjusted to use
1922 init_raw_breakpoint.
1923 (create_catchpoint_without_mention): Adjust.
1925 2011-06-22 Tom Tromey <tromey@redhat.com>
1927 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
1928 argument of 0 specially.
1930 2011-06-22 Yao Qi <yao@codesourcery.com>
1932 * infrun.c (handle_inferior_event): Remove write-only local variable
1933 `sw_single_step_trap_p'.
1935 2011-06-20 Tom Tromey <tromey@redhat.com>
1937 * symtab.c (lookup_language_this): End loop if block is NULL.
1939 2011-06-17 Tom Tromey <tromey@redhat.com>
1941 * valops.c (value_of_this): Use lookup_language_this.
1942 * symtab.h (lookup_language_this): Declare.
1943 * symtab.c (lookup_language_this): New function.
1944 (lookup_symbol_aux): Use lookup_language_this.
1945 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
1947 2011-06-17 Tom Tromey <tromey@redhat.com>
1949 * value.h (value_of_this): Update.
1950 (value_of_local): Remove.
1951 * valops.c (value_of_this): Rename from value_of_local. Change
1953 * p-exp.y (exp): Update.
1954 (variable): Likewise.
1955 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
1957 2011-06-17 Tom Tromey <tromey@redhat.com>
1959 * valops.c (value_of_local): Complain if NAME is NULL.
1960 * std-operator.def (OP_OBJC_SELF): Remove.
1961 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
1962 * objc-exp.y (name_not_typename): Use OP_THIS.
1963 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
1965 <OP_OBJC_SELF>: Remove.
1966 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
1968 2011-06-16 Tristan Gingold <gingold@adacore.com>
1970 * python/py-events.h (gdb_py_events): Make it extern.
1971 * python/py-evtregistry.c (gdb_py_events): Declare.
1973 2011-06-16 Hui Zhu <teawater@gmail.com>
1975 * remote.c (remote_trace_set_readonly_regions): Add check for
1976 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
1979 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1981 * arm-linux-tdep.c: Include "auxv.h".
1983 (ARM_LINUX_SIZEOF_VFP): Define.
1984 (arm_linux_supply_vfp): New function.
1985 (arm_linux_collect_vfp): Likewise.
1986 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
1987 (arm_linux_fpa_regset_sections): New variable.
1988 (arm_linux_vfp_regset_sections): Likewise.
1989 (arm_linux_core_read_description): New function.
1990 (arm_linux_init_abi): Install arm_linux_core_read_description and
1991 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
1992 appropriate for the architecture.
1993 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
1994 (tdesc_arm_with_m): Declare.
1995 (tdesc_arm_with_iwmmxt): Likewise.
1996 (tdesc_arm_with_vfpv2): Likewise.
1997 (tdesc_arm_with_vfpv3): Likewise.
1998 (tdesc_arm_with_neon): Likewise.
1999 * arm-linux-nat.c: Move features/*.c includes ...
2000 * arm-tdep.c: ... here.
2001 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2002 target description data structures ...
2003 * arm-tdep.c (_initialize_arm_tdep): ... here.
2004 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2005 HWCAP_VFPv3D16): Move definitions ...
2006 * arm-linux-tdep.h: ... here.
2008 2011-06-15 Hui Zhu <teawater@gmail.com>
2010 * remote.c (remote_trace_set_readonly_regions): Add a check for
2013 2011-06-14 Tom Tromey <tromey@redhat.com>
2015 * coffread.c (coffread_objfile): Rename from current_objfile.
2016 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2017 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2019 2011-06-14 Tom Tromey <tromey@redhat.com>
2021 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2022 (class_symtab): Remove.
2023 (jv_dynamics_progspace_key): New global.
2024 (jv_per_objfile_free): Reset program space data. Update assert.
2025 Don't clear globals.
2026 (get_dynamics_objfile): Use and set program space data.
2027 (get_java_class_symtab): Use get_dynamics_objfile.
2028 (add_class_symbol): Likewise.
2029 (java_link_class_type): Likewise.
2030 (java_object_type, jv_clear_object_type, set_java_object_type):
2032 (get_java_object_type): Update. Don't cache result.
2033 (is_object_type): Don't call set_java_object_type.
2034 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2035 initialize jv_dynamics_progspace_key.
2037 2011-06-14 Tom Tromey <tromey@redhat.com>
2039 * symtab.h (current_objfile): Don't declare.
2040 * objfiles.h (current_objfile): Don't declare.
2041 * objfiles.c (current_objfile): Remove.
2042 * mdebugread.c (current_objfile): New file-scope global.
2043 * dbxread.c (current_objfile): New file-scope global.
2044 * coffread.c (current_objfile): New file-scope global.
2046 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2048 * top.h (line): Rename to ...
2049 (saved_command_line): ... this.
2050 (linesize): Rename to ...
2051 (saved_command_line_size): ... this.
2052 * top.c (line): Rename to ...
2053 (saved_command_line): ... this.
2054 (linesize): Rename to ...
2055 (saved_command_line_size): ... this.
2056 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2057 * event-top.c (command_line_handler): Adjust.
2058 * main.c (captured_main): Adjust.
2060 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2062 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2063 get_frame_func instead of get_frame_pc to determine the code
2064 address used to construct the frame ID.
2065 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2066 (i386_epilogue_frame_this_id): Likewise.
2067 (i386_epilogue_frame_prev_register): New function.
2068 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2069 (i386_stack_tramp_frame_sniffer): Fix coding style.
2070 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2071 (i386_gdbarch_init): Fix comments.
2073 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2075 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2076 instruction when walking back through the instruction stream.
2078 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2080 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2081 fullname parameters order.
2083 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2086 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2088 * psymtab.c (map_symbol_filenames_psymtab)
2089 (map_partial_symbol_filenames): Likewise.
2090 * psymtab.h: Include symfile.h.
2091 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2092 * symfile.h (symbol_filename_ftype): New.
2093 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2094 map_symbol_filenames, clarify more the naming in comment.
2096 2011-06-07 Doug Evans <dje@google.com>
2098 * cc-with-index.sh: Fix typos in comment.
2099 Look for ../../gdb, for fullname.exp.
2101 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2102 Pedro Alves <pedro@codesourcery.com>
2104 * cli/cli-cmds.c (shell_escape): Use waitpid.
2105 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2107 2011-06-07 Tristan Gingold <gingold@adacore.com>
2109 * xcoffread.c (dwarf2_xcoff_names): New variable.
2110 (aix_process_linenos): Add a guard.
2111 (xcoff_symfile_finish): Free dwarf2.
2112 (xcoff_initial_scan): Add dwarf2 support.
2114 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2116 * infcall.c (run_inferior_call): Don't mask async. Instead force
2117 a synchronous wait, if the target can async.
2119 * target.h (struct target_ops): Delete to_async_mask.
2120 (target_async_mask): Delete.
2121 * target.c (update_current_target): Delete references to to_async_mask.
2122 * linux-nat.c (linux_nat_async_mask_value): Delete.
2123 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2124 to linux_nat_async_mask_value.
2125 (linux_nat_async_mask): Delete.
2126 (linux_nat_async, linux_nat_close): Remove references to
2127 linux_nat_async_mask_value.
2128 * record.c (record_async_mask_value): Delete.
2129 (record_async): Remove references to record_async_mask_value.
2130 (record_async_mask): Delete.
2131 (record_can_async_p, record_is_async_p): Remove references to
2132 record_async_mask_value.
2133 (init_record_ops, init_record_core_ops): Remove references to
2135 * remote.c (remote_async_mask_value): Delete.
2136 (init_remote_ops): Remove reference to remote_async_mask.
2137 (remote_can_async_p, remote_is_async_p): Remove references to
2138 remote_async_mask_value.
2139 (remote_async): Remove references to remote_async_mask_value.
2140 (remote_async_mask): Delete.
2142 * infrun.c (fetch_inferior_event): Don't claim registers changed
2143 if the current thread is already not executing.
2145 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2147 From Stephen Kitt <steve@sk2.org>
2148 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2149 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2151 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2153 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2154 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2156 2011-06-03 Tom Tromey <tromey@redhat.com>
2158 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2160 * python/py-exitedevent.c (create_exited_event_object): Change
2161 type of 'exit_code'. Optionally add exit_code attribute.
2162 (emit_exited_event): Change type of 'exit_code'.
2163 * python/py-event.h (emit_exited_event): Update.
2164 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2165 * infrun.c (handle_inferior_event): Set exit code fields on
2167 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2169 * inferior.c (exit_inferior_1): Initialize new fields.
2171 2011-06-03 Tom Tromey <tromey@redhat.com>
2173 * dwarf2expr.c (get_signed_type): New function.
2174 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2176 2011-06-02 Keith Seitz <keiths@redhat.com>
2178 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2180 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2182 * top.h (simplified_command_loop): Delete declaration.
2184 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2186 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2187 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2189 2011-06-01 Yao Qi <yao@codesourcery.com>
2191 * objfiles.h (obj_section_addr): Update reference to objfile from
2193 (obj_section_endaddr): Likewise.
2195 2011-06-01 Daniel Jacobowitz <drow@false.org>
2197 * MAINTAINERS: Update my email address and affiliation. Also
2198 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2200 2010-05-31 Keith Seitz <keiths@redhat.com>
2203 * linespec.c (get_search_block): New function.
2204 (find_methods): Add FILE_SYMTATB parameter and use it and
2205 get_search_block to pass an appropriate block to
2206 lookup_symbol_in_namespace.
2207 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2208 Check if *ARGPTR starts with a filename first.
2209 If it does, call locate_first_half again to locate the next
2210 "first half" of the linespec.
2211 Pass FILE_SYMTATB to decode_objc and decode_compound.
2212 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2213 (locate_first_half): Stop on the first colon seen.
2214 (decode_compound): Add FILE_SYMTAB parameter.
2215 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2216 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2217 get_search_block with lookup_symbol.
2218 (find_method): Add FILE_SYMTAB parameter and pass it to
2220 (decode_objc): Use get_search_block.
2222 2010-05-31 Keith Seitz <keiths@redhat.com>
2225 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2226 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2227 and CP_ANONYMOUS_NAMESPACE_LEN.
2228 (cp_is_anonymous): Likewise.
2229 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2230 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2231 * dwarf2read.c (namespace_name): Likewise.
2232 (fixup_partial_die): Likewise.
2233 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2234 seen in the input, keep it.
2236 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2238 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2239 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2240 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2241 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2242 * remote.c (_initialize_remote): Register
2243 async_remote_interrupt_twice directly as
2244 sigint_remote_twice_token event.
2246 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2248 * target.h (enum inferior_event_type): Delete INF_ERROR.
2249 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2251 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2253 * interps.c (interp_set): Don't cancel continuations.
2255 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2257 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2259 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2261 * continuations.h (continuation_ftype): Add `err' parameter.
2262 Document parameters.
2263 (do_all_continuations, do_all_continuations_thread)
2264 (do_all_intermediate_continuations)
2265 (do_all_intermediate_continuations_thread)
2266 (do_all_inferior_continuations): Add `err' parameter.
2267 * continuations.c (do_my_continuations_1, do_my_continuations)
2268 (do_all_inferior_continuations, do_all_continuations_ptid)
2269 (do_all_continuations_thread_callback)
2270 (do_all_continuations_thread, do_all_continuations)
2271 (do_all_intermediate_continuations_thread_callback)
2272 (do_all_intermediate_continuations_thread)
2273 (do_all_intermediate_continuations): Add `err' parameter, and pass
2274 it down all the way to the continuations proper.
2275 * inf-loop.c (inferior_event_handler): If fetching an inferior
2276 event throws an error, don't pop the target, and still call the
2277 continuations, but with `err' set. Adjust all other continuation
2279 * breakpoint.c (until_break_command_continuation): Add `err'
2281 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2282 issue another step if `err' is set.
2283 (struct until_next_continuation_args): New.
2284 (until_next_continuation): Add `err' parameter. Adjust.
2285 (until_next_command): Adjust.
2286 (struct finish_command_continuation_args): Add `thread' field.
2287 (finish_command_continuation): Add `err' parameter. Handle it.
2288 (finish_forward): Adjust.
2289 (attach_command_continuation): Add `err' parameter. Handle it.
2290 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2291 cancel the continuations.
2292 * interps.c (interp_set): Adjust to cancel the continuations.
2293 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2294 continuations rather than discarding.
2295 (free_thread): Don't clear thread inferior resources here.
2296 (delete_thread_1): Do it here instead. And do it before removing
2297 the thread from the threads list. Tag the thread as exited before
2298 clearing thread inferior resources.
2300 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2302 * infcall.c (call_function_by_hand): Rephrase error message.
2304 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2306 * defs.h (struct thread_info, struct inferior): Delete forward
2308 * breakpoint.h (struct thread_info): New forward declaration.
2309 * observer.sh (struct inferior): New forward declaration.
2310 * python/python-internal.h (struct inferior): New forward
2313 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2315 * defs.h (struct continuation, continuation_ftype)
2316 (continuation_free_arg_ftype, add_continuation)
2317 (do_all_continuations, do_all_continuations_thread)
2318 (discard_all_continuations, discard_all_continuations_thread)
2319 (add_intermediate_continuation, do_all_intermediate_continuations)
2320 (do_all_intermediate_continuations_thread)
2321 (discard_all_intermediate_continuations)
2322 (discard_all_intermediate_continuations_thread)
2323 (add_inferior_continuation, do_all_inferior_continuations)
2324 (discard_all_inferior_continuations): Move to ...
2325 * continuations.h: ... this new file.
2326 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2327 infcmd.c, inferior.c, infrun.c, interps.c: Include
2330 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2331 Doug Evans <dje@google.com>
2333 Fix PR 10970, PR 12702.
2334 * linux-nat.c (linux_lwp_is_zombie): New function.
2335 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2336 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2338 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2340 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2342 (add_continuation, add_intermediate_continuation)
2343 (add_inferior_continuation): Use them.
2344 * continuations.c (struct continuation): Use them.
2345 (make_continuation_ftype): Delete.
2346 (make_continuation, add_inferior_continuation, add_continuation)
2347 (add_intermediate_continuation): Use continuation_ftype and
2348 continuation_free_arg_ftype. Rename parameters to shorter names.
2350 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2352 * continuations.c (make_continuation): Make it return void.
2353 (do_my_continuations): Rename to ...
2354 (do_my_continuations_1): ... this. Remove old_chain parameter and
2356 (do_my_continuations): New.
2357 (discard_my_continuations): Rename to ...
2358 (discard_my_continuations_1): ... this. Remove old_chain
2359 parameter and adjust.
2360 (discard_my_continuations): New.
2361 (add_inferior_continuation): Simplify.
2362 (do_all_inferior_continuations): Reimplement on top
2363 do_my_continuations.
2364 (discard_all_inferior_continuations): Simplify.
2365 (add_continuation): Simplify.
2366 (do_all_continuations_ptid): Simplify.
2367 (discard_all_continuations_thread_callback): Simplify.
2368 (add_intermediate_continuation): Simplify.
2369 (discard_all_intermediate_continuations_thread_callback):
2372 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2374 * utils.c (struct continuation, add_continuation)
2375 (add_inferior_continuation)
2376 (do_all_inferior_continuations, discard_all_inferior_continuations)
2377 (restore_thread_cleanup, do_all_continuations_ptid)
2378 (do_all_continuations_thread_callback)
2379 (do_all_continuations_thread, do_all_continuations)
2380 (discard_all_continuations_thread_callback)
2381 (discard_all_continuations_thread, discard_all_continuations)
2382 (add_intermediate_continuation)
2383 (do_all_intermediate_continuations_thread_callback)
2384 (do_all_intermediate_continuations_thread)
2385 (do_all_intermediate_continuations)
2386 (discard_all_intermediate_continuations_thread_callback)
2387 (discard_all_intermediate_continuations_thread)
2388 (discard_all_intermediate_continuations): Move to ...
2389 * continuations.c: ... this new file, and adjust to no longer
2390 implement continuations on top of cleanups.
2391 * Makefile.in (SFILES): Add continuations.c.
2392 (COMMON_OBS): Add continuations.o.
2394 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2396 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2397 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2398 Internal error on invalid values.
2399 * reverse.c: Don't handle EXEC_ERROR.
2400 * mi/mi-main.c: Don't handle EXEC_ERROR.
2402 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2404 * record.c: Include event-loop.h, inf-loop.h.
2405 (record_beneath_to_async): New global.
2406 (tmp_to_async): New global.
2407 (record_async_inferior_event_token): New global.
2408 (record_open_1): Don't error out if async is enabled.
2409 (record_open): Handle to_async. Create an async event source in
2411 (record_close): Delete the async event source.
2412 (record_resumed): New global.
2413 (record_execution_dir): New global.
2414 (record_resume, record_core_resume): Set them. Register the
2415 target on the event loop.
2416 (record_wait): Rename to ...
2417 (record_wait_1): ... this. Add more debug output. Handle
2418 TARGET_WNOHANG, and the target beneath returning
2419 TARGET_WAITKIND_IGNORE.
2420 (record_wait): Reimplement on top of record_wait_1.
2421 (record_async_mask_value): New global.
2422 (record_async, record_async_mask, record_can_async_p)
2423 (record_is_async_p, record_execution_direction): New functions.
2424 (init_record_ops, init_record_core_ops): Install new methods.
2425 * infrun.c (fetch_inferior_event): Temporarily switch the global
2426 execution direction to the direction the target was going.
2427 (execution_direction): Change type to int.
2428 * target.c (default_execution_direction): New function.
2429 (update_current_target): Inherit and de_fault
2430 to_execution_direction.
2431 * target.h (struct target_ops) <to_execution_direction>: New
2433 (target_execution_direction): New macro.
2434 * inferior.h (execution_direction): Change type to int.
2436 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2438 * infcall.c (call_function_by_hand): Don't allow calling functions
2439 in reverse execution mode.
2441 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2443 * infcmd.c (finish_command): Allow async finish in reverse.
2445 2011-05-26 Yao Qi <yao@codesourcery.com>
2447 * gdb_thread_db.h: Delete. Move to ...
2448 * common/gdb_thread_db.h: ... here.
2450 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2452 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2453 function's entry point instead of a manually managed momentary
2454 breakpoint, and only ever issue one proceed call.
2455 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2456 doing a reverse-finish, switch to stepi mode, to do another step.
2457 (insert_step_resume_breakpoint_at_sal): Make public.
2458 (normal_stop): No need to save function value return registers if
2460 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2462 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2464 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2465 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2466 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2468 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2469 step-resume breakpoints.
2470 (print_it_typical): Handle bp_hp_step_resume.
2471 (bpstat_what): Ditto.
2472 (bptype_string): Ditto.
2473 (print_one_breakpoint_location): Ditto.
2474 (allocate_bp_location): Ditto.
2476 (breakpoint_re_set_one): Ditto.
2477 * infrun.c (handle_inferior_event): Adjust. Split
2478 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2479 BPSTAT_WHAT_HP_STEP_RESUME.
2480 (insert_step_resume_breakpoint_at_sal): Rename to ...
2481 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2482 parameter. Handle it.
2483 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2484 insert_step_resume_breakpoint_at_sal_1.
2485 (insert_step_resume_breakpoint_at_frame): Rename to ...
2486 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2487 set a high-priority step-resume breakpoint.
2488 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2489 (insert_step_resume_breakpoint_at_caller): Ditto.
2491 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2493 * breakpoint.c (iterate_over_related_breakpoints): New.
2494 (do_map_delete_breakpoint): New.
2495 (delete_command): Pass do_map_delete_breakpoint to
2496 map_breakpoint_numbers.
2497 (do_disable_breakpoint): New.
2498 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2500 (do_enable_breakpoint): Rename to ...
2501 (enable_breakpoint_disp): ... this.
2502 (enable_breakpoint): Adjust.
2503 (do_enable_breakpoint): New.
2504 (enable_once_breakpoint): Delete.
2505 (do_map_enable_breakpoint): New.
2506 (do_map_enable_once_breakpoint): New.
2507 (enable_once_command, enable_delete_command)
2508 (delete_trace_command): Iterate over the breakpoint's related
2511 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2513 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2514 for ALPHA_ZERO_REGNUM.
2515 (alpha_supply_int_regs): Explicitly supply zero as the value for
2516 ALPHA_ZERO_REGNUM in the register cache.
2517 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2519 2011-05-26 Yao Qi <yao@codesourcery.com>
2521 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2523 2011-05-26 Tristan Gingold <gingold@adacore.com>
2525 * symfile.h (struct dwarf2_section_names): New type.
2526 (struct dwarf2_debug_sections): New type.
2527 (dwarf2_has_info): Add parameter.
2528 * dwarf2read.c (dwarf2_elf_names): New variable.
2529 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2530 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2531 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2532 (dwarf2_has_info): Add names parameter. Pass names
2533 to dwarf2_locate_sections.
2534 (section_is_p): Rewrite using the names parameter.
2535 (dwarf2_locate_sections): Use section names from the names parameter.
2536 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2537 * elfread.c (read_psyms): Ditto.
2538 * machoread.c (macho_symfile_read): Ditto.
2540 2011-05-25 Andreas Schwab <schwab@redhat.com>
2543 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2545 2011-05-24 Keith Seitz <keiths@redhat.com>
2548 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2549 (decode_compound): Unconditionally call keep_name_info.
2551 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2553 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2554 scope, clear its command list.
2555 (map_breakpoint_numbers): Don't walk the related breakpoints list
2558 2011-05-24 Tom Tromey <tromey@redhat.com>
2560 * MAINTAINERS: Move Jim Blandy to past maintainers.
2562 2011-05-24 Tristan Gingold <gingold@adacore.com>
2564 * symfile.h (enum dwarf2_section_enum): New type.
2565 (dwarf2_get_section_info): New prototype.
2566 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2567 section_name by sect. Use a switch to select the info.
2568 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2569 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2571 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2573 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2574 shared library event breakpoint if there's no execution.
2576 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2578 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2579 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2581 2011-05-23 Tom Tromey <tromey@redhat.com>
2583 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2586 2011-05-23 Doug Evans <dje@google.com>
2588 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2589 entry for RuntimeError to doc string.
2591 2011-05-23 Jerome Guitton <guitton@adacore.com>
2593 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2594 sequence for probing loops.
2596 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2598 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2601 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2603 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2604 zero as the value for %g0 in the register cache.
2605 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2606 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2608 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2610 * infrun.c (proceed): Set previous_inferior_ptid here.
2611 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2612 inferior_ptid, not null_ptid.
2613 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2614 (fetch_inferior_event): Nor here.
2616 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2618 * inf-loop.c (inferior_event_handler): Only output a message if
2621 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
2623 * MAINTAINERS: Update my e-mail address.
2625 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2627 * infrun.c (proceed): Switch the inferior event loop to
2628 INF_EXEC_COMPLETE if the target refused to resume from a
2631 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2633 * infcmd.c: Include "inf-loop.h".
2634 (step_once): When stepping into an inline subroutine, pretend the
2635 target has run. If the target can async, switch the inferior
2636 event loop to INF_EXEC_COMPLETE.
2637 * inferior.h (user_visible_resume_ptid): Declare.
2638 * infrun.c (user_visible_resume_ptid): New function, factored out
2641 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2642 that the current thread is running. Merge async and sync
2645 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2647 * infcmd.c (step_1): Simplify synchronous case.
2649 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2651 * tracepoint.c: Include exceptions.h.
2652 (TFILE_PID): Move higher in file.
2653 (tfile_open): Delay pushing the tfile target until we're assured
2654 the tfile header is present in the file. Wrap reading the initial
2655 newline-terminated lines in TRY_CATCH. Pop the target if the
2656 initial setup failed. Add the tfile's thread immediately
2657 aftwards, before any non-essential setup. Don't skip
2658 post_create_inferior if there are no traceframes present in the
2660 (tfile_close): Remove redundant check for null before xfree call.
2661 (tfile_thread_alive): New function.
2662 (init_tfile_ops): Register it as to_thread_alive callback.
2664 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2666 * tracepoint.c (tfile_open): Delete #if 0'd code.
2668 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2670 Fix -readnow for -gdwarf-4 unused type units.
2671 * dwarf2read.c (struct signatured_type): Remove the field offset.
2672 (create_signatured_type_table_from_index): Remove its initialization.
2673 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2674 instead. Add a complaint call.
2675 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2676 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2677 (lookup_signatured_type_at_offset, read_signatured_type)
2678 (write_one_signatured_type): Update the field for per_cu.
2680 2011-05-19 Tom Tromey <tromey@redhat.com>
2682 * python/py-inferior.c (python_inferior_exit): Use
2684 (python_on_resume): Likewise.
2686 2011-05-19 Matt Rice <ratmice@gmail.com>
2688 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2690 2011-05-19 Hui Zhu <teawater@gmail.com>
2692 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2694 2011-05-19 Hui Zhu <teawater@gmail.com>
2696 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2698 2011-05-18 Tom Tromey <tromey@redhat.com>
2700 * dwarf2read.c (dwarf2_add_field): Constify.
2701 * value.c (value_static_field): Constify.
2702 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2704 * ax-gdb.c (gen_static_field): Constify
2706 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2708 * linux-nat.c (kill_callback): Use SIGKILL first.
2710 2011-05-18 Joel Brobecker <brobecker@adacore.com>
2712 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2714 2011-05-18 Tom Tromey <tromey@redhat.com>
2716 * value.c (value_fn_field): Constify.
2717 * symtab.c (gdb_mangle_name): Constify.
2718 * stabsread.c (update_method_name_from_physname): Make 'physname'
2720 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2721 const. Use explicit fputc_filtered loop.
2722 (pascal_type_print_base): Constify.
2723 * p-lang.h (pascal_type_print_method_args): Update.
2724 * linespec.c (add_matching_methods): Constify.
2725 (add_constructors): Likewise.
2726 * jv-typeprint.c (java_type_print_base): Constify.
2727 * gdbtypes.h (struct cplus_struct_type)
2728 <fn_fieldlist.fn_field.physname>: Now const.
2729 * dwarf2read.c (compute_delayed_physnames): Constify.
2730 (dwarf2_add_member_fn): Likewise.
2731 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2733 2011-05-18 Pedro Alves <pedro@codesourcery.com>
2735 * infrun.c (resume): Mention which is the current thread, and its
2736 current PC in debug output.
2737 (prepare_to_proceed): Mention the thread switching in debug
2740 2011-05-18 Tom Tromey <tromey@redhat.com>
2742 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
2743 path check. Use xmalloc and cleanups.
2744 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2746 2011-05-17 Tom Tromey <tromey@redhat.com>
2748 * cp-valprint.c (cp_print_value_fields): Catch errors from
2751 2011-05-17 Tom Tromey <tromey@redhat.com>
2753 * dwarf2read.c (dwarf2_get_die_type): Call
2754 get_die_type_at_offset.
2755 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
2756 get_base_type function.
2758 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
2760 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
2763 2011-05-16 Doug Evans <dje@google.com>
2765 * python/py-auto-load.c (source_section_scripts): Mention objfile
2768 2011-05-15 Doug Evans <dje@google.com>
2770 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
2771 (try_thread_db_load_from_pdir): Call it. If unable to find
2772 libthread_db in directory of libpthread, see if we're looking at
2773 the separate-debug-info copy.
2775 * python/py-autoload.c (print_script): Print "Missing" instead of
2776 "No" for missing scripts.
2777 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
2779 2011-05-13 Doug Evans <dje@google.com>
2781 * ui-file.c (stdio_file_write_async_safe): Add comment.
2783 2011-05-14 Hui Zhu <teawater@gmail.com>
2785 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
2787 2011-05-13 Doug Evans <dje@google.com>
2789 Support $pdir and $sdir in libthread-db-search-path.
2790 * NEWS: Mention $sdir,$pdir.
2791 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
2792 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
2793 (try_thread_db_load_from_sdir): New function.
2794 (try_thread_db_load_from_dir): New function.
2795 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
2796 system directories if search of libthread-db-search-path fails,
2797 that is now done via $sdir.
2798 (has_libpthread): New function.
2799 (thread_db_load): Remove search for libthread_db in directory of
2800 libpthread, that is now done via $pdir.
2802 * NEWS: Mention "info auto-load-scripts".
2803 * python/py-auto-load.c (struct auto_load_pspace_info): New member
2804 script_not_found_warning_printed.
2805 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
2806 all callers updated. Initialize script_not_found_warning_printed.
2807 (get_auto_load_pspace_data_for_loading): New function.
2808 (maybe_add_script): New function.
2809 (source_section_scripts): Simplify. Only print one warning regardless
2810 of the number of auto-load scripts not found.
2811 (clear_section_scripts): Clear script_not_found_warning_printed.
2812 (auto_load_objfile_script): Record script in hash table.
2813 (count_matching_scripts): New function.
2814 (maybe_print_script): Renamed from maybe_print_section_script, all
2815 callers updated. Rewrite to use ui_out_*.
2816 (info_auto_load_scripts): Renamed from
2817 maintenance_print_section_scripts, all callers updated.
2818 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
2819 renamed as "info auto-load-scripts".
2821 2011-05-13 Tom Tromey <tromey@redhat.com>
2823 * dwarf2expr.c (read_uleb128): Cast intermediate result.
2824 (read_sleb128): Likewise.
2826 2011-05-13 Tom Tromey <tromey@redhat.com>
2828 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
2831 2011-05-13 Doug Evans <dje@google.com>
2833 * linux-nat.c (debug_linux_nat_async): Delete.
2834 Replace all references to use debug_linux_nat instead.
2835 (show_debug_linux_nat_async): Delete.
2836 (sigchld_handler): Call ui_file_write_async_safe instead of
2838 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
2839 * ui-file.c (struct ui_file): New member to_write_async_safe.
2840 (null_file_write_async_safe): New function.
2841 (ui_file_write_async_safe): New function.
2842 (set_ui_file_write_async_safe): New function.
2843 (ui_file_new): Initialize to_write_async_safe.
2844 (stdio_file_write_async_safe): New function.
2845 (struct stdio_file): New member fd.
2846 (stdio_file_new): Initialize to_write_async_safe, fd.
2847 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
2849 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
2850 (set_ui_file_write_async_safe): Declare.
2851 (ui_file_write_async_safe): Declare.
2853 2011-05-13 Tom Tromey <tromey@redhat.com>
2855 * utils.c (do_value_free): New function.
2856 (make_cleanup_value_free): Likewise.
2857 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
2859 (dwarf2_loc_desc_needs_frame): Call
2860 make_cleanup_value_free_to_mark.
2861 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
2862 * dwarf2expr.c (free_dwarf_expr_context): Don't call
2864 (new_dwarf_expr_context): Don't call value_mark.
2865 * dwarf2-frame.c (execute_stack_op): Call
2866 make_cleanup_value_free_to_mark.
2867 * defs.h (make_cleanup_value_free): Declare.
2869 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2871 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
2872 prepare_execute_command.
2873 * top.c (prepare_execute_command): Return cleanup.
2874 (execute_command): Use cleanup from prepare_execute_command.
2875 * top.h (prepare_execute_command): Change prototype to return
2877 * defs.h (struct value): Add opaque declaration.
2878 (make_cleanup_value_free_to_mark): Add prototype.
2879 * utils.c (do_value_free_to_mark): New function.
2880 (make_cleanup_value_free_to_mark): Likewise.
2882 2011-05-12 Tom Tromey <tromey@redhat.com>
2884 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
2885 cast left-hand-side to unsigned.
2887 2011-05-12 Tom Tromey <tromey@redhat.com>
2890 * value.h (value_from_contents): Declare.
2891 * value.c (value_from_contents): New function.
2892 * dwarf2read.c (dwarf_stack_op_name): Add new values.
2893 (dwarf2_get_die_type): New function.
2894 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
2895 (allocate_piece_closure): Acquire reference to values.
2896 (read_pieced_value): Update for value-based expressions.
2897 (write_pieced_value): Likewise.
2898 (free_pieced_value_closure): Call value_free as needed.
2899 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
2900 Update for value-based expressions.
2901 * dwarf2loc.h (dwarf2_get_die_type): Declare.
2902 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
2903 <get_base_type>: New field.
2904 (struct dwarf_expr_piece) <v.value>: Change type.
2905 <v.regno>: New field.
2906 (struct dwarf_expr_context) <mark>: New field.
2907 (dwarf_expr_piece, dwarf_expr_fetch): Update.
2908 (dwarf_expr_pop, dwarf_expr_push): Remove.
2909 (dwarf_expr_push_address): Declare.
2910 * dwarf2expr.c (dwarf_arch_cookie): New global.
2911 (struct dwarf_gdbarch_types): New.
2912 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
2914 (dwarf_expr_push): Change type of 'value' argument. Update. Now
2916 (dwarf_expr_push_address): New function.
2917 (dwarf_expr_pop): Now static.
2918 (dwarf_expr_fetch): Change return type.
2919 (dwarf_require_integral): New function.
2920 (dwarf_expr_fetch): Simplify.
2921 (add_piece): Update.
2922 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
2924 (execute_stack_op) <sign_ext>: Remove.
2925 Use values for DWARF stack.
2926 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
2927 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2929 (_initialize_dwarf2expr): New function.
2930 (add_piece): Update.
2931 (new_dwarf_expr_context): Set new field.
2932 (free_dwarf_expr_context): Call value_free_to_mark.
2933 * dwarf2-frame.c (no_base_type): New function.
2934 (execute_stack_op): Set get_base_type field. Update.
2936 2011-05-12 Tom Tromey <tromey@redhat.com>
2938 * dwarf2read.c (read_common_block): Fix formatting.
2940 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
2942 * breakpoint.c (disable_breakpoint): Disable all locations
2943 associated with a tracepoint on target if a trace experiment is
2945 (disable_command): Disable a specific tracepoint location on target if
2946 a trace experiment is running.
2947 (do_enable_breakpoint): Enable all locations associated with a
2948 tracepoint on target if a trace experiment is running.
2949 (enable_command) Enable a specific tracepoint location on target if a
2950 trace experiment is running.
2951 * target.c (update_current_target): Add INHERIT and de_fault clauses for
2952 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2953 to_disable_tracepoint.
2954 * target.h: Add declaration of struct bp_location.
2955 (struct target_ops): Add new functions
2956 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2957 to_disable_tracepoint to target operations.
2958 (target_supports_enable_disable_tracepoint): New macro.
2959 (target_enable_tracepoint): New macro.
2960 (target_disable_tracepoint): New macro.
2961 * remote.c (struct remote_state): Add new field.
2962 (remote_enable_disable_tracepoint_feature): New.
2963 (remote_protocol_features): Add new entry.
2964 (remote_supports_enable_disable_tracepoint): New.
2965 (remote_enable_tracepoint): New.
2966 (remote_disable_tracepoint): New.
2967 (init_remote_ops): Add remote_enable_tracepoint,
2968 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
2969 to remote operations.
2970 * tracepoint.c (start_tracing): Allow tracing to start without any
2971 tracepoints enabled with just a warning if they can be re-enabled
2973 * NEWS: Add news item for the new behaviour of the enable and disable
2974 GDB commands when applied to tracepoints.
2975 Add news items for the new remote packets QTEnable and QTDisable.
2977 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2979 * config.in: Regenerate.
2980 * configure: Regenerate.
2981 * configure.ac <--with-system-readline> (for readline_echoing_p):
2983 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
2984 (tui_old_rl_echoing_p): ... here.
2985 (tui_setup_io): Rename extern declaration readline_echoing_p to
2986 _rl_echoing_p. Adjust assignments for the both renames.
2988 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2990 * symtab.c (lookup_symtab): Run cleanup before returning.
2992 2011-05-11 Tom Tromey <tromey@redhat.com>
2994 * dwarf2read.c (handle_data_member_location): New function.
2995 (dwarf2_add_field): Use it.
2996 (read_common_block): Likewise.
2998 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3000 Make addrs->SECTINDEX always defined.
3001 * symfile.c (relative_addr_info_to_section_offsets): Check for
3002 SECTINDEX -1, not for zero ADDR.
3003 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3004 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3005 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3008 2011-05-10 Doug Evans <dje@google.com>
3010 * linux-thread-db.c: Whitespace cleanup.
3011 (try_thread_db_load_1): Fix comment.
3013 * linux-thread-db.c (set_libthread_db_search_path): New function.
3014 (_initialize_thread_db): Add setter for libthread-db-search-path.
3016 2011-05-09 Doug Evans <dje@google.com>
3018 * NEWS: Mention --with-iconv-bin.
3019 * configure.ac: New option --with-iconv-bin.
3020 * configure: Regenerate.
3021 * config.in: Regenerate.
3022 * defs.h (relocate_gdb_directory): Declare.
3023 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3024 removed progname parameter, and exported. All callers updated.
3025 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3027 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3028 adding missing call to restore_child_signals_mask.
3030 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3032 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3034 * infrun.c (proceed, start_remote): Adjust.
3035 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3036 and adjust to not handle it.
3037 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3038 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3039 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3040 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3041 * windows-nat.c (do_initial_windows_stuff): Adjust.
3042 * infcmd.c (attach_command): Adjust.
3043 (notice_new_inferior): Adjust.
3045 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3047 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3048 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3049 * spu-tdep.c (op_selb): Use correct value.
3051 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3053 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3054 "parent" parameter to symbol_file_add_from_bfd call.
3056 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3057 Thiago Jung Bauermann <bauerman@br.ibm.com>
3059 Implement support for PowerPC BookE masked watchpoints.
3060 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3062 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3063 method. Initialize to NULL in all existing breakpoint_ops instances.
3064 (struct breakpoint) <hw_wp_mask>: New field.
3065 * breakpoint.c (is_masked_watchpoint): Add prototype.
3066 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3067 breakpoint's breakpoint_ops.works_in_software_mode if available.
3068 (watchpoints_triggered): Handle the case of a hardware masked
3070 (watchpoint_check): Likewise.
3071 (works_in_software_mode_watchpoint): New function.
3072 (insert_masked_watchpoint, remove_masked_watchpoint)
3073 (resources_needed_masked_watchpoint)
3074 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3075 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3076 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3078 (masked_watchpoint_breakpoint_ops): New structure.
3079 (watch_command_1): Check for the existence of the `mask' parameter.
3080 Set b->ops according to the type of hardware watchpoint being created.
3081 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3082 (ppc_linux_remove_mask_watchpoint)
3083 (ppc_linux_masked_watch_num_registers): New functions.
3084 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3085 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3086 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3087 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3088 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3089 (target_masked_watch_num_registers): New functions.
3090 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3091 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3093 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3094 (target_masked_watch_num_registers): Add prototypes.
3096 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3099 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3100 (producer_is_gcc_ge_4_0): New function.
3101 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3102 symtab->language code.
3103 (var_decode_location): Set cu->has_loclist.
3104 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3105 skip. Intialize force_skip from locations_valid. Move the prologue
3106 skipping code into two passes.
3107 * symtab.h (struct symtab): Make the primary field a bitfield. New
3108 field locations_valid.
3110 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3112 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3113 (classify_inner_name): Call cp_lookup_nested_type with
3115 * cp-namespace.c (cp_lookup_nested_type): New variable
3116 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3117 type_name_no_tag_or_error with saved_parent_type.
3118 * dwarf2read.c (load_partial_dies): Read in any children of
3119 DW_TAG_typedef with complaint in such case.
3120 * gdbtypes.c (type_name_no_tag_or_error): New function.
3121 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3122 * valops.c (destructor_name_p): New comment for parameter type. Remove
3123 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3124 * value.h (destructor_name_p): Remove type const.
3126 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3128 * symtab.c (compare_symbol_name): New function.
3129 (completion_list_add_name, expand_partial_symbol_name): Call it,
3130 remove the variable ncmp.
3131 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3134 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3136 Demote to sw watchpoint only in update_watchpoint.
3137 * breakpoint.c (update_watchpoint): Change between software and
3138 hardware watchpoint for all kinds of watchpoints, not just
3139 read/write ones. Determine b->exact value here instead of
3140 in watch_command_1. Error out if there are not enough resources
3141 for a read or access hardware watchpoint.
3142 (watch_command_1): Remove logic of checking whether there are
3143 enough resources available, since update_watchpoint will do that
3144 work now. Don't set b->exact here. Catch exceptions thrown by
3145 update_watchpoint and delete the watchpoint.
3146 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3147 Use target_exact_watchpoints instead.
3148 (delete_breakpoint): Notify observers only if deleted watchpoint
3149 has a breakpoint number assigned to it.
3151 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3153 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3155 2011-05-05 Jerome Guitton <guitton@adacore.com>
3157 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3159 (i386_stack_tramp_frame_unwind): New static global.
3160 (i386_match_pattern): New function, extracted from i386_match_insn.
3161 (i386_match_insn): Use i386_match_pattern.
3162 (i386_match_insn_block): New function.
3163 (i386_tramp_chain_in_reg_insns)
3164 (i386_tramp_chain_on_stack_insns): New static variables.
3165 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3168 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3170 * configure.host (xscale*): Don't handle target.
3171 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3174 2011-05-04 Yao Qi <yao@codesourcery.com>
3176 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3178 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3181 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3182 | * elfread.c (elf_symtab_read): Stop memory leak.
3184 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3186 * nto-tdep.c (nto_target): Replace deprecated call to
3187 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3189 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3191 Fix false GCC warning.
3192 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3194 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3196 * breakpoint.c (update_watchpoint): Move code to change
3197 the enable state of breakpoint from here ...
3198 (do_enable_breakpoint): ... to here.
3200 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3202 * valprint.c (val_print_array_elements): Fixed poor performance
3203 of printing very large arrays with repeat_count_threshold set
3204 to unlimited. New comment.
3206 2011-04-29 Tom Tromey <tromey@redhat.com>
3208 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3209 (mi_parse): Likewise.
3210 * breakpoint.c (break_range_command): Use sizeof char*, not
3212 (create_breakpoint): Likewise.
3213 (parse_breakpoint_sals): Likewise.
3215 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3217 * linux-nat.c (linux_child_remove_fork_catchpoint)
3218 (linux_child_remove_vfork_catchpoint)
3219 (linux_child_remove_exec_catchpoint): New functions.
3220 (linux_target_install_ops): Install them.
3222 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3226 * varobj.c (install_default_visualizer): Do not install a
3227 visualizer if the varobj is CPLUS_FAKE_CHILD.
3228 (construct_visualizer): Likewise.
3230 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3232 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3233 case insensitive comparison.
3235 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3237 * infrun.c (proceed): Revert previous change.
3238 (resume): Instead, handle the case of signal delivery while stepping
3239 off a breakpoint location here, and only if software single-stepping
3240 is used. Handle nested signals.
3242 2011-04-28 Yao Qi <yao@codesourcery.com>
3244 * arm-tdep.c (copy_unmodified): Rename to ...
3245 (arm_copy_unmodified): .. this. New.
3246 (copy_preload): Move common part to ...
3247 (install_preload): .. this. New.
3248 (arm_copy_preload): New.
3249 (copy_preload_reg): Move common part to ...
3250 (install_preload_reg): ... this. New.
3251 (arm_copy_preload_reg): New.
3252 (copy_b_bl_blx): Move common part to ...
3253 (install_b_bl_blx): .. this. New.
3254 (arm_copy_b_bl_blx): New.
3255 (copy_bx_blx_reg): Move common part to ...
3256 (install_bx_blx_reg): ... this. New.
3257 (arm_copy_bx_blx_reg): New.
3258 (copy_alu_reg): Move common part to ...
3259 (install_alu_reg): ... this. New.
3260 (arm_copy_alu_reg): New.
3261 (copy_alu_shifted_reg): Move common part to ...
3262 (install_alu_shifted_reg): ... this. New.
3263 (copy_ldr_str_ldrb_strb): Move common part to ...
3264 (install_ldr_str_ldrb_strb): ... this. New.
3265 (arm_copy_ldr_str_ldrb_strb): New.
3266 (copy_copro_load_store): Move some common part to ...
3267 (install_copy_copro_load_store): ... this. New.
3268 (arm_copy_copro_load_store): New.
3270 (arm_copy_svc): Renamed from copy_svc.
3271 (copy_undef): Delete.
3272 (arm_copy_undef): Renamed from copy_undef.
3273 (decode_ext_reg_ld_st): Delete.
3274 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3275 (decode_svc_copro): Delete.
3276 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3277 (copy_copro_load_store, copy_alu_imm): update callers.
3278 (copy_extra_ld_st, copy_block_xfer): Likewise.
3279 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3280 (decode_miscellaneous, decode_dp_misc): Likewise.
3281 (decode_ld_st_word_ubyte, decode_media): Likewise.
3282 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3283 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3284 (decode_unconditional, decode_miscellaneous): Likewise.
3285 (decode_media, decode_b_bl_ldmstm): Likewise.
3286 (arm_process_displaced_insn): Likewise..
3287 (decode_misc_memhint_neon): Delete.
3288 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3289 (decode_miscellaneous): Delete.
3290 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3291 (decode_dp_misc): Delete.
3292 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3293 (decode_ld_st_word_ubyte): Delete.
3294 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3295 (decode_media): Delete.
3296 (arm_decode_media): Renamed from decode_media.
3297 (decode_b_bl_ldmstm): Delete.
3298 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3299 (decode_ext_reg_ld_st): Delete.
3300 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3301 (decode_unconditional): Delete.
3302 (arm_decode_unconditional): Renamed from decode_unconditional.
3304 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3306 Case insensitive lookups implementation.
3307 * dwarf2read.c: Include ctype.h.
3308 (struct mapped_index): New field version.
3309 (mapped_index_string_hash): New parameter index_version. New comment
3310 for it. Call tolower appropriately.
3311 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3312 Choose the right index version for mapped_index_string_hash.
3313 (dwarf2_read_index): Support also the index version 5. Initialize the
3314 new struct mapped_index field version.
3315 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3316 (find_slot): Explain the version needs. Pass INT_MAX for the new
3318 (write_psymtabs_to_index): Produce version 5.
3319 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3320 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3321 * psymtab.c (lookup_partial_symbol): Find the
3322 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3324 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3326 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3327 (completion_list_add_name): New variable ncmp, initialize it, use it.
3328 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3329 * utils.c (strcmp_iw): Support case_sensitive_off.
3330 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3331 New function comment part. New variables saved_string1,
3332 saved_string2 and case_pass. Add a proper second pass.
3334 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3336 Replace re_comp/re_exec by regcomp/regexec.
3337 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3338 (search_symbols_name_matches): Use them, use regexec.
3339 (search_symbols): New variable retval_chain, adjust the use of
3340 old_chain against it. Replace re_comp by regcomp. Use the new struct
3341 search_symbols_data fields, use regexec instead of re_exec.
3343 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3345 Format the code for the next patch.
3346 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3347 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3348 New variables c1 and c2.
3350 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3352 * infrun.c (proceed): Do not single-step into signal delivery
3353 when stepping off a breakpoint location.
3354 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3355 (insert_step_resume_breakpoint_at_caller): Likewise.
3356 (insert_step_resume_breakpoint_at_sal): Likewise.
3357 (insert_longjmp_resume_breakpoint): Likewise.
3359 2011-04-27 Yao Qi <yao@codesourcery.com>
3361 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3363 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3365 * procfs.c (procfs_pass_signals): Fix advance declaration.
3367 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3369 * target.h (struct target_ops): Remove to_notice_signals;
3370 add to_pass_signals.
3371 (target_notice_signals): Remove.
3372 (target_pass_signals): Add prototype.
3373 * target.c (update_current_target): Remove to_notice_signals;
3374 mention to_pass_signals.
3375 (target_pass_signals): New function.
3376 (debug_to_notice_signals): Remove.
3377 (setup_target_debug): Do not install debug_to_notice_signals.
3379 * infrun.c (signal_pass): New global.
3380 (resume): Call target_pass_signals.
3381 (handle_inferior_event): Report all signals while stepping over
3382 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3383 are re-inserted when stepping over a signal handler.
3384 (signal_cache_update): New function.
3385 (signal_stop_update): Call it.
3386 (signal_print_update): Likewise.
3387 (signal_pass_update): Likewise.
3388 (handle_command): Call signal_cache_update and target_pass_signals
3389 instead of target_notice_signals.
3390 (_initialize_infrun): Initialize signal_pass.
3392 * linux-nat.c (pass_mask): New global.
3393 (linux_nat_pass_signals): New function.
3394 (linux_nat_create_inferior): Report all signals initially.
3395 (linux_nat_attach): Likewise.
3396 (linux_nat_resume): Use pass_mask to decide whether to directly
3397 handle an inferior signal.
3398 (linux_nat_wait_1): Likewise.
3399 (linux_nat_add_target): Install to_pass_signals callback.
3401 * nto-procfs.c (notice_signals): Remove.
3402 (procfs_resume): Do not call notice_signals.
3403 (procfs_notice_signals): Remove.
3404 (procfs_pass_signals): New function.
3405 (init_procfs_ops): Install to_pass_signals callback instead of
3406 to_notice_signals callback.
3407 (_initialize_procfs): Report all signals initially.
3409 * procfs.c (procfs_notice_signals): Remove.
3410 (procfs_pass_signals): New function.
3411 (procfs_target): Install to_pass_signals callback instead of
3412 to_notice_signals callback.
3413 (register_gdb_signals): Remove.
3414 (procfs_debug_inferior): Report all signals initially.
3415 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3417 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3418 parameters; use them instead of calling signal_..._state routines.
3419 (remote_notice_signals): Remove.
3420 (remote_start_remote): Report all signals initially.
3421 (remote_resume): Do not call remote_pass_signals.
3422 (_initialize_remote): Install to_pass_signals callback instead of
3423 to_notice_signals callback.
3425 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3427 * breakpoint.c (user_settable_breakpoint): Delete.
3428 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3429 (delete_command): Check user_breakpoint_p instead of looking at
3430 the breakpoint's type.
3431 (disable_command): Ditto.
3432 (enable_command): Ditto.
3433 (delete_trace_command): Use user_breakpoint_p instead of looking
3434 at the breakpoint number directly. When checking if there are
3435 user visible tracepoints, in order to know whether to ask the user
3436 for confirmation, check whether the breakpoint is actually a
3439 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3441 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3444 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3446 MI breakpoint notifications.
3448 * annotate.c (breakpoint_changed): Adjust parameter type.
3449 * breakpoint.c (set_breakpoint_condition): Adjust to change
3450 in breakpoint_modified type.
3451 (breakpoint_set_commands): Likewise.
3452 (do_map_commands_command): Likewise.
3453 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3454 changed after bumping hit count.
3455 (bpstat_stop_status): Likewise.
3456 (print_one_breakpoint_location): Don't wrap in tuple here.
3457 (print_one_breakpoint): Always print individual locations.
3458 For locations, use unnamed tuple.
3459 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3461 (create_catchpoint, create_syscall_event_catchpoint): Call
3462 breakpoint_created obsever.
3463 (mention): Don't call breakpoint_created observer.
3464 (create_breakpoint_sal): Call breakpoint_created observer.
3465 (create_breakpoint, watch_command_1): Likewise.
3466 (create_ada_exception_breakpoint): Likewise.
3467 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3468 (locations_are_equal): New.
3469 (update_breakpoint_locations): If locations were changed, notify.
3470 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3471 Call breakpoint_modified observer.
3473 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3474 (mi_cmd_break_insert): Don't set observers for modify and delete.
3475 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3476 (mi_breakpoint_created, mi_breakpoint_deleted)
3477 (mi_breakpoint_modified): New.
3478 (mi_interpreter_init): Hook the above.
3479 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3480 while -break-* commands are executing.
3481 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3482 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3484 (mi_ui_out_impl): Hook in mi_redirect.
3485 (mi_field_skip): True to the name, skip the field, don't output
3486 a field with an empty value.
3488 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3489 (gdbpy_breakpoint_deleted): Adjust.
3490 * tui/tui-hooks.c (tui_event_create_breakpoint)
3491 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3493 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3495 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3496 (procfs_remove_hw_watchpoint): Likewise.
3498 2011-04-26 Michael Walle <michael@walle.cc>
3500 * remote.c (remote_start_remote): Ack packet after sending the
3503 2011-04-26 Yao Qi <yao@codesourcery.com>
3505 * linux-nat.c: Move common macros to ...
3506 Include linux-ptrace.h.
3507 * common/linux-ptrace.h: ... here. New.
3509 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3511 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3512 !objfile_has_partial_symbols. New comment.
3513 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3514 SYM_READ_PSYMBOLS is not present. Extend the comment.
3515 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3517 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3519 * defs.h (ENUM_BITFIELD): Remove.
3521 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3522 Eli Zaretskii <eliz@gnu.org>
3524 * NEWS: Document the new gdbserver --once option.
3526 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3528 * MAINTAINERS: Update my email address.
3530 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3532 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3533 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3534 function call if __STDC_ISO_10646__ macro is defined.
3535 (intermediate_encoding): New prototype.
3536 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3537 to generate compile time error for unsupported gdb_wchar_t size.
3538 (ENDIAN_SUFFIX): New macro.
3539 (intermediate_encoding): New function.
3541 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3543 * ada-lang.c (struct add_partial_datum): Update the comment for
3544 expand_partial_symbol_name.
3545 (ada_add_partial_symbol_completions): Rename to ...
3546 (ada_expand_partial_symbol_name): ... here, change return type, update
3547 function comment, call symbol_completion_match instead of
3548 symbol_completion_add.
3549 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3550 and ada_expand_partial_symbol_name.
3551 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3553 (dw2_map_symbol_names): Remove.
3554 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3555 * psymtab.c (map_symbol_names_psymtab): Remove.
3556 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3557 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3559 (psym_functions): Unlist map_symbol_names_psymtab.
3560 (map_partial_symbol_names): Rename to ...
3561 (expand_partial_symbol_names): ... here, change the FUN type, call
3562 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3563 * psymtab.h (map_partial_symbol_names): Rename to ...
3564 (expand_partial_symbol_names): ... here, change the FUN type.
3565 * symfile.h (struct quick_symbol_functions): Update the description of
3566 expand_symtabs_matching. Remove map_symbol_names.
3567 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3568 (struct add_name_data): Update the comment for
3569 expand_partial_symbol_name.
3570 (add_partial_symbol_name): Rename to ...
3571 (expand_partial_symbol_name): ... here. Replace
3572 completion_list_add_name call by strncmp.
3573 (default_make_symbol_completion_list_break_on): Use now
3574 expand_partial_symbol_names and expand_partial_symbol_name.
3575 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3577 2011-04-20 Tom Tromey <tromey@redhat.com>
3579 * dwarf2read.c (save_gdb_index_command): Replace format
3580 documentation with a pointer to the manual.
3582 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3584 * regcache.c: Include remote.h.
3585 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3586 (regcache_dump): Handle regcache_dump_remote.
3587 (maintenance_print_remote_registers): New function.
3588 (_initialize_regcache): Install "maint print remote-registers"
3590 * remote.c (map_regcache_remote_table): New function, factored out
3592 (init_remote_state): ... here.
3593 (remote_register_number_and_offset): New.
3594 * remote.h (remote_register_number_and_offset): Declare.
3596 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3598 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3599 null_ptid, assume and allow a NULL address space, instead of
3600 asking the target for the ptid's address space.
3601 * infrun.c (ptid_is_pid): Remove assertion.
3603 2011-04-19 Tom Tromey <tromey@redhat.com>
3605 * windows-tdep.c (windows_xfer_shared_library):
3606 * windows-nat.c (get_module_name, windows_make_so):
3607 * v850-tdep.c (v850_handle_pushm):
3608 * utils.c (null_cleanup, gdb_realpath):
3609 * ui-out.c (get_next_header):
3610 * tracepoint.c (clear_traceframe_info):
3611 * symtab.c (lookup_symtab):
3612 * serial.h (struct serial_ops):
3613 * mipsread.c (read_alphacoff_dynamic_symtab):
3614 * infcmd.c (print_return_value):
3615 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3616 * f-exp.y (parse_number):
3617 * exceptions.c (catch_exceptions):
3618 * dummy-frame.c (dummy_frame_this_id):
3619 * defs.h (struct cleanup):
3620 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3621 * arm-tdep.c (arm_push_dummy_call):
3622 * amd64-tdep.h (amd64_collect_xsave):
3623 * amd64-tdep.c (amd64_collect_xsave):
3624 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3625 * README (typing): Remove duplicate words.
3626 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3627 * infrun.c (siginfo_value_read): Fix typo.
3628 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3629 * top.c (source_line_number): Add comma.
3631 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3633 * thread.c (any_live_thread_of_process): Prioritize threads
3634 that are not executing.
3635 * gdbthread.h (any_live_thread_of_process): Update comment
3636 as per above change.
3638 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3640 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3641 (scan_xcoff_symtab): Likewise.
3643 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3645 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3648 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3649 Pedro Alves <pedro@codesourcery.com>
3651 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3652 variables to simplify code and avoid == operator at end of
3653 line as this is against GNU coding standards.
3655 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3657 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3658 lm_name to name_lm to avoid conflict with lm_name function.
3660 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3662 ARI fixes: Use only lowercase function name for static functions.
3663 * nto-tdep.c (LM_ADDR): Rename to...
3664 (lm_addr): New function name.
3665 (nto_relocate_section_addresses): Adapt to change above.
3666 * solib-sunos.c (LM_ADDR): Rename to...
3667 (lm_addr): New function name.
3668 (LM_NEXT): Rename to...
3669 (lm_next): New function name.
3670 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3671 function name changes above.
3672 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3673 (lm_addr_from_link_map): New function name.
3674 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3675 (has_lm_dynamic_from_link_map): New function name.
3676 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3677 (lm_dynamic_from_link_map): New function name.
3678 (LM_ADDR_CHECK): Rename to...
3679 (lm_addr_check): New function name.
3680 (LM_NEXT): Rename to...
3681 (lm_next): New function name.
3682 (LM_PREV): Rename to...
3683 (lm_prev): New function name.
3684 (LM_NAME): Rename to...
3685 (lm_name): New function name.
3686 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3687 (ignore_first_link_map_entry): New function name.
3688 (svr4_keep_data_in_core): Adapt to function name changes above.
3689 (svr4_current_sos): Likewise.
3690 (enable_break): Likewise.
3691 (svr4_relocate_section_addresses): Likewise.
3693 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3696 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3697 sprintf. Simplify code and avoid loosing memory.
3698 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3699 (call0_frame_cache): Remove && operator from end of line.
3701 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3703 Fix libraries displacement if they change whether they were prelinked.
3704 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3705 does not match. Comment why.
3707 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3709 * corelow.c: Include wrapper.h.
3710 (core_open): Call now gdb_target_find_new_threads.
3711 * wrapper.c: Include target.h.
3712 (gdb_target_find_new_threads): New.
3713 * wrapper.h (gdb_target_find_new_threads): New declaration.
3715 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3717 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3718 even if !TARGET_HAS_EXECUTION.
3720 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3722 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3723 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3724 bfd_get_synthetic_symtab.
3725 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3726 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3727 parameter parent, remove the call to add_separate_debug_objfile.
3728 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3729 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3730 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3731 parent, new comment for it, call add_separate_debug_objfile for it.
3732 (symbol_file_add_separate): Pass objfile as the parameter parent,
3733 remove the call to add_separate_debug_objfile.
3734 (symbol_file_add_from_bfd): New parameter parent, pass it.
3735 (symbol_file_add): Pass NULL to the new parameter parent.
3736 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
3738 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3740 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
3743 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3745 Fix Python access to inlined frames.
3746 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
3747 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3749 2011-04-15 Tom Tromey <tromey@redhat.com>
3751 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
3753 2011-04-15 Gary Benson <gbenson@redhat.com>
3755 * MAINTAINERS: Add myself to write-after-approval section.
3757 2011-04-14 Mike Frysinger <vapier@gentoo.org>
3759 * remote-sim.c (sim_command_completer): New function.
3760 (_initialize_remote_sim): Set completer to sim_command_completer.
3762 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3764 * breakpoint.c (print_exception_catchpoint): Rename to ...
3765 (print_it_exception_catchpoint): ... this.
3766 (gnu_v3_exception_catchpoint_ops): Update with new name
3767 for print_it_exception_catchpoint.
3769 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
3771 * MAINTAINERS: Add myself for write after approval privileges.
3773 2011-04-13 Marek Polacek <mpolacek@redhat.com>
3775 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3777 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3779 * breakpoint.c (watch_command_1): Remove colon from exp_string.
3781 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3783 * breakpoint.c (save_breakpoints): Verify whether
3784 breakpoint_ops.print_recreate is defined before calling it.
3786 2011-04-11 Gary Benson <gbenson@redhat.com>
3788 Fix failure with --enable-maintainer-mode.
3789 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
3791 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3794 * symtab.c (search_symbols): Reorder the KIND description in the
3795 function comment. Remove the unused 4th element of types, types2,
3796 types3 and types4. New gdb_assert on KIND.
3797 (symtab_symbol_info): Remove the unused 4th element of classnames.
3798 New gdb_assert on KIND.
3799 * symtab.h (enum search_domain): New warning in the enum comment.
3800 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
3803 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3805 Fix crash of gdb save-index on a STABS file.
3806 * dwarf2read.c (write_psymtabs_to_index): Return also on no
3809 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3811 Fix DW_AT_accessibility compatibility with gcc-4.6+.
3812 * dwarf2read.c: Include ctype.h.
3813 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
3815 (dwarf2_add_field): Fix new_field->accessibility by calling
3816 dwarf2_default_access_attribute. Restructure setting accessibility
3818 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
3819 is_private and is_protected by calling
3820 dwarf2_default_access_attribute.
3822 2011-04-08 Kevin Buettner <kevinb@redhat.com>
3824 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
3825 to the initialization.
3827 2011-04-08 Steve Ellcey <sje@cup.hp.com>
3829 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
3832 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
3834 Remove support for old Cygwin 1.5 versions.
3835 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
3836 function on old Cygwin version.
3837 * windows-nat.c: Remove cygwin version check and always define
3838 __USEWIDE for Cygwin compilation.
3840 2011-04-07 Yao Qi <yao@codesourcery.com>
3842 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
3844 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
3845 (arm_copy_svc): Remove parameters INSN and TO.
3846 (decode_svc_copro): Update caller.
3847 * arm-tdep.h (struct displaced_step_closure): Remove parameters
3848 from function pointer `copy_svc_os'.
3850 2011-04-07 Yao Qi <yao@codesourcery.com>
3852 * arm-tdep.c (cleanup_branch): Set a correct return address in
3853 LR for ARM and Thumb.
3855 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3858 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
3859 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
3860 in the function comment, a new note on values compatibility.
3861 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
3862 * symtab.h (SYMBOL_HASH_NEXT): New.
3864 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
3866 * ppc-linux-nat.c (check_condition): Add len output parameter.
3867 Set it based on the memory region referenced in the condition
3868 expression. Update all callers.
3870 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3872 Fix crash regression on systems featuring .gdb_index.
3873 * objfiles.c (free_objfile): Move the
3874 forget_cached_source_info_for_objfile call earlier. Comment it.
3875 Extend the comment for objfile_free_data.
3877 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3879 Fix regression of displaying the debug format.
3880 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
3883 2011-04-04 Tom Tromey <tromey@redhat.com>
3885 * cli/cli-interp.c (struct captured_execute_command_args):
3887 (do_captured_execute_command): Remove.
3888 (safe_execute_command): Use TRY_CATCH.
3889 * cli/cli-script.c (struct wrapped_read_command_file_args):
3891 (wrapped_read_command_file): Remove.
3892 (script_from_file): Use TRY_CATCH.
3893 * exceptions.c (catch_exception): Remove.
3894 * exceptions.h (catch_exception): Remove.
3895 (deprecated_throw_reason): Update comment.
3896 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
3897 argument to 'context'.
3898 (mi_execute_command): Use TRY_CATCH.
3899 * remote.c (struct start_remote_args): Remove.
3900 (remote_start_remote): Update; change arguments.
3901 (remote_open_1): Use TRY_CATCH.
3903 2011-04-04 Tom Tromey <tromey@redhat.com>
3905 * tracepoint.c (scope_info): Update.
3906 * symtab.c (decode_line_spec): Update.
3907 * python/python.c (gdbpy_decode_line): Update.
3908 * linespec.h (decode_line_1): Update.
3909 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
3910 (decode_compound, find_method, symtab_from_filename)
3911 (decode_variable): Likewise.
3912 * cli/cli-cmds.c (edit_command): Update.
3913 (list_command): Update.
3914 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
3916 (create_breakpoint): Update.
3917 (until_break_command): Update.
3918 (addr_string_to_sals): Update.
3919 (decode_line_spec_1): Update.
3921 2011-04-04 Tom Tromey <tromey@redhat.com>
3923 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
3924 (do_captured_parse_breakpoint): Remove.
3925 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
3926 Use TRY_CATCH directly.
3928 2011-04-04 Tom Tromey <tromey@redhat.com>
3930 * symtab.h (free_symtab): Remove.
3931 (forget_cached_source_info_for_objfile): Declare.
3932 * symmisc.c (free_symtab): Remove.
3933 * source.c (forget_cached_source_info_for_objfile): New function.
3934 (forget_cached_source_info): Use it.
3935 * objfiles.c (free_objfile): Simplify check before calling
3936 clear_current_source_symtab_and_line. Call
3937 forget_cached_source_info_for_objfile.
3939 2011-04-04 Tom Tromey <tromey@redhat.com>
3941 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
3942 (new_symtab): Don't set `free_code' on symtab.
3943 (new_linetable): Properly handle size==0.
3944 * symtab.h (struct symtab) <free_code, free_func>: Remove.
3945 * symmisc.c (free_symtab): Don't free the linetable. Don't call
3947 * jv-lang.c (struct jv_per_objfile_data): New.
3948 (jv_per_objfile_free): Free the data.
3949 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
3950 (get_java_class_symtab): Set the `dict' field on the
3951 jv_per_objfile_data.
3952 (free_class_block): Remove.
3953 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
3956 2011-04-04 Tom Tromey <tromey@redhat.com>
3958 * symfile.c (reread_symbols): Update.
3959 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
3961 * objfiles.c (allocate_objfile): Update.
3962 * cp-support.h (cp_check_possible_namespace_symbols): Don't
3964 * cp-namespace.c (lookup_symbol_file): Don't call
3965 lookup_possible_namespace_symbol.
3966 (initialize_namespace_symtab, get_possible_namespace_block)
3967 (free_namespace_block, cp_check_possible_namespace_symbols)
3968 (check_possible_namespace_symbols_loop)
3969 (check_one_possible_namespace_symbol)
3970 (lookup_possible_namespace_symbol): Remove.
3971 (maintenance_cplus_namespace): Replace with notice.
3972 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
3974 2011-04-04 Tom Tromey <tromey@redhat.com>
3976 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
3977 * symtab.h (struct symtab) <producer, debugformat>: Now const.
3978 * symmisc.c (free_symtab): Don't free debugformat.
3979 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
3980 (record_debugformat, record_producer): Document.
3981 * buildsym.c (end_symtab): Don't save debugformat and producer
3983 (end_symtab): Don't free debugformat and producer fields.
3984 (record_debugformat): Don't call xstrdup.
3985 (record_producer): Likewise.
3987 2011-04-04 Tom Tromey <tromey@redhat.com>
3989 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
3990 (source_line_charpos, source_charpos_line): Remove.
3992 2011-04-04 Tom Tromey <tromey@redhat.com>
3994 * symtab.h (domain_enum): Split in two...
3995 (enum search_domain): New.
3996 (search_symbols): Update.
3997 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
3998 redundant declarations.
3999 (search_symbols): Change 'kind' argument to search_domain.
4001 (print_symbol_info): Likewise.
4002 (symtab_symbol_info): Likewise.
4003 * symfile.h (struct quick_symbol_functions)
4004 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4005 <expand_symtabs_matching>: Likewise.
4006 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4007 (expand_symtabs_matching_via_partial): Update.
4008 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4009 (dw2_expand_symtabs_for_function): Update.
4010 * block.h: Moved anonymous enum...
4011 * defs.h (enum block_enum): ... here. Now named.
4013 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4015 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4016 * version.in: Bump version to 7.3.50.20110403-cvs.
4018 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4020 * NEWS: Create a new section for the next release branch.
4021 Rename the section of the current branch, now that it has
4024 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4026 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4027 for "fpscr" in target description.
4029 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4031 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4032 initialize it. Delay HASH initialization. Strip the part after open
4033 parenthesis for languages with qualifiers. Call do_cleanups.
4035 2011-04-01 Tom Tromey <tromey@redhat.com>
4037 * utils.c (report_command_stats): Don't print `-' for negative
4040 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4042 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4043 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4046 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4048 * breakpoint.h (bpdisp_text): Add declaration.
4049 * breakpoint.c (bpdisp_text): Make non-static.
4050 * ada-lang.c: #include "mi/mi-common.h".
4051 (print_it_exception): Rewrite to improve GDB/MI output.
4053 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4055 * arm-tdep.h (struct address_space): Add forward declaration.
4057 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4059 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4060 * arm-tdep.c (arm_override_mode): New global.
4061 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4062 execution mode heuristics.
4063 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4064 second single-step breakpoint if needed, using
4065 arm_insert_single_step_breakpoint.
4066 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4067 ARM execution mode, do not call thumb_get_next_pc_raw.
4068 (arm_get_next_pc): Encode execution mode in return value. Call
4069 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4070 (arm_insert_single_step_breakpoint): New function.
4071 (arm_software_single_step): Call it.
4072 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4073 argument to return execution mode of sigreturn target.
4074 (arm_linux_syscall_next_pc): Use it.
4075 (arm_linux_copy_svc): Update call.
4076 (arm_linux_software_single_step): Call
4077 arm_insert_single_step_breakpoint.
4079 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4081 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4084 2011-03-31 Tom Tromey <tromey@redhat.com>
4086 * varobj.c (update_dynamic_varobj_children): Properly handle
4087 errors from iterator.
4089 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4091 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4092 struct linkage name twice.
4094 2011-03-31 Tom Tromey <tromey@redhat.com>
4096 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4097 missing ">" to message.
4099 2011-03-31 Tom Tromey <tromey@redhat.com>
4101 * varobj.c (instantiate_pretty_printer): Remove duplicate
4104 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4106 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4107 if neither saved value nor register available (e.g. signal frame).
4109 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4111 * macroexp.c (expand): Avoid uninitialized variable
4114 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4116 * breakpoint.c (break_range_command): Fix typo in comment.
4118 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4119 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4121 Implement support for PowerPC BookE ranged breakpoints.
4122 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4123 * breakpoint.h (struct bp_target_info) <length>: New member
4125 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4126 instead of struct breakpoint as argument, and also add ASPACE
4127 and BP_ADDR arguments. Update all callers.
4128 (struct breakpoint_ops) <print_one_detail>: New method.
4129 (struct breakpoint) <addr_string_range_end>: New member variable.
4130 * breakpoint.c (breakpoint_location_address_match): Add function
4132 (insert_bp_location): Set bl->target_info.length.
4133 (breakpoint_here_p): Call breakpoint_location_address_match.
4134 (moribund_breakpoint_here_p): Likewise.
4135 (regular_breakpoint_inserted_here_p): Likewise.
4136 (breakpoint_thread_match): Likewise.
4137 (bpstat_stop_status): Likewise.
4138 (bpstat_check_location): Move call to
4139 breakpoint_ops.breakpoint_hit to the top.
4140 (print_one_breakpoint_location): Call
4141 breakpoint_ops.print_one_detail if available.
4142 (breakpoint_address_match_range): New function.
4143 (breakpoint_location_address_match): Likewise.
4144 (breakpoint_locations_match): Compare the length field of the
4146 (hw_breakpoint_used_count): Count resources used by all locations
4147 in a breakpoint, and use breakpoint_ops.resources_needed if
4149 (breakpoint_hit_ranged_breakpoint): New function.
4150 (resources_needed_ranged_breakpoint): Likewise.
4151 (print_it_ranged_breakpoint): Likewise.
4152 (print_one_ranged_breakpoint): Likewise.
4153 (print_one_detail_ranged_breakpoint): Likewise.
4154 (print_mention_ranged_breakpoint): Likewise.
4155 (print_recreate_ranged_breakpoint): Likewise.
4156 (ranged_breakpoint_ops): New structure.
4157 (find_breakpoint_range_end): New function.
4158 (break_range_command): Likewise.
4159 (delete_breakpoint): Free addr_string_range_end.
4160 (update_breakpoint_locations): Add SALS_END argument. Update
4161 all callers. Calculate breakpoint length if a non-zero SALS_END
4162 is given. Call breakpoint_locations_match instead of
4163 breakpoint_address_match.
4164 (reset_breakpoint): Find SaL of the end of the range if B is a
4166 (_initialize_breakpoint): Register break-range command.
4167 * defs.h (print_core_address): Add function prototype.
4168 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4170 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4171 (ppc_linux_remove_hw_breakpoint): Likewise.
4172 (_initialize_ppc_linux_nat): Initialize
4173 to_ranged_break_num_registers.
4174 * target.c (update_current_target): Add comment about
4175 to_ranged_break_num_registers.
4176 (target_ranged_break_num_registers): New function.
4177 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4179 (target_ranged_break_num_registers): Add function prototype.
4180 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4181 * utils.c (print_core_address): ... here.
4183 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4185 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4186 variable compiler warning.
4188 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4190 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4192 (re_set_breakpoint): ... to here ...
4193 (addr_string_to_sals): ... and here.
4195 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4197 * Makefile.in (SFILES): Add missing C sources.
4198 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4199 Add missing headers.
4201 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4203 * .gitignore: New file.
4205 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4207 * NEWS: Mention new cfi device simulation.
4209 2011-03-29 Tom Tromey <tromey@redhat.com>
4211 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4212 otherwise anonymous types.
4213 (dwarf2_name): Likewise.
4214 * valops.c (value_struct_elt_for_reference): Refine artificial
4215 type logic. Call error if j==-1.
4217 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4219 Fix false GCC warning.
4220 * infcall.c (find_function_addr): Initialize funaddr.
4222 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4224 Fix mingw compilation with --enable-targets=all.
4225 * remote-mips.c (gdb_usleep.h): Include header.
4226 (mips_enter_debug): Use gdb_usleep instead of sleep.
4228 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4230 Support resolution of STT_GNU_IFUNC via breakpoints.
4231 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4232 bp_gnu_ifunc_resolver_return.
4233 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4234 the loop. Support bp_gnu_ifunc_resolver and
4235 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4236 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4238 (bptype_string, print_one_breakpoint_location): Support
4239 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4240 (user_settable_breakpoint): Return true also for
4241 bp_gnu_ifunc_resolver.
4242 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4243 bp_gnu_ifunc_resolver_return.
4244 (set_breakpoint_location_function): New parameter explicit_loc,
4245 describe it. Call find_pc_partial_function_gnu_ifunc with new
4246 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4247 EXPLICIT_LOC is not set.
4248 (set_raw_breakpoint): Set EXPLICIT_LOC for
4249 set_breakpoint_location_function.
4250 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4251 set_breakpoint_location_function.
4252 (mention): Support bp_gnu_ifunc_resolver and
4253 bp_gnu_ifunc_resolver_return.
4254 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4255 set_breakpoint_location_function.
4256 (update_breakpoint_locations): Remove static.
4257 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4258 bp_gnu_ifunc_resolver_return.
4259 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4260 bp_gnu_ifunc_resolver_return.
4261 (update_breakpoint_locations): New declaration.
4262 * elfread.c: Include gdbthread.h and regcache.h.
4263 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4265 (elf_gnu_ifunc_fns): Install them.
4266 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4267 (stub_gnu_ifunc_resolver_return_stop): New functions.
4268 (stub_gnu_ifunc_fns): Install them.
4269 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4270 and gnu_ifunc_resolver_return_stop.
4271 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4273 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4275 STT_GNU_IFUNC reader implementation.
4276 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4277 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4278 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4279 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4280 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4281 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4282 (elf_gnu_ifunc_resolve_addr): New.
4283 (elf_symfile_read): Call elf_rel_plt_read.
4284 (elf_gnu_ifunc_fns): New.
4285 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4286 Install elf_gnu_ifunc_fns.
4287 * infcall.c (find_function_return_type): New function.
4288 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4289 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4290 (stub_gnu_ifunc_resolve_name): New functions.
4291 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4292 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4293 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4295 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4297 Code cleanup for later STT_GNU_IFUNC support.
4298 * infcall.c (find_function_addr): Remove variable code, use explicit
4299 dereferences for it. Move VALUE_TYPE initialization later.
4301 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4303 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4304 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4305 (clear_pc_function_cache): Clear it.
4306 (find_pc_partial_function): Rename to ...
4307 (find_pc_partial_function_gnu_ifunc): ... this function. New
4308 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4309 (find_pc_partial_function): New wrapper for this function.
4310 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4312 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4314 GDB internal type support for STT_GNU_IFUNC.
4315 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4316 (elf_symtab_read): Set mst_text_gnu_ifunc for
4317 BSF_GNU_INDIRECT_FUNCTION.
4318 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4319 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4320 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4321 nodebug_got_plt_symbol.
4322 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4323 (TYPE_GNU_IFUNC): New.
4324 (struct main_type): New field flag_gnu_ifunc.
4325 (struct builtin_type): New field builtin_func_func.
4326 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4327 nodebug_got_plt_symbol.
4328 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4329 (in_gnu_ifunc_stub): New.
4330 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4332 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4333 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4334 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4336 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4337 * symtab.c (search_symbols): Likewise.
4338 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4339 and mst_slot_got_plt.
4340 (in_gnu_ifunc_stub): New declaration.
4342 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4344 Support a ring of related breakpoints.
4345 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4346 other functions, add gdb_assert.
4347 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4348 watchpoint_del_at_next_stop.
4349 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4350 (bpstat_stop_status): Handle ring in related_breakpoint.
4351 (set_raw_breakpoint_without_location): Initialize ring in
4353 (delete_breakpoint): Handle ring in related_breakpoint, use
4354 watchpoint_del_at_next_stop.
4355 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4357 2011-03-28 Tom Tromey <tromey@redhat.com>
4360 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4361 with `language_minimal'.
4363 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4365 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4366 instead of checking for STT_ARM_TFUNC symbol type.
4368 2011-03-25 Tom Tromey <tromey@redhat.com>
4370 * linespec.c (symbol_found): Restore line-based result for
4371 non-LOC_LABEL symbols.
4373 2011-03-25 Kai Tietz <ktietz@redhat.com>
4375 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4376 instead of strcmp for comparison.
4377 (tui_source_is_displayed): Likewise.
4378 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4380 2011-03-24 Mark Wielaard <mjw@redhat.com>
4382 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4384 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4385 (find_partial_die_in_comp_unit): Likewise in comment.
4386 (read_attribute_value): Likewise.
4387 (lookup_die_type): Likewise.
4388 (dwarf_form_name): Likewise.
4389 (dump_die_shallow): Likewise.
4390 (follow_die_ref_or_sig): Likewise.
4392 2011-03-24 Tom Tromey <tromey@redhat.com>
4394 PR breakpoints/11816:
4395 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4396 (decode_compound): Update.
4397 (find_function_symbol): New function.
4398 (decode_dollar): Update.
4399 (decode_label): Add 'function_symbol' parameter. Handle
4400 function-relative labels.
4401 (decode_variable): Update.
4402 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4403 not its line. Set `special_display' and canonical name for
4406 2011-03-24 Tom Tromey <tromey@redhat.com>
4408 * linespec.h (struct linespec_result) <special_display>: New
4410 * breakpoint.h (struct breakpoint) <display_canonical>: New
4412 * breakpoint.c (print_breakpoint_location): Respect
4414 (create_breakpoint_sal): Add 'display_canonical' parameter.
4415 (create_breakpoints_sal): Update.
4416 (create_breakpoint): Update.
4418 2011-03-24 Tom Tromey <tromey@redhat.com>
4420 * symtab.c (decode_line_spec): Update.
4421 * linespec.c (build_canonical_line_spec): Change type of
4423 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4424 (find_method, decode_all_digits, decode_dollar, decode_label)
4425 (symbol_found): Likewise.
4426 (init_linespec_result): New function.
4427 * breakpoint.c (struct captured_parse_breakpoint_args)
4428 <canonical_p>: New field, replaces addr_string_p.
4429 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4431 (parse_breakpoint_sals): Likewise.
4432 (do_captured_parse_breakpoint): Update.
4433 (create_breakpoint): Use struct linespec_result.
4434 (until_break_command): Update.
4435 (breakpoint_re_set_one): Update.
4436 (decode_line_spec_1): Update.
4437 * linespec.h (struct linespec_result): New.
4438 (init_linespec_result): Declare.
4440 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4442 * regcache.c (regcache_raw_read): If the target didn't supply a
4443 given raw register, mark it as unavailable.
4445 2011-03-23 Kai Tietz <ktietz@redhat.com>
4447 * breakpoint.c (clear_command): Use filename_cmp
4448 instead of strcmp for comparison.
4449 * buildsym.c (watch_main_source_file_lossage): Likewise.
4450 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4451 checking just for slash.
4452 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4453 strrchr and filename_cmp instead of strcmp for filenames.
4454 (add_old_header_file): Use filename_cmp
4455 instead of strcmp for comparison.
4456 * exec.c (exec_set_section_address): Likewise.
4457 * macrotab.c (macro_lookup_inclusion): Likewise.
4458 (macro_lookup_inclusion): Likewise.
4459 * elfread.c (_initialize_elfread): Likewise.
4460 (elfstab_offset_sections): Likewise.
4461 (elfstab_offset_sections): Use lbasename instead of
4463 * mdebugread.c (parse_partial_symbols): Likewise.
4464 (arse_partial_symbols): Use filename_(n)cmp instead of
4465 str(n)cmp for comparison.
4466 * minsyms.c (lookup_minimal_symbol): Likewise.
4467 * psymtab.c (read_psymtabs_with_filename): Likewise.
4468 * solib.c (solib_read_symbols): Likewise.
4469 (reload_shared_libraries_1): Likewise.
4470 * symmisc.c (maintenance_print_symbols): Likewise.
4471 * symfile.c (separate_debug_file_exists): Likewise.
4472 (reread_symbols): Likewise.
4473 (find_separate_debug_file_by_debuglink): Likewise.
4474 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4475 * source.c (add_path): Likewise.
4476 * symtab.c (filename_seen): Likewise.
4477 (file_matches): Likewise.
4478 (print_symbol_info): Likewise.
4479 (maybe_add_partial_symtab_filename): Likewise.
4480 (make_source_files_completion_list): Likewise.
4481 * xml-syscall.c (init_sysinfo): Likewise.
4482 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4483 IS_DIR_SEPARATOR for checking for trailing path separator.
4485 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4487 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4488 label abort_expression.
4489 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4490 DWARF_VALUE_OPTIMIZED_OUT.
4492 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4495 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4496 to linkage_name. Invert its value. Update the function comment.
4497 (c_type_print_varspec_suffix): Invert it at the caller.
4498 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4500 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4502 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4503 errors when reading the `stop_pc'.
4504 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4507 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4509 * NEWS: Document gdb.Write stream keyword.
4511 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4514 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4515 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4516 (dwarf2_add_field): Fix new_field->accessibility for
4517 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4519 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4523 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4524 other error classes. Do not print stack trace.
4526 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4528 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4529 (dwarf2_add_field): Fix new_field->accessibility for
4530 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4532 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4534 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4535 encountering a load via a non-SP register.
4537 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4539 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4540 field in returned unwinder.
4542 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4544 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4546 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4548 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4551 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4553 * frame.c (frame_unwind_register): Throw an error if unwinding the
4555 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4556 an unwind stop reason.
4557 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4558 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4559 UNWIND_UNAVAILABLE>: New.
4560 * inline-frame.c (inline_frame_unwind): Install
4561 default_frame_unwind_stop_reason.
4562 * frame-unwind.c: Include "exceptions.h".
4563 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4564 (default_frame_unwind_stop_reason): New.
4565 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4566 (default_frame_unwind_stop_reason): Declare.
4567 (struct frame_unwind) <stop_reason>: New function pointer.
4569 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4570 * dwarf2-frame.c: Include exceptions.h.
4571 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4572 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4573 computing the CFA. If such an error was thrown, set
4574 unavailable_retaddr.
4575 (dwarf2_frame_unwind_stop_reason): New.
4576 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4578 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4579 (dwarf2_signal_frame_unwind): Ditto.
4581 * amd64-tdep.c: Include "exceptions.h".
4582 (struct amd64_frame_cache): New field "base_p".
4583 (amd64_init_frame_cache): Clear it.
4584 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4585 Avoid reading registers with functions that throw if the register
4586 is not necessary to compute the frame base.
4587 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4588 swallowing NOT_AVAILABLE_ERROR.
4589 (amd64_frame_unwind_stop_reason): New.
4590 (amd64_frame_this_id): Don't build a frame id if the frame base
4592 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4593 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4594 base_p if the frame base was computable.
4595 (amd64_sigtramp_frame_unwind_stop_reason): New.
4596 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4597 frame base was unavailable.
4598 (amd64_sigtramp_frame_unwind): Install
4599 amd64_sigtramp_frame_unwind_stop_reason.
4600 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4601 base_p if the frame base was computable.
4602 (amd64_epilogue_frame_unwind_stop_reason): New.
4603 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4604 frame base was unavailable.
4605 (amd64_epilogue_frame_unwind): Install
4606 amd64_epilogue_frame_unwind_stop_reason.
4607 * i386-tdep.c: Include "exceptions.h".
4608 (struct i386_frame_cache): New field "base_p".
4609 (i386_init_frame_cache): Clear it.
4610 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4611 Avoid reading registers with functions that throw if the register
4612 is not necessary to compute the frame base.
4613 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4614 swallowing NOT_AVAILABLE_ERROR.
4615 (i386_frame_unwind_stop_reason): New.
4616 (i386_frame_this_id): Don't build a frame id if the frame base was
4618 (i386_frame_prev_register): Handle unavailable SP.
4619 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4620 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4621 base_p if the frame base was computable.
4622 (i386_epilogue_frame_unwind_stop_reason): New.
4623 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4624 base was unavailable.
4625 (i386_epilogue_frame_unwind): Install
4626 i386_epilogue_frame_unwind_stop_reason.
4627 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4628 base_p if the frame base was computable.
4629 (i386_sigtramp_frame_unwind_stop_reason): New.
4630 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4631 base was unavailable.
4632 (i386_sigtramp_frame_unwind): Install
4633 i386_sigtramp_frame_unwind_stop_reason.
4634 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4635 type's size, not the register's.
4636 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4638 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4639 default_frame_unwind_stop_reason.
4640 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4641 (alpha_heuristic_frame_unwind): Ditto.
4642 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4643 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4644 * avr-tdep.c (avr_frame_unwind): Ditto.
4645 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4647 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4648 * frv-tdep.c (frv_frame_unwind): Ditto.
4649 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4650 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4651 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4652 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4653 (hppa_stub_frame_unwind): Ditto.
4654 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4655 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4656 (ia64_libunwind_frame_unwind)
4657 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4658 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4659 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4660 * m32c-tdep.c (m32c_unwind): Ditto.
4661 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4662 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4663 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4664 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4665 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4666 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4667 * mep-tdep.c (mep_frame_unwind): Ditto.
4668 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4669 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4670 (mips_stub_frame_unwind): Ditto.
4671 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4672 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4673 * mt-tdep.c (mt_frame_unwind): Ditto.
4674 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4675 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4676 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4677 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4678 (s390_sigtramp_frame_unwind): Ditto.
4679 * score-tdep.c (score_prologue_unwind): Ditto.
4680 * sh-tdep.c (sh_frame_unwind): Ditto.
4681 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4682 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4683 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4684 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4685 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4686 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4687 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4688 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4689 (sparc64obsd_trapframe_unwind): Ditto.
4690 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4691 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4692 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4693 * v850-tdep.c (v850_frame_unwind): Ditto.
4694 * vax-tdep.c (vax_frame_unwind): Ditto.
4695 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4696 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4697 * xtensa-tdep.c (xtensa_unwind): Ditto.
4699 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4701 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4702 there's always a frame. Use get_frame_pc_if_available instead of
4703 get_frame_pc, and if there's no PC available, don't look up a
4706 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4708 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4711 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4713 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4716 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4718 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4719 * frame.c (frame_unwind_caller_pc_if_available): New.
4720 * stack.c (frame_info): Handle unavailable PC.
4722 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4724 * frame.c (frame_unwind_pc): Rename to ...
4725 (frame_unwind_pc_if_available): ... this. New `pc' output
4726 parameter. Change return type to int. Gracefully handle
4727 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4728 happened, or 1 otherwise.
4729 (frame_unwind_pc): Reimplement on top of
4730 frame_unwind_pc_if_available.
4731 (get_frame_func): Rename to ...
4732 (get_frame_func_if_available): New `pc' output parameter. Change
4733 return type to int. Gracefully handle the PC not being available.
4734 (get_frame_func): Reimplement on top of
4735 get_frame_func_if_available.
4736 (select_frame): Handle the PC being unavailable.
4737 (get_prev_frame): Handle the PC being unavailable.
4738 (get_frame_pc_if_available): New.
4739 (get_frame_address_in_block_if_available): New.
4740 (find_frame_sal): Handle the frame PC not being available.
4741 * frame.h (get_frame_pc_if_available): Declare.
4742 (get_frame_address_in_block_if_available): Declare.
4743 (get_frame_func_if_available): Declare.
4744 * stack.c (print_frame_info): Handle the PC being unavailable.
4745 (find_frame_funname): Ditto.
4746 (print_frame): Handle the PC being unavailable.
4747 (get_frame_language): Ditto.
4748 * blockframe.c (get_frame_block): Ditto.
4749 * macroscope.c (default_macro_scope): Ditto.
4750 * tui/tui-stack.c (tui_show_frame_info): Ditto.
4752 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4754 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
4755 NOT_AVAILABLE_ERROR when evaluating the location expression.
4757 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4759 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
4760 returning that the register piece is unavailable/optimized out.
4761 (write_pieced_value): Handle get_frame_register_bytes returning
4762 that the register piece is unavailable/optimized out when doing a
4763 read-modify write of a bitfield.
4764 * findvar.c (value_from_register): Handle get_frame_register_bytes
4765 returning that the register piece is unavailable/optimized out.
4766 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
4767 and `unavailablep'. Throw error on bad debug info. Use
4768 frame_register instead of frame_register_read, to fill in the new
4770 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
4772 * valops.c: (value_assign): Adjust, and handle
4773 get_frame_register_bytes failing.
4774 * spu-tdep.c: Include exceptions.h.
4775 (spu_software_single_step): Adjust, and handle
4776 get_frame_register_bytes failing.
4777 (spu_get_longjmp_target): Ditto.
4778 * gdbarch.sh (register_to_value): Change to return int. New
4779 parameters `optimizedp' and `unavailablep'.
4780 * gdbarch.h, gdbarch.c: Regenerate.
4781 * i386-tdep.c (i386_register_to_value): Adjust to new
4782 gdbarch_register_to_value interface.
4783 * i387-tdep.c (i387_register_to_value): Ditto.
4784 * i387-tdep.h (i387_register_to_value): Ditto.
4785 * alpha-tdep.c (alpha_register_to_value): Ditto.
4786 * ia64-tdep.c (ia64_register_to_value): Ditto.
4787 * m68k-tdep.c (m68k_register_to_value): Ditto.
4788 * mips-tdep.c (mips_register_to_value): Ditto.
4789 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
4791 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4793 * findvar.c (value_of_register): Mark the value as unavailable, if
4794 the register is unavailable.
4795 * frame.h (frame_register_unwind): New `unavailablep' parameter.
4796 (frame_register): New `unavailablep' parameter.
4797 (frame_register_read): Update comment.
4798 * frame.c (frame_register_unwind): New `unavailablep' parameter.
4799 Set it if the register is unavailable. If the register is
4800 unavailable, clear the output buffer.
4801 (frame_register): New `unavailablep' parameter. Pass it down.
4802 (frame_unwind_register): Adjust.
4803 (put_frame_register): Adjust.
4804 (frame_register_read): Adjust. Also return false if the register
4806 (frame_register_unwind_location): Adjust.
4807 * sentinel-frame.c (sentinel_frame_prev_register): If the register
4808 is unavailable, mark the value accordingly.
4809 * stack.c (frame_info): Handle unavailable registers.
4811 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4813 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
4814 simplify, using regcache_cooked_read.
4816 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4818 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
4819 (regcache_raw_read_unsigned, regcache_raw_read_signed)
4820 (regcache_raw_read_unsigned, regcache_raw_read_part)
4821 (regcache_cooked_read, regcache_cooked_read_signed)
4822 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
4823 (regcache_cooked_read_ftype): Change return to enum
4825 * regcache.c: Include exceptions.h
4826 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
4827 (do_cooked_read): Change return to enum register_status. Always
4828 forward to regcache_cooked_read.
4829 (regcache_raw_read): Change return to enum register_status. If
4830 the register is not REG_VALID, memset the buffer. Return the
4832 (regcache_raw_read_signed): Handle non-REG_VALID registers and
4833 return the register's status.
4834 (regcache_raw_read_unsigned): Ditto.
4835 (regcache_cooked_read): Change return to enum register_status.
4836 Assert that with read-only regcaches, the register's status must
4837 be known. If the regcache is read-only, and the register is not
4838 REG_VALID, memset the buffer. Return the register's status.
4839 (regcache_cooked_read_signed): Change return to enum
4840 register_status. Handle non-REG_VALID registers and return the
4842 (regcache_cooked_read_unsigned): Change return to enum
4843 register_status. Handle non-REG_VALID registers and return the
4845 (regcache_xfer_part, regcache_raw_read_part)
4846 (regcache_cooked_read_part): Change return to enum
4847 register_status. Return the register's status.
4848 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
4850 (regcache_dump): Handle unavailable cooked registers.
4851 * frame.c (do_frame_register_read): Adjust interface to match
4852 regcache_cooked_read_ftype.
4853 * gdbarch.sh (pseudo_register_read): Change return to enum
4855 * gdbarch.h, gdbarch.c: Regenerate.
4857 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
4859 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
4860 register_status. If reading a raw register indicates the raw
4861 register is not valid, return the raw register's status,
4862 otherwise, return REG_VALID.
4863 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
4864 register_status. Handle non-REG_VALID raw registers and return
4865 the register's status.
4866 * arm-tdep.c (arm_neon_quad_read)
4867 (arm_pseudo_read): Change return to enum register_status. Handle
4868 non-REG_VALID raw registers and return the register's status.
4869 * avr-tdep.c (avr_pseudo_register_read): Ditto.
4870 * frv-tdep.c (frv_pseudo_register_read): Ditto.
4871 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
4872 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
4873 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
4875 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
4876 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
4877 (m32c_part_write, m32c_cat_read, m32c_cat_write)
4878 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
4879 (m32c_pseudo_register_read): Change return to enum
4880 register_status. Adjust.
4881 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
4882 enum register_status. Return the register's status.
4883 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
4884 register_status. Return the register's status.
4885 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
4886 * mips-tdep.c (mips_pseudo_register_read): Ditto.
4887 * mt-tdep.c (mt_pseudo_register_read): Ditto.
4888 * rs6000-tdep.c (move_ev_register_func): New typedef.
4889 (e500_move_ev_register): Use it. Change return to enum
4890 register_status. Return the register's status.
4891 (do_regcache_raw_read): New function.
4892 (do_regcache_raw_write): New function.
4893 (e500_pseudo_register_read): Change return to enum
4894 register_status. Return the register's status. Use
4895 do_regcache_raw_read.
4896 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
4897 (dfp_pseudo_register_read): Change return to enum register_status.
4898 Return the register's status.
4899 (vsx_pseudo_register_read): Ditto.
4900 (efpr_pseudo_register_read): Ditto.
4901 (rs6000_pseudo_register_read): Ditto.
4902 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
4903 register_status. Return the register's status.
4904 * sh64-tdep.c (pseudo_register_read_portions): New function.
4905 (sh64_pseudo_register_read): Change return to enum
4906 register_status. Use pseudo_register_read_portions. Return the
4908 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
4909 register_status. Return the register's status.
4910 * sh-tdep.c (pseudo_register_read_portions): New function.
4911 (sh_pseudo_register_read): Change return to enum register_status.
4912 Use pseudo_register_read_portions. Return the register's status.
4913 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
4914 enum register_status. Return the register's status.
4915 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
4916 * spu-tdep.c (spu_pseudo_register_read_spu)
4917 (spu_pseudo_register_read): Ditto.
4918 * xtensa-tdep.c (xtensa_register_read_masked)
4919 (xtensa_pseudo_register_read): Ditto.
4920 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
4922 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4924 * python/py-value.c (valpy_getitem): Fix formatting of error function
4927 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4929 ARI fixes: Add missing internationalization markups throughout
4931 * darwin-nat-info.c: Ditto.
4934 * mi/mi-main.c: Ditto.
4936 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4938 ARI fixes: Add missing internationalization markups throughout
4941 * cp-name-parser.y: Ditto.
4944 * objc-exp.y: Ditto.
4947 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4949 ARI fixes: Messages should have no trailing new lines.
4950 * darwin-nat.c (mach_check_error): Remove trailing new line from
4951 warning function call message.
4952 * record.c (bfdcore_read): Idem for error call.
4954 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4956 * common/signals.c (target_signal_from_host): Add _ markup to error
4957 function call message.
4958 (target_signal_to_host): Add _ markup and remove trailing new line
4959 from warning call message.
4960 (target_signal_from_command): Add _ markup to error function call
4963 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
4967 * python/python.c (gdbpy_write): Accept a stream argument and
4968 operate to the appropriate stream.
4969 (gdbpy_flush): Likewise.
4970 (_initialize_python): Add stream constants.
4971 (finish_python_initialization): Add GdbOutputErrorFile class.
4973 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4975 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4977 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4979 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
4980 to store_signed_integer. Add debug message when relocating CALL
4981 instructions. Fix formatting of debug message.
4982 * i386-tdep.c (i386_relocate_instruction): Ditto.
4984 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4986 * target.h (struct target_ops): Remove to_lookup_symbol field.
4987 (target_lookup_symbol): Delete macro.
4988 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
4989 (update_current_target, setup_target_debug): Remove handling
4990 of to_lookup_symbol target_ops field.
4991 * ada-tasks.c (get_known_tasks_addr): Remove use of
4992 target_lookup_symbol.
4993 * coffread.c (coff_symtab_read): Likewise.
4994 * dbxread.c (read_dbx_symtab): Ditto.
4996 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4999 * configure.ac: Add getthrds declaration check.
5000 * configure, config.in: Regenerate.
5001 * aix-thread.c (getthrds): Declare only if not already declared
5002 in procinfo.h. More declaration out of get_signaled_thread to
5005 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5007 * python/py-symtab.c: Populate symtab_object_methods,
5009 (stpy_is_valid): New function.
5010 (salpy_is_valid): Ditto.
5011 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5012 (sympy_is_valid): New function.
5013 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5014 (objfpy_is_valid): New function.
5015 * python/py-inferior.c: Populate inferior_object_methods.
5016 (infpy_is_valid): New function.
5017 * python/py-infthread.c: Populate thread_object_methods.
5018 (thpy_is_valid): New function.
5019 * python/py-block.c: Declare block_object_methods. Populate. Declare
5020 block_iterator_object_methods. Populate.
5021 (blpy_is_valid): New function.
5022 (blpy_iter_is_valid): Ditto.
5024 2011-03-16 Keith Seitz <keiths@redhat.com>
5026 * linespec.c (find_methods): Canonicalize NAME before looking
5028 (name_end): New function.
5029 (keep_name_info): New function.
5030 (decode_line_1): Use keep_name_info.
5031 (decode_compound): Likewise.
5032 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5033 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5036 * linespec.c (locate_first_half): Keep overload information, too.
5037 (decode_compound): Use a string to represent break characters
5039 If P points to a break character, do not increment it.
5040 For C++ and Java, keep overload information and relevant keywords.
5041 If we cannot find a symbol, search the minimal symbols.
5044 * linespec.c (decode_compound): Rename SAVED_ARG to
5046 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5048 Pass a valid block to lookup_symbol.
5049 (lookup_prefix_sym): Likewise.
5050 (find_method): Construct search name based on SYM_CLASS instead
5052 * psymtab.c (lookup_partial_symbol): Add language parameter.
5053 (lookup_symbol_aux_psymtabs): Likewise.
5054 Don't assume that the psymtab we found was the right one. Search
5055 for the desired symbol in the symtab to be certain.
5056 (psymtab_search_name): New function.
5057 (lookup_partial_symbol): Use psymtab_search_name.
5058 Add language parameter.
5059 (read_symtabs_for_function): Add language parameter and pass to
5060 lookup_partial_symbol.
5061 (find_symbol_file_from_partial): Likewise.
5063 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5066 * dwarf2read.c (noop_record_line): New function.
5067 (dwarf_decode_lines): Ignore line tables for GCd functions.
5069 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5071 Fix ARI warnings about new lines at the end of messages, which
5072 are unneeded as there is a new line added at the end of the message
5074 * darwin-nat.c (darwin_stop_inferior): Ditto.
5075 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5076 * dfp.c (decimal_to_number): Ditto.
5077 * exec.c (print_section_info): Ditto.
5078 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5079 * osdata.c (get_osdata): Ditto.
5080 * record.c (bfdcore_write): Ditto.
5081 * remote-mips.c (mips_readchar): Ditto.
5082 * remote.c (read_ptid): Ditto.
5083 * ser-mingw.c (ser_windows_raw): Ditto.
5084 * tracepoint.c (add_local_symbols): Ditto.
5085 * windows-nat.c (fake_create_process): Ditto.
5087 2011-03-16 Tom Tromey <tromey@redhat.com>
5089 * tracepoint.c (stop_tracing): Don't declare.
5090 * event-top.c (after_char_processing_hook): Add `(void)'.
5092 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5094 * NEWS: Add Parameter sub-classing description.
5096 2011-03-16 Kai Tietz <ktietz@redhat.com>
5098 * MAINTAINERS: Update my e-mail address.
5100 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5102 * MAINTAINERS: Add myself for write after approval privileges.
5104 2011-03-15 Michael Snyder <msnyder@vmware.com>
5106 * frame.c (find_frame_sal): Assert sym is not null.
5108 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5110 * objc-lang.c (selectors_info): Check strchr for null result.
5112 * stabsread.c (define_symbol): Guard against bad stabstring input.
5114 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5116 Remove trailing spaces and tabulations from pascal language
5121 p-valprint.c: Ditto.
5123 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5125 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5126 than LOW. Comment it.
5127 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5128 HIGHPC not strictly higher than LOWPC.
5130 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5132 Fix formatting of function declarations returning a pointer in
5134 * varobj.c (varobj_add_child): Ditto.
5135 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5136 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5138 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5140 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5141 for the "generic" vector ABI used with GCC 4.3 and later.
5142 (ppc64_sysv_abi_return_value): Likewise.
5144 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5146 * infcall.c (call_function_by_hand): Function return value is
5147 always a non_lval, even when using struct_return.
5149 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5151 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5152 (map_display_numbers): New.
5153 (do_delete_display): New.
5154 (undisplay_command): Use map_display_numbers.
5155 (do_enable_disable_display): New.
5156 (enable_disable_display_command): New function.
5157 (enable_display): Delete.
5158 (enable_display_command): New.
5159 (disable_display_command): Reimplement.
5160 (_initialize_printcmd): Adjust "enable display" command to use
5161 `enable_display_command' as callback.
5163 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5165 * NEWS: Add Python breakpoint 'stop' operation.
5167 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5169 * NEWS: Delete duplicate entry. Fix typo.
5171 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5173 Fix ARI warning about function names in first column.
5174 Put prototype declaration on same line as return type.
5175 * objc-exp.y: Ditto.
5177 * python/py-stopevent.h: Ditto.
5178 For long function names, split parameters to
5179 allow function name on same line as return type.
5180 * solib-pa64.c: Ditto.
5183 For long function declaration, use single line.
5184 * hppa-tdep.h: Ditto.
5185 * inferior.h: Ditto.
5187 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5189 * python/python.h: Declare gdbpy_should_stop and
5190 gdbpy_breakpoint_has_py_cond.
5191 * python/python.c: Add python.h to includes. Remove python.h from
5192 HAVE_PYTHON definition
5193 (gdbpy_should_stop): New dummy function.
5194 (gdbpy_breakpoint_has_py_cond): New dummy function.
5195 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5196 sub-classing capabilities.
5197 (gdbpy_should_stop): New function.
5198 (gdbpy_breakpoint_has_py_cond): New function.
5199 (local_setattro): New function.
5200 * breakpoint.c (condition_command): Add check for Python 'stop'
5202 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5203 operation function as part of stop/continue tests.
5205 2011-03-14 Tom Tromey <tromey@redhat.com>
5208 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5209 (needs_frame_dwarf_call): Likewise.
5211 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5213 Fix ARI warning about functions without parameters that do not
5215 * breakpoint.c (all_tracepoints): Replace () by (void).
5216 * f-exp.y (match_string_literal): Ditto.
5218 * m2-exp.y (yylex): Ditto.
5219 * mep-tdep.c (current_me_module): Ditto.
5220 (current_options): Ditto.
5221 (current_cop_data_bus_width): Ditto.
5222 (current_cr_names): Ditto.
5223 (current_cr_is_float): Ditto.
5224 (current_ccr_names): Ditto.
5225 * objc-exp.y (yylex): Ditto.
5226 * p-exp.y (yylex): Ditto.
5227 * remote.c (send_interrupt_sequence): Ditto.
5228 * tracepoint.c (current_trace_status): Ditto.
5229 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5230 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5232 2011-03-11 Michael Snyder <msnyder@vmware.com>
5234 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5235 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5236 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5237 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5238 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5240 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5241 (delete_async_event_handler): Ditto.
5243 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5245 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5247 * top.c (set_verbose): Assert showcmd was found.
5249 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5251 * xtensa-tdep.c (warning_once): Correct style issues.
5253 2011-03-11 Yao Qi <yao@codesourcery.com>
5255 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5257 2011-03-11 Andreas Schwab <schwab@redhat.com>
5259 * common/aclocal.m4: Remove.
5261 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5263 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5264 (xtensa_write_register, xtensa_read_register): Likewise.
5265 (xtensa_hextochar): Removed.
5266 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5268 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5270 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5271 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5272 (xtensa_alloc_frame_cache): Add initialization for new fields.
5273 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5274 (warning_once): New function.
5275 (xtensa_insn_kind): New item c0opc_and.
5276 (call0_classify_opcode): Add the case for AND instruction.
5277 (call0_track_op): Change arguments. New local variable litbase.
5278 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5279 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5281 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5282 (call0_analyze_prologue): Update the comments. Change arguments.
5283 Add the variety of updates to handle extended prologues, which now can
5284 conduct dynamic stack adjustments.
5285 (call0_frame_cache): Likewise.
5286 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5287 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5289 2011-03-10 Michael Snyder <msnyder@vmware.com>
5291 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5292 (cmd_qtframe): Ditto.
5293 (cmd_qtbuffer): Ditto.
5294 (cmd_bigqtbuffer): Ditto.
5296 2011-03-10 Tom Tromey <tromey@redhat.com>
5298 * tracepoint.c (trace_actions_command): Update.
5299 * thread.c (thread_apply_command): Update.
5300 * reverse.c (delete_bookmark_command): Update.
5301 (bookmarks_info): Update.
5302 * printcmd.c (undisplay_command): Update.
5303 * memattr.c (mem_enable_command): Update.
5304 (mem_disable_command): Update.
5305 (mem_delete_command): Update.
5306 * inferior.c (detach_inferior_command): Update.
5307 (kill_inferior_command): Update.
5308 (remove_inferior_command): Update.
5309 * cli/cli-utils.h (struct get_number_or_range_state): New.
5310 (init_number_or_range): Declare.
5311 (get_number_or_range): Update.
5312 * cli/cli-utils.c (init_number_or_range): New function.
5313 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5315 (number_is_in_list): Update.
5316 * breakpoint.h (get_tracepoint_by_number): Update.
5317 * breakpoint.c (map_breakpoint_numbers): Update for change to
5318 get_number_or_range.
5319 (find_location_by_number): Use get_number, not
5320 get_number_or_range.
5321 (trace_pass_set_count): New function.
5322 (trace_pass_command): Update for change to get_number_or_range.
5324 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5327 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5329 * python/py-param.c (add_setshow_generic): Add set/show callback
5330 parameters. Register Python object context.
5331 (get_show_value): New function.
5332 (get_set_value): New function.
5333 (call_doc_function): New function.
5334 (get_doc_string): Move behind get_show_value/get_set_value.
5336 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5338 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5340 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5342 * xtensa-tdep.c (xtensa_read_register): Add comment.
5343 (xtensa_write_register): Likewise.
5344 (xtensa_hextochar): Add comment and update to match coding conventions.
5345 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5346 (execute_l32e, execute_s32e, execute_code): Update comments.
5347 (xtensa_exception_handler_t): Update to match coding conventions.
5348 (xtensa_insn_kind): Likewise.
5350 2011-03-09 Michael Snyder <msnyder@vmware.com>
5352 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5354 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5356 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5358 2011-03-09 Tom Tromey <tromey@redhat.com>
5360 * thread.c (restore_selected_frame): Handle frame_level == -1.
5361 (make_cleanup_restore_current_thread): Use
5362 get_selected_frame_if_set.
5363 * frame.h (get_selected_frame_if_set): Declare.
5364 * frame.c (get_selected_frame_if_set): New function.
5366 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5368 * cli/cli-cmds.c (shell_escape): Use lbasename.
5369 * coffread.c (coff_start_symtab): Constify parameter.
5370 (complete_symtab): Constify `name' parameter.
5371 (coff_symtab_read): Constify `filestring' local.
5372 (coff_getfilename): Constify return and `result' local.
5374 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5375 * linux-fork.c (info_checkpoints_command): Use lbasename.
5376 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5377 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5378 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5379 * procfs.c (procfs_make_note_section): Use lbasename.
5380 * tui/tui-io.c (printable_part): Constity return and parameter.
5382 (print_filename): Constify parameters, and local `s'.
5383 (tui_rl_display_match_list): Constify local `temp'.
5385 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5388 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5389 Fix DWARF-3+ DW_AT_accessibility default assumption.
5390 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5391 cu->header.version >= 3.
5393 2011-03-09 Yao Qi <yao@codesourcery.com>
5395 * common/Makefile.in: Remove.
5396 * common/configure: Remove.
5397 * common/configure.ac: Remove.
5399 2011-03-09 Yao Qi <yao@codesourcery.com>
5402 2011-02-11 Yao Qi <yao@codesourcery.com>
5404 * common/Makefile.in: Add copyright header.
5406 2011-02-11 Yao Qi <yao@codesourcery.com>
5408 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5410 * configure.ac: Add common to sub dir.
5411 * configure: Regenerate.
5413 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5415 * xtensa-tdep.c (call0_ret): New function.
5416 (xtensa_skip_prologue): Speed up analysis.
5418 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5420 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5421 while executing MI command -data-list-changed-registers.
5423 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5425 * xtensa-tdep.c (xtensa_read_register): New function.
5426 (xtensa_write_register): New function.
5427 (xtensa_find_register_by_name): New function.
5428 (xtensa_windowed_frame_cache): Update comments in type description.
5429 (xtensa_frame_cache): Likewise.
5430 (xtensa_window_interrupt_insn): New function.
5431 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5432 (xtensa_insn_kind): Add new instructions.
5433 (rwx_special_register): New function.
5434 (call0_classify_opcode): Add new instructions to the analysis.
5435 (a0_saved, a7_saved, a11_saved): New variables.
5436 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5437 (execute_l32e): New function.
5438 (execute_s32e): New function.
5439 (xtensa_exception_handler_t): New type.
5440 (execute_code): New function.
5441 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5442 analysis for Xtensa Window Exception handlers.
5444 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5446 * xtensa-tdep.c (TX_PS): New.
5447 (windowing_enabled): Update to count for Call0 ABI.
5448 (xtensa_hextochar): New.
5449 (xtensa_init_reggroups): Make algorithm generic.
5450 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5452 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5454 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5456 2011-03-08 Michael Snyder <msnyder@vmware.com>
5458 * i386-tdep.c (i386_follow_jump): Check return value of
5460 (i386_analyze_struct_return): Ditto.
5461 (i386_skip_probe): Ditto.
5462 (i386_match_insn): Ditto.
5463 (i386_skip_noop): Ditto.
5464 (i386_analyze_frame_setup): Ditto.
5465 (i386_analyze_register_saves): Ditto.
5466 (i386_skip_prologue): Ditto.
5467 (i386_skip_main_prologue): Ditto.
5469 * target.c (read_whatever_is_readable): Fix memory leak.
5471 * i386-tdep.c (i386_process_record): Document fall through.
5473 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5475 Fix DWARF-3+ DW_AT_accessibility default assumption.
5476 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5477 cu->header.version >= 3.
5479 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5481 * remote.c (remote_check_symbols): Skip if the target has no
5484 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5486 * target.c (read_whatever_is_readable): Reformat comment,
5487 with a minor typo fix. Minor reformatting of the code.
5489 2011-03-08 Yao Qi <yao@codesourcery.com>
5491 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5492 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5493 Use cached result instead of calling displaced_in_arm_mode again.
5494 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5495 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5496 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5497 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5498 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5499 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5500 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5501 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5502 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5503 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5504 (arm_catch_kernel_helper_return): Likewise.
5505 * gdb/arm-tdep.h : Update function declarations.
5507 2011-03-07 Michael Snyder <msnyder@vmware.com>
5509 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5511 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5513 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5515 * elfread.c (elf_symtab_read): Stop memory leak.
5517 * main.c (captured_main): Fix memory leak.
5519 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5521 * ada-lang.c (compare_names): Call is_name_suffix with string1
5524 2011-03-07 Tom Tromey <tromey@redhat.com>
5526 * xcoffread.c (xcoff_sym_fns): Update.
5527 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5528 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5529 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5530 (symbol_file_add_with_addrs_or_offsets): Likewise.
5531 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5532 * somread.c (som_sym_fns): Update.
5533 * psymtab.h (require_partial_symbols): Declare.
5534 * psymtab.c (require_partial_symbols): New function.
5535 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5536 (ALL_OBJFILE_PSYMTABS): Undef.
5537 (ALL_PSYMTABS): Move from psympriv.h.
5538 (lookup_partial_symtab, find_pc_sect_psymtab)
5539 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5540 (find_last_source_symtab_from_partial)
5541 (forget_cached_source_info_partial)
5542 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5543 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5544 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5545 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5546 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5547 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5548 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5549 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5550 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5552 * mipsread.c (ecoff_sym_fns): Update.
5553 * machoread.c (macho_sym_fns): Update.
5554 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5555 (read_psyms): New function.
5556 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5557 (elf_sym_fns_lazy_psyms): New global.
5558 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5559 dwarf2_build_psymtabs.
5560 * dbxread.c (aout_sym_fns): Update.
5561 * coffread.c (coff_sym_fns): Update.
5563 2011-03-07 Tom Tromey <tromey@redhat.com>
5565 * infrun.c (print_exited_reason): Include inferior id and pid in
5568 2011-03-07 Tom Tromey <tromey@redhat.com>
5570 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5572 (target_has_execution_1): Update.
5573 (target_has_execution_current): Declare.
5574 (target_has_execution): Call target_has_execution_current.
5575 (default_child_has_execution): Update.
5576 * target.c (default_child_has_execution): Add 'the_ptid'
5578 (target_has_execution_1): Likewise.
5579 (target_has_execution_current): New function.
5580 (add_target): Update.
5581 (init_dummy_target): Update.
5582 * remote-m32r-sdi.c (m32r_has_execution): New function.
5583 (init_m32r_ops): Use it.
5584 * record.c (record_core_has_execution): Now static. Add
5585 'the_ptid' parameter.
5586 * inferior.c (have_live_inferiors): Don't save current thread.
5587 Use target_has_execution_1.
5589 2011-03-07 Yao Qi <yao@codesourcery.com>
5591 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5593 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5595 * elfread.c (elf_symtab_read): Minor reformatting.
5597 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5599 * objc-lang.c (selectors_info): Minor reformatting.
5601 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5603 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5605 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5606 Michael Snyder <msnyder@vmware.com>
5608 * ada-valprint.c (ada_val_print_array): Move the declaration of
5609 "byte_order" and "elttype" inside the block where these variables
5610 are actually used. Remove some special handling for the case
5611 where "elttype" and "eltlen" are null. Replace by a comment
5612 and a couple of assertion checks.
5614 2011-03-05 Michael Snyder <msnyder@vmware.com>
5616 * source.c (add_path): Replace semicolon at end of block.
5617 * dwarf2expr.c (execute_stack_op): Ditto.
5619 2011-03-05 Mike Frysinger <vapier@gentoo.org>
5621 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5622 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5623 (bfin-*-*): Likewise.
5625 2011-03-05 Michael Snyder <msnyder@vmware.com>
5627 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5628 * mdebugread.c (parse_symbol): Ditto.
5629 * parse.c (parse_exp_in_context): Ditto.
5630 * source.c (add_path): Ditto.
5631 * utils.c (gnu_debuglink_crc32): Ditto.
5632 * varobj.c (variable_language): Ditto.
5634 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5636 2011-03-04 Michael Snyder <msnyder@vmware.com>
5638 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5640 * symfile.c (simple_overlay_update): Check for null return value
5641 from lookup_minimal_symbol.
5643 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5645 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5647 * eval.c (parse_and_eval_address_1): Remove function.
5648 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5649 instead of parse_and_eval_address_1.
5650 * value.h (parse_and_eval_address_1): Remove prototype.
5652 2011-03-04 Michael Snyder <msnyder@vmware.com>
5654 * remote.c (putpkt_binary): Document that case stmt falls through.
5656 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5658 * breakpointc (print_it_typical): Move NULL check from here...
5659 (print_bp_stop_message): ... to here.
5661 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
5663 * breakpoint.c (enable_command): Use break instead of continue,
5664 and fill in a missing break.
5665 (disable_command): Ditto.
5667 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5669 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5670 (terminal_save_ours): Remove misleading comment.
5671 (inflow_inferior_data_cleanup): Free ttystate.
5672 (inflow_inferior_exit): Likewise.
5673 (copy_terminal_info): Copy ttystate.
5675 * serial.c (serial_copy_tty_state): New function.
5676 * serial.h (serial_copy_tty_state): Add prototype.
5677 (struct serial_ops): Add copy_tty_state callback.
5678 * ser-base.c (ser_base_copy_tty_state): New function.
5679 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5680 * ser-go32.c (dos_copy_tty_state): New function.
5681 (dos_ops): Install copy_tty_state callback.
5682 * ser-mingw.c (_initialize_ser_windows): Likewise.
5683 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5684 * ser-unix.c (hardwire_copy_tty_state): New function.
5685 (_initialize_ser_hardwire): Install it.
5687 2011-03-04 Michael Snyder <msnyder@vmware.com>
5689 * breakpoint.c (create_breakpoint): Add missing break statement.
5691 Reverting this patch:
5692 * infcall.c (call_function_by_hand): Add break statements for lint.
5694 Reverting this patch:
5695 * cli/cli-script.c (script_from_file): Add break for lint.
5697 2011-03-04 Michael Snyder <msnyder@vmware.com>
5699 * solib.c (reload_shared_libraries_1): Close memory leak.
5701 2011-03-03 Tom Tromey <tromey@redhat.com>
5704 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5707 2011-03-03 Michael Snyder <msnyder@vmware.com>
5709 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5710 fields of struct 'st' to zero.
5712 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5713 sal.pspace before calling set_current_source_symtab_and_line.
5715 2011-03-03 Yao Qi <yao@codesourcery.com>
5717 * Makefile.in (configure-common): Remove. Let Makefile
5718 in dir common to rebuild itself.
5719 (common/Makefile): Likewise.
5721 2011-03-03 Joel Brobecker <brobecker@adacore.com>
5723 * utils.c (parse_escape): Add i18n markup in error message.
5725 2011-03-03 Yao Qi <yao@codesourcery.com>
5727 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5729 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5730 (displaced_write_reg, displaced_read_reg): Likewise.
5731 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5732 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5733 (cleanup_branch): Replace magic number 14 and 15 with
5734 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5736 2011-03-02 Michael Snyder <msnyder@vmware.com>
5738 * maint.c (maintenance_do_deprecate): No need to check for NULL.
5740 * cli/cli-script.c (script_from_file): Add break for lint.
5742 * mdebugread.c (parse_partial_symbols): Fix indent.
5744 * target-descriptions.c (tdesc_gdb_type): No need to call
5745 xstrdup, callee saves a copy.
5747 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
5749 * infcall.c (call_function_by_hand): Add break statements for lint.
5751 * utils.c (parse_escape): Escape the escape char.
5753 * python/py-inferior.c (build_inferior_list): Error out if
5754 PyList_Append fails.
5755 (gdbpy_inferiors): Error out if build_inferior_list fails.
5757 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
5760 * record.c (record_restore): Move printf to before error return.
5762 2011-03-02 Yao Qi <yao@codesourcery.com>
5764 * arm-tdep.h (struct displaced_step_closure): Add two new fields
5765 is_thumb and insn_size.
5766 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
5767 on both ARM and Thumb mode.
5768 (arm_process_displaced_insn): Set is_thumb and insn_size.
5769 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
5770 (arm_displaced_step_fixup): Likewise.
5772 2011-03-01 Michael Snyder <msnyder@vmware.com>
5774 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
5776 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
5778 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
5780 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
5782 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
5785 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
5786 which shadows function parameter.
5788 * tracepoint.c (create_tsv_from_upload): Superfluous call
5789 to xstrdup. Callee already calls xstrdup.
5791 * linespec.c (decode_line_1): Remove unnecessary null check.
5793 * tracepoint.c (scope_info): Fix mem leak, remove underused
5796 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
5797 superfluous null check.
5799 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
5800 (value_of_builtin_frame_fp_reg): Ditto.
5802 * event-top.c (display_gdb_prompt): Remove superfluous null check.
5804 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
5807 * linespec.c (decode_line_1): Check for null before dereference.
5809 * reverse.c (record_restore): Move null-check to before pointer
5812 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
5814 * objc-lang.c (selectors_info): Add explanitory comment.
5815 (classes_info): Ditto.
5817 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5819 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
5820 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
5821 versions of the trampoline. Handle Thumb vs. ARM addresses.
5822 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
5823 (arm_linux_init_abi): Install it.
5824 * arm-tdep.c (arm_psr_thumb_bit): Make global.
5825 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
5827 2011-02-28 Michael Snyder <msnyder@vmware.com>
5829 * ui-out.c (ui_out_field_core_addr): Make local char buffer
5830 a little bigger, to avoid possibility of an overflow.
5832 * breakpoint.c (breakpoint_adjustment_warning): Make local char
5833 buffers a little bigger, to avoid possibility of an overflow.
5835 * coffread.c (coff_getfilename): Add check to avoid overflow.
5837 * objc-lang.c (selectors_info): Add a small safety margin to
5839 (classes_info): Error out on too long REGEXP.
5841 * infrun.c (handle_inferior_event): Remove unused function call.
5843 * fork-child.c (fork_inferior): Remove ifdef'd code and
5846 * linux-thread-db.c (attach_thread): Discard unused value.
5848 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
5850 * remote.c (remote_get_noisy_reply): Discard unused value.
5851 (remote_vcont_resume): Ditto.
5852 (remote_stop_ns): Ditto.
5854 * linespec.c (decode_objc): Delete unused variable.
5856 * tui/tui-regs.c (tui_register_format): Delete unused variable.
5858 * dwarf2read.c (add_partial_symbol): Discard unused values.
5859 (read_base_type): Delete unused variable.
5861 * dbxread.c (read_dbx_symtab): Discard unused value.
5863 * eval.c (evaluate_subexp_standard): Delete unused variable,
5864 and discard unused values.
5866 * infcmd.c (_initialize_infcmd): Discard unused values.
5868 * stabsread.c (rs6000_builtin_type): Missing break statement.
5870 * dbxread.c (process_one_symbol): Discard unused value.
5872 * coffread.c (coff_end_symtab): Delete unused variable.
5874 * dwarf2read.c (dw2_get_file_names): Discard unused value.
5875 (dwarf2_add_typedef): Delete unused variable.
5876 (read_namespace): Ditto.
5877 (dwarf_decode_macros): Ditto.
5879 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
5881 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
5883 * p-valprint.c (pascal_val_print): Discard unused value.
5885 * utils.c (nquery): Call va_end before return;
5889 * proc-service.c (ps_plog): Call va_end before return.
5891 2011-02-28 Tom Tromey <tromey@redhat.com>
5893 * python/python.c (gdbpy_value_cst): New global.
5894 (_initialize_python): Initialize it.
5895 * python/python-internal.h (gdbpy_value_cst): Declare.
5896 * python/py-value.c (convert_value_from_python): Use
5899 2011-02-28 Michael Snyder <msnyder@vmware.com>
5901 * python/py-cmd.c (cmdpy_init): Fix memory leak.
5903 * breakpoint.c (catch_syscall_completer): Free malloced list.
5905 * jv-lang.c (java_primitive_type_from_name): Add missing break.
5907 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
5908 (lval_func_check_synthetic_pointer): Ditto.
5909 (lval_func_free_closure): Fix use-after-free.
5911 2011-02-28 Tom Tromey <tromey@redhat.com>
5913 * psymtab.c (expand_partial_symbol_tables): Use
5914 ALL_OBJFILE_PSYMTABS.
5916 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5918 * objc-lang.c (selectors_info): Error on too long REGEXP.
5920 2011-02-28 Michael Snyder <msnyder@vmware.com>
5922 * python/py-param.c (set_parameter_value): Add missing
5925 * linux-record.c (record_linux_system_call): Add missing
5928 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5930 * breakpoint.c (print_one_breakpoint_location): Remove unused
5931 argument PRINT_ADDRESS_BITS. Update callers.
5932 (print_one_breakpoint): Likewise.
5934 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5936 * breakpoint.c (wrap_indent_at_field): New function.
5937 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
5938 Allocate ui_stream locally instead of using STB argument.
5939 (print_one_breakpoint_location): Update call.
5940 * ui-out.c (ui_out_query_field): New function.
5941 * ui-out.h (ui_out_query_field): Add prototype.
5943 2011-02-28 Joel Brobecker <brobecker@adacore.com>
5945 From Michael Snyder <msnyder@vmware.com>
5946 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
5948 2011-02-27 Michael Snyder <msnyder@vmware.com>
5950 * objc-lang.c (selectors_info): Prevent string overrun.
5952 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
5955 * symtab.c (rbreak_command): Move variable 'file_name' to
5958 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
5959 param with a local variable of the same name.
5961 2011-02-27 Michael Snyder <msnyder@vmware.com>
5963 * value.c (value_from_history_ref): New function.
5964 * value.h (value_from_history_ref): Export.
5965 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
5966 to parse value history references.
5967 * cli/cli-utils.h (get_number_trailer): Update comment.
5969 2011-02-27 Michael Snyder <msnyder@vmware.com>
5971 * inferior.c (detach_inferior_command): Use get_number_or_range.
5972 (kill_inferior_command): Ditto.
5973 (remove_inferior_command): Ditto.
5974 (initialize_inferiors): Make command names plural.
5975 Update help strings.
5977 2011-02-27 Michael Snyder <msnyder@vmware.com>
5979 * darwin-nat-info.c: Fix comment typo.
5980 * dwarf2expr.h: Ditto.
5981 * fbsd-nat.c: Ditto.
5982 * fbsd-nat.h: Ditto.
5983 * frame-unwind.h: Ditto.
5985 * hppa-hpux-tdep.c: Ditto.
5986 * i386-linux-nat.c: Ditto.
5987 * linux-nat.c: Ditto.
5988 * nbsd-nat.c: Ditto.
5989 * nbsd-nat.h: Ditto.
5990 * ppc-linux-tdep.c: Ditto.
5993 * tui/tui-winsource.c: Ditto.
5995 2011-02-26 Michael Snyder <msnyder@vmware.com>
5997 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
5999 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6001 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6002 with a local variable of the same name.
6004 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6005 param with a local variable of the same name.
6006 (i387_supply_xsave): Ditto.
6008 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6009 that it does not shadow a function parameter.
6011 * i386-nat.c (i386_length_and_rw_bits): Document that case
6012 statement is meant to fall through.
6014 * expprint.c (dump_subexp_body_standard): Document that case
6015 statement is meant to fall through.
6017 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6018 dead if statement. Condition can't be false.
6020 2011-02-25 Michael Snyder <msnyder@vmware.com>
6022 * arm-tdep.c: Fix typos in comments.
6023 * bsd-uthread.c: Ditto.
6024 * completer.c: Ditto.
6026 * cp-namespace.c: Ditto.
6027 * cp-support.c: Ditto.
6028 * cris-tdep.c: Ditto.
6030 * dwarf2read.c: Ditto.
6032 * gdbtypes.h: Ditto.
6033 * inferior.h: Ditto.
6034 * mdebugread.c: Ditto.
6035 * mips-tdep.c: Ditto.
6036 * ppc-linux-nat.c: Ditto.
6037 * ppc-linux-tdep.c: Ditto.
6038 * printcmd.c: Ditto.
6039 * sol-thread.c: Ditto.
6040 * solib-frv.c: Ditto.
6042 * sparc64-tdep.c: Ditto.
6043 * spu-tdep.c: Ditto.
6044 * stabsread.c: Ditto.
6049 * python/py-block.c: Ditto.
6050 * python/py-symbol.c: Ditto.
6051 * python/py-symtab.c: Ditto.
6052 * python/py-value.c: Ditto.
6053 * tui/tui-win.c: Ditto.
6055 2011-02-25 Michael Snyder <msnyder@vmware.com>
6057 * inferior.c (print_inferior): Accept a string instead of an int
6058 for requested_inferiors, and use get_number_or_range to parse it.
6059 (info_inferiors_command): Pass args string to print_inferior.
6060 (initialize_inferiors): Change help string for info inferiors.
6061 * inferior.h (print_inferior): Export prototype change.
6063 2011-02-25 Tom Tromey <tromey@redhat.com>
6065 * common/ax.def (invalid2): Set to 0x31.
6067 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6069 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6071 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6073 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6075 2011-02-24 Michael Snyder <msnyder@vmware.com>
6077 * Makefile.in (clean): Make clean should remove generated files
6078 observer.h and observer.inc.
6080 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6082 Revert the following patch (not approved yet):
6083 2011-02-21 Hui Zhu <teawater@gmail.com>
6084 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6085 * ax-gdb.c (gen_printf_expr_callback): New function.
6086 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6087 * ax-general.c (ax_memcpy): New function.
6088 (ax_print): Handle "printf".
6090 * ax.h (ax_memcpy): Forward declare.
6091 * common/ax.def (invalid2): Removed.
6092 (printf): New entry.
6093 * printcmd.c (printcmd.h): New include.
6094 (string_printf): New function.
6095 (ui_printf): Removed.
6096 (printf_command): Remove static. Call string_printf.
6097 (eval_command): Call string_printf.
6098 * printcmd.h: New file.
6099 * tracepoint.c (validate_actionline,
6100 encode_actions_1): handle printf_command.
6102 2011-02-23 Tom Tromey <tromey@redhat.com>
6104 * ax-general.c (ax_pick): Add missing newline.
6106 2011-02-23 Michael Snyder <msnyder@vmware.com>
6108 * breakpoint.c (breakpoint_1): Change first argument from an int
6109 to a char pointer, so that the function now accepts a list of
6110 breakpoints rather than just one. Use new function
6111 'number_is_in_list' to implement.
6112 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6113 (watchpoints_info): Ditto.
6114 (tracepoints_info): Ditto.
6115 (maintenance_info_breakpoints): Ditto.
6116 (_initialize_breakpoint): Update help strings to reflect the fact
6117 that these functions can now take more than one argument.
6118 * cli/cli-utils.c (number_is_in_list): New function.
6119 * cli/cli-utils.h (number_is_in_list): Export.
6121 2011-02-23 Michael Snyder <msnyder@vmware.com>
6123 * memattr.c (mem_enable_command): Use get_number_or_range.
6124 (mem_disable_command): Ditto.
6125 (mem_delete_command): Ditto.
6126 (_initialize_mem): Tweak usage message to reflect multiple
6129 2011-02-22 Doug Evans <dje@google.com>
6131 Add gdb.lookup_global_symbol python function.
6133 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6134 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6135 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6137 2011-02-22 Tom Tromey <tromey@redhat.com>
6139 * language.c (language_class_name_from_physname): Rename
6140 'curr_language' argument to 'lang'; use in body.
6142 2011-02-22 Michael Snyder <msnyder@vmware.com>
6144 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6146 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6148 * frame-unwind.h: Fix comment to mention the this frame, not the
6151 2011-02-22 Tom Tromey <tromey@redhat.com>
6153 * symfile.c (auto_solib_limit): Remove.
6154 * symfile.h (auto_solib_limit): Remove.
6156 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6158 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6160 2011-02-21 Michael Snyder <msnyder@vmware.com>
6162 * gdbthread.h (print_thread_info): Change prototype.
6163 * thread.c (print_thread_info): Accept char* instead of int for
6164 requested_threads argument. Use new function number_is_in_list
6165 to determine which threads to list.
6166 (info_threads_command): Pass char* to print_thread_info.
6167 * cli/cli-utils.c (number_is_in_list): New function.
6168 * cli/cli-utils.h (number_is_in_list): Export.
6169 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6171 (print_one_inferior): Ditto.
6172 (mi_cmd_list_thread_groups): Ditto.
6174 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6176 * common/Makefile.in (CFLAGS): New.
6177 (COMPILE): Add $(CFLAGS).
6179 2011-02-21 Tom Tromey <tromey@redhat.com>
6181 * breakpoint.c (catch_syscall_command_1): Fix typo.
6183 2011-02-21 Tom Tromey <tromey@redhat.com>
6185 * reverse.c: Include cli-utils.h.
6186 * printcmd.c: Include cli-utils.h.
6187 (string_printf): Use skip_spaces.
6188 * cli/cli-utils.h: New file.
6189 * cli/cli-utils.c: New file.
6190 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6191 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6192 * breakpoint.h (get_number, get_number_or_range): Move to
6194 * breakpoint.c: Include cli-utils.h.
6195 (get_number_trailer, get_number, get_number_or_range)
6196 (ep_skip_leading_whitespace): Move to cli-utils.c.
6197 (create_breakpoint_sal, find_condition_and_thread)
6198 (decode_static_tracepoint_spec, watch_command_1)
6199 (watch_maybe_just_location, ep_parse_optional_if_clause)
6200 (catch_fork_command_1, catch_exec_command_1)
6201 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6202 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6203 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6204 (HFILES_NO_SRCDIR): Add cli-utils.h.
6205 (cli-utils.o): New target.
6207 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6209 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6210 before calling discard_all_inferiors.
6212 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6214 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6215 (struct builtin_opencl_type): Remove.
6216 (builtin_opencl_type): Change return type to "struct type **".
6217 (lookup_opencl_vector_type): Update caller.
6218 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6219 (build_opencl_types): Install plain array of "struct type *"
6220 instead of "struct builtin_opencl_type".
6222 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6223 Ulrich Weigand <uweigand@de.ibm.com>
6225 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6226 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6227 (struct arm_linux_hwbp_cap): New type.
6228 (arm_linux_get_hwbp_cap): New function.
6229 (arm_linux_get_hw_breakpoint_count): Likewise.
6230 (arm_linux_get_hw_watchpoint_count): Likewise.
6231 (arm_linux_can_use_hw_breakpoint): Likewise.
6232 (arm_hwbp_type): New type.
6233 (arm_hwbp_control_t): Likewise.
6234 (struct arm_linux_hw_breakpoint): Likewise.
6235 (struct arm_linux_thread_points): Likewise.
6236 (arm_threads): New global variable.
6237 (arm_linux_find_breakpoints_by_tid): New function.
6238 (arm_hwbp_control_initialize): Likewise.
6239 (arm_hwbp_control_is_enabled): Likewise.
6240 (arm_hwbp_control_disable): Likewise.
6241 (arm_linux_hw_breakpoint_initialize): Likewise.
6242 (arm_linux_get_hwbp_type): Likewise.
6243 (arm_linux_hw_watchpoint_initialize): Likewise.
6244 (arm_linux_hw_breakpoint_equal): Likewise.
6245 (arm_linux_insert_hw_breakpoint1): Likewise.
6246 (arm_linux_remove_hw_breakpoint1): Likewise.
6247 (arm_linux_insert_hw_breakpoint): Likewise.
6248 (arm_linux_remove_hw_breakpoint): Likewise.
6249 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6250 (arm_linux_insert_watchpoint): Likewise.
6251 (arm_linux_remove_watchpoint): Likewise.
6252 (arm_linux_stopped_data_address): Likewise.
6253 (arm_linux_stopped_by_watchpoint): Likewise.
6254 (arm_linux_watchpoint_addr_within_range): Likewise.
6255 (arm_linux_new_thread): Likewise.
6256 (arm_linux_thread_exit): Likewise.
6257 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6258 related target callbacks. Register arm_linux_new_thread and
6259 arm_linux_thread_exit.
6260 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6261 * arm-tdep.c (arm_pc_is_thumb): Make global.
6262 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6264 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6266 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6267 per-frame locations while within a function epilogue.
6269 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6271 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6272 to GNU coding standards.
6274 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6276 Allow use of mingw native on Windows 95 OS.
6277 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6278 (ser_windows_close): Only call CancelIo if function exists.
6279 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6280 to check for existence of CancelIo function in kernel32 DLL.
6282 2011-02-21 Hui Zhu <teawater@gmail.com>
6284 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6285 * ax-gdb.c (gen_printf_expr_callback): New function.
6286 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6287 * ax-general.c (ax_memcpy): New function.
6288 (ax_print): Handle "printf".
6290 * ax.h (ax_memcpy): Forward declare.
6291 * common/ax.def (invalid2): Removed.
6292 (printf): New entry.
6293 * printcmd.c (printcmd.h): New include.
6294 (string_printf): New function.
6295 (ui_printf): Removed.
6296 (printf_command): Remove static. Call string_printf.
6297 (eval_command): Call string_printf.
6298 * printcmd.h: New file.
6299 * tracepoint.c (validate_actionline,
6300 encode_actions_1): handle printf_command.
6302 2011-02-19 Michael Snyder <msnyder@vmware.com>
6304 * reverse.c (delete_one_bookmark): Argument is now bookmark
6305 id rather than pointer to bookmark struct.
6306 (delete_bookmark_command): Use get_number_or_range.
6307 (goto_bookmark_command): Parse with get_number instead of strtoul.
6308 (bookmark_1): New function. Print info for one bookmark.
6309 (bookmarks_info): Use get_number_or_range and bookmark_1.
6311 2011-02-18 Michael Snyder <msnyder@vmware.com>
6313 * thread.c (info_threads_command): Re-implement using
6314 get_number_or_range.
6315 (thread_apply_command): Ditto.
6317 2011-02-18 Tom Tromey <tromey@redhat.com>
6319 * common/ax.def: New file.
6320 * ax.h (enum agent_op): Use ax.def.
6321 * ax-general.c (aop_map): Use ax.def.
6323 2011-02-18 Tom Tromey <tromey@redhat.com>
6325 * ax-general.c (aop_map): Add pick and rot.
6326 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6327 <DW_OP_rot>: Implement.
6328 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6330 * ax-general.c (ax_pick): New function.
6332 2011-02-18 Tom Tromey <tromey@redhat.com>
6334 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6336 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6337 Tom Tromey <tromey@redhat.com>
6339 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6340 make_symbol_overload_list_block with NULL BLOCK.
6341 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6343 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6345 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6346 * breakpoint.h (get_number_or_range): Declare.
6347 * printcmd.c (ALL_DISPLAYS): Declare.
6348 (delete_display): Reimplement taking a display pointer.
6349 (undisplay_command): Accept a range of displays to delete, using
6350 get_number_or_range.
6352 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6354 * c-valprint.c (c_val_print): Add embedded_offset to address
6355 for arrays of unspecified length.
6356 * p-valprint.c (pascal_val_print): Likewise.
6358 2011-02-18 Yao Qi <yao@codesourcery.com>
6360 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6361 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6362 (thumb_process_displaced_insn): New.
6363 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6364 call to arm_process_displaced_insn.
6365 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6367 2011-02-17 Tom Tromey <tromey@redhat.com>
6369 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6370 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6371 compile_dwarf_to_ax. No longer static. Call
6372 dwarf2_compile_cfa_to_ax.
6373 (locexpr_tracepoint_var_ref): Update.
6374 (loclist_tracepoint_var_ref): Update.
6375 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6376 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6377 argument; add 'gdbarch' and 'pc'.
6378 (dwarf2_compile_cfa_to_ax): New function.
6379 (dwarf2_frame_cache): Update.
6381 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6383 * ada-lang.c (ada_type_of_array): Fix the size of the array
6384 in the case of an unconstrained packed array.
6386 2011-02-17 Yao Qi <yao@codesourcery.com>
6388 * common/Makefile.in: Add more targets for make.
6390 2011-02-16 Tom Tromey <tromey@redhat.com>
6392 * dwarf2loc.c (unimplemented): Fix typo.
6394 2011-02-16 Tom Tromey <tromey@redhat.com>
6396 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6397 (compile_dwarf_to_ax) <default>: Use unimplemented.
6398 <DW_OP_deref>: Update.
6399 (disassemble_dwarf_expression): Update.
6400 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6401 (decode_locdesc): Update.
6402 * dwarf2expr.h (dwarf_stack_op_name): Update.
6404 2011-02-16 Tom Tromey <tromey@redhat.com>
6406 * ax.h (struct aop_map) <name>: Now const.
6408 2011-02-16 Tom Tromey <tromey@redhat.com>
6410 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6413 2011-02-16 Yao Qi <yao@codesourcery.com>
6415 * infrun.c (get_displaced_step_closure_by_addr): New.
6416 * inferior.h: Declare it.
6417 * arm-tdep.c: (arm_pc_is_thumb): Call
6418 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6421 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6422 Jan Kratochvil <jan.kratochvil@redhat.com>
6425 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6427 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6428 Jan Kratochvil <jan.kratochvil@redhat.com>
6430 * value.c (value_contents_copy_raw): Extend describing comment.
6431 Assert that the destination contents we're overwriting are wholly
6433 (value_contents_copy): Extend describing comment.
6435 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6436 Jan Kratochvil <jan.kratochvil@redhat.com>
6438 * value.c (value_available_contents_eq): Remove redundant local
6439 variables. Fix available contents comparision.
6440 * value.h (value_available_contents_eq): Extend describing
6443 2011-02-16 Yao Qi <yao@codesourcery.com>
6445 * thread.c (info_threads_command): Add missing i18n markup and remove
6448 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6450 * breakpoint.c (longjmp_names): New variable.
6451 (struct breakpoint_objfile_data): New type.
6452 (breakpoint_objfile_key): New variable.
6453 (msym_not_found): New variable.
6454 (msym_not_found_p): New predicate.
6455 (get_breakpoint_objfile_data): New function.
6456 (create_overlay_event_breakpoint): Check per-objfile cache for
6458 (create_longjmp_master_breakpoint): Likewise.
6459 (create_std_terminate_master_breakpoint): Likewise.
6460 (create_exception_master_breakpoint): Likewise.
6461 (_initialize_breakpoint): Register per-objfile data key.
6463 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6465 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6467 (create_longjmp_master_breakpoint): Loop over longjmp names.
6468 (create_std_terminate_master_breakpoint): Const-propagate parameter
6470 (update_breakpoints_after_exec): Adjust.
6471 (breakpoint_re_set): Adjust.
6473 2011-02-15 Michael Snyder <msnyder@vmware.com>
6475 * thread.c (info_threads_command): Process arg as thread id,
6476 or list of thread ids.
6477 (thread_find_command): New command.
6478 (_initialize_thread): Document argument for info threads.
6479 Document 'thread find' command.
6480 * NEWS: Document new command "thread find".
6482 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6484 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6485 * aclocal.m4: Regenerated with aclocal-1.11.1.
6486 * common/configure: Regenerate with autoconf-2.64.
6488 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6490 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6491 bool data type to a size of one byte.
6493 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6494 Jan Kratochvil <jan.kratochvil@redhat.com>
6496 * target.c (memory_xfer_live_readonly_partial): Document where to
6497 look for interface description.
6499 2011-02-15 Yao Qi <yao@codesourcery.com>
6502 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6503 order to store PC value on stack instead of text section.
6505 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6507 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6508 the EFP register set size.
6509 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6510 data from the VMX register.
6511 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6512 and write data from/to the VMX register.
6514 2011-02-14 Michael Snyder <msnyder@vmware.com>
6516 * command.h (enum command_class): New class 'no_set_class', for
6517 "show" commands without a corresponding "set" command.
6518 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6519 * copying.c (_initialize_copying): Ditto for "show copying" and
6521 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6523 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6524 which there is no corresponding "set" command (eg. "show copying").
6526 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6527 Jan Kratochvil <jan.kratochvil@redhat.com>
6529 * exec.c (section_table_available_memory): Change `len' parameter
6531 * exec.h (section_table_available_memory): Ditto.
6532 * value.h (read_value_memory): Rename the `offset' parameter to
6535 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6536 Jan Kratochvil <jan.kratochvil@redhat.com>
6538 * memrange.c (compare_mem_ranges): Mention sort order in
6540 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6541 * tracepoint.c (traceframe_available_memory): Extend comment to
6542 mention what happens to RESULT when the target does not support
6545 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6546 Jan Kratochvil <jan.kratochvil@redhat.com>
6548 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6551 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6553 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6554 No longer handle NULL values.
6556 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6558 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6559 * value.c: Include "exceptions.h".
6560 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6562 * cp-abi.c: Include gdb_assert.h.
6563 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6564 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6566 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6567 parameters. No longer returns -1 on error.
6568 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6570 * cp-valprint.c: Include exceptions.h.
6571 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6572 the baseclass_offset. Handle unavailable base classes. Use
6573 val_print_invalid_address.
6574 * p-valprint.c: Include exceptions.h.
6575 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6576 when fetching the baseclass_offset. No longer expect
6577 baseclass_offset returning -1. Handle unavailable base classes.
6578 Use val_print_invalid_address.
6579 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6580 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6581 `embedded_offset' and `val' parameters. Adjust.
6582 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6583 parameter, and change its type to gdb_byte pointer. Add
6584 `embedded_offset' and `val' parameters. Adjust. No longer expect
6585 baseclass_offset returning -1.
6586 (value_dynamic_cast): Use value_contents_for_printing rather than
6587 value_contents. Adjust.
6588 (search_struct_field): No longer expect baseclass_offset returning
6590 (search_struct_method): If reading memory from the target is
6591 necessary, wrap it in a new value to pass to baseclass_offset. No
6592 longer expect baseclass_offset returning -1.
6593 (find_method_list): No longer expect baseclass_offset returning
6594 -1. Use value_contents_for_printing rather than value_contents.
6595 * valprint.c (val_print_invalid_address): New function.
6596 * valprint.h (val_print_invalid_address): Declare.
6597 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6598 and `val' parameters. No longer expect baseclass_offset returning
6600 * gnu-v2-abi.c: Include "exceptions.h".
6601 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6602 parameters. Handle unavailable memory. Recurse through
6603 gnuv2_baseclass_offset directly, rather than through
6604 baseclass_offset. No longer returns -1 on not found, instead
6606 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6607 `val' parameters. Adjust.
6609 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6611 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6612 almost but not quite adjacent.
6614 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6616 * value.h (value_entirely_available): Declare.
6617 * value.c (value_entirely_available): New function.
6618 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6619 real type if the pointer is unavailable.
6621 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6623 * valops.c (value_repeat): Use read_value_memory instead of
6626 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6628 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6629 * value.c (value_contents_copy_raw, value_contents_copy): New
6631 (value_primitive_field): Use value_contents_copy_raw instead of
6633 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6635 (value_array, value_slice): Ditto.
6636 * valarith.c (value_subscripted_rvalue): Use
6637 value_contents_copy_raw instead of memcpy.
6639 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6641 <unavailable> references.
6643 * valops.c (get_value_at): Use value_from_contents_and_address,
6644 avoiding read_memory.
6646 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6648 * c-valprint.c (c_val_print): Print a string with unavailable
6649 contents as an array.
6651 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6653 * value.h (unpack_bits_as_long): Delete declaration.
6654 (unpack_value_bits_as_long): Declare.
6655 (unpack_value_field_as_long): Declare.
6656 (value_field_bitfield): Declare.
6657 * value.c (unpack_bits_as_long): Rename to...
6658 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6659 value parameters. Return the extracted result in a new output
6660 parameter. If the value contents are unavailable, return false,
6661 otherwise return true.
6662 (unpack_value_bits_as_long): New.
6663 (unpack_field_as_long): Rename to...
6664 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6665 Add embedded_offset and value parameters. Return the extracted
6666 result in a new output parameter. If the value contents are
6667 unavailable, return false, otherwise return true.
6668 (unpack_value_field_as_long): New.
6669 (unpack_field_as_long_1): New.
6670 (unpack_field_as_long): Reimplement as wrapper around
6671 unpack_value_field_as_long_1.
6672 (value_field_bitfield): New function.
6673 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6674 unpack_value_bits_as_long. Mark the value as unavailable, if it
6676 * jv-valprint.c (java_print_value_fields): Use
6677 value_field_bitfield.
6678 * p-valprint.c (pascal_object_print_value_fields): Use
6679 value_field_bitfield.
6680 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6682 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6684 * value.c (get_internalvar_integer): Also return the int value of
6685 TYPE_CODE_INT INTERNALVAR_VALUE values.
6686 (set_internalvar): Don't special case TYPE_CODE_INT.
6688 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6690 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6691 INTERNALVAR_POINTER.
6693 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6694 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6695 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6697 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6699 * value.h (value_available_contents_eq): Declare.
6700 * value.c (find_first_range_overlap): New function.
6701 (value_available_contents_eq): New function.
6702 * valprint.c (val_print_array_elements): Use
6703 value_available_contents_eq.
6704 * ada-valprint.c (val_print_packed_array_elements): Use
6705 value_available_contents_eq.
6706 * jv-valprint.c (java_value_print): Use
6707 value_available_contents_eq.
6709 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6711 * target.c (target_read_live_memory): New function.
6712 (memory_xfer_live_readonly_partial): New.
6713 (memory_xfer_partial): If reading from a traceframe, fallback to
6714 reading unavailable read-only memory from read-only regions of
6716 * tracepoint.c (disconnect_tracing): Adjust.
6717 (set_current_traceframe): New, factored out from
6718 set_traceframe_number.
6719 (set_traceframe_number): Reimplement to only change the traceframe
6720 number on the GDB side.
6721 (do_restore_current_traceframe_cleanup): Adjust.
6722 (make_cleanup_restore_traceframe_number): New.
6723 (cur_traceframe_number): New global.
6724 (tfile_open): Set cur_traceframe_number to no traceframe.
6725 (set_tfile_traceframe): New function.
6726 (tfile_trace_find): If looking up a traceframe using any method
6727 other than by number, make sure the current tfile traceframe
6728 matches gdb's current traceframe. Update the current tfile
6729 traceframe if the lookup succeeded.
6730 (tfile_fetch_registers, tfile_xfer_partial)
6731 (tfile_get_trace_state_variable_value): Make sure the remote
6732 traceframe matches gdb's current traceframe.
6733 * remote.c (remote_traceframe_number): New global.
6734 (remote_open_1): Set it to -1.
6735 (set_remote_traceframe): New function.
6736 (remote_fetch_registers, remote_store_registers)
6737 (remote_xfer_memory, remote_xfer_partial)
6738 (remote_get_trace_state_variable_value): Make sure the remote
6739 traceframe matches gdb's current traceframe.
6740 (remote_trace_find): If looking up a traceframe using any method
6741 other than by number, make sure the current remote traceframe
6742 matches gdb's current traceframe. Update the current remote
6743 traceframe if the lookup succeeded.
6744 * infrun.c (fetch_inferior_event): Adjust.
6745 * tracepoint.h (set_current_traceframe): Declare.
6746 (get_traceframe_number, set_traceframe_number): Add describing
6749 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6751 Mark pieces of values as unavailable if the corresponding memory
6754 * valops.c: Include tracepoint.h.
6755 (value_fetch_lazy): Use read_value_memory.
6756 (read_value_memory): New.
6757 * value.h (read_value_memory): Declare.
6758 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
6759 * exec.c (section_table_available_memory): New function.
6760 * exec.h (section_table_available_memory): Declare.
6762 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6764 * Makefile.in (SFILES): Add memrange.c.
6765 (HFILES_NO_SRCDIR): Add memrange.h.
6766 (COMMON_OBS): Add memrange.o.
6767 * memrange.c: New file.
6768 * memrange.h: New file.
6769 * tracepoint.c: Include memrange.h.
6770 (struct mem_range): Delete.
6771 (mem_range_s): Delete.
6772 (traceframe_available_memory): New function.
6773 * tracepoint.h (traceframe_available_memory): Declare.
6775 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6777 * target.h (struct traceframe_info): Forward declare.
6778 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
6779 (struct target_ops) <to_traceframe_info>: New field.
6780 (target_traceframe_info): New.
6781 * target.c (update_current_target): Inherit and default
6783 * remote.c (PACKET_qXfer_traceframe_info): New.
6784 (remote_protocol_features): Register qXfer:traceframe-info:read.
6785 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
6786 (remote_traceframe_info): New.
6787 (init_remote_ops): Install it.
6788 (_initialize_remote): Install "set/show remote traceframe-info"
6790 * tracepoint.h (parse_traceframe_info): Declare.
6791 * tracepoint.c (struct mem_range): New.
6792 (mem_range_s): New typedef.
6793 (struct traceframe_info): New.
6794 (traceframe_info): New global.
6795 (free_traceframe_info): New function.
6796 (clear_traceframe_info): New function.
6797 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
6799 (build_traceframe_info): New function.
6800 (tfile_traceframe_info): New function.
6801 (init_tfile_ops): Install tfile_traceframe_info.
6802 (traceframe_info_start_memory, free_result): New functions.
6803 (memory_attributes, traceframe_info_elements): New globals.
6804 (parse_traceframe_info, get_traceframe_info): New functions.
6805 * features/traceframe-info.dtd: New file.
6806 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
6808 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6810 Base support for <unavailable> value contents.
6812 * value.h (value_bytes_available): Declare.
6813 (mark_value_bytes_unavailable): Declare.
6814 * value.c (struct range): New struct.
6815 (range_s): New typedef.
6816 (ranges_overlap): New function.
6817 (range_lessthan): New function.
6818 (ranges_contain_p): New function.
6819 (struct value) <unavailable>: New field.
6820 (value_bytes_available): New function.
6821 (mark_value_bytes_unavailable): New function.
6822 (require_not_optimized_out): Constify parameter.
6823 (require_available): New function.
6824 (value_contents_all, value_contents): Require all bytes be
6826 (value_free): Free `unavailable'.
6827 (value_copy): Copy `unavailable'.
6828 * valprint.h (val_print_unavailable): Declare.
6829 * valprint.c (valprint_check_validity): Rename `offset' parameter
6830 to `embedded_offset'. If printing a scalar, check whether the
6831 value chunk is available.
6832 (val_print_unavailable): New.
6833 (val_print_scalar_formatted): Check whether the value is
6835 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
6836 pretty-printing unavailable values.
6838 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6840 Fix const/volatile qualifiers of C++ types, PR c++/12328.
6841 * c-typeprint.c (c_type_print_args): Update the function comment. New
6842 variable param_type, initialize it. Remove const/volatile qualifiers
6843 for language_cplus and !show_artificial. Use param_type.
6845 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6847 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
6848 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
6849 * symtab.h (struct symtab) <next>: Comment extension.
6851 2011-02-12 Yao Qi <yao@codesourcery.com>
6853 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
6855 2011-02-11 Yao Qi <yao@codesourcery.com>
6857 * common/Makefile.in: Add copyright header.
6859 2011-02-11 Pedro Alves <pedro@codesourcery.com>
6861 * infrun.c (proceed): Move switching out and in of tfind mode from
6863 (fetch_inferior_event): ... to here.
6865 2011-02-11 Yao Qi <yao@codesourcery.com>
6867 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6869 * configure.ac: Add common to sub dir.
6870 * configure: Regenerate.
6872 2011-02-11 Yao Qi <yao@codesourcery.com>
6876 * common/Makefile.in: New.
6877 * common/configure.ac: New.
6878 * common/aclocal.m4: New.
6879 * common/configure: Generate.
6881 2011-02-10 Pedro Alves <pedro@codesourcery.com>
6883 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
6884 side of the parenthesis.
6887 2010-07-13 Jakub Jelinek <jakub@redhat.com>
6888 * vec.h (VEC_block_remove): Fix comment.
6890 2011-02-08 Michael Snyder <msnyder@vmware.com>
6892 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
6894 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6896 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
6897 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
6900 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6903 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
6905 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
6906 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
6908 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6910 * dwarf2read.c (read_subroutine_type): Set special calling
6911 convention flag for functions compiled by IBM XL C for OpenCL.
6912 * ppc-sysv-tdep.c: Include "dwarf2.h"
6913 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
6915 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
6916 IBM OpenCL vector types calling convention.
6917 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
6918 (ppc_sysv_abi_broken_return_value): Likewise.
6919 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
6920 types calling convention.
6921 (ppc64_sysv_abi_return_value): Likewise.
6922 * spu-tdep.c: Include "dwarf2.h"
6923 (spu_return_value): Implement IBM OpenCL vector types calling
6926 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6928 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
6929 correct ABI for AltiVec vector arguments.
6931 2011-02-07 Pedro Alves <pedro@codesourcery.com>
6933 * valprint.c (val_print): Extend comment.
6934 * ada-valprint.c (ada_valprint): Rewrite comment deferring
6935 interface explanation to val_print.
6936 (ada_val_print_array): Adjust comment to current interface.
6937 (print_field_values): Adjust comment to current interface.
6938 * c-valprint.c (c_val_print): Rewrite comment deferring interface
6939 explanation to val_print.
6940 * f-valprint.c (f_val_print): Ditto.
6941 * jv-valprint.c (java_val_print): Ditto.
6942 * m2-valprint.c (m2_val_print): Ditto.
6943 * p-valprint.c (pascal_val_print): Ditto.
6945 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6947 * breakpoint.c (parse_breakpoint_sals): Fix description.
6949 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
6950 Oguz Kayral <oguzkayral@gmail.com>
6952 * python/py-inferior.c (python_on_normal_stop): New function.
6953 (python_on_resume): New function.
6954 (python_inferior_exit): New function.
6955 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
6956 inferior_exit observers.
6957 * python/py-evtregistry.c: New file.
6958 * python/py-threadevent.c : New file.
6959 * python/py-event.c: New file.
6960 * python/py-evts.c: New file.
6961 * python/py-continueevent.c: New file.
6962 * python/py-bpevent.c: New file.
6963 * python/py-signalevent.c: New file.
6964 * python/py-exetiedevent.c: New file.
6965 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
6966 Move struct breakpoint_object from here...
6967 * python/python-internal.h: ... to here.
6968 * python/py-event.h: New file.
6969 * python/py-events.h: New file.
6970 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
6971 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
6972 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
6973 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
6974 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
6975 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
6976 Add build rules for all the above.
6978 2011-02-04 Tom Tromey <tromey@redhat.com>
6980 * dwarf2read.c (dwarf2_section_empty_p): New function.
6981 (dwarf2_read_section): Use dwarf2_section_empty_p.
6982 (dwarf2_section_size): New function.
6983 (dwarf2_get_section_info): Unconditionally read section.
6984 (dwarf2_read_index): Use dwarf2_section_empty_p.
6985 (partial_read_comp_unit_head): Use dwarf2_section_size.
6986 (dwarf2_symbol_mark_computed): Likewise.
6988 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6990 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
6992 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6994 * mips-linux-tdep.c: Include xml-syscall.h.
6995 (mips_linux_get_syscall_number): New function.
6996 (mips_linux_init_abi): Add calls to
6997 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
6998 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6999 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7000 * syscalls/mips-n32-linux.xml: New file.
7001 * syscalls/mips-n64-linux.xml: New file.
7002 * syscalls/mips-o32-linux.xml: New file.
7004 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7006 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7007 Complain about inverted range entries.
7008 (dwarf2_record_block_ranges): Likewise.
7010 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7013 * breakpoint.c (update_watchpoint): Fix name of the
7014 update_global_location_list function.
7015 (print_one_breakpoint): Fix typo.
7016 (_initialize_breakpoint): Remove extra space in hbreak help
7018 * breakpoint.h (struct bp_location) <length>: Fix field
7021 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7023 * regcache.c (registers_changed_ptid): Don't explictly always
7024 clear `current_regcache'. Only clear current_thread_ptid and
7025 current_thread_arch when PTID matches. Only reinit the frame
7026 cache if PTID matches the current inferior_ptid. Move alloca(0)
7028 (registers_changed): ... here.
7030 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7032 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7033 starts with __stack_chk_guard as stack guard symbol.
7035 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7037 * disasm.c (compare_lines): Handle the end of sequence markers
7038 within the line table to better support disassembling over
7039 compilation unit boundaries.
7041 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7043 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7044 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7045 implementation even if no symbols are available.
7046 (thumb_analyze_prologue): Update call to skip_prologue_function.
7047 (arm_analyze_prologue): Likewise.
7049 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7051 * arm-tdep.c: Include "observer.h".
7052 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7053 (arm_exidx_data_key): New static variable.
7054 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7055 (struct arm_exidx_data): Likewise.
7056 (arm_exidx_data_free): New function.
7057 (arm_compare_exidx_entries): Likewise.
7058 (arm_obj_section_from_vma): Likewise.
7059 (arm_exidx_new_objfile): Likewise.
7060 (arm_find_exidx_entry): Likewise.
7061 (arm_exidx_fill_cache): Likewise.
7062 (arm_exidx_unwind_sniffer): Likewise.
7063 (arm_exidx_unwind): New global variable.
7064 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7065 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7066 observer. Register arm_exidx_data_key as objfile data.
7068 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7070 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7071 due to accessing uninitialized variable. Fix indentation.
7073 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7075 * c-valprint.c (c_value_print): When doing virtual base pointer
7076 adjustment, create a new value with adjusted contents rather than
7077 changing the contents of the value being printed (and getting it
7080 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7082 * xml-support.c (xml_find_attribute): New.
7083 (xinclude_start_include): Use it.
7084 * xml-support.h (xml_find_attribute): Declare.
7085 * memory-map.c (memory_map_start_memory)
7086 (memory_map_start_property): Use xml_find_attribute.
7087 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7089 * remote.c (start_thread): Use xml_find_attribute.
7090 * solib-target.c (library_list_start_segment)
7091 (library_list_start_section, library_list_start_library)
7092 (library_list_start_list): Use xml_find_attribute.
7093 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7094 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7095 (tdesc_start_field): Use xml_find_attribute.
7097 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7099 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7100 (BUILD_OCL_VTYPES): Update.
7102 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7104 * configure.ac: Work around non-GNU sed limitation when computing
7105 python version number.
7106 * configure: Regenerate.
7108 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7110 Fix debug printing of TYPE_INSTANCE.
7111 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7112 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7114 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7116 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7117 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7118 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7119 * ada-operator.inc: Rename the file to ...
7120 * ada-operator.def: ... here, wrap all the entries by macro OP.
7121 * expprint.c (op_name_standard): Remove all the entries. Include
7122 "std-operator.def" instead.
7123 * expression.h (enum exp_opcode): Include "std-operator.def" and
7124 "ada-operator.def". Move all the entries ...
7125 * std-operator.def: ... here, wrap all the entries by macro OP.
7127 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7129 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7130 * breakpoint.c (remove_jit_event_breakpoints): New function.
7131 * jit.c (jit_descriptor_addr): Delete.
7132 (registering_code): Delete.
7133 (clear_int): Delete.
7134 (jit_inferior_data): New variable.
7135 (struct jit_inferior_data): New type.
7136 (get_jit_inferior_data): New function.
7137 (jit_inferior_data_cleanup): New function.
7138 (jit_read_descriptor): Adjust.
7139 (jit_register_code): Adjust.
7140 (jit_breakpoint_re_set_internal): New function; move code here ...
7141 (jit_inferior_init): ... from here.
7142 (jit_breakpoint_re_set): Adjust.
7143 (jit_reset_inferior_data_and_breakpoints): New function.
7144 (jit_inferior_created_observer): Adjust.
7145 (jit_inferior_exit_hook): Adjust.
7146 (jit_executable_changed_observer): New function.
7147 (jit_event_handler): Adjust.
7148 (_initialize_jit): Adjust.
7150 2011-01-31 Michael Snyder <msnyder@vmware.com>
7152 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7155 2011-01-31 Tom Tromey <tromey@redhat.com>
7158 * python/python.c (execute_gdb_command): Call
7159 prevent_dont_repeat.
7160 * top.c (suppress_dont_repeat): New global.
7161 (dont_repeat): Use it.
7162 (prevent_dont_repeat): New function.
7163 * command.h (prevent_dont_repeat): Declare.
7165 2011-01-31 Tom Tromey <tromey@redhat.com>
7167 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7168 * python/py-breakpoint.c (bppy_set_silent): Use
7169 breakpoint_set_silent.
7170 (bppy_set_thread): Use breakpoint_set_thread.
7171 (bppy_set_task): Use breakpoint_set_task.
7172 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7173 (breakpoint_set_task): Declare.
7174 (make_breakpoint_silent): Remove.
7175 * breakpoint.c (breakpoint_set_silent): New function.
7176 (breakpoint_set_thread): Likewise.
7177 (breakpoint_set_task): Likewise.
7178 (make_breakpoint_silent): Remove.
7180 2011-01-31 Tom Tromey <tromey@redhat.com>
7182 * breakpoint.h (user_breakpoint_p): Declare.
7183 * breakpoint.c (user_breakpoint_p): New function.
7184 (breakpoint_1): Use it.
7185 (save_breakpoints): Likewise.
7187 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7189 * configure.ac: Add handling of Python distribution on Windows.
7190 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7191 sysconfig variables are not defined, then do not use them.
7192 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7193 instead. On Windows, return all paths using forward-slashes
7194 rather than backslashes.
7196 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7198 * configure.ac: Remove fallback behavior for building
7199 against Python. Remove tweaking of Python include path.
7200 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7201 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7202 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7203 Always restore CPPFLAGS and LIBS after linking test.
7204 * configure: Regenerated.
7205 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7206 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7207 * python/python-internal.h: Adjust includes of Python .h files.
7209 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7211 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7214 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7216 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7219 2011-01-31 Yao Qi <yao@codesourcery.com>
7221 * arm-linux-nat.c: Update calls to regcache_register_status
7222 instead of regcache_valid_p.
7223 * aix-thread.c: Likewise.
7224 * i386gnu-nat.c: Likewise.
7226 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7229 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7230 touching TYPE_FIELD_ARTIFICIAL.
7232 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7234 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7237 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7239 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7240 selected, don't try iterating over the traceframe's blocks.
7241 (tfile_has_stack): If there's no traceframe selected, then there's
7243 (tfile_has_registers): If there's no traceframe selected, then
7244 there's no registers.
7246 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7248 * target.c (memory_xfer_partial): No need to restore shadows if we
7249 haven't read anything.
7251 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7253 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7254 and val_print_scalar_formatted.
7256 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7258 * tracepoint.c (tfile_read): New.
7259 (tfile_open): Use it.
7260 (tfile_get_traceframe_address): Use it.
7261 (tfile_trace_find): Use it.
7262 (walk_blocks_callback_func): New typedef.
7263 (match_blocktype): New function.
7264 (traceframe_walk_blocks): New function.
7265 (traceframe_find_block_type): New function.
7266 (tfile_fetch_registers, tfile_xfer_partial)
7267 (tfile_get_trace_state_variable_value): Use
7268 traceframe_find_block_type and tfile_read.
7270 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7272 * remote-mips.c: Add internationalization mark ups. Remove
7273 trailing \n from already marked up strings.
7275 2011-01-26 Tom Tromey <tromey@redhat.com>
7277 * python/py-prettyprint.c (print_string_repr): Clear
7278 'addressprint' option when calling val_print_string.
7279 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7280 option when calling val_print_string.
7282 2011-01-26 Tom Tromey <tromey@redhat.com>
7284 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7286 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7288 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7289 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7290 (gdb_py_long_as_ulongest): New defines.
7291 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7292 (gdb_py_int_as_long): Declare.
7293 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7294 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7295 (valpy_long): Add comment.
7296 * python/py-utils.c (get_addr_from_python): Use
7297 gdb_py_long_as_ulongest. Handle overflow properly.
7298 (gdb_py_object_from_longest): New function.
7299 (gdb_py_object_from_ulongest): Likewise.
7300 (gdb_py_int_as_long): Likewise.
7301 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7302 * python/py-symtab.c (salpy_get_pc): Use
7303 gdb_py_long_from_ulongest.
7304 (salpy_get_line): Use PyInt_FromLong.
7305 * python/py-param.c (set_parameter_value): Use
7307 * python/py-lazy-string.c (stpy_get_address): Use
7308 gdb_py_long_from_ulongest.
7309 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7310 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7311 * python/py-breakpoint.c (bppy_set_thread): Use
7313 (bppy_set_task): Likewise.
7314 (bppy_set_ignore_count): Likewise.
7315 (bppy_set_hit_count): Likewise.
7316 * python/py-block.c (blpy_get_start): Use
7317 gdb_py_object_from_ulongest.
7318 (blpy_get_end): Likewise.
7319 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7321 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7324 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7325 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7326 equality test for objfile, initialize addr_low if needed.
7328 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7330 * tui/tui-regs.c (tui_register_format): Remove dead code.
7332 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7334 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7335 instead of print_scalar_formatted.
7336 (print_scalar_formatted): Don't handle 's' format strings here,
7337 and add an assertion that we never see such format here.
7338 * valprint.h (val_print_scalar_formatted): Declare.
7339 * valprint.c (val_print_scalar_formatted): New.
7340 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7341 instead of print_scalar_formatted.
7342 * jv-valprint.c (java_val_print): Ditto.
7343 * p-valprint.c (pascal_val_print): Ditto.
7344 * ada-valprint.c (ada_val_print_1): Ditto.
7345 * f-valprint.c (f_val_print): Ditto.
7346 * infcmd.c (registers_info): Ditto.
7347 * m2-valprint.c (m2_val_print): Ditto.
7349 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7351 * m2-valprint.c (print_unbounded_array): Pass
7352 value_contents_for_printing rather than value_contents, to
7353 m2_print_array_contents. Also pass in the value.
7355 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7357 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7358 (save_gdb_index_command): Switch to .gdb_index version 4.
7360 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7362 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7363 than frame_register, and always pass a valid value to val_print.
7365 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7367 Centralize printing "<optimized out>".
7369 * valprint.h (val_print_optimized_out): Declare.
7370 * cp-valprint.c (cp_print_value_fields): Use
7371 val_print_optimized_out.
7372 * jv-valprint.c (java_print_value_fields): Ditto.
7373 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7374 * printcmd.c (print_formatted): Ditto.
7375 * valprint.c (valprint_check_validity): Ditto.
7376 (value_check_printable): Ditto.
7377 (val_print_optimized_out): New.
7379 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7381 * infcmd.c (default_print_registers_info): Allocate values so to
7382 never pass a NULL value to val_print.
7384 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7386 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7387 boolean. Make sure to always pass a value that matches the
7388 contents buffer to callees. Preserve `address' for following
7390 * value.c (value_contents_for_printing_const): New.
7391 (value_address): Constify value argument.
7392 * value.h (value_contents_for_printing_const): Declare.
7393 (value_address): Constify value argument.
7395 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7397 * regcache.c (struct regcache_descr): Rename
7398 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7399 and sizeof_cooked_register_valid_p to
7400 sizeof_cooked_register_status.
7401 (init_regcache_descr): Adjust.
7402 (struct regcache): Rename register_valid_p field to
7404 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7405 (do_cooked_read): Adjust.
7406 (regcache_valid_p): Rename to ...
7407 (regcache_register_status): ... this. Adjust.
7408 (regcache_invalidate): Adjust.
7409 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7411 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7412 as unavailable, not valid.
7413 (regcache_dump): Adjust.
7414 * regcache.h (enum register_status): New.
7415 (regcache_register_status): Declare.
7416 (regcache_invalidate): Delete declaration.
7417 * corelow.c (get_core_registers): Adjust.
7418 * tracepoint.c (tfile_fetch_registers): Adjust.
7419 * trad-frame.c (REG_VALUE): Rename to ...
7420 (TF_REG_VALUE): ... this.
7421 (REG_UNKNOWN): Rename to ...
7422 (TF_REG_UNKNOWN): ... this.
7423 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7424 * mi/mi-main.c (register_changed_p): Adjust.
7426 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7428 * regcache.c (struct regcache_descr): Remove outdated comment.
7429 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7431 (regcache_xmalloc): Rename to ...
7432 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7433 Allocate the regcache type accordingly.
7434 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7435 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7436 cooked registers, not raw.
7437 (regcache_dup_no_passthrough): Delete.
7438 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7439 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7440 mention obsolete write_register_bytes.
7441 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7443 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7445 Stop remote_read_bytes from handling partial reads itself.
7447 * remote-fileio.c: Include target.h.
7448 (remote_fileio_write_bytes): Delete.
7449 (remote_fileio_func_open, remote_fileio_func_write)
7450 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7452 (remote_fileio_func_stat): Use target_read_memory and
7453 target_write_memory.
7454 (remote_fileio_func_gettimeofday): Use target_write_memory.
7455 (remote_fileio_func_system): Use target_read_memory.
7456 * remote.c (remote_write_bytes): Make it static.
7457 (remote_read_bytes): Don't handle partial reads here.
7458 * remote.h (remote_read_bytes): Delete declaration.
7460 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7462 Simplify XML parsing a bit.
7464 * xml-support.h (gdb_xml_parse_quick): Declare.
7465 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7466 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7468 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7469 gdb_xml_create_parser_and_cleanup_1.
7470 (gdb_xml_parse_quick): New.
7471 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7472 * osdata.c (osdata_parse): Ditto.
7473 * remote.c (remote_threads_info): Ditto.
7474 * solib-target.c (solib_target_parse_libraries): Ditto.
7475 * xml-syscall.c (syscall_parse_xml): Ditto.
7476 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7478 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7480 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7481 with remote-mips.o added to gdb_target_obs.
7482 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7484 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7486 * ada-valprint.c (val_print_packed_array_elements): Pass the
7487 correct struct value to val_print.
7488 (ada_val_print_1): Ditto.
7490 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7492 Don't lose embedded_offset in printing routines throughout.
7494 * valprint.h (val_print_array_elements): Change prototype.
7495 * valprint.c (val_print_array_elements): Add `embedded_offset'
7496 parameter, and adjust to pass it down to val_print, while passing
7497 `valaddr' or `address' unmodified. Take embedded_offset into
7498 account when checking repetitions.
7499 * c-valprint.c (c_val_print): Pass embedded_offset to
7500 val_print_array_elements instead of adjusting `valaddr' and
7502 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7503 embedded_offset to val_print_array_elements instead of adjusting
7505 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7506 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7507 val_print_array_elements and pascal_object_print_value_fields
7508 instead of adjusting `valaddr'.
7509 (pascal_object_print_value_fields): Add `offset' parameter, and
7511 (pascal_object_print_value): Add `offset' parameter, and adjust to
7513 (pascal_object_print_static_field): Use
7514 value_contents_for_printing/value_embedded_offset, rather than
7516 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7517 parameter, and adjust to use it. Use
7518 value_contents_for_printing/value_embedded_offset, rather than
7520 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7521 (ada_val_print_array): Add `offset' parameter, and adjust to use
7523 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7524 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7525 Instead work with offsets. Use
7526 value_contents_for_printing/value_embedded_offset, rather than
7527 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7528 and use value_from_pointer to extract a target pointer, rather
7529 than value_from_longest.
7530 (print_variant_part): Add `offset' parameter. Replace
7531 `outer_valaddr' parameter by a new `outer_offset' parameter.
7532 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7533 (ada_value_print): Use
7534 value_contents_for_printing/value_embedded_offset, rather than
7536 (print_record): Add `offset' parameter, and adjust to pass it
7538 (print_field_values): Add `offset' parameter. Replace
7539 `outer_valaddr' parameter by a new `outer_offset' parameter.
7540 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7541 Use value_contents_for_printing/value_embedded_offset, rather than
7543 * d-valprint.c (dynamic_array_type): Use
7544 value_contents_for_printing/value_embedded_offset, rather than
7546 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7547 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7548 (java_print_value_fields): Take `offset' into account. Don't
7549 re-adjust `valaddr'. Instead pass down adjusted offsets.
7550 (java_val_print): Take `embedded_offset' into account. Pass it to
7551 java_print_value_fields.
7552 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7553 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7554 down adjusted offsets.
7555 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7556 (f_val_print): Take `embedded_offset' into account.
7558 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7560 * inflow.c: Include "gdbcmd.h".
7561 (interactive_mode): New static global, moved here from top.c.
7562 (show_interactive_mode): New function, moved here from top.c.
7563 use gdb_has_a_terminal instead of input_from_terminal_p to
7564 determine the current mode.
7565 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7567 (_initialize_inflow): Add the "set/show interactive-mode"
7568 commands. Moved here from top.c, after having adjusted slightly
7570 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7572 (input_from_terminal_p): Remove handling of "interactive-mode"
7573 setting, moved to infow.c.
7574 (init_main): Remove creation of the "set/show interactive-mode"
7575 commands, moved to inflow.c.
7577 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7579 * NEWS: Add entry for native ia64-hpux support.
7581 2011-01-19 Tom Tromey <tromey@redhat.com>
7584 * thread.c (free_thread): Free 'name'.
7585 (print_thread_info): Emit thread name. Change CLI output.
7586 (thread_name_command): New function.
7587 (do_captured_thread_select): Emit newline.
7588 (_initialize_thread): Register 'thread name' command.
7589 * target.h (struct target_ops) <to_thread_name>: New field.
7590 (target_thread_name): New macro.
7591 * target.c (update_current_target): Handle to_thread_name.
7592 * python/py-infthread.c (thpy_get_name): New function.
7593 (thpy_set_name): Likewise.
7594 (thread_object_getset): Add "name".
7595 * linux-nat.c (linux_nat_thread_name): New function.
7596 (linux_nat_add_target): Set to_thread_name.
7597 * gdbthread.h (struct thread_info) <name>: New field.
7599 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7601 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7602 (ada_val_print_1): Likewise.
7604 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7606 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7607 upper limit address is not greater than the function end address
7608 when the upper limit could not be computed using the debugging
7611 2011-01-17 Tom Tromey <tromey@redhat.com>
7613 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7615 * utils.c: Include gdb_regex.h.
7616 (do_regfree_cleanup): New function.
7617 (make_regfree_cleanup): Likewise.
7618 (get_regcomp_error): Likewise.
7619 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7621 2011-01-17 Tom Tromey <tromey@redhat.com>
7623 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7626 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7628 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7629 for internal variables.
7630 (last_was_structop): New static variable.
7631 (COMPLETE): New token.
7632 (field_exp): New rule to group all '.' suffix handling.
7633 Add mark_struct_expression calls when approriate to be able
7634 to correctly find fields for completion.
7635 (yylex): Adapt to handle field completion and set INTVAR when
7638 2011-01-14 Yao Qi <yao@codesourcery.com>
7640 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7641 save_reggroup, restore_reggroup and all_reggroup.
7643 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7645 * ada-valprint. (ada_printchar): Use the correct type length
7646 in call to ada_emit_char.
7647 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7649 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7651 * solib-som.h (hpux_major_release): Declare variable here.
7652 * solib-som.c: Remove <sys/utsname.h> header.
7653 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7654 (hpux_major_release): Make global, change default value to
7655 DEFAULT_HPUX_MAJOR_RELEASE.
7656 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7657 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7658 Add "solib-som.h" header.
7659 (set_hpux_major_release): New function.
7660 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7662 2011-01-14 Mike Frysinger <vapier@gentoo.org>
7664 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7666 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7668 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7669 new-line at end of warning message.
7670 (ia64_hpux_store_register): Remove trailing new-line at end of
7672 * ia64-hpux-tdep.c: Rephrase comment.
7673 * solib-ia64-hpux.c (struct dld_info): Change type of field
7674 dld_flags from "long long" to ULONGEST.
7676 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7678 * target.h (deprecated_child_ops): Delete declaration.
7679 * target.c (deprecated_child_ops): Delete definition.
7681 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7683 * Makefile.in (hpux-thread.o): Delete rule.
7684 * configure.ac: Don't check for HPUX DCE threads support.
7685 * configure, config.in: Regenerate.
7686 * hppa-hpux-nat.c (child_suppress_run): Delete.
7687 (hppa_hpux_child_can_run): Delete.
7688 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7689 * hpux-thread.c: Delete.
7691 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7693 * hpux-thread.c (hpux_pid_to_str): Delete.
7695 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7697 * ada-valprint.c (ada_emit_char): Remove strange code.
7698 Check that c is <= UCHAR_MAX before passing it to isascii.
7699 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7701 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7703 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7704 to the case where instream is stdin.
7706 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7708 * ia64-tdep.h (struct regcache): Forward declare.
7709 (struct ia64_infcall_ops): New struct type.
7710 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7712 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7713 Renames ia64_find_global_pointer.
7714 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7715 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7716 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7718 (ia64_infcall_ops): New static global constant.
7719 (ia64_gdbarch_init): Set tdep->infcall_ops.
7720 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7721 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7722 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7723 (ia64_hpux_dummy_code): New static global constant.
7724 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7725 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7726 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7728 (ia64_hpux_infcall_ops): New static global constant.
7729 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7730 for inferior function calls to work properly on ia64-hpux.
7732 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7734 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7735 * ia64-tdep.h (struct frame_info): forward declaration.
7736 (struct gdbarch_tdep): Add field size_of_register_frame.
7737 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
7738 to determine the size of the register frame.
7739 (ia64_size_of_register_frame): New function.
7740 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
7741 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
7742 (IA64_HPUX_UREG_REASON): New macro.
7743 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
7745 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
7746 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
7747 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
7750 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7752 Add support for ia64-hpux.
7753 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
7754 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
7756 * configure.host: Add handling for ia64-hpux hosts. Add associated
7758 * configure.tgt: Add handling for ia64-hpux targets.
7759 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
7760 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
7761 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
7763 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7765 [ttrace] Compute thread list immediately after attach.
7766 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
7768 (inf_ttrace_attach): Use it.
7770 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7772 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
7773 if we could not determine the frame's function address. Instead,
7774 use the frame's PC, and then continue.
7776 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7778 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
7779 not already defined.
7781 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7783 * ia64-tdep.c (ia64_struct_type_p): New function.
7784 (ia64_extract_return_value): Handle integral values that are
7785 less than 8 bytes long.
7786 (ia64_push_dummy_call): Likewise.
7788 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7790 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
7791 floatformat_ia64_ext.
7792 (floatformat_ia64_ext_big): New static const.
7793 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
7795 2011-01-12 Tom Tromey <tromey@redhat.com>
7797 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
7799 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
7800 (mi_cmd_thread_list_ids): Likewise.
7801 (mi_cmd_data_list_changed_registers): Likewise.
7802 (mi_cmd_data_list_register_values): Likewise.
7803 (mi_cmd_data_write_register_values): Likewise.
7804 (mi_cmd_data_evaluate_expression): Likewise.
7805 (mi_cmd_data_read_memory): Likewise.
7806 (mi_cmd_data_read_memory_bytes): Likewise.
7807 (mi_cmd_data_write_memory): Likewise.
7808 (mi_cmd_enable_timings): Likewise.
7809 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
7810 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
7811 (mi_cmd_var_delete): Likewise.
7812 (mi_cmd_var_set_format): Likewise.
7813 (mi_cmd_var_show_format): Likewise.
7814 (mi_cmd_var_info_num_children): Likewise.
7815 (mi_cmd_var_list_children): Likewise.
7816 (mi_cmd_var_info_type): Likewise.
7817 (mi_cmd_var_info_expression): Likewise.
7818 (mi_cmd_var_show_attributes): Likewise.
7819 (mi_cmd_var_assign): Likewise.
7820 (mi_cmd_var_update): Likewise.
7821 (mi_cmd_enable_pretty_printing): Likewise.
7822 (mi_cmd_var_set_update_range): Likewise.
7823 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
7825 (mi_cmd_target_file_put): Likewise.
7826 (mi_cmd_target_file_delete): Likewise.
7827 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
7829 (mi_cmd_stack_info_depth): Likewise.
7830 (mi_cmd_stack_list_locals): Likewise.
7831 (mi_cmd_stack_list_args): Likewise.
7832 (mi_cmd_stack_select_frame): Likewise.
7833 (mi_cmd_stack_select_frame): Likewise.
7834 (mi_cmd_stack_info_frame): Likewise.
7835 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
7837 (mi_cmd_file_list_exec_source_files): Likewise.
7838 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
7839 (mi_cmd_env_cd): Likewise.
7840 (mi_cmd_env_path): Likewise.
7841 (mi_cmd_env_dir): Likewise.
7842 (mi_cmd_inferior_tty_show): Likewise.
7843 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
7844 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
7845 (mi_cmd_break_watch): Likewise.
7847 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
7849 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
7850 (ppc_linux_insert_hw_breakpoint): Likewise.
7851 (ppc_linux_remove_hw_breakpoint): Likewise.
7852 (ppc_linux_insert_watchpoint): Likewise.
7854 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7855 Jan Kratochvil <jan.kratochvil@redhat.com>
7857 PR fortran/11104 and DWARF unbound arrays detection.
7858 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
7859 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
7860 unspecified upper bound.
7861 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
7862 variables array_size_array, tmp_type and offset_item. New variable
7863 array. Remove call to f77_get_upperbound. New variables array_type
7864 and index. Call value_subscripted_rvalue for each dimenasion. Remove
7865 the final call to deprecated_set_value_type.
7867 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7869 Make value allocations more lazy.
7870 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
7871 instead of allocate_value and set_value_lazy when possible.
7872 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
7873 instead of allocate_value and set_value_lazy.
7874 * findvar.c (value_of_register_lazy): Likewise.
7875 (read_var_value): Remove V preallocation, call just check_typedef in
7876 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
7877 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
7878 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
7879 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
7880 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
7881 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
7882 the end, remove set_value_lazy there.
7883 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
7884 instead of allocate_value and set_value_lazy when possible.
7885 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
7886 * value.c (allocate_computed_value): Use allocate_value_lazy instead
7887 of allocate_value and set_value_lazy.
7888 (value_from_contents_and_address): Use allocate_value_lazy instead of
7889 allocate_value and set_value_lazy when possible.
7891 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7893 * disasm.c (dump_insns): Support dumping opcodes for MI.
7894 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
7895 dumping of instruction opcodes.
7897 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
7899 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
7902 2011-01-11 Tom Tromey <tromey@redhat.com>
7904 * thread.c (do_captured_thread_select): Emit newline before
7907 2011-01-11 Michael Snyder <msnyder@vmware.com>
7909 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
7910 * score-tdep.c: Ditto.
7911 * score-tdep.h: Ditto.
7912 * ser-base.c: Ditto.
7913 * ser-go32.c: Ditto.
7916 * ser-mingw.c: Ditto.
7917 * ser-pipe.c: Ditto.
7919 * ser-unix.c: Ditto.
7920 * sh64-tdep.c: Ditto.
7921 * shnbsd-nat.c: Ditto.
7925 * solib-darwin.c: Ditto.
7926 * solib-frv.c: Ditto.
7928 * solib-irix.c: Ditto.
7929 * solib-osf.c: Ditto.
7930 * solib-pa64.c: Ditto.
7931 * solib-som.c: Ditto.
7932 * solib-spu.c: Ditto.
7933 * solib-sunos.c: Ditto.
7934 * solib-svr4.c: Ditto.
7936 * sol-thread.c: Ditto.
7940 * sparc64-linux-tdep.c: Ditto.
7941 * sparc64-tdep.c: Ditto.
7942 * sparc-linux-nat.c: Ditto.
7943 * sparc-linux-tdep.c: Ditto.
7944 * sparc-sol2-nat.c: Ditto.
7945 * sparc-sol2-tdep.c: Ditto.
7946 * sparc-tdep.c: Ditto.
7947 * sparc-tdep.h: Ditto.
7948 * spu-tdep.c: Ditto.
7949 * stabsread.c: Ditto.
7950 * stabsread.h: Ditto.
7958 * target-descriptions.c: Ditto.
7959 * target-descriptions.h: Ditto.
7961 * target-memory.c: Ditto.
7962 * terminal.h: Ditto.
7965 * tracepoint.c: Ditto.
7966 * tracepoint.h: Ditto.
7967 * trad-frame.h: Ditto.
7968 * typeprint.c: Ditto.
7970 2011-01-11 Michael Snyder <msnyder@vmware.com>
7972 * ui-file.c: Comment cleanup, mostly periods and spaces.
7977 * v850-tdep.c: Ditto.
7978 * valarith.c: Ditto.
7980 * valprint.c: Ditto.
7981 * valprint.h: Ditto.
7986 * vax-tdep.c: Ditto.
7990 * windows-nat.c: Ditto.
7991 * windows-tdep.c: Ditto.
7992 * xcoffread.c: Ditto.
7993 * xcoffsolib.c: Ditto.
7994 * xml-support.c: Ditto.
7995 * xstormy16-tdep.c: Ditto.
7996 * xtensa-tdep.c: Ditto.
7997 * xtensa-tdep.h: Ditto.
7999 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8001 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8002 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8004 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8005 Thiago Jung Bauermann <bauerman@br.ibm.com>
8007 Implement support for PowerPC BookE ranged watchpoints.
8009 (struct breakpoint_ops) <resources_needed>: New method.
8010 Initialize to NULL in all existing breakpoint_ops instances.
8011 (struct breakpoint) <exact>: New field.
8012 (target_exact_watchpoints): Declare external global.
8013 * breakpoint.c (target_exact_watchpoints): New global flag.
8014 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8015 b->enable_state to bp_enabled before calling
8016 hw_watchpoint_used_count.
8017 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8018 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8020 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8021 if the watchpoint is exact.
8022 (resources_needed_watchpoint): New function.
8023 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8024 (watch_command_1): Set b->exact if the user asked for an exact
8025 watchpoint and one can be set.
8026 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8027 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8028 the user asks for an exact watchpoint and one can be set. Return
8029 number of needed debug registers to watch the expression.
8030 * gdbtypes.c (is_scalar_type): New function, based on
8031 valprint.c:scalar_type_p.
8032 (is_scalar_type_recursive): New function.
8033 * gdbtypes.h (is_scalar_type_recursive): Declare.
8034 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8035 handle regions when ranged watchpoints are available.
8036 (create_watchpoint_request): New function.
8037 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8038 create_watchpoint_request.
8039 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8040 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8041 `set powerpc' and `show powerpc' commands.
8042 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8043 Mention documentation comment in the target macro.
8044 (target_region_ok_for_hw_watchpoint): Document return value.
8046 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8048 * breakpoint.c (update_watchpoint): Decide on using a software or
8049 hardware watchpoint after the bp_locations are created.
8051 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8053 Convert hardware watchpoints to use breakpoint_ops.
8054 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8055 <insert_location>: ... this. Return int instead of void.
8056 Accept pointer to struct bp_location instead of pointer to
8057 struct breakpoint. Adapt all implementations.
8058 (breakpoint_ops) <remove>: Rename to...
8059 <remove_location>: ... this. Accept pointer to struct bp_location
8060 instead of pointer to struct breakpoint. Adapt all implementations.
8061 * breakpoint.c (insert_catchpoint): Delete function.
8062 (insert_bp_location): Call the watchpoint or catchpoint's
8063 breakpoint_ops.insert method.
8064 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8065 breakpoint_ops.remove method.
8066 (insert_watchpoint, remove_watchpoint): New functions.
8067 (watchpoint_breakpoint_ops): New structure.
8068 (watch_command_1): Initialize the OPS field.
8069 * inf-child.c (inf_child_insert_fork_catchpoint)
8070 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8071 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8072 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8074 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8075 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8076 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8077 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8078 * target.c (update_current_target): Change default implementation of
8079 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8080 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8081 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8082 to_set_syscall_catchpoint to return_one.
8083 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8084 (debug_to_insert_exec_catchpoint): Report return value.
8085 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8086 (to_insert_exec_catchpoint): Change declaration to return int instead
8089 2011-01-11 Michael Snyder <msnyder@vmware.com>
8091 * arm-tdep.c: Internationalization.
8094 * fork-child.c: Ditto.
8095 * nto-procfs.c: Ditto.
8096 * ppc-sysv-tdep.c: Ditto.
8098 * remote-mips.c: Ditto.
8100 * rs6000-nat.c: Ditto.
8101 * rs6000-tdep.c: Ditto.
8105 * xml-support.c: Ditto.
8106 * mi/mi-cmd-break.c: Ditto.
8107 * mi/mi-cmd-var.c: Ditto.
8108 * mi/mi-interp.c: Ditto.
8109 * mi/mi-main.c: Ditto.
8111 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8113 * remote-sim.c (gdbsim_store_register): Update API to
8114 sim_store_register to check more error conditions.
8116 2011-01-10 Michael Snyder <msnyder@vmware.com>
8118 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8119 * nto-tdep.c: Ditto.
8120 * nto-tdep.h: Ditto.
8121 * objc-exp.y: Ditto.
8122 * objc-lang.c: Ditto.
8123 * objfiles.c: Ditto.
8124 * objfiles.h: Ditto.
8125 * observer.c: Ditto.
8126 * opencl-lang.c: Ditto.
8129 * parser-defs.h: Ditto.
8132 * posix-hdep.c: Ditto.
8133 * ppcbug-rom.c: Ditto.
8134 * ppc-linux-nat.c: Ditto.
8135 * ppc-linux-tdep.c: Ditto.
8136 * ppc-linux-tdep.h: Ditto.
8137 * ppcnbsd-tdep.c: Ditto.
8138 * ppcobsd-tdep.c: Ditto.
8139 * ppcobsd-tdep.h: Ditto.
8140 * ppc-sysv-tdep.c: Ditto.
8141 * ppc-tdep.h: Ditto.
8142 * printcmd.c: Ditto.
8143 * proc-abi.c: Ditto.
8144 * proc-flags.c: Ditto.
8146 * proc-utils.h: Ditto.
8147 * progspace.h: Ditto.
8148 * prologue-value.c: Ditto.
8149 * prologue-value.h: Ditto.
8150 * psympriv.h: Ditto.
8152 * p-typeprint.c: Ditto.
8153 * p-valprint.c: Ditto.
8154 * ravenscar-sparc-thread.c: Ditto.
8155 * ravenscar-thread.c: Ditto.
8156 * ravenscar-thread.h: Ditto.
8158 * regcache.c: Ditto.
8159 * regcache.h: Ditto.
8161 * remote-fileio.c: Ditto.
8162 * remote-fileio.h: Ditto.
8164 * remote-m32r-sdi.c: Ditto.
8165 * remote-mips.c: Ditto.
8166 * remote-sim.c: Ditto.
8167 * rs6000-aix-tdep.c: Ditto.
8168 * rs6000-nat.c: Ditto.
8169 * rs6000-tdep.c: Ditto.
8171 2011-01-10 Michael Snyder <msnyder@vmware.com>
8173 * charset.c (validate): Internationalization.
8174 * coffread.c (read_one_sym): Ditto.
8175 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8176 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8177 * inflow.c (new_tty): Ditto.
8178 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8179 * m32c-tdep.c (m32c_return_value): Ditto.
8180 * mep-tdep.c (mep_store_return_value): Ditto.
8181 * score-tdep.c (score7_fetch_insn): Ditto.
8182 * ser-mingw.c (pipe_windows_open): Ditto.
8183 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8184 * spu-tdep.c (spu_register_type): Ditto.
8185 * tracepoint.c (trace_find_command): Ditto.
8186 * valarith.c (value_pos): Ditto.
8188 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8190 * ada-valprint.c (printstr): Minor comment reformatting.
8192 2011-01-08 Michael Snyder <msnyder@vmware.com>
8194 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8197 2011-01-08 Michael Snyder <msnyder@vmware.com>
8199 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8200 * hppa-hpux-tdep.c: Ditto.
8201 * hppa-linux-nat.c: Ditto.
8202 * hppa-linux-tdep.c: Ditto.
8203 * hppanbsd-tdep.c: Ditto.
8204 * hppa-tdep.c: Ditto.
8205 * hppa-tdep.h: Ditto.
8206 * hpux-thread.c: Ditto.
8207 * i386-cygwin-tdep.c: Ditto.
8208 * i386-darwin-nat.c: Ditto.
8209 * i386gnu-nat.c: Ditto.
8210 * i386-linux-nat.c: Ditto.
8211 * i386-linux-tdep.c: Ditto.
8212 * i386-nat.c: Ditto.
8213 * i386-nat.h: Ditto.
8214 * i386nbsd-tdep.c: Ditto.
8215 * i386-sol2-nat.c: Ditto.
8216 * i386-stub.c: Ditto.
8217 * i386-tdep.c: Ditto.
8218 * i386-tdep.h: Ditto.
8219 * i387-tdep.c: Ditto.
8220 * ia64-linux-nat.c: Ditto.
8221 * ia64-linux-tdep.c: Ditto.
8222 * ia64-tdep.c: Ditto.
8226 * inferior.c: Ditto.
8227 * inferior.h: Ditto.
8233 * iq2000-tdep.c: Ditto.
8234 * irix5-nat.c: Ditto.
8240 * jv-typeprint.c: Ditto.
8241 * jv-valprint.c: Ditto.
8242 * language.c: Ditto.
8243 * language.h: Ditto.
8244 * linespec.c: Ditto.
8245 * linux-fork.c: Ditto.
8246 * linux-nat.c: Ditto.
8247 * linux-thread-db.c: Ditto.
8248 * lm32-tdep.c: Ditto.
8250 2011-01-08 Michael Snyder <msnyder@vmware.com>
8252 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8254 * m2-typeprint.c: Ditto.
8255 * m2-valprint.c: Ditto.
8256 * m32c-tdep.c: Ditto.
8257 * m32r-linux-nat.c: Ditto.
8258 * m32r-rom.c: Ditto.
8259 * m32r-tdep.c: Ditto.
8260 * m32r-tdep.h: Ditto.
8261 * m68hc11-tdep.c: Ditto.
8262 * m58klinux-nat.c: Ditto.
8263 * m68k-tdep.c: Ditto.
8264 * m88k-tdep.c: Ditto.
8265 * m88k-tdep.h: Ditto.
8266 * machoread.c: Ditto.
8267 * macrocmd.c: Ditto.
8268 * macroexp.c: Ditto.
8269 * macrotab.c: Ditto.
8272 * mdebugread.c: Ditto.
8273 * mdebugread.h: Ditto.
8276 * memory-map.h: Ditto.
8277 * mep-tdep.c: Ditto.
8278 * microblaze-rom.c: Ditto.
8279 * microblaze-tdep.c: Ditto.
8281 * mips-irix-tdep.c: Ditto.
8282 * mips-linux-nat.c: Ditto.
8283 * mips-linux-tdep.c: Ditto.
8284 * mips-linux-tdep.h: Ditto.
8285 * mipsnbsd-nat.c: Ditto.
8286 * mipsnbsd-tdep.c: Ditto.
8287 * mipsread.c: Ditto.
8288 * mips-tdep.c: Ditto.
8289 * mips-tdep.h: Ditto.
8290 * mn10300-linux-tdep.c: Ditto.
8291 * mn10300-tdep.c: Ditto.
8292 * mn10300-tdep.h: Ditto.
8295 * moxie-tdep.c: Ditto.
8296 * moxie-tdep.h: Ditto.
8299 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8301 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8303 2011-01-08 Robert Millan <rmh@gnu.org>
8305 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8307 2011-01-07 Michael Snyder <msnyder@vmware.com>
8309 * charset.c (_initialize_charset): Fix typo in string.
8311 2011-01-07 Michael Snyder <msnyder@vmware.com>
8313 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8315 * tui/tui-layout.c (tui_set_layout_for_display_command):
8316 Split line so that operator goes to beginning of line.
8317 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8318 assignment out of if statement.
8320 2011-01-07 Michael Snyder <msnyder@vmware.com>
8322 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8323 * ada-lang.h: Ditto.
8324 * ada-tasks.c: Ditto.
8325 * ada-valprint.c: Ditto.
8326 * aix-threads.c: Ditto.
8327 * alpha-linux-nat.c: Ditto.
8328 * alpha-linux-tdep.c: Ditto.
8329 * alpha-mdebug-tdep.c: Ditto.
8330 * alpha-nat.c: Ditto.
8331 * alpha-osf1-tdep.c: Ditto.
8332 * alpha-tdep.c: Ditto.
8333 * alphabsd-nat.c: Ditto.
8334 * alphabsd-tdep.c: Ditto.
8335 * amd64-darwin-tdep.c: Ditto.
8336 * amd64-linux-nat.c: Ditto.
8337 * amd64-linux-tdep.c: Ditto.
8338 * amd64-sol2-tdep.c: Ditto.
8339 * amd64-tdep.c: Ditto.
8340 * amd64-fbsd-tdep.c: Ditto.
8341 * amd64-nbsd-tdep.c: Ditto.
8342 * amd64-obsd-tdep.c: Ditto.
8343 * amd64-linux-nat.c: Ditto.
8344 * amd64-linux-tdep.c: Ditto.
8345 * arm-tdep.c: Ditto.
8346 * arm-tdep.h: Ditto.
8347 * armnbsd-nat.c: Ditto.
8348 * avr-tdep.c: Ditto.
8349 * bfin-tdep.c: Ditto.
8351 * c-typeprintc: Ditto.
8352 * c-valprint.c: Ditto.
8353 * coff-pe-read.h: Ditto.
8354 * coffreead.c: Ditto.
8355 * cris-tdep.c: Ditto.
8357 * darwin-nat-info.c: Ditto.
8358 * darwin-nat.c: Ditto.
8359 * dbug-rom.c: Ditto.
8363 * dec-thread.c: Ditto.
8365 * demangle.c: Ditto.
8366 * dicos-tdep.c: Ditto.
8367 * dictionary.c: Ditto.
8368 * dictionary.h: Ditto.
8369 * dink32-rom.c: Ditto.
8371 * doublest.c: Ditto.
8373 * dummy-frame.c: Ditto.
8374 * dwarf2-frame.c: Ditto.
8375 * dwarf2expr.c: Ditto.
8376 * dwarf2loc.c: Ditto.
8377 * dwarf2read.c: Ditto.
8381 * event-top.h: Ditto.
8382 * exceptions.c: Ditto.
8383 * exceptions.h: Ditto.
8385 * expprint.c: Ditto.
8386 * expression.h: Ditto.
8390 * f-typeprint.c: Ditto.
8391 * f-valprint.c: Ditto.
8392 * fbsd-nat.c: Ditto.
8394 * fork-child.c: Ditto.
8397 * frv-linux-tdep.c: Ditto.
8398 * frv-tdep.c: Ditto.
8400 * gdb-stabs.h: Ditto.
8401 * gdb_assert.h: Ditto.
8402 * gdb_string.h: Ditto.
8403 * gdb_thread_db.h: Ditto.
8404 * gdb_wait.h: Ditto.
8405 * gdbarch.sh: Ditto.
8407 * gdbthread.h: Ditto.
8408 * gdbtypes.c: Ditto.
8409 * gdbtypes.h: Ditto.
8412 * gnu-v2-abi.c: Ditto.
8413 * gnu-v3-abi.c: Ditto.
8414 * go32-nat.c: Ditto.
8415 * gdbarch.c: Regenerate.
8416 * gdbarch.h: Regenerate.
8418 2011-01-07 Michael Snyder <msnyder@vmware.com>
8420 * ax-gdb.c: Adjust some long output strings.
8421 * breakpoint.c: Ditto.
8426 * linux-nat.c: Ditto.
8427 * solib-pa64.c: Ditto.
8428 * solib-som.c: Ditto.
8430 2011-01-06 Tom Tromey <tromey@redhat.com>
8434 * python/python.c (GdbMethods): Add "newest_frame" method.
8435 * python/python-internal.h (gdbpy_newest_frame): Declare.
8436 * python/py-frame.c (gdbpy_newest_frame): New function.
8438 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8440 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8441 * jit.c (jit_debug): New variable.
8442 (show_jit_debug): New function.
8443 (struct target_buffer): Use ULONGEST.
8444 (bfd_open_from_target_memory): Likewise.
8445 (jit_register_code, jit_inferior_init): Add debug output.
8446 (_initialize_jit): Register "debug jit" command.
8448 2011-01-06 Tom Tromey <tromey@redhat.com>
8450 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8451 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8454 2011-01-06 Tom Tromey <tromey@redhat.com>
8456 * python/py-frame.c (frapy_block): Use get_frame_block.
8458 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8460 Do not stop on SIGPRIO signals by default
8461 * infrun.c (_initialize_infrun): Unset signal_stop and
8462 signal_print for TARGET_SIGNAL_PRIO.
8464 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8466 * ada-tasks.c: Fix style violation in comment.
8468 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8470 * linespec.c (decode_compound, find_method): Remove trailing \n
8471 at end of error string.
8472 * solib-irix.c (irix_current_sos): Likewise.
8473 * varobj.c (uninstall_variable): Likewise.
8475 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8477 * copyright.py: New script.
8478 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8479 Launch emacs without exec'ing. Call copyright.py afterwards.
8481 2011-01-05 Michael Snyder <msnyder@vmware.com>
8483 * addrmap.c: Shorten lines of >= 80 columns.
8484 * arch-utils.c: Ditto.
8485 * arch-utils.h: Ditto.
8487 * ax-general.c: Ditto.
8489 * blockframe.c: Ditto.
8490 * breakpoint.c: Ditto.
8491 * buildsym.c: Ditto.
8493 * c-typeprint.c: Ditto.
8495 * coffread.c: Ditto.
8499 * cp-namespace.c: Ditto.
8500 * cp-support.c: Ditto.
8501 * dbug-rom.c: Ditto.
8506 * dictionary.c: Ditto.
8508 * doublest.c: Ditto.
8509 * dwarf2-frame.c: Ditto.
8510 * dwarf2expr.c: Ditto.
8511 * dwarf2loc.c: Ditto.
8512 * dwarf2read.c: Ditto.
8515 * event-loop.c: Ditto.
8516 * event-loop.h: Ditto.
8517 * exceptions.h: Ditto.
8519 * expprint.c: Ditto.
8520 * expression.h: Ditto.
8522 * f-valprint.c: Ditto.
8524 * frame-base.c: Ditto.
8525 * frame-unwind.c: Ditto.
8526 * frame-unwind.h: Ditto.
8530 * gdb-stabs.h: Ditto.
8531 * gdb_assert.h: Ditto.
8532 * gdb_dirent.h: Ditto.
8533 * gdb_obstack.h: Ditto.
8535 * gdbtypes.c: Ditto.
8536 * gdbtypes.h: Ditto.
8537 * inf-ttrace.c: Ditto.
8542 * inline-frame.h: Ditto.
8543 * language.c: Ditto.
8544 * language.h: Ditto.
8545 * libunwind-frame.c: Ditto.
8546 * libunwind-frame.h: Ditto.
8547 * linespec.c: Ditto.
8548 * linux-nat.c: Ditto.
8549 * linux-nat.h: Ditto.
8550 * linux-thread-db.c: Ditto.
8551 * machoread.c: Ditto.
8552 * macroexp.c: Ditto.
8553 * macrotab.c: Ditto.
8556 * mdebugread.c: Ditto.
8561 * objfiles.c: Ditto.
8562 * objfiles.h: Ditto.
8564 * p-typeprint.c: Ditto.
8565 * p-valprint.c: Ditto.
8567 * printcmd.c: Ditto.
8568 * proc-events.c: Ditto.
8570 * progspace.c: Ditto.
8571 * progspace.h: Ditto.
8572 * psympriv.h: Ditto.
8575 * regcache.c: Ditto.
8576 * regcache.h: Ditto.
8577 * remote-fileio.c: Ditto.
8579 * ser-mingw.c: Ditto.
8581 * ser-unix.c: Ditto.
8584 * solib-frv.c: Ditto.
8585 * solib-irix.c: Ditto.
8586 * solib-osf.c: Ditto.
8587 * solib-pa64.c: Ditto.
8588 * solib-som.c: Ditto.
8589 * solib-sunos.c: Ditto.
8590 * solib-svr4.c: Ditto.
8591 * solib-target.c: Ditto.
8595 * stabsread.c: Ditto.
8596 * stabsread.c: Ditto.
8599 * symfile-mem.c: Ditto.
8605 * target-descriptions.c: Ditto.
8606 * target-memory.c: Ditto.
8609 * terminal.h: Ditto.
8612 * tracepoint.c: Ditto.
8613 * tracepoint.h: Ditto.
8617 * user-regs.c: Ditto.
8618 * user-regs.h: Ditto.
8620 * valarith.c: Ditto.
8622 * valprint.c: Ditto.
8623 * valprint.h: Ditto.
8628 * xcoffread.c: Ditto.
8629 * xcoffsolib.c: Ditto.
8630 * xcoffsolib.h: Ditto.
8631 * xml-syscall.c: Ditto.
8632 * xml-tdesc.c: Ditto.
8634 2011-01-05 Michael Snyder <msnyder@vmware.com>
8636 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8637 * cli/cli-decode.c: Ditto.
8638 * cli/cli-dump.c: Ditto.
8639 * cli/cli-logging.c: Ditto.
8640 * cli/cli-script.c: Ditto.
8641 * cli/cli-setshow.c: Ditto.
8642 * common/signals.c: Ditto.
8643 * mi/mi-cmd-break.c: Ditto.
8644 * mi/mi-cmd-disas.c: Ditto.
8645 * mi/mi-cmd-stack.c: Ditto.
8646 * mi/mi-cmd-var.c: Ditto.
8647 * mi/mi-cmds.c: Ditto.
8648 * mi/mi-common.h: Ditto.
8649 * mi/mi-console.c: Ditto.
8650 * mi/mi-interp.c: Ditto.
8651 * mi/mi-main.c: Ditto.
8652 * osf-share/cma_attr.c: Ditto.
8653 * osf-share/cma_deb_core.h: Ditto.
8654 * osf-share/cma_debug_client.h: Ditto.
8655 * osf-share/cma_handle.h: Ditto.
8656 * osf-share/cma_mutex.h: Ditto.
8657 * osf-share/cma_stack_int.h: Ditto.
8658 * osf-share/cma_tcb_defs.h: Ditto.
8659 * python/py-auto-load.c: Ditto.
8660 * python/py-breakpoint.c: Ditto.
8661 * python/py-cmd.c: Ditto.
8662 * python/py-frame.c: Ditto.
8663 * python/py-objfile.c: Ditto.
8664 * python/py-param.c: Ditto.
8665 * python/py-progspace.c: Ditto.
8666 * python/py-symbol.c: Ditto.
8667 * python/py-value.c: Ditto.
8668 * python/python-internal.h: Ditto.
8669 * python/python.c: Ditto.
8670 * tui/tui-data.c: Ditto.
8671 * tui/tui-disasm.c: Ditto.
8672 * tui/tui-hooks.c: Ditto.
8673 * tui/tui-io.c: Ditto.
8674 * tui/tui-layout.c: Ditto.
8675 * tui/tui-regs.c: Ditto.
8676 * tui/tui-source.c: Ditto.
8677 * tui/tui-stack.c: Ditto.
8678 * tui/tui-win.c: Ditto.
8679 * tui/tui-windata.c: Ditto.
8680 * tui/tui-winsource.c: Ditto.
8682 2011-01-05 Joel Brobecker <brobecker@adacore.com>
8684 * configure.ac, gdb.1: Copyright year update.
8686 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8688 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8689 this_pc_in_block, morestack_msym and morestack_name. Check for
8690 "__morestack" minimal symbol there.
8692 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8694 * symfile.c (find_sym_fns): Add call to dont_repeat.
8696 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8698 Copyright year update in most files (performed by copyright.sh).
8700 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8702 * top.c (print_gdb_version): Update copyright year in version output.
8704 For older changes see ChangeLog-2010.
8710 version-control: never