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