* dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-12-08 Doug Evans <dje@google.com>
2
3 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
4 name to perror.
5
6 * symfile.h (quick_symbol_functions): Clarify usage of
7 expand_symtabs_with_filename.
8 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
9 comp units, ignore type units.
10
11 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
12
13 2010-12-07 Doug Evans <dje@google.com>
14
15 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
16 gdb_realpath.
17
18 PR python/12227
19 * NEWS: Mention -data-directory.
20 * main.c (captured_main): Recognize -data-directory.
21
22 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
23
24 * mi/mi-parse.c (mi_parse): Missing else.
25
26 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
27
28 * configure.tgt: Accept microblaze*-*-linux* for linux target
29 and microblaze*-*-* for as target.
30
31 2010-12-02 Keith Seitz <keiths@redhat.com>
32
33 * linespec.c (find_method): Move name canonicalization outside
34 the loop.
35 Be paranoid and use a cleanup.
36
37 2010-12-01 Doug Evans <dje@google.com>
38
39 * dwarf2read.c (save_gdb_index_command): Add comment.
40
41 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
42
43 * valops.c (value_assign): Returned value is never lazy. If a
44 C++ class type is returned, fix incorrect enclosing type / embedded
45 offset. If internal variable is returned, allocate new internalvar
46 value using value_of_internalvar.
47
48 * NEWS: Document changes in behavior of "print x = 0" and similar
49 expressions.
50
51 2010-11-29 Doug Evans <dje@google.com>
52
53 * python/lib/gdb/printing.py (register_pretty_printer): Change
54 printer-name:subprinter-name to printer-name;subprinter-name.
55 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
56 Ditto.
57 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
58
59 2010-11-29 Tom Tromey <tromey@redhat.com>
60
61 * opencl-lang.c (lval_func_check_synthetic_pointer): New
62 function.
63 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
64 New fields.
65 (value_bits_synthetic_pointer): Declare.
66 * value.c (value_bits_synthetic_pointer): New function.
67 * valprint.c (valprint_check_validity): Handle synthetic
68 pointers.
69 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
70 * valarith.c (value_ptradd): Use set_value_component_location.
71 * p-valprint.c (pascal_object_print_value_fields): Handle
72 synthetic pointers.
73 * jv-valprint.c (java_print_value_fields): Handle synthetic
74 pointers.
75 * dwarf2read.c (dwarf_stack_op_name): Add
76 DW_OP_GNU_implicit_pointer.
77 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
78 arguments. Handle location lists.
79 (fill_in_loclist_baton): New function.
80 (dwarf2_symbol_mark_computed): Use it.
81 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
82 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
83 arguments.
84 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
85 find_location_expression. No longer static. Update all callers.
86 (dwarf_expr_frame_pc): New function.
87 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
88 all callers.
89 (struct piece_closure) <per_cu>: New field.
90 (allocate_piece_closure): Add per_cu argument.
91 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
92 (check_pieced_value_bits): Remove validity argument, add check_for
93 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
94 (check_pieced_value_validity, check_pieced_value_invalid):
95 Update.
96 (check_pieced_synthetic_pointer): New function.
97 (get_frame_address_in_block_wrapper): New function.
98 (indirect_pieced_value): New function.
99 (pieced_value_funcs): Update.
100 (invalid_synthetic_pointer): New function.
101 (dwarf2_evaluate_loc_desc_full): Rename from
102 dwarf2_evaluate_loc_desc. Add byte_offset argument.
103 (dwarf2_evaluate_loc_desc): Rewrite.
104 (dwarf2_loc_desc_needs_frame): Set new field on context.
105 (get_ax_pc): New function.
106 (disassemble_dwarf_expression): Handle
107 DW_OP_GNU_implicit_pointer.
108 * dwarf2expr.h (enum dwarf_value_location)
109 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
110 (struct dwarf_expr_context) <get_frame_pc>: New field.
111 (struct dwarf_expr_piece) <v.ptr>: New field.
112 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
113 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
114 * dwarf2-frame.c (no_get_frame_pc): New function.
115 (execute_stack_op): Set new field on context.
116 * cp-valprint.c (cp_print_value_fields): Handle synthetic
117 pointers.
118
119 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
120
121 PR python/12199
122
123 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
124
125 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
126
127 Fix step_resume_breakpoint unsaved during an infcall.
128 * gdbthread.h (struct thread_control_state): Move here field
129 step_resume_breakpoint ...
130 (struct thread_info): ... from here.
131 * infrun.c (save_infcall_control_state): Reset
132 control.step_resume_breakpoint to NULL.
133 (restore_infcall_control_state, discard_infcall_control_state): Delete
134 control.step_resume_breakpoint.
135 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
136 the moved field.
137
138 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
139
140 Rename and move inferior_thread_state and inferior_status.
141 * gdbthread.h (struct thread_control_state): New struct, move fields
142 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
143 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
144 stop_step and stop_bpstat here from struct thread_info.
145 (struct thread_suspend_state): New struct, move field stop_signal here
146 from struct thread_info.
147 (struct thread_info): Move the fields above from this struct.
148 * inferior.h: Move the inferior_thread_state and inferior_status
149 declarations comment to their definitions at infrun.c.
150 (struct inferior_control_state): New struct, move field stop_soon from
151 struct inferior here.
152 (struct inferior_suspend_state): New empty struct.
153 (struct inferior): New fields control and suspend. Move out field
154 stop_soon.
155 * infrun.c (struct inferior_thread_state): Rename to ...
156 (infcall_suspend_state): ... here. Replace field stop_signal by
157 fields thread_suspend and inferior_suspend.
158 (save_inferior_thread_state): Rename to ...
159 (save_infcall_suspend_state): ... here. New variable inf. Update the
160 code for new fields.
161 (restore_inferior_thread_state): Rename to ...
162 (restore_infcall_suspend_state): ... here. New variable inf. Update
163 the code for new fields.
164 (do_restore_inferior_thread_state_cleanup): Rename to ...
165 (do_restore_infcall_suspend_state_cleanup): ... here.
166 (make_cleanup_restore_inferior_thread_state): Rename to ...
167 (make_cleanup_restore_infcall_suspend_state): ... here.
168 (discard_inferior_thread_state): Rename to ...
169 (discard_infcall_suspend_state): ... here.
170 (get_inferior_thread_state_regcache): Rename to ...
171 (get_infcall_suspend_state_regcache): ... here.
172 (struct inferior_status): Rename to ...
173 (struct infcall_control_state): ... here. Replace fields
174 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
175 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
176 stop_step, stop_bpstat and stop_soon by fields thread_control and
177 inferior_control.
178 (save_inferior_status): Rename to ...
179 (save_infcall_control_state): ... here. Update the code for new
180 fields.
181 (restore_inferior_status): Rename to ...
182 (restore_infcall_control_state): ... here. Update the code for new
183 fields.
184 (do_restore_inferior_status_cleanup): Rename to ...
185 (do_restore_infcall_control_state_cleanup): ... here.
186 (make_cleanup_restore_inferior_status): Rename to ...
187 (make_cleanup_restore_infcall_control_state): ... here.
188 (discard_inferior_status): Rename to ...
189 (discard_infcall_control_state): ... here.
190 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
191 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
192 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
193 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
194 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
195 references to the moved fields and renamed functions.
196
197 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
198
199 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
200 the comment.
201 (save_inferior_thread_state): Reset tp->stop_signal.
202
203 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
204
205 * infcall.c (call_function_by_hand): Remove variable
206 caller_state_cleanup.
207
208 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
209
210 PR breakpoints/12217
211
212 * breakpoint.c (is_marker_spec): Check for NULL.
213
214 2010-11-25 Pedro Alves <pedro@codesourcery.com>
215
216 * breakpoint.h: No longer include python.h or python-internal.h.
217 (struct breakpoint_object): Forward declare.
218 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
219 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
220 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
221 PyObject pointer.
222 (gdbpy_breakpoint_created): Remove casts around py_bp_object
223 accesses.
224
225 2010-11-24 Joel Brobecker <brobecker@adacore.com>
226
227 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
228 only if HAVE_ELF is defined.
229
230 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
231
232 Code cleanup.
233 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
234 (save_inferior_status) <stepping_over_breakpoint>
235 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
236 trap_expected.
237 (struct inferior_status) <step_resume_break_address>: Remove.
238
239 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
240
241 Code cleanup.
242 * infrun.c (struct inferior_status, save_inferior_status)
243 (restore_inferior_status): Group and reorder the fields, comment their
244 groups.
245
246 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
247
248 Code cleanup.
249 * dictionary.c
250 (struct dict_vector) <iter_match_first, iter_match_next>
251 (iter_match_first_hashed, iter_match_next_hashed)
252 (iter_match_first_linear, iter_match_next_linear)
253 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
254 (iter_match_next_hashed, iter_match_first_linear)
255 (iter_match_next_linear): Use symbol_compare_ftype.
256 * dictionary.h: Include symfile.h.
257 (dict_iter_match_first, dict_iter_match_next): Use
258 symbol_compare_ftype.
259 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
260 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
261 (map_matching_symbols_psymtab): Likewise.
262 * symfile.h (symbol_compare_ftype): New typedef.
263 (struct quick_symbol_functions) <map_matching_symbols): Use
264 symbol_compare_ftype.
265
266 2010-11-23 Tom Tromey <tromey@redhat.com>
267
268 * configure: Rebuild.
269 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
270
271 2010-11-19 Tom Tromey <tromey@redhat.com>
272
273 * Makefile.in (SUBDIRS): Add doc.
274 * configure: Rebuild.
275 * configure.ac: Don't configure in doc. Create doc/Makefile.
276
277 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
278
279 PR python/12212
280
281 * python/py-inferior.c (find_thread_object): Check if PIDGET
282 returns 0.
283
284 010-11-22 Joel Brobecker <brobecker@adacore.com>
285
286 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
287
288 2010-11-22 Joel Brobecker <brobecker@adacore.com>
289
290 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
291 Return the original type if the main type portions match rather
292 than when the type themselves match.
293
294 2010-11-22 Joel Brobecker <brobecker@adacore.com>
295
296 * ada-lang.c (ada_template_to_fixed_record_type_1):
297 For dynamic fields, check the field size against the maximum
298 object size.
299
300 2010-11-22 Joel Brobecker <brobecker@adacore.com>
301
302 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
303 function.
304 (mips_irix_n32_stack_tramp_frame): New static global.
305 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
306 list of unwinder.
307
308 2010-11-22 Jerome Guitton <guitton@adacore.com>
309
310 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
311 ATCB symbols.
312
313 2010-11-22 Joel Brobecker <brobecker@adacore.com>
314
315 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
316 if type1 is a typedef.
317
318 2010-11-22 Joel Brobecker <brobecker@adacore.com>
319
320 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
321 "_finalizer" to the list.
322
323 2010-11-22 Joel Brobecker <brobecker@adacore.com>
324
325 * symfile.c: Remove all "#if 0"/"#endif" blocks.
326
327 2010-11-22 Joel Brobecker <brobecker@adacore.com>
328
329 * symfile.c: Add missing second space after period in various comments.
330
331 2010-11-22 Joel Brobecker <brobecker@adacore.com>
332
333 * ada-typeprint.c (print_array_type): Fix formatting in comment.
334 (print_selected_record_field_types): Fix formatting in function
335 documentation.
336
337 2010-11-22 Joel Brobecker <brobecker@adacore.com>
338
339 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
340 in name of "show ravenscar" prefix command name.
341
342 2010-11-22 Joel Brobecker <brobecker@adacore.com>
343
344 * ravenscar-thread.c (show_ravenscar_task_switching_command):
345 Add missing '\n' in output.
346
347 2010-11-22 Joel Brobecker <brobecker@adacore.com>
348
349 * ravenscar-thread.c (running_thread_name): Change value.
350 (read_thread_id): Remove advance declaration.
351 (get_running_thread_msymbol): New function.
352 (has_ravenscar_runtime): Use get_running_thread_msymbol to
353 compute msym_running_thread.
354 (get_running_thread_id): Renames read_thread_id. Slight modifications
355 to not take any argument anymore, using get_running_thread_msymbol
356 to determine which symbol to use instead.
357 (ravenscar_running_thread): Use get_running_thread_id instead of
358 read_thread_id.
359
360 2010-11-22 Joel Brobecker <brobecker@adacore.com>
361
362 * ravenscar-sparc-thread.c (supply_register_at_address):
363 Fix passing of buf in call to regcache_raw_supply.
364
365 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
366
367 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
368
369 2010-11-22 Tom Tromey <tromey@redhat.com>
370
371 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
372
373 2010-11-19 Keith Seitz <keiths@redhat.com>
374
375 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
376 Remove extraneous '/' after $(DESTDIR).
377 (PYTHON_INSTALL_DIR): Likewise.
378
379 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
380
381 Fix stale memory references.
382 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
383 xfree, new comment.
384
385 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
386 Tom Tromey <tromey@redhat.com>
387
388 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
389 (.PHONY): Remove for .y outputs.
390
391 2010-11-19 Will Drewry <wad@google.com>
392 Tavis Ormandy <taviso@google.com>
393 Jan Kratochvil <jan.kratochvil@redhat.com>
394
395 * dwarf2read.c (decode_locdesc): Enforce location description stack
396 boundaries.
397
398 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
399
400 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
401 instruction is found.
402
403 2010-11-17 Tom Tromey <tromey@redhat.com>
404
405 * value.c (value_entirely_optimized_out): Check the
406 'check_any_valid' field.
407
408 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
409
410 * ada-lang.c (modify_general_field): Remove.
411 (make_array_descriptor): Replace all modify_general_field calls by
412 modify_field.
413 * value.c (modify_field): Update comment. New variable bytesize.
414 Normalize BITPOS. Initialize BYTESIZE, use it.
415
416 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
417
418 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
419 elements after xfree.
420
421 2010-11-16 Tom Tromey <tromey@redhat.com>
422
423 * gdb-add-index.sh: Really remove.
424
425 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
426
427 Code cleanup.
428 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
429 (init_one_comp_unit): ... this one.
430 (prepare_one_comp_unit): New prototype.
431 (dw2_require_line_header, process_psymtab_comp_unit): Use
432 init_one_comp_unit.
433 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
434 (load_partial_comp_unit): Remove variable attr. Use
435 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
436 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
437 prepare_one_comp_unit.
438 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
439 Use prepare_one_comp_unit.
440 (alloc_one_comp_unit): Rename to ...
441 (init_one_comp_unit): ... here and remove there calloc, new parameter
442 cu.
443 (prepare_one_comp_unit): New function.
444
445 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
446
447 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
448 possible used of uninitialized variable.
449
450 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
451
452 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
453 (rs6000_gdbarch_init): Call it.
454
455 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
456
457 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
458 instructions if debugging an E500 binary.
459
460 2010-11-12 Tom Tromey <tromey@redhat.com>
461
462 * varobj.c (value_get_print_value): Rearrange. Pass stream to
463 apply_varobj_pretty_printer.
464 * c-lang.c: Include exceptions.h.
465 (c_get_string): Throw MEMORY_ERROR when appropriate.
466 * python/py-prettyprint.c (enum string_repr_result): New.
467 (print_stack_unless_memory_error): New function.
468 (print_string_repr): Change return type. Use
469 print_stack_unless_memory_error.
470 (print_children): Use print_stack_unless_memory_error.
471 (apply_val_pretty_printer): Update. Don't print children if
472 string representation threw an exception.
473 (apply_varobj_pretty_printer): Add 'stream' argument. Use
474 print_stack_unless_memory_error.
475 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
476 globals.
477 (_initialize_python): Initialize them.
478 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
479 gdbpy_convert_exception.
480 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
481 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
482 (gdbpy_convert_exception): Declare.
483 (apply_varobj_pretty_printer): Update.
484 * python/py-utils.c (gdbpy_convert_exception): New function.
485
486 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
487
488 * mi/mi-main.c (mi_cmd_target_detach): Accept new
489 thread-group id format.
490
491 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
492
493 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
494
495 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
496
497 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
498 NULL.
499 (BPPY_SET_REQUIRE_VALID): Ditto.
500 (bpnum_is_valid): Delete function.
501 (bppy_get_visibility): New function.
502 (bppy_new): Parse for, and validate internal keyword. Pass
503 internal keyword to breakpoint or watchpoint functions.
504 (build_bp_list): New function.
505 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
506 iterate_over_breakpoints.
507 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
508 look-aside vector.
509 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
510 to internal breakpoint chain.
511
512 * breakpoint.c (set_breakpoint_number): New function.
513 (breakpoint_1): Check if breakpoint number is more than zero.
514 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
515 (create_breakpoint_sal): Take a new parameter called internal.
516 Call set_breakpoint_number with internal parameter. Do not
517 mention internal breakpoints. All callers updated.
518 (create_breakpoint): Ditto.
519 (create_breakpoints_sal): Ditto.
520 (watch_command_1): Ditto.
521 (watch_command_wrapper): Take a new parameter called internal.
522 All callers updated.
523 (rwatch_command_wrapper): Ditto.
524 (awatch_command_wrapper): Ditto.
525 (save_breakpoints): Update breakpoint save condition check.
526 (iterate_over_breakpoints): New function.
527 * breakpoint.h: Add conditional python includes. Add py_bp_object
528 and comment to struct breakpoint. Update all callers.
529 * defs.h: Add PyObject definition for GDB builds without Python.
530
531 2010-11-10 Doug Evans <dje@google.com>
532
533 * python/lib/gdb/command/pretty_printers.py
534 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
535
536 * value.c (set_value_enclosing_type): Renamed from
537 value_change_enclosing_type. All callers updated.
538 * value.h (set_value_enclosing_type): Update.
539 * valops.c (value_full_object): Always return a copy if we need to
540 make changes to the input value.
541
542 2010-11-09 Pedro Alves <pedro@codesourcery.com>
543
544 * breakpoint.c (watch_command_1): Get a pointer of the lazy
545 version of the expression's value, even if reading the value from
546 memory fails. When creating a -location watchpoint, get the
547 value's address from the lazy value pointer.
548
549 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
550
551 * infrun.c (restore_inferior_thread_state): Use
552 discard_inferior_thread_state to free the data.
553 (discard_inferior_thread_state): xfree also siginfo_data.
554
555 2010-11-05 Doug Evans <dje@google.com>
556
557 Make gdb.parameter("directories") work.
558 New command "set directories".
559 * NEWS: Document them.
560 * source.c (set_directories_command): New function.
561 (show_directories_1): Renamed from show_directories.
562 All callers updated.
563 (show_directories_command): New function.
564 (_initialize_source): Install "directories" as a set/show
565 variable instead of just a show command.
566
567 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
568
569 * NEWS: Mention OpenCL C language support.
570 * Makefile.in (SFILES): Add opencl-lang.c.
571 (COMMON_OBS): Add opencl-lang.o.
572 * opencl-lang.c: New File
573 * defs.h (enum language): Add language_opencl.
574 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
575 IBM XL C OpenCL compiler.
576 * c-lang.h: Include "parser-defs.h".
577 (evaluate_subexp_c): Declare.
578 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
579 (c_op_print_tab): Add declaration.
580 * eval.c (binop_promote): Handle language_opencl.
581 * c-exp.y: Lookup the primitive types instead of referring to the
582 builtins.
583
584 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
585
586 Fix configure --enable-plugins --without-python.
587 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
588 * configure: Regenerate.
589
590 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
591
592 * solib.c (solib_read_symbols): Call exception_fprintf even without
593 FROM_TTY. Print also so->so_name.
594
595 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
596
597 * gdbtypes.h (struct rank): Created subrank.
598 * gdbtypes.c: Initialized subrank for all
599 'BADNESS' constants.
600 (distance_to_ancestor): New function.
601 (is_ancestor): Use distance_to_ancestor.
602 (is_public_ancestor): Ditto.
603 (sum_ranks): Handle subrank.
604 (compare_ranks): Ditto.
605 (rank_one_type): Subrank base conversions.
606
607 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
608
609 * gdbtypes.h: Create struct rank.
610 Convert all 'BADNESS' macros to const struct rank declarations.
611 (sum_ranks): New function.
612 (compare_ranks): New function.
613 * valops.c (find_oload_champ): Updated.
614 (classify_oload_match): Use compare_ranks.
615 Improved comments.
616 (compare_parameters): Use compare_ranks.
617 * gdbtypes.c: Initialize 'BADNESS' constants.
618 (sum_ranks): New function.
619 (compare_ranks): New function.
620 (compare_badness): Use compare_ranks.
621 (rank_function): Use global constants instead of literals.
622 (rank_one_type): Ditto.
623 Return struct rank.
624 Use sum_ranks.
625
626 2010-11-04 Doug Evans <dje@google.com>
627
628 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
629 (find_pretty_printer): Fix comments.
630
631 2010-11-04 Hui Zhu <teawater@gmail.com>
632
633 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
634
635 2010-11-03 Joel Brobecker <brobecker@adacore.com>
636
637 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
638 and `len' declaration and computation inside block where they
639 are being used.
640
641 2010-11-03 Joel Brobecker <brobecker@adacore.com>
642
643 * valprint.c (val_print_array_elements): Put back handling of
644 empty arrays.
645
646 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
647
648 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
649 DIE and set the length of the type.
650 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
651 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
652 return 0 if the corresponding bounds of the type are undefined.
653 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
654 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
655 (val_print_array_elements): Use get_array_bounds to compute the number
656 of array elements instead of dividing the length of the array by the
657 length of the element types.
658 * valarith.c (vector_binop): Likewise.
659 * valops.c (value_cast): Likewise.
660 * c-valprint.c (c_val_print): Likewise.
661 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
662
663 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
664
665 * valarith.c (value_pos, value_neg, value_complement): Handle
666 vector types.
667 * valops.c (value_one): Likewise.
668
669 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
670
671 * value.h (value_non_lval): Declare.
672 * value.c (value_non_lval): New function.
673 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
674 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
675 non-lvalue.
676
677 2010-11-02 Doug Evans <dje@google.com>
678
679 New python module gdb.printing, and new commands info pretty-printer,
680 enable pretty-printer, disable pretty-printer.
681 * NEWS: Mention them.
682 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
683 gdb/command/__init__.py, gdb/command/pretty_printers.py.
684 * python/lib/gdb/__init__.py: Install pretty-printer commands.
685 * python/lib/gdb/printing.py: New file.
686 * python/lib/gdb/command/__init__.py: New file.
687 * python/lib/gdb/command/pretty_printers.py: New file.
688
689 2010-11-02 Tom Tromey <tromey@redhat.com>
690
691 * NEWS: Mention Guile removal.
692 * defs.h (enum language) <language_scm>: Remove.
693 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
694 scm-valprint.c.
695 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
696 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
697 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
698 Remove.
699
700 2010-11-02 Doug Evans <dje@google.com>
701
702 * top.c: #include "python/python.h".
703 (gdb_init): Add a comment regarding initialize_all_files.
704 Call finish_python_initialization at the end.
705 * python/python.h (finish_python_initialization): Declare.
706 * python/python.c (finish_python_initialization): New function.
707 (_initialize_python): Move python-implemented initialization there
708 and call it.
709 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
710
711 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
712
713 Revert:
714 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
715 Pedro Alves <pedro@codesourcery.com>
716 * gdbthread.h (currently_stepping): New declaration.
717 * infrun.c (currently_stepping): Remove the forward declaration.
718 (currently_stepping): Make it global.
719 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
720 variables tp and step, initialized them. Pass STEP to to_resume.
721 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
722 * remote.c (currently_stepping_callback): New.
723 (remote_vcont_resume)
724 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
725 New variable tp. Call currently_stepping_callback and step such
726 thread.
727
728 2010-11-01 Hui Zhu <teawater@gmail.com>
729
730 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
731
732 2010-10-28 Hui Zhu <teawater@gmail.com>
733
734 * tracepoint.c (trace_save): Change utp->actions to
735 utp->step_actions.
736
737 2010-10-26 Joel Brobecker <brobecker@adacore.com>
738
739 * (_FILE_OFFSET_BITS): Fix typo in comment.
740
741 2010-10-26 Joel Brobecker <brobecker@adacore.com>
742
743 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
744 (PyEval_InitThreads): Remove duplicate. Define as nothing.
745 (PyEval_ReleaseLock): Define as nothing.
746
747 2010-10-26 Joel Brobecker <brobecker@adacore.com>
748
749 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
750 by call to FILENAME_CMP.
751
752 2010-10-26 Joel Brobecker <brobecker@adacore.com>
753
754 * dictionary.c (dict_hash): Move assignment out of if condition.
755
756 2010-10-22 Jie Zhang <jie@codesourcery.com>
757
758 * Makefile.in (install): Remove dependency of install-only and
759 recursively invoke make for install-only.
760 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
761 (install): Pass FLAGS_TO_PASS when recursively make install-only.
762
763 2010-10-20 Hui Zhu <teawater@gmail.com>
764
765 * tracepoint.c (tfile_get_traceframe_address): Call
766 extract_signed_integer.
767 (tfile_trace_find): Call extract_signed_integer and
768 extract_unsigned_integer. Change data_size to unsigned int.
769 (tfile_fetch_registers): Call extract_unsigned_integer.
770 (tfile_xfer_partial): Ditto.
771 (tfile_get_trace_state_variable_value): Call
772 extract_signed_integer and extract_unsigned_integer.
773
774 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
775
776 * remote.c (remote_get_threadlist): If we got empty
777 response, bail out immediately, and don't emit any
778 warnings.
779
780 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
781
782 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
783 for "mov pc, REG" as well.
784 (thumb_instruction_changes_pc): Likewise.
785
786 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
787
788 PR C++/11500:
789 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
790 * eval.c (evaluate_subexp_standard): Check for overload of
791 'operator->'.
792 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
793 (value_x_unop): Ditto.
794 * valops.c: Include "exceptions.h".
795 (find_overload_match): Throw NOT_FOUND_ERROR.
796 (value_struct_elt): Ditto.
797
798 2010-10-19 Tom Tromey <tromey@redhat.com>
799
800 * python/py-cmd.c (cmdpy_function): Unreference exception state.
801
802 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
803
804 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
805 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
806 for conversion.
807 Make all other conversions illegal.
808
809 2010-10-18 Doug Evans <dje@google.com>
810
811 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
812 assumptions of when this case happens. Print "<unnamed typedef>".
813
814 2010-10-18 Tom Tromey <tromey@redhat.com>
815
816 * valprint.c (val_print_string): Pass 'encoding' to
817 LA_PRINT_STRING.
818
819 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
820
821 Fix the `stopped language detection' testcase for gcc-4.5.
822 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
823 * symfile.c (set_initial_language): Move variable filename to a more
824 inner block. Prefer LANGUAGE_OF_MAIN.
825 * symtab.c (language_of_main): New variable.
826 (set_main_name): Always reset LANGUAGE_OF_MAIN.
827 * symtab.h (language_of_main): New declaration.
828
829 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
830 Pedro Alves <pedro@codesourcery.com>
831
832 * gdbthread.h (currently_stepping): New declaration.
833 * infrun.c (currently_stepping): Remove the forward declaration.
834 (currently_stepping): Make it global.
835 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
836 variables tp and step, initialized them. Pass STEP to to_resume.
837 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
838 * remote.c (currently_stepping_callback): New.
839 (remote_vcont_resume)
840 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
841 New variable tp. Call currently_stepping_callback and step such
842 thread.
843
844 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
845
846 * infrun.c (follow_exec): Replace symbol_file_add_main by
847 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
848 breakpoint_re_set.
849 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
850 clear_symtab_users.
851 * objfiles.c (free_all_objfiles): Likewise.
852 * remote-m32r-sdi.c (m32r_load): Likewise.
853 * solib-som.c (som_solib_create_inferior_hook): Likewise.
854 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
855 clear_symtab_users with ADD_FLAGS.
856 (reread_symbols): Use parameter 0 for clear_symtab_users.
857 (clear_symtab_users): New parameter add_flags. Do not call
858 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
859 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
860 * symtab.h (clear_symtab_users): New parameter add_flags.
861
862 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
863
864 Fix GCC false warning.
865 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
866
867 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
868
869 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
870 display of type of method arguments.
871
872 2010-10-15 Tom Tromey <tromey@redhat.com>
873
874 PR python/11948:
875 * varobj.c (value_get_print_value): Use val_print_string to print
876 lazy strings.
877 * python/py-prettyprint.c (print_string_repr): Use
878 val_print_string to print lazy strings. Fix cleanup logic.
879 (print_children): Likewise.
880 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
881 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
882 Change return type to 'void', add 'addr' argument.
883 * value.h (val_print_string): Update.
884 * valprint.c (val_print_string): Add 'encoding' argument.
885 * printcmd.c (print_formatted): Update.
886 * p-valprint.c (pascal_val_print): Update.
887 * m2-valprint.c (print_unpacked_pointer): Update.
888 (m2_print_array_contents): Likewise.
889 * jv-valprint.c (java_value_print): Update.
890 * f-valprint.c (f_val_print): Update.
891 * c-valprint.c (c_val_print): Update.
892 * auxv.c (fprint_target_auxv): Update.
893
894 2010-10-15 Doug Evans <dje@google.com>
895 Jan Kratochvil <jan.kratochvil@redhat.com>
896
897 PR exp/12117
898 * gdbtypes.c (check_typedef): Clean up function comment.
899 Keep track of instance flags as we strip typedefs and create a new
900 type to preserve them if necessary.
901 * gdbtypes.h (type) <instance_flags>: Extend the comment.
902
903 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
904
905 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
906
907 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
908
909 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
910 * gdbtypes.c (rank_one_type): Move type comparison code out of here
911 to...
912 (types_equal): ...here. And changed it as follows:
913 Outside of typedefs type must be of the same TYPE_CODE.
914 When compairing two pointers or references they are equal if their
915 targets are equal.
916 Correct pointer conversions.
917
918 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
919
920 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
921 having fields without names.
922
923 2010-10-13 Tom Tromey <tromey@redhat.com>
924
925 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
926
927 2010-10-13 Doug Evans <dje@google.com>
928
929 New python module gdb.types.
930 * NEWS: Document it.
931 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
932 * python/lib/gdb/types.py: New file.
933
934 * c-typeprint.c: Whitespace cleanup.
935 (cp_type_print_method_args): Remove unnecessary forward decl.
936 (cp_type_print_derivation_info): Ditto.
937 (c_type_print_varspec_prefix): Mark as static at definition.
938 (c_type_print_modifier): Fix arg descriptions.
939
940 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
941
942 * python/py-breakpoint.c (bppy_set_condition): New comment.
943 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
944 failed PyUnicode_Decode.
945 (cmdpy_completer): Skip element for failed
946 python_string_to_host_string.
947 (cmdpy_init): Return -1 on failed python_string_to_host_string.
948 * python/py-frame.c (frapy_read_var): Extend the function comment.
949 * python/py-function.c (fnpy_init): Return -1 on failed
950 python_string_to_host_string.
951 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
952 the function comment.
953 (infpy_search_memory): Extend the function comment. Remove the
954 PyErr_SetString call on already set error state.
955 * python/py-param.c (set_parameter_value): Extend the function
956 comment. Return -1 on failed python_string_to_host_string, twice.
957 (set_attr): Extend the function comment.
958 (compute_enum_values): Extend the function comment. New variable
959 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
960 failed python_string_to_host_string.
961 (get_doc_string): Call gdbpy_print_stack on failed
962 python_string_to_host_string.
963 (parmpy_init): Extend the function comment.
964 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
965 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
966 failed python_string_to_host_string.
967 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
968 (valpy_binop, valpy_richcompare): Extend the function comment.
969 * python/python.c
970 (struct python_env) <error_type, error_value, error_traceback>: New
971 fields.
972 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
973 (ensure_python_env): Call PyErr_Fetch.
974 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
975 failed convert_value_from_python.
976 (value_get_print_value): Call gdbpy_print_stack on failed
977 python_string_to_target_python_string.
978
979 2010-10-12 Tom Tromey <tromey@redhat.com>
980
981 * python/py-prettyprint.c (search_pp_list): Fix error checking.
982
983 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
984
985 * gdbtypes.c (do_is_ancestor): New function.
986 (is_ancestor): Use do_is_ancestor.
987 (is_public_ancestor): Use do_is_ancestor.
988
989 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
990
991 * ser-go32.c (struct dos_ops): Add missing fdopen field.
992
993 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
994
995 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
996
997 2010-10-11 Doug Evans <dje@google.com>
998
999 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1000 the address space id too.
1001
1002 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1003
1004 Fix attaching to re-prelinked executables on ppc64.
1005 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1006 initialize it, try to adjust FILESZ field by it.
1007
1008 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1009
1010 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1011 messages if info_verbose.
1012
1013 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1014
1015 * valops.c (value_cast): Handle vector types.
1016 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1017
1018 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1019
1020 * arm-tdep.c (thumb_expand_immediate): New function.
1021 (thumb_instruction_changes_pc): Likewise.
1022 (thumb2_instruction_changes_pc): Likewise.
1023 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1024 prologue parsing. Improved support for optimized code.
1025 (thumb_scan_prologue): Do not reply on line-number information,
1026 use same heuristics as arm_scan_prologue insead.
1027 (skip_prologue_function): Accept functions
1028 "__tls_get_addr" and "__aeabi_read_tp".
1029
1030 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1031 Daniel Jacobowitz <dan@codesourcery.com>
1032
1033 * arm-tdep.c (thumb_in_function_epilogue_p)
1034 (arm_in_function_epilogue_p): New.
1035 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1036 gdbarch_in_function_epilogue_p callback.
1037
1038 2010-10-07 Doug Evans <dje@google.com>
1039
1040 * cc-with-index.sh (output_file): Default to a.out.
1041
1042 * dwarf2read.c (mapped_index): Rename member index_table to
1043 symbol_table and index_table_slots to symbol_table_slots.
1044 All uses updated.
1045 (create_symbol_hash_table): Renamed from create_index_table.
1046 All callers updated.
1047 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1048 (write_hash_table): Rename local index_table to symbol_hash_table.
1049
1050 * addrmap.h (addrmap_foreach_fn): New typedef.
1051 (addrmap_foreach): Declare.
1052 * addrmap.c (struct addrmap_funcs): New member foreach.
1053 (addrmap_foreach): New function.
1054 (addrmap_fixed_foreach): New function.
1055 (addrmap_fixed_funcs): Update.
1056 (struct mutable_foreach_data): New struct.
1057 (addrmap_mutable_foreach_worker): New function.
1058 (addrmap_mutable_foreach): New function.
1059 (addrmap_mutable_funcs): Update.
1060
1061 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1062
1063 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1064 more cases.
1065
1066 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1067
1068 * ada-lang.c (full_match): Declare.
1069 (ada_match_name): Rename to match_name (we should avoid prefixing static
1070 symbols with "ada_").
1071 (match_name): New name for ada_match_name.
1072 (struct ada_psym_data): Remove and replace with...
1073 (struct match_data): User data for map_matching_symbols.
1074 (ada_add_psyms): Remove.
1075 (aux_add_nonlocal_symbols): New function, used as callback for
1076 map_matching_symbols.
1077 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1078 symbols.
1079 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1080 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1081 Rework to use map_matching_symbols instead of map_ada_symtabs.
1082 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1083 * psymtab.c: Include dependency on dictionary.h.
1084 (match_partial_symbol): New function.
1085 (ada_lookup_partial_symbol): Remove.
1086 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1087 (map_matching_symbols_psymtab): New function.
1088 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1089 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1090
1091 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1092
1093 * ada-lang.c (ada_match_name): Use new API for wild_match.
1094 (wild_match): Change API to be consistent with that of strcmp_iw;
1095 return 0 for a match, and switch operand order.
1096 (full_match): New function.
1097 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1098 matching to allow use of hashing.
1099 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1100 iter_name_next ot iter_match_first, iter_match_next.
1101 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1102 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1103 (iter_name_first_linear): Replace with iter_match_first_linear.
1104 (iter_name_next_linear): Replace with iter_match_next_linear.
1105 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1106 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1107 (dict_iter_match_first): New function.
1108 (dict_iter_match_next): New function.
1109 (dict_hash): New function.
1110 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1111 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1112
1113 2010-10-06 Doug Evans <dje@google.com>
1114
1115 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1116
1117 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1118
1119 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1120
1121 2010-10-06 Doug Evans <dje@google.com>
1122
1123 * Makefile.in (REQUIRED_SUBDIRS): New var.
1124 (subdir_do): Verify required subdir Makefiles exist.
1125
1126 Create subdir data-directory.
1127 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1128 data-directory/Makefile.in.
1129 (SUBDIRS): Add data-directory.
1130 (all): Remove xml-syscall-copy dependency.
1131 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1132 stamp-syscalls.
1133 (xml-syscall-install): Moved to data-directory/Makefile.in as
1134 install-syscalls.
1135 (install-only): Remove xml-syscall-install dependency.
1136 (all-data-directory): New rule.
1137 (data-directory/Makefile): New rule.
1138 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1139 * configure: Regenerate.
1140 * data-directory/Makefile.in: New file.
1141 * python/lib/gdb/__init__.py: New file.
1142
1143 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1144
1145 Fix ARI warnings in advance_wild_match.
1146 * ada-lang.c (advance_wild_match): Delete local variable t2.
1147 Adjust code accordingly. Minor reformatting.
1148
1149 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1150
1151 * gdbtypes.h (struct main_type): Remove flag_nottext.
1152 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1153 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1154 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1155 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1156 of TYPE_FLAG_NOTTEXT.
1157 (init_type): Remove the initialization of the flag_nottext field.
1158 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1159 TYPE_FLAG_NOTTEXT.
1160 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1161
1162 2010-10-04 Doug Evans <dje@google.com>
1163
1164 * cc-with-index.sh: New file.
1165
1166 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1167 function comment.
1168 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1169 (create_cus_from_index, create_addrmap_from_index): Ditto.
1170 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1171 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1172 (dw2_do_expand_symtabs_matching): Ditto.
1173 (eq_strtab_entry, create_strtab, add_string): Ditto.
1174 (hash_strtab_entry): Ditto.
1175 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1176 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1177 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1178 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1179 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1180 (write_psymtabs_to_index): Ditto.
1181
1182 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1183
1184 * ada-lang.c: #include "value.h".
1185 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1186 arguments. Implement using value_allocate_space_in_inferior
1187 instead of allocating memory from the stack.
1188 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1189 calls to ensure_lval.
1190 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1191 calls to make_array_descriptor and ensure_lval.
1192 * ada-lang.h (ada_convert_actual): Update declaration.
1193 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1194
1195 2010-10-04 Doug Evans <dje@google.com>
1196
1197 * python/python.c (_initialize_python): Define new function
1198 GdbSetPythonDirectory in python. Use it to update sys.path and
1199 gdb.__path__.
1200
1201 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1202
1203 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1204 incorporating and generalizing print_record_field_types.
1205 (print_record_field_types): Change return value and update comment.
1206 Re-implement using print_selected_record_field_types.
1207 (print_choices): Print "=>" here.
1208 Handle case of unencoded variant branch.
1209 (print_variant_clauses): Reformat comment.
1210 Special-case unencoded variant branch.
1211
1212 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1213
1214 * ada-lang.c (wild_match): Reimplement.
1215 Change API to eliminate unused length argument, reverse arguments and
1216 make 0 the 'true' return value.
1217 (advance_wild_match): New auxiliary function for wild_match to improve
1218 readability.
1219 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1220 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1221 API for wild_match.
1222 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1223 wild_match.
1224 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1225
1226 2010-10-01 Doug Evans <dje@google.com>
1227
1228 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1229 for `save gdb-index' command.
1230
1231 2010-10-01 Tom Tromey <tromey@redhat.com>
1232
1233 * symfile.h (allocate_symtab): Update.
1234 * symfile.c (allocate_symtab): Make 'filename' const.
1235 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1236 (add_psymbol_to_list): Likewise.
1237 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1238 const.
1239 (add_psymbol_to_list): Update.
1240 * mdebugread.c (new_symtab): Make 'name' const.
1241 (psymtab_to_symtab_1): Make 'filename' const.
1242 * elfread.c (elfstab_offset_sections): Update.
1243 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1244 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1245 (psymtab_include_file_name): Update.
1246 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1247 * buildsym.h (start_subfile): Update.
1248 * buildsym.c (start_subfile): Make arguments const.
1249
1250 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1251
1252 * fork-child.c (breakup_args): Fix crash if shell forking is
1253 disabled at compile time.
1254
1255 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1256
1257 * ada-lang.c (desc_bounds): Add handling of the case where
1258 the P_BOUNDS field is a pointer to a stub.
1259 (desc_data_target_type): Same for P_ARRAY field.
1260 (ada_check_typedef): Strip the typedef layers from the type
1261 found by ada_find_any_type.
1262
1263 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1264
1265 * sparc-tdep.c (sparc32_frame_align): New function.
1266 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1267 * sparc64-tdep.c (sparc64_frame_align): New function.
1268 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1269
1270 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1271
1272 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1273
1274 2010-09-30 Tom Tromey <tromey@redhat.com>
1275
1276 * symfile.h (struct sym_fns) <next>: Remove.
1277 (add_symtab_fns): Update.
1278 * symfile.c (sym_fns_ptr): New typedef.
1279 (symtab_fns): Now a VEC.
1280 (add_symtab_fns): Update. Change argument type.
1281 (find_sym_fns): Update. Change return type.
1282 (get_symfile_segment_data): Update.
1283 * objfiles.h (struct objfile) <sf>: Now const.
1284 * somread.c (som_sym_fns): Now const. Update.
1285 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1286 * mipsread.c (ecoff_sym_fns): Now const. Update.
1287 * machoread.c (macho_sym_fns): Now const. Update.
1288 * elfread.c (elf_sym_fns): Now const. Update.
1289 (elf_sym_fns_gdb_index): Likewise.
1290 * dbxread.c (aout_sym_fns): Now const. Update.
1291 * coffread.c (coff_sym_fns): Now const. Update.
1292
1293 2010-09-30 Tom Tromey <tromey@redhat.com>
1294
1295 * value.c (value_primitive_field): Take 'offset' into account for
1296 packed field.
1297
1298 2010-09-30 Tom Tromey <tromey@redhat.com>
1299
1300 * completer.c (count_struct_fields): Handle anonymous structs and
1301 unions.
1302 (add_struct_fields): Likewise.
1303
1304 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1305
1306 Fix printing parameters of inlined functions.
1307 * ada-lang.c (is_known_support_routine)
1308 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1309 for find_frame_funname.
1310 * python/py-frame.c (frapy_name): Likewise.
1311 * stack.c (find_frame_funname): New parameter funcp. Update the
1312 function comment. Fill it in.
1313 (print_frame): New variable func. Initialize it by
1314 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1315 FUNC as the parameter of print_args_stub.
1316 * stack.h (find_frame_funname): New parameter funcp. Remove the
1317 function declaration comment.
1318
1319 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1320
1321 PR corefiles/12071.
1322 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1323 tp. Iterate INFERIOR_LIST and call target_has_execution.
1324
1325 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1326
1327 Fix GDB crash on inferior calls with self-referencing classes.
1328 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1329 member fields.
1330
1331 2010-09-29 Doug Evans <dje@google.com>
1332
1333 Workaround for gcc/45682.
1334 * dwarf2read.c (partial_die_info): New fields fixup_called,
1335 linkage_name.
1336 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1337 Move definition next to use. Use linkage_name to determine if class
1338 is in a namespace. All callers updated.
1339 (fixup_partial_die): Return early if already called.
1340 Set fixup_called when done.
1341 (guess_full_die_structure_name): New function.
1342 (determine_prefix): Call it for class/struct/union dies if c++ and
1343 .debug_types section is present and parent is DW_TAG_compile_unit.
1344
1345 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1346
1347 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1348 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1349
1350 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1351
1352 * NEWS: Announce Ravenscar Profile support.
1353
1354 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1355 Jerome Guitton <guitton@adacore.com>
1356
1357 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1358 New files.
1359 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1360 ravenscar-sparc-thread.o to gdb_target_obs.
1361
1362 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1363
1364 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1365 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1366
1367 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1368
1369 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1370 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1371 skip_main_prologue method.
1372
1373 2010-09-27 Tom Tromey <tromey@redhat.com>
1374
1375 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1376 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1377 Only emit a given psymbol once.
1378 (struct signatured_type_index_data) <psyms_seen>: New field.
1379 (write_one_signatured_type): Update.
1380 (cleanup_htab): New function.
1381 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1382 version to 3.
1383 (save_gdb_index_command): Update index documentation.
1384
1385 2010-09-27 Tom Tromey <tromey@redhat.com>
1386
1387 * bcache.c (expand_hash_table): Use hash_function, not hash.
1388
1389 2010-09-27 Tom Tromey <tromey@redhat.com>
1390
1391 * gdb_wchar.h: Change minimum libiconv to 0x108.
1392
1393 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1394
1395 Fix lost siginfo_t for inferior calls.
1396 * infrun.c
1397 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1398 (save_inferior_thread_state): New variables regcache, gdbarch and
1399 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1400 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1401 using REGCACHE.
1402 (restore_inferior_thread_state): New variables regcache and gdbarch.
1403 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1404 REGCACHE. Free also SIGINFO_DATA.
1405
1406 2010-09-24 Tom Tromey <tromey@redhat.com>
1407
1408 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1409 MAYBE_SWAPs.
1410 (dw2_map_symbol_names): Likewise.
1411
1412 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1413
1414 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1415 discard_cleanups do_cleanups.
1416
1417 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1418
1419 PR gdb/11842
1420
1421 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1422 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1423 si_code is < 0. Check for si_code == SI_TIMER before checking for
1424 si_code < 0.
1425
1426 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1427
1428 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1429
1430 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1431
1432 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1433 debugging a core file.
1434
1435 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1436
1437 Code cleanup.
1438 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1439 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1440 xfree.
1441 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1442 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1443 Remove.
1444 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1445 Remove the conditional.
1446 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1447
1448 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1449
1450 * main.c: Include objfiles.h.
1451 (captured_main): New variable objfile. Call
1452 load_auto_scripts_for_objfile for ALL_OBJFILES.
1453
1454 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1455
1456 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1457 DW_TAG_constant.
1458
1459 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1460
1461 * dwarf2read.c (scan_partial_symbols): Add handling of
1462 DW_TAG_constant DIEs.
1463 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1464
1465 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1466
1467 * configure.ac: Add support for --enable-gdbserver.
1468 * configure: Regenerate.
1469
1470 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1471
1472 PR C++/12028
1473 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1474 'old_cleanups' reassignment.
1475
1476 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1477
1478 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1479 characters.
1480
1481 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1482
1483 PR mi/11407
1484 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1485 read_var_value and common_val_print and print a warning.
1486
1487 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1488
1489 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1490 keep the list in alphabetical order. Use longer e-mail address.
1491
1492 2010-09-15 Tom Tromey <tromey@redhat.com>
1493
1494 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1495
1496 2010-09-15 Tom Tromey <tromey@redhat.com>
1497
1498 * charset.c (iconv_open): New define.
1499 (iconv): Likewise.
1500 (iconv_close): Likewise.
1501 (phony_iconv_open): Add "phony_" prefix.
1502 (phony_iconv_close): Likewise.
1503 (phony_iconv): Likewise.
1504 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1505 Change how INTERMEDIATE_ENCODING is defined.
1506
1507 2010-09-15 Doug Evans <dje@google.com>
1508
1509 * dwarf2read.c (struct die_info): Fix comment.
1510
1511 2010-09-15 Alan Modra <amodra@gmail.com>
1512
1513 PR 4606
1514 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1515 than setting SEC_NEVER_LOAD on sections that need not be copied.
1516
1517 2010-09-14 Tom Tromey <tromey@redhat.com>
1518
1519 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1520 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1521 Declare.
1522 * symfile.h (extend_psymbol_list): Remove.
1523 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1524 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1525 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1526
1527 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1528
1529 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1530 Update the comment.
1531
1532 2010-09-14 Tom Tromey <tromey@redhat.com>
1533
1534 PR symtab/8399:
1535 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1536 for unrecognized frame base expression.
1537
1538 2010-09-14 Tom Tromey <tromey@redhat.com>
1539
1540 PR exp/11803:
1541 * value.c (value_static_field): Use value_of_variable.
1542
1543 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1544
1545 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1546 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1547
1548 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1549
1550 PR symtab/11992:
1551 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1552 UNKNOWN_CPP_NAME.
1553
1554 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1555
1556 * NEWS: Add x86-lynxos to the list of platforms supported by
1557 gdbserver.
1558
1559 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1560
1561 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1562
1563 2010-09-13 Tom Tromey <tromey@redhat.com>
1564
1565 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1566
1567 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1568
1569 * i386-tdep.c (i386_ymm_type): Set type name to
1570 builtin_type_vec256i.
1571
1572 2010-09-12 Michael Snyder <msnyder@vmware.com>
1573
1574 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1575
1576 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1577
1578 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1579
1580 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1581
1582 * amd64-tdep.c (amd64_register_name): Removed.
1583 (amd64_init_abi): Don't call set_gdbarch_register_name.
1584
1585 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1586
1587 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1588
1589 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1590 Paul Bolle <pebolle@tiscali.nl>
1591
1592 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1593 * cli-logging.c (struct saved_output_files) <targerr>: New.
1594 (set_logging_redirect, pop_output_files, handle_redirections):
1595 Redirect also gdb_stdtargerr.
1596 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1597 declarations.
1598 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1599 also gdb_stdtargerr.
1600 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1601 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1602 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1603 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1604 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1605 New functions.
1606
1607 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1608
1609 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1610 to display a host address.
1611 * monitor.c (monitor_read_memory): Likewise.
1612 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1613
1614 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1615
1616 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1617 `CORE_ADDRESS' as it might contain target addresses.
1618
1619 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1620
1621 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1622 before cast to pointer to avoid warning.
1623
1624 2010-09-09 Kevin Buettner <kevinb@redhat.com>
1625
1626 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1627 type to be signed.
1628
1629 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1630
1631 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1632 anonymous class partial DIEs.
1633
1634 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1635
1636 * dwarf2read.c (dwarf2_compute_name): Check that the first
1637 argument is a pointer.
1638
1639 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1640
1641 * dwarf2read.c (read_func_scope, read_structure_type)
1642 (read_common_block): Check for a NULL return from new_symbol.
1643
1644 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1645
1646 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1647
1648 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1649
1650 * dwarf2read.c (read_structure_type): Move processing of
1651 fields and member functions from here...
1652 (process_structure_scope): ... to here.
1653
1654 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1655
1656 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1657 the domain type.
1658 (gnuv3_make_method_ptr): Likewise.
1659
1660 2010-09-08 Tom Tromey <tromey@redhat.com>
1661
1662 * breakpoint.c (create_breakpoint): Add missing _().
1663
1664 2010-09-08 Doug Evans <dje@google.com>
1665
1666 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1667
1668 2010-09-08 Tom Tromey <tromey@redhat.com>
1669
1670 Revert:
1671 2010-09-01 Tom Tromey <tromey@redhat.com>
1672 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1673 symtab.h: Revert earlier change.
1674
1675 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1676
1677 * psymtab.c (add_psymbol_to_bcache): Initialize
1678 obj_section.
1679 memset psymbol.ginfo.value to 0.
1680
1681 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1682
1683 * infrun.c (resume): Extend comment on ignoring single-step
1684 requests on vfork parents waiting for a vfork-done.
1685
1686 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1687 Pedro Alves <pedro@codesourcery.com>
1688
1689 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1690 is NULL.
1691 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1692 target_signal type.
1693 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1694 calling strsignal. Use enum target_signal type for saved_signo.
1695 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1696 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1697 target_signal_to_host before calling strsignal.
1698 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1699 TARGET_SIGNAL_0.
1700
1701 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1702 Jan Kratochvil <jan.kratochvil@redhat.com>
1703
1704 * common/signals.c (ANY): Remove.
1705 (SET): No longer use ANY.
1706
1707 2010-09-06 Yao Qi <yao@codesourcery.com>
1708
1709 * infrunc(resume): When inferior is waiting_for_vfork_done,
1710 clear step and don't use displaced stepping.
1711
1712 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1713
1714 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1715 value specially.
1716
1717 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1718
1719 Code cleanup - split print_stop_reason.
1720 * infrun.c (enum inferior_stop_reason): Remove.
1721 (print_stop_reason): Remove by splitting into ...
1722 (print_exited_reason, print_signal_exited_reason)
1723 (print_no_history_reason, print_signal_received_reason)
1724 (print_end_stepping_range_reason): ... these new functions. Update
1725 the preceding comment.
1726 (handle_inferior_event): Change the calls to print_exited_reason,
1727 print_signal_exited_reason, print_no_history_reason,
1728 print_signal_received_reason, print_end_stepping_range_reason.
1729 (handle_step_into_function, handle_step_into_function_backward):
1730 Change the calls to print_end_stepping_range_reason.
1731
1732 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1733
1734 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1735 * cli-out.c: Include vec.h.
1736 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1737 variable stream, initialize it, use it.
1738 (cli_redirect): New function comment. Replace the stream and
1739 original_stream fields by the new streams field. Remove the
1740 original_stream != NULL conditional, assert error on NULL instead.
1741 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1742 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1743 original_stream fields by the new streams field.
1744 (cli_out_set_stream): Replace the stream field by the new streams
1745 field.
1746 * cli-out.h: Include vec.h.
1747 (ui_filep): New typedef, call DEF_VEC_P for it.
1748 (struct cli_ui_out_data): Replace the stream and original_stream
1749 fields by the new streams field.
1750 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1751 NULL first. Extend the comment.
1752 (handle_redirections): Call ui_out_redirect with output.
1753 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1754 calls outside of the TRY_CATCH block.
1755
1756 2010-09-03 Joel Brobecker <brobecker@adacore.com>
1757
1758 GDB 7.2 released.
1759
1760 2010-09-02 Joel Brobecker <brobecker@adacore.com>
1761
1762 Back out the following change:
1763 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1764 | * record.c (set_record_pic_cmdlist,
1765 | show_record_pic_cmdlist): New variables.
1766 | (set_record_pic_command,
1767 | show_record_pic_command): New functions.
1768 | (record_pic_function, record_pic_line, record_pic_enum,
1769 | set_record_pic_type, record_pic_hide_nofunction,
1770 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1771 | (record_pic_fputs): New function.
1772 | (function_list, node_list, edge_list): New struct.
1773 | (function_list, node_list, edge_list): New variables.
1774 | (record_pic_cleanups, record_pic_node,
1775 | record_pic_edge, cmd_record_pic): New functions.
1776 | (_initialize_record): Add new commands for record pic.
1777
1778 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1779
1780 * config.in, configure: Regenerated.
1781 * configure.ac: Check for waitpid.
1782 * ser-pipe.c (pipe_close): Wait for the program to exit.
1783
1784 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1785
1786 * cli/cli-logging.c: Include gdb_assert.h.
1787 (set_logging_overwrite): New function.
1788 (logging_redirect): New comment.
1789 (logging_no_redirect_file, set_logging_redirect)
1790 (pop_output_files) <logging_no_redirect_file>: New.
1791 (handle_redirections) <!logging_redirect>: New variable
1792 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1793 discard cleanup for the close of former OUTPUT. Set
1794 LOGGING_NO_REDIRECT_FILE.
1795 (handle_redirections) <logging_redirect>: gdb_assert
1796 LOGGING_NO_REDIRECT_FILE.
1797 (show_logging_command) <logging_redirect handling>: Adjust messages
1798 for SAVED_FILENAME not NULL.
1799 (_initialize_cli_logging): Install set_logging_overwrite and
1800 set_logging_redirect.
1801
1802 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1803
1804 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1805
1806 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1807
1808 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1809 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1810 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1811 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1812
1813 2010-09-02 Yao Qi <yao@codesourcery.com>
1814
1815 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1816 number from a WIFSIGNALED status.
1817
1818 2010-09-01 Tom Tromey <tromey@redhat.com>
1819
1820 * symtab.h (lookup_type_symbol): Declare.
1821 * symtab.c (lookup_symbol_in_language_full): Rename from
1822 lookup_symbol_in_language. Add 'for_type' argument.
1823 (lookup_symbol_in_language): New function.
1824 (lookup_type_symbol): Likewise.
1825 (lookup_symbol_aux): Add 'for_type' argument.
1826 (match_symbol_aux): New function.
1827 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1828 (match_transparent_type): New function.
1829 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1830 * symfile.h (struct quick_symbol_functions)
1831 <pre_expand_symtabs_matching>: Remove.
1832 <expand_one_symtab_matching>: New field.
1833 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1834 (pre_expand_symtabs_matching_psymtabs): Remove.
1835 (psym_functions): Update.
1836 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1837 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1838 (dw2_pre_expand_symtabs_matching): Remove.
1839 (dw2_expand_one_symtab_matching): New function.
1840 (dwarf2_gdb_index_functions): Update.
1841
1842 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1843
1844 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1845
1846 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1847
1848 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1849 as a feature reported by -list-target-features.
1850
1851 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1852
1853 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1854 (powerpc-32.o, powerpc-32.c): New rules.
1855 (clean): Also remove powerpc-32.c.
1856 * regformats/rs6000/powerpc-32.dat: Generate.
1857
1858 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1859
1860 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1861 psymbol_bcache_init.
1862 * psymtab.h (psymbol_bcache_init): New function prototype.
1863 (psymbol_bcache_free): New function prototype.
1864 (psymbol_bcache_get_bcache): New function prototype.
1865 * psymtab.c (psymbol_bcache_init): New function.
1866 (psymbol_bcache_free): New function.
1867 (psymbol_bcache_full): New function.
1868 (psymbol_bcache_get_bcache): New function.
1869 (add_psymbol_to_bcache): use psymbol_bcache_full.
1870 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1871 psymbol_bcache.
1872 * symmisc.c (print_symbol_bcache_statistics): Updated.
1873 (print_objfile_statistics): Updated.
1874 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1875 psymbol_cache.
1876 (free_objfile): Use psymbol_bcache_free.
1877
1878 2010-08-31 Tom Tromey <tromey@redhat.com>
1879
1880 PR c++/11961:
1881 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1882 Don't set TYPE_NAME on the type.
1883
1884 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1885
1886 * infrun.c (set_exec_direction_func): Error out if target does not
1887 support reverse execution.
1888
1889 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1890
1891 Make linux_get_siginfo_type `type *' unique.
1892 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1893 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1894 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1895 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1896 (_initialize_linux_tdep): New.
1897
1898 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1899
1900 Code cleanup.
1901 * defs.h (find_memory_region_ftype): New typedef.
1902 (exec_set_find_memory_regions): Use it.
1903 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1904 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1905 * gcore.c (objfile_find_memory_regions): Likewise.
1906 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1907 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1908 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1909 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1910 find_memory_region_ftype.
1911 (insert_dbx_link_bpt_in_region): Likewise.
1912 (iterate_over_mappings): Likewise. Drop the comment part about the
1913 function prototype.
1914 (find_memory_regions_callback): Use find_memory_region_ftype.
1915 (proc_find_memory_regions): Likewise.
1916 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1917 find_memory_region_ftype.
1918 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1919 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1920
1921 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1922
1923 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1924 'static partial_symbol psymbol'.
1925 (psymbol_hash): New function.
1926 (psymbol_compare): New function.
1927 * bcache.c (hash_continue): New.
1928 (hash): Use hash_continue.
1929 * bcache.c: Add hash_function and compare_function
1930 pointers to bcache struct.
1931 (bcache_full): Use bcache->hash_function, and
1932 bcache->compare_function.
1933 (bcache_compare): New function.
1934 (bcache_xmalloc): Take hash_function and
1935 compare_function arguments and initialize the
1936 bcach's pointers.
1937 Updated comment.
1938 * objfiles.c (allocate_objfile): Updated.
1939 * symfile.c (reread_symbols): Updated.
1940 * python/py-type.c (typy_richcompare): Updated.
1941
1942 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1943 Tom Tromey <tromey@redhat.com>
1944
1945 PR python/11792:
1946 * python/py-value.c (valpy_get_dynamic_type): New function.
1947 (value_object_getset): Add "dynamic_type".
1948 (valpy_get_type): Fail on error.
1949
1950 2010-08-30 Yao Qi <yao@codesourcery.com>
1951
1952 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1953 (arm_linux_syscall_next_pc): New.
1954 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1955 (arm_linux_init_abi): Initialize syscall_next_pc.
1956 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1957 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1958 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1959 Declare arm_frame_is_thumb.
1960
1961 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1962
1963 Code cleanup.
1964 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1965 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1966 code.
1967 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1968 calls of bpstat_alloc. Remove explicit bs chain termination.
1969
1970 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1971
1972 Code cleanup.
1973 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1974 (my_waitpid): Likewise.
1975
1976 2010-08-27 Doug Evans <dje@google.com>
1977
1978 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1979 as appropriate.
1980
1981 2010-08-27 Tom Tromey <tromey@redhat.com>
1982
1983 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1984 TYPE_FIELD_IGNORE_BITS.
1985
1986 2010-08-27 Doug Evans <dje@google.com>
1987
1988 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1989 the order they're defined in. munmap .debug_types buffer.
1990
1991 2010-08-26 Doug Evans <dje@google.com>
1992
1993 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1994 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1995 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1996 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1997 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1998 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1999 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2000 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2001 (write_psymtabs_to_index): Ditto.
2002
2003 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2004
2005 * NEWS: Mention libthread_db debugging with core files.
2006
2007 2010-08-26 Doug Evans <dje@google.com>
2008
2009 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2010 forward decl. Pass pst->dirname to dwarf_decode_lines.
2011 (psymtab_include_file_name): New function.
2012 (dwarf_decode_lines): Call it. Update comments.
2013
2014 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2015
2016 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2017 compilation unit being different from target die's.
2018
2019 2010-08-24 Doug Evans <dje@google.com>
2020
2021 PR symtab/11942
2022 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2023 debug_types_type_hash.
2024 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2025 All uses updated.
2026 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2027 appropriate type_hash table. All callers updated.
2028 (allocate_signatured_type_table): Renamed from
2029 allocate_signatured_type_hash_table. All callers updated.
2030 (create_signatured_type_table_from_index): Renamed from
2031 create_signatured_type_hash_from_index. All callers updated.
2032 (read_die_type): Add comment. Move actual reading to ...
2033 (read_die_type_1): ... here. New function.
2034 (follow_die_ref_or_sig): Tweak comment.
2035 (set_die_type): Rewrite to use appropriate choice of
2036 debug_info_type_hash or debug_types_type_hash.
2037 (get_die_type_at_offset): New function.
2038 (get_die_type): Call it.
2039
2040 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2041
2042 * python/py-type.c (typy_richcompare): Initialize worklist.
2043
2044 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2045 Kazu Hirata <kazu@codesourcery.com>
2046 Jonathan Larmour <jifl@eCosCentric.com>
2047
2048 * arm-tdep.c: Include features/arm-with-m.c.
2049 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2050 call this function.
2051 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2052 Check is_m after force-mode.
2053 (arm_gdbarch_init): Check the binary before the target description.
2054 Add check for M profile attribute. If we have an M-profile device,
2055 but no target register description, use arm-with-m. Recognize the
2056 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2057 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2058 * arm-tdep.h (XPSR_T): Define.
2059 (struct gdbarch_tdep): Add is_m member.
2060 * features/arm-m-profile.xml, features/arm-with-m.c,
2061 features/arm-with-m.xml: New files.
2062
2063 2010-08-23 Doug Evans <dje@google.com>
2064
2065 * dwarf2read.c (read_structure_type): Add comment.
2066 (read_enumeration_type): Add comment.
2067 (process_enumeration_scope): Move definition of some locals
2068 closer to their use.
2069 (read_namespace_type): Add comment.
2070 (set_die_type): Fix typo in comment.
2071
2072 2010-08-23 Tom Tromey <tromey@redhat.com>
2073
2074 PR python/11145:
2075 * python/py-value.c: Include expression.h.
2076 (valpy_do_cast): New function.
2077 (valpy_cast): Use it.
2078 (valpy_dynamic_cast): New function.
2079 (valpy_reinterpret_cast): Likewise.
2080 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2081
2082 2010-08-23 Tom Tromey <tromey@redhat.com>
2083
2084 PR python/11391:
2085 * python/py-value.c (valpy_nonzero): Don't throw error for other
2086 Value types.
2087
2088 2010-08-23 Tom Tromey <tromey@redhat.com>
2089
2090 PR python/10676:
2091 * python/py-type.c: Include bcache.h, vec.h.
2092 (struct type_equality_entry): New.
2093 (compare_strings): New function.
2094 (check_types_equal): Likewise.
2095 (check_types_worklist): Likewise.
2096 (typy_richcompare): Likewise.
2097 (type_object_type): Set tp_richcompare field.
2098
2099 2010-08-23 Tom Tromey <tromey@redhat.com>
2100
2101 PR python/10953:
2102 * python/py-type.c (typy_fields): Call check_typedef.
2103 (typy_template_argument): Add TRY_CATCH.
2104
2105 2010-08-23 Tom Tromey <tromey@redhat.com>
2106
2107 PR python/11915:
2108 * python/py-type.c (typy_array): New function.
2109 (type_object_methods): Add "array".
2110
2111 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2112
2113 * python/python.c: Include "serial.h".
2114 (gdbpy_event_fds): Change type to `struct serial *' a array from
2115 int array.
2116 (gdbpy_run_events): Change parameters. Use serial_readchar in
2117 place of read.
2118 (gdbpy_post_event): Use serial_write in place of write.
2119 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2120 serial_async in place of add_file_handler.
2121
2122 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2123
2124 * serial.h (gdb_pipe, serial_pipe): Declare.
2125 * serial.c (serial_interface_lookup): Take a const char pointer.
2126 (serial_fdopen): Rename to ...
2127 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2128 Call the OPS' fdopen function if there is one.
2129 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2130 (serial_pipe): New.
2131 (struct serial_ops) <fdopen>: New field.
2132
2133 * ser-mingw.c (free_pipe_state):
2134 (free_pipe_state): Close output on non-pex pipes.
2135 (pipe_windows_fdopen): New.
2136 (gdb_pipe): New.
2137 (_initialize_ser_windows): Register pipe_windows_fdopen.
2138 * ser-go32.c (gdb_pipe): New.
2139 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2140 no state pointer.
2141 (pipe_ops): Delete.
2142 (gdb_pipe): New.
2143
2144 2010-08-20 Keith Seitz <keiths@redhat.com>
2145
2146 PR symtab/11465:
2147 * dwarf2read.c (struct delayed_method_info): New struct.
2148 (struct dwarf2_cu): Add vector method_list.
2149 (scan_partial_symbols): Count methods for union, class, structure,
2150 and interface types.
2151 (add_to_method_list): New function.
2152 (free_delayed_list): New function.
2153 (compute_delayed_physnames): New function.
2154 (process_full_comp_unit): Make a cleanup for the CU's delayed
2155 physname list, compute the delayed physnames, and free the
2156 the list.
2157 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2158 of the physname until after the CU is read.
2159
2160 * dwarf2read.c (read_structure_type): Check if the current
2161 DIE's type was already completed after dwarf2_full_name
2162 was called.
2163
2164 2010-08-19 Stan Shebs <stan@codesourcery.com>
2165
2166 * NEWS: Mention some additional changes.
2167
2168 2010-08-19 Tom Tromey <tromey@redhat.com>
2169
2170 * Makefile.in (install-python): Add DESTDIR.
2171
2172 2010-08-19 Doug Evans <dje@google.com>
2173
2174 PR exp/11926
2175 * parser-defs.h (parse_float, parse_c_float): Declare.
2176 * parse.c (parse_float, parse_c_float): New function.
2177 * c-exp.y (parse_number): Call parse_c_float.
2178 * objc-exp.y (parse_number): Ditto.
2179 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2180 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2181
2182 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2183
2184 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2185 the arguments in the correct order.
2186 * symtab.c (maybe_add_partial_symtab_filename): Declare
2187 the arguments in the correct order.
2188
2189 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2190
2191 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2192 initialize it by null_frame_id, wrap its usage by get_frame_id,
2193 frame_id_p and frame_find_by_id.
2194
2195 2010-08-18 Tom Tromey <tromey@redhat.com>
2196
2197 PR python/11900:
2198 * configure: Rebuild.
2199 * configure.ac: Add install-python to CONFIG_INSTALL.
2200 * Makefile.in (install-python): New.
2201
2202 2010-08-18 Doug Evans <dje@google.com>
2203
2204 * gdb_assert.h (gdb_assert_not_reached): New macro.
2205 (gdb_assert_fail): Fix typo in comment.
2206 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2207 gdb_assert (0).
2208 * darwin-nat.c (darwin_check_new_threads): Ditto.
2209 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2210 (munmap_section_buffer): Ditto.
2211 * m32c-tdep.c (make_types): Ditto.
2212 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2213 * macroexp.c (get_character_constant): Ditto.
2214 (get_string_literal): Ditto.
2215 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2216 (mep_pseudo_cr_index, mep_register_type): Ditto.
2217 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2218 (mep_get_insn, mep_analyze_prologue): Ditto.
2219 * objfiles.c (qsort_cmp): Ditto.
2220 * prologue-value.c (pv_is_identical): Ditto.
2221 * record.c (record_get_loc): Ditto.
2222 * value.c (value_static_field): Ditto.
2223 * xtensa-tdep.c (call0_track_op): Ditto.
2224
2225 2010-08-18 Tom Tromey <tromey@redhat.com>
2226
2227 PR symtab/11919:
2228 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2229 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2230 name-copying lower. Document exception behavior.
2231 * completer.c (expression_completer): Catch exceptions from
2232 parse_field_expression.
2233
2234 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2235
2236 PR corefile/8210
2237
2238 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2239 workaround on core files.
2240 (try_thread_db_load_1): Don't try enabling thread event reporting
2241 on core files.
2242 (thread_db_load): Allow thread_db on core files.
2243 (attach_thread): Don't check thread signals on core files, nor try
2244 really attaching to the thread, nor enabling thread event event
2245 reporting.
2246 (thread_db_detach): Don't try disabing thread event reporting or
2247 removing thread event breakpoints when debugging a core file.
2248 (find_new_threads_callback): Don't try enabling thread event
2249 reporting on core files.
2250 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2251 debugging a core file.
2252 (thread_db_find_new_threads): Don't update thread
2253 cores (processors) when debugging a core (dump).
2254
2255 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2256
2257 PR corefile/8210
2258
2259 * corelow.c (add_to_thread_list): Don't use
2260 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2261 (get_core_register_section): Don't use
2262 gdbarch_core_reg_section_encodes_pid.
2263
2264 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2265 * gdbarch.h, gdbarch.c: Regenerate.
2266 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2267 gdbarch_core_reg_section_encodes_pid.
2268 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2269 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2270 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2271
2272 2010-08-18 Yao Qi <yao@codesourcery.com>
2273
2274 * MAINTAINERS : Add myself under Write After Approval.
2275
2276 2010-08-17 Tom Tromey <tromey@redhat.com>
2277
2278 * NEWS: Mention template parameter support.
2279
2280 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2281
2282 PR breakpoints/11371
2283
2284 * breakpoint.c (decref_bp_location): Assert the reference count is
2285 sane.
2286
2287 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2288
2289 PR breakpoints/11371
2290
2291 * breakpoint.c (breakpoint_init_inferior): Decrement the
2292 location's reference count instead of deleting right away.
2293 (bpstat_free): Decrement the location's reference count. Make
2294 static.
2295 (bpstat_copy): Increment the location's reference count.
2296 (bpstat_find_breakpoint): Adjust.
2297 (bpstat_num): Adjust.
2298 (print_it_typical): Adjust. Use the breakpoint pointer in the
2299 bpstat instead of the location's owner.
2300 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2301 Adjust to record the location's owner in the bpstat.
2302 (watchpoint_check): Use the breakpoint pointer in the bpstat
2303 instead of the location's owner.
2304 (bpstat_check_breakpoint_conditions): Don't handle
2305 bp_watchpoint_scope here. Use the breakpoint pointer in the
2306 bpstat instead of the location's owner.
2307 (bpstat_stop_status): Defer inferior function calls to after
2308 building the bpstat list. Handle bp_watchpoint_scope here. Use
2309 the breakpoint pointer in the bpstat instead of the location's
2310 owner.
2311 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2312 the location's owner.
2313 (free_bp_location): Don't walk bpstats clearing locations.
2314 (incref_bp_location): New.
2315 (decref_bp_location): New.
2316 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2317 instead of the location's owner.
2318 (update_global_location_list): Clear the location's owner, and
2319 decrement the location's reference count instead of deleting it
2320 right away.
2321 (breakpoint_retire_moribund): Decrement the location's reference
2322 count instead of deleting it right away.
2323 (bpstat_remove_bp_location): Delete.
2324 (bpstat_remove_breakpoint): New.
2325 (bpstat_remove_bp_location_callback): Delete.
2326 (bpstat_remove_breakpoint_callback): New.
2327 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2328 clearing references to the breakpoint that is being deleted.
2329
2330 * breakpoint.h (struct bp_location) <refc>: New field.
2331 <owner>: Update comments.
2332 (bpstat_free): Delete declaration.
2333 (struct bpstats): Change the type of the breakpoint_at field to
2334 struct breakpoint point, from struct bp_location pointer. Add new
2335 field bp_location_at.
2336
2337 2010-08-16 Tom Tromey <tromey@redhat.com>
2338
2339 * NEWS: Fix typo.
2340
2341 2010-08-16 Tom Tromey <tromey@redhat.com>
2342
2343 * NEWS: Mention watch -location.
2344
2345 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2346
2347 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2348 EXP_STRING_REPARSE to EXP_STRING.
2349 (watch_command_1): Set also EXP_STRING_REPARSE.
2350 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2351 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2352 Update comment for exp_string.
2353
2354 2010-08-16 Tom Tromey <tromey@redhat.com>
2355
2356 * value.c (release_value): Clear 'next' pointer.
2357 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2358 (watch_command_wrapper): Update.
2359 (watch_maybe_just_location): New function.
2360 (watch_command): Update.
2361 (rwatch_command_wrapper): Update.
2362 (rwatch_command): Update.
2363 (awatch_command_wrapper): Update.
2364 (awatch_command): Update.
2365 (check_for_argument): New function.
2366 (_initialize_breakpoint): Update help text.
2367
2368 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2369
2370 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2371 typedef'ed function types correctly.
2372
2373 2010-08-13 Tom Tromey <tromey@redhat.com>
2374
2375 * python/python-internal.h (gdbpy_get_hook_function): Don't
2376 declare.
2377
2378 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2379
2380 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2381 static.
2382
2383 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2384
2385 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2386 the format strings to be compatible with Python 2.4.
2387
2388 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2389
2390 Easier and more stubborn MI memory read commands.
2391
2392 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2393 and data-write-memory-bytes.
2394 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2395 (mi_cmd_data_write_memory_bytes): New.
2396 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2397 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2398 New.
2399 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2400 * target.c (target_read_until_error): Remove.
2401 (read_whatever_is_readable, free_memory_read_result_vector)
2402 (read_memory_robust): New.
2403 * target.h (target_read_until_error): Remove.
2404 (struct memory_read_result, free_memory_read_result_vector)
2405 (read_memory_robust): New.
2406
2407 2010-08-13 Hui Zhu <teawater@gmail.com>
2408
2409 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2410 (read_comp_unit): Initialize back_to.
2411
2412 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2413 Pedro Alves <pedro@codesourcery.com>
2414
2415 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2416 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2417 (struct partial_die_info) <has_template_arguments>: New field.
2418 <num_attrs>: Change type to unsigned char.
2419 <building_fullname>: New field.
2420 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2421 allocate a CU if we don't have one already. Add a cleanup for the
2422 CU.
2423 (partial_die_full_name): Handle template arguments not in
2424 DW_AT_name.
2425 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2426 (load_full_comp_unit): Only allocate a CU if we don't have one
2427 already.
2428 (do_ui_file_peek_last): New.
2429 (dwarf2_compute_name): Handle template parameters not in
2430 DW_AT_name.
2431 (read_comp_unit): Read and free abbrevs if not read yet.
2432 (load_partial_dies): Handle template arguments not in DW_AT_name.
2433 (find_partial_die): If we have a CU, but no a partial dies yet,
2434 also read in the CU.
2435 (dwarf2_const_value_attr): New, abstracted out from
2436 dwarf2_const_value.
2437 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2438 dwarf2_const_value_attr.
2439 (determine_prefix): Detect and break loops created by RCVT's debug
2440 info.
2441 (maybe_queue_comp_unit): Bail out early if reading partial
2442 symbols.
2443 (follow_die_offset): Load full CU if we have no dies.
2444 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2445 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2446
2447 2010-08-11 Tom Tromey <tromey@redhat.com>
2448 Phil Muldoon <pmuldoon@redhat.com>
2449
2450 * python/python.c (gdbpy_run_events): New function.
2451 (gdbpy_post_event): Likewise.
2452 (gdbpy_initialize_events): Likewise.
2453 (_initialize_python): Call gdbpy_initialize_events.
2454
2455 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2456
2457 * gdb/valarith.c (vector_binop): New function.
2458 (scalar_binop): Likewise.
2459 (value_binop): Call scalar_binop or vector_binop depending on the types.
2460 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2461 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2462 to pointers.
2463 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2464
2465 2010-08-11 Brad Roberts <braddr@puremagic.com>
2466
2467 * d-lang.c (extract_identifiers): Handle multiple digits.
2468
2469 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2470
2471 Code cleanup.
2472 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2473 Rename to dummy_frame_unwind.
2474 (dummy_frame_unwind): Remove.
2475 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2476 * frame-unwind.c (frame_unwind_init): Use address of
2477 dummy_frame_unwind and inline_frame_unwind.
2478 * frame.c (create_sentinel_frame): Use address of
2479 sentinel_frame_unwind.
2480 * inline-frame.c (inline_frame_unwinder): Rename to
2481 inline_frame_unwind.
2482 (inline_frame_unwind): Remove.
2483 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2484 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2485 sentinel_frame_unwind.
2486 (sentinel_frame_unwind): Remove.
2487 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2488 struct.
2489
2490 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2491
2492 Code cleanup.
2493 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2494 and returned value. New comment from frame-unwind.h.
2495 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2496 Extend the comment.
2497 * frame.c (get_frame_id, frame_unwind_register_value)
2498 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2499 (get_frame_type, frame_unwind_arch): Do not use the return value of
2500 frame_unwind_find_by_frame.
2501
2502 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2503 Thiago Jung Bauermann <bauerman@br.ibm.com>
2504 Tom Tromey <tromey@redhat.com>
2505
2506 * python/python.c (gdbpy_solib_address): New function.
2507 (gdbpy_decode_line): Likewise.
2508
2509 2010-08-10 Tom Tromey <tromey@redhat.com>
2510
2511 Revert gdb-add-index addition:
2512 * Makefile.in (install-only): Don't install gdb-add-index.
2513 * gdb-add-index.sh: Remove.
2514
2515 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2516
2517 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2518 `target_has_execution' check with `to_has_memory' check.
2519 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2520 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2521 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2522
2523 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2524
2525 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2526 (resume_siggnal, resume_step): Move these static globals...
2527 (struct sim_inferior_data): ...into this new struct.
2528 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2529 New static globals.
2530 (gdb_callback, callbacks_initialized): Move these globals to
2531 a point earlier in the file.
2532 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2533 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2534 (gdbsim_close_inferior, gdbsim_resume_inferior)
2535 (gdbsim_stop_inferior): New functions.
2536 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2537 New constants.
2538 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2539 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2540 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2541 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2542 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2543 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2544 new local variable `sim_data' in each of these functions. Use
2545 `sim_data' to reference former globals `program_loaded',
2546 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2547 `resume_step'.
2548 (gdbsim_open): Remove local variable `argv'. Put results of call
2549 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2550 make a cleanup for it. Free it though when a sim instance cannot
2551 be obtained.
2552 (gdbsim_close): Free sim_argv and null it out as appropriate.
2553 Close sim instances in all inferiors.
2554 (gdbsim_cntrl_c): Stop all inferiors.
2555 (gdbsim_wait):
2556 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2557
2558 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2559
2560 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2561 function after symbol construction is complete.
2562 Do the same for template symbol addition to template_symbols list.
2563
2564 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2565
2566 * symtab.c (symbol_get_demangled_name): Remove assertion and
2567 return NULL when language_specific.cplus_specific is not initialized.
2568 * stabsread.c (define_symbol): Set the name before calling
2569 cp_scan_for_anonymous_namespaces.
2570
2571 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2572
2573 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2574 SYMBOL_SET_LANGUAGE.
2575 (symbol_init_language_specific): Renamed to symbol_set_language.
2576 * symtab.c (symbol_init_language_specific): Removed redundant check
2577 for language_cplus.
2578 Renamed to symbol_set_language.
2579 * stabsread.c (define_symbol): Updated.
2580 (read_enum_type): Updated
2581 * psymtab.c (add_psymbol_to_bcache): Updated.
2582 * minsyms.c (install_minimal_symbols): Updated.
2583 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2584 SYMBOL_LANGUAGE to set the language.
2585 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2586 * mdebugread.c (new_symbol): Ditto.
2587 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2588 * dwarf2read.c (new_symbol_full): Ditto.
2589 * jv-lang.c (add_class_symbol): Ditto.
2590
2591 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2592
2593 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2594 (make_cleanup_restore_page_info)
2595 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2596 * gdbcmd.h (execute_command_to_string): New declaration.
2597 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2598 (make_cleanup_restore_ui_file): Move to utils.c
2599 (execute_gdb_command) <to_string>: Move ...
2600 * top.c (execute_command_to_string): ... here. Call
2601 set_batch_flag_and_make_cleanup_restore_page_info.
2602 * utils.c (make_cleanup_restore_integer): New source file blank line.
2603 (make_cleanup_restore_uinteger): New.
2604 (struct restore_ui_file_closure, do_restore_ui_file)
2605 (make_cleanup_restore_ui_file): Move here from python/python.c.
2606 (init_page_info) <batch_flag>
2607 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2608 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2609
2610 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2611
2612 * thread.c (add_thread_silent): Use null_ptid instead of
2613 minus_one_ptid while getting rid of stale inferior_ptid.
2614
2615 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
2616
2617 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2618 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2619 (decode_frame_entry_1): Remove redundant setting of
2620 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2621 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2622 on examined frame section. Add comment to explain why.
2623 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2624 comment to explain usage.
2625 * gdbarch.c: Regenerate.
2626 * gdbarch.h: Regenerate.
2627
2628 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2629
2630 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2631
2632 Code cleanup.
2633 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2634 a more inner block.
2635
2636 2010-08-05 Pedro Alves <pedro@codesourcery.com>
2637
2638 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2639 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2640 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2641 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2642 linux-tdep.o to gdb_target_obs.
2643
2644 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
2645
2646 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2647 argument.
2648
2649 2010-08-05 Hui Zhu <teawater@gmail.com>
2650
2651 * mips-linux-tdep.c(regset.h): New include.
2652 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2653 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2654 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2655 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2656 mips_linux_regset_from_core_section): New functions.
2657 (fetch_core_registers, regset_core_fns): Deleted.
2658 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2659 Deleted regset_core_fns.
2660 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2661 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2662 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2663 and fpregset64.
2664
2665 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2666
2667 * s390-tdep.c: Include linux-tdep.h.
2668 (s390_gdbarch_init): Call linux_init_abi.
2669
2670 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2671
2672 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2673 instead of printing "Thread" here.
2674 * linux-tdep.c: Include inferior.h.
2675 (linux_core_pid_to_str): New.
2676 (linux_init_abi): New.
2677 * linux-tdep.h (linux_init_abi): Declare.
2678 * alpha-linux-tdep.c: Include linux-tdep.h.
2679 (alpha_linux_init_abi): Call linux_init_abi.
2680 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2681 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2682 * frv-linux-tdep.c: Include linux-tdep.h
2683 (frv_linux_init_abi): Call linux_init_abi.
2684 * hppa-linux-tdep.c: Include linux-tdep.h
2685 (hppa_linux_init_abi): Call linux_init_abi.
2686 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2687 * ia64-linux-tdep.c: Include linux-tdep.h.
2688 (ia64_linux_init_abi): Call linux_init_abi.
2689 * m32r-linux-tdep.c: Include linux-tdep.h.
2690 (m32r_linux_init_abi): Call linux_init_abi.
2691 * m68klinux-tdep.c: Include linux-tdep.h.
2692 (m68k_linux_init_abi): Call linux_init_abi.
2693 * microblaze-linux-tdep.c: Include linux-tdep.h.
2694 (microblaze_linux_init_abi): Call linux_init_abi.
2695 * mips-linux-tdep.c: Include linux-tdep.h.
2696 (mips_linux_init_abi): Call linux_init_abi.
2697 * mn10300-linux-tdep.c: Include linux-tdep.h.
2698 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2699 'gdbinfo' parameter to 'info'.
2700 * ppc-linux-tdep.c: Include linux-tdep.h.
2701 (ppc_linux_init_abi): Call linux_init_abi.
2702 * sh-linux-tdep.c: Include linux-tdep.h.
2703 (sh_linux_init_abi): Call linux_init_abi.
2704 * sparc-linux-tdep.c: Include linux-tdep.h.
2705 (sparc32_linux_init_abi): Call linux_init_abi.
2706 * sparc64-linux-tdep.c: Include linux-tdep.h.
2707 (sparc64_linux_init_abi): Call linux_init_abi.
2708 * xtensa-linux-tdep.c: Include linux-tdep.h.
2709 (xtensa_linux_init_abi): Call linux_init_abi.
2710 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2711 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2712 callback.
2713
2714 2010-08-03 Doug Evans <dje@google.com>
2715
2716 * breakpoint.c (bpdisp_text): Constify bpdisps.
2717 * solib-svr4.c (solib_break_names): Constify.
2718 (bkpt_names, main_name_list): Constify.
2719 (match_main): Constify soname arg.
2720 (bfd_lookup_symbol): Remove unnecessary forward decl.
2721 Constify symname arg.
2722 (enable_break): Constify bkpt_namep.
2723 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2724 (symtab_symbol_info): Constify classnames.
2725
2726 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2727
2728 * NEWS: Document Python value inferior function calls.
2729
2730 2010-08-02 Doug Evans <dje@google.com>
2731
2732 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2733
2734 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2735
2736 * linux-thread-db.c (libthread_db_debug): New variable.
2737 (thread_db_find_new_threads_silently): Control verbosity with it.
2738 (try_thread_db_load_1, try_thread_db_load): Likewise.
2739 (find_new_threads_once): Likewise.
2740 (_initialize_thread_db): Set/show it.
2741
2742 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2743
2744 * common/signals.c (signals): Move the content to signals.def.
2745 Include it. Remove the INDENT comments.
2746
2747 2010-07-30 Tom Tromey <tromey@redhat.com>
2748
2749 * Makefile.in (install-only): Install gdb-add-index.
2750 * gdb-add-index.sh: New file.
2751
2752 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2753
2754 * MAINTAINERS: Add myself for write after approval privileges.
2755
2756 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2757
2758 * symfile.c (addr_section_name): New function.
2759 (addrs_section_compar): Use it.
2760 (addr_info_make_relative): Use it. Move variable sect_name into a more
2761 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2762
2763 2010-07-30 Tom Tromey <tromey@redhat.com>
2764
2765 * configure: Rebuild.
2766 * configure.ac: Add missing case for Python 2.7.
2767
2768 2010-07-29 DJ Delorie <dj@redhat.com>
2769
2770 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2771 conditions.
2772
2773 2010-07-29 Pedro Alves <pedro@codesourcery.com>
2774
2775 * PROBLEMS: Remove mention of all problems.
2776
2777 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2778
2779 PR build/11848
2780 * configure.ac: Check for wresize.
2781 * configure, config.in: Regenerate.
2782 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2783 with HAVE_WRESIZE.
2784
2785 2010-07-28 Tom Tromey <tromey@redhat.com>
2786
2787 PR python/11060:
2788 * python/py-type.c (typy_legacy_template_argument): New function,
2789 extracted from typy_template_argument.
2790 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2791 value when needed.
2792
2793 2010-07-28 Oleg Nesterov <oleg@redhat.com>
2794
2795 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2796
2797 2010-07-27 Tom Tromey <tromey@redhat.com>
2798
2799 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2800
2801 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2802
2803 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2804 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2805
2806 2010-07-28 Tom Tromey <tromey@redhat.com>
2807
2808 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2809
2810 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2811
2812 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2813 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2814
2815 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2816
2817 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2818 down, just before the block that parse the breakpoint addr_string.
2819
2820 2010-07-28 Tom Tromey <tromey@redhat.com>
2821
2822 PR c++/9946:
2823 * symfile.c (reread_symbols): Clear template_symbols.
2824 * symtab.h (struct symbol) <is_cplus_template_function>: New
2825 field.
2826 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2827 (struct template_symbol): New.
2828 * symtab.c (lookup_symbol_aux_local): Use
2829 cp_lookup_symbol_imports_or_template.
2830 * objfiles.h (struct objfile) <template_symbols>: New field.
2831 * objfiles.c (relocate_one_symbol): New function.
2832 (objfile_relocate1): Use it. Relocate isolated symbols.
2833 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2834 template_arguments>: New fields.
2835 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2836 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2837 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2838 (lookup_typename): Update.
2839 * gdbtypes.c (lookup_typename): Constify "block" argument.
2840 * dwarf2read.c: Include vec.h.
2841 (symbolp): New typedef.
2842 (read_func_scope): Read template arguments. Allocate a
2843 template_symbol when needed.
2844 (read_structure_type): Read template arguments.
2845 (new_symbol_full): New function, from new_symbol. Handle
2846 DW_TAG_template_type_param and DW_TAG_template_value_param.
2847 (new_symbol): Rewrite as wrapper.
2848 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2849 * cp-namespace.c: Include language.h.
2850 (search_symbol_list): New function.
2851 (cp_lookup_symbol_imports_or_template): Likewise.
2852
2853 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2854
2855 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2856 the command window to the new size and position.
2857
2858 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2859
2860 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
2861 coordinates.
2862
2863 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2864
2865 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
2866 after a detecting a resize.
2867 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
2868 call.
2869
2870 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2871
2872 * configure.ac: Check for resize_term.
2873 * configure, config.in: Regenerate.
2874
2875 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2876
2877 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2878
2879 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2880
2881 * dwarf2read.c (read_string): Rename to ...
2882 (read_direct_string): ... this.
2883 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2884 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2885
2886 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2887
2888 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2889 (count_events_callback, select_event_lwp_callback)
2890 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2891
2892 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2893
2894 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2895 (_initialize_ia64_linux_nat): Install it.
2896 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2897 (linux_nat_set_status_is_event): New.
2898 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2899 cancel_breakpoints_callback, linux_nat_filter_event)
2900 (linux_nat_wait_1): Use linux_nat_status_is_event.
2901 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2902
2903 2010-07-27 Tom Tromey <tromey@redhat.com>
2904
2905 * NEWS: Mention labels, .gdb_index.
2906
2907 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2908
2909 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
2910 "start,+length" form of arguments.
2911 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2912 since GDB 7.1"; and merge two separated paragraphs of disassemble
2913 description in "Changes in GDB 7.0".
2914
2915 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2916
2917 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2918 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2919 (fputs_maybe_filtered): Do not do filtering also on
2920 ! INPUT_FROM_TERMINAL_P.
2921
2922 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2923
2924 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2925 in warning message.
2926
2927 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2928
2929 * python/py-value.c (valpy_call): New Function.
2930
2931 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
2932
2933 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
2934 types_list_elements variables.
2935
2936 2010-07-26 Tom Tromey <tromey@redhat.com>
2937
2938 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2939 TLS with DW_OP_const4u or DW_OP_const8u.
2940
2941 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2942
2943 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2944 VSX registers contents.
2945
2946 2010-07-26 Jerome Guitton <guitton@adacore.com>
2947
2948 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2949 its adress is null. Add comment to explain why.
2950 (new_symbol): Ditto.
2951
2952 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2953
2954 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2955 the host signal first.
2956
2957 2010-07-23 Tom Tromey <tromey@redhat.com>
2958
2959 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2960 type_comp_units>: New fields.
2961 (dw2_get_cu): New function.
2962 (create_cus_from_index): Remove unused argument.
2963 (create_signatured_type_hash_from_index): New function.
2964 (create_addrmap_from_index): Update.
2965 (dwarf2_read_index): Handle version 2.
2966 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2967 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2968 (dw2_print_stats, dw2_expand_all_symtabs)
2969 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2970 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2971 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2972 (allocate_signatured_type_hash_table): New function.
2973 (add_signatured_type_cu_to_list): Likewise.
2974 (create_debug_types_hash_table): Use them. Set type_comp_units.
2975 (read_signatured_type): Ensure section data is available.
2976 (add_address_entry): Don't record empty ranges.
2977 (struct signatured_type_index_data): New.
2978 (write_one_signatured_type): New function.
2979 (write_psymtabs_to_index): Write type CUs.
2980 (save_gdb_index_command): Update comment.
2981 (process_type_comp_unit): Move inititalization of
2982 from_debug_types...
2983 (create_debug_types_hash_table): ... here.
2984
2985 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2986
2987 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2988 cleanup and generating of gdb script to it.
2989 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2990 and terminal size. Convert $tmpfile to a series of -ex-es.
2991
2992 2010-07-23 Keith Seitz <keiths@redhat.com>
2993
2994 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2995 hook for STATIC_BLOCK types, too.
2996
2997 2010-07-23 Keith Seitz <keiths@redhat.com>
2998
2999 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3000 and vector definition.
3001
3002 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3003
3004 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3005
3006 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3007
3008 * dwarf2read.c: Include completer.h.
3009 (save_gdb_index_command): Use matching usage command name.
3010 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3011 Set filename_completer for it.
3012
3013 2010-07-22 Tom Tromey <tromey@redhat.com>
3014
3015 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3016 type signature's per-CU data.
3017
3018 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3019
3020 * NEWS: Mention target reported shared libraries support by
3021 default.
3022
3023 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3024
3025 PR symtab/11827
3026
3027 Revert:
3028 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3029 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3030 and DW_TAG_volatile_type.
3031 (new_symbol): Likewise.
3032
3033 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3034
3035 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3036 function symbols before overload resolution.
3037
3038 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3039
3040 * breakpoint.c (bptype_string): New, abstracted out from
3041 print_one_breakpoint_location.
3042 (print_one_breakpoint_location): Adjust.
3043 (breakpoint_1): Adjust the type column width dynamically.
3044
3045 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3046
3047 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3048 a gdb_assert call, new comment.
3049
3050 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3051
3052 * linux-nat.c (linux_handle_extended_wait): Handle case when
3053 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3054
3055 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3056
3057 Code cleanup.
3058 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3059 linux_nat_wait_1. Use always LP->STATUS afterwards.
3060
3061 2010-07-20 Hui Zhu <teawater@gmail.com>
3062
3063 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3064 (inf_ptrace_attach): Ditto.
3065
3066 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3067
3068 Make core files the process_stratum.
3069 * corefile.c (core_target): New variable.
3070 (core_file_command): Remove variable t, use core_target.
3071 * corelow.c (core_ops): Make it static.
3072 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3073 * defs.h (make_cleanup_unpush_target): New prototype.
3074 * gdbarch.h: Regenerate.
3075 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3076 * gdbcore.h (core_target): New declaration.
3077 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3078 variables ops_already_pushed and back_to. Use push_target,
3079 make_cleanup_unpush_target and discard_cleanups calls.
3080 * record.c (record_open): Replace core_stratum by a core_bfd check.
3081 * target.c (target_is_pushed): New function.
3082 (find_core_target): Remove.
3083 * target.h (enum strata) <core_stratum>: Remove.
3084 (target_is_pushed): New declaration.
3085 (find_core_target): Remove declaration.
3086 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3087 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3088
3089 2010-07-19 Hui Zhu <teawater@gmail.com>
3090
3091 * breakpoint.c (single_step_breakpoints_inserted): New
3092 function.
3093 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3094 * infrun.c (maybe_software_singlestep): Add check code.
3095 * record.c (record_resume): Add code for software single step.
3096 (record_wait): Ditto.
3097
3098 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3099
3100 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3101 a more inner block. Remove its unused declaration initializer.
3102
3103 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3104
3105 * NEWS: Mention support for the new ptrace interface and hardware
3106 accelerated watchpoint conditions on powerpc-linux.
3107
3108 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3109
3110 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3111 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3112 and host_address_to_string() and %s for pointers.
3113 (debug_to_remove_breakpoint): Likewise.
3114 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3115 (debug_to_can_accel_watchpoint_condition): Likewise.
3116 (debug_to_stopped_data_address): Likewise.
3117 (debug_to_watchpoint_addr_within_range): Likewise.
3118 (debug_to_insert_hw_breakpoint): Likewise.
3119 (debug_to_remove_hw_breakpoint): Likewise.
3120 (debug_to_insert_watchpoint): Likewise.
3121 (debug_to_remove_watchpoint): Likewise.
3122
3123 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3124
3125 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3126 argument.
3127 (cplus_specific): New struct.
3128 * symtab.c (symbol_set_demangled_name): Updated.
3129 Use cplus_specific for cplus symbols.
3130 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3131 struct for cplus symbols.
3132 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3133 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3134 * symtab.c (symbol_init_cplus_specific): New function.
3135
3136 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3137
3138 * symtab.h (symbol_set_demangled_name): New function.
3139 (symbol_get_demangled_name): New function.
3140 * symtab.c (symbol_set_demangled_name): New function.
3141 (symbol_get_demangled_name): New function.
3142 (symbol_init_language_specific): Use demangled_name setter and getter.
3143 (symbol_set_names): Ditto.
3144 (symbol_natural_name): Ditto.
3145 (symbol_demangled_name): Ditto.
3146 * dwarf2read.c (new_symbol): Ditto.
3147
3148 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3149
3150 * symtab.h: Renamed cplus_specific to mangled_lang.
3151 * symtab.c (symbol_init_language_specific): Updated.
3152 (symbol_set_names): Updated.
3153 (symbol_natural_name): Updated.
3154 (symbol_demangled_name): Updated.
3155 * ada-lang.c (ada_decode_symbol): Updated.
3156 * dwarf2read.c (new_symbol): Updated.
3157
3158 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3159
3160 * valops.c (value_assign): Do not call to value_coerce_to_target.
3161 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3162
3163 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3164
3165 * MAINTAINERS: Add myself for write after approval privileges.
3166
3167 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3168
3169 * c-valprint.c (c_val_print): Add embedded_offset to address in
3170 call to val_print_array_elements.
3171
3172 2010-07-13 Tom Tromey <tromey@redhat.com>
3173
3174 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3175
3176 2010-07-13 Tom Tromey <tromey@redhat.com>
3177
3178 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3179 objfile.
3180
3181 2010-07-13 Tom Tromey <tromey@redhat.com>
3182
3183 * symfile.c (set_initial_language): Update.
3184 (deduce_language_from_filename): Argument type now const.
3185 * symtab.h (find_main_filename): Update.
3186 (deduce_language_from_filename): Update.
3187 * symtab.c (find_main_filename): Make result const.
3188 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3189 * psymtab.c (find_symbol_file_from_partial): Change return type.
3190 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3191 Make result const.
3192
3193 2010-07-13 Tom Tromey <tromey@redhat.com>
3194
3195 * breakpoint.c (save_cmdlist): No longer static.
3196 * gdbcmd.h (save_cmdlist): Declare.
3197 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3198 OBJF_READNOW on objfile if readnow_symbol_files.
3199 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3200 (elf_sym_fns_gdb_index): New global.
3201 * dwarf2read.c: Include exceptions.h.
3202 (offset_type): New.
3203 (struct mapped_index): New.
3204 (dwarf2_per_cu_data_ptr): New typedef.
3205 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3206 New fields.
3207 (GDB_INDEX_SECTION): New define.
3208 (struct dwarf2_per_cu_quick_data): New.
3209 (struct dwarf2_per_cu_data) <objfile>: New field.
3210 <psymtab>: Removed.
3211 <v>: New field.
3212 (byte_swap): New function.
3213 (MAYBE_SWAP): New macro.
3214 (INDEX_SUFFIX): New macro.
3215 (dw2_do_instantiate_symtab): New function.
3216 (dw2_instantiate_symtab): Likewise.
3217 (create_cus_from_index): Likewise.
3218 (create_addrmap_from_index): Likewise.
3219 (mapped_index_string_hash): Likewise.
3220 (find_slot_in_mapped_hash): Likewise.
3221 (dwarf2_read_index): Likewise.
3222 (dw2_setup): Likewise.
3223 (dw2_require_line_header): Likewise.
3224 (dw2_require_full_path): Likewise.
3225 (dw2_find_last_source_symtab): Likewise.
3226 (dw2_forget_cached_source_info): Likewise.
3227 (dw2_lookup_symtab): Likewise.
3228 (dw2_lookup_symbol): Likewise.
3229 (dw2_do_expand_symtabs_matching): Likewise.
3230 (dw2_pre_expand_symtabs_matching): Likewise.
3231 (dw2_print_stats): Likewise.
3232 (dw2_dump): Likewise.
3233 (dw2_relocate): Likewise.
3234 (dw2_expand_symtabs_for_function): Likewise.
3235 (dw2_expand_all_symtabs): Likewise.
3236 (dw2_expand_symtabs_with_filename): Likewise.
3237 (dw2_find_symbol_file): Likewise.
3238 (dw2_map_ada_symtabs): Likewise.
3239 (dw2_expand_symtabs_matching): Likewise.
3240 (dw2_find_pc_sect_symtab): Likewise.
3241 (dw2_map_symbol_names): Likewise.
3242 (dw2_map_symbol_filenames): Likewise.
3243 (dw2_has_symbols): Likewise.
3244 (dwarf2_gdb_index_functions): New global.
3245 (dwarf2_initialize_objfile): New function.
3246 (process_psymtab_comp_unit): Update.
3247 (add_partial_subprogram): Likewise.
3248 (dwarf2_psymtab_to_symtab): Likewise.
3249 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3250 (process_full_comp_unit): Update.
3251 (find_file_and_directory): New function.
3252 (read_file_scope): Use find_file_and_directory.
3253 (dwarf2_per_cu_objfile): Update.
3254 (dwarf2_per_cu_addr_size): Update.
3255 (dwarf2_per_cu_offset_size): Update.
3256 (dwarf2_free_objfile): Free the index, if needed.
3257 (dwarf2_per_objfile_free): Unmap the index, if needed.
3258 (struct strtab_entry): New.
3259 (hash_strtab_entry): New function.
3260 (eq_strtab_entry): Likewise.
3261 (create_strtab): Likewise.
3262 (add_string): Likewise.
3263 (struct symtab_index_entry): New.
3264 (struct mapped_symtab): New.
3265 (hash_symtab_entry): New function.
3266 (eq_symtab_entry): Likewise.
3267 (delete_symtab_entry): Likewise.
3268 (create_index_table): Likewise.
3269 (create_mapped_symtab): Likewise.
3270 (cleanup_mapped_symtab): Likewise.
3271 (find_slot): Likewise.
3272 (hash_expand): Likewise.
3273 (add_index_entry): Likewise.
3274 (add_indices_to_cpool): Likewise.
3275 (write_hash_table): Likewise.
3276 (add_address_entry): Likewise.
3277 (write_psymbols): Likewise.
3278 (write_obstack): Likewise.
3279 (unlink_if_set): Likewise.
3280 (write_psymtabs_to_index): Likewise.
3281 (save_gdb_index_command): Likewise.
3282 (_initialize_dwarf2_read): Install "save gdb-index"
3283 command.
3284 (create_all_comp_units): Initialize 'objfile' field of CU.
3285 (dwarf2_locate_sections): Check for .gdb_index.
3286 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3287 * symfile.h (dwarf2_initialize_objfile): Declare.
3288
3289 2010-07-13 Tom Tromey <tromey@redhat.com>
3290
3291 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3292 (basic_lookup_transparent_type): Likewise.
3293 * symfile.h (struct quick_symbol_functions)
3294 <pre_expand_symtabs_matching>: New field.
3295 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3296 (psym_functions): Update.
3297
3298 2010-07-13 Tom Tromey <tromey@redhat.com>
3299
3300 PR breakpoints/8357:
3301 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3302 * linespec.c (decode_line_1): Update comment. Call decode_label.
3303 (decode_label): New function.
3304 (symbol_found): Handle LOC_LABEL.
3305 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3306 domain. Call add_symbol_to_list.
3307
3308 2010-07-13 Tom Tromey <tromey@redhat.com>
3309
3310 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3311 * dwarf2loc.c (find_location_expression): Use
3312 dwarf2_per_cu_text_offset.
3313 (dwarf2_evaluate_loc_desc): Likewise.
3314 (dwarf2_loc_desc_needs_frame): Likewise.
3315 (compile_dwarf_to_ax): Likewise.
3316 (loclist_describe_location): Likewise.
3317 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3318 (dwarf2_per_cu_objfile): Update comment.
3319
3320 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3321
3322 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3323 * p-lang.c (pascal_printstr): Likewise.
3324
3325 2010-07-09 Tom Tromey <tromey@redhat.com>
3326
3327 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3328 'hint' if it is NULL.
3329
3330 2010-07-09 Hui Zhu <teawater@gmail.com>
3331
3332 * source.c (print_source_lines_base): Add check for noprint.
3333
3334 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3335
3336 * python/python-config.py: Resync with Python 2.7 version of this
3337 script.
3338
3339 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3340
3341 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3342
3343 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3344
3345 * NEWS: Create a new section for the next release branch.
3346 Rename the section of the current branch, now that it has
3347 been cut.
3348
3349 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3350
3351 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3352 * version.in: Bump version to 7.2.50.20100707-cvs.
3353
3354 2010-07-07 Tom Tromey <tromey@redhat.com>
3355
3356 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3357 LOC_COMPUTED symbol.
3358 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3359 (dwarf2_loc_desc_needs_frame): Likewise.
3360 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3361 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3362 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3363 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3364 'offset' argument.
3365 (struct dwarf2_frame_cache) <text_offset>: New field.
3366 (dwarf2_frame_cache): Set new field.
3367 (dwarf2_frame_prev_register): Update.
3368 (dwarf2_frame_sniffer): Update.
3369 (dwarf2_frame_base_sniffer): Update.
3370 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3371
3372 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3373 Thiago Jung Bauermann <bauerman@br.ibm.com>
3374
3375 Support for hw accelerated condition watchpoints in booke powerpc.
3376
3377 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3378 and move to eval.c. Change callers.
3379 (insert_bp_location): Pass watchpoint condition in
3380 target_insert_watchpoint.
3381 (remove_breakpoint_1) Pass watchpoint condition in
3382 target_remove_watchpoint.
3383 (watchpoint_locations_match): Call
3384 target_can_accel_watchpoint_condition.
3385 * eval.c: Include wrapper.h.
3386 (fetch_subexp_value): Moved from breakpoint.c.
3387 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3388 Formatting fix.
3389 (can_use_watchpoint_cond_accel): New function.
3390 (calculate_dvc): Likewise.
3391 (num_memory_accesses): Likewise.
3392 (check_condition): Likewise.
3393 (ppc_linux_can_accel_watchpoint_condition): Likewise
3394 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3395 check_condition and calculate_dvc.
3396 (ppc_linux_remove_watchpoint): Likewise.
3397 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3398 ppc_linux_can_accel_watchpoint_condition
3399 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3400 condition.
3401 (debug_to_remove_watchpoint): Likewise.
3402 (debug_to_can_accel_watchpoint_condition): New function.
3403 (update_current_target): Set to_can_accel_watchpoint_condition.
3404 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3405 * target.h: Add opaque declaration for struct expression.
3406 (struct target_ops) <to_insert_watchpoint>,
3407 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3408 <to_can_accel_watchpoint_condition>: New member.
3409 condition. Update all callers and implementations.
3410 (target_can_accel_watchpoint_condition): New macro.
3411 * value.c (free_value_chain): New function.
3412 * value.h (fetch_subexp_value): New prototype.
3413 (free_value_chain): Likewise.
3414
3415 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3416
3417 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3418 from gdbarch_core_regset_sections also for .reg if present.
3419
3420 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3421 section size for .reg.
3422 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3423 (ppc_linux_vmx_regset_sections): Likewise.
3424 (ppc_linux_fp_regset_sections): Likewise.
3425 (ppc64_linux_vsx_regset_sections): New variable.
3426 (ppc64_linux_vmx_regset_sections): Likewise.
3427 (ppc64_linux_fp_regset_sections): Likewise.
3428 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3429 for current word size.
3430
3431 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3432
3433 * server.c (myresume): Make static.
3434
3435 2010-07-06 Tom Tromey <tromey@redhat.com>
3436
3437 * configure, config.in: Rebuild.
3438 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3439 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3440
3441 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3442
3443 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3444 "clear".
3445
3446 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3447
3448 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3449 * gdbtypes.c (floatformats_ieee_half): New variable.
3450 * doublest.c (floatformat_from_length): Set format to
3451 gdbarch_half_format if length matches.
3452 * gdbarch.sh (half_bit): New architecture method.
3453 (half_format): Likewise.
3454 * gdbarch.h: Regenerate.
3455 * gdbarch.c: Likewise.
3456
3457 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3458 Joel Brobecker <brobecker@adacore.com>
3459
3460 Fix re-run of PIE executable, PR shlibs/11776.
3461 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3462 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3463
3464 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3465 Joel Brobecker <brobecker@adacore.com>
3466
3467 * auxv.c (memory_xfer_auxv): Update attach comment.
3468 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3469 svr4_relocate_main_executable.
3470 (svr4_solib_create_inferior_hook): Make the call to
3471 svr4_relocate_main_executable unconditional.
3472
3473 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3474 Joel Brobecker <brobecker@adacore.com>
3475
3476 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3477
3478 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3479 Joel Brobecker <brobecker@adacore.com>
3480
3481 Fix attaching to PIEs prelinked on the disk after the process was
3482 started.
3483 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3484 Verify it against bfd_get_arch_size. Try to match arbitrary
3485 displacement for the phdrs comparison.
3486
3487 2010-07-02 Tom Tromey <tromey@redhat.com>
3488
3489 PR exp/11780:
3490 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3491 value as optimized-out.
3492
3493 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3494 Thiago Jung Bauermann <bauerman@br.ibm.com>
3495
3496 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3497 represent?" question in comment. Change comment to a proper sentence.
3498
3499 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3500
3501 * c-valprint.c (c_val_print): Fix printing of character vectors.
3502
3503 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3504
3505 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3506 create_breakpoint prototype.
3507
3508 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3509
3510 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3511 usefulness suggestion of multiple breakpoints at same location.
3512
3513 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3514
3515 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3516
3517 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3518
3519 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3520 (loclist_tracepoint_var_ref): Handle optimized out values.
3521
3522 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3523
3524 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3525 unnecessary space in string.
3526 * filesystem.c (_initialize_filesystem): Ditto.
3527 * frame.c (_initialize_frame): Ditto.
3528 * infcmd.c (step_once): Ditto.
3529 * infrun.c (_initialize_infrun): Ditto.
3530 * linux-nat.c (linux_child_follow_fork): Ditto.
3531 * maint.c (maintenance_deprecate): Ditto.
3532 * memattr.c (_initialize_mem): Ditto.
3533 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3534 * monitor.c (monitor_open): Ditto.
3535 * procfs.c (procfs_xfer_memory): Ditto.
3536 * reverse.c (bookmarks_info): Ditto.
3537 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3538 * stack.c (_initialize_stack): Ditto.
3539 * tracepoint.c (_initialize_tracepoint): Ditto.
3540 * xtensa-tdep.c (xtensa_supply_gregset,
3541 xtensa_regset_from_core_section): Ditto.
3542
3543 2010-07-01 Tom Tromey <tromey@redhat.com>
3544
3545 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3546 check_all_valid.
3547 * value.c (value_entirely_optimized_out): Invert result. Update
3548 for new function name.
3549
3550 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3551
3552 Static tracepoints support.
3553
3554 * NEWS: Mention new support for static tracepoints.
3555 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3556 qXfer:statictrace:read.
3557 (New features in the GDB remote stub, GDBserver): Mention static
3558 tracepoints support using an UST based backend.
3559 (New commands): Mention "info static-tracepoint-markers" and
3560 "strace".
3561 * breakpoint.c (is_marker_spec): New.
3562 (is_tracepoint): Handle static tracepoints.
3563 (validate_commands_for_breakpoint): Static tracepoints can't do
3564 while-stepping.
3565 (static_tracepoints_here): New.
3566 (bpstat_what): Handle static tracepoints.
3567 (print_one_breakpoint_location, allocate_bp_location, mention):
3568 Ditto.
3569 (create_breakpoint_sal): Ditto.
3570 (decode_static_tracepoint_spec): New.
3571 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3572 `type_wanted'. Adjust. Handle static tracepoint marker
3573 locations.
3574 (break_command_1): Adjust.
3575 (update_static_tracepoint): New.
3576 (update_breakpoint_locations): Handle static tracepoints.
3577 (breakpoint_re_set_one): Handle static tracepoint marker
3578 locations.
3579 (disable_command, enable_command): Handle static tracepoints.
3580 (trace_command, ftrace_command): Adjust.
3581 (strace_command): New.
3582 (create_tracepoint_from_upload): Adjust.
3583 (save_breakpoints): Handle static tracepoints.
3584 (_initialize_breakpoint): Install the "strace" command.
3585 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3586 (struct breakpoint): New fields static_trace_marker_id and
3587 static_trace_marker_id_idx.
3588 (breakpoints_here_p): Declare.
3589 (create_breakpoint): Adjust.
3590 (static_tracepoints_here): Declare.
3591 * remote.c (struct remote_state) <static_tracepoints>: New field.
3592 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3593 (remote_static_tracepoint_marker_at): New.
3594 (remote_static_tracepoint_markers_by_strid): New.
3595 (remote_static_tracepoint_feature): New.
3596 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3597 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3598 (remote_supports_static_tracepoints): New.
3599 (remote_download_tracepoint): Download static tracepoints.
3600 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3601 remote_static_tracepoint_markers_by_strid.
3602 (_initialize_remote): Install set|show remote static-tracepoints,
3603 and set|show remote read-sdata-object commands.
3604 * target.c (update_current_target): Inherit and default
3605 to_static_tracepoint_marker_at, and
3606 to_static_tracepoint_markers_by_strid.
3607 * target.h (static_tracepoint_marker): Forward declare.
3608 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3609 (static_tracepoint_marker_p): New typedef.
3610 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3611 (struct target_ops): New fields to_static_tracepoint_marker_at and
3612 to_static_tracepoint_markers_by_strid.
3613 (target_static_tracepoint_marker_at)
3614 (target_static_tracepoint_markers_by_strid): New.
3615 * tracepoint.c: Include source.h.
3616 (validate_actionline): Handle $_sdata.
3617 (struct collection_list): New field strace_data.
3618 (add_static_trace_data): New.
3619 (clear_collection_list): Clear strace_data.
3620 (stringify_collection_list): Account for a possible static trace
3621 data collection.
3622 (encode_actions_1): Encode an $_sdata collection.
3623 (parse_tracepoint_definition): Handle static tracepoints.
3624 (parse_static_tracepoint_marker_definition): New.
3625 (release_static_tracepoint_marker): New.
3626 (print_one_static_tracepoint_marker): New.
3627 (info_static_tracepoint_markers_command): New.
3628 (sdata_make_value): New.
3629 (_initialize_tracepoint): Create the $_sdata convenience variable.
3630 Add the "info static-tracepoint-markers" command.
3631 Mention $_sdata in the "collect" command's help output.
3632 * tracepoint.h (struct static_tracepoint_marker): New.
3633 (parse_static_tracepoint_marker_definition)
3634 (release_static_tracepoint_marker): Declare.
3635 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3636 * python/py-breakpoint.c (bppy_new): Adjust.
3637
3638 2010-06-30 Joel Brobecker <brobecker@adacore.com>
3639
3640 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3641 including Python.h.
3642
3643 2010-06-29 Doug Evans <dje@google.com>
3644
3645 PR gdb/11702
3646 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3647 DW_AT_external is present.
3648
3649 PR gdb/11702
3650 * NEWS: Add entry.
3651 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3652 create a symbol for the field and record the value.
3653 (new_symbol): Handle DW_TAG_member.
3654 * gdbtypes.c (field_is_static): Remove FIXME.
3655 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3656 only ignore LOC_CONST symbols that are enums.
3657
3658 * dwarf2read.c: Remove trailing whitespace.
3659
3660 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3661 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3662 (struct main_type, field loc): Delete dwarf_block.
3663 (FIELD_DWARF_BLOCK): Delete.
3664 (SET_FIELD_DWARF_BLOCK): Delete.
3665 (TYPE_FIELD_DWARF_BLOCK): Delete.
3666 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3667 Update.
3668
3669 2010-06-29 Hui Zhu <teawater@gmail.com>
3670
3671 * record.c (set_record_pic_cmdlist,
3672 show_record_pic_cmdlist): New variables.
3673 (set_record_pic_command,
3674 show_record_pic_command): New functions.
3675 (record_pic_function, record_pic_line, record_pic_enum,
3676 set_record_pic_type, record_pic_hide_nofunction,
3677 record_pic_hide_nosource, record_pic_hide_same): New variables.
3678 (record_pic_fputs): New function.
3679 (function_list, node_list, edge_list): New struct.
3680 (function_list, node_list, edge_list): New variables.
3681 (record_pic_cleanups, record_pic_node,
3682 record_pic_edge, cmd_record_pic): New functions.
3683 (_initialize_record): Add new commands for record pic.
3684
3685 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3686
3687 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3688 ALLOCATE_CPLUS_STRUCT_TYPE.
3689
3690 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
3691 Tom Tromey <tromey@redhat.com>
3692 Thiago Jung Bauermann <bauerman@br.ibm.com>
3693
3694 * value.c (pack_unsigned_long): New function.
3695 (value_from_ulongest): New function.
3696 * value.h (value_from_ulongest): Declare.
3697 * python/python.c (_initialize_python): Call
3698 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3699 * python/python-internal.h: Define thread_object.
3700 (gdbpy_inferiors, gdbpy_selected_thread)
3701 (frame_info_to_frame_object, create_thread_object)
3702 (find_thread_object, find_inferior_object)
3703 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3704 (gdbpy_is_value_object, get_addr_from_python): Declare.
3705 * python/py-value.c (builtin_type_upylong): Define.
3706 (convert_value_from_python): Add logic for ulongest.
3707 (gdbpy_is_value_object): New function.
3708 * python/py-utils.c (get_addr_from_python): New function.
3709 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3710 (gdbpy_selected_frame): Use PyObject over frame_info.
3711 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3712 py-infthread.
3713 (SUBDIR_PYTHON_SRCS): Likewise.
3714 (py-inferior.o): New Rule.
3715 (py-infthread.o): New Rule.
3716 * python/py-inferior.c: New File.
3717 * python/py-infthread.c: New File.
3718
3719 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3720
3721 * c-typeprint.c (c_type_print_base): For no fields check include also
3722 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3723 * dwarf2read.c (struct typedef_field_list)
3724 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3725 (dwarf2_add_typedef): New.
3726 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3727 Copy also FI.TYPEDEF_FIELD_LIST.
3728 * gdbtypes.h (struct typedef_field)
3729 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3730 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3731 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3732
3733 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3734
3735 * cp-namespace.c (cp_lookup_nested_type): New variable
3736 concatenated_name. Turn the current return condition into a reverse
3737 one. Call also lookup_static_symbol_aux on the constructed qualified
3738 name.
3739 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3740 other files into a called ...
3741 (lookup_static_symbol_aux): ... new function here.
3742 * symtab.h (lookup_static_symbol_aux): New prototype.
3743 * valops.c (value_maybe_namespace_elt): Call also
3744 lookup_static_symbol_aux if we failed otherwise.
3745
3746 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3747
3748 Fix PR c++/11703 and PR gdb/1448.
3749 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3750 FIRST_ITER check.
3751
3752 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3753
3754 Fix modification of cplus_struct_default.
3755 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3756 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3757 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3758
3759 2010-06-28 Joel Brobecker <brobecker@adacore.com>
3760
3761 * NEWS: Add entry announcing the python directory.
3762
3763 2010-06-28 Tom Tromey <tromey@redhat.com>
3764
3765 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3766
3767 2010-06-28 Doug Evans <dje@google.com>
3768
3769 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3770 All callers updated.
3771
3772 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3773
3774 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3775 obstack_begin after each obstack_free.
3776
3777 2010-06-27 Doug Evans <dje@google.com>
3778
3779 * value.c (value_static_field): Use `switch' instead of `if'.
3780 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3781
3782 * valops.c (search_struct_field): Fix typo in error message.
3783
3784 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3785
3786 * dwarf2expr.c (execute_stack_op): Place preprocessor
3787 directives at the start of the source line.
3788
3789 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3790
3791 * defs.h (make_command_stats_cleanup): Declare.
3792 (set_display_time): Declare.
3793 (set_display_space): Declare.
3794 * event-top.c (command_handler): Use make_command_stats_cleanup.
3795 * main.c (display_time, display_space): Move definitions to utils.c.
3796 (captured_main): Use make_command_stats_cleanup to get start-up
3797 statistics.
3798 Use set_display_time and set_display_space for processing OPT_STATISTICS
3799 case.
3800 * maint.c (maintenance_time_display): Use set_display_time.
3801 (maintenance_space_display): Use set_display_space.
3802 * top.c (execute_command): Remove obsolete 'maint time' code.
3803 (command_loop): Use make_command_stats_cleanup.
3804 * utils.c (struct cmd_stats): Structure for storing initial time
3805 and space usage.
3806 (display_time, display_space): Move definitions here from utils.c.
3807 (set_display_time): New function.
3808 (set_display_space): New function.
3809 (make_command_stats_cleanup): New function.
3810 (report_command_stats): New auxiliary function for
3811 make_command_stats_cleanup.
3812
3813 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3814
3815 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3816 hosts where CORE_ADDR is long long.
3817
3818 2010-06-25 Tom Tromey <tromey@redhat.com>
3819
3820 PR python/10808:
3821 * python/python.c (execute_gdb_command): Add keywords. Accept
3822 "to_string" argument.
3823 (struct restore_ui_file_closure): New.
3824 (restore_ui_file): New function.
3825 (make_cleanup_restore_ui_file): Likewise.
3826 (GdbMethods) <execute>: Update.
3827
3828 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3829
3830 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3831 during inferior call stack frame setup.
3832
3833 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
3834
3835 * solib-spu.c: Include "exception.h".
3836 (ocl_program_data_key): New variable.
3837 (append_ocl_sos): New function.
3838 (ocl_enable_break): Likewise.
3839 (spu_current_sos): Call append_ocl_sos.
3840 (spu_solib_loaded): Call ocl_enable_break.
3841 (_initialize_spu_solib): Register ocl_program_data_key.
3842
3843 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3844
3845 * cp-support.c (reset_directive_searched): New function.
3846 (make_symbol_overload_list_using): Prevent recursive calls.
3847
3848 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3849
3850 * printcmd.c (print_variable_and_value): Print error message on
3851 caught exception.
3852
3853 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3854
3855 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3856 of stack values.
3857 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3858 "value" member.
3859 (dwarf_expr_push): Change input type to ULONGEST.
3860 (dwarf_expr_fetch): Change return type to ULONGEST.
3861 (dwarf_expr_fetch_address): Add prototype.
3862 (dwarf2_read_address): Remove prototype.
3863 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3864 Truncate stack values to ctx->addr_size bytes.
3865 (dwarf_expr_fetch): Change return value to ULONGEST.
3866 (dwarf_expr_fetch_address): New function.
3867 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3868 when appropriate. Update for struct dwarf_expr_piece changes.
3869 (dwarf2_read_address): Remove.
3870 (unsigned_address_type): Remove.
3871 (signed_address_type): Remove.
3872 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3873 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3874 values. Perform operations on ULONGEST instead of on GDB values,
3875 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3876 values and DW_OP_deref results as unsigned integers.
3877 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3878 changes.
3879 (write_pieced_value): Likewise.
3880 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3881 dwarf_expr_fetch when appropriate.
3882 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3883 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3884 instead of dwarf_expr_fetch when appropriate.
3885
3886 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3887
3888 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3889
3890 2010-06-24 Joel Brobecker <brobecker@adacore.com>
3891
3892 * python/python.c (_initialize_python): Add new "constant"
3893 PYTHONDIR in gdb module. Insert this path at the head of
3894 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3895 exec its __init__.py script if it exists in that directory.
3896
3897 2010-06-24 Kevin Buettner <kevinb@redhat.com>
3898
3899 * rx-tdep.c (RX_ACC_REGNUM): Define.
3900 (RX_NUM_REGS): Redefine to 26.
3901 (rx_register_name): Add register "acc". Change order of several
3902 registers. Change name of "vct" register to "fintv" to match RX
3903 documentation.
3904 (rx_register_type): Add case for RX_ACC_REGNUM.
3905
3906 2010-06-24 Tom Tromey <tromey@redhat.com>
3907
3908 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3909
3910 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3911 Tom Tromey <tromey@redhat.com>
3912
3913 Fix GDB startup on readonly filesystem.
3914 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3915
3916 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3917 Pedro Alves <pedro@codesourcery.com>
3918
3919 Fix PR 9436.
3920 * breakpoint.c (handle_jit_event): New function.
3921 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3922 jit, err, table and bs_class. New variables shlib_event, jit_event,
3923 this_action and bptype. Change bs_class assignments to this_action
3924 assignments. new unhandled bptype internal error. Move here
3925 shlib_event and jit_event handling from handle_inferior_event.
3926 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3927 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3928 BPSTAT_WHAT_CHECK_JIT.
3929 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3930 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3931 (handle_inferior_event): Reinitialize frame and gdbarch after
3932 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3933 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3934 gdbarch when frame gets reinitialized.
3935
3936 2010-06-24 Hui Zhu <teawater@gmail.com>
3937
3938 * printcmd.c (ui_printf): New function.
3939 (printf_command): Call ui_printf.
3940 (_initialize_printcmd): New command "eval".
3941
3942 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3943
3944 * infrun.c (handle_inferior_event): Handle presence of single-step
3945 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3946 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3947 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3948 * breakpoint.c (detach_single_step_breakpoints): New function.
3949 (detach_breakpoints): Call it.
3950 (cancel_single_step_breakpoints): New function.
3951 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3952
3953 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3954 (spu_gdbarch_init): Install it.
3955
3956 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3957
3958 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3959 * configure: Regenerate.
3960
3961 2010-06-22 Hui Zhu <teawater@gmail.com>
3962
3963 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3964 (i386_process_record): Ditto.
3965 * record.c (record_memory_query): New variable.
3966 (_initialize_record): New command "set record memory-query".
3967 * record.h (record_memory_query): New extern.
3968
3969 2010-06-21 Doug Evans <dje@google.com>
3970
3971 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3972 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3973 (i386_syscall_p): Change type of lengthp to int.
3974 (i386_displaced_step_fixup): Handle kernels that run one past a
3975 syscall insn.
3976 * i386-linux-tdep.c (i386_linux_init_abi): Use
3977 i386_displaced_step_copy_insn instead of
3978 simple_displaced_step_copy_insn.
3979
3980 2010-06-21 Tom Tromey <tromey@redhat.com>
3981
3982 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3983 (dwarf_type_encoding_name): Likewise.
3984
3985 2010-06-21 Tom Tromey <tromey@redhat.com>
3986
3987 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3988 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3989 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3990 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3991 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3992 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3993 * dwarf2read.c (tag_type_to_type): Create a new error type on
3994 failure.
3995 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3996 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3997
3998 2010-06-21 Michael Snyder <msnyder@vmware.com>
3999
4000 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4001 not add_abbrev_prefix_cmd, for "enable breakpoints".
4002
4003 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4004
4005 * dwarf2loc.c (find_location_expression): Add relocation offset
4006 to base-address-selection entry base addresses. Read addresses
4007 (and offsets) as signed/unsigned integers, depending on the
4008 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4009 (loclist_describe_location): Likewise.
4010 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4011 unsigned integer. Do not call dwarf2_read_address.
4012 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4013
4014 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4015
4016 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4017 value instead of hard-coded SPU_LS_SIZE.
4018 (spu_software_single_step): Likewise.
4019 * spu-tdep.h (SPU_LS_SIZE): Remove.
4020
4021 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4022
4023 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4024 limit on local store memory accesses.
4025 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4026 * spu-tdep.c (spu_lslr): Remove.
4027 (spu_pointer_to_address): Do not truncate addresses.
4028 (spu_integer_to_address): Likewise.
4029 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4030 * spu-tdep.h: Add comments.
4031 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4032 (SPU_OVERLAY_LMA): Define.
4033
4034 2010-06-18 Stan Shebs <stan@codesourcery.com>
4035
4036 * osdata.c (get_osdata): Warn separately if target does not report
4037 type list.
4038 (info_osdata_command): Allow empty type, report error if target
4039 does not return available types of OS data.
4040 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4041 types if no annex supplied.
4042
4043 * thread.c (thread_id_make_value): Make a value representing the
4044 current thread.
4045 (_initialize_thread): Create $_thread.
4046
4047 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4048
4049 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4050 last local variable declaration. No real code change.
4051
4052 2010-06-17 Tom Tromey <tromey@redhat.com>
4053
4054 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4055 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4056 temporary obstack.
4057
4058 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4059 Jan Kratochvil <jan.kratochvil@redhat.com>
4060
4061 * breakpoint.c: Include parser-defs.h.
4062 (watchpoint_exp_is_const): New function.
4063 (watch_command_1): Call watchpoint_exp_is_const to check
4064 if the expression is constant.
4065
4066 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4067
4068 * configure.ac: Check for RDYNAMIC also for cross builds.
4069 * configure: Regenerate.
4070
4071 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4072
4073 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4074 (SFILES): Remove solib-null.c, add solib-target.c.
4075 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4076 (ALLDEPFILES): Remove solib-target.c.
4077 * solib-target.c (_initialize_solib_target): Set
4078 current_target_so_ops to solib_target_so_ops if not already set.
4079 * solib-null.c: Delete.
4080
4081 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4082
4083 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4084 bytecode.
4085
4086 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4087
4088 * cp-valprint.c (cp_print_static_field): Members of
4089 dont_print_stat_array_obstack are of type "struct type *".
4090 (_initialize_cp_valprint): Likewise.
4091
4092 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4093
4094 * frame.c (frame_register_unwind): Do not access contents
4095 of "optimized out" unwound register value.
4096
4097 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4098
4099 * ada-lang.h (ada_print_type): Make varstring const.
4100 * ada-typeprint.c (print_func_type): Make name const.
4101 (ada_print_type): Make varstring const.
4102 * c-lang.h (c_print_type): Make varstring const.
4103 * c-typeprint.c (c_print_type): Likewise.
4104 * f-lang.h (f_print_type): Likewise.
4105 * f-typeprint.c (f_print_type): Likewise.
4106 * jv-lang.h (java_print_type): Likewise.
4107 * jv-typeprint.c (java_print_type): Likewise.
4108 * language.c (unk_lang_print_type): Likewise.
4109 * language.h (struct language_defn) <la_print_type>: Likewise.
4110 * m2-lang.h (m2_print_type): Likewise.
4111 * m2-typeprint.c (m2_print_type): Likewise.
4112 * p-lang.h (pascal_print_type): Likewise.
4113 * p-typeprint.c (pascal_print_type): Likewise.
4114
4115 2010-06-11 Stan Shebs <stan@codesourcery.com>
4116
4117 Add per-operation permission flags.
4118
4119 * target.h (struct target_ops): New method to_set_permissions.
4120 (target_set_permissions): New macro.
4121 (target_insert_breakpoint): Change macro to function.
4122 (target_remove_breakpoint): Ditto.
4123 (target_stop): Ditto.
4124 (may_write_registers): Declare.
4125 (may_write_memory): Declare.
4126 (may_insert_breakpoints): Declare.
4127 (may_insert_tracepoints): Declare.
4128 (may_insert_fast_tracepoints): Declare.
4129 (may_stop): Declare.
4130 * target.c (may_write_registers, may_write_registers_1): New globals.
4131 (may_write_memory, may_write_memory_1): New globals.
4132 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4133 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4134 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4135 globals.
4136 (may_stop, may_stop_1): New global.
4137 (target_xfer_partial): Test for write permission.
4138 (target_store_registers): Ditto.
4139 (target_insert_breakpoint): New function.
4140 (target_remove_breakpoint): New function.
4141 (target_stop): New function.
4142 (_initialize_targets): Add new set/show variables.
4143 (set_write_memory_permission): New function.
4144 (update_target_permissions): New function.
4145 (set_target_permissions): New function.
4146 (update_current_target): Default to_set_permissions.
4147 (_initialize_targets): Use new globals and setter function.
4148 * tracepoint.c (start_tracing): Test for permission.
4149 * inferior.h (update_observer_mode): Declare.
4150 * infrun.c (non_stop_1): Define earlier.
4151 (observer_mode, observer_mode_1): New globals.
4152 (set_observer_mode, show_observer_mode): New functions.
4153 (update_observer_mode): New function.
4154 (_initialize_infrun): Define "set observer" command.
4155 * remote.c (PACKET_QAllow): New optional packet.
4156 (remote_protocol_features): Add QAllow.
4157 (remote_set_permissions): New function.
4158 (remote_start_remote): Call it.
4159 (init_remote_ops): Add it to target vector.
4160 (_initialize_remote): Add config command for QAllow.
4161
4162 2010-06-11 Tom Tromey <tromey@redhat.com>
4163
4164 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4165 DW_AT_vtable_elem_location even when GCC extension is seen.
4166
4167 2010-06-11 Tom Tromey <tromey@redhat.com>
4168
4169 PR gdb/9977, PR exp/11636:
4170 * value.h (value_offset): Update.
4171 (struct lval_funcs) <check_validity>: New field.
4172 <copy_closure>: Make argument const.
4173 (value_computed_closure): Update.
4174 (value_contents_for_printing): Declare.
4175 (value_bits_valid): Likewise.
4176 (val_print): Likewise.
4177 (set_value_component_location): Update.
4178 (value_entirely_optimized_out): Declare.
4179 * value.c (value_offset): Argument now const.
4180 (require_not_optimized_out): New function.
4181 (value_contents_for_printing): New function.
4182 (value_contents_all): Call require_not_optimized_out.
4183 (value_contents): Likewise.
4184 (value_bits_valid): New function.
4185 (value_computed_closure): Argument now const.
4186 (set_value_component_location): Make 'whole' argument const.
4187 (value_entirely_optimized_out): New function.
4188 (value_bitsize): Argument now 'const'.
4189 (value_bitpos): Likewise.
4190 (value_type): Likewise.
4191 * valprint.h (val_print_array_elements): Update.
4192 * valprint.c (val_print): Add 'val' argument. Use
4193 valprint_check_validity.
4194 (valprint_check_validity): New function.
4195 (value_check_printable): Use value_entirely_optimized_out.
4196 (common_val_print): Update.
4197 (value_print): Likewise.
4198 (val_print_array_elements): Add 'val' argument.
4199 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4200 value_bits_valid. Reinit frame cache for lval_computed.
4201 * sh64-tdep.c (sh64_do_register): Update.
4202 * scm-valprint.c (scm_val_print): Add 'val' argument.
4203 * scm-lang.h (scm_val_print): Update.
4204 * python/python.h (apply_val_pretty_printer): Update.
4205 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4206 argument. Call set_value_component_location.
4207 * printcmd.c (print_scalar_formatted): Update.
4208 * p-valprint.c (pascal_val_print): Add 'val' argument.
4209 (pascal_object_print_value_fields): Likewise.
4210 (pascal_object_print_value): Likewise.
4211 (pascal_object_print_static_field): Update.
4212 * p-lang.h (pascal_val_print): Update.
4213 (pascal_object_print_value_fields): Update.
4214 * mt-tdep.c (mt_registers_info): Update.
4215 * mi/mi-main.c (get_register): Update.
4216 (mi_cmd_data_evaluate_expression): Use common_val_print.
4217 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4218 (m2_print_unbounded_array): Likewise.
4219 (m2_val_print): Likewise.
4220 * m2-lang.h (m2_val_print): Update.
4221 * language.h (struct language_defn) <la_val_print>: Add 'val'
4222 argument.
4223 (LA_VAL_PRINT): Likewise.
4224 * language.c (unk_lang_val_print): Add 'val' argument.
4225 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4226 (java_val_print): Likewise.
4227 * jv-lang.h (java_val_print): Add 'val' argument.
4228 * infcmd.c (default_print_registers_info): Update.
4229 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4230 (f77_print_array): Likewise.
4231 (f_val_print): Likewise.
4232 * f-lang.h (f_val_print): Add 'val' argument.
4233 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4234 value_bitpos.
4235 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4236 set_value_optimized_out.
4237 (write_pieced_value): Use value_bitsize and value_bitpos.
4238 <default>: Don't exit loop.
4239 (check_pieced_value_validity): New function.
4240 (pieced_value_funcs): Reference check_pieced_value_validity,
4241 check_pieced_value_invalid.
4242 (copy_pieced_value_closure): Update.
4243 (check_pieced_value_bits): New function.
4244 (check_pieced_value_invalid): New function.
4245 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4246 (d_val_print): Likewise.
4247 * d-lang.h (d_val_print): Update.
4248 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4249 (cp_print_value_fields_rtti): Likewise.
4250 (cp_print_value): Likewise.
4251 (cp_print_static_field): Update.
4252 * c-valprint.c (c_val_print): Add 'val' argument.
4253 (c_value_print): Update.
4254 * c-lang.h (c_val_print): Update.
4255 (cp_print_value_fields): Likewise.
4256 (cp_print_value_fields_rtti): Likewise.
4257 * ada-valprint.c (struct ada_val_print_args): Remove.
4258 (val_print_packed_array_elements): Add 'val' argument.
4259 (ada_val_print): Likewise. Rewrite.
4260 (ada_val_print_stub): Remove.
4261 (ada_val_print_array): Add 'val' argument.
4262 (ada_val_print_1): Likewise.
4263 (print_variant_part): Likewise.
4264 (ada_value_print): Update.
4265 (print_record): Add 'val' argument.
4266 (print_field_values): Likewise.
4267 * ada-lang.h (ada_val_print): Update.
4268
4269 2010-06-11 Tom Tromey <tromey@redhat.com>
4270
4271 * vec.h (VEC_cleanup): New macro.
4272 (DEF_VEC_ALLOC_FUNC_I): Update.
4273 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4274 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4275 * dwarf2loc.c (struct axs_var_loc): Remove.
4276 (unimplemented): New function.
4277 (translate_register): Likewise.
4278 (access_memory): Likewise.
4279 (compile_dwarf_to_ax): Likewise.
4280 (dwarf2_tracepoint_var_loc): Remove.
4281 (dwarf2_tracepoint_var_access): Likewise.
4282 (dwarf2_tracepoint_var_ref): Likewise.
4283 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4284 (loclist_tracepoint_var_ref): Likewise.
4285 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4286 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4287 require_composition. No longer static.
4288 (execute_stack_op): Update.
4289 * ax-gdb.h (trace_kludge): Declare.
4290
4291 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4292
4293 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4294 (should_be_inserted): Return zero also on NULL OWNER.
4295 (breakpoint_program_space_exit): New OWNER comment.
4296 (insert_breakpoint_locations): Extend comment for OWNER.
4297 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4298 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4299 New OWNER comment.
4300 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4301 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4302 (bpstat_check_location): New assert on OWNER.
4303 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4304 and B initializations to the code block. New assert on them.
4305 (print_one_breakpoint_location): New OWNER comment.
4306 (watchpoint_locations_match): Assert on OWNER.
4307 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4308 initializations to the code block. New assert on OWNER.
4309 (set_breakpoint_location_function): New assert on OWNER.
4310 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4311 (bp_location_compare, update_global_location_list)
4312 (update_global_location_list): New OWNER comment.
4313
4314 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4315
4316 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4317
4318 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4319
4320 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4321 (lin_thread_get_thread_signals): Remove prototype.
4322 (GET_THREAD_SIGNALS): Remove.
4323 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4324 * linux-thread-db.c (check_thread_signals): Directly call
4325 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4326
4327 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4328
4329 * gregset.h (GDB_FPXREGSET_T): Remove.
4330 (gdb_fpxregset_t): Likewise.
4331 (supply_fpxregset): Remove prototype.
4332 (fill_fpxregset): Likewise.
4333 * i386-linux-nat.c (supply_fpxregset): Remove.
4334 (fill_fpxregset): Likewise.
4335 (fetch_fpxregs): Inline supply_fpxregset call.
4336 (store_fpxregs): Inline fill_fpxregset call.
4337
4338 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4339 * config/i386/nm-linux.h: Remove file.
4340
4341 2010-06-09 Michael Snyder <msnyder@vmware.com>
4342
4343 * target.c (update_current_target): Fix spelling error in comment.
4344 (target_mourn_inferior): Fix spelling error in error message.
4345
4346 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4347
4348 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4349 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4350
4351 2010-06-08 Michael Snyder <msnyder@vmware.com>
4352
4353 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4354
4355 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4356
4357 * configure.ac <"${have_libpython}" != no>: New workaround of
4358 python#4434.
4359 * configure: Regenerate.
4360
4361 2010-06-08 Hui Zhu <teawater@gmail.com>
4362
4363 * record.c (record_wait): Move signal out of replay code.
4364
4365 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4366
4367 Fix PR 10640.
4368 * dwarf2-frame.c (no_dwarf_call): New function.
4369 (execute_stack_op): Set CTX->DWARF_CALL.
4370 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4371 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4372 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4373 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4374 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4375 (needs_frame_dwarf_call): New function.
4376 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4377 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4378 Update the comment. Move variables die, offset and error call to ...
4379 (follow_die_ref): ... a new function.
4380 (dwarf2_fetch_die_location_block): New function.
4381 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4382
4383 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4384
4385 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4386 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4387 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4388 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4389 this change.
4390 (struct needs_frame_baton): New field per_cu.
4391 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4392 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4393
4394 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4395
4396 * cp-support.c (make_symbol_overload_list_namespace): Only search
4397 static and global blocks.
4398 (make_symbol_overload_list_block): New function.
4399 (make_symbol_overload_list): Separate namespace search from block
4400 search.
4401 (make_symbol_overload_list_qualified): Use
4402 make_symbol_overload_list_block.
4403
4404 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4405
4406 * value.h: Created oload_search_type enum.
4407 (find_overload_match): Use oload_search_type enum.
4408 * valops.c (find_overload_match): Support combined member and
4409 non-member search.
4410 * eval.c (evaluate_subexp_standard): Calls to
4411 find_overload_match now use oload_search_type enum.
4412 (oload_method_static): Verify index is a proper value.
4413 * valarith.c (value_user_defined_cpp_op): Search for and handle
4414 both member and non-member operators.
4415 (value_user_defined_cpp_op): New function.
4416 (value_user_defined_op): New function.
4417 (value_x_unop): Use value_user_defined_op.
4418 (value_x_binop): Ditto.
4419 * cp-support.c (make_symbol_overload_list_using): Added block
4420 iteration.
4421 Add check for namespace aliases and imported declarations.
4422
4423 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4424
4425 * breakpoint.h (owner): Extend the comment.
4426
4427 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4428
4429 Clear stale specific bp_location from former whole breakpoint.
4430 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4431 code ...
4432 (free_bp_location): ... here. Rename there the called function to
4433 bpstat_remove_bp_location_callback.
4434 (bpstat_remove_breakpoint_callback): Rename to ...
4435 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4436 to struct bp_location. Change the called function to
4437 bpstat_remove_bp_location. Create new declaration for the function.
4438 (bpstat_remove_breakpoint): Rename to ...
4439 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4440 code for the new parameter type.
4441
4442 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4443
4444 * README: Make version-agnostic.
4445
4446 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4447
4448 Fix duplicate types for single DIE.
4449 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4450 set_die_type.
4451 (read_array_type): Remove type initialization. Recheck get_die_type
4452 after initial die_type. Move set_die_type before set_descriptive_type.
4453 (read_set_type): New variable domain_type. Recheck get_die_type after
4454 initial die_type. Move attr initialization later.
4455 (read_tag_pointer_type, read_tag_reference_type): New variable
4456 target_type. Recheck get_die_type after initial die_type.
4457 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4458 die_type and die_containing_type.
4459 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4460 Recheck get_die_type after initial die_type.
4461 (read_subrange_type): Recheck get_die_type after initial die_type.
4462 Move set_die_type before set_descriptive_type.
4463 (set_die_type): Extend the function comment. Call complaint if DIE has
4464 some type already set.
4465
4466 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4467
4468 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4469 for current naming of thread groups (iN, not N).
4470
4471 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4472
4473 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4474 * parse.c (operator_length): Likewise.
4475 (operator_length_standard): Likewise.
4476 * parser-defs.h (operator_length): Likewise.
4477 (operator_length_standard): Likewise.
4478 (struct exp_descriptor <operator_length>): Likewise.
4479
4480 2010-06-04 Doug Evans <dje@google.com>
4481
4482 Add support for enabling/disabling individual pretty-printers.
4483 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4484 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4485 * python/python.c (gdbpy_enabled_cst): Define.
4486 (_initialize_python): Initialize gdbpy_enabled_cst.
4487 * NEWS: Add entry.
4488
4489 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4490
4491 * breakpoint.c (update_global_location_list): Fix comment typo.
4492
4493 2010-06-04 Hui Zhu <teawater@gmail.com>
4494
4495 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4496
4497 2010-06-03 Doug Evans <dje@google.com>
4498
4499 * configure.ac: Don't fail if python is unusable when
4500 configured with --with-python=auto.
4501 * configure: Regenerate.
4502
4503 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4504
4505 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4506
4507 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4508
4509 * valprint.h (get_array_bounds): Change low and high parameter types
4510 to LONGEST *.
4511 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4512 compute bounds.
4513 (val_print_array_elements): Adapt to change above.
4514 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4515 * p-valprint.c (pascal_val_print): Likewise.
4516
4517 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4518
4519 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4520 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4521 .F08.
4522
4523 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4524
4525 Support DW_TAG_module as separate namespaces.
4526 * dwarf2read.c (typename_concat): New parameter physname.
4527 (read_module_type): New function and declaration.
4528 (scan_partial_symbols): Scan also DW_TAG_module children.
4529 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4530 to typename_concat backward compatible physname value 0.
4531 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4532 backward compatible physname value 0.
4533 (add_partial_module, read_module): Remove FIXME comment.
4534 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4535 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4536 DIEs under DW_TAG_module.
4537 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4538 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4539 && physname and return there instead of just setting NAME. Extend
4540 the main block for language_fortran. Pass physname parameter to the
4541 typename_concat call.
4542 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4543 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4544 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4545 missing from SYMBOL_SET_NAMES in the language_fortran case.
4546 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4547 variables.
4548 (read_type_die) <DW_TAG_module>: New.
4549 (MAX_SEP_LEN): Increase to 7.
4550 (typename_concat): New parameter physname. New variable lead. Support
4551 also language_fortran.
4552 * f-exp.y (yylex): Consider : also as a symbol name character class.
4553 * f-lang.c: Include cp-support.h.
4554 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4555 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4556 f_word_break_characters and f_make_symbol_completion_list.
4557 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4558 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4559 * symtab.c (symbol_init_language_specific): Support language_fortran.
4560 (symbol_find_demangled_name): New comment on language_fortran.
4561 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4562 for language_fortran.
4563 (lookup_symbol_aux_local): Check imports also for language_fortran.
4564 (default_make_symbol_completion_list): Rename to ...
4565 (default_make_symbol_completion_list_break_on): ... this name. New
4566 parameter break_on, use it.
4567 (default_make_symbol_completion_list): New stub.
4568 * symtab.h (default_make_symbol_completion_list_break_on): New
4569 prototype.
4570
4571 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4572
4573 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4574 to error.
4575
4576 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4577
4578 * dwarf2read.c (typename_concat): Add const to the variable sep.
4579
4580 2010-06-02 Tom Tromey <tromey@redhat.com>
4581
4582 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4583 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4584 type is const. Add 'def' argument. Add missing operators, remove
4585 unhandled ones.
4586 (decode_locdesc): Update.
4587 (dwarf2_always_disassemble): New global.
4588 (show_dwarf2_always_disassemble): New function.
4589 (_initialize_dwarf2_read): Add always-disassemble.
4590 (dwarf2_per_cu_offset_size): New function.
4591 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4592 (piece_end_p): New function.
4593 (locexpr_describe_location_piece): Replace 'size' argument with
4594 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4595 some constants. Remove errors.
4596 (disassemble_dwarf_expression): New function.
4597 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4598 Add 'offset_size' argument.
4599 (loclist_describe_location): Change output formatting.
4600 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4601
4602 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4603
4604 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4605 anonymous type case.
4606
4607 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4608
4609 * dwarf2read.c (read_subrange_type): Handle missing base type
4610 according to Dwarf-2 specifications.
4611
4612 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4613
4614 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4615 BINOP_EXCL.
4616 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4617 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4618 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4619 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4620 UNOP_CHMAX, UNOP_CHMIN.
4621 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4622 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4623 UNOP_CHMIN>: Remove opcodes.
4624
4625 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4626
4627 * dwarf2read.c (read_func_scope): Do not complain for
4628 external function if bounds are not found.
4629
4630 2010-06-01 Pedro Alves <pedro@codesourcery.com>
4631
4632 * NEWS: Mention gdbserver fast tracepoints support.
4633
4634 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4635
4636 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4637 New macros.
4638 (windows_set_console_info): New function.
4639 (windows_create_inferior): Call windows_set_console_info
4640 if NEW_CONSOLE is true.
4641 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4642 (_initialize_loadable): Initialize GetConsoleFontSize and
4643 GetCurrentConsoleFont.
4644
4645 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4646
4647 * Makefile.in (RDYNAMIC): New.
4648 (SFILES): Add proc-service.list.
4649 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4650 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4651 * config/arm/linux.mh: Likewise.
4652 * config/i386/linux.mh: Likewise.
4653 * config/i386/linux64.mh: Likewise.
4654 * config/ia64/linux.mh: Likewise.
4655 * config/m32r/linux.mh: Likewise.
4656 * config/m68k/linux.mh: Likewise.
4657 * config/mips/linux.mh: Likewise.
4658 * config/pa/linux.mh: Likewise.
4659 * config/powerpc/linux.mh: Likewise.
4660 * config/powerpc/ppc64-linux.mh: Likewise.
4661 * config/s390/s390.mh: Likewise.
4662 * config/sparc/linux.mh: Likewise.
4663 * config/sparc/linux64.mh: Likewise.
4664 * config/xtensa/linux.mh: Likewise.
4665 * configure.ac: New RDYNAMIC on native host and GCC.
4666 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4667 * configure: Regenerate.
4668 * proc-service.list: New.
4669
4670 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4671
4672 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4673 CONTENT.
4674
4675 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4676
4677 * linux-nat.c (linux_nat_wait_1): Do not call
4678 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4679 TARGET_WAITKIND_SIGNALLED.
4680
4681 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4682
4683 * ada-lang.c (ada_inferior_data): New struct.
4684 (ada_inferior_data): New static global.
4685 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4686 (ada_get_tsd_type): New functions.
4687 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4688 to look the tsd type up.
4689 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4690 event. Set ada_inferior_data.
4691
4692 2010-05-27 Pedro Alves <pedro@codesourcery.com>
4693
4694 * remote.c (unpack_varlen_hex): Remove forward declaration.
4695 (remote_console_output): Make static, and add forward declaration.
4696 * remote.h: Drop FIXME comment.
4697 (unpack_varlen_hex): Declare.
4698 (remote_console_output, remote_cisco_objfile_relocate)
4699 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4700 Delete declarations.
4701 * tracepoint.c: Include "remote.h".
4702 (unpack_varlen_hex): Delete declaration.
4703
4704 2010-05-27 Tom Tromey <tromey@redhat.com>
4705
4706 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4707 (allocate_piece_closure): Initialize refc.
4708 (copy_pieced_value_closure): Use refc.
4709 (free_pieced_value_closure): Likewise.
4710
4711 2010-05-27 Tom Tromey <tromey@redhat.com>
4712
4713 * arm-tdep.c (push_stack_item): 'contents' now const.
4714 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4715 value_contents_writeable. Introduce new temporary.
4716
4717 2010-05-27 Tom Tromey <tromey@redhat.com>
4718
4719 * findcmd.c (parse_find_args): Use value_contents, not
4720 value_contents_raw.
4721
4722 2010-05-27 Tom Tromey <tromey@redhat.com>
4723
4724 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4725 const. Use value_contents, not value_contents_writeable.
4726
4727 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4728
4729 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4730 by call to value_contents.
4731
4732 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4733
4734 * MAINTAINERS: Add myself for write after approval privileges.
4735
4736 2010-05-26 Doug Evans <dje@google.com>
4737
4738 Allow python to find its files if moved from original location.
4739 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4740 (GDB_AC_WITH_DIR): Call it.
4741 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4742 python installation directory.
4743 * config.in: Regenerate.
4744 * configure: Regenerate.
4745 * defs.h (python_libdir): Declare.
4746 * main.c (python_libdir): Define.
4747 (captured_main): Initialize python_libdir.
4748 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4749 call Py_SetProgramName to make sure python can find its libraries
4750 and modules.
4751
4752 * configure.ac: Try to use python's distutils to fetch compilation
4753 parameters.
4754 * configure: Regenerate.
4755 * python/python-config.py: New file.
4756
4757 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4758
4759 * ser-tcp.c (net_open): Check error return from socket() call by its
4760 equality to -1 not by it being negative.
4761 (net_close): Likewise.
4762
4763 2010-05-26 Pedro Alves <pedro@codesourcery.com>
4764
4765 * NEWS: Mention the `qRelocInsn' feature.
4766 * gdbarch.sh (relocate_instruction): New.
4767 * amd64-tdep.c (rip_relative_offset): New.
4768 (append_insns): New.
4769 (amd64_relocate_instruction): New.
4770 (amd64_init_abi): Install it.
4771 * i386-tdep.c (append_insns): New.
4772 (i386_relocate_instruction): New.
4773 (i386_gdbarch_init): Install it.
4774 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4775 * gdbarch.h, gdbarch.c: Regenerate.
4776
4777 2010-05-26 Tom Tromey <tromey@redhat.com>
4778
4779 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4780 (struct dwarf2_loclist_baton) <data>: Likewise.
4781 * dwarf2loc.c (find_location_expression): Constify return type.
4782 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4783 (dwarf2_loc_desc_needs_frame): Likewise.
4784 (loclist_read_variable): Constify.
4785 (loclist_describe_location): Likewise.
4786 (loclist_tracepoint_var_ref): Likewise.
4787
4788 2010-05-25 Tom Tromey <tromey@redhat.com>
4789
4790 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4791 (dwarf_expr_frame_base_1): Likewise.
4792 (read_pieced_value): Update.
4793 (needs_frame_frame_base): Constify.
4794 (dwarf2_tracepoint_var_loc): Likewise.
4795 (dwarf2_tracepoint_var_access): Likewise.
4796 (locexpr_describe_location_piece): Likewise.
4797 (locexpr_describe_location_1): Likewise.
4798 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4799 Constify.
4800 (data): Now const.
4801 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4802 (dwarf_expr_eval, read_uleb128, read_sleb128)
4803 (dwarf2_read_address): Update.
4804 * dwarf2expr.c (dwarf_expr_eval): Constify.
4805 (read_uleb128): Likewise.
4806 (read_sleb128): Likewise.
4807 (dwarf2_read_address): Likewise.
4808 (require_composition): Likewise.
4809 (execute_stack_op): Likewise.
4810 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4811 "const gdb_byte *".
4812 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4813 Now const.
4814 (no_get_frame_base): Constify.
4815 (execute_stack_op): Likewise.
4816 (execute_cfa_program): Likewise.
4817 (read_encoded_value): Likewise.
4818
4819 2010-05-25 Doug Evans <dje@google.com>
4820
4821 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4822
4823 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4824 * event-loop.c: ... here.
4825 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4826 `error' for clarity.
4827 (tui_getc): Pass correct value for `error' parameter to
4828 tui_readline_output.
4829
4830 Add python gdb.GdbError and gdb.string_to_argv.
4831 * NEWS: Document them.
4832 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4833 the exception is gdb.GdbError. Print a second traceback if there's
4834 an error computing the error message.
4835 (gdbpy_string_to_argv): New function.
4836 * python/py-utils.c (gdbpy_obj_to_string): New function.
4837 (gdbpy_exception_to_string): New function.
4838 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4839 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4840 (gdbpy_gdberror_exc): Declare.
4841 * python/python.c (gdbpy_gdberror_exc): New global.
4842 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4843 gdb.GdbError.
4844 (GdbMethods): Add string_to_argv.
4845
4846 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4847
4848 * windows-nat.c (display_selector): Call GetLastError to give better
4849 failure explanation.
4850
4851 2010-05-24 Pedro Alves <pedro@codesourcery.com>
4852
4853 * config.in: Regenerate.
4854
4855 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4856
4857 Code cleanup.
4858 * target.c (push_target): Return only void. Remove the return value
4859 comment.
4860 * target.h (push_target): Return only void.
4861
4862 2010-05-23 Pedro Alves <pedro@codesourcery.com>
4863
4864 Update gnulib from latest git.
4865 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4866
4867 * gnulib/memcmp.c: Removed.
4868 * gnulib/memchr.valgrind: New.
4869 * gnulib/stddef.in.h: New.
4870 * gnulib/Makefile.am: Updated.
4871 * gnulib/memchr.c: Updated.
4872 * gnulib/memmem.c: Updated.
4873 * gnulib/stdint.in.h: Updated.
4874 * gnulib/str-two-way.h: Updated.
4875 * gnulib/string.in.h: Updated.
4876 * gnulib/wchar.in.h: Updated.
4877
4878 * gnulib/extra/link-warning.h: Removed.
4879 * gnulib/extra/c++defs.h: New.
4880 * gnulib/extra/warn-on-use.h: New.
4881 * gnulib/extra/arg-nonnull.h: Updated.
4882
4883 * gnulib/m4/extensions.m4: Updated.
4884 * gnulib/m4/gnulib-cache.m4: Updated.
4885 * gnulib/m4/gnulib-common.m4: Updated.
4886 * gnulib/m4/gnulib-comp.m4: Updated.
4887 * gnulib/m4/gnulib-tool.m4: Updated.
4888 * gnulib/m4/include_next.m4: Updated.
4889 * gnulib/m4/longlong.m4: Updated.
4890 * gnulib/m4/memchr.m4: Updated.
4891 * gnulib/m4/memmem.m4: Updated.
4892 * gnulib/m4/stdint.m4: Updated.
4893 * gnulib/m4/string_h.m4: Updated.
4894 * gnulib/m4/memcmp.m4: Removed.
4895 * gnulib/m4/onceonly_2_57.m4: Removed.
4896 * gnulib/m4/00gnulib.m4: New.
4897 * gnulib/m4/mmap-anon.m4: New.
4898 * gnulib/m4/multiarch.m4: New.
4899 * gnulib/m4/onceonly.m4: New.
4900 * gnulib/m4/stddef_h.m4: New.
4901 * gnulib/m4/warn-on-use.m4: New.
4902 * gnulib/m4/wchar.m4: Removed.
4903 * gnulib/m4/wchar_h.m4: New.
4904 * gnulib/m4/wchar_t.m4: New.
4905 * gnulib/m4/wint_t.m4: New.
4906
4907 * aclocal.m4: Regenerate.
4908 * config.in: Likewise.
4909 * configure: Likewise.
4910 * gnulib/Makefile.in: Likewise.
4911
4912 2010-05-21 Tom Tromey <tromey@redhat.com>
4913
4914 * dwarf2loc.c (extract_bits_primitive): New function.
4915 (extract_bits): Likewise.
4916 (insert_bits): Likewise.
4917 (copy_bitwise): Likewise.
4918 (read_pieced_value): Do all operations in bits.
4919 (write_pieced_value): Likewise.
4920 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4921 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4922 Always use xrealloc to resize piece array.
4923 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4924 <DW_OP_piece>: Update.
4925 <DW_OP_bit_piece>: New case.
4926
4927 2010-05-21 Tom Tromey <tromey@redhat.com>
4928
4929 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4930 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4931 * dwarf2expr.h (enum dwarf_value_location)
4932 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4933 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4934 (add_piece): Handle empty piece.
4935 (execute_stack_op) <DW_OP_piece>: Handle
4936 DWARF_VALUE_OPTIMIZED_OUT.
4937
4938 2010-05-21 Tom Tromey <tromey@redhat.com>
4939
4940 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4941 evaluate_subexp, not evaluate_subexp_with_coercion.
4942
4943 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4944
4945 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4946 attribute.
4947
4948 2010-05-21 Tom Tromey <tromey@redhat.com>
4949
4950 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4951 offset.
4952 (write_pieced_value): Likewise.
4953
4954 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4955
4956 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4957 and DW_TAG_volatile_type.
4958 (new_symbol): Likewise.
4959
4960 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4961
4962 * p-valprint.c (pascal_val_print): Call get_array_bounds
4963 to obtain the number of elements in an array.
4964
4965 2010-05-19 Doug Evans <dje@google.com>
4966
4967 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4968
4969 * python.c (source_python_script): Add comment.
4970 (source_python_script_for_objfile): Remove unnecessary call to
4971 gdbpy_print_stack.
4972
4973 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4974 Sergio Durigan Junior <sergiodj@redhat.com>
4975
4976 Code cleanup.
4977 * parse.c (exp_iterate): Use operator_length wrapper function.
4978
4979 2010-05-18 Michael Snyder <msnyder@vmware.com>
4980
4981 * ada-lang.c: White space.
4982 * ada-typeprint.c: White space.
4983 * ada-valprint.c: White space.
4984 * addrmap.c: White space.
4985 * auxv.c: White space.
4986 * ax-gdb.c: White space.
4987
4988 2010-05-18 Hui Zhu <teawater@gmail.com>
4989
4990 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4991 for oldfp.
4992 (inferior_call_waitpid): Move make_cleanup out of check.
4993 Check the return of waitpid.
4994 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4995
4996 2010-05-17 Michael Snyder <msnyder@vmware.com>
4997
4998 * tui/tui.c: White space.
4999 * tui/tui-data.c: White space.
5000 * tui/tui-disasm.c: White space.
5001 * tui/tui-file.c: White space.
5002 * tui/tui-interp.c: White space.
5003 * tui/tui-main.c: White space.
5004 * tui/tui-out.c: White space.
5005 * tui/tui-regs.c: White space.
5006 * tui/tui-source.c: White space.
5007 * tui/tui-stack.c: White space.
5008 * tui/tui-win.c: White space.
5009 * tui/tui-winsource.c: White space.
5010
5011 * procfs.c: White space.
5012
5013 * python/py-auto-load.c: White space.
5014 * python/py-block.c: White space.
5015 * python/py-breakpoint.c: White space.
5016 * python/py-cmd.c: White space.
5017 * python/py-function.c: White space.
5018 * python/py-lazy-string.c: White space.
5019 * python/py-objfile.c: White space.
5020 * python/py-param.c: White space.
5021 * python/py-prettyprint.c: White space.
5022 * python/py-progspace.c: White space.
5023 * python/py-symtab.c: White space.
5024 * python/python.c: White space.
5025 * python/py-type.c: White space.
5026 * python/py-utils.c: White space.
5027 * python/py-value.c: White space.
5028
5029 * mi/mi-cmd-break.c: White space.
5030 * mi/mi-cmd-env.c: White space.
5031 * mi/mi-cmds.c: White space.
5032 * mi/mi-cmd-stack.c: White space.
5033 * mi/mi-cmd-var.c: White space.
5034 * mi/mi-console.c: White space.
5035 * mi/mi-getopt.c: White space.
5036 * mi/mi-interp.c: White space.
5037 * mi/mi-main.c: White space.
5038 * mi/mi-out.c: White space.
5039 * mi/mi-parse.c: White space.
5040
5041 * cli/cli-cmds.c: White space.
5042 * cli/cli-decode.c: White space.
5043 * cli/cli-dump.c: White space.
5044 * cli/cli-interp.c: White space.
5045 * cli/cli-logging.c: White space.
5046 * cli/cli-script.c: White space.
5047 * cli/cli-setshow.c: White space.
5048
5049 * valarith.c: White space.
5050 * valops.c: White space.
5051 * valprint.c: White space.
5052 * value.c: White space.
5053 * varobj.c: White space.
5054 * xcoffread.c: White space.
5055 * xml-support.c: White space.
5056 * xml-tdesc.c: White space.
5057
5058 2010-05-17 Andreas Schwab <schwab@redhat.com>
5059
5060 PR gdb/11092
5061 * c-lang.c (c_printstr): Compute real length of NUL terminated
5062 string at first.
5063
5064 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5065
5066 * parse.c (parse_exp_in_context): When block is not NULL, use
5067 its associated language to parse the expression instead of
5068 the current_language.
5069
5070 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5071
5072 * jv-lang.c (java_lookup_class): Remove commented out code.
5073 (type_from_class): Likewise.
5074 (java_op_print_tab): Remove commented-out elements.
5075
5076 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5077
5078 * ada-lang.c (to_fixed_range_type): The the raw index type as
5079 argument instead of the raw type name. Remove orig_type parameter.
5080 Update calls throughout.
5081 (ada_fixup_array_indexes_type): New function.
5082 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5083 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5084 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5085 Remove name parameter.
5086 (print_array_type): Add call to ada_fixup_array_indexes_type.
5087 Update calls to print_range_type.
5088 (ada_print_type): Update calls to print_range_type.
5089
5090 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5091
5092 * dwarf2read.c (read_set_type): Set type length if
5093 DW_AT_byte_size attribute is present.
5094
5095 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5096
5097 * p-valprint.c (pascal_val_print): Handle set type if range limits
5098 are undefined but size is known.
5099
5100 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5101
5102 * procfs.c: Reformat.
5103
5104 2010-05-16 Michael Snyder <msnyder@vmware.com>
5105
5106 * target.c: White space.
5107 * target-descriptions.c: White space.
5108 * target-memory.c: White space.
5109 * thread.c: White space.
5110 * top.c: White space.
5111 * tracepoint.c: White space.
5112 * trad-frame.c: White space.
5113 * tramp-frame.c: White space.
5114 * ui-file.c: White space.
5115 * ui-out.c: White space.
5116 * user-regs.c: White space.
5117 * utils.c: White space.
5118
5119 * scm-exp.c: White space.
5120 * scm-lang.c: White space.
5121 * scm-valprint.c: White space.
5122 * sentinel-frame.c: White space.
5123 * ser-base.c: White space.
5124 * ser-go32.c: White space.
5125 * serial.c: White space.
5126 * ser-mingw.c: White space.
5127 * ser-pipe.c: White space.
5128 * ser-tcp.c: White space.
5129 * ser-unix.c: White space.
5130 * solib.c: White space.
5131 * solib-darwin.c: White space.
5132 * solib-frv.c: White space.
5133 * solib-irix.c: White space.
5134 * solib-osf.c: White space.
5135 * solib-pa64.c: White space.
5136 * solib-som.c: White space.
5137 * solib-spu.c: White space.
5138 * solib-svr4.c: White space.
5139 * solib-target.c: White space.
5140 * source.c: White space.
5141 * stabsread.c: White space.
5142 * stack.c: White space.
5143 * std-regs.c: White space.
5144 * symfile.c: White space.
5145 * symmisc.c: White space.
5146 * symtab.c: White space.
5147
5148 2010-05-16 Michael Snyder <msnyder@vmware.com>
5149
5150 * source.c (_initialize_source): Add "rev" as an abbreviation
5151 for the "reverse-search" command.
5152
5153 2010-05-16 Michael Snyder <msnyder@vmware.com>
5154
5155 * record.c: White space.
5156 * regcache.c: White space.
5157 * reggroups.c: White space.
5158 * remote-fileio.c: White space.
5159 * remote-m32r-sdi.c: White space.
5160 * remote-mips.c: White space.
5161 * remote-sim.c: White space.
5162 * remote.c: White space.
5163 (process_g_packet): Remove orphan braces.
5164
5165 2010-05-15 Michael Snyder <msnyder@vmware.com>
5166
5167 * parse.c: White space.
5168 * p-lang.c: White space.
5169 * posix-hdep.c: White space.
5170 * printcmd.c: White space.
5171 * progspace.c: White space.
5172 * prologue-value.c: White space.
5173 * psymtab.c: White space.
5174 * p-typeprint.c: White space.
5175 * p-valprint.c: White space.
5176
5177 * objc-lang.c: White space.
5178 * objfiles.c: White space.
5179 * observer.c: White space.
5180 * osabi.c: White space.
5181 * osdata.c: White space.
5182
5183 * m2-lang.c: White space.
5184 * m2-valprint.c: White space.
5185 * macrocmd.c: White space.
5186 * macroexp.c: White space.
5187 * macroscope.c: White space.
5188 * macrotab.c: White space.
5189 * main.c: White space.
5190 * maint.c: White space.
5191 * mdebugread.c: White space.
5192 * memattr.c: White space.
5193 * minsyms.c: White space.
5194 * monitor.c: White space.
5195
5196 2010-05-14 Michael Snyder <msnyder@vmware.com>
5197
5198 * jv-lang.c: White space.
5199 * jv-typeprint.c: White space.
5200 * jv-valprint.c: White space.
5201 * language.c: White space.
5202 * libunwind-frame.c: White space.
5203 * linespec.c: White space.
5204 * linux-nat.c: White space.
5205 * linux-record.c: White space.
5206 * linux-thread-db.c: White space.
5207
5208 * infcall.c: White space.
5209 * inf-child.c: White space.
5210 * infcmd.c: White space.
5211 * inferior.c: White space.
5212 * inf-loop.c: White space.
5213 * inflow.c: White space.
5214 * inline-frame.c: White space.
5215 * interps.c: White space.
5216
5217 * gcore.c: White space.
5218 * gdb.c: White space.
5219 * gdbtypes.c: White space.
5220 * gnu-nat.c: White space.
5221 * gnu-v2-abi.c: White space.
5222 * gnu-v3-abi.c: White space.
5223
5224 * findcmd.c: White space.
5225 * findvar.c: White space.
5226 * fork-child.c: White space.
5227 * frame-base.c: White space.
5228 * frame.c: White space.
5229 * frame-unwind.c: White space.
5230 * f-valprint.c: White space.
5231
5232 * elfread.c: White space.
5233 * environ.c: White space.
5234 * eval.c: White space.
5235 * event-loop.c: White space.
5236 * event-top.c: White space.
5237 * exceptions.c: White space.
5238 * exec.c: White space.
5239 * expprint.c: White space.
5240
5241 * dbxread.c: White space.
5242 * dcache.c: White space.
5243 * disasm.c: White space.
5244 * doublest.c: White space.
5245 * dsrec.c: White space.
5246 * dummy-frame.c: White space.
5247 * dwarf2expr.c: White space.
5248 * dwarf2-frame.c: White space.
5249 * dwarf2loc.c: White space.
5250 * dwarf2read.c: White space.
5251
5252 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5253
5254 PR python/11482
5255
5256 * python/py-value.c (valpy_hash): New function.
5257 (value_object_type): Register valpy_hash.
5258
5259 2010-05-14 Hui Zhu <teawater@gmail.com>
5260 Michael Snyder <msnyder@vmware.com>
5261
5262 * linux-fork.c (gdbthread.h): New include.
5263 (fork_info): Add parent_ptid.
5264 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5265 functions.
5266 (delete_checkpoint_command): Call inferior_call_waitpid.
5267 (checkpoint_command): Set parent_ptid.
5268
5269 2010-05-13 Michael Snyder <msnyder@vmware.com>
5270
5271 * dictionary.c: Re-indent to GNU coding standard.
5272
5273 * charset.c: White space.
5274 * c-lang.c: White space.
5275 * cli-out.c: White space.
5276 * coffread.c: White space.
5277 * complaints.c: White space.
5278 * completer.c: White space.
5279 * corefile.c: White space.
5280 * corelow.c: White space.
5281 * cp-abi.c: White space.
5282 * cp-namespace.c: White space.
5283 * cp-support.c: White space.
5284 * cp-valprint.c: White space.
5285 * c-typeprint.c: White space.
5286 * c-valprint.c: White space.
5287 * blockframe.c: White space.
5288 * breakpoint.c: White space.
5289 * buildsym.c: White space.
5290 * blockframe.c: White space.
5291 * bcache.c: White space.
5292 * gdbarch.sh: White space, add blank lines.
5293 * arch-utils.c: Ditto.
5294 * gdbarch.c: Regenerate.
5295 * frame.c: White space, add blank lines.
5296 * stack.c: White space, add blank lines.
5297 (initialize_stack): Remove long-dead code.
5298
5299 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5300
5301 Code cleanup.
5302 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5303 (locexpr_read_variable, loclist_read_variable): Update the callers.
5304
5305 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5306
5307 Code cleanup.
5308 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5309 Remove check of NULL returned by tag_type_to_type.
5310 (die_containing_type): Remove variable type. Remove type_die variable
5311 initialization. Remove check of NULL returned by tag_type_to_type.
5312
5313 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5314
5315 PR exp/11530.
5316 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5317 names of unnamed structures or unions.
5318
5319 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5320
5321 * procfs.c (proc_watchpoint_address): New function.
5322 (procfs_stopped_by_watchpoint): Remove useless check after
5323 find_procinfo_or_die call.
5324 (procfs_stopped_data_address): New function.
5325 (procfs_use_watchpoints): Register new watchpoint related function.
5326
5327 2010-05-11 Tom Tromey <tromey@redhat.com>
5328
5329 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5330
5331 2010-05-10 Michael Snyder <msnyder@vmware.com>
5332
5333 * utils.c: White space cleanup.
5334
5335 2010-05-10 Tom Tromey <tromey@redhat.com>
5336
5337 * eval.c (ptrmath_type_p): Add 'lang' argument.
5338 (evaluate_subexp_standard): Update.
5339 (evaluate_subexp_with_coercion): Update.
5340 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5341
5342 2010-05-10 Michael Snyder <msnyder@vmware.com>
5343
5344 * utils.c (do_fclose_cleanup) Restore local variable.
5345
5346 2010-05-09 Doug Evans <dje@google.com>
5347
5348 * record.c (init_record_core_ops): Rename record_core to record-core.
5349
5350 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5351
5352 Implement task switching on pa-hpux.
5353 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5354 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5355
5356 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5357
5358 * valops.c (find_overload_match): Add missing i18n markup.
5359
5360 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5361
5362 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5363
5364 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5365
5366 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5367 list for the obconcat call.
5368 * mdebugread.c (parse_symbol): Likewise.
5369 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5370 Likewise.
5371 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5372 New variable ap. Remove variables len and val.
5373 * symfile.h (obconcat): Likewise for the prototype.
5374
5375 2010-05-07 Michael Snyder <msnyder@vmware.com>
5376
5377 * python/python.c (execute_gdb_command): Remove unused variables.
5378 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5379 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5380 Remove unused variable.
5381 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5382 (cmdpy_completer): Remove unused variable.
5383 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5384 * python/py-function.c (fnpy_call): Remove unused variable.
5385 * python/py-objfile.c (objfile_to_objfile_object):
5386 Remove unused variable.
5387 * python/py-param.c (parmpy_init): Remove unused variable.
5388 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5389 Remove unused variable.
5390 (gdbpy_default_visualizer): Remove unused variable.
5391 * python/py-progspace.c (pspace_to_pspace_object):
5392 Remove unused variable.
5393 * python/py-symtab.c (symtab_and_line_to_sal_object):
5394 Remove unused variable.
5395 * python/py-type.c (typy_template_argument):
5396 Remove unused variable.
5397 * python/py-value.c (valpy_string): Remove unused variable.
5398 (convert_value_from_python): Remove unused variables.
5399
5400 2010-05-07 Michael Snyder <msnyder@vmware.com>
5401
5402 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5403 and use it to compute variable 't1'.
5404
5405 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5406
5407 * ada-lang.c (assign_aggregate): Remove unused variable.
5408
5409 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5410
5411 PR C++/7943:
5412 * valops.c (find_overload_match): Handle fsym == NULL case.
5413 Add int no_adl argument.
5414 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5415 when appropriate.
5416 Add int no_adl argument.
5417 (find_oload_champ_namespace): Add int no_adl argument.
5418 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5419 expression.
5420 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5421 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5422 Evaluate arguments and use them to perform ADL lookup.
5423 Pass no_adl argument to find_overload_match.
5424 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5425 * cp-support.h: Added prototype for
5426 make_symbol_overload_list_namespace.
5427 * cp-support.c (make_symbol_overload_list_namespace): New function.
5428 (make_symbol_overload_list_adl_namespace): New function.
5429 (make_symbol_overload_list_adl): New function.
5430 (make_symbol_overload_list_using): Moved code to add function to
5431 overload set to make_symbol_overload_list_namespace.
5432 * c-exp.y: create UNKNOWN_CPP_NAME token.
5433 Add parse rule for ADL functions.
5434 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5435
5436 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5437
5438 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5439 sentinel.
5440
5441 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5442
5443 Implement task switching on solaris targets.
5444 * sol-thread.c (thread_db_find_thread_from_tid)
5445 (sol_get_ada_task_ptid): New functions.
5446 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5447
5448 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5449
5450 * remote.c (remote_query_supported_append): Use reconcat.
5451 (remote_query_supported): Install a cleanup. Use reconcat.
5452
5453 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5454
5455 * gdbarch.sh (qsupported): Delete.
5456 * gdbarch.h, gdbarch.c: Regenerate.
5457 * remote.c (remote_query_supported): Remove use of
5458 gdbarch_qsupported.
5459
5460 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5461
5462 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5463 function.
5464
5465 2010-05-06 Michael Snyder <msnyder@vmware.com>
5466
5467 * xml-support.c (xinclude_start_include): Delete unused variable.
5468 (xml_process_xincludes): Delete unused variable.
5469 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5470 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5471 (tdesc_find_arch_register): Delete unused variable.
5472 (tdesc_use_registers): Delete unused variable.
5473 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5474 * inferior.c (print_inferior): Delete unused variable.
5475 * record.c (record_open_1): Delete unused variable.
5476 (record_restore): Delete unused variable.
5477 (cmd_record_save): Delete unused variable.
5478 * gcore.c (derive_heap_segment): Delete unused variable.
5479 (objfile_find_memory_regions): Use unused variable.
5480 * jit.c (jit_inferior_init): Delete unused variable.
5481 * progspace.c (clone_program_space): Delete unused variable.
5482 (pspace_empty_p): Delete unused variable.
5483
5484 * frame-unwind.c (frame_unwind_find_by_frame):
5485 Delete unused variable.
5486 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5487 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5488 (method_name_from_physname): Delete unused variable.
5489 (cp_func_name): Delete unused variable.
5490 (cp_validate_operator): Delete unused variable.
5491 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5492 Delete unused variable.
5493 * trad-frame.c (trad_frame_get_prev_register):
5494 Delete unused variable.
5495 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5496
5497 * serial.c (serial_for_fd): Delete unused variable.
5498 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5499 * top.c (execute_command): Delete unused variable.
5500 (init_main): Delete unused variable.
5501 * utils.c (do_fclose_cleanup): Delete unused variable.
5502 (do_all_inferior_continuations): Delete unused variable.
5503 (initialize_utils): Delete unused variable.
5504 (internal_problem_mode): Delete unused global.
5505 * frame.c (get_prev_frame): Delete unused global.
5506 (get_frame_locals_address): Delete unused global.
5507 (get_frame_args_address): Delete unused global.
5508
5509 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5510 (pascal_type_print_varspec_prefix): Delete unused variable.
5511 * f-typeprint.c (f_type_print_base): Delete unused variable.
5512 (f_type_print_varspec_suffix): Delete unused variable.
5513 * m2-typeprint.c (m2_print_type): Delete unused variable.
5514 (m2_long_set): Delete unused variable.
5515 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5516 * d-valprint.c (dynamic_array_type): Delete unused variable.
5517 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5518 Delete unused variable.
5519 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5520 * m2-valprint.c (m2_val_print): Delete unused variable.
5521
5522 * ui-out.c (ui_out_field_int): Delete unused variable.
5523 (ui_out_field_fmt_int): Delete unused variable.
5524 * varobj.c (varobj_list_children): Delete unused variable.
5525 (varobj_set_value): Delete unused variable.
5526 (install_new_value_visualizer): Delete unused variable.
5527 (varobj_set_visualizer): Delete unused variable.
5528 (varobj_update): Delete unused variable.
5529 (varobj_editable_p): Delete unused variable.
5530 (c_value_of_root): Delete unused variable.
5531 (cplus_describe_child): Delete unused variable.
5532
5533 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5534 (decode_constrained_packed_array_type): Delete unused variable.
5535 (add_defn_to_vec): Delete unused variable.
5536 (symbol_completion_match): Delete unused variable.
5537 (value_tag_from_contents_and_address): Delete unused variable.
5538 (ada_evaluate_subexp): Delete unused variable.
5539 * c-lang.c (classify_type): Delete unused variable.
5540 * f-lang.c (f_printstr): Delete unused variable.
5541 * objc-lang.c (objc_printstr): Delete unused variable.
5542 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5543 * jv-lang.c (type_from_class): ifdef unused variable.
5544 (java_class_name_from_physname): Delete unused variable.
5545 * m2-lang.c (m2_printstr): Delete unused variable.
5546
5547 * objfiles.c (objfile_relocate): Delete unused variable.
5548 * maint.c (_initialize_maint_cmds): Delete unused variable.
5549 * demangle.c (_initialize_demangler): Delete unused variable.
5550 * corefile.c (reopen_exec_file): Delete unused variable.
5551 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5552 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5553
5554 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5555 * memattr.c (mem_delete): Delete unused variable.
5556 (invalidate_target_mem_regions): Delete unused variable.
5557 * mem-break.c (default_memory_insert_breakpoint):
5558 Delete unused variable.
5559 * target.c (target_get_osdata): Delete unused variable.
5560 * parse.c (length_of_subexp): Delete unused variable.
5561 (prefixify_subexp): Delete unused variable.
5562 (exp_iterate): Delete unused variable.
5563 * reverse.c (delete_bookmark_command): Delete unused variable.
5564
5565 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5566 * macroexp.c (gather_arguments): Delete unused variable.
5567 (substitute_args): Delete unused variable.
5568 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5569 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5570 (_initialize_gdbarch): Delete unused variable.
5571 * gdbarch.c, gdbarch.h: Regenerate.
5572 * arch-utils.c (initialize_current_architecture):
5573 Delete unused variable.
5574 (_initialize_gdbarch_utils): Delete unused variable.
5575 * gdbtypes.c (make_cv_type): Delete unused variable.
5576 (make_type_with_address_space): Delete unused variable.
5577
5578 * linespec.c (decode_compound): Delete unused variable.
5579 * dictionary.c (iterator_next_hashed): Delete unused variable.
5580 * infcall.c (call_function_by_hand): Delete unused variable.
5581 * infcmd.c (step_1): Delete unused variable.
5582 (registers_info): Delete unused variable.
5583 (attach_command): Delete unused variable.
5584 * infrun.c (follow_exec): Delete unused variable.
5585 (handle_step_into_function_backwards): Delete unused variable.
5586 (_initialize_infrun): Delete unused variable.
5587 * stack.c (parse_frame_specification_1): Delete unused variable.
5588 (frame_info): Delete unused variable.
5589 (backtrace_command_1): Delete unused variable.
5590 (catch_info): Delete unused variable.
5591
5592 * eval.c (evaluate_subexp_standard): Delete unused variable.
5593 * valops.c (value_cast_pointers): Delete unused variable.
5594 (value_dynamic_cast): Delete unused variable.
5595 (value_array): Delete unused variable.
5596 (find_overload_match): Delete unused variable.
5597 * valarith.c (value_subscript): Delete unused variable.
5598 (value_binop): Delete unused variable.
5599 * valprint.c (_initialize_valprint): Delete unused variable.
5600 * printcmd.c (print_command_1): Delete unused variable.
5601 (address_info): Delete unused variable.
5602 (printf_command): Delete unused variable.
5603
5604 * auxv.c (target_auxv_search): Delete unused variable.
5605 * blockframe.c (get_frame_block): Delete unused variable.
5606 * regcache.c (regcache_cpy): Delete unused variable.
5607 (regcache_cpy_no_passthrough): Delete unused variable.
5608 * charset.c (wchar_iterate): Delete unused variable.
5609 (find_charset_names): Delete unused variable.
5610 (_initialize_charset): Delete unused variable.
5611 * disasm.c (do_mixed_source_and_assembly):
5612 Delete unused variable.
5613 * source.c (set_default_source_symtab_and_line):
5614 Delete unused variable.
5615 (set_substitute_path_command): Delete unused variable.
5616 * value.c (preserve_values): Delete unused variable.
5617 (value_from_double): Delete unused variable.
5618
5619 2010-05-05 Michael Snyder <msnyder@vmware.com>
5620
5621 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5622 (find_last_source_symtab_from_partial): Delete unused variable.
5623 * symfile.c (place_section): Delete unused variable.
5624 (default_symfile_offsets): Delete unused variable.
5625 (get_debug_link_info): Delete unused variable.
5626 (find_separate_debug_file_by_debuglink): Delete unused variable.
5627 (add_symbol_file_command): Delete unused variable.
5628 (symfile_find_segment_sections): Delete unused variable.
5629 * symmisc.c (free_symtab): Delete unused variable.
5630 (dump_symtab_1): Delete unused variable.
5631 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5632 (find_pc_sect_symtab): Delete unused variable.
5633 (skip_prologue_using_lineinfo): Delete unused variable.
5634 (sources_info): Delete unused variable.
5635 (completion_list_add_name): Delete unused variable.
5636 (expand_line_sal): Delete unused variable.
5637
5638 * breakpoint.c (validate_commands_for_breakpoint):
5639 Delete unused variables.
5640 (insert_catchpoint): Delete unused variable.
5641 (update_watchpoint): Delete unused variable.
5642 (insert_bp_location): Delete unused variable.
5643 (insert_breakpoint_locations): Delete unused variable.
5644 (remove_breakpoint_1): Delete unused variable.
5645 (software_breakpoint_inserted_here_p): Delete unused variable.
5646 (watchpoints_triggered): Delete unused variable.
5647 (bpstat_check_watchpoint): Delete unused variable.
5648 (bpstat_stop_status): Delete unused variable.
5649 (print_one_breakpoint_location): Delete unused variable.
5650 (allocate_bp_location): Delete unused variable.
5651 (create_breakpoint): Delete unused variable.
5652 (watch_command_1): Delete unused variable.
5653 (catch_exception_command_1): Delete unused variable.
5654 (catch_ada_exception_command): Delete unused variable.
5655 (delete_breakpoint): Delete unused variable.
5656 (breakpoint_re_set_one): Delete unused variable.
5657 (do_enable_breakpoint): Delete unused variable.
5658
5659 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5660
5661 * amd64-tdep.c: Include disasm.h.
5662 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5663 (amd64_insn_length): Moved to disasm.c and renamed.
5664 (fixup_riprel): Adjust.
5665 * disasm.c (do_ui_file_delete): New.
5666 (gdb_insn_length): New.
5667 (gdb_buffered_insn_length_fprintf)
5668 (gdb_buffered_insn_length_init_dis)
5669 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5670 renamed.
5671 * disasm.h (gdb_insn_length): Declare.
5672 (gdb_buffered_insn_length): Declare.
5673
5674 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5675
5676 * remote.c (clear_threads_parsing_context): New.
5677 (remote_threads_info): Delete unused null_cleanup. Install a
5678 cleanup to clear the threads_parsing_context in case parsing
5679 throws.
5680
5681 2010-05-05 Michael Snyder <msnyder@vmware.com>
5682
5683 * c-exp.y (parse_string_or_char): Delete unused variable.
5684 (c_lex): Delete unused variable.
5685 * cp-name-parser.y (cpname_lex): Delete unused variable.
5686 * ada-exp.y (find_primitive_type): Delete unused variable.
5687 (write_var_or_type): Delete unused variable.
5688 * jv-exp.y (java_parse): Delete unused variable.
5689 (push_expression_name): Delete unused variable.
5690 * p-exp.y (pascal_lex): Delete unused variable.
5691
5692 2010-05-05 Pedro Alves <pedro@codesourcery.com>
5693
5694 * remote.c (remote_threads_info): Really revert previous previous
5695 change.
5696
5697 2010-05-05 Michael Snyder <msnyder@vmware.com>
5698
5699 * elfread.c (elf_symtab_read): Delete unused variable.
5700 (find_separate_debug_file_by_buildid): Delete unused variables.
5701 (elf_symfile_read): Delete unused variable.
5702
5703 * coffread.c (coff_symfile_read): Delete unused variables.
5704
5705 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5706 (read_pe_exported_syms): Delete unused variable.
5707
5708 * stabsread.c (define_symbol): Delete unused variable.
5709
5710 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5711 (process_psymtab_comp_unit): Delete unused variable.
5712 (dwarf2_build_psymtabs_hard): Delete unused variable.
5713 (load_partial_comp_unit): Delete unused variable.
5714 (create_all_comp_units): Delete unused variable.
5715 (scan_partial_symbols): Delete unused variable.
5716 (add_partial_symbol): Delete unused variable.
5717 (add_partial_namespace): Delete unused variable.
5718 (add_partial_enumeration): Delete unused variable.
5719 (load_full_comp_unit): Delete unused variable.
5720 (process_full_comp_unit): Delete unused variable.
5721 (read_file_scope): Delete unused variable.
5722 (read_type_unit_scope): Delete unused variable.
5723 (process_structure_scope): Delete unused variable.
5724 (process_enumeration_scope): Delete unused variable.
5725 (read_tag_ptr_to_member_type): Delete unused variable.
5726 (read_typedef): Delete unused variable.
5727 (read_partial_die): Delete unused variable.
5728 (decode_locdesc): Delete unused variable.
5729 (zeroed_partial_die): Delete unused global variable.
5730
5731 * tui/tui-interp.c (_initialize_tui_interp):
5732 Delete unused variable.
5733 * tui/tui-regs.c tui_display_registers_from):
5734 Delete unused variable.
5735 (tui_check_register_values): Delete unused variable.
5736 (tui_register_format): Delete unused variable.
5737 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5738 * tui/tui-windata.c (tui_display_data_from_line):
5739 Delete unused variables.
5740 (tui_vertical_data_scroll): Delete unused variables.
5741
5742 2010-05-05 Michael Snyder <msnyder@vmware.com>
5743
5744 * remote.c (remote_threads_info): Revert questionable part of
5745 the previous change.
5746
5747 2010-05-05 Michael Snyder <msnyder@vmware.com>
5748
5749 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5750 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5751 (mi_cmd_var_list_children): Delete unused variable.
5752 (varobj_update_one): Delete unused variable.
5753 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5754 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5755 Delete unused variable.
5756 (mi_cmd_stack_list_variables): Delete unused variable.
5757 (list_args_or_locals): Delete unused variable.
5758 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5759 Delete unused variables.
5760 (mi_cmd_file_list_exec_source_files): Delete unused variable.
5761 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5762 Delete unused variable.
5763 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5764 (mi_cmd_interpreter_exec): Delete unused variable.
5765 (mi_on_normal_stop): Delete unused variable.
5766 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5767 (print_one_inferior): Delete unused variables.
5768 (mi_execute_command): Delete unused variable.
5769 (mi_cmd_execute): Delete unused variable.
5770 (timestamp): Delete unused variable.
5771
5772 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5773 (restore_binary_file): Delete unused variable.
5774 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5775 * cli/cli-script.c (define_command): Delete unused variables.
5776 (recurse_read_control_structure): Delete unused variable.
5777 (script_from_file): Delete unused variable.
5778 * cli/cli-cmds.c (complete_command): Delete unused variable.
5779 (disassemble_command): Delete unused variable.
5780
5781 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
5782 * tracepoint.c (delete_trace_variable_command):
5783 Delete unused variables.
5784 (encode_actions_1): Delete unused variables.
5785 (start_tracing): Delete unused variable.
5786 (trace_status_mi): Delete unused variable.
5787 (tfind_1): Delete unused variable.
5788 (trace_find_pc_command): Delete unused variable.
5789 (trace_find_line_command): Delete unused variables.
5790 (trace_find_range_command): Delete unused variables.
5791 (trace_find_outside_command): Delete unused variables.
5792 (parse_tracepoint_definition): Delete unused variables.
5793 (tfile_fetch_registers): Delete unused variable.
5794
5795 * dcache.c (dcache_init): Delete unused variable.
5796 (dcache_info): Delete unused variable.
5797
5798 * remote.c (remote_threads_info): Delete unused variable.
5799 (process_stop_reply) :Delete unused variable.
5800 (remote_get_trace_status): Delete unused variables.
5801
5802 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5803 (thread_from_lwp): Delete unused variable.
5804 (enable_thread_event_reporting): Delete unused variable.
5805 (check_for_thread_db): Delete unused variables.
5806 (thread_db_find_new_threads_2): Delete unused variable.
5807
5808 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5809 (checkpoint_command): Delete unused variable.
5810 (linux_fork_context): Delete unused variables.
5811
5812 * linux-nat.c (linux_parent_pid): Delete unused global variable.
5813 (linux_tracefork_child): Delete unused variable.
5814 (linux_child_follow_fork): Delete unused variable.
5815 (linux_nat_detach): Delete unused variable.
5816 (linux_handle_extended_wait): Delete unused variable.
5817 (linux_nat_has_pending_sigint): Delete unused variable.
5818 (linux_nat_find_memory_regions): Delete unused variable.
5819 (linux_nat_make_corefile_notes): Delete unused variables.
5820 (linux_nat_info_proc_cmd): Delete unused variable.
5821 (linux_proc_pending_signals): Delete unused variable.
5822 (linux_nat_stop_lwp): Delete unused variables.
5823 (_initialize_linux_nat): Delete unused variable.
5824
5825 * ser-pipe.c (pipe_ops): Delete unused global variable.
5826
5827 * linux-record.c (record_linux_system_call):
5828 Delete unused variables.
5829
5830 * corelow.c (core_xfer_partial): Delete unused variables.
5831
5832 * solib-svr4.c (find_program_interpreter): Delete unused variable.
5833 (svr4_solib_create_inferior_hook): Add ifdef around
5834 conditionally-used variable declarations.
5835
5836 * solib.c (solib_find): Delete unused variable.
5837 (free_so_symbols): Delete unused variable.
5838 (info_sharedlibrary_command): Delete unused variable.
5839 (reload_shared_libraries_1): Delete unused variable.
5840 (_initialize_solib): Delete unused variable.
5841
5842 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5843 (i386_collect_xstateregset): Delete unused variable.
5844 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5845
5846 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5847 Delete unused variable 'type'.
5848
5849 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5850
5851 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
5852 ada-lang.c: Remove comment mentioning these macros.
5853 * m2-exp.y: Delete commented out code.
5854
5855 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5856
5857 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5858 for array types.
5859 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5860
5861 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5862
5863 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
5864 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
5865 ATTRIBUTE_UNUSED.
5866 (cleanup_kernel_helper_return): Likewise.
5867 * arm-tdep.c (copy_unmodified): Likewise.
5868 (copy_preload): Likewise.
5869 (copy_copro_load_store): Likewise.
5870 (cleanup_branch): Likewise.
5871 (copy_b_bl_blx): Likewise.
5872 (copy_bx_blx_reg): Likewise.
5873 (copy_alu_imm): Likewise.
5874 (copy_alu_reg): Likewise.
5875 (copy_alu_shifted_reg): Likewise.
5876 (cleanup_load): Likewise.
5877 (cleanup_store): Likewise.
5878 (cleanup_block_load_pc): Likewise.
5879 (cleanup_svc): Likewise.
5880 (copy_undef): Likewise.
5881 (copy_unpred): Likewise.
5882 * remote.c (register_remote_support_xml): Likewise.
5883
5884 2010-05-05 Hui Zhu <teawater@gmail.com>
5885
5886 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5887
5888 2010-05-04 Mark Kettenis <kettenis@gnu.org>
5889
5890 * remote.c (register_remote_support_xml)
5891 (remote_query_supported_append, remote_query_supported): Add cast
5892 to NULL used as sentinel.
5893 * tracepoint.c (tvariables_info_1): Likewise.
5894 * utils.c (add_internal_problem_command): Likewise.
5895
5896 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5897
5898 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5899 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5900 registers gracefully.
5901
5902 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5903
5904 * exec.c (print_section_info): Display entry point without arch
5905 specific parts.
5906
5907 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5908
5909 PR exp/11349.
5910 * printcmd.c (x_command): Only dereference once implicitly for
5911 TYPE_CODE_REF.
5912
5913 2010-05-03 Doug Evans <dje@google.com>
5914
5915 * event-loop.c (gdb_timer): Delete unused global.
5916 (create_timer): Update.
5917
5918 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5919
5920 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5921 CURRENT->DECLARATION case.
5922 * cp-support.h (struct using_direct): Provide extended comment.
5923
5924 2010-05-03 Mark Kettenis <kettenis@gnu.org>
5925
5926 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5927 HPPABSD_SIZEOF_GREGS.
5928 (HPPAOBSD_SIZEOF_FPREGS): New define.
5929 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5930 (hppaobsd_supply_fpregset): New function.
5931 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5932 (hppaobsd_fpregset): New variable.
5933 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5934 (_initialize_hppabsd_tdep): Remove spurious blank line.
5935
5936 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5937
5938 PR pascal/11349.
5939 * p-valprint.c (pascal_value_print): Always dereference a value with
5940 type code TYPE_CODE_REF.
5941
5942 2010-05-03 Pedro Alves <pedro@codesourcery.com>
5943
5944 * remote.c (remote_notice_signals): New.
5945 (remote_start_remote): In non-stop mode, update the remote end on
5946 which signals it can silently pass.
5947 (init_remote_ops): Install remote_notice_signals.
5948
5949 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5950
5951 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5952 * command.h (error_no_arg): ... here. Remove NORETURN, change
5953 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5954 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5955 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5956 (internal_verror, internal_error, nomem): Remove NORETURN, change
5957 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5958 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5959 (throw_vfatal, throw_error): Remove NORETURN.
5960 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5961 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5962 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5963 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5964 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5965 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5966 NORETURN.
5967 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5968 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5969 ATTRIBUTE_NORETURN.
5970 * target.c (tcomplain): Likewise.
5971 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5972 ATTRIBUTE_NORETURN.
5973 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5974 (internal_error, perror_with_name, nomem): Remove NORETURN.
5975 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5976 ATTRIBUTE_NORETURN.
5977
5978 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5979
5980 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5981 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5982 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5983 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5984 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5985 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5986 * complaints.h (complaint, internal_complaint): Likewise.
5987 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5988 (ATTR_FORMAT): Remove.
5989 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5990 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5991 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5992 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5993 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5994 (internal_error, internal_vwarning, internal_warning, warning)
5995 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5996 * disasm.c (fprintf_disasm): Likewise.
5997 * exceptions.c (throw_it): Likewise.
5998 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5999 (throw_error): Likewise.
6000 * language.h (type_error, range_error): Likewise.
6001 * linespec.c (cplusplus_error): Likewise.
6002 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6003 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6004 * monitor.c (monitor_debug): Likewise.
6005 * parser-defs.h (parser_fprintf): Likewise.
6006 * serial.h (serial_printf): Likewise.
6007 * tui/tui-hooks.c (tui_query_hook): Likewise.
6008 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6009 (uo_message): Likewise.
6010 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6011 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6012 Likewise.
6013 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6014
6015 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6016
6017 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6018 (cli_table_header, cli_begin, cli_end, cli_field_int)
6019 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6020 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6021 Delete forward declarations.
6022 (cli_ui_out_impl): Move below the callbacks.
6023 (_initialize_cli_out): Delete.
6024
6025 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6026
6027 * README: Use consistent `GDB' and `GDBserver' spellings.
6028
6029 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6030
6031 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6032
6033 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6034
6035 * infrun.c (prepare_for_detach): In non-stop, context switch to
6036 the thread that got the event before handling the event.
6037
6038 2010-04-30 Tom Tromey <tromey@redhat.com>
6039
6040 * symtab.c (symbol_set_names): Fix typo.
6041
6042 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6043
6044 * python/py-param.c (parm_constants): Avoid ARI warning
6045 by adding ARI comment.
6046 (parmpy_init): Likewise.
6047
6048 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6049
6050 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6051 and created type for re-use.
6052
6053 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6054
6055 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6056
6057 2010-04-29 Doug Evans <dje@google.com>
6058
6059 * ser-base.h (reschedule): Delete prototype.
6060 * ser-base.c (reschedule): Make static.
6061
6062 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6063
6064 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6065 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6066 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6067 EABI.
6068 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6069 use.
6070
6071 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6072
6073 PR gdb/11557
6074
6075 * regcache.c (registers_changed): Rename to ...
6076 (registers_changed_ptid): ... this, and only delete register cache
6077 entries matching the ptid filter argument.
6078 (registers_changed): Reimplement on top of registers_changed_ptid.
6079 * regcache.h (registers_changed_ptid): Declare.
6080 * target.c (target_resume): Flush register caches.
6081
6082 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6083 Tom Tromey <tromey@redhat.com>
6084 Thiago Jung Bauermann <bauerman@br.ibm.com>
6085
6086 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6087 (SUBDIR_PYTHON_SRCS): Likewise.
6088 (py-parameter.o): New rule.
6089 * python/py-parameter.c: New file.
6090 * python/python-internal.h (gdbpy_initialize_parameter)
6091 (gdbpy_parameter, gdbpy_parameter_value)
6092 (gdbpy_parse_command_name): Declare.
6093 * python/py-cmd.c (parse_command_name): Rename to
6094 gdbpy_parse_command_name.
6095 (gdbpy_parse_command_name): Accept a starting list parameter and
6096 use over cmdlist.
6097 (cmdpy_init): Use gdbpy_parse_command_name.
6098 * python/python.c (parameter_to_python): Rename to
6099 gdbpy_parameter_to_python. Accept enum var_types and value.
6100 (gdbpy_parameter): Use gdbpy_parameter_value.
6101 (_initialize_python): Call gdbpy_initialize_parameters.
6102
6103 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6104
6105 * MAINTAINERS: Add myself for write after approval privileges.
6106
6107 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6108
6109 D language support.
6110 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6111 (COMMON_OBS): Add d-lang.o d-valprint.o.
6112 (HFILES_NO_SRCDIR): Add d-lang.h.
6113 * NEWS: Mention D language support.
6114 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6115 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6116 * d-lang.c: New file.
6117 * d-lang.h: New file.
6118 * d-valprint.c: New file.
6119 * defs.h (enum language): Add language_d.
6120 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6121 * language.c (binop_result_type, integral_type, character_type)
6122 (string_type, boolean_type, structured_type): Add language_d.
6123 * symfile.c (init_filename_language_table): Add language_d.
6124 * symtab.c: Include d-lang.h.
6125 (symbol_init_language_specific, symbol_find_demangled_name)
6126 (symbol_natural_name, lookup_symbol_in_language)
6127 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6128
6129 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6130
6131 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6132
6133 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6134
6135 * symfile.c (init_filename_language_table): Register .dg files
6136 with language_ada.
6137
6138 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6139
6140 * gdbtypes.h (struct main_type): Expand comment about target_type
6141 field.
6142
6143 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6144 Tristan Gingold <gingold@adacore.com>
6145
6146 * symfile.c (reread_symbols): Also search for file in libraries.
6147 Update comment.
6148
6149 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6150
6151 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6152 in terms of configuration.
6153
6154 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6155
6156 * objfiles.c: Include solist.h.
6157 (free_all_objfiles): New variable so. Check stale solist objfiles.
6158 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6159 and no_shared_libraries.
6160
6161 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6162
6163 ARI warning fix.
6164 * python/py-auto-load.c (source_section_scripts): Remove trailing
6165 new-line in i18n string.
6166
6167 2010-04-26 Doug Evans <dje@google.com>
6168
6169 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6170
6171 2010-04-26 Tom Tromey <tromey@redhat.com>
6172
6173 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6174 command list.
6175
6176 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6177
6178 Removal of config/i386/nm-i386sol2.h native configuration file.
6179 * config/i386/nm-i386sol2.h: Remove file.
6180 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6181 * config/i386/sol2-64.mh: Idem.
6182 * config/djgpp/fnchange.lst: Remove reference to that file.
6183 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6184
6185 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6186
6187 PR breakpoints/11531.
6188 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6189 macro definition and related comment.
6190 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6191 (resume): Remove code and comment related to this macro.
6192
6193 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6194
6195 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6196 Fix whitespace.
6197
6198 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6199
6200 * defs.h: Adjust comment.
6201 * filesystem.h, filesystem.c: New files.
6202 * Makefile.in (SFILES): Add filesystem.c.
6203 (COMMON_OBS): Add filesystem.o.
6204 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6205 different target and host path flavours.
6206 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6207 has_dos_based_file_system on the gdbarch.
6208 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6209 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6210 * i386-tdep.c (i386_go32_init_abi): Ditto.
6211 * gdbarch.sh (has_dos_based_file_system): New.
6212 * gdbarch.h, gdbarch.c: Regenerate.
6213 * NEWS: Mention improved support for remote targets with DOS-based
6214 filesystems. Mention new `set/show target-file-system-kind'
6215 commands.
6216
6217 2010-04-23 Stan Shebs <stan@codesourcery.com>
6218
6219 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6220 comments.
6221 (struct agent_reqs): Remove.
6222 (ax_reg_mask): Declare.
6223 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6224 (free_agent_expr): Free reg_mask.
6225 (ax_print): Add scope and register mask info.
6226 (ax_reqs): Remove agent_reqs argument, use agent expression
6227 fields, and move part of register mask computation to...
6228 (ax_reg_mask): New function.
6229 * ax-gdb.c (gen_trace_static_fields): Call it.
6230 (gen_traced_pop): Ditto.
6231 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6232 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6233 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6234 (gen_eval_for_expr): Ditto, and require an rvalue.
6235 (agent_command): Call ax_reqs.
6236 (agent_eval_command): Ditto.
6237 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6238 (validate_action_line): Ditto.
6239 (collect_symbol): Ditto.
6240 (encode_actions_1): Ditto.
6241
6242 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6243 Paul Pluzhnikov <ppluzhnikov@google.com>
6244 Jan Kratochvil <jan.kratochvil@redhat.com>
6245
6246 Fix deadlock on looped list of loaded shared objects.
6247 * solib-svr4.c (LM_PREV): New function.
6248 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6249 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6250 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6251 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6252
6253 2010-04-23 Doug Evans <dje@google.com>
6254
6255 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6256 python.
6257 * configure: Regenerate.
6258 * main.c: #include "python/python.h".
6259 (captured_main): Defer loading auto-loaded scripts until after
6260 local_gdbinit has been sourced.
6261 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6262 (load_auto_scripts_for_objfile): New function.
6263 (auto_load_new_objfile): Call it.
6264 * python/python.h (gdbpy_global_auto_load): Declare.
6265 (load_auto_scripts_for_objfile): Declare.
6266
6267 Add support for auto-loading scripts from .debug_gdb_scripts section.
6268 * NEWS: Add entry for .debug_gdb_scripts.
6269 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6270 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6271 (py-auto-load.o): New rule.
6272 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6273 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6274 * python/py-auto-load.c: New file.
6275 * python/python-internal.h: #include <stdio.h>.
6276 (set_python_list, show_python_list): Declare.
6277 (gdbpy_initialize_auto_load): Declare.
6278 (source_python_script_for_objfile): Declare.
6279 * python/python.c: Remove #include of observer.h.
6280 (gdbpy_auto_load): Moved to py-auto-load.c.
6281 (GDBPY_AUTO_FILENAME): Ditto.
6282 (gdbpy_new_objfile): Delete.
6283 (source_python_script_for_objfile): New function.
6284 (set_python_list, show_python_list): Make externally visible.
6285 (_initialize_python): Move "auto-load" command to py-auto-load.c
6286 and observer_attach_new_objfile to py-auto-load.c.
6287
6288 2010-04-23 Jerome Guitton <guitton@adacore.com>
6289
6290 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6291 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6292 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6293 New constants.
6294 (alpha_heuristic_analyze_probing_loop): New function.
6295 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6296 and handle cases when a stack probe loop is generated.
6297 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6298 (alpha_mdebug_max_frame_size_exceeded): New function.
6299 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6300 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6301 Return 0 when the maximum debuggable frame size has been exceeded.
6302
6303 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6304
6305 Fix ARI warning.
6306 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6307
6308 2010-04-20 Chris Moller <cmoller@redhat.com>
6309
6310 PR 10179
6311
6312 * symtab.c (rbreak_command): Added code to include a filename
6313 specification in the rbreak argument.
6314 * NEWS: Added a brief description of filename-qualified rbreak.
6315
6316 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6317
6318 Fix crashes on dangling display expressions.
6319 * ada-lang.c (ada_operator_check): New function.
6320 (ada_exp_descriptor): Fill-in the field operator_check.
6321 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6322 * jv-lang.c (exp_descriptor_java): Likewise.
6323 * m2-lang.c (exp_descriptor_modula2): Likewise.
6324 * scm-lang.c (exp_descriptor_scm): Likewise.
6325 * parse.c (exp_descriptor_standard): Likewise.
6326 (operator_check_standard): New function.
6327 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6328 * parser-defs.h (struct exp_descriptor): New field operator_check.
6329 (operator_check_standard, exp_uses_objfile): New declarations.
6330 * printcmd.c: Remove the inclusion of solib.h.
6331 (display_uses_solib_p): Remove the function.
6332 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6333 and exp_uses_objfile instead of display_uses_solib_p.
6334 * solist.h (struct so_list) <objfile>: New comment.
6335 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6336 * symtab.h (lookup_objfile_from_block): New declaration.
6337 (struct general_symbol_info) <obj_section>: Extend the comment.
6338
6339 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6340 Thiago Jung Bauermann <bauerman@br.ibm.com>
6341
6342 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6343 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6344 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6345 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6346 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6347 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6348 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6349 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6350 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6351 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6352 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6353 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6354 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6355 Define, in case <ptrace.h> doesn't provide it.
6356 (booke_debug_info): New variable.
6357 (max_slots_number): Ditto.
6358 (hw_break_tuple): New struct.
6359 (thread_points): Ditto.
6360 (ppc_threads): New variable.
6361 (PPC_DEBUG_CURRENT_VERSION): New define.
6362 (have_ptrace_new_debug_booke): New function.
6363 (ppc_linux_check_watch_resources): Renamed to ...
6364 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6365 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6366 (booke_cmp_hw_point): New function.
6367 (booke_find_thread_points_by_tid): Ditto.
6368 (booke_insert_point): Ditto.
6369 (booke_remove_point): Ditto.
6370 (ppc_linux_insert_hw_breakpoint): Ditto.
6371 (ppc_linux_remove_hw_breakpoint): Ditto.
6372 (get_trigger_type): Ditto.
6373 (ppc_linux_insert_watchpoint): Handle BookE processors.
6374 (ppc_linux_remove_watchpoint): Ditto.
6375 (ppc_linux_new_thread): Ditto.
6376 (ppc_linux_thread_exit): New function..
6377 (ppc_linux_stopped_data_address): Handle BookE processors.
6378 (ppc_linux_watchpoint_addr_within_range): Ditto.
6379 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6380 to_remove_hw_breakpoint fields of the target operations struct.
6381 Add observe for the thread_exit event.
6382
6383 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6384
6385 * i386-linux-nat.c (regmap): Removed.
6386 (fetch_register): Replace regmap with
6387 i386_linux_gregset_reg_offset.
6388 (store_register): Likewise.
6389 (supply_gregset): Likewise.
6390 (fill_gregset): Likewise.
6391
6392 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6393 global.
6394
6395 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6396
6397 2010-04-22 Chris Moller <cmoller@redhat.com>
6398
6399 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6400 method of popping recursion-detection stack with a method based on
6401 obstack_object_size(). (Similar to the PR9167 patch below, but for
6402 the static array obstack rather than the static member obstack.)
6403
6404 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6405
6406 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6407 (_initialize_amd64_linux_nat): Replace
6408 amd64_linux_gregset64_reg_offset with
6409 amd64_linux_gregset_reg_offset.
6410
6411 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6412 global.
6413
6414 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6415
6416 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6417
6418 PR stabs/11479.
6419 * stabsread.c (set_length_in_type_chain): New function.
6420 (read_struct_type): Call set_length_in_type_chain function.
6421 (read_enum_type): Idem.
6422
6423 2010-04-21 Stan Shebs <stan@codesourcery.com>
6424 Nathan Sidwell <nathan@codesourcery.com>
6425
6426 * tracepoint.c (trace_save): Open in binary mode.
6427
6428 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6429
6430 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6431 fields.
6432 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6433 builtin_char32 fields.
6434 * printcmd.c (decode_format): Set char size to '\0'
6435 for strings unless explicit size is given.
6436 (print_formatted): Correct calculation of NEXT_ADDRESS
6437 for 16 or 32 bit strings.
6438 (do_examine): Do not force byte size for strings.
6439 Use builtin_char16 and builtin_char32 types to display
6440 16 or 32 bit-wide strings.
6441 (x_command): Set LAST_SIZE to 'b' for string type.
6442
6443 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6444
6445 PR corefiles/11523
6446 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6447 XCR0 first.
6448
6449 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6450 there is no .reg-xstate section.
6451 (i386_linux_core_read_description): Check XCR0 first.
6452
6453 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6454
6455 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6456 for len <= 8.
6457
6458 2010-04-21 Chris Moller <cmoller@redhat.com>
6459
6460 PR 9167
6461 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6462 method of popping recursion-detection stack with a method based on
6463 obstack_object_size().
6464
6465 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6466
6467 PR pascal/11492.
6468 * p-valprint.c (pascal_val_print): Fix default printing of integer
6469 arrays.
6470
6471 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6472
6473 Fix compilation warning on gcc-4.1.2.
6474 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6475 local variable`pc' to zero.
6476
6477 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6478
6479 Implement thread support with core files on alpha-tru64.
6480 * dec-thread.c (dec_thread_find_new_threads): New function,
6481 extracted from resync_thread_list.
6482 (resync_thread_list): Add OPS parameter. Replace extracted-out
6483 code by call to dec_thread_find_new_threads.
6484 (dec_thread_wait): Update call to resync_thread_list.
6485 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6486
6487 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6488
6489 * ada-lang.c (value_pointer): New function.
6490 (make_array_descriptor): Call value_pointer to convert addresses to
6491 pointers.
6492
6493 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6494
6495 * rs6000-aix-tdep.c: #include exceptions.h.
6496 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6497 while reading the memory at ADDR, then ADDR cannot be a function
6498 descriptor.
6499
6500 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6501
6502 * ada-typeprint.c (ada_print_typedef): New function.
6503 * ada-lang.h (ada_print_typedef): Add declaration.
6504 * ada-lang.c (ada_language_defn): set la_print_typdef field
6505 to ada_print_typedef.
6506
6507 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6508
6509 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6510
6511 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6512
6513 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6514 (iterate_over_mappings): Adjust function profile. Add declaration.
6515 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6516 Adjust accordingly.
6517
6518 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6519
6520 * procfs.c (solib_mappings_callback): Move function up to avoid
6521 a compiler warning.
6522
6523 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6524
6525 * procfs.c (find_signalled_thread, find_stop_signal): Move
6526 these functions down to define them only when used.
6527
6528 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6529
6530 * valprint.c (common_val_print): Fix the value before extracting
6531 its contents.
6532 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6533 * ada-lang.h (ada_to_fixed_value): New function declaration.
6534 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6535 to avoid code duplication and fix a bug in the handling of
6536 fixed types contents.
6537
6538 2010-04-20 Tom Tromey <tromey@redhat.com>
6539
6540 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6541 (read_partial_die): Likewise.
6542 (dwarf_attr_name): Likewise.
6543
6544 2010-04-20 Chris Moller <cmoller@redhat.com>
6545
6546 PR 10867
6547
6548 * cp-valprint.c (global): Adding new static array recursion
6549 detection obstack.
6550 (cp_print_value_fields, cp_print_static_field): Added new static
6551 array recursion detection code.
6552
6553 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6554
6555 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6556 general-purpose register set should be 68 instead of 144.
6557 (i386_linux_sse_regset_sections): Likewise.
6558 (i386_linux_avx_regset_sections): Likewise.
6559
6560 2010-04-20 Stan Shebs <stan@codesourcery.com>
6561 Nathan Sidwell <nathan@codesourcery.com>
6562
6563 * dwarf2loc.c (struct axs_var_loc): New struct.
6564 (dwarf2_tracepoint_var_loc): New function.
6565 (dwarf2_tracepoint_var_access): New function.
6566 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6567 with DW_OP_piece.
6568 (locexpr_describe_location_piece): New function.
6569 (locexpr_describe_location_1): New function.
6570 (locexpr_describe_location): Call it, update signature.
6571 (loclist_describe_location): Rewrite to loop over locations,
6572 update signature.
6573 * symtab.h (struct symbol_computed_ops): Add address to
6574 describe_location arguments, return void.
6575 * printcmd.c (address_info): Get context PC, pass to computed
6576 location description.
6577 * tracepoint.c (scope_info): Ditto.
6578 * ax-gdb.c (trace_kludge): Export.
6579
6580 2010-04-20 Tom Tromey <tromey@redhat.com>
6581
6582 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6583 (struct dwarf2_cie) <segment_size>: New field.
6584 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6585 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6586 DW_FORM_exprloc.
6587 (read_attribute_value): Handle DW_FORM_flag_present,
6588 DW_FORM_sec_offset, DW_FORM_exprloc.
6589 (dump_die_shallow): Likewise.
6590 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6591 (dwarf2_const_value): Handle DW_FORM_exprloc.
6592 (attr_form_is_block): Likewise.
6593 (struct line_header) <maximum_ops_per_instruction>: New field.
6594 (dwarf_decode_line_header): Set new field.
6595 (dwarf_decode_lines): Handle new field.
6596
6597 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6598
6599 * f-exp.y: Add new production to recognize the `logical*8' type.
6600 (LOGICAL_S8_KEYWORD): New token.
6601 * f-lang.c (enum f_primitive_types)
6602 <f_primitive_type_logical_s8>: New field.
6603 (f_language_arch_info): Handling `logical*8' type.
6604 (build_fortran_types): Building `logical*8' type.
6605 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6606
6607 2010-04-19 Doug Evans <dje@google.com>
6608
6609 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6610 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6611 (pipe_close): Ditto.
6612
6613 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6614
6615 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6616
6617 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6618
6619 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6620 type to void function.
6621
6622 2010-04-19 Stan Shebs <stan@codesourcery.com>
6623 Vladimir Prus <vladimir@codesourcery.com>
6624
6625 * tracepoint.c (tfind_1): Add missing newline, report exit from
6626 tfind mode as such.
6627 * target.c (update_current_target): Make default
6628 to_trace_find return -1.
6629
6630 2010-04-19 Mike Frysinger <vapier@gentoo.org>
6631
6632 * objc-lang.c (find_methods): Move symname check up.
6633
6634 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6635
6636 * ada-lang.c (print_recreate_exception)
6637 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6638 not "catch unhandled".
6639
6640 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6641
6642 PR breakpoints/8554.
6643
6644 Implement `save-breakpoints'.
6645
6646 * breakpoint.c (save_cmdlist): New.
6647 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6648 to save_cmdlist.
6649 (print_recreate_catch_fork): New.
6650 (catch_fork_breakpoint_ops): Install it.
6651 (print_recreate_catch_vfork): New.
6652 (catch_vfork_breakpoint_ops): Install it.
6653 (print_recreate_catch_syscall): New.
6654 (catch_syscall_breakpoint_ops): Install it.
6655 (print_recreate_catch_exec): New.
6656 (catch_exec_breakpoint_ops): Install it.
6657 (print_recreate_exception_catchpoint): New.
6658 (gnu_v3_exception_catchpoint_ops): Install it.
6659 (save_breakpoints): New, based on tracepoint_save_command, but
6660 handle all breakpoint types.
6661 (save_breakpoints_command): New.
6662 (tracepoint_save_command): Rename to...
6663 (save_tracepoints_command): ... this, and reimplement using
6664 save_breakpoints.
6665 (save_command): New.
6666 (_initialize_breakpoints): Install the "save" command prefix.
6667 Install the "save breakpoints" command. Make "save-tracepoints" a
6668 deprecated alias for "save tracepoints".
6669 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6670 * ada-lang.c (print_recreate_exception): New.
6671 (print_recreate_catch_exception): New.
6672 (catch_exception_breakpoint_ops): Install it.
6673 (print_recreate_catch_exception_unhandled): New.
6674 (catch_exception_unhandled_breakpoint_ops): Install it.
6675 (print_recreate_catch_assert): New.
6676 (catch_assert_breakpoint_ops): Install it.
6677
6678 * NEWS: Mention the new `save breakpoints' command. Mention the
6679 new `save tracepoints' alias and that `save-tracepoints' is now
6680 deprecated.
6681
6682 2010-04-18 Pedro Alves <pedro@codesourcery.com>
6683
6684 PR tui/9217
6685
6686 * tui/tui-out.c: Include cli-out.h.
6687 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6688 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6689 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6690 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6691 declarations.
6692 (struct ui_out_data): Rename to...
6693 (struct tui_ui_out_data): ... this. Remove `stream' and
6694 `suppress_output' fields, and inherit cli_ui_out_data.
6695 (tui_out_data): New typedef.
6696 (tui_ui_out_impl): Don't initialize fields staticaly.
6697 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6698 (tui_begin, tui_end): Delete.
6699 (tui_field_int): Adjust to delegate most work to the base type.
6700 (tui_field_skip): Delete.
6701 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6702 delegate most work to the base type.
6703 (tui_spaces): Delete.
6704 (tui_text): Adjust to delegate most work to the base type.
6705 (tui_message): Delete.
6706 (tui_wrap_hint): Delete.
6707 (tui_flush): Delete.
6708 (out_field_fmt): Delete.
6709 (field_separator): Delete.
6710 (tui_out_new): Adjust to initialize the base type.
6711 (_initialize_tui_out): Initialize tui_ui_out_impl.
6712 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6713 cli_ui_out_data.
6714 (cli_out_data): Adjust.
6715 (cli_ui_out_impl): Make extern.
6716 (cli_table_header, cli_field_int, cli_field_skip): Use
6717 uo_field_string instead of cli_field_string.
6718 (cli_redirect): Adjust to use cli_out_data.
6719 (cli_out_data_ctor): New.
6720 (cli_out_new): Use it.
6721 * cli-out.h (struct ui_file): Remove forward declaration.
6722 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6723 (cli_ui_out_impl): Declare.
6724 (cli_out_data_ctor): Declare.
6725 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6726 (uo_field_string): No longer static.
6727 (ui_out_data): Change return type to void pointer.
6728 (ui_out_new): Change `data' parameter type to void pointer.
6729 * ui-out.h (struct ui_out_data): Don't forward declare.
6730 (ui_out_data): Change return type to void pointer.
6731 (ui_out_new): Change `data' parameter type to void pointer.
6732 (uo_field_string): Declare.
6733
6734 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6735
6736 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6737 instead of always false.
6738
6739 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6740
6741 PR corefiles/11511
6742 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6743 orig_rax.
6744
6745 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6746
6747 * breakpoint.c (watchpoints_triggered): Use
6748 is_hardware_watchpoint.
6749 (watchpoints_triggered): Ditto.
6750 (bpstat_check_location): Use is_watchpoint and
6751 is_hardware_watchpoint.
6752 (bpstat_check_watchpoint): Use is_watchpoint and
6753 is_hardware_watchpoint.
6754 (bpstat_stop_status): Fix comment.
6755 (user_settable_breakpoint): Use is_watchpoint.
6756 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6757 (disable_watchpoints_before_interactive_call_start): Use
6758 is_watchpoint.
6759 (enable_watchpoints_after_interactive_call_stop): Use
6760 is_watchpoint.
6761 (clear_command): Use is_watchpoint.
6762 (do_enable_breakpoint): Use is_watchpoint.
6763
6764 2010-04-16 Mike Frysinger <vapier@gentoo.org>
6765
6766 * solib-frv.c (enable_break1_done): Delete.
6767 (enable_break2): Do not check enable_break1_done. Move the
6768 enable_break2_done setting and call to
6769 remove_solib_event_breakpoints() to the end. Return without
6770 warning when the contents of _dl_debug_addr are 0.
6771 (enable_break): Do not set enable_break1_done.
6772 (frv_clear_solib): Likewise.
6773
6774 2010-04-16 Kevin Buettner <kevinb@redhat.com>
6775
6776 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6777 instead of an error if no PLT entry is found. Return a
6778 potentially useful result.
6779 (m32c_m16c_pointer_to_address): Add code to search for function
6780 address when no .plt entry is found.
6781
6782 2010-04-16 Stan Shebs <stan@codesourcery.com>
6783
6784 * tracepoint.c (trace_variable_command): Run a cleanup.
6785
6786 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6787
6788 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6789
6790 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6791
6792 Support for Windows OS Thread Information Block.
6793 * NEWS: Document new feature.
6794 * remote.c (PACKET_qGetTIBAddr): New enum element.
6795 (remote_get_tib_address): New function.
6796 (init_remote_ops): Set to_get_tib_address field
6797 to remote_get_tib_address.
6798 (_initialize_remote): Add add_packet_config_cmd
6799 for PACKET_qGetTIBAddr.
6800 * target.c (update_current_target): Set default value for
6801 new to_get_tib_address field.
6802 * target.h (target_ops): New field to_get_tib_address.
6803 (target_get_tib_address): New macro.
6804 * windows-nat.c (thread_info): Add thread_local_base field.
6805 (windows_add_thread): Add tlb argument of type 'void *'.
6806 (fake_create_process): Adapt windows_add_thread call.
6807 (get_windows_debug_event): Idem.
6808 (windows_get_tib_address): New function.
6809 (init_windows_ops): Set to_get_tib_address field
6810 to remote_get_tib_address.
6811 (_initialize_windows_nat): Replace info_w32_cmdlist
6812 initialization by a call to init_w32_command_list.
6813 (info_w32_command, info_w32_cmdlist): Removed from here...
6814 to windows-tdep.c file.
6815 * windows-tdep.h (info_w32_cmdlist): Declare.
6816 (init_w32_command_list): New external function
6817 declaration.
6818 * windows-tdep.c: Add several headers.
6819 (info_w32_cmdlist): to here, made global.
6820 (thread_information_32): New struct.
6821 (thread_information_64): New struct.
6822 (TIB_NAME): New char array.
6823 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6824 (maint_display_all_tib): New static variable.
6825 (windows_get_tlb_type): New function.
6826 (tlb_value_read, tlb_value_write): New functions.
6827 (tlb_value_funcs): New static struct.
6828 (tlb_make_value): New function.
6829 (display_one_tib): New function.
6830 (display_tib): New function.
6831 (show_maint_show_all_tib):New function.
6832 (info_w32_command): Moved from windows-nat.c.
6833 (init_w32_command_list): New function.
6834 (_initialize_windows_tdep): New function.
6835 New "maint set/show show-all-tib" command
6836 New "$_tlb" internal variable.
6837
6838 2010-04-16 Joel Brobecker <brobecker@adacore.com>
6839
6840 * tui/tui-regs.c (tui_display_register): Add comment about
6841 a couple of casts.
6842 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6843
6844 2010-04-15 Stan Shebs <stan@codesourcery.com>
6845
6846 * frame.c: Include tracepoint.h.
6847 (get_current_frame): Allow a trace frame to be an alternate source
6848 of stack frame data.
6849 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6850 it won't succeed.
6851
6852 2010-04-15 Pedro Alves <pedro@codesourcery.com>
6853
6854 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6855 flags.
6856 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6857
6858 2010-04-15 Doug Evans <dje@google.com>
6859
6860 * NEWS: Add entry for python program space support.
6861 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6862 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6863 (py-progspace.o): New rule.
6864 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6865 function.
6866 (find_pretty_printer_from_progspace): New function.
6867 (find_pretty_printer_from_gdb): New function.
6868 (find_pretty_printer): Rewrite.
6869 * python/py-progspace.c: New file.
6870 * python/python-internal.h (program_space): Add forward decl.
6871 (pspace_to_pspace_object, pspy_get_printers): Declare.
6872 (gdbpy_initialize_pspace): Declare.
6873 * python/python.c: #include "progspace.h".
6874 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6875 (_initialize_python): Call gdbpy_initialize_pspace.
6876 (GdbMethods): Add current_progspace, progspaces.
6877
6878 Add -s option to source command.
6879 * NEWS: Document new option.
6880 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6881 Delete from_tty and cleanupp args. Split filep arg into file and
6882 full_pathp. New arg search_path.
6883 (source_script_from_stream): New function.
6884 (source_script_with_search): New function.
6885 (source_script): Rewrite.
6886 (source_command): Parse "-s" option.
6887 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6888 * python/python.c (source_python_script): Make file arg a const char *.
6889 Don't call fclose, leave for caller.
6890 * python/python.h (source_python_script): Update.
6891
6892 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6893 Pedro Alves <pedro@codesourcery.com>
6894
6895 Avoid rereading shared libraries that haven't changed.
6896
6897 * solib.c (free_so_symbols): New function, from ...
6898 (free_so): ... here. Call it.
6899 (solib_read_symbols): Don't warn here if symbols have already been
6900 loaded.
6901 (solib_add): Warn here instead, if a pattern was specified.
6902 (reload_shared_libraries_1): New.
6903 (reload_shared_libraries): Rewrite to not fetch the library list.
6904
6905 2010-04-14 Doug Evans <dje@google.com>
6906
6907 * source.c (openp): Strip DOS drive letter if present before
6908 concatenating string to search path.
6909
6910 2010-04-14 Pedro Alves <pedro@codesourcery.com>
6911
6912 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6913 * objfiles.c (gdb_bfd_close_or_warn): New.
6914 * corelow.c: Include objfiles.h
6915 (core_close): Use gdb_bfd_close_or_warn.
6916 * elfread.c (build_id_verify): Ditto.
6917 * exec.c (exec_close, exec_close_1): Ditto.
6918
6919 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6920 Pedro Alves <pedro@codesourcery.com>
6921
6922 Group errors for many missing shared libraries.
6923
6924 * solist.h (struct so_list): Remove from_tty.
6925 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6926 (solib_map_sections): Take so_list argument. Return 0 if we
6927 failed to open a BFD. Add target sections here.
6928 (symbol_add_stub): Delete.
6929 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6930 not from_tty copied from the so_list. Don't warn a second time
6931 for a missing library.
6932 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6933 add to the section table here. Print out a single warning for all
6934 missing libraries.
6935 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6936 flags.
6937
6938 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6939
6940 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6941 error/warning messages. Capitalize and use complete sentences.
6942 (blpy_block_syms_iternext): Likewise.
6943 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6944 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6945 (frame_info_to_frame_object, frapy_read_var)
6946 (gdbpy_frame_stop_reason_string): Likewise.
6947 * python/py-lazy-string.c (stpy_convert_to_value)
6948 (gdbpy_create_lazy_string_object): Likewise.
6949 * python/py-objfile.c (objfpy_set_printers): Likewise.
6950 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6951 * python/python.c (parameter_to_python): Likewise.
6952 * python/py-type.c (typy_range, typy_target): Likewise.
6953 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6954 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6955
6956
6957 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6958
6959 PR python/11381
6960
6961 * python/py-prettyprint.c (pretty_print_one_value): Test for
6962 Py_None.
6963 (print_string_repr): Test for Py_None. Set flags accordingly.
6964 Return value depending on return type.
6965 (print_children): Take a value indicating whether data was printed
6966 before this function was called. Alter output accordingly.
6967 (apply_val_pretty_printer): Capture return value from
6968 print_string_repr and pass to print_children.
6969
6970 2010-04-13 Mark Kettenis <kettenis@gnu.org>
6971
6972 PR corefiles/11481
6973 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6974 register note sections.
6975 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6976 New variables.
6977 (i386_linux_init_abi): Install list of supported register note
6978 sections that matches the target description.
6979
6980 2010-04-13 Pedro Alves <pedro@codesourcery.com>
6981
6982 * remote.c (remote_get_noisy_reply): Don't error out on empty
6983 replies.
6984 (remote_start_remote): Update and merge tracepoints and trace
6985 state variables as long as the target supports tracepoints.
6986 (remote_trace_init): Fix prototype.
6987 (remote_download_trace_state_variable): Validate reply.
6988 (remote_trace_set_readonly_regions): Fix prototype.
6989 (remote_trace_start): Fix prototype. Check for empty reply.
6990 (remote_get_trace_status): Small cleanup.
6991 (remote_trace_stop): Fix prototype. Check for empty reply.
6992 (remote_trace_find): Check for empty reply.
6993 (remote_save_trace_data): Validate reply.
6994 (remote_set_disconnected_tracing): Check for empty reply, and
6995 validate reply.
6996 (remote_set_circular_trace_buffer): Ditto.
6997
6998 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6999
7000 Suppress unused value warning during compilation.
7001 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7002 calls to void.
7003 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7004
7005 2010-04-12 Stan Shebs <stan@codesourcery.com>
7006
7007 * tracepoint.c (tfile_xfer_partial): Check read result.
7008
7009 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7010
7011 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7012 * remote-sim.c (gdbsim_files_info): Likewise.
7013
7014 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7015
7016 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7017 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7018 variable.
7019 (fetch_vfp_registers): New function to fetch VFP registers.
7020 (store_vfp_registers): New function to store VFP registers.
7021 (arm_linux_fetch_inferior_registers): Add support for VFP
7022 registers.
7023 (arm_linux_store_inferior_registers): Likewise.
7024 (arm_linux_read_description): Likewise.
7025 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7026 until we need it.
7027
7028 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7029
7030 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7031 tdep.
7032 (amd64_collect_xstateregset): Likewise.
7033
7034 2010-04-09 Stan Shebs <stan@codesourcery.com>
7035
7036 * tracepoint.c (trace_status_mi): Report frames created.
7037
7038 * tracepoint.c (trace_dump_command): Include default-collect
7039 expressions.
7040
7041 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7042
7043 * symtab.c (find_function_start_sal): Never return SAL pointing
7044 before function start address, even if line info is missing.
7045
7046 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7047
7048 * NEWS: Mention tracepoints support.
7049
7050 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7051
7052 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7053 circular trace buffer statuses.
7054
7055 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7056
7057 * config/djgpp/fnchange.lst: Fix typo in translations for
7058 symbol-without-target_section.exp and symbol-without-target_section.c.
7059
7060 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7061
7062 * breakpoint.c (condition_command): Pass condition expression to
7063 set_breakpoint_condition stripped from breakpoint number.
7064
7065 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7066 Thiago Jung Bauermann <bauerman@br.ibm.com>
7067 Tom Tromey <tromey@redhat.com>
7068
7069 * breakpoint.c (condition_command): Simplify. Move condition
7070 setting code to ...
7071 (set_breakpoint_condition): ... here. New function.
7072 * breakpoint.h (set_breakpoint_condition): Declare.
7073 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7074 (SUBDIR_PYTHON_SRCS): Likewise.
7075 (py-breakpoint.o): New rule.
7076 * python/py-breakpoint.c: New file.
7077 * python/python-internal.h (gdbpy_breakpoints)
7078 (gdbpy_initialize_breakpoints): Declare.
7079 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7080
7081 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7082
7083 * regformats/regdat.sh: Include server.h. Don't include
7084 regcache.h.
7085
7086 2010-04-08 Stan Shebs <stan@codesourcery.com>
7087 Pedro Alves <pedro@codesourcery.com>
7088
7089 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7090 and circular_buffer.
7091 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7092 * tracepoint.c (trace_status_command): Display target's status for
7093 disconnected tracing and circular buffer.
7094 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7095 query for non-disconnected-tracing case, remove the stop_tracing
7096 call.
7097 (tfile_open): Clear disconnected and circular buffer status.
7098 (trace_save): Save disconnected and circular buffer status.
7099 (parse_trace_status): Parse disconnected and circular buffer status,
7100 also recognize disconnected as a stop reason.
7101 * remote.c (remote_set_disconnected_tracing): Only set
7102 QTDisconnected if the remote end supports disconnected tracing.
7103 Warn otherwise, if trying to enable disconnected tracing.
7104 * infcmd.c (detach_command): Update disconnect_tracing call.
7105 * cli/cli-cmds.c (quit_command): Ditto.
7106
7107 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7108
7109 * i387-tdep.c (i387_collect_xsave): Replace abort with
7110 internal_error.
7111
7112 2010-04-08 Stan Shebs <stan@codesourcery.com>
7113
7114 * breakpoint.c (default_collect_info): New function.
7115 (breakpoints_info): Call it.
7116 (maintenance_info_breakpoints): Ditto.
7117 (tracepoints_info): Ditto.
7118
7119 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7120
7121 * i387-tdep.c (i387_collect_xsave): Re-indent.
7122
7123 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7124
7125 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7126 if HAVE_PTRACE_GETFPXREGS is defined.
7127 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7128 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7129
7130 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7131 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7132 if .reg-xfp section doesn't exist.
7133 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7134
7135 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7136
7137 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7138 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7139 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7140 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7141 (i386_gdbarch_init): Update comments.
7142 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7143
7144 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7145
7146 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7147
7148 * features/Makefile (i386/i386-mmx-expedite): New.
7149 (i386/i386-mmx-linux-expedite): Likewise.
7150 ($(outdir)/i386/i386-mmx.dat): Likewise.
7151 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7152
7153 * features/i386/i386-mmx-linux.c: New.
7154 * features/i386/i386-mmx-linux.xml: Likewise.
7155 * features/i386/i386-mmx.c: Likewise.
7156 * features/i386/i386-mmx.xml: Likewise.
7157 * regformats/i386/i386-mmx-linux.dat: Likewise.
7158 * regformats/i386/i386-mmx.dat: Likewise.
7159
7160 * features/Makefile (WHICH): Add i386/i386-mmx and
7161 i386/i386-mmx-linux.
7162
7163 2010-04-08 Doug Evans <dje@google.com>
7164
7165 * source.c (openp): Skip $cdir in PATH.
7166
7167 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7168
7169 PR python/11417
7170 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7171 a NULL address.
7172 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7173 address and a zero length.
7174
7175 2010-04-08 Hui Zhu <teawater@gmail.com>
7176
7177 * i386-tdep.c (i386_process_record): Add support for insn
7178 rdtsc.
7179
7180 2010-04-07 Doug Evans <dje@google.com>
7181
7182 * python/python.c (source_python_script): Use ensure_python_env
7183 to prepare environment for script.
7184
7185 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7186
7187 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7188 <sys/uio.h> and "i386-xstate.h".
7189 (PTRACE_GETREGSET): New.
7190 (PTRACE_SETREGSET): Likewise.
7191 (have_ptrace_getregset): Likewise.
7192 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7193 registers.
7194 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7195 registers.
7196 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7197 (amd64_linux_store_inferior_registers): Likewise.
7198 (amd64_linux_read_description): Check and enable AVX target
7199 descriptions.
7200
7201 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7202 and "features/i386/amd64-avx-linux.c".
7203 (amd64_linux_regset_sections): New.
7204 (amd64_linux_core_read_description): Check and enable AVX
7205 target description.
7206 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7207 set_gdbarch_core_regset_sections.
7208 (_initialize_amd64_linux_tdep): Call
7209 initialize_tdesc_amd64_avx_linux.
7210
7211 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7212 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7213 (tdesc_amd64_avx_linux): New.
7214 (amd64_linux_update_xstateregset): Likewise.
7215
7216 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7217 (amd64_ymm_names): New.
7218 (amd64_ymmh_names): Likewise.
7219 (amd64_register_name): Likewise.
7220 (amd64_supply_xstateregset): Likewise.
7221 (amd64_collect_xstateregset): Likewise.
7222 (amd64_supply_xsave): Likewise.
7223 (amd64_collect_xsave): Likewise.
7224 (AMD64_NUM_REGS): Removed.
7225 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7226 %xmmN if AVX is available.
7227 (amd64_pseudo_register_name): Support pseudo YMM registers.
7228 (amd64_regset_from_core_section): Support .reg-xstate section.
7229 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7230 and ymm0h_regnum. Call set_gdbarch_register_name.
7231 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7232
7233 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7234 AMD64_YMM15H_REGNUM.
7235 (AMD64_NUM_REGS): New.
7236 (amd64_supply_xsave): Likewise.
7237 (amd64_collect_xsave): Likewise.
7238 (amd64_register_name): Removed.
7239 (amd64_register_type): Likewise.
7240
7241 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7242
7243 * i387-tdep.c: Include "i386-xstate.h".
7244 (XSAVE_XSTATE_BV_ADDR): New.
7245 (xsave_avxh_offset): Likewise.
7246 (XSAVE_AVXH_ADDR): Likewise.
7247 (i387_supply_xsave): Likewise.
7248 (i387_collect_xsave): Likewise.
7249
7250 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7251 (I387_YMM0H_REGNUM): Likewise.
7252 (I387_YMMENDH_REGNUM): Likewise.
7253 (i387_supply_xsave): Likewise.
7254 (i387_collect_xsave): Likewise.
7255
7256 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7257
7258 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7259 <sys/uio.h> and "i386-xstate.h".
7260 (PTRACE_GETREGSET): New.
7261 (PTRACE_SETREGSET): Likewise.
7262 (fetch_xstateregs): Likewise.
7263 (store_xstateregs): Likewise.
7264 (GETXSTATEREGS_SUPPLIES): Likewise.
7265 (regmap): Include 8 upper YMM registers.
7266 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7267 state.
7268 (i386_linux_store_inferior_registers): Likewise.
7269 (i386_linux_read_description): Check and enable AVX target
7270 descriptions.
7271
7272 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7273 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7274 (i386_linux_regset_sections): Add ".reg-xstate".
7275 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7276 (i386_linux_core_read_xcr0): New.
7277 (i386_linux_core_read_description): Check and enable AVX target
7278 description.
7279 (i386_linux_init_abi): Set xsave_xcr0_offset.
7280 (_initialize_i386_linux_tdep): Call
7281 initialize_tdesc_i386_avx_linux.
7282
7283 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7284 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7285 (i386_linux_core_read_xcr0): New.
7286 (tdesc_i386_avx_linux): Likewise.
7287 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7288
7289 * i386-tdep.c: Include "i386-xstate.h" and
7290 "features/i386/i386-avx.c".
7291 (i386_ymm_names): New.
7292 (i386_ymmh_names): Likewise.
7293 (i386_ymmh_regnum_p): Likewise.
7294 (i386_ymm_regnum_p): Likewise.
7295 (i386_xmm_regnum_p): Likewise.
7296 (i386_register_name): Likewise.
7297 (i386_ymm_type): Likewise.
7298 (i386_supply_xstateregset): Likewise.
7299 (i386_collect_xstateregset): Likewise.
7300 (i386_sse_regnum_p): Removed.
7301 (i386_pseudo_register_name): Support pseudo YMM registers.
7302 (i386_pseudo_register_type): Likewise.
7303 (i386_pseudo_register_read): Likewise.
7304 (i386_pseudo_register_write): Likewise.
7305 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7306 %xmmN if AVX is available.
7307 (i386_regset_from_core_section): Support .reg-xstate section.
7308 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7309 (i386_process_record): Replace i386_sse_regnum_p with
7310 i386_xmm_regnum_p.
7311 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7312 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7313 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7314 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7315 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7316 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7317 Set ymm0_regnum.
7318 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7319
7320 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7321 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7322 i386_ymm_type.
7323 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7324 (I386_AVX_NUM_REGS): New.
7325 (i386_xmm_regnum_p): Likewise.
7326 (i386_ymm_regnum_p): Likewise.
7327 (i386_ymmh_regnum_p): Likewise.
7328
7329 * common/i386-xstate.h: New.
7330
7331 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7332
7333 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7334
7335 * features/Makefile (WHICH): Add i386/i386-avx,
7336 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7337 (i386/i386-avx-expedite): New.
7338 (i386/i386-avx-linux-expedite): Likewise.
7339 (i386/x86-64-avx-expedite):Likewise.
7340 (i386/x86-64-avx-linux-expedite): Likewise.
7341 ($(outdir)/i386/i386-avx.dat): New dependency.
7342 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7343 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7344 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7345
7346 * features/i386/32bit-avx.xml: New.
7347 * features/i386/64bit-avx.xml: Likewise.
7348 * features/i386/i386-avx-linux.c: Likewise.
7349 * features/i386/i386-avx-linux.xml: Likewise.
7350 * features/i386/i386-avx.c: Likewise.
7351 * features/i386/i386-avx.xml: Likewise.
7352 * features/i386/x86-64-avx-linux.c: Likewise.
7353 * features/i386/x86-64-avx-linux.xml: Likewise.
7354 * features/i386/x86-64-avx.c: Likewise.
7355 * features/i386/x86-64-avx.xml: Likewise.
7356 * regformats/i386/i386-avx-linux.dat: Likewise.
7357 * regformats/i386/i386-avx.dat: Likewise.
7358 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7359 * regformats/i386/x86-64-avx.dat: Likewise.
7360
7361 2010-04-07 Doug Evans <dje@google.com>
7362
7363 * top.c (source_file_name): Make const char *.
7364 * top.h (source_file_name): Update.
7365 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7366 const char *.
7367 (script_from_file): Change `file' arg to const char *.
7368 * cli/cli-script.h (script_from_file): Update.
7369
7370 2010-04-06 Doug Evans <dje@google.com>
7371
7372 * cli/cli-cmds.c (source_command): Run cleanups.
7373
7374 2010-04-06 Stan Shebs <stan@codesourcery.com>
7375
7376 * defs.h (char_ptr): Move typedef here from...
7377 * ada-lang.c (char_ptr): Remove.
7378 * charset.c (char_ptr): Remove.
7379 * tracepoint.h (struct uploaded_string): Remove.
7380 (struct uploaded_tp): Use vectors for string arrays.
7381 * tracepoint.c (trace_save): Use vectors of actions.
7382 (parse_tracepoint_definition): Ditto.
7383 (get_uploaded_tp): Clear vectors.
7384 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7385 (next_cmd): Change to an int.
7386 (read_next_cmd): Use vector of command strings.
7387
7388 2010-04-06 Doug Evans <dje@google.com>
7389
7390 * top.h (source_script, cd_command): Delete.
7391 * main.c: #include "cli/cli-cmds.h"
7392
7393 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7394
7395 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7396 type in bytes, not bits.
7397
7398 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7399
7400 * stabsread.c (define_symbol): Add support for char
7401 and string constants.
7402
7403 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7404
7405 Remove remaining "%ll" uses.
7406 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7407 hex_string call.
7408 * rs6000-nat.c (rs6000_ptrace64): Idem.
7409 * solib-pa64.c (pa64_current_sos): Idem.
7410 * solib-spu.c (spu_current_sos): Idem.
7411 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7412 plongest call.
7413 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7414 phex (VAR, 8) call.
7415 * sh64-tdep.c (sh64_show_media_regs): Idem.
7416
7417 2010-04-05 Stan Shebs <stan@codesourcery.com>
7418
7419 * tracepoint.c: Include gdbcore.h.
7420 (tfile_xfer_partial): Return partial results, also try reading
7421 from executable.
7422 (tfile_has_all_memory): New function.
7423 (init_tfile_ops): Use it.
7424
7425 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7426
7427 PR gdb/10736:
7428 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7429 the changes in data-directory.
7430 (init_sysinfo): Reload the syscall XML file if the data-directory
7431 has changed.
7432
7433 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7434
7435 Code cleanup.
7436 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7437
7438 2010-04-04 Stan Shebs <stan@codesourcery.com>
7439 Nathan Sidwell <nathan@codesourcery.com>
7440
7441 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7442 breakpoints printed.
7443 (is_hardware_watchpoint): Make argument const.
7444 (is_watchpoint): Ditto.
7445 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7446 use it everywhere.
7447 (breakpoints_info): Pass NULL to breakpoint_1.
7448 (maintenance_info_breakpoints): Ditto.
7449 (watchpoints_info): New function.
7450 (tracepoints_info): Use breakpoint_1 filter.
7451 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7452 (_initialize_breakpoint): Make "info watchpoints" its own command.
7453 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7454 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7455
7456 2010-04-04 Stan Shebs <stan@codesourcery.com>
7457
7458 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7459
7460 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7461
7462 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7463 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7464
7465 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7466
7467 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7468 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7469
7470 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7471
7472 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7473 code form.
7474
7475 2010-04-02 Hui Zhu <teawater@gmail.com>
7476
7477 * i386-tdep.c (OT_DQUAD): New enum.
7478 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7479 SSE3, SSSE3 and SSE4.
7480
7481 2010-04-02 Hui Zhu <teawater@gmail.com>
7482
7483 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7484 "*addr = 0".
7485
7486 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7487
7488 * tracepoint.c (trace_dump_actions): New, factored out from
7489 trace_dump_command, and adjusted to recurse into while-stepping's
7490 action list.
7491 (trace_dump_command): Use it.
7492
7493 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7494
7495 * breakpoint.h (struct counted_command_line): Moved definition to
7496 breakpoint.c, and forward declare.
7497 (breakpoint_commands): Declare.
7498 * breakpoint.c (struct counted_command_line): Moved here.
7499 (breakpoint_commands): New.
7500 * tracepoint.c (encode_actions): Use breakpoint_commands.
7501 * remote.c (remote_download_tracepoint): Ditto.
7502
7503 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7504
7505 * remote.c (remote_parse_stop_reply): Use hex_string instead
7506 of phex_nz for error.
7507
7508 2010-04-01 Stan Shebs <stan@codesourcery.com>
7509 Nathan Sidwell <nathan@codesourcery.com>
7510
7511 * tracepoint.h (enum actionline_type): Remove.
7512 (validate_actionline): Change return to void.
7513 * tracepoint.c (report_agent_reqs_errors): New function.
7514 (validate_actionline): Call it, change return to void, report errors
7515 more consistently.
7516 (collect_symbol): Call report_agent_reqs_errors.
7517 (encode_actions_1): Ditto.
7518 (encode_actions): Don't expect a result from validate_actionline.
7519
7520 2010-04-01 Stan Shebs <stan@codesourcery.com>
7521
7522 * tracepoint.c (trace_start_command): Confirm if trace is running.
7523 (trace_stop_command): Error if trace not running.
7524
7525 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7526
7527 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7528 (AMD64_NUM_LOWER_BYTE_REGS): New.
7529 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7530 (amd64_pseudo_register_write): Likewise.
7531 (amd64_init_abi): Set num_byte_regs to 20.
7532
7533 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7534
7535 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7536 (prev_breakpoint_count): New.
7537 (set_breakpoint_count): Adjust.
7538 (rbreak_start_breakpoint_count): New.
7539 (start_rbreak_breakpoints): Adjust.
7540 (end_rbreak_breakpoints): Adjust.
7541 (struct commands_info) <arg>: New field.
7542 (do_map_commands_command): Tweak output to include breakpoint spec
7543 range.
7544 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7545 ARG was empty on entry. Set INFO's arg.
7546 (create_breakpoint): Adjust.
7547
7548 * NEWS: Clarify `commands' changes.
7549
7550 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7551
7552 * tracepoint.c: Include stack.h.
7553 (struct add_local_symbols_data): New.
7554 (do_collect_symbol): New.
7555 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7556 iterate_over_block_local_vars.
7557 * stack.c (print_block_frame_locals): Rewrite as ...
7558 (iterate_over_block_locals): ... this. Take a callback function
7559 pointer and generic data pointer, and call that instead of
7560 print_variable_and_value.
7561 (struct print_variable_and_value_data): New.
7562 (do_print_variable_and_value): New.
7563 (iterate_over_block_local_vars): New, abstracted out from
7564 print_frame_local_vars.
7565 (print_frame_local_vars): Rewrite using
7566 iterate_over_block_local_vars.
7567 (iterate_over_block_arg_vars): New, abstracted out from
7568 print_frame_arg_vars.
7569 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7570 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7571 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7572
7573 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7574
7575 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7576 instructions. Use the PC+4 if the base of the TBB or TBH is the
7577 PC register.
7578
7579 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7580
7581 Fix crash on reading wrong function declaration DWARF.
7582 * dwarf2read.c (read_subroutine_type): New variable void_type.
7583 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7584 more close to their use.
7585
7586 2010-03-31 Stan Shebs <stan@codesourcery.com>
7587
7588 * breakpoint.c (tracepoint_save_command): Include variables,
7589 conditionals, tracepoint types, and default-collect.
7590 * tracepoint.c (save_trace_state_variables): New function.
7591 * tracepoint.h (save_trace_state_variables): Declare it.
7592
7593 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7594
7595 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7596
7597 2010-03-30 Keith Seitz <keiths@redhat.com>
7598
7599 * c-typeprint.c (c_type_print_args): Don't print "void"
7600 for java, regardless of whether it is TYPE_PROTOTYPED.
7601 Use the passed-in language instead of current_language.
7602 (c_type_print_varspec_suffix): Use current_language instead
7603 of assuming language_c.
7604 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7605 any return type specifier from the physname.
7606
7607 2010-03-30 Pedro Alves <pedro@codesourcery.com>
7608
7609 * tui/tui-interp.c (tui_is_toplevel): New.
7610 (tui_init): Set it.
7611 (tui_allowed_p): New.
7612 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7613 enabling it.
7614 * tui/tui.h (tui_allowed_p): Declare.
7615
7616 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7617
7618 * serial.h: Include winsock2.h before windows.h.
7619
7620 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7621
7622 * NEWS: Mention xmlRegisters= in qSupported packet.
7623
7624 * i386-tdep.c: Include "remote.h".
7625 (_initialize_i386_tdep): Call register_remote_support_xml.
7626
7627 * remote.c (remote_support_xml): New.
7628 (register_remote_support_xml): Likewise.
7629 (remote_query_supported_append): Likewise.
7630 (remote_query_supported): Support remote_support_xml.
7631
7632 * remote.h (register_remote_support_xml): New.
7633
7634 2010-03-29 Stan Shebs <stan@codesourcery.com>
7635
7636 * tracepoint.c (trace_find_line_command): Remove dead code.
7637
7638 * tracepoint.h (struct uploaded_string): New struct.
7639 (struct uploaded_tp): New fields for source strings.
7640 * breakpoint.c (this_utp, next_cmd): New globals.
7641 (read_uploaded_action): New function.
7642 (create_tracepoint_from_upload): Fill in more parts
7643 of a tracepoint.
7644 * tracepoint.c (encode_source_string): New function.
7645 (trace_save): Write out source strings, fix error checks.
7646 (parse_tracepoint_definition): Add source string parsing.
7647 * remote.c (PACKET_TracepointSource): New packet type.
7648 (remote_download_command_source): New function.
7649 (remote_download_tracepoint): Download source pieces also.
7650 (_initialize_remote): Add packet config command.
7651
7652 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7653 expression handler.
7654
7655 * tracepoint.c (start_tracing): Check tracepoints before sending
7656 commands to target, don't start if all tracepoints disabled.
7657
7658 2010-03-28 Pedro Alves <pedro@codesourcery.com>
7659
7660 * cli/cli-script.c (process_next_line): Handle 'stepping'.
7661
7662 2010-03-26 Stan Shebs <stan@codesourcery.com>
7663
7664 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7665
7666 2010-03-26 Tom Tromey <tromey@redhat.com>
7667
7668 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7669
7670 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7671
7672 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7673 (skip_prologue_sal): Remove local definition.
7674 (resolve_sal_pc): Remove now unnecessary code.
7675 * linespec.c (minsym_found): Call skip_prologue_sal.
7676 * symtab.c (find_function_start_pc): Remove.
7677 (find_function_start_sal): Extract prologue skipping into ...
7678 (skip_prologue_sal): ... this new function. Handle code both
7679 with and without debug info. Respect SAL's explicit_pc and
7680 explicit_line flags. Inline old find_function_start_pc.
7681 * symtab.h (find_function_start_pc): Remove.
7682 (skip_prologue_sal): Add prototype.
7683
7684 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7685
7686 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7687 for DW_TAG_imported_module children.
7688
7689 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7690
7691 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7692 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7693 * completer.c (add_struct_fields): Fix inverted logic.
7694
7695 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7696
7697 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7698
7699 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7700
7701 * tracepoint.c (current_trace_status): Don't make sure error_desc
7702 is non-NULL here.
7703 (parse_trace_status): Release a previous error_desc string, and
7704 set it to NULL by default. If stop reason is tracepoint_error,
7705 make sure error_desc is not left NULL.
7706
7707 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7708
7709 * tracepoint.c (trace_save): Remove X from tracepoint error
7710 description.
7711
7712 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7713
7714 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7715 the terror description. Don't expect an X prefix.
7716
7717 2010-03-25 Stan Shebs <stan@codesourcery.com>
7718
7719 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7720 (struct trace_status): New field error_desc.
7721 * tracepoint.c (stop_reason_names): Add terror.
7722 (current_trace_status): Ensure non-NULL error description.
7723 (trace_status_command): Add error report.
7724 (trace_status_mi): Ditto.
7725 (trace_save): Add special case for error description.
7726 (parse_trace_status): Add case for errors.
7727
7728 2010-03-25 Keith Seitz <keiths@redhat.com>
7729
7730 * dwarf2read.c (read_subroutine_type): If the compilation unit
7731 language is Java, mark any formal parameter named "this" as
7732 artificial (GCC/43521).
7733 (dwarf2_name): Add special handling for Java constructors.
7734
7735 2010-03-25 Tom Tromey <tromey@redhat.com>
7736
7737 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7738 * infrun.c (handle_inferior_event): Change initialization of
7739 stop_stack_dummy.
7740 (handle_inferior_event): Change assignment to stop_stack_dummy.
7741 (normal_stop): Update use of stop_stack_dummy.
7742 (struct inferior_status) <stop_stack_dummy>: Change type.
7743 * inferior.h (stop_stack_dummy): Update.
7744 * infcmd.c (stop_stack_dummy): Change type.
7745 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7746 function.
7747 (call_function_by_hand): Call set_std_terminate_breakpoint.
7748 Rewrite std::terminate handling.
7749 * breakpoint.h (enum bptype) <bp_std_terminate,
7750 bp_std_terminate_master>: New.
7751 (enum stop_stack_kind): New.
7752 (struct bpstat_what) <call_dummy>: Change type.
7753 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7754 Declare.
7755 * breakpoint.c (create_std_terminate_master_breakpoint): New
7756 function.
7757 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7758 Call create_std_terminate_master_breakpoint.
7759 (print_it_typical): Handle new breakpoint kinds.
7760 (bpstat_stop_status): Handle bp_std_terminate_master.
7761 (bpstat_what): Correctly set call_dummy field. Handle
7762 bp_std_terminate_master and bp_std_terminate.
7763 (print_one_breakpoint_location): Update.
7764 (allocate_bp_location): Update.
7765 (set_std_terminate_breakpoint): New function.
7766 (delete_std_terminate_breakpoint): Likewise.
7767 (create_thread_event_breakpoint): Update.
7768 (delete_command): Update.
7769 (breakpoint_re_set_one): Update.
7770 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7771
7772 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7773
7774 * symfile.c (build_section_addr_info_from_bfd): New.
7775 (build_section_addr_info_from_objfile): Base it on
7776 build_section_addr_info_from_bfd.
7777 (addrs_section_compar, addrs_section_sort): New.
7778 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7779 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7780 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7781
7782 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7783
7784 * elfread.c (find_separate_debug_file_by_buildid):
7785 Remove unused local variable.
7786
7787 2010-03-24 Tom Tromey <tromey@redhat.com>
7788
7789 PR breakpoints/9352:
7790 * NEWS: Mention changes to `commands' and `rbreak'.
7791 * symtab.c (do_end_rbreak_breakpoints): New function.
7792 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7793 end_rbreak_breakpoints.
7794 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7795 (set_breakpoint_count): Likewise. Clear last_was_multi.
7796 (multi_start, multi_end, last_was_multi): New globals.
7797 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7798 functions.
7799 (struct commands_info): New
7800 (do_map_commands_command): New function.
7801 (commands_command_1): New function.
7802 (commands_command): Use it.
7803 (commands_from_control_command): Likewise.
7804 (do_delete_breakpoint): New function.
7805 (delete_command): Use it.
7806 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7807 (do_map_disable_breakpoint): New function.
7808 (disable_command): Use it.
7809 (do_map_enable_breakpoint): New function.
7810 (enable_command): Use it.
7811 (enable_once_breakpoint): Add argument.
7812 (enable_once_command): Update.
7813 (enable_delete_breakpoint): Add argument.
7814 (enable_delete_command): Update.
7815 (break_command_really): Set last_was_multi when needed.
7816 (check_tracepoint_command): Fix formatting.
7817 (validate_commands_for_breakpoint): New function.
7818 (breakpoint_set_commands): Use it.
7819 (tracepoint_save_command): Update.
7820 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7821 Declare.
7822
7823 2010-03-24 Tom Tromey <tromey@redhat.com>
7824
7825 * breakpoint.h (struct counted_command_line): New struct.
7826 (struct breakpoint) <commands>: Change type.
7827 (struct bpstats) <commands>: Change type.
7828 <commands_left>: New field.
7829 * breakpoint.c (alloc_counted_command_line): New function.
7830 (incref_counted_command_line): Likewise.
7831 (decref_counted_command_line): Likewise.
7832 (do_cleanup_counted_command_line): Likewise.
7833 (make_cleanup_decref_counted_command_line): Likewise.
7834 (breakpoint_set_commands): Use decref_counted_command_line and
7835 alloc_counted_command_line.
7836 (commands_command): Don't error if breakpoint commands are
7837 executing.
7838 (commands_from_control_command): Likewise.
7839 (bpstat_free): Update.
7840 (bpstat_copy): Likewise.
7841 (bpstat_clear_actions): Likewise.
7842 (bpstat_do_actions_1): Likewise.
7843 (bpstat_stop_status): Likewise.
7844 (print_one_breakpoint_location): Likewise.
7845 (delete_breakpoint): Likewise.
7846 (bpstat_alloc): Initialize new field.
7847 (tracepoint_save_command): Update.
7848 * tracepoint.c (encode_actions): Update.
7849 (trace_dump_command): Update.
7850
7851 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7852
7853 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7854 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7855 (read_structure_type): For RealView, set TYPE_STUB on structures with
7856 no byte size and no children.
7857 (read_subroutine_type): Mark functions as prototyped by default.
7858 * symtab.c (producer_is_realview): New function.
7859 * symtab.h (expand_line_sal): Fix declaration formatting.
7860 (producer_is_realview): Declare.
7861
7862 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7863
7864 * arm-tdep.c (skip_prologue_function): New function.
7865 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7866 (thumb_analyze_prologue): Document return value. Recognize more
7867 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7868 Add debug output.
7869 (arm_skip_prologue): Remove call dummy check. Check the prologue
7870 for non-GNU compilers.
7871 (arm_instruction_changes_pc): New function.
7872 (arm_analyze_prologue): New function, broken out from
7873 arm_scan_prologue. Recognize more ARM instructions and skippable
7874 calls. Update comments. Handle NULL cache. Return the address
7875 of the first unrecognized instruction. Do not skip past other
7876 instructions which change control flow. Add debug output.
7877 (arm_scan_prologue): Use arm_analyze_prologue.
7878 (ARM_PC_32): Delete.
7879 (shifted_reg_val): Simplify ARM_PC_32 check.
7880
7881 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7882
7883 * tracepoint.c (tvariables_info_1): Actually compute
7884 the number of rows in the result.
7885
7886 2010-03-24 Pedro Alves <pedro@codesourcery.com>
7887
7888 * remote.c (crc32): Constify `buf' parameter.
7889 (remote_verify_memory): New, abstracted out from...
7890 (compare_sections_command): ... this. Remove hardcoded target
7891 checks.
7892 (init_remote_ops): Install remote_verify_memory.
7893 * target.c (target_verify_memory): New.
7894 * target.h (struct target_ops) <to_verify_memory>: New field.
7895 (target_verify_memory): Declare.
7896
7897 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7898
7899 Implement -trace-save.
7900
7901 * mi-cmds.h (mi_cmds_trace_save): Declare.
7902 * mi-cmds.c (mi_cmds): Register -trace-save.
7903 * mi/mi-main.c (mi_cmd_trace_save): New.
7904 * remote.c (remote_save_trace_data): Take const parameter.
7905 * target.h (struct target_ops::to_save_trace_data): Take
7906 const parameter.
7907 * target.c (update_current_target): Adjust to the above.
7908 * tracepoint.c (trave_save): New, extracted from
7909 (trace_save_command): ...this.
7910 (tfile_trace_find): Remove message that is unnecessary now
7911 that 'tfind' reports found frame.
7912 * tracepoint.h (trace_save): Declare.
7913
7914 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7915
7916 Implement -trace-find.
7917
7918 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7919 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7920 * mi/mi-main.c (mi_cmd_trace_find): New.
7921 * target.h (struct target_ops): Document to_trace_find.
7922 * tracepoint.h (tfind_1): Declare.
7923 * tracepoint.c (finish_tfind_command): Rename to...
7924 (tfind_1): ...this.
7925 * remote.c (remote_trace_find): Return -1 if target say
7926 there's no frame. Improve error diagnostics.
7927
7928 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7929
7930 -trace-define-variable and -trace-list-variables.
7931
7932 * tracepoint.c (create_trace_state_variable): Make
7933 private copy of name, as opposed to assuming the
7934 pointer lives forever.
7935 (tvariables_info_1): New.
7936 (tvariables_info): Use the above.
7937 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7938 Declare.
7939 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7940 and -trace-list-variables.
7941 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7942 (mi_cmd_trace_list_variables): New.
7943 * mi/mi-main.c (mi_cmd_trace_define_variable)
7944 (mi_cmd_trace_list_variables): New.
7945
7946 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7947
7948 Implement -break-passcount.
7949
7950 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7951 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7952 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7953
7954 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7955
7956 -trace-start/-trace-end/-trace-status.
7957
7958 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7959 and -trace-stop.
7960 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7961 (mi_cmd_trace_stop): Declare.
7962 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7963 (mi_cmd_trace_stop): New.
7964 * tracepoint.c (start_tracing): New, extracted from...
7965 (trace_start_command): ...this.
7966 (trace_status_mi): New.
7967 * tracepoint.h (struct trace_status): Document
7968 stopping_tracepoint.
7969 (start_tracing, stop_tracing, trace_status_mi): Declare.
7970
7971 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7972
7973 Implement creating tracepoints with -break-insert.
7974
7975 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7976 to mean that tracepoint should be created.
7977
7978 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7979
7980 * breakpoint.c (check_no_tracepoint_commands): Use
7981 current spelling of 'teval'.
7982
7983 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7984
7985 Unify actions and commands
7986
7987 * defs.h (read_command_lines, read_command_lines_1): New
7988 parameters validator and closure.
7989 * tracepoint.h (struct action_line): Remove.
7990 * breakpoint.h (struct breakpoint): Remove the 'actions'
7991 field.
7992 * defs.h (enum command_control_type): New value
7993 while_stepping_control.
7994 (struct command_line): Add comments.
7995 * breakpoint.c (breakoint_is_tracepoint): New.
7996 (breakpoint_set_commands): For tracepoints,
7997 verify the commands are permissible.
7998 (check_tracepoint_commands): New.
7999 (commands_command): Require that each new line is validated using
8000 check_tracepoint_command, if we set commands for a tracepoint.
8001 (create_tracepoint_from_upload): Likewise.
8002 (print_one_breakpoint_location): Remove the code to print
8003 actions specifically.
8004 (tracepoint_save_command): Relay to print_command_lines.
8005 * cli/cli-script.c (process_next_line): New parameters validator
8006 and closure. Handle 'while-stepping'. Call validator if not null.
8007 (read_command_lines, read_command_lines1): Likewise.
8008 (recurse_read_control_structure): New parameters validator and
8009 closure. Handle while_stepping_control.
8010 (print_command_lines): Handle while-stepping.
8011 (get_command_line, define_command, document_command): Adjust.
8012 * remote.c (remote_download_tracepoint): Adjust.
8013 * tracepoint.c (make_cleanup_free_actions, read_actions)
8014 (free_actions, do_free_actions_cleanup): Remove.
8015 (trace_actions_command): Use read_command_lines.
8016 (validate_actionline): Use error in one place.
8017 (encode_actions_1): New, extracted from...
8018 (encode_actions): ...this. Also use cleanups for exception
8019 safety.
8020 (trace_dump_command): Adjust.
8021 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8022 it's tracepoint.
8023
8024 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8025
8026 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8027
8028 2010-03-22 Stan Shebs <stan@codesourcery.com>
8029
8030 * value.c (value_static_field): Be lazy about the field's value.
8031
8032 2010-03-22 Reid Kleckner <reid@kleckner.net>
8033
8034 PR gdb/11094
8035 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8036 bp_jit_event.
8037 (disable_breakpoints_in_shlibs): Likewise.
8038
8039 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8040
8041 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8042 GCC 4.1 debug info generation (GCC PR c++/28460).
8043 (determine_prefix): Likewise.
8044
8045 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8046
8047 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8048 get_current_arch.
8049 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8050
8051 2010-03-19 Stan Shebs <stan@codesourcery.com>
8052
8053 * ax-gdb.c (gen_fetch): Handle bool.
8054 (gen_usual_unary): Ditto.
8055 (gen_cast): Ditto.
8056 (gen_equal): New function.
8057 (gen_less): New function.
8058 (gen_expr_binop_rest): Call them, also return integer type from
8059 logical operations.
8060 (gen_expr): Ditto.
8061
8062 2010-03-19 Tom Tromey <tromey@redhat.com>
8063
8064 * jv-lang.c (jv_dynamics_objfile_data_key)
8065 (jv_type_objfile_data_key): New globals.
8066 (class_symtab): Move earlier.
8067 (jv_per_objfile_free): New function.
8068 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8069 parameter.
8070 Remove ancient #if 1.
8071 (add_class_symbol): Remove redundant declaration.
8072 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8073 (java_link_class_type): Mark as static. Update.
8074 (jv_clear_object_type): New function.
8075 (set_java_object_type): Likewise.
8076 (get_java_object_type): Use set_java_object_type.
8077 (is_object_type): Likewise.
8078 (_initialize_java_language): Register new objfile keys.
8079 (get_java_class_symtab): Add 'gdbarch' parameter.
8080 (add_class_symtab_symbol): Update.
8081 (type_from_class): Update.
8082
8083 2010-03-19 Stan Shebs <stan@codesourcery.com>
8084
8085 * ax-general.c (ax_const_l): Fix a sizing bug.
8086
8087 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8088
8089 GDB 7.1 released.
8090
8091 2010-03-18 Stan Shebs <stan@codesourcery.com>
8092 Pedro Alves <pedro@codesourcery.com>
8093
8094 * target.h (struct target_ops): New method
8095 to_set_circular_trace_buffer.
8096 (target_set_circular_trace_buffer): New macro.
8097 * target.c (update_current_target): Add
8098 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8099 default behavior.
8100 * remote.c (remote_set_circular_trace_buffer): New function.
8101 (init_remote_ops): Add it to vector.
8102 * tracepoint.h (struct trace_status): New field traceframes_created,
8103 change buffer_size and buffer_free to int.
8104 * tracepoint.c (circular_trace_buffer): New global.
8105 (start_tracing): Send values of disconnected tracing and circular
8106 trace buffer settings.
8107 (set_circular_trace_buffer): New function.
8108 (parse_trace_state): Handle total space and frames created.
8109 (trace_status_command): Display total space and total frames
8110 created.
8111 (trace_save): Write out new status values.
8112 (parse_trace_status): Set traceframe_count, traceframes_created,
8113 buffer_free and buffer_size to -1 by default.
8114 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8115 * NEWS: Mention the circular trace buffer option.
8116
8117 2010-03-18 Tom Tromey <tromey@redhat.com>
8118
8119 * infcmd.c (finish_command_continuation): Wrap print_return_value
8120 in TRY_CATCH.
8121
8122 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8123
8124 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8125 DIE has a name before creating the associated partial symbol.
8126 (read_func_scope): Emit a complaint if the subprogram does not
8127 have a name or when we can't extract the subprogram PC bounds.
8128
8129 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8130
8131 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8132 instead of selected frame architecture.
8133
8134 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8135
8136 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8137 a valid selected thread, and that it is not running.
8138 (advance_command): Ditto.
8139 (finish_command): Ditto.
8140
8141 2010-03-17 Stan Shebs <stan@codesourcery.com>
8142
8143 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8144
8145 * infcall.c: Include tracepoint.h.
8146 (call_function_by_hand): Disallow calls in tfind mode.
8147 * infcmd.c: Include tracepoint.h.
8148 (ensure_not_tfind_mode): New function.
8149 (continue_1): Call it.
8150 (step_1) Ditto.
8151 (jump_command): Ditto.
8152 (signal_command): Ditto.
8153 (advance_command): Ditto.
8154 (until_command): Ditto.
8155 (finish_command): Ditto.
8156 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8157
8158 * ax-gdb.h (struct axs_value): New field optimized_out.
8159 (gen_trace_for_var): Add gdbarch argument.
8160 * ax-gdb.c (gen_trace_static_fields): New function.
8161 (gen_traced_pop): Call it, add gdbarch argument.
8162 (gen_trace_for_expr): Update call to it.
8163 (gen_trace_for_var): Ditto, and report optimized-out variables.
8164 (gen_struct_ref_recursive): Check for optimized-out value.
8165 (gen_struct_elt_for_reference): Ditto.
8166 (gen_static_field): Pass gdbarch instead of expression, assume
8167 optimization if field not found.
8168 (gen_var_ref): Set the optimized_out flag.
8169 (gen_expr): Error on optimized-out variable.
8170 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8171 expressions, skip optimized-out variables with computed locations.
8172 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8173 erroring out if location expression missing.
8174 (loclist_tracepoint_var_ref): Don't error out here.
8175
8176 2010-03-17 Tom Tromey <tromey@redhat.com>
8177
8178 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8179 DWARF data is available.
8180
8181 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8182
8183 * symfile.c (generic_load): Reset breakpoints after loading.
8184
8185 2010-03-17 Tom Tromey <tromey@redhat.com>
8186
8187 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8188
8189 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8190
8191 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8192 create_breakpoint call, adjust the parameters.
8193
8194 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8195 Chandru <chandru@in.ibm.com>
8196
8197 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8198 * valarith.c (value_subscripted_rvalue): Suppress error if
8199 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8200
8201 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8202
8203 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8204
8205 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8206
8207 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8208 before doing the associated thread switch.
8209
8210 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8211
8212 * MAINTAINERS: Update my email address.
8213
8214 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8215
8216 Simplify MI breakpoint setting.
8217
8218 * breakpoint.c (break_command_really): Make nonstatic and
8219 rename to...
8220 (create_breakpoint): ...this. Rename prior function by this name
8221 to...
8222 (create_breakpoint_sal): ...this.
8223 (create_breakpoints): Rename to...
8224 (create_breakpoints_sal): ...this.
8225 (set_breakpoint): Remove.
8226 * breakpoint.h: Adjust to above changes.
8227 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8228
8229 2010-03-15 Stan Shebs <stan@codesourcery.com>
8230
8231 * ax-gdb.c: Include cp-support.h.
8232 (find_field): Remove.
8233 (gen_primitive_field): New function.
8234 (gen_struct_ref_recursive): New function.
8235 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8236 of find_field.
8237 (gen_static_field): New function.
8238 (gen_struct_elt_for_reference): New.
8239 (gen_namespace_elt): New.
8240 (gen_maybe_namespace_elt): New.
8241 (gen_aggregate_elt_ref): New.
8242 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8243
8244 2010-03-15 Tom Tromey <tromey@redhat.com>
8245
8246 * dwarf2read.c (die_needs_namespace): Also return 0 for
8247 DW_TAG_subprogram.
8248
8249 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8250
8251 PR c++/7936:
8252 * cp-support.h: Added char *declaration element to using_direct
8253 data struct.
8254 (cp_add_using): Added char *declaration argument.
8255 (cp_add_using_directive): Ditto.
8256 (cp_lookup_symbol_imports): made extern.
8257 * cp-namespace.c: Updated with the above changes.
8258 * dwarf2read.c (read_import_statement): Ditto.
8259 (read_namespace): Ditto.
8260 (read_import_statement): Support import declarations.
8261 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8262 declarations.
8263 Added support for 'declaration_only' search.
8264 (cp_lookup_symbol_namespace): Attempt to search for the name as
8265 is before consideration of imports.
8266 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8267 search at every block level search.
8268 Now takes language argument.
8269 (lookup_symbol_aux): Updated.
8270
8271 2010-03-15 Tom Tromey <tromey@redhat.com>
8272
8273 * c-exp.y (name_not_typename): Add 'operator' clause.
8274
8275 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8276
8277 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8278 * configure: Regenerate.
8279
8280 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8281
8282 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8283 and ".sdynbss". Update the comment.
8284
8285 2010-03-15 Jie Zhang <jie@codesourcery.com>
8286
8287 * MAINTAINERS: Update my email address.
8288
8289 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8290
8291 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8292
8293 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8294
8295 * charset.c [USE_WIN32API]: Include <windows.h>.
8296 (_initialize_charset): Correct type of w32_host_default_charset.
8297
8298 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8299
8300 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8301
8302 2010-03-12 Tom Tromey <tromey@redhat.com>
8303
8304 PR c++/9708:
8305 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8306 in a lexical block does not need a namespace.
8307 (new_symbol) <DW_TAG_variable>: Put extern variables on
8308 list_in_scope in all cases.
8309
8310 2010-03-12 Stan Shebs <stan@codesourcery.com>
8311
8312 * ax-gdb.c (gen_expr): Add shift expressions.
8313 (gen_expr_binop_rest): Ditto.
8314
8315 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8316
8317 * buildsym.c (finish_block): Reset using_directives pointer
8318 after block initialization.
8319
8320 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8321
8322 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8323 * i386-tdep.c (i386_word_names): Likewise.
8324
8325 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8326
8327 * target.c (memory_xfer_partial): Don't use the stack cache if
8328 inspecting trace frames.
8329 * tracepoint.c (finish_tfind_command): Invalidate the target
8330 dcache.
8331
8332 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8333
8334 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8335 for the PIC displacement, print also the displacement value.
8336 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8337
8338 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8339
8340 * remote-mips.c (close_ports, mips_initialize_cleanups)
8341 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8342 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8343 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8344 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8345 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8346 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8347 comments describing each of these functions.
8348 (mips_enter_debug, mips_exit_debug, common_open)
8349 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8350 blank line after the comment describing the function.
8351
8352 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8353
8354 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8355 parameter displacementp. Update comment.
8356 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8357 element exists. Return if svr4_exec_displacement was not successful.
8358 Update comment.
8359
8360 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8361 Daniel Jacobowitz <dan@codesourcery.com>
8362
8363 * solib-svr4.c (read_program_header): Support type == -1 to read
8364 all program headers.
8365 (read_program_headers_from_bfd): New function.
8366 (svr4_static_exec_displacement): Remove and move the comment ...
8367 (svr4_exec_displacement): ... here. Remove variable found. New
8368 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8369 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8370 targets using read_program_headers_from_bfd. Remove the call of
8371 svr4_static_exec_displacement.
8372
8373 2010-03-10 Tom Tromey <tromey@redhat.com>
8374
8375 * dwarf2read.c (struct pubnames_header): Remove.
8376 (_PUBNAMES_HEADER): Remove.
8377 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8378 (struct aranges_header): Remove.
8379 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8380 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8381 (PUBNAMES_SECTION): Remove.
8382 (ARANGES_SECTION): Remove.
8383 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8384 (dwarf2_build_psymtabs): Remove dead code.
8385 (dwarf2_build_psymtabs_easy): Remove.
8386
8387 2010-03-10 Tom Tromey <tromey@redhat.com>
8388
8389 * elfread.c (elf_symfile_read): Don't call
8390 dwarf2_build_frame_info.
8391 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8392 (struct dwarf2_per_objfile) <objfile>: New field.
8393 (dwarf2_has_info): Now idempotent. Set objfile field.
8394 (dwarf2_read_section): Check and set readin field. Call
8395 posix_madvise.
8396 (dwarf2_build_psymtabs): Don't read all sections.
8397 (read_type_comp_unit_head): Read types section.
8398 (create_debug_types_hash_table): Likewise.
8399 (init_cu_die_reader): Add asserts.
8400 (process_type_comp_unit): Add assert.
8401 (dwarf2_build_psymtabs_hard): Read info section.
8402 (load_partial_comp_unit): Add assert.
8403 (create_all_comp_units): Read info section.
8404 (load_full_comp_unit): Likewise.
8405 (dwarf2_ranges_read): Read ranges section.
8406 (dwarf2_record_block_ranges): Add assert.
8407 (dwarf2_read_abbrevs): Read abbrev section.
8408 (read_indirect_string): Read str section.
8409 (dwarf_decode_line_header): Read line section.
8410 (read_signatured_type_at_offset): Read types section.
8411 (dwarf_decode_macros): Read macinfo section.
8412 (dwarf2_symbol_mark_computed): Read loc section.
8413 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8414 dwarf2_build_frame_info.
8415 (dwarf2_build_frame_info): Unconditionally set
8416 dwarf2_frame_objfile_data on the objfile.
8417 * configure.ac: Check for posix_madvise.
8418 * config.in, configure: Rebuild.
8419
8420 2010-03-10 Tom Tromey <tromey@redhat.com>
8421
8422 * xcoffread.c (xcoff_start_psymtab): Update.
8423 (xcoff_end_psymtab): Update.
8424 * psymtab.c (allocate_psymtab): Remove dead code.
8425 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8426 void*.
8427 * mdebugread.c (parse_partial_symbols): Update.
8428 (new_psymtab): Likewise.
8429 * dwarf2read.c (process_psymtab_comp_unit): Update.
8430 (psymtab_to_symtab_1): Update.
8431 * dbxread.c (start_psymtab): Update.
8432 (end_psymtab): Likewise.
8433
8434 2010-03-10 Tom Tromey <tromey@redhat.com>
8435
8436 * xcoffread.c: Include psymtab.h.
8437 (xcoff_sym_fns): Update.
8438 * symtab.h (struct partial_symbol): Remove.
8439 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8440 (struct partial_symtab): Remove.
8441 (PSYMTAB_TO_SYMTAB): Remove.
8442 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8443 (find_pc_sect_psymtab): Remove.
8444 (find_pc_sect_symtab_via_partial): Declare.
8445 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8446 (find_main_psymtab): Remove.
8447 (find_main_filename): Declare.
8448 (fixup_psymbol_section): Remove.
8449 (fixup_section): Declare.
8450 * symtab.c: Include psymtab.h.
8451 (lookup_symtab): Use lookup_symtab method.
8452 (lookup_partial_symtab): Remove.
8453 (find_pc_sect_psymtab_closer): Remove.
8454 (find_pc_sect_psymtab): Remove.
8455 (find_pc_sect_symtab_via_partial): New function.
8456 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8457 (fixup_section): No longer static.
8458 (fixup_psymbol_section): Remove.
8459 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8460 (lookup_global_symbol_from_objfile): Likewise.
8461 (lookup_symbol_aux_psymtabs): Remove.
8462 (lookup_symbol_aux_quick): New function.
8463 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8464 (lookup_partial_symbol): Remove.
8465 (basic_lookup_transparent_type_quick): New function.
8466 (basic_lookup_transparent_type): Use it.
8467 (find_main_psymtab): Remove.
8468 (find_main_filename): New function.
8469 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8470 (find_line_symtab): Use expand_symtabs_with_filename method.
8471 (output_partial_symbol_filename): New function.
8472 (sources_info): Use map_partial_symbol_filenames.
8473 (struct search_symbols_data): New type.
8474 (search_symbols_file_matches): New function.
8475 (search_symbols_name_matches): Likewise.
8476 (search_symbols): Use expand_symtabs_matching method.
8477 (struct add_name_data): Rename from add_macro_name_data.
8478 (add_macro_name): Update.
8479 (add_partial_symbol_name): New function.
8480 (default_make_symbol_completion_list): Use
8481 map_partial_symbol_names.
8482 (struct add_partial_symbol_name): New type.
8483 (maybe_add_partial_symtab_filename): New function.
8484 (make_source_files_completion_list): Use
8485 map_partial_symbol_filenames.
8486 (expand_line_sal): Use expand_symtabs_with_filename method.
8487 * symmisc.c: Include psymtab.h.
8488 (print_objfile_statistics): Use print_stats method.
8489 (dump_objfile): Use dump method.
8490 (dump_psymtab, maintenance_print_psymbols)
8491 (maintenance_info_psymtabs, maintenance_check_symtabs)
8492 (extend_psymbol_list): Remove.
8493 * symfile.h (struct quick_symbol_functions): New struct.
8494 (struct sym_fns) <qf>: New field.
8495 (sort_pst_symbols): Remove.
8496 (increment_reading_symtab): Declare.
8497 * symfile.c: Include psymtab.h.
8498 (compare_psymbols, sort_pst_symbols): Remove.
8499 (psymtab_to_symtab): Remove.
8500 (increment_reading_symtab): New function.
8501 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8502 method.
8503 (set_initial_language): Use find_main_filename.
8504 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8505 (free_named_symtabs): Remove unused code.
8506 (start_psymtab_common, add_psymbol_to_bcache)
8507 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8508 Remove.
8509 * stack.c: Include psymtab.h, symfile.h.
8510 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8511 * source.h (psymtab_to_fullname): Don't declare.
8512 * source.c: Include psymtab.h.
8513 (select_source_symtab): Use find_last_source_symtab method.
8514 (forget_cached_source_info): Use forget_cached_source_info
8515 method.
8516 (find_and_open_source): No longer static.
8517 (psymtab_to_fullname): Remove.
8518 * somread.c: Include psymtab.h.
8519 (som_sym_fns): Update.
8520 * psympriv.h: New file.
8521 * psymtab.h: New file.
8522 * psymtab.c: New file.
8523 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8524 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8525 * objfiles.c: Include psymtab.h.
8526 (objfile_relocate1): Use relocate method.
8527 (objfile_has_partial_symbols): Use has_symbols method.
8528 * mipsread.c: Include psymtab.h.
8529 (ecoff_sym_fns): Update.
8530 * mi/mi-cmd-file.c: Include psymtab.h.
8531 (print_partial_file_name): New function.
8532 (mi_cmd_file_list_exec_source_files): Use
8533 map_partial_symbol_filenames.
8534 * mdebugread.c: Include psympriv.h.
8535 * machoread.c: Include psympriv.h.
8536 (macho_sym_fns): Update.
8537 * m2-exp.y (yylex): Use lookup_symtab.
8538 * elfread.c: Include psympriv.h.
8539 (elf_sym_fns): Update.
8540 * dwarf2read.c: Include psympriv.h.
8541 * dbxread.c: Include psympriv.h.
8542 (aout_sym_fns): Update.
8543 * cp-support.c: Include psymtab.h.
8544 (read_in_psymtabs): Remove.
8545 (make_symbol_overload_list_qualified): Use
8546 expand_symtabs_for_function method.
8547 * coffread.c: Include psympriv.h.
8548 (coff_sym_fns): Update.
8549 * blockframe.c: Include psymtab.h.
8550 (find_pc_partial_function): Use find_pc_sect_symtab method.
8551 * ada-lang.h (ada_update_initial_language): Update.
8552 * ada-lang.c: Include psymtab.h.
8553 (ada_update_initial_language): Remove 'main_pst' argument.
8554 (ada_lookup_partial_symbol): Remove.
8555 (struct ada_psym_data): New type.
8556 (ada_add_psyms): New function.
8557 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8558 (struct add_partial_datum): New type.
8559 (ada_add_partial_symbol_completions): New function.
8560 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8561 (ada_exception_support_info_sniffer): Update.
8562 * Makefile.in (SFILES): Add psymtab.c.
8563 (COMMON_OBS): Add psymtab.o.
8564 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8565
8566 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8567
8568 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8569
8570 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8571
8572 PR C++/11236:
8573 * cp-namespace.c (cp_add_using): Deleted.
8574 (cp_add_using_directive): Use obstack allocations.
8575 Merged the function cp_add_using into this one.
8576 Added 'struct obstack *' argument.
8577 (cp_scan_for_anonymous_namespaces): Updated.
8578 * cp-support.h: Updated.
8579 * dwarf2read.c (read_import_statement): Updated.
8580 (read_namespace): Updated.
8581
8582 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8583
8584 * windows-nat.c (cygwin_conv_path): Remove old macro.
8585
8586 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8587
8588 * breakpoint.c (condition_command): Handle watchpoint conditions.
8589 (is_hardware_watchpoint): Add comment.
8590 (is_watchpoint): New.
8591 (update_watchpoint): Don't reparse the watchpoint's condition
8592 unless necessary.
8593 (WP_IGNORE): New.
8594 (watchpoint_check): Use it.
8595 (bpstat_check_watchpoint): Handle it.
8596 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8597 conditions in a frame where it makes sense.
8598 (watch_command_1): Store the innermost block of the condition
8599 expression.
8600 (delete_breakpoint): Delete the watchpoint condition expression.
8601 * breakpoint.h (struct bp_location) <cond>: Update comment.
8602 (struct breakpoint): New field `cond_exp_valid_block'.
8603
8604 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8605
8606 Adjust handling of Ada DIEs after dwarf2_physname patch.
8607 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8608
8609 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8610 Pierre Muller <muller@ics.u-strasbg.fr>
8611
8612 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8613 from/to posix/win32.
8614 (windows_make_so): Use non-Cygwin 1.7 specific function.
8615 (windows_create_inferior): Make sure that cygallargs points to
8616 original args in non Cygwin 1.7. case.
8617
8618 2010-03-09 Michael Snyder <msnyder@vmware.com>
8619
8620 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8621 after target_read_memory to get host byte order.
8622 (i386_process_record): Ditto.
8623
8624 2010-03-09 Keith Seitz <keiths@redhat.com>
8625
8626 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8627 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8628 print out const or volatile qualifiers, too.
8629 (c_type_print_args): Add parameters show_artificial and language.
8630 Skip artificial parameters when requested.
8631 Use the appropriate language printer.
8632 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8633 parameters and pass language_c.
8634 * dwarf2read.c (die_list): New file global.
8635 (struct partial_die_info): Update comments for name field.
8636 (pdi_needs_namespace): Renamed to ...
8637 (die_needs_namespace): ... this. Rewrite.
8638 (dwarf2_linkage_name): Remove.
8639 (add_partial_symbol): Do not predicate the call to
8640 partial_die_full_name based on pdi_needs_namespace.
8641 Remove call to cp_check_possible_namespace_symbols and associated
8642 outdated comments.
8643 (guess_structure_name): Do not inspect child subprogram DIEs.
8644 (dwarf2_fullname): Update comments.
8645 Use die_needs_namespace to assist in computing the name.
8646 (read_func_scope): Use dwarf2_name to get the DIE's name.
8647 Use dwarf2_physname to get the "linkage name" of the DIE.
8648 (dwarf2_add_member_field): Use dwarf2_physname instead of
8649 dwarf2_linkage_name.
8650 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8651 (determine_class): Remove.
8652 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8653 except Ada.
8654 (new_symbol): Unconditionally call dwarf2_name.
8655 Compute the "linkage name" using dwarf2_physname.
8656 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8657 When determining to scan for anonymous C++ namespaces, ignore
8658 the linkage name.
8659 (dwarf2_physname): New function.
8660 (dwarf2_full_name): Move content to new function and call
8661 that.
8662 (dwarf2_compute_name): "New" function.
8663 (_initialize_dwarf2_read): Initialize die_list.
8664 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8665 physname.
8666 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8667 without a demangled name.
8668 Print out type information for non-virtual methods.
8669 * linespec.c (decode_line_1): Force ANY string using "::" (or
8670 "." for java) to use decode_compound, and clean up any stray quoting.
8671 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8672 (decode_compound): Stop consuming at an open parenthesis.
8673 Keep template parameters.
8674 Keep any overload information.
8675 Keep keywords like "const".
8676 Remove paren_pointer.
8677 Move is_quoted check from set_flags to here.
8678 Remove #if 0 code from 2000. Ten years is long enough.
8679 (find_method): Before comparing symbol names, canonicalize the string
8680 from the user.
8681 If a specific overload is requested, find it. Otherwise throw an error.
8682 (find_method_overload_end): New function.
8683 (set_flags): Remove.
8684 (decode_compound): Assume that parentheses are matched.
8685 It's a lot easier.
8686 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8687 to cplus_demangle.
8688 * linespec.c (decode_line_1): Keep important keywords like
8689 "const" and "volatile".
8690 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8691 * typeprint.h (c_type_print_args): Add declaration.
8692 * ui-file.c (do_ui_file_obsavestring): New function.
8693 (ui_file_obsavestring): New function.
8694 * ui-file.h (ui_file_obsavestring): Add declaration.
8695 * valops.c (find_overload_match): Resolve the object to
8696 a non-pointer type.
8697 If the object is a data member, search the object for the member
8698 and return with staticp set.
8699 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8700 Do not attempt to extract a function name from non-function types.
8701 If the extracted function name and the original name are the same,
8702 we don't have a C++ method.
8703
8704 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8705 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8706
8707 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8708 and arguments from symbol lookups.
8709 * ax-gdb.c (gen_expr): Likewise.
8710 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8711 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8712 lookup_possible_namespace_symbol): Likewise.
8713 * cp-support.c (read_in_psymtabs): Likewise.
8714 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8715 * language.h (la_lookup_symbol_nonlocal): Likewise.
8716 * scm-valprint.c (scm_inferior_print): Likewise.
8717 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8718 * solib-svr.c (elf_lookup_lib): Likewise.
8719 * solib.c (show_auto_solib_add): Likewise.
8720 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8721 * symmisc.c (maintenance_check_symtabs): Likewise.
8722 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8723 lookup_symbol_aux_local, lookup_symbol_aux_block,
8724 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8725 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8726 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8727 basic_lookup_transparent_type, find_main_psymtab,
8728 lookup_block_symbol): Likewise.
8729 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8730 lookup_symbol_global, lookup_symbol_aux_block,
8731 lookup_symbol_partial_symbol, lookup_block_symbol,
8732 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8733
8734 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8735
8736 * python/python-internal.h: Include symtab.h.
8737
8738 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8739 Pierre Muller <muller@ics.u-strasbg.fr>
8740
8741 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8742 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8743 indentation.
8744
8745 2010-03-08 Tom Tromey <tromey@redhat.com>
8746
8747 * breakpoint.c (breakpoint_1): Add "QUIT".
8748
8749 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8750 Pedro Alves <pedro@codesourcery.com>
8751
8752 * solib.c (solib_find): Replace extension if
8753 solib_symbols_extension is set in the target gdbarch.
8754 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8755 solib_symbols_extension to "sym".
8756 * gdbarch.sh (solib_symbols_extension): New variable.
8757 (pstring): New function.
8758 * gdbarch.h, gdbarch.c: Regenerate.
8759
8760 2010-03-08 Tom Tromey <tromey@redhat.com>
8761
8762 PR cli/9591:
8763 * NEWS: Update.
8764 * utils.c: Include main.h.
8765 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8766 (defaulted_query): Use default answer if `batch_flag'.
8767 * main.h (batch_flag): Declare.
8768 * main.c (batch_flag): New global.
8769 (captured_main): Remove 'batch'. Update.
8770
8771 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8772
8773 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8774 and Kevin Buettner:
8775
8776 * remote-mips.c (rockhopper_ops): New target_ops struct.
8777 (MON_ROCKHOPPER): New mips_monitor_type.
8778 (read_hex_value): New function.
8779 (mips_request): Send 8-byte values with a 'T' packet. Read the
8780 packet argument as a string and use read_hex_value to parse it.
8781 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8782 (rockhopper_open): New function.
8783 (mips_wait): Read the PC, FP and SP fields as strings. Use
8784 read_hex_value to parse them and mips_set_register to commit them.
8785 (mips_set_register): New function.
8786 (mips_fetch_registers): Do not cast register value to "unsigned"
8787 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8788 (mips_store_registers): Use a 'T' packet to set registers when
8789 using MON_ROCKHOPPER.
8790 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8791 and expect the total to be printed before the entry address.
8792 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8793
8794 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8795
8796 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8797 Change return value to int. Store value fetched in location
8798 addressed by `val'. Use function's return value as success
8799 or failure indicator. Adjust all callers.
8800
8801 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
8802
8803 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8804
8805 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8806 Hui Zhu <teawater@gmail.com>
8807
8808 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8809 tmp_to_stopped_data_address.
8810 (record_open): Reset tmp_to_stopped_by_watchpoint and
8811 tmp_to_stopped_data_address.
8812 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8813 to_stopped_data_address.
8814
8815 2010-03-08 Hui Zhu <teawater@gmail.com>
8816
8817 * i386-tdep.c (i386_process_record): Initialize regnum.
8818
8819 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8820
8821 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8822 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8823
8824 2010-03-08 Joel Brobecker <brobecker@adacore.com>
8825
8826 Memory error when reading wrong core file.
8827 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8828 errors while reading the inferior memory, and return zero if
8829 an exception was raised.
8830
8831 2010-03-07 Michael Snyder <msnyder@vmware.com>
8832
8833 * record.c (record_restore): Rename tmpu8 to rectype.
8834
8835 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8836 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8837
8838 (i386_record_push): Rename local tmpulongest to addr.
8839
8840 (i386_process_record): Rename local tmpulongest to addr.
8841
8842 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8843 addr64.
8844
8845 Rename local variable tmpu8 to opcode8 and regnum.
8846
8847 2010-03-07 Joel Brobecker <brobecker@adacore.com>
8848
8849 * remote.c (remote_get_ada_task_ptid): New function.
8850 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
8851
8852 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8853
8854 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8855 block. Define helper macros to reduce ifdefs in code.
8856 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8857 size. Call unadorned GetModuleFileNameEx rather than
8858 GetModuleFileNameEx*.
8859 (windows_make_so): Use __PMAX to denote maximum buffer size and
8860 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8861 appropriate.
8862 (get_image_name): Use __PMAX to denote maximum buffer size.
8863 (handle_load_dll): Likewise.
8864 (windows_pid_to_exec_file): Likewise.
8865 (windows_create_inferior): Add many accommodations for older Cygwin and
8866 non-Cygwin.
8867 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8868 __USEWIDE conditional.
8869 (bad_GetModuleFileNameExA): Likewise.
8870 (_initialize_loadable): Just use real function names without the dyn_
8871 part since they are defined earlier.
8872
8873 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
8874 Tom Tromey <tromey@redhat.com>
8875
8876 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8877 (parse_escape): Likewise.
8878 * python/py-utils.c (unicode_to_target_string): Update.
8879 (unicode_to_target_python_string): Update.
8880 (target_string_to_unicode): Update.
8881 * printcmd.c (printf_command): Update.
8882 * p-exp.y (yylex): Update.
8883 * objc-exp.y (yylex): Update.
8884 * mi/mi-parse.c: Include charset.h.
8885 (mi_parse_escape): New function.
8886 (mi_parse_argv): Use it.
8887 * jv-exp.y (yylex): Update.
8888 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8889 function.
8890 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8891 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8892 * gdbarch.c: Rebuild.
8893 * gdbarch.h: Rebuild.
8894 * defs.h (parse_escape): Update.
8895 * cli/cli-setshow.c: Include arch-utils.h.
8896 (do_setshow_command): Update.
8897 * cli/cli-cmds.c (echo_command): Update.
8898 * charset.h (target_charset, target_wide_charset): Update.
8899 * charset.c: Include arch-utils.h.
8900 (target_charset_name): Default to "auto".
8901 (target_wide_charset_name): Likewise.
8902 (show_target_charset_name): Handle "auto".
8903 (show_target_wide_charset_name): Likewise.
8904 (be_le_arch): New global.
8905 (set_be_le_names): Add 'gdbarch' argument.
8906 (validate): Likewise. Don't call set_be_le_names.
8907 (set_charset_sfunc, set_host_charset_sfunc)
8908 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8909 Update.
8910 (target_charset): Add 'gdbarch' argument.
8911 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8912 (auto_target_charset_name): New global.
8913 (default_auto_charset, default_auto_wide_charset): New functions.
8914 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8915 for target charsets. Copy result of nl_langinfo. Use GetACP if
8916 USE_WIN32API.
8917 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8918 remove 'byte_order' argument. Update.
8919 (classify_type): Likewise.
8920 (c_emit_char): Update.
8921 (c_printchar): Update.
8922 (c_printstr): Update.
8923 (c_get_string): Update.
8924 (evaluate_subexp_c): Update.
8925 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8926 Declare.
8927 * python/python.c (gdbpy_target_charset): New function.
8928 (gdbpy_target_wide_charset): Likewise.
8929 (GdbMethods): Update.
8930 * NEWS: Update.
8931
8932 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8933
8934 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8935 off high address bits.
8936
8937 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8938
8939 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8940 address as UnsignedLongLong, not LongLong.
8941
8942 2010-03-05 Kevin Buettner <kevinb@redhat.com>
8943 Pedro Alves <pedro@codesourcery.com>
8944
8945 * remote-mips.c (gdbthread.h): Include.
8946 (remote_mips_ptid): Declare.
8947 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8948 (common_open): Set inferior_ptid, add it as an inferior, and
8949 as a thread too. Delete FIXME comment regarding start_remote().
8950 (mips_close): Invoke generic_mourn_inferior().
8951 (mips_kill): Make sure that target_mourn_inferior is invoked.
8952 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8953 it's now invoked from mips_close().
8954 (mips_load): Don't null out inferior_ptid. Don't call
8955 clear_symtab_users().
8956 (mips_thread_alive, mips_pid_to_str): New functions.
8957 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8958 to_thread_alive and to_pid_to_str operations.
8959
8960 2010-03-04 Tom Tromey <tromey@redhat.com>
8961
8962 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8963 in DWARF 3 and later.
8964 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8965
8966 2010-03-04 Keith Seitz <keiths@redhat.com>
8967
8968 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8969 If the filename portion of the linespec was quoted, recheck the
8970 remainder for additional quoting.
8971 (locate_first_half): Skip over completer chars, too.
8972
8973 2010-03-04 Tom Tromey <tromey@redhat.com>
8974
8975 * printcmd.c (printf_command): Pass dummy argument to
8976 printf_filtered.
8977
8978 2010-03-04 Doug Evans <dje@google.com>
8979
8980 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8981 unwound_fp.
8982
8983 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8984
8985 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8986
8987 * breakpoint.c (update_watchpoint): Create a sentinel location if
8988 the software watchpoint isn't watching any memory.
8989 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8990
8991 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8992
8993 * utils.c (fputs_maybe_filtered): Check if there's already a top
8994 level interpreter before dereferencing it. If there isn't one,
8995 don't paginate either.
8996
8997 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8998
8999 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9000 the state right when single stepping.
9001 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9002 Get the next PC along with the instruction state.
9003 (thumb_get_next_pc): Remove.
9004 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9005
9006 2010-03-04 Hui Zhu <teawater@gmail.com>
9007
9008 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9009
9010 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9011
9012 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9013 top level interpreter is MI.
9014
9015 2010-03-03 Stan Shebs <stan@codesourcery.com>
9016
9017 * remote.c (remote_download_tracepoint): Iterate over locations.
9018 * tracepoint.c (validate_actionline): Ditto.
9019 (encode_actions): Add location argument.
9020 (trace_dump_command): Check all locations to see if stepping
9021 frame.
9022
9023 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9024 Eli Zaretskii <eliz@gnu.org>
9025
9026 * NEWS: Add X86 general purpose registers section.
9027
9028 2010-03-03 Tom Tromey <tromey@redhat.com>
9029
9030 PR mi/11098:
9031 * varobj.c (install_new_value): Handle case where new print_value
9032 is NULL.
9033
9034 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9035
9036 PR gdb/11345:
9037 * printcmd.c (printf_command): Print end of format string using
9038 printf_filtered.
9039
9040 2010-03-02 Tom Tromey <tromey@redhat.com>
9041
9042 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9043 * defs.h (read_command_lines_1): Add missing 'void'.
9044 * cli/cli-script.c (recurse_read_control_structure): Add missing
9045 'void'.
9046 (read_next_line): Likewise.
9047 (read_command_lines_1): Likewise.
9048
9049 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9050
9051 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9052 store backchain as part of prologue.
9053
9054 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9055
9056 * progspace.c (update_address_spaces): Update inferior address spaces
9057 also.
9058
9059 2010-03-02 Doug Evans <dje@google.com>
9060
9061 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9062 lowpc,highpc args to addrmap_set_empty.
9063
9064 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9065
9066 * amd64-tdep.c (amd64_byte_names): New.
9067 (amd64_word_names): Likewise.
9068 (amd64_dword_names): Likewise.
9069 (amd64_pseudo_register_name): Likewise.
9070 (amd64_pseudo_register_read): Likewise.
9071 (amd64_pseudo_register_write): Likewise.
9072 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9073 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9074 set_gdbarch_pseudo_register_write and
9075 set_tdesc_pseudo_register_name. Don't call
9076 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9077
9078 * i386-tdep.c (i386_num_mmx_regs): Removed.
9079 (i386_num_pseudo_regs): Likewise.
9080 (i386_byte_names): New.
9081 (i386_word_names): Likewise.
9082 (i386_byte_regnum_p): Likewise.
9083 (i386_word_regnum_p): Likewise.
9084 (i386_mmx_regnum_p): Updated.
9085 (i386_pseudo_register_name): Make it global. Handle byte and
9086 word pseudo-registers.
9087 (i386_pseudo_register_read): Likewise.
9088 (i386_pseudo_register_write): Likewise.
9089 (i386_pseudo_register_type): Handle byte, word and dword
9090 pseudo-registers
9091 (i386_register_reggroup_p): Don't include pseudo
9092 registers, except for MXX, in any register groups. Don't
9093 include pseudo byte, word, dword registers in general_reggroup.
9094 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9095 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9096 pseudo-registers after word pseudo-registers. Call
9097 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9098
9099 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9100 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9101 eax_regnum.
9102 (i386_byte_regnum_p): New.
9103 (i386_word_regnum_p): Likewise.
9104 (i386_dword_regnum_p): Likewise.
9105 (i386_pseudo_register_name): Likewise.
9106 (i386_pseudo_register_read): Likewise.
9107 (i386_pseudo_register_write): Likewise.
9108
9109 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9110
9111 * target-descriptions.c (tdesc_type): Remove
9112 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9113 (tdesc_predefined_types): Likewise.
9114 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9115 if flag name is empty.
9116 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9117
9118 * features/i386/32bit-core.xml: Define i386_eflags.
9119 * features/i386/64bit-core.xml: Likewise.
9120
9121 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9122 * features/i386/64bit-sse.xml: Likewise.
9123
9124 * features/i386/amd64-linux.c: Regenerated.
9125 * features/i386/amd64.c: Likewise.
9126 * features/i386/i386-linux.c: Likewise.
9127 * features/i386/i386.c: Likewise.
9128
9129 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9130
9131 * gdbtypes.c (append_composite_type_field_raw): New.
9132 (append_composite_type_field_aligned): Use the new function.
9133 * gdbtypes.h (append_composite_type_field_raw): Declare.
9134 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9135 (struct tdesc_type_flag): New type.
9136 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9137 kind. Add size to u.u. Add u.f for flags.
9138 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9139 (tdesc_free_type): Likewise.
9140 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9141 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9142 (tdesc_add_bitfield, tdesc_add_flag): New.
9143 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9144 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9145 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9146 current_type. Add current_type_size and current_type_is_flags.
9147 (tdesc_start_union): Clear the new fields.
9148 (tdesc_start_struct, tdesc_start_flags): New.
9149 (tdesc_start_field): Handle struct fields, including bitfields.
9150 (field_attributes): Make type optional. Add start and end.
9151 (union_children): Rename to struct_union_children.
9152 (union_attributes): Rename to struct_union_attributes. Add optional
9153 size.
9154 (flags_attributes): New.
9155 (feature_children): Add struct and flags.
9156 * features/gdb-target.dtd: Add flags and struct to features.
9157 Make field type optional. Add field start and end.
9158
9159 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9160
9161 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9162 (amd64_linux_read_description): Likewise.
9163 (_initialize_amd64_linux_nat): Set to_read_description to
9164 amd64_linux_read_description.
9165
9166 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9167 (amd64_linux_register_name): Removed.
9168 (amd64_linux_register_type): Likewise.
9169 (amd64_linux_core_read_description): New.
9170 (amd64_linux_init_abi): Set target description to
9171 tdesc_amd64_linux if needed. Support orig_rax in target
9172 description. Don't call set_gdbarch_register_name nor
9173 set_gdbarch_register_type. Call
9174 set_gdbarch_core_read_description.
9175 (_initialize_amd64_linux_tdep): Call
9176 initialize_tdesc_amd64_linux.
9177
9178 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9179
9180 * amd64-tdep.c: Include "features/i386/amd64.c".
9181 (amd64_register_names): Removed.
9182 (amd64_register_name): Likewise.
9183 (amd64_register_type): Likewise.
9184 (amd64_init_abi): Set num_core_regs and register_names. Set
9185 target description to tdesc_amd64 if needed. Don't call
9186 set_gdbarch_register_name nor set_gdbarch_register_type.
9187 (_initialize_amd64_tdep): New.
9188
9189 * i386-linux-nat.c (i386_linux_read_description): New.
9190 (_initialize_i386_linux_nat): Set to_read_description to
9191 i386_linux_read_description.
9192
9193 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9194 (i386_linux_register_name): Removed.
9195 (i386_linux_core_read_description): New.
9196 (i386_linux_read_description): Likewise.
9197 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9198 Set target description to tdesc_i386_linux if needed. Support
9199 orig_eax. Set register_reggroup_p. Call
9200 set_gdbarch_core_read_description.
9201 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9202
9203 * i386-linux-tdep.h (tdesc_i386_linux): New.
9204
9205 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9206 with I387_NUM_REGS.
9207
9208 * i386-tdep.c: Include "features/i386/i386.c".
9209 (i386_register_names): Make it const.
9210 (i386_mmx_names): Likewise.
9211 (i386_num_register_names): Removed.
9212 (i386_register_name): Likewise.
9213 (i386_eflags_type): Likewise.
9214 (i386_mxcsr_type): Likewise.
9215 (i386_sse_type): Likewise.
9216 (i386_register_type): Likewise.
9217 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9218 (i386_pseudo_register_name): New.
9219 (i386_pseudo_register_type): Likewise.
9220 (i386_mmx_type): Make it static.
9221 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9222 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9223 call set_gdbarch_register_name nor set_gdbarch_register_type.
9224 Set register_reggroup_p. Set target description to tdesc_i386
9225 if needed. Call set_tdesc_pseudo_register_type,
9226 set_tdesc_pseudo_register_name and tdesc_use_registers.
9227 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9228 initialize_tdesc_x86_64.
9229
9230 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9231 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9232 register_names, tdesc and register_reggroup_p.
9233 (I386_NUM_FREGS): Removed.
9234 (i386_eflags_type): Likewise.
9235 (i386_mxcsr_type): Likewise.
9236 (i386_mmx_type): Likewise.
9237 (i386_sse_type): Likewise.
9238 (i386_register_name): Likewise.
9239 (i386_regnum): Add I386_MXCSR_REGNUM.
9240 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9241
9242 * i387-tdep.h (I387_NUM_REGS): New.
9243
9244 * regformats/i386/i386-linux.dat: Generated.
9245 * regformats/i386/i386.dat: Likewise.
9246 * regformats/i386/amd64-linux.dat: Likewise.
9247 * regformats/i386/amd64.dat: Likewise.
9248
9249 * regformats/reg-i386-linux.dat: Removed.
9250 * regformats/reg-i386.dat: Likewise.
9251 * regformats/reg-x86-64-linux.dat: Likewise.
9252 * regformats/reg-x86-64.dat: Likewise.
9253
9254 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9255
9256 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9257 cygwin_conv_path API rather than the deprecated
9258 cygwin_conv_to_full_posix_path.
9259 * windows-nat.c:
9260 (GetModuleFileNameExA): Undefine for Cygwin.
9261 (GetModuleFileNameExW): Define for Cygwin.
9262 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9263 Call GetModuleFileNameExW and convert path to POSIX using
9264 cygwin_conv_path.
9265 (windows_make_so): Always define p. Drop unused variable m.
9266 Don't use Win32 functions to check file existance, rather use
9267 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9268 Use canonicalize_file_name to get full path.
9269 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9270 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9271 use correct target buffer size in call to WideCharToMultiByte.
9272 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9273 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9274 (windows_create_inferior): Convert all paths and arguments to wchar_t
9275 and use CreateProcessW on Cygwin.
9276 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9277 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9278 (bad_GetModuleFileNameExW): Define for Cygwin.
9279 (_initialize_loadable): Load GetModuleFileNameExW into
9280 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9281
9282 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9283
9284 PR python/11036
9285 * python/py-frame.c (frapy_read_var): Add block argument and logic
9286 to cope with user provided blocks.
9287
9288 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9289
9290 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9291 New comment.
9292
9293 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9294
9295 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9296 (COMMON_OBS): ... to here since it's used unconditionally.
9297 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9298 (SFILES): To here.
9299
9300 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9301
9302 * mips-linux-tdep.c: Update struct sigframe comments.
9303 (SIGFRAME_CODE_OFFSET): Delete macro.
9304 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9305 this_frame's sp.
9306 (mips_linux_n32n64_sigframe_init): Same.
9307
9308 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9309
9310 * remote-mips.c (mips_load): Don't use pseudo-register when
9311 invalidating regcache.
9312
9313 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9314
9315 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9316
9317 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9318
9319 * NEWS: Add "New targets" section, and mention ARM Symbian
9320 support.
9321
9322 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9323
9324 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9325 add ADDR_SIZE member.
9326 (allocate_piece_closure): Update.
9327 (copy_pieced_value_closure): Likewise.
9328 (dwarf2_evaluate_loc_desc): Likewise.
9329 (read_pieced_value): Use DWARF address size instead of
9330 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9331
9332 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9333 Tom Tromey <tromey@redhat.com>
9334
9335 * python/py-type.c (typy_lookup_typename): Add in block argument.
9336 If provided restrict lookup to specified blocks.
9337 (gdbpy_lookup_type): Likewise.
9338 (typy_lookup_type): Likewise.
9339
9340 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9341
9342 Symbian config
9343
9344 gdb/
9345 * arm-symbian-tdep.c: New.
9346 * configure.tgt (arm*-*-symbianelf*): New target.
9347 (*-*-symbianelf*): New OS.
9348 * osabi.c (gdb_osabi_names): Add Symbian.
9349 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9350 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9351 (ALLDEPFILES): Add arm-symbian-tdep.c.
9352
9353 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9354
9355 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9356
9357 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9358
9359 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9360
9361 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9362 Tom Tromey <tromey@redhat.com>
9363 Thiago Jung Bauermann <bauerman@br.ibm.com>
9364
9365 * python/python.c (_initialize_python): Call
9366 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9367 gdbpy_initialize_blocks.
9368 * python/python-internal.h: Declare struct symbol, block and
9369 symtab_and_line. Declare block_object_type and
9370 symbol_object_type
9371 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9372 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9373 (symbol_to_symbol_object, block_to_block_object)
9374 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9375 (gdbpy_initialize_blocks ): Declare.
9376 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9377 (frapy_select): Add methods.
9378 (frapy_read_var): Add symbol branch.
9379 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9380 py-block.
9381 (SUBDIR_PYTHON_SRCS): Likewise.
9382 (py-symbol.o): New rule.
9383 (py-symtab.o): Likewise.
9384 (py-block.o): Likewise.
9385 * python/py-symbol.c: New file.
9386 * python/py-symtab.c: Likewise.
9387 * python/py-block.c: Likewise.
9388
9389 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9390
9391 PR gdb/11321
9392
9393 * inferior.h (prepare_for_detach): Declare.
9394 (struct inferior) <detaching>: New field.
9395 * infrun.c (prepare_for_detach): New.
9396 (handle_inferior_event) <random signal>: Don't stop if detaching.
9397 * target.c (target_detach): Call prepare_for_detach.
9398
9399 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9400
9401 Per-process displaced stepping queue.
9402
9403 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9404 (displaced_step_gdbarch, displaced_step_closure,
9405 (displaced_step_original, displaced_step_copy): Move globals to
9406 this...
9407 (struct displaced_step_inferior_state): ... new structure.
9408 (displaced_step_inferior_states): New global.
9409 (get_displaced_stepping_state, add_displaced_stepping_state)
9410 (remove_displaced_stepping_state, infrun_inferior_exit): New
9411 functions.
9412 (displaced_step_clear): Add displaced_step_inferior_state
9413 parameter, and adjust to handle it.
9414 (displaced_step_clear_cleanup): Parameter is now a
9415 displaced_step_inferior_state. Adjust.
9416 (displaced_step_prepare): Adjust.
9417 (displaced_step_fixup, displaced_step_fixup)
9418 (infrun_thread_ptid_changed, resume): Adjust.
9419 (init_wait_for_inferior): Don't call displaced_step_clear.
9420 (infrun_thread_stop_requested): Rewrite.
9421 (_initialize_infrun): Install infrun_inferior_exit as
9422 inferior_exit observer.
9423
9424 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9425
9426 * inferior.h (ptid_match): Declare.
9427 * infrun.c (ptid_match): New.
9428 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9429 (handle_notification): Add debug output.
9430 * linux-nat.c (ptid_match): Delete.
9431
9432 2010-02-24 David S. Miller <davem@davemloft.net>
9433
9434 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9435 * syscalls/sparc-linux.xml: New.
9436 * syscalls/sparc64-linux.xml: New.
9437 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9438 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9439 (sparc32_linux_get_syscall_number): New function.
9440 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9441 syscall number fetcher.
9442 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9443 (sparc64_linux_get_syscall_number): New function.
9444 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9445 syscall number fetcher.
9446
9447 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9448
9449 Multiexec MI
9450
9451 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9452 * inferior.c (add_inferior_silent): Notify inferior_added
9453 observer.
9454 (delete_inferior_1): Notify inferior_removed observer.
9455 (exit_inferior_1): Pass inferior, not pid, to observer.
9456 (inferior_appeared): Likewise.
9457 (add_inferior_with_spaces): New.
9458 (add_inferior_command): Use the above.
9459 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9460 Declare.
9461
9462 * inflow.c (inflow_inferior_exit): Likewise.
9463 * jit.c (jit_inferior_exit_hook): Likewise.
9464
9465 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9466 remove-inferior.
9467 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9468 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9469 (report_initial_inferior): New.
9470 (mi_inferior_removed): Register the above. Make sure
9471 inferior_added observer is called on the first inferior.
9472 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9473 inferior number, not pid.
9474 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9475 affected.
9476 * mi/mi-main.c (current_context): New.
9477 (proceed_thread_callback): Use typed closure.
9478 Proceed everything if pid is 0. Most implementation split into
9479 (proceed_thread): ... this.
9480 (run_one_inferior): New.
9481 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9482 Adjust for multiexec behaviour.
9483 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9484 (mi_cmd_execute): Handle the 'thread-group' option here.
9485 Do some extra checks.
9486 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9487 options.
9488 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9489
9490 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9491
9492 Make -exec-run a proper MI commands.
9493
9494 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9495 * mi/mi-cmds.c (mi_cmds): Adjust.
9496 * mi/mi-main.c (mi_cmd_exec_run): New.
9497
9498 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9499 Stan Shebs <stan@codesourcery.com>
9500
9501 * tracepoint.h (set_traceframe_number)
9502 (cleanup_restore_current_traceframe): Declare.
9503 * tracepoint.c (set_traceframe_number): New.
9504 (struct current_traceframe_cleanup): New.
9505 (do_restore_current_traceframe_cleanup)
9506 (restore_current_traceframe_cleanup_dtor)
9507 (make_cleanup_restore_current_traceframe): New.
9508 * infrun.c: Include tracepoint.h.
9509 (fetch_inferior_event): Switch out and in of tfind mode.
9510
9511 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9512
9513 * breakpoint.c (breakpoint_init_inferior): Also delete
9514 bp_shlib_event breakpoints.
9515 * solib-frv.c (enable_break): Remove call to
9516 remove_solib_event_breakpoints.
9517 * solib-svr4.c (enable_break): Ditto.
9518 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9519 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9520 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9521 * solib-spu.c (spu_enable_break): Ditto.
9522
9523 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9524
9525 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9526
9527 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9528
9529 * varobj.c (varobj_update): Avoid non-constants in initializers.
9530
9531 2010-02-23 Tom Tromey <tromey@redhat.com>
9532
9533 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9534 handle big-endian values.
9535 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9536
9537 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9538
9539 PR9605
9540
9541 gdb/
9542 * breakpoint.c (insert_bp_location): If inserting the read
9543 watchpoint failed, fallback to an access watchpoint.
9544 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9545 if the value changed, if not watching the same memory for writes.
9546 (watchpoint_locations_match): Add comment.
9547 (update_global_location_list): Copy the location's watchpoint type.
9548 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9549 handle read watchpoints here.
9550 (i386_insert_watchpoint): Read watchpoints aren't supported.
9551 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9552 packets.
9553 * target.h (target_insert_watchpoint): Update description.
9554
9555 2010-02-19 Tom Tromey <tromey@redhat.com>
9556
9557 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9558 * m2-typeprint.c (m2_print_type): Update.
9559 * gdbtypes.c (recursive_dump_type): Update.
9560 (copy_type_recursive): Update.
9561 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9562 (c_type_print_base): Update.
9563 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9564 Remove.
9565 (struct cplus_struct_type) <ntemplate_args>: Remove.
9566 <struct template_arg>: Remove.
9567 <is_dynamic>: Move earlier.
9568 (TYPE_TEMPLATE_ARGS): Remove.
9569 (TYPE_NTEMPLATE_ARGS): Remove.
9570 (TYPE_TEMPLATE_ARG): Remove.
9571
9572 2010-02-19 Tom Tromey <tromey@redhat.com>
9573
9574 PR c++/8693, PR c++/9496:
9575 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9576 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9577 write_dollar_variable. Don't try to classify NAME tokens.
9578 (token_and_value): New type.
9579 (token_fifo, popping, name_obstack): New globals.
9580 (classify_name): New function.
9581 (classify_inner_name): Likewise.
9582 (yylex): Likewise.
9583 (VARIABLE): Now has type sval.
9584 (exp : VARIABLE): Call write_dollar_variable.
9585 (qualified_name): Use TYPENAME, not typebase. Add production for
9586 multiple "::" instances.
9587 (variable): Use name_not_typename.
9588 (qualified_type): Remove.
9589 (typebase): Update.
9590
9591 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9592
9593 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9594 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9595 found by bfd_get_section_by_name.
9596 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9597
9598 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9599
9600 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9601 7.0 section" into "Changes in 7.1".
9602
9603 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9604
9605 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9606 * version.in: Bump version to 7.1.50.20100219-cvs.
9607
9608 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9609
9610 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9611 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9612
9613 2010-02-17 Tom Tromey <tromey@redhat.com>
9614
9615 * NEWS: Add Python API Improvements section.
9616
9617 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9618
9619 * NEWS: Correct typo.
9620
9621 2010-02-17 Tom Tromey <tromey@redhat.com>
9622
9623 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9624
9625 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9626
9627 * symfile.c (build_section_addr_info_from_objfile): Include sections
9628 only if they are SEC_ALLOC or SEC_LOAD.
9629
9630 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9631
9632 PR shlibs/11293
9633 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9634 of ULONGEST for address size.
9635
9636 2010-02-17 Tom Tromey <tromey@redhat.com>
9637
9638 * NEWS: Add C++ improvements section.
9639
9640 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9641
9642 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9643 PyThreadState_Swap): Avoid "statement with no effect" warning.
9644
9645 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9646
9647 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9648 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9649
9650 2010-02-17 Tristan Gingold <gingold@adacore.com>
9651 Petr Hluzin <petr.hluzin@gmail.com>
9652
9653 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9654 gdb_assert. Fix info->size for SIG prologue.
9655
9656 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9657
9658 * infcmd.c (show_inferior_tty_command): Check for NULL.
9659 Correct output message.
9660
9661 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9662
9663 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9664 FUNCTION contains parentheses. Improve removal of a trailing
9665 single quote.
9666
9667 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9668
9669 * gcore.c (do_bfd_delete_cleanup): New function.
9670 (gcore_command): Use it. Discard the cleanup after success.
9671 (gcore_copy_callback): Delete dead code.
9672
9673 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9674
9675 * symfile.c (addr_info_make_relative): Always use
9676 find_lowest_section.
9677
9678 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9679
9680 * NEWS: Added entry for namespace fixes.
9681
9682 2010-02-15 Tom Tromey <tromey@redhat.com>
9683
9684 * dwarf2read.c (guess_structure_name): Allocate name on the
9685 objfile obstack.
9686
9687 2010-02-15 Tom Tromey <tromey@redhat.com>
9688
9689 * c-typeprint.c (c_type_print_base): Reverse order of test.
9690
9691 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9692
9693 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9694 initialize it from ELF BFD. Extend the prelink condition by it.
9695
9696 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9697
9698 * defs.h (parse_pid_to_attach): New.
9699 * utils.c (parse_pid_to_attach): New.
9700 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9701 * gnu-nat.c (gnu_attach): Likewise.
9702 * nto-procfs.c (procfs_attach): Likewise.
9703 * procfs.c (procfs_attach): Likewise.
9704 * windows-nat.c (windows_attach): Likewise.
9705 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9706 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9707 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9708 check.
9709
9710 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
9711
9712 * MAINTAINERS: Add myself for write after approval privileges.
9713
9714 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9715
9716 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9717 block.
9718
9719 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9720
9721 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9722 only if INFO_VERBOSE.
9723
9724 2010-02-12 Tomas Holmberg <th@virtutech.com>
9725
9726 * mi/mi-main.c: Added the --reverse flag to the following MI
9727 commands: exec-continue, exec-finish, exec-next, exec-step,
9728 exec-next-instruction, exec-step-instruction. This is to
9729 support reverse execution over the MI interface to gdb.
9730
9731 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9732
9733 * tracepoint.c (_initialize_tracepoint): Specify that the address
9734 range of `tfind outsize' is exclusive, and that the address range
9735 of `tfind range' is inclusive, in the commands' help strings.
9736
9737 2010-02-12 Joel Brobecker <brobecker@adacore.com>
9738
9739 Spurious "dll not found" error messages on x64-windows.
9740 * windows-nat.c: Add include of complaints.h.
9741 (handle_unload_dll): Change dll-not-found error into a complaint.
9742
9743 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9744
9745 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9746 bp_tracepoint and bp_fast_tracepoint, not
9747 bp_loc_software_breakpoint.
9748 (update_global_location_list): Tracepoints are never duplicates of
9749 anything.
9750
9751 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9752
9753 * breakpoint.c (break_command_really): Change return type to int.
9754 Return false if no breakpoint was created, true otherwise.
9755 (trace_command): Don't set the tracepoint count if no tracepoint
9756 was created.
9757 (ftrace_command): Ditto.
9758 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9759 created in the breakpoints table.
9760
9761 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9762 Ulrich Weigand <uweigand@de.ibm.com>
9763
9764 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9765
9766 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9767
9768 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9769 the offset value isn't of integral type.
9770
9771 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9772
9773 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9774 New.
9775
9776 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9777
9778 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9779 non-subscriptable types.
9780 * valarith.c (binop_types_user_defined_p): New, abstracted out
9781 from ...
9782 (binop_user_defined_p): ... this.
9783 * value.h (binop_types_user_defined_p): Declare.
9784
9785 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9786
9787 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9788 Merge uploaded TSVs before merging uploaded tracepoints.
9789
9790 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9791
9792 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9793
9794 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
9795
9796 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9797 whitespace character after a dot in comment.
9798 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9799 Likewise.
9800 (list_args_or_locals): For the 'all' (that is
9801 -stack-list-variables) case, always output list of tuples.
9802 Output 'arg' field if variable is argument.
9803
9804 2010-02-10 Tom Tromey <tromey@redhat.com>
9805
9806 * parser-defs.h (parser_debug): Declare.
9807 * parse.c (_initialize_parse): Install "debug parser" set/show
9808 command.
9809 (parser_debug): New global.
9810 (show_parserdebug): New function.
9811 * c-exp.y (c_parse): Set yydebug.
9812
9813 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9814
9815 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9816 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9817 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9818 i386_mxcsr.
9819 (tdesc_find_type): New.
9820 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9821 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9822
9823 * target-descriptions.h (tdesc_find_type): New.
9824
9825 2010-02-10 Michael Snyder <msnyder@vmware.com>
9826
9827 * gdb-gdb.py: Comment fix.
9828
9829 2010-02-09 Tristan Gingold <gingold@adacore.com>
9830
9831 * machoread.c (macho_symfile_relocate): New function.
9832 (macho_sym_fns): Use macho_symfile_relocate instead of
9833 default_symfile_relocate.
9834 (macho_oso_data): New type.
9835 (current_oso): New variable.
9836 (macho_add_oso_symfile): Do not compute section_addr_info, but
9837 instead set vma of sections.
9838 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9839 Set and clear current_oso.
9840
9841 2010-02-09 Joel Brobecker <brobecker@adacore.com>
9842
9843 Wrong type description for tagged type parameter.
9844 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9845 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9846 reference to a tagged type.
9847
9848 2010-02-09 Tristan Gingold <gingold@adacore.com>
9849
9850 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9851 brothers of the parent.
9852
9853 2010-02-08 Tom Tromey <tromey@redhat.com>
9854
9855 PR c++/8017:
9856 * value.h: Update.
9857 * valops.c (search_struct_field): Make 'name' const.
9858 (search_struct_method): Likewise.
9859 (find_method_list): Make 'method' const.
9860 (value_struct_elt): Make 'name' and 'err' const.
9861 (value_find_oload_method_list): Make 'method' const.
9862 (find_overload_match): Make 'name' const.
9863 * eval.c (evaluate_subexp_standard): New locals function,
9864 function_name.
9865 <OP_FUNCALL>: Handle OP_SCOPE specially.
9866
9867 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9868
9869 * infrun.c (handle_inferior_event): Do not look up regcache
9870 for exited processes.
9871
9872 2010-02-08 Chris Moller <moller@mollerware.com>
9873
9874 PR gdb/10728
9875 * valarith.c (value_ptrdiff): Added a test for a zero type length,
9876 warn if found, and assume length = 1.
9877
9878 2010-02-08 Chris Moller <cmoller@redhat.com>
9879
9880 PR gdb/9067
9881 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
9882 (cp_print_static_field) Fix use of obstacks.
9883
9884 2010-02-08 Pedro Alves <pedro@codesourcery.com>
9885
9886 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9887 resumed LWPs as resumed.
9888 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9889 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9890 of throwing an internal error. If an LWP of a process we're not
9891 waiting for reports a signal, don't force collecting a SIGSTOP,
9892 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9893 go through all LWPs cancelling breakpoints in non-stop mode.
9894 (resume_stopped_resumed_lwps): New.
9895 (linux_nat_wait): Use it.
9896
9897 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9898
9899 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9900 i386/amd64 and i386/amd64-linux.
9901 (i386/i386-expedite): New.
9902 (i386/i386-linux-expedite): Likewise.
9903 (i386/amd64-expedite):Likewise.
9904 (i386/amd64-linux-expedite): Likewise.
9905 ($(outdir)/i386/i386-linux.dat): Likewise.
9906 ($(outdir)/i386/amd64.dat): Likewise.
9907 ($(outdir)/i386/amd64-linux.dat): Likewise.
9908
9909 * features/i386/32bit-core.xml: New.
9910 * features/i386/32bit-linux.xml: Likewise.
9911 * features/i386/32bit-sse.xml: Likewise.
9912 * features/i386/64bit-core.xml: Likewise.
9913 * features/i386/64bit-linux.xml: Likewise.
9914 * features/i386/64bit-sse.xml: Likewise.
9915 * features/i386/i386-linux.xml: Likewise.
9916 * features/i386/i386.xml: Likewise.
9917 * features/i386/amd64-linux.xml: Likewise.
9918 * features/i386/amd64.xml: Likewise.
9919 * features/i386/i386-linux.c: Likewise.
9920 * features/i386/i386.c: Likewise.
9921 * features/i386/amd64-linux.c: Likewise.
9922 * features/i386/amd64.c: Likewise.
9923
9924 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9925
9926 PR c++/7935:
9927 * cp-support.h: Added char* alias element to using_direct data
9928 struct.
9929 (cp_add_using): Added char* alias argument.
9930 (cp_add_using_directive): Ditto.
9931 * cp-namespace.c: Updated with the above changes.
9932 (cp_lookup_symbol_imports): Check for aliases.
9933 * dwarf2read.c (read_import_statement): Figure out local alias
9934 for the import and pass it on to cp_add_using.
9935 (read_namespace): Pass alias argument to cp_add_using.
9936
9937 2010-02-05 Hui Zhu <teawater@gmail.com>
9938
9939 * defs.h (gdb_bfd_errmsg): New extern.
9940 * exec.c (exec_file_attach): Change bfd_errmsg to
9941 gdb_bfd_errmsg.
9942 * utils.c (AMBIGUOUS_MESS1): New macro.
9943 (AMBIGUOUS_MESS2): New macro.
9944 (gdb_bfd_errmsg): New function.
9945
9946 2010-02-04 Doug Evans <dje@google.com>
9947
9948 * solib-svr4.c (enable_break): Add comment.
9949
9950 2010-02-04 Anthony Green <green@moxielogic.com>
9951
9952 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9953 gracefully.
9954
9955 2010-02-04 Tom Tromey <tromey@redhat.com>
9956
9957 * valops.c (search_struct_field): Account for
9958 value_embedded_offset. Fix check for virtual base past the end of
9959 the object. Use value_copy when making a slice of the value.
9960
9961 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9962
9963 PR tui/9622
9964 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9965 only if gdb_stdout is a tty.
9966
9967 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9968
9969 * target-descriptions.c: Include "osabi.h".
9970 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9971 OSABI.
9972
9973 2010-02-04 Tristan Gingold <gingold@adacore.com>
9974
9975 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9976 (macho_symtab_read): Adjust calls to macho_add_oso.
9977 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9978 (macho_symfile_read): Adjust call to macho_oso_symfile.
9979 (macho_new_init): Move this function after declarations.
9980 (macho_symfile_init): Ditto.
9981 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9982 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9983
9984 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9985
9986 Include MI command in remotelog.
9987
9988 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9989
9990 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9991
9992 * remote.c (remote_state): Remove gdbarch.
9993 (init_remote_state): Don't set gdbarch.
9994 (remote_query_supported): Pass target_gdbarch instead of
9995 rs->gdbarch to gdbarch_qsupported.
9996
9997 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9998
9999 * gdbarch.sh: Add qsupported.
10000
10001 * gdbarch.c: Regenerated.
10002 * gdbarch.h: Likewise.
10003
10004 * remote.c (remote_state): Add gdbarch.
10005 (init_remote_state): Set gdbarch.
10006 (remote_query_supported): Support gdbarch_qsupported.
10007
10008 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10009
10010 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10011 __FreeBSD_kernel_version.
10012
10013 2010-02-03 Tristan Gingold <gingold@adacore.com>
10014
10015 * symfile.h (struct sym_fns): Add sym_relocate field.
10016 (default_symfile_relocate): New prototype.
10017 (symfile_relocate_debug_section): First argument is now an objfile.
10018 * symfile.c (default_symfile_relocate): Rename from
10019 symfile_relocate_debug_section, first argument is now an objfile.
10020 (symfile_relocate_debug_section): New function.
10021 * coffread.c (coff_sym_fns): Set sym_relocate field.
10022 * somread.c (som_sym_fns): Ditto.
10023 * mipsread.c (ecoff_sym_fns): Ditto.
10024 * machoread.c (macho_sym_fns): Ditto.
10025 * elfread.c (elf_sym_fns): Ditto.
10026 * dwarf2read.c (dwarf2_read_section): Ditto.
10027 * xcoffread.c (xcoff_sym_fns): Ditto.
10028 * dbxread.c (aout_sym_fns): Ditto.
10029 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10030 (elfstab_build_psymtabs): Ditto.
10031
10032 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10033
10034 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10035
10036 2010-02-02 Tom Tromey <tromey@redhat.com>
10037
10038 * valops.c (value_cast_structs): Try downcasting using the RTTI
10039 type.
10040
10041 2010-02-02 Tom Tromey <tromey@redhat.com>
10042
10043 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10044 (gnuv2_baseclass_offset): Now static.
10045 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10046 * gnu-v2-abi.h: Remove.
10047
10048 2010-02-02 Tom Tromey <tromey@redhat.com>
10049
10050 * m2-typeprint.c (m2_record_fields): Don't use
10051 TYPE_DECLARED_TYPE.
10052 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10053 (struct main_type) <flag_declared_class>: New field.
10054 (struct cplus_struct_type) <declared_type>: Remove.
10055 <ntemplate_args>: Move earlier.
10056 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10057 (DECLARED_TYPE_TEMPLATE): Remove.
10058 (TYPE_DECLARED_TYPE): Remove.
10059 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10060 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10061 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10062 TYPE_DECLARED_TYPE.
10063
10064 2010-02-02 Tom Tromey <tromey@redhat.com>
10065
10066 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10067 * valops.c (search_struct_field): Compute nbases after calling
10068 CHECK_TYPEDEF.
10069 (check_field): Call CHECK_TYPEDEF.
10070 * cp-valprint.c (cp_print_value): Pass correct address to
10071 baseclass_offset. Fix check for virtual base past the end of the
10072 object. Don't offset address passed to cp_print_value_fields or
10073 apply_val_pretty_printer.
10074 (cp_print_value_fields): Fix call to val_print.
10075 (cp_print_value_fields_rtti): New function.
10076 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10077 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10078 val_print.
10079 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10080 offset to address.
10081 * language.h (struct language_defn) <la_val_print>: Document.
10082 * c-lang.h (cp_print_value_fields_rtti): Declare.
10083
10084 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10085
10086 PR libc/11214:
10087 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10088 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10089 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10090
10091 2010-02-01 Michael Matz <matz@suse.de>
10092 Daniel Jacobowitz <dan@codesourcery.com>
10093
10094 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10095 functions use a frame pointer.
10096
10097 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10098
10099 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10100 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10101 * config/djgpp/fnchange.lst: Add translations for
10102 symbol-without-target_section.exp and symbol-without-target_section.c.
10103
10104 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10105
10106 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10107 (remote_breakpoint_for_pc): Correct invalid_p check.
10108 * gdbarch.c: Regenerated.
10109
10110 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10111
10112 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10113 arm_pc_is_thumb.
10114 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10115 (extend_buffer_earlier): New function.
10116 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10117 (arm_adjust_breakpoint_address): New function.
10118 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10119
10120 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10121
10122 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10123 (arm_linux_thumb2_le_breakpoint): New constants.
10124 (arm_linux_init_abi): Set thumb2_breakpoint and
10125 thumb2_breakpoint_size.
10126 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10127 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10128 Implement support for single stepping through IT blocks if
10129 a 32-bit Thumb breakpoint instruction is available.
10130 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10131 is available, use it when needed.
10132 (arm_remote_breakpoint_from_pc): New function.
10133 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10134 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10135 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10136
10137 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10138
10139 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10140 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10141 * gdbarch.c, gdbarch.h: Regenerated.
10142 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10143 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10144 gdbarch_remote_breakpoint_from_pc.
10145
10146 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10147
10148 * infrun.c (prepare_to_proceed): Handle other signals which might
10149 match a breakpoint.
10150 (handle_inferior_event): Move the check for unusual breakpoint
10151 signals earlier.
10152
10153 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10154
10155 amd64 - function returning record with field straddling 2 registers.
10156 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10157 a record of length <= 16 in which a field straddles the two
10158 eightbytes.
10159
10160 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10161
10162 Implement return values on amd64-windows.
10163 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10164 (amd64_windows_return_value): New function.
10165 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10166 amd64_windows_return_value.
10167
10168 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10169
10170 amd64-windows: 32 bytes allocated on stack by caller for integer
10171 parameter registers.
10172 * i386-tdep.h (struct gdbarch_tdep): Add new field
10173 integer_param_regs_saved_in_caller_frame.
10174 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10175 tdep->integer_param_regs_saved_in_caller_frame to 1.
10176 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10177 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10178
10179 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10180
10181 amd64-windows: memory args passed by pointer during function calls.
10182 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10183 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10184 where tdep->memory_args_by_pointer is non-zero.
10185 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10186 tdep->memory_args_by_pointer to 1.
10187
10188 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10189
10190 amd64-windows: Integer parameters in function calls.
10191 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10192 amd64-tdep.c.
10193 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10194 call_dummy_integer_regs, and classify.
10195 * amd64-tdep.h (amd64_classify): Add declaration.
10196 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10197 (amd64_reg_class): Delete, moved to i386-tdep.h.
10198 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10199 Replace call to amd64_classify by call to tdep->classify.
10200 (amd64_push_arguments): Get the list of registers to use for
10201 passing integer parameters from the gdbarch tdep structure,
10202 rather than using a hardcoded one. Replace calls to amd64_classify
10203 by calls to tdep->classify.
10204 (amd64_push_dummy_call): Get the register number used for
10205 the "hidden" argument from tdep->call_dummy_integer_regs.
10206 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10207 and tdep->call_dummy_integer_regs. Set tdep->classify.
10208 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10209 (amd64_windows_dummy_call_integer_regs): New static global.
10210 (amd64_windows_classify): New function.
10211 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10212 tdep->call_dummy_integer_regs and tdep->classify.
10213
10214 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10215
10216 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10217 for the new regcache. All callers updated.
10218 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10219 (get_thread_arch_regcache): Do not set aspace here.
10220 * regcache.h (regcache_xmalloc): Update declaration.
10221
10222 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10223 regcache_xmalloc updated.
10224
10225 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10226
10227 Another -Wunused-function error in procfs.c (sparc-solaris)
10228 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10229 Only define if SYS_syssgi is defined.
10230 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10231 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10232 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10233 is itself defined.
10234
10235 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10236
10237 * windows-nat.c (windows_initialization_done): New variable.
10238 (get_windows_debug_event): Issue error when process dies before
10239 completely initializing.
10240 (do_initial_windows_stuff): Set flag to indicate when we are done with
10241 the initial steps of attaching to the child.
10242
10243 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10244
10245 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10246
10247 2010-01-27 Doug Evans <dje@google.com>
10248
10249 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10250
10251 * breakpoint.c (bpstat_stop_status): Delete useless code.
10252
10253 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10254
10255 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10256 objfile via SYMBOL_SYMTAB.
10257
10258 2010-01-26 Tom Tromey <tromey@redhat.com>
10259
10260 PR exp/7643:
10261 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10262 coerce_array on result.
10263
10264 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10265
10266 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10267 search_parent argument.
10268 (cp_add_using): Initialize 'searched' field.
10269 (reset_directive_searched): New function.
10270 * cp-support.h: Add 'searched' field to using_direct struct.
10271 (cp_lookup_symbol_imports): Ditto.
10272 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10273 Perform recursive search.
10274 Implement non parent search.
10275 * valops.c (value_maybe_namespace_elt): Updated.
10276
10277 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10278
10279 PR gdb/10929:
10280 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10281 scopes which contain using directives even if they contain no
10282 declarations.
10283 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10284 la_lookup_symbol_nonlocal.
10285 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10286 cp_lookup_symbol_namespace.
10287 (cp_lookup_symbol_namespace): Perform an import lookup at every
10288 block level.
10289 (cp_lookup_symbol_imports): New function.
10290 (cp_lookup_symbol_in_namespace): New function.
10291
10292 2010-01-25 Tom Tromey <tromey@redhat.com>
10293
10294 PR gdb/11049:
10295 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10296 result.
10297
10298 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10299
10300 * configure.ac: Only use host_os part when disabling TUI on osf.
10301 Use test to check variables, prefix strings with x.
10302 * configure: Regenerate.
10303
10304 * solib-osf.c (osf_current_sos): Initialize tail.
10305
10306 2010-01-25 gingold <gingold@adacore.com>
10307
10308 * windows-nat.c (windows_continue): Use %x to print thread id.
10309 (get_windows_debug_event): Ditto.
10310
10311 2010-01-22 Tom Tromey <tromey@redhat.com>
10312
10313 PR symtab/11199:
10314 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10315 type and arguments. Use smash_to_methodptr_type.
10316 (read_structure_type): Call quirk_gcc_member_function_pointer
10317 later.
10318 * gdbtypes.h (smash_to_methodptr_type): Declare.
10319 * gdbtypes.c (smash_to_methodptr_type): New function.
10320 (lookup_methodptr_type): Use it.
10321
10322 2010-01-21 Tom Tromey <tromey@redhat.com>
10323
10324 PR symtab/11198:
10325 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10326 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10327 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10328 (glibc_skip_solib_resolver): Use
10329 lookup_minimal_symbol_and_objfile.
10330
10331 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10332
10333 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10334 WIN32 targets.
10335
10336 2010-01-20 Tom Tromey <tromey@redhat.com>
10337
10338 PR backtrace/10770:
10339 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10340 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10341 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10342 dwarf_stack_values, not CORE_ADDRs.
10343 (execute_stack_op): Change DW_OP_div and comparison operators to
10344 use signed operands.
10345
10346 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10347
10348 Per-inferior args and tty and environment.
10349
10350 * infcmd.c (inferior_args): Rename to ...
10351 (inferior_args_scratch): ... this.
10352 (inferior_io_terminal): Rename to ...
10353 (inferior_io_terminal_scratch): ... this.
10354 (inferior_argc, inferior_argv): Remove.
10355 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10356 inside current_inferior().
10357 (set_inferior_tty_command, show_inferior_tty_command): New.
10358 (get_inferior_args, set_inferior_args): Store inside
10359 current_inferior().
10360 (notice_args_set): Likewise and rename to...
10361 (set_args_command): ... this.
10362 (set_inferior_args_vector): Likewise.
10363 (notice_args_read): Rename to...
10364 (show_args_command): ...new.
10365 (tty_command): Remove.
10366 (run_command_1): Don't free old args, as they are freed by
10367 set_inferior_arg now.
10368 (run_no_args_command): Likewise.
10369 (inferior_environ): Remove.
10370 (run_command_1): Use environment of the current inferior.
10371 (environment_info, set_environment_command)
10372 (unset_environment_command, path_info, path_command): Likewise.
10373 (_initialize_infcmd): Adjust for function and variable renames.
10374 Do not init inferior_environ.
10375 * inferior.h (set_inferior_arg): Adjust prototype.
10376 (struct inferior): New fields args, argc, argv, terminal, environment.
10377 (inferior_environ): Remove declaration.
10378 * inferior.c (free_inferior): Free new fields.
10379 (add_inferior_silent): Initialize 'environment' field.
10380 * main.c (captured_main): Set arguments only after the initial
10381 inferior has been created. Set set_inferior_io_terminal,
10382 not tty_command.
10383 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10384 inferior.
10385 (_initialize_mi_cmd_env): Adjust for disappearance of global
10386 inferior_environ.
10387 * solib.c (solib_find): Use environment of the current inferior.
10388
10389 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10390
10391 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10392 HAVE_PYTHON.
10393 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10394
10395 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10396
10397 Get rid of ada-lang.c:function_name_from_pc.
10398 * ada-lang.c: Add "stack.h" #include.
10399 (function_name_from_pc): Delete.
10400 (is_known_support_routine): Replace call to function_name_from_pc
10401 by call to find_frame_funname.
10402 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10403
10404 2010-01-19 Tom Tromey <tromey@redhat.com>
10405
10406 PR c++/11026:
10407 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10408 objfile obstack.
10409
10410 2010-01-19 Tom Tromey <tromey@redhat.com>
10411
10412 * top.c (stop_sig, float_handler, do_nothing): Remove.
10413
10414 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10415
10416 * breakpoint.c (watchpoint_check): Check the call
10417 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10418 Extend the comment.
10419 * config/djgpp/fnchange.lst: Add translations for
10420 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10421 watchpoint-cond-gone-stripped.c.
10422
10423 2010-01-19 Tom Tromey <tromey@redhat.com>
10424
10425 PR c++/8000:
10426 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10427 into parent scope, and enumerator into grandparent scope.
10428
10429 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10430
10431 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10432
10433 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10434
10435 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10436 i[34567]86-*-solaris2.1[0-9]*.
10437 * configure.tgt: Likewise.
10438
10439 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10440
10441 * NEWS: Document the source command enhancement allowing it
10442 to load Python scripts. Document the "set/show script-extension"
10443 commands.
10444
10445 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10446
10447 Add -Wunused-function to compile flags.
10448 * configure.ac: Add -Wunused-function to build_warnings.
10449 * configure: Regenerate.
10450
10451 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10452
10453 "delete" ada-lex.c:input function, not used.
10454 * ada-lex.l: #define YY_NO_INPUT.
10455
10456 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10457
10458 Delete free_named_symtabs and associated cleanup.
10459 * symfile.h (free_named_symtabs): Delete declaration.
10460 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10461 (cashier_psymtab): Comment function out.
10462 Delete declaration.
10463 (free_named_symtabs): Delete.
10464 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10465 * dbxread.c (end_psymtab): Likewise.
10466 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10467 * exec.c (exec_close_1): Ditto.
10468 * xcoffread.c (xcoff_end_psymtab): Likewise.
10469
10470 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10471
10472 * stack.c (print_block_frame_labels): Comment function out.
10473
10474 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10475
10476 Delete unused or undefined functions.
10477 * breakpoint.c (ep_parse_optional_filename): Delete.
10478 * dcache.c (dcache_write_line): Remove declaration.
10479 * infrun.c (build_infrun): Remove declaration.
10480 * tracepoint.c (tracepoint_save_command): Remove declaration.
10481 * linux-nat.c (init_lwp_list): Delete. No longer used.
10482 * event-loop.c (check_async_signal_handlers): Delete declaration.
10483 * infrun.c (init_execution_control_state): Delete.
10484 (proceed): Update comment to avoid mentioning
10485 init_execution_control_state.
10486 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10487 * ada-lang.c (ada_to_static_fixed_value): Delete.
10488 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10489 * cp-namespace.c (cp_copy_usings): Delete.
10490 * xml-syscall.c (xml_number_of_syscalls): Delete.
10491 * progspace.c (find_program_space_by_num): Delete.
10492 * inflow.c (handle_sigio): Delete declaration.
10493 * hppa-tdep.c (hppa_alignof): Delete.
10494 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10495 (mipsnbsd_core_osabi_sniffer): Delete.
10496
10497 2010-01-18 Tom Tromey <tromey@redhat.com>
10498
10499 PR c++/9680:
10500 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10501 (CONST_CAST): New tokens.
10502 (exp): Add new productions.
10503 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10504 reinterpret_cast.
10505 (is_cast_operator): New function.
10506 (yylex): Handle cast operators specially.
10507 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10508 UNOP_REINTERPRET_CAST>: New cases.
10509 * expprint.c (print_subexp_standard): Likewise.
10510 (op_name_standard): Likewise.
10511 (dump_subexp_body_standard): Likewise.
10512 * parse.c (operator_length_standard): Likewise.
10513 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10514 UNOP_REINTERPRET_CAST.
10515 * gdbtypes.c (class_types_same_p): New function.
10516 (is_ancestor): Use it.
10517 (is_public_ancestor): New function.
10518 (is_unique_ancestor_worker): Likewise.
10519 (is_unique_ancestor): Likewise.
10520 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10521 (is_unique_ancestor): Declare.
10522 * valops.c (value_reinterpret_cast): New function.
10523 (dynamic_cast_check_1): Likewise.
10524 (dynamic_cast_check_2): Likewise.
10525 (value_dynamic_cast): Likewise.
10526 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10527
10528 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10529
10530 Fix build failure when building without Python support.
10531 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10532 is not defined.
10533
10534 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10535
10536 Use XVS field type instead of doing a parallel lookup.
10537 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10538 if it is a reference type instead of doing a type lookup using
10539 the XVS field name.
10540
10541 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10542
10543 Trust PAD types instead of using PAD___XVS.
10544 * ada-lang.c (trust_pad_over_xvs): New static variable.
10545 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10546 parallel XVS type, follow the XVS type instead of the PAD type.
10547 (unwrap_value): Make sure that there is no parallel XVE type
10548 before returning the value as is.
10549 (set_ada_list, show_ada_list): New static variables.
10550 (set_ada_command, show_ada_command): New functions.
10551 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10552 Add new "set/show ada trust-PAD-over-XVS" setting.
10553
10554 2010-01-18 Tom Tromey <tromey@redhat.com>
10555 Thiago Jung Bauermann <bauerman@br.ibm.com>
10556
10557 Allow "source" to load python scripts.
10558 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10559 * python/python.c (source_python_script): New function.
10560 * python/python.h (source_python_script): Add declaration.
10561 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10562 (script_ext_off, script_ext_soft, script_ext_strict)
10563 (script_ext_enums, script_ext_mode): New static constants.
10564 (show_script_ext_mode, find_and_open_script): New functions.
10565 (source_script): Enhance to handle Python scripts.
10566 (init_cli_cmds): Add set/show script-extension commands.
10567
10568 2010-01-16 Stan Shebs <stan@codesourcery.com>
10569
10570 * tracepoint.h (struct trace_status): Use unsigned long long
10571 instead of size_t.
10572 * tracepoint.c (trace_status_command): Fix printf directive.
10573 (trace_save_command): Check fwrite returns, fix printf directive.
10574 (trace_filename): New global.
10575 (tfile_open): Set it, check read returns.
10576 (tfile_close): Free trace_filename.
10577 (tfile_get_traceframe_address): Check read returns.
10578 (tfile_trace_find): Ditto.
10579 (tfile_fetch_registers): Ditto.
10580 (tfile_xfer_partial): Ditto.
10581 (tfile_get_trace_state_variable_value): Ditto.
10582
10583 2010-01-15 Stan Shebs <stan@codesourcery.com>
10584
10585 Add trace file support.
10586 * tracepoint.h (enum trace_stop_reason): New enum.
10587 (struct trace_status): New struct.
10588 (parse_trace_status): Declare.
10589 (struct uploaded_tp): Move here from remote.c,
10590 add fields for actions.
10591 (struct uploaded_tsv): New struct.
10592 * tracepoint.c (tfile_ops): New target vector.
10593 (trace_fd): New global.
10594 (tfile_open): New function.
10595 (tfile_close): New function.
10596 (tfile_files_info): New function.
10597 (tfile_get_trace_status): New function.
10598 (tfile_get_traceframe_address): New function.
10599 (tfile_trace_find): New function.
10600 (tfile_fetch_registers): New function.
10601 (tfile_xfer_partial): New function.
10602 (tfile_get_trace_state_variable_value): New function.
10603 (init_tfile_ops): New function.
10604 (_initialize_tracepoint): Call it, add tfile target.
10605 (trace_status): New global.
10606 (current_trace_status): New function.
10607 (trace_running_p): Remove, change all users to get from
10608 current_trace_status()->running.
10609 (get_trace_status): Remove.
10610 (trace_status_command): Call target_get_trace_status directly,
10611 report more detail including tracing stop reasons.
10612 (trace_find_command): Always allow tfind on a file.
10613 (trace_find_pc_command): Ditto.
10614 (trace_find_tracepoint_command): Ditto.
10615 (trace_find_line_command): Ditto.
10616 (trace_find_range_command): Ditto.
10617 (trace_find_outside_command): Ditto.
10618 (trace_frames_offset, cur_offset): Declare as off_t.
10619 (trace_regblock_size): Rename from reg_size, update users.
10620 (parse_trace_status): New function.
10621 (tfile_interp_line): New function.
10622 (disconnect_or_stop_tracing): Ensure current trace
10623 status before asking what to do.
10624 (stop_reason_names): New global.
10625 (trace_save_command): New command.
10626 (get_uploaded_tp): Move here from remote.c.
10627 (find_matching_tracepoint): Ditto.
10628 (merge_uploaded_tracepoints): New function.
10629 (parse_trace_status): Use stop_reason_names.
10630 (_initialize_tracepoint): Define tsave command.
10631 * target.h (target_ops): New fields to_save_trace_data,
10632 to_upload_tracepoints, to_upload_trace_state_variables,
10633 to_get_raw_trace_data, change to_get_trace_status
10634 to take a pointer to a status struct.
10635 (target_save_trace_data): New macro.
10636 (target_upload_tracepoints): New macro.
10637 (target_upload_trace_state_variables): New macro.
10638 (target_get_raw_trace_data): New macro.
10639 * target.c (update_current_target): Add new methods, change
10640 signature of to_get_trace_status.
10641 * remote.c (hex2bin): Make globally visible.
10642 (bin2hex): Ditto.
10643 (remote_download_trace_state_variable): Download name also.
10644 (remote_get_trace_status): Update parameter, use
10645 parse_trace_status.
10646 (remote_save_trace_data): New function.
10647 (remote_upload_tracepoints): New function.
10648 (remote_upload_trace_state_variables): New function.
10649 (remote_get_raw_trace_data): New function.
10650 (remote_start_remote): Use them.
10651 (_initialize_remote_ops): Add operations.
10652 * ax-gdb.c: Include breakpoint.h.
10653 * breakpoint.c (create_tracepoint_from_upload): Use
10654 break_command_really, return tracepoint, warn about unimplemented
10655 parts.
10656 * NEWS: Mention trace file addition.
10657
10658 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10659
10660 Fix compilation warning on gcc-3.4.
10661 * exec.c (print_section_info): Move the `displacement' variable
10662 initialization to its declaration.
10663
10664 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10665
10666 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10667 comparison.
10668
10669 2010-01-15 Eric Botcazou <botcazou@adacore.com>
10670
10671 "info tasks" broken by typedefs in ATCB type definitions.
10672 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10673 ada_check_typedef before retrieving the length of the type for
10674 regular fields.
10675
10676 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10677
10678 Do not use name-based lookup for unconstrained packed arrays.
10679 * ada-lang.c (find_parallel_type_by_descriptive_type):
10680 Limit the fallback to name-based lookups to the case where
10681 the type is a constrained packed array.
10682
10683 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10684
10685 Enhance gdb-gdb.py to handle main_type.type_specific.
10686 * gdb-gdb.py: Print the type-specific part of struct main_type.
10687
10688 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10689
10690 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10691 * configure: Regenerate.
10692 * config.in: Regenerate.
10693 * utils.c: Include sys/resource.h.
10694 (dump_core, can_dump_core): New.
10695 (internal_vproblem): Update the comment. Check can_dump_core while
10696 setting dump_core_p. Replace two abort calls by dump_core calls.
10697
10698 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10699 Eli Zaretskii <eliz@gnu.org>
10700
10701 * NEWS: Document the PIE support.
10702
10703 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10704
10705 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10706 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10707
10708 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10709
10710 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10711 Replace exec_entry_point call by bfd_get_start_address.
10712
10713 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10714
10715 Support Valgrind attachments broken by the PIE support.
10716 * auxv.c: Include gdbcore.h.
10717 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10718 parameters ops, object and annex. Remove their assertions.
10719 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10720 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10721 (memory_xfer_auxv): ... here.
10722 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10723 memory_xfer_auxv.
10724 * procfs.c (procfs_xfer_partial): Likewise.
10725 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10726 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10727 (svr4_solib_create_inferior_hook): Conditionalize the
10728 svr4_relocate_main_executable call.
10729
10730 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10731
10732 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10733 target_section. Find SECT in current_target_sections, gdb_assert it.
10734 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10735 New variable abfd.
10736 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10737 of separate debug info file.
10738
10739 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10740
10741 Support PIEs with no symfile_objfile.
10742 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10743 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10744
10745 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10746
10747 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10748 code part to ...
10749 (svr4_static_exec_displacement): ... a new function.
10750 (svr4_exec_displacement): New function.
10751 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10752 new_offsets using alloca now. Remove variable old_chain and changed.
10753 Call objfile_relocate unconditionally now.
10754
10755 2010-01-14 Doug Evans <dje@google.com>
10756
10757 * gdbtypes.c (arch_flags_type): Fix comment.
10758 * gdbtypes.h (arch_composite_type): Fix comment.
10759
10760 2009-01-14 Tristan Gingold <gingold@adacore.com>
10761
10762 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10763 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10764 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10765 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10766 macho_add_oso_symfile.
10767 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10768
10769 2010-01-14 Joel Brobecker <brobecker@adacore.com>
10770
10771 Tru64: Dead threads are never deleted.
10772 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10773 (dec_thread_count_gdb_threads): Fix counter increment.
10774 (dec_thread_add_gdb_thread): Fix *listp increment.
10775 (resync_thread_list): Fix bug in deletion of dead threads that
10776 caused all threads to be deleted, instead of just the dead ones.
10777
10778 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10779
10780 PR python/10705
10781
10782 * python/python-internal.h: Add lazy_string_object_type
10783 definition.
10784 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10785 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10786 * python/py-value.c (valpy_lazy_string): New function.
10787 (convert_value_from_python): Add lazy string conversion.
10788 * python/py-prettyprint.c (pretty_print_one_value): Check if
10789 return is also a lazy string.
10790 (print_string_repr): Add lazy string printing branch.
10791 (print_children): Likewise.
10792 * python/py-lazy-string.c: New file. Implement lazy strings.
10793 * python/python.c (_initialize_python): Call
10794 gdbpy_initialize_lazy_string.
10795 * varobj.c (value_get_print_value): Add lazy string printing
10796 branch. Account for encoding.
10797 * c-lang.c (c_printstr): Account for new encoding argument. If
10798 encoding is NULL, find encoding suited for type, otherwise use
10799 user encoding.
10800 * language.h (language_defn): Add encoding argument.
10801 (LA_PRINT_STRING): Likewise.
10802 * language.c (unk_lang_printstr): Update to reflect new encoding
10803 argument to language_defn.
10804 * ada-lang.h (ada_printstr): Likewise.
10805 * c-lang.h (c_printstr): Likewise.
10806 * p-lang.h (pascal_printstr);
10807 * f-lang.c (f_printstr): Likewise.
10808 * m2-lang.c (m2_printstr): Likewise.
10809 * objc-lang.c (objc_printstr): Likewise.
10810 * p-lang.c (pascal_printstr): Likewise.
10811 * scm-lang.c (scm_printstr): Likewise.
10812 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10813 encoding argument.
10814 * ada-valprint.c (ada_printstr): Likewise.
10815 * f-valprint.c (f_val_print): Likewise
10816 * m2-valprint.c (m2_val_print): Likewise.
10817 * p-valprint.c (pascal_val_print): Likewise.
10818 * expprint.c (print_subexp_standard): Likewise.
10819 * valprint.c (val_print_string): Likewise.
10820 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10821 (SUBDIR_PYTHON_SRCS): Likewise.
10822 (py-lazy-string.o): New rule.
10823
10824 2010-01-13 Doug Evans <dje@google.com>
10825
10826 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10827 uninitialized" warning from gcc on local `tree'.
10828
10829 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10830
10831 Implement core awareness.
10832
10833 * bcache.c (compare_ints): Remove
10834 (print_percentage): Use compare_positive_ints.
10835 * defs.h (compare_positive_ints): Declare.
10836 * linux-nat.h (struct lin_lwp): New field core.
10837 (linux_nat_core_of_thread_1): Declare.
10838 * linux-nat.c (add_lwp): Init the 'core' field.
10839 (linux_nat_wait_1): Record the core.
10840 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10841 (linux_nat_add_target): Register the above.
10842 * linux-thread-db.c (update_thread_core): New.
10843 (thread_db_find_new_threads): Update core information for
10844 every thread.
10845 * remote.c (struct private_thread_info): New.
10846 (free_private_thread_info, demand_private_info): New.
10847 (PACKET_qXfer_threads, use_osdata_threads): New.
10848 (struct thread_item, threads_parsing_context
10849 (start_thread, end_thread, thread_attributes)
10850 (thread_children, threads_children, threads_elements): New.
10851 (remote_threads_info): Try qXfer:threads before anything
10852 else.
10853 (remote_protocol_packets): Register qXfer:threads.
10854 (remote_open_1): Init use_osdata_threads.
10855 (struct stop_reply): New field 'core'.
10856 (remote_parse_stop_reply): Parse core number.
10857 (process_stop_reply): Record core number.
10858 (remote_xfer_partial): Handle qXfer:threads.
10859 (remote_core_of_thread): New.
10860 (init_remote_ops): Register remote_core_of_thread.
10861 (_initialize_remote): Register qXfer:read.
10862 * target.c (target_core_of_thread): New
10863 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10864 (struct target_ops): New field to_core_of_threads.
10865 (target_core_of_thread): Declare.
10866 * gdbthread.h (struct thread_info): New field private_dtor.
10867 * thread.c (print_thread_info): Report the core.
10868 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10869 * utils.c (compare_positive_ints): New.
10870 * features/threads.dtd: New.
10871 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10872 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10873 (do_nothing, free_vector_of_osdata_items)
10874 (splay_tree_int_comparator, free_splay_tree): New.
10875 (print_one_inferior_data): Implemented printing of selected
10876 inferiors. Collect and print cores.
10877 (output_cores): New.
10878 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10879 thread groups together with --available.
10880
10881 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10882
10883 * configure: Regenerate (for _STRUCTURED_PROC).
10884
10885 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10886
10887 Delete dead function.
10888 * ada-lang.c (extract_string): Delete. No longer used.
10889
10890 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10891
10892 Fix -Wunused warning in dec-thread.c.
10893 * dec-thread.c (dec_thread_count_gdb_threads)
10894 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10895
10896 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10897
10898 * ada-valprint.c (ada_print_floating): Remove trailing space.
10899
10900 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10901
10902 Add support for DW_AT_GNAT_descriptive_type.
10903 * gdbtypes.h (enum type_specific_kind): New enum.
10904 (struct main_type) [type_specific_field]: New component.
10905 [type_specific]: Add new component "gnat_stuff".
10906 (struct gnat_aux_type): New type.
10907 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10908 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10909 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10910 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10911 (TYPE_SPECIFIC_FIELD): New macros.
10912 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10913 type does not hold any cplus-specific data.
10914 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10915 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10916 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10917 cplus-specific data.
10918 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10919 Set new component TYPE_SPECIFIC_FIELD (type).
10920 (gnat_aux_default): New constant.
10921 (allocate_gnat_aux_type): New function.
10922 (init_type): Add initialization the type-specific stuff for
10923 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10924 (print_gnat_stuff): New function.
10925 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10926 specific data. Adjust code that prints the contents of the
10927 type-specific union using the TYPE_SPECIFIC_FIELD value.
10928 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10929 the type cplus stuff for Ada types.
10930 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10931 Error out if these routines are called with an Ada type.
10932 (read_structure_type, read_array_type, read_subrange_type):
10933 Add call to set_descriptive_type.
10934 (set_die_type): Initialize the gnat-specific data if necessary.
10935 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10936 New functions.
10937 * ada-lang.c (decode_constrained_packed_array_type): Use
10938 decode_constrained_packed_array_type instead of doing a standard
10939 lookup to locate a parallel type.
10940 (find_parallel_type_by_descriptive_type): New function.
10941 (ada_find_parallel_type_with_name): New function.
10942 (ada_find_parallel_type): Reimplement using
10943 ada_find_parallel_type_with_name.
10944 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10945 to check if type has a cplus stuff.
10946 * linespec.c (total_number_of_methods): Likewise.
10947 * mdebugread.c (new_type): Likewise.
10948
10949 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10950
10951 * NEWS: Document the 0b binary number prefix parsing.
10952
10953 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10954
10955 * objfiles.c (objfile_relocate1): Change the return type to int.
10956 Describe the new return value. Return non-zero if data changed.
10957 (objfile_relocate): New variable changed. Set it. Call
10958 breakpoint_re_set depending on CHANGED.
10959
10960 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10961
10962 Implement binary numbers parsing.
10963 * c-exp.y (parse_number): New case 'b' and 'B'.
10964
10965 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10966 Tristan Gingold <gingold@adacore.com>
10967
10968 * solib.c (info_sharedlibrary_command): Replace
10969 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10970 objfile_has_symbols.
10971
10972 2010-01-10 Joel Brobecker <brobecker@adacore.com>
10973
10974 * NEWS: Document the improvements made to the mips-irix port.
10975
10976 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10977
10978 Fix the documentation of valprint.c:value_print.
10979 * valprint.c (value_print): Update the function description to
10980 mention that the syntax of the output follows the current_language,
10981 not necessarily C.
10982
10983 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10984
10985 Fix displacement of separate debug info files.
10986 * objfiles.c (objfile_relocate): Rename to ...
10987 (objfile_relocate1): ... here and make it static. Extend the comment.
10988 (objfile_relocate): New function.
10989 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10990 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10991 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10992 allocated using alloca.
10993 * symfile.c (copy_section_addr_info): Remove.
10994 (build_section_addr_info_from_objfile): Make it global. New variables
10995 addr_bit and mask, use them.
10996 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10997 (copy_section_addr_info): Remove.
10998
10999 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11000
11001 Signal unwinder for mips-irix N32.
11002 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11003 tramp-frame.h.
11004 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11005 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11006 (SIGCONTEXT_LO_OFF): New macros.
11007 (mips_irix_n32_tramp_frame_init): New function.
11008 (mips_irix_n32_tramp_frame): New static constant.
11009 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11010
11011 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11012
11013 Breakpoint in shared library does not work on mips-irix.
11014 * procfs.c: #include "observer.h".
11015 (procfs_inferior_created): New function, moving here the code
11016 which unsets the syssgi syscall-exit notifications.
11017 (procfs_create_inferior): Remove the code which unsets the syssgi
11018 syscall-exit notifications. It is too early to do this here.
11019 (_initialize_procfs): Attach the procfs_inferior_created observer.
11020
11021 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11022
11023 Wrong return convention for arrays (mips-irix).
11024 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11025 128 bits or smaller are returned the same way as structs
11026 and unions of the the same size.
11027
11028 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11029
11030 Cannot set the PC on mips-irix.
11031 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11032 register number, no the cooked one.
11033
11034 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11035
11036 Error while loading core file on mips-irix.
11037 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11038 if debugging from a core file.
11039
11040 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11041
11042 GDB hangs when attaching to process on mips-irix.
11043 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11044 attaching to a process.
11045
11046 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11047
11048 Use the correct breakpoint instruction on mips-irix.
11049 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11050 containing the correct breakpoint instruction to use on mips-irix.
11051 Use it when the osabi is GDB_OSABI_IRIX.
11052
11053 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11054
11055 -Wunused warning in procfs.c (mips-irix only).
11056 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11057 throughout instead of using praddset and prdelset respectively.
11058
11059 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11060
11061 GDB crash while stepping into function.
11062 * infrun.c (handle_inferior_event): Refetch the current frame
11063 after handling what.main_action, in case that pointer became
11064 dangling.
11065
11066 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11067
11068 Fix build failure of solaris-hosted cross debuggers.
11069 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11070
11071 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11072
11073 Fix build failure on sparc-solaris.
11074 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11075
11076 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11077
11078 Move some symfile code into subroutines.
11079 * symfile.h (relative_addr_info_to_section_offsets)
11080 (addr_info_make_relative): New prototypes.
11081 * symfile.c (default_symfile_offsets): Move a part to ...
11082 (relative_addr_info_to_section_offsets): ... this new function.
11083 (default_symfile_offsets): Call it.
11084 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11085 this part to ...
11086 (addr_info_make_relative): ... this new function.
11087
11088 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11089
11090 Add from_tty to solib_create_inferior_hook.
11091 * infcmd.c (post_create_inferior): Move solib_add after
11092 solib_create_inferior_hook. Pass from_tty to
11093 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11094 0 from_tty and comment why.
11095 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11096 * linux-nat.c (linux_child_follow_fork): Likewise.
11097 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11098 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11099 from_tty.
11100 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11101 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11102 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11103 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11104 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11105 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11106 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11107 Pass it to svr4_so_ops.solib_create_inferior_hook.
11108 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11109 from_tty.
11110 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11111 solib_add.
11112 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11113 enable_break.
11114 * solib-target.c (solib_target_solib_create_inferior_hook): New
11115 parameter from_tty.
11116 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11117 it to ops->solib_create_inferior_hook.
11118 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11119 Move solib_add after solib_create_inferior_hook, call it now with
11120 from_tty as 0. New comment there.
11121 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11122 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11123 Likewise.
11124
11125 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11126
11127 Fix multiexec race.
11128 * infrun.c (handle_inferior_event): Use get_thread_regcache
11129 with events ptid, not get_current_regcache.
11130
11131 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11132
11133 GDB crash with empty executable name (MinGW).
11134 * source.c (openp): Add assert that parameter string is not NULL.
11135 if parameter string is an empty string, then return with a failure
11136 immediately.
11137
11138 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11139
11140 Get rid of support for VAX Floats.
11141 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11142 (ada_vax_float_print_function): Delete.
11143 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11144 (ada_vax_float_print_function): Delete.
11145 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11146 (ada_print_type): Remove support for VAX floats.
11147 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11148
11149 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11150
11151 * stabsread.c (read_args): Handle zero arguments.
11152
11153 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11154
11155 Cannot find in-tree libiconv.a after reconfigure.
11156 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11157 that we can use, then cache the path to this archive.
11158 * configure: Regenerate.
11159
11160 2010-01-07 Stan Shebs <stan@codesourcery.com>
11161
11162 Make tracepoint operations go through target vector.
11163 * target.h (enum trace_find_type): New enum.
11164 (struct target_ops): New fields to_trace_init,
11165 to_download_tracepoint, to_download_trace_state_variable,
11166 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11167 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11168 to_set_disconnected_tracing.
11169 (target_trace_init): New macro.
11170 (target_download_tracepoint): New macro.
11171 (target_download_trace_state_variable): New macro.
11172 (target_trace_start): New macro.
11173 (target_trace_set_readonly_regions): New macro.
11174 (target_get_trace_status): New macro.
11175 (target_trace_stop): New macro.
11176 (target_trace_find): New macro.
11177 (target_get_trace_state_variable_value): New macro.
11178 (target_set_disconnected_tracing): New macro.
11179 * target.c (update_current_target): Inherit and set defaults for
11180 tracepoint operations.
11181 * tracepoint.c (default_collect): Make globally visible.
11182 (target_is_remote): Remove, along with all calls.
11183 (tvariables_info): Call target_get_trace_state_variable_value.
11184 (remote_set_transparent_ranges): Remove.
11185 (trace_start_command): Call target_trace_init,
11186 target_download_tracepoint, etc.
11187 (download_tracepoint): Remove.
11188 (trace_stop_command): Simplify.
11189 (stop_tracing): Call target_trace_stop.
11190 (get_trace_status): Call target_get_trace_status.
11191 (trace_status_command): Add case for targets that cannot trace.
11192 (finish_tfind_command): Change to take numerical arguments, call
11193 target_trace_find.
11194 (trace_find_command): Update call to finish_tfind_command.
11195 (trace_find_pc_command): Ditto.
11196 (trace_find_tracepoint_command): Ditto.
11197 (trace_find_line_command): Ditto.
11198 (trace_find_range_command): Ditto.
11199 (trace_find_outside_command): Ditto.
11200 (set_disconnected_tracing_value): Call
11201 target_set_disconnected_tracing.
11202 * remote.c: Add protocol encoding bits from tracepoint.c.
11203 (trace_error): Move from tracepoint.c.
11204 (remote_get_noisy_reply): Ditto.
11205 (free_actions_list_cleanup_wrapper): Ditto.
11206 (free_actions_list): Ditto.
11207 (remote_trace_init): New function.
11208 (remote_download_tracepoint): New function.
11209 (remote_download_trace_state_variable): New function.
11210 (remote_trace_set_readonly_regions): New function.
11211 (remote_trace_start): New function.
11212 (remote_get_trace_status): New function.
11213 (remote_trace_stop): New function.
11214 (remote_trace_find): New function.
11215 (remote_download_trace_state_variable): New function.
11216 (remote_set_disconnected_tracing): New function.
11217 (init_remote_ops): Add tracepoint operations.
11218
11219 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11220
11221 2010-01-07 Tristan Gingold <gingold@adacore.com>
11222
11223 * symfile.c (build_section_addr_info_from_objfile): New function.
11224 (symbol_file_add_separate): Don't use offsets from objfile but
11225 built an addr info.
11226
11227 2010-01-06 Stan Shebs <stan@codesourcery.com>
11228
11229 Support disconnected tracing.
11230 * infcmd.c (detach_command): Ask whether to stop tracing.
11231 * cli/cli-cmds.c (quit_command): Ditto.
11232 * breakpoint.h (struct breakpoint): New field number_on_target.
11233 * breakpoint.c (create_tracepoint_from_upload): New function.
11234 (get_tracepoint_by_number_on_target): New function.
11235 * remote.c (struct remote): New field disconnected_tracing.
11236 (remote_disconnected_tracing_feature): New function.
11237 (remote_protocol_features): Add DisconnectedTracing.
11238 (struct uploaded_tp): New struct.
11239 (uploaded_tps): New global.
11240 (get_uploaded_tp): New function.
11241 (find_matching_tracepoint): New function.
11242 (remote_get_tracing_state): New function.
11243 (remote_start_remote): Call it.
11244 * tracepoint.c (disconnected_tracing): New global.
11245 (trace_start_command): Initialize number_on_target.
11246 (stop_tracing): New function, split out from...
11247 (trace_stop_command): Call stop_tracing.
11248 (get_trace_status): New function, split out from...
11249 (trace_status_command): Call get_trace_status, add info on
11250 disconnection behavior.
11251 (disconnect_or_stop_tracing): New function.
11252 (finish_tfind_command): Translate from number on target.
11253 (trace_find_tracepoint_command): Translate to number on target.
11254 (send_disconnected_tracing_value): New function.
11255 (set_disconnected_tracing): New function.
11256 (_initialize_tracepoint): Add disconnected-tracing variable.
11257 * NEWS: Mention disconnected tracing.
11258
11259 2010-01-06 Tristan Gingold <gingold@adacore.com>
11260
11261 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11262 parameter to main_objfile. Iterate on all separate debug objfiles.
11263 * symfile.h (symbol_file_add_separate)
11264 (find_separate_debug_file_by_debuglink): Remove parameter names.
11265 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11266 (reread_symbols): Use free_objfile_separate_debug.
11267 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11268 Adjust comment.
11269 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11270 (free_objfile_separate_debug): New prototypes.
11271 * objfiles.c (objfile_separate_debug_iterate): New function.
11272 (add_separate_debug_objfile, free_objfile_separate_debug): New
11273 functions.
11274 (free_objfile): Use free_objfile_separate_debug. Adjust for
11275 multiple separate debug objfile.
11276 (objfile_has_symbols): Adjust comment. Iterate on all separate
11277 debug objfiles.
11278 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11279 debug objfile.
11280 (lookup_minimal_symbol_text): Ditto.
11281 (lookup_minimal_symbol_by_pc_name): Ditto.
11282 (lookup_minimal_symbol_solib_trampoline): Ditto.
11283 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11284 debug objfiles.
11285
11286 2010-01-05 Stan Shebs <stan@codesourcery.com>
11287
11288 Add fast tracepoints.
11289 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11290 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11291 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11292 * breakpoint.c (tracepoint_type): New function.
11293 (ALL_TRACEPOINTS): Use it.
11294 (should_be_inserted): Ditto.
11295 (bpstat_check_location): Ditto.
11296 (print_one_breakpoint_location): Ditto.
11297 (user_settable_breakpoint): Ditto.
11298 (set_breakpoint_location_function): Ditto.
11299 (disable_breakpoints_in_shlibs): Ditto.
11300 (delete_trace_command): Ditto.
11301 (print_it_typical): Add bp_fast_tracepoint case.
11302 (bpstat_what): Ditto.
11303 (print_one_breakpoint_location): Ditto.
11304 (allocate_bp_location): Ditto.
11305 (mention): Ditto.
11306 (breakpoint_re_set_one): Ditto.
11307 (disable_command): Ditto.
11308 (enable_command): Ditto.
11309 (check_fast_tracepoint_sals): New function.
11310 (break_command_really): Call it.
11311 (ftrace_command): New function.
11312 (_initialize_breakpoint): Add ftrace command.
11313 * gdbarch.sh (fast_tracepoint_valid_at): New.
11314 * gdbarch.h, gdbarch.c: Regenerate.
11315 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11316 (i386_gdbarch_init): Use it.
11317 * remote.c (struct remote_state): New field fast_tracepoints.
11318 (PACKET_FastTracepoints): New packet config type.
11319 (remote_fast_tracepoint_feature): New function.
11320 (remote_protocol_features): Add FastTracepoints.
11321 (remote_supports_fast_tracepoints): New function.
11322 (_initialize_remote): Add FastTracepoints.
11323 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11324 * NEWS: Mention fast tracepoints.
11325
11326 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11327
11328 * gdb-gdb.py: New file.
11329
11330 2010-01-05 Michael Snyder <msnyder@vmware.com>
11331
11332 * infrun.c (handle_inferior_event): Fix typo in comment.
11333
11334 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11335
11336 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11337
11338 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11339
11340 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11341 and s390x-linux64.
11342 (s390-linux32-expedite): Define.
11343 (s390-linux64-expedite): Define.
11344 (s390x-linux64-expedite): Define.
11345 * features/s390-acr.xml: New file.
11346 * features/s390-fpr.xml: New file.
11347 * features/s390-core32.xml: New file.
11348 * features/s390-core64.xml: New file.
11349 * features/s390x-core64.xml: New file.
11350 * features/s390-linux32.xml: New file.
11351 * features/s390-linux64.xml: New file.
11352 * features/s390x-linux64.xml: New file.
11353 * features/s390-linux32.c: New generated file.
11354 * features/s390-linux64.c: New generated file.
11355 * features/s390x-linux64.c: New generated file.
11356
11357 * regformats/s390-linux32.dat: New generated file.
11358 * regformats/s390-linux64.dat: New generated file.
11359 * regformats/s390x-linux64.dat: New generated file.
11360 * regformats/reg-s390.dat: Remove.
11361 * regformats/reg-s390x.dat: Remove.
11362
11363 * s390-nat.c: Include "auxv.h" and <elf.h>.
11364 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11365 (s390_target_wordsize): New function.
11366 (s390_auxv_parse): Likewise.
11367 (s390_get_hwcap): Likewise.
11368 (s390_read_description): Likewise.
11369 (_initialize_s390_nat): Install s390_auxv_parse and
11370 s390_read_description.
11371
11372 * s390-tdep.c: Include "features/s390-linux32.c",
11373 "features/s390-linux64.c", and "features/s390x-linux64.c".
11374 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11375 (s390_register_call_saved): New function.
11376 (s390_register_name): Remove.
11377 (s390_register_type): Remove.
11378 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11379 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11380 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11381 (s390_pseudo_register_name): New function.
11382 (s390_pseudo_register_type): New function.
11383 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11384 Handle full GPR pesudos and varying pseudo register numbers.
11385 (s390_pseudo_register_write): Likewise
11386 (s390x_pseudo_register_read): Remove.
11387 (s390x_pseudo_register_write): Likewise.
11388 (s390_register_group): Remove.
11389 (s390_pseudo_register_group): New function.
11390 (s390_regmap_gregset): Add GPR upper halves.
11391 (s390x_regmap_gregset): Likewise.
11392 (s390_regmap_fpregset): Likewise.
11393 (s390_regmap_upper): New global variable.
11394 (s390_upper_regset): New global variable.
11395 (s390_upper_regset_sections): New global variable.
11396 (s390_regset_from_core_section): Handle GPR upper halves.
11397 (s390_core_read_description): New function.
11398 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11399 register information. Handle varying pseudo register numbers.
11400 (s390_backchain_frame_unwind_cache): Likewise.
11401 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11402 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11403 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11404 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11405 Handle varying pseudo register numbers.
11406 (s390_unwind_pc): Handle varying pseudo register numbers.
11407 (s390_dwarf2_prev_register): New function.
11408 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11409 register information. Handle varying pseudo register numbers.
11410 Install s390_dwarf2_prev_register to unwind full GPRs.
11411 (s390_gdbarch_init): Handle target descriptions. Assign varying
11412 pseudo register numbers. Install s390_adjust_frame_regnum.
11413 (_initialize_s390_tdep): Initialize target descriptions.
11414
11415 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11416 (S390_NUM_REGS): Redefine to include upper half registers.
11417 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11418 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11419 (tdesc_s390_linux32): Add declaration.
11420 (tdesc_s390_linux64): Likewise.
11421 (tdesc_s390x_linux64): Likewise.
11422
11423 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11424
11425 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11426 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11427 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11428 (ppc_linux_vmx_regset_sections): Likewise.
11429 (ppc_linux_fp_regset_sections): Likewise.
11430
11431 * corelow.c (get_core_register_section): Constify arguments.
11432 (get_core_registers): Use gdbarch_core_regset_sections instead
11433 of hard-coded platform-specific register section names.
11434
11435 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11436
11437 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11438 a register, assume the least-significant part is used.
11439 (write_pieced_value): Likewise.
11440
11441 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11442
11443 * printcmd.c: Include "arch-utils.h".
11444 (do_one_display): Re-parse expression if current architecture changed.
11445
11446 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11447 Joel Brobecker <brobecker@adacore.com>
11448
11449 * gdbtypes.c (check_typedef): New comment on type length.
11450 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11451 comment on type length.
11452 (value_primitive_field): Keep the original TYPE value, new comment.
11453
11454 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11455
11456 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11457 p_start. Change != comparisons to > and < comparisons.
11458
11459 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11460
11461 * cli/cli-script.c (process_next_line): Check P2 overrun.
11462
11463 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11464
11465 Update the copyright hearder to add year 2010 for most GDB files.
11466
11467 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11468
11469 Fix build failure in inf-ptrace.c.
11470 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11471
11472 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11473
11474 * top.c (print_gdb_version): Update copyright year.
11475
11476 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11477
11478 Fix break *FUN'address thread NUM.
11479 * ada-lex.l (task): Expand rule to also match the thread keyword.
11480
11481 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11482
11483 Fix break *FUN'address task NUM.
11484 * ada-lex.l (task): New rule.
11485 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11486 been built before using it.
11487
11488 For older changes see ChangeLog-2009.
11489 \f
11490 Local Variables:
11491 mode: change-log
11492 left-margin: 8
11493 fill-column: 74
11494 version-control: never
11495 coding: utf-8
11496 End:
This page took 0.336907 seconds and 4 git commands to generate.