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