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