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