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