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