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