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