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