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