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