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