]> Git Repo - binutils.git/blob - gdb/ChangeLog
gdb/
[binutils.git] / gdb / ChangeLog
1 2011-07-13  Jan Kratochvil  <[email protected]>
2
3         Code cleanup.
4         * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
5         Indent prototypes so they do not get into tags.
6
7 2011-07-12  Jan Kratochvil  <[email protected]>
8
9         Code cleanup making also optimized out values lazy.
10         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11         allocate_optimized_out_value.  Twice.
12         (loclist_read_variable)  Use allocate_optimized_out_value.  Once.
13         * findvar.c (read_var_value): Likewise.
14         * value.c (allocate_optimized_out_value): New function.
15         * value.h (allocate_optimized_out_value): New declaration.
16
17 2011-07-12  Jan Kratochvil  <[email protected]>
18
19         Fix occasional crash of CTRL-C during DWARF read in.
20         * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
21
22 2011-07-11  Tom Tromey  <[email protected]>
23
24         * regcache.c (struct regcache_descr): Fix typo.
25         * i387-tdep.c (i387_supply_xsave): Fix typo.
26
27 2011-07-11  Tom Tromey  <[email protected]>
28
29         * dwarf2read.c (handle_DW_AT_stmt_list): New function.
30         (read_file_scope, read_type_unit_scope): Use it.
31
32 2011-07-11  Jan Kratochvil  <[email protected]>
33
34         * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
35         `int'.
36
37 2011-07-11  Phil Muldoon  <[email protected]>
38
39         PR python/12438
40         * python/python.c: Set gdbpy_should_print_stack default to off.
41         (set_python): Deprecate maint set python print-stack to
42         class_deprecate.
43         (_initialize_python): Deprecate maint set/show python print-stack.
44         Add new prefix command, python.  Add new setting, print-backtrace.
45         * NEWS: Document set python print-stack.  Document default change.
46
47 2011-07-11  Phil Muldoon  <[email protected]>
48
49         * python/py-inferior.c (infpy_dealloc): New function.
50         (inferior_to_inferior_object): Return a new object, or a
51         new reference to the existing object.
52         (find_thread_object): Cleanup references to inferior.
53         (delete_thread_object): Ditto.
54         * python/py-infthread.c (create_thread_object): Do not increment
55         inferior reference count.
56
57 2011-07-08  Tom Tromey  <[email protected]>
58
59         * dwarf2loc.c (locexpr_regname): New function.
60         (locexpr_describe_location_piece): Use it.
61         (disassemble_dwarf_expression): Add per_cu argument.  Use
62         locexpr_regname.
63         <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
64         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
65         New cases.
66         (locexpr_describe_location_1): Add per_cu argument.
67         (locexpr_describe_location): Update.
68         (loclist_describe_location): Update.
69
70 2011-07-08  Tom Tromey  <[email protected]>
71
72         * dwarf2expr.c (execute_stack_op): Add QUIT.
73
74 2011-07-07  Hui Zhu  <[email protected]>
75
76         Revert:
77         2011-07-06  Hui Zhu  <[email protected]>
78         * remote.c (remote_start_remote): Add TRY_CATCH for
79         remote_get_trace_status.
80         * tracepoint.c (disconnect_tracing): Ditto.
81
82 2011-07-07  Andrew Burgess  <[email protected]>
83
84         * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
85         variables as signed, not unsigned.
86
87 2011-07-06  Joel Brobecker  <[email protected]>
88
89         * jit.c (jit_inferior_init): Reformat forward declaration.
90
91 2011-07-06  Matt Rice  <[email protected]>
92
93         * MAINTAINERS (Write After Approval): Add myself to the list.
94
95 2011-07-06  Hui Zhu  <[email protected]>
96
97         * remote.c (remote_start_remote): Add TRY_CATCH for
98         remote_get_trace_status.
99         * tracepoint.c (disconnect_tracing): Ditto.
100
101 2011-07-05  Tom Tromey  <[email protected]>
102
103         * symtab.c (operator_chars): Now static.
104         * linespec.c (operator_chars): Don't declare.
105
106 2011-07-05  Thiago Jung Bauermann  <[email protected]>
107
108         * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
109
110 2011-07-05  Tom Tromey  <[email protected]>
111
112         * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
113         * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
114         (TYPE_CPLUS_REALLY_JAVA): New macro.
115         * dwarf2read.c (process_structure_scope): Set
116         TYPE_CPLUS_REALLY_JAVA.
117
118 2011-07-05  Thiago Jung Bauermann  <[email protected]>
119
120         * ada-lang.c: Fix typos.
121         * amd64-tdep.c: Likewise.
122         * breakpoint.c: Likewise.
123         * cli/cli-decode.c: Likewise.
124         * findcmd.c: Likewise.
125         * inline-frame.c: Likewise.
126         * mi/mi-main.c: Likewise.
127         * minsyms.c: Likewise.
128         * monitor.c: Likewise.
129         * monitor.h: Likewise.
130         * prologue-value.c: Likewise.
131         * reverse.c: Likewise.
132         * s390-tdep.c: Likewise.
133
134 2011-07-06  Paul Pluzhnikov  <[email protected]>
135
136         * jit.c (jit_inferior_init): Forward declare.
137         (jit_breakpoint_re_set_internal): Call jit_inferior_init.
138
139 2011-07-04  Joel Brobecker  <[email protected]>
140
141         * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
142
143 2011-07-04  Tristan Gingold  <[email protected]>
144
145         * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
146         (tcb_fieldno): Add activation_link field.
147         (get_known_tasks_addr): Moved and rewritten.
148         (get_tcb_types_info): Set activation_link field.
149         (read_known_tasks_array): Add parameter.  Rewritten.
150         (read_known_tasks_list): New function.
151         (read_known_tasks): New function.
152         (ada_build_task_list): Call read_known_tasks instead of
153         read_known_tasks_array.
154         * ravenscar-thread.c: Add first_task_name constant.
155         (has_ravenscar_runtime): Check for task list too.
156
157 2011-07-04  Tristan Gingold  <[email protected]>
158
159         * ada-tasks.c: Renames fieldno to actb_fieldno.
160         (ada_get_task_number): Indentation.
161         (get_tcb_types_info): Remove all parameters.  Write directly
162         the globals.
163         (ptid_from_atcb_common): Adjust.
164         (read_atcb): Adjust.
165
166 2011-07-04  Thiago Jung Bauermann  <[email protected]>
167
168         * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
169
170 2011-07-04  Thiago Jung Bauermann  <[email protected]>
171
172         * ui-out.c (ui_out_field_core_addr): Mention that the function
173         description is in the header file.
174         * ui-out.h (ui_out_field_core_addr): Document function.
175
176 2011-07-04  Thiago Jung Bauermann  <[email protected]>
177
178         * ui-out.c (ui_out_get_field_separator): Remove unused function.
179         * ui-out.h (ui_out_get_field_separator): Remove prototype.
180
181 2011-07-04  Thiago Jung Bauermann  <[email protected]>
182
183         * symtab.c (expand_line_sal): Remove empty line.
184
185 2011-07-04  Thomas Schwinge  <[email protected]>
186
187         * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
188         same way as ELFOSABI_NONE.
189         <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
190
191 2011-07-04  Thiago Jung Bauermann  <[email protected]>
192
193         * breakpoint.c: Fix typos in comments.
194         * linespec.c: Likewise.
195         * symtab.c: Likewise.
196
197 2011-07-04  Joel Brobecker  <[email protected]>
198
199         * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
200         section in separate object files.
201
202 2011-07-04  Jan Kratochvil  <[email protected]>
203
204         Fix false GCC warning.
205         * linespec.c (decode_line_1): Initialize values.
206
207 2011-07-01  Jan Kratochvil  <[email protected]>
208
209         * linespec.c (find_method): Accept the function type automatically only
210         if it was specified with parameter types.
211
212 2011-07-01  Jan Kratochvil  <[email protected]>
213
214         Stop on first linespec terminator instead of eating what we can.
215         * linespec.c (is_linespec_boundary): New function.
216         (name_end): Remove function.
217         (keep_name_info): New parameter on_boundary, replace the body.
218         (decode_line_1): Provide the parameter to keep_name_info.
219         (decode_compound): Likewise.  Drop the trailing java return type
220         handling.  Twice.
221
222 2011-07-01  Jan Kratochvil  <[email protected]>
223
224         Fall back linespec to minimal symbols.
225         * linespec.c (decode_line_1): New variable ex, saved_argptr.  Protect
226         decode_compound by TRY_CATCH, fall back on minsyms if it failed.
227         (find_method, symbol_found): Change error to cplusplus_error.
228
229 2011-07-01  Jan Kratochvil  <[email protected]>
230
231         * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
232
233 2011-07-01  Jan Kratochvil  <[email protected]>
234             Tom Tromey  <[email protected]>
235
236         * dwarf2read.c (check_physname): New variable.
237         (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
238         (show_check_physname): New function.
239         (_initialize_dwarf2_read): Add `check-physname' for check_physname.
240
241 2011-07-01  Joel Brobecker  <[email protected]>
242
243         * machoread.c (macho_symfile_read): Delete OBE comment.
244
245 2011-07-01  Joel Brobecker  <[email protected]>
246
247         * machoread.c (struct macho_oso_data): Delete.
248         (current_oso): Delete.
249         (macho_relocate_common_syms): New function, mostly extracted
250         out of
251         (macho_add_oso_symfile): Call macho_relocate_common_syms.
252         Remove code that sets and unset current_oso.
253         (macho_symfile_relocate): Delete handling of common symbols,
254         now moved to macho_relocate_common_syms.
255
256 2011-07-01  Joel Brobecker  <[email protected]>
257
258         * darwin-nat.c (darwin_ptrace): Add documentation.
259         Set errno to zero before calling ptrace.  If ptrace returns
260         -1 and errno is zero, then change then return zero.
261         (darwin_kill_inferior): Issue a warning instead of triggering
262         a failed assertion when the PT_KILL ptrace operations returned
263         nonzero.
264
265 2011-07-01  Joel Brobecker  <[email protected]>
266
267         * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
268         only when inf->private->no_ptrace.
269
270 2011-07-01  Joel Brobecker  <[email protected]>
271
272         * ada-lang.c (print_it_exception): Print temporary catchpoints
273         as "Temporary catchpoint".
274         (print_mention_exception): Likewise.
275
276 2011-07-01  Tom Tromey  <[email protected]>
277
278         * jv-lang.c (java_language_defn): Use java_printchar,
279         java_printstr.
280         (java_get_encoding): New function.
281         (java_emit_char): Use generic_emit_char.
282         (java_printchar): New function.
283         (java_printstr): Likewise.
284
285 2011-07-01  Joel Brobecker  <[email protected]>
286
287         * ada-typeprint.c (print_record_type): If unable to decode
288         the name of the parent type, use the encoded name.
289
290 2011-07-01  Jean-Charles Delay  <[email protected]>
291
292         * ada-typeprint.c (ada_print_type): Fix both PAD type and
293         pointer to constrained packed array type output.
294         * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
295         packed array output.
296
297 2011-07-01  Jean-Charles Delay  <[email protected]>
298
299         * ada-typeprint.c (print_array_type): removed if condition on show
300         being negative for bounds printing.
301
302 2011-07-01  Joel Brobecker  <[email protected]>
303
304         * ada-lang.c (ada_identical_enum_types_p): New function.
305         (symbols_are_identical_enums): New function.
306         (remove_extra_symbols): Do nothing if NSYMS < 2.
307         Use symbols_are_identical_enums.
308
309 2011-07-01  Joel Brobecker  <[email protected]>
310
311         * ada-valprint.c (ada_value_print): Handle typedefs.
312
313 2011-07-01  Joel Brobecker  <[email protected]>
314
315         * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
316
317 2011-07-01  Eric Botcazou  <[email protected]>
318
319         * ada-lang.c (thin_descriptor_type): Deal with typedefs.
320         (decode_constrained_packed_array): Likewise.
321         (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
322
323 2011-07-01  Joel Brobecker  <[email protected]>
324
325         * ada-exp.y (convert_char_literal): Handle typedef types.
326
327 2011-07-01  Joel Brobecker  <[email protected]>
328
329         * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
330
331 2011-06-30  Tom Tromey  <[email protected]>
332
333         * varobj.c (varobj_create): Call do_cleanups on early exit path.
334         * valops.c (find_overload_match): Call do_cleanups on early exit
335         path.
336         * solib.c (solib_find): Call do_cleanups on early exit path.
337
338 2011-06-30  Tom Tromey  <[email protected]>
339
340         * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
341         * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
342         return paths.  Defer final do_cleanups until last return.
343         * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
344         early return.
345
346 2011-06-30  Tom Tromey  <[email protected]>
347
348         * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
349
350 2011-06-30  Andrew Burgess  <[email protected]>
351
352         * MAINTAINERS (Write After Approval): Add myself to the list.
353
354 2011-06-29  Jan Kratochvil  <[email protected]>
355
356         Disable epilogue unwinders on recent GCCs.
357         * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
358         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
359         * dwarf2read.c (process_full_comp_unit): Initialize
360         EPILOGUE_UNWIND_VALID.
361         * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
362         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
363         * symtab.h (struct symtab): New field epilogue_unwind_valid.
364
365 2011-06-29  Jan Kratochvil  <[email protected]>
366
367         Code cleanup - reformatting.
368         * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
369         (producer_is_gcc_ge_4): ... here, change the return value.
370         (process_full_comp_unit): New variable gcc_4_minor, adjust the value
371         interpretation.
372
373 2011-06-29  Jan Kratochvil  <[email protected]>
374
375         Fix non-only rename list for Fortran modules import.
376         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
377         cp_add_using_directive caller.
378         (cp_add_using_directive): New parameter excludes, describe it.  New
379         variables ix and param.  Compare if also excludes match.  Allocate NEW
380         with variable size, initialize EXCLUDES there.
381         (cp_lookup_symbol_imports): New variable excludep, test
382         current->EXCLUDES with it.
383         * cp-support.h: Include vec.h.
384         (struct using_direct): New field excludes, describe it.
385         (DEF_VEC_P (const_char_ptr)): New.
386         (cp_add_using_directive): New parameter excludes.
387         * defs.h (const_char_ptr): New typedef.
388         * dwarf2read.c (read_import_statement): New variables child_die,
389         excludes and cleanups, read in excludes.
390         (read_namespace): Adjust the cp_add_using_directive caller.
391
392 2011-06-29  Jan Kratochvil  <[email protected]>
393
394         Code cleanup.
395         * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
396         negative comparisons.
397
398 2011-06-29  André Pönitz  <[email protected]>
399
400         * mi/mi-main.c (mi_cmd_list_features): Emit
401         breakpoint-notifications.
402
403 2011-06-29  Tom Tromey  <[email protected]>
404
405         PR fortran/10036:
406         * valprint.h (generic_emit_char, generic_printstr): Declare.
407         * valprint.c (wchar_printable, append_string_as_wide)
408         (print_wchar): Move from c-lang.c.
409         (generic_emit_char): New function; mostly taken from c_emit_char.
410         (generic_printstr): New function; mostly taken from c_printstr.
411         * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
412         represented as arrays.
413         <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
414         type.
415         * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
416         identically to TYPE_CODE_INT.
417         * f-lang.c (f_get_encoding): New function.
418         (f_emit_char): Use generic_emit_char.
419         (f_printchar): Replace comment.
420         (f_printstr): Use generic_printstr.
421         * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
422         "character" types specially.
423         <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
424         for Fortran.
425         * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
426         Move to valprint.c
427         (c_emit_char): Call generic_emit_char.
428         (c_printstr): Call generic_printstr.
429
430 2011-06-29  Gary Benson  <[email protected]>
431
432         * breakpoint.c (bpstat_what): Removed duplicated case.
433
434 2011-06-28  Tom Tromey  <[email protected]>
435
436         * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
437
438 2011-06-27  Tom Tromey  <[email protected]>
439
440         * valops.c (find_overload_match): Call do_cleanups before early
441         return.
442         * top.c (execute_command): Call do_cleanups before early return.
443         (command_loop): Likewise.
444         * stack.c (backtrace_command): Make a null cleanup early.  Don't
445         conditionally call do_cleanups.
446         * python/py-value.c (TRY_CATCH): Move cleanup handling into
447         TRY_CATCH.
448         * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
449         so cleanups are always run.
450         * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
451         * findcmd.c (parse_find_args): Call do_cleanups on early return
452         path.
453         * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
454         Don't conditionally call do_cleanups.
455         * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
456         later.
457
458 2011-06-27  Eric Botcazou  <[email protected]>
459
460         * MAINTAINERS (Write After Approval): Use default email address.
461
462 2011-06-27  Joel Brobecker  <[email protected]>
463
464         * MAINTAINERS (Write After Approval): Add Eric Botcazou.
465
466 2011-06-27  Eric Botcazou  <[email protected]>
467
468         * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
469         saved_regs_mask and copied_regs_mask fields.
470         (sparc_record_save_insn): New prototype.
471         * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
472         (sparc_record_save_insn): New function.
473         (sparc_analyze_prologue): Add head comment.  Recognize store insns
474         of call-saved registers.  Use OFFSET consistently.  Recognize flat
475         frames and cache their settings.
476         (sparc32_skip_prologue): Handle flat frames.
477         (sparc_frame_cache): Add frame_offset to the base address.
478         (sparc32_frame_cache): Adjust to new frame description.
479         (sparc32_frame_prev_register): Likewise.
480         * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
481         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
482         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
483         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
484         frame by calling sparc_record_save_insn.
485         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
486         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
487         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
488
489 2011-06-27  Tristan Gingold  <[email protected]>
490
491         * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
492         field by map_addr and map_len.
493         (dwarf2_read_section): Adjust for the new bfd_mmap api.
494         (munmap_section_buffer): Likewise.
495
496 2011-06-24  Tom Tromey  <[email protected]>
497
498         * varobj.c (update_dynamic_varobj_children): Make 'name' const.
499         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
500         * python/python.c (gdbpy_parameter): Make 'arg' const.
501         (execute_gdb_command): Likewise.
502         (gdbpy_decode_line): Likewise.  Copy it.
503         (gdbpy_parse_and_eval): Make 'expr_string' const.  Copy it.
504         (gdbpy_write): Make 'arg' const.
505         * python/py-type.c (typy_lookup_typename): Make 'type_name'
506         const.
507         (gdbpy_lookup_type): Likewise.
508         * python/py-prettyprint.c (print_children): Make 'name' const.
509         * python/py-param.c (parmpy_init): Make 'name' const.  Copy it.
510         * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
511         Py_ssize_t.
512         * python/py-function.c (fnpy_init): Make 'name' const.
513         * python/py-cmd.c (cmdpy_init): Make 'name' const.  Copy it.
514         (gdbpy_string_to_argv): Make 'input' const.
515         * python/py-breakpoint.c (bppy_init): Make 'spec' const.  Copy
516         it.
517         * gdbtypes.h (lookup_typename): Update.
518         * gdbtypes.c (lookup_typename): Make 'name' const.
519         (lookup_struct): Likewise.
520         (lookup_union): Likewise.
521         (lookup_enum): Likewise.
522
523 2011-06-24  Tom Tromey  <[email protected]>
524
525         * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
526         gdb_thread_db.h.  Move all common/ entries to be together.
527         (TAGS): Don't depend on DEPFILES.
528
529 2011-06-23  Yao Qi  <[email protected]>
530
531         * infrun.c (start_remote): Move call init_wait_for_inferior to ...
532         * remote.c (remote_start_remote): ... here.
533         * monitor.c (monitor_open): ... here.
534
535 2011-06-23  Andrew Burgess  <[email protected]>
536
537         * gdbtypes.c (append_composite_type_field_aligned): Fix
538         calculation of bit position based on alignment.
539
540 2011-06-22  Pedro Alves  <[email protected]>
541
542         * breakpoint.c (bpstat_stop_status): Call the check_status
543         breakpoint_ops method.
544         (print_one_breakpoint_location): Also print the condition for Ada
545         exception catchpoints.
546         (allocate_bp_location): New, factored out from
547         allocate_bp_location.
548         (allocate_bp_location): Adjust.  Call the owner breakpoint's
549         allocate_location method, if there is one.
550         (free_bp_location): Call the locations's dtor method, if there is
551         one.
552         (init_raw_breakpoint_without_location): New breakpoint_ops
553         parameter.  Use it.
554         (set_raw_breakpoint_without_location): Adjust.
555         (init_raw_breakpoint): New breakpoint_ops parameter.  Pass it down.
556         (set_raw_breakpoint): Adjust.
557         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
558         (catch_syscall_breakpoint_ops): Install NULL allocate_location,
559         re_set and check_status methods.
560         (init_catchpoint): Don't memset, initialize thread, addr_string
561         and enable_state.  Pass the ops down to init_raw_breakpoint.
562         (install_catchpoint): Rename to ...
563         (install_breakpoint): ... this, and make extern.
564         (create_fork_vfork_event_catchpoint): Adjust.
565         (catch_exec_breakpoint_ops): Install NULL allocate_location,
566         re_set and check_status methods.
567         (create_syscall_event_catchpoint): Adjust.
568         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
569         (masked_watchpoint_breakpoint_ops): Install NULL
570         allocate_location, re_set and check_status methods.
571         (catch_exec_command_1): Adjust.
572         (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
573         re_set and check_status methods.
574         (create_ada_exception_breakpoint): Rename to ...
575         (init_ada_exception_breakpoint): ... this.  Add a struct
576         breakpoint parameter, and delete the exp_string, cond_string and
577         cond parameters.  Use init_raw_breakpoint, and don't install or
578         mention the breakpoint yet.  Don't clear breakpoint fields that
579         init_raw_breakpoint already clears.
580         (re_set_breakpoint): Delete, split into ...
581         (breakpoint_re_set_default, prepare_re_set_context): ... these new
582         functions.
583         (breakpoint_re_set_one): Call the breakpoint's
584         breakpoint_ops->re_set implementation, if there's one.  Adjust.
585         * breakpoint.h: Forward declare struct bpstats and struct bp_location.
586         (struct bp_location_ops): New type.
587         (struct bp_location): New field `ops'.
588         (struct breakpoint_ops): New `allocate_location', `re_set' and
589         `check_status' fields.  Make `breakpoint_hit''s description match
590         reality.
591         (init_bp_location): Declare.
592         (breakpoint_re_set_default): Declare.
593         (create_ada_exception_breakpoint): Rename to ...
594         (init_ada_exception_breakpoint): ... this.  Add a struct
595         breakpoint parameter, and delete the exp_string, cond_string and
596         cond parameters.
597         (install_breakpoint): Declare.
598         * ada-lang.c: Include exceptions.h.
599         <Ada exceptions description>: Update.
600         (struct ada_catchpoint_location): New type.
601         (ada_catchpoint_location_dtor): New function.
602         (ada_catchpoint_location_ops): New global.
603         (ada_catchpoint): New type.
604         (create_excep_cond_exprs): New function.
605         (dtor_exception, allocate_location_exception, re_set_exception)
606         (should_stop_exception, check_status_exception): New functions.
607         (print_one_exception, print_mention_exception)
608         (print_recreate_exception): Adjust.
609         (dtor_catch_exception, allocate_location_catch_exception)
610         (re_set_catch_exception, check_status_catch_exception): New
611         functions.
612         (catch_exception_breakpoint_ops): Install them.
613         (dtor_catch_exception_unhandled)
614         (allocate_location_catch_exception_unhandled)
615         (re_set_catch_exception_unhandled)
616         (check_status_catch_exception_unhandled): New functions.
617         (catch_exception_unhandled_breakpoint_ops): Install them.
618         (dtor_catch_assert, allocate_location_catch_assert)
619         (re_set_catch_assert, check_status_catch_assert): New functions.
620         (catch_assert_breakpoint_ops): Install them.
621         (ada_exception_catchpoint_p): Delete.
622         (catch_ada_exception_command_split)
623         (ada_exception_catchpoint_cond_string): Rename exp_string
624         parameter to excep_string.  Adjust.
625         (ada_parse_catchpoint_condition): Delete.
626         (ada_exception_sal): Rename the exp_string parameter to
627         excep_string.  Delete the cond_string and cond parameters.
628         Adjust.
629         (ada_decode_exception_location): Rename the exp_string parameter
630         to excep_string.  Delete the cond_string and cond parameters.
631         Adjust.
632         (create_ada_exception_catchpoint): New function.
633         (catch_ada_exception_command, ada_decode_assert_location)
634         (catch_assert_command): Adjust.
635         * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
636
637 2011-06-22  Pedro Alves  <[email protected]>
638
639         * ada-lang.c: Include arch-utils.h.
640         (ada_decode_exception_location): Make static.
641         (catch_ada_exception_command): Moved here from breakpoint.c.
642         (ada_decode_assert_location): Make static.
643         (catch_assert_command): Moved here from breakpoint.c.
644         (_initialize_ada_lang): Install the exception and assert
645         catchpoint commands here.
646         * ada-lang.h (ada_decode_exception_location)
647         (ada_decode_assert_location): Delete declarations.
648         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
649         breakpoint.h.
650         (create_ada_exception_breakpoint): Make extern.
651         (catch_ada_exception_command, catch_assert_command): Moved to
652         ada-lang.c.
653         (add_catch_command): Make extern.
654         (_initilize_breakpoint): Don't install the exception and assert
655         catchpoint commands here.
656         * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
657         breakpoint.c
658         (add_catch_command, create_ada_exception_breakpoint): Declare.
659
660 2011-06-22  Pedro Alves  <[email protected]>
661
662         * breakpoint.c (init_raw_breakpoint_without_location): Don't add
663         the breakpoint to the breakpoint chain here.
664         (set_raw_breakpoint_without_location): Add the breakpoint to the
665         breakpoint chain here.
666         (init_raw_breakpoint): Adjust comments.
667         (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
668         here.
669         (init_catchpoint): Don't set the catchpoint's breakpoint number
670         here.
671         (install_catchpoint): New function.
672         (create_fork_vfork_event_catchpoint)
673         (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
674         use install_catchpoint.
675
676 2011-06-22  Pedro Alves  <[email protected]>
677
678         * breakpoint.c (create_catchpoint_without_mention)
679         (create_catchpoint): Delete.
680
681 2011-06-22  Pedro Alves  <[email protected]>
682
683         * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
684         * breakpoint.c (init_raw_breakpoint_without_location): Remove
685         reference to exec_pathname.
686         (struct exec_catchpoint): New type.
687         (dtor_catch_exec): New function.
688         (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
689         (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
690         (catch_exec_command_1): Adjust to use init_catchpoint.
691         (delete_breakpoint): Remove reference to exec_pathname.
692
693 2011-06-22  Pedro Alves  <[email protected]>
694
695         * breakpoint.h (struct breakpoint_ops): New field `dtor'.
696         (struct breakpoint): Delete field `syscalls_to_be_caught'.
697         * breakpoint.c (init_raw_breakpoint_without_location): Remove
698         reference to syscalls_to_be_caught.
699         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
700         NULL `dtor'.
701         (struct syscall_catchpoint): New type.
702         (dtor_catch_syscall): New function.
703         (insert_catch_syscall, remove_catch_syscall)
704         (breakpoint_hit_catch_syscall, print_one_catch_syscall)
705         (print_recreate_catch_syscall): Adjust.
706         (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
707         (catch_exec_breakpoint_ops): Install a NULL `dtor'.
708         (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
709         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
710         (masked_watchpoint_breakpoint_ops)
711         (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
712         (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
713         there is one.  Remove references to syscalls_to_be_caught.
714         (catching_syscall_number): Adjust.
715         * ada-lang.c (catch_exception_breakpoint_ops)
716         (catch_exception_unhandled_breakpoint_ops)
717         (catch_assert_breakpoint_ops): Install a NULL `dtor'.
718
719 2011-06-22  Pedro Alves  <[email protected]>
720
721         * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
722         field.
723         * breakpoint.c (init_raw_breakpoint_without_location): Remove
724         reference to forked_inferior_pid.
725         (struct fork_catchpoint): New type.
726         (breakpoint_hit_catch_fork, print_it_catch_fork)
727         (print_one_catch_fork, breakpoint_hit_catch_vfork)
728         (print_it_catch_vfork, print_one_catch_vfork): Adjust.
729         (create_fork_vfork_event_catchpoint): Adjust to use
730         init_catchpoint.
731
732 2011-06-22  Pedro Alves  <[email protected]>
733
734         * breakpoint.c (add_to_breakpoint_chain)
735         (init_raw_breakpoint_without_location): New functions, factored
736         out from ...
737         (set_raw_breakpoint_without_location): ... this one.
738         (init_raw_breakpoint): New function, factored out from
739         set_raw_breakpoint and adjusted to use
740         init_raw_breakpoint_without_location.
741         (set_raw_breakpoint): Adjust.
742         (init_catchpoint): New function, factored out from
743         create_catchpoint_without_mention and adjusted to use
744         init_raw_breakpoint.
745         (create_catchpoint_without_mention): Adjust.
746
747 2011-06-22  Tom Tromey  <[email protected]>
748
749         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
750         argument of 0 specially.
751
752 2011-06-22  Yao Qi  <[email protected]>
753
754         * infrun.c (handle_inferior_event): Remove write-only local variable
755         `sw_single_step_trap_p'.
756
757 2011-06-20  Tom Tromey  <[email protected]>
758
759         * symtab.c (lookup_language_this): End loop if block is NULL.
760
761 2011-06-17  Tom Tromey  <[email protected]>
762
763         * valops.c (value_of_this): Use lookup_language_this.
764         * symtab.h (lookup_language_this): Declare.
765         * symtab.c (lookup_language_this): New function.
766         (lookup_symbol_aux): Use lookup_language_this.
767         * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
768
769 2011-06-17  Tom Tromey  <[email protected]>
770
771         * value.h (value_of_this): Update.
772         (value_of_local): Remove.
773         * valops.c (value_of_this): Rename from value_of_local.  Change
774         parameters.
775         * p-exp.y (exp): Update.
776         (variable): Likewise.
777         * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
778
779 2011-06-17  Tom Tromey  <[email protected]>
780
781         * valops.c (value_of_local): Complain if NAME is NULL.
782         * std-operator.def (OP_OBJC_SELF): Remove.
783         * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
784         * objc-exp.y (name_not_typename): Use OP_THIS.
785         * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
786         name for "this".
787         <OP_OBJC_SELF>: Remove.
788         * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
789
790 2011-06-16  Tristan Gingold  <[email protected]>
791
792         * python/py-events.h (gdb_py_events): Make it extern.
793         * python/py-evtregistry.c (gdb_py_events): Declare.
794
795 2011-06-16  Hui Zhu  <[email protected]>
796
797         * remote.c (remote_trace_set_readonly_regions): Add check for
798         remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
799         output warning.
800
801 2011-06-15  Ulrich Weigand  <[email protected]>
802
803         * arm-linux-tdep.c: Include "auxv.h".
804         (AT_HWCAP): Define.
805         (ARM_LINUX_SIZEOF_VFP): Define.
806         (arm_linux_supply_vfp): New function.
807         (arm_linux_collect_vfp): Likewise.
808         (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
809         (arm_linux_fpa_regset_sections): New variable.
810         (arm_linux_vfp_regset_sections): Likewise.
811         (arm_linux_core_read_description): New function.
812         (arm_linux_init_abi): Install arm_linux_core_read_description and
813         arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
814         appropriate for the architecture.
815         * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
816         (tdesc_arm_with_m): Declare.
817         (tdesc_arm_with_iwmmxt): Likewise.
818         (tdesc_arm_with_vfpv2): Likewise.
819         (tdesc_arm_with_vfpv3): Likewise.
820         (tdesc_arm_with_neon): Likewise.
821         * arm-linux-nat.c: Move features/*.c includes ...
822         * arm-tdep.c: ... here.
823         * arm-linux-nat.c (arm_linux_read_description): Move initializing
824         target description data structures ...
825         * arm-tdep.c (_initialize_arm_tdep): ... here.
826         * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
827         HWCAP_VFPv3D16): Move definitions ...
828         * arm-linux-tdep.h: ... here.
829
830 2011-06-15  Hui Zhu  <[email protected]>
831
832         * remote.c (remote_trace_set_readonly_regions): Add a check for
833         target_buf_size.
834
835 2011-06-14  Tom Tromey  <[email protected]>
836
837         * coffread.c (coffread_objfile): Rename from current_objfile.
838         * dbxread.c (dbxread_objfile): Rename from current_objfile.
839         * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
840
841 2011-06-14  Tom Tromey  <[email protected]>
842
843         * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
844         (class_symtab): Remove.
845         (jv_dynamics_progspace_key): New global.
846         (jv_per_objfile_free): Reset program space data.  Update assert.
847         Don't clear globals.
848         (get_dynamics_objfile): Use and set program space data.
849         (get_java_class_symtab): Use get_dynamics_objfile.
850         (add_class_symbol): Likewise.
851         (java_link_class_type): Likewise.
852         (java_object_type, jv_clear_object_type, set_java_object_type):
853         Remove.
854         (get_java_object_type): Update.  Don't cache result.
855         (is_object_type): Don't call set_java_object_type.
856         (_initialize_java_language): Don't set jv_type_objfile_data_key;
857         initialize jv_dynamics_progspace_key.
858
859 2011-06-14  Tom Tromey  <[email protected]>
860
861         * symtab.h (current_objfile): Don't declare.
862         * objfiles.h (current_objfile): Don't declare.
863         * objfiles.c (current_objfile): Remove.
864         * mdebugread.c (current_objfile): New file-scope global.
865         * dbxread.c (current_objfile): New file-scope global.
866         * coffread.c (current_objfile): New file-scope global.
867
868 2011-06-13  Pedro Alves  <[email protected]>
869
870         * top.h (line): Rename to ...
871         (saved_command_line): ... this.
872         (linesize): Rename to ...
873         (saved_command_line_size): ... this.
874         * top.c (line): Rename to ...
875         (saved_command_line): ... this.
876         (linesize): Rename to ...
877         (saved_command_line_size): ... this.
878         (dont_repeat, command_line_input, dont_repeat_command): Adjust.
879         * event-top.c (command_line_handler): Adjust.
880         * main.c (captured_main): Adjust.
881
882 2011-06-12  Mark Kettenis  <[email protected]>
883
884         * i386-tdep.c (i386_epilogue_frame_cache): Simplify code.  Call
885         get_frame_func instead of get_frame_pc to determine the code
886         address used to construct the frame ID.
887         (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
888         (i386_epilogue_frame_this_id): Likewise.
889         (i386_epilogue_frame_prev_register): New function.
890         (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
891         (i386_stack_tramp_frame_sniffer): Fix coding style.
892         (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
893         (i386_gdbarch_init): Fix comments.
894
895 2011-06-12  Mark Kettenis  <[email protected]>
896
897         * i386-tdep.c (i386_match_insn_block): Use length of the proper
898         instruction when walking back through the instruction stream.
899
900 2011-06-10  Jan Kratochvil  <[email protected]>
901
902         * symtab.c (output_partial_symbol_filename): Exchange the filename and
903         fullname parameters order.
904
905 2011-06-10  Jan Kratochvil  <[email protected]>
906
907         Code cleanup.
908         * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
909         for fun.
910         * psymtab.c (map_symbol_filenames_psymtab)
911         (map_partial_symbol_filenames): Likewise.
912         * psymtab.h: Include symfile.h.
913         (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
914         * symfile.h (symbol_filename_ftype): New.
915         (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
916         map_symbol_filenames, clarify more the naming in comment.
917
918 2011-06-07  Doug Evans  <[email protected]>
919
920         * cc-with-index.sh: Fix typos in comment.
921         Look for ../../gdb, for fullname.exp.
922
923 2011-06-07  Jan Kratochvil  <[email protected]>
924             Pedro Alves  <[email protected]>
925
926         * cli/cli-cmds.c (shell_escape): Use waitpid.
927         * rs6000-nat.c (exec_one_dummy_insn): Likewise.
928
929 2011-06-07  Tristan Gingold  <[email protected]>
930
931         * xcoffread.c (dwarf2_xcoff_names): New variable.
932         (aix_process_linenos): Add a guard.
933         (xcoff_symfile_finish): Free dwarf2.
934         (xcoff_initial_scan): Add dwarf2 support.
935
936 2011-06-06  Pedro Alves  <[email protected]>
937
938         * infcall.c (run_inferior_call): Don't mask async.  Instead force
939         a synchronous wait, if the target can async.
940
941         * target.h (struct target_ops): Delete to_async_mask.
942         (target_async_mask): Delete.
943         * target.c (update_current_target): Delete references to to_async_mask.
944         * linux-nat.c (linux_nat_async_mask_value): Delete.
945         (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
946         to linux_nat_async_mask_value.
947         (linux_nat_async_mask): Delete.
948         (linux_nat_async, linux_nat_close): Remove references to
949         linux_nat_async_mask_value.
950         * record.c (record_async_mask_value): Delete.
951         (record_async): Remove references to record_async_mask_value.
952         (record_async_mask): Delete.
953         (record_can_async_p, record_is_async_p): Remove references to
954         record_async_mask_value.
955         (init_record_ops, init_record_core_ops): Remove references to
956         record_async_mask.
957         * remote.c (remote_async_mask_value): Delete.
958         (init_remote_ops): Remove reference to remote_async_mask.
959         (remote_can_async_p, remote_is_async_p): Remove references to
960         remote_async_mask_value.
961         (remote_async): Remove references to remote_async_mask_value.
962         (remote_async_mask): Delete.
963
964         * infrun.c (fetch_inferior_event): Don't claim registers changed
965         if the current thread is already not executing.
966
967 2011-06-03  Joel Brobecker  <[email protected]>  (obvious fix)
968
969         From Stephen Kitt  <[email protected]>
970         * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
971         gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
972
973 2011-06-03  Joel Brobecker  <[email protected]>
974
975         * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
976         the case where ADDR_SIZE is different from TYPE_LENGTH (type).
977
978 2011-06-03  Tom Tromey  <[email protected]>
979
980         * python/py-inferior.c (python_inferior_exit): Use inferior's exit
981         code fields.
982         * python/py-exitedevent.c (create_exited_event_object): Change
983         type of 'exit_code'.  Optionally add exit_code attribute.
984         (emit_exited_event): Change type of 'exit_code'.
985         * python/py-event.h (emit_exited_event): Update.
986         * mi/mi-interp.c (mi_inferior_exit): Print exit code.
987         * infrun.c (handle_inferior_event): Set exit code fields on
988         inferior.
989         * inferior.h (struct inferior) <has_exit_code, exit_code>: New
990         fields.
991         * inferior.c (exit_inferior_1): Initialize new fields.
992
993 2011-06-03  Tom Tromey  <[email protected]>
994
995         * dwarf2expr.c (get_signed_type): New function.
996         (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
997
998 2011-06-02  Keith Seitz  <[email protected]>
999
1000         * objc-lang.c (find_methods): Increment objfile_csym earlier.
1001
1002 2011-06-02  Pedro Alves  <[email protected]>
1003
1004         * top.h (simplified_command_loop): Delete declaration.
1005
1006 2011-06-01  Mike Frysinger  <[email protected]>
1007
1008         * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
1009         gdb_sysroot to the "len" variable.  Append both to "arg_buf".
1010
1011 2011-06-01  Yao Qi  <[email protected]>
1012
1013         * objfiles.h (obj_section_addr): Update reference to objfile from
1014         `abfd' to `obfd'.
1015         (obj_section_endaddr): Likewise.
1016
1017 2011-06-01  Daniel Jacobowitz  <[email protected]>
1018
1019         * MAINTAINERS: Update my email address and affiliation.  Also
1020         update Ian Lance Taylor's affiliation.  Use UTF-8 for [email protected].
1021
1022 2010-05-31  Keith Seitz  <[email protected]>
1023
1024         PR c++/12750
1025         * linespec.c (get_search_block): New function.
1026         (find_methods): Add FILE_SYMTATB parameter and use it and
1027         get_search_block to pass an appropriate block to
1028         lookup_symbol_in_namespace.
1029         (decode_line_1): Record if *ARGPTR is single-quote enclosed.
1030         Check if *ARGPTR starts with a filename first.
1031         If it does, call locate_first_half again to locate the next
1032         "first half" of the linespec.
1033         Pass FILE_SYMTATB to decode_objc and decode_compound.
1034         Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1035         (locate_first_half): Stop on the first colon seen.
1036         (decode_compound): Add FILE_SYMTAB parameter.
1037         Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1038         (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1039         get_search_block with lookup_symbol.
1040         (find_method): Add FILE_SYMTAB parameter and pass it to
1041         find_methods.
1042         (decode_objc): Use get_search_block.
1043
1044 2010-05-31  Keith Seitz  <[email protected]>
1045
1046         PR symtab/12704
1047         * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1048         (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1049         and CP_ANONYMOUS_NAMESPACE_LEN.
1050         (cp_is_anonymous): Likewise.
1051         * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1052         (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1053         * dwarf2read.c (namespace_name): Likewise.
1054         (fixup_partial_die): Likewise.
1055         * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1056         seen in the input, keep it.
1057
1058 2011-05-30  Pedro Alves  <[email protected]>
1059
1060         * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1061         * inf-loop.h (inferior_event_handler_wrapper): Delete.
1062         * inf-loop.c (inferior_event_handler_wrapper): Delete.
1063         (inferior_event_handler): Don't handle INF_QUIT_REQ.
1064         * remote.c (_initialize_remote): Register
1065         async_remote_interrupt_twice directly as
1066         sigint_remote_twice_token event.
1067
1068 2011-05-30  Pedro Alves  <[email protected]>
1069
1070         * target.h (enum inferior_event_type): Delete INF_ERROR.
1071         * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1072
1073 2011-05-30  Pedro Alves  <[email protected]>
1074
1075         * interps.c (interp_set): Don't cancel continuations.
1076
1077 2011-05-30  Jan Kratochvil  <[email protected]>
1078
1079         * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1080
1081 2011-05-30  Pedro Alves  <[email protected]>
1082
1083         * continuations.h (continuation_ftype): Add `err' parameter.
1084         Document parameters.
1085         (do_all_continuations, do_all_continuations_thread)
1086         (do_all_intermediate_continuations)
1087         (do_all_intermediate_continuations_thread)
1088         (do_all_inferior_continuations): Add `err' parameter.
1089         * continuations.c (do_my_continuations_1, do_my_continuations)
1090         (do_all_inferior_continuations, do_all_continuations_ptid)
1091         (do_all_continuations_thread_callback)
1092         (do_all_continuations_thread, do_all_continuations)
1093         (do_all_intermediate_continuations_thread_callback)
1094         (do_all_intermediate_continuations_thread)
1095         (do_all_intermediate_continuations): Add `err' parameter, and pass
1096         it down all the way to the continuations proper.
1097         * inf-loop.c (inferior_event_handler): If fetching an inferior
1098         event throws an error, don't pop the target, and still call the
1099         continuations, but with `err' set.  Adjust all other continuation
1100         calls.
1101         * breakpoint.c (until_break_command_continuation): Add `err'
1102         parameter.
1103         * infcmd.c (step_1_continuation): Add `err' parameter.  Don't
1104         issue another step if `err' is set.
1105         (struct until_next_continuation_args): New.
1106         (until_next_continuation): Add `err' parameter.  Adjust.
1107         (until_next_command): Adjust.
1108         (struct finish_command_continuation_args): Add `thread' field.
1109         (finish_command_continuation): Add `err' parameter.  Handle it.
1110         (finish_forward): Adjust.
1111         (attach_command_continuation): Add `err' parameter.  Handle it.
1112         * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1113         cancel the continuations.
1114         * interps.c (interp_set): Adjust to cancel the continuations.
1115         * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1116         continuations rather than discarding.
1117         (free_thread): Don't clear thread inferior resources here.
1118         (delete_thread_1): Do it here instead.  And do it before removing
1119         the thread from the threads list.  Tag the thread as exited before
1120         clearing thread inferior resources.
1121
1122 2011-05-30  Joel Brobecker  <[email protected]>
1123
1124         * infcall.c (call_function_by_hand): Rephrase error message.
1125
1126 2011-05-27  Pedro Alves  <[email protected]>
1127
1128         * defs.h (struct thread_info, struct inferior): Delete forward
1129         declarations.
1130         * breakpoint.h (struct thread_info): New forward declaration.
1131         * observer.sh (struct inferior): New forward declaration.
1132         * python/python-internal.h (struct inferior): New forward
1133         declaration.
1134
1135 2011-05-27  Pedro Alves  <[email protected]>
1136
1137         * defs.h (struct continuation, continuation_ftype)
1138         (continuation_free_arg_ftype, add_continuation)
1139         (do_all_continuations, do_all_continuations_thread)
1140         (discard_all_continuations, discard_all_continuations_thread)
1141         (add_intermediate_continuation, do_all_intermediate_continuations)
1142         (do_all_intermediate_continuations_thread)
1143         (discard_all_intermediate_continuations)
1144         (discard_all_intermediate_continuations_thread)
1145         (add_inferior_continuation, do_all_inferior_continuations)
1146         (discard_all_inferior_continuations): Move to ...
1147         * continuations.h: ... this new file.
1148         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1149         infcmd.c, inferior.c, infrun.c, interps.c: Include
1150         continuations.h.
1151
1152 2011-05-27  Jan Kratochvil  <[email protected]>
1153             Doug Evans  <[email protected]>
1154
1155         Fix PR 10970, PR 12702.
1156         * linux-nat.c (linux_lwp_is_zombie): New function.
1157         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
1158         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
1159
1160 2011-05-27  Pedro Alves  <[email protected]>
1161
1162         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1163         typedefs.
1164         (add_continuation, add_intermediate_continuation)
1165         (add_inferior_continuation): Use them.
1166         * continuations.c (struct continuation): Use them.
1167         (make_continuation_ftype): Delete.
1168         (make_continuation, add_inferior_continuation, add_continuation)
1169         (add_intermediate_continuation): Use continuation_ftype and
1170         continuation_free_arg_ftype.  Rename parameters to shorter names.
1171
1172 2011-05-27  Pedro Alves  <[email protected]>
1173
1174         * continuations.c (make_continuation): Make it return void.
1175         (do_my_continuations): Rename to ...
1176         (do_my_continuations_1): ... this.  Remove old_chain parameter and
1177         adjust.
1178         (do_my_continuations): New.
1179         (discard_my_continuations): Rename to ...
1180         (discard_my_continuations_1): ... this.  Remove old_chain
1181         parameter and adjust.
1182         (discard_my_continuations): New.
1183         (add_inferior_continuation): Simplify.
1184         (do_all_inferior_continuations): Reimplement on top
1185         do_my_continuations.
1186         (discard_all_inferior_continuations): Simplify.
1187         (add_continuation): Simplify.
1188         (do_all_continuations_ptid): Simplify.
1189         (discard_all_continuations_thread_callback): Simplify.
1190         (add_intermediate_continuation): Simplify.
1191         (discard_all_intermediate_continuations_thread_callback):
1192         Simplify.
1193
1194 2011-05-27  Pedro Alves  <[email protected]>
1195
1196         * utils.c (struct continuation, add_continuation)
1197         (add_inferior_continuation)
1198         (do_all_inferior_continuations, discard_all_inferior_continuations)
1199         (restore_thread_cleanup, do_all_continuations_ptid)
1200         (do_all_continuations_thread_callback)
1201         (do_all_continuations_thread, do_all_continuations)
1202         (discard_all_continuations_thread_callback)
1203         (discard_all_continuations_thread, discard_all_continuations)
1204         (add_intermediate_continuation)
1205         (do_all_intermediate_continuations_thread_callback)
1206         (do_all_intermediate_continuations_thread)
1207         (do_all_intermediate_continuations)
1208         (discard_all_intermediate_continuations_thread_callback)
1209         (discard_all_intermediate_continuations_thread)
1210         (discard_all_intermediate_continuations): Move to ...
1211         * continuations.c: ... this new file, and adjust to no longer
1212         implement continuations on top of cleanups.
1213         * Makefile.in (SFILES): Add continuations.c.
1214         (COMMON_OBS): Add continuations.o.
1215
1216 2011-05-26  Pedro Alves  <[email protected]>
1217
1218         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1219         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1220         Internal error on invalid values.
1221         * reverse.c: Don't handle EXEC_ERROR.
1222         * mi/mi-main.c: Don't handle EXEC_ERROR.
1223
1224 2011-05-26  Pedro Alves  <[email protected]>
1225
1226         * record.c: Include event-loop.h, inf-loop.h.
1227         (record_beneath_to_async): New global.
1228         (tmp_to_async): New global.
1229         (record_async_inferior_event_token): New global.
1230         (record_open_1): Don't error out if async is enabled.
1231         (record_open): Handle to_async.  Create an async event source in
1232         the event loop.
1233         (record_close): Delete the async event source.
1234         (record_resumed): New global.
1235         (record_execution_dir): New global.
1236         (record_resume, record_core_resume): Set them.  Register the
1237         target on the event loop.
1238         (record_wait): Rename to ...
1239         (record_wait_1): ... this.  Add more debug output.  Handle
1240         TARGET_WNOHANG, and the target beneath returning
1241         TARGET_WAITKIND_IGNORE.
1242         (record_wait): Reimplement on top of record_wait_1.
1243         (record_async_mask_value): New global.
1244         (record_async, record_async_mask, record_can_async_p)
1245         (record_is_async_p, record_execution_direction): New functions.
1246         (init_record_ops, init_record_core_ops): Install new methods.
1247         * infrun.c (fetch_inferior_event): Temporarily switch the global
1248         execution direction to the direction the target was going.
1249         (execution_direction): Change type to int.
1250         * target.c (default_execution_direction): New function.
1251         (update_current_target): Inherit and de_fault
1252         to_execution_direction.
1253         * target.h (struct target_ops) <to_execution_direction>: New
1254         field.
1255         (target_execution_direction): New macro.
1256         * inferior.h (execution_direction): Change type to int.
1257
1258 2011-05-26  Pedro Alves  <[email protected]>
1259
1260         * infcall.c (call_function_by_hand): Don't allow calling functions
1261         in reverse execution mode.
1262
1263 2011-05-26  Pedro Alves  <[email protected]>
1264
1265         * infcmd.c (finish_command): Allow async finish in reverse.
1266
1267 2011-05-26  Yao Qi  <[email protected]>
1268
1269         * gdb_thread_db.h: Delete.  Move to ...
1270         * common/gdb_thread_db.h: ... here.
1271
1272 2011-05-26  Pedro Alves  <[email protected]>
1273
1274         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1275         function's entry point instead of a manually managed momentary
1276         breakpoint, and only ever issue one proceed call.
1277         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1278         doing a reverse-finish, switch to stepi mode, to do another step.
1279         (insert_step_resume_breakpoint_at_sal): Make public.
1280         (normal_stop): No need to save function value return registers if
1281         going reverse.
1282         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1283
1284 2011-05-26  Pedro Alves  <[email protected]>
1285
1286         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1287         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1288         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
1289         at the end.
1290         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1291         step-resume breakpoints.
1292         (print_it_typical): Handle bp_hp_step_resume.
1293         (bpstat_what): Ditto.
1294         (bptype_string): Ditto.
1295         (print_one_breakpoint_location): Ditto.
1296         (allocate_bp_location): Ditto.
1297         (mention): Ditto.
1298         (breakpoint_re_set_one): Ditto.
1299         * infrun.c (handle_inferior_event): Adjust.  Split
1300         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1301         BPSTAT_WHAT_HP_STEP_RESUME.
1302         (insert_step_resume_breakpoint_at_sal): Rename to ...
1303         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
1304         parameter.  Handle it.
1305         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1306         insert_step_resume_breakpoint_at_sal_1.
1307         (insert_step_resume_breakpoint_at_frame): Rename to ...
1308         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
1309         set a high-priority step-resume breakpoint.
1310         (insert_step_resume_breakpoint_at_frame): Adjust comment.
1311         (insert_step_resume_breakpoint_at_caller): Ditto.
1312
1313 2011-05-26  Pedro Alves  <[email protected]>
1314
1315         * breakpoint.c (iterate_over_related_breakpoints): New.
1316         (do_map_delete_breakpoint): New.
1317         (delete_command): Pass do_map_delete_breakpoint to
1318         map_breakpoint_numbers.
1319         (do_disable_breakpoint): New.
1320         (do_map_disable_breakpoint): Iterate over the breakpoint's related
1321         breakpoints.
1322         (do_enable_breakpoint): Rename to ...
1323         (enable_breakpoint_disp): ... this.
1324         (enable_breakpoint): Adjust.
1325         (do_enable_breakpoint): New.
1326         (enable_once_breakpoint): Delete.
1327         (do_map_enable_breakpoint): New.
1328         (do_map_enable_once_breakpoint): New.
1329         (enable_once_command, enable_delete_command)
1330         (delete_trace_command): Iterate over the breakpoint's related
1331         breakpoints.
1332
1333 2011-05-26  Pedro Alves  <[email protected]>
1334
1335         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1336         for ALPHA_ZERO_REGNUM.
1337         (alpha_supply_int_regs): Explicitly supply zero as the value for
1338         ALPHA_ZERO_REGNUM in the register cache.
1339         * alpha-nat.c (fetch_osf_core_registers): Ditto.
1340
1341 2011-05-26  Yao Qi  <[email protected]>
1342
1343         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1344
1345 2011-05-26  Tristan Gingold  <[email protected]>
1346
1347         * symfile.h (struct dwarf2_section_names): New type.
1348         (struct dwarf2_debug_sections): New type.
1349         (dwarf2_has_info): Add parameter.
1350         * dwarf2read.c (dwarf2_elf_names): New variable.
1351         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1352         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1353         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1354         (dwarf2_has_info): Add names parameter.  Pass names
1355         to dwarf2_locate_sections.
1356         (section_is_p): Rewrite using the names parameter.
1357         (dwarf2_locate_sections): Use section names from the names parameter.
1358         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1359         * elfread.c (read_psyms): Ditto.
1360         * machoread.c (macho_symfile_read): Ditto.
1361
1362 2011-05-25  Andreas Schwab  <[email protected]>
1363
1364         PR gdb/8677
1365         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1366
1367 2011-05-24  Keith Seitz  <[email protected]>
1368
1369         PR breakpoint/12803
1370         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1371         (decode_compound): Unconditionally call keep_name_info.
1372
1373 2011-05-24  Pedro Alves  <[email protected]>
1374
1375         * breakpoint.c (watchpoint_check): If the watchpoint went out of
1376         scope, clear its command list.
1377         (map_breakpoint_numbers): Don't walk the related breakpoints list
1378         of each breakpoint.
1379
1380 2011-05-24  Tom Tromey  <[email protected]>
1381
1382         * MAINTAINERS: Move Jim Blandy to past maintainers.
1383
1384 2011-05-24  Tristan Gingold  <[email protected]>
1385
1386         * symfile.h (enum dwarf2_section_enum): New type.
1387         (dwarf2_get_section_info): New prototype.
1388         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1389         section_name by sect.  Use a switch to select the info.
1390         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1391         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1392
1393 2011-05-24  Pedro Alves  <[email protected]>
1394
1395         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1396         shared library event breakpoint if there's no execution.
1397
1398 2011-05-24  Thiago Jung Bauermann  <[email protected]>
1399
1400         * breakpont.c (remove_hw_watchpoints): Remove unused function.
1401         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1402
1403 2011-05-23  Tom Tromey  <[email protected]>
1404
1405         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1406         NULL.
1407
1408 2011-05-23  Doug Evans  <[email protected]>
1409
1410         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1411         entry for RuntimeError to doc string.
1412
1413 2011-05-23  Jerome Guitton  <[email protected]>
1414
1415         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1416         sequence for probing loops.
1417
1418 2011-05-23  Pedro Alves  <[email protected]>
1419
1420         * infrun.c (user_visible_resume_ptid): Fix typos in describing
1421         comment.
1422
1423 2011-05-21  Mark Kettenis  <[email protected]>
1424
1425         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1426         zero as the value for %g0 in the register cache.
1427         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1428         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1429
1430 2011-05-20  Pedro Alves  <[email protected]>
1431
1432         * infrun.c (proceed): Set previous_inferior_ptid here.
1433         (init_wait_for_inferior): Initialize previous_inferior_ptid from
1434         inferior_ptid, not null_ptid.
1435         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1436         (fetch_inferior_event): Nor here.
1437
1438 2011-05-20  Pedro Alves  <[email protected]>
1439
1440         * inf-loop.c (inferior_event_handler): Only output a message if
1441         verbose.
1442
1443 2011-05-20  Luis Machado  <[email protected]>
1444
1445         * MAINTAINERS: Update my e-mail address.
1446
1447 2011-05-20  Pedro Alves  <[email protected]>
1448
1449         * infrun.c (proceed): Switch the inferior event loop to
1450         INF_EXEC_COMPLETE if the target refused to resume from a
1451         vfork/fork.
1452
1453 2011-05-20  Pedro Alves  <[email protected]>
1454
1455         * infcmd.c: Include "inf-loop.h".
1456         (step_once): When stepping into an inline subroutine, pretend the
1457         target has run.  If the target can async, switch the inferior
1458         event loop to INF_EXEC_COMPLETE.
1459         * inferior.h (user_visible_resume_ptid): Declare.
1460         * infrun.c (user_visible_resume_ptid): New function, factored out
1461         from `resume'.
1462         (resume): Use it.
1463         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1464         that the current thread is running.  Merge async and sync
1465         branches.
1466
1467 2011-05-20  Pedro Alves  <[email protected]>
1468
1469         * infcmd.c (step_1): Simplify synchronous case.
1470
1471 2011-05-20  Pedro Alves  <[email protected]>
1472
1473         * tracepoint.c: Include exceptions.h.
1474         (TFILE_PID): Move higher in file.
1475         (tfile_open): Delay pushing the tfile target until we're assured
1476         the tfile header is present in the file.  Wrap reading the initial
1477         newline-terminated lines in TRY_CATCH.  Pop the target if the
1478         initial setup failed.  Add the tfile's thread immediately
1479         aftwards, before any non-essential setup.  Don't skip
1480         post_create_inferior if there are no traceframes present in the
1481         file.
1482         (tfile_close): Remove redundant check for null before xfree call.
1483         (tfile_thread_alive): New function.
1484         (init_tfile_ops): Register it as to_thread_alive callback.
1485
1486 2011-05-20  Pedro Alves  <[email protected]>
1487
1488         * tracepoint.c (tfile_open): Delete #if 0'd code.
1489
1490 2011-05-20  Jan Kratochvil  <[email protected]>
1491
1492         Fix -readnow for -gdwarf-4 unused type units.
1493         * dwarf2read.c (struct signatured_type): Remove the field offset.
1494         (create_signatured_type_table_from_index): Remove its initialization.
1495         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
1496         instead.  Add a complaint call.
1497         (process_psymtab_comp_unit): Change assignment to gdb_assert.
1498         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1499         (lookup_signatured_type_at_offset, read_signatured_type)
1500         (write_one_signatured_type): Update the field for per_cu.
1501
1502 2011-05-19  Tom Tromey  <[email protected]>
1503
1504         * python/py-inferior.c (python_inferior_exit): Use
1505         target_gdbarch.
1506         (python_on_resume): Likewise.
1507
1508 2011-05-19  Matt Rice  <[email protected]>
1509
1510         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1511
1512 2011-05-19  Hui Zhu  <[email protected]>
1513
1514         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1515
1516 2011-05-19  Hui Zhu  <[email protected]>
1517
1518         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1519
1520 2011-05-18  Tom Tromey  <[email protected]>
1521
1522         * dwarf2read.c (dwarf2_add_field): Constify.
1523         * value.c (value_static_field): Constify.
1524         * gdbtypes.h (struct main_type) <field.field_location.physname>:
1525         Now const.
1526         * ax-gdb.c (gen_static_field): Constify
1527
1528 2011-05-18  Jan Kratochvil  <[email protected]>
1529
1530         * linux-nat.c (kill_callback): Use SIGKILL first.
1531
1532 2011-05-18  Joel Brobecker  <[email protected]>
1533
1534         * ada-lang.c (print_it_exception): Avoid use of sprintf.
1535
1536 2011-05-18  Tom Tromey  <[email protected]>
1537
1538         * value.c (value_fn_field): Constify.
1539         * symtab.c (gdb_mangle_name): Constify.
1540         * stabsread.c (update_method_name_from_physname): Make 'physname'
1541         argument const.
1542         * p-typeprint.c (pascal_type_print_method_args): Make arguments
1543         const.  Use explicit fputc_filtered loop.
1544         (pascal_type_print_base): Constify.
1545         * p-lang.h (pascal_type_print_method_args): Update.
1546         * linespec.c (add_matching_methods): Constify.
1547         (add_constructors): Likewise.
1548         * jv-typeprint.c (java_type_print_base): Constify.
1549         * gdbtypes.h (struct cplus_struct_type)
1550         <fn_fieldlist.fn_field.physname>: Now const.
1551         * dwarf2read.c (compute_delayed_physnames): Constify.
1552         (dwarf2_add_member_fn): Likewise.
1553         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
1554
1555 2011-05-18  Pedro Alves  <[email protected]>
1556
1557         * infrun.c (resume): Mention which is the current thread, and its
1558         current PC in debug output.
1559         (prepare_to_proceed): Mention the thread switching in debug
1560         output.
1561
1562 2011-05-18  Tom Tromey  <[email protected]>
1563
1564         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1565         path check.  Use xmalloc and cleanups.
1566         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1567
1568 2011-05-17  Tom Tromey  <[email protected]>
1569
1570         * cp-valprint.c (cp_print_value_fields): Catch errors from
1571         value_static_field.
1572
1573 2011-05-17  Tom Tromey  <[email protected]>
1574
1575         * dwarf2read.c (dwarf2_get_die_type): Call
1576         get_die_type_at_offset.
1577         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1578         get_base_type function.
1579
1580 2011-05-17  Tomas Martinec  <[email protected]>
1581
1582         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1583         trap_expected.
1584
1585 2011-05-16  Doug Evans  <[email protected]>
1586
1587         * python/py-auto-load.c (source_section_scripts): Mention objfile
1588         name in warning.
1589
1590 2011-05-15  Doug Evans  <[email protected]>
1591
1592         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1593         (try_thread_db_load_from_pdir): Call it.  If unable to find
1594         libthread_db in directory of libpthread, see if we're looking at
1595         the separate-debug-info copy.
1596
1597         * python/py-autoload.c (print_script): Print "Missing" instead of
1598         "No" for missing scripts.
1599         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1600
1601 2011-05-13  Doug Evans  <[email protected]>
1602
1603         * ui-file.c (stdio_file_write_async_safe): Add comment.
1604
1605 2011-05-14  Hui Zhu  <[email protected]>
1606
1607         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1608
1609 2011-05-13  Doug Evans  <[email protected]>
1610
1611         Support $pdir and $sdir in libthread-db-search-path.
1612         * NEWS: Mention $sdir,$pdir.
1613         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1614         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1615         (try_thread_db_load_from_sdir): New function.
1616         (try_thread_db_load_from_dir): New function.
1617         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
1618         system directories if search of libthread-db-search-path fails,
1619         that is now done via $sdir.
1620         (has_libpthread): New function.
1621         (thread_db_load): Remove search for libthread_db in directory of
1622         libpthread, that is now done via $pdir.
1623
1624         * NEWS: Mention "info auto-load-scripts".
1625         * python/py-auto-load.c (struct auto_load_pspace_info): New member
1626         script_not_found_warning_printed.
1627         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1628         all callers updated.  Initialize script_not_found_warning_printed.
1629         (get_auto_load_pspace_data_for_loading): New function.
1630         (maybe_add_script): New function.
1631         (source_section_scripts): Simplify.  Only print one warning regardless
1632         of the number of auto-load scripts not found.
1633         (clear_section_scripts): Clear script_not_found_warning_printed.
1634         (auto_load_objfile_script): Record script in hash table.
1635         (count_matching_scripts): New function.
1636         (maybe_print_script): Renamed from maybe_print_section_script, all
1637         callers updated.  Rewrite to use ui_out_*.
1638         (info_auto_load_scripts): Renamed from
1639         maintenance_print_section_scripts, all callers updated.
1640         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1641         renamed as "info auto-load-scripts".
1642
1643 2011-05-13  Tom Tromey  <[email protected]>
1644
1645         * dwarf2expr.c (read_uleb128): Cast intermediate result.
1646         (read_sleb128): Likewise.
1647
1648 2011-05-13  Tom Tromey  <[email protected]>
1649
1650         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1651         offset display.
1652
1653 2011-05-13  Doug Evans  <[email protected]>
1654
1655         * linux-nat.c (debug_linux_nat_async): Delete.
1656         Replace all references to use debug_linux_nat instead.
1657         (show_debug_linux_nat_async): Delete.
1658         (sigchld_handler): Call ui_file_write_async_safe instead of
1659         fprintf_unfiltered.
1660         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1661         * ui-file.c (struct ui_file): New member to_write_async_safe.
1662         (null_file_write_async_safe): New function.
1663         (ui_file_write_async_safe): New function.
1664         (set_ui_file_write_async_safe): New function.
1665         (ui_file_new): Initialize to_write_async_safe.
1666         (stdio_file_write_async_safe): New function.
1667         (struct stdio_file): New member fd.
1668         (stdio_file_new): Initialize to_write_async_safe, fd.
1669         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1670         fileno.
1671         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1672         (set_ui_file_write_async_safe): Declare.
1673         (ui_file_write_async_safe): Declare.
1674
1675 2011-05-13  Tom Tromey  <[email protected]>
1676
1677         * utils.c (do_value_free): New function.
1678         (make_cleanup_value_free): Likewise.
1679         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1680         freeing correctly.
1681         (dwarf2_loc_desc_needs_frame): Call
1682         make_cleanup_value_free_to_mark.
1683         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1684         * dwarf2expr.c (free_dwarf_expr_context): Don't call
1685         value_free_to_mark.
1686         (new_dwarf_expr_context): Don't call value_mark.
1687         * dwarf2-frame.c (execute_stack_op): Call
1688         make_cleanup_value_free_to_mark.
1689         * defs.h (make_cleanup_value_free): Declare.
1690
1691 2011-05-13  Thiago Jung Bauermann  <[email protected]>
1692
1693         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1694         prepare_execute_command.
1695         * top.c (prepare_execute_command): Return cleanup.
1696         (execute_command): Use cleanup from prepare_execute_command.
1697         * top.h (prepare_execute_command): Change prototype to return
1698         cleanup.
1699         * defs.h (struct value): Add opaque declaration.
1700         (make_cleanup_value_free_to_mark): Add prototype.
1701         * utils.c (do_value_free_to_mark): New function.
1702         (make_cleanup_value_free_to_mark): Likewise.
1703
1704 2011-05-12  Tom Tromey  <[email protected]>
1705
1706         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1707         cast left-hand-side to unsigned.
1708
1709 2011-05-12  Tom Tromey  <[email protected]>
1710
1711         PR gdb/12617:
1712         * value.h (value_from_contents): Declare.
1713         * value.c (value_from_contents): New function.
1714         * dwarf2read.c (dwarf_stack_op_name): Add new values.
1715         (dwarf2_get_die_type): New function.
1716         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1717         (allocate_piece_closure): Acquire reference to values.
1718         (read_pieced_value): Update for value-based expressions.
1719         (write_pieced_value): Likewise.
1720         (free_pieced_value_closure): Call value_free as needed.
1721         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1722         Update for value-based expressions.
1723         * dwarf2loc.h (dwarf2_get_die_type): Declare.
1724         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1725         <get_base_type>: New field.
1726         (struct dwarf_expr_piece) <v.value>: Change type.
1727         <v.regno>: New field.
1728         (struct dwarf_expr_context) <mark>: New field.
1729         (dwarf_expr_piece, dwarf_expr_fetch): Update.
1730         (dwarf_expr_pop, dwarf_expr_push): Remove.
1731         (dwarf_expr_push_address): Declare.
1732         * dwarf2expr.c (dwarf_arch_cookie): New global.
1733         (struct dwarf_gdbarch_types): New.
1734         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1735         functions.
1736         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
1737         static.
1738         (dwarf_expr_push_address): New function.
1739         (dwarf_expr_pop): Now static.
1740         (dwarf_expr_fetch): Change return type.
1741         (dwarf_require_integral): New function.
1742         (dwarf_expr_fetch): Simplify.
1743         (add_piece): Update.
1744         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1745         functions.
1746         (execute_stack_op) <sign_ext>: Remove.
1747         Use values for DWARF stack.
1748         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1749         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1750         New cases.
1751         (_initialize_dwarf2expr): New function.
1752         (add_piece): Update.
1753         (new_dwarf_expr_context): Set new field.
1754         (free_dwarf_expr_context): Call value_free_to_mark.
1755         * dwarf2-frame.c (no_base_type): New function.
1756         (execute_stack_op): Set get_base_type field.  Update.
1757
1758 2011-05-12  Tom Tromey  <[email protected]>
1759
1760         * dwarf2read.c (read_common_block): Fix formatting.
1761
1762 2011-05-12  Kwok Cheung Yeung  <[email protected]>
1763
1764         * breakpoint.c (disable_breakpoint): Disable all locations
1765         associated with a tracepoint on target if a trace experiment is
1766         running.
1767         (disable_command): Disable a specific tracepoint location on target if
1768         a trace experiment is running.
1769         (do_enable_breakpoint): Enable all locations associated with a
1770         tracepoint on target if a trace experiment is running.
1771         (enable_command) Enable a specific tracepoint location on target if a
1772         trace experiment is running.
1773         * target.c (update_current_target): Add INHERIT and de_fault clauses for
1774         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1775         to_disable_tracepoint.
1776         * target.h: Add declaration of struct bp_location.
1777         (struct target_ops): Add new functions
1778         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1779         to_disable_tracepoint to target operations.
1780         (target_supports_enable_disable_tracepoint): New macro.
1781         (target_enable_tracepoint): New macro.
1782         (target_disable_tracepoint): New macro.
1783         * remote.c (struct remote_state): Add new field.
1784         (remote_enable_disable_tracepoint_feature): New.
1785         (remote_protocol_features): Add new entry.
1786         (remote_supports_enable_disable_tracepoint): New.
1787         (remote_enable_tracepoint): New.
1788         (remote_disable_tracepoint): New.
1789         (init_remote_ops): Add remote_enable_tracepoint,
1790         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1791         to remote operations.
1792         * tracepoint.c (start_tracing): Allow tracing to start without any
1793         tracepoints enabled with just a warning if they can be re-enabled
1794         later.
1795         * NEWS: Add news item for the new behaviour of the enable and disable
1796         GDB commands when applied to tracepoints.
1797         Add news items for the new remote packets QTEnable and QTDisable.
1798
1799 2011-05-11  Jan Kratochvil  <[email protected]>
1800
1801         * config.in: Regenerate.
1802         * configure: Regenerate.
1803         * configure.ac <--with-system-readline> (for readline_echoing_p):
1804         Remove the test.
1805         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1806         (tui_old_rl_echoing_p): ... here.
1807         (tui_setup_io): Rename extern declaration readline_echoing_p to
1808         _rl_echoing_p.  Adjust assignments for the both renames.
1809
1810 2011-05-11  Thiago Jung Bauermann  <[email protected]>
1811
1812         * symtab.c (lookup_symtab): Run cleanup before returning.
1813
1814 2011-05-11  Tom Tromey  <[email protected]>
1815
1816         * dwarf2read.c (handle_data_member_location): New function.
1817         (dwarf2_add_field): Use it.
1818         (read_common_block): Likewise.
1819
1820 2011-05-11  Jan Kratochvil  <[email protected]>
1821
1822         Make addrs->SECTINDEX always defined.
1823         * symfile.c (relative_addr_info_to_section_offsets): Check for
1824         SECTINDEX -1, not for zero ADDR.
1825         (addrs_section_compar): Remove checking for invalid SECTINDEX.
1826         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1827         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1828         on its validity.
1829
1830 2011-05-10  Doug Evans  <[email protected]>
1831
1832         * linux-thread-db.c: Whitespace cleanup.
1833         (try_thread_db_load_1): Fix comment.
1834
1835         * linux-thread-db.c (set_libthread_db_search_path): New function.
1836         (_initialize_thread_db): Add setter for libthread-db-search-path.
1837
1838 2011-05-09  Doug Evans  <[email protected]>
1839
1840         * NEWS: Mention --with-iconv-bin.
1841         * configure.ac: New option --with-iconv-bin.
1842         * configure: Regenerate.
1843         * config.in: Regenerate.
1844         * defs.h (relocate_gdb_directory): Declare.
1845         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1846         removed progname parameter, and exported.  All callers updated.
1847         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1848
1849         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1850         adding missing call to restore_child_signals_mask.
1851
1852 2011-05-09  Pedro Alves  <[email protected]>
1853
1854         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1855         parameter.
1856         * infrun.c (proceed, start_remote): Adjust.
1857         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1858         and adjust to not handle it.
1859         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1860         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1861         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1862         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1863         * windows-nat.c (do_initial_windows_stuff): Adjust.
1864         * infcmd.c (attach_command): Adjust.
1865         (notice_new_inferior): Adjust.
1866
1867 2011-05-06  Ulrich Weigand  <[email protected]>
1868
1869         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1870         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1871         * spu-tdep.c (op_selb): Use correct value.
1872
1873 2011-05-06  Ulrich Weigand  <[email protected]>
1874
1875         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1876         "parent" parameter to symbol_file_add_from_bfd call.
1877
1878 2011-05-06  Sergio Durigan Junior  <[email protected]>
1879             Thiago Jung Bauermann  <[email protected]>
1880
1881         Implement support for PowerPC BookE masked watchpoints.
1882         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
1883         section.
1884         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1885         method.  Initialize to NULL in all existing breakpoint_ops instances.
1886         (struct breakpoint) <hw_wp_mask>: New field.
1887         * breakpoint.c (is_masked_watchpoint): Add prototype.
1888         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
1889         breakpoint's breakpoint_ops.works_in_software_mode if available.
1890         (watchpoints_triggered): Handle the case of a hardware masked
1891         watchpoint trigger.
1892         (watchpoint_check): Likewise.
1893         (works_in_software_mode_watchpoint): New function.
1894         (insert_masked_watchpoint, remove_masked_watchpoint)
1895         (resources_needed_masked_watchpoint)
1896         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1897         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1898         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1899         functions.
1900         (masked_watchpoint_breakpoint_ops): New structure.
1901         (watch_command_1): Check for the existence of the `mask' parameter.
1902         Set b->ops according to the type of hardware watchpoint being created.
1903         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1904         (ppc_linux_remove_mask_watchpoint)
1905         (ppc_linux_masked_watch_num_registers): New functions.
1906         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1907         to_remove_mask_watchpoint and to_masked_watch_num_registers.
1908         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1909         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1910         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1911         (target_masked_watch_num_registers): New functions.
1912         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1913         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1914         methods.
1915         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1916         (target_masked_watch_num_registers): Add prototypes.
1917
1918 2011-05-06  Jan Kratochvil  <[email protected]>
1919
1920         PR 12573
1921         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1922         (producer_is_gcc_ge_4_0): New function.
1923         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
1924         symtab->language code.
1925         (var_decode_location): Set cu->has_loclist.
1926         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1927         skip.  Intialize force_skip from locations_valid.  Move the prologue
1928         skipping code into two passes.
1929         * symtab.h (struct symtab): Make the primary field a bitfield.  New
1930         field locations_valid.
1931
1932 2011-05-06  Jan Kratochvil  <[email protected]>
1933
1934         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1935         (classify_inner_name): Call cp_lookup_nested_type with
1936         yylval.tsym.type.
1937         * cp-namespace.c (cp_lookup_nested_type): New variable
1938         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
1939         type_name_no_tag_or_error with saved_parent_type.
1940         * dwarf2read.c (load_partial_dies): Read in any children of
1941         DW_TAG_typedef with complaint in such case.
1942         * gdbtypes.c (type_name_no_tag_or_error): New function.
1943         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1944         * valops.c (destructor_name_p): New comment for parameter type.  Remove
1945         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
1946         * value.h (destructor_name_p): Remove type const.
1947
1948 2011-05-06  Jan Kratochvil  <[email protected]>
1949
1950         * symtab.c (compare_symbol_name): New function.
1951         (completion_list_add_name, expand_partial_symbol_name): Call it,
1952         remove the variable ncmp.
1953         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1954         gdb_assert it.
1955
1956 2011-05-05  Thiago Jung Bauermann  <[email protected]>
1957
1958         Demote to sw watchpoint only in update_watchpoint.
1959         * breakpoint.c (update_watchpoint): Change between software and
1960         hardware watchpoint for all kinds of watchpoints, not just
1961         read/write ones.  Determine b->exact value here instead of
1962         in watch_command_1.  Error out if there are not enough resources
1963         for a read or access hardware watchpoint.
1964         (watch_command_1): Remove logic of checking whether there are
1965         enough resources available, since update_watchpoint will do that
1966         work now.  Don't set b->exact here.  Catch exceptions thrown by
1967         update_watchpoint and delete the watchpoint.
1968         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1969         Use target_exact_watchpoints instead.
1970         (delete_breakpoint): Notify observers only if deleted watchpoint
1971         has a breakpoint number assigned to it.
1972
1973 2011-05-05  Janis Johnson  <[email protected]>
1974
1975         * MAINTAINERS: Add myself as a write-after-approval maintainer.
1976
1977 2011-05-05  Jerome Guitton  <[email protected]>
1978
1979         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1980         New functions.
1981         (i386_stack_tramp_frame_unwind): New static global.
1982         (i386_match_pattern): New function, extracted from i386_match_insn.
1983         (i386_match_insn): Use i386_match_pattern.
1984         (i386_match_insn_block): New function.
1985         (i386_tramp_chain_in_reg_insns)
1986         (i386_tramp_chain_on_stack_insns): New static variables.
1987         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1988         of unwinders.
1989
1990 2011-05-04  Joseph Myers  <[email protected]>
1991
1992         * configure.host (xscale*): Don't handle target.
1993         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1994         handle targets.
1995
1996 2011-05-04  Yao Qi  <[email protected]>
1997
1998         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1999
2000 2011-05-03  Joel Brobecker <[email protected]>
2001
2002         Revert:
2003         | 2011-03-07  Michael Snyder  <[email protected]>
2004         | * elfread.c (elf_symtab_read): Stop memory leak.
2005
2006 2011-05-03  Pierre Muller  <[email protected]>
2007
2008         * nto-tdep.c (nto_target): Replace deprecated call to
2009         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2010
2011 2011-05-03  Jan Kratochvil  <[email protected]>
2012
2013         Fix false GCC warning.
2014         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2015
2016 2011-05-03  Thiago Jung Bauermann  <[email protected]>
2017
2018         * breakpoint.c (update_watchpoint): Move code to change
2019         the enable state of breakpoint from here ...
2020         (do_enable_breakpoint): ... to here.
2021
2022 2011-04-26  Andrew Gontarek  <[email protected]>
2023
2024         * valprint.c (val_print_array_elements): Fixed poor performance
2025         of printing very large arrays with repeat_count_threshold set
2026         to unlimited.  New comment.
2027
2028 2011-04-29  Tom Tromey  <[email protected]>
2029
2030         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2031         (mi_parse): Likewise.
2032         * breakpoint.c (break_range_command): Use sizeof char*, not
2033         char**.
2034         (create_breakpoint): Likewise.
2035         (parse_breakpoint_sals): Likewise.
2036
2037 2011-04-29  Pedro Alves  <[email protected]>
2038
2039         * linux-nat.c (linux_child_remove_fork_catchpoint)
2040         (linux_child_remove_vfork_catchpoint)
2041         (linux_child_remove_exec_catchpoint): New functions.
2042         (linux_target_install_ops): Install them.
2043
2044 2011-04-29  Phil Muldoon  <[email protected]>
2045
2046         PR mi/12531
2047
2048         * varobj.c (install_default_visualizer): Do not install a
2049         visualizer if the varobj is CPLUS_FAKE_CHILD.
2050         (construct_visualizer): Likewise.
2051
2052 2011-04-28  Jan Kratochvil  <[email protected]>
2053
2054         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
2055         case insensitive comparison.
2056
2057 2011-04-28  Ulrich Weigand  <[email protected]>
2058
2059         * infrun.c (proceed): Revert previous change.
2060         (resume): Instead, handle the case of signal delivery while stepping
2061         off a breakpoint location here, and only if software single-stepping
2062         is used.  Handle nested signals.
2063
2064 2011-04-28  Yao Qi  <[email protected]>
2065
2066         * arm-tdep.c (copy_unmodified): Rename to ...
2067         (arm_copy_unmodified): .. this.  New.
2068         (copy_preload): Move common part to ...
2069         (install_preload): .. this.  New.
2070         (arm_copy_preload): New.
2071         (copy_preload_reg): Move common part to ...
2072         (install_preload_reg): ... this.  New.
2073         (arm_copy_preload_reg): New.
2074         (copy_b_bl_blx): Move common part to ...
2075         (install_b_bl_blx): .. this.  New.
2076         (arm_copy_b_bl_blx): New.
2077         (copy_bx_blx_reg): Move common part to ...
2078         (install_bx_blx_reg): ... this. New.
2079         (arm_copy_bx_blx_reg): New.
2080         (copy_alu_reg): Move common part to ...
2081         (install_alu_reg): ... this.  New.
2082         (arm_copy_alu_reg): New.
2083         (copy_alu_shifted_reg): Move common part to ...
2084         (install_alu_shifted_reg): ... this.  New.
2085         (copy_ldr_str_ldrb_strb): Move common part to ...
2086         (install_ldr_str_ldrb_strb): ... this.  New.
2087         (arm_copy_ldr_str_ldrb_strb): New.
2088         (copy_copro_load_store): Move some common part to ...
2089         (install_copy_copro_load_store): ... this.  New.
2090         (arm_copy_copro_load_store): New.
2091         (copy_svc): Delete.
2092         (arm_copy_svc): Renamed from copy_svc.
2093         (copy_undef): Delete.
2094         (arm_copy_undef): Renamed from copy_undef.
2095         (decode_ext_reg_ld_st): Delete.
2096         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2097         (decode_svc_copro): Delete.
2098         (arm_decode_svc_copro): Renamed from decode_svc_copro.
2099         (copy_copro_load_store, copy_alu_imm): update callers.
2100         (copy_extra_ld_st, copy_block_xfer): Likewise.
2101         (decode_misc_memhint_neon, decode_unconditional): Likewise.
2102         (decode_miscellaneous, decode_dp_misc): Likewise.
2103         (decode_ld_st_word_ubyte, decode_media): Likewise.
2104         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2105         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2106         (decode_unconditional, decode_miscellaneous): Likewise.
2107         (decode_media, decode_b_bl_ldmstm): Likewise.
2108         (arm_process_displaced_insn): Likewise..
2109         (decode_misc_memhint_neon): Delete.
2110         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2111         (decode_miscellaneous): Delete.
2112         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2113         (decode_dp_misc): Delete.
2114         (arm_decode_dp_misc): Renamed from decode_dp_misc.
2115         (decode_ld_st_word_ubyte): Delete.
2116         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2117         (decode_media): Delete.
2118         (arm_decode_media): Renamed from decode_media.
2119         (decode_b_bl_ldmstm): Delete.
2120         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2121         (decode_ext_reg_ld_st): Delete.
2122         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2123         (decode_unconditional): Delete.
2124         (arm_decode_unconditional): Renamed from decode_unconditional.
2125
2126 2011-04-27  Jan Kratochvil  <[email protected]>
2127
2128         Case insensitive lookups implementation.
2129         * dwarf2read.c: Include ctype.h.
2130         (struct mapped_index): New field version.
2131         (mapped_index_string_hash): New parameter index_version.  New comment
2132         for it.  Call tolower appropriately.
2133         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2134         Choose the right index version for mapped_index_string_hash.
2135         (dwarf2_read_index): Support also the index version 5.  Initialize the
2136         new struct mapped_index field version.
2137         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2138         (find_slot): Explain the version needs.  Pass INT_MAX for the new
2139         parameter.
2140         (write_psymtabs_to_index): Produce version 5.
2141         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2142         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
2143         * psymtab.c (lookup_partial_symbol): Find the
2144         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2145         entries.
2146         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2147         NAME lowercasing.
2148         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2149         (completion_list_add_name): New variable ncmp, initialize it, use it.
2150         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2151         * utils.c (strcmp_iw): Support case_sensitive_off.
2152         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2153         New function comment part.  New variables saved_string1,
2154         saved_string2 and case_pass.  Add a proper second pass.
2155
2156 2011-04-27  Jan Kratochvil  <[email protected]>
2157
2158         Replace re_comp/re_exec by regcomp/regexec.
2159         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2160         (search_symbols_name_matches): Use them, use regexec.
2161         (search_symbols): New variable retval_chain, adjust the use of
2162         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
2163         search_symbols_data fields, use regexec instead of re_exec.
2164
2165 2011-04-27  Jan Kratochvil  <[email protected]>
2166
2167         Format the code for the next patch.
2168         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2169         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2170         New variables c1 and c2.
2171
2172 2011-04-27  Ulrich Weigand  <[email protected]>
2173
2174         * infrun.c (proceed): Do not single-step into signal delivery
2175         when stepping off a breakpoint location.
2176         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2177         (insert_step_resume_breakpoint_at_caller): Likewise.
2178         (insert_step_resume_breakpoint_at_sal): Likewise.
2179         (insert_longjmp_resume_breakpoint): Likewise.
2180
2181 2011-04-27  Yao Qi  <[email protected]>
2182
2183         * common/linux-ptrace.h: Remove include <sys/wait.h>.
2184
2185 2011-04-27  Joel Brobecker  <[email protected]>
2186
2187         * procfs.c (procfs_pass_signals): Fix advance declaration.
2188
2189 2011-04-27  Ulrich Weigand  <[email protected]>
2190
2191         * target.h (struct target_ops): Remove to_notice_signals;
2192         add to_pass_signals.
2193         (target_notice_signals): Remove.
2194         (target_pass_signals): Add prototype.
2195         * target.c (update_current_target): Remove to_notice_signals;
2196         mention to_pass_signals.
2197         (target_pass_signals): New function.
2198         (debug_to_notice_signals): Remove.
2199         (setup_target_debug): Do not install debug_to_notice_signals.
2200
2201         * infrun.c (signal_pass): New global.
2202         (resume): Call target_pass_signals.
2203         (handle_inferior_event): Report all signals while stepping over
2204         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
2205         are re-inserted when stepping over a signal handler.
2206         (signal_cache_update): New function.
2207         (signal_stop_update): Call it.
2208         (signal_print_update): Likewise.
2209         (signal_pass_update): Likewise.
2210         (handle_command): Call signal_cache_update and target_pass_signals
2211         instead of target_notice_signals.
2212         (_initialize_infrun): Initialize signal_pass.
2213
2214         * linux-nat.c (pass_mask): New global.
2215         (linux_nat_pass_signals): New function.
2216         (linux_nat_create_inferior): Report all signals initially.
2217         (linux_nat_attach): Likewise.
2218         (linux_nat_resume): Use pass_mask to decide whether to directly
2219         handle an inferior signal.
2220         (linux_nat_wait_1): Likewise.
2221         (linux_nat_add_target): Install to_pass_signals callback.
2222
2223         * nto-procfs.c (notice_signals): Remove.
2224         (procfs_resume): Do not call notice_signals.
2225         (procfs_notice_signals): Remove.
2226         (procfs_pass_signals): New function.
2227         (init_procfs_ops): Install to_pass_signals callback instead of
2228         to_notice_signals callback.
2229         (_initialize_procfs): Report all signals initially.
2230
2231         * procfs.c (procfs_notice_signals): Remove.
2232         (procfs_pass_signals): New function.
2233         (procfs_target): Install to_pass_signals callback instead of
2234         to_notice_signals callback.
2235         (register_gdb_signals): Remove.
2236         (procfs_debug_inferior): Report all signals initially.
2237         (procfs_init_inferior): Remove redundant register_gdb_signals call.
2238
2239         * remote.c (remote_pass_signals): Add numsigs and pass_signals
2240         parameters; use them instead of calling signal_..._state routines.
2241         (remote_notice_signals): Remove.
2242         (remote_start_remote): Report all signals initially.
2243         (remote_resume): Do not call remote_pass_signals.
2244         (_initialize_remote): Install to_pass_signals callback instead of
2245         to_notice_signals callback.
2246
2247 2011-04-27  Pedro Alves  <[email protected]>
2248
2249         * breakpoint.c (user_settable_breakpoint): Delete.
2250         (user_breakpoint_p): Remove check on user_settable_breakpoint.
2251         (delete_command): Check user_breakpoint_p instead of looking at
2252         the breakpoint's type.
2253         (disable_command): Ditto.
2254         (enable_command): Ditto.
2255         (delete_trace_command): Use user_breakpoint_p instead of looking
2256         at the breakpoint number directly.  When checking if there are
2257         user visible tracepoints, in order to know whether to ask the user
2258         for confirmation, check whether the breakpoint is actually a
2259         tracepoint.
2260
2261 2011-04-27  Vladimir Prus  <[email protected]>
2262
2263         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2264         compilation.
2265
2266 2011-04-27  Vladimir Prus  <[email protected]>
2267
2268         MI breakpoint notifications.
2269
2270         * annotate.c (breakpoint_changed): Adjust parameter type.
2271         * breakpoint.c (set_breakpoint_condition): Adjust to change
2272         in breakpoint_modified type.
2273         (breakpoint_set_commands): Likewise.
2274         (do_map_commands_command): Likewise.
2275         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2276         changed after bumping hit count.
2277         (bpstat_stop_status): Likewise.
2278         (print_one_breakpoint_location): Don't wrap in tuple here.
2279         (print_one_breakpoint): Always print individual locations.
2280         For locations, use unnamed tuple.
2281         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2282         has changed.
2283         (create_catchpoint, create_syscall_event_catchpoint): Call
2284         breakpoint_created obsever.
2285         (mention): Don't call breakpoint_created observer.
2286         (create_breakpoint_sal): Call breakpoint_created observer.
2287         (create_breakpoint, watch_command_1): Likewise.
2288         (create_ada_exception_breakpoint): Likewise.
2289         (delete_breakpoint): Call breakpoint_deleted breakpoint.
2290         (locations_are_equal): New.
2291         (update_breakpoint_locations): If locations were changed, notify.
2292         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2293         Call breakpoint_modified observer.
2294
2295         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2296         (mi_cmd_break_insert): Don't set observers for modify and delete.
2297         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2298         (mi_breakpoint_created, mi_breakpoint_deleted)
2299         (mi_breakpoint_modified): New.
2300         (mi_interpreter_init): Hook the above.
2301         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2302         while -break-* commands are executing.
2303         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2304         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2305         (mi_redirect): New.
2306         (mi_ui_out_impl): Hook in mi_redirect.
2307         (mi_field_skip): True to the name, skip the field, don't output
2308         a field with an empty value.
2309
2310         * python/py-breakpoint.c (gdbpy_breakpoint_created)
2311         (gdbpy_breakpoint_deleted): Adjust.
2312         * tui/tui-hooks.c (tui_event_create_breakpoint)
2313         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2314
2315 2011-04-26  Aleksandar Ristovski  <[email protected]>
2316
2317         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2318         (procfs_remove_hw_watchpoint): Likewise.
2319
2320 2011-04-26  Michael Walle  <[email protected]>
2321
2322         * remote.c (remote_start_remote): Ack packet after sending the
2323         interrupt sequence.
2324
2325 2011-04-26  Yao Qi  <[email protected]>
2326
2327         * linux-nat.c: Move common macros to ...
2328         Include linux-ptrace.h.
2329         * common/linux-ptrace.h: ... here.  New.
2330
2331 2011-04-25  Jan Kratochvil  <[email protected]>
2332
2333         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2334         !objfile_has_partial_symbols.  New comment.
2335         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2336         SYM_READ_PSYMBOLS is not present. Extend the comment.
2337         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2338
2339 2011-04-25  Jan Kratochvil  <[email protected]>
2340
2341         * defs.h (ENUM_BITFIELD): Remove.
2342
2343 2011-04-24  Jan Kratochvil  <[email protected]>
2344             Eli Zaretskii  <[email protected]>
2345
2346         * NEWS: Document the new gdbserver --once option.
2347
2348 2011-04-21  Jie Zhang  <[email protected]>
2349
2350         * MAINTAINERS: Update my email address.
2351
2352 2011-04-21  Pierre Muller  <[email protected]>
2353
2354         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2355         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2356         function call if __STDC_ISO_10646__ macro is defined.
2357         (intermediate_encoding): New prototype.
2358         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2359         to generate compile time error for unsupported gdb_wchar_t size.
2360         (ENDIAN_SUFFIX): New macro.
2361         (intermediate_encoding): New function.
2362
2363 2011-04-20  Jan Kratochvil  <[email protected]>
2364
2365         * ada-lang.c (struct add_partial_datum): Update the comment for
2366         expand_partial_symbol_name.
2367         (ada_add_partial_symbol_completions): Rename to ...
2368         (ada_expand_partial_symbol_name): ... here, change return type, update
2369         function comment, call symbol_completion_match instead of
2370         symbol_completion_add.
2371         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2372         and ada_expand_partial_symbol_name.
2373         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2374         FILE_MATCHER.
2375         (dw2_map_symbol_names): Remove.
2376         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2377         * psymtab.c (map_symbol_names_psymtab): Remove.
2378         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2379         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
2380         order.
2381         (psym_functions): Unlist map_symbol_names_psymtab.
2382         (map_partial_symbol_names): Rename to ...
2383         (expand_partial_symbol_names): ... here, change the FUN type, call
2384         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2385         * psymtab.h (map_partial_symbol_names): Rename to ...
2386         (expand_partial_symbol_names): ... here, change the FUN type.
2387         * symfile.h (struct quick_symbol_functions): Update the description of
2388         expand_symtabs_matching.  Remove map_symbol_names.
2389         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2390         (struct add_name_data): Update the comment for
2391         expand_partial_symbol_name.
2392         (add_partial_symbol_name): Rename to ...
2393         (expand_partial_symbol_name): ... here.  Replace
2394         completion_list_add_name call by strncmp.
2395         (default_make_symbol_completion_list_break_on): Use now
2396         expand_partial_symbol_names and expand_partial_symbol_name.
2397         * symtab.h (enum search_domain): New element ALL_DOMAIN.
2398
2399 2011-04-20  Tom Tromey  <[email protected]>
2400
2401         * dwarf2read.c (save_gdb_index_command): Replace format
2402         documentation with a pointer to the manual.
2403
2404 2011-04-20  Pedro Alves  <[email protected]>
2405
2406         * regcache.c: Include remote.h.
2407         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2408         (regcache_dump): Handle regcache_dump_remote.
2409         (maintenance_print_remote_registers): New function.
2410         (_initialize_regcache): Install "maint print remote-registers"
2411         command.
2412         * remote.c (map_regcache_remote_table): New function, factored out
2413         from ...
2414         (init_remote_state): ... here.
2415         (remote_register_number_and_offset): New.
2416         * remote.h (remote_register_number_and_offset): Declare.
2417
2418 2011-04-20  Pedro Alves  <[email protected]>
2419
2420         * regcache.c (get_thread_arch_regcache): If creating a regcache for
2421         null_ptid, assume and allow a NULL address space, instead of
2422         asking the target for the ptid's address space.
2423         * infrun.c (ptid_is_pid): Remove assertion.
2424
2425 2011-04-19  Tom Tromey  <[email protected]>
2426
2427         * windows-tdep.c (windows_xfer_shared_library):
2428         * windows-nat.c (get_module_name, windows_make_so):
2429         * v850-tdep.c (v850_handle_pushm):
2430         * utils.c (null_cleanup, gdb_realpath):
2431         * ui-out.c (get_next_header):
2432         * tracepoint.c (clear_traceframe_info):
2433         * symtab.c (lookup_symtab):
2434         * serial.h (struct serial_ops):
2435         * mipsread.c (read_alphacoff_dynamic_symtab):
2436         * infcmd.c (print_return_value):
2437         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2438         * f-exp.y (parse_number):
2439         * exceptions.c (catch_exceptions):
2440         * dummy-frame.c (dummy_frame_this_id):
2441         * defs.h (struct cleanup):
2442         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2443         * arm-tdep.c (arm_push_dummy_call):
2444         * amd64-tdep.h (amd64_collect_xsave):
2445         * amd64-tdep.c (amd64_collect_xsave):
2446         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2447         * README (typing): Remove duplicate words.
2448         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2449         * infrun.c (siginfo_value_read): Fix typo.
2450         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2451         * top.c (source_line_number): Add comma.
2452
2453 2011-04-19  Marc Khouzam  <[email protected]>
2454
2455         * thread.c (any_live_thread_of_process): Prioritize threads
2456         that are not executing.
2457         * gdbthread.h (any_live_thread_of_process): Update comment
2458         as per above change.
2459
2460 2011-04-19  Andreas Schwab  <[email protected]>
2461
2462         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2463         (scan_xcoff_symtab): Likewise.
2464
2465 2011-04-19  Pierre Muller  <[email protected]>
2466
2467         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2468         inside if clause.
2469
2470 2011-04-19  Pierre Muller  <[email protected]>
2471             Pedro Alves  <[email protected]>
2472
2473         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2474         variables to simplify code and avoid == operator at end of
2475         line as this is against GNU coding standards.
2476
2477 2011-04-19  Pierre Muller  <[email protected]>
2478
2479         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2480         lm_name to name_lm to avoid conflict with lm_name function.
2481
2482 2011-04-19  Pierre Muller  <[email protected]>
2483
2484         ARI fixes: Use only lowercase function name for static functions.
2485         * nto-tdep.c (LM_ADDR): Rename to...
2486         (lm_addr): New function name.
2487         (nto_relocate_section_addresses): Adapt to change above.
2488         * solib-sunos.c (LM_ADDR): Rename to...
2489         (lm_addr): New function name.
2490         (LM_NEXT): Rename to...
2491         (lm_next): New function name.
2492         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2493         function name changes above.
2494         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2495         (lm_addr_from_link_map): New function name.
2496         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2497         (has_lm_dynamic_from_link_map): New function name.
2498         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2499         (lm_dynamic_from_link_map): New function name.
2500         (LM_ADDR_CHECK): Rename to...
2501         (lm_addr_check): New function name.
2502         (LM_NEXT): Rename to...
2503         (lm_next): New function name.
2504         (LM_PREV): Rename to...
2505         (lm_prev): New function name.
2506         (LM_NAME): Rename to...
2507         (lm_name): New function name.
2508         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2509         (ignore_first_link_map_entry): New function name.
2510         (svr4_keep_data_in_core): Adapt to function name changes above.
2511         (svr4_current_sos): Likewise.
2512         (enable_break): Likewise.
2513         (svr4_relocate_section_addresses): Likewise.
2514
2515 2011-04-19  Pierre Muller  <[email protected]>
2516
2517         ARI cleanup.
2518         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2519         sprintf. Simplify code and avoid loosing memory.
2520         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2521         (call0_frame_cache): Remove && operator from end of line.
2522
2523 2011-04-17  Jan Kratochvil  <[email protected]>
2524
2525         Fix libraries displacement if they change whether they were prelinked.
2526         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2527         does not match.  Comment why.
2528
2529 2011-04-17  Jan Kratochvil  <[email protected]>
2530
2531         * corelow.c: Include wrapper.h.
2532         (core_open): Call now gdb_target_find_new_threads.
2533         * wrapper.c: Include target.h.
2534         (gdb_target_find_new_threads): New.
2535         * wrapper.h (gdb_target_find_new_threads): New declaration.
2536
2537 2011-04-17  Jan Kratochvil  <[email protected]>
2538
2539         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2540         even if !TARGET_HAS_EXECUTION.
2541
2542 2011-04-17  Jan Kratochvil  <[email protected]>
2543
2544         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2545         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2546         bfd_get_synthetic_symtab.
2547         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2548         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2549         parameter parent, remove the call to add_separate_debug_objfile.
2550         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2551         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2552         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2553         parent, new comment for it, call add_separate_debug_objfile for it.
2554         (symbol_file_add_separate): Pass objfile as the parameter parent,
2555         remove the call to add_separate_debug_objfile.
2556         (symbol_file_add_from_bfd): New parameter parent, pass it.
2557         (symbol_file_add): Pass NULL to the new parameter parent.
2558         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2559
2560 2011-04-17  Jan Kratochvil  <[email protected]>
2561
2562         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2563         BSF_SYNTHETIC.
2564
2565 2011-04-17  Jan Kratochvil  <[email protected]>
2566
2567         Fix Python access to inlined frames.
2568         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2569         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2570
2571 2011-04-15  Tom Tromey  <[email protected]>
2572
2573         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2574
2575 2011-04-15  Gary Benson  <[email protected]>
2576
2577         * MAINTAINERS: Add myself to write-after-approval section.
2578
2579 2011-04-14  Mike Frysinger  <[email protected]>
2580
2581         * remote-sim.c (sim_command_completer): New function.
2582         (_initialize_remote_sim): Set completer to sim_command_completer.
2583
2584 2011-04-13  Thiago Jung Bauermann  <[email protected]>
2585
2586         * breakpoint.c (print_exception_catchpoint): Rename to ...
2587         (print_it_exception_catchpoint): ... this.
2588         (gnu_v3_exception_catchpoint_ops): Update with new name
2589         for print_it_exception_catchpoint.
2590
2591 2011-04-13  Edjunior Machado  <[email protected]>
2592
2593         * MAINTAINERS: Add myself for write after approval privileges.
2594
2595 2011-04-13  Marek Polacek  <[email protected]>
2596
2597         * MAINTAINERS: Add myself as a write-after-approval maintainer.
2598
2599 2011-04-13  Thiago Jung Bauermann  <[email protected]>
2600
2601         * breakpoint.c (watch_command_1): Remove colon from exp_string.
2602
2603 2011-04-13  Thiago Jung Bauermann  <[email protected]>
2604
2605         * breakpoint.c (save_breakpoints): Verify whether
2606         breakpoint_ops.print_recreate is defined before calling it.
2607
2608 2011-04-11  Gary Benson  <[email protected]>
2609
2610         Fix failure with --enable-maintainer-mode.
2611         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2612
2613 2011-04-09  Jan Kratochvil  <[email protected]>
2614
2615         Code cleanup.
2616         * symtab.c (search_symbols): Reorder the KIND description in the
2617         function comment.  Remove the unused 4th element of types, types2,
2618         types3 and types4.  New gdb_assert on KIND.
2619         (symtab_symbol_info): Remove the unused 4th element of classnames.
2620         New gdb_assert on KIND.
2621         * symtab.h (enum search_domain): New warning in the enum comment.
2622         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2623         TYPES_DOMAIN.
2624
2625 2011-04-09  Jan Kratochvil  <[email protected]>
2626
2627         Fix crash of gdb save-index on a STABS file.
2628         * dwarf2read.c (write_psymtabs_to_index): Return also on no
2629         PSYMTABS_ADDRMAP.
2630
2631 2011-04-09  Jan Kratochvil  <[email protected]>
2632
2633         Fix DW_AT_accessibility compatibility with gcc-4.6+.
2634         * dwarf2read.c: Include ctype.h.
2635         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2636         functions.
2637         (dwarf2_add_field): Fix new_field->accessibility by calling
2638         dwarf2_default_access_attribute.  Restructure setting accessibility
2639         vs. virtuality.
2640         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
2641         is_private and is_protected by calling
2642         dwarf2_default_access_attribute.
2643
2644 2011-04-08  Kevin Buettner  <[email protected]>
2645
2646         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2647         to the initialization.
2648
2649 2011-04-08  Steve Ellcey  <[email protected]>
2650
2651         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2652         initalization.
2653
2654 2011-04-07  Pierre Muller  <[email protected]>
2655
2656         Remove support for old Cygwin 1.5 versions.
2657         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2658         function on old Cygwin version.
2659         * windows-nat.c: Remove cygwin version check and always define
2660         __USEWIDE for Cygwin compilation.
2661
2662 2011-04-07  Yao Qi  <[email protected]>
2663
2664         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2665         and TO.
2666         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2667         (arm_copy_svc): Remove parameters INSN and TO.
2668         (decode_svc_copro): Update caller.
2669         * arm-tdep.h (struct displaced_step_closure): Remove parameters
2670         from function pointer `copy_svc_os'.
2671
2672 2011-04-07  Yao Qi  <[email protected]>
2673
2674         * arm-tdep.c (cleanup_branch): Set a correct return address in
2675         LR for ARM and Thumb.
2676
2677 2011-04-06  Jan Kratochvil  <[email protected]>
2678
2679         Code cleanup.
2680         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2681         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2682         in the function comment, a new note on values compatibility.
2683         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2684         * symtab.h (SYMBOL_HASH_NEXT): New.
2685
2686 2011-04-06  Thiago Jung Bauermann  <[email protected]>
2687
2688         * ppc-linux-nat.c (check_condition): Add len output parameter.
2689         Set it based on the memory region referenced in the condition
2690         expression.  Update all callers.
2691
2692 2011-04-06  Jan Kratochvil  <[email protected]>
2693
2694         Fix crash regression on systems featuring .gdb_index.
2695         * objfiles.c (free_objfile): Move the
2696         forget_cached_source_info_for_objfile call earlier.  Comment it.
2697         Extend the comment for objfile_free_data.
2698
2699 2011-04-06  Jan Kratochvil  <[email protected]>
2700
2701         Fix regression of displaying the debug format.
2702         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2703         subfile.
2704
2705 2011-04-04  Tom Tromey  <[email protected]>
2706
2707         * cli/cli-interp.c (struct captured_execute_command_args):
2708         Remove.
2709         (do_captured_execute_command): Remove.
2710         (safe_execute_command): Use TRY_CATCH.
2711         * cli/cli-script.c (struct wrapped_read_command_file_args):
2712         Remove.
2713         (wrapped_read_command_file): Remove.
2714         (script_from_file): Use TRY_CATCH.
2715         * exceptions.c (catch_exception): Remove.
2716         * exceptions.h (catch_exception): Remove.
2717         (deprecated_throw_reason): Update comment.
2718         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2719         argument to 'context'.
2720         (mi_execute_command): Use TRY_CATCH.
2721         * remote.c (struct start_remote_args): Remove.
2722         (remote_start_remote): Update; change arguments.
2723         (remote_open_1): Use TRY_CATCH.
2724
2725 2011-04-04  Tom Tromey  <[email protected]>
2726
2727         * tracepoint.c (scope_info): Update.
2728         * symtab.c (decode_line_spec): Update.
2729         * python/python.c (gdbpy_decode_line): Update.
2730         * linespec.h (decode_line_1): Update.
2731         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2732         (decode_compound, find_method, symtab_from_filename)
2733         (decode_variable): Likewise.
2734         * cli/cli-cmds.c (edit_command): Update.
2735         (list_command): Update.
2736         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2737         argument.
2738         (create_breakpoint): Update.
2739         (until_break_command): Update.
2740         (addr_string_to_sals): Update.
2741         (decode_line_spec_1): Update.
2742
2743 2011-04-04  Tom Tromey  <[email protected]>
2744
2745         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2746         (do_captured_parse_breakpoint): Remove.
2747         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
2748         Use TRY_CATCH directly.
2749
2750 2011-04-04  Tom Tromey  <[email protected]>
2751
2752         * symtab.h (free_symtab): Remove.
2753         (forget_cached_source_info_for_objfile): Declare.
2754         * symmisc.c (free_symtab): Remove.
2755         * source.c (forget_cached_source_info_for_objfile): New function.
2756         (forget_cached_source_info): Use it.
2757         * objfiles.c (free_objfile): Simplify check before calling
2758         clear_current_source_symtab_and_line.  Call
2759         forget_cached_source_info_for_objfile.
2760
2761 2011-04-04  Tom Tromey  <[email protected]>
2762
2763         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2764         (new_symtab): Don't set `free_code' on symtab.
2765         (new_linetable): Properly handle size==0.
2766         * symtab.h (struct symtab) <free_code, free_func>: Remove.
2767         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
2768         free_func.
2769         * jv-lang.c (struct jv_per_objfile_data): New.
2770         (jv_per_objfile_free): Free the data.
2771         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2772         (get_java_class_symtab): Set the `dict' field on the
2773         jv_per_objfile_data.
2774         (free_class_block): Remove.
2775         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2776         the symtab.
2777
2778 2011-04-04  Tom Tromey  <[email protected]>
2779
2780         * symfile.c (reread_symbols): Update.
2781         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2782         field.
2783         * objfiles.c (allocate_objfile): Update.
2784         * cp-support.h (cp_check_possible_namespace_symbols): Don't
2785         declare.
2786         * cp-namespace.c (lookup_symbol_file): Don't call
2787         lookup_possible_namespace_symbol.
2788         (initialize_namespace_symtab, get_possible_namespace_block)
2789         (free_namespace_block, cp_check_possible_namespace_symbols)
2790         (check_possible_namespace_symbols_loop)
2791         (check_one_possible_namespace_symbol)
2792         (lookup_possible_namespace_symbol): Remove.
2793         (maintenance_cplus_namespace): Replace with notice.
2794         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2795
2796 2011-04-04  Tom Tromey  <[email protected]>
2797
2798         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2799         * symtab.h (struct symtab) <producer, debugformat>: Now const.
2800         * symmisc.c (free_symtab): Don't free debugformat.
2801         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2802         (record_debugformat, record_producer): Document.
2803         * buildsym.c (end_symtab): Don't save debugformat and producer
2804         names on obstack.
2805         (end_symtab): Don't free debugformat and producer fields.
2806         (record_debugformat): Don't call xstrdup.
2807         (record_producer): Likewise.
2808
2809 2011-04-04  Tom Tromey  <[email protected]>
2810
2811         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2812         (source_line_charpos, source_charpos_line): Remove.
2813
2814 2011-04-04  Tom Tromey  <[email protected]>
2815
2816         * symtab.h (domain_enum): Split in two...
2817         (enum search_domain): New.
2818         (search_symbols): Update.
2819         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2820         redundant declarations.
2821         (search_symbols): Change 'kind' argument to search_domain.
2822         Update.
2823         (print_symbol_info): Likewise.
2824         (symtab_symbol_info): Likewise.
2825         * symfile.h (struct quick_symbol_functions)
2826         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2827         <expand_symtabs_matching>: Likewise.
2828         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2829         (expand_symtabs_matching_via_partial): Update.
2830         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2831         (dw2_expand_symtabs_for_function): Update.
2832         * block.h: Moved anonymous enum...
2833         * defs.h (enum block_enum): ... here.  Now named.
2834
2835 2011-04-03  Joel Brobecker  <[email protected]>
2836
2837         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2838         * version.in: Bump version to 7.3.50.20110403-cvs.
2839
2840 2011-04-03  Joel Brobecker  <[email protected]>
2841
2842         * NEWS: Create a new section for the next release branch.
2843         Rename the section of the current branch, now that it has
2844         been cut.
2845
2846 2011-04-01  Ulrich Weigand  <[email protected]>
2847
2848         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2849         for "fpscr" in target description.
2850
2851 2011-04-01  Jan Kratochvil  <[email protected]>
2852
2853         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2854         initialize it.  Delay HASH initialization.  Strip the part after open
2855         parenthesis for languages with qualifiers.  Call do_cleanups.
2856
2857 2011-04-01  Tom Tromey  <[email protected]>
2858
2859         * utils.c (report_command_stats): Don't print `-' for negative
2860         number.
2861
2862 2011-04-01  Eric Botcazou  <[email protected]>
2863
2864         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2865         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2866         typedefs.
2867
2868 2011-04-01  Joel Brobecker  <[email protected]>
2869
2870         * breakpoint.h (bpdisp_text): Add declaration.
2871         * breakpoint.c (bpdisp_text): Make non-static.
2872         * ada-lang.c: #include "mi/mi-common.h".
2873         (print_it_exception): Rewrite to improve GDB/MI output.
2874
2875 2011-04-01  Pedro Alves  <[email protected]>
2876
2877         * arm-tdep.h (struct address_space): Add forward declaration.
2878
2879 2011-04-01  Ulrich Weigand  <[email protected]>
2880
2881         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2882         * arm-tdep.c (arm_override_mode): New global.
2883         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
2884         execution mode heuristics.
2885         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2886         second single-step breakpoint if needed, using
2887         arm_insert_single_step_breakpoint.
2888         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
2889         ARM execution mode, do not call thumb_get_next_pc_raw.
2890         (arm_get_next_pc): Encode execution mode in return value.  Call
2891         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2892         (arm_insert_single_step_breakpoint): New function.
2893         (arm_software_single_step): Call it.
2894         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2895         argument to return execution mode of sigreturn target.
2896         (arm_linux_syscall_next_pc): Use it.
2897         (arm_linux_copy_svc): Update call.
2898         (arm_linux_software_single_step): Call
2899         arm_insert_single_step_breakpoint.
2900
2901 2011-03-31  Jan Kratochvil  <[email protected]>
2902
2903         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2904         the comment.
2905
2906 2011-03-31  Tom Tromey  <[email protected]>
2907
2908         * varobj.c (update_dynamic_varobj_children): Properly handle
2909         errors from iterator.
2910
2911 2011-03-31  Jan Kratochvil  <[email protected]>
2912
2913         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
2914         struct linkage name twice.
2915
2916 2011-03-31  Tom Tromey  <[email protected]>
2917
2918         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2919         missing ">" to message.
2920
2921 2011-03-31  Tom Tromey  <[email protected]>
2922
2923         * varobj.c (instantiate_pretty_printer): Remove duplicate
2924         'return'.
2925
2926 2011-03-31  Ulrich Weigand  <[email protected]>
2927
2928         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2929         if neither saved value nor register available (e.g. signal frame).
2930
2931 2011-03-31  Thiago Jung Bauermann  <[email protected]>
2932
2933         * macroexp.c (expand): Avoid uninitialized variable
2934         compiler warning.
2935
2936 2011-03-31  Thiago Jung Bauermann  <[email protected]>
2937
2938         * breakpoint.c (break_range_command): Fix typo in comment.
2939
2940 2011-03-31  Thiago Jung Bauermann  <[email protected]>
2941             Sergio Durigan Junior  <[email protected]>
2942
2943         Implement support for PowerPC BookE ranged breakpoints.
2944         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2945         * breakpoint.h (struct bp_target_info) <length>: New member
2946         variable.
2947         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2948         instead of struct breakpoint as argument, and also add ASPACE
2949         and BP_ADDR arguments.  Update all callers.
2950         (struct breakpoint_ops) <print_one_detail>: New method.
2951         (struct breakpoint) <addr_string_range_end>: New member variable.
2952         * breakpoint.c (breakpoint_location_address_match): Add function
2953         prototype.
2954         (insert_bp_location): Set bl->target_info.length.
2955         (breakpoint_here_p): Call breakpoint_location_address_match.
2956         (moribund_breakpoint_here_p): Likewise.
2957         (regular_breakpoint_inserted_here_p): Likewise.
2958         (breakpoint_thread_match): Likewise.
2959         (bpstat_stop_status): Likewise.
2960         (bpstat_check_location): Move call to
2961         breakpoint_ops.breakpoint_hit to the top.
2962         (print_one_breakpoint_location): Call
2963         breakpoint_ops.print_one_detail if available.
2964         (breakpoint_address_match_range): New function.
2965         (breakpoint_location_address_match): Likewise.
2966         (breakpoint_locations_match): Compare the length field of the
2967         locations too.
2968         (hw_breakpoint_used_count): Count resources used by all locations
2969         in a breakpoint, and use breakpoint_ops.resources_needed if
2970         available.
2971         (breakpoint_hit_ranged_breakpoint): New function.
2972         (resources_needed_ranged_breakpoint): Likewise.
2973         (print_it_ranged_breakpoint): Likewise.
2974         (print_one_ranged_breakpoint): Likewise.
2975         (print_one_detail_ranged_breakpoint): Likewise.
2976         (print_mention_ranged_breakpoint): Likewise.
2977         (print_recreate_ranged_breakpoint): Likewise.
2978         (ranged_breakpoint_ops): New structure.
2979         (find_breakpoint_range_end): New function.
2980         (break_range_command): Likewise.
2981         (delete_breakpoint): Free addr_string_range_end.
2982         (update_breakpoint_locations): Add SALS_END argument.  Update
2983         all callers.  Calculate breakpoint length if a non-zero SALS_END
2984         is given.  Call breakpoint_locations_match instead of
2985         breakpoint_address_match.
2986         (reset_breakpoint): Find SaL of the end of the range if B is a
2987         ranged breakpoint.
2988         (_initialize_breakpoint): Register break-range command.
2989         * defs.h (print_core_address): Add function prototype.
2990         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2991         function.
2992         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2993         (ppc_linux_remove_hw_breakpoint): Likewise.
2994         (_initialize_ppc_linux_nat): Initialize
2995         to_ranged_break_num_registers.
2996         * target.c (update_current_target): Add comment about
2997         to_ranged_break_num_registers.
2998         (target_ranged_break_num_registers): New function.
2999         * target.h (struct target_ops) <to_ranged_break_num_registers>:
3000         New method.
3001         (target_ranged_break_num_registers): Add function prototype.
3002         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
3003         * utils.c (print_core_address): ... here.
3004
3005 2011-03-31  Ulrich Weigand  <[email protected]>
3006
3007         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
3008         variable compiler warning.
3009
3010 2011-03-30  Thiago Jung Bauermann  <[email protected]>
3011
3012         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
3013         code from here ...
3014         (re_set_breakpoint): ... to here ...
3015         (addr_string_to_sals): ... and here.
3016
3017 2011-03-29  Pierre Muller  <[email protected]>
3018
3019         * Makefile.in (SFILES): Add missing C sources.
3020         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
3021         Add missing headers.
3022
3023 2011-03-29  Mike Frysinger  <[email protected]>
3024
3025         * .gitignore: New file.
3026
3027 2011-03-29  Mike Frysinger  <[email protected]>
3028
3029         * NEWS: Mention new cfi device simulation.
3030
3031 2011-03-29  Tom Tromey  <[email protected]>
3032
3033         * dwarf2read.c (fixup_partial_die): Handle linkage name on
3034         otherwise anonymous types.
3035         (dwarf2_name): Likewise.
3036         * valops.c (value_struct_elt_for_reference): Refine artificial
3037         type logic.  Call error if j==-1.
3038
3039 2011-03-29  Andreas Tobler  <[email protected]>
3040
3041         Fix false GCC warning.
3042         * infcall.c (find_function_addr): Initialize funaddr.
3043
3044 2011-03-29  Pierre Muller  <[email protected]>
3045
3046         Fix mingw compilation with --enable-targets=all.
3047         * remote-mips.c (gdb_usleep.h): Include header.
3048         (mips_enter_debug): Use gdb_usleep instead of sleep.
3049
3050 2011-03-28  Jan Kratochvil  <[email protected]>
3051
3052         Support resolution of STT_GNU_IFUNC via breakpoints.
3053         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3054         bp_gnu_ifunc_resolver_return.
3055         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3056         the loop.  Support bp_gnu_ifunc_resolver and
3057         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
3058         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3059         breakpoints.
3060         (bptype_string, print_one_breakpoint_location): Support
3061         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3062         (user_settable_breakpoint): Return true also for
3063         bp_gnu_ifunc_resolver.
3064         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3065         bp_gnu_ifunc_resolver_return.
3066         (set_breakpoint_location_function): New parameter explicit_loc,
3067         describe it.  Call find_pc_partial_function_gnu_ifunc with new
3068         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3069         EXPLICIT_LOC is not set.
3070         (set_raw_breakpoint): Set EXPLICIT_LOC for
3071         set_breakpoint_location_function.
3072         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3073         set_breakpoint_location_function.
3074         (mention): Support bp_gnu_ifunc_resolver and
3075         bp_gnu_ifunc_resolver_return.
3076         (add_location_to_breakpoint): Set EXPLICIT_LOC for
3077         set_breakpoint_location_function.
3078         (update_breakpoint_locations): Remove static.
3079         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3080         bp_gnu_ifunc_resolver_return.
3081         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3082         bp_gnu_ifunc_resolver_return.
3083         (update_breakpoint_locations): New declaration.
3084         * elfread.c: Include gdbthread.h and regcache.h.
3085         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3086         functions.
3087         (elf_gnu_ifunc_fns): Install them.
3088         * minsyms.c (stub_gnu_ifunc_resolver_stop)
3089         (stub_gnu_ifunc_resolver_return_stop): New functions.
3090         (stub_gnu_ifunc_fns): Install them.
3091         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3092         and gnu_ifunc_resolver_return_stop.
3093         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3094
3095 2011-03-28  Jan Kratochvil  <[email protected]>
3096
3097         STT_GNU_IFUNC reader implementation.
3098         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3099         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3100         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3101         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3102         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3103         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3104         (elf_gnu_ifunc_resolve_addr): New.
3105         (elf_symfile_read): Call elf_rel_plt_read.
3106         (elf_gnu_ifunc_fns): New.
3107         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3108         Install elf_gnu_ifunc_fns.
3109         * infcall.c (find_function_return_type): New function.
3110         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3111         * minsyms.c (stub_gnu_ifunc_resolve_addr)
3112         (stub_gnu_ifunc_resolve_name): New functions.
3113         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3114         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3115         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3116
3117 2011-03-28  Jan Kratochvil  <[email protected]>
3118
3119         Code cleanup for later STT_GNU_IFUNC support.
3120         * infcall.c (find_function_addr): Remove variable code, use explicit
3121         dereferences for it.  Move VALUE_TYPE initialization later.
3122
3123 2011-03-28  Jan Kratochvil  <[email protected]>
3124
3125         GDB find_pc_partial_function support for STT_GNU_IFUNC.
3126         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3127         (clear_pc_function_cache): Clear it.
3128         (find_pc_partial_function): Rename to ...
3129         (find_pc_partial_function_gnu_ifunc): ... this function.  New
3130         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
3131         (find_pc_partial_function): New wrapper for this function.
3132         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3133
3134 2011-03-28  Jan Kratochvil  <[email protected]>
3135
3136         GDB internal type support for STT_GNU_IFUNC.
3137         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3138         (elf_symtab_read): Set mst_text_gnu_ifunc for
3139         BSF_GNU_INDIRECT_FUNCTION.
3140         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3141         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3142         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3143         nodebug_got_plt_symbol.
3144         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3145         (TYPE_GNU_IFUNC): New.
3146         (struct main_type): New field flag_gnu_ifunc.
3147         (struct builtin_type): New field builtin_func_func.
3148         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3149         nodebug_got_plt_symbol.
3150         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3151         (in_gnu_ifunc_stub): New.
3152         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3153         mst_text_gnu_ifunc.
3154         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
3155         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
3156         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3157         in_gnu_ifunc_stub.
3158         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3159         * symtab.c (search_symbols): Likewise.
3160         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3161         and mst_slot_got_plt.
3162         (in_gnu_ifunc_stub): New declaration.
3163
3164 2011-03-28  Jan Kratochvil  <[email protected]>
3165
3166         Support a ring of related breakpoints.
3167         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3168         other functions, add gdb_assert.
3169         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
3170         watchpoint_del_at_next_stop.
3171         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3172         (bpstat_stop_status): Handle ring in related_breakpoint.
3173         (set_raw_breakpoint_without_location): Initialize ring in
3174         related_breakpoint.
3175         (delete_breakpoint): Handle ring in related_breakpoint, use
3176         watchpoint_del_at_next_stop.
3177         (map_breakpoint_numbers): Handle ring in related_breakpoint.
3178
3179 2011-03-28  Tom Tromey  <[email protected]>
3180
3181         PR symtab/12441:
3182         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3183         with `language_minimal'.
3184
3185 2011-03-25  Ulrich Weigand  <[email protected]>
3186
3187         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3188         instead of checking for STT_ARM_TFUNC symbol type.
3189
3190 2011-03-25  Tom Tromey  <[email protected]>
3191
3192         * linespec.c (symbol_found): Restore line-based result for
3193         non-LOC_LABEL symbols.
3194
3195 2011-03-25  Kai Tietz  <[email protected]>
3196
3197         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3198         instead of strcmp for comparison.
3199         (tui_source_is_displayed): Likewise.
3200         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3201
3202 2011-03-24  Mark Wielaard  <[email protected]>
3203
3204         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3205         complaint.
3206         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3207         (find_partial_die_in_comp_unit): Likewise in comment.
3208         (read_attribute_value): Likewise.
3209         (lookup_die_type): Likewise.
3210         (dwarf_form_name): Likewise.
3211         (dump_die_shallow): Likewise.
3212         (follow_die_ref_or_sig): Likewise.
3213
3214 2011-03-24  Tom Tromey  <[email protected]>
3215
3216         PR breakpoints/11816:
3217         * linespec.c (decode_line_1): Parse `function:label' linespecs.
3218         (decode_compound): Update.
3219         (find_function_symbol): New function.
3220         (decode_dollar): Update.
3221         (decode_label): Add 'function_symbol' parameter.  Handle
3222         function-relative labels.
3223         (decode_variable): Update.
3224         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
3225         not its line.  Set `special_display' and canonical name for
3226         labels.
3227
3228 2011-03-24  Tom Tromey  <[email protected]>
3229
3230         * linespec.h (struct linespec_result) <special_display>: New
3231         field.
3232         * breakpoint.h (struct breakpoint) <display_canonical>: New
3233         field.
3234         * breakpoint.c (print_breakpoint_location): Respect
3235         display_canonical.
3236         (create_breakpoint_sal): Add 'display_canonical' parameter.
3237         (create_breakpoints_sal): Update.
3238         (create_breakpoint): Update.
3239
3240 2011-03-24  Tom Tromey  <[email protected]>
3241
3242         * symtab.c (decode_line_spec): Update.
3243         * linespec.c (build_canonical_line_spec): Change type of
3244         'canonical'.
3245         (decode_line_2, decode_line_1, decode_objc, decode_compound)
3246         (find_method, decode_all_digits, decode_dollar, decode_label)
3247         (symbol_found): Likewise.
3248         (init_linespec_result): New function.
3249         * breakpoint.c (struct captured_parse_breakpoint_args)
3250         <canonical_p>: New field, replaces addr_string_p.
3251         (create_breakpoints_sal): Add 'canonical' parameter, replacing
3252         'addr_string'.
3253         (parse_breakpoint_sals): Likewise.
3254         (do_captured_parse_breakpoint): Update.
3255         (create_breakpoint): Use struct linespec_result.
3256         (until_break_command): Update.
3257         (breakpoint_re_set_one): Update.
3258         (decode_line_spec_1): Update.
3259         * linespec.h (struct linespec_result): New.
3260         (init_linespec_result): Declare.
3261
3262 2011-03-23  Pedro Alves  <[email protected]>
3263
3264         * regcache.c (regcache_raw_read): If the target didn't supply a
3265         given raw register, mark it as unavailable.
3266
3267 2011-03-23  Kai Tietz  <[email protected]>
3268
3269         * breakpoint.c (clear_command): Use filename_cmp
3270         instead of strcmp for comparison.
3271         * buildsym.c (watch_main_source_file_lossage): Likewise.
3272         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3273         checking just for slash.
3274         * dbxread.c (read_dbx_symtab): Use lbasename instead of
3275         strrchr and filename_cmp instead of strcmp for filenames.
3276         (add_old_header_file): Use filename_cmp
3277         instead of strcmp for comparison.
3278         * exec.c (exec_set_section_address): Likewise.
3279         * macrotab.c (macro_lookup_inclusion): Likewise.
3280         (macro_lookup_inclusion): Likewise.
3281         * elfread.c (_initialize_elfread): Likewise.
3282         (elfstab_offset_sections): Likewise.
3283         (elfstab_offset_sections): Use lbasename instead of
3284         strrchr.
3285         * mdebugread.c (parse_partial_symbols): Likewise.
3286         (arse_partial_symbols): Use filename_(n)cmp instead of
3287         str(n)cmp for comparison.
3288         * minsyms.c (lookup_minimal_symbol): Likewise.
3289         * psymtab.c (read_psymtabs_with_filename): Likewise.
3290         * solib.c (solib_read_symbols): Likewise.
3291         (reload_shared_libraries_1): Likewise.
3292         * symmisc.c (maintenance_print_symbols): Likewise.
3293         * symfile.c (separate_debug_file_exists): Likewise.
3294         (reread_symbols): Likewise.
3295         (find_separate_debug_file_by_debuglink): Likewise.
3296         * remote-fileio.c (remote_fileio_func_rename): Likewise.
3297         * source.c (add_path): Likewise.
3298         * symtab.c (filename_seen): Likewise.
3299         (file_matches): Likewise.
3300         (print_symbol_info): Likewise.
3301         (maybe_add_partial_symtab_filename): Likewise.
3302         (make_source_files_completion_list): Likewise.
3303         * xml-syscall.c (init_sysinfo): Likewise.
3304         * windows-nat.c (_initialize_check_for_gdb_ini): Use
3305         IS_DIR_SEPARATOR for checking for trailing path separator.
3306
3307 2011-03-22  Jan Kratochvil  <[email protected]>
3308
3309         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
3310         label abort_expression.
3311         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3312         DWARF_VALUE_OPTIMIZED_OUT.
3313
3314 2011-03-22  Jan Kratochvil  <[email protected]>
3315
3316         Code cleanup.
3317         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3318         to linkage_name.  Invert its value.  Update the function comment.
3319         (c_type_print_varspec_suffix): Invert it at the caller.
3320         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3321
3322 2011-03-22  Pedro Alves  <[email protected]>
3323
3324         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3325         errors when reading the `stop_pc'.
3326         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3327         get_frame_pc.
3328
3329 2011-03-22  Phil Muldoon  <[email protected]>
3330
3331         * NEWS: Document gdb.Write stream keyword.
3332
3333 2011-03-22  Jan Kratochvil  <[email protected]>
3334
3335         Revert:
3336         2011-03-21  Jan Kratochvil  <[email protected]>
3337         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3338         (dwarf2_add_field): Fix new_field->accessibility for
3339         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3340
3341 2011-03-22  Phil Muldoon  <[email protected]>
3342
3343         PR python/12183
3344
3345         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3346         other error classes.  Do not print stack trace.
3347
3348 2011-03-21  Jan Kratochvil  <[email protected]>
3349
3350         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3351         (dwarf2_add_field): Fix new_field->accessibility for
3352         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3353
3354 2011-03-21  Ulrich Weigand  <[email protected]>
3355
3356         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3357         encountering a load via a non-SP register.
3358
3359 2011-03-21  Ulrich Weigand  <[email protected]>
3360
3361         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3362         field in returned unwinder.
3363
3364 2012-03-21  Jan Kratochvil  <[email protected]>
3365
3366         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3367
3368 2012-03-21  Joel Brobecker  <[email protected]>
3369
3370         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3371         of xmalloc.
3372
3373 2012-03-18  Pedro Alves  <[email protected]>
3374
3375         * frame.c (frame_unwind_register): Throw an error if unwinding the
3376         register failed.
3377         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3378         an unwind stop reason.
3379         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3380         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3381         UNWIND_UNAVAILABLE>: New.
3382         * inline-frame.c (inline_frame_unwind): Install
3383         default_frame_unwind_stop_reason.
3384         * frame-unwind.c: Include "exceptions.h".
3385         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3386         (default_frame_unwind_stop_reason): New.
3387         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3388         (default_frame_unwind_stop_reason): Declare.
3389         (struct frame_unwind) <stop_reason>: New function pointer.
3390
3391         * dummy-frame.c: Install default_frame_unwind_stop_reason.
3392         * dwarf2-frame.c: Include exceptions.h.
3393         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3394         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3395         computing the CFA.  If such an error was thrown, set
3396         unavailable_retaddr.
3397         (dwarf2_frame_unwind_stop_reason): New.
3398         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3399         unavailable.
3400         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3401         (dwarf2_signal_frame_unwind): Ditto.
3402
3403         * amd64-tdep.c: Include "exceptions.h".
3404         (struct amd64_frame_cache): New field "base_p".
3405         (amd64_init_frame_cache): Clear it.
3406         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3407         Avoid reading registers with functions that throw if the register
3408         is not necessary to compute the frame base.
3409         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3410         swallowing NOT_AVAILABLE_ERROR.
3411         (amd64_frame_unwind_stop_reason): New.
3412         (amd64_frame_this_id): Don't build a frame id if the frame base
3413         was unavailable.
3414         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3415         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3416         base_p if the frame base was computable.
3417         (amd64_sigtramp_frame_unwind_stop_reason): New.
3418         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3419         frame base was unavailable.
3420         (amd64_sigtramp_frame_unwind): Install
3421         amd64_sigtramp_frame_unwind_stop_reason.
3422         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3423         base_p if the frame base was computable.
3424         (amd64_epilogue_frame_unwind_stop_reason): New.
3425         (amd64_epilogue_frame_this_id): Don't build a frame id if the
3426         frame base was unavailable.
3427         (amd64_epilogue_frame_unwind): Install
3428         amd64_epilogue_frame_unwind_stop_reason.
3429         * i386-tdep.c: Include "exceptions.h".
3430         (struct i386_frame_cache): New field "base_p".
3431         (i386_init_frame_cache): Clear it.
3432         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3433         Avoid reading registers with functions that throw if the register
3434         is not necessary to compute the frame base.
3435         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3436         swallowing NOT_AVAILABLE_ERROR.
3437         (i386_frame_unwind_stop_reason): New.
3438         (i386_frame_this_id): Don't build a frame id if the frame base was
3439         unavailable.
3440         (i386_frame_prev_register): Handle unavailable SP.
3441         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3442         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3443         base_p if the frame base was computable.
3444         (i386_epilogue_frame_unwind_stop_reason): New.
3445         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3446         base was unavailable.
3447         (i386_epilogue_frame_unwind): Install
3448         i386_epilogue_frame_unwind_stop_reason.
3449         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3450         base_p if the frame base was computable.
3451         (i386_sigtramp_frame_unwind_stop_reason): New.
3452         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3453         base was unavailable.
3454         (i386_sigtramp_frame_unwind): Install
3455         i386_sigtramp_frame_unwind_stop_reason.
3456         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3457         type's size, not the register's.
3458         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3459
3460         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3461         default_frame_unwind_stop_reason.
3462         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3463         (alpha_heuristic_frame_unwind): Ditto.
3464         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3465         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3466         * avr-tdep.c (avr_frame_unwind): Ditto.
3467         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3468         Ditto.
3469         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3470         * frv-tdep.c (frv_frame_unwind): Ditto.
3471         * h8300-tdep.c (h8300_frame_unwind): Ditto.
3472         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3473         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3474         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3475         (hppa_stub_frame_unwind): Ditto.
3476         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3477         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3478         (ia64_libunwind_frame_unwind)
3479         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3480         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3481         * lm32-tdep.c (lm32_frame_unwind): Ditto.
3482         * m32c-tdep.c (m32c_unwind): Ditto.
3483         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3484         * m32r-tdep.c (m32r_frame_unwind): Ditto.
3485         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3486         * m68k-tdep.c (m68k_frame_unwind): Ditto.
3487         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3488         * m88k-tdep.c (m88k_frame_unwind): Ditto.
3489         * mep-tdep.c (mep_frame_unwind): Ditto.
3490         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3491         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3492         (mips_stub_frame_unwind): Ditto.
3493         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3494         * moxie-tdep.c (moxie_frame_unwind): Ditto.
3495         * mt-tdep.c (mt_frame_unwind): Ditto.
3496         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3497         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3498         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3499         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3500         (s390_sigtramp_frame_unwind): Ditto.
3501         * score-tdep.c (score_prologue_unwind): Ditto.
3502         * sh-tdep.c (sh_frame_unwind): Ditto.
3503         * sh64-tdep.c (sh64_frame_unwind): Ditto.
3504         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3505         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3506         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3507         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3508         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3509         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3510         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3511         (sparc64obsd_trapframe_unwind): Ditto.
3512         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3513         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3514         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3515         * v850-tdep.c (v850_frame_unwind): Ditto.
3516         * vax-tdep.c (vax_frame_unwind): Ditto.
3517         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3518         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3519         * xtensa-tdep.c (xtensa_unwind): Ditto.
3520
3521 2011-03-18  Pedro Alves  <[email protected]>
3522
3523         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3524         there's always a frame.  Use get_frame_pc_if_available instead of
3525         get_frame_pc, and if there's no PC available, don't look up a
3526         symtab.
3527
3528 2011-03-18  Pedro Alves  <[email protected]>
3529
3530         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3531         unavailable PC.
3532
3533 2011-03-18  Pedro Alves  <[email protected]>
3534
3535         * tracepoint.c (set_traceframe_context): Handle unavailable PC
3536         gracefully.
3537
3538 2011-03-18  Pedro Alves  <[email protected]>
3539
3540         * frame.h (frame_unwind_caller_pc_if_available): Declare.
3541         * frame.c (frame_unwind_caller_pc_if_available): New.
3542         * stack.c (frame_info): Handle unavailable PC.
3543
3544 2011-03-18  Pedro Alves  <[email protected]>
3545
3546         * frame.c (frame_unwind_pc): Rename to ...
3547         (frame_unwind_pc_if_available): ... this.  New `pc' output
3548         parameter.  Change return type to int.  Gracefully handle
3549         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
3550         happened, or 1 otherwise.
3551         (frame_unwind_pc): Reimplement on top of
3552         frame_unwind_pc_if_available.
3553         (get_frame_func): Rename to ...
3554         (get_frame_func_if_available): New `pc' output parameter.  Change
3555         return type to int.  Gracefully handle the PC not being available.
3556         (get_frame_func): Reimplement on top of
3557         get_frame_func_if_available.
3558         (select_frame): Handle the PC being unavailable.
3559         (get_prev_frame): Handle the PC being unavailable.
3560         (get_frame_pc_if_available): New.
3561         (get_frame_address_in_block_if_available): New.
3562         (find_frame_sal): Handle the frame PC not being available.
3563         * frame.h (get_frame_pc_if_available): Declare.
3564         (get_frame_address_in_block_if_available): Declare.
3565         (get_frame_func_if_available): Declare.
3566         * stack.c (print_frame_info): Handle the PC being unavailable.
3567         (find_frame_funname): Ditto.
3568         (print_frame): Handle the PC being unavailable.
3569         (get_frame_language): Ditto.
3570         * blockframe.c (get_frame_block): Ditto.
3571         * macroscope.c (default_macro_scope): Ditto.
3572         * tui/tui-stack.c (tui_show_frame_info): Ditto.
3573
3574 2011-03-18  Pedro Alves  <[email protected]>
3575
3576         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3577         NOT_AVAILABLE_ERROR when evaluating the location expression.
3578
3579 2011-03-18  Pedro Alves  <[email protected]>
3580
3581         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3582         returning that the register piece is unavailable/optimized out.
3583         (write_pieced_value): Handle get_frame_register_bytes returning
3584         that the register piece is unavailable/optimized out when doing a
3585         read-modify write of a bitfield.
3586         * findvar.c (value_from_register): Handle get_frame_register_bytes
3587         returning that the register piece is unavailable/optimized out.
3588         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3589         and `unavailablep'.  Throw error on bad debug info.  Use
3590         frame_register instead of frame_register_read, to fill in the new
3591         arguments.
3592         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3593         and `unavailablep'.
3594         * valops.c: (value_assign): Adjust, and handle
3595         get_frame_register_bytes failing.
3596         * spu-tdep.c: Include exceptions.h.
3597         (spu_software_single_step): Adjust, and handle
3598         get_frame_register_bytes failing.
3599         (spu_get_longjmp_target): Ditto.
3600         * gdbarch.sh (register_to_value): Change to return int.  New
3601         parameters `optimizedp' and `unavailablep'.
3602         * gdbarch.h, gdbarch.c: Regenerate.
3603         * i386-tdep.c (i386_register_to_value): Adjust to new
3604         gdbarch_register_to_value interface.
3605         * i387-tdep.c (i387_register_to_value): Ditto.
3606         * i387-tdep.h (i387_register_to_value): Ditto.
3607         * alpha-tdep.c (alpha_register_to_value): Ditto.
3608         * ia64-tdep.c (ia64_register_to_value): Ditto.
3609         * m68k-tdep.c (m68k_register_to_value): Ditto.
3610         * mips-tdep.c (mips_register_to_value): Ditto.
3611         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3612
3613 2011-03-18  Pedro Alves  <[email protected]>
3614
3615         * findvar.c (value_of_register): Mark the value as unavailable, if
3616         the register is unavailable.
3617         * frame.h (frame_register_unwind): New `unavailablep' parameter.
3618         (frame_register): New `unavailablep' parameter.
3619         (frame_register_read): Update comment.
3620         * frame.c (frame_register_unwind): New `unavailablep' parameter.
3621         Set it if the register is unavailable.  If the register is
3622         unavailable, clear the output buffer.
3623         (frame_register): New `unavailablep' parameter.  Pass it down.
3624         (frame_unwind_register): Adjust.
3625         (put_frame_register): Adjust.
3626         (frame_register_read): Adjust.  Also return false if the register
3627         is not available.
3628         (frame_register_unwind_location): Adjust.
3629         * sentinel-frame.c (sentinel_frame_prev_register): If the register
3630         is unavailable, mark the value accordingly.
3631         * stack.c (frame_info): Handle unavailable registers.
3632
3633 2011-03-18  Pedro Alves  <[email protected]>
3634
3635         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3636         simplify, using regcache_cooked_read.
3637
3638 2011-03-18  Pedro Alves  <[email protected]>
3639
3640         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3641         (regcache_raw_read_unsigned, regcache_raw_read_signed)
3642         (regcache_raw_read_unsigned, regcache_raw_read_part)
3643         (regcache_cooked_read, regcache_cooked_read_signed)
3644         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3645         (regcache_cooked_read_ftype): Change return to enum
3646         register_status.
3647         * regcache.c: Include exceptions.h
3648         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3649         (do_cooked_read): Change return to enum register_status.  Always
3650         forward to regcache_cooked_read.
3651         (regcache_raw_read): Change return to enum register_status.  If
3652         the register is not REG_VALID, memset the buffer.  Return the
3653         register's status.
3654         (regcache_raw_read_signed): Handle non-REG_VALID registers and
3655         return the register's status.
3656         (regcache_raw_read_unsigned): Ditto.
3657         (regcache_cooked_read): Change return to enum register_status.
3658         Assert that with read-only regcaches, the register's status must
3659         be known.  If the regcache is read-only, and the register is not
3660         REG_VALID, memset the buffer.  Return the register's status.
3661         (regcache_cooked_read_signed): Change return to enum
3662         register_status.  Handle non-REG_VALID registers and return the
3663         register's status.
3664         (regcache_cooked_read_unsigned): Change return to enum
3665         register_status.  Handle non-REG_VALID registers and return the
3666         register's status.
3667         (regcache_xfer_part, regcache_raw_read_part)
3668         (regcache_cooked_read_part): Change return to enum
3669         register_status.  Return the register's status.
3670         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3671         unavailable.
3672         (regcache_dump): Handle unavailable cooked registers.
3673         * frame.c (do_frame_register_read): Adjust interface to match
3674         regcache_cooked_read_ftype.
3675         * gdbarch.sh (pseudo_register_read): Change return to enum
3676         register_status.
3677         * gdbarch.h, gdbarch.c: Regenerate.
3678
3679         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3680         register_status.
3681         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3682         register_status.  If reading a raw register indicates the raw
3683         register is not valid, return the raw register's status,
3684         otherwise, return REG_VALID.
3685         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3686         register_status.  Handle non-REG_VALID raw registers and return
3687         the register's status.
3688         * arm-tdep.c (arm_neon_quad_read)
3689         (arm_pseudo_read): Change return to enum register_status.  Handle
3690         non-REG_VALID raw registers and return the register's status.
3691         * avr-tdep.c (avr_pseudo_register_read): Ditto.
3692         * frv-tdep.c (frv_pseudo_register_read): Ditto.
3693         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3694         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3695         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3696         register_status.
3697         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3698         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3699         (m32c_part_write, m32c_cat_read, m32c_cat_write)
3700         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3701         (m32c_pseudo_register_read): Change return to enum
3702         register_status.  Adjust.
3703         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3704         enum register_status.  Return the register's status.
3705         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3706         register_status.  Return the register's status.
3707         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3708         * mips-tdep.c (mips_pseudo_register_read): Ditto.
3709         * mt-tdep.c (mt_pseudo_register_read): Ditto.
3710         * rs6000-tdep.c (move_ev_register_func): New typedef.
3711         (e500_move_ev_register): Use it.  Change return to enum
3712         register_status.  Return the register's status.
3713         (do_regcache_raw_read): New function.
3714         (do_regcache_raw_write): New function.
3715         (e500_pseudo_register_read): Change return to enum
3716         register_status.  Return the register's status.  Use
3717         do_regcache_raw_read.
3718         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
3719         (dfp_pseudo_register_read): Change return to enum register_status.
3720         Return the register's status.
3721         (vsx_pseudo_register_read): Ditto.
3722         (efpr_pseudo_register_read): Ditto.
3723         (rs6000_pseudo_register_read): Ditto.
3724         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3725         register_status.  Return the register's status.
3726         * sh64-tdep.c (pseudo_register_read_portions): New function.
3727         (sh64_pseudo_register_read): Change return to enum
3728         register_status.  Use pseudo_register_read_portions.  Return the
3729         register's status.
3730         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3731         register_status.  Return the register's status.
3732         * sh-tdep.c (pseudo_register_read_portions): New function.
3733         (sh_pseudo_register_read): Change return to enum register_status.
3734         Use pseudo_register_read_portions.  Return the register's status.
3735         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3736         enum register_status.  Return the register's status.
3737         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3738         * spu-tdep.c (spu_pseudo_register_read_spu)
3739         (spu_pseudo_register_read): Ditto.
3740         * xtensa-tdep.c (xtensa_register_read_masked)
3741         (xtensa_pseudo_register_read): Ditto.
3742         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3743
3744 2011-03-18  Pierre Muller  <[email protected]>
3745
3746         * python/py-value.c (valpy_getitem): Fix formatting of error function
3747         call.
3748
3749 2011-03-18  Pierre Muller  <[email protected]>
3750
3751         ARI fixes: Add missing internationalization markups throughout
3752         C source files.
3753         * darwin-nat-info.c: Ditto.
3754         * record.c: Ditto.
3755         * remote.c: Ditto.
3756         * mi/mi-main.c: Ditto.
3757
3758 2011-03-18  Pierre Muller  <[email protected]>
3759
3760         ARI fixes: Add missing internationalization markups throughout
3761         yacc files.
3762         * c-exp.y: Ditto.
3763         * cp-name-parser.y: Ditto.
3764         * f-exp.y: Ditto.
3765         * m2-exp.y: Ditto.
3766         * objc-exp.y: Ditto.
3767         * p-exp.y: Ditto.
3768
3769 2011-03-18  Pierre Muller  <[email protected]>
3770
3771         ARI fixes: Messages should have no trailing new lines.
3772         * darwin-nat.c (mach_check_error): Remove trailing new line from
3773         warning function call message.
3774         * record.c (bfdcore_read): Idem for error call.
3775
3776 2011-03-18  Pierre Muller  <[email protected]>
3777
3778         * common/signals.c (target_signal_from_host): Add _ markup to error
3779         function call message.
3780         (target_signal_to_host): Add _ markup and remove trailing new line
3781         from warning call message.
3782         (target_signal_from_command): Add _ markup to error function call
3783         message.
3784
3785 2011-03-18  Phil Muldoon  <[email protected]>
3786
3787         PR python/12149
3788
3789         * python/python.c (gdbpy_write): Accept a stream argument and
3790         operate to the appropriate stream.
3791         (gdbpy_flush): Likewise.
3792         (_initialize_python): Add stream constants.
3793         (finish_python_initialization): Add GdbOutputErrorFile class.
3794
3795 2011-03-18  Kwok Cheung Yeung  <[email protected]>
3796
3797         * MAINTAINERS: Add myself as a write-after-approval maintainer.
3798
3799 2011-03-18  Kwok Cheung Yeung  <[email protected]>
3800
3801         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3802         to store_signed_integer.  Add debug message when relocating CALL
3803         instructions.  Fix formatting of debug message.
3804         * i386-tdep.c (i386_relocate_instruction): Ditto.
3805
3806 2011-03-17  Joel Brobecker  <[email protected]>
3807
3808         * target.h (struct target_ops): Remove to_lookup_symbol field.
3809         (target_lookup_symbol): Delete macro.
3810         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3811         (update_current_target, setup_target_debug): Remove handling
3812         of to_lookup_symbol target_ops field.
3813         * ada-tasks.c (get_known_tasks_addr): Remove use of
3814         target_lookup_symbol.
3815         * coffread.c (coff_symtab_read): Likewise.
3816         * dbxread.c (read_dbx_symtab): Ditto.
3817
3818 2011-03-17  Joel Brobecker  <[email protected]>
3819
3820         PR gdb/12116:
3821         * configure.ac: Add getthrds declaration check.
3822         * configure, config.in: Regenerate.
3823         * aix-thread.c (getthrds): Declare only if not already declared
3824         in procinfo.h.  More declaration out of get_signaled_thread to
3825         global scope.
3826
3827 2011-03-17  Phil Muldoon  <[email protected]>
3828
3829         * python/py-symtab.c: Populate symtab_object_methods,
3830         sal_object_methods.
3831         (stpy_is_valid): New function.
3832         (salpy_is_valid): Ditto.
3833         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
3834         (sympy_is_valid): New function.
3835         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
3836         (objfpy_is_valid): New function.
3837         * python/py-inferior.c: Populate inferior_object_methods.
3838         (infpy_is_valid): New function.
3839         * python/py-infthread.c: Populate thread_object_methods.
3840         (thpy_is_valid): New function.
3841         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
3842         block_iterator_object_methods.  Populate.
3843         (blpy_is_valid): New function.
3844         (blpy_iter_is_valid): Ditto.
3845
3846 2011-03-16  Keith Seitz  <[email protected]>
3847
3848         * linespec.c (find_methods): Canonicalize NAME before looking
3849         up the symbol.
3850         (name_end): New function.
3851         (keep_name_info): New function.
3852         (decode_line_1): Use keep_name_info.
3853         (decode_compound): Likewise.
3854         * cli/cli-utils.h (remove_trailing_whitespace): New function.
3855         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3856
3857         PR c++/12273
3858         * linespec.c (locate_first_half): Keep overload information, too.
3859         (decode_compound): Use a string to represent break characters
3860         to escape the loop.
3861         If P points to a break character, do not increment it.
3862         For C++ and Java, keep overload information and relevant keywords.
3863         If we cannot find a symbol, search the minimal symbols.
3864
3865         PR c++/11734
3866         * linespec.c (decode_compound): Rename SAVED_ARG to
3867         THE_REAL_SAVED_ARG.
3868         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3869         single-quotes.
3870         Pass a valid block to lookup_symbol.
3871         (lookup_prefix_sym): Likewise.
3872         (find_method): Construct search name based on SYM_CLASS instead
3873         of SAVED_ARG.
3874         * psymtab.c (lookup_partial_symbol): Add language parameter.
3875         (lookup_symbol_aux_psymtabs): Likewise.
3876         Don't assume that the psymtab we found was the right one. Search
3877         for the desired symbol in the symtab to be certain.
3878         (psymtab_search_name): New function.
3879         (lookup_partial_symbol): Use psymtab_search_name.
3880         Add language parameter.
3881         (read_symtabs_for_function): Add language parameter and pass to
3882         lookup_partial_symbol.
3883         (find_symbol_file_from_partial): Likewise.
3884
3885 2011-03-16  Paul Pluzhnikov  <[email protected]>
3886
3887         PR gdb/12528
3888         * dwarf2read.c (noop_record_line): New function.
3889         (dwarf_decode_lines): Ignore line tables for GCd functions.
3890
3891 2011-03-16  Pierre Muller  <[email protected]>
3892
3893         Fix ARI warnings about new lines at the end of messages, which
3894         are unneeded as there is a new line added at the end of the message
3895         automatically.
3896         * darwin-nat.c (darwin_stop_inferior): Ditto.
3897         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3898         * dfp.c (decimal_to_number): Ditto.
3899         * exec.c (print_section_info): Ditto.
3900         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3901         * osdata.c (get_osdata): Ditto.
3902         * record.c (bfdcore_write): Ditto.
3903         * remote-mips.c (mips_readchar): Ditto.
3904         * remote.c (read_ptid): Ditto.
3905         * ser-mingw.c (ser_windows_raw): Ditto.
3906         * tracepoint.c (add_local_symbols): Ditto.
3907         * windows-nat.c (fake_create_process): Ditto.
3908
3909 2011-03-16  Tom Tromey  <[email protected]>
3910
3911         * tracepoint.c (stop_tracing): Don't declare.
3912         * event-top.c (after_char_processing_hook): Add `(void)'.
3913
3914 2011-03-16  Phil Muldoon  <[email protected]>
3915
3916         * NEWS: Add Parameter sub-classing description.
3917
3918 2011-03-16  Kai Tietz  <[email protected]>
3919
3920         * MAINTAINERS: Update my e-mail address.
3921
3922 2011-03-15  Andreas Tobler  <[email protected]>
3923
3924         * MAINTAINERS: Add myself for write after approval privileges.
3925
3926 2011-03-15  Michael Snyder  <[email protected]>
3927
3928         * frame.c (find_frame_sal): Assert sym is not null.
3929
3930         * dbxread.c (process_one_symbol): Assert 'name' is not null.
3931
3932         * objc-lang.c (selectors_info): Check strchr for null result.
3933
3934         * stabsread.c (define_symbol): Guard against bad stabstring input.
3935
3936 2011-03-15  Pierre Muller  <[email protected]>
3937
3938         Remove trailing spaces and tabulations from pascal language
3939         support sources.
3940         p-exp.y: Ditto.
3941         p-lang.c: Ditto.
3942         p-lang.h: Ditto.
3943         p-valprint.c: Ditto.
3944
3945 2011-03-15  Jan Kratochvil  <[email protected]>
3946
3947         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3948         than LOW.  Comment it.
3949         (read_partial_die): Call complaint for inappropriate zero LOWPC or
3950         HIGHPC not strictly higher than LOWPC.
3951
3952 2011-03-15  Pierre Muller  <[email protected]>
3953
3954         Fix formatting of function declarations returning a pointer in
3955         previous commit.
3956         * varobj.c (varobj_add_child): Ditto.
3957         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3958         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3959
3960 2011-03-15  Ulrich Weigand  <[email protected]>
3961
3962         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3963         for the "generic" vector ABI used with GCC 4.3 and later.
3964         (ppc64_sysv_abi_return_value): Likewise.
3965
3966 2011-03-15  Ulrich Weigand  <[email protected]>
3967
3968         * infcall.c (call_function_by_hand): Function return value is
3969         always a non_lval, even when using struct_return.
3970
3971 2011-03-15  Pedro Alves  <[email protected]>
3972
3973         * printcmd.c (ALL_DISPLAYS_SAFE): New.
3974         (map_display_numbers): New.
3975         (do_delete_display): New.
3976         (undisplay_command): Use map_display_numbers.
3977         (do_enable_disable_display): New.
3978         (enable_disable_display_command): New function.
3979         (enable_display): Delete.
3980         (enable_display_command): New.
3981         (disable_display_command): Reimplement.
3982         (_initialize_printcmd): Adjust "enable display" command to use
3983         `enable_display_command' as callback.
3984
3985 2011-03-14  Phil Muldoon  <[email protected]>
3986
3987         * NEWS: Add Python breakpoint 'stop' operation.
3988
3989 2011-03-14  Phil Muldoon  <[email protected]>
3990
3991         * NEWS: Delete duplicate entry. Fix typo.
3992
3993 2011-03-14  Pierre Muller  <[email protected]>
3994
3995         Fix ARI warning about function names in first column.
3996         Put prototype declaration on same line as return type.
3997         * objc-exp.y: Ditto.
3998         * p-exp.y: Ditto.
3999         * python/py-stopevent.h: Ditto.
4000         For long function names, split parameters to
4001         allow function name on same line as return type.
4002         * solib-pa64.c: Ditto.
4003         * varobj.c: Ditto.
4004         * varobj.h: Ditto.
4005         For long function declaration, use single line.
4006         * hppa-tdep.h: Ditto.
4007         * inferior.h: Ditto.
4008
4009 2011-03-14  Phil Muldoon  <[email protected]>
4010
4011         * python/python.h: Declare gdbpy_should_stop and
4012         gdbpy_breakpoint_has_py_cond.
4013         * python/python.c: Add python.h to includes.  Remove python.h from
4014         HAVE_PYTHON definition
4015         (gdbpy_should_stop): New dummy function.
4016         (gdbpy_breakpoint_has_py_cond): New dummy function.
4017         * python/py-breakpoint.c (bppy_init): Rewrite to allow
4018         sub-classing capabilities.
4019         (gdbpy_should_stop): New function.
4020         (gdbpy_breakpoint_has_py_cond): New function.
4021         (local_setattro): New function.
4022         * breakpoint.c (condition_command): Add check for Python 'stop'
4023         operation.
4024         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
4025         operation function as part of stop/continue tests.
4026
4027 2011-03-14  Tom Tromey  <[email protected]>
4028
4029         PR gdb/12576:
4030         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4031         (needs_frame_dwarf_call): Likewise.
4032
4033 2011-03-14  Pierre Muller  <[email protected]>
4034
4035         Fix ARI warning about functions without parameters that do not
4036         use (void).
4037         * breakpoint.c (all_tracepoints): Replace () by (void).
4038         * f-exp.y (match_string_literal): Ditto.
4039         (yylex): Ditto.
4040         * m2-exp.y (yylex): Ditto.
4041         * mep-tdep.c (current_me_module): Ditto.
4042         (current_options): Ditto.
4043         (current_cop_data_bus_width): Ditto.
4044         (current_cr_names): Ditto.
4045         (current_cr_is_float): Ditto.
4046         (current_ccr_names): Ditto.
4047         * objc-exp.y (yylex): Ditto.
4048         * p-exp.y (yylex): Ditto.
4049         * remote.c (send_interrupt_sequence): Ditto.
4050         * tracepoint.c (current_trace_status): Ditto.
4051         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4052         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4053
4054 2011-03-11  Michael Snyder  <[email protected]>
4055
4056         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4057         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4058         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4059         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4060         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4061
4062         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4063         (delete_async_event_handler): Ditto.
4064
4065         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4066
4067         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4068
4069         * top.c (set_verbose): Assert showcmd was found.
4070
4071 2011-03-11  Maxim Grigoriev  <[email protected]>
4072
4073         * xtensa-tdep.c (warning_once): Correct style issues.
4074
4075 2011-03-11  Yao Qi  <[email protected]>
4076
4077         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4078
4079 2011-03-11  Andreas Schwab  <[email protected]>
4080
4081         * common/aclocal.m4: Remove.
4082
4083 2011-03-10  Maxim Grigoriev  <[email protected]>
4084
4085         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4086         (xtensa_write_register, xtensa_read_register): Likewise.
4087         (xtensa_hextochar): Removed.
4088         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4089
4090 2011-03-10  Maxim Grigoriev  <[email protected]>
4091
4092         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4093         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
4094         (xtensa_alloc_frame_cache): Add initialization for new fields.
4095         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4096         (warning_once): New function.
4097         (xtensa_insn_kind): New item c0opc_and.
4098         (call0_classify_opcode): Add the case for AND instruction.
4099         (call0_track_op): Change arguments.  New local variable litbase.
4100         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
4101         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4102         in the prologue.
4103         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4104         (call0_analyze_prologue): Update the comments.  Change arguments.
4105         Add the variety of updates to handle extended prologues, which now can
4106         conduct dynamic stack adjustments.
4107         (call0_frame_cache): Likewise.
4108         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4109         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4110
4111 2011-03-10  Michael Snyder  <[email protected]>
4112
4113         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4114         (cmd_qtframe): Ditto.
4115         (cmd_qtbuffer): Ditto.
4116         (cmd_bigqtbuffer): Ditto.
4117
4118 2011-03-10  Tom Tromey  <[email protected]>
4119
4120         * tracepoint.c (trace_actions_command): Update.
4121         * thread.c (thread_apply_command): Update.
4122         * reverse.c (delete_bookmark_command): Update.
4123         (bookmarks_info): Update.
4124         * printcmd.c (undisplay_command): Update.
4125         * memattr.c (mem_enable_command): Update.
4126         (mem_disable_command): Update.
4127         (mem_delete_command): Update.
4128         * inferior.c (detach_inferior_command): Update.
4129         (kill_inferior_command): Update.
4130         (remove_inferior_command): Update.
4131         * cli/cli-utils.h (struct get_number_or_range_state): New.
4132         (init_number_or_range): Declare.
4133         (get_number_or_range): Update.
4134         * cli/cli-utils.c (init_number_or_range): New function.
4135         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
4136         static variables.
4137         (number_is_in_list): Update.
4138         * breakpoint.h (get_tracepoint_by_number): Update.
4139         * breakpoint.c (map_breakpoint_numbers): Update for change to
4140         get_number_or_range.
4141         (find_location_by_number): Use get_number, not
4142         get_number_or_range.
4143         (trace_pass_set_count): New function.
4144         (trace_pass_command): Update for change to get_number_or_range.
4145         Rework loop logic.
4146         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4147         'state' parameter.
4148
4149 2011-03-10  Phil Muldoon  <[email protected]>
4150
4151         * python/py-param.c (add_setshow_generic): Add set/show callback
4152         parameters.  Register Python object context.
4153         (get_show_value): New function.
4154         (get_set_value): New function.
4155         (call_doc_function): New function.
4156         (get_doc_string): Move behind get_show_value/get_set_value.
4157
4158 2011-03-10  Andreas Tobler  <[email protected]>
4159
4160         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4161
4162 2011-03-09  Maxim Grigoriev  <[email protected]>
4163
4164         * xtensa-tdep.c (xtensa_read_register): Add comment.
4165         (xtensa_write_register): Likewise.
4166         (xtensa_hextochar): Add comment and update to match coding conventions.
4167         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4168         (execute_l32e, execute_s32e, execute_code): Update comments.
4169         (xtensa_exception_handler_t): Update to match coding conventions.
4170         (xtensa_insn_kind): Likewise.
4171
4172 2011-03-09  Michael Snyder  <[email protected]>
4173
4174         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4175
4176 2011-03-09  Pedro Alves  <[email protected]>
4177
4178         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4179
4180 2011-03-09  Tom Tromey  <[email protected]>
4181
4182         * thread.c (restore_selected_frame): Handle frame_level == -1.
4183         (make_cleanup_restore_current_thread): Use
4184         get_selected_frame_if_set.
4185         * frame.h (get_selected_frame_if_set): Declare.
4186         * frame.c (get_selected_frame_if_set): New function.
4187
4188 2011-03-09  Pedro Alves  <[email protected]>
4189
4190         * cli/cli-cmds.c (shell_escape): Use lbasename.
4191         * coffread.c (coff_start_symtab): Constify parameter.
4192         (complete_symtab): Constify `name' parameter.
4193         (coff_symtab_read): Constify `filestring' local.
4194         (coff_getfilename): Constify return and `result' local.
4195         Use lbasename.
4196         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4197         * linux-fork.c (info_checkpoints_command): Use lbasename.
4198         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4199         * minsyms.c (lookup_minimal_symbol): Use lbasename.
4200         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4201         * procfs.c (procfs_make_note_section): Use lbasename.
4202         * tui/tui-io.c (printable_part): Constity return and parameter.
4203         Use lbasename.
4204         (print_filename): Constify parameters, and local `s'.
4205         (tui_rl_display_match_list): Constify local `temp'.
4206
4207 2011-03-09  Jan Kratochvil  <[email protected]>
4208
4209         Revert:
4210         2011-03-08  Jan Kratochvil  <[email protected]>
4211         Fix DWARF-3+ DW_AT_accessibility default assumption.
4212         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4213         cu->header.version >= 3.
4214
4215 2011-03-09  Yao Qi  <[email protected]>
4216
4217         * common/Makefile.in: Remove.
4218         * common/configure: Remove.
4219         * common/configure.ac: Remove.
4220
4221 2011-03-09  Yao Qi  <[email protected]>
4222
4223         Revert:
4224         2011-02-11  Yao Qi  <[email protected]>
4225
4226         * common/Makefile.in: Add copyright header.
4227
4228         2011-02-11  Yao Qi  <[email protected]>
4229
4230         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
4231         libcommon.a.
4232         * configure.ac: Add common to sub dir.
4233         * configure: Regenerate.
4234
4235 2011-03-08  Maxim Grigoriev  <[email protected]>
4236
4237         * xtensa-tdep.c (call0_ret): New function.
4238         (xtensa_skip_prologue): Speed up analysis.
4239
4240 2011-03-08  Maxim Grigoriev  <[email protected]>
4241
4242         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4243         while executing MI command -data-list-changed-registers.
4244
4245 2011-03-08  Maxim Grigoriev  <[email protected]>
4246
4247         * xtensa-tdep.c (xtensa_read_register): New function.
4248         (xtensa_write_register): New function.
4249         (xtensa_find_register_by_name): New function.
4250         (xtensa_windowed_frame_cache): Update comments in type description.
4251         (xtensa_frame_cache): Likewise.
4252         (xtensa_window_interrupt_insn): New function.
4253         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4254         (xtensa_insn_kind): Add new instructions.
4255         (rwx_special_register): New function.
4256         (call0_classify_opcode): Add new instructions to the analysis.
4257         (a0_saved, a7_saved, a11_saved): New variables.
4258         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4259         (execute_l32e): New function.
4260         (execute_s32e): New function.
4261         (xtensa_exception_handler_t): New type.
4262         (execute_code): New function.
4263         (xtensa_window_interrupt_frame_cache): New function to conduct frame
4264         analysis for Xtensa Window Exception handlers.
4265
4266 2011-03-08  Maxim Grigoriev  <[email protected]>
4267
4268         * xtensa-tdep.c (TX_PS): New.
4269         (windowing_enabled): Update to count for Call0 ABI.
4270         (xtensa_hextochar): New.
4271         (xtensa_init_reggroups): Make algorithm generic.
4272         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4273
4274 2011-03-08  Maxim Grigoriev  <[email protected]>
4275
4276         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4277
4278 2011-03-08  Michael Snyder  <[email protected]>
4279
4280         * i386-tdep.c (i386_follow_jump): Check return value of
4281         target_read_memory.
4282         (i386_analyze_struct_return): Ditto.
4283         (i386_skip_probe): Ditto.
4284         (i386_match_insn): Ditto.
4285         (i386_skip_noop): Ditto.
4286         (i386_analyze_frame_setup): Ditto.
4287         (i386_analyze_register_saves): Ditto.
4288         (i386_skip_prologue): Ditto.
4289         (i386_skip_main_prologue): Ditto.
4290
4291         * target.c (read_whatever_is_readable): Fix memory leak.
4292
4293         * i386-tdep.c (i386_process_record): Document fall through.
4294
4295 2011-03-08  Jan Kratochvil  <[email protected]>
4296
4297         Fix DWARF-3+ DW_AT_accessibility default assumption.
4298         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4299         cu->header.version >= 3.
4300
4301 2011-03-08  Pedro Alves  <[email protected]>
4302
4303         * remote.c (remote_check_symbols): Skip if the target has no
4304         execution.
4305
4306 2011-03-08  Joel Brobecker  <[email protected]>
4307
4308         * target.c (read_whatever_is_readable): Reformat comment,
4309         with a minor typo fix. Minor reformatting of the code.
4310
4311 2011-03-08  Yao Qi  <[email protected]>
4312
4313         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4314         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4315         Use cached result instead of calling displaced_in_arm_mode again.
4316         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4317         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4318         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4319         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4320         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4321         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4322         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4323         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4324         (cleanup_block_load_pc, copy_block_xfer): Likewise.
4325         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4326         (arm_catch_kernel_helper_return): Likewise.
4327         * gdb/arm-tdep.h : Update function declarations.
4328
4329 2011-03-07  Michael Snyder  <[email protected]>
4330
4331         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4332
4333         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4334
4335         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4336
4337         * elfread.c (elf_symtab_read): Stop memory leak.
4338
4339         * main.c (captured_main): Fix memory leak.
4340
4341 2011-03-07  Andreas Schwab  <[email protected]>
4342
4343         * ada-lang.c (compare_names): Call is_name_suffix with string1
4344         instead of string2.
4345
4346 2011-03-07  Tom Tromey  <[email protected]>
4347
4348         * xcoffread.c (xcoff_sym_fns): Update.
4349         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4350         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4351         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4352         (symbol_file_add_with_addrs_or_offsets): Likewise.
4353         (reread_symbols): Handle OBJF_PSYMTABS_READ.
4354         * somread.c (som_sym_fns): Update.
4355         * psymtab.h (require_partial_symbols): Declare.
4356         * psymtab.c (require_partial_symbols): New function.
4357         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4358         (ALL_OBJFILE_PSYMTABS): Undef.
4359         (ALL_PSYMTABS): Move from psympriv.h.
4360         (lookup_partial_symtab, find_pc_sect_psymtab)
4361         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4362         (find_last_source_symtab_from_partial)
4363         (forget_cached_source_info_partial)
4364         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4365         (expand_partial_symbol_tables, read_psymtabs_with_filename)
4366         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4367         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4368         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4369         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4370         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4371         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4372         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4373         psymtabs.
4374         * mipsread.c (ecoff_sym_fns): Update.
4375         * machoread.c (macho_sym_fns): Update.
4376         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4377         (read_psyms): New function.
4378         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4379         (elf_sym_fns_lazy_psyms): New global.
4380         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4381         dwarf2_build_psymtabs.
4382         * dbxread.c (aout_sym_fns): Update.
4383         * coffread.c (coff_sym_fns): Update.
4384
4385 2011-03-07  Tom Tromey  <[email protected]>
4386
4387         * infrun.c (print_exited_reason): Include inferior id and pid in
4388         message.
4389
4390 2011-03-07  Tom Tromey  <[email protected]>
4391
4392         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4393         parameter.
4394         (target_has_execution_1): Update.
4395         (target_has_execution_current): Declare.
4396         (target_has_execution): Call target_has_execution_current.
4397         (default_child_has_execution): Update.
4398         * target.c (default_child_has_execution): Add 'the_ptid'
4399         parameter.
4400         (target_has_execution_1): Likewise.
4401         (target_has_execution_current): New function.
4402         (add_target): Update.
4403         (init_dummy_target): Update.
4404         * remote-m32r-sdi.c (m32r_has_execution): New function.
4405         (init_m32r_ops): Use it.
4406         * record.c (record_core_has_execution): Now static.  Add
4407         'the_ptid' parameter.
4408         * inferior.c (have_live_inferiors): Don't save current thread.
4409         Use target_has_execution_1.
4410
4411 2011-03-07  Yao Qi  <[email protected]>
4412
4413         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4414
4415 2011-03-07  Joel Brobecker  <[email protected]>
4416
4417         * elfread.c (elf_symtab_read): Minor reformatting.
4418
4419 2011-03-07  Joel Brobecker  <[email protected]>
4420
4421         * objc-lang.c (selectors_info): Minor reformatting.
4422
4423 2011-03-07  Joel Brobecker  <[email protected]>
4424
4425         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4426
4427 2011-03-07  Joel Brobecker  <[email protected]>
4428             Michael Snyder  <[email protected]>
4429
4430         * ada-valprint.c (ada_val_print_array): Move the declaration of
4431         "byte_order" and "elttype" inside the block where these variables
4432         are actually used.  Remove some special handling for the case
4433         where "elttype" and "eltlen" are null.  Replace by a comment
4434         and a couple of assertion checks.
4435
4436 2011-03-05  Michael Snyder  <[email protected]>
4437
4438         * source.c (add_path): Replace semicolon at end of block.
4439         * dwarf2expr.c (execute_stack_op): Ditto.
4440
4441 2011-03-05  Mike Frysinger  <[email protected]>
4442
4443         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4444         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4445         (bfin-*-*): Likewise.
4446
4447 2011-03-05  Michael Snyder  <[email protected]>
4448
4449         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4450         * mdebugread.c (parse_symbol): Ditto.
4451         * parse.c (parse_exp_in_context): Ditto.
4452         * source.c (add_path): Ditto.
4453         * utils.c (gnu_debuglink_crc32): Ditto.
4454         * varobj.c (variable_language): Ditto.
4455
4456         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4457
4458 2011-03-04  Michael Snyder  <[email protected]>
4459
4460         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4461
4462         * symfile.c (simple_overlay_update): Check for null return value
4463         from lookup_minimal_symbol.
4464
4465         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4466
4467 2011-03-04  Thiago Jung Bauermann  <[email protected]>
4468
4469         * eval.c (parse_and_eval_address_1): Remove function.
4470         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4471         instead of parse_and_eval_address_1.
4472         * value.h (parse_and_eval_address_1): Remove prototype.
4473
4474 2011-03-04  Michael Snyder  <[email protected]>
4475
4476         * remote.c (putpkt_binary): Document that case stmt falls through.
4477
4478 2011-03-04  Thiago Jung Bauermann  <[email protected]>
4479
4480         * breakpointc (print_it_typical): Move NULL check from here...
4481         (print_bp_stop_message): ... to here.
4482
4483 2011-03-04  Michael Snyder  <[email protected]>
4484
4485         * breakpoint.c (enable_command): Use break instead of continue,
4486         and fill in a missing break.
4487         (disable_command): Ditto.
4488
4489 2011-03-04  Ulrich Weigand  <[email protected]>
4490
4491         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4492         (terminal_save_ours): Remove misleading comment.
4493         (inflow_inferior_data_cleanup): Free ttystate.
4494         (inflow_inferior_exit): Likewise.
4495         (copy_terminal_info): Copy ttystate.
4496
4497         * serial.c (serial_copy_tty_state): New function.
4498         * serial.h (serial_copy_tty_state): Add prototype.
4499         (struct serial_ops): Add copy_tty_state callback.
4500         * ser-base.c (ser_base_copy_tty_state): New function.
4501         * ser-base.h (ser_base_copy_tty_state): Add prototype.
4502         * ser-go32.c (dos_copy_tty_state): New function.
4503         (dos_ops): Install copy_tty_state callback.
4504         * ser-mingw.c (_initialize_ser_windows): Likewise.
4505         * ser-pipe.c (_initialize_ser_pipe): Likewise.
4506         * ser-unix.c (hardwire_copy_tty_state): New function.
4507         (_initialize_ser_hardwire): Install it.
4508
4509 2011-03-04  Michael Snyder  <[email protected]>
4510
4511         * breakpoint.c (create_breakpoint): Add missing break statement.
4512
4513         Reverting this patch:
4514         * infcall.c (call_function_by_hand): Add break statements for lint.
4515
4516         Reverting this patch:
4517         * cli/cli-script.c (script_from_file): Add break for lint.
4518
4519 2011-03-04  Michael Snyder  <[email protected]>
4520
4521         * solib.c (reload_shared_libraries_1): Close memory leak.
4522
4523 2011-03-03  Tom Tromey  <[email protected]>
4524
4525         PR gdb/12538:
4526         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4527         DW_STRING is NULL.
4528
4529 2011-03-03  Michael Snyder  <[email protected]>
4530
4531         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4532         fields of struct 'st' to zero.
4533
4534         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4535         sal.pspace before calling set_current_source_symtab_and_line.
4536
4537 2011-03-03  Yao Qi  <[email protected]>
4538
4539         * Makefile.in (configure-common): Remove.  Let Makefile
4540         in dir common to rebuild itself.
4541         (common/Makefile): Likewise.
4542
4543 2011-03-03  Joel Brobecker  <[email protected]>
4544
4545         * utils.c (parse_escape): Add i18n markup in error message.
4546
4547 2011-03-03  Yao Qi  <[email protected]>
4548
4549         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4550         ARM_PC_REGNUM.
4551         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4552         (displaced_write_reg, displaced_read_reg): Likewise.
4553         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4554         (cleanup_block_load_pc, copy_block_xfer): Likewise.
4555         (cleanup_branch): Replace magic number 14 and 15 with
4556         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4557
4558 2011-03-02  Michael Snyder  <[email protected]>
4559
4560         * maint.c (maintenance_do_deprecate): No need to check for NULL.
4561
4562         * cli/cli-script.c (script_from_file): Add break for lint.
4563
4564         * mdebugread.c (parse_partial_symbols): Fix indent.
4565
4566         * target-descriptions.c (tdesc_gdb_type): No need to call
4567         xstrdup, callee saves a copy.
4568
4569         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4570
4571         * infcall.c (call_function_by_hand): Add break statements for lint.
4572
4573         * utils.c (parse_escape): Escape the escape char.
4574
4575         * python/py-inferior.c (build_inferior_list): Error out if
4576         PyList_Append fails.
4577         (gdbpy_inferiors): Error out if build_inferior_list fails.
4578
4579         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4580         a function call.
4581
4582         * record.c (record_restore): Move printf to before error return.
4583
4584 2011-03-02  Yao Qi  <[email protected]>
4585
4586         * arm-tdep.h (struct displaced_step_closure): Add two new fields
4587         is_thumb and insn_size.
4588         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4589         on both ARM and Thumb mode.
4590         (arm_process_displaced_insn): Set is_thumb and insn_size.
4591         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4592         (arm_displaced_step_fixup): Likewise.
4593
4594 2011-03-01  Michael Snyder  <[email protected]>
4595
4596         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4597
4598         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4599
4600         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4601
4602         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4603
4604         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4605         with xmalloc.
4606
4607         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4608         which shadows function parameter.
4609
4610         * tracepoint.c (create_tsv_from_upload): Superfluous call
4611         to xstrdup.  Callee already calls xstrdup.
4612
4613         * linespec.c (decode_line_1): Remove unnecessary null check.
4614
4615         * tracepoint.c (scope_info): Fix mem leak, remove underused
4616         variable.
4617
4618         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4619         superfluous null check.
4620
4621         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4622         (value_of_builtin_frame_fp_reg): Ditto.
4623
4624         * event-top.c (display_gdb_prompt): Remove superfluous null check.
4625
4626         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4627         be null.
4628
4629         * linespec.c (decode_line_1): Check for null before dereference.
4630
4631         * reverse.c (record_restore): Move null-check to before pointer
4632         dereference.
4633
4634         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4635
4636         * objc-lang.c (selectors_info): Add explanitory comment.
4637         (classes_info): Ditto.
4638
4639 2011-03-01  Ulrich Weigand  <[email protected]>
4640
4641         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4642         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4643         versions of the trampoline.  Handle Thumb vs. ARM addresses.
4644         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4645         (arm_linux_init_abi): Install it.
4646         * arm-tdep.c (arm_psr_thumb_bit): Make global.
4647         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4648
4649 2011-02-28  Michael Snyder  <[email protected]>
4650
4651         * ui-out.c (ui_out_field_core_addr): Make local char buffer
4652         a little bigger, to avoid possibility of an overflow.
4653
4654         * breakpoint.c (breakpoint_adjustment_warning): Make local char
4655         buffers a little bigger, to avoid possibility of an overflow.
4656
4657         * coffread.c (coff_getfilename): Add check to avoid overflow.
4658
4659         * objc-lang.c (selectors_info): Add a small safety margin to
4660         avoid overflow.
4661         (classes_info): Error out on too long REGEXP.
4662
4663         * infrun.c (handle_inferior_event): Remove unused function call.
4664
4665         * fork-child.c (fork_inferior): Remove ifdef'd code and
4666         unused variable.
4667
4668         * linux-thread-db.c (attach_thread): Discard unused value.
4669
4670         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4671
4672         * remote.c (remote_get_noisy_reply): Discard unused value.
4673         (remote_vcont_resume): Ditto.
4674         (remote_stop_ns): Ditto.
4675
4676         * linespec.c (decode_objc): Delete unused variable.
4677
4678         * tui/tui-regs.c (tui_register_format): Delete unused variable.
4679
4680         * dwarf2read.c (add_partial_symbol): Discard unused values.
4681         (read_base_type): Delete unused variable.
4682
4683         * dbxread.c (read_dbx_symtab): Discard unused value.
4684
4685         * eval.c (evaluate_subexp_standard): Delete unused variable,
4686         and discard unused values.
4687
4688         * infcmd.c (_initialize_infcmd): Discard unused values.
4689
4690         * stabsread.c (rs6000_builtin_type): Missing break statement.
4691
4692         * dbxread.c (process_one_symbol): Discard unused value.
4693
4694         * coffread.c (coff_end_symtab): Delete unused variable.
4695
4696         * dwarf2read.c (dw2_get_file_names): Discard unused value.
4697         (dwarf2_add_typedef): Delete unused variable.
4698         (read_namespace): Ditto.
4699         (dwarf_decode_macros): Ditto.
4700
4701         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4702
4703         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4704
4705         * p-valprint.c (pascal_val_print): Discard unused value.
4706
4707         * utils.c (nquery): Call va_end before return;
4708         (yquery): Ditto.
4709         (query): Ditto.
4710
4711         * proc-service.c (ps_plog): Call va_end before return.
4712
4713 2011-02-28  Tom Tromey  <[email protected]>
4714
4715         * python/python.c (gdbpy_value_cst): New global.
4716         (_initialize_python): Initialize it.
4717         * python/python-internal.h (gdbpy_value_cst): Declare.
4718         * python/py-value.c (convert_value_from_python): Use
4719         gdbpy_value_cst.
4720
4721 2011-02-28  Michael Snyder  <[email protected]>
4722
4723         * python/py-cmd.c (cmdpy_init): Fix memory leak.
4724
4725         * breakpoint.c (catch_syscall_completer): Free malloced list.
4726
4727         * jv-lang.c (java_primitive_type_from_name): Add missing break.
4728
4729         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4730         (lval_func_check_synthetic_pointer): Ditto.
4731         (lval_func_free_closure): Fix use-after-free.
4732
4733 2011-02-28  Tom Tromey  <[email protected]>
4734
4735         * psymtab.c (expand_partial_symbol_tables): Use
4736         ALL_OBJFILE_PSYMTABS.
4737
4738 2011-02-28  Jan Kratochvil  <[email protected]>
4739
4740         * objc-lang.c (selectors_info): Error on too long REGEXP.
4741
4742 2011-02-28  Michael Snyder  <[email protected]>
4743
4744         * python/py-param.c (set_parameter_value): Add missing
4745         break statement.
4746
4747         * linux-record.c (record_linux_system_call): Add missing
4748         break statement.
4749
4750 2011-02-28  Ulrich Weigand  <[email protected]>
4751
4752         * breakpoint.c (print_one_breakpoint_location): Remove unused
4753         argument PRINT_ADDRESS_BITS.  Update callers.
4754         (print_one_breakpoint): Likewise.
4755
4756 2011-02-28  Ulrich Weigand  <[email protected]>
4757
4758         * breakpoint.c (wrap_indent_at_field): New function.
4759         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4760         Allocate ui_stream locally instead of using STB argument.
4761         (print_one_breakpoint_location): Update call.
4762         * ui-out.c (ui_out_query_field): New function.
4763         * ui-out.h (ui_out_query_field): Add prototype.
4764
4765 2011-02-28  Joel Brobecker  <[email protected]>
4766
4767         From Michael Snyder  <[email protected]>
4768         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4769
4770 2011-02-27  Michael Snyder  <[email protected]>
4771
4772         * objc-lang.c (selectors_info): Prevent string overrun.
4773
4774         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4775         error in strncpy.
4776
4777         * symtab.c (rbreak_command): Move variable 'file_name' to
4778         outer scope.
4779
4780         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4781         param with a local variable of the same name.
4782
4783 2011-02-27  Michael Snyder  <[email protected]>
4784
4785         * value.c (value_from_history_ref): New function.
4786         * value.h (value_from_history_ref): Export.
4787         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4788         to parse value history references.
4789         * cli/cli-utils.h (get_number_trailer): Update comment.
4790
4791 2011-02-27  Michael Snyder  <[email protected]>
4792
4793         * inferior.c (detach_inferior_command): Use get_number_or_range.
4794         (kill_inferior_command): Ditto.
4795         (remove_inferior_command): Ditto.
4796         (initialize_inferiors): Make command names plural.
4797         Update help strings.
4798
4799 2011-02-27  Michael Snyder  <[email protected]>
4800
4801         * darwin-nat-info.c: Fix comment typo.
4802         * dwarf2expr.h: Ditto.
4803         * fbsd-nat.c: Ditto.
4804         * fbsd-nat.h: Ditto.
4805         * frame-unwind.h: Ditto.
4806         * frame.h: Ditto.
4807         * hppa-hpux-tdep.c: Ditto.
4808         * i386-linux-nat.c: Ditto.
4809         * linux-nat.c: Ditto.
4810         * nbsd-nat.c: Ditto.
4811         * nbsd-nat.h: Ditto.
4812         * ppc-linux-tdep.c: Ditto.
4813         * serial.c: Ditto.
4814         * ui-file.h: Ditto.
4815         * tui/tui-winsource.c: Ditto.
4816
4817 2011-02-26  Michael Snyder  <[email protected]>
4818
4819         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4820
4821         * maint.c (maintenance_do_deprecate): Plug a memory leak.
4822
4823         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4824         with a local variable of the same name.
4825
4826         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4827         param with a local variable of the same name.
4828         (i387_supply_xsave): Ditto.
4829
4830         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4831         that it does not shadow a function parameter.
4832
4833         * i386-nat.c (i386_length_and_rw_bits): Document that case
4834         statement is meant to fall through.
4835
4836         * expprint.c (dump_subexp_body_standard): Document that case
4837         statement is meant to fall through.
4838
4839         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4840         dead if statement.  Condition can't be false.
4841
4842 2011-02-25  Michael Snyder  <[email protected]>
4843
4844         * arm-tdep.c: Fix typos in comments.
4845         * bsd-uthread.c: Ditto.
4846         * completer.c: Ditto.
4847         * corelow.c: Ditto.
4848         * cp-namespace.c: Ditto.
4849         * cp-support.c: Ditto.
4850         * cris-tdep.c: Ditto.
4851         * dbxread.c: Ditto.
4852         * dwarf2read.c: Ditto.
4853         * frame.h: Ditto.
4854         * gdbtypes.h: Ditto.
4855         * inferior.h: Ditto.
4856         * mdebugread.c: Ditto.
4857         * mips-tdep.c: Ditto.
4858         * ppc-linux-nat.c: Ditto.
4859         * ppc-linux-tdep.c: Ditto.
4860         * printcmd.c: Ditto.
4861         * sol-thread.c: Ditto.
4862         * solib-frv.c: Ditto.
4863         * solist.h: Ditto.
4864         * sparc64-tdep.c: Ditto.
4865         * spu-tdep.c: Ditto.
4866         * stabsread.c: Ditto.
4867         * symfile.c: Ditto.
4868         * valops.c: Ditto.
4869         * varobj.c: Ditto.
4870         * vax-nat.c: Ditto.
4871         * python/py-block.c: Ditto.
4872         * python/py-symbol.c: Ditto.
4873         * python/py-symtab.c: Ditto.
4874         * python/py-value.c: Ditto.
4875         * tui/tui-win.c: Ditto.
4876
4877 2011-02-25  Michael Snyder  <[email protected]>
4878
4879         * inferior.c (print_inferior): Accept a string instead of an int
4880         for requested_inferiors, and use get_number_or_range to parse it.
4881         (info_inferiors_command): Pass args string to print_inferior.
4882         (initialize_inferiors): Change help string for info inferiors.
4883         * inferior.h (print_inferior): Export prototype change.
4884
4885 2011-02-25  Tom Tromey  <[email protected]>
4886
4887         * common/ax.def (invalid2): Set to 0x31.
4888
4889 2011-02-25  Jan Kratochvil  <[email protected]>
4890
4891         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4892         L and plongest.
4893         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4894         use L and plongest.
4895         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4896
4897 2011-02-24  Michael Snyder  <[email protected]>
4898
4899         * Makefile.in (clean): Make clean should remove generated files
4900         observer.h and observer.inc.
4901
4902 2011-02-24  Joel Brobecker  <[email protected]>
4903
4904         Revert the following patch (not approved yet):
4905         2011-02-21  Hui Zhu  <[email protected]>
4906         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4907         * ax-gdb.c (gen_printf_expr_callback): New function.
4908         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4909         * ax-general.c (ax_memcpy): New function.
4910         (ax_print): Handle "printf".
4911         (ax_reqs): Ditto.
4912         * ax.h (ax_memcpy): Forward declare.
4913         * common/ax.def (invalid2): Removed.
4914         (printf): New entry.
4915         * printcmd.c (printcmd.h): New include.
4916         (string_printf): New function.
4917         (ui_printf): Removed.
4918         (printf_command): Remove static.  Call string_printf.
4919         (eval_command): Call string_printf.
4920         * printcmd.h: New file.
4921         * tracepoint.c (validate_actionline,
4922         encode_actions_1): handle printf_command.
4923
4924 2011-02-23  Tom Tromey  <[email protected]>
4925
4926         * ax-general.c (ax_pick): Add missing newline.
4927
4928 2011-02-23  Michael Snyder  <[email protected]>
4929
4930         * breakpoint.c (breakpoint_1): Change first argument from an int
4931         to a char pointer, so that the function now accepts a list of
4932         breakpoints rather than just one.  Use new function
4933         'number_is_in_list' to implement.
4934         (breakpoints_info): Pass char * instead of int to breakpoint_1.
4935         (watchpoints_info): Ditto.
4936         (tracepoints_info): Ditto.
4937         (maintenance_info_breakpoints): Ditto.
4938         (_initialize_breakpoint): Update help strings to reflect the fact
4939         that these functions can now take more than one argument.
4940         * cli/cli-utils.c (number_is_in_list): New function.
4941         * cli/cli-utils.h (number_is_in_list): Export.
4942
4943 2011-02-23  Michael Snyder  <[email protected]>
4944
4945         * memattr.c (mem_enable_command): Use get_number_or_range.
4946         (mem_disable_command): Ditto.
4947         (mem_delete_command): Ditto.
4948         (_initialize_mem): Tweak usage message to reflect multiple
4949         arguments.
4950
4951 2011-02-22  Doug Evans  <[email protected]>
4952
4953         Add gdb.lookup_global_symbol python function.
4954         * NEWS: Add entry.
4955         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4956         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4957         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4958
4959 2011-02-22  Tom Tromey  <[email protected]>
4960
4961         * language.c (language_class_name_from_physname): Rename
4962         'curr_language' argument to 'lang'; use in body.
4963
4964 2011-02-22  Michael Snyder  <[email protected]>
4965
4966         * cli/cli-utils.c (number_is_in_list): Check for zero return.
4967
4968 2011-02-22  Pedro Alves  <[email protected]>
4969
4970         * frame-unwind.h: Fix comment to mention the this frame, not the
4971         next.
4972
4973 2011-02-22  Tom Tromey  <[email protected]>
4974
4975         * symfile.c (auto_solib_limit): Remove.
4976         * symfile.h (auto_solib_limit): Remove.
4977
4978 2011-02-22  Joel Brobecker  <[email protected]>
4979
4980         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
4981
4982 2011-02-21  Michael Snyder  <[email protected]>
4983
4984         * gdbthread.h (print_thread_info): Change prototype.
4985         * thread.c (print_thread_info): Accept char* instead of int for
4986         requested_threads argument.  Use new function number_is_in_list
4987         to determine which threads to list.
4988         (info_threads_command): Pass char* to print_thread_info.
4989         * cli/cli-utils.c (number_is_in_list): New function.
4990         * cli/cli-utils.h (number_is_in_list): Export.
4991         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4992         print_thread_info.
4993         (print_one_inferior): Ditto.
4994         (mi_cmd_list_thread_groups): Ditto.
4995
4996 2011-02-21  Jan Kratochvil  <[email protected]>
4997
4998         * common/Makefile.in (CFLAGS): New.
4999         (COMPILE): Add $(CFLAGS).
5000
5001 2011-02-21  Tom Tromey  <[email protected]>
5002
5003         * breakpoint.c (catch_syscall_command_1): Fix typo.
5004
5005 2011-02-21  Tom Tromey  <[email protected]>
5006
5007         * reverse.c: Include cli-utils.h.
5008         * printcmd.c: Include cli-utils.h.
5009         (string_printf): Use skip_spaces.
5010         * cli/cli-utils.h: New file.
5011         * cli/cli-utils.c: New file.
5012         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
5013         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
5014         * breakpoint.h (get_number, get_number_or_range): Move to
5015         cli-utils.h.
5016         * breakpoint.c: Include cli-utils.h.
5017         (get_number_trailer, get_number, get_number_or_range)
5018         (ep_skip_leading_whitespace): Move to cli-utils.c.
5019         (create_breakpoint_sal, find_condition_and_thread)
5020         (decode_static_tracepoint_spec, watch_command_1)
5021         (watch_maybe_just_location, ep_parse_optional_if_clause)
5022         (catch_fork_command_1, catch_exec_command_1)
5023         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
5024         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
5025         (SUBDIR_CLI_SRCS): Add cli-utils.c.
5026         (HFILES_NO_SRCDIR): Add cli-utils.h.
5027         (cli-utils.o): New target.
5028
5029 2011-02-18  Pierre Muller  <[email protected]>
5030
5031         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5032         before calling discard_all_inferiors.
5033
5034 2011-02-21  Ulrich Weigand  <[email protected]>
5035
5036         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5037         (struct builtin_opencl_type): Remove.
5038         (builtin_opencl_type): Change return type to "struct type **".
5039         (lookup_opencl_vector_type): Update caller.
5040         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5041         (build_opencl_types): Install plain array of "struct type *"
5042         instead of "struct builtin_opencl_type".
5043
5044 2011-02-21  Matthew Gretton-Dann <[email protected]>
5045             Ulrich Weigand  <[email protected]>
5046
5047         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5048         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5049         (struct arm_linux_hwbp_cap): New type.
5050         (arm_linux_get_hwbp_cap): New function.
5051         (arm_linux_get_hw_breakpoint_count): Likewise.
5052         (arm_linux_get_hw_watchpoint_count): Likewise.
5053         (arm_linux_can_use_hw_breakpoint): Likewise.
5054         (arm_hwbp_type): New type.
5055         (arm_hwbp_control_t): Likewise.
5056         (struct arm_linux_hw_breakpoint): Likewise.
5057         (struct arm_linux_thread_points): Likewise.
5058         (arm_threads): New global variable.
5059         (arm_linux_find_breakpoints_by_tid): New function.
5060         (arm_hwbp_control_initialize): Likewise.
5061         (arm_hwbp_control_is_enabled): Likewise.
5062         (arm_hwbp_control_disable): Likewise.
5063         (arm_linux_hw_breakpoint_initialize): Likewise.
5064         (arm_linux_get_hwbp_type): Likewise.
5065         (arm_linux_hw_watchpoint_initialize): Likewise.
5066         (arm_linux_hw_breakpoint_equal): Likewise.
5067         (arm_linux_insert_hw_breakpoint1): Likewise.
5068         (arm_linux_remove_hw_breakpoint1): Likewise.
5069         (arm_linux_insert_hw_breakpoint): Likewise.
5070         (arm_linux_remove_hw_breakpoint): Likewise.
5071         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5072         (arm_linux_insert_watchpoint): Likewise.
5073         (arm_linux_remove_watchpoint): Likewise.
5074         (arm_linux_stopped_data_address): Likewise.
5075         (arm_linux_stopped_by_watchpoint): Likewise.
5076         (arm_linux_watchpoint_addr_within_range): Likewise.
5077         (arm_linux_new_thread): Likewise.
5078         (arm_linux_thread_exit): Likewise.
5079         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5080         related target callbacks.  Register arm_linux_new_thread and
5081         arm_linux_thread_exit.
5082         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5083         * arm-tdep.c (arm_pc_is_thumb): Make global.
5084         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5085
5086 2011-02-21  Ulrich Weigand  <[email protected]>
5087
5088         * breakpoint.c (update_watchpoint): Do not attempt to recreate
5089         per-frame locations while within a function epilogue.
5090
5091 2011-02-21  Pierre Muller  <[email protected]>
5092
5093         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5094         to GNU coding standards.
5095
5096 2011-02-21  Pierre Muller  <[email protected]>
5097
5098         Allow use of mingw native on Windows 95 OS.
5099         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5100         (ser_windows_close): Only call CancelIo if function exists.
5101         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5102         to check for existence of CancelIo function in kernel32 DLL.
5103
5104 2011-02-21  Hui Zhu  <[email protected]>
5105
5106         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5107         * ax-gdb.c (gen_printf_expr_callback): New function.
5108         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5109         * ax-general.c (ax_memcpy): New function.
5110         (ax_print): Handle "printf".
5111         (ax_reqs): Ditto.
5112         * ax.h (ax_memcpy): Forward declare.
5113         * common/ax.def (invalid2): Removed.
5114         (printf): New entry.
5115         * printcmd.c (printcmd.h): New include.
5116         (string_printf): New function.
5117         (ui_printf): Removed.
5118         (printf_command): Remove static.  Call string_printf.
5119         (eval_command): Call string_printf.
5120         * printcmd.h: New file.
5121         * tracepoint.c (validate_actionline,
5122         encode_actions_1): handle printf_command.
5123
5124 2011-02-19  Michael Snyder  <[email protected]>
5125
5126         * reverse.c (delete_one_bookmark): Argument is now bookmark
5127         id rather than pointer to bookmark struct.
5128         (delete_bookmark_command): Use get_number_or_range.
5129         (goto_bookmark_command): Parse with get_number instead of strtoul.
5130         (bookmark_1): New function.  Print info for one bookmark.
5131         (bookmarks_info): Use get_number_or_range and bookmark_1.
5132
5133 2011-02-18  Michael Snyder  <[email protected]>
5134
5135         * thread.c (info_threads_command): Re-implement using
5136         get_number_or_range.
5137         (thread_apply_command): Ditto.
5138
5139 2011-02-18  Tom Tromey  <[email protected]>
5140
5141         * common/ax.def: New file.
5142         * ax.h (enum agent_op): Use ax.def.
5143         * ax-general.c (aop_map): Use ax.def.
5144
5145 2011-02-18  Tom Tromey  <[email protected]>
5146
5147         * ax-general.c (aop_map): Add pick and rot.
5148         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5149         <DW_OP_rot>: Implement.
5150         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5151         (ax_pick): Declare.
5152         * ax-general.c (ax_pick): New function.
5153
5154 2011-02-18  Tom Tromey  <[email protected]>
5155
5156         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5157
5158 2011-02-18  Jan Kratochvil  <[email protected]>
5159             Tom Tromey  <[email protected]>
5160
5161         * cp-support.c (make_symbol_overload_list_namespace): Do not call
5162         make_symbol_overload_list_block with NULL BLOCK.
5163         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5164
5165 2011-02-18  Pedro Alves  <[email protected]>
5166
5167         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5168         * breakpoint.h (get_number_or_range): Declare.
5169         * printcmd.c (ALL_DISPLAYS): Declare.
5170         (delete_display): Reimplement taking a display pointer.
5171         (undisplay_command): Accept a range of displays to delete, using
5172         get_number_or_range.
5173
5174 2011-02-18  Pierre Muller  <[email protected]>
5175
5176         * c-valprint.c (c_val_print): Add embedded_offset to address
5177         for arrays of unspecified length.
5178         * p-valprint.c (pascal_val_print): Likewise.
5179
5180 2011-02-18  Yao Qi  <[email protected]>
5181
5182         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5183         (arm_process_displaced_insn): .. here. Remove parameter INSN.
5184         (thumb_process_displaced_insn): New.
5185         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5186         call to arm_process_displaced_insn.
5187         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5188
5189 2011-02-17  Tom Tromey  <[email protected]>
5190
5191         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5192         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5193         compile_dwarf_to_ax.  No longer static.  Call
5194         dwarf2_compile_cfa_to_ax.
5195         (locexpr_tracepoint_var_ref): Update.
5196         (loclist_tracepoint_var_ref): Update.
5197         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5198         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5199         argument; add 'gdbarch' and 'pc'.
5200         (dwarf2_compile_cfa_to_ax): New function.
5201         (dwarf2_frame_cache): Update.
5202
5203 2011-02-17  Joel Brobecker  <[email protected]>
5204
5205         * ada-lang.c (ada_type_of_array): Fix the size of the array
5206         in the case of an unconstrained packed array.
5207
5208 2011-02-17  Yao Qi  <[email protected]>
5209
5210         * common/Makefile.in: Add more targets for make.
5211
5212 2011-02-16  Tom Tromey  <[email protected]>
5213
5214         * dwarf2loc.c (unimplemented): Fix typo.
5215
5216 2011-02-16  Tom Tromey  <[email protected]>
5217
5218         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5219         (compile_dwarf_to_ax) <default>: Use unimplemented.
5220         <DW_OP_deref>: Update.
5221         (disassemble_dwarf_expression): Update.
5222         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5223         (decode_locdesc): Update.
5224         * dwarf2expr.h (dwarf_stack_op_name): Update.
5225
5226 2011-02-16  Tom Tromey  <[email protected]>
5227
5228         * ax.h (struct aop_map) <name>: Now const.
5229
5230 2011-02-16  Tom Tromey  <[email protected]>
5231
5232         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5233         than axs_rvalue.
5234
5235 2011-02-16  Yao Qi  <[email protected]>
5236
5237         * infrun.c (get_displaced_step_closure_by_addr): New.
5238         * inferior.h: Declare it.
5239         * arm-tdep.c: (arm_pc_is_thumb): Call
5240         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
5241         returns non-NULL.
5242
5243 2011-02-16  Pedro Alves  <[email protected]>
5244             Jan Kratochvil  <[email protected]>
5245
5246         gdb/
5247         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5248
5249 2011-02-16  Pedro Alves  <[email protected]>
5250             Jan Kratochvil  <[email protected]>
5251
5252         * value.c (value_contents_copy_raw): Extend describing comment.
5253         Assert that the destination contents we're overwriting are wholly
5254         available.
5255         (value_contents_copy): Extend describing comment.
5256
5257 2011-02-16  Pedro Alves  <[email protected]>
5258             Jan Kratochvil  <[email protected]>
5259
5260         * value.c (value_available_contents_eq): Remove redundant local
5261         variables.  Fix available contents comparision.
5262         * value.h (value_available_contents_eq): Extend describing
5263         comment.
5264
5265 2011-02-16  Yao Qi  <[email protected]>
5266
5267         * thread.c (info_threads_command): Add missing i18n markup and remove
5268         trailing newline.
5269
5270 2011-02-15  Paul Pluzhnikov  <[email protected]>
5271
5272         * breakpoint.c (longjmp_names): New variable.
5273         (struct breakpoint_objfile_data): New type.
5274         (breakpoint_objfile_key): New variable.
5275         (msym_not_found): New variable.
5276         (msym_not_found_p): New predicate.
5277         (get_breakpoint_objfile_data): New function.
5278         (create_overlay_event_breakpoint): Check per-objfile cache for
5279         symbols first.
5280         (create_longjmp_master_breakpoint): Likewise.
5281         (create_std_terminate_master_breakpoint): Likewise.
5282         (create_exception_master_breakpoint): Likewise.
5283         (_initialize_breakpoint): Register per-objfile data key.
5284
5285 2011-02-15  Paul Pluzhnikov  <[email protected]>
5286
5287         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5288         parameter value.
5289         (create_longjmp_master_breakpoint): Loop over longjmp names.
5290         (create_std_terminate_master_breakpoint): Const-propagate parameter
5291         value.
5292         (update_breakpoints_after_exec): Adjust.
5293         (breakpoint_re_set): Adjust.
5294
5295 2011-02-15  Michael Snyder  <[email protected]>
5296
5297         * thread.c (info_threads_command): Process arg as thread id,
5298         or list of thread ids.
5299         (thread_find_command): New command.
5300         (_initialize_thread): Document argument for info threads.
5301         Document 'thread find' command.
5302         * NEWS: Document new command "thread find".
5303
5304 2011-02-15  Jan Kratochvil  <[email protected]>
5305
5306         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5307         * aclocal.m4: Regenerated with aclocal-1.11.1.
5308         * common/configure: Regenerate with autoconf-2.64.
5309
5310 2011-02-15  Ken Werner  <[email protected]>
5311
5312         * opencl-lang.c (build_opencl_types): Set the size of the built-in
5313         bool data type to a size of one byte.
5314
5315 2011-02-15  Pedro Alves  <[email protected]>
5316             Jan Kratochvil  <[email protected]>
5317
5318         * target.c (memory_xfer_live_readonly_partial): Document where to
5319         look for interface description.
5320
5321 2011-02-15  Yao Qi  <[email protected]>
5322
5323         PR tdep/12352
5324         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5325         order to store PC value on stack instead of text section.
5326
5327 2011-02-15  Thiago Jung Bauermann  <[email protected]>
5328
5329         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5330         the EFP register set size.
5331         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5332         data from the VMX register.
5333         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5334         and write data from/to the VMX register.
5335
5336 2011-02-14  Michael Snyder  <[email protected]>
5337
5338         * command.h (enum command_class): New class 'no_set_class', for
5339         "show" commands without a corresponding "set" command.
5340         * value.c (_initialize_values): Use 'no_set_class' for "show values".
5341         * copying.c (_initialize_copying): Ditto for "show copying" and
5342         "show warranty".
5343         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5344         "show version".
5345         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5346         which there is no corresponding "set" command (eg. "show copying").
5347
5348 2011-02-14  Pedro Alves  <[email protected]>
5349             Jan Kratochvil  <[email protected]>
5350
5351         * exec.c (section_table_available_memory): Change `len' parameter
5352         type to ULONGEST.
5353         * exec.h (section_table_available_memory): Ditto.
5354         * value.h (read_value_memory): Rename the `offset' parameter to
5355         `embedded_offset'.
5356
5357 2011-02-14  Pedro Alves  <[email protected]>
5358             Jan Kratochvil  <[email protected]>
5359
5360         * memrange.c (compare_mem_ranges): Mention sort order in
5361         describing comment.
5362         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
5363         * tracepoint.c (traceframe_available_memory): Extend comment to
5364         mention what happens to RESULT when the target does not support
5365         the query.
5366
5367 2011-02-14  Pedro Alves  <[email protected]>
5368             Jan Kratochvil  <[email protected]>
5369
5370         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5371         range.
5372
5373 2011-02-14  Pedro Alves  <[email protected]>
5374
5375         * value.c (value_bits_valid, value_bits_synthetic_pointer):
5376         No longer handle NULL values.
5377
5378 2011-02-14  Pedro Alves  <[email protected]>
5379
5380         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5381         * value.c: Include "exceptions.h".
5382         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5383         generic error.
5384         * cp-abi.c: Include gdb_assert.h.
5385         (baseclass_offset): Add `embedded_offset' and `val' parameters.
5386         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
5387         errors.
5388         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5389         parameters.  No longer returns -1 on error.
5390         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5391         `val' parameters.
5392         * cp-valprint.c: Include exceptions.h.
5393         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5394         the baseclass_offset.  Handle unavailable base classes.  Use
5395         val_print_invalid_address.
5396         * p-valprint.c: Include exceptions.h.
5397         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5398         when fetching the baseclass_offset.  No longer expect
5399         baseclass_offset returning -1.  Handle unavailable base classes.
5400         Use val_print_invalid_address.
5401         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5402         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
5403         `embedded_offset' and `val' parameters.  Adjust.
5404         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5405         parameter, and change its type to gdb_byte pointer.  Add
5406         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
5407         baseclass_offset returning -1.
5408         (value_dynamic_cast): Use value_contents_for_printing rather than
5409         value_contents.  Adjust.
5410         (search_struct_field): No longer expect baseclass_offset returning
5411         -1.
5412         (search_struct_method): If reading memory from the target is
5413         necessary, wrap it in a new value to pass to baseclass_offset.  No
5414         longer expect baseclass_offset returning -1.
5415         (find_method_list): No longer expect baseclass_offset returning
5416         -1.  Use value_contents_for_printing rather than value_contents.
5417         * valprint.c (val_print_invalid_address): New function.
5418         * valprint.h (val_print_invalid_address): Declare.
5419         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5420         and `val' parameters.  No longer expect baseclass_offset returning
5421         -1.  Adjust.
5422         * gnu-v2-abi.c: Include "exceptions.h".
5423         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5424         parameters.  Handle unavailable memory.  Recurse through
5425         gnuv2_baseclass_offset directly, rather than through
5426         baseclass_offset.  No longer returns -1 on not found, instead
5427         throw an error.
5428         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5429         `val' parameters.  Adjust.
5430
5431 2011-02-14  Pedro Alves  <[email protected]>
5432
5433         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5434         almost but not quite adjacent.
5435
5436 2011-02-14  Pedro Alves  <[email protected]>
5437
5438         * value.h (value_entirely_available): Declare.
5439         * value.c (value_entirely_available): New function.
5440         * c-valprint.c (c_value_print): Don't try fetching the pointer's
5441         real type if the pointer is unavailable.
5442
5443 2011-02-14  Pedro Alves  <[email protected]>
5444
5445         * valops.c (value_repeat): Use read_value_memory instead of
5446         read_memory.
5447
5448 2011-02-14  Pedro Alves  <[email protected]>
5449
5450         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5451         * value.c (value_contents_copy_raw, value_contents_copy): New
5452         functions.
5453         (value_primitive_field): Use value_contents_copy_raw instead of
5454         memcpy.
5455         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5456         memcpy.
5457         (value_array, value_slice): Ditto.
5458         * valarith.c (value_subscripted_rvalue): Use
5459         value_contents_copy_raw instead of memcpy.
5460
5461 2011-02-14  Pedro Alves  <[email protected]>
5462
5463         <unavailable> references.
5464
5465         * valops.c (get_value_at): Use value_from_contents_and_address,
5466         avoiding read_memory.
5467
5468 2011-02-14  Pedro Alves  <[email protected]>
5469
5470         * c-valprint.c (c_val_print): Print a string with unavailable
5471         contents as an array.
5472
5473 2011-02-14  Pedro Alves  <[email protected]>
5474
5475         * value.h (unpack_bits_as_long): Delete declaration.
5476         (unpack_value_bits_as_long): Declare.
5477         (unpack_value_field_as_long): Declare.
5478         (value_field_bitfield): Declare.
5479         * value.c (unpack_bits_as_long): Rename to...
5480         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
5481         value parameters.  Return the extracted result in a new output
5482         parameter.  If the value contents are unavailable, return false,
5483         otherwise return true.
5484         (unpack_value_bits_as_long): New.
5485         (unpack_field_as_long): Rename to...
5486         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
5487         Add embedded_offset and value parameters.  Return the extracted
5488         result in a new output parameter. If the value contents are
5489         unavailable, return false, otherwise return true.
5490         (unpack_value_field_as_long): New.
5491         (unpack_field_as_long_1): New.
5492         (unpack_field_as_long): Reimplement as wrapper around
5493         unpack_value_field_as_long_1.
5494         (value_field_bitfield): New function.
5495         * valops.c (value_fetch_lazy): When fetching a bitfield, use
5496         unpack_value_bits_as_long.  Mark the value as unavailable, if it
5497         is unavailable.
5498         * jv-valprint.c (java_print_value_fields): Use
5499         value_field_bitfield.
5500         * p-valprint.c (pascal_object_print_value_fields): Use
5501         value_field_bitfield.
5502         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5503
5504 2011-02-14  Pedro Alves  <[email protected]>
5505
5506         * value.c (get_internalvar_integer): Also return the int value of
5507         TYPE_CODE_INT INTERNALVAR_VALUE values.
5508         (set_internalvar): Don't special case TYPE_CODE_INT.
5509
5510 2011-02-14  Pedro Alves  <[email protected]>
5511
5512         * value.c (struct internalvar) <enum internalvar_kind>: Remove
5513         INTERNALVAR_POINTER.
5514         <pointer>: Delete.
5515         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5516         (set_internalvar): Remove special TYPE_CODE_PTR handling.
5517         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5518
5519 2011-02-14  Pedro Alves  <[email protected]>
5520
5521         * value.h (value_available_contents_eq): Declare.
5522         * value.c (find_first_range_overlap): New function.
5523         (value_available_contents_eq): New function.
5524         * valprint.c (val_print_array_elements): Use
5525         value_available_contents_eq.
5526         * ada-valprint.c (val_print_packed_array_elements): Use
5527         value_available_contents_eq.
5528         * jv-valprint.c (java_value_print): Use
5529         value_available_contents_eq.
5530
5531 2011-02-14  Pedro Alves  <[email protected]>
5532
5533         * target.c (target_read_live_memory): New function.
5534         (memory_xfer_live_readonly_partial): New.
5535         (memory_xfer_partial): If reading from a traceframe, fallback to
5536         reading unavailable read-only memory from read-only regions of
5537         live target memory.
5538         * tracepoint.c (disconnect_tracing): Adjust.
5539         (set_current_traceframe): New, factored out from
5540         set_traceframe_number.
5541         (set_traceframe_number): Reimplement to only change the traceframe
5542         number on the GDB side.
5543         (do_restore_current_traceframe_cleanup): Adjust.
5544         (make_cleanup_restore_traceframe_number): New.
5545         (cur_traceframe_number): New global.
5546         (tfile_open): Set cur_traceframe_number to no traceframe.
5547         (set_tfile_traceframe): New function.
5548         (tfile_trace_find): If looking up a traceframe using any method
5549         other than by number, make sure the current tfile traceframe
5550         matches gdb's current traceframe.  Update the current tfile
5551         traceframe if the lookup succeeded.
5552         (tfile_fetch_registers, tfile_xfer_partial)
5553         (tfile_get_trace_state_variable_value): Make sure the remote
5554         traceframe matches gdb's current traceframe.
5555         * remote.c (remote_traceframe_number): New global.
5556         (remote_open_1): Set it to -1.
5557         (set_remote_traceframe): New function.
5558         (remote_fetch_registers, remote_store_registers)
5559         (remote_xfer_memory, remote_xfer_partial)
5560         (remote_get_trace_state_variable_value): Make sure the remote
5561         traceframe matches gdb's current traceframe.
5562         (remote_trace_find): If looking up a traceframe using any method
5563         other than by number, make sure the current remote traceframe
5564         matches gdb's current traceframe.  Update the current remote
5565         traceframe if the lookup succeeded.
5566         * infrun.c (fetch_inferior_event): Adjust.
5567         * tracepoint.h (set_current_traceframe): Declare.
5568         (get_traceframe_number, set_traceframe_number): Add describing
5569         comments.
5570
5571 2011-02-14  Pedro Alves  <[email protected]>
5572
5573         Mark pieces of values as unavailable if the corresponding memory
5574         is unavailable.
5575
5576         * valops.c: Include tracepoint.h.
5577         (value_fetch_lazy): Use read_value_memory.
5578         (read_value_memory): New.
5579         * value.h (read_value_memory): Declare.
5580         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5581         * exec.c (section_table_available_memory): New function.
5582         * exec.h (section_table_available_memory): Declare.
5583
5584 2011-02-14  Pedro Alves  <[email protected]>
5585
5586         * Makefile.in (SFILES): Add memrange.c.
5587         (HFILES_NO_SRCDIR): Add memrange.h.
5588         (COMMON_OBS): Add memrange.o.
5589         * memrange.c: New file.
5590         * memrange.h: New file.
5591         * tracepoint.c: Include memrange.h.
5592         (struct mem_range): Delete.
5593         (mem_range_s): Delete.
5594         (traceframe_available_memory): New function.
5595         * tracepoint.h (traceframe_available_memory): Declare.
5596
5597 2011-02-14  Pedro Alves  <[email protected]>
5598
5599         * target.h (struct traceframe_info): Forward declare.
5600         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5601         (struct target_ops) <to_traceframe_info>: New field.
5602         (target_traceframe_info): New.
5603         * target.c (update_current_target): Inherit and default
5604         to_traceframe_info.
5605         * remote.c (PACKET_qXfer_traceframe_info): New.
5606         (remote_protocol_features): Register qXfer:traceframe-info:read.
5607         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5608         (remote_traceframe_info): New.
5609         (init_remote_ops): Install it.
5610         (_initialize_remote): Install "set/show remote traceframe-info"
5611         commands.
5612         * tracepoint.h (parse_traceframe_info): Declare.
5613         * tracepoint.c (struct mem_range): New.
5614         (mem_range_s): New typedef.
5615         (struct traceframe_info): New.
5616         (traceframe_info): New global.
5617         (free_traceframe_info): New function.
5618         (clear_traceframe_info): New function.
5619         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5620         info.
5621         (build_traceframe_info): New function.
5622         (tfile_traceframe_info): New function.
5623         (init_tfile_ops): Install tfile_traceframe_info.
5624         (traceframe_info_start_memory, free_result): New functions.
5625         (memory_attributes, traceframe_info_elements): New globals.
5626         (parse_traceframe_info, get_traceframe_info): New functions.
5627         * features/traceframe-info.dtd: New file.
5628         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5629
5630 2011-02-14  Pedro Alves  <[email protected]>
5631
5632         Base support for <unavailable> value contents.
5633
5634         * value.h (value_bytes_available): Declare.
5635         (mark_value_bytes_unavailable): Declare.
5636         * value.c (struct range): New struct.
5637         (range_s): New typedef.
5638         (ranges_overlap): New function.
5639         (range_lessthan): New function.
5640         (ranges_contain_p): New function.
5641         (struct value) <unavailable>: New field.
5642         (value_bytes_available): New function.
5643         (mark_value_bytes_unavailable): New function.
5644         (require_not_optimized_out): Constify parameter.
5645         (require_available): New function.
5646         (value_contents_all, value_contents): Require all bytes be
5647         available.
5648         (value_free): Free `unavailable'.
5649         (value_copy): Copy `unavailable'.
5650         * valprint.h (val_print_unavailable): Declare.
5651         * valprint.c (valprint_check_validity): Rename `offset' parameter
5652         to `embedded_offset'.  If printing a scalar, check whether the
5653         value chunk is available.
5654         (val_print_unavailable): New.
5655         (val_print_scalar_formatted): Check whether the value is
5656         available.
5657         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5658         pretty-printing unavailable values.
5659
5660 2011-02-13  Jan Kratochvil  <[email protected]>
5661
5662         Fix const/volatile qualifiers of C++ types, PR c++/12328.
5663         * c-typeprint.c (c_type_print_args): Update the function comment.  New
5664         variable param_type, initialize it.  Remove const/volatile qualifiers
5665         for language_cplus and !show_artificial.  Use param_type.
5666
5667 2011-02-13  Jan Kratochvil  <[email protected]>
5668
5669         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5670         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
5671         * symtab.h (struct symtab) <next>: Comment extension.
5672
5673 2011-02-12  Yao Qi  <[email protected]>
5674
5675         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5676
5677 2011-02-11  Yao Qi  <[email protected]>
5678
5679         * common/Makefile.in: Add copyright header.
5680
5681 2011-02-11  Pedro Alves  <[email protected]>
5682
5683         * infrun.c (proceed): Move switching out and in of tfind mode from
5684         here ...
5685         (fetch_inferior_event): ... to here.
5686
5687 2011-02-11  Yao Qi  <[email protected]>
5688
5689         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
5690         libcommon.a.
5691         * configure.ac: Add common to sub dir.
5692         * configure: Regenerate.
5693
5694 2011-02-11  Yao Qi  <[email protected]>
5695
5696         Build libcommon.a.
5697
5698         * common/Makefile.in: New.
5699         * common/configure.ac: New.
5700         * common/aclocal.m4: New.
5701         * common/configure: Generate.
5702
5703 2011-02-10  Pedro Alves  <[email protected]>
5704
5705         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5706         side of the parenthesis.
5707
5708         Merge from GCC:
5709         2010-07-13  Jakub Jelinek  <[email protected]>
5710         * vec.h (VEC_block_remove): Fix comment.
5711
5712 2011-02-08  Michael Snyder  <[email protected]>
5713
5714         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5715
5716 2011-02-08  Jan Kratochvil  <[email protected]>
5717
5718         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5719         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5720         psubd and paddd.
5721
5722 2011-02-08  Jan Kratochvil  <[email protected]>
5723
5724         PR 12361.
5725         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5726         phsubsw.
5727         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5728         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5729
5730 2011-02-08  Ulrich Weigand  <[email protected]>
5731
5732         * dwarf2read.c (read_subroutine_type): Set special calling
5733         convention flag for functions compiled by IBM XL C for OpenCL.
5734         * ppc-sysv-tdep.c: Include "dwarf2.h"
5735         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5736         calling convention.
5737         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
5738         IBM OpenCL vector types calling convention.
5739         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5740         (ppc_sysv_abi_broken_return_value): Likewise.
5741         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5742         types calling convention.
5743         (ppc64_sysv_abi_return_value): Likewise.
5744         * spu-tdep.c: Include "dwarf2.h"
5745         (spu_return_value): Implement IBM OpenCL vector types calling
5746         convention.
5747
5748 2011-02-08  Ulrich Weigand  <[email protected]>
5749
5750         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5751         correct ABI for AltiVec vector arguments.
5752
5753 2011-02-07  Pedro Alves  <[email protected]>
5754
5755         * valprint.c (val_print): Extend comment.
5756         * ada-valprint.c (ada_valprint): Rewrite comment deferring
5757         interface explanation to val_print.
5758         (ada_val_print_array): Adjust comment to current interface.
5759         (print_field_values): Adjust comment to current interface.
5760         * c-valprint.c (c_val_print): Rewrite comment deferring interface
5761         explanation to val_print.
5762         * f-valprint.c (f_val_print): Ditto.
5763         * jv-valprint.c (java_val_print): Ditto.
5764         * m2-valprint.c (m2_val_print): Ditto.
5765         * p-valprint.c (pascal_val_print): Ditto.
5766
5767 2011-02-07  Thiago Jung Bauermann  <[email protected]>
5768
5769         * breakpoint.c (parse_breakpoint_sals): Fix description.
5770
5771 2011-02-04  Sami Wagiaalla  <[email protected]>
5772             Oguz Kayral <[email protected]>
5773
5774         * python/py-inferior.c (python_on_normal_stop): New function.
5775         (python_on_resume): New function.
5776         (python_inferior_exit): New function.
5777         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5778         inferior_exit observers.
5779         * python/py-evtregistry.c: New file.
5780         * python/py-threadevent.c : New file.
5781         * python/py-event.c: New file.
5782         * python/py-evts.c: New file.
5783         * python/py-continueevent.c: New file.
5784         * python/py-bpevent.c: New file.
5785         * python/py-signalevent.c: New file.
5786         * python/py-exetiedevent.c: New file.
5787         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5788         Move struct breakpoint_object from here...
5789         * python/python-internal.h: ... to here.
5790         * python/py-event.h: New file.
5791         * python/py-events.h: New file.
5792         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5793         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5794         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5795         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5796         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5797         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5798         Add build rules for all the above.
5799
5800 2011-02-04  Tom Tromey  <[email protected]>
5801
5802         * dwarf2read.c (dwarf2_section_empty_p): New function.
5803         (dwarf2_read_section): Use dwarf2_section_empty_p.
5804         (dwarf2_section_size): New function.
5805         (dwarf2_get_section_info): Unconditionally read section.
5806         (dwarf2_read_index): Use dwarf2_section_empty_p.
5807         (partial_read_comp_unit_head): Use dwarf2_section_size.
5808         (dwarf2_symbol_mark_computed): Likewise.
5809
5810 2011-02-04 David Daney <[email protected]>
5811
5812         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5813
5814 2011-02-04 David Daney <[email protected]>
5815
5816         * mips-linux-tdep.c: Include xml-syscall.h.
5817         (mips_linux_get_syscall_number): New function.
5818         (mips_linux_init_abi): Add calls to
5819         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5820         * data-directory/Makefile.in (SYSCALLS_FILES): Add
5821         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5822         * syscalls/mips-n32-linux.xml: New file.
5823         * syscalls/mips-n64-linux.xml: New file.
5824         * syscalls/mips-o32-linux.xml: New file.
5825
5826 2011-02-04  Ulrich Weigand  <[email protected]>
5827
5828         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5829         Complain about inverted range entries.
5830         (dwarf2_record_block_ranges): Likewise.
5831
5832 2011-02-04  Thiago Jung Bauermann  <[email protected]>
5833
5834         Fix some typos.
5835         * breakpoint.c (update_watchpoint): Fix name of the
5836         update_global_location_list function.
5837         (print_one_breakpoint): Fix typo.
5838         (_initialize_breakpoint): Remove extra space in hbreak help
5839         string.
5840         * breakpoint.h (struct bp_location) <length>: Fix field
5841         description.
5842
5843 2011-02-04  Pedro Alves  <[email protected]>
5844
5845         * regcache.c (registers_changed_ptid): Don't explictly always
5846         clear `current_regcache'.  Only clear current_thread_ptid and
5847         current_thread_arch when PTID matches.  Only reinit the frame
5848         cache if PTID matches the current inferior_ptid.  Move alloca(0)
5849         call to ...
5850         (registers_changed): ... here.
5851
5852 2011-02-03  Ulrich Weigand  <[email protected]>
5853
5854         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5855         starts with __stack_chk_guard as stack guard symbol.
5856
5857 2011-02-03  Andrew Burgess  <[email protected]>
5858
5859         * disasm.c (compare_lines): Handle the end of sequence markers
5860         within the line table to better support disassembling over
5861         compilation unit boundaries.
5862
5863 2011-02-02  Ulrich Weigand  <[email protected]>
5864
5865         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5866         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
5867         implementation even if no symbols are available.
5868         (thumb_analyze_prologue): Update call to skip_prologue_function.
5869         (arm_analyze_prologue): Likewise.
5870
5871 2011-02-02  Ulrich Weigand  <[email protected]>
5872
5873         * arm-tdep.c: Include "observer.h".
5874         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5875         (arm_exidx_data_key): New static variable.
5876         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5877         (struct arm_exidx_data): Likewise.
5878         (arm_exidx_data_free): New function.
5879         (arm_compare_exidx_entries): Likewise.
5880         (arm_obj_section_from_vma): Likewise.
5881         (arm_exidx_new_objfile): Likewise.
5882         (arm_find_exidx_entry): Likewise.
5883         (arm_exidx_fill_cache): Likewise.
5884         (arm_exidx_unwind_sniffer): Likewise.
5885         (arm_exidx_unwind): New global variable.
5886         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5887         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5888         observer.  Register arm_exidx_data_key as objfile data.
5889
5890 2011-02-02  Ulrich Weigand  <[email protected]>
5891
5892         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5893         due to accessing uninitialized variable.  Fix indentation.
5894
5895 2011-02-02  Pedro Alves  <[email protected]>
5896
5897         * c-valprint.c (c_value_print): When doing virtual base pointer
5898         adjustment, create a new value with adjusted contents rather than
5899         changing the contents of the value being printed (and getting it
5900         wrong).
5901
5902 2011-02-02  Pedro Alves  <[email protected]>
5903
5904         * xml-support.c (xml_find_attribute): New.
5905         (xinclude_start_include): Use it.
5906         * xml-support.h (xml_find_attribute): Declare.
5907         * memory-map.c (memory_map_start_memory)
5908         (memory_map_start_property): Use xml_find_attribute.
5909         * osdata.c (osdata_start_osdata, osdata_start_column): Use
5910         xml_find_attribute.
5911         * remote.c (start_thread): Use xml_find_attribute.
5912         * solib-target.c (library_list_start_segment)
5913         (library_list_start_section, library_list_start_library)
5914         (library_list_start_list): Use xml_find_attribute.
5915         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5916         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5917         (tdesc_start_field): Use xml_find_attribute.
5918
5919 2011-02-02  Ulrich Weigand  <[email protected]>
5920
5921         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5922         (BUILD_OCL_VTYPES): Update.
5923
5924 2011-02-02  Joel Brobecker  <[email protected]>
5925
5926         * configure.ac: Work around non-GNU sed limitation when computing
5927         python version number.
5928         * configure: Regenerate.
5929
5930 2011-02-01  Jan Kratochvil  <[email protected]>
5931
5932         Fix debug printing of TYPE_INSTANCE.
5933         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5934         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5935
5936 2011-02-01  Jan Kratochvil  <[email protected]>
5937
5938         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5939         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5940         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5941         * ada-operator.inc: Rename the file to ...
5942         * ada-operator.def: ... here, wrap all the entries by macro OP.
5943         * expprint.c (op_name_standard): Remove all the entries.  Include
5944         "std-operator.def" instead.
5945         * expression.h (enum exp_opcode): Include "std-operator.def" and
5946         "ada-operator.def".  Move all the entries ...
5947         * std-operator.def: ... here, wrap all the entries by macro OP.
5948
5949 2011-01-31  Paul Pluzhnikov  <[email protected]>
5950
5951         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5952         * breakpoint.c (remove_jit_event_breakpoints): New function.
5953         * jit.c (jit_descriptor_addr): Delete.
5954         (registering_code): Delete.
5955         (clear_int): Delete.
5956         (jit_inferior_data): New variable.
5957         (struct jit_inferior_data): New type.
5958         (get_jit_inferior_data): New function.
5959         (jit_inferior_data_cleanup): New function.
5960         (jit_read_descriptor): Adjust.
5961         (jit_register_code): Adjust.
5962         (jit_breakpoint_re_set_internal): New function; move code here ...
5963         (jit_inferior_init): ... from here.
5964         (jit_breakpoint_re_set): Adjust.
5965         (jit_reset_inferior_data_and_breakpoints): New function.
5966         (jit_inferior_created_observer): Adjust.
5967         (jit_inferior_exit_hook): Adjust.
5968         (jit_executable_changed_observer): New function.
5969         (jit_event_handler): Adjust.
5970         (_initialize_jit): Adjust.
5971
5972 2011-01-31  Michael Snyder  <[email protected]>
5973
5974         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5975         line.
5976
5977 2011-01-31  Tom Tromey  <[email protected]>
5978
5979         PR python/12216:
5980         * python/python.c (execute_gdb_command): Call
5981         prevent_dont_repeat.
5982         * top.c (suppress_dont_repeat): New global.
5983         (dont_repeat): Use it.
5984         (prevent_dont_repeat): New function.
5985         * command.h (prevent_dont_repeat): Declare.
5986
5987 2011-01-31  Tom Tromey  <[email protected]>
5988
5989         * infcmd.c (finish_backward): Use breakpoint_set_silent.
5990         * python/py-breakpoint.c (bppy_set_silent): Use
5991         breakpoint_set_silent.
5992         (bppy_set_thread): Use breakpoint_set_thread.
5993         (bppy_set_task): Use breakpoint_set_task.
5994         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5995         (breakpoint_set_task): Declare.
5996         (make_breakpoint_silent): Remove.
5997         * breakpoint.c (breakpoint_set_silent): New function.
5998         (breakpoint_set_thread): Likewise.
5999         (breakpoint_set_task): Likewise.
6000         (make_breakpoint_silent): Remove.
6001
6002 2011-01-31  Tom Tromey  <[email protected]>
6003
6004         * breakpoint.h (user_breakpoint_p): Declare.
6005         * breakpoint.c (user_breakpoint_p): New function.
6006         (breakpoint_1): Use it.
6007         (save_breakpoints): Likewise.
6008
6009 2011-01-31  Joel Brobecker  <[email protected]>
6010
6011         * configure.ac: Add handling of Python distribution on Windows.
6012         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
6013         sysconfig variables are not defined, then do not use them.
6014         On Windows, if LIBPL is not defined, then use prefix + '/libs'
6015         instead.  On Windows, return all paths using forward-slashes
6016         rather than backslashes.
6017
6018 2011-01-31  Joel Brobecker  <[email protected]>
6019
6020         * configure.ac: Remove fallback behavior for building
6021         against Python.  Remove tweaking of Python include path.
6022         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
6023         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
6024         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
6025         Always restore CPPFLAGS and LIBS after linking test.
6026         * configure: Regenerated.
6027         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
6028         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
6029         * python/python-internal.h: Adjust includes of Python .h files.
6030
6031 2011-01-31  Joel Brobecker  <[email protected]>
6032
6033         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6034         in error message.
6035
6036 2011-01-31  Joel Brobecker  <[email protected]>
6037
6038         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6039         value test.
6040
6041 2011-01-31  Yao Qi  <[email protected]>
6042
6043         * arm-linux-nat.c: Update calls to regcache_register_status
6044         instead of regcache_valid_p.
6045         * aix-thread.c: Likewise.
6046         * i386gnu-nat.c: Likewise.
6047
6048 2011-01-29  Jan Kratochvil  <[email protected]>
6049
6050         Fix crash.
6051         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6052         touching TYPE_FIELD_ARTIFICIAL.
6053
6054 2011-01-28  Richard Earnshaw  <[email protected]>
6055
6056         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6057         Committers.
6058
6059 2011-01-28  Pedro Alves  <[email protected]>
6060
6061         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6062         selected, don't try iterating over the traceframe's blocks.
6063         (tfile_has_stack): If there's no traceframe selected, then there's
6064         no stack.
6065         (tfile_has_registers): If there's no traceframe selected, then
6066         there's no registers.
6067
6068 2011-01-28  Pedro Alves  <[email protected]>
6069
6070         * target.c (memory_xfer_partial): No need to restore shadows if we
6071         haven't read anything.
6072
6073 2011-01-28  Pedro Alves  <[email protected]>
6074
6075         * mips-tdep.c (mips_print_register): Use get_frame_register_value
6076         and val_print_scalar_formatted.
6077
6078 2011-01-27  Pedro Alves  <[email protected]>
6079
6080         * tracepoint.c (tfile_read): New.
6081         (tfile_open): Use it.
6082         (tfile_get_traceframe_address): Use it.
6083         (tfile_trace_find): Use it.
6084         (walk_blocks_callback_func): New typedef.
6085         (match_blocktype): New function.
6086         (traceframe_walk_blocks): New function.
6087         (traceframe_find_block_type): New function.
6088         (tfile_fetch_registers, tfile_xfer_partial)
6089         (tfile_get_trace_state_variable_value): Use
6090         traceframe_find_block_type and tfile_read.
6091
6092 2011-01-26  Kevin Buettner  <[email protected]>
6093
6094         * remote-mips.c: Add internationalization mark ups.  Remove
6095         trailing \n from already marked up strings.
6096
6097 2011-01-26  Tom Tromey  <[email protected]>
6098
6099         * python/py-prettyprint.c (print_string_repr): Clear
6100         'addressprint' option when calling val_print_string.
6101         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
6102         option when calling val_print_string.
6103
6104 2011-01-26  Tom Tromey  <[email protected]>
6105
6106         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6107         GDB_PY_LL_ARG.
6108         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6109         macros.
6110         (gdb_py_longest, gdb_py_ulongest): New typedefs.
6111         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6112         (gdb_py_long_as_ulongest): New defines.
6113         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6114         (gdb_py_int_as_long): Declare.
6115         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6116         GDB_PY_LL_ARG, gdb_py_object_from_longest.
6117         (valpy_long): Add comment.
6118         * python/py-utils.c (get_addr_from_python): Use
6119         gdb_py_long_as_ulongest.  Handle overflow properly.
6120         (gdb_py_object_from_longest): New function.
6121         (gdb_py_object_from_ulongest): Likewise.
6122         (gdb_py_int_as_long): Likewise.
6123         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6124         * python/py-symtab.c (salpy_get_pc): Use
6125         gdb_py_long_from_ulongest.
6126         (salpy_get_line): Use PyInt_FromLong.
6127         * python/py-param.c (set_parameter_value): Use
6128         gdb_py_int_as_long.
6129         * python/py-lazy-string.c (stpy_get_address): Use
6130         gdb_py_long_from_ulongest.
6131         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6132         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6133         * python/py-breakpoint.c (bppy_set_thread): Use
6134         gdb_py_int_as_long.
6135         (bppy_set_task): Likewise.
6136         (bppy_set_ignore_count): Likewise.
6137         (bppy_set_hit_count): Likewise.
6138         * python/py-block.c (blpy_get_start): Use
6139         gdb_py_object_from_ulongest.
6140         (blpy_get_end): Likewise.
6141         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6142
6143 2011-01-25  Mathieu Lacage  <[email protected]>
6144
6145         PR/symtab 11766:
6146         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6147         * gdb/solib.c (solib_read_symbols): Check for addr_low in
6148         equality test for objfile, initialize addr_low if needed.
6149
6150 2011-01-25  Pedro Alves  <[email protected]>
6151
6152         * tui/tui-regs.c (tui_register_format): Remove dead code.
6153
6154 2011-01-25  Pedro Alves  <[email protected]>
6155
6156         * printcmd.c (print_formatted): Use val_print_scalar_formatted
6157         instead of print_scalar_formatted.
6158         (print_scalar_formatted): Don't handle 's' format strings here,
6159         and add an assertion that we never see such format here.
6160         * valprint.h (val_print_scalar_formatted): Declare.
6161         * valprint.c (val_print_scalar_formatted): New.
6162         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6163         instead of print_scalar_formatted.
6164         * jv-valprint.c (java_val_print): Ditto.
6165         * p-valprint.c (pascal_val_print): Ditto.
6166         * ada-valprint.c (ada_val_print_1): Ditto.
6167         * f-valprint.c (f_val_print): Ditto.
6168         * infcmd.c (registers_info): Ditto.
6169         * m2-valprint.c (m2_val_print): Ditto.
6170
6171 2011-01-25  Pedro Alves  <[email protected]>
6172
6173         * m2-valprint.c (print_unbounded_array): Pass
6174         value_contents_for_printing rather than value_contents, to
6175         m2_print_array_contents.  Also pass in the value.
6176
6177 2011-01-25  Jan Kratochvil  <[email protected]>
6178
6179         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6180         (save_gdb_index_command): Switch to .gdb_index version 4.
6181
6182 2011-01-25  Pedro Alves  <[email protected]>
6183
6184         * mi/mi-main.c (get_register): Use get_frame_register_value rather
6185         than frame_register, and always pass a valid value to val_print.
6186
6187 2011-01-25  Pedro Alves  <[email protected]>
6188
6189         Centralize printing "<optimized out>".
6190
6191         * valprint.h (val_print_optimized_out): Declare.
6192         * cp-valprint.c (cp_print_value_fields): Use
6193         val_print_optimized_out.
6194         * jv-valprint.c (java_print_value_fields): Ditto.
6195         * p-valprint.c (pascal_object_print_value_fields): Ditto.
6196         * printcmd.c (print_formatted): Ditto.
6197         * valprint.c (valprint_check_validity): Ditto.
6198         (value_check_printable): Ditto.
6199         (val_print_optimized_out): New.
6200
6201 2011-01-25  Pedro Alves  <[email protected]>
6202
6203         * infcmd.c (default_print_registers_info): Allocate values so to
6204         never pass a NULL value to val_print.
6205
6206 2011-01-25  Pedro Alves  <[email protected]>
6207
6208         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6209         boolean.  Make sure to always pass a value that matches the
6210         contents buffer to callees.  Preserve `address' for following
6211         iterations.
6212         * value.c (value_contents_for_printing_const): New.
6213         (value_address): Constify value argument.
6214         * value.h (value_contents_for_printing_const): Declare.
6215         (value_address): Constify value argument.
6216
6217 2011-01-25  Pedro Alves  <[email protected]>
6218
6219         * regcache.c (struct regcache_descr): Rename
6220         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6221         and sizeof_cooked_register_valid_p to
6222         sizeof_cooked_register_status.
6223         (init_regcache_descr): Adjust.
6224         (struct regcache): Rename register_valid_p field to
6225         register_status.
6226         (regcache_xmalloc_1, regcache_xfree, regcache_save)
6227         (do_cooked_read): Adjust.
6228         (regcache_valid_p): Rename to ...
6229         (regcache_register_status): ... this.  Adjust.
6230         (regcache_invalidate): Adjust.
6231         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6232         Adjust.
6233         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
6234         as unavailable, not valid.
6235         (regcache_dump): Adjust.
6236         * regcache.h (enum register_status): New.
6237         (regcache_register_status): Declare.
6238         (regcache_invalidate): Delete declaration.
6239         * corelow.c (get_core_registers): Adjust.
6240         * tracepoint.c (tfile_fetch_registers): Adjust.
6241         * trad-frame.c (REG_VALUE): Rename to ...
6242         (TF_REG_VALUE): ... this.
6243         (REG_UNKNOWN): Rename to ...
6244         (TF_REG_UNKNOWN): ... this.
6245         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6246         * mi/mi-main.c (register_changed_p): Adjust.
6247
6248 2011-01-25  Pedro Alves  <[email protected]>
6249
6250         * regcache.c (struct regcache_descr): Remove outdated comment.
6251         (init_regcache_descr): Remove sizeof_raw_register_valid_p
6252         overallocate hack.
6253         (regcache_xmalloc): Rename to ...
6254         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
6255         Allocate the regcache type accordingly.
6256         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6257         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
6258         cooked registers, not raw.
6259         (regcache_dup_no_passthrough): Delete.
6260         (get_thread_arch_regcache): Use regcache_xmalloc_1.
6261         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6262         mention obsolete write_register_bytes.
6263         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6264
6265 2011-01-25  Pedro Alves  <[email protected]>
6266
6267         Stop remote_read_bytes from handling partial reads itself.
6268
6269         * remote-fileio.c: Include target.h.
6270         (remote_fileio_write_bytes): Delete.
6271         (remote_fileio_func_open, remote_fileio_func_write)
6272         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6273         target_read_memory.
6274         (remote_fileio_func_stat): Use target_read_memory and
6275         target_write_memory.
6276         (remote_fileio_func_gettimeofday): Use target_write_memory.
6277         (remote_fileio_func_system): Use target_read_memory.
6278         * remote.c (remote_write_bytes): Make it static.
6279         (remote_read_bytes): Don't handle partial reads here.
6280         * remote.h (remote_read_bytes): Delete declaration.
6281
6282 2011-01-25  Pedro Alves  <[email protected]>
6283
6284         Simplify XML parsing a bit.
6285
6286         * xml-support.h (gdb_xml_parse_quick): Declare.
6287         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6288         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6289         parameter.
6290         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6291         gdb_xml_create_parser_and_cleanup_1.
6292         (gdb_xml_parse_quick): New.
6293         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6294         * osdata.c (osdata_parse): Ditto.
6295         * remote.c (remote_threads_info): Ditto.
6296         * solib-target.c (solib_target_parse_libraries): Ditto.
6297         * xml-syscall.c (syscall_parse_xml): Ditto.
6298         * xml-tdesc.c (tdesc_parse_xml): Ditto.
6299
6300 2011-01-24  Kevin Buettner  <[email protected]>
6301
6302         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6303         with remote-mips.o added to gdb_target_obs.
6304         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6305
6306 2011-01-24  Pedro Alves  <[email protected]>
6307
6308         * ada-valprint.c (val_print_packed_array_elements): Pass the
6309         correct struct value to val_print.
6310         (ada_val_print_1): Ditto.
6311
6312 2011-01-24  Pedro Alves  <[email protected]>
6313
6314         Don't lose embedded_offset in printing routines throughout.
6315
6316         * valprint.h (val_print_array_elements): Change prototype.
6317         * valprint.c (val_print_array_elements): Add `embedded_offset'
6318         parameter, and adjust to pass it down to val_print, while passing
6319         `valaddr' or `address' unmodified.  Take embedded_offset into
6320         account when checking repetitions.
6321         * c-valprint.c (c_val_print): Pass embedded_offset to
6322         val_print_array_elements instead of adjusting `valaddr' and
6323         `address'.
6324         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6325         embedded_offset to val_print_array_elements instead of adjusting
6326         `valaddr'.
6327         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6328         * p-valprint.c (pascal_val_print): Pass embedded_offset to
6329         val_print_array_elements and pascal_object_print_value_fields
6330         instead of adjusting `valaddr'.
6331         (pascal_object_print_value_fields): Add `offset' parameter, and
6332         adjust to use it.
6333         (pascal_object_print_value): Add `offset' parameter, and adjust to
6334         use it.
6335         (pascal_object_print_static_field): Use
6336         value_contents_for_printing/value_embedded_offset, rather than
6337         value_contents.
6338         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6339         parameter, and adjust to use it.  Use
6340         value_contents_for_printing/value_embedded_offset, rather than
6341         value_contents.
6342         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6343         (ada_val_print_array): Add `offset' parameter, and adjust to use
6344         it.
6345         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6346         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
6347         Instead work with offsets.  Use
6348         value_contents_for_printing/value_embedded_offset, rather than
6349         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
6350         and use value_from_pointer to extract a target pointer, rather
6351         than value_from_longest.
6352         (print_variant_part): Add `offset' parameter.  Replace
6353         `outer_valaddr' parameter by a new `outer_offset' parameter.
6354         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
6355         (ada_value_print): Use
6356         value_contents_for_printing/value_embedded_offset, rather than
6357         value_contents.
6358         (print_record): Add `offset' parameter, and adjust to pass it
6359         down.
6360         (print_field_values): Add `offset' parameter.  Replace
6361         `outer_valaddr' parameter by a new `outer_offset' parameter.
6362         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
6363         Use value_contents_for_printing/value_embedded_offset, rather than
6364         value_contents.
6365         * d-valprint.c (dynamic_array_type): Use
6366         value_contents_for_printing/value_embedded_offset, rather than
6367         value_contents.
6368         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6369         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
6370         (java_print_value_fields): Take `offset' into account.  Don't
6371         re-adjust `valaddr'.  Instead pass down adjusted offsets.
6372         (java_val_print): Take `embedded_offset' into account.  Pass it to
6373         java_print_value_fields.
6374         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6375         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
6376         down adjusted offsets.
6377         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
6378         (f_val_print): Take `embedded_offset' into account.
6379
6380 2011-01-21  Joel Brobecker  <[email protected]>
6381
6382         * inflow.c: Include "gdbcmd.h".
6383         (interactive_mode): New static global, moved here from top.c.
6384         (show_interactive_mode): New function, moved here from top.c.
6385         use gdb_has_a_terminal instead of input_from_terminal_p to
6386         determine the current mode.
6387         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6388         setting.
6389         (_initialize_inflow): Add the "set/show interactive-mode"
6390         commands.  Moved here from top.c, after having adjusted slightly
6391         the help text.
6392         * top.c (interactive_mode, show_interactive_mode): Delete, moved
6393         to inflow.c.
6394         (input_from_terminal_p): Remove handling of "interactive-mode"
6395         setting, moved to infow.c.
6396         (init_main): Remove creation of the "set/show interactive-mode"
6397         commands, moved to inflow.c.
6398
6399 2011-01-19  Joel Brobecker  <[email protected]>
6400
6401         * NEWS: Add entry for native ia64-hpux support.
6402
6403 2011-01-19  Tom Tromey  <[email protected]>
6404
6405         PR mi/8618:
6406         * thread.c (free_thread): Free 'name'.
6407         (print_thread_info): Emit thread name.  Change CLI output.
6408         (thread_name_command): New function.
6409         (do_captured_thread_select): Emit newline.
6410         (_initialize_thread): Register 'thread name' command.
6411         * target.h (struct target_ops) <to_thread_name>: New field.
6412         (target_thread_name): New macro.
6413         * target.c (update_current_target): Handle to_thread_name.
6414         * python/py-infthread.c (thpy_get_name): New function.
6415         (thpy_set_name): Likewise.
6416         (thread_object_getset): Add "name".
6417         * linux-nat.c (linux_nat_thread_name): New function.
6418         (linux_nat_add_target): Set to_thread_name.
6419         * gdbthread.h (struct thread_info) <name>: New field.
6420
6421 2011-01-18  Joel Brobecker  <[email protected]>
6422
6423         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6424         (ada_val_print_1): Likewise.
6425
6426 2011-01-18  Joel Brobecker  <[email protected]>
6427
6428         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6429         upper limit address is not greater than the function end address
6430         when the upper limit could not be computed using the debugging
6431         info.
6432
6433 2011-01-17  Tom Tromey  <[email protected]>
6434
6435         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
6436         get_regcomp_error.
6437         * utils.c: Include gdb_regex.h.
6438         (do_regfree_cleanup): New function.
6439         (make_regfree_cleanup): Likewise.
6440         (get_regcomp_error): Likewise.
6441         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6442
6443 2011-01-17  Tom Tromey  <[email protected]>
6444
6445         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
6446         re_compile_fastmap.
6447
6448 2011-01-17  Pierre Muller  <[email protected]>
6449
6450         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6451         for internal variables.
6452         (last_was_structop): New static variable.
6453         (COMPLETE): New token.
6454         (field_exp): New rule to group all '.' suffix handling.
6455         Add mark_struct_expression calls when approriate to be able
6456         to correctly find fields for completion.
6457         (yylex): Adapt to handle field completion and set INTVAR when
6458         required.
6459
6460 2011-01-14  Yao Qi  <[email protected]>
6461
6462         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6463         save_reggroup, restore_reggroup and all_reggroup.
6464
6465 2011-01-14  Joel Brobecker  <[email protected]>
6466
6467         * ada-valprint. (ada_printchar): Use the correct type length
6468         in call to ada_emit_char.
6469         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6470
6471 2011-01-14  Pierre Muller  <[email protected]>
6472
6473         * solib-som.h (hpux_major_release): Declare variable here.
6474         * solib-som.c:  Remove <sys/utsname.h> header.
6475         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6476         (hpux_major_release): Make global, change default value to
6477         DEFAULT_HPUX_MAJOR_RELEASE.
6478         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6479         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6480         Add "solib-som.h" header.
6481         (set_hpux_major_release): New function.
6482         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6483
6484 2011-01-14  Mike Frysinger  <[email protected]>
6485
6486         * configure.tgt (*-*-uclinux*): Match more Linux os targets
6487
6488 2011-01-14  Joel Brobecker  <[email protected]>
6489
6490         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6491         new-line at end of warning message.
6492         (ia64_hpux_store_register): Remove trailing new-line at end of
6493         error message.
6494         * ia64-hpux-tdep.c: Rephrase comment.
6495         * solib-ia64-hpux.c (struct dld_info): Change type of field
6496         dld_flags from "long long" to ULONGEST.
6497
6498 2011-01-14  Pedro Alves  <[email protected]>
6499
6500         * target.h (deprecated_child_ops): Delete declaration.
6501         * target.c (deprecated_child_ops): Delete definition.
6502
6503 2011-01-14  Pedro Alves  <[email protected]>
6504
6505         * Makefile.in (hpux-thread.o): Delete rule.
6506         * configure.ac: Don't check for HPUX DCE threads support.
6507         * configure, config.in: Regenerate.
6508         * hppa-hpux-nat.c (child_suppress_run): Delete.
6509         (hppa_hpux_child_can_run): Delete.
6510         (_initialize_hppa_hpux_nat): Don't override to_can_run.
6511         * hpux-thread.c: Delete.
6512
6513 2011-01-13  Joel Brobecker  <[email protected]>
6514
6515         * hpux-thread.c (hpux_pid_to_str): Delete.
6516
6517 2011-01-13  Joel Brobecker  <[email protected]>
6518
6519         * ada-valprint.c (ada_emit_char): Remove strange code.
6520         Check that c is <= UCHAR_MAX before passing it to isascii.
6521         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6522
6523 2011-01-13  Joel Brobecker  <[email protected]>
6524
6525         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6526         to the case where instream is stdin.
6527
6528 2011-01-13  Joel Brobecker  <[email protected]>
6529
6530         * ia64-tdep.h (struct regcache): Forward declare.
6531         (struct ia64_infcall_ops): New struct type.
6532         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6533         and "infcall_ops".
6534         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6535         Renames ia64_find_global_pointer.
6536         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6537         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6538         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6539         methods.
6540         (ia64_infcall_ops): New static global constant.
6541         (ia64_gdbarch_init): Set tdep->infcall_ops.
6542         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6543         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6544         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6545         (ia64_hpux_dummy_code): New static global constant.
6546         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6547         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6548         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6549         New function.
6550         (ia64_hpux_infcall_ops): New static global constant.
6551         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6552         for inferior function calls to work properly on ia64-hpux.
6553
6554 2011-01-13  Joel Brobecker  <[email protected]>
6555
6556         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6557         * ia64-tdep.h (struct frame_info): forward declaration.
6558         (struct gdbarch_tdep): Add field size_of_register_frame.
6559         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6560         to determine the size of the register frame.
6561         (ia64_size_of_register_frame): New function.
6562         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6563         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6564         (IA64_HPUX_UREG_REASON): New macro.
6565         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6566         New functions.
6567         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6568         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6569         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6570         objects.
6571
6572 2011-01-13  Joel Brobecker  <[email protected]>
6573
6574         Add support for ia64-hpux.
6575         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6576         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6577
6578         * configure.host: Add handling for ia64-hpux hosts.  Add associated
6579         floatformats.
6580         * configure.tgt: Add handling for ia64-hpux targets.
6581         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6582         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6583         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6584
6585 2011-01-13  Joel Brobecker  <[email protected]>
6586
6587         [ttrace] Compute thread list immediately after attach.
6588         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6589         New subprogram.
6590         (inf_ttrace_attach): Use it.
6591
6592 2011-01-13  Joel Brobecker  <[email protected]>
6593
6594         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6595         if we could not determine the frame's function address.  Instead,
6596         use the frame's PC, and then continue.
6597
6598 2011-01-13  Joel Brobecker  <[email protected]>
6599
6600         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6601         not already defined.
6602
6603 2011-01-13  Joel Brobecker  <[email protected]>
6604
6605         * ia64-tdep.c (ia64_struct_type_p): New function.
6606         (ia64_extract_return_value): Handle integral values that are
6607         less than 8 bytes long.
6608         (ia64_push_dummy_call): Likewise.
6609
6610 2011-01-13  Joel Brobecker  <[email protected]>
6611
6612         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6613         floatformat_ia64_ext.
6614         (floatformat_ia64_ext_big): New static const.
6615         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6616
6617 2011-01-12  Tom Tromey  <[email protected]>
6618
6619         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6620         messages.
6621         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6622         (mi_cmd_thread_list_ids): Likewise.
6623         (mi_cmd_data_list_changed_registers): Likewise.
6624         (mi_cmd_data_list_register_values): Likewise.
6625         (mi_cmd_data_write_register_values): Likewise.
6626         (mi_cmd_data_evaluate_expression): Likewise.
6627         (mi_cmd_data_read_memory): Likewise.
6628         (mi_cmd_data_read_memory_bytes): Likewise.
6629         (mi_cmd_data_write_memory): Likewise.
6630         (mi_cmd_enable_timings): Likewise.
6631         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6632         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6633         (mi_cmd_var_delete): Likewise.
6634         (mi_cmd_var_set_format): Likewise.
6635         (mi_cmd_var_show_format): Likewise.
6636         (mi_cmd_var_info_num_children): Likewise.
6637         (mi_cmd_var_list_children): Likewise.
6638         (mi_cmd_var_info_type): Likewise.
6639         (mi_cmd_var_info_expression): Likewise.
6640         (mi_cmd_var_show_attributes): Likewise.
6641         (mi_cmd_var_assign): Likewise.
6642         (mi_cmd_var_update): Likewise.
6643         (mi_cmd_enable_pretty_printing): Likewise.
6644         (mi_cmd_var_set_update_range): Likewise.
6645         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6646         messages.
6647         (mi_cmd_target_file_put): Likewise.
6648         (mi_cmd_target_file_delete): Likewise.
6649         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6650         messages.
6651         (mi_cmd_stack_info_depth): Likewise.
6652         (mi_cmd_stack_list_locals): Likewise.
6653         (mi_cmd_stack_list_args): Likewise.
6654         (mi_cmd_stack_select_frame): Likewise.
6655         (mi_cmd_stack_select_frame): Likewise.
6656         (mi_cmd_stack_info_frame): Likewise.
6657         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6658         messages.
6659         (mi_cmd_file_list_exec_source_files): Likewise.
6660         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6661         (mi_cmd_env_cd): Likewise.
6662         (mi_cmd_env_path): Likewise.
6663         (mi_cmd_env_dir): Likewise.
6664         (mi_cmd_inferior_tty_show): Likewise.
6665         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6666         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6667         (mi_cmd_break_watch): Likewise.
6668
6669 2011-01-12  Thiago Jung Bauermann  <[email protected]>
6670
6671         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6672         (ppc_linux_insert_hw_breakpoint): Likewise.
6673         (ppc_linux_remove_hw_breakpoint): Likewise.
6674         (ppc_linux_insert_watchpoint): Likewise.
6675
6676 2011-01-12  Andrew Burgess  <[email protected]>
6677             Jan Kratochvil  <[email protected]>
6678
6679         PR fortran/11104 and DWARF unbound arrays detection.
6680         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6681         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6682         unspecified upper bound.
6683         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6684         variables array_size_array, tmp_type and offset_item.  New variable
6685         array.  Remove call to f77_get_upperbound.  New variables array_type
6686         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
6687         the final call to deprecated_set_value_type.
6688
6689 2011-01-12  Jan Kratochvil  <[email protected]>
6690
6691         Make value allocations more lazy.
6692         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6693         instead of allocate_value and set_value_lazy when possible.
6694         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6695         instead of allocate_value and set_value_lazy.
6696         * findvar.c (value_of_register_lazy): Likewise.
6697         (read_var_value): Remove V preallocation, call just check_typedef in
6698         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
6699         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6700         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
6701         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
6702         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
6703         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
6704         the end, remove set_value_lazy there.
6705         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6706         instead of allocate_value and set_value_lazy when possible.
6707         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6708         * value.c (allocate_computed_value): Use allocate_value_lazy instead
6709         of allocate_value and set_value_lazy.
6710         (value_from_contents_and_address): Use allocate_value_lazy instead of
6711         allocate_value and set_value_lazy when possible.
6712
6713 2011-01-12  Andrew Burgess  <[email protected]>
6714
6715         * disasm.c (dump_insns): Support dumping opcodes for MI.
6716         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6717         dumping of instruction opcodes.
6718
6719 2011-01-09  Robert Millan  <[email protected]>  (tiny patch)
6720
6721         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6722         appropiately.
6723
6724 2011-01-11  Tom Tromey  <[email protected]>
6725
6726         * thread.c (do_captured_thread_select): Emit newline before
6727         printing frame.
6728
6729 2011-01-11  Michael Snyder  <[email protected]>
6730
6731         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6732         * score-tdep.c: Ditto.
6733         * score-tdep.h: Ditto.
6734         * ser-base.c: Ditto.
6735         * ser-go32.c: Ditto.
6736         * serial.c: Ditto.
6737         * serial.h: Ditto.
6738         * ser-mingw.c: Ditto.
6739         * ser-pipe.c: Ditto.
6740         * ser-tcp.c: Ditto.
6741         * ser-unix.c: Ditto.
6742         * sh64-tdep.c: Ditto.
6743         * shnbsd-nat.c: Ditto.
6744         * sh-tdep.c: Ditto.
6745         * sh-tdep.h: Ditto.
6746         * solib.c: Ditto.
6747         * solib-darwin.c: Ditto.
6748         * solib-frv.c: Ditto.
6749         * solib.h: Ditto.
6750         * solib-irix.c: Ditto.
6751         * solib-osf.c: Ditto.
6752         * solib-pa64.c: Ditto.
6753         * solib-som.c: Ditto.
6754         * solib-spu.c: Ditto.
6755         * solib-sunos.c: Ditto.
6756         * solib-svr4.c: Ditto.
6757         * solist.h: Ditto.
6758         * sol-thread.c: Ditto.
6759         * somread.c: Ditto.
6760         * source.c: Ditto.
6761         * source.h: Ditto.
6762         * sparc64-linux-tdep.c: Ditto.
6763         * sparc64-tdep.c: Ditto.
6764         * sparc-linux-nat.c: Ditto.
6765         * sparc-linux-tdep.c: Ditto.
6766         * sparc-sol2-nat.c: Ditto.
6767         * sparc-sol2-tdep.c: Ditto.
6768         * sparc-tdep.c: Ditto.
6769         * sparc-tdep.h: Ditto.
6770         * spu-tdep.c: Ditto.
6771         * stabsread.c: Ditto.
6772         * stabsread.h: Ditto.
6773         * stack.c: Ditto.
6774         * symfile.c: Ditto.
6775         * symfile.h: Ditto.
6776         * symmisc.c: Ditto.
6777         * symtab.c: Ditto.
6778         * symtab.h: Ditto.
6779         * target.c: Ditto.
6780         * target-descriptions.c: Ditto.
6781         * target-descriptions.h: Ditto.
6782         * target.h: Ditto.
6783         * target-memory.c: Ditto.
6784         * terminal.h: Ditto.
6785         * thread.c: Ditto.
6786         * top.c: Ditto.
6787         * tracepoint.c: Ditto.
6788         * tracepoint.h: Ditto.
6789         * trad-frame.h: Ditto.
6790         * typeprint.c: Ditto.
6791
6792 2011-01-11  Michael Snyder  <[email protected]>
6793
6794         * ui-file.c: Comment cleanup, mostly periods and spaces.
6795         * ui-file.h: Ditto.
6796         * ui-out.c: Ditto.
6797         * ui-out.h: Ditto.
6798         * utils.c: Ditto.
6799         * v850-tdep.c: Ditto.
6800         * valarith.c: Ditto.
6801         * valops.c: Ditto.
6802         * valprint.c: Ditto.
6803         * valprint.h: Ditto.
6804         * value.c: Ditto.
6805         * value.h: Ditto.
6806         * varobj.c: Ditto.
6807         * varobj.h: Ditto.
6808         * vax-tdep.c: Ditto.
6809         * vec.c: Ditto.
6810         * vec.h: Ditto.
6811         * version.h: Ditto.
6812         * windows-nat.c: Ditto.
6813         * windows-tdep.c: Ditto.
6814         * xcoffread.c: Ditto.
6815         * xcoffsolib.c: Ditto.
6816         * xml-support.c: Ditto.
6817         * xstormy16-tdep.c: Ditto.
6818         * xtensa-tdep.c: Ditto.
6819         * xtensa-tdep.h: Ditto.
6820
6821 2011-01-11  Thiago Jung Bauermann  <[email protected]>
6822
6823         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6824         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6825
6826 2011-01-11  Sergio Durigan Junior  <[email protected]>
6827             Thiago Jung Bauermann  <[email protected]>
6828
6829         Implement support for PowerPC BookE ranged watchpoints.
6830         * breakpoint.h
6831         (struct breakpoint_ops) <resources_needed>: New method.
6832         Initialize to NULL in all existing breakpoint_ops instances.
6833         (struct breakpoint) <exact>: New field.
6834         (target_exact_watchpoints): Declare external global.
6835         * breakpoint.c (target_exact_watchpoints): New global flag.
6836         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6837         b->enable_state to bp_enabled before calling
6838         hw_watchpoint_used_count.
6839         (hw_watchpoint_used_count): Iterate over all bp_locations in a
6840         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
6841         if available.
6842         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6843         if the watchpoint is exact.
6844         (resources_needed_watchpoint): New function.
6845         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6846         (watch_command_1): Set b->exact if the user asked for an exact
6847         watchpoint and one can be set.
6848         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6849         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6850         the user asks for an exact watchpoint and one can be set.  Return
6851         number of needed debug registers to watch the expression.
6852         * gdbtypes.c (is_scalar_type): New function, based on
6853         valprint.c:scalar_type_p.
6854         (is_scalar_type_recursive): New function.
6855         * gdbtypes.h (is_scalar_type_recursive): Declare.
6856         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6857         handle regions when ranged watchpoints are available.
6858         (create_watchpoint_request): New function.
6859         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6860         create_watchpoint_request.
6861         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6862         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6863         `set powerpc' and `show powerpc' commands.
6864         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6865         Mention documentation comment in the target macro.
6866         (target_region_ok_for_hw_watchpoint): Document return value.
6867
6868 2011-01-11  Thiago Jung Bauermann  <[email protected]>
6869
6870         * breakpoint.c (update_watchpoint): Decide on using a software or
6871         hardware watchpoint after the bp_locations are created.
6872
6873 2010-01-11  Thiago Jung Bauermann  <[email protected]>
6874
6875         Convert hardware watchpoints to use breakpoint_ops.
6876         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6877         <insert_location>: ... this.  Return int instead of void.
6878         Accept pointer to struct bp_location instead of pointer to
6879         struct breakpoint.  Adapt all implementations.
6880         (breakpoint_ops) <remove>: Rename to...
6881         <remove_location>: ... this.  Accept pointer to struct bp_location
6882         instead of pointer to struct breakpoint.  Adapt all implementations.
6883         * breakpoint.c (insert_catchpoint): Delete function.
6884         (insert_bp_location): Call the watchpoint or catchpoint's
6885         breakpoint_ops.insert method.
6886         (remove_breakpoint_1): Call the watchpoint or catchpoint's
6887         breakpoint_ops.remove method.
6888         (insert_watchpoint, remove_watchpoint): New functions.
6889         (watchpoint_breakpoint_ops): New structure.
6890         (watch_command_1): Initialize the OPS field.
6891         * inf-child.c (inf_child_insert_fork_catchpoint)
6892         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6893         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6894         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6895         Delete functions.
6896         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6897         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6898         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6899         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6900         * target.c (update_current_target): Change default implementation of
6901         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6902         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6903         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6904         to_set_syscall_catchpoint to return_one.
6905         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6906         (debug_to_insert_exec_catchpoint): Report return value.
6907         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6908         (to_insert_exec_catchpoint): Change declaration to return int instead
6909         of void.
6910
6911 2011-01-11  Michael Snyder  <[email protected]>
6912
6913         * arm-tdep.c: Internationalization.
6914         * c-lang.c: Ditto.
6915         * charset.c: Ditto.
6916         * fork-child.c: Ditto.
6917         * nto-procfs.c: Ditto.
6918         * ppc-sysv-tdep.c: Ditto.
6919         * procfs.c: Ditto.
6920         * remote-mips.c: Ditto.
6921         * remote.c: Ditto.
6922         * rs6000-nat.c: Ditto.
6923         * rs6000-tdep.c: Ditto.
6924         * target.c: Ditto.
6925         * valops.c: Ditto.
6926         * value.c: Ditto.
6927         * xml-support.c: Ditto.
6928         * mi/mi-cmd-break.c: Ditto.
6929         * mi/mi-cmd-var.c: Ditto.
6930         * mi/mi-interp.c: Ditto.
6931         * mi/mi-main.c: Ditto.
6932
6933 2011-01-11  Andrew Burgess  <[email protected]>
6934
6935         * remote-sim.c (gdbsim_store_register): Update API to
6936         sim_store_register to check more error conditions.
6937
6938 2011-01-10  Michael Snyder  <[email protected]>
6939
6940         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6941         * nto-tdep.c: Ditto.
6942         * nto-tdep.h: Ditto.
6943         * objc-exp.y: Ditto.
6944         * objc-lang.c: Ditto.
6945         * objfiles.c: Ditto.
6946         * objfiles.h: Ditto.
6947         * observer.c: Ditto.
6948         * opencl-lang.c: Ditto.
6949         * osabi.c: Ditto.
6950         * parse.c: Ditto.
6951         * parser-defs.h: Ditto.
6952         * p-exp.y: Ditto.
6953         * p-lang.c: Ditto.
6954         * posix-hdep.c: Ditto.
6955         * ppcbug-rom.c: Ditto.
6956         * ppc-linux-nat.c: Ditto.
6957         * ppc-linux-tdep.c: Ditto.
6958         * ppc-linux-tdep.h: Ditto.
6959         * ppcnbsd-tdep.c: Ditto.
6960         * ppcobsd-tdep.c: Ditto.
6961         * ppcobsd-tdep.h: Ditto.
6962         * ppc-sysv-tdep.c: Ditto.
6963         * ppc-tdep.h: Ditto.
6964         * printcmd.c: Ditto.
6965         * proc-abi.c: Ditto.
6966         * proc-flags.c: Ditto.
6967         * procfs.c: Ditto.
6968         * proc-utils.h: Ditto.
6969         * progspace.h: Ditto.
6970         * prologue-value.c: Ditto.
6971         * prologue-value.h: Ditto.
6972         * psympriv.h: Ditto.
6973         * psymtab.c: Ditto.
6974         * p-typeprint.c: Ditto.
6975         * p-valprint.c: Ditto.
6976         * ravenscar-sparc-thread.c: Ditto.
6977         * ravenscar-thread.c: Ditto.
6978         * ravenscar-thread.h: Ditto.
6979         * record.c: Ditto.
6980         * regcache.c: Ditto.
6981         * regcache.h: Ditto.
6982         * remote.c: Ditto.
6983         * remote-fileio.c: Ditto.
6984         * remote-fileio.h: Ditto.
6985         * remote.h: Ditto.
6986         * remote-m32r-sdi.c: Ditto.
6987         * remote-mips.c: Ditto.
6988         * remote-sim.c: Ditto.
6989         * rs6000-aix-tdep.c: Ditto.
6990         * rs6000-nat.c: Ditto.
6991         * rs6000-tdep.c: Ditto.
6992
6993 2011-01-10  Michael Snyder  <[email protected]>
6994
6995         * charset.c (validate): Internationalization.
6996         * coffread.c (read_one_sym): Ditto.
6997         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6998         * h8300-tdep.c (H8300_extract_return_value): Ditto.
6999         * inflow.c (new_tty): Ditto.
7000         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
7001         * m32c-tdep.c (m32c_return_value): Ditto.
7002         * mep-tdep.c (mep_store_return_value): Ditto.
7003         * score-tdep.c (score7_fetch_insn): Ditto.
7004         * ser-mingw.c (pipe_windows_open): Ditto.
7005         * sh64-tdep.c (sh64_extract_return_value): Ditto.
7006         * spu-tdep.c (spu_register_type): Ditto.
7007         * tracepoint.c (trace_find_command): Ditto.
7008         * valarith.c (value_pos): Ditto.
7009
7010 2011-01-10  Joel Brobecker  <[email protected]>
7011
7012         * ada-valprint.c (printstr): Minor comment reformatting.
7013
7014 2011-01-08  Michael Snyder  <[email protected]>
7015
7016         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
7017         markup.
7018
7019 2011-01-08  Michael Snyder  <[email protected]>
7020
7021         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
7022         * hppa-hpux-tdep.c: Ditto.
7023         * hppa-linux-nat.c: Ditto.
7024         * hppa-linux-tdep.c: Ditto.
7025         * hppanbsd-tdep.c: Ditto.
7026         * hppa-tdep.c: Ditto.
7027         * hppa-tdep.h: Ditto.
7028         * hpux-thread.c: Ditto.
7029         * i386-cygwin-tdep.c: Ditto.
7030         * i386-darwin-nat.c: Ditto.
7031         * i386gnu-nat.c: Ditto.
7032         * i386-linux-nat.c: Ditto.
7033         * i386-linux-tdep.c: Ditto.
7034         * i386-nat.c: Ditto.
7035         * i386-nat.h: Ditto.
7036         * i386nbsd-tdep.c: Ditto.
7037         * i386-sol2-nat.c: Ditto.
7038         * i386-stub.c: Ditto.
7039         * i386-tdep.c: Ditto.
7040         * i386-tdep.h: Ditto.
7041         * i387-tdep.c: Ditto.
7042         * ia64-linux-nat.c: Ditto.
7043         * ia64-linux-tdep.c: Ditto.
7044         * ia64-tdep.c: Ditto.
7045         * infcall.c: Ditto.
7046         * infcall.h: Ditto.
7047         * infcmd.c: Ditto.
7048         * inferior.c: Ditto.
7049         * inferior.h: Ditto.
7050         * infloop.c: Ditto.
7051         * inflow.c: Ditto.
7052         * infrun.c: Ditto.
7053         * interps.c: Ditto.
7054         * interps.h: Ditto.
7055         * iq2000-tdep.c: Ditto.
7056         * irix5-nat.c: Ditto.
7057         * jit.c: Ditto.
7058         * jit.h: Ditto.
7059         * jv-exp.y: Ditto.
7060         * jv-lang.c: Ditto.
7061         * jv-lang.h: Ditto.
7062         * jv-typeprint.c: Ditto.
7063         * jv-valprint.c: Ditto.
7064         * language.c: Ditto.
7065         * language.h: Ditto.
7066         * linespec.c: Ditto.
7067         * linux-fork.c: Ditto.
7068         * linux-nat.c: Ditto.
7069         * linux-thread-db.c: Ditto.
7070         * lm32-tdep.c: Ditto.
7071
7072 2011-01-08  Michael Snyder  <[email protected]>
7073
7074         * m2-exp.y: Comment cleanup, mostly periods and spaces.
7075         * m2-lang.c: Ditto.
7076         * m2-typeprint.c: Ditto.
7077         * m2-valprint.c: Ditto.
7078         * m32c-tdep.c: Ditto.
7079         * m32r-linux-nat.c: Ditto.
7080         * m32r-rom.c: Ditto.
7081         * m32r-tdep.c: Ditto.
7082         * m32r-tdep.h: Ditto.
7083         * m68hc11-tdep.c: Ditto.
7084         * m58klinux-nat.c: Ditto.
7085         * m68k-tdep.c: Ditto.
7086         * m88k-tdep.c: Ditto.
7087         * m88k-tdep.h: Ditto.
7088         * machoread.c: Ditto.
7089         * macrocmd.c: Ditto.
7090         * macroexp.c: Ditto.
7091         * macrotab.c: Ditto.
7092         * main.c: Ditto.
7093         * maint.c: Ditto.
7094         * mdebugread.c: Ditto.
7095         * mdebugread.h: Ditto.
7096         * memattr.c: Ditto.
7097         * memattr.h: Ditto.
7098         * memory-map.h: Ditto.
7099         * mep-tdep.c: Ditto.
7100         * microblaze-rom.c: Ditto.
7101         * microblaze-tdep.c: Ditto.
7102         * minsyms.c: Ditto.
7103         * mips-irix-tdep.c: Ditto.
7104         * mips-linux-nat.c: Ditto.
7105         * mips-linux-tdep.c: Ditto.
7106         * mips-linux-tdep.h: Ditto.
7107         * mipsnbsd-nat.c: Ditto.
7108         * mipsnbsd-tdep.c: Ditto.
7109         * mipsread.c: Ditto.
7110         * mips-tdep.c: Ditto.
7111         * mips-tdep.h: Ditto.
7112         * mn10300-linux-tdep.c: Ditto.
7113         * mn10300-tdep.c: Ditto.
7114         * mn10300-tdep.h: Ditto.
7115         * monitor.c: Ditto.
7116         * monitor.h: Ditto.
7117         * moxie-tdep.c: Ditto.
7118         * moxie-tdep.h: Ditto.
7119         * mt-tdep.c: Ditto.
7120
7121 2011-01-08  Mike Frysinger  <[email protected]>
7122
7123         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7124
7125 2011-01-08  Robert Millan  <[email protected]>
7126
7127         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7128
7129 2011-01-07  Michael Snyder  <[email protected]>
7130
7131         * charset.c (_initialize_charset): Fix typo in string.
7132
7133 2011-01-07  Michael Snyder  <[email protected]>
7134
7135         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7136         for i18n.
7137         * tui/tui-layout.c (tui_set_layout_for_display_command):
7138         Split line so that operator goes to beginning of line.
7139         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7140         assignment out of if statement.
7141
7142 2011-01-07  Michael Snyder  <[email protected]>
7143
7144         * ada-lang.c: Comment cleanup, mostly periods and spaces.
7145         * ada-lang.h: Ditto.
7146         * ada-tasks.c: Ditto.
7147         * ada-valprint.c: Ditto.
7148         * aix-threads.c: Ditto.
7149         * alpha-linux-nat.c: Ditto.
7150         * alpha-linux-tdep.c: Ditto.
7151         * alpha-mdebug-tdep.c: Ditto.
7152         * alpha-nat.c: Ditto.
7153         * alpha-osf1-tdep.c: Ditto.
7154         * alpha-tdep.c: Ditto.
7155         * alphabsd-nat.c: Ditto.
7156         * alphabsd-tdep.c: Ditto.
7157         * amd64-darwin-tdep.c: Ditto.
7158         * amd64-linux-nat.c: Ditto.
7159         * amd64-linux-tdep.c: Ditto.
7160         * amd64-sol2-tdep.c: Ditto.
7161         * amd64-tdep.c: Ditto.
7162         * amd64-fbsd-tdep.c: Ditto.
7163         * amd64-nbsd-tdep.c: Ditto.
7164         * amd64-obsd-tdep.c: Ditto.
7165         * amd64-linux-nat.c: Ditto.
7166         * amd64-linux-tdep.c: Ditto.
7167         * arm-tdep.c: Ditto.
7168         * arm-tdep.h: Ditto.
7169         * armnbsd-nat.c: Ditto.
7170         * avr-tdep.c: Ditto.
7171         * bfin-tdep.c: Ditto.
7172         * bsd-kvm.c: Ditto.
7173         * c-typeprintc: Ditto.
7174         * c-valprint.c: Ditto.
7175         * coff-pe-read.h: Ditto.
7176         * coffreead.c: Ditto.
7177         * cris-tdep.c: Ditto.
7178         * d-lang.c: Ditto.
7179         * darwin-nat-info.c: Ditto.
7180         * darwin-nat.c: Ditto.
7181         * dbug-rom.c: Ditto.
7182         * dbxread.c: Ditto.
7183         * dcache.c: Ditto.
7184         * dcache.h: Ditto.
7185         * dec-thread.c: Ditto.
7186         * defs.h: Ditto.
7187         * demangle.c: Ditto.
7188         * dicos-tdep.c: Ditto.
7189         * dictionary.c: Ditto.
7190         * dictionary.h: Ditto.
7191         * dink32-rom.c: Ditto.
7192         * disasm.c: Ditto.
7193         * doublest.c: Ditto.
7194         * dsrec.c: Ditto.
7195         * dummy-frame.c: Ditto.
7196         * dwarf2-frame.c: Ditto.
7197         * dwarf2expr.c: Ditto.
7198         * dwarf2loc.c: Ditto.
7199         * dwarf2read.c: Ditto.
7200         * elfread.c: Ditto.
7201         * environ.c: Ditto.
7202         * eval.c: Ditto.
7203         * event-top.h: Ditto.
7204         * exceptions.c: Ditto.
7205         * exceptions.h: Ditto.
7206         * exec.c: Ditto.
7207         * expprint.c: Ditto.
7208         * expression.h: Ditto.
7209         * f-exp.y: Ditto.
7210         * f-lang.c: Ditto.
7211         * f-lang.h: Ditto.
7212         * f-typeprint.c: Ditto.
7213         * f-valprint.c: Ditto.
7214         * fbsd-nat.c: Ditto.
7215         * findvar.c: Ditto.
7216         * fork-child.c: Ditto.
7217         * frame.c: Ditto.
7218         * frame.h: Ditto.
7219         * frv-linux-tdep.c: Ditto.
7220         * frv-tdep.c: Ditto.
7221         * gcore.c: Ditto.
7222         * gdb-stabs.h: Ditto.
7223         * gdb_assert.h: Ditto.
7224         * gdb_string.h: Ditto.
7225         * gdb_thread_db.h: Ditto.
7226         * gdb_wait.h: Ditto.
7227         * gdbarch.sh: Ditto.
7228         * gdbcore.h: Ditto.
7229         * gdbthread.h: Ditto.
7230         * gdbtypes.c: Ditto.
7231         * gdbtypes.h: Ditto.
7232         * gnu-nat.c: Ditto.
7233         * gnu-nat.h: Ditto.
7234         * gnu-v2-abi.c: Ditto.
7235         * gnu-v3-abi.c: Ditto.
7236         * go32-nat.c: Ditto.
7237         * gdbarch.c: Regenerate.
7238         * gdbarch.h: Regenerate.
7239
7240 2011-01-07  Michael Snyder  <[email protected]>
7241
7242         * ax-gdb.c: Adjust some long output strings.
7243         * breakpoint.c: Ditto.
7244         * charset.c: Ditto.
7245         * cp-abi.c: Ditto.
7246         * infcall.c: Ditto.
7247         * infrun.c: Ditto.
7248         * linux-nat.c: Ditto.
7249         * solib-pa64.c: Ditto.
7250         * solib-som.c: Ditto.
7251
7252 2011-01-06  Tom Tromey  <[email protected]>
7253
7254         PR python/12367:
7255         * NEWS: Add item.
7256         * python/python.c (GdbMethods): Add "newest_frame" method.
7257         * python/python-internal.h (gdbpy_newest_frame): Declare.
7258         * python/py-frame.c (gdbpy_newest_frame): New function.
7259
7260 2010-01-06  Paul Pluzhnikov  <[email protected]>
7261
7262         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7263         * jit.c (jit_debug): New variable.
7264         (show_jit_debug): New function.
7265         (struct target_buffer): Use ULONGEST.
7266         (bfd_open_from_target_memory): Likewise.
7267         (jit_register_code, jit_inferior_init): Add debug output.
7268         (_initialize_jit): Register "debug jit" command.
7269
7270 2011-01-06  Tom Tromey  <[email protected]>
7271
7272         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7273         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7274         and ARCH_FRAME.
7275
7276 2011-01-06  Tom Tromey  <[email protected]>
7277
7278         * python/py-frame.c (frapy_block): Use get_frame_block.
7279
7280 2011-01-06  Joel Brobecker  <[email protected]>
7281
7282         Do not stop on SIGPRIO signals by default
7283         * infrun.c (_initialize_infrun): Unset signal_stop and
7284         signal_print for TARGET_SIGNAL_PRIO.
7285
7286 2011-01-06  Joel Brobecker  <[email protected]>
7287
7288         * ada-tasks.c: Fix style violation in comment.
7289
7290 2011-01-06  Joel Brobecker  <[email protected]>
7291
7292         * linespec.c (decode_compound, find_method): Remove trailing \n
7293         at end of error string.
7294         * solib-irix.c (irix_current_sos): Likewise.
7295         * varobj.c (uninstall_variable): Likewise.
7296
7297 2011-01-06  Joel Brobecker  <[email protected]>
7298
7299         * copyright.py: New script.
7300         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7301         Launch emacs without exec'ing. Call copyright.py afterwards.
7302
7303 2011-01-05  Michael Snyder  <[email protected]>
7304
7305         * addrmap.c: Shorten lines of >= 80 columns.
7306         * arch-utils.c: Ditto.
7307         * arch-utils.h: Ditto.
7308         * ax-gdb.c: Ditto.
7309         * ax-general.c: Ditto.
7310         * bcache.c: Ditto.
7311         * blockframe.c: Ditto.
7312         * breakpoint.c: Ditto.
7313         * buildsym.c: Ditto.
7314         * c-lang.c: Ditto.
7315         * c-typeprint.c: Ditto.
7316         * charset.c: Ditto.
7317         * coffread.c: Ditto.
7318         * command.h: Ditto.
7319         * corelow.c: Ditto.
7320         * cp-abi.c: Ditto.
7321         * cp-namespace.c: Ditto.
7322         * cp-support.c: Ditto.
7323         * dbug-rom.c: Ditto.
7324         * dbxread.c: Ditto.
7325         * defs.h: Ditto.
7326         * dfp.c: Ditto.
7327         * dfp.h: Ditto.
7328         * dictionary.c: Ditto.
7329         * disasm.c: Ditto.
7330         * doublest.c: Ditto.
7331         * dwarf2-frame.c: Ditto.
7332         * dwarf2expr.c: Ditto.
7333         * dwarf2loc.c: Ditto.
7334         * dwarf2read.c: Ditto.
7335         * elfread.c: Ditto.
7336         * eval.c: Ditto.
7337         * event-loop.c: Ditto.
7338         * event-loop.h: Ditto.
7339         * exceptions.h: Ditto.
7340         * exec.c: Ditto.
7341         * expprint.c: Ditto.
7342         * expression.h: Ditto.
7343         * f-lang.c: Ditto.
7344         * f-valprint.c: Ditto.
7345         * findcmd.c: Ditto.
7346         * frame-base.c: Ditto.
7347         * frame-unwind.c: Ditto.
7348         * frame-unwind.h: Ditto.
7349         * frame.c: Ditto.
7350         * frame.h: Ditto.
7351         * gcore.c: Ditto.
7352         * gdb-stabs.h: Ditto.
7353         * gdb_assert.h: Ditto.
7354         * gdb_dirent.h: Ditto.
7355         * gdb_obstack.h: Ditto.
7356         * gdbcore.h: Ditto.
7357         * gdbtypes.c: Ditto.
7358         * gdbtypes.h: Ditto.
7359         * inf-ttrace.c: Ditto.
7360         * infcall.c: Ditto.
7361         * infcmd.c: Ditto.
7362         * inflow.c: Ditto.
7363         * infrun.c: Ditto.
7364         * inline-frame.h: Ditto.
7365         * language.c: Ditto.
7366         * language.h: Ditto.
7367         * libunwind-frame.c: Ditto.
7368         * libunwind-frame.h: Ditto.
7369         * linespec.c: Ditto.
7370         * linux-nat.c: Ditto.
7371         * linux-nat.h: Ditto.
7372         * linux-thread-db.c: Ditto.
7373         * machoread.c: Ditto.
7374         * macroexp.c: Ditto.
7375         * macrotab.c: Ditto.
7376         * main.c: Ditto.
7377         * maint.c: Ditto.
7378         * mdebugread.c: Ditto.
7379         * memattr.c: Ditto.
7380         * minsyms.c: Ditto.
7381         * monitor.c: Ditto.
7382         * monitor.h: Ditto.
7383         * objfiles.c: Ditto.
7384         * objfiles.h: Ditto.
7385         * osabi.c: Ditto.
7386         * p-typeprint.c: Ditto.
7387         * p-valprint.c: Ditto.
7388         * parse.c: Ditto.
7389         * printcmd.c: Ditto.
7390         * proc-events.c: Ditto.
7391         * procfs.c: Ditto.
7392         * progspace.c: Ditto.
7393         * progspace.h: Ditto.
7394         * psympriv.h: Ditto.
7395         * psymtab.c: Ditto.
7396         * record.c: Ditto.
7397         * regcache.c: Ditto.
7398         * regcache.h: Ditto.
7399         * remote-fileio.c: Ditto.
7400         * remote.c: Ditto.
7401         * ser-mingw.c: Ditto.
7402         * ser-tcp.c: Ditto.
7403         * ser-unix.c: Ditto.
7404         * serial.c: Ditto.
7405         * serial.h: Ditto.
7406         * solib-frv.c: Ditto.
7407         * solib-irix.c: Ditto.
7408         * solib-osf.c: Ditto.
7409         * solib-pa64.c: Ditto.
7410         * solib-som.c: Ditto.
7411         * solib-sunos.c: Ditto.
7412         * solib-svr4.c: Ditto.
7413         * solib-target.c: Ditto.
7414         * solib.c: Ditto.
7415         * somread.c: Ditto.
7416         * source.c: Ditto.
7417         * stabsread.c: Ditto.
7418         * stabsread.c: Ditto.
7419         * stack.c: Ditto.
7420         * stack.h: Ditto.
7421         * symfile-mem.c: Ditto.
7422         * symfile.c: Ditto.
7423         * symfile.h: Ditto.
7424         * symmisc.c: Ditto.
7425         * symtab.c: Ditto.
7426         * symtab.h: Ditto.
7427         * target-descriptions.c: Ditto.
7428         * target-memory.c: Ditto.
7429         * target.c: Ditto.
7430         * target.h: Ditto.
7431         * terminal.h: Ditto.
7432         * thread.c: Ditto.
7433         * top.c: Ditto.
7434         * tracepoint.c: Ditto.
7435         * tracepoint.h: Ditto.
7436         * ui-file.c: Ditto.
7437         * ui-file.h: Ditto.
7438         * ui-out.h: Ditto.
7439         * user-regs.c: Ditto.
7440         * user-regs.h: Ditto.
7441         * utils.c: Ditto.
7442         * valarith.c: Ditto.
7443         * valops.c: Ditto.
7444         * valprint.c: Ditto.
7445         * valprint.h: Ditto.
7446         * value.c: Ditto.
7447         * varobj.c: Ditto.
7448         * varobj.h: Ditto.
7449         * vec.h: Ditto.
7450         * xcoffread.c: Ditto.
7451         * xcoffsolib.c: Ditto.
7452         * xcoffsolib.h: Ditto.
7453         * xml-syscall.c: Ditto.
7454         * xml-tdesc.c: Ditto.
7455
7456 2011-01-05  Michael Snyder  <[email protected]>
7457
7458         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7459         * cli/cli-decode.c: Ditto.
7460         * cli/cli-dump.c: Ditto.
7461         * cli/cli-logging.c: Ditto.
7462         * cli/cli-script.c: Ditto.
7463         * cli/cli-setshow.c: Ditto.
7464         * common/signals.c: Ditto.
7465         * mi/mi-cmd-break.c: Ditto.
7466         * mi/mi-cmd-disas.c: Ditto.
7467         * mi/mi-cmd-stack.c: Ditto.
7468         * mi/mi-cmd-var.c: Ditto.
7469         * mi/mi-cmds.c: Ditto.
7470         * mi/mi-common.h: Ditto.
7471         * mi/mi-console.c: Ditto.
7472         * mi/mi-interp.c: Ditto.
7473         * mi/mi-main.c: Ditto.
7474         * osf-share/cma_attr.c: Ditto.
7475         * osf-share/cma_deb_core.h: Ditto.
7476         * osf-share/cma_debug_client.h: Ditto.
7477         * osf-share/cma_handle.h: Ditto.
7478         * osf-share/cma_mutex.h: Ditto.
7479         * osf-share/cma_stack_int.h: Ditto.
7480         * osf-share/cma_tcb_defs.h: Ditto.
7481         * python/py-auto-load.c: Ditto.
7482         * python/py-breakpoint.c: Ditto.
7483         * python/py-cmd.c: Ditto.
7484         * python/py-frame.c: Ditto.
7485         * python/py-objfile.c: Ditto.
7486         * python/py-param.c: Ditto.
7487         * python/py-progspace.c: Ditto.
7488         * python/py-symbol.c: Ditto.
7489         * python/py-value.c: Ditto.
7490         * python/python-internal.h: Ditto.
7491         * python/python.c: Ditto.
7492         * tui/tui-data.c: Ditto.
7493         * tui/tui-disasm.c: Ditto.
7494         * tui/tui-hooks.c: Ditto.
7495         * tui/tui-io.c: Ditto.
7496         * tui/tui-layout.c: Ditto.
7497         * tui/tui-regs.c: Ditto.
7498         * tui/tui-source.c: Ditto.
7499         * tui/tui-stack.c: Ditto.
7500         * tui/tui-win.c: Ditto.
7501         * tui/tui-windata.c: Ditto.
7502         * tui/tui-winsource.c: Ditto.
7503
7504 2011-01-05  Joel Brobecker  <[email protected]>
7505
7506         * configure.ac, gdb.1: Copyright year update.
7507
7508 2011-01-03  Jan Kratochvil  <[email protected]>
7509
7510         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7511         this_pc_in_block, morestack_msym and morestack_name.  Check for
7512         "__morestack" minimal symbol there.
7513
7514 2011-01-03  Joel Brobecker  <[email protected]>
7515
7516         * symfile.c (find_sym_fns): Add call to dont_repeat.
7517
7518 2011-01-01  Joel Brobecker  <[email protected]>
7519
7520         Copyright year update in most files (performed by copyright.sh).
7521
7522 2011-01-01  Joel Brobecker  <[email protected]>
7523
7524         * top.c (print_gdb_version): Update copyright year in version output.
7525
7526 For older changes see ChangeLog-2010.
7527 \f
7528 Local Variables:
7529 mode: change-log
7530 left-margin: 8
7531 fill-column: 74
7532 version-control: never
7533 coding: utf-8
7534 End:
This page took 0.448187 seconds and 4 git commands to generate.