OSDN Git Service

gdb
[pf3gnuchains/pf3gnuchains4x.git] / gdb / ChangeLog
1 2011-05-13  Tom Tromey  <tromey@redhat.com>
2
3         * dwarf2expr.c (read_uleb128): Cast intermediate result.
4         (read_sleb128): Likewise.
5
6 2011-05-13  Tom Tromey  <tromey@redhat.com>
7
8         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
9         offset display.
10
11 2011-05-13  Doug Evans  <dje@google.com>
12
13         * linux-nat.c (debug_linux_nat_async): Delete.
14         Replace all references to use debug_linux_nat instead.
15         (show_debug_linux_nat_async): Delete.
16         (sigchld_handler): Call ui_file_write_async_safe instead of
17         fprintf_unfiltered.
18         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
19         * ui-file.c (struct ui_file): New member to_write_async_safe.
20         (null_file_write_async_safe): New function.
21         (ui_file_write_async_safe): New function.
22         (set_ui_file_write_async_safe): New function.
23         (ui_file_new): Initialize to_write_async_safe.
24         (stdio_file_write_async_safe): New function.
25         (struct stdio_file): New member fd.
26         (stdio_file_new): Initialize to_write_async_safe, fd.
27         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling fileno.
28         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
29         (set_ui_file_write_async_safe): Declare.
30         (ui_file_write_async_safe): Declare.
31
32 2011-05-13  Tom Tromey  <tromey@redhat.com>
33
34         * utils.c (do_value_free): New function.
35         (make_cleanup_value_free): Likewise.
36         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
37         freeing correctly.
38         (dwarf2_loc_desc_needs_frame): Call
39         make_cleanup_value_free_to_mark.
40         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
41         * dwarf2expr.c (free_dwarf_expr_context): Don't call
42         value_free_to_mark.
43         (new_dwarf_expr_context): Don't call value_mark.
44         * dwarf2-frame.c (execute_stack_op): Call
45         make_cleanup_value_free_to_mark.
46         * defs.h (make_cleanup_value_free): Declare.
47
48 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
49
50         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
51         prepare_execute_command.
52         * top.c (prepare_execute_command): Return cleanup.
53         (execute_command): Use cleanup from prepare_execute_command.
54         * top.h (prepare_execute_command): Change prototype to return
55         cleanup.
56         * defs.h (struct value): Add opaque declaration.
57         (make_cleanup_value_free_to_mark): Add prototype.
58         * utils.c (do_value_free_to_mark): New function.
59         (make_cleanup_value_free_to_mark): Likewise.
60
61 2011-05-12  Tom Tromey  <tromey@redhat.com>
62
63         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
64         cast left-hand-side to unsigned.
65
66 2011-05-12  Tom Tromey  <tromey@redhat.com>
67
68         PR gdb/12617:
69         * value.h (value_from_contents): Declare.
70         * value.c (value_from_contents): New function.
71         * dwarf2read.c (dwarf_stack_op_name): Add new values.
72         (dwarf2_get_die_type): New function.
73         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
74         (allocate_piece_closure): Acquire reference to values.
75         (read_pieced_value): Update for value-based expressions.
76         (write_pieced_value): Likewise.
77         (free_pieced_value_closure): Call value_free as needed.
78         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
79         Update for value-based expressions.
80         * dwarf2loc.h (dwarf2_get_die_type): Declare.
81         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
82         <get_base_type>: New field.
83         (struct dwarf_expr_piece) <v.value>: Change type.
84         <v.regno>: New field.
85         (struct dwarf_expr_context) <mark>: New field.
86         (dwarf_expr_piece, dwarf_expr_fetch): Update.
87         (dwarf_expr_pop, dwarf_expr_push): Remove.
88         (dwarf_expr_push_address): Declare.
89         * dwarf2expr.c (dwarf_arch_cookie): New global.
90         (struct dwarf_gdbarch_types): New.
91         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
92         functions.
93         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
94         static.
95         (dwarf_expr_push_address): New function.
96         (dwarf_expr_pop): Now static.
97         (dwarf_expr_fetch): Change return type.
98         (dwarf_require_integral): New function.
99         (dwarf_expr_fetch): Simplify.
100         (add_piece): Update.
101         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
102         functions.
103         (execute_stack_op) <sign_ext>: Remove.
104         Use values for DWARF stack.
105         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
106         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
107         New cases.
108         (_initialize_dwarf2expr): New function.
109         (add_piece): Update.
110         (new_dwarf_expr_context): Set new field.
111         (free_dwarf_expr_context): Call value_free_to_mark.
112         * dwarf2-frame.c (no_base_type): New function.
113         (execute_stack_op): Set get_base_type field.  Update.
114
115 2011-05-12  Tom Tromey  <tromey@redhat.com>
116
117         * dwarf2read.c (read_common_block): Fix formatting.
118
119 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
120
121         * breakpoint.c (disable_breakpoint): Disable all locations
122         associated with a tracepoint on target if a trace experiment is
123         running.
124         (disable_command): Disable a specific tracepoint location on target if
125         a trace experiment is running.
126         (do_enable_breakpoint): Enable all locations associated with a
127         tracepoint on target if a trace experiment is running.
128         (enable_command) Enable a specific tracepoint location on target if a
129         trace experiment is running.
130         * target.c (update_current_target): Add INHERIT and de_fault clauses for
131         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
132         to_disable_tracepoint.
133         * target.h: Add declaration of struct bp_location.
134         (struct target_ops): Add new functions
135         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
136         to_disable_tracepoint to target operations.
137         (target_supports_enable_disable_tracepoint): New macro.
138         (target_enable_tracepoint): New macro.
139         (target_disable_tracepoint): New macro.
140         * remote.c (struct remote_state): Add new field.
141         (remote_enable_disable_tracepoint_feature): New.
142         (remote_protocol_features): Add new entry.
143         (remote_supports_enable_disable_tracepoint): New.
144         (remote_enable_tracepoint): New.
145         (remote_disable_tracepoint): New.
146         (init_remote_ops): Add remote_enable_tracepoint,
147         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
148         to remote operations.
149         * tracepoint.c (start_tracing): Allow tracing to start without any
150         tracepoints enabled with just a warning if they can be re-enabled
151         later.
152         * NEWS: Add news item for the new behaviour of the enable and disable
153         GDB commands when applied to tracepoints.
154         Add news items for the new remote packets QTEnable and QTDisable.
155
156 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
157
158         * config.in: Regenerate.
159         * configure: Regenerate.
160         * configure.ac <--with-system-readline> (for readline_echoing_p):
161         Remove the test.
162         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
163         (tui_old_rl_echoing_p): ... here.
164         (tui_setup_io): Rename extern declaration readline_echoing_p to
165         _rl_echoing_p.  Adjust assignments for the both renames.
166
167 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
168
169         * symtab.c (lookup_symtab): Run cleanup before returning.
170
171 2011-05-11  Tom Tromey  <tromey@redhat.com>
172
173         * dwarf2read.c (handle_data_member_location): New function.
174         (dwarf2_add_field): Use it.
175         (read_common_block): Likewise.
176
177 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
178
179         Make addrs->SECTINDEX always defined.
180         * symfile.c (relative_addr_info_to_section_offsets): Check for
181         SECTINDEX -1, not for zero ADDR.
182         (addrs_section_compar): Remove checking for invalid SECTINDEX.
183         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
184         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
185         on its validity.
186
187 2011-05-10  Doug Evans  <dje@google.com>
188
189         * linux-thread-db.c: Whitespace cleanup.
190         (try_thread_db_load_1): Fix comment.
191
192         * linux-thread-db.c (set_libthread_db_search_path): New function.
193         (_initialize_thread_db): Add setter for libthread-db-search-path.
194
195 2011-05-09  Doug Evans  <dje@google.com>
196
197         * NEWS: Mention --with-iconv-bin.
198         * configure.ac: New option --with-iconv-bin.
199         * configure: Regenerate.
200         * config.in: Regenerate.
201         * defs.h (relocate_gdb_directory): Declare.
202         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
203         removed progname parameter, and exported.  All callers updated.
204         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
205
206         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
207         adding missing call to restore_child_signals_mask.
208
209 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
210
211         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
212         parameter.
213         * infrun.c (proceed, start_remote): Adjust.
214         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
215         and adjust to not handle it.
216         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
217         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
218         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
219         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
220         * windows-nat.c (do_initial_windows_stuff): Adjust.
221         * infcmd.c (attach_command): Adjust.
222         (notice_new_inferior): Adjust.
223
224 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
225
226         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
227         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
228         * spu-tdep.c (op_selb): Use correct value.
229
230 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
231
232         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
233         "parent" parameter to symbol_file_add_from_bfd call.
234
235 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
236             Thiago Jung Bauermann  <bauerman@br.ibm.com>
237
238         Implement support for PowerPC BookE masked watchpoints.
239         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
240         section.
241         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
242         method.  Initialize to NULL in all existing breakpoint_ops instances.
243         (struct breakpoint) <hw_wp_mask>: New field.
244         * breakpoint.c (is_masked_watchpoint): Add prototype.
245         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
246         breakpoint's breakpoint_ops.works_in_software_mode if available.
247         (watchpoints_triggered): Handle the case of a hardware masked
248         watchpoint trigger.
249         (watchpoint_check): Likewise.
250         (works_in_software_mode_watchpoint): New function.
251         (insert_masked_watchpoint, remove_masked_watchpoint)
252         (resources_needed_masked_watchpoint)
253         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
254         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
255         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
256         functions.
257         (masked_watchpoint_breakpoint_ops): New structure.
258         (watch_command_1): Check for the existence of the `mask' parameter.
259         Set b->ops according to the type of hardware watchpoint being created.
260         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
261         (ppc_linux_remove_mask_watchpoint)
262         (ppc_linux_masked_watch_num_registers): New functions.
263         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
264         to_remove_mask_watchpoint and to_masked_watch_num_registers.
265         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
266         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
267         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
268         (target_masked_watch_num_registers): New functions.
269         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
270         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
271         methods.
272         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
273         (target_masked_watch_num_registers): Add prototypes.
274
275 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
276
277         PR 12573
278         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
279         (producer_is_gcc_ge_4_0): New function.
280         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
281         symtab->language code.
282         (var_decode_location): Set cu->has_loclist.
283         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
284         skip.  Intialize force_skip from locations_valid.  Move the prologue
285         skipping code into two passes.
286         * symtab.h (struct symtab): Make the primary field a bitfield.  New
287         field locations_valid.
288
289 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
290
291         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
292         (classify_inner_name): Call cp_lookup_nested_type with
293         yylval.tsym.type.
294         * cp-namespace.c (cp_lookup_nested_type): New variable
295         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
296         type_name_no_tag_or_error with saved_parent_type.
297         * dwarf2read.c (load_partial_dies): Read in any children of
298         DW_TAG_typedef with complaint in such case.
299         * gdbtypes.c (type_name_no_tag_or_error): New function.
300         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
301         * valops.c (destructor_name_p): New comment for parameter type.  Remove
302         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
303         * value.h (destructor_name_p): Remove type const.
304
305 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
306
307         * symtab.c (compare_symbol_name): New function.
308         (completion_list_add_name, expand_partial_symbol_name): Call it,
309         remove the variable ncmp.
310         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
311         gdb_assert it.
312
313 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
314
315         Demote to sw watchpoint only in update_watchpoint.
316         * breakpoint.c (update_watchpoint): Change between software and
317         hardware watchpoint for all kinds of watchpoints, not just
318         read/write ones.  Determine b->exact value here instead of
319         in watch_command_1.  Error out if there are not enough resources
320         for a read or access hardware watchpoint.
321         (watch_command_1): Remove logic of checking whether there are
322         enough resources available, since update_watchpoint will do that
323         work now.  Don't set b->exact here.  Catch exceptions thrown by
324         update_watchpoint and delete the watchpoint.
325         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
326         Use target_exact_watchpoints instead.
327         (delete_breakpoint): Notify observers only if deleted watchpoint
328         has a breakpoint number assigned to it.
329
330 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
331
332         * MAINTAINERS: Add myself as a write-after-approval maintainer.
333
334 2011-05-05  Jerome Guitton  <guitton@adacore.com>
335
336         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
337         New functions.
338         (i386_stack_tramp_frame_unwind): New static global.
339         (i386_match_pattern): New function, extracted from i386_match_insn.
340         (i386_match_insn): Use i386_match_pattern.
341         (i386_match_insn_block): New function.
342         (i386_tramp_chain_in_reg_insns)
343         (i386_tramp_chain_on_stack_insns): New static variables.
344         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
345         of unwinders.
346
347 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
348
349         * configure.host (xscale*): Don't handle target.
350         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
351         handle targets.
352
353 2011-05-04  Yao Qi  <yao@codesourcery.com>
354
355         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
356
357 2011-05-03  Joel Brobecker <brobecker@adacore.com>
358
359         Revert:
360         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
361         | * elfread.c (elf_symtab_read): Stop memory leak.
362
363 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
364
365         * nto-tdep.c (nto_target): Replace deprecated call to
366         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
367
368 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
369
370         Fix false GCC warning.
371         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
372
373 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
374
375         * breakpoint.c (update_watchpoint): Move code to change
376         the enable state of breakpoint from here ...
377         (do_enable_breakpoint): ... to here.
378
379 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
380
381         * valprint.c (val_print_array_elements): Fixed poor performance
382         of printing very large arrays with repeat_count_threshold set
383         to unlimited.  New comment.
384
385 2011-04-29  Tom Tromey  <tromey@redhat.com>
386
387         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
388         (mi_parse): Likewise.
389         * breakpoint.c (break_range_command): Use sizeof char*, not
390         char**.
391         (create_breakpoint): Likewise.
392         (parse_breakpoint_sals): Likewise.
393
394 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
395
396         * linux-nat.c (linux_child_remove_fork_catchpoint)
397         (linux_child_remove_vfork_catchpoint)
398         (linux_child_remove_exec_catchpoint): New functions.
399         (linux_target_install_ops): Install them.
400
401 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
402
403         PR mi/12531
404
405         * varobj.c (install_default_visualizer): Do not install a
406         visualizer if the varobj is CPLUS_FAKE_CHILD.
407         (construct_visualizer): Likewise.
408
409 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
410
411         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
412         case insensitive comparison.
413
414 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
415
416         * infrun.c (proceed): Revert previous change.
417         (resume): Instead, handle the case of signal delivery while stepping
418         off a breakpoint location here, and only if software single-stepping
419         is used.  Handle nested signals.
420
421 2011-04-28  Yao Qi  <yao@codesourcery.com>
422
423         * arm-tdep.c (copy_unmodified): Rename to ...
424         (arm_copy_unmodified): .. this.  New.
425         (copy_preload): Move common part to ...
426         (install_preload): .. this.  New.
427         (arm_copy_preload): New.
428         (copy_preload_reg): Move common part to ...
429         (install_preload_reg): ... this.  New.
430         (arm_copy_preload_reg): New.
431         (copy_b_bl_blx): Move common part to ...
432         (install_b_bl_blx): .. this.  New.
433         (arm_copy_b_bl_blx): New.
434         (copy_bx_blx_reg): Move common part to ...
435         (install_bx_blx_reg): ... this. New.
436         (arm_copy_bx_blx_reg): New.
437         (copy_alu_reg): Move common part to ...
438         (install_alu_reg): ... this.  New.
439         (arm_copy_alu_reg): New.
440         (copy_alu_shifted_reg): Move common part to ...
441         (install_alu_shifted_reg): ... this.  New.
442         (copy_ldr_str_ldrb_strb): Move common part to ...
443         (install_ldr_str_ldrb_strb): ... this.  New.
444         (arm_copy_ldr_str_ldrb_strb): New.
445         (copy_copro_load_store): Move some common part to ...
446         (install_copy_copro_load_store): ... this.  New.
447         (arm_copy_copro_load_store): New.
448         (copy_svc): Delete.
449         (arm_copy_svc): Renamed from copy_svc.
450         (copy_undef): Delete.
451         (arm_copy_undef): Renamed from copy_undef.
452         (decode_ext_reg_ld_st): Delete.
453         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
454         (decode_svc_copro): Delete.
455         (arm_decode_svc_copro): Renamed from decode_svc_copro.
456         (copy_copro_load_store, copy_alu_imm): update callers.
457         (copy_extra_ld_st, copy_block_xfer): Likewise.
458         (decode_misc_memhint_neon, decode_unconditional): Likewise.
459         (decode_miscellaneous, decode_dp_misc): Likewise.
460         (decode_ld_st_word_ubyte, decode_media): Likewise.
461         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
462         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
463         (decode_unconditional, decode_miscellaneous): Likewise.
464         (decode_media, decode_b_bl_ldmstm): Likewise.
465         (arm_process_displaced_insn): Likewise..
466         (decode_misc_memhint_neon): Delete.
467         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
468         (decode_miscellaneous): Delete.
469         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
470         (decode_dp_misc): Delete.
471         (arm_decode_dp_misc): Renamed from decode_dp_misc.
472         (decode_ld_st_word_ubyte): Delete.
473         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
474         (decode_media): Delete.
475         (arm_decode_media): Renamed from decode_media.
476         (decode_b_bl_ldmstm): Delete.
477         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
478         (decode_ext_reg_ld_st): Delete.
479         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
480         (decode_unconditional): Delete.
481         (arm_decode_unconditional): Renamed from decode_unconditional.
482
483 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
484
485         Case insensitive lookups implementation.
486         * dwarf2read.c: Include ctype.h.
487         (struct mapped_index): New field version.
488         (mapped_index_string_hash): New parameter index_version.  New comment
489         for it.  Call tolower appropriately.
490         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
491         Choose the right index version for mapped_index_string_hash.
492         (dwarf2_read_index): Support also the index version 5.  Initialize the
493         new struct mapped_index field version.
494         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
495         (find_slot): Explain the version needs.  Pass INT_MAX for the new
496         parameter.
497         (write_psymtabs_to_index): Produce version 5.
498         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
499         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
500         * psymtab.c (lookup_partial_symbol): Find the
501         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
502         entries.
503         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
504         NAME lowercasing.
505         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
506         (completion_list_add_name): New variable ncmp, initialize it, use it.
507         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
508         * utils.c (strcmp_iw): Support case_sensitive_off.
509         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
510         New function comment part.  New variables saved_string1,
511         saved_string2 and case_pass.  Add a proper second pass.
512
513 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
514
515         Replace re_comp/re_exec by regcomp/regexec.
516         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
517         (search_symbols_name_matches): Use them, use regexec.
518         (search_symbols): New variable retval_chain, adjust the use of
519         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
520         search_symbols_data fields, use regexec instead of re_exec.
521
522 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
523
524         Format the code for the next patch.
525         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
526         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
527         New variables c1 and c2.
528
529 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
530
531         * infrun.c (proceed): Do not single-step into signal delivery
532         when stepping off a breakpoint location.
533         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
534         (insert_step_resume_breakpoint_at_caller): Likewise.
535         (insert_step_resume_breakpoint_at_sal): Likewise.
536         (insert_longjmp_resume_breakpoint): Likewise.
537
538 2011-04-27  Yao Qi  <yao@codesourcery.com>
539
540         * common/linux-ptrace.h: Remove include <sys/wait.h>.
541
542 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
543
544         * procfs.c (procfs_pass_signals): Fix advance declaration.
545
546 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
547
548         * target.h (struct target_ops): Remove to_notice_signals;
549         add to_pass_signals.
550         (target_notice_signals): Remove.
551         (target_pass_signals): Add prototype.
552         * target.c (update_current_target): Remove to_notice_signals;
553         mention to_pass_signals.
554         (target_pass_signals): New function.
555         (debug_to_notice_signals): Remove.
556         (setup_target_debug): Do not install debug_to_notice_signals.
557
558         * infrun.c (signal_pass): New global.
559         (resume): Call target_pass_signals.
560         (handle_inferior_event): Report all signals while stepping over
561         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
562         are re-inserted when stepping over a signal handler.
563         (signal_cache_update): New function.
564         (signal_stop_update): Call it.
565         (signal_print_update): Likewise.
566         (signal_pass_update): Likewise.
567         (handle_command): Call signal_cache_update and target_pass_signals
568         instead of target_notice_signals.
569         (_initialize_infrun): Initialize signal_pass.
570
571         * linux-nat.c (pass_mask): New global.
572         (linux_nat_pass_signals): New function.
573         (linux_nat_create_inferior): Report all signals initially.
574         (linux_nat_attach): Likewise.
575         (linux_nat_resume): Use pass_mask to decide whether to directly
576         handle an inferior signal.
577         (linux_nat_wait_1): Likewise.
578         (linux_nat_add_target): Install to_pass_signals callback.
579
580         * nto-procfs.c (notice_signals): Remove.
581         (procfs_resume): Do not call notice_signals.
582         (procfs_notice_signals): Remove.
583         (procfs_pass_signals): New function.
584         (init_procfs_ops): Install to_pass_signals callback instead of
585         to_notice_signals callback.
586         (_initialize_procfs): Report all signals initially.
587
588         * procfs.c (procfs_notice_signals): Remove.
589         (procfs_pass_signals): New function.
590         (procfs_target): Install to_pass_signals callback instead of
591         to_notice_signals callback.
592         (register_gdb_signals): Remove.
593         (procfs_debug_inferior): Report all signals initially.
594         (procfs_init_inferior): Remove redundant register_gdb_signals call.
595
596         * remote.c (remote_pass_signals): Add numsigs and pass_signals
597         parameters; use them instead of calling signal_..._state routines.
598         (remote_notice_signals): Remove.
599         (remote_start_remote): Report all signals initially.
600         (remote_resume): Do not call remote_pass_signals.
601         (_initialize_remote): Install to_pass_signals callback instead of
602         to_notice_signals callback.
603
604 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
605
606         * breakpoint.c (user_settable_breakpoint): Delete.
607         (user_breakpoint_p): Remove check on user_settable_breakpoint.
608         (delete_command): Check user_breakpoint_p instead of looking at
609         the breakpoint's type.
610         (disable_command): Ditto.
611         (enable_command): Ditto.
612         (delete_trace_command): Use user_breakpoint_p instead of looking
613         at the breakpoint number directly.  When checking if there are
614         user visible tracepoints, in order to know whether to ask the user
615         for confirmation, check whether the breakpoint is actually a
616         tracepoint.
617
618 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
619
620         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
621         compilation.
622
623 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
624
625         MI breakpoint notifications.
626
627         * annotate.c (breakpoint_changed): Adjust parameter type.
628         * breakpoint.c (set_breakpoint_condition): Adjust to change
629         in breakpoint_modified type.
630         (breakpoint_set_commands): Likewise.
631         (do_map_commands_command): Likewise.
632         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
633         changed after bumping hit count.
634         (bpstat_stop_status): Likewise.
635         (print_one_breakpoint_location): Don't wrap in tuple here.
636         (print_one_breakpoint): Always print individual locations.
637         For locations, use unnamed tuple.
638         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
639         has changed.
640         (create_catchpoint, create_syscall_event_catchpoint): Call
641         breakpoint_created obsever.
642         (mention): Don't call breakpoint_created observer.
643         (create_breakpoint_sal): Call breakpoint_created observer.
644         (create_breakpoint, watch_command_1): Likewise.
645         (create_ada_exception_breakpoint): Likewise.
646         (delete_breakpoint): Call breakpoint_deleted breakpoint.
647         (locations_are_equal): New.
648         (update_breakpoint_locations): If locations were changed, notify.
649         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
650         Call breakpoint_modified observer.
651
652         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
653         (mi_cmd_break_insert): Don't set observers for modify and delete.
654         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
655         (mi_breakpoint_created, mi_breakpoint_deleted)
656         (mi_breakpoint_modified): New.
657         (mi_interpreter_init): Hook the above.
658         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
659         while -break-* commands are executing.
660         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
661         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
662         (mi_redirect): New.
663         (mi_ui_out_impl): Hook in mi_redirect.
664         (mi_field_skip): True to the name, skip the field, don't output
665         a field with an empty value.
666
667         * python/py-breakpoint.c (gdbpy_breakpoint_created)
668         (gdbpy_breakpoint_deleted): Adjust.
669         * tui/tui-hooks.c (tui_event_create_breakpoint)
670         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
671
672 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
673
674         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
675         (procfs_remove_hw_watchpoint): Likewise.
676
677 2011-04-26  Michael Walle  <michael@walle.cc>
678
679         * remote.c (remote_start_remote): Ack packet after sending the
680         interrupt sequence.
681
682 2011-04-26  Yao Qi  <yao@codesourcery.com>
683
684         * linux-nat.c: Move common macros to ...
685         Include linux-ptrace.h.
686         * common/linux-ptrace.h: ... here.  New.
687
688 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
689
690         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
691         !objfile_has_partial_symbols.  New comment.
692         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
693         SYM_READ_PSYMBOLS is not present. Extend the comment.
694         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
695
696 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
697
698         * defs.h (ENUM_BITFIELD): Remove.
699
700 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
701             Eli Zaretskii  <eliz@gnu.org>
702
703         * NEWS: Document the new gdbserver --once option.
704
705 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
706
707         * MAINTAINERS: Update my email address.
708
709 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
710
711         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
712         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
713         function call if __STDC_ISO_10646__ macro is defined.
714         (intermediate_encoding): New prototype.
715         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
716         to generate compile time error for unsupported gdb_wchar_t size.
717         (ENDIAN_SUFFIX): New macro.
718         (intermediate_encoding): New function.
719
720 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
721
722         * ada-lang.c (struct add_partial_datum): Update the comment for
723         expand_partial_symbol_name.
724         (ada_add_partial_symbol_completions): Rename to ...
725         (ada_expand_partial_symbol_name): ... here, change return type, update
726         function comment, call symbol_completion_match instead of
727         symbol_completion_add.
728         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
729         and ada_expand_partial_symbol_name.
730         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
731         FILE_MATCHER.
732         (dw2_map_symbol_names): Remove.
733         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
734         * psymtab.c (map_symbol_names_psymtab): Remove.
735         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
736         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
737         order.
738         (psym_functions): Unlist map_symbol_names_psymtab.
739         (map_partial_symbol_names): Rename to ...
740         (expand_partial_symbol_names): ... here, change the FUN type, call
741         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
742         * psymtab.h (map_partial_symbol_names): Rename to ...
743         (expand_partial_symbol_names): ... here, change the FUN type.
744         * symfile.h (struct quick_symbol_functions): Update the description of
745         expand_symtabs_matching.  Remove map_symbol_names.
746         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
747         (struct add_name_data): Update the comment for
748         expand_partial_symbol_name.
749         (add_partial_symbol_name): Rename to ...
750         (expand_partial_symbol_name): ... here.  Replace
751         completion_list_add_name call by strncmp.
752         (default_make_symbol_completion_list_break_on): Use now
753         expand_partial_symbol_names and expand_partial_symbol_name.
754         * symtab.h (enum search_domain): New element ALL_DOMAIN.
755
756 2011-04-20  Tom Tromey  <tromey@redhat.com>
757
758         * dwarf2read.c (save_gdb_index_command): Replace format
759         documentation with a pointer to the manual.
760
761 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
762
763         * regcache.c: Include remote.h.
764         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
765         (regcache_dump): Handle regcache_dump_remote.
766         (maintenance_print_remote_registers): New function.
767         (_initialize_regcache): Install "maint print remote-registers"
768         command.
769         * remote.c (map_regcache_remote_table): New function, factored out
770         from ...
771         (init_remote_state): ... here.
772         (remote_register_number_and_offset): New.
773         * remote.h (remote_register_number_and_offset): Declare.
774
775 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
776
777         * regcache.c (get_thread_arch_regcache): If creating a regcache for
778         null_ptid, assume and allow a NULL address space, instead of
779         asking the target for the ptid's address space.
780         * infrun.c (ptid_is_pid): Remove assertion.
781
782 2011-04-19  Tom Tromey  <tromey@redhat.com>
783
784         * windows-tdep.c (windows_xfer_shared_library):
785         * windows-nat.c (get_module_name, windows_make_so):
786         * v850-tdep.c (v850_handle_pushm):
787         * utils.c (null_cleanup, gdb_realpath):
788         * ui-out.c (get_next_header):
789         * tracepoint.c (clear_traceframe_info):
790         * symtab.c (lookup_symtab):
791         * serial.h (struct serial_ops):
792         * mipsread.c (read_alphacoff_dynamic_symtab):
793         * infcmd.c (print_return_value):
794         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
795         * f-exp.y (parse_number):
796         * exceptions.c (catch_exceptions):
797         * dummy-frame.c (dummy_frame_this_id):
798         * defs.h (struct cleanup):
799         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
800         * arm-tdep.c (arm_push_dummy_call):
801         * amd64-tdep.h (amd64_collect_xsave):
802         * amd64-tdep.c (amd64_collect_xsave):
803         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
804         * README (typing): Remove duplicate words.
805         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
806         * infrun.c (siginfo_value_read): Fix typo.
807         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
808         * top.c (source_line_number): Add comma.
809
810 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
811
812         * thread.c (any_live_thread_of_process): Prioritize threads
813         that are not executing.
814         * gdbthread.h (any_live_thread_of_process): Update comment
815         as per above change.
816
817 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
818
819         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
820         (scan_xcoff_symtab): Likewise.
821
822 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
823
824         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
825         inside if clause.
826
827 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
828             Pedro Alves  <pedro@codesourcery.com>
829
830         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
831         variables to simplify code and avoid == operator at end of
832         line as this is against GNU coding standards.
833
834 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
835
836         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
837         lm_name to name_lm to avoid conflict with lm_name function.
838
839 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
840
841         ARI fixes: Use only lowercase function name for static functions.
842         * nto-tdep.c (LM_ADDR): Rename to...
843         (lm_addr): New function name.
844         (nto_relocate_section_addresses): Adapt to change above.
845         * solib-sunos.c (LM_ADDR): Rename to...
846         (lm_addr): New function name.
847         (LM_NEXT): Rename to...
848         (lm_next): New function name.
849         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
850         function name changes above.
851         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
852         (lm_addr_from_link_map): New function name.
853         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
854         (has_lm_dynamic_from_link_map): New function name.
855         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
856         (lm_dynamic_from_link_map): New function name.
857         (LM_ADDR_CHECK): Rename to...
858         (lm_addr_check): New function name.
859         (LM_NEXT): Rename to...
860         (lm_next): New function name.
861         (LM_PREV): Rename to...
862         (lm_prev): New function name.
863         (LM_NAME): Rename to...
864         (lm_name): New function name.
865         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
866         (ignore_first_link_map_entry): New function name.
867         (svr4_keep_data_in_core): Adapt to function name changes above.
868         (svr4_current_sos): Likewise.
869         (enable_break): Likewise.
870         (svr4_relocate_section_addresses): Likewise.
871
872 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
873
874         ARI cleanup.
875         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
876         sprintf. Simplify code and avoid loosing memory.
877         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
878         (call0_frame_cache): Remove && operator from end of line.
879
880 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
881
882         Fix libraries displacement if they change whether they were prelinked.
883         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
884         does not match.  Comment why.
885
886 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
887
888         * corelow.c: Include wrapper.h.
889         (core_open): Call now gdb_target_find_new_threads.
890         * wrapper.c: Include target.h.
891         (gdb_target_find_new_threads): New.
892         * wrapper.h (gdb_target_find_new_threads): New declaration.
893
894 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
895
896         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
897         even if !TARGET_HAS_EXECUTION.
898
899 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
900
901         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
902         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
903         bfd_get_synthetic_symtab.
904         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
905         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
906         parameter parent, remove the call to add_separate_debug_objfile.
907         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
908         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
909         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
910         parent, new comment for it, call add_separate_debug_objfile for it.
911         (symbol_file_add_separate): Pass objfile as the parameter parent,
912         remove the call to add_separate_debug_objfile.
913         (symbol_file_add_from_bfd): New parameter parent, pass it.
914         (symbol_file_add): Pass NULL to the new parameter parent.
915         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
916
917 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
918
919         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
920         BSF_SYNTHETIC.
921
922 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
923
924         Fix Python access to inlined frames.
925         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
926         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
927
928 2011-04-15  Tom Tromey  <tromey@redhat.com>
929
930         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
931
932 2011-04-15  Gary Benson  <gbenson@redhat.com>
933
934         * MAINTAINERS: Add myself to write-after-approval section.
935
936 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
937
938         * remote-sim.c (sim_command_completer): New function.
939         (_initialize_remote_sim): Set completer to sim_command_completer.
940
941 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
942
943         * breakpoint.c (print_exception_catchpoint): Rename to ...
944         (print_it_exception_catchpoint): ... this.
945         (gnu_v3_exception_catchpoint_ops): Update with new name
946         for print_it_exception_catchpoint.
947
948 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
949
950         * MAINTAINERS: Add myself for write after approval privileges.
951
952 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
953
954         * MAINTAINERS: Add myself as a write-after-approval maintainer.
955
956 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
957
958         * breakpoint.c (watch_command_1): Remove colon from exp_string.
959
960 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
961
962         * breakpoint.c (save_breakpoints): Verify whether
963         breakpoint_ops.print_recreate is defined before calling it.
964
965 2011-04-11  Gary Benson  <gbenson@redhat.com>
966
967         Fix failure with --enable-maintainer-mode.
968         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
969
970 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
971
972         Code cleanup.
973         * symtab.c (search_symbols): Reorder the KIND description in the
974         function comment.  Remove the unused 4th element of types, types2,
975         types3 and types4.  New gdb_assert on KIND.
976         (symtab_symbol_info): Remove the unused 4th element of classnames.
977         New gdb_assert on KIND.
978         * symtab.h (enum search_domain): New warning in the enum comment.
979         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
980         TYPES_DOMAIN.
981
982 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
983
984         Fix crash of gdb save-index on a STABS file.
985         * dwarf2read.c (write_psymtabs_to_index): Return also on no
986         PSYMTABS_ADDRMAP.
987
988 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
989
990         Fix DW_AT_accessibility compatibility with gcc-4.6+.
991         * dwarf2read.c: Include ctype.h.
992         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
993         functions.
994         (dwarf2_add_field): Fix new_field->accessibility by calling
995         dwarf2_default_access_attribute.  Restructure setting accessibility
996         vs. virtuality.
997         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
998         is_private and is_protected by calling
999         dwarf2_default_access_attribute.
1000
1001 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
1002
1003         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1004         to the initialization.
1005
1006 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
1007
1008         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1009         initalization.
1010
1011 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
1012
1013         Remove support for old Cygwin 1.5 versions.
1014         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1015         function on old Cygwin version.
1016         * windows-nat.c: Remove cygwin version check and always define
1017         __USEWIDE for Cygwin compilation.
1018
1019 2011-04-07  Yao Qi  <yao@codesourcery.com>
1020
1021         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1022         and TO.
1023         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1024         (arm_copy_svc): Remove parameters INSN and TO.
1025         (decode_svc_copro): Update caller.
1026         * arm-tdep.h (struct displaced_step_closure): Remove parameters
1027         from function pointer `copy_svc_os'.
1028
1029 2011-04-07  Yao Qi  <yao@codesourcery.com>
1030
1031         * arm-tdep.c (cleanup_branch): Set a correct return address in
1032         LR for ARM and Thumb.
1033
1034 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1035
1036         Code cleanup.
1037         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1038         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1039         in the function comment, a new note on values compatibility.
1040         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1041         * symtab.h (SYMBOL_HASH_NEXT): New.
1042
1043 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1044
1045         * ppc-linux-nat.c (check_condition): Add len output parameter.
1046         Set it based on the memory region referenced in the condition
1047         expression.  Update all callers.
1048
1049 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1050
1051         Fix crash regression on systems featuring .gdb_index.
1052         * objfiles.c (free_objfile): Move the
1053         forget_cached_source_info_for_objfile call earlier.  Comment it.
1054         Extend the comment for objfile_free_data.
1055
1056 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1057
1058         Fix regression of displaying the debug format.
1059         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1060         subfile.
1061
1062 2011-04-04  Tom Tromey  <tromey@redhat.com>
1063
1064         * cli/cli-interp.c (struct captured_execute_command_args):
1065         Remove.
1066         (do_captured_execute_command): Remove.
1067         (safe_execute_command): Use TRY_CATCH.
1068         * cli/cli-script.c (struct wrapped_read_command_file_args):
1069         Remove.
1070         (wrapped_read_command_file): Remove.
1071         (script_from_file): Use TRY_CATCH.
1072         * exceptions.c (catch_exception): Remove.
1073         * exceptions.h (catch_exception): Remove.
1074         (deprecated_throw_reason): Update comment.
1075         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1076         argument to 'context'.
1077         (mi_execute_command): Use TRY_CATCH.
1078         * remote.c (struct start_remote_args): Remove.
1079         (remote_start_remote): Update; change arguments.
1080         (remote_open_1): Use TRY_CATCH.
1081
1082 2011-04-04  Tom Tromey  <tromey@redhat.com>
1083
1084         * tracepoint.c (scope_info): Update.
1085         * symtab.c (decode_line_spec): Update.
1086         * python/python.c (gdbpy_decode_line): Update.
1087         * linespec.h (decode_line_1): Update.
1088         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1089         (decode_compound, find_method, symtab_from_filename)
1090         (decode_variable): Likewise.
1091         * cli/cli-cmds.c (edit_command): Update.
1092         (list_command): Update.
1093         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1094         argument.
1095         (create_breakpoint): Update.
1096         (until_break_command): Update.
1097         (addr_string_to_sals): Update.
1098         (decode_line_spec_1): Update.
1099
1100 2011-04-04  Tom Tromey  <tromey@redhat.com>
1101
1102         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1103         (do_captured_parse_breakpoint): Remove.
1104         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
1105         Use TRY_CATCH directly.
1106
1107 2011-04-04  Tom Tromey  <tromey@redhat.com>
1108
1109         * symtab.h (free_symtab): Remove.
1110         (forget_cached_source_info_for_objfile): Declare.
1111         * symmisc.c (free_symtab): Remove.
1112         * source.c (forget_cached_source_info_for_objfile): New function.
1113         (forget_cached_source_info): Use it.
1114         * objfiles.c (free_objfile): Simplify check before calling
1115         clear_current_source_symtab_and_line.  Call
1116         forget_cached_source_info_for_objfile.
1117
1118 2011-04-04  Tom Tromey  <tromey@redhat.com>
1119
1120         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1121         (new_symtab): Don't set `free_code' on symtab.
1122         (new_linetable): Properly handle size==0.
1123         * symtab.h (struct symtab) <free_code, free_func>: Remove.
1124         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
1125         free_func.
1126         * jv-lang.c (struct jv_per_objfile_data): New.
1127         (jv_per_objfile_free): Free the data.
1128         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1129         (get_java_class_symtab): Set the `dict' field on the
1130         jv_per_objfile_data.
1131         (free_class_block): Remove.
1132         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1133         the symtab.
1134
1135 2011-04-04  Tom Tromey  <tromey@redhat.com>
1136
1137         * symfile.c (reread_symbols): Update.
1138         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1139         field.
1140         * objfiles.c (allocate_objfile): Update.
1141         * cp-support.h (cp_check_possible_namespace_symbols): Don't
1142         declare.
1143         * cp-namespace.c (lookup_symbol_file): Don't call
1144         lookup_possible_namespace_symbol.
1145         (initialize_namespace_symtab, get_possible_namespace_block)
1146         (free_namespace_block, cp_check_possible_namespace_symbols)
1147         (check_possible_namespace_symbols_loop)
1148         (check_one_possible_namespace_symbol)
1149         (lookup_possible_namespace_symbol): Remove.
1150         (maintenance_cplus_namespace): Replace with notice.
1151         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1152
1153 2011-04-04  Tom Tromey  <tromey@redhat.com>
1154
1155         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1156         * symtab.h (struct symtab) <producer, debugformat>: Now const.
1157         * symmisc.c (free_symtab): Don't free debugformat.
1158         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1159         (record_debugformat, record_producer): Document.
1160         * buildsym.c (end_symtab): Don't save debugformat and producer
1161         names on obstack.
1162         (end_symtab): Don't free debugformat and producer fields.
1163         (record_debugformat): Don't call xstrdup.
1164         (record_producer): Likewise.
1165
1166 2011-04-04  Tom Tromey  <tromey@redhat.com>
1167
1168         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1169         (source_line_charpos, source_charpos_line): Remove.
1170
1171 2011-04-04  Tom Tromey  <tromey@redhat.com>
1172
1173         * symtab.h (domain_enum): Split in two...
1174         (enum search_domain): New.
1175         (search_symbols): Update.
1176         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1177         redundant declarations.
1178         (search_symbols): Change 'kind' argument to search_domain.
1179         Update.
1180         (print_symbol_info): Likewise.
1181         (symtab_symbol_info): Likewise.
1182         * symfile.h (struct quick_symbol_functions)
1183         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1184         <expand_symtabs_matching>: Likewise.
1185         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1186         (expand_symtabs_matching_via_partial): Update.
1187         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1188         (dw2_expand_symtabs_for_function): Update.
1189         * block.h: Moved anonymous enum...
1190         * defs.h (enum block_enum): ... here.  Now named.
1191
1192 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
1193
1194         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1195         * version.in: Bump version to 7.3.50.20110403-cvs.
1196
1197 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
1198
1199         * NEWS: Create a new section for the next release branch.
1200         Rename the section of the current branch, now that it has
1201         been cut.
1202
1203 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
1204
1205         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1206         for "fpscr" in target description.
1207
1208 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1209
1210         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1211         initialize it.  Delay HASH initialization.  Strip the part after open
1212         parenthesis for languages with qualifiers.  Call do_cleanups.
1213
1214 2011-04-01  Tom Tromey  <tromey@redhat.com>
1215
1216         * utils.c (report_command_stats): Don't print `-' for negative
1217         number.
1218
1219 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
1220
1221         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1222         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1223         typedefs.
1224
1225 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
1226
1227         * breakpoint.h (bpdisp_text): Add declaration.
1228         * breakpoint.c (bpdisp_text): Make non-static.
1229         * ada-lang.c: #include "mi/mi-common.h".
1230         (print_it_exception): Rewrite to improve GDB/MI output.
1231
1232 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
1233
1234         * arm-tdep.h (struct address_space): Add forward declaration.
1235
1236 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
1237
1238         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1239         * arm-tdep.c (arm_override_mode): New global.
1240         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
1241         execution mode heuristics.
1242         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1243         second single-step breakpoint if needed, using
1244         arm_insert_single_step_breakpoint.
1245         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
1246         ARM execution mode, do not call thumb_get_next_pc_raw.
1247         (arm_get_next_pc): Encode execution mode in return value.  Call
1248         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1249         (arm_insert_single_step_breakpoint): New function.
1250         (arm_software_single_step): Call it.
1251         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1252         argument to return execution mode of sigreturn target.
1253         (arm_linux_syscall_next_pc): Use it.
1254         (arm_linux_copy_svc): Update call.
1255         (arm_linux_software_single_step): Call
1256         arm_insert_single_step_breakpoint.
1257
1258 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1259
1260         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1261         the comment.
1262
1263 2011-03-31  Tom Tromey  <tromey@redhat.com>
1264
1265         * varobj.c (update_dynamic_varobj_children): Properly handle
1266         errors from iterator.
1267
1268 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1269
1270         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
1271         struct linkage name twice.
1272
1273 2011-03-31  Tom Tromey  <tromey@redhat.com>
1274
1275         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1276         missing ">" to message.
1277
1278 2011-03-31  Tom Tromey  <tromey@redhat.com>
1279
1280         * varobj.c (instantiate_pretty_printer): Remove duplicate
1281         'return'.
1282
1283 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
1284
1285         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1286         if neither saved value nor register available (e.g. signal frame).
1287
1288 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1289
1290         * macroexp.c (expand): Avoid uninitialized variable
1291         compiler warning.
1292
1293 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1294
1295         * breakpoint.c (break_range_command): Fix typo in comment.
1296
1297 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1298             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
1299
1300         Implement support for PowerPC BookE ranged breakpoints.
1301         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1302         * breakpoint.h (struct bp_target_info) <length>: New member
1303         variable.
1304         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1305         instead of struct breakpoint as argument, and also add ASPACE
1306         and BP_ADDR arguments.  Update all callers.
1307         (struct breakpoint_ops) <print_one_detail>: New method.
1308         (struct breakpoint) <addr_string_range_end>: New member variable.
1309         * breakpoint.c (breakpoint_location_address_match): Add function
1310         prototype.
1311         (insert_bp_location): Set bl->target_info.length.
1312         (breakpoint_here_p): Call breakpoint_location_address_match.
1313         (moribund_breakpoint_here_p): Likewise.
1314         (regular_breakpoint_inserted_here_p): Likewise.
1315         (breakpoint_thread_match): Likewise.
1316         (bpstat_stop_status): Likewise.
1317         (bpstat_check_location): Move call to
1318         breakpoint_ops.breakpoint_hit to the top.
1319         (print_one_breakpoint_location): Call
1320         breakpoint_ops.print_one_detail if available.
1321         (breakpoint_address_match_range): New function.
1322         (breakpoint_location_address_match): Likewise.
1323         (breakpoint_locations_match): Compare the length field of the
1324         locations too.
1325         (hw_breakpoint_used_count): Count resources used by all locations
1326         in a breakpoint, and use breakpoint_ops.resources_needed if
1327         available.
1328         (breakpoint_hit_ranged_breakpoint): New function.
1329         (resources_needed_ranged_breakpoint): Likewise.
1330         (print_it_ranged_breakpoint): Likewise.
1331         (print_one_ranged_breakpoint): Likewise.
1332         (print_one_detail_ranged_breakpoint): Likewise.
1333         (print_mention_ranged_breakpoint): Likewise.
1334         (print_recreate_ranged_breakpoint): Likewise.
1335         (ranged_breakpoint_ops): New structure.
1336         (find_breakpoint_range_end): New function.
1337         (break_range_command): Likewise.
1338         (delete_breakpoint): Free addr_string_range_end.
1339         (update_breakpoint_locations): Add SALS_END argument.  Update
1340         all callers.  Calculate breakpoint length if a non-zero SALS_END
1341         is given.  Call breakpoint_locations_match instead of
1342         breakpoint_address_match.
1343         (reset_breakpoint): Find SaL of the end of the range if B is a
1344         ranged breakpoint.
1345         (_initialize_breakpoint): Register break-range command.
1346         * defs.h (print_core_address): Add function prototype.
1347         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1348         function.
1349         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1350         (ppc_linux_remove_hw_breakpoint): Likewise.
1351         (_initialize_ppc_linux_nat): Initialize
1352         to_ranged_break_num_registers.
1353         * target.c (update_current_target): Add comment about
1354         to_ranged_break_num_registers.
1355         (target_ranged_break_num_registers): New function.
1356         * target.h (struct target_ops) <to_ranged_break_num_registers>:
1357         New method.
1358         (target_ranged_break_num_registers): Add function prototype.
1359         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1360         * utils.c (print_core_address): ... here.
1361
1362 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
1363
1364         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1365         variable compiler warning.
1366
1367 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1368
1369         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1370         code from here ...
1371         (re_set_breakpoint): ... to here ...
1372         (addr_string_to_sals): ... and here.
1373
1374 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
1375
1376         * Makefile.in (SFILES): Add missing C sources.
1377         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1378         Add missing headers.
1379
1380 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
1381
1382         * .gitignore: New file.
1383
1384 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
1385
1386         * NEWS: Mention new cfi device simulation.
1387
1388 2011-03-29  Tom Tromey  <tromey@redhat.com>
1389
1390         * dwarf2read.c (fixup_partial_die): Handle linkage name on
1391         otherwise anonymous types.
1392         (dwarf2_name): Likewise.
1393         * valops.c (value_struct_elt_for_reference): Refine artificial
1394         type logic.  Call error if j==-1.
1395
1396 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
1397
1398         Fix false GCC warning.
1399         * infcall.c (find_function_addr): Initialize funaddr.
1400
1401 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
1402
1403         Fix mingw compilation with --enable-targets=all.
1404         * remote-mips.c (gdb_usleep.h): Include header.
1405         (mips_enter_debug): Use gdb_usleep instead of sleep.
1406
1407 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1408
1409         Support resolution of STT_GNU_IFUNC via breakpoints.
1410         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1411         bp_gnu_ifunc_resolver_return.
1412         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1413         the loop.  Support bp_gnu_ifunc_resolver and
1414         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
1415         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1416         breakpoints.
1417         (bptype_string, print_one_breakpoint_location): Support
1418         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1419         (user_settable_breakpoint): Return true also for
1420         bp_gnu_ifunc_resolver.
1421         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1422         bp_gnu_ifunc_resolver_return.
1423         (set_breakpoint_location_function): New parameter explicit_loc,
1424         describe it.  Call find_pc_partial_function_gnu_ifunc with new
1425         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1426         EXPLICIT_LOC is not set.
1427         (set_raw_breakpoint): Set EXPLICIT_LOC for
1428         set_breakpoint_location_function.
1429         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1430         set_breakpoint_location_function.
1431         (mention): Support bp_gnu_ifunc_resolver and
1432         bp_gnu_ifunc_resolver_return.
1433         (add_location_to_breakpoint): Set EXPLICIT_LOC for
1434         set_breakpoint_location_function.
1435         (update_breakpoint_locations): Remove static.
1436         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1437         bp_gnu_ifunc_resolver_return.
1438         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1439         bp_gnu_ifunc_resolver_return.
1440         (update_breakpoint_locations): New declaration.
1441         * elfread.c: Include gdbthread.h and regcache.h.
1442         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1443         functions.
1444         (elf_gnu_ifunc_fns): Install them.
1445         * minsyms.c (stub_gnu_ifunc_resolver_stop)
1446         (stub_gnu_ifunc_resolver_return_stop): New functions.
1447         (stub_gnu_ifunc_fns): Install them.
1448         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1449         and gnu_ifunc_resolver_return_stop.
1450         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1451
1452 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1453
1454         STT_GNU_IFUNC reader implementation.
1455         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1456         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1457         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1458         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1459         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1460         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1461         (elf_gnu_ifunc_resolve_addr): New.
1462         (elf_symfile_read): Call elf_rel_plt_read.
1463         (elf_gnu_ifunc_fns): New.
1464         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1465         Install elf_gnu_ifunc_fns.
1466         * infcall.c (find_function_return_type): New function.
1467         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1468         * minsyms.c (stub_gnu_ifunc_resolve_addr)
1469         (stub_gnu_ifunc_resolve_name): New functions.
1470         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1471         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1472         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1473
1474 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1475
1476         Code cleanup for later STT_GNU_IFUNC support.
1477         * infcall.c (find_function_addr): Remove variable code, use explicit
1478         dereferences for it.  Move VALUE_TYPE initialization later.
1479
1480 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1481
1482         GDB find_pc_partial_function support for STT_GNU_IFUNC.
1483         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1484         (clear_pc_function_cache): Clear it.
1485         (find_pc_partial_function): Rename to ...
1486         (find_pc_partial_function_gnu_ifunc): ... this function.  New
1487         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
1488         (find_pc_partial_function): New wrapper for this function.
1489         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1490
1491 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1492
1493         GDB internal type support for STT_GNU_IFUNC.
1494         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1495         (elf_symtab_read): Set mst_text_gnu_ifunc for
1496         BSF_GNU_INDIRECT_FUNCTION.
1497         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1498         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1499         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1500         nodebug_got_plt_symbol.
1501         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1502         (TYPE_GNU_IFUNC): New.
1503         (struct main_type): New field flag_gnu_ifunc.
1504         (struct builtin_type): New field builtin_func_func.
1505         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1506         nodebug_got_plt_symbol.
1507         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1508         (in_gnu_ifunc_stub): New.
1509         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1510         mst_text_gnu_ifunc.
1511         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
1512         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
1513         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1514         in_gnu_ifunc_stub.
1515         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1516         * symtab.c (search_symbols): Likewise.
1517         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1518         and mst_slot_got_plt.
1519         (in_gnu_ifunc_stub): New declaration.
1520
1521 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1522
1523         Support a ring of related breakpoints.
1524         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1525         other functions, add gdb_assert.
1526         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
1527         watchpoint_del_at_next_stop.
1528         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1529         (bpstat_stop_status): Handle ring in related_breakpoint.
1530         (set_raw_breakpoint_without_location): Initialize ring in
1531         related_breakpoint.
1532         (delete_breakpoint): Handle ring in related_breakpoint, use
1533         watchpoint_del_at_next_stop.
1534         (map_breakpoint_numbers): Handle ring in related_breakpoint.
1535
1536 2011-03-28  Tom Tromey  <tromey@redhat.com>
1537
1538         PR symtab/12441:
1539         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1540         with `language_minimal'.
1541
1542 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
1543
1544         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1545         instead of checking for STT_ARM_TFUNC symbol type.
1546
1547 2011-03-25  Tom Tromey  <tromey@redhat.com>
1548
1549         * linespec.c (symbol_found): Restore line-based result for
1550         non-LOC_LABEL symbols.
1551
1552 2011-03-25  Kai Tietz  <ktietz@redhat.com>
1553
1554         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1555         instead of strcmp for comparison.
1556         (tui_source_is_displayed): Likewise.
1557         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1558
1559 2011-03-24  Mark Wielaard  <mjw@redhat.com>
1560
1561         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1562         complaint.
1563         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1564         (find_partial_die_in_comp_unit): Likewise in comment.
1565         (read_attribute_value): Likewise.
1566         (lookup_die_type): Likewise.
1567         (dwarf_form_name): Likewise.
1568         (dump_die_shallow): Likewise.
1569         (follow_die_ref_or_sig): Likewise.
1570
1571 2011-03-24  Tom Tromey  <tromey@redhat.com>
1572
1573         PR breakpoints/11816:
1574         * linespec.c (decode_line_1): Parse `function:label' linespecs.
1575         (decode_compound): Update.
1576         (find_function_symbol): New function.
1577         (decode_dollar): Update.
1578         (decode_label): Add 'function_symbol' parameter.  Handle
1579         function-relative labels.
1580         (decode_variable): Update.
1581         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
1582         not its line.  Set `special_display' and canonical name for
1583         labels.
1584
1585 2011-03-24  Tom Tromey  <tromey@redhat.com>
1586
1587         * linespec.h (struct linespec_result) <special_display>: New
1588         field.
1589         * breakpoint.h (struct breakpoint) <display_canonical>: New
1590         field.
1591         * breakpoint.c (print_breakpoint_location): Respect
1592         display_canonical.
1593         (create_breakpoint_sal): Add 'display_canonical' parameter.
1594         (create_breakpoints_sal): Update.
1595         (create_breakpoint): Update.
1596
1597 2011-03-24  Tom Tromey  <tromey@redhat.com>
1598
1599         * symtab.c (decode_line_spec): Update.
1600         * linespec.c (build_canonical_line_spec): Change type of
1601         'canonical'.
1602         (decode_line_2, decode_line_1, decode_objc, decode_compound)
1603         (find_method, decode_all_digits, decode_dollar, decode_label)
1604         (symbol_found): Likewise.
1605         (init_linespec_result): New function.
1606         * breakpoint.c (struct captured_parse_breakpoint_args)
1607         <canonical_p>: New field, replaces addr_string_p.
1608         (create_breakpoints_sal): Add 'canonical' parameter, replacing
1609         'addr_string'.
1610         (parse_breakpoint_sals): Likewise.
1611         (do_captured_parse_breakpoint): Update.
1612         (create_breakpoint): Use struct linespec_result.
1613         (until_break_command): Update.
1614         (breakpoint_re_set_one): Update.
1615         (decode_line_spec_1): Update.
1616         * linespec.h (struct linespec_result): New.
1617         (init_linespec_result): Declare.
1618
1619 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
1620
1621         * regcache.c (regcache_raw_read): If the target didn't supply a
1622         given raw register, mark it as unavailable.
1623
1624 2011-03-23  Kai Tietz  <ktietz@redhat.com>
1625
1626         * breakpoint.c (clear_command): Use filename_cmp
1627         instead of strcmp for comparison.
1628         * buildsym.c (watch_main_source_file_lossage): Likewise.
1629         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1630         checking just for slash.
1631         * dbxread.c (read_dbx_symtab): Use lbasename instead of
1632         strrchr and filename_cmp instead of strcmp for filenames.
1633         (add_old_header_file): Use filename_cmp
1634         instead of strcmp for comparison.
1635         * exec.c (exec_set_section_address): Likewise.
1636         * macrotab.c (macro_lookup_inclusion): Likewise.
1637         (macro_lookup_inclusion): Likewise.
1638         * elfread.c (_initialize_elfread): Likewise.
1639         (elfstab_offset_sections): Likewise.
1640         (elfstab_offset_sections): Use lbasename instead of
1641         strrchr.
1642         * mdebugread.c (parse_partial_symbols): Likewise.
1643         (arse_partial_symbols): Use filename_(n)cmp instead of
1644         str(n)cmp for comparison.
1645         * minsyms.c (lookup_minimal_symbol): Likewise.
1646         * psymtab.c (read_psymtabs_with_filename): Likewise.
1647         * solib.c (solib_read_symbols): Likewise.
1648         (reload_shared_libraries_1): Likewise.
1649         * symmisc.c (maintenance_print_symbols): Likewise.
1650         * symfile.c (separate_debug_file_exists): Likewise.
1651         (reread_symbols): Likewise.
1652         (find_separate_debug_file_by_debuglink): Likewise.
1653         * remote-fileio.c (remote_fileio_func_rename): Likewise.
1654         * source.c (add_path): Likewise.
1655         * symtab.c (filename_seen): Likewise.
1656         (file_matches): Likewise.
1657         (print_symbol_info): Likewise.
1658         (maybe_add_partial_symtab_filename): Likewise.
1659         (make_source_files_completion_list): Likewise.
1660         * xml-syscall.c (init_sysinfo): Likewise.
1661         * windows-nat.c (_initialize_check_for_gdb_ini): Use
1662         IS_DIR_SEPARATOR for checking for trailing path separator.
1663
1664 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1665
1666         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
1667         label abort_expression.
1668         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1669         DWARF_VALUE_OPTIMIZED_OUT.
1670
1671 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1672
1673         Code cleanup.
1674         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1675         to linkage_name.  Invert its value.  Update the function comment.
1676         (c_type_print_varspec_suffix): Invert it at the caller.
1677         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1678
1679 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
1680
1681         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1682         errors when reading the `stop_pc'.
1683         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1684         get_frame_pc.
1685
1686 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
1687
1688         * NEWS: Document gdb.Write stream keyword.
1689
1690 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1691
1692         Revert:
1693         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1694         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1695         (dwarf2_add_field): Fix new_field->accessibility for
1696         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1697
1698 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
1699
1700         PR python/12183
1701
1702         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1703         other error classes.  Do not print stack trace.
1704
1705 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1706
1707         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1708         (dwarf2_add_field): Fix new_field->accessibility for
1709         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1710
1711 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
1712
1713         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1714         encountering a load via a non-SP register.
1715
1716 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
1717
1718         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1719         field in returned unwinder.
1720
1721 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1722
1723         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1724
1725 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
1726
1727         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1728         of xmalloc.
1729
1730 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
1731
1732         * frame.c (frame_unwind_register): Throw an error if unwinding the
1733         register failed.
1734         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1735         an unwind stop reason.
1736         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1737         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1738         UNWIND_UNAVAILABLE>: New.
1739         * inline-frame.c (inline_frame_unwind): Install
1740         default_frame_unwind_stop_reason.
1741         * frame-unwind.c: Include "exceptions.h".
1742         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1743         (default_frame_unwind_stop_reason): New.
1744         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1745         (default_frame_unwind_stop_reason): Declare.
1746         (struct frame_unwind) <stop_reason>: New function pointer.
1747
1748         * dummy-frame.c: Install default_frame_unwind_stop_reason.
1749         * dwarf2-frame.c: Include exceptions.h.
1750         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1751         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1752         computing the CFA.  If such an error was thrown, set
1753         unavailable_retaddr.
1754         (dwarf2_frame_unwind_stop_reason): New.
1755         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1756         unavailable.
1757         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1758         (dwarf2_signal_frame_unwind): Ditto.
1759
1760         * amd64-tdep.c: Include "exceptions.h".
1761         (struct amd64_frame_cache): New field "base_p".
1762         (amd64_init_frame_cache): Clear it.
1763         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1764         Avoid reading registers with functions that throw if the register
1765         is not necessary to compute the frame base.
1766         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1767         swallowing NOT_AVAILABLE_ERROR.
1768         (amd64_frame_unwind_stop_reason): New.
1769         (amd64_frame_this_id): Don't build a frame id if the frame base
1770         was unavailable.
1771         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1772         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1773         base_p if the frame base was computable.
1774         (amd64_sigtramp_frame_unwind_stop_reason): New.
1775         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1776         frame base was unavailable.
1777         (amd64_sigtramp_frame_unwind): Install
1778         amd64_sigtramp_frame_unwind_stop_reason.
1779         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1780         base_p if the frame base was computable.
1781         (amd64_epilogue_frame_unwind_stop_reason): New.
1782         (amd64_epilogue_frame_this_id): Don't build a frame id if the
1783         frame base was unavailable.
1784         (amd64_epilogue_frame_unwind): Install
1785         amd64_epilogue_frame_unwind_stop_reason.
1786         * i386-tdep.c: Include "exceptions.h".
1787         (struct i386_frame_cache): New field "base_p".
1788         (i386_init_frame_cache): Clear it.
1789         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1790         Avoid reading registers with functions that throw if the register
1791         is not necessary to compute the frame base.
1792         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1793         swallowing NOT_AVAILABLE_ERROR.
1794         (i386_frame_unwind_stop_reason): New.
1795         (i386_frame_this_id): Don't build a frame id if the frame base was
1796         unavailable.
1797         (i386_frame_prev_register): Handle unavailable SP.
1798         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1799         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1800         base_p if the frame base was computable.
1801         (i386_epilogue_frame_unwind_stop_reason): New.
1802         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1803         base was unavailable.
1804         (i386_epilogue_frame_unwind): Install
1805         i386_epilogue_frame_unwind_stop_reason.
1806         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1807         base_p if the frame base was computable.
1808         (i386_sigtramp_frame_unwind_stop_reason): New.
1809         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1810         base was unavailable.
1811         (i386_sigtramp_frame_unwind): Install
1812         i386_sigtramp_frame_unwind_stop_reason.
1813         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1814         type's size, not the register's.
1815         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1816
1817         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1818         default_frame_unwind_stop_reason.
1819         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1820         (alpha_heuristic_frame_unwind): Ditto.
1821         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1822         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1823         * avr-tdep.c (avr_frame_unwind): Ditto.
1824         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1825         Ditto.
1826         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1827         * frv-tdep.c (frv_frame_unwind): Ditto.
1828         * h8300-tdep.c (h8300_frame_unwind): Ditto.
1829         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1830         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1831         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1832         (hppa_stub_frame_unwind): Ditto.
1833         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1834         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1835         (ia64_libunwind_frame_unwind)
1836         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1837         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1838         * lm32-tdep.c (lm32_frame_unwind): Ditto.
1839         * m32c-tdep.c (m32c_unwind): Ditto.
1840         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1841         * m32r-tdep.c (m32r_frame_unwind): Ditto.
1842         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1843         * m68k-tdep.c (m68k_frame_unwind): Ditto.
1844         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1845         * m88k-tdep.c (m88k_frame_unwind): Ditto.
1846         * mep-tdep.c (mep_frame_unwind): Ditto.
1847         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1848         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1849         (mips_stub_frame_unwind): Ditto.
1850         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1851         * moxie-tdep.c (moxie_frame_unwind): Ditto.
1852         * mt-tdep.c (mt_frame_unwind): Ditto.
1853         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1854         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1855         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1856         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1857         (s390_sigtramp_frame_unwind): Ditto.
1858         * score-tdep.c (score_prologue_unwind): Ditto.
1859         * sh-tdep.c (sh_frame_unwind): Ditto.
1860         * sh64-tdep.c (sh64_frame_unwind): Ditto.
1861         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1862         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1863         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1864         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1865         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1866         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1867         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1868         (sparc64obsd_trapframe_unwind): Ditto.
1869         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1870         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1871         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1872         * v850-tdep.c (v850_frame_unwind): Ditto.
1873         * vax-tdep.c (vax_frame_unwind): Ditto.
1874         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1875         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1876         * xtensa-tdep.c (xtensa_unwind): Ditto.
1877
1878 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
1879
1880         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1881         there's always a frame.  Use get_frame_pc_if_available instead of
1882         get_frame_pc, and if there's no PC available, don't look up a
1883         symtab.
1884
1885 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
1886
1887         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1888         unavailable PC.
1889
1890 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
1891
1892         * tracepoint.c (set_traceframe_context): Handle unavailable PC
1893         gracefully.
1894
1895 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
1896
1897         * frame.h (frame_unwind_caller_pc_if_available): Declare.
1898         * frame.c (frame_unwind_caller_pc_if_available): New.
1899         * stack.c (frame_info): Handle unavailable PC.
1900
1901 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
1902
1903         * frame.c (frame_unwind_pc): Rename to ...
1904         (frame_unwind_pc_if_available): ... this.  New `pc' output
1905         parameter.  Change return type to int.  Gracefully handle
1906         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
1907         happened, or 1 otherwise.
1908         (frame_unwind_pc): Reimplement on top of
1909         frame_unwind_pc_if_available.
1910         (get_frame_func): Rename to ...
1911         (get_frame_func_if_available): New `pc' output parameter.  Change
1912         return type to int.  Gracefully handle the PC not being available.
1913         (get_frame_func): Reimplement on top of
1914         get_frame_func_if_available.
1915         (select_frame): Handle the PC being unavailable.
1916         (get_prev_frame): Handle the PC being unavailable.
1917         (get_frame_pc_if_available): New.
1918         (get_frame_address_in_block_if_available): New.
1919         (find_frame_sal): Handle the frame PC not being available.
1920         * frame.h (get_frame_pc_if_available): Declare.
1921         (get_frame_address_in_block_if_available): Declare.
1922         (get_frame_func_if_available): Declare.
1923         * stack.c (print_frame_info): Handle the PC being unavailable.
1924         (find_frame_funname): Ditto.
1925         (print_frame): Handle the PC being unavailable.
1926         (get_frame_language): Ditto.
1927         * blockframe.c (get_frame_block): Ditto.
1928         * macroscope.c (default_macro_scope): Ditto.
1929         * tui/tui-stack.c (tui_show_frame_info): Ditto.
1930
1931 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
1932
1933         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1934         NOT_AVAILABLE_ERROR when evaluating the location expression.
1935
1936 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
1937
1938         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1939         returning that the register piece is unavailable/optimized out.
1940         (write_pieced_value): Handle get_frame_register_bytes returning
1941         that the register piece is unavailable/optimized out when doing a
1942         read-modify write of a bitfield.
1943         * findvar.c (value_from_register): Handle get_frame_register_bytes
1944         returning that the register piece is unavailable/optimized out.
1945         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1946         and `unavailablep'.  Throw error on bad debug info.  Use
1947         frame_register instead of frame_register_read, to fill in the new
1948         arguments.
1949         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1950         and `unavailablep'.
1951         * valops.c: (value_assign): Adjust, and handle
1952         get_frame_register_bytes failing.
1953         * spu-tdep.c: Include exceptions.h.
1954         (spu_software_single_step): Adjust, and handle
1955         get_frame_register_bytes failing.
1956         (spu_get_longjmp_target): Ditto.
1957         * gdbarch.sh (register_to_value): Change to return int.  New
1958         parameters `optimizedp' and `unavailablep'.
1959         * gdbarch.h, gdbarch.c: Regenerate.
1960         * i386-tdep.c (i386_register_to_value): Adjust to new
1961         gdbarch_register_to_value interface.
1962         * i387-tdep.c (i387_register_to_value): Ditto.
1963         * i387-tdep.h (i387_register_to_value): Ditto.
1964         * alpha-tdep.c (alpha_register_to_value): Ditto.
1965         * ia64-tdep.c (ia64_register_to_value): Ditto.
1966         * m68k-tdep.c (m68k_register_to_value): Ditto.
1967         * mips-tdep.c (mips_register_to_value): Ditto.
1968         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1969
1970 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
1971
1972         * findvar.c (value_of_register): Mark the value as unavailable, if
1973         the register is unavailable.
1974         * frame.h (frame_register_unwind): New `unavailablep' parameter.
1975         (frame_register): New `unavailablep' parameter.
1976         (frame_register_read): Update comment.
1977         * frame.c (frame_register_unwind): New `unavailablep' parameter.
1978         Set it if the register is unavailable.  If the register is
1979         unavailable, clear the output buffer.
1980         (frame_register): New `unavailablep' parameter.  Pass it down.
1981         (frame_unwind_register): Adjust.
1982         (put_frame_register): Adjust.
1983         (frame_register_read): Adjust.  Also return false if the register
1984         is not available.
1985         (frame_register_unwind_location): Adjust.
1986         * sentinel-frame.c (sentinel_frame_prev_register): If the register
1987         is unavailable, mark the value accordingly.
1988         * stack.c (frame_info): Handle unavailable registers.
1989
1990 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
1991
1992         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1993         simplify, using regcache_cooked_read.
1994
1995 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
1996
1997         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1998         (regcache_raw_read_unsigned, regcache_raw_read_signed)
1999         (regcache_raw_read_unsigned, regcache_raw_read_part)
2000         (regcache_cooked_read, regcache_cooked_read_signed)
2001         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2002         (regcache_cooked_read_ftype): Change return to enum
2003         register_status.
2004         * regcache.c: Include exceptions.h
2005         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2006         (do_cooked_read): Change return to enum register_status.  Always
2007         forward to regcache_cooked_read.
2008         (regcache_raw_read): Change return to enum register_status.  If
2009         the register is not REG_VALID, memset the buffer.  Return the
2010         register's status.
2011         (regcache_raw_read_signed): Handle non-REG_VALID registers and
2012         return the register's status.
2013         (regcache_raw_read_unsigned): Ditto.
2014         (regcache_cooked_read): Change return to enum register_status.
2015         Assert that with read-only regcaches, the register's status must
2016         be known.  If the regcache is read-only, and the register is not
2017         REG_VALID, memset the buffer.  Return the register's status.
2018         (regcache_cooked_read_signed): Change return to enum
2019         register_status.  Handle non-REG_VALID registers and return the
2020         register's status.
2021         (regcache_cooked_read_unsigned): Change return to enum
2022         register_status.  Handle non-REG_VALID registers and return the
2023         register's status.
2024         (regcache_xfer_part, regcache_raw_read_part)
2025         (regcache_cooked_read_part): Change return to enum
2026         register_status.  Return the register's status.
2027         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2028         unavailable.
2029         (regcache_dump): Handle unavailable cooked registers.
2030         * frame.c (do_frame_register_read): Adjust interface to match
2031         regcache_cooked_read_ftype.
2032         * gdbarch.sh (pseudo_register_read): Change return to enum
2033         register_status.
2034         * gdbarch.h, gdbarch.c: Regenerate.
2035
2036         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2037         register_status.
2038         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2039         register_status.  If reading a raw register indicates the raw
2040         register is not valid, return the raw register's status,
2041         otherwise, return REG_VALID.
2042         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2043         register_status.  Handle non-REG_VALID raw registers and return
2044         the register's status.
2045         * arm-tdep.c (arm_neon_quad_read)
2046         (arm_pseudo_read): Change return to enum register_status.  Handle
2047         non-REG_VALID raw registers and return the register's status.
2048         * avr-tdep.c (avr_pseudo_register_read): Ditto.
2049         * frv-tdep.c (frv_pseudo_register_read): Ditto.
2050         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2051         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2052         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2053         register_status.
2054         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2055         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2056         (m32c_part_write, m32c_cat_read, m32c_cat_write)
2057         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2058         (m32c_pseudo_register_read): Change return to enum
2059         register_status.  Adjust.
2060         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2061         enum register_status.  Return the register's status.
2062         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2063         register_status.  Return the register's status.
2064         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2065         * mips-tdep.c (mips_pseudo_register_read): Ditto.
2066         * mt-tdep.c (mt_pseudo_register_read): Ditto.
2067         * rs6000-tdep.c (move_ev_register_func): New typedef.
2068         (e500_move_ev_register): Use it.  Change return to enum
2069         register_status.  Return the register's status.
2070         (do_regcache_raw_read): New function.
2071         (do_regcache_raw_write): New function.
2072         (e500_pseudo_register_read): Change return to enum
2073         register_status.  Return the register's status.  Use
2074         do_regcache_raw_read.
2075         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
2076         (dfp_pseudo_register_read): Change return to enum register_status.
2077         Return the register's status.
2078         (vsx_pseudo_register_read): Ditto.
2079         (efpr_pseudo_register_read): Ditto.
2080         (rs6000_pseudo_register_read): Ditto.
2081         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2082         register_status.  Return the register's status.
2083         * sh64-tdep.c (pseudo_register_read_portions): New function.
2084         (sh64_pseudo_register_read): Change return to enum
2085         register_status.  Use pseudo_register_read_portions.  Return the
2086         register's status.
2087         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2088         register_status.  Return the register's status.
2089         * sh-tdep.c (pseudo_register_read_portions): New function.
2090         (sh_pseudo_register_read): Change return to enum register_status.
2091         Use pseudo_register_read_portions.  Return the register's status.
2092         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2093         enum register_status.  Return the register's status.
2094         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2095         * spu-tdep.c (spu_pseudo_register_read_spu)
2096         (spu_pseudo_register_read): Ditto.
2097         * xtensa-tdep.c (xtensa_register_read_masked)
2098         (xtensa_pseudo_register_read): Ditto.
2099         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2100
2101 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2102
2103         * python/py-value.c (valpy_getitem): Fix formatting of error function
2104         call.
2105
2106 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2107
2108         ARI fixes: Add missing internationalization markups throughout
2109         C source files.
2110         * darwin-nat-info.c: Ditto.
2111         * record.c: Ditto.
2112         * remote.c: Ditto.
2113         * mi/mi-main.c: Ditto.
2114
2115 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2116
2117         ARI fixes: Add missing internationalization markups throughout
2118         yacc files.
2119         * c-exp.y: Ditto.
2120         * cp-name-parser.y: Ditto.
2121         * f-exp.y: Ditto.
2122         * m2-exp.y: Ditto.
2123         * objc-exp.y: Ditto.
2124         * p-exp.y: Ditto.
2125
2126 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2127
2128         ARI fixes: Messages should have no trailing new lines.
2129         * darwin-nat.c (mach_check_error): Remove trailing new line from
2130         warning function call message.
2131         * record.c (bfdcore_read): Idem for error call.
2132
2133 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2134
2135         * common/signals.c (target_signal_from_host): Add _ markup to error
2136         function call message.
2137         (target_signal_to_host): Add _ markup and remove trailing new line
2138         from warning call message.
2139         (target_signal_from_command): Add _ markup to error function call
2140         message.
2141
2142 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
2143
2144         PR python/12149
2145
2146         * python/python.c (gdbpy_write): Accept a stream argument and
2147         operate to the appropriate stream.
2148         (gdbpy_flush): Likewise.
2149         (_initialize_python): Add stream constants.
2150         (finish_python_initialization): Add GdbOutputErrorFile class.
2151
2152 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
2153
2154         * MAINTAINERS: Add myself as a write-after-approval maintainer.
2155
2156 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
2157
2158         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2159         to store_signed_integer.  Add debug message when relocating CALL
2160         instructions.  Fix formatting of debug message.
2161         * i386-tdep.c (i386_relocate_instruction): Ditto.
2162
2163 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
2164
2165         * target.h (struct target_ops): Remove to_lookup_symbol field.
2166         (target_lookup_symbol): Delete macro.
2167         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2168         (update_current_target, setup_target_debug): Remove handling
2169         of to_lookup_symbol target_ops field.
2170         * ada-tasks.c (get_known_tasks_addr): Remove use of
2171         target_lookup_symbol.
2172         * coffread.c (coff_symtab_read): Likewise.
2173         * dbxread.c (read_dbx_symtab): Ditto.
2174
2175 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
2176
2177         PR gdb/12116:
2178         * configure.ac: Add getthrds declaration check.
2179         * configure, config.in: Regenerate.
2180         * aix-thread.c (getthrds): Declare only if not already declared
2181         in procinfo.h.  More declaration out of get_signaled_thread to
2182         global scope.
2183
2184 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
2185
2186         * python/py-symtab.c: Populate symtab_object_methods,
2187         sal_object_methods.
2188         (stpy_is_valid): New function.
2189         (salpy_is_valid): Ditto.
2190         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
2191         (sympy_is_valid): New function.
2192         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
2193         (objfpy_is_valid): New function.
2194         * python/py-inferior.c: Populate inferior_object_methods.
2195         (infpy_is_valid): New function.
2196         * python/py-infthread.c: Populate thread_object_methods.
2197         (thpy_is_valid): New function.
2198         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
2199         block_iterator_object_methods.  Populate.
2200         (blpy_is_valid): New function.
2201         (blpy_iter_is_valid): Ditto.
2202
2203 2011-03-16  Keith Seitz  <keiths@redhat.com>
2204
2205         * linespec.c (find_methods): Canonicalize NAME before looking
2206         up the symbol.
2207         (name_end): New function.
2208         (keep_name_info): New function.
2209         (decode_line_1): Use keep_name_info.
2210         (decode_compound): Likewise.
2211         * cli/cli-utils.h (remove_trailing_whitespace): New function.
2212         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2213
2214         PR c++/12273
2215         * linespec.c (locate_first_half): Keep overload information, too.
2216         (decode_compound): Use a string to represent break characters
2217         to escape the loop.
2218         If P points to a break character, do not increment it.
2219         For C++ and Java, keep overload information and relevant keywords.
2220         If we cannot find a symbol, search the minimal symbols.
2221
2222         PR c++/11734
2223         * linespec.c (decode_compound): Rename SAVED_ARG to
2224         THE_REAL_SAVED_ARG.
2225         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2226         single-quotes.
2227         Pass a valid block to lookup_symbol.
2228         (lookup_prefix_sym): Likewise.
2229         (find_method): Construct search name based on SYM_CLASS instead
2230         of SAVED_ARG.
2231         * psymtab.c (lookup_partial_symbol): Add language parameter.
2232         (lookup_symbol_aux_psymtabs): Likewise.
2233         Don't assume that the psymtab we found was the right one. Search
2234         for the desired symbol in the symtab to be certain.
2235         (psymtab_search_name): New function.
2236         (lookup_partial_symbol): Use psymtab_search_name.
2237         Add language parameter.
2238         (read_symtabs_for_function): Add language parameter and pass to
2239         lookup_partial_symbol.
2240         (find_symbol_file_from_partial): Likewise.
2241
2242 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
2243
2244         PR gdb/12528
2245         * dwarf2read.c (noop_record_line): New function.
2246         (dwarf_decode_lines): Ignore line tables for GCd functions.
2247
2248 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2249
2250         Fix ARI warnings about new lines at the end of messages, which
2251         are unneeded as there is a new line added at the end of the message
2252         automatically.
2253         * darwin-nat.c (darwin_stop_inferior): Ditto.
2254         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2255         * dfp.c (decimal_to_number): Ditto.
2256         * exec.c (print_section_info): Ditto.
2257         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2258         * osdata.c (get_osdata): Ditto.
2259         * record.c (bfdcore_write): Ditto.
2260         * remote-mips.c (mips_readchar): Ditto.
2261         * remote.c (read_ptid): Ditto.
2262         * ser-mingw.c (ser_windows_raw): Ditto.
2263         * tracepoint.c (add_local_symbols): Ditto.
2264         * windows-nat.c (fake_create_process): Ditto.
2265
2266 2011-03-16  Tom Tromey  <tromey@redhat.com>
2267
2268         * tracepoint.c (stop_tracing): Don't declare.
2269         * event-top.c (after_char_processing_hook): Add `(void)'.
2270
2271 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
2272
2273         * NEWS: Add Parameter sub-classing description.
2274
2275 2011-03-16  Kai Tietz  <ktietz@redhat.com>
2276
2277         * MAINTAINERS: Update my e-mail address.
2278
2279 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
2280
2281         * MAINTAINERS: Add myself for write after approval privileges.
2282
2283 2011-03-15  Michael Snyder  <msnyder@vmware.com>
2284
2285         * frame.c (find_frame_sal): Assert sym is not null.
2286
2287         * dbxread.c (process_one_symbol): Assert 'name' is not null.
2288
2289         * objc-lang.c (selectors_info): Check strchr for null result.
2290
2291         * stabsread.c (define_symbol): Guard against bad stabstring input.
2292
2293 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
2294
2295         Remove trailing spaces and tabulations from pascal language
2296         support sources.
2297         p-exp.y: Ditto.
2298         p-lang.c: Ditto.
2299         p-lang.h: Ditto.
2300         p-valprint.c: Ditto.
2301
2302 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2303
2304         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2305         than LOW.  Comment it.
2306         (read_partial_die): Call complaint for inappropriate zero LOWPC or
2307         HIGHPC not strictly higher than LOWPC.
2308
2309 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
2310
2311         Fix formatting of function declarations returning a pointer in
2312         previous commit.
2313         * varobj.c (varobj_add_child): Ditto.
2314         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2315         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2316
2317 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
2318
2319         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2320         for the "generic" vector ABI used with GCC 4.3 and later.
2321         (ppc64_sysv_abi_return_value): Likewise.
2322
2323 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
2324
2325         * infcall.c (call_function_by_hand): Function return value is
2326         always a non_lval, even when using struct_return.
2327
2328 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
2329
2330         * printcmd.c (ALL_DISPLAYS_SAFE): New.
2331         (map_display_numbers): New.
2332         (do_delete_display): New.
2333         (undisplay_command): Use map_display_numbers.
2334         (do_enable_disable_display): New.
2335         (enable_disable_display_command): New function.
2336         (enable_display): Delete.
2337         (enable_display_command): New.
2338         (disable_display_command): Reimplement.
2339         (_initialize_printcmd): Adjust "enable display" command to use
2340         `enable_display_command' as callback.
2341
2342 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
2343
2344         * NEWS: Add Python breakpoint 'stop' operation.
2345
2346 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
2347
2348         * NEWS: Delete duplicate entry. Fix typo.
2349
2350 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
2351
2352         Fix ARI warning about function names in first column.
2353         Put prototype declaration on same line as return type.
2354         * objc-exp.y: Ditto.
2355         * p-exp.y: Ditto.
2356         * python/py-stopevent.h: Ditto.
2357         For long function names, split parameters to
2358         allow function name on same line as return type.
2359         * solib-pa64.c: Ditto.
2360         * varobj.c: Ditto.
2361         * varobj.h: Ditto.
2362         For long function declaration, use single line.
2363         * hppa-tdep.h: Ditto.
2364         * inferior.h: Ditto.
2365
2366 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
2367
2368         * python/python.h: Declare gdbpy_should_stop and
2369         gdbpy_breakpoint_has_py_cond.
2370         * python/python.c: Add python.h to includes.  Remove python.h from
2371         HAVE_PYTHON definition
2372         (gdbpy_should_stop): New dummy function.
2373         (gdbpy_breakpoint_has_py_cond): New dummy function.
2374         * python/py-breakpoint.c (bppy_init): Rewrite to allow
2375         sub-classing capabilities.
2376         (gdbpy_should_stop): New function.
2377         (gdbpy_breakpoint_has_py_cond): New function.
2378         (local_setattro): New function.
2379         * breakpoint.c (condition_command): Add check for Python 'stop'
2380         operation.
2381         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2382         operation function as part of stop/continue tests.
2383
2384 2011-03-14  Tom Tromey  <tromey@redhat.com>
2385
2386         PR gdb/12576:
2387         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2388         (needs_frame_dwarf_call): Likewise.
2389
2390 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
2391
2392         Fix ARI warning about functions without parameters that do not
2393         use (void).
2394         * breakpoint.c (all_tracepoints): Replace () by (void).
2395         * f-exp.y (match_string_literal): Ditto.
2396         (yylex): Ditto.
2397         * m2-exp.y (yylex): Ditto.
2398         * mep-tdep.c (current_me_module): Ditto.
2399         (current_options): Ditto.
2400         (current_cop_data_bus_width): Ditto.
2401         (current_cr_names): Ditto.
2402         (current_cr_is_float): Ditto.
2403         (current_ccr_names): Ditto.
2404         * objc-exp.y (yylex): Ditto.
2405         * p-exp.y (yylex): Ditto.
2406         * remote.c (send_interrupt_sequence): Ditto.
2407         * tracepoint.c (current_trace_status): Ditto.
2408         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2409         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2410
2411 2011-03-11  Michael Snyder  <msnyder@vmware.com>
2412
2413         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2414         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2415         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2416         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2417         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2418
2419         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2420         (delete_async_event_handler): Ditto.
2421
2422         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2423
2424         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2425
2426         * top.c (set_verbose): Assert showcmd was found.
2427
2428 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
2429
2430         * xtensa-tdep.c (warning_once): Correct style issues.
2431
2432 2011-03-11  Yao Qi  <yao@codesourcery.com>
2433
2434         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2435
2436 2011-03-11  Andreas Schwab  <schwab@redhat.com>
2437
2438         * common/aclocal.m4: Remove.
2439
2440 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
2441
2442         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2443         (xtensa_write_register, xtensa_read_register): Likewise.
2444         (xtensa_hextochar): Removed.
2445         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2446
2447 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
2448
2449         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2450         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
2451         (xtensa_alloc_frame_cache): Add initialization for new fields.
2452         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2453         (warning_once): New function.
2454         (xtensa_insn_kind): New item c0opc_and.
2455         (call0_classify_opcode): Add the case for AND instruction.
2456         (call0_track_op): Change arguments.  New local variable litbase.
2457         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
2458         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2459         in the prologue.
2460         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2461         (call0_analyze_prologue): Update the comments.  Change arguments.
2462         Add the variety of updates to handle extended prologues, which now can
2463         conduct dynamic stack adjustments.
2464         (call0_frame_cache): Likewise.
2465         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2466         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2467
2468 2011-03-10  Michael Snyder  <msnyder@vmware.com>
2469
2470         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2471         (cmd_qtframe): Ditto.
2472         (cmd_qtbuffer): Ditto.
2473         (cmd_bigqtbuffer): Ditto.
2474
2475 2011-03-10  Tom Tromey  <tromey@redhat.com>
2476
2477         * tracepoint.c (trace_actions_command): Update.
2478         * thread.c (thread_apply_command): Update.
2479         * reverse.c (delete_bookmark_command): Update.
2480         (bookmarks_info): Update.
2481         * printcmd.c (undisplay_command): Update.
2482         * memattr.c (mem_enable_command): Update.
2483         (mem_disable_command): Update.
2484         (mem_delete_command): Update.
2485         * inferior.c (detach_inferior_command): Update.
2486         (kill_inferior_command): Update.
2487         (remove_inferior_command): Update.
2488         * cli/cli-utils.h (struct get_number_or_range_state): New.
2489         (init_number_or_range): Declare.
2490         (get_number_or_range): Update.
2491         * cli/cli-utils.c (init_number_or_range): New function.
2492         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
2493         static variables.
2494         (number_is_in_list): Update.
2495         * breakpoint.h (get_tracepoint_by_number): Update.
2496         * breakpoint.c (map_breakpoint_numbers): Update for change to
2497         get_number_or_range.
2498         (find_location_by_number): Use get_number, not
2499         get_number_or_range.
2500         (trace_pass_set_count): New function.
2501         (trace_pass_command): Update for change to get_number_or_range.
2502         Rework loop logic.
2503         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2504         'state' parameter.
2505
2506 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
2507
2508         * python/py-param.c (add_setshow_generic): Add set/show callback
2509         parameters.  Register Python object context.
2510         (get_show_value): New function.
2511         (get_set_value): New function.
2512         (call_doc_function): New function.
2513         (get_doc_string): Move behind get_show_value/get_set_value.
2514
2515 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
2516
2517         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2518
2519 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
2520
2521         * xtensa-tdep.c (xtensa_read_register): Add comment.
2522         (xtensa_write_register): Likewise.
2523         (xtensa_hextochar): Add comment and update to match coding conventions.
2524         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2525         (execute_l32e, execute_s32e, execute_code): Update comments.
2526         (xtensa_exception_handler_t): Update to match coding conventions.
2527         (xtensa_insn_kind): Likewise.
2528
2529 2011-03-09  Michael Snyder  <msnyder@vmware.com>
2530
2531         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2532
2533 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
2534
2535         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2536
2537 2011-03-09  Tom Tromey  <tromey@redhat.com>
2538
2539         * thread.c (restore_selected_frame): Handle frame_level == -1.
2540         (make_cleanup_restore_current_thread): Use
2541         get_selected_frame_if_set.
2542         * frame.h (get_selected_frame_if_set): Declare.
2543         * frame.c (get_selected_frame_if_set): New function.
2544
2545 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
2546
2547         * cli/cli-cmds.c (shell_escape): Use lbasename.
2548         * coffread.c (coff_start_symtab): Constify parameter.
2549         (complete_symtab): Constify `name' parameter.
2550         (coff_symtab_read): Constify `filestring' local.
2551         (coff_getfilename): Constify return and `result' local.
2552         Use lbasename.
2553         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2554         * linux-fork.c (info_checkpoints_command): Use lbasename.
2555         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2556         * minsyms.c (lookup_minimal_symbol): Use lbasename.
2557         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2558         * procfs.c (procfs_make_note_section): Use lbasename.
2559         * tui/tui-io.c (printable_part): Constity return and parameter.
2560         Use lbasename.
2561         (print_filename): Constify parameters, and local `s'.
2562         (tui_rl_display_match_list): Constify local `temp'.
2563
2564 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2565
2566         Revert:
2567         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2568         Fix DWARF-3+ DW_AT_accessibility default assumption.
2569         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2570         cu->header.version >= 3.
2571
2572 2011-03-09  Yao Qi  <yao@codesourcery.com>
2573
2574         * common/Makefile.in: Remove.
2575         * common/configure: Remove.
2576         * common/configure.ac: Remove.
2577
2578 2011-03-09  Yao Qi  <yao@codesourcery.com>
2579
2580         Revert:
2581         2011-02-11  Yao Qi  <yao@codesourcery.com>
2582
2583         * common/Makefile.in: Add copyright header.
2584
2585         2011-02-11  Yao Qi  <yao@codesourcery.com>
2586
2587         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
2588         libcommon.a.
2589         * configure.ac: Add common to sub dir.
2590         * configure: Regenerate.
2591
2592 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
2593
2594         * xtensa-tdep.c (call0_ret): New function.
2595         (xtensa_skip_prologue): Speed up analysis.
2596
2597 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
2598
2599         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2600         while executing MI command -data-list-changed-registers.
2601
2602 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
2603
2604         * xtensa-tdep.c (xtensa_read_register): New function.
2605         (xtensa_write_register): New function.
2606         (xtensa_find_register_by_name): New function.
2607         (xtensa_windowed_frame_cache): Update comments in type description.
2608         (xtensa_frame_cache): Likewise.
2609         (xtensa_window_interrupt_insn): New function.
2610         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2611         (xtensa_insn_kind): Add new instructions.
2612         (rwx_special_register): New function.
2613         (call0_classify_opcode): Add new instructions to the analysis.
2614         (a0_saved, a7_saved, a11_saved): New variables.
2615         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2616         (execute_l32e): New function.
2617         (execute_s32e): New function.
2618         (xtensa_exception_handler_t): New type.
2619         (execute_code): New function.
2620         (xtensa_window_interrupt_frame_cache): New function to conduct frame
2621         analysis for Xtensa Window Exception handlers.
2622
2623 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
2624
2625         * xtensa-tdep.c (TX_PS): New.
2626         (windowing_enabled): Update to count for Call0 ABI.
2627         (xtensa_hextochar): New.
2628         (xtensa_init_reggroups): Make algorithm generic.
2629         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2630
2631 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
2632
2633         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2634
2635 2011-03-08  Michael Snyder  <msnyder@vmware.com>
2636
2637         * i386-tdep.c (i386_follow_jump): Check return value of
2638         target_read_memory.
2639         (i386_analyze_struct_return): Ditto.
2640         (i386_skip_probe): Ditto.
2641         (i386_match_insn): Ditto.
2642         (i386_skip_noop): Ditto.
2643         (i386_analyze_frame_setup): Ditto.
2644         (i386_analyze_register_saves): Ditto.
2645         (i386_skip_prologue): Ditto.
2646         (i386_skip_main_prologue): Ditto.
2647
2648         * target.c (read_whatever_is_readable): Fix memory leak.
2649
2650         * i386-tdep.c (i386_process_record): Document fall through.
2651
2652 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2653
2654         Fix DWARF-3+ DW_AT_accessibility default assumption.
2655         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2656         cu->header.version >= 3.
2657
2658 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
2659
2660         * remote.c (remote_check_symbols): Skip if the target has no
2661         execution.
2662
2663 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
2664
2665         * target.c (read_whatever_is_readable): Reformat comment,
2666         with a minor typo fix. Minor reformatting of the code.
2667
2668 2011-03-08  Yao Qi  <yao@codesourcery.com>
2669
2670         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2671         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2672         Use cached result instead of calling displaced_in_arm_mode again.
2673         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2674         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2675         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2676         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2677         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2678         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2679         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2680         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2681         (cleanup_block_load_pc, copy_block_xfer): Likewise.
2682         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2683         (arm_catch_kernel_helper_return): Likewise.
2684         * gdb/arm-tdep.h : Update function declarations.
2685
2686 2011-03-07  Michael Snyder  <msnyder@vmware.com>
2687
2688         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2689
2690         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2691
2692         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2693
2694         * elfread.c (elf_symtab_read): Stop memory leak.
2695
2696         * main.c (captured_main): Fix memory leak.
2697
2698 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
2699
2700         * ada-lang.c (compare_names): Call is_name_suffix with string1
2701         instead of string2.
2702
2703 2011-03-07  Tom Tromey  <tromey@redhat.com>
2704
2705         * xcoffread.c (xcoff_sym_fns): Update.
2706         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2707         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2708         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2709         (symbol_file_add_with_addrs_or_offsets): Likewise.
2710         (reread_symbols): Handle OBJF_PSYMTABS_READ.
2711         * somread.c (som_sym_fns): Update.
2712         * psymtab.h (require_partial_symbols): Declare.
2713         * psymtab.c (require_partial_symbols): New function.
2714         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2715         (ALL_OBJFILE_PSYMTABS): Undef.
2716         (ALL_PSYMTABS): Move from psympriv.h.
2717         (lookup_partial_symtab, find_pc_sect_psymtab)
2718         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2719         (find_last_source_symtab_from_partial)
2720         (forget_cached_source_info_partial)
2721         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2722         (expand_partial_symbol_tables, read_psymtabs_with_filename)
2723         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2724         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2725         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2726         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2727         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2728         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2729         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2730         psymtabs.
2731         * mipsread.c (ecoff_sym_fns): Update.
2732         * machoread.c (macho_sym_fns): Update.
2733         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2734         (read_psyms): New function.
2735         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2736         (elf_sym_fns_lazy_psyms): New global.
2737         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2738         dwarf2_build_psymtabs.
2739         * dbxread.c (aout_sym_fns): Update.
2740         * coffread.c (coff_sym_fns): Update.
2741
2742 2011-03-07  Tom Tromey  <tromey@redhat.com>
2743
2744         * infrun.c (print_exited_reason): Include inferior id and pid in
2745         message.
2746
2747 2011-03-07  Tom Tromey  <tromey@redhat.com>
2748
2749         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2750         parameter.
2751         (target_has_execution_1): Update.
2752         (target_has_execution_current): Declare.
2753         (target_has_execution): Call target_has_execution_current.
2754         (default_child_has_execution): Update.
2755         * target.c (default_child_has_execution): Add 'the_ptid'
2756         parameter.
2757         (target_has_execution_1): Likewise.
2758         (target_has_execution_current): New function.
2759         (add_target): Update.
2760         (init_dummy_target): Update.
2761         * remote-m32r-sdi.c (m32r_has_execution): New function.
2762         (init_m32r_ops): Use it.
2763         * record.c (record_core_has_execution): Now static.  Add
2764         'the_ptid' parameter.
2765         * inferior.c (have_live_inferiors): Don't save current thread.
2766         Use target_has_execution_1.
2767
2768 2011-03-07  Yao Qi  <yao@codesourcery.com>
2769
2770         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2771
2772 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
2773
2774         * elfread.c (elf_symtab_read): Minor reformatting.
2775
2776 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
2777
2778         * objc-lang.c (selectors_info): Minor reformatting.
2779
2780 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
2781
2782         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2783
2784 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
2785             Michael Snyder  <msnyder@vmware.com>
2786
2787         * ada-valprint.c (ada_val_print_array): Move the declaration of
2788         "byte_order" and "elttype" inside the block where these variables
2789         are actually used.  Remove some special handling for the case
2790         where "elttype" and "eltlen" are null.  Replace by a comment
2791         and a couple of assertion checks.
2792
2793 2011-03-05  Michael Snyder  <msnyder@vmware.com>
2794
2795         * source.c (add_path): Replace semicolon at end of block.
2796         * dwarf2expr.c (execute_stack_op): Ditto.
2797
2798 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
2799
2800         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2801         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2802         (bfin-*-*): Likewise.
2803
2804 2011-03-05  Michael Snyder  <msnyder@vmware.com>
2805
2806         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2807         * mdebugread.c (parse_symbol): Ditto.
2808         * parse.c (parse_exp_in_context): Ditto.
2809         * source.c (add_path): Ditto.
2810         * utils.c (gnu_debuglink_crc32): Ditto.
2811         * varobj.c (variable_language): Ditto.
2812
2813         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2814
2815 2011-03-04  Michael Snyder  <msnyder@vmware.com>
2816
2817         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2818
2819         * symfile.c (simple_overlay_update): Check for null return value
2820         from lookup_minimal_symbol.
2821
2822         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2823
2824 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2825
2826         * eval.c (parse_and_eval_address_1): Remove function.
2827         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2828         instead of parse_and_eval_address_1.
2829         * value.h (parse_and_eval_address_1): Remove prototype.
2830
2831 2011-03-04  Michael Snyder  <msnyder@vmware.com>
2832
2833         * remote.c (putpkt_binary): Document that case stmt falls through.
2834
2835 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2836
2837         * breakpointc (print_it_typical): Move NULL check from here...
2838         (print_bp_stop_message): ... to here.
2839
2840 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
2841
2842         * breakpoint.c (enable_command): Use break instead of continue,
2843         and fill in a missing break.
2844         (disable_command): Ditto.
2845
2846 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
2847
2848         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2849         (terminal_save_ours): Remove misleading comment.
2850         (inflow_inferior_data_cleanup): Free ttystate.
2851         (inflow_inferior_exit): Likewise.
2852         (copy_terminal_info): Copy ttystate.
2853
2854         * serial.c (serial_copy_tty_state): New function.
2855         * serial.h (serial_copy_tty_state): Add prototype.
2856         (struct serial_ops): Add copy_tty_state callback.
2857         * ser-base.c (ser_base_copy_tty_state): New function.
2858         * ser-base.h (ser_base_copy_tty_state): Add prototype.
2859         * ser-go32.c (dos_copy_tty_state): New function.
2860         (dos_ops): Install copy_tty_state callback.
2861         * ser-mingw.c (_initialize_ser_windows): Likewise.
2862         * ser-pipe.c (_initialize_ser_pipe): Likewise.
2863         * ser-unix.c (hardwire_copy_tty_state): New function.
2864         (_initialize_ser_hardwire): Install it.
2865
2866 2011-03-04  Michael Snyder  <msnyder@vmware.com>
2867
2868         * breakpoint.c (create_breakpoint): Add missing break statement.
2869
2870         Reverting this patch:
2871         * infcall.c (call_function_by_hand): Add break statements for lint.
2872
2873         Reverting this patch:
2874         * cli/cli-script.c (script_from_file): Add break for lint.
2875
2876 2011-03-04  Michael Snyder  <msnyder@vmware.com>
2877
2878         * solib.c (reload_shared_libraries_1): Close memory leak.
2879
2880 2011-03-03  Tom Tromey  <tromey@redhat.com>
2881
2882         PR gdb/12538:
2883         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2884         DW_STRING is NULL.
2885
2886 2011-03-03  Michael Snyder  <msnyder@vmware.com>
2887
2888         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2889         fields of struct 'st' to zero.
2890
2891         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2892         sal.pspace before calling set_current_source_symtab_and_line.
2893
2894 2011-03-03  Yao Qi  <yao@codesourcery.com>
2895
2896         * Makefile.in (configure-common): Remove.  Let Makefile
2897         in dir common to rebuild itself.
2898         (common/Makefile): Likewise.
2899
2900 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
2901
2902         * utils.c (parse_escape): Add i18n markup in error message.
2903
2904 2011-03-03  Yao Qi  <yao@codesourcery.com>
2905
2906         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2907         ARM_PC_REGNUM.
2908         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2909         (displaced_write_reg, displaced_read_reg): Likewise.
2910         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2911         (cleanup_block_load_pc, copy_block_xfer): Likewise.
2912         (cleanup_branch): Replace magic number 14 and 15 with
2913         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2914
2915 2011-03-02  Michael Snyder  <msnyder@vmware.com>
2916
2917         * maint.c (maintenance_do_deprecate): No need to check for NULL.
2918
2919         * cli/cli-script.c (script_from_file): Add break for lint.
2920
2921         * mdebugread.c (parse_partial_symbols): Fix indent.
2922
2923         * target-descriptions.c (tdesc_gdb_type): No need to call
2924         xstrdup, callee saves a copy.
2925
2926         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2927
2928         * infcall.c (call_function_by_hand): Add break statements for lint.
2929
2930         * utils.c (parse_escape): Escape the escape char.
2931
2932         * python/py-inferior.c (build_inferior_list): Error out if
2933         PyList_Append fails.
2934         (gdbpy_inferiors): Error out if build_inferior_list fails.
2935
2936         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2937         a function call.
2938
2939         * record.c (record_restore): Move printf to before error return.
2940
2941 2011-03-02  Yao Qi  <yao@codesourcery.com>
2942
2943         * arm-tdep.h (struct displaced_step_closure): Add two new fields
2944         is_thumb and insn_size.
2945         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2946         on both ARM and Thumb mode.
2947         (arm_process_displaced_insn): Set is_thumb and insn_size.
2948         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2949         (arm_displaced_step_fixup): Likewise.
2950
2951 2011-03-01  Michael Snyder  <msnyder@vmware.com>
2952
2953         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2954
2955         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2956
2957         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2958
2959         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2960
2961         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2962         with xmalloc.
2963
2964         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2965         which shadows function parameter.
2966
2967         * tracepoint.c (create_tsv_from_upload): Superfluous call
2968         to xstrdup.  Callee already calls xstrdup.
2969
2970         * linespec.c (decode_line_1): Remove unnecessary null check.
2971
2972         * tracepoint.c (scope_info): Fix mem leak, remove underused
2973         variable.
2974
2975         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2976         superfluous null check.
2977
2978         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
2979         (value_of_builtin_frame_fp_reg): Ditto.
2980
2981         * event-top.c (display_gdb_prompt): Remove superfluous null check.
2982
2983         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2984         be null.
2985
2986         * linespec.c (decode_line_1): Check for null before dereference.
2987
2988         * reverse.c (record_restore): Move null-check to before pointer
2989         dereference.
2990
2991         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2992
2993         * objc-lang.c (selectors_info): Add explanitory comment.
2994         (classes_info): Ditto.
2995
2996 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
2997
2998         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2999         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3000         versions of the trampoline.  Handle Thumb vs. ARM addresses.
3001         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3002         (arm_linux_init_abi): Install it.
3003         * arm-tdep.c (arm_psr_thumb_bit): Make global.
3004         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3005
3006 2011-02-28  Michael Snyder  <msnyder@vmware.com>
3007
3008         * ui-out.c (ui_out_field_core_addr): Make local char buffer
3009         a little bigger, to avoid possibility of an overflow.
3010
3011         * breakpoint.c (breakpoint_adjustment_warning): Make local char
3012         buffers a little bigger, to avoid possibility of an overflow.
3013
3014         * coffread.c (coff_getfilename): Add check to avoid overflow.
3015
3016         * objc-lang.c (selectors_info): Add a small safety margin to
3017         avoid overflow.
3018         (classes_info): Error out on too long REGEXP.
3019
3020         * infrun.c (handle_inferior_event): Remove unused function call.
3021
3022         * fork-child.c (fork_inferior): Remove ifdef'd code and
3023         unused variable.
3024
3025         * linux-thread-db.c (attach_thread): Discard unused value.
3026
3027         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3028
3029         * remote.c (remote_get_noisy_reply): Discard unused value.
3030         (remote_vcont_resume): Ditto.
3031         (remote_stop_ns): Ditto.
3032
3033         * linespec.c (decode_objc): Delete unused variable.
3034
3035         * tui/tui-regs.c (tui_register_format): Delete unused variable.
3036
3037         * dwarf2read.c (add_partial_symbol): Discard unused values.
3038         (read_base_type): Delete unused variable.
3039
3040         * dbxread.c (read_dbx_symtab): Discard unused value.
3041
3042         * eval.c (evaluate_subexp_standard): Delete unused variable,
3043         and discard unused values.
3044
3045         * infcmd.c (_initialize_infcmd): Discard unused values.
3046
3047         * stabsread.c (rs6000_builtin_type): Missing break statement.
3048
3049         * dbxread.c (process_one_symbol): Discard unused value.
3050
3051         * coffread.c (coff_end_symtab): Delete unused variable.
3052
3053         * dwarf2read.c (dw2_get_file_names): Discard unused value.
3054         (dwarf2_add_typedef): Delete unused variable.
3055         (read_namespace): Ditto.
3056         (dwarf_decode_macros): Ditto.
3057
3058         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3059
3060         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3061
3062         * p-valprint.c (pascal_val_print): Discard unused value.
3063
3064         * utils.c (nquery): Call va_end before return;
3065         (yquery): Ditto.
3066         (query): Ditto.
3067
3068         * proc-service.c (ps_plog): Call va_end before return.
3069
3070 2011-02-28  Tom Tromey  <tromey@redhat.com>
3071
3072         * python/python.c (gdbpy_value_cst): New global.
3073         (_initialize_python): Initialize it.
3074         * python/python-internal.h (gdbpy_value_cst): Declare.
3075         * python/py-value.c (convert_value_from_python): Use
3076         gdbpy_value_cst.
3077
3078 2011-02-28  Michael Snyder  <msnyder@vmware.com>
3079
3080         * python/py-cmd.c (cmdpy_init): Fix memory leak.
3081
3082         * breakpoint.c (catch_syscall_completer): Free malloced list.
3083
3084         * jv-lang.c (java_primitive_type_from_name): Add missing break.
3085
3086         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3087         (lval_func_check_synthetic_pointer): Ditto.
3088         (lval_func_free_closure): Fix use-after-free.
3089
3090 2011-02-28  Tom Tromey  <tromey@redhat.com>
3091
3092         * psymtab.c (expand_partial_symbol_tables): Use
3093         ALL_OBJFILE_PSYMTABS.
3094
3095 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3096
3097         * objc-lang.c (selectors_info): Error on too long REGEXP.
3098
3099 2011-02-28  Michael Snyder  <msnyder@vmware.com>
3100
3101         * python/py-param.c (set_parameter_value): Add missing
3102         break statement.
3103
3104         * linux-record.c (record_linux_system_call): Add missing
3105         break statement.
3106
3107 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3108
3109         * breakpoint.c (print_one_breakpoint_location): Remove unused
3110         argument PRINT_ADDRESS_BITS.  Update callers.
3111         (print_one_breakpoint): Likewise.
3112
3113 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3114
3115         * breakpoint.c (wrap_indent_at_field): New function.
3116         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3117         Allocate ui_stream locally instead of using STB argument.
3118         (print_one_breakpoint_location): Update call.
3119         * ui-out.c (ui_out_query_field): New function.
3120         * ui-out.h (ui_out_query_field): Add prototype.
3121
3122 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
3123
3124         From Michael Snyder  <msnyder@vmware.com>
3125         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3126
3127 2011-02-27  Michael Snyder  <msnyder@vmware.com>
3128
3129         * objc-lang.c (selectors_info): Prevent string overrun.
3130
3131         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3132         error in strncpy.
3133
3134         * symtab.c (rbreak_command): Move variable 'file_name' to
3135         outer scope.
3136
3137         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3138         param with a local variable of the same name.
3139
3140 2011-02-27  Michael Snyder  <msnyder@vmware.com>
3141
3142         * value.c (value_from_history_ref): New function.
3143         * value.h (value_from_history_ref): Export.
3144         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3145         to parse value history references.
3146         * cli/cli-utils.h (get_number_trailer): Update comment.
3147
3148 2011-02-27  Michael Snyder  <msnyder@vmware.com>
3149
3150         * inferior.c (detach_inferior_command): Use get_number_or_range.
3151         (kill_inferior_command): Ditto.
3152         (remove_inferior_command): Ditto.
3153         (initialize_inferiors): Make command names plural.
3154         Update help strings.
3155
3156 2011-02-27  Michael Snyder  <msnyder@vmware.com>
3157
3158         * darwin-nat-info.c: Fix comment typo.
3159         * dwarf2expr.h: Ditto.
3160         * fbsd-nat.c: Ditto.
3161         * fbsd-nat.h: Ditto.
3162         * frame-unwind.h: Ditto.
3163         * frame.h: Ditto.
3164         * hppa-hpux-tdep.c: Ditto.
3165         * i386-linux-nat.c: Ditto.
3166         * linux-nat.c: Ditto.
3167         * nbsd-nat.c: Ditto.
3168         * nbsd-nat.h: Ditto.
3169         * ppc-linux-tdep.c: Ditto.
3170         * serial.c: Ditto.
3171         * ui-file.h: Ditto.
3172         * tui/tui-winsource.c: Ditto.
3173
3174 2011-02-26  Michael Snyder  <msnyder@vmware.com>
3175
3176         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3177
3178         * maint.c (maintenance_do_deprecate): Plug a memory leak.
3179
3180         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3181         with a local variable of the same name.
3182
3183         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3184         param with a local variable of the same name.
3185         (i387_supply_xsave): Ditto.
3186
3187         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3188         that it does not shadow a function parameter.
3189
3190         * i386-nat.c (i386_length_and_rw_bits): Document that case
3191         statement is meant to fall through.
3192
3193         * expprint.c (dump_subexp_body_standard): Document that case
3194         statement is meant to fall through.
3195
3196         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3197         dead if statement.  Condition can't be false.
3198
3199 2011-02-25  Michael Snyder  <msnyder@vmware.com>
3200
3201         * arm-tdep.c: Fix typos in comments.
3202         * bsd-uthread.c: Ditto.
3203         * completer.c: Ditto.
3204         * corelow.c: Ditto.
3205         * cp-namespace.c: Ditto.
3206         * cp-support.c: Ditto.
3207         * cris-tdep.c: Ditto.
3208         * dbxread.c: Ditto.
3209         * dwarf2read.c: Ditto.
3210         * frame.h: Ditto.
3211         * gdbtypes.h: Ditto.
3212         * inferior.h: Ditto.
3213         * mdebugread.c: Ditto.
3214         * mips-tdep.c: Ditto.
3215         * ppc-linux-nat.c: Ditto.
3216         * ppc-linux-tdep.c: Ditto.
3217         * printcmd.c: Ditto.
3218         * sol-thread.c: Ditto.
3219         * solib-frv.c: Ditto.
3220         * solist.h: Ditto.
3221         * sparc64-tdep.c: Ditto.
3222         * spu-tdep.c: Ditto.
3223         * stabsread.c: Ditto.
3224         * symfile.c: Ditto.
3225         * valops.c: Ditto.
3226         * varobj.c: Ditto.
3227         * vax-nat.c: Ditto.
3228         * python/py-block.c: Ditto.
3229         * python/py-symbol.c: Ditto.
3230         * python/py-symtab.c: Ditto.
3231         * python/py-value.c: Ditto.
3232         * tui/tui-win.c: Ditto.
3233
3234 2011-02-25  Michael Snyder  <msnyder@vmware.com>
3235
3236         * inferior.c (print_inferior): Accept a string instead of an int
3237         for requested_inferiors, and use get_number_or_range to parse it.
3238         (info_inferiors_command): Pass args string to print_inferior.
3239         (initialize_inferiors): Change help string for info inferiors.
3240         * inferior.h (print_inferior): Export prototype change.
3241
3242 2011-02-25  Tom Tromey  <tromey@redhat.com>
3243
3244         * common/ax.def (invalid2): Set to 0x31.
3245
3246 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3247
3248         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3249         L and plongest.
3250         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3251         use L and plongest.
3252         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3253
3254 2011-02-24  Michael Snyder  <msnyder@vmware.com>
3255
3256         * Makefile.in (clean): Make clean should remove generated files
3257         observer.h and observer.inc.
3258
3259 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
3260
3261         Revert the following patch (not approved yet):
3262         2011-02-21  Hui Zhu  <teawater@gmail.com>
3263         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3264         * ax-gdb.c (gen_printf_expr_callback): New function.
3265         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3266         * ax-general.c (ax_memcpy): New function.
3267         (ax_print): Handle "printf".
3268         (ax_reqs): Ditto.
3269         * ax.h (ax_memcpy): Forward declare.
3270         * common/ax.def (invalid2): Removed.
3271         (printf): New entry.
3272         * printcmd.c (printcmd.h): New include.
3273         (string_printf): New function.
3274         (ui_printf): Removed.
3275         (printf_command): Remove static.  Call string_printf.
3276         (eval_command): Call string_printf.
3277         * printcmd.h: New file.
3278         * tracepoint.c (validate_actionline,
3279         encode_actions_1): handle printf_command.
3280
3281 2011-02-23  Tom Tromey  <tromey@redhat.com>
3282
3283         * ax-general.c (ax_pick): Add missing newline.
3284
3285 2011-02-23  Michael Snyder  <msnyder@vmware.com>
3286
3287         * breakpoint.c (breakpoint_1): Change first argument from an int
3288         to a char pointer, so that the function now accepts a list of
3289         breakpoints rather than just one.  Use new function
3290         'number_is_in_list' to implement.
3291         (breakpoints_info): Pass char * instead of int to breakpoint_1.
3292         (watchpoints_info): Ditto.
3293         (tracepoints_info): Ditto.
3294         (maintenance_info_breakpoints): Ditto.
3295         (_initialize_breakpoint): Update help strings to reflect the fact
3296         that these functions can now take more than one argument.
3297         * cli/cli-utils.c (number_is_in_list): New function.
3298         * cli/cli-utils.h (number_is_in_list): Export.
3299
3300 2011-02-23  Michael Snyder  <msnyder@vmware.com>
3301
3302         * memattr.c (mem_enable_command): Use get_number_or_range.
3303         (mem_disable_command): Ditto.
3304         (mem_delete_command): Ditto.
3305         (_initialize_mem): Tweak usage message to reflect multiple
3306         arguments.
3307
3308 2011-02-22  Doug Evans  <dje@google.com>
3309
3310         Add gdb.lookup_global_symbol python function.
3311         * NEWS: Add entry.
3312         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3313         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3314         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3315
3316 2011-02-22  Tom Tromey  <tromey@redhat.com>
3317
3318         * language.c (language_class_name_from_physname): Rename
3319         'curr_language' argument to 'lang'; use in body.
3320
3321 2011-02-22  Michael Snyder  <msnyder@vmware.com>
3322
3323         * cli/cli-utils.c (number_is_in_list): Check for zero return.
3324
3325 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
3326
3327         * frame-unwind.h: Fix comment to mention the this frame, not the
3328         next.
3329
3330 2011-02-22  Tom Tromey  <tromey@redhat.com>
3331
3332         * symfile.c (auto_solib_limit): Remove.
3333         * symfile.h (auto_solib_limit): Remove.
3334
3335 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
3336
3337         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
3338
3339 2011-02-21  Michael Snyder  <msnyder@vmware.com>
3340
3341         * gdbthread.h (print_thread_info): Change prototype.
3342         * thread.c (print_thread_info): Accept char* instead of int for
3343         requested_threads argument.  Use new function number_is_in_list
3344         to determine which threads to list.
3345         (info_threads_command): Pass char* to print_thread_info.
3346         * cli/cli-utils.c (number_is_in_list): New function.
3347         * cli/cli-utils.h (number_is_in_list): Export.
3348         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3349         print_thread_info.
3350         (print_one_inferior): Ditto.
3351         (mi_cmd_list_thread_groups): Ditto.
3352
3353 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3354
3355         * common/Makefile.in (CFLAGS): New.
3356         (COMPILE): Add $(CFLAGS).
3357
3358 2011-02-21  Tom Tromey  <tromey@redhat.com>
3359
3360         * breakpoint.c (catch_syscall_command_1): Fix typo.
3361
3362 2011-02-21  Tom Tromey  <tromey@redhat.com>
3363
3364         * reverse.c: Include cli-utils.h.
3365         * printcmd.c: Include cli-utils.h.
3366         (string_printf): Use skip_spaces.
3367         * cli/cli-utils.h: New file.
3368         * cli/cli-utils.c: New file.
3369         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3370         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3371         * breakpoint.h (get_number, get_number_or_range): Move to
3372         cli-utils.h.
3373         * breakpoint.c: Include cli-utils.h.
3374         (get_number_trailer, get_number, get_number_or_range)
3375         (ep_skip_leading_whitespace): Move to cli-utils.c.
3376         (create_breakpoint_sal, find_condition_and_thread)
3377         (decode_static_tracepoint_spec, watch_command_1)
3378         (watch_maybe_just_location, ep_parse_optional_if_clause)
3379         (catch_fork_command_1, catch_exec_command_1)
3380         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3381         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3382         (SUBDIR_CLI_SRCS): Add cli-utils.c.
3383         (HFILES_NO_SRCDIR): Add cli-utils.h.
3384         (cli-utils.o): New target.
3385
3386 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
3387
3388         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3389         before calling discard_all_inferiors.
3390
3391 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
3392
3393         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3394         (struct builtin_opencl_type): Remove.
3395         (builtin_opencl_type): Change return type to "struct type **".
3396         (lookup_opencl_vector_type): Update caller.
3397         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3398         (build_opencl_types): Install plain array of "struct type *"
3399         instead of "struct builtin_opencl_type".
3400
3401 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3402             Ulrich Weigand  <uweigand@de.ibm.com>
3403
3404         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3405         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3406         (struct arm_linux_hwbp_cap): New type.
3407         (arm_linux_get_hwbp_cap): New function.
3408         (arm_linux_get_hw_breakpoint_count): Likewise.
3409         (arm_linux_get_hw_watchpoint_count): Likewise.
3410         (arm_linux_can_use_hw_breakpoint): Likewise.
3411         (arm_hwbp_type): New type.
3412         (arm_hwbp_control_t): Likewise.
3413         (struct arm_linux_hw_breakpoint): Likewise.
3414         (struct arm_linux_thread_points): Likewise.
3415         (arm_threads): New global variable.
3416         (arm_linux_find_breakpoints_by_tid): New function.
3417         (arm_hwbp_control_initialize): Likewise.
3418         (arm_hwbp_control_is_enabled): Likewise.
3419         (arm_hwbp_control_disable): Likewise.
3420         (arm_linux_hw_breakpoint_initialize): Likewise.
3421         (arm_linux_get_hwbp_type): Likewise.
3422         (arm_linux_hw_watchpoint_initialize): Likewise.
3423         (arm_linux_hw_breakpoint_equal): Likewise.
3424         (arm_linux_insert_hw_breakpoint1): Likewise.
3425         (arm_linux_remove_hw_breakpoint1): Likewise.
3426         (arm_linux_insert_hw_breakpoint): Likewise.
3427         (arm_linux_remove_hw_breakpoint): Likewise.
3428         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3429         (arm_linux_insert_watchpoint): Likewise.
3430         (arm_linux_remove_watchpoint): Likewise.
3431         (arm_linux_stopped_data_address): Likewise.
3432         (arm_linux_stopped_by_watchpoint): Likewise.
3433         (arm_linux_watchpoint_addr_within_range): Likewise.
3434         (arm_linux_new_thread): Likewise.
3435         (arm_linux_thread_exit): Likewise.
3436         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3437         related target callbacks.  Register arm_linux_new_thread and
3438         arm_linux_thread_exit.
3439         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3440         * arm-tdep.c (arm_pc_is_thumb): Make global.
3441         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3442
3443 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
3444
3445         * breakpoint.c (update_watchpoint): Do not attempt to recreate
3446         per-frame locations while within a function epilogue.
3447
3448 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3449
3450         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3451         to GNU coding standards.
3452
3453 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3454
3455         Allow use of mingw native on Windows 95 OS.
3456         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3457         (ser_windows_close): Only call CancelIo if function exists.
3458         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3459         to check for existence of CancelIo function in kernel32 DLL.
3460
3461 2011-02-21  Hui Zhu  <teawater@gmail.com>
3462
3463         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3464         * ax-gdb.c (gen_printf_expr_callback): New function.
3465         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3466         * ax-general.c (ax_memcpy): New function.
3467         (ax_print): Handle "printf".
3468         (ax_reqs): Ditto.
3469         * ax.h (ax_memcpy): Forward declare.
3470         * common/ax.def (invalid2): Removed.
3471         (printf): New entry.
3472         * printcmd.c (printcmd.h): New include.
3473         (string_printf): New function.
3474         (ui_printf): Removed.
3475         (printf_command): Remove static.  Call string_printf.
3476         (eval_command): Call string_printf.
3477         * printcmd.h: New file.
3478         * tracepoint.c (validate_actionline,
3479         encode_actions_1): handle printf_command.
3480
3481 2011-02-19  Michael Snyder  <msnyder@vmware.com>
3482
3483         * reverse.c (delete_one_bookmark): Argument is now bookmark
3484         id rather than pointer to bookmark struct.
3485         (delete_bookmark_command): Use get_number_or_range.
3486         (goto_bookmark_command): Parse with get_number instead of strtoul.
3487         (bookmark_1): New function.  Print info for one bookmark.
3488         (bookmarks_info): Use get_number_or_range and bookmark_1.
3489
3490 2011-02-18  Michael Snyder  <msnyder@vmware.com>
3491
3492         * thread.c (info_threads_command): Re-implement using
3493         get_number_or_range.
3494         (thread_apply_command): Ditto.
3495
3496 2011-02-18  Tom Tromey  <tromey@redhat.com>
3497
3498         * common/ax.def: New file.
3499         * ax.h (enum agent_op): Use ax.def.
3500         * ax-general.c (aop_map): Use ax.def.
3501
3502 2011-02-18  Tom Tromey  <tromey@redhat.com>
3503
3504         * ax-general.c (aop_map): Add pick and rot.
3505         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3506         <DW_OP_rot>: Implement.
3507         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3508         (ax_pick): Declare.
3509         * ax-general.c (ax_pick): New function.
3510
3511 2011-02-18  Tom Tromey  <tromey@redhat.com>
3512
3513         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3514
3515 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3516             Tom Tromey  <tromey@redhat.com>
3517
3518         * cp-support.c (make_symbol_overload_list_namespace): Do not call
3519         make_symbol_overload_list_block with NULL BLOCK.
3520         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3521
3522 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
3523
3524         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3525         * breakpoint.h (get_number_or_range): Declare.
3526         * printcmd.c (ALL_DISPLAYS): Declare.
3527         (delete_display): Reimplement taking a display pointer.
3528         (undisplay_command): Accept a range of displays to delete, using
3529         get_number_or_range.
3530
3531 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
3532
3533         * c-valprint.c (c_val_print): Add embedded_offset to address
3534         for arrays of unspecified length.
3535         * p-valprint.c (pascal_val_print): Likewise.
3536
3537 2011-02-18  Yao Qi  <yao@codesourcery.com>
3538
3539         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3540         (arm_process_displaced_insn): .. here. Remove parameter INSN.
3541         (thumb_process_displaced_insn): New.
3542         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3543         call to arm_process_displaced_insn.
3544         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3545
3546 2011-02-17  Tom Tromey  <tromey@redhat.com>
3547
3548         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3549         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3550         compile_dwarf_to_ax.  No longer static.  Call
3551         dwarf2_compile_cfa_to_ax.
3552         (locexpr_tracepoint_var_ref): Update.
3553         (loclist_tracepoint_var_ref): Update.
3554         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3555         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3556         argument; add 'gdbarch' and 'pc'.
3557         (dwarf2_compile_cfa_to_ax): New function.
3558         (dwarf2_frame_cache): Update.
3559
3560 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
3561
3562         * ada-lang.c (ada_type_of_array): Fix the size of the array
3563         in the case of an unconstrained packed array.
3564
3565 2011-02-17  Yao Qi  <yao@codesourcery.com>
3566
3567         * common/Makefile.in: Add more targets for make.
3568
3569 2011-02-16  Tom Tromey  <tromey@redhat.com>
3570
3571         * dwarf2loc.c (unimplemented): Fix typo.
3572
3573 2011-02-16  Tom Tromey  <tromey@redhat.com>
3574
3575         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3576         (compile_dwarf_to_ax) <default>: Use unimplemented.
3577         <DW_OP_deref>: Update.
3578         (disassemble_dwarf_expression): Update.
3579         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3580         (decode_locdesc): Update.
3581         * dwarf2expr.h (dwarf_stack_op_name): Update.
3582
3583 2011-02-16  Tom Tromey  <tromey@redhat.com>
3584
3585         * ax.h (struct aop_map) <name>: Now const.
3586
3587 2011-02-16  Tom Tromey  <tromey@redhat.com>
3588
3589         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3590         than axs_rvalue.
3591
3592 2011-02-16  Yao Qi  <yao@codesourcery.com>
3593
3594         * infrun.c (get_displaced_step_closure_by_addr): New.
3595         * inferior.h: Declare it.
3596         * arm-tdep.c: (arm_pc_is_thumb): Call
3597         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
3598         returns non-NULL.
3599
3600 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
3601             Jan Kratochvil  <jan.kratochvil@redhat.com>
3602
3603         gdb/
3604         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3605
3606 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
3607             Jan Kratochvil  <jan.kratochvil@redhat.com>
3608
3609         * value.c (value_contents_copy_raw): Extend describing comment.
3610         Assert that the destination contents we're overwriting are wholly
3611         available.
3612         (value_contents_copy): Extend describing comment.
3613
3614 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
3615             Jan Kratochvil  <jan.kratochvil@redhat.com>
3616
3617         * value.c (value_available_contents_eq): Remove redundant local
3618         variables.  Fix available contents comparision.
3619         * value.h (value_available_contents_eq): Extend describing
3620         comment.
3621
3622 2011-02-16  Yao Qi  <yao@codesourcery.com>
3623
3624         * thread.c (info_threads_command): Add missing i18n markup and remove
3625         trailing newline.
3626
3627 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
3628
3629         * breakpoint.c (longjmp_names): New variable.
3630         (struct breakpoint_objfile_data): New type.
3631         (breakpoint_objfile_key): New variable.
3632         (msym_not_found): New variable.
3633         (msym_not_found_p): New predicate.
3634         (get_breakpoint_objfile_data): New function.
3635         (create_overlay_event_breakpoint): Check per-objfile cache for
3636         symbols first.
3637         (create_longjmp_master_breakpoint): Likewise.
3638         (create_std_terminate_master_breakpoint): Likewise.
3639         (create_exception_master_breakpoint): Likewise.
3640         (_initialize_breakpoint): Register per-objfile data key.
3641
3642 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
3643
3644         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3645         parameter value.
3646         (create_longjmp_master_breakpoint): Loop over longjmp names.
3647         (create_std_terminate_master_breakpoint): Const-propagate parameter
3648         value.
3649         (update_breakpoints_after_exec): Adjust.
3650         (breakpoint_re_set): Adjust.
3651
3652 2011-02-15  Michael Snyder  <msnyder@vmware.com>
3653
3654         * thread.c (info_threads_command): Process arg as thread id,
3655         or list of thread ids.
3656         (thread_find_command): New command.
3657         (_initialize_thread): Document argument for info threads.
3658         Document 'thread find' command.
3659         * NEWS: Document new command "thread find".
3660
3661 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3662
3663         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3664         * aclocal.m4: Regenerated with aclocal-1.11.1.
3665         * common/configure: Regenerate with autoconf-2.64.
3666
3667 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
3668
3669         * opencl-lang.c (build_opencl_types): Set the size of the built-in
3670         bool data type to a size of one byte.
3671
3672 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
3673             Jan Kratochvil  <jan.kratochvil@redhat.com>
3674
3675         * target.c (memory_xfer_live_readonly_partial): Document where to
3676         look for interface description.
3677
3678 2011-02-15  Yao Qi  <yao@codesourcery.com>
3679
3680         PR tdep/12352
3681         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3682         order to store PC value on stack instead of text section.
3683
3684 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3685
3686         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3687         the EFP register set size.
3688         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3689         data from the VMX register.
3690         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3691         and write data from/to the VMX register.
3692
3693 2011-02-14  Michael Snyder  <msnyder@vmware.com>
3694
3695         * command.h (enum command_class): New class 'no_set_class', for
3696         "show" commands without a corresponding "set" command.
3697         * value.c (_initialize_values): Use 'no_set_class' for "show values".
3698         * copying.c (_initialize_copying): Ditto for "show copying" and
3699         "show warranty".
3700         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3701         "show version".
3702         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3703         which there is no corresponding "set" command (eg. "show copying").
3704
3705 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3706             Jan Kratochvil  <jan.kratochvil@redhat.com>
3707
3708         * exec.c (section_table_available_memory): Change `len' parameter
3709         type to ULONGEST.
3710         * exec.h (section_table_available_memory): Ditto.
3711         * value.h (read_value_memory): Rename the `offset' parameter to
3712         `embedded_offset'.
3713
3714 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3715             Jan Kratochvil  <jan.kratochvil@redhat.com>
3716
3717         * memrange.c (compare_mem_ranges): Mention sort order in
3718         describing comment.
3719         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
3720         * tracepoint.c (traceframe_available_memory): Extend comment to
3721         mention what happens to RESULT when the target does not support
3722         the query.
3723
3724 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3725             Jan Kratochvil  <jan.kratochvil@redhat.com>
3726
3727         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3728         range.
3729
3730 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3731
3732         * value.c (value_bits_valid, value_bits_synthetic_pointer):
3733         No longer handle NULL values.
3734
3735 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3736
3737         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3738         * value.c: Include "exceptions.h".
3739         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3740         generic error.
3741         * cp-abi.c: Include gdb_assert.h.
3742         (baseclass_offset): Add `embedded_offset' and `val' parameters.
3743         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
3744         errors.
3745         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3746         parameters.  No longer returns -1 on error.
3747         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3748         `val' parameters.
3749         * cp-valprint.c: Include exceptions.h.
3750         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3751         the baseclass_offset.  Handle unavailable base classes.  Use
3752         val_print_invalid_address.
3753         * p-valprint.c: Include exceptions.h.
3754         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3755         when fetching the baseclass_offset.  No longer expect
3756         baseclass_offset returning -1.  Handle unavailable base classes.
3757         Use val_print_invalid_address.
3758         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3759         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
3760         `embedded_offset' and `val' parameters.  Adjust.
3761         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3762         parameter, and change its type to gdb_byte pointer.  Add
3763         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
3764         baseclass_offset returning -1.
3765         (value_dynamic_cast): Use value_contents_for_printing rather than
3766         value_contents.  Adjust.
3767         (search_struct_field): No longer expect baseclass_offset returning
3768         -1.
3769         (search_struct_method): If reading memory from the target is
3770         necessary, wrap it in a new value to pass to baseclass_offset.  No
3771         longer expect baseclass_offset returning -1.
3772         (find_method_list): No longer expect baseclass_offset returning
3773         -1.  Use value_contents_for_printing rather than value_contents.
3774         * valprint.c (val_print_invalid_address): New function.
3775         * valprint.h (val_print_invalid_address): Declare.
3776         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3777         and `val' parameters.  No longer expect baseclass_offset returning
3778         -1.  Adjust.
3779         * gnu-v2-abi.c: Include "exceptions.h".
3780         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3781         parameters.  Handle unavailable memory.  Recurse through
3782         gnuv2_baseclass_offset directly, rather than through
3783         baseclass_offset.  No longer returns -1 on not found, instead
3784         throw an error.
3785         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3786         `val' parameters.  Adjust.
3787
3788 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3789
3790         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3791         almost but not quite adjacent.
3792
3793 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3794
3795         * value.h (value_entirely_available): Declare.
3796         * value.c (value_entirely_available): New function.
3797         * c-valprint.c (c_value_print): Don't try fetching the pointer's
3798         real type if the pointer is unavailable.
3799
3800 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3801
3802         * valops.c (value_repeat): Use read_value_memory instead of
3803         read_memory.
3804
3805 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3806
3807         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3808         * value.c (value_contents_copy_raw, value_contents_copy): New
3809         functions.
3810         (value_primitive_field): Use value_contents_copy_raw instead of
3811         memcpy.
3812         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3813         memcpy.
3814         (value_array, value_slice): Ditto.
3815         * valarith.c (value_subscripted_rvalue): Use
3816         value_contents_copy_raw instead of memcpy.
3817
3818 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3819
3820         <unavailable> references.
3821
3822         * valops.c (get_value_at): Use value_from_contents_and_address,
3823         avoiding read_memory.
3824
3825 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3826
3827         * c-valprint.c (c_val_print): Print a string with unavailable
3828         contents as an array.
3829
3830 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3831
3832         * value.h (unpack_bits_as_long): Delete declaration.
3833         (unpack_value_bits_as_long): Declare.
3834         (unpack_value_field_as_long): Declare.
3835         (value_field_bitfield): Declare.
3836         * value.c (unpack_bits_as_long): Rename to...
3837         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
3838         value parameters.  Return the extracted result in a new output
3839         parameter.  If the value contents are unavailable, return false,
3840         otherwise return true.
3841         (unpack_value_bits_as_long): New.
3842         (unpack_field_as_long): Rename to...
3843         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
3844         Add embedded_offset and value parameters.  Return the extracted
3845         result in a new output parameter. If the value contents are
3846         unavailable, return false, otherwise return true.
3847         (unpack_value_field_as_long): New.
3848         (unpack_field_as_long_1): New.
3849         (unpack_field_as_long): Reimplement as wrapper around
3850         unpack_value_field_as_long_1.
3851         (value_field_bitfield): New function.
3852         * valops.c (value_fetch_lazy): When fetching a bitfield, use
3853         unpack_value_bits_as_long.  Mark the value as unavailable, if it
3854         is unavailable.
3855         * jv-valprint.c (java_print_value_fields): Use
3856         value_field_bitfield.
3857         * p-valprint.c (pascal_object_print_value_fields): Use
3858         value_field_bitfield.
3859         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3860
3861 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3862
3863         * value.c (get_internalvar_integer): Also return the int value of
3864         TYPE_CODE_INT INTERNALVAR_VALUE values.
3865         (set_internalvar): Don't special case TYPE_CODE_INT.
3866
3867 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3868
3869         * value.c (struct internalvar) <enum internalvar_kind>: Remove
3870         INTERNALVAR_POINTER.
3871         <pointer>: Delete.
3872         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3873         (set_internalvar): Remove special TYPE_CODE_PTR handling.
3874         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3875
3876 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3877
3878         * value.h (value_available_contents_eq): Declare.
3879         * value.c (find_first_range_overlap): New function.
3880         (value_available_contents_eq): New function.
3881         * valprint.c (val_print_array_elements): Use
3882         value_available_contents_eq.
3883         * ada-valprint.c (val_print_packed_array_elements): Use
3884         value_available_contents_eq.
3885         * jv-valprint.c (java_value_print): Use
3886         value_available_contents_eq.
3887
3888 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3889
3890         * target.c (target_read_live_memory): New function.
3891         (memory_xfer_live_readonly_partial): New.
3892         (memory_xfer_partial): If reading from a traceframe, fallback to
3893         reading unavailable read-only memory from read-only regions of
3894         live target memory.
3895         * tracepoint.c (disconnect_tracing): Adjust.
3896         (set_current_traceframe): New, factored out from
3897         set_traceframe_number.
3898         (set_traceframe_number): Reimplement to only change the traceframe
3899         number on the GDB side.
3900         (do_restore_current_traceframe_cleanup): Adjust.
3901         (make_cleanup_restore_traceframe_number): New.
3902         (cur_traceframe_number): New global.
3903         (tfile_open): Set cur_traceframe_number to no traceframe.
3904         (set_tfile_traceframe): New function.
3905         (tfile_trace_find): If looking up a traceframe using any method
3906         other than by number, make sure the current tfile traceframe
3907         matches gdb's current traceframe.  Update the current tfile
3908         traceframe if the lookup succeeded.
3909         (tfile_fetch_registers, tfile_xfer_partial)
3910         (tfile_get_trace_state_variable_value): Make sure the remote
3911         traceframe matches gdb's current traceframe.
3912         * remote.c (remote_traceframe_number): New global.
3913         (remote_open_1): Set it to -1.
3914         (set_remote_traceframe): New function.
3915         (remote_fetch_registers, remote_store_registers)
3916         (remote_xfer_memory, remote_xfer_partial)
3917         (remote_get_trace_state_variable_value): Make sure the remote
3918         traceframe matches gdb's current traceframe.
3919         (remote_trace_find): If looking up a traceframe using any method
3920         other than by number, make sure the current remote traceframe
3921         matches gdb's current traceframe.  Update the current remote
3922         traceframe if the lookup succeeded.
3923         * infrun.c (fetch_inferior_event): Adjust.
3924         * tracepoint.h (set_current_traceframe): Declare.
3925         (get_traceframe_number, set_traceframe_number): Add describing
3926         comments.
3927
3928 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3929
3930         Mark pieces of values as unavailable if the corresponding memory
3931         is unavailable.
3932
3933         * valops.c: Include tracepoint.h.
3934         (value_fetch_lazy): Use read_value_memory.
3935         (read_value_memory): New.
3936         * value.h (read_value_memory): Declare.
3937         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3938         * exec.c (section_table_available_memory): New function.
3939         * exec.h (section_table_available_memory): Declare.
3940
3941 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3942
3943         * Makefile.in (SFILES): Add memrange.c.
3944         (HFILES_NO_SRCDIR): Add memrange.h.
3945         (COMMON_OBS): Add memrange.o.
3946         * memrange.c: New file.
3947         * memrange.h: New file.
3948         * tracepoint.c: Include memrange.h.
3949         (struct mem_range): Delete.
3950         (mem_range_s): Delete.
3951         (traceframe_available_memory): New function.
3952         * tracepoint.h (traceframe_available_memory): Declare.
3953
3954 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3955
3956         * target.h (struct traceframe_info): Forward declare.
3957         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3958         (struct target_ops) <to_traceframe_info>: New field.
3959         (target_traceframe_info): New.
3960         * target.c (update_current_target): Inherit and default
3961         to_traceframe_info.
3962         * remote.c (PACKET_qXfer_traceframe_info): New.
3963         (remote_protocol_features): Register qXfer:traceframe-info:read.
3964         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3965         (remote_traceframe_info): New.
3966         (init_remote_ops): Install it.
3967         (_initialize_remote): Install "set/show remote traceframe-info"
3968         commands.
3969         * tracepoint.h (parse_traceframe_info): Declare.
3970         * tracepoint.c (struct mem_range): New.
3971         (mem_range_s): New typedef.
3972         (struct traceframe_info): New.
3973         (traceframe_info): New global.
3974         (free_traceframe_info): New function.
3975         (clear_traceframe_info): New function.
3976         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3977         info.
3978         (build_traceframe_info): New function.
3979         (tfile_traceframe_info): New function.
3980         (init_tfile_ops): Install tfile_traceframe_info.
3981         (traceframe_info_start_memory, free_result): New functions.
3982         (memory_attributes, traceframe_info_elements): New globals.
3983         (parse_traceframe_info, get_traceframe_info): New functions.
3984         * features/traceframe-info.dtd: New file.
3985         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3986
3987 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
3988
3989         Base support for <unavailable> value contents.
3990
3991         * value.h (value_bytes_available): Declare.
3992         (mark_value_bytes_unavailable): Declare.
3993         * value.c (struct range): New struct.
3994         (range_s): New typedef.
3995         (ranges_overlap): New function.
3996         (range_lessthan): New function.
3997         (ranges_contain_p): New function.
3998         (struct value) <unavailable>: New field.
3999         (value_bytes_available): New function.
4000         (mark_value_bytes_unavailable): New function.
4001         (require_not_optimized_out): Constify parameter.
4002         (require_available): New function.
4003         (value_contents_all, value_contents): Require all bytes be
4004         available.
4005         (value_free): Free `unavailable'.
4006         (value_copy): Copy `unavailable'.
4007         * valprint.h (val_print_unavailable): Declare.
4008         * valprint.c (valprint_check_validity): Rename `offset' parameter
4009         to `embedded_offset'.  If printing a scalar, check whether the
4010         value chunk is available.
4011         (val_print_unavailable): New.
4012         (val_print_scalar_formatted): Check whether the value is
4013         available.
4014         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4015         pretty-printing unavailable values.
4016
4017 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4018
4019         Fix const/volatile qualifiers of C++ types, PR c++/12328.
4020         * c-typeprint.c (c_type_print_args): Update the function comment.  New
4021         variable param_type, initialize it.  Remove const/volatile qualifiers
4022         for language_cplus and !show_artificial.  Use param_type.
4023
4024 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4025
4026         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4027         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
4028         * symtab.h (struct symtab) <next>: Comment extension.
4029
4030 2011-02-12  Yao Qi  <yao@codesourcery.com>
4031
4032         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4033
4034 2011-02-11  Yao Qi  <yao@codesourcery.com>
4035
4036         * common/Makefile.in: Add copyright header.
4037
4038 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
4039
4040         * infrun.c (proceed): Move switching out and in of tfind mode from
4041         here ...
4042         (fetch_inferior_event): ... to here.
4043
4044 2011-02-11  Yao Qi  <yao@codesourcery.com>
4045
4046         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
4047         libcommon.a.
4048         * configure.ac: Add common to sub dir.
4049         * configure: Regenerate.
4050
4051 2011-02-11  Yao Qi  <yao@codesourcery.com>
4052
4053         Build libcommon.a.
4054
4055         * common/Makefile.in: New.
4056         * common/configure.ac: New.
4057         * common/aclocal.m4: New.
4058         * common/configure: Generate.
4059
4060 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
4061
4062         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4063         side of the parenthesis.
4064
4065         Merge from GCC:
4066         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4067         * vec.h (VEC_block_remove): Fix comment.
4068
4069 2011-02-08  Michael Snyder  <msnyder@vmware.com>
4070
4071         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4072
4073 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4074
4075         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4076         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4077         psubd and paddd.
4078
4079 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4080
4081         PR 12361.
4082         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4083         phsubsw.
4084         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4085         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4086
4087 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
4088
4089         * dwarf2read.c (read_subroutine_type): Set special calling
4090         convention flag for functions compiled by IBM XL C for OpenCL.
4091         * ppc-sysv-tdep.c: Include "dwarf2.h"
4092         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4093         calling convention.
4094         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
4095         IBM OpenCL vector types calling convention.
4096         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4097         (ppc_sysv_abi_broken_return_value): Likewise.
4098         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4099         types calling convention.
4100         (ppc64_sysv_abi_return_value): Likewise.
4101         * spu-tdep.c: Include "dwarf2.h"
4102         (spu_return_value): Implement IBM OpenCL vector types calling
4103         convention.
4104
4105 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
4106
4107         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4108         correct ABI for AltiVec vector arguments.
4109
4110 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
4111
4112         * valprint.c (val_print): Extend comment.
4113         * ada-valprint.c (ada_valprint): Rewrite comment deferring
4114         interface explanation to val_print.
4115         (ada_val_print_array): Adjust comment to current interface.
4116         (print_field_values): Adjust comment to current interface.
4117         * c-valprint.c (c_val_print): Rewrite comment deferring interface
4118         explanation to val_print.
4119         * f-valprint.c (f_val_print): Ditto.
4120         * jv-valprint.c (java_val_print): Ditto.
4121         * m2-valprint.c (m2_val_print): Ditto.
4122         * p-valprint.c (pascal_val_print): Ditto.
4123
4124 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4125
4126         * breakpoint.c (parse_breakpoint_sals): Fix description.
4127
4128 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
4129             Oguz Kayral <oguzkayral@gmail.com>
4130
4131         * python/py-inferior.c (python_on_normal_stop): New function.
4132         (python_on_resume): New function.
4133         (python_inferior_exit): New function.
4134         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4135         inferior_exit observers.
4136         * python/py-evtregistry.c: New file.
4137         * python/py-threadevent.c : New file.
4138         * python/py-event.c: New file.
4139         * python/py-evts.c: New file.
4140         * python/py-continueevent.c: New file.
4141         * python/py-bpevent.c: New file.
4142         * python/py-signalevent.c: New file.
4143         * python/py-exetiedevent.c: New file.
4144         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4145         Move struct breakpoint_object from here...
4146         * python/python-internal.h: ... to here.
4147         * python/py-event.h: New file.
4148         * python/py-events.h: New file.
4149         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4150         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4151         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4152         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4153         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4154         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4155         Add build rules for all the above.
4156
4157 2011-02-04  Tom Tromey  <tromey@redhat.com>
4158
4159         * dwarf2read.c (dwarf2_section_empty_p): New function.
4160         (dwarf2_read_section): Use dwarf2_section_empty_p.
4161         (dwarf2_section_size): New function.
4162         (dwarf2_get_section_info): Unconditionally read section.
4163         (dwarf2_read_index): Use dwarf2_section_empty_p.
4164         (partial_read_comp_unit_head): Use dwarf2_section_size.
4165         (dwarf2_symbol_mark_computed): Likewise.
4166
4167 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4168
4169         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4170
4171 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4172
4173         * mips-linux-tdep.c: Include xml-syscall.h.
4174         (mips_linux_get_syscall_number): New function.
4175         (mips_linux_init_abi): Add calls to
4176         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4177         * data-directory/Makefile.in (SYSCALLS_FILES): Add
4178         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4179         * syscalls/mips-n32-linux.xml: New file.
4180         * syscalls/mips-n64-linux.xml: New file.
4181         * syscalls/mips-o32-linux.xml: New file.
4182
4183 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
4184
4185         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4186         Complain about inverted range entries.
4187         (dwarf2_record_block_ranges): Likewise.
4188
4189 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4190
4191         Fix some typos.
4192         * breakpoint.c (update_watchpoint): Fix name of the
4193         update_global_location_list function.
4194         (print_one_breakpoint): Fix typo.
4195         (_initialize_breakpoint): Remove extra space in hbreak help
4196         string.
4197         * breakpoint.h (struct bp_location) <length>: Fix field
4198         description.
4199
4200 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
4201
4202         * regcache.c (registers_changed_ptid): Don't explictly always
4203         clear `current_regcache'.  Only clear current_thread_ptid and
4204         current_thread_arch when PTID matches.  Only reinit the frame
4205         cache if PTID matches the current inferior_ptid.  Move alloca(0)
4206         call to ...
4207         (registers_changed): ... here.
4208
4209 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
4210
4211         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4212         starts with __stack_chk_guard as stack guard symbol.
4213
4214 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
4215
4216         * disasm.c (compare_lines): Handle the end of sequence markers
4217         within the line table to better support disassembling over
4218         compilation unit boundaries.
4219
4220 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
4221
4222         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4223         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
4224         implementation even if no symbols are available.
4225         (thumb_analyze_prologue): Update call to skip_prologue_function.
4226         (arm_analyze_prologue): Likewise.
4227
4228 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
4229
4230         * arm-tdep.c: Include "observer.h".
4231         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4232         (arm_exidx_data_key): New static variable.
4233         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4234         (struct arm_exidx_data): Likewise.
4235         (arm_exidx_data_free): New function.
4236         (arm_compare_exidx_entries): Likewise.
4237         (arm_obj_section_from_vma): Likewise.
4238         (arm_exidx_new_objfile): Likewise.
4239         (arm_find_exidx_entry): Likewise.
4240         (arm_exidx_fill_cache): Likewise.
4241         (arm_exidx_unwind_sniffer): Likewise.
4242         (arm_exidx_unwind): New global variable.
4243         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4244         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4245         observer.  Register arm_exidx_data_key as objfile data.
4246
4247 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
4248
4249         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4250         due to accessing uninitialized variable.  Fix indentation.
4251
4252 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
4253
4254         * c-valprint.c (c_value_print): When doing virtual base pointer
4255         adjustment, create a new value with adjusted contents rather than
4256         changing the contents of the value being printed (and getting it
4257         wrong).
4258
4259 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
4260
4261         * xml-support.c (xml_find_attribute): New.
4262         (xinclude_start_include): Use it.
4263         * xml-support.h (xml_find_attribute): Declare.
4264         * memory-map.c (memory_map_start_memory)
4265         (memory_map_start_property): Use xml_find_attribute.
4266         * osdata.c (osdata_start_osdata, osdata_start_column): Use
4267         xml_find_attribute.
4268         * remote.c (start_thread): Use xml_find_attribute.
4269         * solib-target.c (library_list_start_segment)
4270         (library_list_start_section, library_list_start_library)
4271         (library_list_start_list): Use xml_find_attribute.
4272         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4273         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4274         (tdesc_start_field): Use xml_find_attribute.
4275
4276 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
4277
4278         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4279         (BUILD_OCL_VTYPES): Update.
4280
4281 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
4282
4283         * configure.ac: Work around non-GNU sed limitation when computing
4284         python version number.
4285         * configure: Regenerate.
4286
4287 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4288
4289         Fix debug printing of TYPE_INSTANCE.
4290         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4291         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4292
4293 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4294
4295         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4296         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4297         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4298         * ada-operator.inc: Rename the file to ...
4299         * ada-operator.def: ... here, wrap all the entries by macro OP.
4300         * expprint.c (op_name_standard): Remove all the entries.  Include
4301         "std-operator.def" instead.
4302         * expression.h (enum exp_opcode): Include "std-operator.def" and
4303         "ada-operator.def".  Move all the entries ...
4304         * std-operator.def: ... here, wrap all the entries by macro OP.
4305
4306 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
4307
4308         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4309         * breakpoint.c (remove_jit_event_breakpoints): New function.
4310         * jit.c (jit_descriptor_addr): Delete.
4311         (registering_code): Delete.
4312         (clear_int): Delete.
4313         (jit_inferior_data): New variable.
4314         (struct jit_inferior_data): New type.
4315         (get_jit_inferior_data): New function.
4316         (jit_inferior_data_cleanup): New function.
4317         (jit_read_descriptor): Adjust.
4318         (jit_register_code): Adjust.
4319         (jit_breakpoint_re_set_internal): New function; move code here ...
4320         (jit_inferior_init): ... from here.
4321         (jit_breakpoint_re_set): Adjust.
4322         (jit_reset_inferior_data_and_breakpoints): New function.
4323         (jit_inferior_created_observer): Adjust.
4324         (jit_inferior_exit_hook): Adjust.
4325         (jit_executable_changed_observer): New function.
4326         (jit_event_handler): Adjust.
4327         (_initialize_jit): Adjust.
4328
4329 2011-01-31  Michael Snyder  <msnyder@vmware.com>
4330
4331         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4332         line.
4333
4334 2011-01-31  Tom Tromey  <tromey@redhat.com>
4335
4336         PR python/12216:
4337         * python/python.c (execute_gdb_command): Call
4338         prevent_dont_repeat.
4339         * top.c (suppress_dont_repeat): New global.
4340         (dont_repeat): Use it.
4341         (prevent_dont_repeat): New function.
4342         * command.h (prevent_dont_repeat): Declare.
4343
4344 2011-01-31  Tom Tromey  <tromey@redhat.com>
4345
4346         * infcmd.c (finish_backward): Use breakpoint_set_silent.
4347         * python/py-breakpoint.c (bppy_set_silent): Use
4348         breakpoint_set_silent.
4349         (bppy_set_thread): Use breakpoint_set_thread.
4350         (bppy_set_task): Use breakpoint_set_task.
4351         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4352         (breakpoint_set_task): Declare.
4353         (make_breakpoint_silent): Remove.
4354         * breakpoint.c (breakpoint_set_silent): New function.
4355         (breakpoint_set_thread): Likewise.
4356         (breakpoint_set_task): Likewise.
4357         (make_breakpoint_silent): Remove.
4358
4359 2011-01-31  Tom Tromey  <tromey@redhat.com>
4360
4361         * breakpoint.h (user_breakpoint_p): Declare.
4362         * breakpoint.c (user_breakpoint_p): New function.
4363         (breakpoint_1): Use it.
4364         (save_breakpoints): Likewise.
4365
4366 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
4367
4368         * configure.ac: Add handling of Python distribution on Windows.
4369         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4370         sysconfig variables are not defined, then do not use them.
4371         On Windows, if LIBPL is not defined, then use prefix + '/libs'
4372         instead.  On Windows, return all paths using forward-slashes
4373         rather than backslashes.
4374
4375 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
4376
4377         * configure.ac: Remove fallback behavior for building
4378         against Python.  Remove tweaking of Python include path.
4379         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4380         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
4381         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4382         Always restore CPPFLAGS and LIBS after linking test.
4383         * configure: Regenerated.
4384         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4385         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4386         * python/python-internal.h: Adjust includes of Python .h files.
4387
4388 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
4389
4390         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4391         in error message.
4392
4393 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
4394
4395         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4396         value test.
4397
4398 2011-01-31  Yao Qi  <yao@codesourcery.com>
4399
4400         * arm-linux-nat.c: Update calls to regcache_register_status
4401         instead of regcache_valid_p.
4402         * aix-thread.c: Likewise.
4403         * i386gnu-nat.c: Likewise.
4404
4405 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
4406
4407         Fix crash.
4408         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4409         touching TYPE_FIELD_ARTIFICIAL.
4410
4411 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
4412
4413         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4414         Committers.
4415
4416 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
4417
4418         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4419         selected, don't try iterating over the traceframe's blocks.
4420         (tfile_has_stack): If there's no traceframe selected, then there's
4421         no stack.
4422         (tfile_has_registers): If there's no traceframe selected, then
4423         there's no registers.
4424
4425 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
4426
4427         * target.c (memory_xfer_partial): No need to restore shadows if we
4428         haven't read anything.
4429
4430 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
4431
4432         * mips-tdep.c (mips_print_register): Use get_frame_register_value
4433         and val_print_scalar_formatted.
4434
4435 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
4436
4437         * tracepoint.c (tfile_read): New.
4438         (tfile_open): Use it.
4439         (tfile_get_traceframe_address): Use it.
4440         (tfile_trace_find): Use it.
4441         (walk_blocks_callback_func): New typedef.
4442         (match_blocktype): New function.
4443         (traceframe_walk_blocks): New function.
4444         (traceframe_find_block_type): New function.
4445         (tfile_fetch_registers, tfile_xfer_partial)
4446         (tfile_get_trace_state_variable_value): Use
4447         traceframe_find_block_type and tfile_read.
4448
4449 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
4450
4451         * remote-mips.c: Add internationalization mark ups.  Remove
4452         trailing \n from already marked up strings.
4453
4454 2011-01-26  Tom Tromey  <tromey@redhat.com>
4455
4456         * python/py-prettyprint.c (print_string_repr): Clear
4457         'addressprint' option when calling val_print_string.
4458         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
4459         option when calling val_print_string.
4460
4461 2011-01-26  Tom Tromey  <tromey@redhat.com>
4462
4463         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4464         GDB_PY_LL_ARG.
4465         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4466         macros.
4467         (gdb_py_longest, gdb_py_ulongest): New typedefs.
4468         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4469         (gdb_py_long_as_ulongest): New defines.
4470         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4471         (gdb_py_int_as_long): Declare.
4472         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4473         GDB_PY_LL_ARG, gdb_py_object_from_longest.
4474         (valpy_long): Add comment.
4475         * python/py-utils.c (get_addr_from_python): Use
4476         gdb_py_long_as_ulongest.  Handle overflow properly.
4477         (gdb_py_object_from_longest): New function.
4478         (gdb_py_object_from_ulongest): Likewise.
4479         (gdb_py_int_as_long): Likewise.
4480         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4481         * python/py-symtab.c (salpy_get_pc): Use
4482         gdb_py_long_from_ulongest.
4483         (salpy_get_line): Use PyInt_FromLong.
4484         * python/py-param.c (set_parameter_value): Use
4485         gdb_py_int_as_long.
4486         * python/py-lazy-string.c (stpy_get_address): Use
4487         gdb_py_long_from_ulongest.
4488         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4489         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4490         * python/py-breakpoint.c (bppy_set_thread): Use
4491         gdb_py_int_as_long.
4492         (bppy_set_task): Likewise.
4493         (bppy_set_ignore_count): Likewise.
4494         (bppy_set_hit_count): Likewise.
4495         * python/py-block.c (blpy_get_start): Use
4496         gdb_py_object_from_ulongest.
4497         (blpy_get_end): Likewise.
4498         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4499
4500 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
4501
4502         PR/symtab 11766:
4503         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4504         * gdb/solib.c (solib_read_symbols): Check for addr_low in
4505         equality test for objfile, initialize addr_low if needed.
4506
4507 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
4508
4509         * tui/tui-regs.c (tui_register_format): Remove dead code.
4510
4511 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
4512
4513         * printcmd.c (print_formatted): Use val_print_scalar_formatted
4514         instead of print_scalar_formatted.
4515         (print_scalar_formatted): Don't handle 's' format strings here,
4516         and add an assertion that we never see such format here.
4517         * valprint.h (val_print_scalar_formatted): Declare.
4518         * valprint.c (val_print_scalar_formatted): New.
4519         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4520         instead of print_scalar_formatted.
4521         * jv-valprint.c (java_val_print): Ditto.
4522         * p-valprint.c (pascal_val_print): Ditto.
4523         * ada-valprint.c (ada_val_print_1): Ditto.
4524         * f-valprint.c (f_val_print): Ditto.
4525         * infcmd.c (registers_info): Ditto.
4526         * m2-valprint.c (m2_val_print): Ditto.
4527
4528 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
4529
4530         * m2-valprint.c (print_unbounded_array): Pass
4531         value_contents_for_printing rather than value_contents, to
4532         m2_print_array_contents.  Also pass in the value.
4533
4534 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4535
4536         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4537         (save_gdb_index_command): Switch to .gdb_index version 4.
4538
4539 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
4540
4541         * mi/mi-main.c (get_register): Use get_frame_register_value rather
4542         than frame_register, and always pass a valid value to val_print.
4543
4544 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
4545
4546         Centralize printing "<optimized out>".
4547
4548         * valprint.h (val_print_optimized_out): Declare.
4549         * cp-valprint.c (cp_print_value_fields): Use
4550         val_print_optimized_out.
4551         * jv-valprint.c (java_print_value_fields): Ditto.
4552         * p-valprint.c (pascal_object_print_value_fields): Ditto.
4553         * printcmd.c (print_formatted): Ditto.
4554         * valprint.c (valprint_check_validity): Ditto.
4555         (value_check_printable): Ditto.
4556         (val_print_optimized_out): New.
4557
4558 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
4559
4560         * infcmd.c (default_print_registers_info): Allocate values so to
4561         never pass a NULL value to val_print.
4562
4563 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
4564
4565         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4566         boolean.  Make sure to always pass a value that matches the
4567         contents buffer to callees.  Preserve `address' for following
4568         iterations.
4569         * value.c (value_contents_for_printing_const): New.
4570         (value_address): Constify value argument.
4571         * value.h (value_contents_for_printing_const): Declare.
4572         (value_address): Constify value argument.
4573
4574 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
4575
4576         * regcache.c (struct regcache_descr): Rename
4577         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4578         and sizeof_cooked_register_valid_p to
4579         sizeof_cooked_register_status.
4580         (init_regcache_descr): Adjust.
4581         (struct regcache): Rename register_valid_p field to
4582         register_status.
4583         (regcache_xmalloc_1, regcache_xfree, regcache_save)
4584         (do_cooked_read): Adjust.
4585         (regcache_valid_p): Rename to ...
4586         (regcache_register_status): ... this.  Adjust.
4587         (regcache_invalidate): Adjust.
4588         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4589         Adjust.
4590         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
4591         as unavailable, not valid.
4592         (regcache_dump): Adjust.
4593         * regcache.h (enum register_status): New.
4594         (regcache_register_status): Declare.
4595         (regcache_invalidate): Delete declaration.
4596         * corelow.c (get_core_registers): Adjust.
4597         * tracepoint.c (tfile_fetch_registers): Adjust.
4598         * trad-frame.c (REG_VALUE): Rename to ...
4599         (TF_REG_VALUE): ... this.
4600         (REG_UNKNOWN): Rename to ...
4601         (TF_REG_UNKNOWN): ... this.
4602         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4603         * mi/mi-main.c (register_changed_p): Adjust.
4604
4605 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
4606
4607         * regcache.c (struct regcache_descr): Remove outdated comment.
4608         (init_regcache_descr): Remove sizeof_raw_register_valid_p
4609         overallocate hack.
4610         (regcache_xmalloc): Rename to ...
4611         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
4612         Allocate the regcache type accordingly.
4613         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4614         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
4615         cooked registers, not raw.
4616         (regcache_dup_no_passthrough): Delete.
4617         (get_thread_arch_regcache): Use regcache_xmalloc_1.
4618         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4619         mention obsolete write_register_bytes.
4620         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4621
4622 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
4623
4624         Stop remote_read_bytes from handling partial reads itself.
4625
4626         * remote-fileio.c: Include target.h.
4627         (remote_fileio_write_bytes): Delete.
4628         (remote_fileio_func_open, remote_fileio_func_write)
4629         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4630         target_read_memory.
4631         (remote_fileio_func_stat): Use target_read_memory and
4632         target_write_memory.
4633         (remote_fileio_func_gettimeofday): Use target_write_memory.
4634         (remote_fileio_func_system): Use target_read_memory.
4635         * remote.c (remote_write_bytes): Make it static.
4636         (remote_read_bytes): Don't handle partial reads here.
4637         * remote.h (remote_read_bytes): Delete declaration.
4638
4639 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
4640
4641         Simplify XML parsing a bit.
4642
4643         * xml-support.h (gdb_xml_parse_quick): Declare.
4644         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4645         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4646         parameter.
4647         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4648         gdb_xml_create_parser_and_cleanup_1.
4649         (gdb_xml_parse_quick): New.
4650         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4651         * osdata.c (osdata_parse): Ditto.
4652         * remote.c (remote_threads_info): Ditto.
4653         * solib-target.c (solib_target_parse_libraries): Ditto.
4654         * xml-syscall.c (syscall_parse_xml): Ditto.
4655         * xml-tdesc.c (tdesc_parse_xml): Ditto.
4656
4657 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
4658
4659         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4660         with remote-mips.o added to gdb_target_obs.
4661         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4662
4663 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
4664
4665         * ada-valprint.c (val_print_packed_array_elements): Pass the
4666         correct struct value to val_print.
4667         (ada_val_print_1): Ditto.
4668
4669 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
4670
4671         Don't lose embedded_offset in printing routines throughout.
4672
4673         * valprint.h (val_print_array_elements): Change prototype.
4674         * valprint.c (val_print_array_elements): Add `embedded_offset'
4675         parameter, and adjust to pass it down to val_print, while passing
4676         `valaddr' or `address' unmodified.  Take embedded_offset into
4677         account when checking repetitions.
4678         * c-valprint.c (c_val_print): Pass embedded_offset to
4679         val_print_array_elements instead of adjusting `valaddr' and
4680         `address'.
4681         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4682         embedded_offset to val_print_array_elements instead of adjusting
4683         `valaddr'.
4684         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4685         * p-valprint.c (pascal_val_print): Pass embedded_offset to
4686         val_print_array_elements and pascal_object_print_value_fields
4687         instead of adjusting `valaddr'.
4688         (pascal_object_print_value_fields): Add `offset' parameter, and
4689         adjust to use it.
4690         (pascal_object_print_value): Add `offset' parameter, and adjust to
4691         use it.
4692         (pascal_object_print_static_field): Use
4693         value_contents_for_printing/value_embedded_offset, rather than
4694         value_contents.
4695         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4696         parameter, and adjust to use it.  Use
4697         value_contents_for_printing/value_embedded_offset, rather than
4698         value_contents.
4699         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4700         (ada_val_print_array): Add `offset' parameter, and adjust to use
4701         it.
4702         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4703         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
4704         Instead work with offsets.  Use
4705         value_contents_for_printing/value_embedded_offset, rather than
4706         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
4707         and use value_from_pointer to extract a target pointer, rather
4708         than value_from_longest.
4709         (print_variant_part): Add `offset' parameter.  Replace
4710         `outer_valaddr' parameter by a new `outer_offset' parameter.
4711         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
4712         (ada_value_print): Use
4713         value_contents_for_printing/value_embedded_offset, rather than
4714         value_contents.
4715         (print_record): Add `offset' parameter, and adjust to pass it
4716         down.
4717         (print_field_values): Add `offset' parameter.  Replace
4718         `outer_valaddr' parameter by a new `outer_offset' parameter.
4719         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
4720         Use value_contents_for_printing/value_embedded_offset, rather than
4721         value_contents.
4722         * d-valprint.c (dynamic_array_type): Use
4723         value_contents_for_printing/value_embedded_offset, rather than
4724         value_contents.
4725         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4726         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
4727         (java_print_value_fields): Take `offset' into account.  Don't
4728         re-adjust `valaddr'.  Instead pass down adjusted offsets.
4729         (java_val_print): Take `embedded_offset' into account.  Pass it to
4730         java_print_value_fields.
4731         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4732         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
4733         down adjusted offsets.
4734         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
4735         (f_val_print): Take `embedded_offset' into account.
4736
4737 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
4738
4739         * inflow.c: Include "gdbcmd.h".
4740         (interactive_mode): New static global, moved here from top.c.
4741         (show_interactive_mode): New function, moved here from top.c.
4742         use gdb_has_a_terminal instead of input_from_terminal_p to
4743         determine the current mode.
4744         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4745         setting.
4746         (_initialize_inflow): Add the "set/show interactive-mode"
4747         commands.  Moved here from top.c, after having adjusted slightly
4748         the help text.
4749         * top.c (interactive_mode, show_interactive_mode): Delete, moved
4750         to inflow.c.
4751         (input_from_terminal_p): Remove handling of "interactive-mode"
4752         setting, moved to infow.c.
4753         (init_main): Remove creation of the "set/show interactive-mode"
4754         commands, moved to inflow.c.
4755
4756 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
4757
4758         * NEWS: Add entry for native ia64-hpux support.
4759
4760 2011-01-19  Tom Tromey  <tromey@redhat.com>
4761
4762         PR mi/8618:
4763         * thread.c (free_thread): Free 'name'.
4764         (print_thread_info): Emit thread name.  Change CLI output.
4765         (thread_name_command): New function.
4766         (do_captured_thread_select): Emit newline.
4767         (_initialize_thread): Register 'thread name' command.
4768         * target.h (struct target_ops) <to_thread_name>: New field.
4769         (target_thread_name): New macro.
4770         * target.c (update_current_target): Handle to_thread_name.
4771         * python/py-infthread.c (thpy_get_name): New function.
4772         (thpy_set_name): Likewise.
4773         (thread_object_getset): Add "name".
4774         * linux-nat.c (linux_nat_thread_name): New function.
4775         (linux_nat_add_target): Set to_thread_name.
4776         * gdbthread.h (struct thread_info) <name>: New field.
4777
4778 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
4779
4780         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4781         (ada_val_print_1): Likewise.
4782
4783 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
4784
4785         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4786         upper limit address is not greater than the function end address
4787         when the upper limit could not be computed using the debugging
4788         info.
4789
4790 2011-01-17  Tom Tromey  <tromey@redhat.com>
4791
4792         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
4793         get_regcomp_error.
4794         * utils.c: Include gdb_regex.h.
4795         (do_regfree_cleanup): New function.
4796         (make_regfree_cleanup): Likewise.
4797         (get_regcomp_error): Likewise.
4798         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4799
4800 2011-01-17  Tom Tromey  <tromey@redhat.com>
4801
4802         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
4803         re_compile_fastmap.
4804
4805 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
4806
4807         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4808         for internal variables.
4809         (last_was_structop): New static variable.
4810         (COMPLETE): New token.
4811         (field_exp): New rule to group all '.' suffix handling.
4812         Add mark_struct_expression calls when approriate to be able
4813         to correctly find fields for completion.
4814         (yylex): Adapt to handle field completion and set INTVAR when
4815         required.
4816
4817 2011-01-14  Yao Qi  <yao@codesourcery.com>
4818
4819         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4820         save_reggroup, restore_reggroup and all_reggroup.
4821
4822 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
4823
4824         * ada-valprint. (ada_printchar): Use the correct type length
4825         in call to ada_emit_char.
4826         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4827
4828 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
4829
4830         * solib-som.h (hpux_major_release): Declare variable here.
4831         * solib-som.c:  Remove <sys/utsname.h> header.
4832         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4833         (hpux_major_release): Make global, change default value to
4834         DEFAULT_HPUX_MAJOR_RELEASE.
4835         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4836         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4837         Add "solib-som.h" header.
4838         (set_hpux_major_release): New function.
4839         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4840
4841 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
4842
4843         * configure.tgt (*-*-uclinux*): Match more Linux os targets
4844
4845 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
4846
4847         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4848         new-line at end of warning message.
4849         (ia64_hpux_store_register): Remove trailing new-line at end of
4850         error message.
4851         * ia64-hpux-tdep.c: Rephrase comment.
4852         * solib-ia64-hpux.c (struct dld_info): Change type of field
4853         dld_flags from "long long" to ULONGEST.
4854
4855 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
4856
4857         * target.h (deprecated_child_ops): Delete declaration.
4858         * target.c (deprecated_child_ops): Delete definition.
4859
4860 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
4861
4862         * Makefile.in (hpux-thread.o): Delete rule.
4863         * configure.ac: Don't check for HPUX DCE threads support.
4864         * configure, config.in: Regenerate.
4865         * hppa-hpux-nat.c (child_suppress_run): Delete.
4866         (hppa_hpux_child_can_run): Delete.
4867         (_initialize_hppa_hpux_nat): Don't override to_can_run.
4868         * hpux-thread.c: Delete.
4869
4870 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
4871
4872         * hpux-thread.c (hpux_pid_to_str): Delete.
4873
4874 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
4875
4876         * ada-valprint.c (ada_emit_char): Remove strange code.
4877         Check that c is <= UCHAR_MAX before passing it to isascii.
4878         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4879
4880 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
4881
4882         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4883         to the case where instream is stdin.
4884
4885 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
4886
4887         * ia64-tdep.h (struct regcache): Forward declare.
4888         (struct ia64_infcall_ops): New struct type.
4889         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4890         and "infcall_ops".
4891         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4892         Renames ia64_find_global_pointer.
4893         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4894         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4895         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4896         methods.
4897         (ia64_infcall_ops): New static global constant.
4898         (ia64_gdbarch_init): Set tdep->infcall_ops.
4899         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4900         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4901         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4902         (ia64_hpux_dummy_code): New static global constant.
4903         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4904         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4905         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4906         New function.
4907         (ia64_hpux_infcall_ops): New static global constant.
4908         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4909         for inferior function calls to work properly on ia64-hpux.
4910
4911 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
4912
4913         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4914         * ia64-tdep.h (struct frame_info): forward declaration.
4915         (struct gdbarch_tdep): Add field size_of_register_frame.
4916         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4917         to determine the size of the register frame.
4918         (ia64_size_of_register_frame): New function.
4919         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4920         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4921         (IA64_HPUX_UREG_REASON): New macro.
4922         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4923         New functions.
4924         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4925         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4926         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4927         objects.
4928
4929 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
4930
4931         Add support for ia64-hpux.
4932         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4933         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4934
4935         * configure.host: Add handling for ia64-hpux hosts.  Add associated
4936         floatformats.
4937         * configure.tgt: Add handling for ia64-hpux targets.
4938         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4939         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4940         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4941
4942 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
4943
4944         [ttrace] Compute thread list immediately after attach.
4945         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4946         New subprogram.
4947         (inf_ttrace_attach): Use it.
4948
4949 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
4950
4951         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4952         if we could not determine the frame's function address.  Instead,
4953         use the frame's PC, and then continue.
4954
4955 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
4956
4957         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4958         not already defined.
4959
4960 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
4961
4962         * ia64-tdep.c (ia64_struct_type_p): New function.
4963         (ia64_extract_return_value): Handle integral values that are
4964         less than 8 bytes long.
4965         (ia64_push_dummy_call): Likewise.
4966
4967 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
4968
4969         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4970         floatformat_ia64_ext.
4971         (floatformat_ia64_ext_big): New static const.
4972         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4973
4974 2011-01-12  Tom Tromey  <tromey@redhat.com>
4975
4976         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4977         messages.
4978         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4979         (mi_cmd_thread_list_ids): Likewise.
4980         (mi_cmd_data_list_changed_registers): Likewise.
4981         (mi_cmd_data_list_register_values): Likewise.
4982         (mi_cmd_data_write_register_values): Likewise.
4983         (mi_cmd_data_evaluate_expression): Likewise.
4984         (mi_cmd_data_read_memory): Likewise.
4985         (mi_cmd_data_read_memory_bytes): Likewise.
4986         (mi_cmd_data_write_memory): Likewise.
4987         (mi_cmd_enable_timings): Likewise.
4988         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4989         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4990         (mi_cmd_var_delete): Likewise.
4991         (mi_cmd_var_set_format): Likewise.
4992         (mi_cmd_var_show_format): Likewise.
4993         (mi_cmd_var_info_num_children): Likewise.
4994         (mi_cmd_var_list_children): Likewise.
4995         (mi_cmd_var_info_type): Likewise.
4996         (mi_cmd_var_info_expression): Likewise.
4997         (mi_cmd_var_show_attributes): Likewise.
4998         (mi_cmd_var_assign): Likewise.
4999         (mi_cmd_var_update): Likewise.
5000         (mi_cmd_enable_pretty_printing): Likewise.
5001         (mi_cmd_var_set_update_range): Likewise.
5002         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5003         messages.
5004         (mi_cmd_target_file_put): Likewise.
5005         (mi_cmd_target_file_delete): Likewise.
5006         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5007         messages.
5008         (mi_cmd_stack_info_depth): Likewise.
5009         (mi_cmd_stack_list_locals): Likewise.
5010         (mi_cmd_stack_list_args): Likewise.
5011         (mi_cmd_stack_select_frame): Likewise.
5012         (mi_cmd_stack_select_frame): Likewise.
5013         (mi_cmd_stack_info_frame): Likewise.
5014         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5015         messages.
5016         (mi_cmd_file_list_exec_source_files): Likewise.
5017         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5018         (mi_cmd_env_cd): Likewise.
5019         (mi_cmd_env_path): Likewise.
5020         (mi_cmd_env_dir): Likewise.
5021         (mi_cmd_inferior_tty_show): Likewise.
5022         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5023         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5024         (mi_cmd_break_watch): Likewise.
5025
5026 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5027
5028         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5029         (ppc_linux_insert_hw_breakpoint): Likewise.
5030         (ppc_linux_remove_hw_breakpoint): Likewise.
5031         (ppc_linux_insert_watchpoint): Likewise.
5032
5033 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
5034             Jan Kratochvil  <jan.kratochvil@redhat.com>
5035
5036         PR fortran/11104 and DWARF unbound arrays detection.
5037         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5038         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5039         unspecified upper bound.
5040         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5041         variables array_size_array, tmp_type and offset_item.  New variable
5042         array.  Remove call to f77_get_upperbound.  New variables array_type
5043         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
5044         the final call to deprecated_set_value_type.
5045
5046 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
5047
5048         Make value allocations more lazy.
5049         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5050         instead of allocate_value and set_value_lazy when possible.
5051         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5052         instead of allocate_value and set_value_lazy.
5053         * findvar.c (value_of_register_lazy): Likewise.
5054         (read_var_value): Remove V preallocation, call just check_typedef in
5055         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
5056         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5057         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
5058         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
5059         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
5060         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
5061         the end, remove set_value_lazy there.
5062         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5063         instead of allocate_value and set_value_lazy when possible.
5064         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5065         * value.c (allocate_computed_value): Use allocate_value_lazy instead
5066         of allocate_value and set_value_lazy.
5067         (value_from_contents_and_address): Use allocate_value_lazy instead of
5068         allocate_value and set_value_lazy when possible.
5069
5070 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
5071
5072         * disasm.c (dump_insns): Support dumping opcodes for MI.
5073         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5074         dumping of instruction opcodes.
5075
5076 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
5077
5078         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5079         appropiately.
5080
5081 2011-01-11  Tom Tromey  <tromey@redhat.com>
5082
5083         * thread.c (do_captured_thread_select): Emit newline before
5084         printing frame.
5085
5086 2011-01-11  Michael Snyder  <msnyder@vmware.com>
5087
5088         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5089         * score-tdep.c: Ditto.
5090         * score-tdep.h: Ditto.
5091         * ser-base.c: Ditto.
5092         * ser-go32.c: Ditto.
5093         * serial.c: Ditto.
5094         * serial.h: Ditto.
5095         * ser-mingw.c: Ditto.
5096         * ser-pipe.c: Ditto.
5097         * ser-tcp.c: Ditto.
5098         * ser-unix.c: Ditto.
5099         * sh64-tdep.c: Ditto.
5100         * shnbsd-nat.c: Ditto.
5101         * sh-tdep.c: Ditto.
5102         * sh-tdep.h: Ditto.
5103         * solib.c: Ditto.
5104         * solib-darwin.c: Ditto.
5105         * solib-frv.c: Ditto.
5106         * solib.h: Ditto.
5107         * solib-irix.c: Ditto.
5108         * solib-osf.c: Ditto.
5109         * solib-pa64.c: Ditto.
5110         * solib-som.c: Ditto.
5111         * solib-spu.c: Ditto.
5112         * solib-sunos.c: Ditto.
5113         * solib-svr4.c: Ditto.
5114         * solist.h: Ditto.
5115         * sol-thread.c: Ditto.
5116         * somread.c: Ditto.
5117         * source.c: Ditto.
5118         * source.h: Ditto.
5119         * sparc64-linux-tdep.c: Ditto.
5120         * sparc64-tdep.c: Ditto.
5121         * sparc-linux-nat.c: Ditto.
5122         * sparc-linux-tdep.c: Ditto.
5123         * sparc-sol2-nat.c: Ditto.
5124         * sparc-sol2-tdep.c: Ditto.
5125         * sparc-tdep.c: Ditto.
5126         * sparc-tdep.h: Ditto.
5127         * spu-tdep.c: Ditto.
5128         * stabsread.c: Ditto.
5129         * stabsread.h: Ditto.
5130         * stack.c: Ditto.
5131         * symfile.c: Ditto.
5132         * symfile.h: Ditto.
5133         * symmisc.c: Ditto.
5134         * symtab.c: Ditto.
5135         * symtab.h: Ditto.
5136         * target.c: Ditto.
5137         * target-descriptions.c: Ditto.
5138         * target-descriptions.h: Ditto.
5139         * target.h: Ditto.
5140         * target-memory.c: Ditto.
5141         * terminal.h: Ditto.
5142         * thread.c: Ditto.
5143         * top.c: Ditto.
5144         * tracepoint.c: Ditto.
5145         * tracepoint.h: Ditto.
5146         * trad-frame.h: Ditto.
5147         * typeprint.c: Ditto.
5148
5149 2011-01-11  Michael Snyder  <msnyder@vmware.com>
5150
5151         * ui-file.c: Comment cleanup, mostly periods and spaces.
5152         * ui-file.h: Ditto.
5153         * ui-out.c: Ditto.
5154         * ui-out.h: Ditto.
5155         * utils.c: Ditto.
5156         * v850-tdep.c: Ditto.
5157         * valarith.c: Ditto.
5158         * valops.c: Ditto.
5159         * valprint.c: Ditto.
5160         * valprint.h: Ditto.
5161         * value.c: Ditto.
5162         * value.h: Ditto.
5163         * varobj.c: Ditto.
5164         * varobj.h: Ditto.
5165         * vax-tdep.c: Ditto.
5166         * vec.c: Ditto.
5167         * vec.h: Ditto.
5168         * version.h: Ditto.
5169         * windows-nat.c: Ditto.
5170         * windows-tdep.c: Ditto.
5171         * xcoffread.c: Ditto.
5172         * xcoffsolib.c: Ditto.
5173         * xml-support.c: Ditto.
5174         * xstormy16-tdep.c: Ditto.
5175         * xtensa-tdep.c: Ditto.
5176         * xtensa-tdep.h: Ditto.
5177
5178 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5179
5180         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5181         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5182
5183 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
5184             Thiago Jung Bauermann  <bauerman@br.ibm.com>
5185
5186         Implement support for PowerPC BookE ranged watchpoints.
5187         * breakpoint.h
5188         (struct breakpoint_ops) <resources_needed>: New method.
5189         Initialize to NULL in all existing breakpoint_ops instances.
5190         (struct breakpoint) <exact>: New field.
5191         (target_exact_watchpoints): Declare external global.
5192         * breakpoint.c (target_exact_watchpoints): New global flag.
5193         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5194         b->enable_state to bp_enabled before calling
5195         hw_watchpoint_used_count.
5196         (hw_watchpoint_used_count): Iterate over all bp_locations in a
5197         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
5198         if available.
5199         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5200         if the watchpoint is exact.
5201         (resources_needed_watchpoint): New function.
5202         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5203         (watch_command_1): Set b->exact if the user asked for an exact
5204         watchpoint and one can be set.
5205         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5206         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5207         the user asks for an exact watchpoint and one can be set.  Return
5208         number of needed debug registers to watch the expression.
5209         * gdbtypes.c (is_scalar_type): New function, based on
5210         valprint.c:scalar_type_p.
5211         (is_scalar_type_recursive): New function.
5212         * gdbtypes.h (is_scalar_type_recursive): Declare.
5213         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5214         handle regions when ranged watchpoints are available.
5215         (create_watchpoint_request): New function.
5216         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5217         create_watchpoint_request.
5218         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5219         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5220         `set powerpc' and `show powerpc' commands.
5221         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5222         Mention documentation comment in the target macro.
5223         (target_region_ok_for_hw_watchpoint): Document return value.
5224
5225 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5226
5227         * breakpoint.c (update_watchpoint): Decide on using a software or
5228         hardware watchpoint after the bp_locations are created.
5229
5230 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5231
5232         Convert hardware watchpoints to use breakpoint_ops.
5233         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5234         <insert_location>: ... this.  Return int instead of void.
5235         Accept pointer to struct bp_location instead of pointer to
5236         struct breakpoint.  Adapt all implementations.
5237         (breakpoint_ops) <remove>: Rename to...
5238         <remove_location>: ... this.  Accept pointer to struct bp_location
5239         instead of pointer to struct breakpoint.  Adapt all implementations.
5240         * breakpoint.c (insert_catchpoint): Delete function.
5241         (insert_bp_location): Call the watchpoint or catchpoint's
5242         breakpoint_ops.insert method.
5243         (remove_breakpoint_1): Call the watchpoint or catchpoint's
5244         breakpoint_ops.remove method.
5245         (insert_watchpoint, remove_watchpoint): New functions.
5246         (watchpoint_breakpoint_ops): New structure.
5247         (watch_command_1): Initialize the OPS field.
5248         * inf-child.c (inf_child_insert_fork_catchpoint)
5249         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5250         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5251         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5252         Delete functions.
5253         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5254         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5255         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5256         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5257         * target.c (update_current_target): Change default implementation of
5258         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5259         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5260         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5261         to_set_syscall_catchpoint to return_one.
5262         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5263         (debug_to_insert_exec_catchpoint): Report return value.
5264         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5265         (to_insert_exec_catchpoint): Change declaration to return int instead
5266         of void.
5267
5268 2011-01-11  Michael Snyder  <msnyder@vmware.com>
5269
5270         * arm-tdep.c: Internationalization.
5271         * c-lang.c: Ditto.
5272         * charset.c: Ditto.
5273         * fork-child.c: Ditto.
5274         * nto-procfs.c: Ditto.
5275         * ppc-sysv-tdep.c: Ditto.
5276         * procfs.c: Ditto.
5277         * remote-mips.c: Ditto.
5278         * remote.c: Ditto.
5279         * rs6000-nat.c: Ditto.
5280         * rs6000-tdep.c: Ditto.
5281         * target.c: Ditto.
5282         * valops.c: Ditto.
5283         * value.c: Ditto.
5284         * xml-support.c: Ditto.
5285         * mi/mi-cmd-break.c: Ditto.
5286         * mi/mi-cmd-var.c: Ditto.
5287         * mi/mi-interp.c: Ditto.
5288         * mi/mi-main.c: Ditto.
5289
5290 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
5291
5292         * remote-sim.c (gdbsim_store_register): Update API to
5293         sim_store_register to check more error conditions.
5294
5295 2011-01-10  Michael Snyder  <msnyder@vmware.com>
5296
5297         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5298         * nto-tdep.c: Ditto.
5299         * nto-tdep.h: Ditto.
5300         * objc-exp.y: Ditto.
5301         * objc-lang.c: Ditto.
5302         * objfiles.c: Ditto.
5303         * objfiles.h: Ditto.
5304         * observer.c: Ditto.
5305         * opencl-lang.c: Ditto.
5306         * osabi.c: Ditto.
5307         * parse.c: Ditto.
5308         * parser-defs.h: Ditto.
5309         * p-exp.y: Ditto.
5310         * p-lang.c: Ditto.
5311         * posix-hdep.c: Ditto.
5312         * ppcbug-rom.c: Ditto.
5313         * ppc-linux-nat.c: Ditto.
5314         * ppc-linux-tdep.c: Ditto.
5315         * ppc-linux-tdep.h: Ditto.
5316         * ppcnbsd-tdep.c: Ditto.
5317         * ppcobsd-tdep.c: Ditto.
5318         * ppcobsd-tdep.h: Ditto.
5319         * ppc-sysv-tdep.c: Ditto.
5320         * ppc-tdep.h: Ditto.
5321         * printcmd.c: Ditto.
5322         * proc-abi.c: Ditto.
5323         * proc-flags.c: Ditto.
5324         * procfs.c: Ditto.
5325         * proc-utils.h: Ditto.
5326         * progspace.h: Ditto.
5327         * prologue-value.c: Ditto.
5328         * prologue-value.h: Ditto.
5329         * psympriv.h: Ditto.
5330         * psymtab.c: Ditto.
5331         * p-typeprint.c: Ditto.
5332         * p-valprint.c: Ditto.
5333         * ravenscar-sparc-thread.c: Ditto.
5334         * ravenscar-thread.c: Ditto.
5335         * ravenscar-thread.h: Ditto.
5336         * record.c: Ditto.
5337         * regcache.c: Ditto.
5338         * regcache.h: Ditto.
5339         * remote.c: Ditto.
5340         * remote-fileio.c: Ditto.
5341         * remote-fileio.h: Ditto.
5342         * remote.h: Ditto.
5343         * remote-m32r-sdi.c: Ditto.
5344         * remote-mips.c: Ditto.
5345         * remote-sim.c: Ditto.
5346         * rs6000-aix-tdep.c: Ditto.
5347         * rs6000-nat.c: Ditto.
5348         * rs6000-tdep.c: Ditto.
5349
5350 2011-01-10  Michael Snyder  <msnyder@vmware.com>
5351
5352         * charset.c (validate): Internationalization.
5353         * coffread.c (read_one_sym): Ditto.
5354         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5355         * h8300-tdep.c (H8300_extract_return_value): Ditto.
5356         * inflow.c (new_tty): Ditto.
5357         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5358         * m32c-tdep.c (m32c_return_value): Ditto.
5359         * mep-tdep.c (mep_store_return_value): Ditto.
5360         * score-tdep.c (score7_fetch_insn): Ditto.
5361         * ser-mingw.c (pipe_windows_open): Ditto.
5362         * sh64-tdep.c (sh64_extract_return_value): Ditto.
5363         * spu-tdep.c (spu_register_type): Ditto.
5364         * tracepoint.c (trace_find_command): Ditto.
5365         * valarith.c (value_pos): Ditto.
5366
5367 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
5368
5369         * ada-valprint.c (printstr): Minor comment reformatting.
5370
5371 2011-01-08  Michael Snyder  <msnyder@vmware.com>
5372
5373         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5374         markup.
5375
5376 2011-01-08  Michael Snyder  <msnyder@vmware.com>
5377
5378         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5379         * hppa-hpux-tdep.c: Ditto.
5380         * hppa-linux-nat.c: Ditto.
5381         * hppa-linux-tdep.c: Ditto.
5382         * hppanbsd-tdep.c: Ditto.
5383         * hppa-tdep.c: Ditto.
5384         * hppa-tdep.h: Ditto.
5385         * hpux-thread.c: Ditto.
5386         * i386-cygwin-tdep.c: Ditto.
5387         * i386-darwin-nat.c: Ditto.
5388         * i386gnu-nat.c: Ditto.
5389         * i386-linux-nat.c: Ditto.
5390         * i386-linux-tdep.c: Ditto.
5391         * i386-nat.c: Ditto.
5392         * i386-nat.h: Ditto.
5393         * i386nbsd-tdep.c: Ditto.
5394         * i386-sol2-nat.c: Ditto.
5395         * i386-stub.c: Ditto.
5396         * i386-tdep.c: Ditto.
5397         * i386-tdep.h: Ditto.
5398         * i387-tdep.c: Ditto.
5399         * ia64-linux-nat.c: Ditto.
5400         * ia64-linux-tdep.c: Ditto.
5401         * ia64-tdep.c: Ditto.
5402         * infcall.c: Ditto.
5403         * infcall.h: Ditto.
5404         * infcmd.c: Ditto.
5405         * inferior.c: Ditto.
5406         * inferior.h: Ditto.
5407         * infloop.c: Ditto.
5408         * inflow.c: Ditto.
5409         * infrun.c: Ditto.
5410         * interps.c: Ditto.
5411         * interps.h: Ditto.
5412         * iq2000-tdep.c: Ditto.
5413         * irix5-nat.c: Ditto.
5414         * jit.c: Ditto.
5415         * jit.h: Ditto.
5416         * jv-exp.y: Ditto.
5417         * jv-lang.c: Ditto.
5418         * jv-lang.h: Ditto.
5419         * jv-typeprint.c: Ditto.
5420         * jv-valprint.c: Ditto.
5421         * language.c: Ditto.
5422         * language.h: Ditto.
5423         * linespec.c: Ditto.
5424         * linux-fork.c: Ditto.
5425         * linux-nat.c: Ditto.
5426         * linux-thread-db.c: Ditto.
5427         * lm32-tdep.c: Ditto.
5428
5429 2011-01-08  Michael Snyder  <msnyder@vmware.com>
5430
5431         * m2-exp.y: Comment cleanup, mostly periods and spaces.
5432         * m2-lang.c: Ditto.
5433         * m2-typeprint.c: Ditto.
5434         * m2-valprint.c: Ditto.
5435         * m32c-tdep.c: Ditto.
5436         * m32r-linux-nat.c: Ditto.
5437         * m32r-rom.c: Ditto.
5438         * m32r-tdep.c: Ditto.
5439         * m32r-tdep.h: Ditto.
5440         * m68hc11-tdep.c: Ditto.
5441         * m58klinux-nat.c: Ditto.
5442         * m68k-tdep.c: Ditto.
5443         * m88k-tdep.c: Ditto.
5444         * m88k-tdep.h: Ditto.
5445         * machoread.c: Ditto.
5446         * macrocmd.c: Ditto.
5447         * macroexp.c: Ditto.
5448         * macrotab.c: Ditto.
5449         * main.c: Ditto.
5450         * maint.c: Ditto.
5451         * mdebugread.c: Ditto.
5452         * mdebugread.h: Ditto.
5453         * memattr.c: Ditto.
5454         * memattr.h: Ditto.
5455         * memory-map.h: Ditto.
5456         * mep-tdep.c: Ditto.
5457         * microblaze-rom.c: Ditto.
5458         * microblaze-tdep.c: Ditto.
5459         * minsyms.c: Ditto.
5460         * mips-irix-tdep.c: Ditto.
5461         * mips-linux-nat.c: Ditto.
5462         * mips-linux-tdep.c: Ditto.
5463         * mips-linux-tdep.h: Ditto.
5464         * mipsnbsd-nat.c: Ditto.
5465         * mipsnbsd-tdep.c: Ditto.
5466         * mipsread.c: Ditto.
5467         * mips-tdep.c: Ditto.
5468         * mips-tdep.h: Ditto.
5469         * mn10300-linux-tdep.c: Ditto.
5470         * mn10300-tdep.c: Ditto.
5471         * mn10300-tdep.h: Ditto.
5472         * monitor.c: Ditto.
5473         * monitor.h: Ditto.
5474         * moxie-tdep.c: Ditto.
5475         * moxie-tdep.h: Ditto.
5476         * mt-tdep.c: Ditto.
5477
5478 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
5479
5480         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5481
5482 2011-01-08  Robert Millan  <rmh@gnu.org>
5483
5484         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5485
5486 2011-01-07  Michael Snyder  <msnyder@vmware.com>
5487
5488         * charset.c (_initialize_charset): Fix typo in string.
5489
5490 2011-01-07  Michael Snyder  <msnyder@vmware.com>
5491
5492         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5493         for i18n.
5494         * tui/tui-layout.c (tui_set_layout_for_display_command):
5495         Split line so that operator goes to beginning of line.
5496         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5497         assignment out of if statement.
5498
5499 2011-01-07  Michael Snyder  <msnyder@vmware.com>
5500
5501         * ada-lang.c: Comment cleanup, mostly periods and spaces.
5502         * ada-lang.h: Ditto.
5503         * ada-tasks.c: Ditto.
5504         * ada-valprint.c: Ditto.
5505         * aix-threads.c: Ditto.
5506         * alpha-linux-nat.c: Ditto.
5507         * alpha-linux-tdep.c: Ditto.
5508         * alpha-mdebug-tdep.c: Ditto.
5509         * alpha-nat.c: Ditto.
5510         * alpha-osf1-tdep.c: Ditto.
5511         * alpha-tdep.c: Ditto.
5512         * alphabsd-nat.c: Ditto.
5513         * alphabsd-tdep.c: Ditto.
5514         * amd64-darwin-tdep.c: Ditto.
5515         * amd64-linux-nat.c: Ditto.
5516         * amd64-linux-tdep.c: Ditto.
5517         * amd64-sol2-tdep.c: Ditto.
5518         * amd64-tdep.c: Ditto.
5519         * amd64-fbsd-tdep.c: Ditto.
5520         * amd64-nbsd-tdep.c: Ditto.
5521         * amd64-obsd-tdep.c: Ditto.
5522         * amd64-linux-nat.c: Ditto.
5523         * amd64-linux-tdep.c: Ditto.
5524         * arm-tdep.c: Ditto.
5525         * arm-tdep.h: Ditto.
5526         * armnbsd-nat.c: Ditto.
5527         * avr-tdep.c: Ditto.
5528         * bfin-tdep.c: Ditto.
5529         * bsd-kvm.c: Ditto.
5530         * c-typeprintc: Ditto.
5531         * c-valprint.c: Ditto.
5532         * coff-pe-read.h: Ditto.
5533         * coffreead.c: Ditto.
5534         * cris-tdep.c: Ditto.
5535         * d-lang.c: Ditto.
5536         * darwin-nat-info.c: Ditto.
5537         * darwin-nat.c: Ditto.
5538         * dbug-rom.c: Ditto.
5539         * dbxread.c: Ditto.
5540         * dcache.c: Ditto.
5541         * dcache.h: Ditto.
5542         * dec-thread.c: Ditto.
5543         * defs.h: Ditto.
5544         * demangle.c: Ditto.
5545         * dicos-tdep.c: Ditto.
5546         * dictionary.c: Ditto.
5547         * dictionary.h: Ditto.
5548         * dink32-rom.c: Ditto.
5549         * disasm.c: Ditto.
5550         * doublest.c: Ditto.
5551         * dsrec.c: Ditto.
5552         * dummy-frame.c: Ditto.
5553         * dwarf2-frame.c: Ditto.
5554         * dwarf2expr.c: Ditto.
5555         * dwarf2loc.c: Ditto.
5556         * dwarf2read.c: Ditto.
5557         * elfread.c: Ditto.
5558         * environ.c: Ditto.
5559         * eval.c: Ditto.
5560         * event-top.h: Ditto.
5561         * exceptions.c: Ditto.
5562         * exceptions.h: Ditto.
5563         * exec.c: Ditto.
5564         * expprint.c: Ditto.
5565         * expression.h: Ditto.
5566         * f-exp.y: Ditto.
5567         * f-lang.c: Ditto.
5568         * f-lang.h: Ditto.
5569         * f-typeprint.c: Ditto.
5570         * f-valprint.c: Ditto.
5571         * fbsd-nat.c: Ditto.
5572         * findvar.c: Ditto.
5573         * fork-child.c: Ditto.
5574         * frame.c: Ditto.
5575         * frame.h: Ditto.
5576         * frv-linux-tdep.c: Ditto.
5577         * frv-tdep.c: Ditto.
5578         * gcore.c: Ditto.
5579         * gdb-stabs.h: Ditto.
5580         * gdb_assert.h: Ditto.
5581         * gdb_string.h: Ditto.
5582         * gdb_thread_db.h: Ditto.
5583         * gdb_wait.h: Ditto.
5584         * gdbarch.sh: Ditto.
5585         * gdbcore.h: Ditto.
5586         * gdbthread.h: Ditto.
5587         * gdbtypes.c: Ditto.
5588         * gdbtypes.h: Ditto.
5589         * gnu-nat.c: Ditto.
5590         * gnu-nat.h: Ditto.
5591         * gnu-v2-abi.c: Ditto.
5592         * gnu-v3-abi.c: Ditto.
5593         * go32-nat.c: Ditto.
5594         * gdbarch.c: Regenerate.
5595         * gdbarch.h: Regenerate.
5596
5597 2011-01-07  Michael Snyder  <msnyder@vmware.com>
5598
5599         * ax-gdb.c: Adjust some long output strings.
5600         * breakpoint.c: Ditto.
5601         * charset.c: Ditto.
5602         * cp-abi.c: Ditto.
5603         * infcall.c: Ditto.
5604         * infrun.c: Ditto.
5605         * linux-nat.c: Ditto.
5606         * solib-pa64.c: Ditto.
5607         * solib-som.c: Ditto.
5608
5609 2011-01-06  Tom Tromey  <tromey@redhat.com>
5610
5611         PR python/12367:
5612         * NEWS: Add item.
5613         * python/python.c (GdbMethods): Add "newest_frame" method.
5614         * python/python-internal.h (gdbpy_newest_frame): Declare.
5615         * python/py-frame.c (gdbpy_newest_frame): New function.
5616
5617 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5618
5619         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5620         * jit.c (jit_debug): New variable.
5621         (show_jit_debug): New function.
5622         (struct target_buffer): Use ULONGEST.
5623         (bfd_open_from_target_memory): Likewise.
5624         (jit_register_code, jit_inferior_init): Add debug output.
5625         (_initialize_jit): Register "debug jit" command.
5626
5627 2011-01-06  Tom Tromey  <tromey@redhat.com>
5628
5629         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5630         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5631         and ARCH_FRAME.
5632
5633 2011-01-06  Tom Tromey  <tromey@redhat.com>
5634
5635         * python/py-frame.c (frapy_block): Use get_frame_block.
5636
5637 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
5638
5639         Do not stop on SIGPRIO signals by default
5640         * infrun.c (_initialize_infrun): Unset signal_stop and
5641         signal_print for TARGET_SIGNAL_PRIO.
5642
5643 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
5644
5645         * ada-tasks.c: Fix style violation in comment.
5646
5647 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
5648
5649         * linespec.c (decode_compound, find_method): Remove trailing \n
5650         at end of error string.
5651         * solib-irix.c (irix_current_sos): Likewise.
5652         * varobj.c (uninstall_variable): Likewise.
5653
5654 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
5655
5656         * copyright.py: New script.
5657         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5658         Launch emacs without exec'ing. Call copyright.py afterwards.
5659
5660 2011-01-05  Michael Snyder  <msnyder@vmware.com>
5661
5662         * addrmap.c: Shorten lines of >= 80 columns.
5663         * arch-utils.c: Ditto.
5664         * arch-utils.h: Ditto.
5665         * ax-gdb.c: Ditto.
5666         * ax-general.c: Ditto.
5667         * bcache.c: Ditto.
5668         * blockframe.c: Ditto.
5669         * breakpoint.c: Ditto.
5670         * buildsym.c: Ditto.
5671         * c-lang.c: Ditto.
5672         * c-typeprint.c: Ditto.
5673         * charset.c: Ditto.
5674         * coffread.c: Ditto.
5675         * command.h: Ditto.
5676         * corelow.c: Ditto.
5677         * cp-abi.c: Ditto.
5678         * cp-namespace.c: Ditto.
5679         * cp-support.c: Ditto.
5680         * dbug-rom.c: Ditto.
5681         * dbxread.c: Ditto.
5682         * defs.h: Ditto.
5683         * dfp.c: Ditto.
5684         * dfp.h: Ditto.
5685         * dictionary.c: Ditto.
5686         * disasm.c: Ditto.
5687         * doublest.c: Ditto.
5688         * dwarf2-frame.c: Ditto.
5689         * dwarf2expr.c: Ditto.
5690         * dwarf2loc.c: Ditto.
5691         * dwarf2read.c: Ditto.
5692         * elfread.c: Ditto.
5693         * eval.c: Ditto.
5694         * event-loop.c: Ditto.
5695         * event-loop.h: Ditto.
5696         * exceptions.h: Ditto.
5697         * exec.c: Ditto.
5698         * expprint.c: Ditto.
5699         * expression.h: Ditto.
5700         * f-lang.c: Ditto.
5701         * f-valprint.c: Ditto.
5702         * findcmd.c: Ditto.
5703         * frame-base.c: Ditto.
5704         * frame-unwind.c: Ditto.
5705         * frame-unwind.h: Ditto.
5706         * frame.c: Ditto.
5707         * frame.h: Ditto.
5708         * gcore.c: Ditto.
5709         * gdb-stabs.h: Ditto.
5710         * gdb_assert.h: Ditto.
5711         * gdb_dirent.h: Ditto.
5712         * gdb_obstack.h: Ditto.
5713         * gdbcore.h: Ditto.
5714         * gdbtypes.c: Ditto.
5715         * gdbtypes.h: Ditto.
5716         * inf-ttrace.c: Ditto.
5717         * infcall.c: Ditto.
5718         * infcmd.c: Ditto.
5719         * inflow.c: Ditto.
5720         * infrun.c: Ditto.
5721         * inline-frame.h: Ditto.
5722         * language.c: Ditto.
5723         * language.h: Ditto.
5724         * libunwind-frame.c: Ditto.
5725         * libunwind-frame.h: Ditto.
5726         * linespec.c: Ditto.
5727         * linux-nat.c: Ditto.
5728         * linux-nat.h: Ditto.
5729         * linux-thread-db.c: Ditto.
5730         * machoread.c: Ditto.
5731         * macroexp.c: Ditto.
5732         * macrotab.c: Ditto.
5733         * main.c: Ditto.
5734         * maint.c: Ditto.
5735         * mdebugread.c: Ditto.
5736         * memattr.c: Ditto.
5737         * minsyms.c: Ditto.
5738         * monitor.c: Ditto.
5739         * monitor.h: Ditto.
5740         * objfiles.c: Ditto.
5741         * objfiles.h: Ditto.
5742         * osabi.c: Ditto.
5743         * p-typeprint.c: Ditto.
5744         * p-valprint.c: Ditto.
5745         * parse.c: Ditto.
5746         * printcmd.c: Ditto.
5747         * proc-events.c: Ditto.
5748         * procfs.c: Ditto.
5749         * progspace.c: Ditto.
5750         * progspace.h: Ditto.
5751         * psympriv.h: Ditto.
5752         * psymtab.c: Ditto.
5753         * record.c: Ditto.
5754         * regcache.c: Ditto.
5755         * regcache.h: Ditto.
5756         * remote-fileio.c: Ditto.
5757         * remote.c: Ditto.
5758         * ser-mingw.c: Ditto.
5759         * ser-tcp.c: Ditto.
5760         * ser-unix.c: Ditto.
5761         * serial.c: Ditto.
5762         * serial.h: Ditto.
5763         * solib-frv.c: Ditto.
5764         * solib-irix.c: Ditto.
5765         * solib-osf.c: Ditto.
5766         * solib-pa64.c: Ditto.
5767         * solib-som.c: Ditto.
5768         * solib-sunos.c: Ditto.
5769         * solib-svr4.c: Ditto.
5770         * solib-target.c: Ditto.
5771         * solib.c: Ditto.
5772         * somread.c: Ditto.
5773         * source.c: Ditto.
5774         * stabsread.c: Ditto.
5775         * stabsread.c: Ditto.
5776         * stack.c: Ditto.
5777         * stack.h: Ditto.
5778         * symfile-mem.c: Ditto.
5779         * symfile.c: Ditto.
5780         * symfile.h: Ditto.
5781         * symmisc.c: Ditto.
5782         * symtab.c: Ditto.
5783         * symtab.h: Ditto.
5784         * target-descriptions.c: Ditto.
5785         * target-memory.c: Ditto.
5786         * target.c: Ditto.
5787         * target.h: Ditto.
5788         * terminal.h: Ditto.
5789         * thread.c: Ditto.
5790         * top.c: Ditto.
5791         * tracepoint.c: Ditto.
5792         * tracepoint.h: Ditto.
5793         * ui-file.c: Ditto.
5794         * ui-file.h: Ditto.
5795         * ui-out.h: Ditto.
5796         * user-regs.c: Ditto.
5797         * user-regs.h: Ditto.
5798         * utils.c: Ditto.
5799         * valarith.c: Ditto.
5800         * valops.c: Ditto.
5801         * valprint.c: Ditto.
5802         * valprint.h: Ditto.
5803         * value.c: Ditto.
5804         * varobj.c: Ditto.
5805         * varobj.h: Ditto.
5806         * vec.h: Ditto.
5807         * xcoffread.c: Ditto.
5808         * xcoffsolib.c: Ditto.
5809         * xcoffsolib.h: Ditto.
5810         * xml-syscall.c: Ditto.
5811         * xml-tdesc.c: Ditto.
5812
5813 2011-01-05  Michael Snyder  <msnyder@vmware.com>
5814
5815         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5816         * cli/cli-decode.c: Ditto.
5817         * cli/cli-dump.c: Ditto.
5818         * cli/cli-logging.c: Ditto.
5819         * cli/cli-script.c: Ditto.
5820         * cli/cli-setshow.c: Ditto.
5821         * common/signals.c: Ditto.
5822         * mi/mi-cmd-break.c: Ditto.
5823         * mi/mi-cmd-disas.c: Ditto.
5824         * mi/mi-cmd-stack.c: Ditto.
5825         * mi/mi-cmd-var.c: Ditto.
5826         * mi/mi-cmds.c: Ditto.
5827         * mi/mi-common.h: Ditto.
5828         * mi/mi-console.c: Ditto.
5829         * mi/mi-interp.c: Ditto.
5830         * mi/mi-main.c: Ditto.
5831         * osf-share/cma_attr.c: Ditto.
5832         * osf-share/cma_deb_core.h: Ditto.
5833         * osf-share/cma_debug_client.h: Ditto.
5834         * osf-share/cma_handle.h: Ditto.
5835         * osf-share/cma_mutex.h: Ditto.
5836         * osf-share/cma_stack_int.h: Ditto.
5837         * osf-share/cma_tcb_defs.h: Ditto.
5838         * python/py-auto-load.c: Ditto.
5839         * python/py-breakpoint.c: Ditto.
5840         * python/py-cmd.c: Ditto.
5841         * python/py-frame.c: Ditto.
5842         * python/py-objfile.c: Ditto.
5843         * python/py-param.c: Ditto.
5844         * python/py-progspace.c: Ditto.
5845         * python/py-symbol.c: Ditto.
5846         * python/py-value.c: Ditto.
5847         * python/python-internal.h: Ditto.
5848         * python/python.c: Ditto.
5849         * tui/tui-data.c: Ditto.
5850         * tui/tui-disasm.c: Ditto.
5851         * tui/tui-hooks.c: Ditto.
5852         * tui/tui-io.c: Ditto.
5853         * tui/tui-layout.c: Ditto.
5854         * tui/tui-regs.c: Ditto.
5855         * tui/tui-source.c: Ditto.
5856         * tui/tui-stack.c: Ditto.
5857         * tui/tui-win.c: Ditto.
5858         * tui/tui-windata.c: Ditto.
5859         * tui/tui-winsource.c: Ditto.
5860
5861 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
5862
5863         * configure.ac, gdb.1: Copyright year update.
5864
5865 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5866
5867         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5868         this_pc_in_block, morestack_msym and morestack_name.  Check for
5869         "__morestack" minimal symbol there.
5870
5871 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
5872
5873         * symfile.c (find_sym_fns): Add call to dont_repeat.
5874
5875 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
5876
5877         Copyright year update in most files (performed by copyright.sh).
5878
5879 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
5880
5881         * top.c (print_gdb_version): Update copyright year in version output.
5882
5883 For older changes see ChangeLog-2010.
5884 \f
5885 Local Variables:
5886 mode: change-log
5887 left-margin: 8
5888 fill-column: 74
5889 version-control: never
5890 coding: utf-8
5891 End: