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