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