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