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