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