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