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