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