2011-09-15 Kevin Pouget <kevin.pouget@st.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2011-09-15  Kevin Pouget <kevin.pouget@st.com>
2
3         PR Python/12692 Add gdb.selected_inferior() to Python interface.
4         * python/py-inferior.c (GdbMethods): New Python method definition.
5
6 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
7
8         Handle multiple breakpoint hits in Python interface:
9         * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
10         variable to breakpoints.
11         * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
12         bps instead of single breakpoint. Fix some space typos.
13         * python/py-stopevent.c (create_breakpoint_event_object): Rename
14         variable to breakpoints.
15
16 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
17
18         * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
19         note if the breakpoint is internal.
20
21 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
22
23         * MAINTAINERS (Right After Approval): Add myself to the list
24
25 2011-09-14  Pedro Alves  <pedro@codesourcery.com>
26
27         * infrun.c (prepare_for_detach, wait_for_inferior)
28         (fetch_inferior_event): Don't flush the register cache.
29         * remote.c (struct stop_reply) <regcache>: Add comment.
30
31 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
32
33         Remove excessive DWARF expressions memory duplication.
34         * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
35         for block.data.
36         (indirect_pieced_value): Remove variable result.  Remove variable
37         back_to and its use for baton.data.
38         (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
39         block.data.
40         * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
41         Update the function comment.
42
43 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
44
45         * inferior.h (ALL_INFERIORS): New.
46         * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
47         for a stopped thread.
48         (thread_db_find_new_threads): Look for threads in all inferiors.
49
50 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
51
52         * breakpoint.c (update_watchpoint): Handle the case of the
53         watchpoint to update not being in the breakpoint list yet.
54         (hw_watchpoint_use_count): New, factored out from
55         hw_watchpoint_used_count.
56         (hw_watchpoint_used_count): Rename to ...
57         (hw_watchpoint_used_count_others): ... this.  Add `except'
58         parameter.  Don't count resources of `except'.  Use
59         hw_watchpoint_use_count.
60
61 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
62
63         * gdbthread.h (enum thread_state): Moved here.
64         (struct thread_info): Rename `executing_' field to `executing' and
65         `state_' to `state'.
66         * thread.c (enum thread_state): Moved to gdbthread.h.
67         (new_thread, add_thread_silent, delete_thread_1)
68         (any_live_thread_of_process, thread_alive, set_running)
69         (set_running, is_thread_state, any_running, is_executing)
70         (set_executing, finish_thread_state, print_thread_info)
71         (do_captured_thread_select): Adjust.
72
73 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
74
75         Fix compatibility with gcc < 4.3 and non-gcc compilers.
76         * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
77
78 2011-09-12  Pedro Alves  <pedro@codesourcery.com>
79             Matt Rice  <ratmice@gmail.com>
80
81         PR gdb/13175
82
83         * interps.c (struct interp) <interpreter_out>: Delete field.
84         (interp_new): Remove the data and uiout parameters and adjust.
85         (interp_set): Only set the current_uiout from the interpreter's
86         uiout after initializing the interpreter.  Adjust call to
87         init_proc.
88         (interp_ui_out): Adjust to call procs->ui_out_proc.
89         (interp_data, interp_name): New.
90         * interps.h (interp_init_ftype): Add `self' parameter.
91         (interp_ui_out_ftype): New typedef.
92         (struct interp_procs) <ui_out_proc>: New method pointer.
93         (interp_new): Remove the data and uiout parameters.
94         (interp_data, interp_name): Declare.
95         * tui/tui-interp.c (tui_init): Adjust prototype.
96         (tui_ui_out): New.
97         (_initialize_tui_interp): Install tui_ui_out.  Don't instanciate
98         tui_out here.  Adjust call to interp_new.
99         * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
100         * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
101         (cli_ui_out): New.
102         (_initialize_cli_interp): Install it.  Adjust call to interp_new.
103         * mi/mi-common.h (struct mi_interp) <uiout>: New field.
104         * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
105         Initialize mi->uiout depending on the mi_version as extracted from
106         the interpreter's name.
107         (mi_ui_out): New.
108         (_initialize_mi_interp): Install mi_ui_out.  Adjust calls to
109         interp_new.  Don't allocate the ui_out's of the interpreters here.
110
111 2011-09-12  Aleksandar Ristovski  <aristovski@qnx.com>
112
113         * solib.c (solib_used): New function.
114         (update_solib_list, reload_shared_libraries_1): Check if objfile is used
115         by another so_list object before freeing it.
116
117 2011-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
118
119         Code cleanup.
120         * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
121         values.
122
123 2011-09-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
124
125         Code cleanup.
126         * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
127         (amd64_skip_xmm_prologue): ... this new function.  Describe its
128         parameters.  No longer use amd64_prologue_line_bug.
129         * defs.h (producer_is_gcc_ge_4): New declaration.
130         * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
131         (process_full_comp_unit): Update its caller.  Remove
132         amd64_prologue_line_bug initialization.
133         * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
134         * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
135
136 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
137
138         * linux-nat.h (enum resume_kind): New.
139         (struct lwp_info) <last_resume_kind>: New field.
140         * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
141         resume_stop on the new lwp.
142         (add_lwp): Set last_resume_kind as resume_continue by default.
143         (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
144         (resume_lwp): New, factored out from resume_callback.  Also check
145         for pending status in lp->waitstatus.
146         (resume_callback): Reimplement.
147         (resume_clear_callback): Set last_resume_kind as resume_stop.
148         (resume_set_callback): Set last_resume_kind as resume_continue.
149         (linux_nat_resume, linux_handle_extended_wait): Set
150         last_resume_kind.
151         (running_callback): Also check lp->waitstatus for pending events.
152         (select_singlestep_lwp_callback): Check that lp->last_resume_kind
153         is resume_step.
154         (stop_and_resume_callback): Don't re-resume if the core wanted the
155         lwp stopped.  Use resume_lwp instead of resume_callback.  Avoid
156         using an invalidated pointer.
157         (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
158         SIGSTOPs if the core wanted the LWP to stop.
159         (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
160         wanted the lwp to stop.  If the core wanted the lwp to stop, and
161         the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
162         of TARGET_SIGNAL_STOP.
163         (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
164         here.  Instead, signal the lwp, and set the last_resume_kind to
165         resume_stop.
166
167 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
168
169         * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
170         -1 (error), if the lwp exits right after attaching.
171
172 2011-09-08  Doug Evans  <dje@google.com>
173
174         * py-cmd.c: Some minor formatting fixes.
175         (gdbpy_parse_command_name): Rename text arg to name, make const.
176         All callers updated.
177         * python-internal.h (gdbpy_parse_command_name): Update.
178
179         * cli/cli-decode.c (add_cmd): Add comment.
180
181 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
182
183         PR breakpoints/12435
184         * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
185         next_sal, buf, offset and xmmreg.  Advance PC if it sees the PR.
186         * dwarf2read.c (process_full_comp_unit): Initialize
187         amd64_prologue_line_bug.
188         * symtab.h (struct symtab): New field amd64_prologue_line_bug.
189
190 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
191
192         Fix TUI screen corruption.
193         * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
194         batch_flag.
195
196 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
197
198         * findvar.c (read_var_value): Never return NULL, throw an error
199         instead.  Update the function comment.  State symbol name in the error
200         messages.
201         * python/py-frame.c (frapy_read_var): Remove handling of NULL from
202         read_var_value.
203         * stack.c (print_frame_args): Likewise.
204         * valops.c (value_of_variable): Likewise.
205
206 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
207
208         * stack.c (print_frame_args): New variable except.  Wrap
209         read_var_value and common_val_print into TRY_CATCH.
210
211 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
212
213         * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
214         caller to value_of_this.
215         * p-exp.y: Update the value_of_this caller to value_of_this_silent.
216         Twice.
217         * valops.c (value_of_this): Remove parameter complain and variable ret.
218         Update function comment.  Never return NULL by this code.
219         (value_of_this_silent): New function.
220         * value.h (value_of_this): Remove parameter complain.
221         (value_of_this_silent): New declaration.
222
223 2011-09-07  Yao Qi  <yao@codesourcery.com>
224
225         * gdbthread.h (struct thread_info): Remove fields
226         `stepping_through_solib_after_catch' and
227         `stepping_through_solib_catchpoints'.
228         * infrun.c (init_thread_stepping_state): Update.
229         (process_event_stop_test, currently_stepping): Update.
230         (currently_stepping_or_nexting_callback): Update.
231
232 2011-09-07  Yao Qi  <yao@codesourcery.com>
233
234         * gdbthread.h (struct thread_info): Comment on field
235         `step_after_step_resume_breakpoint'.
236
237 2011-09-07  Abhijit Halder  <abhijit.k.halder@gmail.com>
238
239         * remote.c (remote_console_output): Reindent.
240
241 2011-09-06  Luis Machado  <lgustavo@codesourcery.com>
242
243         * frame.c (has_stack_frames): Check for currently selected
244         traceframe.
245
246 2011-09-06  Pedro Alves  <pedro@codesourcery.com>
247
248         * event-top.h (MAXPROMPTS, struct prompts): Delete.
249         (set_async_annotation_level, set_async_prompt, pop_prompt)
250         (push_prompt, new_async_prompt): Delete declarations.
251         * top.h (get_prompt, set_prompt): Change prototype.
252         (get_prefix, set_prefix, get_suffix, set_suffix): Delete
253         declarations.
254         * top.c (command_loop):
255         (top_prompt): New global.
256         (get_prefix, set_prefix, get_suffix, ): Delete.
257         (get_prompt, set_prompt): Rewrite.
258         (show_new_async_prompt): Rename to ...
259         (show_prompt): ... this.
260         (init_main): Adjust.  Don't handle --annotate=2 here.
261         * event-top.c (new_async_prompt): Delete.
262         (the_prompts): Delete.
263         (more_to_come): Make static.
264         (display_gdb_prompt): Use top_level_prompt() to compute the top
265         level prompt, and don't notify the before_prompt observers
266         directly here.  Always trick readline into not trying to display
267         the prompt if sync_execution and displaying the primary prompt.
268         If displaying a local/secondary prompt, always show it, even if
269         sync_execution is set.
270         (change_annotation_level): Delete.
271         (top_level_prompt): New, based on change_annotation_level.
272         (push_prompt, pop_prompt): Delete.
273         (async_disable_stdin): No longer pushes prompt.
274         (command_line_handler): No longer pushes or pops prompt.  If more
275         input is expected, call display_gdb_prompt with an explicit empty
276         prompt.
277         (async_stop_sig): Adjust.
278         (set_async_annotation_level, set_async_prompt): Delete.
279         * python/python.c (before_prompt_hook): Adjust.
280
281 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
282
283         PR cli/13110
284
285         * infrun.c (fetch_inferior_event): Check if there's a selected
286         thread before checking if the selected thread is executing.
287
288 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
289
290         * inf-loop.c (execute_command): Don't check if the current thread
291         if running before synchronously waiting for command completion.
292         * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
293         here.
294         (normal_stop): Call async_enable_stdin here.
295         * inf-loop.c (inferior_event_handler): Don't call
296         async_enable_stdin, nor handle "set exec-done-display" here.
297
298 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
299
300         GDB 7.3.1 released.
301
302 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
303
304         * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
305
306 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
307
308         * NEWS: Add entry for OpenBSD/NetBSD build failure.
309
310 2011-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
311
312         * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
313
314 2011-09-02  Matt Rice  <ratmice@gmail.com>
315
316         PR gdb/10720
317         * event-top.c (cli_command_loop): Replace readline setup with
318         direct call to display_gdb_prompt.
319         (display_gdb_prompt): Do not call observer mechanism during
320         synchronous execution.
321
322 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
323
324         * linux-nat.c (in_pid_list_p): New.
325         (linux_record_stopped_pid): Delete.
326         (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
327         already attached to the LWP.  Return an indication if so.
328         (linux_nat_filter_event): Adjust.
329         * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
330         returning an indication to ignore this thread.
331
332 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
333
334         * top.c: Include interps.h.
335         (execute_command): If the target can async, but the interpreter is
336         in sync mode, synchronously wait for the command to finish before
337         returning.
338         (execute_command_to_string): Force the interpreter to sync mode.
339         * infrun.c: Include interps.h.
340         (fetch_inferior_event): Don't restore the prompt yet if the
341         interpreter is in sync mode.
342         * interps.c (interpreter_async): New global.
343         * interps.h (interpreter_async): Declare.
344         * inf-loop.c: Include interps.h.
345         (inferior_event_handler): Don't print the language change or run
346         breakpoint commands yet if the interpreter in is sync mode.
347         * main.c (captured_command_loop): Flip the interpreter to async
348         mode.
349         * cli/cli-script.c: Include interps.h.
350         (execute_user_command, while_command, if_command): Force the
351         interpreter to sync mode.
352         * python/python.c: Include interps.h.
353         (python_command, execute_gdb_command): Force the interpreter to
354         sync mode.
355
356 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
357
358         * value.c (show_convenience): Catch errors thrown while printing
359         each internal variable.
360         * infrun.c (validate_siginfo_access): New function.
361         (siginfo_value_read, siginfo_value_write): Call it.
362
363 2011-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
364
365         Revert:
366         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
367         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
368         attribute.
369
370 2011-08-29  Yao Qi  <yao@codesourcery.com>
371
372         * solib-dsbt.c (bfd_lookup_symbol): Removed.
373         (cmp_name): New.
374         (enable_break2): Update caller.
375         * solib-frv.c (bfd_lookup_symbol): Removed.
376         (cmp_name): New.
377         (enable_break2): Update caller.
378         * solib-pa64.c (bfd_lookup_symbol): Removed.
379         (cmp_name): New.
380         * solib-svr4.c (bfd_lookup_symbol): Removed.
381         (cmp_name_and_sec_flags): New.
382         (enable_break): Update caller.
383         * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
384         (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
385         (gdb_bfd_lookup_symbol): New.
386         * solib.h: Functions declarations.
387
388 2011-08-29  Yao Qi  <yao@codesourcery.com>
389
390         * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
391         and solib-dsbt.o.
392
393 2011-08-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
394
395         Fix TUI stepi on code without symbols.
396         * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
397         current PC instead.
398
399 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
400
401         Code cleanup.
402         * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
403         and the static keyword.
404         * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
405         Make prefix an array.
406         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
407         * mi/mi-main.c (get_register): Remove stb initialization and the static
408         keyword.
409
410 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
411
412         Code cleanup - make mi_opt const.
413         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
414         opts const.
415         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
416         * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
417         (mi_cmd_env_dir): Likewise.
418         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
419         (mi_cmd_target_file_put): Likewise.
420         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
421         * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
422         * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
423         (mi_valid_noargs): Make opts const.
424         * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
425         * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
426         (mi_cmd_data_read_memory): Likewise.
427         (mi_cmd_data_read_memory_bytes): Likewise.
428         (mi_cmd_data_write_memory): Likewise.
429
430 2011-08-26  Matt Rice  <ratmice@gmail.com>
431
432         * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
433         bcache_xmalloc,  replace bcache_xmalloc with call to
434         psymbol_bcache_init for psymbol_cache.
435         * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
436
437 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
438
439         * inf-loop.c (inferior_event_handler): Add exception_print in
440         INF_EXEC_COMPLETE.
441
442 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
443
444         * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
445         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
446         * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
447         * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
448         * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
449         call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
450         Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
451         * infrun.c (fetch_inferior_event): Call
452         make_bpstat_clear_actions_cleanup.
453         * top.c (execute_command): New variable cleanup_if_error, call
454         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
455         * utils.c (do_bpstat_clear_actions_cleanup)
456         (make_bpstat_clear_actions_cleanup): New functions.
457
458 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
459
460         * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
461         either the parent or the child forks.  Rename a couple locals.
462
463 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
464
465         * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
466         library call.  Avoid reading the `status' local if all waitpid
467         calls failed.
468
469 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
470
471         * common/linux-osdata.c (get_cores_used_by_process): Don't assume
472         opening /proc/PID/task always succeeds.
473
474 2011-08-26  Aleksandar Ristovski <aristovski@qnx.com>
475
476         * linespec.c (symtab_from_filename): Check for the end of string.
477
478 2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>
479
480         PR mi/11912
481         * varobj.c (cplus_describe_child): Add the keyword
482         'class' to the output of the method when dealing 
483         with a cast to a base class.
484
485 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
486
487         No functionality change.
488         * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
489         function comment a reference, new variables tp and bs, move here code
490         from throw_exception.
491         * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
492         describe it in the comment.
493         * exceptions.c (throw_exception): Remove variable tp, move the code for
494         bpstat_clear_actions to bpstat_clear_actions.
495
496 2011-08-24  Luis Machado  <lgustavo@codesourcery.com>
497
498         * linux-nat.h (linux_proc_get_tgid): Remove declaration.
499         * linux-nat.c: Include linux-procfs.h.
500         (linux_proc_get_tgid): Move to ...
501         * common/linux-procfs.c: ... here. New file.
502         * common/linux-procfs.h: New file.
503         * linux-thread-db.c: Include linux-procfs.h.
504         * Makefile.in: Update dependencies.
505         * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
506         * config/arm/linux.mh: Likewise.
507         * config/i386/linux.mh: Likewise.
508         * config/i386/linux64.mh: Likewise.
509         * config/ia64/linux.mh: Likewise.
510         * config/m32r/linux.mh: Likewise.
511         * config/m68k/linux.mh: Likewise.
512         * config/mips/linux.mh: Likewise.
513         * config/pa/linux.mh: Likewise.
514         * config/pa/linux.mh: Likewise.
515         * config/powerpc/linux.mh: Likewise.
516         * config/powerpc/ppc64-linux.mh: Likewise.
517         * config/powerpc/spu-linux.mh: Likewise.
518         * config/sparc/linux.mh: Likewise.
519         * config/sparc/linux64.mh: Likewise.
520         * config/xtensa/linux.mh: Likewise.
521
522 2011-08-24  Hui Zhu  <teawater@gmail.com>
523
524         * tracepoint.c (cond_string_is_same): New function.
525         (find_matching_tracepoint): Add condition check
526         by cond_string_is_same.
527
528 2011-08-23  Josh Matthews  <josh@joshmatthews.net>
529
530         Fix build error in Darwin port.
531         * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
532
533 2011-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
534
535         Code cleanup.
536         * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
537         (command_line_is_silent): New function.
538         (bpstat_do_actions_1): No longer use commands_left, use
539         command_line_is_silent for commands.
540         (bpstat_alloc): Remove clearing of commands_left.
541         (bpstat_stop_status): Remove initialization of commands_left, use
542         command_line_is_silent.
543         * breakpoint.h (struct bpstats): Remove commands_left.
544
545 2011-08-18  Keith Seitz  <keiths@redhat.com>
546
547         PR c++/12266
548         * cp-name-parser.y (struct demangle_info): Remove unused
549         member PREV.
550         (d_grab): Likewise.
551         (allocate_info): Change return type to struct demangle_info *.
552         Always allocate a new demangle_info.
553         Remove unused PREV pointer.
554         (cp_new_demangle_parse_info): New function.
555         (cp_demangled_name_parse_free): New function.
556         (do_demangled_name_parse_free_cleanup): New function.
557         (make_cleanup_cp_demangled_name_parse_free): New function.
558         (cp_demangled_name_to_comp): Change return type to
559         struct demangle_parse_info *.
560         Allocate a new storage for each call.
561         (main): Update usage for cp_demangled_name_to_comp
562         API change.
563         * cp-support.h (struct demangle_parse_info): New structure.
564         (cp_demangled_name_to_comp): Update API change for
565         return type.
566         (cp_new_demangle_parse_info): Declare.
567         (make_cleanup_cp_demangled_name_parse_free): New declaration.
568         (cp_demangled_name_parse_free): Declare.
569         * cp-support.c (cp_canonicalize_string): Update API
570         change for cp_demangled_name_to_comp.
571         (mangled_name_to_comp): Likewise.
572         Return struct demangle_parse_info, too.
573         (cp_class_name_from_physname): Update mangled_name_to_comp
574         API change.
575         (method_name_from_physname): Likewise.
576         (cp_func_name): Update API change for cp_demangled_name_to_comp.
577         (cp_remove_params): Likewise.
578         * python/py-type.c (typy_legacy_template_argument): Likewise.
579
580         * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
581         (cp_merge_demangle_parse_infos): Declare.
582         * cp-support.c (ignore_typedefs): New file global.
583         (copy_string_to_obstack): New function.
584         (inspect_type): New function.
585         (replace_typedefs): New function.
586         (replace_typedefs_qualified_name): New function.
587         (cp_canonicalize_string_no_typedefs): New function.
588         * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
589         (cp_new_demangle__parse_info): Allocate and initialize the obstack.
590         * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
591         instead of cp_canonicalize_string.
592         (find_method): Likewise.
593         (decode_compound): Before looking up the name, call
594         cp_canonicalize_string_no_typedefs.
595         (decode_variable): Likewise.
596
597 2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>
598             Tom Tromey  <tromey@redhat.com>
599             Matt Rice <ratmice@gmail.com>
600
601         * python/lib/gdb/prompt.py: New file.
602         * python/lib/gdb/command/prompt.py: New file.
603         * NEWS: Document set extended-prompt and gdb.prompt library
604
605 2011-08-16  Yao Qi  <yao@codesourcery.com>
606
607         * tic6x-linux-tdep.c: Move const arrays definition from here...
608         * tic6x-tdep.c: to here ...
609
610 2011-08-14  Yao Qi  <yao@codesourcery.com>
611
612         * NEWS: New port to Texas Instruments TMS320C6x.
613
614 2011-08-14  Andrew Jenner  <andrew@codesourcery.com>
615             Bernd Schmidt  <bernds@codesourcery.com>
616             Yao Qi  <yao@codesourcery.com>
617
618         * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
619         * solib-dsbt.c: New file.  Support DSBT shared object.
620         * tic6x-linux-tdep.c: New file.
621         * tic6x-tdep.c: New file.
622         * tic6x-tdep.h: New file.
623
624 2011-08-14  Andrew Stubbs <ams@codesourcery.com>
625             Yao Qi  <yao@codesourcery.com>
626
627         * remote.c (PACKET_qXfer_fdpic): New enum value.
628         (remote_protocol_features): Add qXfer:fdpic:read packet.
629         (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
630         (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
631         * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
632
633 2011-08-14  Yao Qi  <yao@codesourcery.com>
634
635         Target description for tic6x.
636         * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
637         tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
638         * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
639         * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
640         * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
641         * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
642         * features/tic6x-c64xp-linux.xml: New.
643         * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
644         * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
645         * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
646         * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
647         * regformats/tic6x-c64xp.dat,
648         regformats/tic6x-c62x-linux.dat: Generated.
649         * regformats/tic6x-c64x-linux.dat,
650         regformats/tic6x-c64xp-linux.dat: Generated.
651         * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
652         features/tic6x-*.c files.
653         Add regformats/tic6x-*.dat files.
654
655 2011-08-12  Doug Evans  <dje@google.com>
656
657         * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
658         * python/py-symbol.c (sympy_get_type): New function.
659         (symbol_object_getset): Add "type".
660
661 2011-08-12  Pedro Alves  <pedro@codesourcery.com>
662
663         PR tui/13073
664
665         * tui/tui-regs.c (tui_show_register_group): Skip registers with an
666         empty name.
667         (tui_show_register_group): Don't store a byte buffer in the data
668         element's value.
669         (tui_register_format): Skip registers with an empty name.
670         (tui_get_register): Store a struct value in the data element's
671         value field instead of a byte buffer holding the raw register
672         contents.  Account for optimized-out and unavailable registers
673         when comparing register contents.
674
675 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
676
677         * printcmd.c (current_display_number): Update comment.
678         (disable_current_display_cleanup): Delete.
679         (do_one_display): Use make_cleanup_restore_integer.  Gracefully
680         catch errors thrown while evaluating and printing the display.
681
682 2011-08-09  Tom Tromey  <tromey@redhat.com>
683
684         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
685
686 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
687
688         * elfread.c (elf_symtab_read): Rework comments.
689         * maint.c (maintenance_command): Ditto.
690         * somread.c (som_symtab_read): Ditto.
691         * solib.c (solib_find, solib_map_sections, update_solib_list)
692         (solib_add, info_sharedlibrary_command, solib_name_from_address)
693         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
694         (sharedlibrary_command, no_shared_libraries): Ditto.
695         * solib-irix.c (locate_base, disable_break, enable_break)
696         (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
697         (irix_current_sos, irix_open_symbol_file_object)
698         (irix_special_symbol_handling): Ditto.
699         * solib-sunos.c (locate_base, first_link_map_member)
700         (sunos_current_sos, disable_break, enable_break)
701         (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
702         Ditto.
703         * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
704         (open_symbol_file_object, svr4_current_sos, enable_break)
705         (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
706         Ditto.
707         * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
708         (frv_current_sos, enable_break, frv_special_symbol_handling)
709         (frv_solib_create_inferior_hook): Ditto.
710         * solist.h (struct target_so_ops): Extend the comments of the
711         special_symbol_handling, current_sos and open_symbol_file_object
712         methods.
713
714 2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>
715
716         * python/lib/gdb/__init__.py: Auto-load files in command and
717         function directories.
718         * python/python.c (finish_python_initialization): Use
719         os.path.join.
720         * python/lib/gdb/command/pretty_printers.py: Self register
721         command.
722         * NEWS: Document auto-loading.
723
724 2011-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
725
726         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
727         (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
728         objfile_gdbarch.  Fix BFD_ENDIAN_BIG case.
729
730 2011-08-08  Tom Tromey  <tromey@redhat.com>
731
732         * breakpoint.c (clean_up_filters): Remove.
733         (catch_syscall_split_args): Use VEC_cleanup.
734
735 2011-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
736
737         * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
738         (main): Uncomment "Demangling error\n".
739
740 2011-08-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
741
742         * solib-target.c (segment_attributes): Make them static.
743         (section_attributes, library_children, library_attributes): Likewise.
744         (library_list_children, library_list_attributes): Likesise.
745         (library_list_elements): Likewise.
746
747 2011-08-05  Pedro Alves  <pedro@codesourcery.com>
748
749         * exceptions.c (throw_exception): Don't disable the current
750         display.
751         * printcmd.c (disable_current_display_cleanup): New function.
752         (do_one_display): Install a cleanup to disable the current display
753         if doing the display throws.
754
755 2011-08-05  Eli Zaretskii  <eliz@gnu.org>
756
757         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
758         initialization of the tp_new member to the corresponding
759         gdbpy_initialize_* function.
760         * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
761         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
762         * python/py-function.c (gdbpy_initialize_functions): Likewise.
763         * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
764         * python/py-param.c (gdbpy_initialize_parameters): Likewise.
765
766 2011-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
767
768         * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
769         (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
770         (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
771         references to current_uiout.
772
773 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
774
775         * event-loop.c (gdb_do_one_event): Remove `data' parameter.
776         (start_event_loop): Use TRY_CATCH instead of catch_errors.
777         * event-loop.h (gdb_do_one_event): Remove `data' parameter.
778         * top.c (gdb_readline_wrapper): Adjust.
779         * tui/tui-interp.c (tui_command_loop):
780         (_initialize_tui_interp): Don't install it.
781
782 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
783
784         * ui-out.h (uiout): Rename to ...
785         (current_uiout): ... this.
786         * ui-out.c (uiout): Rename to ...
787         (current_uiout): ... this.
788         * ada-lang.c (print_it_exception, print_one_exception)
789         (print_mention_exception): Adjust.
790         * breakpoint.c (watchpoint_check): Adjust.
791         (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
792         (default_collect_info, watchpoints_info, print_one_catch_fork)
793         (print_one_catch_vfork, print_one_catch_syscall)
794         (print_one_catch_exec, mention, print_it_ranged_breakpoint)
795         (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
796         (print_it_watchpoint, print_mention_watchpoint)
797         (print_it_masked_watchpoint, print_mention_masked_watchpoint)
798         (print_it_exception_catchpoint, print_one_exception_catchpoint)
799         (print_mention_exception_catchpoint, say_where, bkpt_print_it)
800         (bkpt_print_mention, momentary_bkpt_print_it)
801         (tracepoint_print_mention, update_static_tracepoint)
802         (tracepoints_info, save_breakpoints): Adjust.
803         * cli-out.c (field_separator): Adjust.
804         * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
805         * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
806         * frame.c (get_current_frame): Adjust.
807         * infcmd.c (run_command_1, print_return_value): Adjust.
808         * inferior.c (inferior_command, info_inferiors_command): Adjust.
809         * infrun.c (print_end_stepping_range_reason): Adjust.
810         (print_signal_exited_reason, print_exited_reason): Adjust.
811         (print_signal_received_reason, print_no_history_reason): Adjust.
812         * interps.c (interp_set): Adjust.
813         * osdata.c (info_osdata_command): Adjust.
814         * progspace.c (maintenance_info_program_spaces_command): Adjust.
815         * remote-fileio.c (remote_fileio_request): Adjust.
816         * remote.c (show_remote_cmd): Adjust.
817         * solib.c (info_sharedlibrary_command): Adjust.
818         * source.c (print_source_lines_base): Adjust.
819         * stack.c (print_stack_frame): Adjust.
820         (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
821         * symfile-mem.c (add_vsyscall_page): Adjust.
822         * symfile.c (load_progress, generic_load)
823         (print_transfer_performance): Adjust.
824         * thread.c (info_threads_command, restore_selected_frame)
825         (thread_command): Adjust.
826         * top.c (make_cleanup_restore_ui_file): Adjust.
827         * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
828         (print_one_static_tracepoint_marker): Adjust.
829         * cli/cli-cmds.c (print_disassembly): Adjust.
830         * cli/cli-decode.c (print_doc_line): Adjust.
831         * cli/cli-interp.c (safe_execute_command): Adjust.
832         * cli/cli-logging.c (set_logging_redirect, pop_output_files)
833         (handle_redirections): Adjust.
834         * cli/cli-script.c (show_user_1): Adjust.
835         * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
836         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
837         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
838         * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
839         (mi_cmd_env_dir): Adjust.
840         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
841         (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
842         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
843         (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
844         (list_args_or_locals): Adjust.
845         * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
846         (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
847         (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
848         (mi_cmd_var_list_children, mi_cmd_var_info_type)
849         (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
850         (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
851         (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
852         * mi/mi-interp.c (mi_on_normal_stop): Adjust.
853         * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
854         (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
855         (list_available_thread_groups, mi_cmd_list_thread_groups)
856         (mi_cmd_data_list_register_names)
857         (mi_cmd_data_list_changed_registers)
858         (mi_cmd_data_list_register_values, get_register)
859         (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
860         (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
861         (mi_cmd_list_target_features, mi_cmd_add_inferior)
862         (mi_execute_command, mi_load_progress): Adjust.
863         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
864         * python/py-auto-load.c (print_script, info_auto_load_scripts):
865         Adjust.
866         * python/py-breakpoint.c (bppy_get_commands): Adjust.
867         * tui/tui-interp.c (tui_command_loop): Adjust.
868         * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
869
870 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
871
872         * exceptions.c (struct catcher): Remove saved_uiout field.
873         (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
874         no longer save/resvore the global ui_out builder.
875         (catch_exceptions_with_msg): Save/override/restore the global
876         ui_out builder manually instead of relying on TRY_CATCH to do it.
877         (catch_errors): Save/restore the global ui_out builder manually
878         instead of relying on TRY_CATCH to do it.
879         * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
880         parameter.
881         (TRY_CATCH): Adjust.
882         * cli/cli-interp.c (safe_execute_command): Save/override/restore
883         the global ui_out builder manually instead of relying on TRY_CATCH
884         to do it.
885
886 2011-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
887
888         * breakpoint.c (update_global_location_list): Ensure
889         invariant 'first loc marked not duplicated and inserted,
890         following locs marked duplicated/not inserted' is respected
891         for multiple locations at the same address.
892         (unduplicated_should_be_inserted) New function.
893         (swap_insertion) New function.
894
895 2011-08-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
896
897         * stack.c (print_frame_arguments_choices): Comment typo fix.
898
899 2011-08-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
900
901         Revert:
902         2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
903         * breakpoint.c (insert_bp_location): Remove disabled_breaks
904         argument.  Update callers.
905
906 2011-08-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
907
908         PR gdb/13045
909         * doublest.c (convert_doublest_to_floatformat): Pass correct
910         mantissa length to put_field.
911
912 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
913
914         * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
915         exception_print code path.
916         (backtrace_command): Remove variable e.  Protect arg by make_cleanup in
917         advance.  Simplify memset.  Remove TRY_CATCH.  Remove explicit xfree.
918         (backtrace_full_command):  Remove variable e.  Remove TRY_CATCH.
919
920 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
921
922         Code cleanup.
923         * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
924         Remove, merge them into ...
925         (print_stack_frame): ... here with a TRY_CATCH.  New variable e, remove
926         variable args and its initialization.
927         (struct print_args_args, print_args_stub): Remove, merge them into
928         print_frame.
929         (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
930         them into ...
931         (do_gdb_disassembly): ... here.  Remove variable args and its
932         initialization.
933         (print_frame): Remove variable args and its initialization, new
934         variable gdbarch and numargs (from print_args_stub), inline here
935         print_args_stub with a TRY_CATCH.
936         (struct backtrace_command_args, backtrace_command_stub): Remove, merge
937         them into ...
938         (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
939         New variable e, remove variable btargs and its initialization.
940
941 2011-08-01  Tristan Gingold  <gingold@adacore.com>
942
943         * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
944
945 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
946
947         * breakpoint.c (insert_bp_location): Document return value.
948         (insert_breakpoint_locations): Fix documentation.
949         (remove_breakpoints): Add documentation.
950
951 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
952
953         * breakpoint.c (insert_bp_location): Remove disabled_breaks
954         argument.  Update callers.
955
956 2011-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
957
958         * stack.c (print_frame_info): Comment typo fix.
959
960 2011-07-29  Sterling Augustine  <saugustine@google.com>
961
962         * MAINTAINERS (Write After Approval): Add myself to the list.
963
964 2011-07-29  Tom Tromey  <tromey@redhat.com>
965
966         * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
967         (library_list_start_segment): Update.
968         (library_list_start_section): Update.
969
970 2011-07-28  Phil Muldoon  <pmuldoon@redhat.com>
971
972         * varobj.c (value_get_print_value): Move hint check later into the
973         function.  Comment function.  Free thevalue before reusing it.
974
975 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
976             Pedro Alves  <pedro@codesourcery.com>
977
978         * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
979         value_one.
980         * valops.c (value_one): Remove parameter lv.  Do not pass it to itself.
981         Assert the result kind.
982         * value.h (value_one): Remove parameter lv.
983
984 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
985
986         Fix crash on lval_computed values.
987         * valops.c (value_zero): Use not_lval for lval_computed.
988
989 2011-07-27  Tom Tromey  <tromey@redhat.com>
990
991         * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
992         gdb_assert.h, gdb_locale.h, gdb_dirent.h.
993
994 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
995
996         * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
997         "ptype" by their typedefs difference.
998
999 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1000
1001         * dwarf2expr.c (ctx_no_read_reg): New function.
1002         * dwarf2expr.h (ctx_no_read_reg): New declaration.
1003         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1004         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1005         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1006
1007 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1008
1009         * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1010         (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1011         file.
1012         (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1013         * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1014         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1015         (ctx_no_get_base_type): Move the functions here.
1016         * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1017         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1018         (ctx_no_get_base_type): New declarations.
1019
1020 2011-07-27  Tom Tromey  <tromey@redhat.com>
1021
1022         * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1023         entries.
1024         * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1025         * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1026
1027 2011-07-26  Sterling Augustine  <saugustine@google.com>
1028
1029         * cli/cli-dump.c (dump_binary_file): Change parameter type to
1030         ULONGEST.
1031         (dump_bfd_file): Likewise.
1032
1033 2011-07-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1034
1035         * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1036         (remote_hw_watchpoint_length_limit): New variable.
1037         (_initialize_remote) add set,show cmds for this new variable.
1038         * gdb.texinfo: document these new commands.
1039         * NEWS: Mention these new commands.
1040
1041 2011-07-26  Pedro Alves  <pedro@codesourcery.com>
1042
1043         * breakpoint.c (works_in_software_mode_watchpoint): Also return
1044         true for software watchpoints.
1045
1046 2011-07-26  Joel Brobecker  <brobecker@adacore.com>
1047
1048         GDB 7.3 released.
1049
1050 2011-07-26  Tom Tromey  <tromey@redhat.com>
1051
1052         * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1053         * dwarf2read.c (read_indirect_string_at_offset): New function.
1054         (read_indirect_string): Use it.
1055         (dwarf_decode_macro_bytes): New function, taken from
1056         dwarf_decode_macros.  Handle DW_MACRO_GNU_*.
1057         (dwarf_decode_macros): Use it.  handle DW_MACRO_GNU_*.
1058         (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1059         New functions.
1060         (struct dwarf2_per_objfile) <macro>: New field.
1061         (dwarf2_elf_names): Add .debug_macro.
1062         (dwarf2_macros_too_long_complaint): Add 'section' argument.
1063         (dwarf2_locate_sections): Handle new section.
1064         (read_file_scope): Handle DW_AT_GNU_macros.
1065         (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1066
1067 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
1068
1069         * NEWS: Mention dcache configuration.
1070         * dcache.c (dcache_set_list, dcache_show_list): New variables.
1071         (dcache_size, dcache_line_size): New variables.
1072         (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1073         (struct dcache_block): Make it expandable.
1074         (struct dcache_struct): New field.
1075         (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1076         (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1077         (dcache_poke_byte, dcache_print_line): Adjust.
1078         (set_dcache_size, set_dcache_line_size): New functions.
1079         (set_dcache_command, show_dcache_command): New functions.
1080         (_initialize_dcache): Add new commands.
1081
1082 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
1083
1084         * progspace.h (struct program_space): Add solib_add_generation.
1085         * infcmd.c (post_create_inferior): Only call solib_add if not
1086         already done.
1087         * solib.c (solib_add): Increment solib_add_generation.
1088
1089 2011-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1090
1091         Fix implicit pointer offsets.
1092         * dwarf2loc.c (indirect_pieced_value): Comment byte_offset.  Use also
1093         ptr.OFFSET.
1094
1095 2011-07-25  Tom Tromey  <tromey@redhat.com>
1096
1097         * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1098         const.
1099         (ada_exception_sal): Make 'ops' const.
1100         (ada_decode_exception_location): Likewise.
1101         (ada_decode_assert_location): Likewise.
1102         (catch_assert_command): Update.
1103         (catch_ada_exception_command): Update.
1104         (create_ada_exception_catchpoint): Make 'ops' const.
1105         * breakpoint.c (set_raw_breakpoint_without_location)
1106         (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1107         const.
1108         (create_internal_breakpoint): Update.
1109         (init_raw_breakpoint_without_location): Make 'ops' const.
1110         (init_raw_breakpoint, init_catchpoint)
1111         (create_fork_vfork_event_catchpoint)
1112         (create_syscall_event_catchpoint, init_breakpoint_sal)
1113         (create_breakpoint_sal, create_breakpoints_sal)
1114         (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1115         * breakpoint.h (struct breakpoint) <ops>: Now const.
1116         (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1117         const.
1118
1119 2011-07-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
1120
1121         * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1122
1123 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
1124
1125         * breakpoint.h (print_recreate_thread): Declare.
1126         (struct breakpoint): Move step_count, pass_count,
1127         number_on_target, static_trace_marker_id,
1128         static_trace_marker_id_idx ...
1129         (struct tracepoint): ... to this new struct.
1130         (get_tracepoint, get_tracepoint_by_number_on_target)
1131         (get_tracepoint_by_number): Change return type to struct
1132         tracepoint pointer.
1133         * breakpoint.c (is_tracepoint_type): New, factored out from
1134         is_tracepoint.
1135         (is_tracepoint): Adjust.
1136         (print_one_breakpoint_location): Cast to struct tracepoint as
1137         necessary, and adjust.
1138         (print_recreate_catch_fork, print_recreate_catch_vfork)
1139         (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1140         print_recreate_thread.
1141         (init_breakpoint_sal): New, factored out from
1142         create_breakpoint_sal.
1143         (create_breakpoint_sal): Reimplement.
1144         (create_breakpoint): Allocate a struct tracecepoint if the caller
1145         wanted a tracepoint.  Use init_breakpoint_sal and
1146         install_breakpoint.
1147         (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1148         (print_recreate_masked_watchpoint)
1149         (print_recreate_exception_catchpoint): Call print_recreate_thread.
1150         (tracepoint_print_one_detail): Adjust.
1151         (tracepoint_print_recreate): Adjust.  Call print_recreate_thread.
1152         Dump the pass count here.
1153         (update_static_tracepoint): Adjust.
1154         (addr_string_to_sals): Adjust.
1155         (create_tracepoint_from_upload): Adjust.  Change return type to
1156         struct tracepoint pointer.
1157         (trace_pass_set_count): Change parameter type to struct tracepoint
1158         pointer, and adjust.
1159         (trace_pass_command): Adjust.
1160         (get_tracepoint, get_tracepoint_by_number_on_target)
1161         (get_tracepoint_by_number): Change return type to struct
1162         tracepoint pointer, and adjust.
1163         (print_recreate_thread): New, factored out from save_breakpoints.
1164         (save_breakpoints): Don't print thread and task and passcount
1165         recreation here.
1166         * remote.c (remote_download_tracepoint): Adjust.
1167         * tracepoint.c (trace_actions_command, validate_actionline)
1168         (start_tracing, tfind_1, trace_find_tracepoint_command)
1169         (trace_dump_command): Adjust.
1170         (find_matching_tracepoint): Change return type to struct
1171         tracepoint pointer, and adjust.
1172         (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1173         (tfile_trace_find, tfile_fetch_registers): Adjust.
1174         * tracepoint.h (create_tracepoint_from_upload): Change return type
1175         to struct tracepoint pointer.
1176         * ada-lang.c (print_recreate_exception): Call
1177         print_recreate_thread.
1178         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1179
1180 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
1181
1182         * breakpoint.h (struct breakpoint): Move ops as first field.  Move
1183         exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1184         cond_exp_valid_block, val, val_valid, watchpoint_frame,
1185         watchpoint_thread, watchpoint_triggered ...
1186         (struct watchpoint): ... to this new struct.
1187         (is_watchpoint): Declare.
1188         (install_breakpoint): Add new `internal' parameter.
1189         * breakpoint.c (is_watchpoint): Delete declaration.
1190         (set_breakpoint_condition): Handle watchpoints.
1191         (is_watchpoint): Make public.
1192         (watchpoint_in_thread_scope): Change parameter type to struct
1193         watchpoint.
1194         (watchpoint_del_at_next_stop): Change parameter type to struct
1195         watchpoint.  Remove assertion.  Adjust.
1196         (update_watchpoint): Ditto.
1197         (insert_breakpoints, breakpoint_init_inferior)
1198         (watchpoints_triggered, watchpoint_check)
1199         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1200         (bpstat_stop_status, print_one_breakpoint_location)
1201         (print_one_breakpoint_location, watchpoint_locations_match): Cast
1202         to struct watchpoint as necessary, and adjust.
1203         (install_breakpoint): Add `internal' argument.  If true, don't
1204         mention the new breakpoint.  Use set_breakpoint_number.
1205         (create_fork_vfork_event_catchpoint)
1206         (create_syscall_event_catchpoint): Adjust.
1207         (dtor_watchpoint): New.
1208         (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1209         (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1210         (print_it_watchpoint, print_mention_watchpoint)
1211         (print_recreate_watchpoint, insert_masked_watchpoint)
1212         (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1213         (print_one_detail_masked_watchpoint)
1214         (print_mention_masked_watchpoint)
1215         (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1216         necessary, and adjust.
1217         (watch_command_1): Allocate and initialize a struct watchpoint
1218         instead of a struct breakpoint.  Use install_breakpoint.
1219         (catch_exec_command_1): Adjust.
1220         (base_breakpoint_dtor): Delete accesses to watchpoint specific
1221         fields.
1222         (delete_breakpoint, enable_breakpoint_disp)
1223         (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1224         as necessary, and adjust.
1225         (initialize_breakpoint_ops): Install dtor_watchpoint as
1226         watchpoints' dtor method.
1227         * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1228         * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1229         to struct watchpoint as necessary, and adjust.
1230
1231 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
1232
1233         * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1234         the the base class ops table.
1235         (catch_exception_breakpoint_ops)
1236         (catch_exception_unhandled_breakpoint_ops)
1237         (catch_assert_breakpoint_ops): Don't statically initialize.
1238         (initialize_ada_catchpoint_ops): New.
1239         (_initialize_ada_language): Call it.
1240         * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1241         (bkpt_breakpoint_ops): Forward declare.
1242         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1243         (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1244         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1245         (masked_watchpoint_breakpoint_ops)
1246         (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1247         (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1248         base class ops table.
1249         (null_re_set, null_check_status, null_works_in_software_mode)
1250         (null_resources_needed, null_print_one_detail): Delete.
1251         (bkpt_dtor): Rename to ...
1252         (base_breakpoint_dtor): ... this.  Make static.
1253         (bkpt_allocate_location): Rename to ...
1254         (base_breakpoint_allocate_location): ... this.  Make static.
1255         (base_breakpoint_re_set): New.
1256         (internal_error_pure_virtual_called): New.
1257         (base_breakpoint_insert_location, base_breakpoint_remove_location)
1258         (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1259         (base_breakpoint_works_in_software_mode)
1260         (base_breakpoint_resources_needed, base_breakpoint_print_it)
1261         (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1262         (base_breakpoint_print_recreate): New functions.
1263         (base_breakpoint_ops): New global.
1264         (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1265         (bkpt_breakpoint_hit): Make static.
1266         (bkpt_check_status): Delete.
1267         (bkpt_resources_needed): Make static.
1268         (bkpt_works_in_software_mode): Delete.
1269         (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1270         static.
1271         (bkpt_breakpoint_ops, internal_breakpoint_ops)
1272         (momentary_breakpoint_ops): Don't statically initialize.
1273         (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1274         Delete.
1275         (tracepoint_insert_location, tracepoint_remove_location)
1276         (tracepoint_check_status, tracepoint_works_in_software_mode)
1277         (tracepoint_print_it): Delete.
1278         (tracepoint_breakpoint_ops): Don't statically initialize.
1279         (initialize_breakpoint_ops): New.
1280         (_initialize_breakpoint): Call it.
1281         * breakpoint.h (null_re_set, null_works_in_software_mode)
1282         (null_resources_needed, null_check_status, null_print_one_detail):
1283         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1284         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1285         (bkpt_check_status, bkpt_resources_needed)
1286         (bkpt_works_in_software_mode, bkpt_print_it)
1287         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1288         Delete declarations.
1289         (initialize_breakpoint_ops): Declare.
1290
1291 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
1292
1293         * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1294         (momentary_bkpt_print_it): Simplify.
1295
1296 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
1297
1298         Split internal, momentary and user breakpoints breakpoint_ops
1299         tables.
1300
1301         * breakpoint.c (internal_breakpoint_ops)
1302         (momentary_breakpoint_ops): Forward declare.
1303         (create_internal_breakpoint): Add new breakpoint_ops parameter.
1304         Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1305         (create_overlay_event_breakpoint)
1306         (create_std_terminate_master_breakpoint)
1307         (create_exception_master_breakpoint): Create breakpoints with
1308         internal_breakpoint_ops vtable.
1309         (set_longjmp_breakpoint): Create momentary breakpoints with
1310         momentary_breakpoint_ops vtable, using
1311         momentary_breakpoint_from_master.
1312         (create_thread_event_breakpoint, create_jit_event_breakpoint)
1313         (create_solib_event_breakpoint): Create breakpoints with
1314         internal_breakpoint_ops vtable.
1315         (set_momentary_breakpoint): Create breakpoints with
1316         momentary_breakpoint_ops vtable.
1317         (momentary_breakpoint_from_master): New, factored out from
1318         clone_momentary_breakpoint.
1319         (clone_momentary_breakpoint): Adjust.
1320         (watch_command_1): Create scope breakpoints with
1321         momentary_breakpoint_ops vtable.
1322         (bkpt_re_set): Remove handling of internal and momentary
1323         breakpoints.
1324         (bkpt_print_mention, bkpt_print_recreate): New.
1325         (bkpt_breakpoint_ops): Adjust.
1326         (internal_bkpt_re_set, internal_bkpt_check_status)
1327         (internal_bkpt_print_it, internal_bkpt_print_mention)
1328         (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1329         (momentary_bkpt_re_set, momentary_bkpt_check_status)
1330         (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1331         (momentary_bkpt_print_recreate): New.
1332         (momentary_breakpoint_ops): New.
1333
1334 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
1335
1336         Implement most breakpoint_ops methods for all breakpoint types,
1337         and move the default handlings to the proper callbacks.
1338
1339         * breakpoint.c (update_watchpoint): Always call the breakpoint's
1340         works_in_software_mode method.
1341         (insert_bp_location): Go through breakpoint_ops->insert_location
1342         for software and hardware watchpoints.
1343         (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1344         breakpoint_ops.
1345         (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1346         for software and hardware watchpoints.
1347         (print_it_typical): Delete.
1348         (print_bp_stop_message): Always call the breakpoint_ops->print_it
1349         method.
1350         (watchpoint_check): Adjust comment.
1351         (bpstat_check_location): Simply always call the breakpoint's
1352         breakpoint_hit method.
1353         (bpstat_stop_status): Always call the breakpoint's check_status
1354         method.  Remove special cases for watchpoints and internal event
1355         breakpoints from here (moved to the check_status implementations).
1356         (print_one_breakpoint_location): Assume b->ops is never NULL.
1357         Remove static tracepoint marker id printing from here (moved to
1358         the print_one_detail callback implementation of tracepoints).
1359         (init_bp_location): Assert OPS is never NULL.
1360         (allocate_bp_location): Always call the breakpoint's
1361         allocate_location method, and remove the default code from here.
1362         (free_bp_location): Always call the location's dtor method, and
1363         remove the default code from here.
1364         (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1365         (set_raw_breakpoint_without_location): Add new breakpoint_ops
1366         parameter.  Pass it down.
1367         (set_raw_breakpoint): Ditto.
1368         (print_it_catch_fork): Adjust to take a bpstat as argument.
1369         (catch_fork_breakpoint_ops): Install methods.
1370         (print_it_catch_vfork): Adjust to take a bpstat as argument.
1371         (catch_vfork_breakpoint_ops): Install methods.
1372         (dtor_catch_syscall): Call the base dtor.
1373         (print_it_catch_syscall): Adjust to take a bpstat as argument.
1374         (catch_syscall_breakpoint_ops): Install methods.
1375         (dtor_catch_exec): Call the base dtor.
1376         (print_it_catch_exec): Adjust to take a bpstat as argument.
1377         (catch_exec_breakpoint_ops): Install methods.
1378         (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1379         the breakpoint's resources_needed method, and remove the default
1380         code from here.
1381         (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1382         breakpoint_ops.
1383         (clone_momentary_breakpoint): Clone the original's ops.
1384         (mention): Always call the breakpoint's print_mention method, and
1385         remove the default code from here.
1386         (create_breakpoint_sal): Adjust to pass the ops to
1387         set_raw_breakpoint rather than setting it manually.
1388         (create_breakpoint): Assert ops is never NULL.  Adjust to pass the
1389         ops to set_raw_breakpoint_without_location rather than setting it
1390         manually.
1391         (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1392         (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1393         (ranged_breakpoint_ops): Install methods.
1394         (break_range_command): Adjust to pass the ops to
1395         set_raw_breakpoint rather than setting it manually.
1396         (re_set_watchpoint, breakpoint_hit_watchpoint)
1397         (check_status_watchpoint, resources_needed_watchpoint)
1398         (works_in_software_mode_watchpoint, print_it_watchpoint)
1399         (print_mention_watchpoint, print_recreate_watchpoint): New
1400         functions.
1401         (watchpoint_breakpoint_ops): Install new methods.
1402         (print_it_masked_watchpoint): New function.
1403         (masked_watchpoint_breakpoint_ops): Install new methods.
1404         (watch_command_1): Adjust to pass the right breakpoint_ops to
1405         set_raw_breakpoint_without_location rather than setting it
1406         manually later.  Record the current pspace.
1407         (print_it_exception_catchpoint): Adjust to take a bpstat as
1408         argument.
1409         (gnu_v3_exception_catchpoint_ops): Install new methods.
1410         (say_where): New function.
1411         (null_re_set, null_check_status, null_works_in_software_mode)
1412         (null_resources_needed, null_print_one_detail, bp_location_dtor):
1413         New functions.
1414         (bp_location_ops): New global.
1415         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1416         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1417         (bkpt_check_status, bkpt_resources_needed)
1418         (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1419         (bkpt_print_recreate): New functions.
1420         (bkpt_breakpoint_ops): New global.
1421         (tracepoint_re_set, tracepoint_insert_location)
1422         (tracepoint_remove_location, tracepoint_breakpoint_hit)
1423         (tracepoint_check_status, tracepoint_works_in_software_mode)
1424         (tracepoint_print_it, tracepoint_print_one_detail)
1425         (tracepoint_print_mention, tracepoint_print_recreate): New
1426         functions.
1427         (tracepoint_breakpoint_ops): New global.
1428         (delete_breakpoint): Always call the breakpoint's dtor method, and
1429         remove the default handling from here.
1430         (breakpoint_re_set_default): Make static.
1431         (breakpoint_re_set_one): Always call the breakpoints re_set
1432         method, and remove the default handling from here.
1433         (trace_command, ftrace_command, strace_command)
1434         (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1435         to create_breakpoint.
1436         (save_breakpoints): Always call the breakpoint's print_recreate
1437         method, and remove the default handling from here.
1438
1439         * ada-lang.c (dtor_exception): Call the base dtor.
1440         (re_set_exception): Call the base method.
1441         (print_it_exception, print_it_catch_exception): Adjust to take a
1442         bpstat as argument.
1443         (catch_exception_breakpoint_ops): Install methods.
1444         (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1445         argument.
1446         (catch_exception_unhandled_breakpoint_ops): Install methods.
1447         (print_it_catch_assert): Adjust to take a bpstat as argument.
1448         (catch_assert_breakpoint_ops): Install methods.
1449
1450         * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1451         to take a bpstat as argument.
1452         (enum print_stop_action): Add describing comments to each enum
1453         value.
1454         (breakpoint_re_set_default): Delete declaration.
1455         (null_re_set, null_works_in_software_mode, null_resources_needed)
1456         (null_check_status, null_print_one_detail): Declare.
1457         (bkpt_breakpoint_ops): Declare.
1458         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1459         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1460         (bkpt_check_status, bkpt_resources_needed)
1461         (bkpt_works_in_software_mode, bkpt_print_it)
1462         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1463         Declare.
1464
1465         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1466         bkpt_breakpoint_ops.
1467         * python/py-breakpoint.c (bppy_init): Ditto.
1468
1469 2011-07-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1470
1471         * MAINTAINERS (Write After Approval): Add myself to the list.
1472
1473 2011-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>
1474
1475         * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1476
1477 2011-07-22  Pedro Alves  <pedro@codesourcery.com>
1478
1479         * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1480         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1481         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1482         adjust.
1483         (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1484         (struct i386_debug_reg_state): New.
1485         (i386_init_dregs): New.
1486         (dr_mirror): New.
1487         (i386_cleanup_dregs): Use i386_init_dregs.
1488         (i386_show_dr): Add state parameter and adjust.
1489         (i386_insert_aligned_watchpoint): Ditto.  Don't pass the info to
1490         the inferior here.
1491         (i386_remove_aligned_watchpoint): Likewise.
1492         (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1493         (i386_update_inferior_debug_regs): New.
1494         (i386_insert_watchpoint): Work on a local mirror of the debug
1495         registers, and only update the inferior on success.
1496         (i386_remove_watchpoint): Ditto.
1497         (i386_region_ok_for_watchpoint): Adjust.
1498         (i386_stopped_data_address): Adjust.
1499         (i386_insert_hw_breakpoint): Adjust.
1500         (i386_remove_hw_breakpoint): Adjust.
1501
1502 2011-07-22  Tom Tromey  <tromey@redhat.com>
1503
1504         * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1505         from amd64_pseudo_register_read.  Change arguments.  Call
1506         mark_value_bytes_unavailable when needed.
1507         (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1508         set_gdbarch_pseudo_register_read.
1509         * sentinel-frame.c (sentinel_frame_prev_register): Use
1510         regcache_cooked_read_value.
1511         * regcache.h (regcache_cooked_read_value): Declare.
1512         * regcache.c (regcache_cooked_read_value): New function.
1513         (regcache_cooked_read): Call
1514         gdbarch_pseudo_register_read_value if available.
1515         * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1516         (i386_pseudo_register_read): Remove.
1517         * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1518         i386_pseudo_register_read.  Change arguments.  Call
1519         mark_value_bytes_unavailable when needed.
1520         (i386_pseudo_register_read_value): New function.
1521         (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1522         not set_gdbarch_pseudo_register_read.
1523         * gdbarch.sh (pseudo_register_read_value): New method.
1524         * gdbarch.c, gdbarch.h: Rebuild.
1525         * findvar.c (value_from_register): Call get_frame_register_value.
1526
1527 2011-07-22  Phil Muldoon  <pmuldoon@redhat.com>
1528
1529         * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1530         get_prefix.
1531         (display_gdb_prompt): Likewise.
1532         (change_annotation_level): Likewise.
1533         (push_prompt): Likewise.
1534         (pop_prompt): Likewise.
1535         (handle_stop_sig): Use get_prompt with a level.
1536         * top.c (command_loop): Use get_prompt with a level.
1537         (set_async_annotation_level): Use set_prompt with a level.
1538         (get_prefix): New function.
1539         (set_prefix): Ditto.
1540         (set_suffix): Ditto.
1541         (get_suffix): Ditto.
1542         (get_prompt): Accept a level argument.
1543         (set_prompt): Accept a level argument.  Free old prompts.  Set
1544         new_async_prompt if level is 0.
1545         (init_main): Use set_prompt with a level.  Do not set
1546         new_async_prompt.
1547         * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1548         * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1549         Modify set_prompt, get_prompt to account for levels.
1550         * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1551         level.
1552         * python/python.c (before_prompt_hook): Use set_prompt.
1553         
1554 2011-07-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
1555
1556         * defs.h: Add guard against inclusion in gdbserver.
1557         (struct ptid, ptid_t): Move to common/ptid.h.
1558         (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1559         xsnprintf, internal_error): Move to common/common-utils.h.
1560         (nomem): Delete.
1561         * gdb_assert.h: Move into common/ sub-directory.
1562         * gdb_locale.h: Ditto.
1563         * gdb_dirent.h: Ditto.
1564         * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1565         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1566         Move into common/ptid.h.
1567         * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1568         (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1569         Change nomem to malloc_failure.
1570         * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1571         * utils.c (nomem): Rename to malloc_failure.
1572         (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1573         xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1574         (gdb_buildargv): Change nomem to malloc_failure.
1575         * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1576         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1577         ptid_is_pid): Move into common/ptid.c.
1578         (initialize_infrun): Delete initialization of null_ptid and
1579         minus_one_ptid.
1580         * linux-nat.c (linux_nat_xfer_osdata): Defer to
1581         linux_common_xfer_osdata.
1582         * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1583         common/ptid.c and common/buffer.c.
1584         (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1585         common/ptid.h, common/buffer.h and common/linux-osdata.h.
1586         (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1587         (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1588         rules.
1589         * common/gdb_assert.h: New.
1590         * common/gdb_dirent.h: New.
1591         * common/gdb_locale.h: New.
1592         * common/buffer.c: New.
1593         * common/buffer.h: New.
1594         * common/ptid.c: New.
1595         * common/ptid.h: New.
1596         * common/xml-utils.c: New.
1597         * common/xml-utils.h: New.
1598         * common/common-utils.c: New.
1599         * common/common-utils.h: New.
1600         * common/linux-osdata.c: New.
1601         * common/linux-osdata.h: New.
1602         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1603         * config/arm/linux.mh (NATDEPFILES): Ditto.
1604         * config/i386/linux.mh (NATDEPFILES): Ditto.
1605         * config/i386/linux64.mh (NATDEPFILES): Ditto.
1606         * config/ia64/linux.mh (NATDEPFILES): Ditto.
1607         * config/m32r/linux.mh (NATDEPFILES): Ditto.
1608         * config/m68k/linux.mh (NATDEPFILES): Ditto.
1609         * config/mips/linux.mh (NATDEPFILES): Ditto.
1610         * config/pa/linux.mh (NATDEPFILES): Ditto.
1611         * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1612         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1613         * config/s390/s390.mh (NATDEPFILES): Ditto.
1614         * config/sparc/linux.mh (NATDEPFILES): Ditto.
1615         * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1616         * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1617
1618 2011-07-21  Matt Rice  <ratmice@gmail.com>
1619
1620         * NEWS: Add info macros and info definitions commands.
1621
1622 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
1623
1624         * NEWS: Document Python prompt substitution hook.
1625
1626 2011-07-18  Matt Rice  <ratmice@gmail.com>
1627
1628         PR macros/12999
1629         * macrotab.h (macro_callback_fn): Add new arguments to callback.
1630         * macrotab.c (foreach_macro): Ditto.
1631         (foreach_macro_in_scope): Ditto.
1632         * macrocmd.c (print_macro_callback): New function.
1633         (info_macro_command): Move some code to print_macro_definition.
1634         (print_macro_definition): New function.
1635         (print_one_macro): Add new arguments to callback.
1636         (info_definitions_command): New function.
1637         (info_macros_command): Ditto.
1638         (_initialize_macrocmd): Add info macros and info definitions commands.
1639         * symtab.c (add_macro_name): Add new arguments to callback.
1640
1641 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
1642             Tom Tromey  <tromey@redhat.com>
1643
1644         * top.c (set_prompt): Rewrite to free previous prompt, free
1645         asynch_new_prompt and set both on new prompts.
1646         * event-top.c (display_gdb_prompt): Add prompt substitution
1647         logic.
1648         * python/python.c (before_prompt_hook): New function.
1649
1650 2011-07-20  Matt Rice  <ratmice@gmail.com>
1651
1652         * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1653         arguments to store_unsigned_integer.
1654
1655 2011-07-20  Tom Tromey  <tromey@redhat.com>
1656
1657         * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1658         in some declaration-only cases.
1659
1660 2011-07-18  Tom Tromey  <tromey@redhat.com>
1661
1662         PR symtab/12984:
1663         * dwarf2read.c (dwarf2_section_info_def): New typedef.
1664         (struct dwarf2_per_objfile) <types>: Change to a VEC.
1665         (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1666         <debug_type_section>: New field.
1667         (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1668         (load_cu): Use appropriate section.
1669         (create_signatured_type_table_from_index): Add 'section'
1670         argument.
1671         (dwarf2_read_index): Only allow a single .debug_types section.
1672         (dw2_get_file_names): Use appropriate section.
1673         (read_type_comp_unit_head): Add 'section' argument.
1674         (create_debug_types_hash_table): Loop over all .debug_types
1675         sections.
1676         (init_cu_die_reader): Use appropriate section.
1677         (process_psymtab_comp_unit, load_partial_comp_unit)
1678         (load_full_comp_unit, read_die_and_children, find_partial_die)
1679         (lookup_die_type, determine_prefix, follow_die_offset): Update.
1680         (lookup_signatured_type_at_offset): Add 'section' argument.
1681         (read_signatured_type_at_offset): Add 'sect' argument.
1682         (read_signatured_type): Use appropriate section.
1683         (set_die_type, get_die_type_at_offset): Update.
1684         (dwarf2_per_objfile_free): Free all .debug_types sections, and
1685         VEC.
1686         (write_psymtabs_to_index): Don't allow index with more than one
1687         .debug_types section.
1688
1689 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1690
1691         Fix crash if referenced CU is aged out.
1692         * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1693         xfree of block.data.
1694         (indirect_pieced_value): New variable back_to, use to for xfree of
1695         baton.data.
1696         (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1697         block.data.
1698         * dwarf2read.c (dwarf2_find_base_address): New prototype.
1699         (load_cu): New function from ...
1700         (dw2_do_instantiate_symtab): ... the code here ...
1701         (process_full_comp_unit): ... and here.
1702         (dwarf2_fetch_die_location_block): Call load_cu first.  Call xmemdup on
1703         retval.data.
1704
1705 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1706
1707         * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1708         type.
1709
1710 2011-07-19  Gary Benson  <gbenson@redhat.com>
1711
1712         * infrun.c (struct execution_control_state): New member
1713         stop_func_filled_in.
1714         (clear_stop_func, fill_in_stop_func): New functions.
1715         (handle_inferior_event): Call clear_stop_func rather than
1716         manipulating the execution control state directly.
1717         Call fill_in_stop_func lazily as required rather than
1718         directly calling find_pc_partial_function in all cases.
1719
1720 2011-07-18  Tom Tromey  <tromey@redhat.com>
1721
1722         * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1723         checking for variable-sized array.
1724
1725 2011-07-18  Jean-Charles Delay  <delay@adacore.com>
1726
1727         * varobj.h (varobj_languages): Add vlang_ada definition to the list
1728         of supported languages.
1729         * varobj.c: Add top definitions and basic implementation of the
1730         following callbacks: ada_number_of_children, ada_name_of_variable,
1731         ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1732         ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1733         (languages): Register Ada-specific callbacks.
1734         (variable_language): Add the Ada case in the language setter switch.
1735
1736 2011-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1737
1738         * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1739
1740 2011-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1741
1742         Code cleanup.
1743         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1744         (execute_stack_op): Use dwarf2_frame_ctx_funcs
1745         * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1746         (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1747         get_frame_cfa, get_tls_address and dwarf_call via funcs.
1748         * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1749         (struct dwarf_expr_context_funcs): New, move here methods from ...
1750         (struct dwarf_expr_context): ... here.  New fields funcs.
1751         * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1752         (dwarf_expr_ctx_funcs): New.
1753         (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1754         (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1755         (needs_frame_ctx_funcs): New.
1756         (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1757
1758 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
1759
1760         * MAINTAINERS (Write After Approval): Add myself to the list.
1761
1762 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
1763
1764         * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1765         that CIE pointer of an FDE really points to a CIE .
1766
1767 2011-07-15  Hui Zhu  <teawater@gmail.com>
1768
1769         * remote.c (remote_get_trace_status): Add comments.
1770
1771 2011-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1772
1773         Code cleanup - constify struct lval_funcs.
1774         * dwarf2loc.c (pieced_value_funcs): Make it const.
1775         * infrun.c (siginfo_value_funcs): Likewise.
1776         * opencl-lang.c (opencl_value_funcs): Likewise.
1777         * valops.c (value_assign, value_ind): Make the funcs variable const.
1778         * value.c (struct value): Make location.computed.funcs target const.
1779         Rearrange the comments.
1780         (allocate_computed_value): Make the funcs parameter target const.
1781         (value_computed_funcs): Return the funcs target const.
1782         (value_free, value_copy, set_value_component_location): Make the funcs
1783         variable const.
1784         * value.h (allocate_computed_value): Make the funcs parameter target
1785         const.
1786         (value_computed_funcs): Return the funcs target const.
1787         * windows-tdep.c (tlb_value_funcs): Make it const.
1788
1789 2011-07-14  Hui Zhu  <teawater@gmail.com>
1790
1791         * remote.c (remote_get_trace_status): Initialize p.
1792
1793 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1794
1795         Work around kgdb.
1796         * remote.c (remote_get_trace_status): New variable ex.  Put
1797         remote_get_noisy_reply into TRY_CATCH.  Call exception_fprintf for it.
1798
1799 2011-07-13  Tom Tromey  <tromey@redhat.com>
1800
1801         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1802         value_from_contents for final conversion.
1803
1804 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1805
1806         Code cleanup.
1807         * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1808         Indent prototypes so they do not get into tags.
1809
1810 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
1811
1812         Code cleanup making also optimized out values lazy.
1813         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1814         allocate_optimized_out_value.  Twice.
1815         (loclist_read_variable)  Use allocate_optimized_out_value.  Once.
1816         * findvar.c (read_var_value): Likewise.
1817         * value.c (allocate_optimized_out_value): New function.
1818         * value.h (allocate_optimized_out_value): New declaration.
1819
1820 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
1821
1822         Fix occasional crash of CTRL-C during DWARF read in.
1823         * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1824
1825 2011-07-11  Tom Tromey  <tromey@redhat.com>
1826
1827         * regcache.c (struct regcache_descr): Fix typo.
1828         * i387-tdep.c (i387_supply_xsave): Fix typo.
1829
1830 2011-07-11  Tom Tromey  <tromey@redhat.com>
1831
1832         * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1833         (read_file_scope, read_type_unit_scope): Use it.
1834
1835 2011-07-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1836
1837         * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1838         `int'.
1839
1840 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
1841
1842         PR python/12438
1843         * python/python.c: Set gdbpy_should_print_stack default to off.
1844         (set_python): Deprecate maint set python print-stack to
1845         class_deprecate.
1846         (_initialize_python): Deprecate maint set/show python print-stack.
1847         Add new prefix command, python.  Add new setting, print-backtrace.
1848         * NEWS: Document set python print-stack.  Document default change.
1849
1850 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
1851
1852         * python/py-inferior.c (infpy_dealloc): New function.
1853         (inferior_to_inferior_object): Return a new object, or a
1854         new reference to the existing object.
1855         (find_thread_object): Cleanup references to inferior.
1856         (delete_thread_object): Ditto.
1857         * python/py-infthread.c (create_thread_object): Do not increment
1858         inferior reference count.
1859
1860 2011-07-08  Tom Tromey  <tromey@redhat.com>
1861
1862         * dwarf2loc.c (locexpr_regname): New function.
1863         (locexpr_describe_location_piece): Use it.
1864         (disassemble_dwarf_expression): Add per_cu argument.  Use
1865         locexpr_regname.
1866         <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1867         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1868         New cases.
1869         (locexpr_describe_location_1): Add per_cu argument.
1870         (locexpr_describe_location): Update.
1871         (loclist_describe_location): Update.
1872
1873 2011-07-08  Tom Tromey  <tromey@redhat.com>
1874
1875         * dwarf2expr.c (execute_stack_op): Add QUIT.
1876
1877 2011-07-07  Hui Zhu  <teawater@gmail.com>
1878
1879         Revert:
1880         2011-07-06  Hui Zhu  <teawater@gmail.com>
1881         * remote.c (remote_start_remote): Add TRY_CATCH for
1882         remote_get_trace_status.
1883         * tracepoint.c (disconnect_tracing): Ditto.
1884
1885 2011-07-07  Andrew Burgess  <aburgess@broadcom.com>
1886
1887         * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1888         variables as signed, not unsigned.
1889
1890 2011-07-06  Joel Brobecker  <brobecker@adacore.com>
1891
1892         * jit.c (jit_inferior_init): Reformat forward declaration.
1893
1894 2011-07-06  Matt Rice  <ratmice@gmail.com>
1895
1896         * MAINTAINERS (Write After Approval): Add myself to the list.
1897
1898 2011-07-06  Hui Zhu  <teawater@gmail.com>
1899
1900         * remote.c (remote_start_remote): Add TRY_CATCH for
1901         remote_get_trace_status.
1902         * tracepoint.c (disconnect_tracing): Ditto.
1903
1904 2011-07-05  Tom Tromey  <tromey@redhat.com>
1905
1906         * symtab.c (operator_chars): Now static.
1907         * linespec.c (operator_chars): Don't declare.
1908
1909 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1910
1911         * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1912
1913 2011-07-05  Tom Tromey  <tromey@redhat.com>
1914
1915         * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1916         * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1917         (TYPE_CPLUS_REALLY_JAVA): New macro.
1918         * dwarf2read.c (process_structure_scope): Set
1919         TYPE_CPLUS_REALLY_JAVA.
1920
1921 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1922
1923         * ada-lang.c: Fix typos.
1924         * amd64-tdep.c: Likewise.
1925         * breakpoint.c: Likewise.
1926         * cli/cli-decode.c: Likewise.
1927         * findcmd.c: Likewise.
1928         * inline-frame.c: Likewise.
1929         * mi/mi-main.c: Likewise.
1930         * minsyms.c: Likewise.
1931         * monitor.c: Likewise.
1932         * monitor.h: Likewise.
1933         * prologue-value.c: Likewise.
1934         * reverse.c: Likewise.
1935         * s390-tdep.c: Likewise.
1936
1937 2011-07-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
1938
1939         * jit.c (jit_inferior_init): Forward declare.
1940         (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1941
1942 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
1943
1944         * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1945
1946 2011-07-04  Tristan Gingold  <gingold@adacore.com>
1947
1948         * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1949         (tcb_fieldno): Add activation_link field.
1950         (get_known_tasks_addr): Moved and rewritten.
1951         (get_tcb_types_info): Set activation_link field.
1952         (read_known_tasks_array): Add parameter.  Rewritten.
1953         (read_known_tasks_list): New function.
1954         (read_known_tasks): New function.
1955         (ada_build_task_list): Call read_known_tasks instead of
1956         read_known_tasks_array.
1957         * ravenscar-thread.c: Add first_task_name constant.
1958         (has_ravenscar_runtime): Check for task list too.
1959
1960 2011-07-04  Tristan Gingold  <gingold@adacore.com>
1961
1962         * ada-tasks.c: Renames fieldno to actb_fieldno.
1963         (ada_get_task_number): Indentation.
1964         (get_tcb_types_info): Remove all parameters.  Write directly
1965         the globals.
1966         (ptid_from_atcb_common): Adjust.
1967         (read_atcb): Adjust.
1968
1969 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1970
1971         * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1972
1973 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1974
1975         * ui-out.c (ui_out_field_core_addr): Mention that the function
1976         description is in the header file.
1977         * ui-out.h (ui_out_field_core_addr): Document function.
1978
1979 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1980
1981         * ui-out.c (ui_out_get_field_separator): Remove unused function.
1982         * ui-out.h (ui_out_get_field_separator): Remove prototype.
1983
1984 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1985
1986         * symtab.c (expand_line_sal): Remove empty line.
1987
1988 2011-07-04  Thomas Schwinge  <thomas@schwinge.name>
1989
1990         * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1991         same way as ELFOSABI_NONE.
1992         <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1993
1994 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1995
1996         * breakpoint.c: Fix typos in comments.
1997         * linespec.c: Likewise.
1998         * symtab.c: Likewise.
1999
2000 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
2001
2002         * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2003         section in separate object files.
2004
2005 2011-07-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2006
2007         Fix false GCC warning.
2008         * linespec.c (decode_line_1): Initialize values.
2009
2010 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2011
2012         * linespec.c (find_method): Accept the function type automatically only
2013         if it was specified with parameter types.
2014
2015 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2016
2017         Stop on first linespec terminator instead of eating what we can.
2018         * linespec.c (is_linespec_boundary): New function.
2019         (name_end): Remove function.
2020         (keep_name_info): New parameter on_boundary, replace the body.
2021         (decode_line_1): Provide the parameter to keep_name_info.
2022         (decode_compound): Likewise.  Drop the trailing java return type
2023         handling.  Twice.
2024
2025 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2026
2027         Fall back linespec to minimal symbols.
2028         * linespec.c (decode_line_1): New variable ex, saved_argptr.  Protect
2029         decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2030         (find_method, symbol_found): Change error to cplusplus_error.
2031
2032 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2033
2034         * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2035
2036 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2037             Tom Tromey  <tromey@redhat.com>
2038
2039         * dwarf2read.c (check_physname): New variable.
2040         (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2041         (show_check_physname): New function.
2042         (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2043
2044 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2045
2046         * machoread.c (macho_symfile_read): Delete OBE comment.
2047
2048 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2049
2050         * machoread.c (struct macho_oso_data): Delete.
2051         (current_oso): Delete.
2052         (macho_relocate_common_syms): New function, mostly extracted
2053         out of
2054         (macho_add_oso_symfile): Call macho_relocate_common_syms.
2055         Remove code that sets and unset current_oso.
2056         (macho_symfile_relocate): Delete handling of common symbols,
2057         now moved to macho_relocate_common_syms.
2058
2059 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2060
2061         * darwin-nat.c (darwin_ptrace): Add documentation.
2062         Set errno to zero before calling ptrace.  If ptrace returns
2063         -1 and errno is zero, then change then return zero.
2064         (darwin_kill_inferior): Issue a warning instead of triggering
2065         a failed assertion when the PT_KILL ptrace operations returned
2066         nonzero.
2067
2068 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2069
2070         * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2071         only when inf->private->no_ptrace.
2072
2073 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2074
2075         * ada-lang.c (print_it_exception): Print temporary catchpoints
2076         as "Temporary catchpoint".
2077         (print_mention_exception): Likewise.
2078
2079 2011-07-01  Tom Tromey  <tromey@redhat.com>
2080
2081         * jv-lang.c (java_language_defn): Use java_printchar,
2082         java_printstr.
2083         (java_get_encoding): New function.
2084         (java_emit_char): Use generic_emit_char.
2085         (java_printchar): New function.
2086         (java_printstr): Likewise.
2087
2088 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2089
2090         * ada-typeprint.c (print_record_type): If unable to decode
2091         the name of the parent type, use the encoded name.
2092
2093 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
2094
2095         * ada-typeprint.c (ada_print_type): Fix both PAD type and
2096         pointer to constrained packed array type output.
2097         * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2098         packed array output.
2099
2100 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
2101
2102         * ada-typeprint.c (print_array_type): removed if condition on show
2103         being negative for bounds printing.
2104
2105 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2106
2107         * ada-lang.c (ada_identical_enum_types_p): New function.
2108         (symbols_are_identical_enums): New function.
2109         (remove_extra_symbols): Do nothing if NSYMS < 2.
2110         Use symbols_are_identical_enums.
2111
2112 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2113
2114         * ada-valprint.c (ada_value_print): Handle typedefs.
2115
2116 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2117
2118         * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2119
2120 2011-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2121
2122         * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2123         (decode_constrained_packed_array): Likewise.
2124         (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2125
2126 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2127
2128         * ada-exp.y (convert_char_literal): Handle typedef types.
2129
2130 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2131
2132         * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2133
2134 2011-06-30  Tom Tromey  <tromey@redhat.com>
2135
2136         * varobj.c (varobj_create): Call do_cleanups on early exit path.
2137         * valops.c (find_overload_match): Call do_cleanups on early exit
2138         path.
2139         * solib.c (solib_find): Call do_cleanups on early exit path.
2140
2141 2011-06-30  Tom Tromey  <tromey@redhat.com>
2142
2143         * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2144         * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2145         return paths.  Defer final do_cleanups until last return.
2146         * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2147         early return.
2148
2149 2011-06-30  Tom Tromey  <tromey@redhat.com>
2150
2151         * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2152
2153 2011-06-30  Andrew Burgess  <aburgess@broadcom.com>
2154
2155         * MAINTAINERS (Write After Approval): Add myself to the list.
2156
2157 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2158
2159         Disable epilogue unwinders on recent GCCs.
2160         * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2161         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2162         * dwarf2read.c (process_full_comp_unit): Initialize
2163         EPILOGUE_UNWIND_VALID.
2164         * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2165         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2166         * symtab.h (struct symtab): New field epilogue_unwind_valid.
2167
2168 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2169
2170         Code cleanup - reformatting.
2171         * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2172         (producer_is_gcc_ge_4): ... here, change the return value.
2173         (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2174         interpretation.
2175
2176 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2177
2178         Fix non-only rename list for Fortran modules import.
2179         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2180         cp_add_using_directive caller.
2181         (cp_add_using_directive): New parameter excludes, describe it.  New
2182         variables ix and param.  Compare if also excludes match.  Allocate NEW
2183         with variable size, initialize EXCLUDES there.
2184         (cp_lookup_symbol_imports): New variable excludep, test
2185         current->EXCLUDES with it.
2186         * cp-support.h: Include vec.h.
2187         (struct using_direct): New field excludes, describe it.
2188         (DEF_VEC_P (const_char_ptr)): New.
2189         (cp_add_using_directive): New parameter excludes.
2190         * defs.h (const_char_ptr): New typedef.
2191         * dwarf2read.c (read_import_statement): New variables child_die,
2192         excludes and cleanups, read in excludes.
2193         (read_namespace): Adjust the cp_add_using_directive caller.
2194
2195 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2196
2197         Code cleanup.
2198         * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2199         negative comparisons.
2200
2201 2011-06-29  André Pönitz  <andre.poenitz@nokia.com>
2202
2203         * mi/mi-main.c (mi_cmd_list_features): Emit
2204         breakpoint-notifications.
2205
2206 2011-06-29  Tom Tromey  <tromey@redhat.com>
2207
2208         PR fortran/10036:
2209         * valprint.h (generic_emit_char, generic_printstr): Declare.
2210         * valprint.c (wchar_printable, append_string_as_wide)
2211         (print_wchar): Move from c-lang.c.
2212         (generic_emit_char): New function; mostly taken from c_emit_char.
2213         (generic_printstr): New function; mostly taken from c_printstr.
2214         * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2215         represented as arrays.
2216         <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2217         type.
2218         * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2219         identically to TYPE_CODE_INT.
2220         * f-lang.c (f_get_encoding): New function.
2221         (f_emit_char): Use generic_emit_char.
2222         (f_printchar): Replace comment.
2223         (f_printstr): Use generic_printstr.
2224         * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2225         "character" types specially.
2226         <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2227         for Fortran.
2228         * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2229         Move to valprint.c
2230         (c_emit_char): Call generic_emit_char.
2231         (c_printstr): Call generic_printstr.
2232
2233 2011-06-29  Gary Benson  <gbenson@redhat.com>
2234
2235         * breakpoint.c (bpstat_what): Removed duplicated case.
2236
2237 2011-06-28  Tom Tromey  <tromey@redhat.com>
2238
2239         * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2240
2241 2011-06-27  Tom Tromey  <tromey@redhat.com>
2242
2243         * valops.c (find_overload_match): Call do_cleanups before early
2244         return.
2245         * top.c (execute_command): Call do_cleanups before early return.
2246         (command_loop): Likewise.
2247         * stack.c (backtrace_command): Make a null cleanup early.  Don't
2248         conditionally call do_cleanups.
2249         * python/py-value.c (TRY_CATCH): Move cleanup handling into
2250         TRY_CATCH.
2251         * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2252         so cleanups are always run.
2253         * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2254         * findcmd.c (parse_find_args): Call do_cleanups on early return
2255         path.
2256         * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2257         Don't conditionally call do_cleanups.
2258         * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2259         later.
2260
2261 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2262
2263         * MAINTAINERS (Write After Approval): Use default email address.
2264
2265 2011-06-27  Joel Brobecker  <brobecker@adacore.com>
2266
2267         * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2268
2269 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2270
2271         * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2272         saved_regs_mask and copied_regs_mask fields.
2273         (sparc_record_save_insn): New prototype.
2274         * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2275         (sparc_record_save_insn): New function.
2276         (sparc_analyze_prologue): Add head comment.  Recognize store insns
2277         of call-saved registers.  Use OFFSET consistently.  Recognize flat
2278         frames and cache their settings.
2279         (sparc32_skip_prologue): Handle flat frames.
2280         (sparc_frame_cache): Add frame_offset to the base address.
2281         (sparc32_frame_cache): Adjust to new frame description.
2282         (sparc32_frame_prev_register): Likewise.
2283         * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2284         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2285         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2286         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2287         frame by calling sparc_record_save_insn.
2288         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2289         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2290         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2291
2292 2011-06-27  Tristan Gingold  <gingold@adacore.com>
2293
2294         * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2295         field by map_addr and map_len.
2296         (dwarf2_read_section): Adjust for the new bfd_mmap api.
2297         (munmap_section_buffer): Likewise.
2298
2299 2011-06-24  Tom Tromey  <tromey@redhat.com>
2300
2301         * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2302         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2303         * python/python.c (gdbpy_parameter): Make 'arg' const.
2304         (execute_gdb_command): Likewise.
2305         (gdbpy_decode_line): Likewise.  Copy it.
2306         (gdbpy_parse_and_eval): Make 'expr_string' const.  Copy it.
2307         (gdbpy_write): Make 'arg' const.
2308         * python/py-type.c (typy_lookup_typename): Make 'type_name'
2309         const.
2310         (gdbpy_lookup_type): Likewise.
2311         * python/py-prettyprint.c (print_children): Make 'name' const.
2312         * python/py-param.c (parmpy_init): Make 'name' const.  Copy it.
2313         * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2314         Py_ssize_t.
2315         * python/py-function.c (fnpy_init): Make 'name' const.
2316         * python/py-cmd.c (cmdpy_init): Make 'name' const.  Copy it.
2317         (gdbpy_string_to_argv): Make 'input' const.
2318         * python/py-breakpoint.c (bppy_init): Make 'spec' const.  Copy
2319         it.
2320         * gdbtypes.h (lookup_typename): Update.
2321         * gdbtypes.c (lookup_typename): Make 'name' const.
2322         (lookup_struct): Likewise.
2323         (lookup_union): Likewise.
2324         (lookup_enum): Likewise.
2325
2326 2011-06-24  Tom Tromey  <tromey@redhat.com>
2327
2328         * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2329         gdb_thread_db.h.  Move all common/ entries to be together.
2330         (TAGS): Don't depend on DEPFILES.
2331
2332 2011-06-23  Yao Qi  <yao@codesourcery.com>
2333
2334         * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2335         * remote.c (remote_start_remote): ... here.
2336         * monitor.c (monitor_open): ... here.
2337
2338 2011-06-23  Andrew Burgess  <aburgess@broadcom.com>
2339
2340         * gdbtypes.c (append_composite_type_field_aligned): Fix
2341         calculation of bit position based on alignment.
2342
2343 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2344
2345         * breakpoint.c (bpstat_stop_status): Call the check_status
2346         breakpoint_ops method.
2347         (print_one_breakpoint_location): Also print the condition for Ada
2348         exception catchpoints.
2349         (allocate_bp_location): New, factored out from
2350         allocate_bp_location.
2351         (allocate_bp_location): Adjust.  Call the owner breakpoint's
2352         allocate_location method, if there is one.
2353         (free_bp_location): Call the locations's dtor method, if there is
2354         one.
2355         (init_raw_breakpoint_without_location): New breakpoint_ops
2356         parameter.  Use it.
2357         (set_raw_breakpoint_without_location): Adjust.
2358         (init_raw_breakpoint): New breakpoint_ops parameter.  Pass it down.
2359         (set_raw_breakpoint): Adjust.
2360         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2361         (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2362         re_set and check_status methods.
2363         (init_catchpoint): Don't memset, initialize thread, addr_string
2364         and enable_state.  Pass the ops down to init_raw_breakpoint.
2365         (install_catchpoint): Rename to ...
2366         (install_breakpoint): ... this, and make extern.
2367         (create_fork_vfork_event_catchpoint): Adjust.
2368         (catch_exec_breakpoint_ops): Install NULL allocate_location,
2369         re_set and check_status methods.
2370         (create_syscall_event_catchpoint): Adjust.
2371         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2372         (masked_watchpoint_breakpoint_ops): Install NULL
2373         allocate_location, re_set and check_status methods.
2374         (catch_exec_command_1): Adjust.
2375         (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2376         re_set and check_status methods.
2377         (create_ada_exception_breakpoint): Rename to ...
2378         (init_ada_exception_breakpoint): ... this.  Add a struct
2379         breakpoint parameter, and delete the exp_string, cond_string and
2380         cond parameters.  Use init_raw_breakpoint, and don't install or
2381         mention the breakpoint yet.  Don't clear breakpoint fields that
2382         init_raw_breakpoint already clears.
2383         (re_set_breakpoint): Delete, split into ...
2384         (breakpoint_re_set_default, prepare_re_set_context): ... these new
2385         functions.
2386         (breakpoint_re_set_one): Call the breakpoint's
2387         breakpoint_ops->re_set implementation, if there's one.  Adjust.
2388         * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2389         (struct bp_location_ops): New type.
2390         (struct bp_location): New field `ops'.
2391         (struct breakpoint_ops): New `allocate_location', `re_set' and
2392         `check_status' fields.  Make `breakpoint_hit''s description match
2393         reality.
2394         (init_bp_location): Declare.
2395         (breakpoint_re_set_default): Declare.
2396         (create_ada_exception_breakpoint): Rename to ...
2397         (init_ada_exception_breakpoint): ... this.  Add a struct
2398         breakpoint parameter, and delete the exp_string, cond_string and
2399         cond parameters.
2400         (install_breakpoint): Declare.
2401         * ada-lang.c: Include exceptions.h.
2402         <Ada exceptions description>: Update.
2403         (struct ada_catchpoint_location): New type.
2404         (ada_catchpoint_location_dtor): New function.
2405         (ada_catchpoint_location_ops): New global.
2406         (ada_catchpoint): New type.
2407         (create_excep_cond_exprs): New function.
2408         (dtor_exception, allocate_location_exception, re_set_exception)
2409         (should_stop_exception, check_status_exception): New functions.
2410         (print_one_exception, print_mention_exception)
2411         (print_recreate_exception): Adjust.
2412         (dtor_catch_exception, allocate_location_catch_exception)
2413         (re_set_catch_exception, check_status_catch_exception): New
2414         functions.
2415         (catch_exception_breakpoint_ops): Install them.
2416         (dtor_catch_exception_unhandled)
2417         (allocate_location_catch_exception_unhandled)
2418         (re_set_catch_exception_unhandled)
2419         (check_status_catch_exception_unhandled): New functions.
2420         (catch_exception_unhandled_breakpoint_ops): Install them.
2421         (dtor_catch_assert, allocate_location_catch_assert)
2422         (re_set_catch_assert, check_status_catch_assert): New functions.
2423         (catch_assert_breakpoint_ops): Install them.
2424         (ada_exception_catchpoint_p): Delete.
2425         (catch_ada_exception_command_split)
2426         (ada_exception_catchpoint_cond_string): Rename exp_string
2427         parameter to excep_string.  Adjust.
2428         (ada_parse_catchpoint_condition): Delete.
2429         (ada_exception_sal): Rename the exp_string parameter to
2430         excep_string.  Delete the cond_string and cond parameters.
2431         Adjust.
2432         (ada_decode_exception_location): Rename the exp_string parameter
2433         to excep_string.  Delete the cond_string and cond parameters.
2434         Adjust.
2435         (create_ada_exception_catchpoint): New function.
2436         (catch_ada_exception_command, ada_decode_assert_location)
2437         (catch_assert_command): Adjust.
2438         * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2439
2440 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2441
2442         * ada-lang.c: Include arch-utils.h.
2443         (ada_decode_exception_location): Make static.
2444         (catch_ada_exception_command): Moved here from breakpoint.c.
2445         (ada_decode_assert_location): Make static.
2446         (catch_assert_command): Moved here from breakpoint.c.
2447         (_initialize_ada_lang): Install the exception and assert
2448         catchpoint commands here.
2449         * ada-lang.h (ada_decode_exception_location)
2450         (ada_decode_assert_location): Delete declarations.
2451         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2452         breakpoint.h.
2453         (create_ada_exception_breakpoint): Make extern.
2454         (catch_ada_exception_command, catch_assert_command): Moved to
2455         ada-lang.c.
2456         (add_catch_command): Make extern.
2457         (_initilize_breakpoint): Don't install the exception and assert
2458         catchpoint commands here.
2459         * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2460         breakpoint.c
2461         (add_catch_command, create_ada_exception_breakpoint): Declare.
2462
2463 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2464
2465         * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2466         the breakpoint to the breakpoint chain here.
2467         (set_raw_breakpoint_without_location): Add the breakpoint to the
2468         breakpoint chain here.
2469         (init_raw_breakpoint): Adjust comments.
2470         (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2471         here.
2472         (init_catchpoint): Don't set the catchpoint's breakpoint number
2473         here.
2474         (install_catchpoint): New function.
2475         (create_fork_vfork_event_catchpoint)
2476         (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2477         use install_catchpoint.
2478
2479 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2480
2481         * breakpoint.c (create_catchpoint_without_mention)
2482         (create_catchpoint): Delete.
2483
2484 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2485
2486         * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2487         * breakpoint.c (init_raw_breakpoint_without_location): Remove
2488         reference to exec_pathname.
2489         (struct exec_catchpoint): New type.
2490         (dtor_catch_exec): New function.
2491         (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2492         (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2493         (catch_exec_command_1): Adjust to use init_catchpoint.
2494         (delete_breakpoint): Remove reference to exec_pathname.
2495
2496 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2497
2498         * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2499         (struct breakpoint): Delete field `syscalls_to_be_caught'.
2500         * breakpoint.c (init_raw_breakpoint_without_location): Remove
2501         reference to syscalls_to_be_caught.
2502         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2503         NULL `dtor'.
2504         (struct syscall_catchpoint): New type.
2505         (dtor_catch_syscall): New function.
2506         (insert_catch_syscall, remove_catch_syscall)
2507         (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2508         (print_recreate_catch_syscall): Adjust.
2509         (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2510         (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2511         (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2512         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2513         (masked_watchpoint_breakpoint_ops)
2514         (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2515         (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2516         there is one.  Remove references to syscalls_to_be_caught.
2517         (catching_syscall_number): Adjust.
2518         * ada-lang.c (catch_exception_breakpoint_ops)
2519         (catch_exception_unhandled_breakpoint_ops)
2520         (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2521
2522 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2523
2524         * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2525         field.
2526         * breakpoint.c (init_raw_breakpoint_without_location): Remove
2527         reference to forked_inferior_pid.
2528         (struct fork_catchpoint): New type.
2529         (breakpoint_hit_catch_fork, print_it_catch_fork)
2530         (print_one_catch_fork, breakpoint_hit_catch_vfork)
2531         (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2532         (create_fork_vfork_event_catchpoint): Adjust to use
2533         init_catchpoint.
2534
2535 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2536
2537         * breakpoint.c (add_to_breakpoint_chain)
2538         (init_raw_breakpoint_without_location): New functions, factored
2539         out from ...
2540         (set_raw_breakpoint_without_location): ... this one.
2541         (init_raw_breakpoint): New function, factored out from
2542         set_raw_breakpoint and adjusted to use
2543         init_raw_breakpoint_without_location.
2544         (set_raw_breakpoint): Adjust.
2545         (init_catchpoint): New function, factored out from
2546         create_catchpoint_without_mention and adjusted to use
2547         init_raw_breakpoint.
2548         (create_catchpoint_without_mention): Adjust.
2549
2550 2011-06-22  Tom Tromey  <tromey@redhat.com>
2551
2552         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2553         argument of 0 specially.
2554
2555 2011-06-22  Yao Qi  <yao@codesourcery.com>
2556
2557         * infrun.c (handle_inferior_event): Remove write-only local variable
2558         `sw_single_step_trap_p'.
2559
2560 2011-06-20  Tom Tromey  <tromey@redhat.com>
2561
2562         * symtab.c (lookup_language_this): End loop if block is NULL.
2563
2564 2011-06-17  Tom Tromey  <tromey@redhat.com>
2565
2566         * valops.c (value_of_this): Use lookup_language_this.
2567         * symtab.h (lookup_language_this): Declare.
2568         * symtab.c (lookup_language_this): New function.
2569         (lookup_symbol_aux): Use lookup_language_this.
2570         * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2571
2572 2011-06-17  Tom Tromey  <tromey@redhat.com>
2573
2574         * value.h (value_of_this): Update.
2575         (value_of_local): Remove.
2576         * valops.c (value_of_this): Rename from value_of_local.  Change
2577         parameters.
2578         * p-exp.y (exp): Update.
2579         (variable): Likewise.
2580         * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2581
2582 2011-06-17  Tom Tromey  <tromey@redhat.com>
2583
2584         * valops.c (value_of_local): Complain if NAME is NULL.
2585         * std-operator.def (OP_OBJC_SELF): Remove.
2586         * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2587         * objc-exp.y (name_not_typename): Use OP_THIS.
2588         * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2589         name for "this".
2590         <OP_OBJC_SELF>: Remove.
2591         * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2592
2593 2011-06-16  Tristan Gingold  <gingold@adacore.com>
2594
2595         * python/py-events.h (gdb_py_events): Make it extern.
2596         * python/py-evtregistry.c (gdb_py_events): Declare.
2597
2598 2011-06-16  Hui Zhu  <teawater@gmail.com>
2599
2600         * remote.c (remote_trace_set_readonly_regions): Add check for
2601         remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2602         output warning.
2603
2604 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
2605
2606         * arm-linux-tdep.c: Include "auxv.h".
2607         (AT_HWCAP): Define.
2608         (ARM_LINUX_SIZEOF_VFP): Define.
2609         (arm_linux_supply_vfp): New function.
2610         (arm_linux_collect_vfp): Likewise.
2611         (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2612         (arm_linux_fpa_regset_sections): New variable.
2613         (arm_linux_vfp_regset_sections): Likewise.
2614         (arm_linux_core_read_description): New function.
2615         (arm_linux_init_abi): Install arm_linux_core_read_description and
2616         arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2617         appropriate for the architecture.
2618         * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2619         (tdesc_arm_with_m): Declare.
2620         (tdesc_arm_with_iwmmxt): Likewise.
2621         (tdesc_arm_with_vfpv2): Likewise.
2622         (tdesc_arm_with_vfpv3): Likewise.
2623         (tdesc_arm_with_neon): Likewise.
2624         * arm-linux-nat.c: Move features/*.c includes ...
2625         * arm-tdep.c: ... here.
2626         * arm-linux-nat.c (arm_linux_read_description): Move initializing
2627         target description data structures ...
2628         * arm-tdep.c (_initialize_arm_tdep): ... here.
2629         * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2630         HWCAP_VFPv3D16): Move definitions ...
2631         * arm-linux-tdep.h: ... here.
2632
2633 2011-06-15  Hui Zhu  <teawater@gmail.com>
2634
2635         * remote.c (remote_trace_set_readonly_regions): Add a check for
2636         target_buf_size.
2637
2638 2011-06-14  Tom Tromey  <tromey@redhat.com>
2639
2640         * coffread.c (coffread_objfile): Rename from current_objfile.
2641         * dbxread.c (dbxread_objfile): Rename from current_objfile.
2642         * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2643
2644 2011-06-14  Tom Tromey  <tromey@redhat.com>
2645
2646         * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2647         (class_symtab): Remove.
2648         (jv_dynamics_progspace_key): New global.
2649         (jv_per_objfile_free): Reset program space data.  Update assert.
2650         Don't clear globals.
2651         (get_dynamics_objfile): Use and set program space data.
2652         (get_java_class_symtab): Use get_dynamics_objfile.
2653         (add_class_symbol): Likewise.
2654         (java_link_class_type): Likewise.
2655         (java_object_type, jv_clear_object_type, set_java_object_type):
2656         Remove.
2657         (get_java_object_type): Update.  Don't cache result.
2658         (is_object_type): Don't call set_java_object_type.
2659         (_initialize_java_language): Don't set jv_type_objfile_data_key;
2660         initialize jv_dynamics_progspace_key.
2661
2662 2011-06-14  Tom Tromey  <tromey@redhat.com>
2663
2664         * symtab.h (current_objfile): Don't declare.
2665         * objfiles.h (current_objfile): Don't declare.
2666         * objfiles.c (current_objfile): Remove.
2667         * mdebugread.c (current_objfile): New file-scope global.
2668         * dbxread.c (current_objfile): New file-scope global.
2669         * coffread.c (current_objfile): New file-scope global.
2670
2671 2011-06-13  Pedro Alves  <pedro@codesourcery.com>
2672
2673         * top.h (line): Rename to ...
2674         (saved_command_line): ... this.
2675         (linesize): Rename to ...
2676         (saved_command_line_size): ... this.
2677         * top.c (line): Rename to ...
2678         (saved_command_line): ... this.
2679         (linesize): Rename to ...
2680         (saved_command_line_size): ... this.
2681         (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2682         * event-top.c (command_line_handler): Adjust.
2683         * main.c (captured_main): Adjust.
2684
2685 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
2686
2687         * i386-tdep.c (i386_epilogue_frame_cache): Simplify code.  Call
2688         get_frame_func instead of get_frame_pc to determine the code
2689         address used to construct the frame ID.
2690         (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2691         (i386_epilogue_frame_this_id): Likewise.
2692         (i386_epilogue_frame_prev_register): New function.
2693         (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2694         (i386_stack_tramp_frame_sniffer): Fix coding style.
2695         (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2696         (i386_gdbarch_init): Fix comments.
2697
2698 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
2699
2700         * i386-tdep.c (i386_match_insn_block): Use length of the proper
2701         instruction when walking back through the instruction stream.
2702
2703 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2704
2705         * symtab.c (output_partial_symbol_filename): Exchange the filename and
2706         fullname parameters order.
2707
2708 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2709
2710         Code cleanup.
2711         * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2712         for fun.
2713         * psymtab.c (map_symbol_filenames_psymtab)
2714         (map_partial_symbol_filenames): Likewise.
2715         * psymtab.h: Include symfile.h.
2716         (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2717         * symfile.h (symbol_filename_ftype): New.
2718         (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2719         map_symbol_filenames, clarify more the naming in comment.
2720
2721 2011-06-07  Doug Evans  <dje@google.com>
2722
2723         * cc-with-index.sh: Fix typos in comment.
2724         Look for ../../gdb, for fullname.exp.
2725
2726 2011-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2727             Pedro Alves  <pedro@codesourcery.com>
2728
2729         * cli/cli-cmds.c (shell_escape): Use waitpid.
2730         * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2731
2732 2011-06-07  Tristan Gingold  <gingold@adacore.com>
2733
2734         * xcoffread.c (dwarf2_xcoff_names): New variable.
2735         (aix_process_linenos): Add a guard.
2736         (xcoff_symfile_finish): Free dwarf2.
2737         (xcoff_initial_scan): Add dwarf2 support.
2738
2739 2011-06-06  Pedro Alves  <pedro@codesourcery.com>
2740
2741         * infcall.c (run_inferior_call): Don't mask async.  Instead force
2742         a synchronous wait, if the target can async.
2743
2744         * target.h (struct target_ops): Delete to_async_mask.
2745         (target_async_mask): Delete.
2746         * target.c (update_current_target): Delete references to to_async_mask.
2747         * linux-nat.c (linux_nat_async_mask_value): Delete.
2748         (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2749         to linux_nat_async_mask_value.
2750         (linux_nat_async_mask): Delete.
2751         (linux_nat_async, linux_nat_close): Remove references to
2752         linux_nat_async_mask_value.
2753         * record.c (record_async_mask_value): Delete.
2754         (record_async): Remove references to record_async_mask_value.
2755         (record_async_mask): Delete.
2756         (record_can_async_p, record_is_async_p): Remove references to
2757         record_async_mask_value.
2758         (init_record_ops, init_record_core_ops): Remove references to
2759         record_async_mask.
2760         * remote.c (remote_async_mask_value): Delete.
2761         (init_remote_ops): Remove reference to remote_async_mask.
2762         (remote_can_async_p, remote_is_async_p): Remove references to
2763         remote_async_mask_value.
2764         (remote_async): Remove references to remote_async_mask_value.
2765         (remote_async_mask): Delete.
2766
2767         * infrun.c (fetch_inferior_event): Don't claim registers changed
2768         if the current thread is already not executing.
2769
2770 2011-06-03  Joel Brobecker  <brobecker@adacore.com>  (obvious fix)
2771
2772         From Stephen Kitt  <steve@sk2.org>
2773         * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2774         gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2775
2776 2011-06-03  Joel Brobecker  <brobecker@adacore.com>
2777
2778         * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2779         the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2780
2781 2011-06-03  Tom Tromey  <tromey@redhat.com>
2782
2783         * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2784         code fields.
2785         * python/py-exitedevent.c (create_exited_event_object): Change
2786         type of 'exit_code'.  Optionally add exit_code attribute.
2787         (emit_exited_event): Change type of 'exit_code'.
2788         * python/py-event.h (emit_exited_event): Update.
2789         * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2790         * infrun.c (handle_inferior_event): Set exit code fields on
2791         inferior.
2792         * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2793         fields.
2794         * inferior.c (exit_inferior_1): Initialize new fields.
2795
2796 2011-06-03  Tom Tromey  <tromey@redhat.com>
2797
2798         * dwarf2expr.c (get_signed_type): New function.
2799         (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2800
2801 2011-06-02  Keith Seitz  <keiths@redhat.com>
2802
2803         * objc-lang.c (find_methods): Increment objfile_csym earlier.
2804
2805 2011-06-02  Pedro Alves  <pedro@codesourcery.com>
2806
2807         * top.h (simplified_command_loop): Delete declaration.
2808
2809 2011-06-01  Mike Frysinger  <vapier@gentoo.org>
2810
2811         * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2812         gdb_sysroot to the "len" variable.  Append both to "arg_buf".
2813
2814 2011-06-01  Yao Qi  <yao@codesourcery.com>
2815
2816         * objfiles.h (obj_section_addr): Update reference to objfile from
2817         `abfd' to `obfd'.
2818         (obj_section_endaddr): Likewise.
2819
2820 2011-06-01  Daniel Jacobowitz  <drow@false.org>
2821
2822         * MAINTAINERS: Update my email address and affiliation.  Also
2823         update Ian Lance Taylor's affiliation.  Use UTF-8 for ludo@gnu.org.
2824
2825 2010-05-31  Keith Seitz  <keiths@redhat.com>
2826
2827         PR c++/12750
2828         * linespec.c (get_search_block): New function.
2829         (find_methods): Add FILE_SYMTATB parameter and use it and
2830         get_search_block to pass an appropriate block to
2831         lookup_symbol_in_namespace.
2832         (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2833         Check if *ARGPTR starts with a filename first.
2834         If it does, call locate_first_half again to locate the next
2835         "first half" of the linespec.
2836         Pass FILE_SYMTATB to decode_objc and decode_compound.
2837         Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2838         (locate_first_half): Stop on the first colon seen.
2839         (decode_compound): Add FILE_SYMTAB parameter.
2840         Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2841         (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2842         get_search_block with lookup_symbol.
2843         (find_method): Add FILE_SYMTAB parameter and pass it to
2844         find_methods.
2845         (decode_objc): Use get_search_block.
2846
2847 2010-05-31  Keith Seitz  <keiths@redhat.com>
2848
2849         PR symtab/12704
2850         * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2851         (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2852         and CP_ANONYMOUS_NAMESPACE_LEN.
2853         (cp_is_anonymous): Likewise.
2854         * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2855         (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2856         * dwarf2read.c (namespace_name): Likewise.
2857         (fixup_partial_die): Likewise.
2858         * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2859         seen in the input, keep it.
2860
2861 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
2862
2863         * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2864         * inf-loop.h (inferior_event_handler_wrapper): Delete.
2865         * inf-loop.c (inferior_event_handler_wrapper): Delete.
2866         (inferior_event_handler): Don't handle INF_QUIT_REQ.
2867         * remote.c (_initialize_remote): Register
2868         async_remote_interrupt_twice directly as
2869         sigint_remote_twice_token event.
2870
2871 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
2872
2873         * target.h (enum inferior_event_type): Delete INF_ERROR.
2874         * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2875
2876 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
2877
2878         * interps.c (interp_set): Don't cancel continuations.
2879
2880 2011-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2881
2882         * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2883
2884 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
2885
2886         * continuations.h (continuation_ftype): Add `err' parameter.
2887         Document parameters.
2888         (do_all_continuations, do_all_continuations_thread)
2889         (do_all_intermediate_continuations)
2890         (do_all_intermediate_continuations_thread)
2891         (do_all_inferior_continuations): Add `err' parameter.
2892         * continuations.c (do_my_continuations_1, do_my_continuations)
2893         (do_all_inferior_continuations, do_all_continuations_ptid)
2894         (do_all_continuations_thread_callback)
2895         (do_all_continuations_thread, do_all_continuations)
2896         (do_all_intermediate_continuations_thread_callback)
2897         (do_all_intermediate_continuations_thread)
2898         (do_all_intermediate_continuations): Add `err' parameter, and pass
2899         it down all the way to the continuations proper.
2900         * inf-loop.c (inferior_event_handler): If fetching an inferior
2901         event throws an error, don't pop the target, and still call the
2902         continuations, but with `err' set.  Adjust all other continuation
2903         calls.
2904         * breakpoint.c (until_break_command_continuation): Add `err'
2905         parameter.
2906         * infcmd.c (step_1_continuation): Add `err' parameter.  Don't
2907         issue another step if `err' is set.
2908         (struct until_next_continuation_args): New.
2909         (until_next_continuation): Add `err' parameter.  Adjust.
2910         (until_next_command): Adjust.
2911         (struct finish_command_continuation_args): Add `thread' field.
2912         (finish_command_continuation): Add `err' parameter.  Handle it.
2913         (finish_forward): Adjust.
2914         (attach_command_continuation): Add `err' parameter.  Handle it.
2915         * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2916         cancel the continuations.
2917         * interps.c (interp_set): Adjust to cancel the continuations.
2918         * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2919         continuations rather than discarding.
2920         (free_thread): Don't clear thread inferior resources here.
2921         (delete_thread_1): Do it here instead.  And do it before removing
2922         the thread from the threads list.  Tag the thread as exited before
2923         clearing thread inferior resources.
2924
2925 2011-05-30  Joel Brobecker  <brobecker@adacore.com>
2926
2927         * infcall.c (call_function_by_hand): Rephrase error message.
2928
2929 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
2930
2931         * defs.h (struct thread_info, struct inferior): Delete forward
2932         declarations.
2933         * breakpoint.h (struct thread_info): New forward declaration.
2934         * observer.sh (struct inferior): New forward declaration.
2935         * python/python-internal.h (struct inferior): New forward
2936         declaration.
2937
2938 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
2939
2940         * defs.h (struct continuation, continuation_ftype)
2941         (continuation_free_arg_ftype, add_continuation)
2942         (do_all_continuations, do_all_continuations_thread)
2943         (discard_all_continuations, discard_all_continuations_thread)
2944         (add_intermediate_continuation, do_all_intermediate_continuations)
2945         (do_all_intermediate_continuations_thread)
2946         (discard_all_intermediate_continuations)
2947         (discard_all_intermediate_continuations_thread)
2948         (add_inferior_continuation, do_all_inferior_continuations)
2949         (discard_all_inferior_continuations): Move to ...
2950         * continuations.h: ... this new file.
2951         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2952         infcmd.c, inferior.c, infrun.c, interps.c: Include
2953         continuations.h.
2954
2955 2011-05-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2956             Doug Evans  <dje@google.com>
2957
2958         Fix PR 10970, PR 12702.
2959         * linux-nat.c (linux_lwp_is_zombie): New function.
2960         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
2961         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
2962
2963 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
2964
2965         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2966         typedefs.
2967         (add_continuation, add_intermediate_continuation)
2968         (add_inferior_continuation): Use them.
2969         * continuations.c (struct continuation): Use them.
2970         (make_continuation_ftype): Delete.
2971         (make_continuation, add_inferior_continuation, add_continuation)
2972         (add_intermediate_continuation): Use continuation_ftype and
2973         continuation_free_arg_ftype.  Rename parameters to shorter names.
2974
2975 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
2976
2977         * continuations.c (make_continuation): Make it return void.
2978         (do_my_continuations): Rename to ...
2979         (do_my_continuations_1): ... this.  Remove old_chain parameter and
2980         adjust.
2981         (do_my_continuations): New.
2982         (discard_my_continuations): Rename to ...
2983         (discard_my_continuations_1): ... this.  Remove old_chain
2984         parameter and adjust.
2985         (discard_my_continuations): New.
2986         (add_inferior_continuation): Simplify.
2987         (do_all_inferior_continuations): Reimplement on top
2988         do_my_continuations.
2989         (discard_all_inferior_continuations): Simplify.
2990         (add_continuation): Simplify.
2991         (do_all_continuations_ptid): Simplify.
2992         (discard_all_continuations_thread_callback): Simplify.
2993         (add_intermediate_continuation): Simplify.
2994         (discard_all_intermediate_continuations_thread_callback):
2995         Simplify.
2996
2997 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
2998
2999         * utils.c (struct continuation, add_continuation)
3000         (add_inferior_continuation)
3001         (do_all_inferior_continuations, discard_all_inferior_continuations)
3002         (restore_thread_cleanup, do_all_continuations_ptid)
3003         (do_all_continuations_thread_callback)
3004         (do_all_continuations_thread, do_all_continuations)
3005         (discard_all_continuations_thread_callback)
3006         (discard_all_continuations_thread, discard_all_continuations)
3007         (add_intermediate_continuation)
3008         (do_all_intermediate_continuations_thread_callback)
3009         (do_all_intermediate_continuations_thread)
3010         (do_all_intermediate_continuations)
3011         (discard_all_intermediate_continuations_thread_callback)
3012         (discard_all_intermediate_continuations_thread)
3013         (discard_all_intermediate_continuations): Move to ...
3014         * continuations.c: ... this new file, and adjust to no longer
3015         implement continuations on top of cleanups.
3016         * Makefile.in (SFILES): Add continuations.c.
3017         (COMMON_OBS): Add continuations.o.
3018
3019 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3020
3021         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3022         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3023         Internal error on invalid values.
3024         * reverse.c: Don't handle EXEC_ERROR.
3025         * mi/mi-main.c: Don't handle EXEC_ERROR.
3026
3027 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3028
3029         * record.c: Include event-loop.h, inf-loop.h.
3030         (record_beneath_to_async): New global.
3031         (tmp_to_async): New global.
3032         (record_async_inferior_event_token): New global.
3033         (record_open_1): Don't error out if async is enabled.
3034         (record_open): Handle to_async.  Create an async event source in
3035         the event loop.
3036         (record_close): Delete the async event source.
3037         (record_resumed): New global.
3038         (record_execution_dir): New global.
3039         (record_resume, record_core_resume): Set them.  Register the
3040         target on the event loop.
3041         (record_wait): Rename to ...
3042         (record_wait_1): ... this.  Add more debug output.  Handle
3043         TARGET_WNOHANG, and the target beneath returning
3044         TARGET_WAITKIND_IGNORE.
3045         (record_wait): Reimplement on top of record_wait_1.
3046         (record_async_mask_value): New global.
3047         (record_async, record_async_mask, record_can_async_p)
3048         (record_is_async_p, record_execution_direction): New functions.
3049         (init_record_ops, init_record_core_ops): Install new methods.
3050         * infrun.c (fetch_inferior_event): Temporarily switch the global
3051         execution direction to the direction the target was going.
3052         (execution_direction): Change type to int.
3053         * target.c (default_execution_direction): New function.
3054         (update_current_target): Inherit and de_fault
3055         to_execution_direction.
3056         * target.h (struct target_ops) <to_execution_direction>: New
3057         field.
3058         (target_execution_direction): New macro.
3059         * inferior.h (execution_direction): Change type to int.
3060
3061 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3062
3063         * infcall.c (call_function_by_hand): Don't allow calling functions
3064         in reverse execution mode.
3065
3066 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3067
3068         * infcmd.c (finish_command): Allow async finish in reverse.
3069
3070 2011-05-26  Yao Qi  <yao@codesourcery.com>
3071
3072         * gdb_thread_db.h: Delete.  Move to ...
3073         * common/gdb_thread_db.h: ... here.
3074
3075 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3076
3077         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3078         function's entry point instead of a manually managed momentary
3079         breakpoint, and only ever issue one proceed call.
3080         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3081         doing a reverse-finish, switch to stepi mode, to do another step.
3082         (insert_step_resume_breakpoint_at_sal): Make public.
3083         (normal_stop): No need to save function value return registers if
3084         going reverse.
3085         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3086
3087 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3088
3089         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3090         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3091         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
3092         at the end.
3093         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3094         step-resume breakpoints.
3095         (print_it_typical): Handle bp_hp_step_resume.
3096         (bpstat_what): Ditto.
3097         (bptype_string): Ditto.
3098         (print_one_breakpoint_location): Ditto.
3099         (allocate_bp_location): Ditto.
3100         (mention): Ditto.
3101         (breakpoint_re_set_one): Ditto.
3102         * infrun.c (handle_inferior_event): Adjust.  Split
3103         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3104         BPSTAT_WHAT_HP_STEP_RESUME.
3105         (insert_step_resume_breakpoint_at_sal): Rename to ...
3106         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
3107         parameter.  Handle it.
3108         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3109         insert_step_resume_breakpoint_at_sal_1.
3110         (insert_step_resume_breakpoint_at_frame): Rename to ...
3111         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
3112         set a high-priority step-resume breakpoint.
3113         (insert_step_resume_breakpoint_at_frame): Adjust comment.
3114         (insert_step_resume_breakpoint_at_caller): Ditto.
3115
3116 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3117
3118         * breakpoint.c (iterate_over_related_breakpoints): New.
3119         (do_map_delete_breakpoint): New.
3120         (delete_command): Pass do_map_delete_breakpoint to
3121         map_breakpoint_numbers.
3122         (do_disable_breakpoint): New.
3123         (do_map_disable_breakpoint): Iterate over the breakpoint's related
3124         breakpoints.
3125         (do_enable_breakpoint): Rename to ...
3126         (enable_breakpoint_disp): ... this.
3127         (enable_breakpoint): Adjust.
3128         (do_enable_breakpoint): New.
3129         (enable_once_breakpoint): Delete.
3130         (do_map_enable_breakpoint): New.
3131         (do_map_enable_once_breakpoint): New.
3132         (enable_once_command, enable_delete_command)
3133         (delete_trace_command): Iterate over the breakpoint's related
3134         breakpoints.
3135
3136 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3137
3138         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3139         for ALPHA_ZERO_REGNUM.
3140         (alpha_supply_int_regs): Explicitly supply zero as the value for
3141         ALPHA_ZERO_REGNUM in the register cache.
3142         * alpha-nat.c (fetch_osf_core_registers): Ditto.
3143
3144 2011-05-26  Yao Qi  <yao@codesourcery.com>
3145
3146         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3147
3148 2011-05-26  Tristan Gingold  <gingold@adacore.com>
3149
3150         * symfile.h (struct dwarf2_section_names): New type.
3151         (struct dwarf2_debug_sections): New type.
3152         (dwarf2_has_info): Add parameter.
3153         * dwarf2read.c (dwarf2_elf_names): New variable.
3154         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3155         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3156         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3157         (dwarf2_has_info): Add names parameter.  Pass names
3158         to dwarf2_locate_sections.
3159         (section_is_p): Rewrite using the names parameter.
3160         (dwarf2_locate_sections): Use section names from the names parameter.
3161         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3162         * elfread.c (read_psyms): Ditto.
3163         * machoread.c (macho_symfile_read): Ditto.
3164
3165 2011-05-25  Andreas Schwab  <schwab@redhat.com>
3166
3167         PR gdb/8677
3168         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3169
3170 2011-05-24  Keith Seitz  <keiths@redhat.com>
3171
3172         PR breakpoint/12803
3173         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3174         (decode_compound): Unconditionally call keep_name_info.
3175
3176 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
3177
3178         * breakpoint.c (watchpoint_check): If the watchpoint went out of
3179         scope, clear its command list.
3180         (map_breakpoint_numbers): Don't walk the related breakpoints list
3181         of each breakpoint.
3182
3183 2011-05-24  Tom Tromey  <tromey@redhat.com>
3184
3185         * MAINTAINERS: Move Jim Blandy to past maintainers.
3186
3187 2011-05-24  Tristan Gingold  <gingold@adacore.com>
3188
3189         * symfile.h (enum dwarf2_section_enum): New type.
3190         (dwarf2_get_section_info): New prototype.
3191         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3192         section_name by sect.  Use a switch to select the info.
3193         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3194         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3195
3196 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
3197
3198         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3199         shared library event breakpoint if there's no execution.
3200
3201 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3202
3203         * breakpont.c (remove_hw_watchpoints): Remove unused function.
3204         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3205
3206 2011-05-23  Tom Tromey  <tromey@redhat.com>
3207
3208         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3209         NULL.
3210
3211 2011-05-23  Doug Evans  <dje@google.com>
3212
3213         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3214         entry for RuntimeError to doc string.
3215
3216 2011-05-23  Jerome Guitton  <guitton@adacore.com>
3217
3218         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3219         sequence for probing loops.
3220
3221 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
3222
3223         * infrun.c (user_visible_resume_ptid): Fix typos in describing
3224         comment.
3225
3226 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
3227
3228         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3229         zero as the value for %g0 in the register cache.
3230         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3231         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3232
3233 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3234
3235         * infrun.c (proceed): Set previous_inferior_ptid here.
3236         (init_wait_for_inferior): Initialize previous_inferior_ptid from
3237         inferior_ptid, not null_ptid.
3238         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3239         (fetch_inferior_event): Nor here.
3240
3241 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3242
3243         * inf-loop.c (inferior_event_handler): Only output a message if
3244         verbose.
3245
3246 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
3247
3248         * MAINTAINERS: Update my e-mail address.
3249
3250 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3251
3252         * infrun.c (proceed): Switch the inferior event loop to
3253         INF_EXEC_COMPLETE if the target refused to resume from a
3254         vfork/fork.
3255
3256 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3257
3258         * infcmd.c: Include "inf-loop.h".
3259         (step_once): When stepping into an inline subroutine, pretend the
3260         target has run.  If the target can async, switch the inferior
3261         event loop to INF_EXEC_COMPLETE.
3262         * inferior.h (user_visible_resume_ptid): Declare.
3263         * infrun.c (user_visible_resume_ptid): New function, factored out
3264         from `resume'.
3265         (resume): Use it.
3266         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3267         that the current thread is running.  Merge async and sync
3268         branches.
3269
3270 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3271
3272         * infcmd.c (step_1): Simplify synchronous case.
3273
3274 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3275
3276         * tracepoint.c: Include exceptions.h.
3277         (TFILE_PID): Move higher in file.
3278         (tfile_open): Delay pushing the tfile target until we're assured
3279         the tfile header is present in the file.  Wrap reading the initial
3280         newline-terminated lines in TRY_CATCH.  Pop the target if the
3281         initial setup failed.  Add the tfile's thread immediately
3282         aftwards, before any non-essential setup.  Don't skip
3283         post_create_inferior if there are no traceframes present in the
3284         file.
3285         (tfile_close): Remove redundant check for null before xfree call.
3286         (tfile_thread_alive): New function.
3287         (init_tfile_ops): Register it as to_thread_alive callback.
3288
3289 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3290
3291         * tracepoint.c (tfile_open): Delete #if 0'd code.
3292
3293 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3294
3295         Fix -readnow for -gdwarf-4 unused type units.
3296         * dwarf2read.c (struct signatured_type): Remove the field offset.
3297         (create_signatured_type_table_from_index): Remove its initialization.
3298         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
3299         instead.  Add a complaint call.
3300         (process_psymtab_comp_unit): Change assignment to gdb_assert.
3301         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3302         (lookup_signatured_type_at_offset, read_signatured_type)
3303         (write_one_signatured_type): Update the field for per_cu.
3304
3305 2011-05-19  Tom Tromey  <tromey@redhat.com>
3306
3307         * python/py-inferior.c (python_inferior_exit): Use
3308         target_gdbarch.
3309         (python_on_resume): Likewise.
3310
3311 2011-05-19  Matt Rice  <ratmice@gmail.com>
3312
3313         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3314
3315 2011-05-19  Hui Zhu  <teawater@gmail.com>
3316
3317         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3318
3319 2011-05-19  Hui Zhu  <teawater@gmail.com>
3320
3321         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3322
3323 2011-05-18  Tom Tromey  <tromey@redhat.com>
3324
3325         * dwarf2read.c (dwarf2_add_field): Constify.
3326         * value.c (value_static_field): Constify.
3327         * gdbtypes.h (struct main_type) <field.field_location.physname>:
3328         Now const.
3329         * ax-gdb.c (gen_static_field): Constify
3330
3331 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3332
3333         * linux-nat.c (kill_callback): Use SIGKILL first.
3334
3335 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
3336
3337         * ada-lang.c (print_it_exception): Avoid use of sprintf.
3338
3339 2011-05-18  Tom Tromey  <tromey@redhat.com>
3340
3341         * value.c (value_fn_field): Constify.
3342         * symtab.c (gdb_mangle_name): Constify.
3343         * stabsread.c (update_method_name_from_physname): Make 'physname'
3344         argument const.
3345         * p-typeprint.c (pascal_type_print_method_args): Make arguments
3346         const.  Use explicit fputc_filtered loop.
3347         (pascal_type_print_base): Constify.
3348         * p-lang.h (pascal_type_print_method_args): Update.
3349         * linespec.c (add_matching_methods): Constify.
3350         (add_constructors): Likewise.
3351         * jv-typeprint.c (java_type_print_base): Constify.
3352         * gdbtypes.h (struct cplus_struct_type)
3353         <fn_fieldlist.fn_field.physname>: Now const.
3354         * dwarf2read.c (compute_delayed_physnames): Constify.
3355         (dwarf2_add_member_fn): Likewise.
3356         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
3357
3358 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
3359
3360         * infrun.c (resume): Mention which is the current thread, and its
3361         current PC in debug output.
3362         (prepare_to_proceed): Mention the thread switching in debug
3363         output.
3364
3365 2011-05-18  Tom Tromey  <tromey@redhat.com>
3366
3367         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3368         path check.  Use xmalloc and cleanups.
3369         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3370
3371 2011-05-17  Tom Tromey  <tromey@redhat.com>
3372
3373         * cp-valprint.c (cp_print_value_fields): Catch errors from
3374         value_static_field.
3375
3376 2011-05-17  Tom Tromey  <tromey@redhat.com>
3377
3378         * dwarf2read.c (dwarf2_get_die_type): Call
3379         get_die_type_at_offset.
3380         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3381         get_base_type function.
3382
3383 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
3384
3385         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3386         trap_expected.
3387
3388 2011-05-16  Doug Evans  <dje@google.com>
3389
3390         * python/py-auto-load.c (source_section_scripts): Mention objfile
3391         name in warning.
3392
3393 2011-05-15  Doug Evans  <dje@google.com>
3394
3395         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3396         (try_thread_db_load_from_pdir): Call it.  If unable to find
3397         libthread_db in directory of libpthread, see if we're looking at
3398         the separate-debug-info copy.
3399
3400         * python/py-autoload.c (print_script): Print "Missing" instead of
3401         "No" for missing scripts.
3402         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3403
3404 2011-05-13  Doug Evans  <dje@google.com>
3405
3406         * ui-file.c (stdio_file_write_async_safe): Add comment.
3407
3408 2011-05-14  Hui Zhu  <teawater@gmail.com>
3409
3410         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3411
3412 2011-05-13  Doug Evans  <dje@google.com>
3413
3414         Support $pdir and $sdir in libthread-db-search-path.
3415         * NEWS: Mention $sdir,$pdir.
3416         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3417         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3418         (try_thread_db_load_from_sdir): New function.
3419         (try_thread_db_load_from_dir): New function.
3420         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
3421         system directories if search of libthread-db-search-path fails,
3422         that is now done via $sdir.
3423         (has_libpthread): New function.
3424         (thread_db_load): Remove search for libthread_db in directory of
3425         libpthread, that is now done via $pdir.
3426
3427         * NEWS: Mention "info auto-load-scripts".
3428         * python/py-auto-load.c (struct auto_load_pspace_info): New member
3429         script_not_found_warning_printed.
3430         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3431         all callers updated.  Initialize script_not_found_warning_printed.
3432         (get_auto_load_pspace_data_for_loading): New function.
3433         (maybe_add_script): New function.
3434         (source_section_scripts): Simplify.  Only print one warning regardless
3435         of the number of auto-load scripts not found.
3436         (clear_section_scripts): Clear script_not_found_warning_printed.
3437         (auto_load_objfile_script): Record script in hash table.
3438         (count_matching_scripts): New function.
3439         (maybe_print_script): Renamed from maybe_print_section_script, all
3440         callers updated.  Rewrite to use ui_out_*.
3441         (info_auto_load_scripts): Renamed from
3442         maintenance_print_section_scripts, all callers updated.
3443         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3444         renamed as "info auto-load-scripts".
3445
3446 2011-05-13  Tom Tromey  <tromey@redhat.com>
3447
3448         * dwarf2expr.c (read_uleb128): Cast intermediate result.
3449         (read_sleb128): Likewise.
3450
3451 2011-05-13  Tom Tromey  <tromey@redhat.com>
3452
3453         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3454         offset display.
3455
3456 2011-05-13  Doug Evans  <dje@google.com>
3457
3458         * linux-nat.c (debug_linux_nat_async): Delete.
3459         Replace all references to use debug_linux_nat instead.
3460         (show_debug_linux_nat_async): Delete.
3461         (sigchld_handler): Call ui_file_write_async_safe instead of
3462         fprintf_unfiltered.
3463         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3464         * ui-file.c (struct ui_file): New member to_write_async_safe.
3465         (null_file_write_async_safe): New function.
3466         (ui_file_write_async_safe): New function.
3467         (set_ui_file_write_async_safe): New function.
3468         (ui_file_new): Initialize to_write_async_safe.
3469         (stdio_file_write_async_safe): New function.
3470         (struct stdio_file): New member fd.
3471         (stdio_file_new): Initialize to_write_async_safe, fd.
3472         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3473         fileno.
3474         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3475         (set_ui_file_write_async_safe): Declare.
3476         (ui_file_write_async_safe): Declare.
3477
3478 2011-05-13  Tom Tromey  <tromey@redhat.com>
3479
3480         * utils.c (do_value_free): New function.
3481         (make_cleanup_value_free): Likewise.
3482         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3483         freeing correctly.
3484         (dwarf2_loc_desc_needs_frame): Call
3485         make_cleanup_value_free_to_mark.
3486         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3487         * dwarf2expr.c (free_dwarf_expr_context): Don't call
3488         value_free_to_mark.
3489         (new_dwarf_expr_context): Don't call value_mark.
3490         * dwarf2-frame.c (execute_stack_op): Call
3491         make_cleanup_value_free_to_mark.
3492         * defs.h (make_cleanup_value_free): Declare.
3493
3494 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3495
3496         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3497         prepare_execute_command.
3498         * top.c (prepare_execute_command): Return cleanup.
3499         (execute_command): Use cleanup from prepare_execute_command.
3500         * top.h (prepare_execute_command): Change prototype to return
3501         cleanup.
3502         * defs.h (struct value): Add opaque declaration.
3503         (make_cleanup_value_free_to_mark): Add prototype.
3504         * utils.c (do_value_free_to_mark): New function.
3505         (make_cleanup_value_free_to_mark): Likewise.
3506
3507 2011-05-12  Tom Tromey  <tromey@redhat.com>
3508
3509         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3510         cast left-hand-side to unsigned.
3511
3512 2011-05-12  Tom Tromey  <tromey@redhat.com>
3513
3514         PR gdb/12617:
3515         * value.h (value_from_contents): Declare.
3516         * value.c (value_from_contents): New function.
3517         * dwarf2read.c (dwarf_stack_op_name): Add new values.
3518         (dwarf2_get_die_type): New function.
3519         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3520         (allocate_piece_closure): Acquire reference to values.
3521         (read_pieced_value): Update for value-based expressions.
3522         (write_pieced_value): Likewise.
3523         (free_pieced_value_closure): Call value_free as needed.
3524         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3525         Update for value-based expressions.
3526         * dwarf2loc.h (dwarf2_get_die_type): Declare.
3527         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3528         <get_base_type>: New field.
3529         (struct dwarf_expr_piece) <v.value>: Change type.
3530         <v.regno>: New field.
3531         (struct dwarf_expr_context) <mark>: New field.
3532         (dwarf_expr_piece, dwarf_expr_fetch): Update.
3533         (dwarf_expr_pop, dwarf_expr_push): Remove.
3534         (dwarf_expr_push_address): Declare.
3535         * dwarf2expr.c (dwarf_arch_cookie): New global.
3536         (struct dwarf_gdbarch_types): New.
3537         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3538         functions.
3539         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
3540         static.
3541         (dwarf_expr_push_address): New function.
3542         (dwarf_expr_pop): Now static.
3543         (dwarf_expr_fetch): Change return type.
3544         (dwarf_require_integral): New function.
3545         (dwarf_expr_fetch): Simplify.
3546         (add_piece): Update.
3547         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3548         functions.
3549         (execute_stack_op) <sign_ext>: Remove.
3550         Use values for DWARF stack.
3551         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3552         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3553         New cases.
3554         (_initialize_dwarf2expr): New function.
3555         (add_piece): Update.
3556         (new_dwarf_expr_context): Set new field.
3557         (free_dwarf_expr_context): Call value_free_to_mark.
3558         * dwarf2-frame.c (no_base_type): New function.
3559         (execute_stack_op): Set get_base_type field.  Update.
3560
3561 2011-05-12  Tom Tromey  <tromey@redhat.com>
3562
3563         * dwarf2read.c (read_common_block): Fix formatting.
3564
3565 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
3566
3567         * breakpoint.c (disable_breakpoint): Disable all locations
3568         associated with a tracepoint on target if a trace experiment is
3569         running.
3570         (disable_command): Disable a specific tracepoint location on target if
3571         a trace experiment is running.
3572         (do_enable_breakpoint): Enable all locations associated with a
3573         tracepoint on target if a trace experiment is running.
3574         (enable_command) Enable a specific tracepoint location on target if a
3575         trace experiment is running.
3576         * target.c (update_current_target): Add INHERIT and de_fault clauses for
3577         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3578         to_disable_tracepoint.
3579         * target.h: Add declaration of struct bp_location.
3580         (struct target_ops): Add new functions
3581         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3582         to_disable_tracepoint to target operations.
3583         (target_supports_enable_disable_tracepoint): New macro.
3584         (target_enable_tracepoint): New macro.
3585         (target_disable_tracepoint): New macro.
3586         * remote.c (struct remote_state): Add new field.
3587         (remote_enable_disable_tracepoint_feature): New.
3588         (remote_protocol_features): Add new entry.
3589         (remote_supports_enable_disable_tracepoint): New.
3590         (remote_enable_tracepoint): New.
3591         (remote_disable_tracepoint): New.
3592         (init_remote_ops): Add remote_enable_tracepoint,
3593         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3594         to remote operations.
3595         * tracepoint.c (start_tracing): Allow tracing to start without any
3596         tracepoints enabled with just a warning if they can be re-enabled
3597         later.
3598         * NEWS: Add news item for the new behaviour of the enable and disable
3599         GDB commands when applied to tracepoints.
3600         Add news items for the new remote packets QTEnable and QTDisable.
3601
3602 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3603
3604         * config.in: Regenerate.
3605         * configure: Regenerate.
3606         * configure.ac <--with-system-readline> (for readline_echoing_p):
3607         Remove the test.
3608         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3609         (tui_old_rl_echoing_p): ... here.
3610         (tui_setup_io): Rename extern declaration readline_echoing_p to
3611         _rl_echoing_p.  Adjust assignments for the both renames.
3612
3613 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3614
3615         * symtab.c (lookup_symtab): Run cleanup before returning.
3616
3617 2011-05-11  Tom Tromey  <tromey@redhat.com>
3618
3619         * dwarf2read.c (handle_data_member_location): New function.
3620         (dwarf2_add_field): Use it.
3621         (read_common_block): Likewise.
3622
3623 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3624
3625         Make addrs->SECTINDEX always defined.
3626         * symfile.c (relative_addr_info_to_section_offsets): Check for
3627         SECTINDEX -1, not for zero ADDR.
3628         (addrs_section_compar): Remove checking for invalid SECTINDEX.
3629         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3630         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3631         on its validity.
3632
3633 2011-05-10  Doug Evans  <dje@google.com>
3634
3635         * linux-thread-db.c: Whitespace cleanup.
3636         (try_thread_db_load_1): Fix comment.
3637
3638         * linux-thread-db.c (set_libthread_db_search_path): New function.
3639         (_initialize_thread_db): Add setter for libthread-db-search-path.
3640
3641 2011-05-09  Doug Evans  <dje@google.com>
3642
3643         * NEWS: Mention --with-iconv-bin.
3644         * configure.ac: New option --with-iconv-bin.
3645         * configure: Regenerate.
3646         * config.in: Regenerate.
3647         * defs.h (relocate_gdb_directory): Declare.
3648         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3649         removed progname parameter, and exported.  All callers updated.
3650         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3651
3652         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3653         adding missing call to restore_child_signals_mask.
3654
3655 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
3656
3657         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3658         parameter.
3659         * infrun.c (proceed, start_remote): Adjust.
3660         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3661         and adjust to not handle it.
3662         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3663         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3664         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3665         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3666         * windows-nat.c (do_initial_windows_stuff): Adjust.
3667         * infcmd.c (attach_command): Adjust.
3668         (notice_new_inferior): Adjust.
3669
3670 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
3671
3672         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3673         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3674         * spu-tdep.c (op_selb): Use correct value.
3675
3676 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
3677
3678         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3679         "parent" parameter to symbol_file_add_from_bfd call.
3680
3681 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
3682             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3683
3684         Implement support for PowerPC BookE masked watchpoints.
3685         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
3686         section.
3687         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3688         method.  Initialize to NULL in all existing breakpoint_ops instances.
3689         (struct breakpoint) <hw_wp_mask>: New field.
3690         * breakpoint.c (is_masked_watchpoint): Add prototype.
3691         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
3692         breakpoint's breakpoint_ops.works_in_software_mode if available.
3693         (watchpoints_triggered): Handle the case of a hardware masked
3694         watchpoint trigger.
3695         (watchpoint_check): Likewise.
3696         (works_in_software_mode_watchpoint): New function.
3697         (insert_masked_watchpoint, remove_masked_watchpoint)
3698         (resources_needed_masked_watchpoint)
3699         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3700         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3701         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3702         functions.
3703         (masked_watchpoint_breakpoint_ops): New structure.
3704         (watch_command_1): Check for the existence of the `mask' parameter.
3705         Set b->ops according to the type of hardware watchpoint being created.
3706         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3707         (ppc_linux_remove_mask_watchpoint)
3708         (ppc_linux_masked_watch_num_registers): New functions.
3709         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3710         to_remove_mask_watchpoint and to_masked_watch_num_registers.
3711         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3712         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3713         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3714         (target_masked_watch_num_registers): New functions.
3715         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3716         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3717         methods.
3718         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3719         (target_masked_watch_num_registers): Add prototypes.
3720
3721 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3722
3723         PR 12573
3724         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3725         (producer_is_gcc_ge_4_0): New function.
3726         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
3727         symtab->language code.
3728         (var_decode_location): Set cu->has_loclist.
3729         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3730         skip.  Intialize force_skip from locations_valid.  Move the prologue
3731         skipping code into two passes.
3732         * symtab.h (struct symtab): Make the primary field a bitfield.  New
3733         field locations_valid.
3734
3735 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3736
3737         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3738         (classify_inner_name): Call cp_lookup_nested_type with
3739         yylval.tsym.type.
3740         * cp-namespace.c (cp_lookup_nested_type): New variable
3741         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
3742         type_name_no_tag_or_error with saved_parent_type.
3743         * dwarf2read.c (load_partial_dies): Read in any children of
3744         DW_TAG_typedef with complaint in such case.
3745         * gdbtypes.c (type_name_no_tag_or_error): New function.
3746         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3747         * valops.c (destructor_name_p): New comment for parameter type.  Remove
3748         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
3749         * value.h (destructor_name_p): Remove type const.
3750
3751 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3752
3753         * symtab.c (compare_symbol_name): New function.
3754         (completion_list_add_name, expand_partial_symbol_name): Call it,
3755         remove the variable ncmp.
3756         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3757         gdb_assert it.
3758
3759 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3760
3761         Demote to sw watchpoint only in update_watchpoint.
3762         * breakpoint.c (update_watchpoint): Change between software and
3763         hardware watchpoint for all kinds of watchpoints, not just
3764         read/write ones.  Determine b->exact value here instead of
3765         in watch_command_1.  Error out if there are not enough resources
3766         for a read or access hardware watchpoint.
3767         (watch_command_1): Remove logic of checking whether there are
3768         enough resources available, since update_watchpoint will do that
3769         work now.  Don't set b->exact here.  Catch exceptions thrown by
3770         update_watchpoint and delete the watchpoint.
3771         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3772         Use target_exact_watchpoints instead.
3773         (delete_breakpoint): Notify observers only if deleted watchpoint
3774         has a breakpoint number assigned to it.
3775
3776 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
3777
3778         * MAINTAINERS: Add myself as a write-after-approval maintainer.
3779
3780 2011-05-05  Jerome Guitton  <guitton@adacore.com>
3781
3782         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3783         New functions.
3784         (i386_stack_tramp_frame_unwind): New static global.
3785         (i386_match_pattern): New function, extracted from i386_match_insn.
3786         (i386_match_insn): Use i386_match_pattern.
3787         (i386_match_insn_block): New function.
3788         (i386_tramp_chain_in_reg_insns)
3789         (i386_tramp_chain_on_stack_insns): New static variables.
3790         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3791         of unwinders.
3792
3793 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
3794
3795         * configure.host (xscale*): Don't handle target.
3796         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3797         handle targets.
3798
3799 2011-05-04  Yao Qi  <yao@codesourcery.com>
3800
3801         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3802
3803 2011-05-03  Joel Brobecker <brobecker@adacore.com>
3804
3805         Revert:
3806         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
3807         | * elfread.c (elf_symtab_read): Stop memory leak.
3808
3809 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
3810
3811         * nto-tdep.c (nto_target): Replace deprecated call to
3812         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3813
3814 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3815
3816         Fix false GCC warning.
3817         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3818
3819 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3820
3821         * breakpoint.c (update_watchpoint): Move code to change
3822         the enable state of breakpoint from here ...
3823         (do_enable_breakpoint): ... to here.
3824
3825 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
3826
3827         * valprint.c (val_print_array_elements): Fixed poor performance
3828         of printing very large arrays with repeat_count_threshold set
3829         to unlimited.  New comment.
3830
3831 2011-04-29  Tom Tromey  <tromey@redhat.com>
3832
3833         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3834         (mi_parse): Likewise.
3835         * breakpoint.c (break_range_command): Use sizeof char*, not
3836         char**.
3837         (create_breakpoint): Likewise.
3838         (parse_breakpoint_sals): Likewise.
3839
3840 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
3841
3842         * linux-nat.c (linux_child_remove_fork_catchpoint)
3843         (linux_child_remove_vfork_catchpoint)
3844         (linux_child_remove_exec_catchpoint): New functions.
3845         (linux_target_install_ops): Install them.
3846
3847 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
3848
3849         PR mi/12531
3850
3851         * varobj.c (install_default_visualizer): Do not install a
3852         visualizer if the varobj is CPLUS_FAKE_CHILD.
3853         (construct_visualizer): Likewise.
3854
3855 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3856
3857         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
3858         case insensitive comparison.
3859
3860 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
3861
3862         * infrun.c (proceed): Revert previous change.
3863         (resume): Instead, handle the case of signal delivery while stepping
3864         off a breakpoint location here, and only if software single-stepping
3865         is used.  Handle nested signals.
3866
3867 2011-04-28  Yao Qi  <yao@codesourcery.com>
3868
3869         * arm-tdep.c (copy_unmodified): Rename to ...
3870         (arm_copy_unmodified): .. this.  New.
3871         (copy_preload): Move common part to ...
3872         (install_preload): .. this.  New.
3873         (arm_copy_preload): New.
3874         (copy_preload_reg): Move common part to ...
3875         (install_preload_reg): ... this.  New.
3876         (arm_copy_preload_reg): New.
3877         (copy_b_bl_blx): Move common part to ...
3878         (install_b_bl_blx): .. this.  New.
3879         (arm_copy_b_bl_blx): New.
3880         (copy_bx_blx_reg): Move common part to ...
3881         (install_bx_blx_reg): ... this. New.
3882         (arm_copy_bx_blx_reg): New.
3883         (copy_alu_reg): Move common part to ...
3884         (install_alu_reg): ... this.  New.
3885         (arm_copy_alu_reg): New.
3886         (copy_alu_shifted_reg): Move common part to ...
3887         (install_alu_shifted_reg): ... this.  New.
3888         (copy_ldr_str_ldrb_strb): Move common part to ...
3889         (install_ldr_str_ldrb_strb): ... this.  New.
3890         (arm_copy_ldr_str_ldrb_strb): New.
3891         (copy_copro_load_store): Move some common part to ...
3892         (install_copy_copro_load_store): ... this.  New.
3893         (arm_copy_copro_load_store): New.
3894         (copy_svc): Delete.
3895         (arm_copy_svc): Renamed from copy_svc.
3896         (copy_undef): Delete.
3897         (arm_copy_undef): Renamed from copy_undef.
3898         (decode_ext_reg_ld_st): Delete.
3899         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3900         (decode_svc_copro): Delete.
3901         (arm_decode_svc_copro): Renamed from decode_svc_copro.
3902         (copy_copro_load_store, copy_alu_imm): update callers.
3903         (copy_extra_ld_st, copy_block_xfer): Likewise.
3904         (decode_misc_memhint_neon, decode_unconditional): Likewise.
3905         (decode_miscellaneous, decode_dp_misc): Likewise.
3906         (decode_ld_st_word_ubyte, decode_media): Likewise.
3907         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3908         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3909         (decode_unconditional, decode_miscellaneous): Likewise.
3910         (decode_media, decode_b_bl_ldmstm): Likewise.
3911         (arm_process_displaced_insn): Likewise..
3912         (decode_misc_memhint_neon): Delete.
3913         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3914         (decode_miscellaneous): Delete.
3915         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3916         (decode_dp_misc): Delete.
3917         (arm_decode_dp_misc): Renamed from decode_dp_misc.
3918         (decode_ld_st_word_ubyte): Delete.
3919         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3920         (decode_media): Delete.
3921         (arm_decode_media): Renamed from decode_media.
3922         (decode_b_bl_ldmstm): Delete.
3923         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3924         (decode_ext_reg_ld_st): Delete.
3925         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3926         (decode_unconditional): Delete.
3927         (arm_decode_unconditional): Renamed from decode_unconditional.
3928
3929 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3930
3931         Case insensitive lookups implementation.
3932         * dwarf2read.c: Include ctype.h.
3933         (struct mapped_index): New field version.
3934         (mapped_index_string_hash): New parameter index_version.  New comment
3935         for it.  Call tolower appropriately.
3936         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3937         Choose the right index version for mapped_index_string_hash.
3938         (dwarf2_read_index): Support also the index version 5.  Initialize the
3939         new struct mapped_index field version.
3940         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3941         (find_slot): Explain the version needs.  Pass INT_MAX for the new
3942         parameter.
3943         (write_psymtabs_to_index): Produce version 5.
3944         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3945         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
3946         * psymtab.c (lookup_partial_symbol): Find the
3947         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3948         entries.
3949         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3950         NAME lowercasing.
3951         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3952         (completion_list_add_name): New variable ncmp, initialize it, use it.
3953         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3954         * utils.c (strcmp_iw): Support case_sensitive_off.
3955         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3956         New function comment part.  New variables saved_string1,
3957         saved_string2 and case_pass.  Add a proper second pass.
3958
3959 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3960
3961         Replace re_comp/re_exec by regcomp/regexec.
3962         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3963         (search_symbols_name_matches): Use them, use regexec.
3964         (search_symbols): New variable retval_chain, adjust the use of
3965         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
3966         search_symbols_data fields, use regexec instead of re_exec.
3967
3968 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3969
3970         Format the code for the next patch.
3971         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3972         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3973         New variables c1 and c2.
3974
3975 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
3976
3977         * infrun.c (proceed): Do not single-step into signal delivery
3978         when stepping off a breakpoint location.
3979         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3980         (insert_step_resume_breakpoint_at_caller): Likewise.
3981         (insert_step_resume_breakpoint_at_sal): Likewise.
3982         (insert_longjmp_resume_breakpoint): Likewise.
3983
3984 2011-04-27  Yao Qi  <yao@codesourcery.com>
3985
3986         * common/linux-ptrace.h: Remove include <sys/wait.h>.
3987
3988 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
3989
3990         * procfs.c (procfs_pass_signals): Fix advance declaration.
3991
3992 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
3993
3994         * target.h (struct target_ops): Remove to_notice_signals;
3995         add to_pass_signals.
3996         (target_notice_signals): Remove.
3997         (target_pass_signals): Add prototype.
3998         * target.c (update_current_target): Remove to_notice_signals;
3999         mention to_pass_signals.
4000         (target_pass_signals): New function.
4001         (debug_to_notice_signals): Remove.
4002         (setup_target_debug): Do not install debug_to_notice_signals.
4003
4004         * infrun.c (signal_pass): New global.
4005         (resume): Call target_pass_signals.
4006         (handle_inferior_event): Report all signals while stepping over
4007         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
4008         are re-inserted when stepping over a signal handler.
4009         (signal_cache_update): New function.
4010         (signal_stop_update): Call it.
4011         (signal_print_update): Likewise.
4012         (signal_pass_update): Likewise.
4013         (handle_command): Call signal_cache_update and target_pass_signals
4014         instead of target_notice_signals.
4015         (_initialize_infrun): Initialize signal_pass.
4016
4017         * linux-nat.c (pass_mask): New global.
4018         (linux_nat_pass_signals): New function.
4019         (linux_nat_create_inferior): Report all signals initially.
4020         (linux_nat_attach): Likewise.
4021         (linux_nat_resume): Use pass_mask to decide whether to directly
4022         handle an inferior signal.
4023         (linux_nat_wait_1): Likewise.
4024         (linux_nat_add_target): Install to_pass_signals callback.
4025
4026         * nto-procfs.c (notice_signals): Remove.
4027         (procfs_resume): Do not call notice_signals.
4028         (procfs_notice_signals): Remove.
4029         (procfs_pass_signals): New function.
4030         (init_procfs_ops): Install to_pass_signals callback instead of
4031         to_notice_signals callback.
4032         (_initialize_procfs): Report all signals initially.
4033
4034         * procfs.c (procfs_notice_signals): Remove.
4035         (procfs_pass_signals): New function.
4036         (procfs_target): Install to_pass_signals callback instead of
4037         to_notice_signals callback.
4038         (register_gdb_signals): Remove.
4039         (procfs_debug_inferior): Report all signals initially.
4040         (procfs_init_inferior): Remove redundant register_gdb_signals call.
4041
4042         * remote.c (remote_pass_signals): Add numsigs and pass_signals
4043         parameters; use them instead of calling signal_..._state routines.
4044         (remote_notice_signals): Remove.
4045         (remote_start_remote): Report all signals initially.
4046         (remote_resume): Do not call remote_pass_signals.
4047         (_initialize_remote): Install to_pass_signals callback instead of
4048         to_notice_signals callback.
4049
4050 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
4051
4052         * breakpoint.c (user_settable_breakpoint): Delete.
4053         (user_breakpoint_p): Remove check on user_settable_breakpoint.
4054         (delete_command): Check user_breakpoint_p instead of looking at
4055         the breakpoint's type.
4056         (disable_command): Ditto.
4057         (enable_command): Ditto.
4058         (delete_trace_command): Use user_breakpoint_p instead of looking
4059         at the breakpoint number directly.  When checking if there are
4060         user visible tracepoints, in order to know whether to ask the user
4061         for confirmation, check whether the breakpoint is actually a
4062         tracepoint.
4063
4064 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
4065
4066         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4067         compilation.
4068
4069 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
4070
4071         MI breakpoint notifications.
4072
4073         * annotate.c (breakpoint_changed): Adjust parameter type.
4074         * breakpoint.c (set_breakpoint_condition): Adjust to change
4075         in breakpoint_modified type.
4076         (breakpoint_set_commands): Likewise.
4077         (do_map_commands_command): Likewise.
4078         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4079         changed after bumping hit count.
4080         (bpstat_stop_status): Likewise.
4081         (print_one_breakpoint_location): Don't wrap in tuple here.
4082         (print_one_breakpoint): Always print individual locations.
4083         For locations, use unnamed tuple.
4084         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4085         has changed.
4086         (create_catchpoint, create_syscall_event_catchpoint): Call
4087         breakpoint_created obsever.
4088         (mention): Don't call breakpoint_created observer.
4089         (create_breakpoint_sal): Call breakpoint_created observer.
4090         (create_breakpoint, watch_command_1): Likewise.
4091         (create_ada_exception_breakpoint): Likewise.
4092         (delete_breakpoint): Call breakpoint_deleted breakpoint.
4093         (locations_are_equal): New.
4094         (update_breakpoint_locations): If locations were changed, notify.
4095         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4096         Call breakpoint_modified observer.
4097
4098         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4099         (mi_cmd_break_insert): Don't set observers for modify and delete.
4100         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4101         (mi_breakpoint_created, mi_breakpoint_deleted)
4102         (mi_breakpoint_modified): New.
4103         (mi_interpreter_init): Hook the above.
4104         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4105         while -break-* commands are executing.
4106         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4107         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4108         (mi_redirect): New.
4109         (mi_ui_out_impl): Hook in mi_redirect.
4110         (mi_field_skip): True to the name, skip the field, don't output
4111         a field with an empty value.
4112
4113         * python/py-breakpoint.c (gdbpy_breakpoint_created)
4114         (gdbpy_breakpoint_deleted): Adjust.
4115         * tui/tui-hooks.c (tui_event_create_breakpoint)
4116         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4117
4118 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
4119
4120         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4121         (procfs_remove_hw_watchpoint): Likewise.
4122
4123 2011-04-26  Michael Walle  <michael@walle.cc>
4124
4125         * remote.c (remote_start_remote): Ack packet after sending the
4126         interrupt sequence.
4127
4128 2011-04-26  Yao Qi  <yao@codesourcery.com>
4129
4130         * linux-nat.c: Move common macros to ...
4131         Include linux-ptrace.h.
4132         * common/linux-ptrace.h: ... here.  New.
4133
4134 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4135
4136         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4137         !objfile_has_partial_symbols.  New comment.
4138         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4139         SYM_READ_PSYMBOLS is not present. Extend the comment.
4140         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4141
4142 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4143
4144         * defs.h (ENUM_BITFIELD): Remove.
4145
4146 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4147             Eli Zaretskii  <eliz@gnu.org>
4148
4149         * NEWS: Document the new gdbserver --once option.
4150
4151 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
4152
4153         * MAINTAINERS: Update my email address.
4154
4155 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
4156
4157         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4158         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4159         function call if __STDC_ISO_10646__ macro is defined.
4160         (intermediate_encoding): New prototype.
4161         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4162         to generate compile time error for unsupported gdb_wchar_t size.
4163         (ENDIAN_SUFFIX): New macro.
4164         (intermediate_encoding): New function.
4165
4166 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4167
4168         * ada-lang.c (struct add_partial_datum): Update the comment for
4169         expand_partial_symbol_name.
4170         (ada_add_partial_symbol_completions): Rename to ...
4171         (ada_expand_partial_symbol_name): ... here, change return type, update
4172         function comment, call symbol_completion_match instead of
4173         symbol_completion_add.
4174         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4175         and ada_expand_partial_symbol_name.
4176         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4177         FILE_MATCHER.
4178         (dw2_map_symbol_names): Remove.
4179         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4180         * psymtab.c (map_symbol_names_psymtab): Remove.
4181         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4182         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
4183         order.
4184         (psym_functions): Unlist map_symbol_names_psymtab.
4185         (map_partial_symbol_names): Rename to ...
4186         (expand_partial_symbol_names): ... here, change the FUN type, call
4187         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4188         * psymtab.h (map_partial_symbol_names): Rename to ...
4189         (expand_partial_symbol_names): ... here, change the FUN type.
4190         * symfile.h (struct quick_symbol_functions): Update the description of
4191         expand_symtabs_matching.  Remove map_symbol_names.
4192         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4193         (struct add_name_data): Update the comment for
4194         expand_partial_symbol_name.
4195         (add_partial_symbol_name): Rename to ...
4196         (expand_partial_symbol_name): ... here.  Replace
4197         completion_list_add_name call by strncmp.
4198         (default_make_symbol_completion_list_break_on): Use now
4199         expand_partial_symbol_names and expand_partial_symbol_name.
4200         * symtab.h (enum search_domain): New element ALL_DOMAIN.
4201
4202 2011-04-20  Tom Tromey  <tromey@redhat.com>
4203
4204         * dwarf2read.c (save_gdb_index_command): Replace format
4205         documentation with a pointer to the manual.
4206
4207 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
4208
4209         * regcache.c: Include remote.h.
4210         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4211         (regcache_dump): Handle regcache_dump_remote.
4212         (maintenance_print_remote_registers): New function.
4213         (_initialize_regcache): Install "maint print remote-registers"
4214         command.
4215         * remote.c (map_regcache_remote_table): New function, factored out
4216         from ...
4217         (init_remote_state): ... here.
4218         (remote_register_number_and_offset): New.
4219         * remote.h (remote_register_number_and_offset): Declare.
4220
4221 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
4222
4223         * regcache.c (get_thread_arch_regcache): If creating a regcache for
4224         null_ptid, assume and allow a NULL address space, instead of
4225         asking the target for the ptid's address space.
4226         * infrun.c (ptid_is_pid): Remove assertion.
4227
4228 2011-04-19  Tom Tromey  <tromey@redhat.com>
4229
4230         * windows-tdep.c (windows_xfer_shared_library):
4231         * windows-nat.c (get_module_name, windows_make_so):
4232         * v850-tdep.c (v850_handle_pushm):
4233         * utils.c (null_cleanup, gdb_realpath):
4234         * ui-out.c (get_next_header):
4235         * tracepoint.c (clear_traceframe_info):
4236         * symtab.c (lookup_symtab):
4237         * serial.h (struct serial_ops):
4238         * mipsread.c (read_alphacoff_dynamic_symtab):
4239         * infcmd.c (print_return_value):
4240         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4241         * f-exp.y (parse_number):
4242         * exceptions.c (catch_exceptions):
4243         * dummy-frame.c (dummy_frame_this_id):
4244         * defs.h (struct cleanup):
4245         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4246         * arm-tdep.c (arm_push_dummy_call):
4247         * amd64-tdep.h (amd64_collect_xsave):
4248         * amd64-tdep.c (amd64_collect_xsave):
4249         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4250         * README (typing): Remove duplicate words.
4251         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4252         * infrun.c (siginfo_value_read): Fix typo.
4253         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4254         * top.c (source_line_number): Add comma.
4255
4256 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
4257
4258         * thread.c (any_live_thread_of_process): Prioritize threads
4259         that are not executing.
4260         * gdbthread.h (any_live_thread_of_process): Update comment
4261         as per above change.
4262
4263 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
4264
4265         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4266         (scan_xcoff_symtab): Likewise.
4267
4268 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4269
4270         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4271         inside if clause.
4272
4273 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4274             Pedro Alves  <pedro@codesourcery.com>
4275
4276         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4277         variables to simplify code and avoid == operator at end of
4278         line as this is against GNU coding standards.
4279
4280 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4281
4282         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4283         lm_name to name_lm to avoid conflict with lm_name function.
4284
4285 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4286
4287         ARI fixes: Use only lowercase function name for static functions.
4288         * nto-tdep.c (LM_ADDR): Rename to...
4289         (lm_addr): New function name.
4290         (nto_relocate_section_addresses): Adapt to change above.
4291         * solib-sunos.c (LM_ADDR): Rename to...
4292         (lm_addr): New function name.
4293         (LM_NEXT): Rename to...
4294         (lm_next): New function name.
4295         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4296         function name changes above.
4297         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4298         (lm_addr_from_link_map): New function name.
4299         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4300         (has_lm_dynamic_from_link_map): New function name.
4301         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4302         (lm_dynamic_from_link_map): New function name.
4303         (LM_ADDR_CHECK): Rename to...
4304         (lm_addr_check): New function name.
4305         (LM_NEXT): Rename to...
4306         (lm_next): New function name.
4307         (LM_PREV): Rename to...
4308         (lm_prev): New function name.
4309         (LM_NAME): Rename to...
4310         (lm_name): New function name.
4311         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4312         (ignore_first_link_map_entry): New function name.
4313         (svr4_keep_data_in_core): Adapt to function name changes above.
4314         (svr4_current_sos): Likewise.
4315         (enable_break): Likewise.
4316         (svr4_relocate_section_addresses): Likewise.
4317
4318 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4319
4320         ARI cleanup.
4321         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4322         sprintf. Simplify code and avoid loosing memory.
4323         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4324         (call0_frame_cache): Remove && operator from end of line.
4325
4326 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4327
4328         Fix libraries displacement if they change whether they were prelinked.
4329         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4330         does not match.  Comment why.
4331
4332 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4333
4334         * corelow.c: Include wrapper.h.
4335         (core_open): Call now gdb_target_find_new_threads.
4336         * wrapper.c: Include target.h.
4337         (gdb_target_find_new_threads): New.
4338         * wrapper.h (gdb_target_find_new_threads): New declaration.
4339
4340 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4341
4342         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4343         even if !TARGET_HAS_EXECUTION.
4344
4345 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4346
4347         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4348         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4349         bfd_get_synthetic_symtab.
4350         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4351         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4352         parameter parent, remove the call to add_separate_debug_objfile.
4353         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4354         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4355         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4356         parent, new comment for it, call add_separate_debug_objfile for it.
4357         (symbol_file_add_separate): Pass objfile as the parameter parent,
4358         remove the call to add_separate_debug_objfile.
4359         (symbol_file_add_from_bfd): New parameter parent, pass it.
4360         (symbol_file_add): Pass NULL to the new parameter parent.
4361         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4362
4363 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4364
4365         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4366         BSF_SYNTHETIC.
4367
4368 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4369
4370         Fix Python access to inlined frames.
4371         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4372         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4373
4374 2011-04-15  Tom Tromey  <tromey@redhat.com>
4375
4376         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4377
4378 2011-04-15  Gary Benson  <gbenson@redhat.com>
4379
4380         * MAINTAINERS: Add myself to write-after-approval section.
4381
4382 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
4383
4384         * remote-sim.c (sim_command_completer): New function.
4385         (_initialize_remote_sim): Set completer to sim_command_completer.
4386
4387 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4388
4389         * breakpoint.c (print_exception_catchpoint): Rename to ...
4390         (print_it_exception_catchpoint): ... this.
4391         (gnu_v3_exception_catchpoint_ops): Update with new name
4392         for print_it_exception_catchpoint.
4393
4394 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4395
4396         * MAINTAINERS: Add myself for write after approval privileges.
4397
4398 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
4399
4400         * MAINTAINERS: Add myself as a write-after-approval maintainer.
4401
4402 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4403
4404         * breakpoint.c (watch_command_1): Remove colon from exp_string.
4405
4406 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4407
4408         * breakpoint.c (save_breakpoints): Verify whether
4409         breakpoint_ops.print_recreate is defined before calling it.
4410
4411 2011-04-11  Gary Benson  <gbenson@redhat.com>
4412
4413         Fix failure with --enable-maintainer-mode.
4414         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4415
4416 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4417
4418         Code cleanup.
4419         * symtab.c (search_symbols): Reorder the KIND description in the
4420         function comment.  Remove the unused 4th element of types, types2,
4421         types3 and types4.  New gdb_assert on KIND.
4422         (symtab_symbol_info): Remove the unused 4th element of classnames.
4423         New gdb_assert on KIND.
4424         * symtab.h (enum search_domain): New warning in the enum comment.
4425         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4426         TYPES_DOMAIN.
4427
4428 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4429
4430         Fix crash of gdb save-index on a STABS file.
4431         * dwarf2read.c (write_psymtabs_to_index): Return also on no
4432         PSYMTABS_ADDRMAP.
4433
4434 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4435
4436         Fix DW_AT_accessibility compatibility with gcc-4.6+.
4437         * dwarf2read.c: Include ctype.h.
4438         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4439         functions.
4440         (dwarf2_add_field): Fix new_field->accessibility by calling
4441         dwarf2_default_access_attribute.  Restructure setting accessibility
4442         vs. virtuality.
4443         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
4444         is_private and is_protected by calling
4445         dwarf2_default_access_attribute.
4446
4447 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
4448
4449         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4450         to the initialization.
4451
4452 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
4453
4454         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4455         initalization.
4456
4457 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
4458
4459         Remove support for old Cygwin 1.5 versions.
4460         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4461         function on old Cygwin version.
4462         * windows-nat.c: Remove cygwin version check and always define
4463         __USEWIDE for Cygwin compilation.
4464
4465 2011-04-07  Yao Qi  <yao@codesourcery.com>
4466
4467         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4468         and TO.
4469         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4470         (arm_copy_svc): Remove parameters INSN and TO.
4471         (decode_svc_copro): Update caller.
4472         * arm-tdep.h (struct displaced_step_closure): Remove parameters
4473         from function pointer `copy_svc_os'.
4474
4475 2011-04-07  Yao Qi  <yao@codesourcery.com>
4476
4477         * arm-tdep.c (cleanup_branch): Set a correct return address in
4478         LR for ARM and Thumb.
4479
4480 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4481
4482         Code cleanup.
4483         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4484         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4485         in the function comment, a new note on values compatibility.
4486         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4487         * symtab.h (SYMBOL_HASH_NEXT): New.
4488
4489 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4490
4491         * ppc-linux-nat.c (check_condition): Add len output parameter.
4492         Set it based on the memory region referenced in the condition
4493         expression.  Update all callers.
4494
4495 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4496
4497         Fix crash regression on systems featuring .gdb_index.
4498         * objfiles.c (free_objfile): Move the
4499         forget_cached_source_info_for_objfile call earlier.  Comment it.
4500         Extend the comment for objfile_free_data.
4501
4502 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4503
4504         Fix regression of displaying the debug format.
4505         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4506         subfile.
4507
4508 2011-04-04  Tom Tromey  <tromey@redhat.com>
4509
4510         * cli/cli-interp.c (struct captured_execute_command_args):
4511         Remove.
4512         (do_captured_execute_command): Remove.
4513         (safe_execute_command): Use TRY_CATCH.
4514         * cli/cli-script.c (struct wrapped_read_command_file_args):
4515         Remove.
4516         (wrapped_read_command_file): Remove.
4517         (script_from_file): Use TRY_CATCH.
4518         * exceptions.c (catch_exception): Remove.
4519         * exceptions.h (catch_exception): Remove.
4520         (deprecated_throw_reason): Update comment.
4521         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4522         argument to 'context'.
4523         (mi_execute_command): Use TRY_CATCH.
4524         * remote.c (struct start_remote_args): Remove.
4525         (remote_start_remote): Update; change arguments.
4526         (remote_open_1): Use TRY_CATCH.
4527
4528 2011-04-04  Tom Tromey  <tromey@redhat.com>
4529
4530         * tracepoint.c (scope_info): Update.
4531         * symtab.c (decode_line_spec): Update.
4532         * python/python.c (gdbpy_decode_line): Update.
4533         * linespec.h (decode_line_1): Update.
4534         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4535         (decode_compound, find_method, symtab_from_filename)
4536         (decode_variable): Likewise.
4537         * cli/cli-cmds.c (edit_command): Update.
4538         (list_command): Update.
4539         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4540         argument.
4541         (create_breakpoint): Update.
4542         (until_break_command): Update.
4543         (addr_string_to_sals): Update.
4544         (decode_line_spec_1): Update.
4545
4546 2011-04-04  Tom Tromey  <tromey@redhat.com>
4547
4548         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4549         (do_captured_parse_breakpoint): Remove.
4550         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
4551         Use TRY_CATCH directly.
4552
4553 2011-04-04  Tom Tromey  <tromey@redhat.com>
4554
4555         * symtab.h (free_symtab): Remove.
4556         (forget_cached_source_info_for_objfile): Declare.
4557         * symmisc.c (free_symtab): Remove.
4558         * source.c (forget_cached_source_info_for_objfile): New function.
4559         (forget_cached_source_info): Use it.
4560         * objfiles.c (free_objfile): Simplify check before calling
4561         clear_current_source_symtab_and_line.  Call
4562         forget_cached_source_info_for_objfile.
4563
4564 2011-04-04  Tom Tromey  <tromey@redhat.com>
4565
4566         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4567         (new_symtab): Don't set `free_code' on symtab.
4568         (new_linetable): Properly handle size==0.
4569         * symtab.h (struct symtab) <free_code, free_func>: Remove.
4570         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
4571         free_func.
4572         * jv-lang.c (struct jv_per_objfile_data): New.
4573         (jv_per_objfile_free): Free the data.
4574         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4575         (get_java_class_symtab): Set the `dict' field on the
4576         jv_per_objfile_data.
4577         (free_class_block): Remove.
4578         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4579         the symtab.
4580
4581 2011-04-04  Tom Tromey  <tromey@redhat.com>
4582
4583         * symfile.c (reread_symbols): Update.
4584         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4585         field.
4586         * objfiles.c (allocate_objfile): Update.
4587         * cp-support.h (cp_check_possible_namespace_symbols): Don't
4588         declare.
4589         * cp-namespace.c (lookup_symbol_file): Don't call
4590         lookup_possible_namespace_symbol.
4591         (initialize_namespace_symtab, get_possible_namespace_block)
4592         (free_namespace_block, cp_check_possible_namespace_symbols)
4593         (check_possible_namespace_symbols_loop)
4594         (check_one_possible_namespace_symbol)
4595         (lookup_possible_namespace_symbol): Remove.
4596         (maintenance_cplus_namespace): Replace with notice.
4597         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4598
4599 2011-04-04  Tom Tromey  <tromey@redhat.com>
4600
4601         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4602         * symtab.h (struct symtab) <producer, debugformat>: Now const.
4603         * symmisc.c (free_symtab): Don't free debugformat.
4604         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4605         (record_debugformat, record_producer): Document.
4606         * buildsym.c (end_symtab): Don't save debugformat and producer
4607         names on obstack.
4608         (end_symtab): Don't free debugformat and producer fields.
4609         (record_debugformat): Don't call xstrdup.
4610         (record_producer): Likewise.
4611
4612 2011-04-04  Tom Tromey  <tromey@redhat.com>
4613
4614         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4615         (source_line_charpos, source_charpos_line): Remove.
4616
4617 2011-04-04  Tom Tromey  <tromey@redhat.com>
4618
4619         * symtab.h (domain_enum): Split in two...
4620         (enum search_domain): New.
4621         (search_symbols): Update.
4622         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4623         redundant declarations.
4624         (search_symbols): Change 'kind' argument to search_domain.
4625         Update.
4626         (print_symbol_info): Likewise.
4627         (symtab_symbol_info): Likewise.
4628         * symfile.h (struct quick_symbol_functions)
4629         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4630         <expand_symtabs_matching>: Likewise.
4631         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4632         (expand_symtabs_matching_via_partial): Update.
4633         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4634         (dw2_expand_symtabs_for_function): Update.
4635         * block.h: Moved anonymous enum...
4636         * defs.h (enum block_enum): ... here.  Now named.
4637
4638 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
4639
4640         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4641         * version.in: Bump version to 7.3.50.20110403-cvs.
4642
4643 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
4644
4645         * NEWS: Create a new section for the next release branch.
4646         Rename the section of the current branch, now that it has
4647         been cut.
4648
4649 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
4650
4651         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4652         for "fpscr" in target description.
4653
4654 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4655
4656         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4657         initialize it.  Delay HASH initialization.  Strip the part after open
4658         parenthesis for languages with qualifiers.  Call do_cleanups.
4659
4660 2011-04-01  Tom Tromey  <tromey@redhat.com>
4661
4662         * utils.c (report_command_stats): Don't print `-' for negative
4663         number.
4664
4665 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
4666
4667         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4668         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4669         typedefs.
4670
4671 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
4672
4673         * breakpoint.h (bpdisp_text): Add declaration.
4674         * breakpoint.c (bpdisp_text): Make non-static.
4675         * ada-lang.c: #include "mi/mi-common.h".
4676         (print_it_exception): Rewrite to improve GDB/MI output.
4677
4678 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
4679
4680         * arm-tdep.h (struct address_space): Add forward declaration.
4681
4682 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
4683
4684         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4685         * arm-tdep.c (arm_override_mode): New global.
4686         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
4687         execution mode heuristics.
4688         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4689         second single-step breakpoint if needed, using
4690         arm_insert_single_step_breakpoint.
4691         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
4692         ARM execution mode, do not call thumb_get_next_pc_raw.
4693         (arm_get_next_pc): Encode execution mode in return value.  Call
4694         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4695         (arm_insert_single_step_breakpoint): New function.
4696         (arm_software_single_step): Call it.
4697         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4698         argument to return execution mode of sigreturn target.
4699         (arm_linux_syscall_next_pc): Use it.
4700         (arm_linux_copy_svc): Update call.
4701         (arm_linux_software_single_step): Call
4702         arm_insert_single_step_breakpoint.
4703
4704 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
4705
4706         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4707         the comment.
4708
4709 2011-03-31  Tom Tromey  <tromey@redhat.com>
4710
4711         * varobj.c (update_dynamic_varobj_children): Properly handle
4712         errors from iterator.
4713
4714 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
4715
4716         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
4717         struct linkage name twice.
4718
4719 2011-03-31  Tom Tromey  <tromey@redhat.com>
4720
4721         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4722         missing ">" to message.
4723
4724 2011-03-31  Tom Tromey  <tromey@redhat.com>
4725
4726         * varobj.c (instantiate_pretty_printer): Remove duplicate
4727         'return'.
4728
4729 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
4730
4731         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4732         if neither saved value nor register available (e.g. signal frame).
4733
4734 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4735
4736         * macroexp.c (expand): Avoid uninitialized variable
4737         compiler warning.
4738
4739 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4740
4741         * breakpoint.c (break_range_command): Fix typo in comment.
4742
4743 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4744             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
4745
4746         Implement support for PowerPC BookE ranged breakpoints.
4747         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4748         * breakpoint.h (struct bp_target_info) <length>: New member
4749         variable.
4750         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4751         instead of struct breakpoint as argument, and also add ASPACE
4752         and BP_ADDR arguments.  Update all callers.
4753         (struct breakpoint_ops) <print_one_detail>: New method.
4754         (struct breakpoint) <addr_string_range_end>: New member variable.
4755         * breakpoint.c (breakpoint_location_address_match): Add function
4756         prototype.
4757         (insert_bp_location): Set bl->target_info.length.
4758         (breakpoint_here_p): Call breakpoint_location_address_match.
4759         (moribund_breakpoint_here_p): Likewise.
4760         (regular_breakpoint_inserted_here_p): Likewise.
4761         (breakpoint_thread_match): Likewise.
4762         (bpstat_stop_status): Likewise.
4763         (bpstat_check_location): Move call to
4764         breakpoint_ops.breakpoint_hit to the top.
4765         (print_one_breakpoint_location): Call
4766         breakpoint_ops.print_one_detail if available.
4767         (breakpoint_address_match_range): New function.
4768         (breakpoint_location_address_match): Likewise.
4769         (breakpoint_locations_match): Compare the length field of the
4770         locations too.
4771         (hw_breakpoint_used_count): Count resources used by all locations
4772         in a breakpoint, and use breakpoint_ops.resources_needed if
4773         available.
4774         (breakpoint_hit_ranged_breakpoint): New function.
4775         (resources_needed_ranged_breakpoint): Likewise.
4776         (print_it_ranged_breakpoint): Likewise.
4777         (print_one_ranged_breakpoint): Likewise.
4778         (print_one_detail_ranged_breakpoint): Likewise.
4779         (print_mention_ranged_breakpoint): Likewise.
4780         (print_recreate_ranged_breakpoint): Likewise.
4781         (ranged_breakpoint_ops): New structure.
4782         (find_breakpoint_range_end): New function.
4783         (break_range_command): Likewise.
4784         (delete_breakpoint): Free addr_string_range_end.
4785         (update_breakpoint_locations): Add SALS_END argument.  Update
4786         all callers.  Calculate breakpoint length if a non-zero SALS_END
4787         is given.  Call breakpoint_locations_match instead of
4788         breakpoint_address_match.
4789         (reset_breakpoint): Find SaL of the end of the range if B is a
4790         ranged breakpoint.
4791         (_initialize_breakpoint): Register break-range command.
4792         * defs.h (print_core_address): Add function prototype.
4793         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4794         function.
4795         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4796         (ppc_linux_remove_hw_breakpoint): Likewise.
4797         (_initialize_ppc_linux_nat): Initialize
4798         to_ranged_break_num_registers.
4799         * target.c (update_current_target): Add comment about
4800         to_ranged_break_num_registers.
4801         (target_ranged_break_num_registers): New function.
4802         * target.h (struct target_ops) <to_ranged_break_num_registers>:
4803         New method.
4804         (target_ranged_break_num_registers): Add function prototype.
4805         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4806         * utils.c (print_core_address): ... here.
4807
4808 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
4809
4810         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4811         variable compiler warning.
4812
4813 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4814
4815         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4816         code from here ...
4817         (re_set_breakpoint): ... to here ...
4818         (addr_string_to_sals): ... and here.
4819
4820 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
4821
4822         * Makefile.in (SFILES): Add missing C sources.
4823         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4824         Add missing headers.
4825
4826 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
4827
4828         * .gitignore: New file.
4829
4830 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
4831
4832         * NEWS: Mention new cfi device simulation.
4833
4834 2011-03-29  Tom Tromey  <tromey@redhat.com>
4835
4836         * dwarf2read.c (fixup_partial_die): Handle linkage name on
4837         otherwise anonymous types.
4838         (dwarf2_name): Likewise.
4839         * valops.c (value_struct_elt_for_reference): Refine artificial
4840         type logic.  Call error if j==-1.
4841
4842 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
4843
4844         Fix false GCC warning.
4845         * infcall.c (find_function_addr): Initialize funaddr.
4846
4847 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
4848
4849         Fix mingw compilation with --enable-targets=all.
4850         * remote-mips.c (gdb_usleep.h): Include header.
4851         (mips_enter_debug): Use gdb_usleep instead of sleep.
4852
4853 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4854
4855         Support resolution of STT_GNU_IFUNC via breakpoints.
4856         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4857         bp_gnu_ifunc_resolver_return.
4858         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4859         the loop.  Support bp_gnu_ifunc_resolver and
4860         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
4861         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4862         breakpoints.
4863         (bptype_string, print_one_breakpoint_location): Support
4864         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4865         (user_settable_breakpoint): Return true also for
4866         bp_gnu_ifunc_resolver.
4867         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4868         bp_gnu_ifunc_resolver_return.
4869         (set_breakpoint_location_function): New parameter explicit_loc,
4870         describe it.  Call find_pc_partial_function_gnu_ifunc with new
4871         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4872         EXPLICIT_LOC is not set.
4873         (set_raw_breakpoint): Set EXPLICIT_LOC for
4874         set_breakpoint_location_function.
4875         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4876         set_breakpoint_location_function.
4877         (mention): Support bp_gnu_ifunc_resolver and
4878         bp_gnu_ifunc_resolver_return.
4879         (add_location_to_breakpoint): Set EXPLICIT_LOC for
4880         set_breakpoint_location_function.
4881         (update_breakpoint_locations): Remove static.
4882         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4883         bp_gnu_ifunc_resolver_return.
4884         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4885         bp_gnu_ifunc_resolver_return.
4886         (update_breakpoint_locations): New declaration.
4887         * elfread.c: Include gdbthread.h and regcache.h.
4888         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4889         functions.
4890         (elf_gnu_ifunc_fns): Install them.
4891         * minsyms.c (stub_gnu_ifunc_resolver_stop)
4892         (stub_gnu_ifunc_resolver_return_stop): New functions.
4893         (stub_gnu_ifunc_fns): Install them.
4894         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4895         and gnu_ifunc_resolver_return_stop.
4896         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4897
4898 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4899
4900         STT_GNU_IFUNC reader implementation.
4901         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4902         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4903         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4904         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4905         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4906         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4907         (elf_gnu_ifunc_resolve_addr): New.
4908         (elf_symfile_read): Call elf_rel_plt_read.
4909         (elf_gnu_ifunc_fns): New.
4910         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4911         Install elf_gnu_ifunc_fns.
4912         * infcall.c (find_function_return_type): New function.
4913         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4914         * minsyms.c (stub_gnu_ifunc_resolve_addr)
4915         (stub_gnu_ifunc_resolve_name): New functions.
4916         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4917         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4918         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4919
4920 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4921
4922         Code cleanup for later STT_GNU_IFUNC support.
4923         * infcall.c (find_function_addr): Remove variable code, use explicit
4924         dereferences for it.  Move VALUE_TYPE initialization later.
4925
4926 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4927
4928         GDB find_pc_partial_function support for STT_GNU_IFUNC.
4929         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4930         (clear_pc_function_cache): Clear it.
4931         (find_pc_partial_function): Rename to ...
4932         (find_pc_partial_function_gnu_ifunc): ... this function.  New
4933         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
4934         (find_pc_partial_function): New wrapper for this function.
4935         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4936
4937 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4938
4939         GDB internal type support for STT_GNU_IFUNC.
4940         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4941         (elf_symtab_read): Set mst_text_gnu_ifunc for
4942         BSF_GNU_INDIRECT_FUNCTION.
4943         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4944         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4945         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4946         nodebug_got_plt_symbol.
4947         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4948         (TYPE_GNU_IFUNC): New.
4949         (struct main_type): New field flag_gnu_ifunc.
4950         (struct builtin_type): New field builtin_func_func.
4951         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4952         nodebug_got_plt_symbol.
4953         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4954         (in_gnu_ifunc_stub): New.
4955         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4956         mst_text_gnu_ifunc.
4957         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
4958         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
4959         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4960         in_gnu_ifunc_stub.
4961         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4962         * symtab.c (search_symbols): Likewise.
4963         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4964         and mst_slot_got_plt.
4965         (in_gnu_ifunc_stub): New declaration.
4966
4967 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4968
4969         Support a ring of related breakpoints.
4970         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4971         other functions, add gdb_assert.
4972         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
4973         watchpoint_del_at_next_stop.
4974         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4975         (bpstat_stop_status): Handle ring in related_breakpoint.
4976         (set_raw_breakpoint_without_location): Initialize ring in
4977         related_breakpoint.
4978         (delete_breakpoint): Handle ring in related_breakpoint, use
4979         watchpoint_del_at_next_stop.
4980         (map_breakpoint_numbers): Handle ring in related_breakpoint.
4981
4982 2011-03-28  Tom Tromey  <tromey@redhat.com>
4983
4984         PR symtab/12441:
4985         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4986         with `language_minimal'.
4987
4988 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
4989
4990         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4991         instead of checking for STT_ARM_TFUNC symbol type.
4992
4993 2011-03-25  Tom Tromey  <tromey@redhat.com>
4994
4995         * linespec.c (symbol_found): Restore line-based result for
4996         non-LOC_LABEL symbols.
4997
4998 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4999
5000         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5001         instead of strcmp for comparison.
5002         (tui_source_is_displayed): Likewise.
5003         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5004
5005 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5006
5007         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5008         complaint.
5009         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5010         (find_partial_die_in_comp_unit): Likewise in comment.
5011         (read_attribute_value): Likewise.
5012         (lookup_die_type): Likewise.
5013         (dwarf_form_name): Likewise.
5014         (dump_die_shallow): Likewise.
5015         (follow_die_ref_or_sig): Likewise.
5016
5017 2011-03-24  Tom Tromey  <tromey@redhat.com>
5018
5019         PR breakpoints/11816:
5020         * linespec.c (decode_line_1): Parse `function:label' linespecs.
5021         (decode_compound): Update.
5022         (find_function_symbol): New function.
5023         (decode_dollar): Update.
5024         (decode_label): Add 'function_symbol' parameter.  Handle
5025         function-relative labels.
5026         (decode_variable): Update.
5027         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
5028         not its line.  Set `special_display' and canonical name for
5029         labels.
5030
5031 2011-03-24  Tom Tromey  <tromey@redhat.com>
5032
5033         * linespec.h (struct linespec_result) <special_display>: New
5034         field.
5035         * breakpoint.h (struct breakpoint) <display_canonical>: New
5036         field.
5037         * breakpoint.c (print_breakpoint_location): Respect
5038         display_canonical.
5039         (create_breakpoint_sal): Add 'display_canonical' parameter.
5040         (create_breakpoints_sal): Update.
5041         (create_breakpoint): Update.
5042
5043 2011-03-24  Tom Tromey  <tromey@redhat.com>
5044
5045         * symtab.c (decode_line_spec): Update.
5046         * linespec.c (build_canonical_line_spec): Change type of
5047         'canonical'.
5048         (decode_line_2, decode_line_1, decode_objc, decode_compound)
5049         (find_method, decode_all_digits, decode_dollar, decode_label)
5050         (symbol_found): Likewise.
5051         (init_linespec_result): New function.
5052         * breakpoint.c (struct captured_parse_breakpoint_args)
5053         <canonical_p>: New field, replaces addr_string_p.
5054         (create_breakpoints_sal): Add 'canonical' parameter, replacing
5055         'addr_string'.
5056         (parse_breakpoint_sals): Likewise.
5057         (do_captured_parse_breakpoint): Update.
5058         (create_breakpoint): Use struct linespec_result.
5059         (until_break_command): Update.
5060         (breakpoint_re_set_one): Update.
5061         (decode_line_spec_1): Update.
5062         * linespec.h (struct linespec_result): New.
5063         (init_linespec_result): Declare.
5064
5065 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
5066
5067         * regcache.c (regcache_raw_read): If the target didn't supply a
5068         given raw register, mark it as unavailable.
5069
5070 2011-03-23  Kai Tietz  <ktietz@redhat.com>
5071
5072         * breakpoint.c (clear_command): Use filename_cmp
5073         instead of strcmp for comparison.
5074         * buildsym.c (watch_main_source_file_lossage): Likewise.
5075         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5076         checking just for slash.
5077         * dbxread.c (read_dbx_symtab): Use lbasename instead of
5078         strrchr and filename_cmp instead of strcmp for filenames.
5079         (add_old_header_file): Use filename_cmp
5080         instead of strcmp for comparison.
5081         * exec.c (exec_set_section_address): Likewise.
5082         * macrotab.c (macro_lookup_inclusion): Likewise.
5083         (macro_lookup_inclusion): Likewise.
5084         * elfread.c (_initialize_elfread): Likewise.
5085         (elfstab_offset_sections): Likewise.
5086         (elfstab_offset_sections): Use lbasename instead of
5087         strrchr.
5088         * mdebugread.c (parse_partial_symbols): Likewise.
5089         (arse_partial_symbols): Use filename_(n)cmp instead of
5090         str(n)cmp for comparison.
5091         * minsyms.c (lookup_minimal_symbol): Likewise.
5092         * psymtab.c (read_psymtabs_with_filename): Likewise.
5093         * solib.c (solib_read_symbols): Likewise.
5094         (reload_shared_libraries_1): Likewise.
5095         * symmisc.c (maintenance_print_symbols): Likewise.
5096         * symfile.c (separate_debug_file_exists): Likewise.
5097         (reread_symbols): Likewise.
5098         (find_separate_debug_file_by_debuglink): Likewise.
5099         * remote-fileio.c (remote_fileio_func_rename): Likewise.
5100         * source.c (add_path): Likewise.
5101         * symtab.c (filename_seen): Likewise.
5102         (file_matches): Likewise.
5103         (print_symbol_info): Likewise.
5104         (maybe_add_partial_symtab_filename): Likewise.
5105         (make_source_files_completion_list): Likewise.
5106         * xml-syscall.c (init_sysinfo): Likewise.
5107         * windows-nat.c (_initialize_check_for_gdb_ini): Use
5108         IS_DIR_SEPARATOR for checking for trailing path separator.
5109
5110 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5111
5112         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
5113         label abort_expression.
5114         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5115         DWARF_VALUE_OPTIMIZED_OUT.
5116
5117 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5118
5119         Code cleanup.
5120         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5121         to linkage_name.  Invert its value.  Update the function comment.
5122         (c_type_print_varspec_suffix): Invert it at the caller.
5123         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5124
5125 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
5126
5127         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5128         errors when reading the `stop_pc'.
5129         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5130         get_frame_pc.
5131
5132 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
5133
5134         * NEWS: Document gdb.Write stream keyword.
5135
5136 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5137
5138         Revert:
5139         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5140         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5141         (dwarf2_add_field): Fix new_field->accessibility for
5142         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5143
5144 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
5145
5146         PR python/12183
5147
5148         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5149         other error classes.  Do not print stack trace.
5150
5151 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5152
5153         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5154         (dwarf2_add_field): Fix new_field->accessibility for
5155         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5156
5157 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
5158
5159         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5160         encountering a load via a non-SP register.
5161
5162 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
5163
5164         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5165         field in returned unwinder.
5166
5167 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5168
5169         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5170
5171 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
5172
5173         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5174         of xmalloc.
5175
5176 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
5177
5178         * frame.c (frame_unwind_register): Throw an error if unwinding the
5179         register failed.
5180         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5181         an unwind stop reason.
5182         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5183         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5184         UNWIND_UNAVAILABLE>: New.
5185         * inline-frame.c (inline_frame_unwind): Install
5186         default_frame_unwind_stop_reason.
5187         * frame-unwind.c: Include "exceptions.h".
5188         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5189         (default_frame_unwind_stop_reason): New.
5190         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5191         (default_frame_unwind_stop_reason): Declare.
5192         (struct frame_unwind) <stop_reason>: New function pointer.
5193
5194         * dummy-frame.c: Install default_frame_unwind_stop_reason.
5195         * dwarf2-frame.c: Include exceptions.h.
5196         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5197         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5198         computing the CFA.  If such an error was thrown, set
5199         unavailable_retaddr.
5200         (dwarf2_frame_unwind_stop_reason): New.
5201         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5202         unavailable.
5203         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5204         (dwarf2_signal_frame_unwind): Ditto.
5205
5206         * amd64-tdep.c: Include "exceptions.h".
5207         (struct amd64_frame_cache): New field "base_p".
5208         (amd64_init_frame_cache): Clear it.
5209         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5210         Avoid reading registers with functions that throw if the register
5211         is not necessary to compute the frame base.
5212         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5213         swallowing NOT_AVAILABLE_ERROR.
5214         (amd64_frame_unwind_stop_reason): New.
5215         (amd64_frame_this_id): Don't build a frame id if the frame base
5216         was unavailable.
5217         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5218         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5219         base_p if the frame base was computable.
5220         (amd64_sigtramp_frame_unwind_stop_reason): New.
5221         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5222         frame base was unavailable.
5223         (amd64_sigtramp_frame_unwind): Install
5224         amd64_sigtramp_frame_unwind_stop_reason.
5225         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5226         base_p if the frame base was computable.
5227         (amd64_epilogue_frame_unwind_stop_reason): New.
5228         (amd64_epilogue_frame_this_id): Don't build a frame id if the
5229         frame base was unavailable.
5230         (amd64_epilogue_frame_unwind): Install
5231         amd64_epilogue_frame_unwind_stop_reason.
5232         * i386-tdep.c: Include "exceptions.h".
5233         (struct i386_frame_cache): New field "base_p".
5234         (i386_init_frame_cache): Clear it.
5235         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5236         Avoid reading registers with functions that throw if the register
5237         is not necessary to compute the frame base.
5238         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5239         swallowing NOT_AVAILABLE_ERROR.
5240         (i386_frame_unwind_stop_reason): New.
5241         (i386_frame_this_id): Don't build a frame id if the frame base was
5242         unavailable.
5243         (i386_frame_prev_register): Handle unavailable SP.
5244         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5245         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5246         base_p if the frame base was computable.
5247         (i386_epilogue_frame_unwind_stop_reason): New.
5248         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5249         base was unavailable.
5250         (i386_epilogue_frame_unwind): Install
5251         i386_epilogue_frame_unwind_stop_reason.
5252         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5253         base_p if the frame base was computable.
5254         (i386_sigtramp_frame_unwind_stop_reason): New.
5255         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5256         base was unavailable.
5257         (i386_sigtramp_frame_unwind): Install
5258         i386_sigtramp_frame_unwind_stop_reason.
5259         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5260         type's size, not the register's.
5261         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5262
5263         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5264         default_frame_unwind_stop_reason.
5265         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5266         (alpha_heuristic_frame_unwind): Ditto.
5267         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5268         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5269         * avr-tdep.c (avr_frame_unwind): Ditto.
5270         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5271         Ditto.
5272         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5273         * frv-tdep.c (frv_frame_unwind): Ditto.
5274         * h8300-tdep.c (h8300_frame_unwind): Ditto.
5275         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5276         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5277         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5278         (hppa_stub_frame_unwind): Ditto.
5279         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5280         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5281         (ia64_libunwind_frame_unwind)
5282         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5283         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5284         * lm32-tdep.c (lm32_frame_unwind): Ditto.
5285         * m32c-tdep.c (m32c_unwind): Ditto.
5286         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5287         * m32r-tdep.c (m32r_frame_unwind): Ditto.
5288         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5289         * m68k-tdep.c (m68k_frame_unwind): Ditto.
5290         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5291         * m88k-tdep.c (m88k_frame_unwind): Ditto.
5292         * mep-tdep.c (mep_frame_unwind): Ditto.
5293         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5294         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5295         (mips_stub_frame_unwind): Ditto.
5296         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5297         * moxie-tdep.c (moxie_frame_unwind): Ditto.
5298         * mt-tdep.c (mt_frame_unwind): Ditto.
5299         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5300         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5301         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5302         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5303         (s390_sigtramp_frame_unwind): Ditto.
5304         * score-tdep.c (score_prologue_unwind): Ditto.
5305         * sh-tdep.c (sh_frame_unwind): Ditto.
5306         * sh64-tdep.c (sh64_frame_unwind): Ditto.
5307         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5308         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5309         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5310         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5311         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5312         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5313         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5314         (sparc64obsd_trapframe_unwind): Ditto.
5315         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5316         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5317         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5318         * v850-tdep.c (v850_frame_unwind): Ditto.
5319         * vax-tdep.c (vax_frame_unwind): Ditto.
5320         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5321         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5322         * xtensa-tdep.c (xtensa_unwind): Ditto.
5323
5324 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5325
5326         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5327         there's always a frame.  Use get_frame_pc_if_available instead of
5328         get_frame_pc, and if there's no PC available, don't look up a
5329         symtab.
5330
5331 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5332
5333         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5334         unavailable PC.
5335
5336 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5337
5338         * tracepoint.c (set_traceframe_context): Handle unavailable PC
5339         gracefully.
5340
5341 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5342
5343         * frame.h (frame_unwind_caller_pc_if_available): Declare.
5344         * frame.c (frame_unwind_caller_pc_if_available): New.
5345         * stack.c (frame_info): Handle unavailable PC.
5346
5347 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5348
5349         * frame.c (frame_unwind_pc): Rename to ...
5350         (frame_unwind_pc_if_available): ... this.  New `pc' output
5351         parameter.  Change return type to int.  Gracefully handle
5352         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
5353         happened, or 1 otherwise.
5354         (frame_unwind_pc): Reimplement on top of
5355         frame_unwind_pc_if_available.
5356         (get_frame_func): Rename to ...
5357         (get_frame_func_if_available): New `pc' output parameter.  Change
5358         return type to int.  Gracefully handle the PC not being available.
5359         (get_frame_func): Reimplement on top of
5360         get_frame_func_if_available.
5361         (select_frame): Handle the PC being unavailable.
5362         (get_prev_frame): Handle the PC being unavailable.
5363         (get_frame_pc_if_available): New.
5364         (get_frame_address_in_block_if_available): New.
5365         (find_frame_sal): Handle the frame PC not being available.
5366         * frame.h (get_frame_pc_if_available): Declare.
5367         (get_frame_address_in_block_if_available): Declare.
5368         (get_frame_func_if_available): Declare.
5369         * stack.c (print_frame_info): Handle the PC being unavailable.
5370         (find_frame_funname): Ditto.
5371         (print_frame): Handle the PC being unavailable.
5372         (get_frame_language): Ditto.
5373         * blockframe.c (get_frame_block): Ditto.
5374         * macroscope.c (default_macro_scope): Ditto.
5375         * tui/tui-stack.c (tui_show_frame_info): Ditto.
5376
5377 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5378
5379         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5380         NOT_AVAILABLE_ERROR when evaluating the location expression.
5381
5382 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5383
5384         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5385         returning that the register piece is unavailable/optimized out.
5386         (write_pieced_value): Handle get_frame_register_bytes returning
5387         that the register piece is unavailable/optimized out when doing a
5388         read-modify write of a bitfield.
5389         * findvar.c (value_from_register): Handle get_frame_register_bytes
5390         returning that the register piece is unavailable/optimized out.
5391         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5392         and `unavailablep'.  Throw error on bad debug info.  Use
5393         frame_register instead of frame_register_read, to fill in the new
5394         arguments.
5395         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5396         and `unavailablep'.
5397         * valops.c: (value_assign): Adjust, and handle
5398         get_frame_register_bytes failing.
5399         * spu-tdep.c: Include exceptions.h.
5400         (spu_software_single_step): Adjust, and handle
5401         get_frame_register_bytes failing.
5402         (spu_get_longjmp_target): Ditto.
5403         * gdbarch.sh (register_to_value): Change to return int.  New
5404         parameters `optimizedp' and `unavailablep'.
5405         * gdbarch.h, gdbarch.c: Regenerate.
5406         * i386-tdep.c (i386_register_to_value): Adjust to new
5407         gdbarch_register_to_value interface.
5408         * i387-tdep.c (i387_register_to_value): Ditto.
5409         * i387-tdep.h (i387_register_to_value): Ditto.
5410         * alpha-tdep.c (alpha_register_to_value): Ditto.
5411         * ia64-tdep.c (ia64_register_to_value): Ditto.
5412         * m68k-tdep.c (m68k_register_to_value): Ditto.
5413         * mips-tdep.c (mips_register_to_value): Ditto.
5414         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5415
5416 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5417
5418         * findvar.c (value_of_register): Mark the value as unavailable, if
5419         the register is unavailable.
5420         * frame.h (frame_register_unwind): New `unavailablep' parameter.
5421         (frame_register): New `unavailablep' parameter.
5422         (frame_register_read): Update comment.
5423         * frame.c (frame_register_unwind): New `unavailablep' parameter.
5424         Set it if the register is unavailable.  If the register is
5425         unavailable, clear the output buffer.
5426         (frame_register): New `unavailablep' parameter.  Pass it down.
5427         (frame_unwind_register): Adjust.
5428         (put_frame_register): Adjust.
5429         (frame_register_read): Adjust.  Also return false if the register
5430         is not available.
5431         (frame_register_unwind_location): Adjust.
5432         * sentinel-frame.c (sentinel_frame_prev_register): If the register
5433         is unavailable, mark the value accordingly.
5434         * stack.c (frame_info): Handle unavailable registers.
5435
5436 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5437
5438         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5439         simplify, using regcache_cooked_read.
5440
5441 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5442
5443         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5444         (regcache_raw_read_unsigned, regcache_raw_read_signed)
5445         (regcache_raw_read_unsigned, regcache_raw_read_part)
5446         (regcache_cooked_read, regcache_cooked_read_signed)
5447         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5448         (regcache_cooked_read_ftype): Change return to enum
5449         register_status.
5450         * regcache.c: Include exceptions.h
5451         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5452         (do_cooked_read): Change return to enum register_status.  Always
5453         forward to regcache_cooked_read.
5454         (regcache_raw_read): Change return to enum register_status.  If
5455         the register is not REG_VALID, memset the buffer.  Return the
5456         register's status.
5457         (regcache_raw_read_signed): Handle non-REG_VALID registers and
5458         return the register's status.
5459         (regcache_raw_read_unsigned): Ditto.
5460         (regcache_cooked_read): Change return to enum register_status.
5461         Assert that with read-only regcaches, the register's status must
5462         be known.  If the regcache is read-only, and the register is not
5463         REG_VALID, memset the buffer.  Return the register's status.
5464         (regcache_cooked_read_signed): Change return to enum
5465         register_status.  Handle non-REG_VALID registers and return the
5466         register's status.
5467         (regcache_cooked_read_unsigned): Change return to enum
5468         register_status.  Handle non-REG_VALID registers and return the
5469         register's status.
5470         (regcache_xfer_part, regcache_raw_read_part)
5471         (regcache_cooked_read_part): Change return to enum
5472         register_status.  Return the register's status.
5473         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5474         unavailable.
5475         (regcache_dump): Handle unavailable cooked registers.
5476         * frame.c (do_frame_register_read): Adjust interface to match
5477         regcache_cooked_read_ftype.
5478         * gdbarch.sh (pseudo_register_read): Change return to enum
5479         register_status.
5480         * gdbarch.h, gdbarch.c: Regenerate.
5481
5482         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5483         register_status.
5484         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5485         register_status.  If reading a raw register indicates the raw
5486         register is not valid, return the raw register's status,
5487         otherwise, return REG_VALID.
5488         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5489         register_status.  Handle non-REG_VALID raw registers and return
5490         the register's status.
5491         * arm-tdep.c (arm_neon_quad_read)
5492         (arm_pseudo_read): Change return to enum register_status.  Handle
5493         non-REG_VALID raw registers and return the register's status.
5494         * avr-tdep.c (avr_pseudo_register_read): Ditto.
5495         * frv-tdep.c (frv_pseudo_register_read): Ditto.
5496         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5497         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5498         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5499         register_status.
5500         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5501         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5502         (m32c_part_write, m32c_cat_read, m32c_cat_write)
5503         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5504         (m32c_pseudo_register_read): Change return to enum
5505         register_status.  Adjust.
5506         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5507         enum register_status.  Return the register's status.
5508         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5509         register_status.  Return the register's status.
5510         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5511         * mips-tdep.c (mips_pseudo_register_read): Ditto.
5512         * mt-tdep.c (mt_pseudo_register_read): Ditto.
5513         * rs6000-tdep.c (move_ev_register_func): New typedef.
5514         (e500_move_ev_register): Use it.  Change return to enum
5515         register_status.  Return the register's status.
5516         (do_regcache_raw_read): New function.
5517         (do_regcache_raw_write): New function.
5518         (e500_pseudo_register_read): Change return to enum
5519         register_status.  Return the register's status.  Use
5520         do_regcache_raw_read.
5521         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
5522         (dfp_pseudo_register_read): Change return to enum register_status.
5523         Return the register's status.
5524         (vsx_pseudo_register_read): Ditto.
5525         (efpr_pseudo_register_read): Ditto.
5526         (rs6000_pseudo_register_read): Ditto.
5527         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5528         register_status.  Return the register's status.
5529         * sh64-tdep.c (pseudo_register_read_portions): New function.
5530         (sh64_pseudo_register_read): Change return to enum
5531         register_status.  Use pseudo_register_read_portions.  Return the
5532         register's status.
5533         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5534         register_status.  Return the register's status.
5535         * sh-tdep.c (pseudo_register_read_portions): New function.
5536         (sh_pseudo_register_read): Change return to enum register_status.
5537         Use pseudo_register_read_portions.  Return the register's status.
5538         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5539         enum register_status.  Return the register's status.
5540         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5541         * spu-tdep.c (spu_pseudo_register_read_spu)
5542         (spu_pseudo_register_read): Ditto.
5543         * xtensa-tdep.c (xtensa_register_read_masked)
5544         (xtensa_pseudo_register_read): Ditto.
5545         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5546
5547 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5548
5549         * python/py-value.c (valpy_getitem): Fix formatting of error function
5550         call.
5551
5552 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5553
5554         ARI fixes: Add missing internationalization markups throughout
5555         C source files.
5556         * darwin-nat-info.c: Ditto.
5557         * record.c: Ditto.
5558         * remote.c: Ditto.
5559         * mi/mi-main.c: Ditto.
5560
5561 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5562
5563         ARI fixes: Add missing internationalization markups throughout
5564         yacc files.
5565         * c-exp.y: Ditto.
5566         * cp-name-parser.y: Ditto.
5567         * f-exp.y: Ditto.
5568         * m2-exp.y: Ditto.
5569         * objc-exp.y: Ditto.
5570         * p-exp.y: Ditto.
5571
5572 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5573
5574         ARI fixes: Messages should have no trailing new lines.
5575         * darwin-nat.c (mach_check_error): Remove trailing new line from
5576         warning function call message.
5577         * record.c (bfdcore_read): Idem for error call.
5578
5579 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5580
5581         * common/signals.c (target_signal_from_host): Add _ markup to error
5582         function call message.
5583         (target_signal_to_host): Add _ markup and remove trailing new line
5584         from warning call message.
5585         (target_signal_from_command): Add _ markup to error function call
5586         message.
5587
5588 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
5589
5590         PR python/12149
5591
5592         * python/python.c (gdbpy_write): Accept a stream argument and
5593         operate to the appropriate stream.
5594         (gdbpy_flush): Likewise.
5595         (_initialize_python): Add stream constants.
5596         (finish_python_initialization): Add GdbOutputErrorFile class.
5597
5598 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
5599
5600         * MAINTAINERS: Add myself as a write-after-approval maintainer.
5601
5602 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
5603
5604         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5605         to store_signed_integer.  Add debug message when relocating CALL
5606         instructions.  Fix formatting of debug message.
5607         * i386-tdep.c (i386_relocate_instruction): Ditto.
5608
5609 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
5610
5611         * target.h (struct target_ops): Remove to_lookup_symbol field.
5612         (target_lookup_symbol): Delete macro.
5613         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5614         (update_current_target, setup_target_debug): Remove handling
5615         of to_lookup_symbol target_ops field.
5616         * ada-tasks.c (get_known_tasks_addr): Remove use of
5617         target_lookup_symbol.
5618         * coffread.c (coff_symtab_read): Likewise.
5619         * dbxread.c (read_dbx_symtab): Ditto.
5620
5621 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
5622
5623         PR gdb/12116:
5624         * configure.ac: Add getthrds declaration check.
5625         * configure, config.in: Regenerate.
5626         * aix-thread.c (getthrds): Declare only if not already declared
5627         in procinfo.h.  More declaration out of get_signaled_thread to
5628         global scope.
5629
5630 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
5631
5632         * python/py-symtab.c: Populate symtab_object_methods,
5633         sal_object_methods.
5634         (stpy_is_valid): New function.
5635         (salpy_is_valid): Ditto.
5636         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
5637         (sympy_is_valid): New function.
5638         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
5639         (objfpy_is_valid): New function.
5640         * python/py-inferior.c: Populate inferior_object_methods.
5641         (infpy_is_valid): New function.
5642         * python/py-infthread.c: Populate thread_object_methods.
5643         (thpy_is_valid): New function.
5644         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
5645         block_iterator_object_methods.  Populate.
5646         (blpy_is_valid): New function.
5647         (blpy_iter_is_valid): Ditto.
5648
5649 2011-03-16  Keith Seitz  <keiths@redhat.com>
5650
5651         * linespec.c (find_methods): Canonicalize NAME before looking
5652         up the symbol.
5653         (name_end): New function.
5654         (keep_name_info): New function.
5655         (decode_line_1): Use keep_name_info.
5656         (decode_compound): Likewise.
5657         * cli/cli-utils.h (remove_trailing_whitespace): New function.
5658         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5659
5660         PR c++/12273
5661         * linespec.c (locate_first_half): Keep overload information, too.
5662         (decode_compound): Use a string to represent break characters
5663         to escape the loop.
5664         If P points to a break character, do not increment it.
5665         For C++ and Java, keep overload information and relevant keywords.
5666         If we cannot find a symbol, search the minimal symbols.
5667
5668         PR c++/11734
5669         * linespec.c (decode_compound): Rename SAVED_ARG to
5670         THE_REAL_SAVED_ARG.
5671         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5672         single-quotes.
5673         Pass a valid block to lookup_symbol.
5674         (lookup_prefix_sym): Likewise.
5675         (find_method): Construct search name based on SYM_CLASS instead
5676         of SAVED_ARG.
5677         * psymtab.c (lookup_partial_symbol): Add language parameter.
5678         (lookup_symbol_aux_psymtabs): Likewise.
5679         Don't assume that the psymtab we found was the right one. Search
5680         for the desired symbol in the symtab to be certain.
5681         (psymtab_search_name): New function.
5682         (lookup_partial_symbol): Use psymtab_search_name.
5683         Add language parameter.
5684         (read_symtabs_for_function): Add language parameter and pass to
5685         lookup_partial_symbol.
5686         (find_symbol_file_from_partial): Likewise.
5687
5688 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5689
5690         PR gdb/12528
5691         * dwarf2read.c (noop_record_line): New function.
5692         (dwarf_decode_lines): Ignore line tables for GCd functions.
5693
5694 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
5695
5696         Fix ARI warnings about new lines at the end of messages, which
5697         are unneeded as there is a new line added at the end of the message
5698         automatically.
5699         * darwin-nat.c (darwin_stop_inferior): Ditto.
5700         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5701         * dfp.c (decimal_to_number): Ditto.
5702         * exec.c (print_section_info): Ditto.
5703         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5704         * osdata.c (get_osdata): Ditto.
5705         * record.c (bfdcore_write): Ditto.
5706         * remote-mips.c (mips_readchar): Ditto.
5707         * remote.c (read_ptid): Ditto.
5708         * ser-mingw.c (ser_windows_raw): Ditto.
5709         * tracepoint.c (add_local_symbols): Ditto.
5710         * windows-nat.c (fake_create_process): Ditto.
5711
5712 2011-03-16  Tom Tromey  <tromey@redhat.com>
5713
5714         * tracepoint.c (stop_tracing): Don't declare.
5715         * event-top.c (after_char_processing_hook): Add `(void)'.
5716
5717 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
5718
5719         * NEWS: Add Parameter sub-classing description.
5720
5721 2011-03-16  Kai Tietz  <ktietz@redhat.com>
5722
5723         * MAINTAINERS: Update my e-mail address.
5724
5725 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
5726
5727         * MAINTAINERS: Add myself for write after approval privileges.
5728
5729 2011-03-15  Michael Snyder  <msnyder@vmware.com>
5730
5731         * frame.c (find_frame_sal): Assert sym is not null.
5732
5733         * dbxread.c (process_one_symbol): Assert 'name' is not null.
5734
5735         * objc-lang.c (selectors_info): Check strchr for null result.
5736
5737         * stabsread.c (define_symbol): Guard against bad stabstring input.
5738
5739 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
5740
5741         Remove trailing spaces and tabulations from pascal language
5742         support sources.
5743         p-exp.y: Ditto.
5744         p-lang.c: Ditto.
5745         p-lang.h: Ditto.
5746         p-valprint.c: Ditto.
5747
5748 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5749
5750         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5751         than LOW.  Comment it.
5752         (read_partial_die): Call complaint for inappropriate zero LOWPC or
5753         HIGHPC not strictly higher than LOWPC.
5754
5755 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
5756
5757         Fix formatting of function declarations returning a pointer in
5758         previous commit.
5759         * varobj.c (varobj_add_child): Ditto.
5760         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5761         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5762
5763 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
5764
5765         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5766         for the "generic" vector ABI used with GCC 4.3 and later.
5767         (ppc64_sysv_abi_return_value): Likewise.
5768
5769 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
5770
5771         * infcall.c (call_function_by_hand): Function return value is
5772         always a non_lval, even when using struct_return.
5773
5774 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
5775
5776         * printcmd.c (ALL_DISPLAYS_SAFE): New.
5777         (map_display_numbers): New.
5778         (do_delete_display): New.
5779         (undisplay_command): Use map_display_numbers.
5780         (do_enable_disable_display): New.
5781         (enable_disable_display_command): New function.
5782         (enable_display): Delete.
5783         (enable_display_command): New.
5784         (disable_display_command): Reimplement.
5785         (_initialize_printcmd): Adjust "enable display" command to use
5786         `enable_display_command' as callback.
5787
5788 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
5789
5790         * NEWS: Add Python breakpoint 'stop' operation.
5791
5792 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
5793
5794         * NEWS: Delete duplicate entry. Fix typo.
5795
5796 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
5797
5798         Fix ARI warning about function names in first column.
5799         Put prototype declaration on same line as return type.
5800         * objc-exp.y: Ditto.
5801         * p-exp.y: Ditto.
5802         * python/py-stopevent.h: Ditto.
5803         For long function names, split parameters to
5804         allow function name on same line as return type.
5805         * solib-pa64.c: Ditto.
5806         * varobj.c: Ditto.
5807         * varobj.h: Ditto.
5808         For long function declaration, use single line.
5809         * hppa-tdep.h: Ditto.
5810         * inferior.h: Ditto.
5811
5812 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
5813
5814         * python/python.h: Declare gdbpy_should_stop and
5815         gdbpy_breakpoint_has_py_cond.
5816         * python/python.c: Add python.h to includes.  Remove python.h from
5817         HAVE_PYTHON definition
5818         (gdbpy_should_stop): New dummy function.
5819         (gdbpy_breakpoint_has_py_cond): New dummy function.
5820         * python/py-breakpoint.c (bppy_init): Rewrite to allow
5821         sub-classing capabilities.
5822         (gdbpy_should_stop): New function.
5823         (gdbpy_breakpoint_has_py_cond): New function.
5824         (local_setattro): New function.
5825         * breakpoint.c (condition_command): Add check for Python 'stop'
5826         operation.
5827         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5828         operation function as part of stop/continue tests.
5829
5830 2011-03-14  Tom Tromey  <tromey@redhat.com>
5831
5832         PR gdb/12576:
5833         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5834         (needs_frame_dwarf_call): Likewise.
5835
5836 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
5837
5838         Fix ARI warning about functions without parameters that do not
5839         use (void).
5840         * breakpoint.c (all_tracepoints): Replace () by (void).
5841         * f-exp.y (match_string_literal): Ditto.
5842         (yylex): Ditto.
5843         * m2-exp.y (yylex): Ditto.
5844         * mep-tdep.c (current_me_module): Ditto.
5845         (current_options): Ditto.
5846         (current_cop_data_bus_width): Ditto.
5847         (current_cr_names): Ditto.
5848         (current_cr_is_float): Ditto.
5849         (current_ccr_names): Ditto.
5850         * objc-exp.y (yylex): Ditto.
5851         * p-exp.y (yylex): Ditto.
5852         * remote.c (send_interrupt_sequence): Ditto.
5853         * tracepoint.c (current_trace_status): Ditto.
5854         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5855         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5856
5857 2011-03-11  Michael Snyder  <msnyder@vmware.com>
5858
5859         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5860         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5861         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5862         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5863         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5864
5865         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5866         (delete_async_event_handler): Ditto.
5867
5868         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5869
5870         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5871
5872         * top.c (set_verbose): Assert showcmd was found.
5873
5874 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
5875
5876         * xtensa-tdep.c (warning_once): Correct style issues.
5877
5878 2011-03-11  Yao Qi  <yao@codesourcery.com>
5879
5880         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5881
5882 2011-03-11  Andreas Schwab  <schwab@redhat.com>
5883
5884         * common/aclocal.m4: Remove.
5885
5886 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
5887
5888         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5889         (xtensa_write_register, xtensa_read_register): Likewise.
5890         (xtensa_hextochar): Removed.
5891         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5892
5893 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
5894
5895         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5896         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
5897         (xtensa_alloc_frame_cache): Add initialization for new fields.
5898         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5899         (warning_once): New function.
5900         (xtensa_insn_kind): New item c0opc_and.
5901         (call0_classify_opcode): Add the case for AND instruction.
5902         (call0_track_op): Change arguments.  New local variable litbase.
5903         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
5904         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5905         in the prologue.
5906         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5907         (call0_analyze_prologue): Update the comments.  Change arguments.
5908         Add the variety of updates to handle extended prologues, which now can
5909         conduct dynamic stack adjustments.
5910         (call0_frame_cache): Likewise.
5911         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5912         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5913
5914 2011-03-10  Michael Snyder  <msnyder@vmware.com>
5915
5916         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5917         (cmd_qtframe): Ditto.
5918         (cmd_qtbuffer): Ditto.
5919         (cmd_bigqtbuffer): Ditto.
5920
5921 2011-03-10  Tom Tromey  <tromey@redhat.com>
5922
5923         * tracepoint.c (trace_actions_command): Update.
5924         * thread.c (thread_apply_command): Update.
5925         * reverse.c (delete_bookmark_command): Update.
5926         (bookmarks_info): Update.
5927         * printcmd.c (undisplay_command): Update.
5928         * memattr.c (mem_enable_command): Update.
5929         (mem_disable_command): Update.
5930         (mem_delete_command): Update.
5931         * inferior.c (detach_inferior_command): Update.
5932         (kill_inferior_command): Update.
5933         (remove_inferior_command): Update.
5934         * cli/cli-utils.h (struct get_number_or_range_state): New.
5935         (init_number_or_range): Declare.
5936         (get_number_or_range): Update.
5937         * cli/cli-utils.c (init_number_or_range): New function.
5938         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
5939         static variables.
5940         (number_is_in_list): Update.
5941         * breakpoint.h (get_tracepoint_by_number): Update.
5942         * breakpoint.c (map_breakpoint_numbers): Update for change to
5943         get_number_or_range.
5944         (find_location_by_number): Use get_number, not
5945         get_number_or_range.
5946         (trace_pass_set_count): New function.
5947         (trace_pass_command): Update for change to get_number_or_range.
5948         Rework loop logic.
5949         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5950         'state' parameter.
5951
5952 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
5953
5954         * python/py-param.c (add_setshow_generic): Add set/show callback
5955         parameters.  Register Python object context.
5956         (get_show_value): New function.
5957         (get_set_value): New function.
5958         (call_doc_function): New function.
5959         (get_doc_string): Move behind get_show_value/get_set_value.
5960
5961 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
5962
5963         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5964
5965 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
5966
5967         * xtensa-tdep.c (xtensa_read_register): Add comment.
5968         (xtensa_write_register): Likewise.
5969         (xtensa_hextochar): Add comment and update to match coding conventions.
5970         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5971         (execute_l32e, execute_s32e, execute_code): Update comments.
5972         (xtensa_exception_handler_t): Update to match coding conventions.
5973         (xtensa_insn_kind): Likewise.
5974
5975 2011-03-09  Michael Snyder  <msnyder@vmware.com>
5976
5977         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5978
5979 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
5980
5981         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5982
5983 2011-03-09  Tom Tromey  <tromey@redhat.com>
5984
5985         * thread.c (restore_selected_frame): Handle frame_level == -1.
5986         (make_cleanup_restore_current_thread): Use
5987         get_selected_frame_if_set.
5988         * frame.h (get_selected_frame_if_set): Declare.
5989         * frame.c (get_selected_frame_if_set): New function.
5990
5991 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
5992
5993         * cli/cli-cmds.c (shell_escape): Use lbasename.
5994         * coffread.c (coff_start_symtab): Constify parameter.
5995         (complete_symtab): Constify `name' parameter.
5996         (coff_symtab_read): Constify `filestring' local.
5997         (coff_getfilename): Constify return and `result' local.
5998         Use lbasename.
5999         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6000         * linux-fork.c (info_checkpoints_command): Use lbasename.
6001         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6002         * minsyms.c (lookup_minimal_symbol): Use lbasename.
6003         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6004         * procfs.c (procfs_make_note_section): Use lbasename.
6005         * tui/tui-io.c (printable_part): Constity return and parameter.
6006         Use lbasename.
6007         (print_filename): Constify parameters, and local `s'.
6008         (tui_rl_display_match_list): Constify local `temp'.
6009
6010 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6011
6012         Revert:
6013         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6014         Fix DWARF-3+ DW_AT_accessibility default assumption.
6015         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6016         cu->header.version >= 3.
6017
6018 2011-03-09  Yao Qi  <yao@codesourcery.com>
6019
6020         * common/Makefile.in: Remove.
6021         * common/configure: Remove.
6022         * common/configure.ac: Remove.
6023
6024 2011-03-09  Yao Qi  <yao@codesourcery.com>
6025
6026         Revert:
6027         2011-02-11  Yao Qi  <yao@codesourcery.com>
6028
6029         * common/Makefile.in: Add copyright header.
6030
6031         2011-02-11  Yao Qi  <yao@codesourcery.com>
6032
6033         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
6034         libcommon.a.
6035         * configure.ac: Add common to sub dir.
6036         * configure: Regenerate.
6037
6038 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
6039
6040         * xtensa-tdep.c (call0_ret): New function.
6041         (xtensa_skip_prologue): Speed up analysis.
6042
6043 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
6044
6045         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6046         while executing MI command -data-list-changed-registers.
6047
6048 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
6049
6050         * xtensa-tdep.c (xtensa_read_register): New function.
6051         (xtensa_write_register): New function.
6052         (xtensa_find_register_by_name): New function.
6053         (xtensa_windowed_frame_cache): Update comments in type description.
6054         (xtensa_frame_cache): Likewise.
6055         (xtensa_window_interrupt_insn): New function.
6056         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6057         (xtensa_insn_kind): Add new instructions.
6058         (rwx_special_register): New function.
6059         (call0_classify_opcode): Add new instructions to the analysis.
6060         (a0_saved, a7_saved, a11_saved): New variables.
6061         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6062         (execute_l32e): New function.
6063         (execute_s32e): New function.
6064         (xtensa_exception_handler_t): New type.
6065         (execute_code): New function.
6066         (xtensa_window_interrupt_frame_cache): New function to conduct frame
6067         analysis for Xtensa Window Exception handlers.
6068
6069 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
6070
6071         * xtensa-tdep.c (TX_PS): New.
6072         (windowing_enabled): Update to count for Call0 ABI.
6073         (xtensa_hextochar): New.
6074         (xtensa_init_reggroups): Make algorithm generic.
6075         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6076
6077 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
6078
6079         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6080
6081 2011-03-08  Michael Snyder  <msnyder@vmware.com>
6082
6083         * i386-tdep.c (i386_follow_jump): Check return value of
6084         target_read_memory.
6085         (i386_analyze_struct_return): Ditto.
6086         (i386_skip_probe): Ditto.
6087         (i386_match_insn): Ditto.
6088         (i386_skip_noop): Ditto.
6089         (i386_analyze_frame_setup): Ditto.
6090         (i386_analyze_register_saves): Ditto.
6091         (i386_skip_prologue): Ditto.
6092         (i386_skip_main_prologue): Ditto.
6093
6094         * target.c (read_whatever_is_readable): Fix memory leak.
6095
6096         * i386-tdep.c (i386_process_record): Document fall through.
6097
6098 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6099
6100         Fix DWARF-3+ DW_AT_accessibility default assumption.
6101         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6102         cu->header.version >= 3.
6103
6104 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
6105
6106         * remote.c (remote_check_symbols): Skip if the target has no
6107         execution.
6108
6109 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
6110
6111         * target.c (read_whatever_is_readable): Reformat comment,
6112         with a minor typo fix. Minor reformatting of the code.
6113
6114 2011-03-08  Yao Qi  <yao@codesourcery.com>
6115
6116         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6117         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6118         Use cached result instead of calling displaced_in_arm_mode again.
6119         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6120         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6121         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6122         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6123         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6124         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6125         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6126         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6127         (cleanup_block_load_pc, copy_block_xfer): Likewise.
6128         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6129         (arm_catch_kernel_helper_return): Likewise.
6130         * gdb/arm-tdep.h : Update function declarations.
6131
6132 2011-03-07  Michael Snyder  <msnyder@vmware.com>
6133
6134         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6135
6136         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6137
6138         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6139
6140         * elfread.c (elf_symtab_read): Stop memory leak.
6141
6142         * main.c (captured_main): Fix memory leak.
6143
6144 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
6145
6146         * ada-lang.c (compare_names): Call is_name_suffix with string1
6147         instead of string2.
6148
6149 2011-03-07  Tom Tromey  <tromey@redhat.com>
6150
6151         * xcoffread.c (xcoff_sym_fns): Update.
6152         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6153         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6154         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6155         (symbol_file_add_with_addrs_or_offsets): Likewise.
6156         (reread_symbols): Handle OBJF_PSYMTABS_READ.
6157         * somread.c (som_sym_fns): Update.
6158         * psymtab.h (require_partial_symbols): Declare.
6159         * psymtab.c (require_partial_symbols): New function.
6160         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6161         (ALL_OBJFILE_PSYMTABS): Undef.
6162         (ALL_PSYMTABS): Move from psympriv.h.
6163         (lookup_partial_symtab, find_pc_sect_psymtab)
6164         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6165         (find_last_source_symtab_from_partial)
6166         (forget_cached_source_info_partial)
6167         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6168         (expand_partial_symbol_tables, read_psymtabs_with_filename)
6169         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6170         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6171         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6172         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6173         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6174         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6175         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6176         psymtabs.
6177         * mipsread.c (ecoff_sym_fns): Update.
6178         * machoread.c (macho_sym_fns): Update.
6179         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6180         (read_psyms): New function.
6181         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6182         (elf_sym_fns_lazy_psyms): New global.
6183         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6184         dwarf2_build_psymtabs.
6185         * dbxread.c (aout_sym_fns): Update.
6186         * coffread.c (coff_sym_fns): Update.
6187
6188 2011-03-07  Tom Tromey  <tromey@redhat.com>
6189
6190         * infrun.c (print_exited_reason): Include inferior id and pid in
6191         message.
6192
6193 2011-03-07  Tom Tromey  <tromey@redhat.com>
6194
6195         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6196         parameter.
6197         (target_has_execution_1): Update.
6198         (target_has_execution_current): Declare.
6199         (target_has_execution): Call target_has_execution_current.
6200         (default_child_has_execution): Update.
6201         * target.c (default_child_has_execution): Add 'the_ptid'
6202         parameter.
6203         (target_has_execution_1): Likewise.
6204         (target_has_execution_current): New function.
6205         (add_target): Update.
6206         (init_dummy_target): Update.
6207         * remote-m32r-sdi.c (m32r_has_execution): New function.
6208         (init_m32r_ops): Use it.
6209         * record.c (record_core_has_execution): Now static.  Add
6210         'the_ptid' parameter.
6211         * inferior.c (have_live_inferiors): Don't save current thread.
6212         Use target_has_execution_1.
6213
6214 2011-03-07  Yao Qi  <yao@codesourcery.com>
6215
6216         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6217
6218 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
6219
6220         * elfread.c (elf_symtab_read): Minor reformatting.
6221
6222 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
6223
6224         * objc-lang.c (selectors_info): Minor reformatting.
6225
6226 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
6227
6228         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6229
6230 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
6231             Michael Snyder  <msnyder@vmware.com>
6232
6233         * ada-valprint.c (ada_val_print_array): Move the declaration of
6234         "byte_order" and "elttype" inside the block where these variables
6235         are actually used.  Remove some special handling for the case
6236         where "elttype" and "eltlen" are null.  Replace by a comment
6237         and a couple of assertion checks.
6238
6239 2011-03-05  Michael Snyder  <msnyder@vmware.com>
6240
6241         * source.c (add_path): Replace semicolon at end of block.
6242         * dwarf2expr.c (execute_stack_op): Ditto.
6243
6244 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
6245
6246         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6247         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6248         (bfin-*-*): Likewise.
6249
6250 2011-03-05  Michael Snyder  <msnyder@vmware.com>
6251
6252         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6253         * mdebugread.c (parse_symbol): Ditto.
6254         * parse.c (parse_exp_in_context): Ditto.
6255         * source.c (add_path): Ditto.
6256         * utils.c (gnu_debuglink_crc32): Ditto.
6257         * varobj.c (variable_language): Ditto.
6258
6259         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6260
6261 2011-03-04  Michael Snyder  <msnyder@vmware.com>
6262
6263         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6264
6265         * symfile.c (simple_overlay_update): Check for null return value
6266         from lookup_minimal_symbol.
6267
6268         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6269
6270 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6271
6272         * eval.c (parse_and_eval_address_1): Remove function.
6273         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6274         instead of parse_and_eval_address_1.
6275         * value.h (parse_and_eval_address_1): Remove prototype.
6276
6277 2011-03-04  Michael Snyder  <msnyder@vmware.com>
6278
6279         * remote.c (putpkt_binary): Document that case stmt falls through.
6280
6281 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6282
6283         * breakpointc (print_it_typical): Move NULL check from here...
6284         (print_bp_stop_message): ... to here.
6285
6286 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
6287
6288         * breakpoint.c (enable_command): Use break instead of continue,
6289         and fill in a missing break.
6290         (disable_command): Ditto.
6291
6292 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
6293
6294         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6295         (terminal_save_ours): Remove misleading comment.
6296         (inflow_inferior_data_cleanup): Free ttystate.
6297         (inflow_inferior_exit): Likewise.
6298         (copy_terminal_info): Copy ttystate.
6299
6300         * serial.c (serial_copy_tty_state): New function.
6301         * serial.h (serial_copy_tty_state): Add prototype.
6302         (struct serial_ops): Add copy_tty_state callback.
6303         * ser-base.c (ser_base_copy_tty_state): New function.
6304         * ser-base.h (ser_base_copy_tty_state): Add prototype.
6305         * ser-go32.c (dos_copy_tty_state): New function.
6306         (dos_ops): Install copy_tty_state callback.
6307         * ser-mingw.c (_initialize_ser_windows): Likewise.
6308         * ser-pipe.c (_initialize_ser_pipe): Likewise.
6309         * ser-unix.c (hardwire_copy_tty_state): New function.
6310         (_initialize_ser_hardwire): Install it.
6311
6312 2011-03-04  Michael Snyder  <msnyder@vmware.com>
6313
6314         * breakpoint.c (create_breakpoint): Add missing break statement.
6315
6316         Reverting this patch:
6317         * infcall.c (call_function_by_hand): Add break statements for lint.
6318
6319         Reverting this patch:
6320         * cli/cli-script.c (script_from_file): Add break for lint.
6321
6322 2011-03-04  Michael Snyder  <msnyder@vmware.com>
6323
6324         * solib.c (reload_shared_libraries_1): Close memory leak.
6325
6326 2011-03-03  Tom Tromey  <tromey@redhat.com>
6327
6328         PR gdb/12538:
6329         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6330         DW_STRING is NULL.
6331
6332 2011-03-03  Michael Snyder  <msnyder@vmware.com>
6333
6334         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6335         fields of struct 'st' to zero.
6336
6337         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6338         sal.pspace before calling set_current_source_symtab_and_line.
6339
6340 2011-03-03  Yao Qi  <yao@codesourcery.com>
6341
6342         * Makefile.in (configure-common): Remove.  Let Makefile
6343         in dir common to rebuild itself.
6344         (common/Makefile): Likewise.
6345
6346 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
6347
6348         * utils.c (parse_escape): Add i18n markup in error message.
6349
6350 2011-03-03  Yao Qi  <yao@codesourcery.com>
6351
6352         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6353         ARM_PC_REGNUM.
6354         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6355         (displaced_write_reg, displaced_read_reg): Likewise.
6356         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6357         (cleanup_block_load_pc, copy_block_xfer): Likewise.
6358         (cleanup_branch): Replace magic number 14 and 15 with
6359         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6360
6361 2011-03-02  Michael Snyder  <msnyder@vmware.com>
6362
6363         * maint.c (maintenance_do_deprecate): No need to check for NULL.
6364
6365         * cli/cli-script.c (script_from_file): Add break for lint.
6366
6367         * mdebugread.c (parse_partial_symbols): Fix indent.
6368
6369         * target-descriptions.c (tdesc_gdb_type): No need to call
6370         xstrdup, callee saves a copy.
6371
6372         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6373
6374         * infcall.c (call_function_by_hand): Add break statements for lint.
6375
6376         * utils.c (parse_escape): Escape the escape char.
6377
6378         * python/py-inferior.c (build_inferior_list): Error out if
6379         PyList_Append fails.
6380         (gdbpy_inferiors): Error out if build_inferior_list fails.
6381
6382         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6383         a function call.
6384
6385         * record.c (record_restore): Move printf to before error return.
6386
6387 2011-03-02  Yao Qi  <yao@codesourcery.com>
6388
6389         * arm-tdep.h (struct displaced_step_closure): Add two new fields
6390         is_thumb and insn_size.
6391         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6392         on both ARM and Thumb mode.
6393         (arm_process_displaced_insn): Set is_thumb and insn_size.
6394         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6395         (arm_displaced_step_fixup): Likewise.
6396
6397 2011-03-01  Michael Snyder  <msnyder@vmware.com>
6398
6399         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6400
6401         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6402
6403         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6404
6405         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6406
6407         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6408         with xmalloc.
6409
6410         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6411         which shadows function parameter.
6412
6413         * tracepoint.c (create_tsv_from_upload): Superfluous call
6414         to xstrdup.  Callee already calls xstrdup.
6415
6416         * linespec.c (decode_line_1): Remove unnecessary null check.
6417
6418         * tracepoint.c (scope_info): Fix mem leak, remove underused
6419         variable.
6420
6421         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6422         superfluous null check.
6423
6424         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6425         (value_of_builtin_frame_fp_reg): Ditto.
6426
6427         * event-top.c (display_gdb_prompt): Remove superfluous null check.
6428
6429         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6430         be null.
6431
6432         * linespec.c (decode_line_1): Check for null before dereference.
6433
6434         * reverse.c (record_restore): Move null-check to before pointer
6435         dereference.
6436
6437         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6438
6439         * objc-lang.c (selectors_info): Add explanitory comment.
6440         (classes_info): Ditto.
6441
6442 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
6443
6444         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6445         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6446         versions of the trampoline.  Handle Thumb vs. ARM addresses.
6447         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6448         (arm_linux_init_abi): Install it.
6449         * arm-tdep.c (arm_psr_thumb_bit): Make global.
6450         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6451
6452 2011-02-28  Michael Snyder  <msnyder@vmware.com>
6453
6454         * ui-out.c (ui_out_field_core_addr): Make local char buffer
6455         a little bigger, to avoid possibility of an overflow.
6456
6457         * breakpoint.c (breakpoint_adjustment_warning): Make local char
6458         buffers a little bigger, to avoid possibility of an overflow.
6459
6460         * coffread.c (coff_getfilename): Add check to avoid overflow.
6461
6462         * objc-lang.c (selectors_info): Add a small safety margin to
6463         avoid overflow.
6464         (classes_info): Error out on too long REGEXP.
6465
6466         * infrun.c (handle_inferior_event): Remove unused function call.
6467
6468         * fork-child.c (fork_inferior): Remove ifdef'd code and
6469         unused variable.
6470
6471         * linux-thread-db.c (attach_thread): Discard unused value.
6472
6473         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6474
6475         * remote.c (remote_get_noisy_reply): Discard unused value.
6476         (remote_vcont_resume): Ditto.
6477         (remote_stop_ns): Ditto.
6478
6479         * linespec.c (decode_objc): Delete unused variable.
6480
6481         * tui/tui-regs.c (tui_register_format): Delete unused variable.
6482
6483         * dwarf2read.c (add_partial_symbol): Discard unused values.
6484         (read_base_type): Delete unused variable.
6485
6486         * dbxread.c (read_dbx_symtab): Discard unused value.
6487
6488         * eval.c (evaluate_subexp_standard): Delete unused variable,
6489         and discard unused values.
6490
6491         * infcmd.c (_initialize_infcmd): Discard unused values.
6492
6493         * stabsread.c (rs6000_builtin_type): Missing break statement.
6494
6495         * dbxread.c (process_one_symbol): Discard unused value.
6496
6497         * coffread.c (coff_end_symtab): Delete unused variable.
6498
6499         * dwarf2read.c (dw2_get_file_names): Discard unused value.
6500         (dwarf2_add_typedef): Delete unused variable.
6501         (read_namespace): Ditto.
6502         (dwarf_decode_macros): Ditto.
6503
6504         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6505
6506         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6507
6508         * p-valprint.c (pascal_val_print): Discard unused value.
6509
6510         * utils.c (nquery): Call va_end before return;
6511         (yquery): Ditto.
6512         (query): Ditto.
6513
6514         * proc-service.c (ps_plog): Call va_end before return.
6515
6516 2011-02-28  Tom Tromey  <tromey@redhat.com>
6517
6518         * python/python.c (gdbpy_value_cst): New global.
6519         (_initialize_python): Initialize it.
6520         * python/python-internal.h (gdbpy_value_cst): Declare.
6521         * python/py-value.c (convert_value_from_python): Use
6522         gdbpy_value_cst.
6523
6524 2011-02-28  Michael Snyder  <msnyder@vmware.com>
6525
6526         * python/py-cmd.c (cmdpy_init): Fix memory leak.
6527
6528         * breakpoint.c (catch_syscall_completer): Free malloced list.
6529
6530         * jv-lang.c (java_primitive_type_from_name): Add missing break.
6531
6532         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6533         (lval_func_check_synthetic_pointer): Ditto.
6534         (lval_func_free_closure): Fix use-after-free.
6535
6536 2011-02-28  Tom Tromey  <tromey@redhat.com>
6537
6538         * psymtab.c (expand_partial_symbol_tables): Use
6539         ALL_OBJFILE_PSYMTABS.
6540
6541 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6542
6543         * objc-lang.c (selectors_info): Error on too long REGEXP.
6544
6545 2011-02-28  Michael Snyder  <msnyder@vmware.com>
6546
6547         * python/py-param.c (set_parameter_value): Add missing
6548         break statement.
6549
6550         * linux-record.c (record_linux_system_call): Add missing
6551         break statement.
6552
6553 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
6554
6555         * breakpoint.c (print_one_breakpoint_location): Remove unused
6556         argument PRINT_ADDRESS_BITS.  Update callers.
6557         (print_one_breakpoint): Likewise.
6558
6559 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
6560
6561         * breakpoint.c (wrap_indent_at_field): New function.
6562         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6563         Allocate ui_stream locally instead of using STB argument.
6564         (print_one_breakpoint_location): Update call.
6565         * ui-out.c (ui_out_query_field): New function.
6566         * ui-out.h (ui_out_query_field): Add prototype.
6567
6568 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
6569
6570         From Michael Snyder  <msnyder@vmware.com>
6571         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6572
6573 2011-02-27  Michael Snyder  <msnyder@vmware.com>
6574
6575         * objc-lang.c (selectors_info): Prevent string overrun.
6576
6577         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6578         error in strncpy.
6579
6580         * symtab.c (rbreak_command): Move variable 'file_name' to
6581         outer scope.
6582
6583         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6584         param with a local variable of the same name.
6585
6586 2011-02-27  Michael Snyder  <msnyder@vmware.com>
6587
6588         * value.c (value_from_history_ref): New function.
6589         * value.h (value_from_history_ref): Export.
6590         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6591         to parse value history references.
6592         * cli/cli-utils.h (get_number_trailer): Update comment.
6593
6594 2011-02-27  Michael Snyder  <msnyder@vmware.com>
6595
6596         * inferior.c (detach_inferior_command): Use get_number_or_range.
6597         (kill_inferior_command): Ditto.
6598         (remove_inferior_command): Ditto.
6599         (initialize_inferiors): Make command names plural.
6600         Update help strings.
6601
6602 2011-02-27  Michael Snyder  <msnyder@vmware.com>
6603
6604         * darwin-nat-info.c: Fix comment typo.
6605         * dwarf2expr.h: Ditto.
6606         * fbsd-nat.c: Ditto.
6607         * fbsd-nat.h: Ditto.
6608         * frame-unwind.h: Ditto.
6609         * frame.h: Ditto.
6610         * hppa-hpux-tdep.c: Ditto.
6611         * i386-linux-nat.c: Ditto.
6612         * linux-nat.c: Ditto.
6613         * nbsd-nat.c: Ditto.
6614         * nbsd-nat.h: Ditto.
6615         * ppc-linux-tdep.c: Ditto.
6616         * serial.c: Ditto.
6617         * ui-file.h: Ditto.
6618         * tui/tui-winsource.c: Ditto.
6619
6620 2011-02-26  Michael Snyder  <msnyder@vmware.com>
6621
6622         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6623
6624         * maint.c (maintenance_do_deprecate): Plug a memory leak.
6625
6626         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6627         with a local variable of the same name.
6628
6629         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6630         param with a local variable of the same name.
6631         (i387_supply_xsave): Ditto.
6632
6633         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6634         that it does not shadow a function parameter.
6635
6636         * i386-nat.c (i386_length_and_rw_bits): Document that case
6637         statement is meant to fall through.
6638
6639         * expprint.c (dump_subexp_body_standard): Document that case
6640         statement is meant to fall through.
6641
6642         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6643         dead if statement.  Condition can't be false.
6644
6645 2011-02-25  Michael Snyder  <msnyder@vmware.com>
6646
6647         * arm-tdep.c: Fix typos in comments.
6648         * bsd-uthread.c: Ditto.
6649         * completer.c: Ditto.
6650         * corelow.c: Ditto.
6651         * cp-namespace.c: Ditto.
6652         * cp-support.c: Ditto.
6653         * cris-tdep.c: Ditto.
6654         * dbxread.c: Ditto.
6655         * dwarf2read.c: Ditto.
6656         * frame.h: Ditto.
6657         * gdbtypes.h: Ditto.
6658         * inferior.h: Ditto.
6659         * mdebugread.c: Ditto.
6660         * mips-tdep.c: Ditto.
6661         * ppc-linux-nat.c: Ditto.
6662         * ppc-linux-tdep.c: Ditto.
6663         * printcmd.c: Ditto.
6664         * sol-thread.c: Ditto.
6665         * solib-frv.c: Ditto.
6666         * solist.h: Ditto.
6667         * sparc64-tdep.c: Ditto.
6668         * spu-tdep.c: Ditto.
6669         * stabsread.c: Ditto.
6670         * symfile.c: Ditto.
6671         * valops.c: Ditto.
6672         * varobj.c: Ditto.
6673         * vax-nat.c: Ditto.
6674         * python/py-block.c: Ditto.
6675         * python/py-symbol.c: Ditto.
6676         * python/py-symtab.c: Ditto.
6677         * python/py-value.c: Ditto.
6678         * tui/tui-win.c: Ditto.
6679
6680 2011-02-25  Michael Snyder  <msnyder@vmware.com>
6681
6682         * inferior.c (print_inferior): Accept a string instead of an int
6683         for requested_inferiors, and use get_number_or_range to parse it.
6684         (info_inferiors_command): Pass args string to print_inferior.
6685         (initialize_inferiors): Change help string for info inferiors.
6686         * inferior.h (print_inferior): Export prototype change.
6687
6688 2011-02-25  Tom Tromey  <tromey@redhat.com>
6689
6690         * common/ax.def (invalid2): Set to 0x31.
6691
6692 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
6693
6694         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6695         L and plongest.
6696         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6697         use L and plongest.
6698         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6699
6700 2011-02-24  Michael Snyder  <msnyder@vmware.com>
6701
6702         * Makefile.in (clean): Make clean should remove generated files
6703         observer.h and observer.inc.
6704
6705 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
6706
6707         Revert the following patch (not approved yet):
6708         2011-02-21  Hui Zhu  <teawater@gmail.com>
6709         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6710         * ax-gdb.c (gen_printf_expr_callback): New function.
6711         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6712         * ax-general.c (ax_memcpy): New function.
6713         (ax_print): Handle "printf".
6714         (ax_reqs): Ditto.
6715         * ax.h (ax_memcpy): Forward declare.
6716         * common/ax.def (invalid2): Removed.
6717         (printf): New entry.
6718         * printcmd.c (printcmd.h): New include.
6719         (string_printf): New function.
6720         (ui_printf): Removed.
6721         (printf_command): Remove static.  Call string_printf.
6722         (eval_command): Call string_printf.
6723         * printcmd.h: New file.
6724         * tracepoint.c (validate_actionline,
6725         encode_actions_1): handle printf_command.
6726
6727 2011-02-23  Tom Tromey  <tromey@redhat.com>
6728
6729         * ax-general.c (ax_pick): Add missing newline.
6730
6731 2011-02-23  Michael Snyder  <msnyder@vmware.com>
6732
6733         * breakpoint.c (breakpoint_1): Change first argument from an int
6734         to a char pointer, so that the function now accepts a list of
6735         breakpoints rather than just one.  Use new function
6736         'number_is_in_list' to implement.
6737         (breakpoints_info): Pass char * instead of int to breakpoint_1.
6738         (watchpoints_info): Ditto.
6739         (tracepoints_info): Ditto.
6740         (maintenance_info_breakpoints): Ditto.
6741         (_initialize_breakpoint): Update help strings to reflect the fact
6742         that these functions can now take more than one argument.
6743         * cli/cli-utils.c (number_is_in_list): New function.
6744         * cli/cli-utils.h (number_is_in_list): Export.
6745
6746 2011-02-23  Michael Snyder  <msnyder@vmware.com>
6747
6748         * memattr.c (mem_enable_command): Use get_number_or_range.
6749         (mem_disable_command): Ditto.
6750         (mem_delete_command): Ditto.
6751         (_initialize_mem): Tweak usage message to reflect multiple
6752         arguments.
6753
6754 2011-02-22  Doug Evans  <dje@google.com>
6755
6756         Add gdb.lookup_global_symbol python function.
6757         * NEWS: Add entry.
6758         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6759         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6760         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6761
6762 2011-02-22  Tom Tromey  <tromey@redhat.com>
6763
6764         * language.c (language_class_name_from_physname): Rename
6765         'curr_language' argument to 'lang'; use in body.
6766
6767 2011-02-22  Michael Snyder  <msnyder@vmware.com>
6768
6769         * cli/cli-utils.c (number_is_in_list): Check for zero return.
6770
6771 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
6772
6773         * frame-unwind.h: Fix comment to mention the this frame, not the
6774         next.
6775
6776 2011-02-22  Tom Tromey  <tromey@redhat.com>
6777
6778         * symfile.c (auto_solib_limit): Remove.
6779         * symfile.h (auto_solib_limit): Remove.
6780
6781 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
6782
6783         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
6784
6785 2011-02-21  Michael Snyder  <msnyder@vmware.com>
6786
6787         * gdbthread.h (print_thread_info): Change prototype.
6788         * thread.c (print_thread_info): Accept char* instead of int for
6789         requested_threads argument.  Use new function number_is_in_list
6790         to determine which threads to list.
6791         (info_threads_command): Pass char* to print_thread_info.
6792         * cli/cli-utils.c (number_is_in_list): New function.
6793         * cli/cli-utils.h (number_is_in_list): Export.
6794         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6795         print_thread_info.
6796         (print_one_inferior): Ditto.
6797         (mi_cmd_list_thread_groups): Ditto.
6798
6799 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6800
6801         * common/Makefile.in (CFLAGS): New.
6802         (COMPILE): Add $(CFLAGS).
6803
6804 2011-02-21  Tom Tromey  <tromey@redhat.com>
6805
6806         * breakpoint.c (catch_syscall_command_1): Fix typo.
6807
6808 2011-02-21  Tom Tromey  <tromey@redhat.com>
6809
6810         * reverse.c: Include cli-utils.h.
6811         * printcmd.c: Include cli-utils.h.
6812         (string_printf): Use skip_spaces.
6813         * cli/cli-utils.h: New file.
6814         * cli/cli-utils.c: New file.
6815         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6816         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6817         * breakpoint.h (get_number, get_number_or_range): Move to
6818         cli-utils.h.
6819         * breakpoint.c: Include cli-utils.h.
6820         (get_number_trailer, get_number, get_number_or_range)
6821         (ep_skip_leading_whitespace): Move to cli-utils.c.
6822         (create_breakpoint_sal, find_condition_and_thread)
6823         (decode_static_tracepoint_spec, watch_command_1)
6824         (watch_maybe_just_location, ep_parse_optional_if_clause)
6825         (catch_fork_command_1, catch_exec_command_1)
6826         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6827         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6828         (SUBDIR_CLI_SRCS): Add cli-utils.c.
6829         (HFILES_NO_SRCDIR): Add cli-utils.h.
6830         (cli-utils.o): New target.
6831
6832 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6833
6834         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6835         before calling discard_all_inferiors.
6836
6837 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
6838
6839         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6840         (struct builtin_opencl_type): Remove.
6841         (builtin_opencl_type): Change return type to "struct type **".
6842         (lookup_opencl_vector_type): Update caller.
6843         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6844         (build_opencl_types): Install plain array of "struct type *"
6845         instead of "struct builtin_opencl_type".
6846
6847 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6848             Ulrich Weigand  <uweigand@de.ibm.com>
6849
6850         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6851         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6852         (struct arm_linux_hwbp_cap): New type.
6853         (arm_linux_get_hwbp_cap): New function.
6854         (arm_linux_get_hw_breakpoint_count): Likewise.
6855         (arm_linux_get_hw_watchpoint_count): Likewise.
6856         (arm_linux_can_use_hw_breakpoint): Likewise.
6857         (arm_hwbp_type): New type.
6858         (arm_hwbp_control_t): Likewise.
6859         (struct arm_linux_hw_breakpoint): Likewise.
6860         (struct arm_linux_thread_points): Likewise.
6861         (arm_threads): New global variable.
6862         (arm_linux_find_breakpoints_by_tid): New function.
6863         (arm_hwbp_control_initialize): Likewise.
6864         (arm_hwbp_control_is_enabled): Likewise.
6865         (arm_hwbp_control_disable): Likewise.
6866         (arm_linux_hw_breakpoint_initialize): Likewise.
6867         (arm_linux_get_hwbp_type): Likewise.
6868         (arm_linux_hw_watchpoint_initialize): Likewise.
6869         (arm_linux_hw_breakpoint_equal): Likewise.
6870         (arm_linux_insert_hw_breakpoint1): Likewise.
6871         (arm_linux_remove_hw_breakpoint1): Likewise.
6872         (arm_linux_insert_hw_breakpoint): Likewise.
6873         (arm_linux_remove_hw_breakpoint): Likewise.
6874         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6875         (arm_linux_insert_watchpoint): Likewise.
6876         (arm_linux_remove_watchpoint): Likewise.
6877         (arm_linux_stopped_data_address): Likewise.
6878         (arm_linux_stopped_by_watchpoint): Likewise.
6879         (arm_linux_watchpoint_addr_within_range): Likewise.
6880         (arm_linux_new_thread): Likewise.
6881         (arm_linux_thread_exit): Likewise.
6882         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6883         related target callbacks.  Register arm_linux_new_thread and
6884         arm_linux_thread_exit.
6885         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6886         * arm-tdep.c (arm_pc_is_thumb): Make global.
6887         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6888
6889 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
6890
6891         * breakpoint.c (update_watchpoint): Do not attempt to recreate
6892         per-frame locations while within a function epilogue.
6893
6894 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6895
6896         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6897         to GNU coding standards.
6898
6899 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6900
6901         Allow use of mingw native on Windows 95 OS.
6902         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6903         (ser_windows_close): Only call CancelIo if function exists.
6904         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6905         to check for existence of CancelIo function in kernel32 DLL.
6906
6907 2011-02-21  Hui Zhu  <teawater@gmail.com>
6908
6909         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6910         * ax-gdb.c (gen_printf_expr_callback): New function.
6911         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6912         * ax-general.c (ax_memcpy): New function.
6913         (ax_print): Handle "printf".
6914         (ax_reqs): Ditto.
6915         * ax.h (ax_memcpy): Forward declare.
6916         * common/ax.def (invalid2): Removed.
6917         (printf): New entry.
6918         * printcmd.c (printcmd.h): New include.
6919         (string_printf): New function.
6920         (ui_printf): Removed.
6921         (printf_command): Remove static.  Call string_printf.
6922         (eval_command): Call string_printf.
6923         * printcmd.h: New file.
6924         * tracepoint.c (validate_actionline,
6925         encode_actions_1): handle printf_command.
6926
6927 2011-02-19  Michael Snyder  <msnyder@vmware.com>
6928
6929         * reverse.c (delete_one_bookmark): Argument is now bookmark
6930         id rather than pointer to bookmark struct.
6931         (delete_bookmark_command): Use get_number_or_range.
6932         (goto_bookmark_command): Parse with get_number instead of strtoul.
6933         (bookmark_1): New function.  Print info for one bookmark.
6934         (bookmarks_info): Use get_number_or_range and bookmark_1.
6935
6936 2011-02-18  Michael Snyder  <msnyder@vmware.com>
6937
6938         * thread.c (info_threads_command): Re-implement using
6939         get_number_or_range.
6940         (thread_apply_command): Ditto.
6941
6942 2011-02-18  Tom Tromey  <tromey@redhat.com>
6943
6944         * common/ax.def: New file.
6945         * ax.h (enum agent_op): Use ax.def.
6946         * ax-general.c (aop_map): Use ax.def.
6947
6948 2011-02-18  Tom Tromey  <tromey@redhat.com>
6949
6950         * ax-general.c (aop_map): Add pick and rot.
6951         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6952         <DW_OP_rot>: Implement.
6953         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6954         (ax_pick): Declare.
6955         * ax-general.c (ax_pick): New function.
6956
6957 2011-02-18  Tom Tromey  <tromey@redhat.com>
6958
6959         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6960
6961 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6962             Tom Tromey  <tromey@redhat.com>
6963
6964         * cp-support.c (make_symbol_overload_list_namespace): Do not call
6965         make_symbol_overload_list_block with NULL BLOCK.
6966         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6967
6968 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
6969
6970         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6971         * breakpoint.h (get_number_or_range): Declare.
6972         * printcmd.c (ALL_DISPLAYS): Declare.
6973         (delete_display): Reimplement taking a display pointer.
6974         (undisplay_command): Accept a range of displays to delete, using
6975         get_number_or_range.
6976
6977 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6978
6979         * c-valprint.c (c_val_print): Add embedded_offset to address
6980         for arrays of unspecified length.
6981         * p-valprint.c (pascal_val_print): Likewise.
6982
6983 2011-02-18  Yao Qi  <yao@codesourcery.com>
6984
6985         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6986         (arm_process_displaced_insn): .. here. Remove parameter INSN.
6987         (thumb_process_displaced_insn): New.
6988         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6989         call to arm_process_displaced_insn.
6990         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6991
6992 2011-02-17  Tom Tromey  <tromey@redhat.com>
6993
6994         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6995         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6996         compile_dwarf_to_ax.  No longer static.  Call
6997         dwarf2_compile_cfa_to_ax.
6998         (locexpr_tracepoint_var_ref): Update.
6999         (loclist_tracepoint_var_ref): Update.
7000         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7001         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7002         argument; add 'gdbarch' and 'pc'.
7003         (dwarf2_compile_cfa_to_ax): New function.
7004         (dwarf2_frame_cache): Update.
7005
7006 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
7007
7008         * ada-lang.c (ada_type_of_array): Fix the size of the array
7009         in the case of an unconstrained packed array.
7010
7011 2011-02-17  Yao Qi  <yao@codesourcery.com>
7012
7013         * common/Makefile.in: Add more targets for make.
7014
7015 2011-02-16  Tom Tromey  <tromey@redhat.com>
7016
7017         * dwarf2loc.c (unimplemented): Fix typo.
7018
7019 2011-02-16  Tom Tromey  <tromey@redhat.com>
7020
7021         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7022         (compile_dwarf_to_ax) <default>: Use unimplemented.
7023         <DW_OP_deref>: Update.
7024         (disassemble_dwarf_expression): Update.
7025         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7026         (decode_locdesc): Update.
7027         * dwarf2expr.h (dwarf_stack_op_name): Update.
7028
7029 2011-02-16  Tom Tromey  <tromey@redhat.com>
7030
7031         * ax.h (struct aop_map) <name>: Now const.
7032
7033 2011-02-16  Tom Tromey  <tromey@redhat.com>
7034
7035         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7036         than axs_rvalue.
7037
7038 2011-02-16  Yao Qi  <yao@codesourcery.com>
7039
7040         * infrun.c (get_displaced_step_closure_by_addr): New.
7041         * inferior.h: Declare it.
7042         * arm-tdep.c: (arm_pc_is_thumb): Call
7043         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
7044         returns non-NULL.
7045
7046 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
7047             Jan Kratochvil  <jan.kratochvil@redhat.com>
7048
7049         gdb/
7050         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7051
7052 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
7053             Jan Kratochvil  <jan.kratochvil@redhat.com>
7054
7055         * value.c (value_contents_copy_raw): Extend describing comment.
7056         Assert that the destination contents we're overwriting are wholly
7057         available.
7058         (value_contents_copy): Extend describing comment.
7059
7060 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
7061             Jan Kratochvil  <jan.kratochvil@redhat.com>
7062
7063         * value.c (value_available_contents_eq): Remove redundant local
7064         variables.  Fix available contents comparision.
7065         * value.h (value_available_contents_eq): Extend describing
7066         comment.
7067
7068 2011-02-16  Yao Qi  <yao@codesourcery.com>
7069
7070         * thread.c (info_threads_command): Add missing i18n markup and remove
7071         trailing newline.
7072
7073 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
7074
7075         * breakpoint.c (longjmp_names): New variable.
7076         (struct breakpoint_objfile_data): New type.
7077         (breakpoint_objfile_key): New variable.
7078         (msym_not_found): New variable.
7079         (msym_not_found_p): New predicate.
7080         (get_breakpoint_objfile_data): New function.
7081         (create_overlay_event_breakpoint): Check per-objfile cache for
7082         symbols first.
7083         (create_longjmp_master_breakpoint): Likewise.
7084         (create_std_terminate_master_breakpoint): Likewise.
7085         (create_exception_master_breakpoint): Likewise.
7086         (_initialize_breakpoint): Register per-objfile data key.
7087
7088 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
7089
7090         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7091         parameter value.
7092         (create_longjmp_master_breakpoint): Loop over longjmp names.
7093         (create_std_terminate_master_breakpoint): Const-propagate parameter
7094         value.
7095         (update_breakpoints_after_exec): Adjust.
7096         (breakpoint_re_set): Adjust.
7097
7098 2011-02-15  Michael Snyder  <msnyder@vmware.com>
7099
7100         * thread.c (info_threads_command): Process arg as thread id,
7101         or list of thread ids.
7102         (thread_find_command): New command.
7103         (_initialize_thread): Document argument for info threads.
7104         Document 'thread find' command.
7105         * NEWS: Document new command "thread find".
7106
7107 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7108
7109         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7110         * aclocal.m4: Regenerated with aclocal-1.11.1.
7111         * common/configure: Regenerate with autoconf-2.64.
7112
7113 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
7114
7115         * opencl-lang.c (build_opencl_types): Set the size of the built-in
7116         bool data type to a size of one byte.
7117
7118 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
7119             Jan Kratochvil  <jan.kratochvil@redhat.com>
7120
7121         * target.c (memory_xfer_live_readonly_partial): Document where to
7122         look for interface description.
7123
7124 2011-02-15  Yao Qi  <yao@codesourcery.com>
7125
7126         PR tdep/12352
7127         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7128         order to store PC value on stack instead of text section.
7129
7130 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7131
7132         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7133         the EFP register set size.
7134         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7135         data from the VMX register.
7136         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7137         and write data from/to the VMX register.
7138
7139 2011-02-14  Michael Snyder  <msnyder@vmware.com>
7140
7141         * command.h (enum command_class): New class 'no_set_class', for
7142         "show" commands without a corresponding "set" command.
7143         * value.c (_initialize_values): Use 'no_set_class' for "show values".
7144         * copying.c (_initialize_copying): Ditto for "show copying" and
7145         "show warranty".
7146         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7147         "show version".
7148         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7149         which there is no corresponding "set" command (eg. "show copying").
7150
7151 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7152             Jan Kratochvil  <jan.kratochvil@redhat.com>
7153
7154         * exec.c (section_table_available_memory): Change `len' parameter
7155         type to ULONGEST.
7156         * exec.h (section_table_available_memory): Ditto.
7157         * value.h (read_value_memory): Rename the `offset' parameter to
7158         `embedded_offset'.
7159
7160 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7161             Jan Kratochvil  <jan.kratochvil@redhat.com>
7162
7163         * memrange.c (compare_mem_ranges): Mention sort order in
7164         describing comment.
7165         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
7166         * tracepoint.c (traceframe_available_memory): Extend comment to
7167         mention what happens to RESULT when the target does not support
7168         the query.
7169
7170 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7171             Jan Kratochvil  <jan.kratochvil@redhat.com>
7172
7173         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7174         range.
7175
7176 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7177
7178         * value.c (value_bits_valid, value_bits_synthetic_pointer):
7179         No longer handle NULL values.
7180
7181 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7182
7183         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7184         * value.c: Include "exceptions.h".
7185         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7186         generic error.
7187         * cp-abi.c: Include gdb_assert.h.
7188         (baseclass_offset): Add `embedded_offset' and `val' parameters.
7189         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
7190         errors.
7191         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7192         parameters.  No longer returns -1 on error.
7193         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7194         `val' parameters.
7195         * cp-valprint.c: Include exceptions.h.
7196         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7197         the baseclass_offset.  Handle unavailable base classes.  Use
7198         val_print_invalid_address.
7199         * p-valprint.c: Include exceptions.h.
7200         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7201         when fetching the baseclass_offset.  No longer expect
7202         baseclass_offset returning -1.  Handle unavailable base classes.
7203         Use val_print_invalid_address.
7204         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7205         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
7206         `embedded_offset' and `val' parameters.  Adjust.
7207         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7208         parameter, and change its type to gdb_byte pointer.  Add
7209         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
7210         baseclass_offset returning -1.
7211         (value_dynamic_cast): Use value_contents_for_printing rather than
7212         value_contents.  Adjust.
7213         (search_struct_field): No longer expect baseclass_offset returning
7214         -1.
7215         (search_struct_method): If reading memory from the target is
7216         necessary, wrap it in a new value to pass to baseclass_offset.  No
7217         longer expect baseclass_offset returning -1.
7218         (find_method_list): No longer expect baseclass_offset returning
7219         -1.  Use value_contents_for_printing rather than value_contents.
7220         * valprint.c (val_print_invalid_address): New function.
7221         * valprint.h (val_print_invalid_address): Declare.
7222         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7223         and `val' parameters.  No longer expect baseclass_offset returning
7224         -1.  Adjust.
7225         * gnu-v2-abi.c: Include "exceptions.h".
7226         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7227         parameters.  Handle unavailable memory.  Recurse through
7228         gnuv2_baseclass_offset directly, rather than through
7229         baseclass_offset.  No longer returns -1 on not found, instead
7230         throw an error.
7231         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7232         `val' parameters.  Adjust.
7233
7234 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7235
7236         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7237         almost but not quite adjacent.
7238
7239 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7240
7241         * value.h (value_entirely_available): Declare.
7242         * value.c (value_entirely_available): New function.
7243         * c-valprint.c (c_value_print): Don't try fetching the pointer's
7244         real type if the pointer is unavailable.
7245
7246 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7247
7248         * valops.c (value_repeat): Use read_value_memory instead of
7249         read_memory.
7250
7251 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7252
7253         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7254         * value.c (value_contents_copy_raw, value_contents_copy): New
7255         functions.
7256         (value_primitive_field): Use value_contents_copy_raw instead of
7257         memcpy.
7258         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7259         memcpy.
7260         (value_array, value_slice): Ditto.
7261         * valarith.c (value_subscripted_rvalue): Use
7262         value_contents_copy_raw instead of memcpy.
7263
7264 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7265
7266         <unavailable> references.
7267
7268         * valops.c (get_value_at): Use value_from_contents_and_address,
7269         avoiding read_memory.
7270
7271 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7272
7273         * c-valprint.c (c_val_print): Print a string with unavailable
7274         contents as an array.
7275
7276 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7277
7278         * value.h (unpack_bits_as_long): Delete declaration.
7279         (unpack_value_bits_as_long): Declare.
7280         (unpack_value_field_as_long): Declare.
7281         (value_field_bitfield): Declare.
7282         * value.c (unpack_bits_as_long): Rename to...
7283         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
7284         value parameters.  Return the extracted result in a new output
7285         parameter.  If the value contents are unavailable, return false,
7286         otherwise return true.
7287         (unpack_value_bits_as_long): New.
7288         (unpack_field_as_long): Rename to...
7289         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
7290         Add embedded_offset and value parameters.  Return the extracted
7291         result in a new output parameter. If the value contents are
7292         unavailable, return false, otherwise return true.
7293         (unpack_value_field_as_long): New.
7294         (unpack_field_as_long_1): New.
7295         (unpack_field_as_long): Reimplement as wrapper around
7296         unpack_value_field_as_long_1.
7297         (value_field_bitfield): New function.
7298         * valops.c (value_fetch_lazy): When fetching a bitfield, use
7299         unpack_value_bits_as_long.  Mark the value as unavailable, if it
7300         is unavailable.
7301         * jv-valprint.c (java_print_value_fields): Use
7302         value_field_bitfield.
7303         * p-valprint.c (pascal_object_print_value_fields): Use
7304         value_field_bitfield.
7305         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7306
7307 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7308
7309         * value.c (get_internalvar_integer): Also return the int value of
7310         TYPE_CODE_INT INTERNALVAR_VALUE values.
7311         (set_internalvar): Don't special case TYPE_CODE_INT.
7312
7313 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7314
7315         * value.c (struct internalvar) <enum internalvar_kind>: Remove
7316         INTERNALVAR_POINTER.
7317         <pointer>: Delete.
7318         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7319         (set_internalvar): Remove special TYPE_CODE_PTR handling.
7320         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7321
7322 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7323
7324         * value.h (value_available_contents_eq): Declare.
7325         * value.c (find_first_range_overlap): New function.
7326         (value_available_contents_eq): New function.
7327         * valprint.c (val_print_array_elements): Use
7328         value_available_contents_eq.
7329         * ada-valprint.c (val_print_packed_array_elements): Use
7330         value_available_contents_eq.
7331         * jv-valprint.c (java_value_print): Use
7332         value_available_contents_eq.
7333
7334 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7335
7336         * target.c (target_read_live_memory): New function.
7337         (memory_xfer_live_readonly_partial): New.
7338         (memory_xfer_partial): If reading from a traceframe, fallback to
7339         reading unavailable read-only memory from read-only regions of
7340         live target memory.
7341         * tracepoint.c (disconnect_tracing): Adjust.
7342         (set_current_traceframe): New, factored out from
7343         set_traceframe_number.
7344         (set_traceframe_number): Reimplement to only change the traceframe
7345         number on the GDB side.
7346         (do_restore_current_traceframe_cleanup): Adjust.
7347         (make_cleanup_restore_traceframe_number): New.
7348         (cur_traceframe_number): New global.
7349         (tfile_open): Set cur_traceframe_number to no traceframe.
7350         (set_tfile_traceframe): New function.
7351         (tfile_trace_find): If looking up a traceframe using any method
7352         other than by number, make sure the current tfile traceframe
7353         matches gdb's current traceframe.  Update the current tfile
7354         traceframe if the lookup succeeded.
7355         (tfile_fetch_registers, tfile_xfer_partial)
7356         (tfile_get_trace_state_variable_value): Make sure the remote
7357         traceframe matches gdb's current traceframe.
7358         * remote.c (remote_traceframe_number): New global.
7359         (remote_open_1): Set it to -1.
7360         (set_remote_traceframe): New function.
7361         (remote_fetch_registers, remote_store_registers)
7362         (remote_xfer_memory, remote_xfer_partial)
7363         (remote_get_trace_state_variable_value): Make sure the remote
7364         traceframe matches gdb's current traceframe.
7365         (remote_trace_find): If looking up a traceframe using any method
7366         other than by number, make sure the current remote traceframe
7367         matches gdb's current traceframe.  Update the current remote
7368         traceframe if the lookup succeeded.
7369         * infrun.c (fetch_inferior_event): Adjust.
7370         * tracepoint.h (set_current_traceframe): Declare.
7371         (get_traceframe_number, set_traceframe_number): Add describing
7372         comments.
7373
7374 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7375
7376         Mark pieces of values as unavailable if the corresponding memory
7377         is unavailable.
7378
7379         * valops.c: Include tracepoint.h.
7380         (value_fetch_lazy): Use read_value_memory.
7381         (read_value_memory): New.
7382         * value.h (read_value_memory): Declare.
7383         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7384         * exec.c (section_table_available_memory): New function.
7385         * exec.h (section_table_available_memory): Declare.
7386
7387 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7388
7389         * Makefile.in (SFILES): Add memrange.c.
7390         (HFILES_NO_SRCDIR): Add memrange.h.
7391         (COMMON_OBS): Add memrange.o.
7392         * memrange.c: New file.
7393         * memrange.h: New file.
7394         * tracepoint.c: Include memrange.h.
7395         (struct mem_range): Delete.
7396         (mem_range_s): Delete.
7397         (traceframe_available_memory): New function.
7398         * tracepoint.h (traceframe_available_memory): Declare.
7399
7400 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7401
7402         * target.h (struct traceframe_info): Forward declare.
7403         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7404         (struct target_ops) <to_traceframe_info>: New field.
7405         (target_traceframe_info): New.
7406         * target.c (update_current_target): Inherit and default
7407         to_traceframe_info.
7408         * remote.c (PACKET_qXfer_traceframe_info): New.
7409         (remote_protocol_features): Register qXfer:traceframe-info:read.
7410         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7411         (remote_traceframe_info): New.
7412         (init_remote_ops): Install it.
7413         (_initialize_remote): Install "set/show remote traceframe-info"
7414         commands.
7415         * tracepoint.h (parse_traceframe_info): Declare.
7416         * tracepoint.c (struct mem_range): New.
7417         (mem_range_s): New typedef.
7418         (struct traceframe_info): New.
7419         (traceframe_info): New global.
7420         (free_traceframe_info): New function.
7421         (clear_traceframe_info): New function.
7422         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7423         info.
7424         (build_traceframe_info): New function.
7425         (tfile_traceframe_info): New function.
7426         (init_tfile_ops): Install tfile_traceframe_info.
7427         (traceframe_info_start_memory, free_result): New functions.
7428         (memory_attributes, traceframe_info_elements): New globals.
7429         (parse_traceframe_info, get_traceframe_info): New functions.
7430         * features/traceframe-info.dtd: New file.
7431         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7432
7433 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7434
7435         Base support for <unavailable> value contents.
7436
7437         * value.h (value_bytes_available): Declare.
7438         (mark_value_bytes_unavailable): Declare.
7439         * value.c (struct range): New struct.
7440         (range_s): New typedef.
7441         (ranges_overlap): New function.
7442         (range_lessthan): New function.
7443         (ranges_contain_p): New function.
7444         (struct value) <unavailable>: New field.
7445         (value_bytes_available): New function.
7446         (mark_value_bytes_unavailable): New function.
7447         (require_not_optimized_out): Constify parameter.
7448         (require_available): New function.
7449         (value_contents_all, value_contents): Require all bytes be
7450         available.
7451         (value_free): Free `unavailable'.
7452         (value_copy): Copy `unavailable'.
7453         * valprint.h (val_print_unavailable): Declare.
7454         * valprint.c (valprint_check_validity): Rename `offset' parameter
7455         to `embedded_offset'.  If printing a scalar, check whether the
7456         value chunk is available.
7457         (val_print_unavailable): New.
7458         (val_print_scalar_formatted): Check whether the value is
7459         available.
7460         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7461         pretty-printing unavailable values.
7462
7463 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7464
7465         Fix const/volatile qualifiers of C++ types, PR c++/12328.
7466         * c-typeprint.c (c_type_print_args): Update the function comment.  New
7467         variable param_type, initialize it.  Remove const/volatile qualifiers
7468         for language_cplus and !show_artificial.  Use param_type.
7469
7470 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7471
7472         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7473         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
7474         * symtab.h (struct symtab) <next>: Comment extension.
7475
7476 2011-02-12  Yao Qi  <yao@codesourcery.com>
7477
7478         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7479
7480 2011-02-11  Yao Qi  <yao@codesourcery.com>
7481
7482         * common/Makefile.in: Add copyright header.
7483
7484 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
7485
7486         * infrun.c (proceed): Move switching out and in of tfind mode from
7487         here ...
7488         (fetch_inferior_event): ... to here.
7489
7490 2011-02-11  Yao Qi  <yao@codesourcery.com>
7491
7492         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
7493         libcommon.a.
7494         * configure.ac: Add common to sub dir.
7495         * configure: Regenerate.
7496
7497 2011-02-11  Yao Qi  <yao@codesourcery.com>
7498
7499         Build libcommon.a.
7500
7501         * common/Makefile.in: New.
7502         * common/configure.ac: New.
7503         * common/aclocal.m4: New.
7504         * common/configure: Generate.
7505
7506 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
7507
7508         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7509         side of the parenthesis.
7510
7511         Merge from GCC:
7512         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
7513         * vec.h (VEC_block_remove): Fix comment.
7514
7515 2011-02-08  Michael Snyder  <msnyder@vmware.com>
7516
7517         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7518
7519 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7520
7521         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7522         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7523         psubd and paddd.
7524
7525 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7526
7527         PR 12361.
7528         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7529         phsubsw.
7530         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7531         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7532
7533 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
7534
7535         * dwarf2read.c (read_subroutine_type): Set special calling
7536         convention flag for functions compiled by IBM XL C for OpenCL.
7537         * ppc-sysv-tdep.c: Include "dwarf2.h"
7538         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7539         calling convention.
7540         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
7541         IBM OpenCL vector types calling convention.
7542         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7543         (ppc_sysv_abi_broken_return_value): Likewise.
7544         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7545         types calling convention.
7546         (ppc64_sysv_abi_return_value): Likewise.
7547         * spu-tdep.c: Include "dwarf2.h"
7548         (spu_return_value): Implement IBM OpenCL vector types calling
7549         convention.
7550
7551 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
7552
7553         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7554         correct ABI for AltiVec vector arguments.
7555
7556 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
7557
7558         * valprint.c (val_print): Extend comment.
7559         * ada-valprint.c (ada_valprint): Rewrite comment deferring
7560         interface explanation to val_print.
7561         (ada_val_print_array): Adjust comment to current interface.
7562         (print_field_values): Adjust comment to current interface.
7563         * c-valprint.c (c_val_print): Rewrite comment deferring interface
7564         explanation to val_print.
7565         * f-valprint.c (f_val_print): Ditto.
7566         * jv-valprint.c (java_val_print): Ditto.
7567         * m2-valprint.c (m2_val_print): Ditto.
7568         * p-valprint.c (pascal_val_print): Ditto.
7569
7570 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7571
7572         * breakpoint.c (parse_breakpoint_sals): Fix description.
7573
7574 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
7575             Oguz Kayral <oguzkayral@gmail.com>
7576
7577         * python/py-inferior.c (python_on_normal_stop): New function.
7578         (python_on_resume): New function.
7579         (python_inferior_exit): New function.
7580         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7581         inferior_exit observers.
7582         * python/py-evtregistry.c: New file.
7583         * python/py-threadevent.c : New file.
7584         * python/py-event.c: New file.
7585         * python/py-evts.c: New file.
7586         * python/py-continueevent.c: New file.
7587         * python/py-bpevent.c: New file.
7588         * python/py-signalevent.c: New file.
7589         * python/py-exetiedevent.c: New file.
7590         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7591         Move struct breakpoint_object from here...
7592         * python/python-internal.h: ... to here.
7593         * python/py-event.h: New file.
7594         * python/py-events.h: New file.
7595         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7596         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7597         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7598         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7599         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7600         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7601         Add build rules for all the above.
7602
7603 2011-02-04  Tom Tromey  <tromey@redhat.com>
7604
7605         * dwarf2read.c (dwarf2_section_empty_p): New function.
7606         (dwarf2_read_section): Use dwarf2_section_empty_p.
7607         (dwarf2_section_size): New function.
7608         (dwarf2_get_section_info): Unconditionally read section.
7609         (dwarf2_read_index): Use dwarf2_section_empty_p.
7610         (partial_read_comp_unit_head): Use dwarf2_section_size.
7611         (dwarf2_symbol_mark_computed): Likewise.
7612
7613 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7614
7615         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7616
7617 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7618
7619         * mips-linux-tdep.c: Include xml-syscall.h.
7620         (mips_linux_get_syscall_number): New function.
7621         (mips_linux_init_abi): Add calls to
7622         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7623         * data-directory/Makefile.in (SYSCALLS_FILES): Add
7624         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7625         * syscalls/mips-n32-linux.xml: New file.
7626         * syscalls/mips-n64-linux.xml: New file.
7627         * syscalls/mips-o32-linux.xml: New file.
7628
7629 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
7630
7631         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7632         Complain about inverted range entries.
7633         (dwarf2_record_block_ranges): Likewise.
7634
7635 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7636
7637         Fix some typos.
7638         * breakpoint.c (update_watchpoint): Fix name of the
7639         update_global_location_list function.
7640         (print_one_breakpoint): Fix typo.
7641         (_initialize_breakpoint): Remove extra space in hbreak help
7642         string.
7643         * breakpoint.h (struct bp_location) <length>: Fix field
7644         description.
7645
7646 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
7647
7648         * regcache.c (registers_changed_ptid): Don't explictly always
7649         clear `current_regcache'.  Only clear current_thread_ptid and
7650         current_thread_arch when PTID matches.  Only reinit the frame
7651         cache if PTID matches the current inferior_ptid.  Move alloca(0)
7652         call to ...
7653         (registers_changed): ... here.
7654
7655 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
7656
7657         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7658         starts with __stack_chk_guard as stack guard symbol.
7659
7660 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
7661
7662         * disasm.c (compare_lines): Handle the end of sequence markers
7663         within the line table to better support disassembling over
7664         compilation unit boundaries.
7665
7666 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
7667
7668         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7669         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
7670         implementation even if no symbols are available.
7671         (thumb_analyze_prologue): Update call to skip_prologue_function.
7672         (arm_analyze_prologue): Likewise.
7673
7674 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
7675
7676         * arm-tdep.c: Include "observer.h".
7677         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7678         (arm_exidx_data_key): New static variable.
7679         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7680         (struct arm_exidx_data): Likewise.
7681         (arm_exidx_data_free): New function.
7682         (arm_compare_exidx_entries): Likewise.
7683         (arm_obj_section_from_vma): Likewise.
7684         (arm_exidx_new_objfile): Likewise.
7685         (arm_find_exidx_entry): Likewise.
7686         (arm_exidx_fill_cache): Likewise.
7687         (arm_exidx_unwind_sniffer): Likewise.
7688         (arm_exidx_unwind): New global variable.
7689         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7690         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7691         observer.  Register arm_exidx_data_key as objfile data.
7692
7693 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
7694
7695         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7696         due to accessing uninitialized variable.  Fix indentation.
7697
7698 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
7699
7700         * c-valprint.c (c_value_print): When doing virtual base pointer
7701         adjustment, create a new value with adjusted contents rather than
7702         changing the contents of the value being printed (and getting it
7703         wrong).
7704
7705 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
7706
7707         * xml-support.c (xml_find_attribute): New.
7708         (xinclude_start_include): Use it.
7709         * xml-support.h (xml_find_attribute): Declare.
7710         * memory-map.c (memory_map_start_memory)
7711         (memory_map_start_property): Use xml_find_attribute.
7712         * osdata.c (osdata_start_osdata, osdata_start_column): Use
7713         xml_find_attribute.
7714         * remote.c (start_thread): Use xml_find_attribute.
7715         * solib-target.c (library_list_start_segment)
7716         (library_list_start_section, library_list_start_library)
7717         (library_list_start_list): Use xml_find_attribute.
7718         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7719         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7720         (tdesc_start_field): Use xml_find_attribute.
7721
7722 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
7723
7724         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7725         (BUILD_OCL_VTYPES): Update.
7726
7727 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
7728
7729         * configure.ac: Work around non-GNU sed limitation when computing
7730         python version number.
7731         * configure: Regenerate.
7732
7733 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7734
7735         Fix debug printing of TYPE_INSTANCE.
7736         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7737         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7738
7739 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7740
7741         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7742         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7743         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7744         * ada-operator.inc: Rename the file to ...
7745         * ada-operator.def: ... here, wrap all the entries by macro OP.
7746         * expprint.c (op_name_standard): Remove all the entries.  Include
7747         "std-operator.def" instead.
7748         * expression.h (enum exp_opcode): Include "std-operator.def" and
7749         "ada-operator.def".  Move all the entries ...
7750         * std-operator.def: ... here, wrap all the entries by macro OP.
7751
7752 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
7753
7754         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7755         * breakpoint.c (remove_jit_event_breakpoints): New function.
7756         * jit.c (jit_descriptor_addr): Delete.
7757         (registering_code): Delete.
7758         (clear_int): Delete.
7759         (jit_inferior_data): New variable.
7760         (struct jit_inferior_data): New type.
7761         (get_jit_inferior_data): New function.
7762         (jit_inferior_data_cleanup): New function.
7763         (jit_read_descriptor): Adjust.
7764         (jit_register_code): Adjust.
7765         (jit_breakpoint_re_set_internal): New function; move code here ...
7766         (jit_inferior_init): ... from here.
7767         (jit_breakpoint_re_set): Adjust.
7768         (jit_reset_inferior_data_and_breakpoints): New function.
7769         (jit_inferior_created_observer): Adjust.
7770         (jit_inferior_exit_hook): Adjust.
7771         (jit_executable_changed_observer): New function.
7772         (jit_event_handler): Adjust.
7773         (_initialize_jit): Adjust.
7774
7775 2011-01-31  Michael Snyder  <msnyder@vmware.com>
7776
7777         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7778         line.
7779
7780 2011-01-31  Tom Tromey  <tromey@redhat.com>
7781
7782         PR python/12216:
7783         * python/python.c (execute_gdb_command): Call
7784         prevent_dont_repeat.
7785         * top.c (suppress_dont_repeat): New global.
7786         (dont_repeat): Use it.
7787         (prevent_dont_repeat): New function.
7788         * command.h (prevent_dont_repeat): Declare.
7789
7790 2011-01-31  Tom Tromey  <tromey@redhat.com>
7791
7792         * infcmd.c (finish_backward): Use breakpoint_set_silent.
7793         * python/py-breakpoint.c (bppy_set_silent): Use
7794         breakpoint_set_silent.
7795         (bppy_set_thread): Use breakpoint_set_thread.
7796         (bppy_set_task): Use breakpoint_set_task.
7797         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7798         (breakpoint_set_task): Declare.
7799         (make_breakpoint_silent): Remove.
7800         * breakpoint.c (breakpoint_set_silent): New function.
7801         (breakpoint_set_thread): Likewise.
7802         (breakpoint_set_task): Likewise.
7803         (make_breakpoint_silent): Remove.
7804
7805 2011-01-31  Tom Tromey  <tromey@redhat.com>
7806
7807         * breakpoint.h (user_breakpoint_p): Declare.
7808         * breakpoint.c (user_breakpoint_p): New function.
7809         (breakpoint_1): Use it.
7810         (save_breakpoints): Likewise.
7811
7812 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
7813
7814         * configure.ac: Add handling of Python distribution on Windows.
7815         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7816         sysconfig variables are not defined, then do not use them.
7817         On Windows, if LIBPL is not defined, then use prefix + '/libs'
7818         instead.  On Windows, return all paths using forward-slashes
7819         rather than backslashes.
7820
7821 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
7822
7823         * configure.ac: Remove fallback behavior for building
7824         against Python.  Remove tweaking of Python include path.
7825         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7826         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
7827         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7828         Always restore CPPFLAGS and LIBS after linking test.
7829         * configure: Regenerated.
7830         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7831         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7832         * python/python-internal.h: Adjust includes of Python .h files.
7833
7834 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
7835
7836         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7837         in error message.
7838
7839 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
7840
7841         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7842         value test.
7843
7844 2011-01-31  Yao Qi  <yao@codesourcery.com>
7845
7846         * arm-linux-nat.c: Update calls to regcache_register_status
7847         instead of regcache_valid_p.
7848         * aix-thread.c: Likewise.
7849         * i386gnu-nat.c: Likewise.
7850
7851 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
7852
7853         Fix crash.
7854         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7855         touching TYPE_FIELD_ARTIFICIAL.
7856
7857 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
7858
7859         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7860         Committers.
7861
7862 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
7863
7864         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7865         selected, don't try iterating over the traceframe's blocks.
7866         (tfile_has_stack): If there's no traceframe selected, then there's
7867         no stack.
7868         (tfile_has_registers): If there's no traceframe selected, then
7869         there's no registers.
7870
7871 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
7872
7873         * target.c (memory_xfer_partial): No need to restore shadows if we
7874         haven't read anything.
7875
7876 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
7877
7878         * mips-tdep.c (mips_print_register): Use get_frame_register_value
7879         and val_print_scalar_formatted.
7880
7881 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
7882
7883         * tracepoint.c (tfile_read): New.
7884         (tfile_open): Use it.
7885         (tfile_get_traceframe_address): Use it.
7886         (tfile_trace_find): Use it.
7887         (walk_blocks_callback_func): New typedef.
7888         (match_blocktype): New function.
7889         (traceframe_walk_blocks): New function.
7890         (traceframe_find_block_type): New function.
7891         (tfile_fetch_registers, tfile_xfer_partial)
7892         (tfile_get_trace_state_variable_value): Use
7893         traceframe_find_block_type and tfile_read.
7894
7895 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
7896
7897         * remote-mips.c: Add internationalization mark ups.  Remove
7898         trailing \n from already marked up strings.
7899
7900 2011-01-26  Tom Tromey  <tromey@redhat.com>
7901
7902         * python/py-prettyprint.c (print_string_repr): Clear
7903         'addressprint' option when calling val_print_string.
7904         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
7905         option when calling val_print_string.
7906
7907 2011-01-26  Tom Tromey  <tromey@redhat.com>
7908
7909         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7910         GDB_PY_LL_ARG.
7911         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7912         macros.
7913         (gdb_py_longest, gdb_py_ulongest): New typedefs.
7914         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7915         (gdb_py_long_as_ulongest): New defines.
7916         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7917         (gdb_py_int_as_long): Declare.
7918         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7919         GDB_PY_LL_ARG, gdb_py_object_from_longest.
7920         (valpy_long): Add comment.
7921         * python/py-utils.c (get_addr_from_python): Use
7922         gdb_py_long_as_ulongest.  Handle overflow properly.
7923         (gdb_py_object_from_longest): New function.
7924         (gdb_py_object_from_ulongest): Likewise.
7925         (gdb_py_int_as_long): Likewise.
7926         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7927         * python/py-symtab.c (salpy_get_pc): Use
7928         gdb_py_long_from_ulongest.
7929         (salpy_get_line): Use PyInt_FromLong.
7930         * python/py-param.c (set_parameter_value): Use
7931         gdb_py_int_as_long.
7932         * python/py-lazy-string.c (stpy_get_address): Use
7933         gdb_py_long_from_ulongest.
7934         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7935         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7936         * python/py-breakpoint.c (bppy_set_thread): Use
7937         gdb_py_int_as_long.
7938         (bppy_set_task): Likewise.
7939         (bppy_set_ignore_count): Likewise.
7940         (bppy_set_hit_count): Likewise.
7941         * python/py-block.c (blpy_get_start): Use
7942         gdb_py_object_from_ulongest.
7943         (blpy_get_end): Likewise.
7944         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7945
7946 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
7947
7948         PR/symtab 11766:
7949         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7950         * gdb/solib.c (solib_read_symbols): Check for addr_low in
7951         equality test for objfile, initialize addr_low if needed.
7952
7953 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7954
7955         * tui/tui-regs.c (tui_register_format): Remove dead code.
7956
7957 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7958
7959         * printcmd.c (print_formatted): Use val_print_scalar_formatted
7960         instead of print_scalar_formatted.
7961         (print_scalar_formatted): Don't handle 's' format strings here,
7962         and add an assertion that we never see such format here.
7963         * valprint.h (val_print_scalar_formatted): Declare.
7964         * valprint.c (val_print_scalar_formatted): New.
7965         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7966         instead of print_scalar_formatted.
7967         * jv-valprint.c (java_val_print): Ditto.
7968         * p-valprint.c (pascal_val_print): Ditto.
7969         * ada-valprint.c (ada_val_print_1): Ditto.
7970         * f-valprint.c (f_val_print): Ditto.
7971         * infcmd.c (registers_info): Ditto.
7972         * m2-valprint.c (m2_val_print): Ditto.
7973
7974 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7975
7976         * m2-valprint.c (print_unbounded_array): Pass
7977         value_contents_for_printing rather than value_contents, to
7978         m2_print_array_contents.  Also pass in the value.
7979
7980 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7981
7982         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7983         (save_gdb_index_command): Switch to .gdb_index version 4.
7984
7985 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7986
7987         * mi/mi-main.c (get_register): Use get_frame_register_value rather
7988         than frame_register, and always pass a valid value to val_print.
7989
7990 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7991
7992         Centralize printing "<optimized out>".
7993
7994         * valprint.h (val_print_optimized_out): Declare.
7995         * cp-valprint.c (cp_print_value_fields): Use
7996         val_print_optimized_out.
7997         * jv-valprint.c (java_print_value_fields): Ditto.
7998         * p-valprint.c (pascal_object_print_value_fields): Ditto.
7999         * printcmd.c (print_formatted): Ditto.
8000         * valprint.c (valprint_check_validity): Ditto.
8001         (value_check_printable): Ditto.
8002         (val_print_optimized_out): New.
8003
8004 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8005
8006         * infcmd.c (default_print_registers_info): Allocate values so to
8007         never pass a NULL value to val_print.
8008
8009 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8010
8011         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8012         boolean.  Make sure to always pass a value that matches the
8013         contents buffer to callees.  Preserve `address' for following
8014         iterations.
8015         * value.c (value_contents_for_printing_const): New.
8016         (value_address): Constify value argument.
8017         * value.h (value_contents_for_printing_const): Declare.
8018         (value_address): Constify value argument.
8019
8020 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8021
8022         * regcache.c (struct regcache_descr): Rename
8023         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8024         and sizeof_cooked_register_valid_p to
8025         sizeof_cooked_register_status.
8026         (init_regcache_descr): Adjust.
8027         (struct regcache): Rename register_valid_p field to
8028         register_status.
8029         (regcache_xmalloc_1, regcache_xfree, regcache_save)
8030         (do_cooked_read): Adjust.
8031         (regcache_valid_p): Rename to ...
8032         (regcache_register_status): ... this.  Adjust.
8033         (regcache_invalidate): Adjust.
8034         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8035         Adjust.
8036         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
8037         as unavailable, not valid.
8038         (regcache_dump): Adjust.
8039         * regcache.h (enum register_status): New.
8040         (regcache_register_status): Declare.
8041         (regcache_invalidate): Delete declaration.
8042         * corelow.c (get_core_registers): Adjust.
8043         * tracepoint.c (tfile_fetch_registers): Adjust.
8044         * trad-frame.c (REG_VALUE): Rename to ...
8045         (TF_REG_VALUE): ... this.
8046         (REG_UNKNOWN): Rename to ...
8047         (TF_REG_UNKNOWN): ... this.
8048         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8049         * mi/mi-main.c (register_changed_p): Adjust.
8050
8051 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8052
8053         * regcache.c (struct regcache_descr): Remove outdated comment.
8054         (init_regcache_descr): Remove sizeof_raw_register_valid_p
8055         overallocate hack.
8056         (regcache_xmalloc): Rename to ...
8057         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
8058         Allocate the regcache type accordingly.
8059         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8060         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
8061         cooked registers, not raw.
8062         (regcache_dup_no_passthrough): Delete.
8063         (get_thread_arch_regcache): Use regcache_xmalloc_1.
8064         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8065         mention obsolete write_register_bytes.
8066         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8067
8068 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8069
8070         Stop remote_read_bytes from handling partial reads itself.
8071
8072         * remote-fileio.c: Include target.h.
8073         (remote_fileio_write_bytes): Delete.
8074         (remote_fileio_func_open, remote_fileio_func_write)
8075         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8076         target_read_memory.
8077         (remote_fileio_func_stat): Use target_read_memory and
8078         target_write_memory.
8079         (remote_fileio_func_gettimeofday): Use target_write_memory.
8080         (remote_fileio_func_system): Use target_read_memory.
8081         * remote.c (remote_write_bytes): Make it static.
8082         (remote_read_bytes): Don't handle partial reads here.
8083         * remote.h (remote_read_bytes): Delete declaration.
8084
8085 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8086
8087         Simplify XML parsing a bit.
8088
8089         * xml-support.h (gdb_xml_parse_quick): Declare.
8090         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8091         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8092         parameter.
8093         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8094         gdb_xml_create_parser_and_cleanup_1.
8095         (gdb_xml_parse_quick): New.
8096         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8097         * osdata.c (osdata_parse): Ditto.
8098         * remote.c (remote_threads_info): Ditto.
8099         * solib-target.c (solib_target_parse_libraries): Ditto.
8100         * xml-syscall.c (syscall_parse_xml): Ditto.
8101         * xml-tdesc.c (tdesc_parse_xml): Ditto.
8102
8103 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
8104
8105         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8106         with remote-mips.o added to gdb_target_obs.
8107         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8108
8109 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
8110
8111         * ada-valprint.c (val_print_packed_array_elements): Pass the
8112         correct struct value to val_print.
8113         (ada_val_print_1): Ditto.
8114
8115 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
8116
8117         Don't lose embedded_offset in printing routines throughout.
8118
8119         * valprint.h (val_print_array_elements): Change prototype.
8120         * valprint.c (val_print_array_elements): Add `embedded_offset'
8121         parameter, and adjust to pass it down to val_print, while passing
8122         `valaddr' or `address' unmodified.  Take embedded_offset into
8123         account when checking repetitions.
8124         * c-valprint.c (c_val_print): Pass embedded_offset to
8125         val_print_array_elements instead of adjusting `valaddr' and
8126         `address'.
8127         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8128         embedded_offset to val_print_array_elements instead of adjusting
8129         `valaddr'.
8130         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8131         * p-valprint.c (pascal_val_print): Pass embedded_offset to
8132         val_print_array_elements and pascal_object_print_value_fields
8133         instead of adjusting `valaddr'.
8134         (pascal_object_print_value_fields): Add `offset' parameter, and
8135         adjust to use it.
8136         (pascal_object_print_value): Add `offset' parameter, and adjust to
8137         use it.
8138         (pascal_object_print_static_field): Use
8139         value_contents_for_printing/value_embedded_offset, rather than
8140         value_contents.
8141         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8142         parameter, and adjust to use it.  Use
8143         value_contents_for_printing/value_embedded_offset, rather than
8144         value_contents.
8145         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8146         (ada_val_print_array): Add `offset' parameter, and adjust to use
8147         it.
8148         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8149         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
8150         Instead work with offsets.  Use
8151         value_contents_for_printing/value_embedded_offset, rather than
8152         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
8153         and use value_from_pointer to extract a target pointer, rather
8154         than value_from_longest.
8155         (print_variant_part): Add `offset' parameter.  Replace
8156         `outer_valaddr' parameter by a new `outer_offset' parameter.
8157         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
8158         (ada_value_print): Use
8159         value_contents_for_printing/value_embedded_offset, rather than
8160         value_contents.
8161         (print_record): Add `offset' parameter, and adjust to pass it
8162         down.
8163         (print_field_values): Add `offset' parameter.  Replace
8164         `outer_valaddr' parameter by a new `outer_offset' parameter.
8165         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
8166         Use value_contents_for_printing/value_embedded_offset, rather than
8167         value_contents.
8168         * d-valprint.c (dynamic_array_type): Use
8169         value_contents_for_printing/value_embedded_offset, rather than
8170         value_contents.
8171         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8172         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
8173         (java_print_value_fields): Take `offset' into account.  Don't
8174         re-adjust `valaddr'.  Instead pass down adjusted offsets.
8175         (java_val_print): Take `embedded_offset' into account.  Pass it to
8176         java_print_value_fields.
8177         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8178         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
8179         down adjusted offsets.
8180         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
8181         (f_val_print): Take `embedded_offset' into account.
8182
8183 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
8184
8185         * inflow.c: Include "gdbcmd.h".
8186         (interactive_mode): New static global, moved here from top.c.
8187         (show_interactive_mode): New function, moved here from top.c.
8188         use gdb_has_a_terminal instead of input_from_terminal_p to
8189         determine the current mode.
8190         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8191         setting.
8192         (_initialize_inflow): Add the "set/show interactive-mode"
8193         commands.  Moved here from top.c, after having adjusted slightly
8194         the help text.
8195         * top.c (interactive_mode, show_interactive_mode): Delete, moved
8196         to inflow.c.
8197         (input_from_terminal_p): Remove handling of "interactive-mode"
8198         setting, moved to infow.c.
8199         (init_main): Remove creation of the "set/show interactive-mode"
8200         commands, moved to inflow.c.
8201
8202 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
8203
8204         * NEWS: Add entry for native ia64-hpux support.
8205
8206 2011-01-19  Tom Tromey  <tromey@redhat.com>
8207
8208         PR mi/8618:
8209         * thread.c (free_thread): Free 'name'.
8210         (print_thread_info): Emit thread name.  Change CLI output.
8211         (thread_name_command): New function.
8212         (do_captured_thread_select): Emit newline.
8213         (_initialize_thread): Register 'thread name' command.
8214         * target.h (struct target_ops) <to_thread_name>: New field.
8215         (target_thread_name): New macro.
8216         * target.c (update_current_target): Handle to_thread_name.
8217         * python/py-infthread.c (thpy_get_name): New function.
8218         (thpy_set_name): Likewise.
8219         (thread_object_getset): Add "name".
8220         * linux-nat.c (linux_nat_thread_name): New function.
8221         (linux_nat_add_target): Set to_thread_name.
8222         * gdbthread.h (struct thread_info) <name>: New field.
8223
8224 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
8225
8226         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8227         (ada_val_print_1): Likewise.
8228
8229 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
8230
8231         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8232         upper limit address is not greater than the function end address
8233         when the upper limit could not be computed using the debugging
8234         info.
8235
8236 2011-01-17  Tom Tromey  <tromey@redhat.com>
8237
8238         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
8239         get_regcomp_error.
8240         * utils.c: Include gdb_regex.h.
8241         (do_regfree_cleanup): New function.
8242         (make_regfree_cleanup): Likewise.
8243         (get_regcomp_error): Likewise.
8244         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8245
8246 2011-01-17  Tom Tromey  <tromey@redhat.com>
8247
8248         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
8249         re_compile_fastmap.
8250
8251 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
8252
8253         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8254         for internal variables.
8255         (last_was_structop): New static variable.
8256         (COMPLETE): New token.
8257         (field_exp): New rule to group all '.' suffix handling.
8258         Add mark_struct_expression calls when approriate to be able
8259         to correctly find fields for completion.
8260         (yylex): Adapt to handle field completion and set INTVAR when
8261         required.
8262
8263 2011-01-14  Yao Qi  <yao@codesourcery.com>
8264
8265         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8266         save_reggroup, restore_reggroup and all_reggroup.
8267
8268 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
8269
8270         * ada-valprint. (ada_printchar): Use the correct type length
8271         in call to ada_emit_char.
8272         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8273
8274 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8275
8276         * solib-som.h (hpux_major_release): Declare variable here.
8277         * solib-som.c:  Remove <sys/utsname.h> header.
8278         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8279         (hpux_major_release): Make global, change default value to
8280         DEFAULT_HPUX_MAJOR_RELEASE.
8281         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8282         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8283         Add "solib-som.h" header.
8284         (set_hpux_major_release): New function.
8285         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8286
8287 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
8288
8289         * configure.tgt (*-*-uclinux*): Match more Linux os targets
8290
8291 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
8292
8293         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8294         new-line at end of warning message.
8295         (ia64_hpux_store_register): Remove trailing new-line at end of
8296         error message.
8297         * ia64-hpux-tdep.c: Rephrase comment.
8298         * solib-ia64-hpux.c (struct dld_info): Change type of field
8299         dld_flags from "long long" to ULONGEST.
8300
8301 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
8302
8303         * target.h (deprecated_child_ops): Delete declaration.
8304         * target.c (deprecated_child_ops): Delete definition.
8305
8306 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
8307
8308         * Makefile.in (hpux-thread.o): Delete rule.
8309         * configure.ac: Don't check for HPUX DCE threads support.
8310         * configure, config.in: Regenerate.
8311         * hppa-hpux-nat.c (child_suppress_run): Delete.
8312         (hppa_hpux_child_can_run): Delete.
8313         (_initialize_hppa_hpux_nat): Don't override to_can_run.
8314         * hpux-thread.c: Delete.
8315
8316 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8317
8318         * hpux-thread.c (hpux_pid_to_str): Delete.
8319
8320 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8321
8322         * ada-valprint.c (ada_emit_char): Remove strange code.
8323         Check that c is <= UCHAR_MAX before passing it to isascii.
8324         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8325
8326 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8327
8328         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8329         to the case where instream is stdin.
8330
8331 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8332
8333         * ia64-tdep.h (struct regcache): Forward declare.
8334         (struct ia64_infcall_ops): New struct type.
8335         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8336         and "infcall_ops".
8337         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8338         Renames ia64_find_global_pointer.
8339         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8340         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8341         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8342         methods.
8343         (ia64_infcall_ops): New static global constant.
8344         (ia64_gdbarch_init): Set tdep->infcall_ops.
8345         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8346         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8347         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8348         (ia64_hpux_dummy_code): New static global constant.
8349         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8350         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8351         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8352         New function.
8353         (ia64_hpux_infcall_ops): New static global constant.
8354         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8355         for inferior function calls to work properly on ia64-hpux.
8356
8357 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8358
8359         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8360         * ia64-tdep.h (struct frame_info): forward declaration.
8361         (struct gdbarch_tdep): Add field size_of_register_frame.
8362         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8363         to determine the size of the register frame.
8364         (ia64_size_of_register_frame): New function.
8365         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8366         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8367         (IA64_HPUX_UREG_REASON): New macro.
8368         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8369         New functions.
8370         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8371         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8372         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8373         objects.
8374
8375 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8376
8377         Add support for ia64-hpux.
8378         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8379         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8380
8381         * configure.host: Add handling for ia64-hpux hosts.  Add associated
8382         floatformats.
8383         * configure.tgt: Add handling for ia64-hpux targets.
8384         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8385         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8386         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8387
8388 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8389
8390         [ttrace] Compute thread list immediately after attach.
8391         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8392         New subprogram.
8393         (inf_ttrace_attach): Use it.
8394
8395 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8396
8397         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8398         if we could not determine the frame's function address.  Instead,
8399         use the frame's PC, and then continue.
8400
8401 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8402
8403         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8404         not already defined.
8405
8406 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8407
8408         * ia64-tdep.c (ia64_struct_type_p): New function.
8409         (ia64_extract_return_value): Handle integral values that are
8410         less than 8 bytes long.
8411         (ia64_push_dummy_call): Likewise.
8412
8413 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8414
8415         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8416         floatformat_ia64_ext.
8417         (floatformat_ia64_ext_big): New static const.
8418         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8419
8420 2011-01-12  Tom Tromey  <tromey@redhat.com>
8421
8422         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8423         messages.
8424         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8425         (mi_cmd_thread_list_ids): Likewise.
8426         (mi_cmd_data_list_changed_registers): Likewise.
8427         (mi_cmd_data_list_register_values): Likewise.
8428         (mi_cmd_data_write_register_values): Likewise.
8429         (mi_cmd_data_evaluate_expression): Likewise.
8430         (mi_cmd_data_read_memory): Likewise.
8431         (mi_cmd_data_read_memory_bytes): Likewise.
8432         (mi_cmd_data_write_memory): Likewise.
8433         (mi_cmd_enable_timings): Likewise.
8434         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8435         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8436         (mi_cmd_var_delete): Likewise.
8437         (mi_cmd_var_set_format): Likewise.
8438         (mi_cmd_var_show_format): Likewise.
8439         (mi_cmd_var_info_num_children): Likewise.
8440         (mi_cmd_var_list_children): Likewise.
8441         (mi_cmd_var_info_type): Likewise.
8442         (mi_cmd_var_info_expression): Likewise.
8443         (mi_cmd_var_show_attributes): Likewise.
8444         (mi_cmd_var_assign): Likewise.
8445         (mi_cmd_var_update): Likewise.
8446         (mi_cmd_enable_pretty_printing): Likewise.
8447         (mi_cmd_var_set_update_range): Likewise.
8448         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8449         messages.
8450         (mi_cmd_target_file_put): Likewise.
8451         (mi_cmd_target_file_delete): Likewise.
8452         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8453         messages.
8454         (mi_cmd_stack_info_depth): Likewise.
8455         (mi_cmd_stack_list_locals): Likewise.
8456         (mi_cmd_stack_list_args): Likewise.
8457         (mi_cmd_stack_select_frame): Likewise.
8458         (mi_cmd_stack_select_frame): Likewise.
8459         (mi_cmd_stack_info_frame): Likewise.
8460         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8461         messages.
8462         (mi_cmd_file_list_exec_source_files): Likewise.
8463         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8464         (mi_cmd_env_cd): Likewise.
8465         (mi_cmd_env_path): Likewise.
8466         (mi_cmd_env_dir): Likewise.
8467         (mi_cmd_inferior_tty_show): Likewise.
8468         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8469         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8470         (mi_cmd_break_watch): Likewise.
8471
8472 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8473
8474         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8475         (ppc_linux_insert_hw_breakpoint): Likewise.
8476         (ppc_linux_remove_hw_breakpoint): Likewise.
8477         (ppc_linux_insert_watchpoint): Likewise.
8478
8479 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
8480             Jan Kratochvil  <jan.kratochvil@redhat.com>
8481
8482         PR fortran/11104 and DWARF unbound arrays detection.
8483         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8484         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8485         unspecified upper bound.
8486         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8487         variables array_size_array, tmp_type and offset_item.  New variable
8488         array.  Remove call to f77_get_upperbound.  New variables array_type
8489         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
8490         the final call to deprecated_set_value_type.
8491
8492 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
8493
8494         Make value allocations more lazy.
8495         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8496         instead of allocate_value and set_value_lazy when possible.
8497         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8498         instead of allocate_value and set_value_lazy.
8499         * findvar.c (value_of_register_lazy): Likewise.
8500         (read_var_value): Remove V preallocation, call just check_typedef in
8501         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
8502         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8503         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
8504         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
8505         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
8506         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
8507         the end, remove set_value_lazy there.
8508         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8509         instead of allocate_value and set_value_lazy when possible.
8510         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8511         * value.c (allocate_computed_value): Use allocate_value_lazy instead
8512         of allocate_value and set_value_lazy.
8513         (value_from_contents_and_address): Use allocate_value_lazy instead of
8514         allocate_value and set_value_lazy when possible.
8515
8516 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
8517
8518         * disasm.c (dump_insns): Support dumping opcodes for MI.
8519         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8520         dumping of instruction opcodes.
8521
8522 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
8523
8524         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8525         appropiately.
8526
8527 2011-01-11  Tom Tromey  <tromey@redhat.com>
8528
8529         * thread.c (do_captured_thread_select): Emit newline before
8530         printing frame.
8531
8532 2011-01-11  Michael Snyder  <msnyder@vmware.com>
8533
8534         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8535         * score-tdep.c: Ditto.
8536         * score-tdep.h: Ditto.
8537         * ser-base.c: Ditto.
8538         * ser-go32.c: Ditto.
8539         * serial.c: Ditto.
8540         * serial.h: Ditto.
8541         * ser-mingw.c: Ditto.
8542         * ser-pipe.c: Ditto.
8543         * ser-tcp.c: Ditto.
8544         * ser-unix.c: Ditto.
8545         * sh64-tdep.c: Ditto.
8546         * shnbsd-nat.c: Ditto.
8547         * sh-tdep.c: Ditto.
8548         * sh-tdep.h: Ditto.
8549         * solib.c: Ditto.
8550         * solib-darwin.c: Ditto.
8551         * solib-frv.c: Ditto.
8552         * solib.h: Ditto.
8553         * solib-irix.c: Ditto.
8554         * solib-osf.c: Ditto.
8555         * solib-pa64.c: Ditto.
8556         * solib-som.c: Ditto.
8557         * solib-spu.c: Ditto.
8558         * solib-sunos.c: Ditto.
8559         * solib-svr4.c: Ditto.
8560         * solist.h: Ditto.
8561         * sol-thread.c: Ditto.
8562         * somread.c: Ditto.
8563         * source.c: Ditto.
8564         * source.h: Ditto.
8565         * sparc64-linux-tdep.c: Ditto.
8566         * sparc64-tdep.c: Ditto.
8567         * sparc-linux-nat.c: Ditto.
8568         * sparc-linux-tdep.c: Ditto.
8569         * sparc-sol2-nat.c: Ditto.
8570         * sparc-sol2-tdep.c: Ditto.
8571         * sparc-tdep.c: Ditto.
8572         * sparc-tdep.h: Ditto.
8573         * spu-tdep.c: Ditto.
8574         * stabsread.c: Ditto.
8575         * stabsread.h: Ditto.
8576         * stack.c: Ditto.
8577         * symfile.c: Ditto.
8578         * symfile.h: Ditto.
8579         * symmisc.c: Ditto.
8580         * symtab.c: Ditto.
8581         * symtab.h: Ditto.
8582         * target.c: Ditto.
8583         * target-descriptions.c: Ditto.
8584         * target-descriptions.h: Ditto.
8585         * target.h: Ditto.
8586         * target-memory.c: Ditto.
8587         * terminal.h: Ditto.
8588         * thread.c: Ditto.
8589         * top.c: Ditto.
8590         * tracepoint.c: Ditto.
8591         * tracepoint.h: Ditto.
8592         * trad-frame.h: Ditto.
8593         * typeprint.c: Ditto.
8594
8595 2011-01-11  Michael Snyder  <msnyder@vmware.com>
8596
8597         * ui-file.c: Comment cleanup, mostly periods and spaces.
8598         * ui-file.h: Ditto.
8599         * ui-out.c: Ditto.
8600         * ui-out.h: Ditto.
8601         * utils.c: Ditto.
8602         * v850-tdep.c: Ditto.
8603         * valarith.c: Ditto.
8604         * valops.c: Ditto.
8605         * valprint.c: Ditto.
8606         * valprint.h: Ditto.
8607         * value.c: Ditto.
8608         * value.h: Ditto.
8609         * varobj.c: Ditto.
8610         * varobj.h: Ditto.
8611         * vax-tdep.c: Ditto.
8612         * vec.c: Ditto.
8613         * vec.h: Ditto.
8614         * version.h: Ditto.
8615         * windows-nat.c: Ditto.
8616         * windows-tdep.c: Ditto.
8617         * xcoffread.c: Ditto.
8618         * xcoffsolib.c: Ditto.
8619         * xml-support.c: Ditto.
8620         * xstormy16-tdep.c: Ditto.
8621         * xtensa-tdep.c: Ditto.
8622         * xtensa-tdep.h: Ditto.
8623
8624 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8625
8626         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8627         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8628
8629 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
8630             Thiago Jung Bauermann  <bauerman@br.ibm.com>
8631
8632         Implement support for PowerPC BookE ranged watchpoints.
8633         * breakpoint.h
8634         (struct breakpoint_ops) <resources_needed>: New method.
8635         Initialize to NULL in all existing breakpoint_ops instances.
8636         (struct breakpoint) <exact>: New field.
8637         (target_exact_watchpoints): Declare external global.
8638         * breakpoint.c (target_exact_watchpoints): New global flag.
8639         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8640         b->enable_state to bp_enabled before calling
8641         hw_watchpoint_used_count.
8642         (hw_watchpoint_used_count): Iterate over all bp_locations in a
8643         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
8644         if available.
8645         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8646         if the watchpoint is exact.
8647         (resources_needed_watchpoint): New function.
8648         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8649         (watch_command_1): Set b->exact if the user asked for an exact
8650         watchpoint and one can be set.
8651         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8652         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8653         the user asks for an exact watchpoint and one can be set.  Return
8654         number of needed debug registers to watch the expression.
8655         * gdbtypes.c (is_scalar_type): New function, based on
8656         valprint.c:scalar_type_p.
8657         (is_scalar_type_recursive): New function.
8658         * gdbtypes.h (is_scalar_type_recursive): Declare.
8659         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8660         handle regions when ranged watchpoints are available.
8661         (create_watchpoint_request): New function.
8662         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8663         create_watchpoint_request.
8664         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8665         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8666         `set powerpc' and `show powerpc' commands.
8667         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8668         Mention documentation comment in the target macro.
8669         (target_region_ok_for_hw_watchpoint): Document return value.
8670
8671 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8672
8673         * breakpoint.c (update_watchpoint): Decide on using a software or
8674         hardware watchpoint after the bp_locations are created.
8675
8676 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8677
8678         Convert hardware watchpoints to use breakpoint_ops.
8679         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8680         <insert_location>: ... this.  Return int instead of void.
8681         Accept pointer to struct bp_location instead of pointer to
8682         struct breakpoint.  Adapt all implementations.
8683         (breakpoint_ops) <remove>: Rename to...
8684         <remove_location>: ... this.  Accept pointer to struct bp_location
8685         instead of pointer to struct breakpoint.  Adapt all implementations.
8686         * breakpoint.c (insert_catchpoint): Delete function.
8687         (insert_bp_location): Call the watchpoint or catchpoint's
8688         breakpoint_ops.insert method.
8689         (remove_breakpoint_1): Call the watchpoint or catchpoint's
8690         breakpoint_ops.remove method.
8691         (insert_watchpoint, remove_watchpoint): New functions.
8692         (watchpoint_breakpoint_ops): New structure.
8693         (watch_command_1): Initialize the OPS field.
8694         * inf-child.c (inf_child_insert_fork_catchpoint)
8695         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8696         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8697         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8698         Delete functions.
8699         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8700         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8701         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8702         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8703         * target.c (update_current_target): Change default implementation of
8704         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8705         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8706         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8707         to_set_syscall_catchpoint to return_one.
8708         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8709         (debug_to_insert_exec_catchpoint): Report return value.
8710         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8711         (to_insert_exec_catchpoint): Change declaration to return int instead
8712         of void.
8713
8714 2011-01-11  Michael Snyder  <msnyder@vmware.com>
8715
8716         * arm-tdep.c: Internationalization.
8717         * c-lang.c: Ditto.
8718         * charset.c: Ditto.
8719         * fork-child.c: Ditto.
8720         * nto-procfs.c: Ditto.
8721         * ppc-sysv-tdep.c: Ditto.
8722         * procfs.c: Ditto.
8723         * remote-mips.c: Ditto.
8724         * remote.c: Ditto.
8725         * rs6000-nat.c: Ditto.
8726         * rs6000-tdep.c: Ditto.
8727         * target.c: Ditto.
8728         * valops.c: Ditto.
8729         * value.c: Ditto.
8730         * xml-support.c: Ditto.
8731         * mi/mi-cmd-break.c: Ditto.
8732         * mi/mi-cmd-var.c: Ditto.
8733         * mi/mi-interp.c: Ditto.
8734         * mi/mi-main.c: Ditto.
8735
8736 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
8737
8738         * remote-sim.c (gdbsim_store_register): Update API to
8739         sim_store_register to check more error conditions.
8740
8741 2011-01-10  Michael Snyder  <msnyder@vmware.com>
8742
8743         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8744         * nto-tdep.c: Ditto.
8745         * nto-tdep.h: Ditto.
8746         * objc-exp.y: Ditto.
8747         * objc-lang.c: Ditto.
8748         * objfiles.c: Ditto.
8749         * objfiles.h: Ditto.
8750         * observer.c: Ditto.
8751         * opencl-lang.c: Ditto.
8752         * osabi.c: Ditto.
8753         * parse.c: Ditto.
8754         * parser-defs.h: Ditto.
8755         * p-exp.y: Ditto.
8756         * p-lang.c: Ditto.
8757         * posix-hdep.c: Ditto.
8758         * ppcbug-rom.c: Ditto.
8759         * ppc-linux-nat.c: Ditto.
8760         * ppc-linux-tdep.c: Ditto.
8761         * ppc-linux-tdep.h: Ditto.
8762         * ppcnbsd-tdep.c: Ditto.
8763         * ppcobsd-tdep.c: Ditto.
8764         * ppcobsd-tdep.h: Ditto.
8765         * ppc-sysv-tdep.c: Ditto.
8766         * ppc-tdep.h: Ditto.
8767         * printcmd.c: Ditto.
8768         * proc-abi.c: Ditto.
8769         * proc-flags.c: Ditto.
8770         * procfs.c: Ditto.
8771         * proc-utils.h: Ditto.
8772         * progspace.h: Ditto.
8773         * prologue-value.c: Ditto.
8774         * prologue-value.h: Ditto.
8775         * psympriv.h: Ditto.
8776         * psymtab.c: Ditto.
8777         * p-typeprint.c: Ditto.
8778         * p-valprint.c: Ditto.
8779         * ravenscar-sparc-thread.c: Ditto.
8780         * ravenscar-thread.c: Ditto.
8781         * ravenscar-thread.h: Ditto.
8782         * record.c: Ditto.
8783         * regcache.c: Ditto.
8784         * regcache.h: Ditto.
8785         * remote.c: Ditto.
8786         * remote-fileio.c: Ditto.
8787         * remote-fileio.h: Ditto.
8788         * remote.h: Ditto.
8789         * remote-m32r-sdi.c: Ditto.
8790         * remote-mips.c: Ditto.
8791         * remote-sim.c: Ditto.
8792         * rs6000-aix-tdep.c: Ditto.
8793         * rs6000-nat.c: Ditto.
8794         * rs6000-tdep.c: Ditto.
8795
8796 2011-01-10  Michael Snyder  <msnyder@vmware.com>
8797
8798         * charset.c (validate): Internationalization.
8799         * coffread.c (read_one_sym): Ditto.
8800         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8801         * h8300-tdep.c (H8300_extract_return_value): Ditto.
8802         * inflow.c (new_tty): Ditto.
8803         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8804         * m32c-tdep.c (m32c_return_value): Ditto.
8805         * mep-tdep.c (mep_store_return_value): Ditto.
8806         * score-tdep.c (score7_fetch_insn): Ditto.
8807         * ser-mingw.c (pipe_windows_open): Ditto.
8808         * sh64-tdep.c (sh64_extract_return_value): Ditto.
8809         * spu-tdep.c (spu_register_type): Ditto.
8810         * tracepoint.c (trace_find_command): Ditto.
8811         * valarith.c (value_pos): Ditto.
8812
8813 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
8814
8815         * ada-valprint.c (printstr): Minor comment reformatting.
8816
8817 2011-01-08  Michael Snyder  <msnyder@vmware.com>
8818
8819         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8820         markup.
8821
8822 2011-01-08  Michael Snyder  <msnyder@vmware.com>
8823
8824         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8825         * hppa-hpux-tdep.c: Ditto.
8826         * hppa-linux-nat.c: Ditto.
8827         * hppa-linux-tdep.c: Ditto.
8828         * hppanbsd-tdep.c: Ditto.
8829         * hppa-tdep.c: Ditto.
8830         * hppa-tdep.h: Ditto.
8831         * hpux-thread.c: Ditto.
8832         * i386-cygwin-tdep.c: Ditto.
8833         * i386-darwin-nat.c: Ditto.
8834         * i386gnu-nat.c: Ditto.
8835         * i386-linux-nat.c: Ditto.
8836         * i386-linux-tdep.c: Ditto.
8837         * i386-nat.c: Ditto.
8838         * i386-nat.h: Ditto.
8839         * i386nbsd-tdep.c: Ditto.
8840         * i386-sol2-nat.c: Ditto.
8841         * i386-stub.c: Ditto.
8842         * i386-tdep.c: Ditto.
8843         * i386-tdep.h: Ditto.
8844         * i387-tdep.c: Ditto.
8845         * ia64-linux-nat.c: Ditto.
8846         * ia64-linux-tdep.c: Ditto.
8847         * ia64-tdep.c: Ditto.
8848         * infcall.c: Ditto.
8849         * infcall.h: Ditto.
8850         * infcmd.c: Ditto.
8851         * inferior.c: Ditto.
8852         * inferior.h: Ditto.
8853         * infloop.c: Ditto.
8854         * inflow.c: Ditto.
8855         * infrun.c: Ditto.
8856         * interps.c: Ditto.
8857         * interps.h: Ditto.
8858         * iq2000-tdep.c: Ditto.
8859         * irix5-nat.c: Ditto.
8860         * jit.c: Ditto.
8861         * jit.h: Ditto.
8862         * jv-exp.y: Ditto.
8863         * jv-lang.c: Ditto.
8864         * jv-lang.h: Ditto.
8865         * jv-typeprint.c: Ditto.
8866         * jv-valprint.c: Ditto.
8867         * language.c: Ditto.
8868         * language.h: Ditto.
8869         * linespec.c: Ditto.
8870         * linux-fork.c: Ditto.
8871         * linux-nat.c: Ditto.
8872         * linux-thread-db.c: Ditto.
8873         * lm32-tdep.c: Ditto.
8874
8875 2011-01-08  Michael Snyder  <msnyder@vmware.com>
8876
8877         * m2-exp.y: Comment cleanup, mostly periods and spaces.
8878         * m2-lang.c: Ditto.
8879         * m2-typeprint.c: Ditto.
8880         * m2-valprint.c: Ditto.
8881         * m32c-tdep.c: Ditto.
8882         * m32r-linux-nat.c: Ditto.
8883         * m32r-rom.c: Ditto.
8884         * m32r-tdep.c: Ditto.
8885         * m32r-tdep.h: Ditto.
8886         * m68hc11-tdep.c: Ditto.
8887         * m58klinux-nat.c: Ditto.
8888         * m68k-tdep.c: Ditto.
8889         * m88k-tdep.c: Ditto.
8890         * m88k-tdep.h: Ditto.
8891         * machoread.c: Ditto.
8892         * macrocmd.c: Ditto.
8893         * macroexp.c: Ditto.
8894         * macrotab.c: Ditto.
8895         * main.c: Ditto.
8896         * maint.c: Ditto.
8897         * mdebugread.c: Ditto.
8898         * mdebugread.h: Ditto.
8899         * memattr.c: Ditto.
8900         * memattr.h: Ditto.
8901         * memory-map.h: Ditto.
8902         * mep-tdep.c: Ditto.
8903         * microblaze-rom.c: Ditto.
8904         * microblaze-tdep.c: Ditto.
8905         * minsyms.c: Ditto.
8906         * mips-irix-tdep.c: Ditto.
8907         * mips-linux-nat.c: Ditto.
8908         * mips-linux-tdep.c: Ditto.
8909         * mips-linux-tdep.h: Ditto.
8910         * mipsnbsd-nat.c: Ditto.
8911         * mipsnbsd-tdep.c: Ditto.
8912         * mipsread.c: Ditto.
8913         * mips-tdep.c: Ditto.
8914         * mips-tdep.h: Ditto.
8915         * mn10300-linux-tdep.c: Ditto.
8916         * mn10300-tdep.c: Ditto.
8917         * mn10300-tdep.h: Ditto.
8918         * monitor.c: Ditto.
8919         * monitor.h: Ditto.
8920         * moxie-tdep.c: Ditto.
8921         * moxie-tdep.h: Ditto.
8922         * mt-tdep.c: Ditto.
8923
8924 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
8925
8926         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8927
8928 2011-01-08  Robert Millan  <rmh@gnu.org>
8929
8930         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8931
8932 2011-01-07  Michael Snyder  <msnyder@vmware.com>
8933
8934         * charset.c (_initialize_charset): Fix typo in string.
8935
8936 2011-01-07  Michael Snyder  <msnyder@vmware.com>
8937
8938         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8939         for i18n.
8940         * tui/tui-layout.c (tui_set_layout_for_display_command):
8941         Split line so that operator goes to beginning of line.
8942         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8943         assignment out of if statement.
8944
8945 2011-01-07  Michael Snyder  <msnyder@vmware.com>
8946
8947         * ada-lang.c: Comment cleanup, mostly periods and spaces.
8948         * ada-lang.h: Ditto.
8949         * ada-tasks.c: Ditto.
8950         * ada-valprint.c: Ditto.
8951         * aix-threads.c: Ditto.
8952         * alpha-linux-nat.c: Ditto.
8953         * alpha-linux-tdep.c: Ditto.
8954         * alpha-mdebug-tdep.c: Ditto.
8955         * alpha-nat.c: Ditto.
8956         * alpha-osf1-tdep.c: Ditto.
8957         * alpha-tdep.c: Ditto.
8958         * alphabsd-nat.c: Ditto.
8959         * alphabsd-tdep.c: Ditto.
8960         * amd64-darwin-tdep.c: Ditto.
8961         * amd64-linux-nat.c: Ditto.
8962         * amd64-linux-tdep.c: Ditto.
8963         * amd64-sol2-tdep.c: Ditto.
8964         * amd64-tdep.c: Ditto.
8965         * amd64-fbsd-tdep.c: Ditto.
8966         * amd64-nbsd-tdep.c: Ditto.
8967         * amd64-obsd-tdep.c: Ditto.
8968         * amd64-linux-nat.c: Ditto.
8969         * amd64-linux-tdep.c: Ditto.
8970         * arm-tdep.c: Ditto.
8971         * arm-tdep.h: Ditto.
8972         * armnbsd-nat.c: Ditto.
8973         * avr-tdep.c: Ditto.
8974         * bfin-tdep.c: Ditto.
8975         * bsd-kvm.c: Ditto.
8976         * c-typeprintc: Ditto.
8977         * c-valprint.c: Ditto.
8978         * coff-pe-read.h: Ditto.
8979         * coffreead.c: Ditto.
8980         * cris-tdep.c: Ditto.
8981         * d-lang.c: Ditto.
8982         * darwin-nat-info.c: Ditto.
8983         * darwin-nat.c: Ditto.
8984         * dbug-rom.c: Ditto.
8985         * dbxread.c: Ditto.
8986         * dcache.c: Ditto.
8987         * dcache.h: Ditto.
8988         * dec-thread.c: Ditto.
8989         * defs.h: Ditto.
8990         * demangle.c: Ditto.
8991         * dicos-tdep.c: Ditto.
8992         * dictionary.c: Ditto.
8993         * dictionary.h: Ditto.
8994         * dink32-rom.c: Ditto.
8995         * disasm.c: Ditto.
8996         * doublest.c: Ditto.
8997         * dsrec.c: Ditto.
8998         * dummy-frame.c: Ditto.
8999         * dwarf2-frame.c: Ditto.
9000         * dwarf2expr.c: Ditto.
9001         * dwarf2loc.c: Ditto.
9002         * dwarf2read.c: Ditto.
9003         * elfread.c: Ditto.
9004         * environ.c: Ditto.
9005         * eval.c: Ditto.
9006         * event-top.h: Ditto.
9007         * exceptions.c: Ditto.
9008         * exceptions.h: Ditto.
9009         * exec.c: Ditto.
9010         * expprint.c: Ditto.
9011         * expression.h: Ditto.
9012         * f-exp.y: Ditto.
9013         * f-lang.c: Ditto.
9014         * f-lang.h: Ditto.
9015         * f-typeprint.c: Ditto.
9016         * f-valprint.c: Ditto.
9017         * fbsd-nat.c: Ditto.
9018         * findvar.c: Ditto.
9019         * fork-child.c: Ditto.
9020         * frame.c: Ditto.
9021         * frame.h: Ditto.
9022         * frv-linux-tdep.c: Ditto.
9023         * frv-tdep.c: Ditto.
9024         * gcore.c: Ditto.
9025         * gdb-stabs.h: Ditto.
9026         * gdb_assert.h: Ditto.
9027         * gdb_string.h: Ditto.
9028         * gdb_thread_db.h: Ditto.
9029         * gdb_wait.h: Ditto.
9030         * gdbarch.sh: Ditto.
9031         * gdbcore.h: Ditto.
9032         * gdbthread.h: Ditto.
9033         * gdbtypes.c: Ditto.
9034         * gdbtypes.h: Ditto.
9035         * gnu-nat.c: Ditto.
9036         * gnu-nat.h: Ditto.
9037         * gnu-v2-abi.c: Ditto.
9038         * gnu-v3-abi.c: Ditto.
9039         * go32-nat.c: Ditto.
9040         * gdbarch.c: Regenerate.
9041         * gdbarch.h: Regenerate.
9042
9043 2011-01-07  Michael Snyder  <msnyder@vmware.com>
9044
9045         * ax-gdb.c: Adjust some long output strings.
9046         * breakpoint.c: Ditto.
9047         * charset.c: Ditto.
9048         * cp-abi.c: Ditto.
9049         * infcall.c: Ditto.
9050         * infrun.c: Ditto.
9051         * linux-nat.c: Ditto.
9052         * solib-pa64.c: Ditto.
9053         * solib-som.c: Ditto.
9054
9055 2011-01-06  Tom Tromey  <tromey@redhat.com>
9056
9057         PR python/12367:
9058         * NEWS: Add item.
9059         * python/python.c (GdbMethods): Add "newest_frame" method.
9060         * python/python-internal.h (gdbpy_newest_frame): Declare.
9061         * python/py-frame.c (gdbpy_newest_frame): New function.
9062
9063 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9064
9065         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9066         * jit.c (jit_debug): New variable.
9067         (show_jit_debug): New function.
9068         (struct target_buffer): Use ULONGEST.
9069         (bfd_open_from_target_memory): Likewise.
9070         (jit_register_code, jit_inferior_init): Add debug output.
9071         (_initialize_jit): Register "debug jit" command.
9072
9073 2011-01-06  Tom Tromey  <tromey@redhat.com>
9074
9075         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9076         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9077         and ARCH_FRAME.
9078
9079 2011-01-06  Tom Tromey  <tromey@redhat.com>
9080
9081         * python/py-frame.c (frapy_block): Use get_frame_block.
9082
9083 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
9084
9085         Do not stop on SIGPRIO signals by default
9086         * infrun.c (_initialize_infrun): Unset signal_stop and
9087         signal_print for TARGET_SIGNAL_PRIO.
9088
9089 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
9090
9091         * ada-tasks.c: Fix style violation in comment.
9092
9093 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
9094
9095         * linespec.c (decode_compound, find_method): Remove trailing \n
9096         at end of error string.
9097         * solib-irix.c (irix_current_sos): Likewise.
9098         * varobj.c (uninstall_variable): Likewise.
9099
9100 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
9101
9102         * copyright.py: New script.
9103         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9104         Launch emacs without exec'ing. Call copyright.py afterwards.
9105
9106 2011-01-05  Michael Snyder  <msnyder@vmware.com>
9107
9108         * addrmap.c: Shorten lines of >= 80 columns.
9109         * arch-utils.c: Ditto.
9110         * arch-utils.h: Ditto.
9111         * ax-gdb.c: Ditto.
9112         * ax-general.c: Ditto.
9113         * bcache.c: Ditto.
9114         * blockframe.c: Ditto.
9115         * breakpoint.c: Ditto.
9116         * buildsym.c: Ditto.
9117         * c-lang.c: Ditto.
9118         * c-typeprint.c: Ditto.
9119         * charset.c: Ditto.
9120         * coffread.c: Ditto.
9121         * command.h: Ditto.
9122         * corelow.c: Ditto.
9123         * cp-abi.c: Ditto.
9124         * cp-namespace.c: Ditto.
9125         * cp-support.c: Ditto.
9126         * dbug-rom.c: Ditto.
9127         * dbxread.c: Ditto.
9128         * defs.h: Ditto.
9129         * dfp.c: Ditto.
9130         * dfp.h: Ditto.
9131         * dictionary.c: Ditto.
9132         * disasm.c: Ditto.
9133         * doublest.c: Ditto.
9134         * dwarf2-frame.c: Ditto.
9135         * dwarf2expr.c: Ditto.
9136         * dwarf2loc.c: Ditto.
9137         * dwarf2read.c: Ditto.
9138         * elfread.c: Ditto.
9139         * eval.c: Ditto.
9140         * event-loop.c: Ditto.
9141         * event-loop.h: Ditto.
9142         * exceptions.h: Ditto.
9143         * exec.c: Ditto.
9144         * expprint.c: Ditto.
9145         * expression.h: Ditto.
9146         * f-lang.c: Ditto.
9147         * f-valprint.c: Ditto.
9148         * findcmd.c: Ditto.
9149         * frame-base.c: Ditto.
9150         * frame-unwind.c: Ditto.
9151         * frame-unwind.h: Ditto.
9152         * frame.c: Ditto.
9153         * frame.h: Ditto.
9154         * gcore.c: Ditto.
9155         * gdb-stabs.h: Ditto.
9156         * gdb_assert.h: Ditto.
9157         * gdb_dirent.h: Ditto.
9158         * gdb_obstack.h: Ditto.
9159         * gdbcore.h: Ditto.
9160         * gdbtypes.c: Ditto.
9161         * gdbtypes.h: Ditto.
9162         * inf-ttrace.c: Ditto.
9163         * infcall.c: Ditto.
9164         * infcmd.c: Ditto.
9165         * inflow.c: Ditto.
9166         * infrun.c: Ditto.
9167         * inline-frame.h: Ditto.
9168         * language.c: Ditto.
9169         * language.h: Ditto.
9170         * libunwind-frame.c: Ditto.
9171         * libunwind-frame.h: Ditto.
9172         * linespec.c: Ditto.
9173         * linux-nat.c: Ditto.
9174         * linux-nat.h: Ditto.
9175         * linux-thread-db.c: Ditto.
9176         * machoread.c: Ditto.
9177         * macroexp.c: Ditto.
9178         * macrotab.c: Ditto.
9179         * main.c: Ditto.
9180         * maint.c: Ditto.
9181         * mdebugread.c: Ditto.
9182         * memattr.c: Ditto.
9183         * minsyms.c: Ditto.
9184         * monitor.c: Ditto.
9185         * monitor.h: Ditto.
9186         * objfiles.c: Ditto.
9187         * objfiles.h: Ditto.
9188         * osabi.c: Ditto.
9189         * p-typeprint.c: Ditto.
9190         * p-valprint.c: Ditto.
9191         * parse.c: Ditto.
9192         * printcmd.c: Ditto.
9193         * proc-events.c: Ditto.
9194         * procfs.c: Ditto.
9195         * progspace.c: Ditto.
9196         * progspace.h: Ditto.
9197         * psympriv.h: Ditto.
9198         * psymtab.c: Ditto.
9199         * record.c: Ditto.
9200         * regcache.c: Ditto.
9201         * regcache.h: Ditto.
9202         * remote-fileio.c: Ditto.
9203         * remote.c: Ditto.
9204         * ser-mingw.c: Ditto.
9205         * ser-tcp.c: Ditto.
9206         * ser-unix.c: Ditto.
9207         * serial.c: Ditto.
9208         * serial.h: Ditto.
9209         * solib-frv.c: Ditto.
9210         * solib-irix.c: Ditto.
9211         * solib-osf.c: Ditto.
9212         * solib-pa64.c: Ditto.
9213         * solib-som.c: Ditto.
9214         * solib-sunos.c: Ditto.
9215         * solib-svr4.c: Ditto.
9216         * solib-target.c: Ditto.
9217         * solib.c: Ditto.
9218         * somread.c: Ditto.
9219         * source.c: Ditto.
9220         * stabsread.c: Ditto.
9221         * stabsread.c: Ditto.
9222         * stack.c: Ditto.
9223         * stack.h: Ditto.
9224         * symfile-mem.c: Ditto.
9225         * symfile.c: Ditto.
9226         * symfile.h: Ditto.
9227         * symmisc.c: Ditto.
9228         * symtab.c: Ditto.
9229         * symtab.h: Ditto.
9230         * target-descriptions.c: Ditto.
9231         * target-memory.c: Ditto.
9232         * target.c: Ditto.
9233         * target.h: Ditto.
9234         * terminal.h: Ditto.
9235         * thread.c: Ditto.
9236         * top.c: Ditto.
9237         * tracepoint.c: Ditto.
9238         * tracepoint.h: Ditto.
9239         * ui-file.c: Ditto.
9240         * ui-file.h: Ditto.
9241         * ui-out.h: Ditto.
9242         * user-regs.c: Ditto.
9243         * user-regs.h: Ditto.
9244         * utils.c: Ditto.
9245         * valarith.c: Ditto.
9246         * valops.c: Ditto.
9247         * valprint.c: Ditto.
9248         * valprint.h: Ditto.
9249         * value.c: Ditto.
9250         * varobj.c: Ditto.
9251         * varobj.h: Ditto.
9252         * vec.h: Ditto.
9253         * xcoffread.c: Ditto.
9254         * xcoffsolib.c: Ditto.
9255         * xcoffsolib.h: Ditto.
9256         * xml-syscall.c: Ditto.
9257         * xml-tdesc.c: Ditto.
9258
9259 2011-01-05  Michael Snyder  <msnyder@vmware.com>
9260
9261         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9262         * cli/cli-decode.c: Ditto.
9263         * cli/cli-dump.c: Ditto.
9264         * cli/cli-logging.c: Ditto.
9265         * cli/cli-script.c: Ditto.
9266         * cli/cli-setshow.c: Ditto.
9267         * common/signals.c: Ditto.
9268         * mi/mi-cmd-break.c: Ditto.
9269         * mi/mi-cmd-disas.c: Ditto.
9270         * mi/mi-cmd-stack.c: Ditto.
9271         * mi/mi-cmd-var.c: Ditto.
9272         * mi/mi-cmds.c: Ditto.
9273         * mi/mi-common.h: Ditto.
9274         * mi/mi-console.c: Ditto.
9275         * mi/mi-interp.c: Ditto.
9276         * mi/mi-main.c: Ditto.
9277         * osf-share/cma_attr.c: Ditto.
9278         * osf-share/cma_deb_core.h: Ditto.
9279         * osf-share/cma_debug_client.h: Ditto.
9280         * osf-share/cma_handle.h: Ditto.
9281         * osf-share/cma_mutex.h: Ditto.
9282         * osf-share/cma_stack_int.h: Ditto.
9283         * osf-share/cma_tcb_defs.h: Ditto.
9284         * python/py-auto-load.c: Ditto.
9285         * python/py-breakpoint.c: Ditto.
9286         * python/py-cmd.c: Ditto.
9287         * python/py-frame.c: Ditto.
9288         * python/py-objfile.c: Ditto.
9289         * python/py-param.c: Ditto.
9290         * python/py-progspace.c: Ditto.
9291         * python/py-symbol.c: Ditto.
9292         * python/py-value.c: Ditto.
9293         * python/python-internal.h: Ditto.
9294         * python/python.c: Ditto.
9295         * tui/tui-data.c: Ditto.
9296         * tui/tui-disasm.c: Ditto.
9297         * tui/tui-hooks.c: Ditto.
9298         * tui/tui-io.c: Ditto.
9299         * tui/tui-layout.c: Ditto.
9300         * tui/tui-regs.c: Ditto.
9301         * tui/tui-source.c: Ditto.
9302         * tui/tui-stack.c: Ditto.
9303         * tui/tui-win.c: Ditto.
9304         * tui/tui-windata.c: Ditto.
9305         * tui/tui-winsource.c: Ditto.
9306
9307 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
9308
9309         * configure.ac, gdb.1: Copyright year update.
9310
9311 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9312
9313         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9314         this_pc_in_block, morestack_msym and morestack_name.  Check for
9315         "__morestack" minimal symbol there.
9316
9317 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
9318
9319         * symfile.c (find_sym_fns): Add call to dont_repeat.
9320
9321 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
9322
9323         Copyright year update in most files (performed by copyright.sh).
9324
9325 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
9326
9327         * top.c (print_gdb_version): Update copyright year in version output.
9328
9329 For older changes see ChangeLog-2010.
9330 \f
9331 Local Variables:
9332 mode: change-log
9333 left-margin: 8
9334 fill-column: 74
9335 version-control: never
9336 coding: utf-8
9337 End: