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