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