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