1 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
3 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
4 (get_other_inferior): New.
6 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
8 * python/py-progspace.c (py_free_pspace): Obtain arch another
9 way to avoid dereferencing a null pointer.
11 2010-12-17 Michael Snyder <msnyder@vmware.com>
13 * utils.c (do_my_cleanups): Comment fix-up.
15 2010-12-17 Kevin Buettner <kevinb@redhat.com>
17 * mips-tdep.c (make_mips16_addr): New function.
18 (mips_elf_make_msymbol_special): Don't set the low bit in the
20 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
21 indicating mips16 address, if present.
22 (mips_write_pc): Set bit indicating mips16 address when in a mips16
24 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
25 but for each function pointer argument to inferior function call.
27 2010-12-17 Tom Tromey <tromey@redhat.com>
29 * psympriv.h (struct partial_symtab) <readin>: Move field
32 2010-12-16 Kevin Buettner <kevinb@redhat.com>
34 * mips-tdep.c (mips_convert_register_float_case_p)
35 (mips_convert_register_gpreg_case_p): New functions.
36 (mips_convert_register_p): Invoke new functions above.
37 (mips_register_to_value): Add case for fetching value shorter
38 than 64 bits from a 64-bit register.
39 (mips_value_to_register): Add case for storing value shorter
40 than 64 bits into a 64-bit register.
42 2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
44 * python/py-value.c (value_object_type) <tp_flags>: Add
47 2010-12-16 Mike Frysinger <vapier@gentoo.org>
49 * NEWS: Mention new sim --map-info flag.
51 2010-12-15 Doug Evans <dje@google.com>
53 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
54 "save gdb-index" command.
56 2010-12-15 Tom Tromey <tromey@redhat.com>
58 * infrun.c (save_infcall_control_state): Handle the
59 exception-resume breakpoint.
60 (restore_infcall_control_state): Likewise.
61 (discard_infcall_control_state): Likewise.
63 2010-12-15 Kevin Buettner <kevinb@redhat.com>
65 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
66 cooked values that are being transferred to 64-bit raw registers.
67 (mips_pseudo_register_read): Revise to preserve symmetry with
68 mips_pseudo_register_write().
70 2010-12-15 Greg Watson <g.watson@computer.org>
72 * f-exp.y (yylex): Check entire token against keywords.
74 2010-12-15 Doug Evans <dje@google.com>
76 Rename "maint set python auto-load" to "set auto-load-scripts".
78 * python/py-auto-load.c (auto_load_scripts): Renamed from
80 (load_auto_scripts_for_objfile): Update.
81 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
82 "set auto-load-scripts".
84 2010-12-14 Kevin Buettner <kevinb@redhat.com>
86 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
87 than unsigned, values in registers.
89 2010-12-14 Ken Werner <ken.werner@de.ibm.com>
91 * valops.c (value_one): Use get_array_bounds to compute the number
92 of array elements instead of dividing the length of the array by the
93 length of the element types.
94 * valarith.c (value_complement, value_neg): Likewise.
96 2010-12-14 Joel Brobecker <brobecker@adacore.com>
98 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
99 and __fp_scr respectively throughout.
100 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
101 Python using GCC on IRIX.
102 * configure: Regenerate.
104 2010-12-13 Kevin Buettner <kevinb@redhat.com>
106 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
107 when attaching, on the names in bkpt_names: _start, __start, and
110 2010-12-12 Stan Shebs <stan@codesourcery.com>
112 * value.c (value_of_internalvar): Add case for trace state
115 2010-12-12 Doug Evans <dje@google.com>
117 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
118 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
119 section. Delete members lines full_names. Rename read_lines to
121 (quick_file_names): New struct.
122 (hash_file_name_entry, eq_file_name_entry): New functions.
123 (delete_file_name_entry, create_quick_file_names_table): New functions.
124 (dwarf2_read_index): Initialize quick_file_names_table.
125 (dw2_get_file_names): Renamed from dw2_require_line_header.
126 Return pointer to quick_file_names entry. All callers updated.
127 (dw2_get_real_path): Renamed from dw2_require_full_path.
128 Replace per_cu arg with pointer to quick_file_names entry.
130 (dw2_free_cached_file_names): New function.
131 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
132 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
133 the OBJF_READNOW case.
134 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
136 2010-12-12 Mark Kettenis <kettenis@gnu.org>
138 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
139 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
141 2010-12-12 Mark Kettenis <kettenis@gnu.org>
143 * sparc-tdep.c: Fix typo in comment.
145 2010-12-10 Doug Evans <dje@google.com>
147 * dwarf2read.c: Whitespace cleanup, plus comment additions.
150 2010-12-10 Tom Tromey <tromey@redhat.com>
152 * NEWS: Document exception-handling change.
154 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
156 * mi/mi-parse.c (mi_parse): Wrong error message.
158 2010-12-09 Doug Evans <dje@google.com>
160 * symfile.h (quick_symbol_functions): Clarify usage of
161 map_symbol_filenames.
163 2010-12-09 Tom Tromey <tromey@redhat.com>
165 * mi/mi-parse.h (mi_parse): Update.
166 * mi/mi-parse.c (mi_parse_cleanup): New function.
167 (mi_parse): Add 'token' argument. Throw exception on error.
168 * mi/mi-main.c (mi_print_exception): New function.
169 (mi_execute_command): Use mi_print_exception. Catch exceptions
172 2010-12-09 Tom Tromey <tromey@redhat.com>
175 * thread.c (clear_thread_inferior_resources): Call
176 delete_longjmp_breakpoint.
177 * infrun.c (handle_inferior_event): Handle exception breakpoints.
178 (handle_inferior_event): Likewise.
179 (insert_exception_resume_breakpoint): New function.
180 (check_exception_resume): Likewise.
181 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
182 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
183 (step_1): Set thread's initiating frame.
184 (until_next_continuation): New function.
185 (until_next_command): Support exception breakpoints.
186 (finish_command_continuation): Delete longjmp breakpoint.
187 (finish_forward): Support exception breakpoints.
188 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
189 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
190 bp_exception_master>: New constants.
191 (struct bpstat_what) <is_longjmp>: New field.
192 (set_longjmp_breakpoint): Update.
193 * breakpoint.c (create_exception_master_breakpoint): New function.
194 (update_breakpoints_after_exec): Handle bp_exception_master. Call
195 create_exception_master_breakpoint.
196 (print_it_typical): Handle bp_exception_master, bp_exception.
197 (bpstat_stop_status): Handle bp_exception_master.
198 (bpstat_what): Handle bp_exception_master, bp_exception,
200 (bptype_string): Likewise.
201 (print_one_breakpoint_location): Likewise.
202 (allocate_bp_location): Likewise.
203 (set_longjmp_breakpoint): Handle exception breakpoints. Change
205 (delete_longjmp_breakpoint): Handle exception breakpoints.
207 (struct until_break_command_continuation_args) <thread_num>: New
209 (until_break_command_continuation): Call
210 delete_longjmp_breakpoint.
211 (until_break_command): Support exception breakpoints.
212 (delete_command): Likewise.
213 (breakpoint_re_set_one): Likewise.
214 (breakpoint_re_set): Likewise.
216 2010-12-08 Doug Evans <dje@google.com>
218 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
220 * gdbtypes.c (check_typedef): Tweak comment.
223 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
224 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
225 (struct addrmap_index_data): New struct.
226 (add_address_entry): Remove arg `pst', new args `start', `end'.
227 (add_address_entry_worker, write_address_map): New functions.
228 (write_psymtabs_to_index): Address table generation moved to
229 write_address_map. Build a table mapping psymtab to CU index
232 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
235 * symfile.h (quick_symbol_functions): Clarify usage of
236 expand_symtabs_with_filename.
237 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
238 comp units, ignore type units.
240 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
242 2010-12-07 Doug Evans <dje@google.com>
244 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
248 * NEWS: Mention -data-directory.
249 * main.c (captured_main): Recognize -data-directory.
251 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
253 * mi/mi-parse.c (mi_parse): Missing else.
255 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
257 * configure.tgt: Accept microblaze*-*-linux* for linux target
258 and microblaze*-*-* for as target.
260 2010-12-02 Keith Seitz <keiths@redhat.com>
262 * linespec.c (find_method): Move name canonicalization outside
264 Be paranoid and use a cleanup.
266 2010-12-01 Doug Evans <dje@google.com>
268 * dwarf2read.c (save_gdb_index_command): Add comment.
270 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
272 * valops.c (value_assign): Returned value is never lazy. If a
273 C++ class type is returned, fix incorrect enclosing type / embedded
274 offset. If internal variable is returned, allocate new internalvar
275 value using value_of_internalvar.
277 * NEWS: Document changes in behavior of "print x = 0" and similar
280 2010-11-29 Doug Evans <dje@google.com>
282 * python/lib/gdb/printing.py (register_pretty_printer): Change
283 printer-name:subprinter-name to printer-name;subprinter-name.
284 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
286 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
288 2010-11-29 Tom Tromey <tromey@redhat.com>
290 * opencl-lang.c (lval_func_check_synthetic_pointer): New
292 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
294 (value_bits_synthetic_pointer): Declare.
295 * value.c (value_bits_synthetic_pointer): New function.
296 * valprint.c (valprint_check_validity): Handle synthetic
298 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
299 * valarith.c (value_ptradd): Use set_value_component_location.
300 * p-valprint.c (pascal_object_print_value_fields): Handle
302 * jv-valprint.c (java_print_value_fields): Handle synthetic
304 * dwarf2read.c (dwarf_stack_op_name): Add
305 DW_OP_GNU_implicit_pointer.
306 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
307 arguments. Handle location lists.
308 (fill_in_loclist_baton): New function.
309 (dwarf2_symbol_mark_computed): Use it.
310 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
311 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
313 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
314 find_location_expression. No longer static. Update all callers.
315 (dwarf_expr_frame_pc): New function.
316 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
318 (struct piece_closure) <per_cu>: New field.
319 (allocate_piece_closure): Add per_cu argument.
320 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
321 (check_pieced_value_bits): Remove validity argument, add check_for
322 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
323 (check_pieced_value_validity, check_pieced_value_invalid):
325 (check_pieced_synthetic_pointer): New function.
326 (get_frame_address_in_block_wrapper): New function.
327 (indirect_pieced_value): New function.
328 (pieced_value_funcs): Update.
329 (invalid_synthetic_pointer): New function.
330 (dwarf2_evaluate_loc_desc_full): Rename from
331 dwarf2_evaluate_loc_desc. Add byte_offset argument.
332 (dwarf2_evaluate_loc_desc): Rewrite.
333 (dwarf2_loc_desc_needs_frame): Set new field on context.
334 (get_ax_pc): New function.
335 (disassemble_dwarf_expression): Handle
336 DW_OP_GNU_implicit_pointer.
337 * dwarf2expr.h (enum dwarf_value_location)
338 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
339 (struct dwarf_expr_context) <get_frame_pc>: New field.
340 (struct dwarf_expr_piece) <v.ptr>: New field.
341 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
342 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
343 * dwarf2-frame.c (no_get_frame_pc): New function.
344 (execute_stack_op): Set new field on context.
345 * cp-valprint.c (cp_print_value_fields): Handle synthetic
348 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
352 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
354 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
356 Fix step_resume_breakpoint unsaved during an infcall.
357 * gdbthread.h (struct thread_control_state): Move here field
358 step_resume_breakpoint ...
359 (struct thread_info): ... from here.
360 * infrun.c (save_infcall_control_state): Reset
361 control.step_resume_breakpoint to NULL.
362 (restore_infcall_control_state, discard_infcall_control_state): Delete
363 control.step_resume_breakpoint.
364 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
367 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
369 Rename and move inferior_thread_state and inferior_status.
370 * gdbthread.h (struct thread_control_state): New struct, move fields
371 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
372 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
373 stop_step and stop_bpstat here from struct thread_info.
374 (struct thread_suspend_state): New struct, move field stop_signal here
375 from struct thread_info.
376 (struct thread_info): Move the fields above from this struct.
377 * inferior.h: Move the inferior_thread_state and inferior_status
378 declarations comment to their definitions at infrun.c.
379 (struct inferior_control_state): New struct, move field stop_soon from
380 struct inferior here.
381 (struct inferior_suspend_state): New empty struct.
382 (struct inferior): New fields control and suspend. Move out field
384 * infrun.c (struct inferior_thread_state): Rename to ...
385 (infcall_suspend_state): ... here. Replace field stop_signal by
386 fields thread_suspend and inferior_suspend.
387 (save_inferior_thread_state): Rename to ...
388 (save_infcall_suspend_state): ... here. New variable inf. Update the
390 (restore_inferior_thread_state): Rename to ...
391 (restore_infcall_suspend_state): ... here. New variable inf. Update
392 the code for new fields.
393 (do_restore_inferior_thread_state_cleanup): Rename to ...
394 (do_restore_infcall_suspend_state_cleanup): ... here.
395 (make_cleanup_restore_inferior_thread_state): Rename to ...
396 (make_cleanup_restore_infcall_suspend_state): ... here.
397 (discard_inferior_thread_state): Rename to ...
398 (discard_infcall_suspend_state): ... here.
399 (get_inferior_thread_state_regcache): Rename to ...
400 (get_infcall_suspend_state_regcache): ... here.
401 (struct inferior_status): Rename to ...
402 (struct infcall_control_state): ... here. Replace fields
403 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
404 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
405 stop_step, stop_bpstat and stop_soon by fields thread_control and
407 (save_inferior_status): Rename to ...
408 (save_infcall_control_state): ... here. Update the code for new
410 (restore_inferior_status): Rename to ...
411 (restore_infcall_control_state): ... here. Update the code for new
413 (do_restore_inferior_status_cleanup): Rename to ...
414 (do_restore_infcall_control_state_cleanup): ... here.
415 (make_cleanup_restore_inferior_status): Rename to ...
416 (make_cleanup_restore_infcall_control_state): ... here.
417 (discard_inferior_status): Rename to ...
418 (discard_infcall_control_state): ... here.
419 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
420 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
421 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
422 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
423 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
424 references to the moved fields and renamed functions.
426 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
428 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
430 (save_inferior_thread_state): Reset tp->stop_signal.
432 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
434 * infcall.c (call_function_by_hand): Remove variable
435 caller_state_cleanup.
437 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
441 * breakpoint.c (is_marker_spec): Check for NULL.
443 2010-11-25 Pedro Alves <pedro@codesourcery.com>
445 * breakpoint.h: No longer include python.h or python-internal.h.
446 (struct breakpoint_object): Forward declare.
447 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
448 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
449 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
451 (gdbpy_breakpoint_created): Remove casts around py_bp_object
454 2010-11-24 Joel Brobecker <brobecker@adacore.com>
456 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
457 only if HAVE_ELF is defined.
459 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
462 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
463 (save_inferior_status) <stepping_over_breakpoint>
464 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
466 (struct inferior_status) <step_resume_break_address>: Remove.
468 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
471 * infrun.c (struct inferior_status, save_inferior_status)
472 (restore_inferior_status): Group and reorder the fields, comment their
475 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
479 (struct dict_vector) <iter_match_first, iter_match_next>
480 (iter_match_first_hashed, iter_match_next_hashed)
481 (iter_match_first_linear, iter_match_next_linear)
482 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
483 (iter_match_next_hashed, iter_match_first_linear)
484 (iter_match_next_linear): Use symbol_compare_ftype.
485 * dictionary.h: Include symfile.h.
486 (dict_iter_match_first, dict_iter_match_next): Use
487 symbol_compare_ftype.
488 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
489 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
490 (map_matching_symbols_psymtab): Likewise.
491 * symfile.h (symbol_compare_ftype): New typedef.
492 (struct quick_symbol_functions) <map_matching_symbols): Use
493 symbol_compare_ftype.
495 2010-11-23 Tom Tromey <tromey@redhat.com>
497 * configure: Rebuild.
498 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
500 2010-11-19 Tom Tromey <tromey@redhat.com>
502 * Makefile.in (SUBDIRS): Add doc.
503 * configure: Rebuild.
504 * configure.ac: Don't configure in doc. Create doc/Makefile.
506 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
510 * python/py-inferior.c (find_thread_object): Check if PIDGET
513 010-11-22 Joel Brobecker <brobecker@adacore.com>
515 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
517 2010-11-22 Joel Brobecker <brobecker@adacore.com>
519 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
520 Return the original type if the main type portions match rather
521 than when the type themselves match.
523 2010-11-22 Joel Brobecker <brobecker@adacore.com>
525 * ada-lang.c (ada_template_to_fixed_record_type_1):
526 For dynamic fields, check the field size against the maximum
529 2010-11-22 Joel Brobecker <brobecker@adacore.com>
531 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
533 (mips_irix_n32_stack_tramp_frame): New static global.
534 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
537 2010-11-22 Jerome Guitton <guitton@adacore.com>
539 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
542 2010-11-22 Joel Brobecker <brobecker@adacore.com>
544 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
545 if type1 is a typedef.
547 2010-11-22 Joel Brobecker <brobecker@adacore.com>
549 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
550 "_finalizer" to the list.
552 2010-11-22 Joel Brobecker <brobecker@adacore.com>
554 * symfile.c: Remove all "#if 0"/"#endif" blocks.
556 2010-11-22 Joel Brobecker <brobecker@adacore.com>
558 * symfile.c: Add missing second space after period in various comments.
560 2010-11-22 Joel Brobecker <brobecker@adacore.com>
562 * ada-typeprint.c (print_array_type): Fix formatting in comment.
563 (print_selected_record_field_types): Fix formatting in function
566 2010-11-22 Joel Brobecker <brobecker@adacore.com>
568 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
569 in name of "show ravenscar" prefix command name.
571 2010-11-22 Joel Brobecker <brobecker@adacore.com>
573 * ravenscar-thread.c (show_ravenscar_task_switching_command):
574 Add missing '\n' in output.
576 2010-11-22 Joel Brobecker <brobecker@adacore.com>
578 * ravenscar-thread.c (running_thread_name): Change value.
579 (read_thread_id): Remove advance declaration.
580 (get_running_thread_msymbol): New function.
581 (has_ravenscar_runtime): Use get_running_thread_msymbol to
582 compute msym_running_thread.
583 (get_running_thread_id): Renames read_thread_id. Slight modifications
584 to not take any argument anymore, using get_running_thread_msymbol
585 to determine which symbol to use instead.
586 (ravenscar_running_thread): Use get_running_thread_id instead of
589 2010-11-22 Joel Brobecker <brobecker@adacore.com>
591 * ravenscar-sparc-thread.c (supply_register_at_address):
592 Fix passing of buf in call to regcache_raw_supply.
594 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
596 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
598 2010-11-22 Tom Tromey <tromey@redhat.com>
600 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
602 2010-11-19 Keith Seitz <keiths@redhat.com>
604 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
605 Remove extraneous '/' after $(DESTDIR).
606 (PYTHON_INSTALL_DIR): Likewise.
608 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
610 Fix stale memory references.
611 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
614 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
615 Tom Tromey <tromey@redhat.com>
617 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
618 (.PHONY): Remove for .y outputs.
620 2010-11-19 Will Drewry <wad@google.com>
621 Tavis Ormandy <taviso@google.com>
622 Jan Kratochvil <jan.kratochvil@redhat.com>
624 * dwarf2read.c (decode_locdesc): Enforce location description stack
627 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
629 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
630 instruction is found.
632 2010-11-17 Tom Tromey <tromey@redhat.com>
634 * value.c (value_entirely_optimized_out): Check the
635 'check_any_valid' field.
637 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
639 * ada-lang.c (modify_general_field): Remove.
640 (make_array_descriptor): Replace all modify_general_field calls by
642 * value.c (modify_field): Update comment. New variable bytesize.
643 Normalize BITPOS. Initialize BYTESIZE, use it.
645 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
647 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
648 elements after xfree.
650 2010-11-16 Tom Tromey <tromey@redhat.com>
652 * gdb-add-index.sh: Really remove.
654 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
657 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
658 (init_one_comp_unit): ... this one.
659 (prepare_one_comp_unit): New prototype.
660 (dw2_require_line_header, process_psymtab_comp_unit): Use
662 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
663 (load_partial_comp_unit): Remove variable attr. Use
664 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
665 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
666 prepare_one_comp_unit.
667 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
668 Use prepare_one_comp_unit.
669 (alloc_one_comp_unit): Rename to ...
670 (init_one_comp_unit): ... here and remove there calloc, new parameter
672 (prepare_one_comp_unit): New function.
674 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
676 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
677 possible used of uninitialized variable.
679 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
681 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
682 (rs6000_gdbarch_init): Call it.
684 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
686 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
687 instructions if debugging an E500 binary.
689 2010-11-12 Tom Tromey <tromey@redhat.com>
691 * varobj.c (value_get_print_value): Rearrange. Pass stream to
692 apply_varobj_pretty_printer.
693 * c-lang.c: Include exceptions.h.
694 (c_get_string): Throw MEMORY_ERROR when appropriate.
695 * python/py-prettyprint.c (enum string_repr_result): New.
696 (print_stack_unless_memory_error): New function.
697 (print_string_repr): Change return type. Use
698 print_stack_unless_memory_error.
699 (print_children): Use print_stack_unless_memory_error.
700 (apply_val_pretty_printer): Update. Don't print children if
701 string representation threw an exception.
702 (apply_varobj_pretty_printer): Add 'stream' argument. Use
703 print_stack_unless_memory_error.
704 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
706 (_initialize_python): Initialize them.
707 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
708 gdbpy_convert_exception.
709 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
710 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
711 (gdbpy_convert_exception): Declare.
712 (apply_varobj_pretty_printer): Update.
713 * python/py-utils.c (gdbpy_convert_exception): New function.
715 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
717 * mi/mi-main.c (mi_cmd_target_detach): Accept new
718 thread-group id format.
720 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
722 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
724 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
726 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
728 (BPPY_SET_REQUIRE_VALID): Ditto.
729 (bpnum_is_valid): Delete function.
730 (bppy_get_visibility): New function.
731 (bppy_new): Parse for, and validate internal keyword. Pass
732 internal keyword to breakpoint or watchpoint functions.
733 (build_bp_list): New function.
734 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
735 iterate_over_breakpoints.
736 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
738 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
739 to internal breakpoint chain.
741 * breakpoint.c (set_breakpoint_number): New function.
742 (breakpoint_1): Check if breakpoint number is more than zero.
743 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
744 (create_breakpoint_sal): Take a new parameter called internal.
745 Call set_breakpoint_number with internal parameter. Do not
746 mention internal breakpoints. All callers updated.
747 (create_breakpoint): Ditto.
748 (create_breakpoints_sal): Ditto.
749 (watch_command_1): Ditto.
750 (watch_command_wrapper): Take a new parameter called internal.
752 (rwatch_command_wrapper): Ditto.
753 (awatch_command_wrapper): Ditto.
754 (save_breakpoints): Update breakpoint save condition check.
755 (iterate_over_breakpoints): New function.
756 * breakpoint.h: Add conditional python includes. Add py_bp_object
757 and comment to struct breakpoint. Update all callers.
758 * defs.h: Add PyObject definition for GDB builds without Python.
760 2010-11-10 Doug Evans <dje@google.com>
762 * python/lib/gdb/command/pretty_printers.py
763 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
765 * value.c (set_value_enclosing_type): Renamed from
766 value_change_enclosing_type. All callers updated.
767 * value.h (set_value_enclosing_type): Update.
768 * valops.c (value_full_object): Always return a copy if we need to
769 make changes to the input value.
771 2010-11-09 Pedro Alves <pedro@codesourcery.com>
773 * breakpoint.c (watch_command_1): Get a pointer of the lazy
774 version of the expression's value, even if reading the value from
775 memory fails. When creating a -location watchpoint, get the
776 value's address from the lazy value pointer.
778 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
780 * infrun.c (restore_inferior_thread_state): Use
781 discard_inferior_thread_state to free the data.
782 (discard_inferior_thread_state): xfree also siginfo_data.
784 2010-11-05 Doug Evans <dje@google.com>
786 Make gdb.parameter("directories") work.
787 New command "set directories".
788 * NEWS: Document them.
789 * source.c (set_directories_command): New function.
790 (show_directories_1): Renamed from show_directories.
792 (show_directories_command): New function.
793 (_initialize_source): Install "directories" as a set/show
794 variable instead of just a show command.
796 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
798 * NEWS: Mention OpenCL C language support.
799 * Makefile.in (SFILES): Add opencl-lang.c.
800 (COMMON_OBS): Add opencl-lang.o.
801 * opencl-lang.c: New File
802 * defs.h (enum language): Add language_opencl.
803 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
804 IBM XL C OpenCL compiler.
805 * c-lang.h: Include "parser-defs.h".
806 (evaluate_subexp_c): Declare.
807 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
808 (c_op_print_tab): Add declaration.
809 * eval.c (binop_promote): Handle language_opencl.
810 * c-exp.y: Lookup the primitive types instead of referring to the
813 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
815 Fix configure --enable-plugins --without-python.
816 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
817 * configure: Regenerate.
819 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
821 * solib.c (solib_read_symbols): Call exception_fprintf even without
822 FROM_TTY. Print also so->so_name.
824 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
826 * gdbtypes.h (struct rank): Created subrank.
827 * gdbtypes.c: Initialized subrank for all
829 (distance_to_ancestor): New function.
830 (is_ancestor): Use distance_to_ancestor.
831 (is_public_ancestor): Ditto.
832 (sum_ranks): Handle subrank.
833 (compare_ranks): Ditto.
834 (rank_one_type): Subrank base conversions.
836 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
838 * gdbtypes.h: Create struct rank.
839 Convert all 'BADNESS' macros to const struct rank declarations.
840 (sum_ranks): New function.
841 (compare_ranks): New function.
842 * valops.c (find_oload_champ): Updated.
843 (classify_oload_match): Use compare_ranks.
845 (compare_parameters): Use compare_ranks.
846 * gdbtypes.c: Initialize 'BADNESS' constants.
847 (sum_ranks): New function.
848 (compare_ranks): New function.
849 (compare_badness): Use compare_ranks.
850 (rank_function): Use global constants instead of literals.
851 (rank_one_type): Ditto.
855 2010-11-04 Doug Evans <dje@google.com>
857 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
858 (find_pretty_printer): Fix comments.
860 2010-11-04 Hui Zhu <teawater@gmail.com>
862 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
864 2010-11-03 Joel Brobecker <brobecker@adacore.com>
866 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
867 and `len' declaration and computation inside block where they
870 2010-11-03 Joel Brobecker <brobecker@adacore.com>
872 * valprint.c (val_print_array_elements): Put back handling of
875 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
877 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
878 DIE and set the length of the type.
879 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
880 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
881 return 0 if the corresponding bounds of the type are undefined.
882 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
883 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
884 (val_print_array_elements): Use get_array_bounds to compute the number
885 of array elements instead of dividing the length of the array by the
886 length of the element types.
887 * valarith.c (vector_binop): Likewise.
888 * valops.c (value_cast): Likewise.
889 * c-valprint.c (c_val_print): Likewise.
890 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
892 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
894 * valarith.c (value_pos, value_neg, value_complement): Handle
896 * valops.c (value_one): Likewise.
898 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
900 * value.h (value_non_lval): Declare.
901 * value.c (value_non_lval): New function.
902 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
903 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
906 2010-11-02 Doug Evans <dje@google.com>
908 New python module gdb.printing, and new commands info pretty-printer,
909 enable pretty-printer, disable pretty-printer.
910 * NEWS: Mention them.
911 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
912 gdb/command/__init__.py, gdb/command/pretty_printers.py.
913 * python/lib/gdb/__init__.py: Install pretty-printer commands.
914 * python/lib/gdb/printing.py: New file.
915 * python/lib/gdb/command/__init__.py: New file.
916 * python/lib/gdb/command/pretty_printers.py: New file.
918 2010-11-02 Tom Tromey <tromey@redhat.com>
920 * NEWS: Mention Guile removal.
921 * defs.h (enum language) <language_scm>: Remove.
922 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
924 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
925 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
926 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
929 2010-11-02 Doug Evans <dje@google.com>
931 * top.c: #include "python/python.h".
932 (gdb_init): Add a comment regarding initialize_all_files.
933 Call finish_python_initialization at the end.
934 * python/python.h (finish_python_initialization): Declare.
935 * python/python.c (finish_python_initialization): New function.
936 (_initialize_python): Move python-implemented initialization there
938 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
940 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
943 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
944 Pedro Alves <pedro@codesourcery.com>
945 * gdbthread.h (currently_stepping): New declaration.
946 * infrun.c (currently_stepping): Remove the forward declaration.
947 (currently_stepping): Make it global.
948 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
949 variables tp and step, initialized them. Pass STEP to to_resume.
950 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
951 * remote.c (currently_stepping_callback): New.
952 (remote_vcont_resume)
953 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
954 New variable tp. Call currently_stepping_callback and step such
957 2010-11-01 Hui Zhu <teawater@gmail.com>
959 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
961 2010-10-28 Hui Zhu <teawater@gmail.com>
963 * tracepoint.c (trace_save): Change utp->actions to
966 2010-10-26 Joel Brobecker <brobecker@adacore.com>
968 * (_FILE_OFFSET_BITS): Fix typo in comment.
970 2010-10-26 Joel Brobecker <brobecker@adacore.com>
972 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
973 (PyEval_InitThreads): Remove duplicate. Define as nothing.
974 (PyEval_ReleaseLock): Define as nothing.
976 2010-10-26 Joel Brobecker <brobecker@adacore.com>
978 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
979 by call to FILENAME_CMP.
981 2010-10-26 Joel Brobecker <brobecker@adacore.com>
983 * dictionary.c (dict_hash): Move assignment out of if condition.
985 2010-10-22 Jie Zhang <jie@codesourcery.com>
987 * Makefile.in (install): Remove dependency of install-only and
988 recursively invoke make for install-only.
989 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
990 (install): Pass FLAGS_TO_PASS when recursively make install-only.
992 2010-10-20 Hui Zhu <teawater@gmail.com>
994 * tracepoint.c (tfile_get_traceframe_address): Call
995 extract_signed_integer.
996 (tfile_trace_find): Call extract_signed_integer and
997 extract_unsigned_integer. Change data_size to unsigned int.
998 (tfile_fetch_registers): Call extract_unsigned_integer.
999 (tfile_xfer_partial): Ditto.
1000 (tfile_get_trace_state_variable_value): Call
1001 extract_signed_integer and extract_unsigned_integer.
1003 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1005 * remote.c (remote_get_threadlist): If we got empty
1006 response, bail out immediately, and don't emit any
1009 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1011 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1012 for "mov pc, REG" as well.
1013 (thumb_instruction_changes_pc): Likewise.
1015 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1018 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1019 * eval.c (evaluate_subexp_standard): Check for overload of
1021 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1022 (value_x_unop): Ditto.
1023 * valops.c: Include "exceptions.h".
1024 (find_overload_match): Throw NOT_FOUND_ERROR.
1025 (value_struct_elt): Ditto.
1027 2010-10-19 Tom Tromey <tromey@redhat.com>
1029 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1031 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1033 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1034 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1036 Make all other conversions illegal.
1038 2010-10-18 Doug Evans <dje@google.com>
1040 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1041 assumptions of when this case happens. Print "<unnamed typedef>".
1043 2010-10-18 Tom Tromey <tromey@redhat.com>
1045 * valprint.c (val_print_string): Pass 'encoding' to
1048 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1050 Fix the `stopped language detection' testcase for gcc-4.5.
1051 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1052 * symfile.c (set_initial_language): Move variable filename to a more
1053 inner block. Prefer LANGUAGE_OF_MAIN.
1054 * symtab.c (language_of_main): New variable.
1055 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1056 * symtab.h (language_of_main): New declaration.
1058 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1059 Pedro Alves <pedro@codesourcery.com>
1061 * gdbthread.h (currently_stepping): New declaration.
1062 * infrun.c (currently_stepping): Remove the forward declaration.
1063 (currently_stepping): Make it global.
1064 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1065 variables tp and step, initialized them. Pass STEP to to_resume.
1066 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1067 * remote.c (currently_stepping_callback): New.
1068 (remote_vcont_resume)
1069 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1070 New variable tp. Call currently_stepping_callback and step such
1073 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1075 * infrun.c (follow_exec): Replace symbol_file_add_main by
1076 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1078 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1080 * objfiles.c (free_all_objfiles): Likewise.
1081 * remote-m32r-sdi.c (m32r_load): Likewise.
1082 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1083 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1084 clear_symtab_users with ADD_FLAGS.
1085 (reread_symbols): Use parameter 0 for clear_symtab_users.
1086 (clear_symtab_users): New parameter add_flags. Do not call
1087 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1088 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1089 * symtab.h (clear_symtab_users): New parameter add_flags.
1091 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1093 Fix GCC false warning.
1094 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1096 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1098 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1099 display of type of method arguments.
1101 2010-10-15 Tom Tromey <tromey@redhat.com>
1104 * varobj.c (value_get_print_value): Use val_print_string to print
1106 * python/py-prettyprint.c (print_string_repr): Use
1107 val_print_string to print lazy strings. Fix cleanup logic.
1108 (print_children): Likewise.
1109 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1110 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1111 Change return type to 'void', add 'addr' argument.
1112 * value.h (val_print_string): Update.
1113 * valprint.c (val_print_string): Add 'encoding' argument.
1114 * printcmd.c (print_formatted): Update.
1115 * p-valprint.c (pascal_val_print): Update.
1116 * m2-valprint.c (print_unpacked_pointer): Update.
1117 (m2_print_array_contents): Likewise.
1118 * jv-valprint.c (java_value_print): Update.
1119 * f-valprint.c (f_val_print): Update.
1120 * c-valprint.c (c_val_print): Update.
1121 * auxv.c (fprint_target_auxv): Update.
1123 2010-10-15 Doug Evans <dje@google.com>
1124 Jan Kratochvil <jan.kratochvil@redhat.com>
1127 * gdbtypes.c (check_typedef): Clean up function comment.
1128 Keep track of instance flags as we strip typedefs and create a new
1129 type to preserve them if necessary.
1130 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1132 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1134 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1136 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1138 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1139 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1141 (types_equal): ...here. And changed it as follows:
1142 Outside of typedefs type must be of the same TYPE_CODE.
1143 When compairing two pointers or references they are equal if their
1145 Correct pointer conversions.
1147 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1149 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1150 having fields without names.
1152 2010-10-13 Tom Tromey <tromey@redhat.com>
1154 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1156 2010-10-13 Doug Evans <dje@google.com>
1158 New python module gdb.types.
1159 * NEWS: Document it.
1160 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1161 * python/lib/gdb/types.py: New file.
1163 * c-typeprint.c: Whitespace cleanup.
1164 (cp_type_print_method_args): Remove unnecessary forward decl.
1165 (cp_type_print_derivation_info): Ditto.
1166 (c_type_print_varspec_prefix): Mark as static at definition.
1167 (c_type_print_modifier): Fix arg descriptions.
1169 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1171 * python/py-breakpoint.c (bppy_set_condition): New comment.
1172 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1173 failed PyUnicode_Decode.
1174 (cmdpy_completer): Skip element for failed
1175 python_string_to_host_string.
1176 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1177 * python/py-frame.c (frapy_read_var): Extend the function comment.
1178 * python/py-function.c (fnpy_init): Return -1 on failed
1179 python_string_to_host_string.
1180 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1181 the function comment.
1182 (infpy_search_memory): Extend the function comment. Remove the
1183 PyErr_SetString call on already set error state.
1184 * python/py-param.c (set_parameter_value): Extend the function
1185 comment. Return -1 on failed python_string_to_host_string, twice.
1186 (set_attr): Extend the function comment.
1187 (compute_enum_values): Extend the function comment. New variable
1188 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1189 failed python_string_to_host_string.
1190 (get_doc_string): Call gdbpy_print_stack on failed
1191 python_string_to_host_string.
1192 (parmpy_init): Extend the function comment.
1193 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1194 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1195 failed python_string_to_host_string.
1196 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1197 (valpy_binop, valpy_richcompare): Extend the function comment.
1199 (struct python_env) <error_type, error_value, error_traceback>: New
1201 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1202 (ensure_python_env): Call PyErr_Fetch.
1203 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1204 failed convert_value_from_python.
1205 (value_get_print_value): Call gdbpy_print_stack on failed
1206 python_string_to_target_python_string.
1208 2010-10-12 Tom Tromey <tromey@redhat.com>
1210 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1212 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1214 * gdbtypes.c (do_is_ancestor): New function.
1215 (is_ancestor): Use do_is_ancestor.
1216 (is_public_ancestor): Use do_is_ancestor.
1218 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1220 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1222 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1224 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1226 2010-10-11 Doug Evans <dje@google.com>
1228 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1229 the address space id too.
1231 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1233 Fix attaching to re-prelinked executables on ppc64.
1234 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1235 initialize it, try to adjust FILESZ field by it.
1237 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1239 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1240 messages if info_verbose.
1242 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1244 * valops.c (value_cast): Handle vector types.
1245 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1247 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1249 * arm-tdep.c (thumb_expand_immediate): New function.
1250 (thumb_instruction_changes_pc): Likewise.
1251 (thumb2_instruction_changes_pc): Likewise.
1252 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1253 prologue parsing. Improved support for optimized code.
1254 (thumb_scan_prologue): Do not reply on line-number information,
1255 use same heuristics as arm_scan_prologue insead.
1256 (skip_prologue_function): Accept functions
1257 "__tls_get_addr" and "__aeabi_read_tp".
1259 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1260 Daniel Jacobowitz <dan@codesourcery.com>
1262 * arm-tdep.c (thumb_in_function_epilogue_p)
1263 (arm_in_function_epilogue_p): New.
1264 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1265 gdbarch_in_function_epilogue_p callback.
1267 2010-10-07 Doug Evans <dje@google.com>
1269 * cc-with-index.sh (output_file): Default to a.out.
1271 * dwarf2read.c (mapped_index): Rename member index_table to
1272 symbol_table and index_table_slots to symbol_table_slots.
1274 (create_symbol_hash_table): Renamed from create_index_table.
1275 All callers updated.
1276 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1277 (write_hash_table): Rename local index_table to symbol_hash_table.
1279 * addrmap.h (addrmap_foreach_fn): New typedef.
1280 (addrmap_foreach): Declare.
1281 * addrmap.c (struct addrmap_funcs): New member foreach.
1282 (addrmap_foreach): New function.
1283 (addrmap_fixed_foreach): New function.
1284 (addrmap_fixed_funcs): Update.
1285 (struct mutable_foreach_data): New struct.
1286 (addrmap_mutable_foreach_worker): New function.
1287 (addrmap_mutable_foreach): New function.
1288 (addrmap_mutable_funcs): Update.
1290 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1292 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1295 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1297 * ada-lang.c (full_match): Declare.
1298 (ada_match_name): Rename to match_name (we should avoid prefixing static
1299 symbols with "ada_").
1300 (match_name): New name for ada_match_name.
1301 (struct ada_psym_data): Remove and replace with...
1302 (struct match_data): User data for map_matching_symbols.
1303 (ada_add_psyms): Remove.
1304 (aux_add_nonlocal_symbols): New function, used as callback for
1305 map_matching_symbols.
1306 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1308 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1309 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1310 Rework to use map_matching_symbols instead of map_ada_symtabs.
1311 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1312 * psymtab.c: Include dependency on dictionary.h.
1313 (match_partial_symbol): New function.
1314 (ada_lookup_partial_symbol): Remove.
1315 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1316 (map_matching_symbols_psymtab): New function.
1317 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1318 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1320 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1322 * ada-lang.c (ada_match_name): Use new API for wild_match.
1323 (wild_match): Change API to be consistent with that of strcmp_iw;
1324 return 0 for a match, and switch operand order.
1325 (full_match): New function.
1326 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1327 matching to allow use of hashing.
1328 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1329 iter_name_next ot iter_match_first, iter_match_next.
1330 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1331 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1332 (iter_name_first_linear): Replace with iter_match_first_linear.
1333 (iter_name_next_linear): Replace with iter_match_next_linear.
1334 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1335 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1336 (dict_iter_match_first): New function.
1337 (dict_iter_match_next): New function.
1338 (dict_hash): New function.
1339 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1340 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1342 2010-10-06 Doug Evans <dje@google.com>
1344 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1346 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1348 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1350 2010-10-06 Doug Evans <dje@google.com>
1352 * Makefile.in (REQUIRED_SUBDIRS): New var.
1353 (subdir_do): Verify required subdir Makefiles exist.
1355 Create subdir data-directory.
1356 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1357 data-directory/Makefile.in.
1358 (SUBDIRS): Add data-directory.
1359 (all): Remove xml-syscall-copy dependency.
1360 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1362 (xml-syscall-install): Moved to data-directory/Makefile.in as
1364 (install-only): Remove xml-syscall-install dependency.
1365 (all-data-directory): New rule.
1366 (data-directory/Makefile): New rule.
1367 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1368 * configure: Regenerate.
1369 * data-directory/Makefile.in: New file.
1370 * python/lib/gdb/__init__.py: New file.
1372 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1374 Fix ARI warnings in advance_wild_match.
1375 * ada-lang.c (advance_wild_match): Delete local variable t2.
1376 Adjust code accordingly. Minor reformatting.
1378 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1380 * gdbtypes.h (struct main_type): Remove flag_nottext.
1381 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1382 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1383 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1384 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1385 of TYPE_FLAG_NOTTEXT.
1386 (init_type): Remove the initialization of the flag_nottext field.
1387 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1389 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1391 2010-10-04 Doug Evans <dje@google.com>
1393 * cc-with-index.sh: New file.
1395 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1397 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1398 (create_cus_from_index, create_addrmap_from_index): Ditto.
1399 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1400 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1401 (dw2_do_expand_symtabs_matching): Ditto.
1402 (eq_strtab_entry, create_strtab, add_string): Ditto.
1403 (hash_strtab_entry): Ditto.
1404 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1405 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1406 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1407 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1408 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1409 (write_psymtabs_to_index): Ditto.
1411 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1413 * ada-lang.c: #include "value.h".
1414 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1415 arguments. Implement using value_allocate_space_in_inferior
1416 instead of allocating memory from the stack.
1417 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1418 calls to ensure_lval.
1419 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1420 calls to make_array_descriptor and ensure_lval.
1421 * ada-lang.h (ada_convert_actual): Update declaration.
1422 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1424 2010-10-04 Doug Evans <dje@google.com>
1426 * python/python.c (_initialize_python): Define new function
1427 GdbSetPythonDirectory in python. Use it to update sys.path and
1430 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1432 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1433 incorporating and generalizing print_record_field_types.
1434 (print_record_field_types): Change return value and update comment.
1435 Re-implement using print_selected_record_field_types.
1436 (print_choices): Print "=>" here.
1437 Handle case of unencoded variant branch.
1438 (print_variant_clauses): Reformat comment.
1439 Special-case unencoded variant branch.
1441 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1443 * ada-lang.c (wild_match): Reimplement.
1444 Change API to eliminate unused length argument, reverse arguments and
1445 make 0 the 'true' return value.
1446 (advance_wild_match): New auxiliary function for wild_match to improve
1448 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1449 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1451 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1453 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1455 2010-10-01 Doug Evans <dje@google.com>
1457 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1458 for `save gdb-index' command.
1460 2010-10-01 Tom Tromey <tromey@redhat.com>
1462 * symfile.h (allocate_symtab): Update.
1463 * symfile.c (allocate_symtab): Make 'filename' const.
1464 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1465 (add_psymbol_to_list): Likewise.
1466 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1468 (add_psymbol_to_list): Update.
1469 * mdebugread.c (new_symtab): Make 'name' const.
1470 (psymtab_to_symtab_1): Make 'filename' const.
1471 * elfread.c (elfstab_offset_sections): Update.
1472 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1473 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1474 (psymtab_include_file_name): Update.
1475 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1476 * buildsym.h (start_subfile): Update.
1477 * buildsym.c (start_subfile): Make arguments const.
1479 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1481 * fork-child.c (breakup_args): Fix crash if shell forking is
1482 disabled at compile time.
1484 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1486 * ada-lang.c (desc_bounds): Add handling of the case where
1487 the P_BOUNDS field is a pointer to a stub.
1488 (desc_data_target_type): Same for P_ARRAY field.
1489 (ada_check_typedef): Strip the typedef layers from the type
1490 found by ada_find_any_type.
1492 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1494 * sparc-tdep.c (sparc32_frame_align): New function.
1495 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1496 * sparc64-tdep.c (sparc64_frame_align): New function.
1497 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1499 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1501 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1503 2010-09-30 Tom Tromey <tromey@redhat.com>
1505 * symfile.h (struct sym_fns) <next>: Remove.
1506 (add_symtab_fns): Update.
1507 * symfile.c (sym_fns_ptr): New typedef.
1508 (symtab_fns): Now a VEC.
1509 (add_symtab_fns): Update. Change argument type.
1510 (find_sym_fns): Update. Change return type.
1511 (get_symfile_segment_data): Update.
1512 * objfiles.h (struct objfile) <sf>: Now const.
1513 * somread.c (som_sym_fns): Now const. Update.
1514 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1515 * mipsread.c (ecoff_sym_fns): Now const. Update.
1516 * machoread.c (macho_sym_fns): Now const. Update.
1517 * elfread.c (elf_sym_fns): Now const. Update.
1518 (elf_sym_fns_gdb_index): Likewise.
1519 * dbxread.c (aout_sym_fns): Now const. Update.
1520 * coffread.c (coff_sym_fns): Now const. Update.
1522 2010-09-30 Tom Tromey <tromey@redhat.com>
1524 * value.c (value_primitive_field): Take 'offset' into account for
1527 2010-09-30 Tom Tromey <tromey@redhat.com>
1529 * completer.c (count_struct_fields): Handle anonymous structs and
1531 (add_struct_fields): Likewise.
1533 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1535 Fix printing parameters of inlined functions.
1536 * ada-lang.c (is_known_support_routine)
1537 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1538 for find_frame_funname.
1539 * python/py-frame.c (frapy_name): Likewise.
1540 * stack.c (find_frame_funname): New parameter funcp. Update the
1541 function comment. Fill it in.
1542 (print_frame): New variable func. Initialize it by
1543 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1544 FUNC as the parameter of print_args_stub.
1545 * stack.h (find_frame_funname): New parameter funcp. Remove the
1546 function declaration comment.
1548 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1551 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1552 tp. Iterate INFERIOR_LIST and call target_has_execution.
1554 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1556 Fix GDB crash on inferior calls with self-referencing classes.
1557 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1560 2010-09-29 Doug Evans <dje@google.com>
1562 Workaround for gcc/45682.
1563 * dwarf2read.c (partial_die_info): New fields fixup_called,
1565 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1566 Move definition next to use. Use linkage_name to determine if class
1567 is in a namespace. All callers updated.
1568 (fixup_partial_die): Return early if already called.
1569 Set fixup_called when done.
1570 (guess_full_die_structure_name): New function.
1571 (determine_prefix): Call it for class/struct/union dies if c++ and
1572 .debug_types section is present and parent is DW_TAG_compile_unit.
1574 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1576 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1577 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1579 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1581 * NEWS: Announce Ravenscar Profile support.
1583 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1584 Jerome Guitton <guitton@adacore.com>
1586 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1588 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1589 ravenscar-sparc-thread.o to gdb_target_obs.
1591 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1593 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1594 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1596 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1598 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1599 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1600 skip_main_prologue method.
1602 2010-09-27 Tom Tromey <tromey@redhat.com>
1604 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1605 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1606 Only emit a given psymbol once.
1607 (struct signatured_type_index_data) <psyms_seen>: New field.
1608 (write_one_signatured_type): Update.
1609 (cleanup_htab): New function.
1610 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1612 (save_gdb_index_command): Update index documentation.
1614 2010-09-27 Tom Tromey <tromey@redhat.com>
1616 * bcache.c (expand_hash_table): Use hash_function, not hash.
1618 2010-09-27 Tom Tromey <tromey@redhat.com>
1620 * gdb_wchar.h: Change minimum libiconv to 0x108.
1622 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1624 Fix lost siginfo_t for inferior calls.
1626 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1627 (save_inferior_thread_state): New variables regcache, gdbarch and
1628 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1629 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1631 (restore_inferior_thread_state): New variables regcache and gdbarch.
1632 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1633 REGCACHE. Free also SIGINFO_DATA.
1635 2010-09-24 Tom Tromey <tromey@redhat.com>
1637 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1639 (dw2_map_symbol_names): Likewise.
1641 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1643 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1644 discard_cleanups do_cleanups.
1646 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1650 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1651 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1652 si_code is < 0. Check for si_code == SI_TIMER before checking for
1655 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1657 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1659 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1661 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1662 debugging a core file.
1664 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1667 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1668 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1670 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1671 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1673 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1674 Remove the conditional.
1675 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1677 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1679 * main.c: Include objfiles.h.
1680 (captured_main): New variable objfile. Call
1681 load_auto_scripts_for_objfile for ALL_OBJFILES.
1683 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1685 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1688 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1690 * dwarf2read.c (scan_partial_symbols): Add handling of
1691 DW_TAG_constant DIEs.
1692 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1694 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1696 * configure.ac: Add support for --enable-gdbserver.
1697 * configure: Regenerate.
1699 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1702 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1703 'old_cleanups' reassignment.
1705 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1707 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1710 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1713 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1714 read_var_value and common_val_print and print a warning.
1716 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1718 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1719 keep the list in alphabetical order. Use longer e-mail address.
1721 2010-09-15 Tom Tromey <tromey@redhat.com>
1723 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1725 2010-09-15 Tom Tromey <tromey@redhat.com>
1727 * charset.c (iconv_open): New define.
1729 (iconv_close): Likewise.
1730 (phony_iconv_open): Add "phony_" prefix.
1731 (phony_iconv_close): Likewise.
1732 (phony_iconv): Likewise.
1733 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1734 Change how INTERMEDIATE_ENCODING is defined.
1736 2010-09-15 Doug Evans <dje@google.com>
1738 * dwarf2read.c (struct die_info): Fix comment.
1740 2010-09-15 Alan Modra <amodra@gmail.com>
1743 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1744 than setting SEC_NEVER_LOAD on sections that need not be copied.
1746 2010-09-14 Tom Tromey <tromey@redhat.com>
1748 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1749 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1751 * symfile.h (extend_psymbol_list): Remove.
1752 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1753 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1754 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1756 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1758 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1761 2010-09-14 Tom Tromey <tromey@redhat.com>
1764 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1765 for unrecognized frame base expression.
1767 2010-09-14 Tom Tromey <tromey@redhat.com>
1770 * value.c (value_static_field): Use value_of_variable.
1772 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1774 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1775 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1777 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1780 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1783 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1785 * NEWS: Add x86-lynxos to the list of platforms supported by
1788 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1790 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1792 2010-09-13 Tom Tromey <tromey@redhat.com>
1794 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1796 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1798 * i386-tdep.c (i386_ymm_type): Set type name to
1799 builtin_type_vec256i.
1801 2010-09-12 Michael Snyder <msnyder@vmware.com>
1803 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1805 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1807 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1809 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1811 * amd64-tdep.c (amd64_register_name): Removed.
1812 (amd64_init_abi): Don't call set_gdbarch_register_name.
1814 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1816 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1818 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1819 Paul Bolle <pebolle@tiscali.nl>
1821 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1822 * cli-logging.c (struct saved_output_files) <targerr>: New.
1823 (set_logging_redirect, pop_output_files, handle_redirections):
1824 Redirect also gdb_stdtargerr.
1825 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1827 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1828 also gdb_stdtargerr.
1829 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1830 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1831 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1832 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1833 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1836 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1838 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1839 to display a host address.
1840 * monitor.c (monitor_read_memory): Likewise.
1841 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1843 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1845 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1846 `CORE_ADDRESS' as it might contain target addresses.
1848 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1850 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1851 before cast to pointer to avoid warning.
1853 2010-09-09 Kevin Buettner <kevinb@redhat.com>
1855 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1858 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1860 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1861 anonymous class partial DIEs.
1863 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1865 * dwarf2read.c (dwarf2_compute_name): Check that the first
1866 argument is a pointer.
1868 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1870 * dwarf2read.c (read_func_scope, read_structure_type)
1871 (read_common_block): Check for a NULL return from new_symbol.
1873 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1875 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1877 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1879 * dwarf2read.c (read_structure_type): Move processing of
1880 fields and member functions from here...
1881 (process_structure_scope): ... to here.
1883 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1885 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1887 (gnuv3_make_method_ptr): Likewise.
1889 2010-09-08 Tom Tromey <tromey@redhat.com>
1891 * breakpoint.c (create_breakpoint): Add missing _().
1893 2010-09-08 Doug Evans <dje@google.com>
1895 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1897 2010-09-08 Tom Tromey <tromey@redhat.com>
1900 2010-09-01 Tom Tromey <tromey@redhat.com>
1901 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1902 symtab.h: Revert earlier change.
1904 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1906 * psymtab.c (add_psymbol_to_bcache): Initialize
1908 memset psymbol.ginfo.value to 0.
1910 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1912 * infrun.c (resume): Extend comment on ignoring single-step
1913 requests on vfork parents waiting for a vfork-done.
1915 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1916 Pedro Alves <pedro@codesourcery.com>
1918 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1920 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1922 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1923 calling strsignal. Use enum target_signal type for saved_signo.
1924 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1925 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1926 target_signal_to_host before calling strsignal.
1927 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1930 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1931 Jan Kratochvil <jan.kratochvil@redhat.com>
1933 * common/signals.c (ANY): Remove.
1934 (SET): No longer use ANY.
1936 2010-09-06 Yao Qi <yao@codesourcery.com>
1938 * infrunc(resume): When inferior is waiting_for_vfork_done,
1939 clear step and don't use displaced stepping.
1941 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1943 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1946 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1948 Code cleanup - split print_stop_reason.
1949 * infrun.c (enum inferior_stop_reason): Remove.
1950 (print_stop_reason): Remove by splitting into ...
1951 (print_exited_reason, print_signal_exited_reason)
1952 (print_no_history_reason, print_signal_received_reason)
1953 (print_end_stepping_range_reason): ... these new functions. Update
1954 the preceding comment.
1955 (handle_inferior_event): Change the calls to print_exited_reason,
1956 print_signal_exited_reason, print_no_history_reason,
1957 print_signal_received_reason, print_end_stepping_range_reason.
1958 (handle_step_into_function, handle_step_into_function_backward):
1959 Change the calls to print_end_stepping_range_reason.
1961 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1963 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1964 * cli-out.c: Include vec.h.
1965 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1966 variable stream, initialize it, use it.
1967 (cli_redirect): New function comment. Replace the stream and
1968 original_stream fields by the new streams field. Remove the
1969 original_stream != NULL conditional, assert error on NULL instead.
1970 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1971 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1972 original_stream fields by the new streams field.
1973 (cli_out_set_stream): Replace the stream field by the new streams
1975 * cli-out.h: Include vec.h.
1976 (ui_filep): New typedef, call DEF_VEC_P for it.
1977 (struct cli_ui_out_data): Replace the stream and original_stream
1978 fields by the new streams field.
1979 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1980 NULL first. Extend the comment.
1981 (handle_redirections): Call ui_out_redirect with output.
1982 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1983 calls outside of the TRY_CATCH block.
1985 2010-09-03 Joel Brobecker <brobecker@adacore.com>
1989 2010-09-02 Joel Brobecker <brobecker@adacore.com>
1991 Back out the following change:
1992 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1993 | * record.c (set_record_pic_cmdlist,
1994 | show_record_pic_cmdlist): New variables.
1995 | (set_record_pic_command,
1996 | show_record_pic_command): New functions.
1997 | (record_pic_function, record_pic_line, record_pic_enum,
1998 | set_record_pic_type, record_pic_hide_nofunction,
1999 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2000 | (record_pic_fputs): New function.
2001 | (function_list, node_list, edge_list): New struct.
2002 | (function_list, node_list, edge_list): New variables.
2003 | (record_pic_cleanups, record_pic_node,
2004 | record_pic_edge, cmd_record_pic): New functions.
2005 | (_initialize_record): Add new commands for record pic.
2007 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2009 * config.in, configure: Regenerated.
2010 * configure.ac: Check for waitpid.
2011 * ser-pipe.c (pipe_close): Wait for the program to exit.
2013 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2015 * cli/cli-logging.c: Include gdb_assert.h.
2016 (set_logging_overwrite): New function.
2017 (logging_redirect): New comment.
2018 (logging_no_redirect_file, set_logging_redirect)
2019 (pop_output_files) <logging_no_redirect_file>: New.
2020 (handle_redirections) <!logging_redirect>: New variable
2021 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2022 discard cleanup for the close of former OUTPUT. Set
2023 LOGGING_NO_REDIRECT_FILE.
2024 (handle_redirections) <logging_redirect>: gdb_assert
2025 LOGGING_NO_REDIRECT_FILE.
2026 (show_logging_command) <logging_redirect handling>: Adjust messages
2027 for SAVED_FILENAME not NULL.
2028 (_initialize_cli_logging): Install set_logging_overwrite and
2029 set_logging_redirect.
2031 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2033 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2035 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2037 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2038 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2039 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2040 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2042 2010-09-02 Yao Qi <yao@codesourcery.com>
2044 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2045 number from a WIFSIGNALED status.
2047 2010-09-01 Tom Tromey <tromey@redhat.com>
2049 * symtab.h (lookup_type_symbol): Declare.
2050 * symtab.c (lookup_symbol_in_language_full): Rename from
2051 lookup_symbol_in_language. Add 'for_type' argument.
2052 (lookup_symbol_in_language): New function.
2053 (lookup_type_symbol): Likewise.
2054 (lookup_symbol_aux): Add 'for_type' argument.
2055 (match_symbol_aux): New function.
2056 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2057 (match_transparent_type): New function.
2058 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2059 * symfile.h (struct quick_symbol_functions)
2060 <pre_expand_symtabs_matching>: Remove.
2061 <expand_one_symtab_matching>: New field.
2062 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2063 (pre_expand_symtabs_matching_psymtabs): Remove.
2064 (psym_functions): Update.
2065 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2066 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2067 (dw2_pre_expand_symtabs_matching): Remove.
2068 (dw2_expand_one_symtab_matching): New function.
2069 (dwarf2_gdb_index_functions): Update.
2071 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2073 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2075 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2077 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2078 as a feature reported by -list-target-features.
2080 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2082 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2083 (powerpc-32.o, powerpc-32.c): New rules.
2084 (clean): Also remove powerpc-32.c.
2085 * regformats/rs6000/powerpc-32.dat: Generate.
2087 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2089 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2090 psymbol_bcache_init.
2091 * psymtab.h (psymbol_bcache_init): New function prototype.
2092 (psymbol_bcache_free): New function prototype.
2093 (psymbol_bcache_get_bcache): New function prototype.
2094 * psymtab.c (psymbol_bcache_init): New function.
2095 (psymbol_bcache_free): New function.
2096 (psymbol_bcache_full): New function.
2097 (psymbol_bcache_get_bcache): New function.
2098 (add_psymbol_to_bcache): use psymbol_bcache_full.
2099 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2101 * symmisc.c (print_symbol_bcache_statistics): Updated.
2102 (print_objfile_statistics): Updated.
2103 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2105 (free_objfile): Use psymbol_bcache_free.
2107 2010-08-31 Tom Tromey <tromey@redhat.com>
2110 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2111 Don't set TYPE_NAME on the type.
2113 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2115 * infrun.c (set_exec_direction_func): Error out if target does not
2116 support reverse execution.
2118 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2120 Make linux_get_siginfo_type `type *' unique.
2121 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2122 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2123 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2124 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2125 (_initialize_linux_tdep): New.
2127 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2130 * defs.h (find_memory_region_ftype): New typedef.
2131 (exec_set_find_memory_regions): Use it.
2132 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2133 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2134 * gcore.c (objfile_find_memory_regions): Likewise.
2135 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2136 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2137 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2138 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2139 find_memory_region_ftype.
2140 (insert_dbx_link_bpt_in_region): Likewise.
2141 (iterate_over_mappings): Likewise. Drop the comment part about the
2143 (find_memory_regions_callback): Use find_memory_region_ftype.
2144 (proc_find_memory_regions): Likewise.
2145 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2146 find_memory_region_ftype.
2147 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2148 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2150 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2152 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2153 'static partial_symbol psymbol'.
2154 (psymbol_hash): New function.
2155 (psymbol_compare): New function.
2156 * bcache.c (hash_continue): New.
2157 (hash): Use hash_continue.
2158 * bcache.c: Add hash_function and compare_function
2159 pointers to bcache struct.
2160 (bcache_full): Use bcache->hash_function, and
2161 bcache->compare_function.
2162 (bcache_compare): New function.
2163 (bcache_xmalloc): Take hash_function and
2164 compare_function arguments and initialize the
2167 * objfiles.c (allocate_objfile): Updated.
2168 * symfile.c (reread_symbols): Updated.
2169 * python/py-type.c (typy_richcompare): Updated.
2171 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2172 Tom Tromey <tromey@redhat.com>
2175 * python/py-value.c (valpy_get_dynamic_type): New function.
2176 (value_object_getset): Add "dynamic_type".
2177 (valpy_get_type): Fail on error.
2179 2010-08-30 Yao Qi <yao@codesourcery.com>
2181 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2182 (arm_linux_syscall_next_pc): New.
2183 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2184 (arm_linux_init_abi): Initialize syscall_next_pc.
2185 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2186 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2187 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2188 Declare arm_frame_is_thumb.
2190 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2193 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2194 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2196 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2197 calls of bpstat_alloc. Remove explicit bs chain termination.
2199 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2202 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2203 (my_waitpid): Likewise.
2205 2010-08-27 Doug Evans <dje@google.com>
2207 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2210 2010-08-27 Tom Tromey <tromey@redhat.com>
2212 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2213 TYPE_FIELD_IGNORE_BITS.
2215 2010-08-27 Doug Evans <dje@google.com>
2217 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2218 the order they're defined in. munmap .debug_types buffer.
2220 2010-08-26 Doug Evans <dje@google.com>
2222 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2223 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2224 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2225 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2226 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2227 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2228 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2229 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2230 (write_psymtabs_to_index): Ditto.
2232 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2234 * NEWS: Mention libthread_db debugging with core files.
2236 2010-08-26 Doug Evans <dje@google.com>
2238 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2239 forward decl. Pass pst->dirname to dwarf_decode_lines.
2240 (psymtab_include_file_name): New function.
2241 (dwarf_decode_lines): Call it. Update comments.
2243 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2245 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2246 compilation unit being different from target die's.
2248 2010-08-24 Doug Evans <dje@google.com>
2251 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2252 debug_types_type_hash.
2253 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2255 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2256 appropriate type_hash table. All callers updated.
2257 (allocate_signatured_type_table): Renamed from
2258 allocate_signatured_type_hash_table. All callers updated.
2259 (create_signatured_type_table_from_index): Renamed from
2260 create_signatured_type_hash_from_index. All callers updated.
2261 (read_die_type): Add comment. Move actual reading to ...
2262 (read_die_type_1): ... here. New function.
2263 (follow_die_ref_or_sig): Tweak comment.
2264 (set_die_type): Rewrite to use appropriate choice of
2265 debug_info_type_hash or debug_types_type_hash.
2266 (get_die_type_at_offset): New function.
2267 (get_die_type): Call it.
2269 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2271 * python/py-type.c (typy_richcompare): Initialize worklist.
2273 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2274 Kazu Hirata <kazu@codesourcery.com>
2275 Jonathan Larmour <jifl@eCosCentric.com>
2277 * arm-tdep.c: Include features/arm-with-m.c.
2278 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2280 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2281 Check is_m after force-mode.
2282 (arm_gdbarch_init): Check the binary before the target description.
2283 Add check for M profile attribute. If we have an M-profile device,
2284 but no target register description, use arm-with-m. Recognize the
2285 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2286 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2287 * arm-tdep.h (XPSR_T): Define.
2288 (struct gdbarch_tdep): Add is_m member.
2289 * features/arm-m-profile.xml, features/arm-with-m.c,
2290 features/arm-with-m.xml: New files.
2292 2010-08-23 Doug Evans <dje@google.com>
2294 * dwarf2read.c (read_structure_type): Add comment.
2295 (read_enumeration_type): Add comment.
2296 (process_enumeration_scope): Move definition of some locals
2297 closer to their use.
2298 (read_namespace_type): Add comment.
2299 (set_die_type): Fix typo in comment.
2301 2010-08-23 Tom Tromey <tromey@redhat.com>
2304 * python/py-value.c: Include expression.h.
2305 (valpy_do_cast): New function.
2306 (valpy_cast): Use it.
2307 (valpy_dynamic_cast): New function.
2308 (valpy_reinterpret_cast): Likewise.
2309 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2311 2010-08-23 Tom Tromey <tromey@redhat.com>
2314 * python/py-value.c (valpy_nonzero): Don't throw error for other
2317 2010-08-23 Tom Tromey <tromey@redhat.com>
2320 * python/py-type.c: Include bcache.h, vec.h.
2321 (struct type_equality_entry): New.
2322 (compare_strings): New function.
2323 (check_types_equal): Likewise.
2324 (check_types_worklist): Likewise.
2325 (typy_richcompare): Likewise.
2326 (type_object_type): Set tp_richcompare field.
2328 2010-08-23 Tom Tromey <tromey@redhat.com>
2331 * python/py-type.c (typy_fields): Call check_typedef.
2332 (typy_template_argument): Add TRY_CATCH.
2334 2010-08-23 Tom Tromey <tromey@redhat.com>
2337 * python/py-type.c (typy_array): New function.
2338 (type_object_methods): Add "array".
2340 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2342 * python/python.c: Include "serial.h".
2343 (gdbpy_event_fds): Change type to `struct serial *' a array from
2345 (gdbpy_run_events): Change parameters. Use serial_readchar in
2347 (gdbpy_post_event): Use serial_write in place of write.
2348 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2349 serial_async in place of add_file_handler.
2351 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2353 * serial.h (gdb_pipe, serial_pipe): Declare.
2354 * serial.c (serial_interface_lookup): Take a const char pointer.
2355 (serial_fdopen): Rename to ...
2356 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2357 Call the OPS' fdopen function if there is one.
2358 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2360 (struct serial_ops) <fdopen>: New field.
2362 * ser-mingw.c (free_pipe_state):
2363 (free_pipe_state): Close output on non-pex pipes.
2364 (pipe_windows_fdopen): New.
2366 (_initialize_ser_windows): Register pipe_windows_fdopen.
2367 * ser-go32.c (gdb_pipe): New.
2368 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2373 2010-08-20 Keith Seitz <keiths@redhat.com>
2376 * dwarf2read.c (struct delayed_method_info): New struct.
2377 (struct dwarf2_cu): Add vector method_list.
2378 (scan_partial_symbols): Count methods for union, class, structure,
2379 and interface types.
2380 (add_to_method_list): New function.
2381 (free_delayed_list): New function.
2382 (compute_delayed_physnames): New function.
2383 (process_full_comp_unit): Make a cleanup for the CU's delayed
2384 physname list, compute the delayed physnames, and free the
2386 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2387 of the physname until after the CU is read.
2389 * dwarf2read.c (read_structure_type): Check if the current
2390 DIE's type was already completed after dwarf2_full_name
2393 2010-08-19 Stan Shebs <stan@codesourcery.com>
2395 * NEWS: Mention some additional changes.
2397 2010-08-19 Tom Tromey <tromey@redhat.com>
2399 * Makefile.in (install-python): Add DESTDIR.
2401 2010-08-19 Doug Evans <dje@google.com>
2404 * parser-defs.h (parse_float, parse_c_float): Declare.
2405 * parse.c (parse_float, parse_c_float): New function.
2406 * c-exp.y (parse_number): Call parse_c_float.
2407 * objc-exp.y (parse_number): Ditto.
2408 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2409 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2411 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2413 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2414 the arguments in the correct order.
2415 * symtab.c (maybe_add_partial_symtab_filename): Declare
2416 the arguments in the correct order.
2418 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2420 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2421 initialize it by null_frame_id, wrap its usage by get_frame_id,
2422 frame_id_p and frame_find_by_id.
2424 2010-08-18 Tom Tromey <tromey@redhat.com>
2427 * configure: Rebuild.
2428 * configure.ac: Add install-python to CONFIG_INSTALL.
2429 * Makefile.in (install-python): New.
2431 2010-08-18 Doug Evans <dje@google.com>
2433 * gdb_assert.h (gdb_assert_not_reached): New macro.
2434 (gdb_assert_fail): Fix typo in comment.
2435 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2437 * darwin-nat.c (darwin_check_new_threads): Ditto.
2438 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2439 (munmap_section_buffer): Ditto.
2440 * m32c-tdep.c (make_types): Ditto.
2441 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2442 * macroexp.c (get_character_constant): Ditto.
2443 (get_string_literal): Ditto.
2444 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2445 (mep_pseudo_cr_index, mep_register_type): Ditto.
2446 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2447 (mep_get_insn, mep_analyze_prologue): Ditto.
2448 * objfiles.c (qsort_cmp): Ditto.
2449 * prologue-value.c (pv_is_identical): Ditto.
2450 * record.c (record_get_loc): Ditto.
2451 * value.c (value_static_field): Ditto.
2452 * xtensa-tdep.c (call0_track_op): Ditto.
2454 2010-08-18 Tom Tromey <tromey@redhat.com>
2457 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2458 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2459 name-copying lower. Document exception behavior.
2460 * completer.c (expression_completer): Catch exceptions from
2461 parse_field_expression.
2463 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2467 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2468 workaround on core files.
2469 (try_thread_db_load_1): Don't try enabling thread event reporting
2471 (thread_db_load): Allow thread_db on core files.
2472 (attach_thread): Don't check thread signals on core files, nor try
2473 really attaching to the thread, nor enabling thread event event
2475 (thread_db_detach): Don't try disabing thread event reporting or
2476 removing thread event breakpoints when debugging a core file.
2477 (find_new_threads_callback): Don't try enabling thread event
2478 reporting on core files.
2479 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2480 debugging a core file.
2481 (thread_db_find_new_threads): Don't update thread
2482 cores (processors) when debugging a core (dump).
2484 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2488 * corelow.c (add_to_thread_list): Don't use
2489 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2490 (get_core_register_section): Don't use
2491 gdbarch_core_reg_section_encodes_pid.
2493 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2494 * gdbarch.h, gdbarch.c: Regenerate.
2495 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2496 gdbarch_core_reg_section_encodes_pid.
2497 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2498 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2499 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2501 2010-08-18 Yao Qi <yao@codesourcery.com>
2503 * MAINTAINERS : Add myself under Write After Approval.
2505 2010-08-17 Tom Tromey <tromey@redhat.com>
2507 * NEWS: Mention template parameter support.
2509 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2511 PR breakpoints/11371
2513 * breakpoint.c (decref_bp_location): Assert the reference count is
2516 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2518 PR breakpoints/11371
2520 * breakpoint.c (breakpoint_init_inferior): Decrement the
2521 location's reference count instead of deleting right away.
2522 (bpstat_free): Decrement the location's reference count. Make
2524 (bpstat_copy): Increment the location's reference count.
2525 (bpstat_find_breakpoint): Adjust.
2526 (bpstat_num): Adjust.
2527 (print_it_typical): Adjust. Use the breakpoint pointer in the
2528 bpstat instead of the location's owner.
2529 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2530 Adjust to record the location's owner in the bpstat.
2531 (watchpoint_check): Use the breakpoint pointer in the bpstat
2532 instead of the location's owner.
2533 (bpstat_check_breakpoint_conditions): Don't handle
2534 bp_watchpoint_scope here. Use the breakpoint pointer in the
2535 bpstat instead of the location's owner.
2536 (bpstat_stop_status): Defer inferior function calls to after
2537 building the bpstat list. Handle bp_watchpoint_scope here. Use
2538 the breakpoint pointer in the bpstat instead of the location's
2540 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2541 the location's owner.
2542 (free_bp_location): Don't walk bpstats clearing locations.
2543 (incref_bp_location): New.
2544 (decref_bp_location): New.
2545 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2546 instead of the location's owner.
2547 (update_global_location_list): Clear the location's owner, and
2548 decrement the location's reference count instead of deleting it
2550 (breakpoint_retire_moribund): Decrement the location's reference
2551 count instead of deleting it right away.
2552 (bpstat_remove_bp_location): Delete.
2553 (bpstat_remove_breakpoint): New.
2554 (bpstat_remove_bp_location_callback): Delete.
2555 (bpstat_remove_breakpoint_callback): New.
2556 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2557 clearing references to the breakpoint that is being deleted.
2559 * breakpoint.h (struct bp_location) <refc>: New field.
2560 <owner>: Update comments.
2561 (bpstat_free): Delete declaration.
2562 (struct bpstats): Change the type of the breakpoint_at field to
2563 struct breakpoint point, from struct bp_location pointer. Add new
2564 field bp_location_at.
2566 2010-08-16 Tom Tromey <tromey@redhat.com>
2570 2010-08-16 Tom Tromey <tromey@redhat.com>
2572 * NEWS: Mention watch -location.
2574 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2576 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2577 EXP_STRING_REPARSE to EXP_STRING.
2578 (watch_command_1): Set also EXP_STRING_REPARSE.
2579 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2580 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2581 Update comment for exp_string.
2583 2010-08-16 Tom Tromey <tromey@redhat.com>
2585 * value.c (release_value): Clear 'next' pointer.
2586 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2587 (watch_command_wrapper): Update.
2588 (watch_maybe_just_location): New function.
2589 (watch_command): Update.
2590 (rwatch_command_wrapper): Update.
2591 (rwatch_command): Update.
2592 (awatch_command_wrapper): Update.
2593 (awatch_command): Update.
2594 (check_for_argument): New function.
2595 (_initialize_breakpoint): Update help text.
2597 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2599 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2600 typedef'ed function types correctly.
2602 2010-08-13 Tom Tromey <tromey@redhat.com>
2604 * python/python-internal.h (gdbpy_get_hook_function): Don't
2607 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2609 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2612 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2614 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2615 the format strings to be compatible with Python 2.4.
2617 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2619 Easier and more stubborn MI memory read commands.
2621 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2622 and data-write-memory-bytes.
2623 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2624 (mi_cmd_data_write_memory_bytes): New.
2625 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2626 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2628 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2629 * target.c (target_read_until_error): Remove.
2630 (read_whatever_is_readable, free_memory_read_result_vector)
2631 (read_memory_robust): New.
2632 * target.h (target_read_until_error): Remove.
2633 (struct memory_read_result, free_memory_read_result_vector)
2634 (read_memory_robust): New.
2636 2010-08-13 Hui Zhu <teawater@gmail.com>
2638 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2639 (read_comp_unit): Initialize back_to.
2641 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2642 Pedro Alves <pedro@codesourcery.com>
2644 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2645 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2646 (struct partial_die_info) <has_template_arguments>: New field.
2647 <num_attrs>: Change type to unsigned char.
2648 <building_fullname>: New field.
2649 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2650 allocate a CU if we don't have one already. Add a cleanup for the
2652 (partial_die_full_name): Handle template arguments not in
2654 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2655 (load_full_comp_unit): Only allocate a CU if we don't have one
2657 (do_ui_file_peek_last): New.
2658 (dwarf2_compute_name): Handle template parameters not in
2660 (read_comp_unit): Read and free abbrevs if not read yet.
2661 (load_partial_dies): Handle template arguments not in DW_AT_name.
2662 (find_partial_die): If we have a CU, but no a partial dies yet,
2663 also read in the CU.
2664 (dwarf2_const_value_attr): New, abstracted out from
2666 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2667 dwarf2_const_value_attr.
2668 (determine_prefix): Detect and break loops created by RCVT's debug
2670 (maybe_queue_comp_unit): Bail out early if reading partial
2672 (follow_die_offset): Load full CU if we have no dies.
2673 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2674 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2676 2010-08-11 Tom Tromey <tromey@redhat.com>
2677 Phil Muldoon <pmuldoon@redhat.com>
2679 * python/python.c (gdbpy_run_events): New function.
2680 (gdbpy_post_event): Likewise.
2681 (gdbpy_initialize_events): Likewise.
2682 (_initialize_python): Call gdbpy_initialize_events.
2684 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2686 * gdb/valarith.c (vector_binop): New function.
2687 (scalar_binop): Likewise.
2688 (value_binop): Call scalar_binop or vector_binop depending on the types.
2689 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2690 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2692 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2694 2010-08-11 Brad Roberts <braddr@puremagic.com>
2696 * d-lang.c (extract_identifiers): Handle multiple digits.
2698 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2701 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2702 Rename to dummy_frame_unwind.
2703 (dummy_frame_unwind): Remove.
2704 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2705 * frame-unwind.c (frame_unwind_init): Use address of
2706 dummy_frame_unwind and inline_frame_unwind.
2707 * frame.c (create_sentinel_frame): Use address of
2708 sentinel_frame_unwind.
2709 * inline-frame.c (inline_frame_unwinder): Rename to
2710 inline_frame_unwind.
2711 (inline_frame_unwind): Remove.
2712 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2713 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2714 sentinel_frame_unwind.
2715 (sentinel_frame_unwind): Remove.
2716 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2719 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2722 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2723 and returned value. New comment from frame-unwind.h.
2724 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2726 * frame.c (get_frame_id, frame_unwind_register_value)
2727 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2728 (get_frame_type, frame_unwind_arch): Do not use the return value of
2729 frame_unwind_find_by_frame.
2731 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2732 Thiago Jung Bauermann <bauerman@br.ibm.com>
2733 Tom Tromey <tromey@redhat.com>
2735 * python/python.c (gdbpy_solib_address): New function.
2736 (gdbpy_decode_line): Likewise.
2738 2010-08-10 Tom Tromey <tromey@redhat.com>
2740 Revert gdb-add-index addition:
2741 * Makefile.in (install-only): Don't install gdb-add-index.
2742 * gdb-add-index.sh: Remove.
2744 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2746 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2747 `target_has_execution' check with `to_has_memory' check.
2748 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2749 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2750 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2752 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2754 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2755 (resume_siggnal, resume_step): Move these static globals...
2756 (struct sim_inferior_data): ...into this new struct.
2757 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2759 (gdb_callback, callbacks_initialized): Move these globals to
2760 a point earlier in the file.
2761 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2762 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2763 (gdbsim_close_inferior, gdbsim_resume_inferior)
2764 (gdbsim_stop_inferior): New functions.
2765 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2767 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2768 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2769 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2770 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2771 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2772 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2773 new local variable `sim_data' in each of these functions. Use
2774 `sim_data' to reference former globals `program_loaded',
2775 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2777 (gdbsim_open): Remove local variable `argv'. Put results of call
2778 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2779 make a cleanup for it. Free it though when a sim instance cannot
2781 (gdbsim_close): Free sim_argv and null it out as appropriate.
2782 Close sim instances in all inferiors.
2783 (gdbsim_cntrl_c): Stop all inferiors.
2785 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2787 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2789 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2790 function after symbol construction is complete.
2791 Do the same for template symbol addition to template_symbols list.
2793 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2795 * symtab.c (symbol_get_demangled_name): Remove assertion and
2796 return NULL when language_specific.cplus_specific is not initialized.
2797 * stabsread.c (define_symbol): Set the name before calling
2798 cp_scan_for_anonymous_namespaces.
2800 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2802 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2803 SYMBOL_SET_LANGUAGE.
2804 (symbol_init_language_specific): Renamed to symbol_set_language.
2805 * symtab.c (symbol_init_language_specific): Removed redundant check
2807 Renamed to symbol_set_language.
2808 * stabsread.c (define_symbol): Updated.
2809 (read_enum_type): Updated
2810 * psymtab.c (add_psymbol_to_bcache): Updated.
2811 * minsyms.c (install_minimal_symbols): Updated.
2812 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2813 SYMBOL_LANGUAGE to set the language.
2814 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2815 * mdebugread.c (new_symbol): Ditto.
2816 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2817 * dwarf2read.c (new_symbol_full): Ditto.
2818 * jv-lang.c (add_class_symbol): Ditto.
2820 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2822 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2823 (make_cleanup_restore_page_info)
2824 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2825 * gdbcmd.h (execute_command_to_string): New declaration.
2826 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2827 (make_cleanup_restore_ui_file): Move to utils.c
2828 (execute_gdb_command) <to_string>: Move ...
2829 * top.c (execute_command_to_string): ... here. Call
2830 set_batch_flag_and_make_cleanup_restore_page_info.
2831 * utils.c (make_cleanup_restore_integer): New source file blank line.
2832 (make_cleanup_restore_uinteger): New.
2833 (struct restore_ui_file_closure, do_restore_ui_file)
2834 (make_cleanup_restore_ui_file): Move here from python/python.c.
2835 (init_page_info) <batch_flag>
2836 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2837 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2839 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2841 * thread.c (add_thread_silent): Use null_ptid instead of
2842 minus_one_ptid while getting rid of stale inferior_ptid.
2844 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
2846 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2847 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2848 (decode_frame_entry_1): Remove redundant setting of
2849 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2850 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2851 on examined frame section. Add comment to explain why.
2852 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2853 comment to explain usage.
2854 * gdbarch.c: Regenerate.
2855 * gdbarch.h: Regenerate.
2857 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2859 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2862 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2865 2010-08-05 Pedro Alves <pedro@codesourcery.com>
2867 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2868 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2869 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2870 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2871 linux-tdep.o to gdb_target_obs.
2873 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
2875 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2878 2010-08-05 Hui Zhu <teawater@gmail.com>
2880 * mips-linux-tdep.c(regset.h): New include.
2881 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2882 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2883 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2884 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2885 mips_linux_regset_from_core_section): New functions.
2886 (fetch_core_registers, regset_core_fns): Deleted.
2887 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2888 Deleted regset_core_fns.
2889 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2890 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2891 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2894 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2896 * s390-tdep.c: Include linux-tdep.h.
2897 (s390_gdbarch_init): Call linux_init_abi.
2899 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2901 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2902 instead of printing "Thread" here.
2903 * linux-tdep.c: Include inferior.h.
2904 (linux_core_pid_to_str): New.
2905 (linux_init_abi): New.
2906 * linux-tdep.h (linux_init_abi): Declare.
2907 * alpha-linux-tdep.c: Include linux-tdep.h.
2908 (alpha_linux_init_abi): Call linux_init_abi.
2909 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2910 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2911 * frv-linux-tdep.c: Include linux-tdep.h
2912 (frv_linux_init_abi): Call linux_init_abi.
2913 * hppa-linux-tdep.c: Include linux-tdep.h
2914 (hppa_linux_init_abi): Call linux_init_abi.
2915 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2916 * ia64-linux-tdep.c: Include linux-tdep.h.
2917 (ia64_linux_init_abi): Call linux_init_abi.
2918 * m32r-linux-tdep.c: Include linux-tdep.h.
2919 (m32r_linux_init_abi): Call linux_init_abi.
2920 * m68klinux-tdep.c: Include linux-tdep.h.
2921 (m68k_linux_init_abi): Call linux_init_abi.
2922 * microblaze-linux-tdep.c: Include linux-tdep.h.
2923 (microblaze_linux_init_abi): Call linux_init_abi.
2924 * mips-linux-tdep.c: Include linux-tdep.h.
2925 (mips_linux_init_abi): Call linux_init_abi.
2926 * mn10300-linux-tdep.c: Include linux-tdep.h.
2927 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2928 'gdbinfo' parameter to 'info'.
2929 * ppc-linux-tdep.c: Include linux-tdep.h.
2930 (ppc_linux_init_abi): Call linux_init_abi.
2931 * sh-linux-tdep.c: Include linux-tdep.h.
2932 (sh_linux_init_abi): Call linux_init_abi.
2933 * sparc-linux-tdep.c: Include linux-tdep.h.
2934 (sparc32_linux_init_abi): Call linux_init_abi.
2935 * sparc64-linux-tdep.c: Include linux-tdep.h.
2936 (sparc64_linux_init_abi): Call linux_init_abi.
2937 * xtensa-linux-tdep.c: Include linux-tdep.h.
2938 (xtensa_linux_init_abi): Call linux_init_abi.
2939 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2940 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2943 2010-08-03 Doug Evans <dje@google.com>
2945 * breakpoint.c (bpdisp_text): Constify bpdisps.
2946 * solib-svr4.c (solib_break_names): Constify.
2947 (bkpt_names, main_name_list): Constify.
2948 (match_main): Constify soname arg.
2949 (bfd_lookup_symbol): Remove unnecessary forward decl.
2950 Constify symname arg.
2951 (enable_break): Constify bkpt_namep.
2952 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2953 (symtab_symbol_info): Constify classnames.
2955 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2957 * NEWS: Document Python value inferior function calls.
2959 2010-08-02 Doug Evans <dje@google.com>
2961 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2963 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2965 * linux-thread-db.c (libthread_db_debug): New variable.
2966 (thread_db_find_new_threads_silently): Control verbosity with it.
2967 (try_thread_db_load_1, try_thread_db_load): Likewise.
2968 (find_new_threads_once): Likewise.
2969 (_initialize_thread_db): Set/show it.
2971 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2973 * common/signals.c (signals): Move the content to signals.def.
2974 Include it. Remove the INDENT comments.
2976 2010-07-30 Tom Tromey <tromey@redhat.com>
2978 * Makefile.in (install-only): Install gdb-add-index.
2979 * gdb-add-index.sh: New file.
2981 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2983 * MAINTAINERS: Add myself for write after approval privileges.
2985 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2987 * symfile.c (addr_section_name): New function.
2988 (addrs_section_compar): Use it.
2989 (addr_info_make_relative): Use it. Move variable sect_name into a more
2990 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2992 2010-07-30 Tom Tromey <tromey@redhat.com>
2994 * configure: Rebuild.
2995 * configure.ac: Add missing case for Python 2.7.
2997 2010-07-29 DJ Delorie <dj@redhat.com>
2999 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3002 2010-07-29 Pedro Alves <pedro@codesourcery.com>
3004 * PROBLEMS: Remove mention of all problems.
3006 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3009 * configure.ac: Check for wresize.
3010 * configure, config.in: Regenerate.
3011 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3014 2010-07-28 Tom Tromey <tromey@redhat.com>
3017 * python/py-type.c (typy_legacy_template_argument): New function,
3018 extracted from typy_template_argument.
3019 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3022 2010-07-28 Oleg Nesterov <oleg@redhat.com>
3024 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3026 2010-07-27 Tom Tromey <tromey@redhat.com>
3028 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3030 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3032 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3033 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3035 2010-07-28 Tom Tromey <tromey@redhat.com>
3037 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3039 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3041 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3042 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3044 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3046 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3047 down, just before the block that parse the breakpoint addr_string.
3049 2010-07-28 Tom Tromey <tromey@redhat.com>
3052 * symfile.c (reread_symbols): Clear template_symbols.
3053 * symtab.h (struct symbol) <is_cplus_template_function>: New
3055 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3056 (struct template_symbol): New.
3057 * symtab.c (lookup_symbol_aux_local): Use
3058 cp_lookup_symbol_imports_or_template.
3059 * objfiles.h (struct objfile) <template_symbols>: New field.
3060 * objfiles.c (relocate_one_symbol): New function.
3061 (objfile_relocate1): Use it. Relocate isolated symbols.
3062 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3063 template_arguments>: New fields.
3064 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3065 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3066 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3067 (lookup_typename): Update.
3068 * gdbtypes.c (lookup_typename): Constify "block" argument.
3069 * dwarf2read.c: Include vec.h.
3070 (symbolp): New typedef.
3071 (read_func_scope): Read template arguments. Allocate a
3072 template_symbol when needed.
3073 (read_structure_type): Read template arguments.
3074 (new_symbol_full): New function, from new_symbol. Handle
3075 DW_TAG_template_type_param and DW_TAG_template_value_param.
3076 (new_symbol): Rewrite as wrapper.
3077 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3078 * cp-namespace.c: Include language.h.
3079 (search_symbol_list): New function.
3080 (cp_lookup_symbol_imports_or_template): Likewise.
3082 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3084 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3085 the command window to the new size and position.
3087 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3089 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3092 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3094 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3095 after a detecting a resize.
3096 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3099 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3101 * configure.ac: Check for resize_term.
3102 * configure, config.in: Regenerate.
3104 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3106 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3108 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3110 * dwarf2read.c (read_string): Rename to ...
3111 (read_direct_string): ... this.
3112 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3113 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3115 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3117 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3118 (count_events_callback, select_event_lwp_callback)
3119 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3121 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3123 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3124 (_initialize_ia64_linux_nat): Install it.
3125 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3126 (linux_nat_set_status_is_event): New.
3127 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3128 cancel_breakpoints_callback, linux_nat_filter_event)
3129 (linux_nat_wait_1): Use linux_nat_status_is_event.
3130 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3132 2010-07-27 Tom Tromey <tromey@redhat.com>
3134 * NEWS: Mention labels, .gdb_index.
3136 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3138 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3139 "start,+length" form of arguments.
3140 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3141 since GDB 7.1"; and merge two separated paragraphs of disassemble
3142 description in "Changes in GDB 7.0".
3144 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3146 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3147 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3148 (fputs_maybe_filtered): Do not do filtering also on
3149 ! INPUT_FROM_TERMINAL_P.
3151 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3153 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3156 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3158 * python/py-value.c (valpy_call): New Function.
3160 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
3162 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3163 types_list_elements variables.
3165 2010-07-26 Tom Tromey <tromey@redhat.com>
3167 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3168 TLS with DW_OP_const4u or DW_OP_const8u.
3170 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3172 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3173 VSX registers contents.
3175 2010-07-26 Jerome Guitton <guitton@adacore.com>
3177 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3178 its adress is null. Add comment to explain why.
3179 (new_symbol): Ditto.
3181 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3183 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3184 the host signal first.
3186 2010-07-23 Tom Tromey <tromey@redhat.com>
3188 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3189 type_comp_units>: New fields.
3190 (dw2_get_cu): New function.
3191 (create_cus_from_index): Remove unused argument.
3192 (create_signatured_type_hash_from_index): New function.
3193 (create_addrmap_from_index): Update.
3194 (dwarf2_read_index): Handle version 2.
3195 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3196 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3197 (dw2_print_stats, dw2_expand_all_symtabs)
3198 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3199 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3200 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3201 (allocate_signatured_type_hash_table): New function.
3202 (add_signatured_type_cu_to_list): Likewise.
3203 (create_debug_types_hash_table): Use them. Set type_comp_units.
3204 (read_signatured_type): Ensure section data is available.
3205 (add_address_entry): Don't record empty ranges.
3206 (struct signatured_type_index_data): New.
3207 (write_one_signatured_type): New function.
3208 (write_psymtabs_to_index): Write type CUs.
3209 (save_gdb_index_command): Update comment.
3210 (process_type_comp_unit): Move inititalization of
3212 (create_debug_types_hash_table): ... here.
3214 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3216 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3217 cleanup and generating of gdb script to it.
3218 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3219 and terminal size. Convert $tmpfile to a series of -ex-es.
3221 2010-07-23 Keith Seitz <keiths@redhat.com>
3223 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3224 hook for STATIC_BLOCK types, too.
3226 2010-07-23 Keith Seitz <keiths@redhat.com>
3228 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3229 and vector definition.
3231 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3233 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3235 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3237 * dwarf2read.c: Include completer.h.
3238 (save_gdb_index_command): Use matching usage command name.
3239 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3240 Set filename_completer for it.
3242 2010-07-22 Tom Tromey <tromey@redhat.com>
3244 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3245 type signature's per-CU data.
3247 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3249 * NEWS: Mention target reported shared libraries support by
3252 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3257 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3258 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3259 and DW_TAG_volatile_type.
3260 (new_symbol): Likewise.
3262 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3264 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3265 function symbols before overload resolution.
3267 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3269 * breakpoint.c (bptype_string): New, abstracted out from
3270 print_one_breakpoint_location.
3271 (print_one_breakpoint_location): Adjust.
3272 (breakpoint_1): Adjust the type column width dynamically.
3274 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3276 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3277 a gdb_assert call, new comment.
3279 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3281 * linux-nat.c (linux_handle_extended_wait): Handle case when
3282 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3284 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3287 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3288 linux_nat_wait_1. Use always LP->STATUS afterwards.
3290 2010-07-20 Hui Zhu <teawater@gmail.com>
3292 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3293 (inf_ptrace_attach): Ditto.
3295 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3297 Make core files the process_stratum.
3298 * corefile.c (core_target): New variable.
3299 (core_file_command): Remove variable t, use core_target.
3300 * corelow.c (core_ops): Make it static.
3301 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3302 * defs.h (make_cleanup_unpush_target): New prototype.
3303 * gdbarch.h: Regenerate.
3304 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3305 * gdbcore.h (core_target): New declaration.
3306 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3307 variables ops_already_pushed and back_to. Use push_target,
3308 make_cleanup_unpush_target and discard_cleanups calls.
3309 * record.c (record_open): Replace core_stratum by a core_bfd check.
3310 * target.c (target_is_pushed): New function.
3311 (find_core_target): Remove.
3312 * target.h (enum strata) <core_stratum>: Remove.
3313 (target_is_pushed): New declaration.
3314 (find_core_target): Remove declaration.
3315 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3316 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3318 2010-07-19 Hui Zhu <teawater@gmail.com>
3320 * breakpoint.c (single_step_breakpoints_inserted): New
3322 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3323 * infrun.c (maybe_software_singlestep): Add check code.
3324 * record.c (record_resume): Add code for software single step.
3325 (record_wait): Ditto.
3327 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3329 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3330 a more inner block. Remove its unused declaration initializer.
3332 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3334 * NEWS: Mention support for the new ptrace interface and hardware
3335 accelerated watchpoint conditions on powerpc-linux.
3337 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3339 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3340 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3341 and host_address_to_string() and %s for pointers.
3342 (debug_to_remove_breakpoint): Likewise.
3343 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3344 (debug_to_can_accel_watchpoint_condition): Likewise.
3345 (debug_to_stopped_data_address): Likewise.
3346 (debug_to_watchpoint_addr_within_range): Likewise.
3347 (debug_to_insert_hw_breakpoint): Likewise.
3348 (debug_to_remove_hw_breakpoint): Likewise.
3349 (debug_to_insert_watchpoint): Likewise.
3350 (debug_to_remove_watchpoint): Likewise.
3352 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3354 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3356 (cplus_specific): New struct.
3357 * symtab.c (symbol_set_demangled_name): Updated.
3358 Use cplus_specific for cplus symbols.
3359 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3360 struct for cplus symbols.
3361 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3362 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3363 * symtab.c (symbol_init_cplus_specific): New function.
3365 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3367 * symtab.h (symbol_set_demangled_name): New function.
3368 (symbol_get_demangled_name): New function.
3369 * symtab.c (symbol_set_demangled_name): New function.
3370 (symbol_get_demangled_name): New function.
3371 (symbol_init_language_specific): Use demangled_name setter and getter.
3372 (symbol_set_names): Ditto.
3373 (symbol_natural_name): Ditto.
3374 (symbol_demangled_name): Ditto.
3375 * dwarf2read.c (new_symbol): Ditto.
3377 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3379 * symtab.h: Renamed cplus_specific to mangled_lang.
3380 * symtab.c (symbol_init_language_specific): Updated.
3381 (symbol_set_names): Updated.
3382 (symbol_natural_name): Updated.
3383 (symbol_demangled_name): Updated.
3384 * ada-lang.c (ada_decode_symbol): Updated.
3385 * dwarf2read.c (new_symbol): Updated.
3387 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3389 * valops.c (value_assign): Do not call to value_coerce_to_target.
3390 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3392 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3394 * MAINTAINERS: Add myself for write after approval privileges.
3396 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3398 * c-valprint.c (c_val_print): Add embedded_offset to address in
3399 call to val_print_array_elements.
3401 2010-07-13 Tom Tromey <tromey@redhat.com>
3403 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3405 2010-07-13 Tom Tromey <tromey@redhat.com>
3407 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3410 2010-07-13 Tom Tromey <tromey@redhat.com>
3412 * symfile.c (set_initial_language): Update.
3413 (deduce_language_from_filename): Argument type now const.
3414 * symtab.h (find_main_filename): Update.
3415 (deduce_language_from_filename): Update.
3416 * symtab.c (find_main_filename): Make result const.
3417 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3418 * psymtab.c (find_symbol_file_from_partial): Change return type.
3419 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3422 2010-07-13 Tom Tromey <tromey@redhat.com>
3424 * breakpoint.c (save_cmdlist): No longer static.
3425 * gdbcmd.h (save_cmdlist): Declare.
3426 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3427 OBJF_READNOW on objfile if readnow_symbol_files.
3428 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3429 (elf_sym_fns_gdb_index): New global.
3430 * dwarf2read.c: Include exceptions.h.
3432 (struct mapped_index): New.
3433 (dwarf2_per_cu_data_ptr): New typedef.
3434 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3436 (GDB_INDEX_SECTION): New define.
3437 (struct dwarf2_per_cu_quick_data): New.
3438 (struct dwarf2_per_cu_data) <objfile>: New field.
3441 (byte_swap): New function.
3442 (MAYBE_SWAP): New macro.
3443 (INDEX_SUFFIX): New macro.
3444 (dw2_do_instantiate_symtab): New function.
3445 (dw2_instantiate_symtab): Likewise.
3446 (create_cus_from_index): Likewise.
3447 (create_addrmap_from_index): Likewise.
3448 (mapped_index_string_hash): Likewise.
3449 (find_slot_in_mapped_hash): Likewise.
3450 (dwarf2_read_index): Likewise.
3451 (dw2_setup): Likewise.
3452 (dw2_require_line_header): Likewise.
3453 (dw2_require_full_path): Likewise.
3454 (dw2_find_last_source_symtab): Likewise.
3455 (dw2_forget_cached_source_info): Likewise.
3456 (dw2_lookup_symtab): Likewise.
3457 (dw2_lookup_symbol): Likewise.
3458 (dw2_do_expand_symtabs_matching): Likewise.
3459 (dw2_pre_expand_symtabs_matching): Likewise.
3460 (dw2_print_stats): Likewise.
3461 (dw2_dump): Likewise.
3462 (dw2_relocate): Likewise.
3463 (dw2_expand_symtabs_for_function): Likewise.
3464 (dw2_expand_all_symtabs): Likewise.
3465 (dw2_expand_symtabs_with_filename): Likewise.
3466 (dw2_find_symbol_file): Likewise.
3467 (dw2_map_ada_symtabs): Likewise.
3468 (dw2_expand_symtabs_matching): Likewise.
3469 (dw2_find_pc_sect_symtab): Likewise.
3470 (dw2_map_symbol_names): Likewise.
3471 (dw2_map_symbol_filenames): Likewise.
3472 (dw2_has_symbols): Likewise.
3473 (dwarf2_gdb_index_functions): New global.
3474 (dwarf2_initialize_objfile): New function.
3475 (process_psymtab_comp_unit): Update.
3476 (add_partial_subprogram): Likewise.
3477 (dwarf2_psymtab_to_symtab): Likewise.
3478 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3479 (process_full_comp_unit): Update.
3480 (find_file_and_directory): New function.
3481 (read_file_scope): Use find_file_and_directory.
3482 (dwarf2_per_cu_objfile): Update.
3483 (dwarf2_per_cu_addr_size): Update.
3484 (dwarf2_per_cu_offset_size): Update.
3485 (dwarf2_free_objfile): Free the index, if needed.
3486 (dwarf2_per_objfile_free): Unmap the index, if needed.
3487 (struct strtab_entry): New.
3488 (hash_strtab_entry): New function.
3489 (eq_strtab_entry): Likewise.
3490 (create_strtab): Likewise.
3491 (add_string): Likewise.
3492 (struct symtab_index_entry): New.
3493 (struct mapped_symtab): New.
3494 (hash_symtab_entry): New function.
3495 (eq_symtab_entry): Likewise.
3496 (delete_symtab_entry): Likewise.
3497 (create_index_table): Likewise.
3498 (create_mapped_symtab): Likewise.
3499 (cleanup_mapped_symtab): Likewise.
3500 (find_slot): Likewise.
3501 (hash_expand): Likewise.
3502 (add_index_entry): Likewise.
3503 (add_indices_to_cpool): Likewise.
3504 (write_hash_table): Likewise.
3505 (add_address_entry): Likewise.
3506 (write_psymbols): Likewise.
3507 (write_obstack): Likewise.
3508 (unlink_if_set): Likewise.
3509 (write_psymtabs_to_index): Likewise.
3510 (save_gdb_index_command): Likewise.
3511 (_initialize_dwarf2_read): Install "save gdb-index"
3513 (create_all_comp_units): Initialize 'objfile' field of CU.
3514 (dwarf2_locate_sections): Check for .gdb_index.
3515 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3516 * symfile.h (dwarf2_initialize_objfile): Declare.
3518 2010-07-13 Tom Tromey <tromey@redhat.com>
3520 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3521 (basic_lookup_transparent_type): Likewise.
3522 * symfile.h (struct quick_symbol_functions)
3523 <pre_expand_symtabs_matching>: New field.
3524 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3525 (psym_functions): Update.
3527 2010-07-13 Tom Tromey <tromey@redhat.com>
3529 PR breakpoints/8357:
3530 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3531 * linespec.c (decode_line_1): Update comment. Call decode_label.
3532 (decode_label): New function.
3533 (symbol_found): Handle LOC_LABEL.
3534 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3535 domain. Call add_symbol_to_list.
3537 2010-07-13 Tom Tromey <tromey@redhat.com>
3539 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3540 * dwarf2loc.c (find_location_expression): Use
3541 dwarf2_per_cu_text_offset.
3542 (dwarf2_evaluate_loc_desc): Likewise.
3543 (dwarf2_loc_desc_needs_frame): Likewise.
3544 (compile_dwarf_to_ax): Likewise.
3545 (loclist_describe_location): Likewise.
3546 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3547 (dwarf2_per_cu_objfile): Update comment.
3549 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3551 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3552 * p-lang.c (pascal_printstr): Likewise.
3554 2010-07-09 Tom Tromey <tromey@redhat.com>
3556 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3557 'hint' if it is NULL.
3559 2010-07-09 Hui Zhu <teawater@gmail.com>
3561 * source.c (print_source_lines_base): Add check for noprint.
3563 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3565 * python/python-config.py: Resync with Python 2.7 version of this
3568 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3570 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3572 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3574 * NEWS: Create a new section for the next release branch.
3575 Rename the section of the current branch, now that it has
3578 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3580 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3581 * version.in: Bump version to 7.2.50.20100707-cvs.
3583 2010-07-07 Tom Tromey <tromey@redhat.com>
3585 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3586 LOC_COMPUTED symbol.
3587 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3588 (dwarf2_loc_desc_needs_frame): Likewise.
3589 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3590 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3591 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3592 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3594 (struct dwarf2_frame_cache) <text_offset>: New field.
3595 (dwarf2_frame_cache): Set new field.
3596 (dwarf2_frame_prev_register): Update.
3597 (dwarf2_frame_sniffer): Update.
3598 (dwarf2_frame_base_sniffer): Update.
3599 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3601 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3602 Thiago Jung Bauermann <bauerman@br.ibm.com>
3604 Support for hw accelerated condition watchpoints in booke powerpc.
3606 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3607 and move to eval.c. Change callers.
3608 (insert_bp_location): Pass watchpoint condition in
3609 target_insert_watchpoint.
3610 (remove_breakpoint_1) Pass watchpoint condition in
3611 target_remove_watchpoint.
3612 (watchpoint_locations_match): Call
3613 target_can_accel_watchpoint_condition.
3614 * eval.c: Include wrapper.h.
3615 (fetch_subexp_value): Moved from breakpoint.c.
3616 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3618 (can_use_watchpoint_cond_accel): New function.
3619 (calculate_dvc): Likewise.
3620 (num_memory_accesses): Likewise.
3621 (check_condition): Likewise.
3622 (ppc_linux_can_accel_watchpoint_condition): Likewise
3623 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3624 check_condition and calculate_dvc.
3625 (ppc_linux_remove_watchpoint): Likewise.
3626 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3627 ppc_linux_can_accel_watchpoint_condition
3628 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3630 (debug_to_remove_watchpoint): Likewise.
3631 (debug_to_can_accel_watchpoint_condition): New function.
3632 (update_current_target): Set to_can_accel_watchpoint_condition.
3633 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3634 * target.h: Add opaque declaration for struct expression.
3635 (struct target_ops) <to_insert_watchpoint>,
3636 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3637 <to_can_accel_watchpoint_condition>: New member.
3638 condition. Update all callers and implementations.
3639 (target_can_accel_watchpoint_condition): New macro.
3640 * value.c (free_value_chain): New function.
3641 * value.h (fetch_subexp_value): New prototype.
3642 (free_value_chain): Likewise.
3644 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3646 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3647 from gdbarch_core_regset_sections also for .reg if present.
3649 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3650 section size for .reg.
3651 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3652 (ppc_linux_vmx_regset_sections): Likewise.
3653 (ppc_linux_fp_regset_sections): Likewise.
3654 (ppc64_linux_vsx_regset_sections): New variable.
3655 (ppc64_linux_vmx_regset_sections): Likewise.
3656 (ppc64_linux_fp_regset_sections): Likewise.
3657 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3658 for current word size.
3660 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3662 * server.c (myresume): Make static.
3664 2010-07-06 Tom Tromey <tromey@redhat.com>
3666 * configure, config.in: Rebuild.
3667 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3668 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3670 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3672 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3675 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3677 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3678 * gdbtypes.c (floatformats_ieee_half): New variable.
3679 * doublest.c (floatformat_from_length): Set format to
3680 gdbarch_half_format if length matches.
3681 * gdbarch.sh (half_bit): New architecture method.
3682 (half_format): Likewise.
3683 * gdbarch.h: Regenerate.
3684 * gdbarch.c: Likewise.
3686 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3687 Joel Brobecker <brobecker@adacore.com>
3689 Fix re-run of PIE executable, PR shlibs/11776.
3690 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3691 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3693 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3694 Joel Brobecker <brobecker@adacore.com>
3696 * auxv.c (memory_xfer_auxv): Update attach comment.
3697 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3698 svr4_relocate_main_executable.
3699 (svr4_solib_create_inferior_hook): Make the call to
3700 svr4_relocate_main_executable unconditional.
3702 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3703 Joel Brobecker <brobecker@adacore.com>
3705 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3707 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3708 Joel Brobecker <brobecker@adacore.com>
3710 Fix attaching to PIEs prelinked on the disk after the process was
3712 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3713 Verify it against bfd_get_arch_size. Try to match arbitrary
3714 displacement for the phdrs comparison.
3716 2010-07-02 Tom Tromey <tromey@redhat.com>
3719 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3720 value as optimized-out.
3722 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3723 Thiago Jung Bauermann <bauerman@br.ibm.com>
3725 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3726 represent?" question in comment. Change comment to a proper sentence.
3728 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3730 * c-valprint.c (c_val_print): Fix printing of character vectors.
3732 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3734 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3735 create_breakpoint prototype.
3737 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3739 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3740 usefulness suggestion of multiple breakpoints at same location.
3742 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3744 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3746 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3748 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3749 (loclist_tracepoint_var_ref): Handle optimized out values.
3751 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3753 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3754 unnecessary space in string.
3755 * filesystem.c (_initialize_filesystem): Ditto.
3756 * frame.c (_initialize_frame): Ditto.
3757 * infcmd.c (step_once): Ditto.
3758 * infrun.c (_initialize_infrun): Ditto.
3759 * linux-nat.c (linux_child_follow_fork): Ditto.
3760 * maint.c (maintenance_deprecate): Ditto.
3761 * memattr.c (_initialize_mem): Ditto.
3762 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3763 * monitor.c (monitor_open): Ditto.
3764 * procfs.c (procfs_xfer_memory): Ditto.
3765 * reverse.c (bookmarks_info): Ditto.
3766 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3767 * stack.c (_initialize_stack): Ditto.
3768 * tracepoint.c (_initialize_tracepoint): Ditto.
3769 * xtensa-tdep.c (xtensa_supply_gregset,
3770 xtensa_regset_from_core_section): Ditto.
3772 2010-07-01 Tom Tromey <tromey@redhat.com>
3774 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3776 * value.c (value_entirely_optimized_out): Invert result. Update
3777 for new function name.
3779 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3781 Static tracepoints support.
3783 * NEWS: Mention new support for static tracepoints.
3784 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3785 qXfer:statictrace:read.
3786 (New features in the GDB remote stub, GDBserver): Mention static
3787 tracepoints support using an UST based backend.
3788 (New commands): Mention "info static-tracepoint-markers" and
3790 * breakpoint.c (is_marker_spec): New.
3791 (is_tracepoint): Handle static tracepoints.
3792 (validate_commands_for_breakpoint): Static tracepoints can't do
3794 (static_tracepoints_here): New.
3795 (bpstat_what): Handle static tracepoints.
3796 (print_one_breakpoint_location, allocate_bp_location, mention):
3798 (create_breakpoint_sal): Ditto.
3799 (decode_static_tracepoint_spec): New.
3800 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3801 `type_wanted'. Adjust. Handle static tracepoint marker
3803 (break_command_1): Adjust.
3804 (update_static_tracepoint): New.
3805 (update_breakpoint_locations): Handle static tracepoints.
3806 (breakpoint_re_set_one): Handle static tracepoint marker
3808 (disable_command, enable_command): Handle static tracepoints.
3809 (trace_command, ftrace_command): Adjust.
3810 (strace_command): New.
3811 (create_tracepoint_from_upload): Adjust.
3812 (save_breakpoints): Handle static tracepoints.
3813 (_initialize_breakpoint): Install the "strace" command.
3814 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3815 (struct breakpoint): New fields static_trace_marker_id and
3816 static_trace_marker_id_idx.
3817 (breakpoints_here_p): Declare.
3818 (create_breakpoint): Adjust.
3819 (static_tracepoints_here): Declare.
3820 * remote.c (struct remote_state) <static_tracepoints>: New field.
3821 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3822 (remote_static_tracepoint_marker_at): New.
3823 (remote_static_tracepoint_markers_by_strid): New.
3824 (remote_static_tracepoint_feature): New.
3825 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3826 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3827 (remote_supports_static_tracepoints): New.
3828 (remote_download_tracepoint): Download static tracepoints.
3829 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3830 remote_static_tracepoint_markers_by_strid.
3831 (_initialize_remote): Install set|show remote static-tracepoints,
3832 and set|show remote read-sdata-object commands.
3833 * target.c (update_current_target): Inherit and default
3834 to_static_tracepoint_marker_at, and
3835 to_static_tracepoint_markers_by_strid.
3836 * target.h (static_tracepoint_marker): Forward declare.
3837 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3838 (static_tracepoint_marker_p): New typedef.
3839 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3840 (struct target_ops): New fields to_static_tracepoint_marker_at and
3841 to_static_tracepoint_markers_by_strid.
3842 (target_static_tracepoint_marker_at)
3843 (target_static_tracepoint_markers_by_strid): New.
3844 * tracepoint.c: Include source.h.
3845 (validate_actionline): Handle $_sdata.
3846 (struct collection_list): New field strace_data.
3847 (add_static_trace_data): New.
3848 (clear_collection_list): Clear strace_data.
3849 (stringify_collection_list): Account for a possible static trace
3851 (encode_actions_1): Encode an $_sdata collection.
3852 (parse_tracepoint_definition): Handle static tracepoints.
3853 (parse_static_tracepoint_marker_definition): New.
3854 (release_static_tracepoint_marker): New.
3855 (print_one_static_tracepoint_marker): New.
3856 (info_static_tracepoint_markers_command): New.
3857 (sdata_make_value): New.
3858 (_initialize_tracepoint): Create the $_sdata convenience variable.
3859 Add the "info static-tracepoint-markers" command.
3860 Mention $_sdata in the "collect" command's help output.
3861 * tracepoint.h (struct static_tracepoint_marker): New.
3862 (parse_static_tracepoint_marker_definition)
3863 (release_static_tracepoint_marker): Declare.
3864 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3865 * python/py-breakpoint.c (bppy_new): Adjust.
3867 2010-06-30 Joel Brobecker <brobecker@adacore.com>
3869 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3872 2010-06-29 Doug Evans <dje@google.com>
3875 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3876 DW_AT_external is present.
3880 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3881 create a symbol for the field and record the value.
3882 (new_symbol): Handle DW_TAG_member.
3883 * gdbtypes.c (field_is_static): Remove FIXME.
3884 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3885 only ignore LOC_CONST symbols that are enums.
3887 * dwarf2read.c: Remove trailing whitespace.
3889 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3890 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3891 (struct main_type, field loc): Delete dwarf_block.
3892 (FIELD_DWARF_BLOCK): Delete.
3893 (SET_FIELD_DWARF_BLOCK): Delete.
3894 (TYPE_FIELD_DWARF_BLOCK): Delete.
3895 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3898 2010-06-29 Hui Zhu <teawater@gmail.com>
3900 * record.c (set_record_pic_cmdlist,
3901 show_record_pic_cmdlist): New variables.
3902 (set_record_pic_command,
3903 show_record_pic_command): New functions.
3904 (record_pic_function, record_pic_line, record_pic_enum,
3905 set_record_pic_type, record_pic_hide_nofunction,
3906 record_pic_hide_nosource, record_pic_hide_same): New variables.
3907 (record_pic_fputs): New function.
3908 (function_list, node_list, edge_list): New struct.
3909 (function_list, node_list, edge_list): New variables.
3910 (record_pic_cleanups, record_pic_node,
3911 record_pic_edge, cmd_record_pic): New functions.
3912 (_initialize_record): Add new commands for record pic.
3914 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3916 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3917 ALLOCATE_CPLUS_STRUCT_TYPE.
3919 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
3920 Tom Tromey <tromey@redhat.com>
3921 Thiago Jung Bauermann <bauerman@br.ibm.com>
3923 * value.c (pack_unsigned_long): New function.
3924 (value_from_ulongest): New function.
3925 * value.h (value_from_ulongest): Declare.
3926 * python/python.c (_initialize_python): Call
3927 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3928 * python/python-internal.h: Define thread_object.
3929 (gdbpy_inferiors, gdbpy_selected_thread)
3930 (frame_info_to_frame_object, create_thread_object)
3931 (find_thread_object, find_inferior_object)
3932 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3933 (gdbpy_is_value_object, get_addr_from_python): Declare.
3934 * python/py-value.c (builtin_type_upylong): Define.
3935 (convert_value_from_python): Add logic for ulongest.
3936 (gdbpy_is_value_object): New function.
3937 * python/py-utils.c (get_addr_from_python): New function.
3938 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3939 (gdbpy_selected_frame): Use PyObject over frame_info.
3940 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3942 (SUBDIR_PYTHON_SRCS): Likewise.
3943 (py-inferior.o): New Rule.
3944 (py-infthread.o): New Rule.
3945 * python/py-inferior.c: New File.
3946 * python/py-infthread.c: New File.
3948 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3950 * c-typeprint.c (c_type_print_base): For no fields check include also
3951 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3952 * dwarf2read.c (struct typedef_field_list)
3953 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3954 (dwarf2_add_typedef): New.
3955 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3956 Copy also FI.TYPEDEF_FIELD_LIST.
3957 * gdbtypes.h (struct typedef_field)
3958 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3959 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3960 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3962 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3964 * cp-namespace.c (cp_lookup_nested_type): New variable
3965 concatenated_name. Turn the current return condition into a reverse
3966 one. Call also lookup_static_symbol_aux on the constructed qualified
3968 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3969 other files into a called ...
3970 (lookup_static_symbol_aux): ... new function here.
3971 * symtab.h (lookup_static_symbol_aux): New prototype.
3972 * valops.c (value_maybe_namespace_elt): Call also
3973 lookup_static_symbol_aux if we failed otherwise.
3975 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3977 Fix PR c++/11703 and PR gdb/1448.
3978 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3981 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3983 Fix modification of cplus_struct_default.
3984 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3985 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3986 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3988 2010-06-28 Joel Brobecker <brobecker@adacore.com>
3990 * NEWS: Add entry announcing the python directory.
3992 2010-06-28 Tom Tromey <tromey@redhat.com>
3994 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3996 2010-06-28 Doug Evans <dje@google.com>
3998 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3999 All callers updated.
4001 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4003 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4004 obstack_begin after each obstack_free.
4006 2010-06-27 Doug Evans <dje@google.com>
4008 * value.c (value_static_field): Use `switch' instead of `if'.
4009 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4011 * valops.c (search_struct_field): Fix typo in error message.
4013 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4015 * dwarf2expr.c (execute_stack_op): Place preprocessor
4016 directives at the start of the source line.
4018 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4020 * defs.h (make_command_stats_cleanup): Declare.
4021 (set_display_time): Declare.
4022 (set_display_space): Declare.
4023 * event-top.c (command_handler): Use make_command_stats_cleanup.
4024 * main.c (display_time, display_space): Move definitions to utils.c.
4025 (captured_main): Use make_command_stats_cleanup to get start-up
4027 Use set_display_time and set_display_space for processing OPT_STATISTICS
4029 * maint.c (maintenance_time_display): Use set_display_time.
4030 (maintenance_space_display): Use set_display_space.
4031 * top.c (execute_command): Remove obsolete 'maint time' code.
4032 (command_loop): Use make_command_stats_cleanup.
4033 * utils.c (struct cmd_stats): Structure for storing initial time
4035 (display_time, display_space): Move definitions here from utils.c.
4036 (set_display_time): New function.
4037 (set_display_space): New function.
4038 (make_command_stats_cleanup): New function.
4039 (report_command_stats): New auxiliary function for
4040 make_command_stats_cleanup.
4042 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4044 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4045 hosts where CORE_ADDR is long long.
4047 2010-06-25 Tom Tromey <tromey@redhat.com>
4050 * python/python.c (execute_gdb_command): Add keywords. Accept
4051 "to_string" argument.
4052 (struct restore_ui_file_closure): New.
4053 (restore_ui_file): New function.
4054 (make_cleanup_restore_ui_file): Likewise.
4055 (GdbMethods) <execute>: Update.
4057 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4059 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4060 during inferior call stack frame setup.
4062 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
4064 * solib-spu.c: Include "exception.h".
4065 (ocl_program_data_key): New variable.
4066 (append_ocl_sos): New function.
4067 (ocl_enable_break): Likewise.
4068 (spu_current_sos): Call append_ocl_sos.
4069 (spu_solib_loaded): Call ocl_enable_break.
4070 (_initialize_spu_solib): Register ocl_program_data_key.
4072 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4074 * cp-support.c (reset_directive_searched): New function.
4075 (make_symbol_overload_list_using): Prevent recursive calls.
4077 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4079 * printcmd.c (print_variable_and_value): Print error message on
4082 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4084 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4086 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4088 (dwarf_expr_push): Change input type to ULONGEST.
4089 (dwarf_expr_fetch): Change return type to ULONGEST.
4090 (dwarf_expr_fetch_address): Add prototype.
4091 (dwarf2_read_address): Remove prototype.
4092 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4093 Truncate stack values to ctx->addr_size bytes.
4094 (dwarf_expr_fetch): Change return value to ULONGEST.
4095 (dwarf_expr_fetch_address): New function.
4096 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4097 when appropriate. Update for struct dwarf_expr_piece changes.
4098 (dwarf2_read_address): Remove.
4099 (unsigned_address_type): Remove.
4100 (signed_address_type): Remove.
4101 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4102 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4103 values. Perform operations on ULONGEST instead of on GDB values,
4104 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4105 values and DW_OP_deref results as unsigned integers.
4106 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4108 (write_pieced_value): Likewise.
4109 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4110 dwarf_expr_fetch when appropriate.
4111 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4112 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4113 instead of dwarf_expr_fetch when appropriate.
4115 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4117 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4119 2010-06-24 Joel Brobecker <brobecker@adacore.com>
4121 * python/python.c (_initialize_python): Add new "constant"
4122 PYTHONDIR in gdb module. Insert this path at the head of
4123 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4124 exec its __init__.py script if it exists in that directory.
4126 2010-06-24 Kevin Buettner <kevinb@redhat.com>
4128 * rx-tdep.c (RX_ACC_REGNUM): Define.
4129 (RX_NUM_REGS): Redefine to 26.
4130 (rx_register_name): Add register "acc". Change order of several
4131 registers. Change name of "vct" register to "fintv" to match RX
4133 (rx_register_type): Add case for RX_ACC_REGNUM.
4135 2010-06-24 Tom Tromey <tromey@redhat.com>
4137 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4139 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4140 Tom Tromey <tromey@redhat.com>
4142 Fix GDB startup on readonly filesystem.
4143 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4145 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4146 Pedro Alves <pedro@codesourcery.com>
4149 * breakpoint.c (handle_jit_event): New function.
4150 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4151 jit, err, table and bs_class. New variables shlib_event, jit_event,
4152 this_action and bptype. Change bs_class assignments to this_action
4153 assignments. new unhandled bptype internal error. Move here
4154 shlib_event and jit_event handling from handle_inferior_event.
4155 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4156 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4157 BPSTAT_WHAT_CHECK_JIT.
4158 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4159 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4160 (handle_inferior_event): Reinitialize frame and gdbarch after
4161 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4162 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4163 gdbarch when frame gets reinitialized.
4165 2010-06-24 Hui Zhu <teawater@gmail.com>
4167 * printcmd.c (ui_printf): New function.
4168 (printf_command): Call ui_printf.
4169 (_initialize_printcmd): New command "eval".
4171 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4173 * infrun.c (handle_inferior_event): Handle presence of single-step
4174 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4175 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4176 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4177 * breakpoint.c (detach_single_step_breakpoints): New function.
4178 (detach_breakpoints): Call it.
4179 (cancel_single_step_breakpoints): New function.
4180 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4182 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4183 (spu_gdbarch_init): Install it.
4185 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4187 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4188 * configure: Regenerate.
4190 2010-06-22 Hui Zhu <teawater@gmail.com>
4192 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4193 (i386_process_record): Ditto.
4194 * record.c (record_memory_query): New variable.
4195 (_initialize_record): New command "set record memory-query".
4196 * record.h (record_memory_query): New extern.
4198 2010-06-21 Doug Evans <dje@google.com>
4200 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4201 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4202 (i386_syscall_p): Change type of lengthp to int.
4203 (i386_displaced_step_fixup): Handle kernels that run one past a
4205 * i386-linux-tdep.c (i386_linux_init_abi): Use
4206 i386_displaced_step_copy_insn instead of
4207 simple_displaced_step_copy_insn.
4209 2010-06-21 Tom Tromey <tromey@redhat.com>
4211 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4212 (dwarf_type_encoding_name): Likewise.
4214 2010-06-21 Tom Tromey <tromey@redhat.com>
4216 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4217 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4218 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4219 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4220 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4221 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4222 * dwarf2read.c (tag_type_to_type): Create a new error type on
4224 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4225 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4227 2010-06-21 Michael Snyder <msnyder@vmware.com>
4229 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4230 not add_abbrev_prefix_cmd, for "enable breakpoints".
4232 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4234 * dwarf2loc.c (find_location_expression): Add relocation offset
4235 to base-address-selection entry base addresses. Read addresses
4236 (and offsets) as signed/unsigned integers, depending on the
4237 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4238 (loclist_describe_location): Likewise.
4239 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4240 unsigned integer. Do not call dwarf2_read_address.
4241 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4243 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4245 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4246 value instead of hard-coded SPU_LS_SIZE.
4247 (spu_software_single_step): Likewise.
4248 * spu-tdep.h (SPU_LS_SIZE): Remove.
4250 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4252 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4253 limit on local store memory accesses.
4254 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4255 * spu-tdep.c (spu_lslr): Remove.
4256 (spu_pointer_to_address): Do not truncate addresses.
4257 (spu_integer_to_address): Likewise.
4258 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4259 * spu-tdep.h: Add comments.
4260 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4261 (SPU_OVERLAY_LMA): Define.
4263 2010-06-18 Stan Shebs <stan@codesourcery.com>
4265 * osdata.c (get_osdata): Warn separately if target does not report
4267 (info_osdata_command): Allow empty type, report error if target
4268 does not return available types of OS data.
4269 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4270 types if no annex supplied.
4272 * thread.c (thread_id_make_value): Make a value representing the
4274 (_initialize_thread): Create $_thread.
4276 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4278 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4279 last local variable declaration. No real code change.
4281 2010-06-17 Tom Tromey <tromey@redhat.com>
4283 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4284 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4287 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4288 Jan Kratochvil <jan.kratochvil@redhat.com>
4290 * breakpoint.c: Include parser-defs.h.
4291 (watchpoint_exp_is_const): New function.
4292 (watch_command_1): Call watchpoint_exp_is_const to check
4293 if the expression is constant.
4295 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4297 * configure.ac: Check for RDYNAMIC also for cross builds.
4298 * configure: Regenerate.
4300 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4302 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4303 (SFILES): Remove solib-null.c, add solib-target.c.
4304 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4305 (ALLDEPFILES): Remove solib-target.c.
4306 * solib-target.c (_initialize_solib_target): Set
4307 current_target_so_ops to solib_target_so_ops if not already set.
4308 * solib-null.c: Delete.
4310 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4312 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4315 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4317 * cp-valprint.c (cp_print_static_field): Members of
4318 dont_print_stat_array_obstack are of type "struct type *".
4319 (_initialize_cp_valprint): Likewise.
4321 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4323 * frame.c (frame_register_unwind): Do not access contents
4324 of "optimized out" unwound register value.
4326 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4328 * ada-lang.h (ada_print_type): Make varstring const.
4329 * ada-typeprint.c (print_func_type): Make name const.
4330 (ada_print_type): Make varstring const.
4331 * c-lang.h (c_print_type): Make varstring const.
4332 * c-typeprint.c (c_print_type): Likewise.
4333 * f-lang.h (f_print_type): Likewise.
4334 * f-typeprint.c (f_print_type): Likewise.
4335 * jv-lang.h (java_print_type): Likewise.
4336 * jv-typeprint.c (java_print_type): Likewise.
4337 * language.c (unk_lang_print_type): Likewise.
4338 * language.h (struct language_defn) <la_print_type>: Likewise.
4339 * m2-lang.h (m2_print_type): Likewise.
4340 * m2-typeprint.c (m2_print_type): Likewise.
4341 * p-lang.h (pascal_print_type): Likewise.
4342 * p-typeprint.c (pascal_print_type): Likewise.
4344 2010-06-11 Stan Shebs <stan@codesourcery.com>
4346 Add per-operation permission flags.
4348 * target.h (struct target_ops): New method to_set_permissions.
4349 (target_set_permissions): New macro.
4350 (target_insert_breakpoint): Change macro to function.
4351 (target_remove_breakpoint): Ditto.
4352 (target_stop): Ditto.
4353 (may_write_registers): Declare.
4354 (may_write_memory): Declare.
4355 (may_insert_breakpoints): Declare.
4356 (may_insert_tracepoints): Declare.
4357 (may_insert_fast_tracepoints): Declare.
4358 (may_stop): Declare.
4359 * target.c (may_write_registers, may_write_registers_1): New globals.
4360 (may_write_memory, may_write_memory_1): New globals.
4361 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4362 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4363 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4365 (may_stop, may_stop_1): New global.
4366 (target_xfer_partial): Test for write permission.
4367 (target_store_registers): Ditto.
4368 (target_insert_breakpoint): New function.
4369 (target_remove_breakpoint): New function.
4370 (target_stop): New function.
4371 (_initialize_targets): Add new set/show variables.
4372 (set_write_memory_permission): New function.
4373 (update_target_permissions): New function.
4374 (set_target_permissions): New function.
4375 (update_current_target): Default to_set_permissions.
4376 (_initialize_targets): Use new globals and setter function.
4377 * tracepoint.c (start_tracing): Test for permission.
4378 * inferior.h (update_observer_mode): Declare.
4379 * infrun.c (non_stop_1): Define earlier.
4380 (observer_mode, observer_mode_1): New globals.
4381 (set_observer_mode, show_observer_mode): New functions.
4382 (update_observer_mode): New function.
4383 (_initialize_infrun): Define "set observer" command.
4384 * remote.c (PACKET_QAllow): New optional packet.
4385 (remote_protocol_features): Add QAllow.
4386 (remote_set_permissions): New function.
4387 (remote_start_remote): Call it.
4388 (init_remote_ops): Add it to target vector.
4389 (_initialize_remote): Add config command for QAllow.
4391 2010-06-11 Tom Tromey <tromey@redhat.com>
4393 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4394 DW_AT_vtable_elem_location even when GCC extension is seen.
4396 2010-06-11 Tom Tromey <tromey@redhat.com>
4398 PR gdb/9977, PR exp/11636:
4399 * value.h (value_offset): Update.
4400 (struct lval_funcs) <check_validity>: New field.
4401 <copy_closure>: Make argument const.
4402 (value_computed_closure): Update.
4403 (value_contents_for_printing): Declare.
4404 (value_bits_valid): Likewise.
4405 (val_print): Likewise.
4406 (set_value_component_location): Update.
4407 (value_entirely_optimized_out): Declare.
4408 * value.c (value_offset): Argument now const.
4409 (require_not_optimized_out): New function.
4410 (value_contents_for_printing): New function.
4411 (value_contents_all): Call require_not_optimized_out.
4412 (value_contents): Likewise.
4413 (value_bits_valid): New function.
4414 (value_computed_closure): Argument now const.
4415 (set_value_component_location): Make 'whole' argument const.
4416 (value_entirely_optimized_out): New function.
4417 (value_bitsize): Argument now 'const'.
4418 (value_bitpos): Likewise.
4419 (value_type): Likewise.
4420 * valprint.h (val_print_array_elements): Update.
4421 * valprint.c (val_print): Add 'val' argument. Use
4422 valprint_check_validity.
4423 (valprint_check_validity): New function.
4424 (value_check_printable): Use value_entirely_optimized_out.
4425 (common_val_print): Update.
4426 (value_print): Likewise.
4427 (val_print_array_elements): Add 'val' argument.
4428 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4429 value_bits_valid. Reinit frame cache for lval_computed.
4430 * sh64-tdep.c (sh64_do_register): Update.
4431 * scm-valprint.c (scm_val_print): Add 'val' argument.
4432 * scm-lang.h (scm_val_print): Update.
4433 * python/python.h (apply_val_pretty_printer): Update.
4434 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4435 argument. Call set_value_component_location.
4436 * printcmd.c (print_scalar_formatted): Update.
4437 * p-valprint.c (pascal_val_print): Add 'val' argument.
4438 (pascal_object_print_value_fields): Likewise.
4439 (pascal_object_print_value): Likewise.
4440 (pascal_object_print_static_field): Update.
4441 * p-lang.h (pascal_val_print): Update.
4442 (pascal_object_print_value_fields): Update.
4443 * mt-tdep.c (mt_registers_info): Update.
4444 * mi/mi-main.c (get_register): Update.
4445 (mi_cmd_data_evaluate_expression): Use common_val_print.
4446 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4447 (m2_print_unbounded_array): Likewise.
4448 (m2_val_print): Likewise.
4449 * m2-lang.h (m2_val_print): Update.
4450 * language.h (struct language_defn) <la_val_print>: Add 'val'
4452 (LA_VAL_PRINT): Likewise.
4453 * language.c (unk_lang_val_print): Add 'val' argument.
4454 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4455 (java_val_print): Likewise.
4456 * jv-lang.h (java_val_print): Add 'val' argument.
4457 * infcmd.c (default_print_registers_info): Update.
4458 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4459 (f77_print_array): Likewise.
4460 (f_val_print): Likewise.
4461 * f-lang.h (f_val_print): Add 'val' argument.
4462 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4464 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4465 set_value_optimized_out.
4466 (write_pieced_value): Use value_bitsize and value_bitpos.
4467 <default>: Don't exit loop.
4468 (check_pieced_value_validity): New function.
4469 (pieced_value_funcs): Reference check_pieced_value_validity,
4470 check_pieced_value_invalid.
4471 (copy_pieced_value_closure): Update.
4472 (check_pieced_value_bits): New function.
4473 (check_pieced_value_invalid): New function.
4474 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4475 (d_val_print): Likewise.
4476 * d-lang.h (d_val_print): Update.
4477 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4478 (cp_print_value_fields_rtti): Likewise.
4479 (cp_print_value): Likewise.
4480 (cp_print_static_field): Update.
4481 * c-valprint.c (c_val_print): Add 'val' argument.
4482 (c_value_print): Update.
4483 * c-lang.h (c_val_print): Update.
4484 (cp_print_value_fields): Likewise.
4485 (cp_print_value_fields_rtti): Likewise.
4486 * ada-valprint.c (struct ada_val_print_args): Remove.
4487 (val_print_packed_array_elements): Add 'val' argument.
4488 (ada_val_print): Likewise. Rewrite.
4489 (ada_val_print_stub): Remove.
4490 (ada_val_print_array): Add 'val' argument.
4491 (ada_val_print_1): Likewise.
4492 (print_variant_part): Likewise.
4493 (ada_value_print): Update.
4494 (print_record): Add 'val' argument.
4495 (print_field_values): Likewise.
4496 * ada-lang.h (ada_val_print): Update.
4498 2010-06-11 Tom Tromey <tromey@redhat.com>
4500 * vec.h (VEC_cleanup): New macro.
4501 (DEF_VEC_ALLOC_FUNC_I): Update.
4502 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4503 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4504 * dwarf2loc.c (struct axs_var_loc): Remove.
4505 (unimplemented): New function.
4506 (translate_register): Likewise.
4507 (access_memory): Likewise.
4508 (compile_dwarf_to_ax): Likewise.
4509 (dwarf2_tracepoint_var_loc): Remove.
4510 (dwarf2_tracepoint_var_access): Likewise.
4511 (dwarf2_tracepoint_var_ref): Likewise.
4512 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4513 (loclist_tracepoint_var_ref): Likewise.
4514 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4515 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4516 require_composition. No longer static.
4517 (execute_stack_op): Update.
4518 * ax-gdb.h (trace_kludge): Declare.
4520 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4522 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4523 (should_be_inserted): Return zero also on NULL OWNER.
4524 (breakpoint_program_space_exit): New OWNER comment.
4525 (insert_breakpoint_locations): Extend comment for OWNER.
4526 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4527 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4529 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4530 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4531 (bpstat_check_location): New assert on OWNER.
4532 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4533 and B initializations to the code block. New assert on them.
4534 (print_one_breakpoint_location): New OWNER comment.
4535 (watchpoint_locations_match): Assert on OWNER.
4536 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4537 initializations to the code block. New assert on OWNER.
4538 (set_breakpoint_location_function): New assert on OWNER.
4539 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4540 (bp_location_compare, update_global_location_list)
4541 (update_global_location_list): New OWNER comment.
4543 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4545 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4547 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4549 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4550 (lin_thread_get_thread_signals): Remove prototype.
4551 (GET_THREAD_SIGNALS): Remove.
4552 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4553 * linux-thread-db.c (check_thread_signals): Directly call
4554 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4556 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4558 * gregset.h (GDB_FPXREGSET_T): Remove.
4559 (gdb_fpxregset_t): Likewise.
4560 (supply_fpxregset): Remove prototype.
4561 (fill_fpxregset): Likewise.
4562 * i386-linux-nat.c (supply_fpxregset): Remove.
4563 (fill_fpxregset): Likewise.
4564 (fetch_fpxregs): Inline supply_fpxregset call.
4565 (store_fpxregs): Inline fill_fpxregset call.
4567 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4568 * config/i386/nm-linux.h: Remove file.
4570 2010-06-09 Michael Snyder <msnyder@vmware.com>
4572 * target.c (update_current_target): Fix spelling error in comment.
4573 (target_mourn_inferior): Fix spelling error in error message.
4575 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4577 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4578 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4580 2010-06-08 Michael Snyder <msnyder@vmware.com>
4582 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4584 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4586 * configure.ac <"${have_libpython}" != no>: New workaround of
4588 * configure: Regenerate.
4590 2010-06-08 Hui Zhu <teawater@gmail.com>
4592 * record.c (record_wait): Move signal out of replay code.
4594 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4597 * dwarf2-frame.c (no_dwarf_call): New function.
4598 (execute_stack_op): Set CTX->DWARF_CALL.
4599 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4600 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4601 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4602 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4603 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4604 (needs_frame_dwarf_call): New function.
4605 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4606 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4607 Update the comment. Move variables die, offset and error call to ...
4608 (follow_die_ref): ... a new function.
4609 (dwarf2_fetch_die_location_block): New function.
4610 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4612 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4614 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4615 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4616 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4617 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4619 (struct needs_frame_baton): New field per_cu.
4620 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4621 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4623 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4625 * cp-support.c (make_symbol_overload_list_namespace): Only search
4626 static and global blocks.
4627 (make_symbol_overload_list_block): New function.
4628 (make_symbol_overload_list): Separate namespace search from block
4630 (make_symbol_overload_list_qualified): Use
4631 make_symbol_overload_list_block.
4633 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4635 * value.h: Created oload_search_type enum.
4636 (find_overload_match): Use oload_search_type enum.
4637 * valops.c (find_overload_match): Support combined member and
4639 * eval.c (evaluate_subexp_standard): Calls to
4640 find_overload_match now use oload_search_type enum.
4641 (oload_method_static): Verify index is a proper value.
4642 * valarith.c (value_user_defined_cpp_op): Search for and handle
4643 both member and non-member operators.
4644 (value_user_defined_cpp_op): New function.
4645 (value_user_defined_op): New function.
4646 (value_x_unop): Use value_user_defined_op.
4647 (value_x_binop): Ditto.
4648 * cp-support.c (make_symbol_overload_list_using): Added block
4650 Add check for namespace aliases and imported declarations.
4652 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4654 * breakpoint.h (owner): Extend the comment.
4656 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4658 Clear stale specific bp_location from former whole breakpoint.
4659 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4661 (free_bp_location): ... here. Rename there the called function to
4662 bpstat_remove_bp_location_callback.
4663 (bpstat_remove_breakpoint_callback): Rename to ...
4664 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4665 to struct bp_location. Change the called function to
4666 bpstat_remove_bp_location. Create new declaration for the function.
4667 (bpstat_remove_breakpoint): Rename to ...
4668 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4669 code for the new parameter type.
4671 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4673 * README: Make version-agnostic.
4675 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4677 Fix duplicate types for single DIE.
4678 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4680 (read_array_type): Remove type initialization. Recheck get_die_type
4681 after initial die_type. Move set_die_type before set_descriptive_type.
4682 (read_set_type): New variable domain_type. Recheck get_die_type after
4683 initial die_type. Move attr initialization later.
4684 (read_tag_pointer_type, read_tag_reference_type): New variable
4685 target_type. Recheck get_die_type after initial die_type.
4686 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4687 die_type and die_containing_type.
4688 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4689 Recheck get_die_type after initial die_type.
4690 (read_subrange_type): Recheck get_die_type after initial die_type.
4691 Move set_die_type before set_descriptive_type.
4692 (set_die_type): Extend the function comment. Call complaint if DIE has
4693 some type already set.
4695 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4697 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4698 for current naming of thread groups (iN, not N).
4700 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4702 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4703 * parse.c (operator_length): Likewise.
4704 (operator_length_standard): Likewise.
4705 * parser-defs.h (operator_length): Likewise.
4706 (operator_length_standard): Likewise.
4707 (struct exp_descriptor <operator_length>): Likewise.
4709 2010-06-04 Doug Evans <dje@google.com>
4711 Add support for enabling/disabling individual pretty-printers.
4712 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4713 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4714 * python/python.c (gdbpy_enabled_cst): Define.
4715 (_initialize_python): Initialize gdbpy_enabled_cst.
4718 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4720 * breakpoint.c (update_global_location_list): Fix comment typo.
4722 2010-06-04 Hui Zhu <teawater@gmail.com>
4724 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4726 2010-06-03 Doug Evans <dje@google.com>
4728 * configure.ac: Don't fail if python is unusable when
4729 configured with --with-python=auto.
4730 * configure: Regenerate.
4732 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4734 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4736 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4738 * valprint.h (get_array_bounds): Change low and high parameter types
4740 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4742 (val_print_array_elements): Adapt to change above.
4743 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4744 * p-valprint.c (pascal_val_print): Likewise.
4746 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4748 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4749 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4752 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4754 Support DW_TAG_module as separate namespaces.
4755 * dwarf2read.c (typename_concat): New parameter physname.
4756 (read_module_type): New function and declaration.
4757 (scan_partial_symbols): Scan also DW_TAG_module children.
4758 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4759 to typename_concat backward compatible physname value 0.
4760 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4761 backward compatible physname value 0.
4762 (add_partial_module, read_module): Remove FIXME comment.
4763 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4764 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4765 DIEs under DW_TAG_module.
4766 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4767 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4768 && physname and return there instead of just setting NAME. Extend
4769 the main block for language_fortran. Pass physname parameter to the
4770 typename_concat call.
4771 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4772 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4773 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4774 missing from SYMBOL_SET_NAMES in the language_fortran case.
4775 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4777 (read_type_die) <DW_TAG_module>: New.
4778 (MAX_SEP_LEN): Increase to 7.
4779 (typename_concat): New parameter physname. New variable lead. Support
4780 also language_fortran.
4781 * f-exp.y (yylex): Consider : also as a symbol name character class.
4782 * f-lang.c: Include cp-support.h.
4783 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4784 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4785 f_word_break_characters and f_make_symbol_completion_list.
4786 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4787 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4788 * symtab.c (symbol_init_language_specific): Support language_fortran.
4789 (symbol_find_demangled_name): New comment on language_fortran.
4790 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4791 for language_fortran.
4792 (lookup_symbol_aux_local): Check imports also for language_fortran.
4793 (default_make_symbol_completion_list): Rename to ...
4794 (default_make_symbol_completion_list_break_on): ... this name. New
4795 parameter break_on, use it.
4796 (default_make_symbol_completion_list): New stub.
4797 * symtab.h (default_make_symbol_completion_list_break_on): New
4800 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4802 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4805 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4807 * dwarf2read.c (typename_concat): Add const to the variable sep.
4809 2010-06-02 Tom Tromey <tromey@redhat.com>
4811 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4812 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4813 type is const. Add 'def' argument. Add missing operators, remove
4815 (decode_locdesc): Update.
4816 (dwarf2_always_disassemble): New global.
4817 (show_dwarf2_always_disassemble): New function.
4818 (_initialize_dwarf2_read): Add always-disassemble.
4819 (dwarf2_per_cu_offset_size): New function.
4820 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4821 (piece_end_p): New function.
4822 (locexpr_describe_location_piece): Replace 'size' argument with
4823 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4824 some constants. Remove errors.
4825 (disassemble_dwarf_expression): New function.
4826 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4827 Add 'offset_size' argument.
4828 (loclist_describe_location): Change output formatting.
4829 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4831 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4833 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4834 anonymous type case.
4836 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4838 * dwarf2read.c (read_subrange_type): Handle missing base type
4839 according to Dwarf-2 specifications.
4841 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4843 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4845 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4846 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4847 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4848 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4849 UNOP_CHMAX, UNOP_CHMIN.
4850 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4851 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4852 UNOP_CHMIN>: Remove opcodes.
4854 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4856 * dwarf2read.c (read_func_scope): Do not complain for
4857 external function if bounds are not found.
4859 2010-06-01 Pedro Alves <pedro@codesourcery.com>
4861 * NEWS: Mention gdbserver fast tracepoints support.
4863 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4865 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4867 (windows_set_console_info): New function.
4868 (windows_create_inferior): Call windows_set_console_info
4869 if NEW_CONSOLE is true.
4870 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4871 (_initialize_loadable): Initialize GetConsoleFontSize and
4872 GetCurrentConsoleFont.
4874 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4876 * Makefile.in (RDYNAMIC): New.
4877 (SFILES): Add proc-service.list.
4878 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4879 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4880 * config/arm/linux.mh: Likewise.
4881 * config/i386/linux.mh: Likewise.
4882 * config/i386/linux64.mh: Likewise.
4883 * config/ia64/linux.mh: Likewise.
4884 * config/m32r/linux.mh: Likewise.
4885 * config/m68k/linux.mh: Likewise.
4886 * config/mips/linux.mh: Likewise.
4887 * config/pa/linux.mh: Likewise.
4888 * config/powerpc/linux.mh: Likewise.
4889 * config/powerpc/ppc64-linux.mh: Likewise.
4890 * config/s390/s390.mh: Likewise.
4891 * config/sparc/linux.mh: Likewise.
4892 * config/sparc/linux64.mh: Likewise.
4893 * config/xtensa/linux.mh: Likewise.
4894 * configure.ac: New RDYNAMIC on native host and GCC.
4895 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4896 * configure: Regenerate.
4897 * proc-service.list: New.
4899 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4901 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4904 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4906 * linux-nat.c (linux_nat_wait_1): Do not call
4907 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4908 TARGET_WAITKIND_SIGNALLED.
4910 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4912 * ada-lang.c (ada_inferior_data): New struct.
4913 (ada_inferior_data): New static global.
4914 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4915 (ada_get_tsd_type): New functions.
4916 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4917 to look the tsd type up.
4918 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4919 event. Set ada_inferior_data.
4921 2010-05-27 Pedro Alves <pedro@codesourcery.com>
4923 * remote.c (unpack_varlen_hex): Remove forward declaration.
4924 (remote_console_output): Make static, and add forward declaration.
4925 * remote.h: Drop FIXME comment.
4926 (unpack_varlen_hex): Declare.
4927 (remote_console_output, remote_cisco_objfile_relocate)
4928 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4929 Delete declarations.
4930 * tracepoint.c: Include "remote.h".
4931 (unpack_varlen_hex): Delete declaration.
4933 2010-05-27 Tom Tromey <tromey@redhat.com>
4935 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4936 (allocate_piece_closure): Initialize refc.
4937 (copy_pieced_value_closure): Use refc.
4938 (free_pieced_value_closure): Likewise.
4940 2010-05-27 Tom Tromey <tromey@redhat.com>
4942 * arm-tdep.c (push_stack_item): 'contents' now const.
4943 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4944 value_contents_writeable. Introduce new temporary.
4946 2010-05-27 Tom Tromey <tromey@redhat.com>
4948 * findcmd.c (parse_find_args): Use value_contents, not
4951 2010-05-27 Tom Tromey <tromey@redhat.com>
4953 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4954 const. Use value_contents, not value_contents_writeable.
4956 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4958 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4959 by call to value_contents.
4961 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4963 * MAINTAINERS: Add myself for write after approval privileges.
4965 2010-05-26 Doug Evans <dje@google.com>
4967 Allow python to find its files if moved from original location.
4968 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4969 (GDB_AC_WITH_DIR): Call it.
4970 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4971 python installation directory.
4972 * config.in: Regenerate.
4973 * configure: Regenerate.
4974 * defs.h (python_libdir): Declare.
4975 * main.c (python_libdir): Define.
4976 (captured_main): Initialize python_libdir.
4977 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4978 call Py_SetProgramName to make sure python can find its libraries
4981 * configure.ac: Try to use python's distutils to fetch compilation
4983 * configure: Regenerate.
4984 * python/python-config.py: New file.
4986 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4988 * ser-tcp.c (net_open): Check error return from socket() call by its
4989 equality to -1 not by it being negative.
4990 (net_close): Likewise.
4992 2010-05-26 Pedro Alves <pedro@codesourcery.com>
4994 * NEWS: Mention the `qRelocInsn' feature.
4995 * gdbarch.sh (relocate_instruction): New.
4996 * amd64-tdep.c (rip_relative_offset): New.
4997 (append_insns): New.
4998 (amd64_relocate_instruction): New.
4999 (amd64_init_abi): Install it.
5000 * i386-tdep.c (append_insns): New.
5001 (i386_relocate_instruction): New.
5002 (i386_gdbarch_init): Install it.
5003 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5004 * gdbarch.h, gdbarch.c: Regenerate.
5006 2010-05-26 Tom Tromey <tromey@redhat.com>
5008 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5009 (struct dwarf2_loclist_baton) <data>: Likewise.
5010 * dwarf2loc.c (find_location_expression): Constify return type.
5011 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5012 (dwarf2_loc_desc_needs_frame): Likewise.
5013 (loclist_read_variable): Constify.
5014 (loclist_describe_location): Likewise.
5015 (loclist_tracepoint_var_ref): Likewise.
5017 2010-05-25 Tom Tromey <tromey@redhat.com>
5019 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5020 (dwarf_expr_frame_base_1): Likewise.
5021 (read_pieced_value): Update.
5022 (needs_frame_frame_base): Constify.
5023 (dwarf2_tracepoint_var_loc): Likewise.
5024 (dwarf2_tracepoint_var_access): Likewise.
5025 (locexpr_describe_location_piece): Likewise.
5026 (locexpr_describe_location_1): Likewise.
5027 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5030 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5031 (dwarf_expr_eval, read_uleb128, read_sleb128)
5032 (dwarf2_read_address): Update.
5033 * dwarf2expr.c (dwarf_expr_eval): Constify.
5034 (read_uleb128): Likewise.
5035 (read_sleb128): Likewise.
5036 (dwarf2_read_address): Likewise.
5037 (require_composition): Likewise.
5038 (execute_stack_op): Likewise.
5039 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5041 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5043 (no_get_frame_base): Constify.
5044 (execute_stack_op): Likewise.
5045 (execute_cfa_program): Likewise.
5046 (read_encoded_value): Likewise.
5048 2010-05-25 Doug Evans <dje@google.com>
5050 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5052 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5053 * event-loop.c: ... here.
5054 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5055 `error' for clarity.
5056 (tui_getc): Pass correct value for `error' parameter to
5057 tui_readline_output.
5059 Add python gdb.GdbError and gdb.string_to_argv.
5060 * NEWS: Document them.
5061 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5062 the exception is gdb.GdbError. Print a second traceback if there's
5063 an error computing the error message.
5064 (gdbpy_string_to_argv): New function.
5065 * python/py-utils.c (gdbpy_obj_to_string): New function.
5066 (gdbpy_exception_to_string): New function.
5067 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5068 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5069 (gdbpy_gdberror_exc): Declare.
5070 * python/python.c (gdbpy_gdberror_exc): New global.
5071 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5073 (GdbMethods): Add string_to_argv.
5075 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5077 * windows-nat.c (display_selector): Call GetLastError to give better
5078 failure explanation.
5080 2010-05-24 Pedro Alves <pedro@codesourcery.com>
5082 * config.in: Regenerate.
5084 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5087 * target.c (push_target): Return only void. Remove the return value
5089 * target.h (push_target): Return only void.
5091 2010-05-23 Pedro Alves <pedro@codesourcery.com>
5093 Update gnulib from latest git.
5094 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5096 * gnulib/memcmp.c: Removed.
5097 * gnulib/memchr.valgrind: New.
5098 * gnulib/stddef.in.h: New.
5099 * gnulib/Makefile.am: Updated.
5100 * gnulib/memchr.c: Updated.
5101 * gnulib/memmem.c: Updated.
5102 * gnulib/stdint.in.h: Updated.
5103 * gnulib/str-two-way.h: Updated.
5104 * gnulib/string.in.h: Updated.
5105 * gnulib/wchar.in.h: Updated.
5107 * gnulib/extra/link-warning.h: Removed.
5108 * gnulib/extra/c++defs.h: New.
5109 * gnulib/extra/warn-on-use.h: New.
5110 * gnulib/extra/arg-nonnull.h: Updated.
5112 * gnulib/m4/extensions.m4: Updated.
5113 * gnulib/m4/gnulib-cache.m4: Updated.
5114 * gnulib/m4/gnulib-common.m4: Updated.
5115 * gnulib/m4/gnulib-comp.m4: Updated.
5116 * gnulib/m4/gnulib-tool.m4: Updated.
5117 * gnulib/m4/include_next.m4: Updated.
5118 * gnulib/m4/longlong.m4: Updated.
5119 * gnulib/m4/memchr.m4: Updated.
5120 * gnulib/m4/memmem.m4: Updated.
5121 * gnulib/m4/stdint.m4: Updated.
5122 * gnulib/m4/string_h.m4: Updated.
5123 * gnulib/m4/memcmp.m4: Removed.
5124 * gnulib/m4/onceonly_2_57.m4: Removed.
5125 * gnulib/m4/00gnulib.m4: New.
5126 * gnulib/m4/mmap-anon.m4: New.
5127 * gnulib/m4/multiarch.m4: New.
5128 * gnulib/m4/onceonly.m4: New.
5129 * gnulib/m4/stddef_h.m4: New.
5130 * gnulib/m4/warn-on-use.m4: New.
5131 * gnulib/m4/wchar.m4: Removed.
5132 * gnulib/m4/wchar_h.m4: New.
5133 * gnulib/m4/wchar_t.m4: New.
5134 * gnulib/m4/wint_t.m4: New.
5136 * aclocal.m4: Regenerate.
5137 * config.in: Likewise.
5138 * configure: Likewise.
5139 * gnulib/Makefile.in: Likewise.
5141 2010-05-21 Tom Tromey <tromey@redhat.com>
5143 * dwarf2loc.c (extract_bits_primitive): New function.
5144 (extract_bits): Likewise.
5145 (insert_bits): Likewise.
5146 (copy_bitwise): Likewise.
5147 (read_pieced_value): Do all operations in bits.
5148 (write_pieced_value): Likewise.
5149 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5150 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5151 Always use xrealloc to resize piece array.
5152 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5153 <DW_OP_piece>: Update.
5154 <DW_OP_bit_piece>: New case.
5156 2010-05-21 Tom Tromey <tromey@redhat.com>
5158 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5159 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5160 * dwarf2expr.h (enum dwarf_value_location)
5161 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5162 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5163 (add_piece): Handle empty piece.
5164 (execute_stack_op) <DW_OP_piece>: Handle
5165 DWARF_VALUE_OPTIMIZED_OUT.
5167 2010-05-21 Tom Tromey <tromey@redhat.com>
5169 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5170 evaluate_subexp, not evaluate_subexp_with_coercion.
5172 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5174 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5177 2010-05-21 Tom Tromey <tromey@redhat.com>
5179 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5181 (write_pieced_value): Likewise.
5183 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5185 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5186 and DW_TAG_volatile_type.
5187 (new_symbol): Likewise.
5189 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5191 * p-valprint.c (pascal_val_print): Call get_array_bounds
5192 to obtain the number of elements in an array.
5194 2010-05-19 Doug Evans <dje@google.com>
5196 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5198 * python.c (source_python_script): Add comment.
5199 (source_python_script_for_objfile): Remove unnecessary call to
5202 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5203 Sergio Durigan Junior <sergiodj@redhat.com>
5206 * parse.c (exp_iterate): Use operator_length wrapper function.
5208 2010-05-18 Michael Snyder <msnyder@vmware.com>
5210 * ada-lang.c: White space.
5211 * ada-typeprint.c: White space.
5212 * ada-valprint.c: White space.
5213 * addrmap.c: White space.
5214 * auxv.c: White space.
5215 * ax-gdb.c: White space.
5217 2010-05-18 Hui Zhu <teawater@gmail.com>
5219 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5221 (inferior_call_waitpid): Move make_cleanup out of check.
5222 Check the return of waitpid.
5223 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5225 2010-05-17 Michael Snyder <msnyder@vmware.com>
5227 * tui/tui.c: White space.
5228 * tui/tui-data.c: White space.
5229 * tui/tui-disasm.c: White space.
5230 * tui/tui-file.c: White space.
5231 * tui/tui-interp.c: White space.
5232 * tui/tui-main.c: White space.
5233 * tui/tui-out.c: White space.
5234 * tui/tui-regs.c: White space.
5235 * tui/tui-source.c: White space.
5236 * tui/tui-stack.c: White space.
5237 * tui/tui-win.c: White space.
5238 * tui/tui-winsource.c: White space.
5240 * procfs.c: White space.
5242 * python/py-auto-load.c: White space.
5243 * python/py-block.c: White space.
5244 * python/py-breakpoint.c: White space.
5245 * python/py-cmd.c: White space.
5246 * python/py-function.c: White space.
5247 * python/py-lazy-string.c: White space.
5248 * python/py-objfile.c: White space.
5249 * python/py-param.c: White space.
5250 * python/py-prettyprint.c: White space.
5251 * python/py-progspace.c: White space.
5252 * python/py-symtab.c: White space.
5253 * python/python.c: White space.
5254 * python/py-type.c: White space.
5255 * python/py-utils.c: White space.
5256 * python/py-value.c: White space.
5258 * mi/mi-cmd-break.c: White space.
5259 * mi/mi-cmd-env.c: White space.
5260 * mi/mi-cmds.c: White space.
5261 * mi/mi-cmd-stack.c: White space.
5262 * mi/mi-cmd-var.c: White space.
5263 * mi/mi-console.c: White space.
5264 * mi/mi-getopt.c: White space.
5265 * mi/mi-interp.c: White space.
5266 * mi/mi-main.c: White space.
5267 * mi/mi-out.c: White space.
5268 * mi/mi-parse.c: White space.
5270 * cli/cli-cmds.c: White space.
5271 * cli/cli-decode.c: White space.
5272 * cli/cli-dump.c: White space.
5273 * cli/cli-interp.c: White space.
5274 * cli/cli-logging.c: White space.
5275 * cli/cli-script.c: White space.
5276 * cli/cli-setshow.c: White space.
5278 * valarith.c: White space.
5279 * valops.c: White space.
5280 * valprint.c: White space.
5281 * value.c: White space.
5282 * varobj.c: White space.
5283 * xcoffread.c: White space.
5284 * xml-support.c: White space.
5285 * xml-tdesc.c: White space.
5287 2010-05-17 Andreas Schwab <schwab@redhat.com>
5290 * c-lang.c (c_printstr): Compute real length of NUL terminated
5293 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5295 * parse.c (parse_exp_in_context): When block is not NULL, use
5296 its associated language to parse the expression instead of
5297 the current_language.
5299 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5301 * jv-lang.c (java_lookup_class): Remove commented out code.
5302 (type_from_class): Likewise.
5303 (java_op_print_tab): Remove commented-out elements.
5305 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5307 * ada-lang.c (to_fixed_range_type): The the raw index type as
5308 argument instead of the raw type name. Remove orig_type parameter.
5309 Update calls throughout.
5310 (ada_fixup_array_indexes_type): New function.
5311 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5312 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5313 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5314 Remove name parameter.
5315 (print_array_type): Add call to ada_fixup_array_indexes_type.
5316 Update calls to print_range_type.
5317 (ada_print_type): Update calls to print_range_type.
5319 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5321 * dwarf2read.c (read_set_type): Set type length if
5322 DW_AT_byte_size attribute is present.
5324 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5326 * p-valprint.c (pascal_val_print): Handle set type if range limits
5327 are undefined but size is known.
5329 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5331 * procfs.c: Reformat.
5333 2010-05-16 Michael Snyder <msnyder@vmware.com>
5335 * target.c: White space.
5336 * target-descriptions.c: White space.
5337 * target-memory.c: White space.
5338 * thread.c: White space.
5339 * top.c: White space.
5340 * tracepoint.c: White space.
5341 * trad-frame.c: White space.
5342 * tramp-frame.c: White space.
5343 * ui-file.c: White space.
5344 * ui-out.c: White space.
5345 * user-regs.c: White space.
5346 * utils.c: White space.
5348 * scm-exp.c: White space.
5349 * scm-lang.c: White space.
5350 * scm-valprint.c: White space.
5351 * sentinel-frame.c: White space.
5352 * ser-base.c: White space.
5353 * ser-go32.c: White space.
5354 * serial.c: White space.
5355 * ser-mingw.c: White space.
5356 * ser-pipe.c: White space.
5357 * ser-tcp.c: White space.
5358 * ser-unix.c: White space.
5359 * solib.c: White space.
5360 * solib-darwin.c: White space.
5361 * solib-frv.c: White space.
5362 * solib-irix.c: White space.
5363 * solib-osf.c: White space.
5364 * solib-pa64.c: White space.
5365 * solib-som.c: White space.
5366 * solib-spu.c: White space.
5367 * solib-svr4.c: White space.
5368 * solib-target.c: White space.
5369 * source.c: White space.
5370 * stabsread.c: White space.
5371 * stack.c: White space.
5372 * std-regs.c: White space.
5373 * symfile.c: White space.
5374 * symmisc.c: White space.
5375 * symtab.c: White space.
5377 2010-05-16 Michael Snyder <msnyder@vmware.com>
5379 * source.c (_initialize_source): Add "rev" as an abbreviation
5380 for the "reverse-search" command.
5382 2010-05-16 Michael Snyder <msnyder@vmware.com>
5384 * record.c: White space.
5385 * regcache.c: White space.
5386 * reggroups.c: White space.
5387 * remote-fileio.c: White space.
5388 * remote-m32r-sdi.c: White space.
5389 * remote-mips.c: White space.
5390 * remote-sim.c: White space.
5391 * remote.c: White space.
5392 (process_g_packet): Remove orphan braces.
5394 2010-05-15 Michael Snyder <msnyder@vmware.com>
5396 * parse.c: White space.
5397 * p-lang.c: White space.
5398 * posix-hdep.c: White space.
5399 * printcmd.c: White space.
5400 * progspace.c: White space.
5401 * prologue-value.c: White space.
5402 * psymtab.c: White space.
5403 * p-typeprint.c: White space.
5404 * p-valprint.c: White space.
5406 * objc-lang.c: White space.
5407 * objfiles.c: White space.
5408 * observer.c: White space.
5409 * osabi.c: White space.
5410 * osdata.c: White space.
5412 * m2-lang.c: White space.
5413 * m2-valprint.c: White space.
5414 * macrocmd.c: White space.
5415 * macroexp.c: White space.
5416 * macroscope.c: White space.
5417 * macrotab.c: White space.
5418 * main.c: White space.
5419 * maint.c: White space.
5420 * mdebugread.c: White space.
5421 * memattr.c: White space.
5422 * minsyms.c: White space.
5423 * monitor.c: White space.
5425 2010-05-14 Michael Snyder <msnyder@vmware.com>
5427 * jv-lang.c: White space.
5428 * jv-typeprint.c: White space.
5429 * jv-valprint.c: White space.
5430 * language.c: White space.
5431 * libunwind-frame.c: White space.
5432 * linespec.c: White space.
5433 * linux-nat.c: White space.
5434 * linux-record.c: White space.
5435 * linux-thread-db.c: White space.
5437 * infcall.c: White space.
5438 * inf-child.c: White space.
5439 * infcmd.c: White space.
5440 * inferior.c: White space.
5441 * inf-loop.c: White space.
5442 * inflow.c: White space.
5443 * inline-frame.c: White space.
5444 * interps.c: White space.
5446 * gcore.c: White space.
5447 * gdb.c: White space.
5448 * gdbtypes.c: White space.
5449 * gnu-nat.c: White space.
5450 * gnu-v2-abi.c: White space.
5451 * gnu-v3-abi.c: White space.
5453 * findcmd.c: White space.
5454 * findvar.c: White space.
5455 * fork-child.c: White space.
5456 * frame-base.c: White space.
5457 * frame.c: White space.
5458 * frame-unwind.c: White space.
5459 * f-valprint.c: White space.
5461 * elfread.c: White space.
5462 * environ.c: White space.
5463 * eval.c: White space.
5464 * event-loop.c: White space.
5465 * event-top.c: White space.
5466 * exceptions.c: White space.
5467 * exec.c: White space.
5468 * expprint.c: White space.
5470 * dbxread.c: White space.
5471 * dcache.c: White space.
5472 * disasm.c: White space.
5473 * doublest.c: White space.
5474 * dsrec.c: White space.
5475 * dummy-frame.c: White space.
5476 * dwarf2expr.c: White space.
5477 * dwarf2-frame.c: White space.
5478 * dwarf2loc.c: White space.
5479 * dwarf2read.c: White space.
5481 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5485 * python/py-value.c (valpy_hash): New function.
5486 (value_object_type): Register valpy_hash.
5488 2010-05-14 Hui Zhu <teawater@gmail.com>
5489 Michael Snyder <msnyder@vmware.com>
5491 * linux-fork.c (gdbthread.h): New include.
5492 (fork_info): Add parent_ptid.
5493 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5495 (delete_checkpoint_command): Call inferior_call_waitpid.
5496 (checkpoint_command): Set parent_ptid.
5498 2010-05-13 Michael Snyder <msnyder@vmware.com>
5500 * dictionary.c: Re-indent to GNU coding standard.
5502 * charset.c: White space.
5503 * c-lang.c: White space.
5504 * cli-out.c: White space.
5505 * coffread.c: White space.
5506 * complaints.c: White space.
5507 * completer.c: White space.
5508 * corefile.c: White space.
5509 * corelow.c: White space.
5510 * cp-abi.c: White space.
5511 * cp-namespace.c: White space.
5512 * cp-support.c: White space.
5513 * cp-valprint.c: White space.
5514 * c-typeprint.c: White space.
5515 * c-valprint.c: White space.
5516 * blockframe.c: White space.
5517 * breakpoint.c: White space.
5518 * buildsym.c: White space.
5519 * blockframe.c: White space.
5520 * bcache.c: White space.
5521 * gdbarch.sh: White space, add blank lines.
5522 * arch-utils.c: Ditto.
5523 * gdbarch.c: Regenerate.
5524 * frame.c: White space, add blank lines.
5525 * stack.c: White space, add blank lines.
5526 (initialize_stack): Remove long-dead code.
5528 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5531 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5532 (locexpr_read_variable, loclist_read_variable): Update the callers.
5534 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5537 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5538 Remove check of NULL returned by tag_type_to_type.
5539 (die_containing_type): Remove variable type. Remove type_die variable
5540 initialization. Remove check of NULL returned by tag_type_to_type.
5542 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5545 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5546 names of unnamed structures or unions.
5548 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5550 * procfs.c (proc_watchpoint_address): New function.
5551 (procfs_stopped_by_watchpoint): Remove useless check after
5552 find_procinfo_or_die call.
5553 (procfs_stopped_data_address): New function.
5554 (procfs_use_watchpoints): Register new watchpoint related function.
5556 2010-05-11 Tom Tromey <tromey@redhat.com>
5558 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5560 2010-05-10 Michael Snyder <msnyder@vmware.com>
5562 * utils.c: White space cleanup.
5564 2010-05-10 Tom Tromey <tromey@redhat.com>
5566 * eval.c (ptrmath_type_p): Add 'lang' argument.
5567 (evaluate_subexp_standard): Update.
5568 (evaluate_subexp_with_coercion): Update.
5569 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5571 2010-05-10 Michael Snyder <msnyder@vmware.com>
5573 * utils.c (do_fclose_cleanup) Restore local variable.
5575 2010-05-09 Doug Evans <dje@google.com>
5577 * record.c (init_record_core_ops): Rename record_core to record-core.
5579 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5581 Implement task switching on pa-hpux.
5582 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5583 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5585 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5587 * valops.c (find_overload_match): Add missing i18n markup.
5589 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5591 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5593 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5595 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5596 list for the obconcat call.
5597 * mdebugread.c (parse_symbol): Likewise.
5598 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5600 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5601 New variable ap. Remove variables len and val.
5602 * symfile.h (obconcat): Likewise for the prototype.
5604 2010-05-07 Michael Snyder <msnyder@vmware.com>
5606 * python/python.c (execute_gdb_command): Remove unused variables.
5607 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5608 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5609 Remove unused variable.
5610 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5611 (cmdpy_completer): Remove unused variable.
5612 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5613 * python/py-function.c (fnpy_call): Remove unused variable.
5614 * python/py-objfile.c (objfile_to_objfile_object):
5615 Remove unused variable.
5616 * python/py-param.c (parmpy_init): Remove unused variable.
5617 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5618 Remove unused variable.
5619 (gdbpy_default_visualizer): Remove unused variable.
5620 * python/py-progspace.c (pspace_to_pspace_object):
5621 Remove unused variable.
5622 * python/py-symtab.c (symtab_and_line_to_sal_object):
5623 Remove unused variable.
5624 * python/py-type.c (typy_template_argument):
5625 Remove unused variable.
5626 * python/py-value.c (valpy_string): Remove unused variable.
5627 (convert_value_from_python): Remove unused variables.
5629 2010-05-07 Michael Snyder <msnyder@vmware.com>
5631 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5632 and use it to compute variable 't1'.
5634 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5636 * ada-lang.c (assign_aggregate): Remove unused variable.
5638 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5641 * valops.c (find_overload_match): Handle fsym == NULL case.
5642 Add int no_adl argument.
5643 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5645 Add int no_adl argument.
5646 (find_oload_champ_namespace): Add int no_adl argument.
5647 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5649 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5650 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5651 Evaluate arguments and use them to perform ADL lookup.
5652 Pass no_adl argument to find_overload_match.
5653 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5654 * cp-support.h: Added prototype for
5655 make_symbol_overload_list_namespace.
5656 * cp-support.c (make_symbol_overload_list_namespace): New function.
5657 (make_symbol_overload_list_adl_namespace): New function.
5658 (make_symbol_overload_list_adl): New function.
5659 (make_symbol_overload_list_using): Moved code to add function to
5660 overload set to make_symbol_overload_list_namespace.
5661 * c-exp.y: create UNKNOWN_CPP_NAME token.
5662 Add parse rule for ADL functions.
5663 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5665 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5667 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5670 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5672 Implement task switching on solaris targets.
5673 * sol-thread.c (thread_db_find_thread_from_tid)
5674 (sol_get_ada_task_ptid): New functions.
5675 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5677 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5679 * remote.c (remote_query_supported_append): Use reconcat.
5680 (remote_query_supported): Install a cleanup. Use reconcat.
5682 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5684 * gdbarch.sh (qsupported): Delete.
5685 * gdbarch.h, gdbarch.c: Regenerate.
5686 * remote.c (remote_query_supported): Remove use of
5689 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5691 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5694 2010-05-06 Michael Snyder <msnyder@vmware.com>
5696 * xml-support.c (xinclude_start_include): Delete unused variable.
5697 (xml_process_xincludes): Delete unused variable.
5698 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5699 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5700 (tdesc_find_arch_register): Delete unused variable.
5701 (tdesc_use_registers): Delete unused variable.
5702 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5703 * inferior.c (print_inferior): Delete unused variable.
5704 * record.c (record_open_1): Delete unused variable.
5705 (record_restore): Delete unused variable.
5706 (cmd_record_save): Delete unused variable.
5707 * gcore.c (derive_heap_segment): Delete unused variable.
5708 (objfile_find_memory_regions): Use unused variable.
5709 * jit.c (jit_inferior_init): Delete unused variable.
5710 * progspace.c (clone_program_space): Delete unused variable.
5711 (pspace_empty_p): Delete unused variable.
5713 * frame-unwind.c (frame_unwind_find_by_frame):
5714 Delete unused variable.
5715 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5716 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5717 (method_name_from_physname): Delete unused variable.
5718 (cp_func_name): Delete unused variable.
5719 (cp_validate_operator): Delete unused variable.
5720 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5721 Delete unused variable.
5722 * trad-frame.c (trad_frame_get_prev_register):
5723 Delete unused variable.
5724 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5726 * serial.c (serial_for_fd): Delete unused variable.
5727 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5728 * top.c (execute_command): Delete unused variable.
5729 (init_main): Delete unused variable.
5730 * utils.c (do_fclose_cleanup): Delete unused variable.
5731 (do_all_inferior_continuations): Delete unused variable.
5732 (initialize_utils): Delete unused variable.
5733 (internal_problem_mode): Delete unused global.
5734 * frame.c (get_prev_frame): Delete unused global.
5735 (get_frame_locals_address): Delete unused global.
5736 (get_frame_args_address): Delete unused global.
5738 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5739 (pascal_type_print_varspec_prefix): Delete unused variable.
5740 * f-typeprint.c (f_type_print_base): Delete unused variable.
5741 (f_type_print_varspec_suffix): Delete unused variable.
5742 * m2-typeprint.c (m2_print_type): Delete unused variable.
5743 (m2_long_set): Delete unused variable.
5744 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5745 * d-valprint.c (dynamic_array_type): Delete unused variable.
5746 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5747 Delete unused variable.
5748 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5749 * m2-valprint.c (m2_val_print): Delete unused variable.
5751 * ui-out.c (ui_out_field_int): Delete unused variable.
5752 (ui_out_field_fmt_int): Delete unused variable.
5753 * varobj.c (varobj_list_children): Delete unused variable.
5754 (varobj_set_value): Delete unused variable.
5755 (install_new_value_visualizer): Delete unused variable.
5756 (varobj_set_visualizer): Delete unused variable.
5757 (varobj_update): Delete unused variable.
5758 (varobj_editable_p): Delete unused variable.
5759 (c_value_of_root): Delete unused variable.
5760 (cplus_describe_child): Delete unused variable.
5762 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5763 (decode_constrained_packed_array_type): Delete unused variable.
5764 (add_defn_to_vec): Delete unused variable.
5765 (symbol_completion_match): Delete unused variable.
5766 (value_tag_from_contents_and_address): Delete unused variable.
5767 (ada_evaluate_subexp): Delete unused variable.
5768 * c-lang.c (classify_type): Delete unused variable.
5769 * f-lang.c (f_printstr): Delete unused variable.
5770 * objc-lang.c (objc_printstr): Delete unused variable.
5771 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5772 * jv-lang.c (type_from_class): ifdef unused variable.
5773 (java_class_name_from_physname): Delete unused variable.
5774 * m2-lang.c (m2_printstr): Delete unused variable.
5776 * objfiles.c (objfile_relocate): Delete unused variable.
5777 * maint.c (_initialize_maint_cmds): Delete unused variable.
5778 * demangle.c (_initialize_demangler): Delete unused variable.
5779 * corefile.c (reopen_exec_file): Delete unused variable.
5780 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5781 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5783 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5784 * memattr.c (mem_delete): Delete unused variable.
5785 (invalidate_target_mem_regions): Delete unused variable.
5786 * mem-break.c (default_memory_insert_breakpoint):
5787 Delete unused variable.
5788 * target.c (target_get_osdata): Delete unused variable.
5789 * parse.c (length_of_subexp): Delete unused variable.
5790 (prefixify_subexp): Delete unused variable.
5791 (exp_iterate): Delete unused variable.
5792 * reverse.c (delete_bookmark_command): Delete unused variable.
5794 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5795 * macroexp.c (gather_arguments): Delete unused variable.
5796 (substitute_args): Delete unused variable.
5797 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5798 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5799 (_initialize_gdbarch): Delete unused variable.
5800 * gdbarch.c, gdbarch.h: Regenerate.
5801 * arch-utils.c (initialize_current_architecture):
5802 Delete unused variable.
5803 (_initialize_gdbarch_utils): Delete unused variable.
5804 * gdbtypes.c (make_cv_type): Delete unused variable.
5805 (make_type_with_address_space): Delete unused variable.
5807 * linespec.c (decode_compound): Delete unused variable.
5808 * dictionary.c (iterator_next_hashed): Delete unused variable.
5809 * infcall.c (call_function_by_hand): Delete unused variable.
5810 * infcmd.c (step_1): Delete unused variable.
5811 (registers_info): Delete unused variable.
5812 (attach_command): Delete unused variable.
5813 * infrun.c (follow_exec): Delete unused variable.
5814 (handle_step_into_function_backwards): Delete unused variable.
5815 (_initialize_infrun): Delete unused variable.
5816 * stack.c (parse_frame_specification_1): Delete unused variable.
5817 (frame_info): Delete unused variable.
5818 (backtrace_command_1): Delete unused variable.
5819 (catch_info): Delete unused variable.
5821 * eval.c (evaluate_subexp_standard): Delete unused variable.
5822 * valops.c (value_cast_pointers): Delete unused variable.
5823 (value_dynamic_cast): Delete unused variable.
5824 (value_array): Delete unused variable.
5825 (find_overload_match): Delete unused variable.
5826 * valarith.c (value_subscript): Delete unused variable.
5827 (value_binop): Delete unused variable.
5828 * valprint.c (_initialize_valprint): Delete unused variable.
5829 * printcmd.c (print_command_1): Delete unused variable.
5830 (address_info): Delete unused variable.
5831 (printf_command): Delete unused variable.
5833 * auxv.c (target_auxv_search): Delete unused variable.
5834 * blockframe.c (get_frame_block): Delete unused variable.
5835 * regcache.c (regcache_cpy): Delete unused variable.
5836 (regcache_cpy_no_passthrough): Delete unused variable.
5837 * charset.c (wchar_iterate): Delete unused variable.
5838 (find_charset_names): Delete unused variable.
5839 (_initialize_charset): Delete unused variable.
5840 * disasm.c (do_mixed_source_and_assembly):
5841 Delete unused variable.
5842 * source.c (set_default_source_symtab_and_line):
5843 Delete unused variable.
5844 (set_substitute_path_command): Delete unused variable.
5845 * value.c (preserve_values): Delete unused variable.
5846 (value_from_double): Delete unused variable.
5848 2010-05-05 Michael Snyder <msnyder@vmware.com>
5850 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5851 (find_last_source_symtab_from_partial): Delete unused variable.
5852 * symfile.c (place_section): Delete unused variable.
5853 (default_symfile_offsets): Delete unused variable.
5854 (get_debug_link_info): Delete unused variable.
5855 (find_separate_debug_file_by_debuglink): Delete unused variable.
5856 (add_symbol_file_command): Delete unused variable.
5857 (symfile_find_segment_sections): Delete unused variable.
5858 * symmisc.c (free_symtab): Delete unused variable.
5859 (dump_symtab_1): Delete unused variable.
5860 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5861 (find_pc_sect_symtab): Delete unused variable.
5862 (skip_prologue_using_lineinfo): Delete unused variable.
5863 (sources_info): Delete unused variable.
5864 (completion_list_add_name): Delete unused variable.
5865 (expand_line_sal): Delete unused variable.
5867 * breakpoint.c (validate_commands_for_breakpoint):
5868 Delete unused variables.
5869 (insert_catchpoint): Delete unused variable.
5870 (update_watchpoint): Delete unused variable.
5871 (insert_bp_location): Delete unused variable.
5872 (insert_breakpoint_locations): Delete unused variable.
5873 (remove_breakpoint_1): Delete unused variable.
5874 (software_breakpoint_inserted_here_p): Delete unused variable.
5875 (watchpoints_triggered): Delete unused variable.
5876 (bpstat_check_watchpoint): Delete unused variable.
5877 (bpstat_stop_status): Delete unused variable.
5878 (print_one_breakpoint_location): Delete unused variable.
5879 (allocate_bp_location): Delete unused variable.
5880 (create_breakpoint): Delete unused variable.
5881 (watch_command_1): Delete unused variable.
5882 (catch_exception_command_1): Delete unused variable.
5883 (catch_ada_exception_command): Delete unused variable.
5884 (delete_breakpoint): Delete unused variable.
5885 (breakpoint_re_set_one): Delete unused variable.
5886 (do_enable_breakpoint): Delete unused variable.
5888 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5890 * amd64-tdep.c: Include disasm.h.
5891 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5892 (amd64_insn_length): Moved to disasm.c and renamed.
5893 (fixup_riprel): Adjust.
5894 * disasm.c (do_ui_file_delete): New.
5895 (gdb_insn_length): New.
5896 (gdb_buffered_insn_length_fprintf)
5897 (gdb_buffered_insn_length_init_dis)
5898 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5900 * disasm.h (gdb_insn_length): Declare.
5901 (gdb_buffered_insn_length): Declare.
5903 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5905 * remote.c (clear_threads_parsing_context): New.
5906 (remote_threads_info): Delete unused null_cleanup. Install a
5907 cleanup to clear the threads_parsing_context in case parsing
5910 2010-05-05 Michael Snyder <msnyder@vmware.com>
5912 * c-exp.y (parse_string_or_char): Delete unused variable.
5913 (c_lex): Delete unused variable.
5914 * cp-name-parser.y (cpname_lex): Delete unused variable.
5915 * ada-exp.y (find_primitive_type): Delete unused variable.
5916 (write_var_or_type): Delete unused variable.
5917 * jv-exp.y (java_parse): Delete unused variable.
5918 (push_expression_name): Delete unused variable.
5919 * p-exp.y (pascal_lex): Delete unused variable.
5921 2010-05-05 Pedro Alves <pedro@codesourcery.com>
5923 * remote.c (remote_threads_info): Really revert previous previous
5926 2010-05-05 Michael Snyder <msnyder@vmware.com>
5928 * elfread.c (elf_symtab_read): Delete unused variable.
5929 (find_separate_debug_file_by_buildid): Delete unused variables.
5930 (elf_symfile_read): Delete unused variable.
5932 * coffread.c (coff_symfile_read): Delete unused variables.
5934 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5935 (read_pe_exported_syms): Delete unused variable.
5937 * stabsread.c (define_symbol): Delete unused variable.
5939 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5940 (process_psymtab_comp_unit): Delete unused variable.
5941 (dwarf2_build_psymtabs_hard): Delete unused variable.
5942 (load_partial_comp_unit): Delete unused variable.
5943 (create_all_comp_units): Delete unused variable.
5944 (scan_partial_symbols): Delete unused variable.
5945 (add_partial_symbol): Delete unused variable.
5946 (add_partial_namespace): Delete unused variable.
5947 (add_partial_enumeration): Delete unused variable.
5948 (load_full_comp_unit): Delete unused variable.
5949 (process_full_comp_unit): Delete unused variable.
5950 (read_file_scope): Delete unused variable.
5951 (read_type_unit_scope): Delete unused variable.
5952 (process_structure_scope): Delete unused variable.
5953 (process_enumeration_scope): Delete unused variable.
5954 (read_tag_ptr_to_member_type): Delete unused variable.
5955 (read_typedef): Delete unused variable.
5956 (read_partial_die): Delete unused variable.
5957 (decode_locdesc): Delete unused variable.
5958 (zeroed_partial_die): Delete unused global variable.
5960 * tui/tui-interp.c (_initialize_tui_interp):
5961 Delete unused variable.
5962 * tui/tui-regs.c tui_display_registers_from):
5963 Delete unused variable.
5964 (tui_check_register_values): Delete unused variable.
5965 (tui_register_format): Delete unused variable.
5966 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5967 * tui/tui-windata.c (tui_display_data_from_line):
5968 Delete unused variables.
5969 (tui_vertical_data_scroll): Delete unused variables.
5971 2010-05-05 Michael Snyder <msnyder@vmware.com>
5973 * remote.c (remote_threads_info): Revert questionable part of
5974 the previous change.
5976 2010-05-05 Michael Snyder <msnyder@vmware.com>
5978 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5979 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5980 (mi_cmd_var_list_children): Delete unused variable.
5981 (varobj_update_one): Delete unused variable.
5982 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5983 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5984 Delete unused variable.
5985 (mi_cmd_stack_list_variables): Delete unused variable.
5986 (list_args_or_locals): Delete unused variable.
5987 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5988 Delete unused variables.
5989 (mi_cmd_file_list_exec_source_files): Delete unused variable.
5990 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5991 Delete unused variable.
5992 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5993 (mi_cmd_interpreter_exec): Delete unused variable.
5994 (mi_on_normal_stop): Delete unused variable.
5995 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5996 (print_one_inferior): Delete unused variables.
5997 (mi_execute_command): Delete unused variable.
5998 (mi_cmd_execute): Delete unused variable.
5999 (timestamp): Delete unused variable.
6001 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
6002 (restore_binary_file): Delete unused variable.
6003 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6004 * cli/cli-script.c (define_command): Delete unused variables.
6005 (recurse_read_control_structure): Delete unused variable.
6006 (script_from_file): Delete unused variable.
6007 * cli/cli-cmds.c (complete_command): Delete unused variable.
6008 (disassemble_command): Delete unused variable.
6010 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
6011 * tracepoint.c (delete_trace_variable_command):
6012 Delete unused variables.
6013 (encode_actions_1): Delete unused variables.
6014 (start_tracing): Delete unused variable.
6015 (trace_status_mi): Delete unused variable.
6016 (tfind_1): Delete unused variable.
6017 (trace_find_pc_command): Delete unused variable.
6018 (trace_find_line_command): Delete unused variables.
6019 (trace_find_range_command): Delete unused variables.
6020 (trace_find_outside_command): Delete unused variables.
6021 (parse_tracepoint_definition): Delete unused variables.
6022 (tfile_fetch_registers): Delete unused variable.
6024 * dcache.c (dcache_init): Delete unused variable.
6025 (dcache_info): Delete unused variable.
6027 * remote.c (remote_threads_info): Delete unused variable.
6028 (process_stop_reply) :Delete unused variable.
6029 (remote_get_trace_status): Delete unused variables.
6031 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6032 (thread_from_lwp): Delete unused variable.
6033 (enable_thread_event_reporting): Delete unused variable.
6034 (check_for_thread_db): Delete unused variables.
6035 (thread_db_find_new_threads_2): Delete unused variable.
6037 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6038 (checkpoint_command): Delete unused variable.
6039 (linux_fork_context): Delete unused variables.
6041 * linux-nat.c (linux_parent_pid): Delete unused global variable.
6042 (linux_tracefork_child): Delete unused variable.
6043 (linux_child_follow_fork): Delete unused variable.
6044 (linux_nat_detach): Delete unused variable.
6045 (linux_handle_extended_wait): Delete unused variable.
6046 (linux_nat_has_pending_sigint): Delete unused variable.
6047 (linux_nat_find_memory_regions): Delete unused variable.
6048 (linux_nat_make_corefile_notes): Delete unused variables.
6049 (linux_nat_info_proc_cmd): Delete unused variable.
6050 (linux_proc_pending_signals): Delete unused variable.
6051 (linux_nat_stop_lwp): Delete unused variables.
6052 (_initialize_linux_nat): Delete unused variable.
6054 * ser-pipe.c (pipe_ops): Delete unused global variable.
6056 * linux-record.c (record_linux_system_call):
6057 Delete unused variables.
6059 * corelow.c (core_xfer_partial): Delete unused variables.
6061 * solib-svr4.c (find_program_interpreter): Delete unused variable.
6062 (svr4_solib_create_inferior_hook): Add ifdef around
6063 conditionally-used variable declarations.
6065 * solib.c (solib_find): Delete unused variable.
6066 (free_so_symbols): Delete unused variable.
6067 (info_sharedlibrary_command): Delete unused variable.
6068 (reload_shared_libraries_1): Delete unused variable.
6069 (_initialize_solib): Delete unused variable.
6071 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6072 (i386_collect_xstateregset): Delete unused variable.
6073 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6075 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6076 Delete unused variable 'type'.
6078 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6080 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
6081 ada-lang.c: Remove comment mentioning these macros.
6082 * m2-exp.y: Delete commented out code.
6084 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6086 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6088 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6090 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6092 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6093 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6095 (cleanup_kernel_helper_return): Likewise.
6096 * arm-tdep.c (copy_unmodified): Likewise.
6097 (copy_preload): Likewise.
6098 (copy_copro_load_store): Likewise.
6099 (cleanup_branch): Likewise.
6100 (copy_b_bl_blx): Likewise.
6101 (copy_bx_blx_reg): Likewise.
6102 (copy_alu_imm): Likewise.
6103 (copy_alu_reg): Likewise.
6104 (copy_alu_shifted_reg): Likewise.
6105 (cleanup_load): Likewise.
6106 (cleanup_store): Likewise.
6107 (cleanup_block_load_pc): Likewise.
6108 (cleanup_svc): Likewise.
6109 (copy_undef): Likewise.
6110 (copy_unpred): Likewise.
6111 * remote.c (register_remote_support_xml): Likewise.
6113 2010-05-05 Hui Zhu <teawater@gmail.com>
6115 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6117 2010-05-04 Mark Kettenis <kettenis@gnu.org>
6119 * remote.c (register_remote_support_xml)
6120 (remote_query_supported_append, remote_query_supported): Add cast
6121 to NULL used as sentinel.
6122 * tracepoint.c (tvariables_info_1): Likewise.
6123 * utils.c (add_internal_problem_command): Likewise.
6125 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6127 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6128 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6129 registers gracefully.
6131 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6133 * exec.c (print_section_info): Display entry point without arch
6136 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6139 * printcmd.c (x_command): Only dereference once implicitly for
6142 2010-05-03 Doug Evans <dje@google.com>
6144 * event-loop.c (gdb_timer): Delete unused global.
6145 (create_timer): Update.
6147 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6149 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6150 CURRENT->DECLARATION case.
6151 * cp-support.h (struct using_direct): Provide extended comment.
6153 2010-05-03 Mark Kettenis <kettenis@gnu.org>
6155 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6156 HPPABSD_SIZEOF_GREGS.
6157 (HPPAOBSD_SIZEOF_FPREGS): New define.
6158 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6159 (hppaobsd_supply_fpregset): New function.
6160 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6161 (hppaobsd_fpregset): New variable.
6162 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6163 (_initialize_hppabsd_tdep): Remove spurious blank line.
6165 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6168 * p-valprint.c (pascal_value_print): Always dereference a value with
6169 type code TYPE_CODE_REF.
6171 2010-05-03 Pedro Alves <pedro@codesourcery.com>
6173 * remote.c (remote_notice_signals): New.
6174 (remote_start_remote): In non-stop mode, update the remote end on
6175 which signals it can silently pass.
6176 (init_remote_ops): Install remote_notice_signals.
6178 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6180 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6181 * command.h (error_no_arg): ... here. Remove NORETURN, change
6182 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6183 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6184 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6185 (internal_verror, internal_error, nomem): Remove NORETURN, change
6186 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6187 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6188 (throw_vfatal, throw_error): Remove NORETURN.
6189 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6190 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6191 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6192 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6193 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6194 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6196 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6197 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6199 * target.c (tcomplain): Likewise.
6200 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6202 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6203 (internal_error, perror_with_name, nomem): Remove NORETURN.
6204 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6207 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6209 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6210 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6211 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6212 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6213 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6214 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6215 * complaints.h (complaint, internal_complaint): Likewise.
6216 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6217 (ATTR_FORMAT): Remove.
6218 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6219 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6220 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6221 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6222 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6223 (internal_error, internal_vwarning, internal_warning, warning)
6224 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6225 * disasm.c (fprintf_disasm): Likewise.
6226 * exceptions.c (throw_it): Likewise.
6227 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6228 (throw_error): Likewise.
6229 * language.h (type_error, range_error): Likewise.
6230 * linespec.c (cplusplus_error): Likewise.
6231 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6232 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6233 * monitor.c (monitor_debug): Likewise.
6234 * parser-defs.h (parser_fprintf): Likewise.
6235 * serial.h (serial_printf): Likewise.
6236 * tui/tui-hooks.c (tui_query_hook): Likewise.
6237 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6238 (uo_message): Likewise.
6239 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6240 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6242 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6244 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6246 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6247 (cli_table_header, cli_begin, cli_end, cli_field_int)
6248 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6249 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6250 Delete forward declarations.
6251 (cli_ui_out_impl): Move below the callbacks.
6252 (_initialize_cli_out): Delete.
6254 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6256 * README: Use consistent `GDB' and `GDBserver' spellings.
6258 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6260 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6262 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6264 * infrun.c (prepare_for_detach): In non-stop, context switch to
6265 the thread that got the event before handling the event.
6267 2010-04-30 Tom Tromey <tromey@redhat.com>
6269 * symtab.c (symbol_set_names): Fix typo.
6271 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6273 * python/py-param.c (parm_constants): Avoid ARI warning
6274 by adding ARI comment.
6275 (parmpy_init): Likewise.
6277 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6279 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6280 and created type for re-use.
6282 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6284 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6286 2010-04-29 Doug Evans <dje@google.com>
6288 * ser-base.h (reschedule): Delete prototype.
6289 * ser-base.c (reschedule): Make static.
6291 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6293 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6294 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6295 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6297 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6300 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6304 * regcache.c (registers_changed): Rename to ...
6305 (registers_changed_ptid): ... this, and only delete register cache
6306 entries matching the ptid filter argument.
6307 (registers_changed): Reimplement on top of registers_changed_ptid.
6308 * regcache.h (registers_changed_ptid): Declare.
6309 * target.c (target_resume): Flush register caches.
6311 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6312 Tom Tromey <tromey@redhat.com>
6313 Thiago Jung Bauermann <bauerman@br.ibm.com>
6315 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6316 (SUBDIR_PYTHON_SRCS): Likewise.
6317 (py-parameter.o): New rule.
6318 * python/py-parameter.c: New file.
6319 * python/python-internal.h (gdbpy_initialize_parameter)
6320 (gdbpy_parameter, gdbpy_parameter_value)
6321 (gdbpy_parse_command_name): Declare.
6322 * python/py-cmd.c (parse_command_name): Rename to
6323 gdbpy_parse_command_name.
6324 (gdbpy_parse_command_name): Accept a starting list parameter and
6326 (cmdpy_init): Use gdbpy_parse_command_name.
6327 * python/python.c (parameter_to_python): Rename to
6328 gdbpy_parameter_to_python. Accept enum var_types and value.
6329 (gdbpy_parameter): Use gdbpy_parameter_value.
6330 (_initialize_python): Call gdbpy_initialize_parameters.
6332 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6334 * MAINTAINERS: Add myself for write after approval privileges.
6336 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6339 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6340 (COMMON_OBS): Add d-lang.o d-valprint.o.
6341 (HFILES_NO_SRCDIR): Add d-lang.h.
6342 * NEWS: Mention D language support.
6343 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6344 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6345 * d-lang.c: New file.
6346 * d-lang.h: New file.
6347 * d-valprint.c: New file.
6348 * defs.h (enum language): Add language_d.
6349 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6350 * language.c (binop_result_type, integral_type, character_type)
6351 (string_type, boolean_type, structured_type): Add language_d.
6352 * symfile.c (init_filename_language_table): Add language_d.
6353 * symtab.c: Include d-lang.h.
6354 (symbol_init_language_specific, symbol_find_demangled_name)
6355 (symbol_natural_name, lookup_symbol_in_language)
6356 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6358 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6360 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6362 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6364 * symfile.c (init_filename_language_table): Register .dg files
6367 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6369 * gdbtypes.h (struct main_type): Expand comment about target_type
6372 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6373 Tristan Gingold <gingold@adacore.com>
6375 * symfile.c (reread_symbols): Also search for file in libraries.
6378 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6380 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6381 in terms of configuration.
6383 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6385 * objfiles.c: Include solist.h.
6386 (free_all_objfiles): New variable so. Check stale solist objfiles.
6387 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6388 and no_shared_libraries.
6390 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6393 * python/py-auto-load.c (source_section_scripts): Remove trailing
6394 new-line in i18n string.
6396 2010-04-26 Doug Evans <dje@google.com>
6398 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6400 2010-04-26 Tom Tromey <tromey@redhat.com>
6402 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6405 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6407 Removal of config/i386/nm-i386sol2.h native configuration file.
6408 * config/i386/nm-i386sol2.h: Remove file.
6409 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6410 * config/i386/sol2-64.mh: Idem.
6411 * config/djgpp/fnchange.lst: Remove reference to that file.
6412 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6414 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6416 PR breakpoints/11531.
6417 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6418 macro definition and related comment.
6419 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6420 (resume): Remove code and comment related to this macro.
6422 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6424 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6427 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6429 * defs.h: Adjust comment.
6430 * filesystem.h, filesystem.c: New files.
6431 * Makefile.in (SFILES): Add filesystem.c.
6432 (COMMON_OBS): Add filesystem.o.
6433 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6434 different target and host path flavours.
6435 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6436 has_dos_based_file_system on the gdbarch.
6437 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6438 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6439 * i386-tdep.c (i386_go32_init_abi): Ditto.
6440 * gdbarch.sh (has_dos_based_file_system): New.
6441 * gdbarch.h, gdbarch.c: Regenerate.
6442 * NEWS: Mention improved support for remote targets with DOS-based
6443 filesystems. Mention new `set/show target-file-system-kind'
6446 2010-04-23 Stan Shebs <stan@codesourcery.com>
6448 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6450 (struct agent_reqs): Remove.
6451 (ax_reg_mask): Declare.
6452 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6453 (free_agent_expr): Free reg_mask.
6454 (ax_print): Add scope and register mask info.
6455 (ax_reqs): Remove agent_reqs argument, use agent expression
6456 fields, and move part of register mask computation to...
6457 (ax_reg_mask): New function.
6458 * ax-gdb.c (gen_trace_static_fields): Call it.
6459 (gen_traced_pop): Ditto.
6460 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6461 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6462 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6463 (gen_eval_for_expr): Ditto, and require an rvalue.
6464 (agent_command): Call ax_reqs.
6465 (agent_eval_command): Ditto.
6466 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6467 (validate_action_line): Ditto.
6468 (collect_symbol): Ditto.
6469 (encode_actions_1): Ditto.
6471 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6472 Paul Pluzhnikov <ppluzhnikov@google.com>
6473 Jan Kratochvil <jan.kratochvil@redhat.com>
6475 Fix deadlock on looped list of loaded shared objects.
6476 * solib-svr4.c (LM_PREV): New function.
6477 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6478 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6479 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6480 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6482 2010-04-23 Doug Evans <dje@google.com>
6484 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6486 * configure: Regenerate.
6487 * main.c: #include "python/python.h".
6488 (captured_main): Defer loading auto-loaded scripts until after
6489 local_gdbinit has been sourced.
6490 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6491 (load_auto_scripts_for_objfile): New function.
6492 (auto_load_new_objfile): Call it.
6493 * python/python.h (gdbpy_global_auto_load): Declare.
6494 (load_auto_scripts_for_objfile): Declare.
6496 Add support for auto-loading scripts from .debug_gdb_scripts section.
6497 * NEWS: Add entry for .debug_gdb_scripts.
6498 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6499 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6500 (py-auto-load.o): New rule.
6501 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6502 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6503 * python/py-auto-load.c: New file.
6504 * python/python-internal.h: #include <stdio.h>.
6505 (set_python_list, show_python_list): Declare.
6506 (gdbpy_initialize_auto_load): Declare.
6507 (source_python_script_for_objfile): Declare.
6508 * python/python.c: Remove #include of observer.h.
6509 (gdbpy_auto_load): Moved to py-auto-load.c.
6510 (GDBPY_AUTO_FILENAME): Ditto.
6511 (gdbpy_new_objfile): Delete.
6512 (source_python_script_for_objfile): New function.
6513 (set_python_list, show_python_list): Make externally visible.
6514 (_initialize_python): Move "auto-load" command to py-auto-load.c
6515 and observer_attach_new_objfile to py-auto-load.c.
6517 2010-04-23 Jerome Guitton <guitton@adacore.com>
6519 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6520 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6521 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6523 (alpha_heuristic_analyze_probing_loop): New function.
6524 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6525 and handle cases when a stack probe loop is generated.
6526 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6527 (alpha_mdebug_max_frame_size_exceeded): New function.
6528 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6529 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6530 Return 0 when the maximum debuggable frame size has been exceeded.
6532 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6535 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6537 2010-04-20 Chris Moller <cmoller@redhat.com>
6541 * symtab.c (rbreak_command): Added code to include a filename
6542 specification in the rbreak argument.
6543 * NEWS: Added a brief description of filename-qualified rbreak.
6545 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6547 Fix crashes on dangling display expressions.
6548 * ada-lang.c (ada_operator_check): New function.
6549 (ada_exp_descriptor): Fill-in the field operator_check.
6550 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6551 * jv-lang.c (exp_descriptor_java): Likewise.
6552 * m2-lang.c (exp_descriptor_modula2): Likewise.
6553 * scm-lang.c (exp_descriptor_scm): Likewise.
6554 * parse.c (exp_descriptor_standard): Likewise.
6555 (operator_check_standard): New function.
6556 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6557 * parser-defs.h (struct exp_descriptor): New field operator_check.
6558 (operator_check_standard, exp_uses_objfile): New declarations.
6559 * printcmd.c: Remove the inclusion of solib.h.
6560 (display_uses_solib_p): Remove the function.
6561 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6562 and exp_uses_objfile instead of display_uses_solib_p.
6563 * solist.h (struct so_list) <objfile>: New comment.
6564 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6565 * symtab.h (lookup_objfile_from_block): New declaration.
6566 (struct general_symbol_info) <obj_section>: Extend the comment.
6568 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6569 Thiago Jung Bauermann <bauerman@br.ibm.com>
6571 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6572 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6573 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6574 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6575 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6576 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6577 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6578 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6579 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6580 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6581 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6582 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6583 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6584 Define, in case <ptrace.h> doesn't provide it.
6585 (booke_debug_info): New variable.
6586 (max_slots_number): Ditto.
6587 (hw_break_tuple): New struct.
6588 (thread_points): Ditto.
6589 (ppc_threads): New variable.
6590 (PPC_DEBUG_CURRENT_VERSION): New define.
6591 (have_ptrace_new_debug_booke): New function.
6592 (ppc_linux_check_watch_resources): Renamed to ...
6593 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6594 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6595 (booke_cmp_hw_point): New function.
6596 (booke_find_thread_points_by_tid): Ditto.
6597 (booke_insert_point): Ditto.
6598 (booke_remove_point): Ditto.
6599 (ppc_linux_insert_hw_breakpoint): Ditto.
6600 (ppc_linux_remove_hw_breakpoint): Ditto.
6601 (get_trigger_type): Ditto.
6602 (ppc_linux_insert_watchpoint): Handle BookE processors.
6603 (ppc_linux_remove_watchpoint): Ditto.
6604 (ppc_linux_new_thread): Ditto.
6605 (ppc_linux_thread_exit): New function..
6606 (ppc_linux_stopped_data_address): Handle BookE processors.
6607 (ppc_linux_watchpoint_addr_within_range): Ditto.
6608 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6609 to_remove_hw_breakpoint fields of the target operations struct.
6610 Add observe for the thread_exit event.
6612 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6614 * i386-linux-nat.c (regmap): Removed.
6615 (fetch_register): Replace regmap with
6616 i386_linux_gregset_reg_offset.
6617 (store_register): Likewise.
6618 (supply_gregset): Likewise.
6619 (fill_gregset): Likewise.
6621 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6624 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6626 2010-04-22 Chris Moller <cmoller@redhat.com>
6628 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6629 method of popping recursion-detection stack with a method based on
6630 obstack_object_size(). (Similar to the PR9167 patch below, but for
6631 the static array obstack rather than the static member obstack.)
6633 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6635 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6636 (_initialize_amd64_linux_nat): Replace
6637 amd64_linux_gregset64_reg_offset with
6638 amd64_linux_gregset_reg_offset.
6640 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6643 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6645 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6648 * stabsread.c (set_length_in_type_chain): New function.
6649 (read_struct_type): Call set_length_in_type_chain function.
6650 (read_enum_type): Idem.
6652 2010-04-21 Stan Shebs <stan@codesourcery.com>
6653 Nathan Sidwell <nathan@codesourcery.com>
6655 * tracepoint.c (trace_save): Open in binary mode.
6657 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6659 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6661 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6662 builtin_char32 fields.
6663 * printcmd.c (decode_format): Set char size to '\0'
6664 for strings unless explicit size is given.
6665 (print_formatted): Correct calculation of NEXT_ADDRESS
6666 for 16 or 32 bit strings.
6667 (do_examine): Do not force byte size for strings.
6668 Use builtin_char16 and builtin_char32 types to display
6669 16 or 32 bit-wide strings.
6670 (x_command): Set LAST_SIZE to 'b' for string type.
6672 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6675 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6678 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6679 there is no .reg-xstate section.
6680 (i386_linux_core_read_description): Check XCR0 first.
6682 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6684 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6687 2010-04-21 Chris Moller <cmoller@redhat.com>
6690 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6691 method of popping recursion-detection stack with a method based on
6692 obstack_object_size().
6694 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6697 * p-valprint.c (pascal_val_print): Fix default printing of integer
6700 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6702 Fix compilation warning on gcc-4.1.2.
6703 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6704 local variable`pc' to zero.
6706 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6708 Implement thread support with core files on alpha-tru64.
6709 * dec-thread.c (dec_thread_find_new_threads): New function,
6710 extracted from resync_thread_list.
6711 (resync_thread_list): Add OPS parameter. Replace extracted-out
6712 code by call to dec_thread_find_new_threads.
6713 (dec_thread_wait): Update call to resync_thread_list.
6714 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6716 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6718 * ada-lang.c (value_pointer): New function.
6719 (make_array_descriptor): Call value_pointer to convert addresses to
6722 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6724 * rs6000-aix-tdep.c: #include exceptions.h.
6725 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6726 while reading the memory at ADDR, then ADDR cannot be a function
6729 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6731 * ada-typeprint.c (ada_print_typedef): New function.
6732 * ada-lang.h (ada_print_typedef): Add declaration.
6733 * ada-lang.c (ada_language_defn): set la_print_typdef field
6734 to ada_print_typedef.
6736 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6738 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6740 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6742 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6743 (iterate_over_mappings): Adjust function profile. Add declaration.
6744 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6747 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6749 * procfs.c (solib_mappings_callback): Move function up to avoid
6752 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6754 * procfs.c (find_signalled_thread, find_stop_signal): Move
6755 these functions down to define them only when used.
6757 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6759 * valprint.c (common_val_print): Fix the value before extracting
6761 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6762 * ada-lang.h (ada_to_fixed_value): New function declaration.
6763 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6764 to avoid code duplication and fix a bug in the handling of
6765 fixed types contents.
6767 2010-04-20 Tom Tromey <tromey@redhat.com>
6769 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6770 (read_partial_die): Likewise.
6771 (dwarf_attr_name): Likewise.
6773 2010-04-20 Chris Moller <cmoller@redhat.com>
6777 * cp-valprint.c (global): Adding new static array recursion
6779 (cp_print_value_fields, cp_print_static_field): Added new static
6780 array recursion detection code.
6782 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6784 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6785 general-purpose register set should be 68 instead of 144.
6786 (i386_linux_sse_regset_sections): Likewise.
6787 (i386_linux_avx_regset_sections): Likewise.
6789 2010-04-20 Stan Shebs <stan@codesourcery.com>
6790 Nathan Sidwell <nathan@codesourcery.com>
6792 * dwarf2loc.c (struct axs_var_loc): New struct.
6793 (dwarf2_tracepoint_var_loc): New function.
6794 (dwarf2_tracepoint_var_access): New function.
6795 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6797 (locexpr_describe_location_piece): New function.
6798 (locexpr_describe_location_1): New function.
6799 (locexpr_describe_location): Call it, update signature.
6800 (loclist_describe_location): Rewrite to loop over locations,
6802 * symtab.h (struct symbol_computed_ops): Add address to
6803 describe_location arguments, return void.
6804 * printcmd.c (address_info): Get context PC, pass to computed
6805 location description.
6806 * tracepoint.c (scope_info): Ditto.
6807 * ax-gdb.c (trace_kludge): Export.
6809 2010-04-20 Tom Tromey <tromey@redhat.com>
6811 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6812 (struct dwarf2_cie) <segment_size>: New field.
6813 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6814 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6816 (read_attribute_value): Handle DW_FORM_flag_present,
6817 DW_FORM_sec_offset, DW_FORM_exprloc.
6818 (dump_die_shallow): Likewise.
6819 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6820 (dwarf2_const_value): Handle DW_FORM_exprloc.
6821 (attr_form_is_block): Likewise.
6822 (struct line_header) <maximum_ops_per_instruction>: New field.
6823 (dwarf_decode_line_header): Set new field.
6824 (dwarf_decode_lines): Handle new field.
6826 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6828 * f-exp.y: Add new production to recognize the `logical*8' type.
6829 (LOGICAL_S8_KEYWORD): New token.
6830 * f-lang.c (enum f_primitive_types)
6831 <f_primitive_type_logical_s8>: New field.
6832 (f_language_arch_info): Handling `logical*8' type.
6833 (build_fortran_types): Building `logical*8' type.
6834 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6836 2010-04-19 Doug Evans <dje@google.com>
6838 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6839 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6840 (pipe_close): Ditto.
6842 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6844 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6846 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6848 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6849 type to void function.
6851 2010-04-19 Stan Shebs <stan@codesourcery.com>
6852 Vladimir Prus <vladimir@codesourcery.com>
6854 * tracepoint.c (tfind_1): Add missing newline, report exit from
6856 * target.c (update_current_target): Make default
6857 to_trace_find return -1.
6859 2010-04-19 Mike Frysinger <vapier@gentoo.org>
6861 * objc-lang.c (find_methods): Move symname check up.
6863 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6865 * ada-lang.c (print_recreate_exception)
6866 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6867 not "catch unhandled".
6869 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6871 PR breakpoints/8554.
6873 Implement `save-breakpoints'.
6875 * breakpoint.c (save_cmdlist): New.
6876 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6878 (print_recreate_catch_fork): New.
6879 (catch_fork_breakpoint_ops): Install it.
6880 (print_recreate_catch_vfork): New.
6881 (catch_vfork_breakpoint_ops): Install it.
6882 (print_recreate_catch_syscall): New.
6883 (catch_syscall_breakpoint_ops): Install it.
6884 (print_recreate_catch_exec): New.
6885 (catch_exec_breakpoint_ops): Install it.
6886 (print_recreate_exception_catchpoint): New.
6887 (gnu_v3_exception_catchpoint_ops): Install it.
6888 (save_breakpoints): New, based on tracepoint_save_command, but
6889 handle all breakpoint types.
6890 (save_breakpoints_command): New.
6891 (tracepoint_save_command): Rename to...
6892 (save_tracepoints_command): ... this, and reimplement using
6894 (save_command): New.
6895 (_initialize_breakpoints): Install the "save" command prefix.
6896 Install the "save breakpoints" command. Make "save-tracepoints" a
6897 deprecated alias for "save tracepoints".
6898 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6899 * ada-lang.c (print_recreate_exception): New.
6900 (print_recreate_catch_exception): New.
6901 (catch_exception_breakpoint_ops): Install it.
6902 (print_recreate_catch_exception_unhandled): New.
6903 (catch_exception_unhandled_breakpoint_ops): Install it.
6904 (print_recreate_catch_assert): New.
6905 (catch_assert_breakpoint_ops): Install it.
6907 * NEWS: Mention the new `save breakpoints' command. Mention the
6908 new `save tracepoints' alias and that `save-tracepoints' is now
6911 2010-04-18 Pedro Alves <pedro@codesourcery.com>
6915 * tui/tui-out.c: Include cli-out.h.
6916 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6917 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6918 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6919 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6921 (struct ui_out_data): Rename to...
6922 (struct tui_ui_out_data): ... this. Remove `stream' and
6923 `suppress_output' fields, and inherit cli_ui_out_data.
6924 (tui_out_data): New typedef.
6925 (tui_ui_out_impl): Don't initialize fields staticaly.
6926 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6927 (tui_begin, tui_end): Delete.
6928 (tui_field_int): Adjust to delegate most work to the base type.
6929 (tui_field_skip): Delete.
6930 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6931 delegate most work to the base type.
6932 (tui_spaces): Delete.
6933 (tui_text): Adjust to delegate most work to the base type.
6934 (tui_message): Delete.
6935 (tui_wrap_hint): Delete.
6936 (tui_flush): Delete.
6937 (out_field_fmt): Delete.
6938 (field_separator): Delete.
6939 (tui_out_new): Adjust to initialize the base type.
6940 (_initialize_tui_out): Initialize tui_ui_out_impl.
6941 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6943 (cli_out_data): Adjust.
6944 (cli_ui_out_impl): Make extern.
6945 (cli_table_header, cli_field_int, cli_field_skip): Use
6946 uo_field_string instead of cli_field_string.
6947 (cli_redirect): Adjust to use cli_out_data.
6948 (cli_out_data_ctor): New.
6949 (cli_out_new): Use it.
6950 * cli-out.h (struct ui_file): Remove forward declaration.
6951 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6952 (cli_ui_out_impl): Declare.
6953 (cli_out_data_ctor): Declare.
6954 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6955 (uo_field_string): No longer static.
6956 (ui_out_data): Change return type to void pointer.
6957 (ui_out_new): Change `data' parameter type to void pointer.
6958 * ui-out.h (struct ui_out_data): Don't forward declare.
6959 (ui_out_data): Change return type to void pointer.
6960 (ui_out_new): Change `data' parameter type to void pointer.
6961 (uo_field_string): Declare.
6963 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6965 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6966 instead of always false.
6968 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6971 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6974 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6976 * breakpoint.c (watchpoints_triggered): Use
6977 is_hardware_watchpoint.
6978 (watchpoints_triggered): Ditto.
6979 (bpstat_check_location): Use is_watchpoint and
6980 is_hardware_watchpoint.
6981 (bpstat_check_watchpoint): Use is_watchpoint and
6982 is_hardware_watchpoint.
6983 (bpstat_stop_status): Fix comment.
6984 (user_settable_breakpoint): Use is_watchpoint.
6985 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6986 (disable_watchpoints_before_interactive_call_start): Use
6988 (enable_watchpoints_after_interactive_call_stop): Use
6990 (clear_command): Use is_watchpoint.
6991 (do_enable_breakpoint): Use is_watchpoint.
6993 2010-04-16 Mike Frysinger <vapier@gentoo.org>
6995 * solib-frv.c (enable_break1_done): Delete.
6996 (enable_break2): Do not check enable_break1_done. Move the
6997 enable_break2_done setting and call to
6998 remove_solib_event_breakpoints() to the end. Return without
6999 warning when the contents of _dl_debug_addr are 0.
7000 (enable_break): Do not set enable_break1_done.
7001 (frv_clear_solib): Likewise.
7003 2010-04-16 Kevin Buettner <kevinb@redhat.com>
7005 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7006 instead of an error if no PLT entry is found. Return a
7007 potentially useful result.
7008 (m32c_m16c_pointer_to_address): Add code to search for function
7009 address when no .plt entry is found.
7011 2010-04-16 Stan Shebs <stan@codesourcery.com>
7013 * tracepoint.c (trace_variable_command): Run a cleanup.
7015 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7017 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7019 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7021 Support for Windows OS Thread Information Block.
7022 * NEWS: Document new feature.
7023 * remote.c (PACKET_qGetTIBAddr): New enum element.
7024 (remote_get_tib_address): New function.
7025 (init_remote_ops): Set to_get_tib_address field
7026 to remote_get_tib_address.
7027 (_initialize_remote): Add add_packet_config_cmd
7028 for PACKET_qGetTIBAddr.
7029 * target.c (update_current_target): Set default value for
7030 new to_get_tib_address field.
7031 * target.h (target_ops): New field to_get_tib_address.
7032 (target_get_tib_address): New macro.
7033 * windows-nat.c (thread_info): Add thread_local_base field.
7034 (windows_add_thread): Add tlb argument of type 'void *'.
7035 (fake_create_process): Adapt windows_add_thread call.
7036 (get_windows_debug_event): Idem.
7037 (windows_get_tib_address): New function.
7038 (init_windows_ops): Set to_get_tib_address field
7039 to remote_get_tib_address.
7040 (_initialize_windows_nat): Replace info_w32_cmdlist
7041 initialization by a call to init_w32_command_list.
7042 (info_w32_command, info_w32_cmdlist): Removed from here...
7043 to windows-tdep.c file.
7044 * windows-tdep.h (info_w32_cmdlist): Declare.
7045 (init_w32_command_list): New external function
7047 * windows-tdep.c: Add several headers.
7048 (info_w32_cmdlist): to here, made global.
7049 (thread_information_32): New struct.
7050 (thread_information_64): New struct.
7051 (TIB_NAME): New char array.
7052 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7053 (maint_display_all_tib): New static variable.
7054 (windows_get_tlb_type): New function.
7055 (tlb_value_read, tlb_value_write): New functions.
7056 (tlb_value_funcs): New static struct.
7057 (tlb_make_value): New function.
7058 (display_one_tib): New function.
7059 (display_tib): New function.
7060 (show_maint_show_all_tib):New function.
7061 (info_w32_command): Moved from windows-nat.c.
7062 (init_w32_command_list): New function.
7063 (_initialize_windows_tdep): New function.
7064 New "maint set/show show-all-tib" command
7065 New "$_tlb" internal variable.
7067 2010-04-16 Joel Brobecker <brobecker@adacore.com>
7069 * tui/tui-regs.c (tui_display_register): Add comment about
7071 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7073 2010-04-15 Stan Shebs <stan@codesourcery.com>
7075 * frame.c: Include tracepoint.h.
7076 (get_current_frame): Allow a trace frame to be an alternate source
7077 of stack frame data.
7078 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7081 2010-04-15 Pedro Alves <pedro@codesourcery.com>
7083 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7085 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7087 2010-04-15 Doug Evans <dje@google.com>
7089 * NEWS: Add entry for python program space support.
7090 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7091 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7092 (py-progspace.o): New rule.
7093 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7095 (find_pretty_printer_from_progspace): New function.
7096 (find_pretty_printer_from_gdb): New function.
7097 (find_pretty_printer): Rewrite.
7098 * python/py-progspace.c: New file.
7099 * python/python-internal.h (program_space): Add forward decl.
7100 (pspace_to_pspace_object, pspy_get_printers): Declare.
7101 (gdbpy_initialize_pspace): Declare.
7102 * python/python.c: #include "progspace.h".
7103 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7104 (_initialize_python): Call gdbpy_initialize_pspace.
7105 (GdbMethods): Add current_progspace, progspaces.
7107 Add -s option to source command.
7108 * NEWS: Document new option.
7109 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7110 Delete from_tty and cleanupp args. Split filep arg into file and
7111 full_pathp. New arg search_path.
7112 (source_script_from_stream): New function.
7113 (source_script_with_search): New function.
7114 (source_script): Rewrite.
7115 (source_command): Parse "-s" option.
7116 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7117 * python/python.c (source_python_script): Make file arg a const char *.
7118 Don't call fclose, leave for caller.
7119 * python/python.h (source_python_script): Update.
7121 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7122 Pedro Alves <pedro@codesourcery.com>
7124 Avoid rereading shared libraries that haven't changed.
7126 * solib.c (free_so_symbols): New function, from ...
7127 (free_so): ... here. Call it.
7128 (solib_read_symbols): Don't warn here if symbols have already been
7130 (solib_add): Warn here instead, if a pattern was specified.
7131 (reload_shared_libraries_1): New.
7132 (reload_shared_libraries): Rewrite to not fetch the library list.
7134 2010-04-14 Doug Evans <dje@google.com>
7136 * source.c (openp): Strip DOS drive letter if present before
7137 concatenating string to search path.
7139 2010-04-14 Pedro Alves <pedro@codesourcery.com>
7141 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7142 * objfiles.c (gdb_bfd_close_or_warn): New.
7143 * corelow.c: Include objfiles.h
7144 (core_close): Use gdb_bfd_close_or_warn.
7145 * elfread.c (build_id_verify): Ditto.
7146 * exec.c (exec_close, exec_close_1): Ditto.
7148 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7149 Pedro Alves <pedro@codesourcery.com>
7151 Group errors for many missing shared libraries.
7153 * solist.h (struct so_list): Remove from_tty.
7154 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7155 (solib_map_sections): Take so_list argument. Return 0 if we
7156 failed to open a BFD. Add target sections here.
7157 (symbol_add_stub): Delete.
7158 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7159 not from_tty copied from the so_list. Don't warn a second time
7160 for a missing library.
7161 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7162 add to the section table here. Print out a single warning for all
7164 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7167 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7169 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7170 error/warning messages. Capitalize and use complete sentences.
7171 (blpy_block_syms_iternext): Likewise.
7172 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7173 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7174 (frame_info_to_frame_object, frapy_read_var)
7175 (gdbpy_frame_stop_reason_string): Likewise.
7176 * python/py-lazy-string.c (stpy_convert_to_value)
7177 (gdbpy_create_lazy_string_object): Likewise.
7178 * python/py-objfile.c (objfpy_set_printers): Likewise.
7179 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7180 * python/python.c (parameter_to_python): Likewise.
7181 * python/py-type.c (typy_range, typy_target): Likewise.
7182 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7183 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7186 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7190 * python/py-prettyprint.c (pretty_print_one_value): Test for
7192 (print_string_repr): Test for Py_None. Set flags accordingly.
7193 Return value depending on return type.
7194 (print_children): Take a value indicating whether data was printed
7195 before this function was called. Alter output accordingly.
7196 (apply_val_pretty_printer): Capture return value from
7197 print_string_repr and pass to print_children.
7199 2010-04-13 Mark Kettenis <kettenis@gnu.org>
7202 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7203 register note sections.
7204 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7206 (i386_linux_init_abi): Install list of supported register note
7207 sections that matches the target description.
7209 2010-04-13 Pedro Alves <pedro@codesourcery.com>
7211 * remote.c (remote_get_noisy_reply): Don't error out on empty
7213 (remote_start_remote): Update and merge tracepoints and trace
7214 state variables as long as the target supports tracepoints.
7215 (remote_trace_init): Fix prototype.
7216 (remote_download_trace_state_variable): Validate reply.
7217 (remote_trace_set_readonly_regions): Fix prototype.
7218 (remote_trace_start): Fix prototype. Check for empty reply.
7219 (remote_get_trace_status): Small cleanup.
7220 (remote_trace_stop): Fix prototype. Check for empty reply.
7221 (remote_trace_find): Check for empty reply.
7222 (remote_save_trace_data): Validate reply.
7223 (remote_set_disconnected_tracing): Check for empty reply, and
7225 (remote_set_circular_trace_buffer): Ditto.
7227 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7229 Suppress unused value warning during compilation.
7230 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7232 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7234 2010-04-12 Stan Shebs <stan@codesourcery.com>
7236 * tracepoint.c (tfile_xfer_partial): Check read result.
7238 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7240 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7241 * remote-sim.c (gdbsim_files_info): Likewise.
7243 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7245 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7246 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7248 (fetch_vfp_registers): New function to fetch VFP registers.
7249 (store_vfp_registers): New function to store VFP registers.
7250 (arm_linux_fetch_inferior_registers): Add support for VFP
7252 (arm_linux_store_inferior_registers): Likewise.
7253 (arm_linux_read_description): Likewise.
7254 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7257 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7259 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7261 (amd64_collect_xstateregset): Likewise.
7263 2010-04-09 Stan Shebs <stan@codesourcery.com>
7265 * tracepoint.c (trace_status_mi): Report frames created.
7267 * tracepoint.c (trace_dump_command): Include default-collect
7270 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7272 * symtab.c (find_function_start_sal): Never return SAL pointing
7273 before function start address, even if line info is missing.
7275 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7277 * NEWS: Mention tracepoints support.
7279 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7281 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7282 circular trace buffer statuses.
7284 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7286 * config/djgpp/fnchange.lst: Fix typo in translations for
7287 symbol-without-target_section.exp and symbol-without-target_section.c.
7289 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7291 * breakpoint.c (condition_command): Pass condition expression to
7292 set_breakpoint_condition stripped from breakpoint number.
7294 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7295 Thiago Jung Bauermann <bauerman@br.ibm.com>
7296 Tom Tromey <tromey@redhat.com>
7298 * breakpoint.c (condition_command): Simplify. Move condition
7300 (set_breakpoint_condition): ... here. New function.
7301 * breakpoint.h (set_breakpoint_condition): Declare.
7302 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7303 (SUBDIR_PYTHON_SRCS): Likewise.
7304 (py-breakpoint.o): New rule.
7305 * python/py-breakpoint.c: New file.
7306 * python/python-internal.h (gdbpy_breakpoints)
7307 (gdbpy_initialize_breakpoints): Declare.
7308 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7310 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7312 * regformats/regdat.sh: Include server.h. Don't include
7315 2010-04-08 Stan Shebs <stan@codesourcery.com>
7316 Pedro Alves <pedro@codesourcery.com>
7318 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7319 and circular_buffer.
7320 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7321 * tracepoint.c (trace_status_command): Display target's status for
7322 disconnected tracing and circular buffer.
7323 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7324 query for non-disconnected-tracing case, remove the stop_tracing
7326 (tfile_open): Clear disconnected and circular buffer status.
7327 (trace_save): Save disconnected and circular buffer status.
7328 (parse_trace_status): Parse disconnected and circular buffer status,
7329 also recognize disconnected as a stop reason.
7330 * remote.c (remote_set_disconnected_tracing): Only set
7331 QTDisconnected if the remote end supports disconnected tracing.
7332 Warn otherwise, if trying to enable disconnected tracing.
7333 * infcmd.c (detach_command): Update disconnect_tracing call.
7334 * cli/cli-cmds.c (quit_command): Ditto.
7336 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7338 * i387-tdep.c (i387_collect_xsave): Replace abort with
7341 2010-04-08 Stan Shebs <stan@codesourcery.com>
7343 * breakpoint.c (default_collect_info): New function.
7344 (breakpoints_info): Call it.
7345 (maintenance_info_breakpoints): Ditto.
7346 (tracepoints_info): Ditto.
7348 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7350 * i387-tdep.c (i387_collect_xsave): Re-indent.
7352 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7354 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7355 if HAVE_PTRACE_GETFPXREGS is defined.
7356 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7357 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7359 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7360 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7361 if .reg-xfp section doesn't exist.
7362 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7364 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7366 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7367 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7368 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7369 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7370 (i386_gdbarch_init): Update comments.
7371 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7373 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7375 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7377 * features/Makefile (i386/i386-mmx-expedite): New.
7378 (i386/i386-mmx-linux-expedite): Likewise.
7379 ($(outdir)/i386/i386-mmx.dat): Likewise.
7380 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7382 * features/i386/i386-mmx-linux.c: New.
7383 * features/i386/i386-mmx-linux.xml: Likewise.
7384 * features/i386/i386-mmx.c: Likewise.
7385 * features/i386/i386-mmx.xml: Likewise.
7386 * regformats/i386/i386-mmx-linux.dat: Likewise.
7387 * regformats/i386/i386-mmx.dat: Likewise.
7389 * features/Makefile (WHICH): Add i386/i386-mmx and
7390 i386/i386-mmx-linux.
7392 2010-04-08 Doug Evans <dje@google.com>
7394 * source.c (openp): Skip $cdir in PATH.
7396 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7399 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7401 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7402 address and a zero length.
7404 2010-04-08 Hui Zhu <teawater@gmail.com>
7406 * i386-tdep.c (i386_process_record): Add support for insn
7409 2010-04-07 Doug Evans <dje@google.com>
7411 * python/python.c (source_python_script): Use ensure_python_env
7412 to prepare environment for script.
7414 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7416 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7417 <sys/uio.h> and "i386-xstate.h".
7418 (PTRACE_GETREGSET): New.
7419 (PTRACE_SETREGSET): Likewise.
7420 (have_ptrace_getregset): Likewise.
7421 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7423 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7425 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7426 (amd64_linux_store_inferior_registers): Likewise.
7427 (amd64_linux_read_description): Check and enable AVX target
7430 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7431 and "features/i386/amd64-avx-linux.c".
7432 (amd64_linux_regset_sections): New.
7433 (amd64_linux_core_read_description): Check and enable AVX
7435 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7436 set_gdbarch_core_regset_sections.
7437 (_initialize_amd64_linux_tdep): Call
7438 initialize_tdesc_amd64_avx_linux.
7440 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7441 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7442 (tdesc_amd64_avx_linux): New.
7443 (amd64_linux_update_xstateregset): Likewise.
7445 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7446 (amd64_ymm_names): New.
7447 (amd64_ymmh_names): Likewise.
7448 (amd64_register_name): Likewise.
7449 (amd64_supply_xstateregset): Likewise.
7450 (amd64_collect_xstateregset): Likewise.
7451 (amd64_supply_xsave): Likewise.
7452 (amd64_collect_xsave): Likewise.
7453 (AMD64_NUM_REGS): Removed.
7454 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7455 %xmmN if AVX is available.
7456 (amd64_pseudo_register_name): Support pseudo YMM registers.
7457 (amd64_regset_from_core_section): Support .reg-xstate section.
7458 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7459 and ymm0h_regnum. Call set_gdbarch_register_name.
7460 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7462 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7463 AMD64_YMM15H_REGNUM.
7464 (AMD64_NUM_REGS): New.
7465 (amd64_supply_xsave): Likewise.
7466 (amd64_collect_xsave): Likewise.
7467 (amd64_register_name): Removed.
7468 (amd64_register_type): Likewise.
7470 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7472 * i387-tdep.c: Include "i386-xstate.h".
7473 (XSAVE_XSTATE_BV_ADDR): New.
7474 (xsave_avxh_offset): Likewise.
7475 (XSAVE_AVXH_ADDR): Likewise.
7476 (i387_supply_xsave): Likewise.
7477 (i387_collect_xsave): Likewise.
7479 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7480 (I387_YMM0H_REGNUM): Likewise.
7481 (I387_YMMENDH_REGNUM): Likewise.
7482 (i387_supply_xsave): Likewise.
7483 (i387_collect_xsave): Likewise.
7485 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7487 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7488 <sys/uio.h> and "i386-xstate.h".
7489 (PTRACE_GETREGSET): New.
7490 (PTRACE_SETREGSET): Likewise.
7491 (fetch_xstateregs): Likewise.
7492 (store_xstateregs): Likewise.
7493 (GETXSTATEREGS_SUPPLIES): Likewise.
7494 (regmap): Include 8 upper YMM registers.
7495 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7497 (i386_linux_store_inferior_registers): Likewise.
7498 (i386_linux_read_description): Check and enable AVX target
7501 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7502 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7503 (i386_linux_regset_sections): Add ".reg-xstate".
7504 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7505 (i386_linux_core_read_xcr0): New.
7506 (i386_linux_core_read_description): Check and enable AVX target
7508 (i386_linux_init_abi): Set xsave_xcr0_offset.
7509 (_initialize_i386_linux_tdep): Call
7510 initialize_tdesc_i386_avx_linux.
7512 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7513 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7514 (i386_linux_core_read_xcr0): New.
7515 (tdesc_i386_avx_linux): Likewise.
7516 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7518 * i386-tdep.c: Include "i386-xstate.h" and
7519 "features/i386/i386-avx.c".
7520 (i386_ymm_names): New.
7521 (i386_ymmh_names): Likewise.
7522 (i386_ymmh_regnum_p): Likewise.
7523 (i386_ymm_regnum_p): Likewise.
7524 (i386_xmm_regnum_p): Likewise.
7525 (i386_register_name): Likewise.
7526 (i386_ymm_type): Likewise.
7527 (i386_supply_xstateregset): Likewise.
7528 (i386_collect_xstateregset): Likewise.
7529 (i386_sse_regnum_p): Removed.
7530 (i386_pseudo_register_name): Support pseudo YMM registers.
7531 (i386_pseudo_register_type): Likewise.
7532 (i386_pseudo_register_read): Likewise.
7533 (i386_pseudo_register_write): Likewise.
7534 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7535 %xmmN if AVX is available.
7536 (i386_regset_from_core_section): Support .reg-xstate section.
7537 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7538 (i386_process_record): Replace i386_sse_regnum_p with
7540 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7541 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7542 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7543 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7544 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7545 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7547 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7549 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7550 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7552 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7553 (I386_AVX_NUM_REGS): New.
7554 (i386_xmm_regnum_p): Likewise.
7555 (i386_ymm_regnum_p): Likewise.
7556 (i386_ymmh_regnum_p): Likewise.
7558 * common/i386-xstate.h: New.
7560 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7562 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7564 * features/Makefile (WHICH): Add i386/i386-avx,
7565 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7566 (i386/i386-avx-expedite): New.
7567 (i386/i386-avx-linux-expedite): Likewise.
7568 (i386/x86-64-avx-expedite):Likewise.
7569 (i386/x86-64-avx-linux-expedite): Likewise.
7570 ($(outdir)/i386/i386-avx.dat): New dependency.
7571 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7572 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7573 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7575 * features/i386/32bit-avx.xml: New.
7576 * features/i386/64bit-avx.xml: Likewise.
7577 * features/i386/i386-avx-linux.c: Likewise.
7578 * features/i386/i386-avx-linux.xml: Likewise.
7579 * features/i386/i386-avx.c: Likewise.
7580 * features/i386/i386-avx.xml: Likewise.
7581 * features/i386/x86-64-avx-linux.c: Likewise.
7582 * features/i386/x86-64-avx-linux.xml: Likewise.
7583 * features/i386/x86-64-avx.c: Likewise.
7584 * features/i386/x86-64-avx.xml: Likewise.
7585 * regformats/i386/i386-avx-linux.dat: Likewise.
7586 * regformats/i386/i386-avx.dat: Likewise.
7587 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7588 * regformats/i386/x86-64-avx.dat: Likewise.
7590 2010-04-07 Doug Evans <dje@google.com>
7592 * top.c (source_file_name): Make const char *.
7593 * top.h (source_file_name): Update.
7594 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7596 (script_from_file): Change `file' arg to const char *.
7597 * cli/cli-script.h (script_from_file): Update.
7599 2010-04-06 Doug Evans <dje@google.com>
7601 * cli/cli-cmds.c (source_command): Run cleanups.
7603 2010-04-06 Stan Shebs <stan@codesourcery.com>
7605 * defs.h (char_ptr): Move typedef here from...
7606 * ada-lang.c (char_ptr): Remove.
7607 * charset.c (char_ptr): Remove.
7608 * tracepoint.h (struct uploaded_string): Remove.
7609 (struct uploaded_tp): Use vectors for string arrays.
7610 * tracepoint.c (trace_save): Use vectors of actions.
7611 (parse_tracepoint_definition): Ditto.
7612 (get_uploaded_tp): Clear vectors.
7613 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7614 (next_cmd): Change to an int.
7615 (read_next_cmd): Use vector of command strings.
7617 2010-04-06 Doug Evans <dje@google.com>
7619 * top.h (source_script, cd_command): Delete.
7620 * main.c: #include "cli/cli-cmds.h"
7622 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7624 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7625 type in bytes, not bits.
7627 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7629 * stabsread.c (define_symbol): Add support for char
7630 and string constants.
7632 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7634 Remove remaining "%ll" uses.
7635 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7637 * rs6000-nat.c (rs6000_ptrace64): Idem.
7638 * solib-pa64.c (pa64_current_sos): Idem.
7639 * solib-spu.c (spu_current_sos): Idem.
7640 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7642 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7644 * sh64-tdep.c (sh64_show_media_regs): Idem.
7646 2010-04-05 Stan Shebs <stan@codesourcery.com>
7648 * tracepoint.c: Include gdbcore.h.
7649 (tfile_xfer_partial): Return partial results, also try reading
7651 (tfile_has_all_memory): New function.
7652 (init_tfile_ops): Use it.
7654 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7657 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7658 the changes in data-directory.
7659 (init_sysinfo): Reload the syscall XML file if the data-directory
7662 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7665 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7667 2010-04-04 Stan Shebs <stan@codesourcery.com>
7668 Nathan Sidwell <nathan@codesourcery.com>
7670 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7671 breakpoints printed.
7672 (is_hardware_watchpoint): Make argument const.
7673 (is_watchpoint): Ditto.
7674 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7676 (breakpoints_info): Pass NULL to breakpoint_1.
7677 (maintenance_info_breakpoints): Ditto.
7678 (watchpoints_info): New function.
7679 (tracepoints_info): Use breakpoint_1 filter.
7680 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7681 (_initialize_breakpoint): Make "info watchpoints" its own command.
7682 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7683 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7685 2010-04-04 Stan Shebs <stan@codesourcery.com>
7687 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7689 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7691 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7692 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7694 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7696 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7697 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7699 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7701 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7704 2010-04-02 Hui Zhu <teawater@gmail.com>
7706 * i386-tdep.c (OT_DQUAD): New enum.
7707 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7708 SSE3, SSSE3 and SSE4.
7710 2010-04-02 Hui Zhu <teawater@gmail.com>
7712 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7715 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7717 * tracepoint.c (trace_dump_actions): New, factored out from
7718 trace_dump_command, and adjusted to recurse into while-stepping's
7720 (trace_dump_command): Use it.
7722 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7724 * breakpoint.h (struct counted_command_line): Moved definition to
7725 breakpoint.c, and forward declare.
7726 (breakpoint_commands): Declare.
7727 * breakpoint.c (struct counted_command_line): Moved here.
7728 (breakpoint_commands): New.
7729 * tracepoint.c (encode_actions): Use breakpoint_commands.
7730 * remote.c (remote_download_tracepoint): Ditto.
7732 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7734 * remote.c (remote_parse_stop_reply): Use hex_string instead
7735 of phex_nz for error.
7737 2010-04-01 Stan Shebs <stan@codesourcery.com>
7738 Nathan Sidwell <nathan@codesourcery.com>
7740 * tracepoint.h (enum actionline_type): Remove.
7741 (validate_actionline): Change return to void.
7742 * tracepoint.c (report_agent_reqs_errors): New function.
7743 (validate_actionline): Call it, change return to void, report errors
7745 (collect_symbol): Call report_agent_reqs_errors.
7746 (encode_actions_1): Ditto.
7747 (encode_actions): Don't expect a result from validate_actionline.
7749 2010-04-01 Stan Shebs <stan@codesourcery.com>
7751 * tracepoint.c (trace_start_command): Confirm if trace is running.
7752 (trace_stop_command): Error if trace not running.
7754 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7756 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7757 (AMD64_NUM_LOWER_BYTE_REGS): New.
7758 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7759 (amd64_pseudo_register_write): Likewise.
7760 (amd64_init_abi): Set num_byte_regs to 20.
7762 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7764 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7765 (prev_breakpoint_count): New.
7766 (set_breakpoint_count): Adjust.
7767 (rbreak_start_breakpoint_count): New.
7768 (start_rbreak_breakpoints): Adjust.
7769 (end_rbreak_breakpoints): Adjust.
7770 (struct commands_info) <arg>: New field.
7771 (do_map_commands_command): Tweak output to include breakpoint spec
7773 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7774 ARG was empty on entry. Set INFO's arg.
7775 (create_breakpoint): Adjust.
7777 * NEWS: Clarify `commands' changes.
7779 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7781 * tracepoint.c: Include stack.h.
7782 (struct add_local_symbols_data): New.
7783 (do_collect_symbol): New.
7784 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7785 iterate_over_block_local_vars.
7786 * stack.c (print_block_frame_locals): Rewrite as ...
7787 (iterate_over_block_locals): ... this. Take a callback function
7788 pointer and generic data pointer, and call that instead of
7789 print_variable_and_value.
7790 (struct print_variable_and_value_data): New.
7791 (do_print_variable_and_value): New.
7792 (iterate_over_block_local_vars): New, abstracted out from
7793 print_frame_local_vars.
7794 (print_frame_local_vars): Rewrite using
7795 iterate_over_block_local_vars.
7796 (iterate_over_block_arg_vars): New, abstracted out from
7797 print_frame_arg_vars.
7798 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7799 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7800 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7802 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7804 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7805 instructions. Use the PC+4 if the base of the TBB or TBH is the
7808 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7810 Fix crash on reading wrong function declaration DWARF.
7811 * dwarf2read.c (read_subroutine_type): New variable void_type.
7812 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7813 more close to their use.
7815 2010-03-31 Stan Shebs <stan@codesourcery.com>
7817 * breakpoint.c (tracepoint_save_command): Include variables,
7818 conditionals, tracepoint types, and default-collect.
7819 * tracepoint.c (save_trace_state_variables): New function.
7820 * tracepoint.h (save_trace_state_variables): Declare it.
7822 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7824 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7826 2010-03-30 Keith Seitz <keiths@redhat.com>
7828 * c-typeprint.c (c_type_print_args): Don't print "void"
7829 for java, regardless of whether it is TYPE_PROTOTYPED.
7830 Use the passed-in language instead of current_language.
7831 (c_type_print_varspec_suffix): Use current_language instead
7832 of assuming language_c.
7833 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7834 any return type specifier from the physname.
7836 2010-03-30 Pedro Alves <pedro@codesourcery.com>
7838 * tui/tui-interp.c (tui_is_toplevel): New.
7840 (tui_allowed_p): New.
7841 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7843 * tui/tui.h (tui_allowed_p): Declare.
7845 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7847 * serial.h: Include winsock2.h before windows.h.
7849 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7851 * NEWS: Mention xmlRegisters= in qSupported packet.
7853 * i386-tdep.c: Include "remote.h".
7854 (_initialize_i386_tdep): Call register_remote_support_xml.
7856 * remote.c (remote_support_xml): New.
7857 (register_remote_support_xml): Likewise.
7858 (remote_query_supported_append): Likewise.
7859 (remote_query_supported): Support remote_support_xml.
7861 * remote.h (register_remote_support_xml): New.
7863 2010-03-29 Stan Shebs <stan@codesourcery.com>
7865 * tracepoint.c (trace_find_line_command): Remove dead code.
7867 * tracepoint.h (struct uploaded_string): New struct.
7868 (struct uploaded_tp): New fields for source strings.
7869 * breakpoint.c (this_utp, next_cmd): New globals.
7870 (read_uploaded_action): New function.
7871 (create_tracepoint_from_upload): Fill in more parts
7873 * tracepoint.c (encode_source_string): New function.
7874 (trace_save): Write out source strings, fix error checks.
7875 (parse_tracepoint_definition): Add source string parsing.
7876 * remote.c (PACKET_TracepointSource): New packet type.
7877 (remote_download_command_source): New function.
7878 (remote_download_tracepoint): Download source pieces also.
7879 (_initialize_remote): Add packet config command.
7881 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7884 * tracepoint.c (start_tracing): Check tracepoints before sending
7885 commands to target, don't start if all tracepoints disabled.
7887 2010-03-28 Pedro Alves <pedro@codesourcery.com>
7889 * cli/cli-script.c (process_next_line): Handle 'stepping'.
7891 2010-03-26 Stan Shebs <stan@codesourcery.com>
7893 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7895 2010-03-26 Tom Tromey <tromey@redhat.com>
7897 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7899 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7901 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7902 (skip_prologue_sal): Remove local definition.
7903 (resolve_sal_pc): Remove now unnecessary code.
7904 * linespec.c (minsym_found): Call skip_prologue_sal.
7905 * symtab.c (find_function_start_pc): Remove.
7906 (find_function_start_sal): Extract prologue skipping into ...
7907 (skip_prologue_sal): ... this new function. Handle code both
7908 with and without debug info. Respect SAL's explicit_pc and
7909 explicit_line flags. Inline old find_function_start_pc.
7910 * symtab.h (find_function_start_pc): Remove.
7911 (skip_prologue_sal): Add prototype.
7913 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7915 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7916 for DW_TAG_imported_module children.
7918 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7920 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7921 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7922 * completer.c (add_struct_fields): Fix inverted logic.
7924 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7926 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7928 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7930 * tracepoint.c (current_trace_status): Don't make sure error_desc
7932 (parse_trace_status): Release a previous error_desc string, and
7933 set it to NULL by default. If stop reason is tracepoint_error,
7934 make sure error_desc is not left NULL.
7936 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7938 * tracepoint.c (trace_save): Remove X from tracepoint error
7941 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7943 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7944 the terror description. Don't expect an X prefix.
7946 2010-03-25 Stan Shebs <stan@codesourcery.com>
7948 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7949 (struct trace_status): New field error_desc.
7950 * tracepoint.c (stop_reason_names): Add terror.
7951 (current_trace_status): Ensure non-NULL error description.
7952 (trace_status_command): Add error report.
7953 (trace_status_mi): Ditto.
7954 (trace_save): Add special case for error description.
7955 (parse_trace_status): Add case for errors.
7957 2010-03-25 Keith Seitz <keiths@redhat.com>
7959 * dwarf2read.c (read_subroutine_type): If the compilation unit
7960 language is Java, mark any formal parameter named "this" as
7961 artificial (GCC/43521).
7962 (dwarf2_name): Add special handling for Java constructors.
7964 2010-03-25 Tom Tromey <tromey@redhat.com>
7966 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7967 * infrun.c (handle_inferior_event): Change initialization of
7969 (handle_inferior_event): Change assignment to stop_stack_dummy.
7970 (normal_stop): Update use of stop_stack_dummy.
7971 (struct inferior_status) <stop_stack_dummy>: Change type.
7972 * inferior.h (stop_stack_dummy): Update.
7973 * infcmd.c (stop_stack_dummy): Change type.
7974 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7976 (call_function_by_hand): Call set_std_terminate_breakpoint.
7977 Rewrite std::terminate handling.
7978 * breakpoint.h (enum bptype) <bp_std_terminate,
7979 bp_std_terminate_master>: New.
7980 (enum stop_stack_kind): New.
7981 (struct bpstat_what) <call_dummy>: Change type.
7982 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7984 * breakpoint.c (create_std_terminate_master_breakpoint): New
7986 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7987 Call create_std_terminate_master_breakpoint.
7988 (print_it_typical): Handle new breakpoint kinds.
7989 (bpstat_stop_status): Handle bp_std_terminate_master.
7990 (bpstat_what): Correctly set call_dummy field. Handle
7991 bp_std_terminate_master and bp_std_terminate.
7992 (print_one_breakpoint_location): Update.
7993 (allocate_bp_location): Update.
7994 (set_std_terminate_breakpoint): New function.
7995 (delete_std_terminate_breakpoint): Likewise.
7996 (create_thread_event_breakpoint): Update.
7997 (delete_command): Update.
7998 (breakpoint_re_set_one): Update.
7999 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8001 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8003 * symfile.c (build_section_addr_info_from_bfd): New.
8004 (build_section_addr_info_from_objfile): Base it on
8005 build_section_addr_info_from_bfd.
8006 (addrs_section_compar, addrs_section_sort): New.
8007 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8008 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8009 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8011 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8013 * elfread.c (find_separate_debug_file_by_buildid):
8014 Remove unused local variable.
8016 2010-03-24 Tom Tromey <tromey@redhat.com>
8018 PR breakpoints/9352:
8019 * NEWS: Mention changes to `commands' and `rbreak'.
8020 * symtab.c (do_end_rbreak_breakpoints): New function.
8021 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8022 end_rbreak_breakpoints.
8023 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8024 (set_breakpoint_count): Likewise. Clear last_was_multi.
8025 (multi_start, multi_end, last_was_multi): New globals.
8026 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8028 (struct commands_info): New
8029 (do_map_commands_command): New function.
8030 (commands_command_1): New function.
8031 (commands_command): Use it.
8032 (commands_from_control_command): Likewise.
8033 (do_delete_breakpoint): New function.
8034 (delete_command): Use it.
8035 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8036 (do_map_disable_breakpoint): New function.
8037 (disable_command): Use it.
8038 (do_map_enable_breakpoint): New function.
8039 (enable_command): Use it.
8040 (enable_once_breakpoint): Add argument.
8041 (enable_once_command): Update.
8042 (enable_delete_breakpoint): Add argument.
8043 (enable_delete_command): Update.
8044 (break_command_really): Set last_was_multi when needed.
8045 (check_tracepoint_command): Fix formatting.
8046 (validate_commands_for_breakpoint): New function.
8047 (breakpoint_set_commands): Use it.
8048 (tracepoint_save_command): Update.
8049 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8052 2010-03-24 Tom Tromey <tromey@redhat.com>
8054 * breakpoint.h (struct counted_command_line): New struct.
8055 (struct breakpoint) <commands>: Change type.
8056 (struct bpstats) <commands>: Change type.
8057 <commands_left>: New field.
8058 * breakpoint.c (alloc_counted_command_line): New function.
8059 (incref_counted_command_line): Likewise.
8060 (decref_counted_command_line): Likewise.
8061 (do_cleanup_counted_command_line): Likewise.
8062 (make_cleanup_decref_counted_command_line): Likewise.
8063 (breakpoint_set_commands): Use decref_counted_command_line and
8064 alloc_counted_command_line.
8065 (commands_command): Don't error if breakpoint commands are
8067 (commands_from_control_command): Likewise.
8068 (bpstat_free): Update.
8069 (bpstat_copy): Likewise.
8070 (bpstat_clear_actions): Likewise.
8071 (bpstat_do_actions_1): Likewise.
8072 (bpstat_stop_status): Likewise.
8073 (print_one_breakpoint_location): Likewise.
8074 (delete_breakpoint): Likewise.
8075 (bpstat_alloc): Initialize new field.
8076 (tracepoint_save_command): Update.
8077 * tracepoint.c (encode_actions): Update.
8078 (trace_dump_command): Update.
8080 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8082 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8083 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8084 (read_structure_type): For RealView, set TYPE_STUB on structures with
8085 no byte size and no children.
8086 (read_subroutine_type): Mark functions as prototyped by default.
8087 * symtab.c (producer_is_realview): New function.
8088 * symtab.h (expand_line_sal): Fix declaration formatting.
8089 (producer_is_realview): Declare.
8091 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8093 * arm-tdep.c (skip_prologue_function): New function.
8094 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8095 (thumb_analyze_prologue): Document return value. Recognize more
8096 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8098 (arm_skip_prologue): Remove call dummy check. Check the prologue
8099 for non-GNU compilers.
8100 (arm_instruction_changes_pc): New function.
8101 (arm_analyze_prologue): New function, broken out from
8102 arm_scan_prologue. Recognize more ARM instructions and skippable
8103 calls. Update comments. Handle NULL cache. Return the address
8104 of the first unrecognized instruction. Do not skip past other
8105 instructions which change control flow. Add debug output.
8106 (arm_scan_prologue): Use arm_analyze_prologue.
8107 (ARM_PC_32): Delete.
8108 (shifted_reg_val): Simplify ARM_PC_32 check.
8110 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8112 * tracepoint.c (tvariables_info_1): Actually compute
8113 the number of rows in the result.
8115 2010-03-24 Pedro Alves <pedro@codesourcery.com>
8117 * remote.c (crc32): Constify `buf' parameter.
8118 (remote_verify_memory): New, abstracted out from...
8119 (compare_sections_command): ... this. Remove hardcoded target
8121 (init_remote_ops): Install remote_verify_memory.
8122 * target.c (target_verify_memory): New.
8123 * target.h (struct target_ops) <to_verify_memory>: New field.
8124 (target_verify_memory): Declare.
8126 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8128 Implement -trace-save.
8130 * mi-cmds.h (mi_cmds_trace_save): Declare.
8131 * mi-cmds.c (mi_cmds): Register -trace-save.
8132 * mi/mi-main.c (mi_cmd_trace_save): New.
8133 * remote.c (remote_save_trace_data): Take const parameter.
8134 * target.h (struct target_ops::to_save_trace_data): Take
8136 * target.c (update_current_target): Adjust to the above.
8137 * tracepoint.c (trave_save): New, extracted from
8138 (trace_save_command): ...this.
8139 (tfile_trace_find): Remove message that is unnecessary now
8140 that 'tfind' reports found frame.
8141 * tracepoint.h (trace_save): Declare.
8143 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8145 Implement -trace-find.
8147 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8148 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8149 * mi/mi-main.c (mi_cmd_trace_find): New.
8150 * target.h (struct target_ops): Document to_trace_find.
8151 * tracepoint.h (tfind_1): Declare.
8152 * tracepoint.c (finish_tfind_command): Rename to...
8154 * remote.c (remote_trace_find): Return -1 if target say
8155 there's no frame. Improve error diagnostics.
8157 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8159 -trace-define-variable and -trace-list-variables.
8161 * tracepoint.c (create_trace_state_variable): Make
8162 private copy of name, as opposed to assuming the
8163 pointer lives forever.
8164 (tvariables_info_1): New.
8165 (tvariables_info): Use the above.
8166 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8168 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8169 and -trace-list-variables.
8170 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8171 (mi_cmd_trace_list_variables): New.
8172 * mi/mi-main.c (mi_cmd_trace_define_variable)
8173 (mi_cmd_trace_list_variables): New.
8175 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8177 Implement -break-passcount.
8179 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8180 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8181 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8183 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8185 -trace-start/-trace-end/-trace-status.
8187 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8189 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8190 (mi_cmd_trace_stop): Declare.
8191 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8192 (mi_cmd_trace_stop): New.
8193 * tracepoint.c (start_tracing): New, extracted from...
8194 (trace_start_command): ...this.
8195 (trace_status_mi): New.
8196 * tracepoint.h (struct trace_status): Document
8197 stopping_tracepoint.
8198 (start_tracing, stop_tracing, trace_status_mi): Declare.
8200 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8202 Implement creating tracepoints with -break-insert.
8204 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8205 to mean that tracepoint should be created.
8207 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8209 * breakpoint.c (check_no_tracepoint_commands): Use
8210 current spelling of 'teval'.
8212 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8214 Unify actions and commands
8216 * defs.h (read_command_lines, read_command_lines_1): New
8217 parameters validator and closure.
8218 * tracepoint.h (struct action_line): Remove.
8219 * breakpoint.h (struct breakpoint): Remove the 'actions'
8221 * defs.h (enum command_control_type): New value
8222 while_stepping_control.
8223 (struct command_line): Add comments.
8224 * breakpoint.c (breakoint_is_tracepoint): New.
8225 (breakpoint_set_commands): For tracepoints,
8226 verify the commands are permissible.
8227 (check_tracepoint_commands): New.
8228 (commands_command): Require that each new line is validated using
8229 check_tracepoint_command, if we set commands for a tracepoint.
8230 (create_tracepoint_from_upload): Likewise.
8231 (print_one_breakpoint_location): Remove the code to print
8232 actions specifically.
8233 (tracepoint_save_command): Relay to print_command_lines.
8234 * cli/cli-script.c (process_next_line): New parameters validator
8235 and closure. Handle 'while-stepping'. Call validator if not null.
8236 (read_command_lines, read_command_lines1): Likewise.
8237 (recurse_read_control_structure): New parameters validator and
8238 closure. Handle while_stepping_control.
8239 (print_command_lines): Handle while-stepping.
8240 (get_command_line, define_command, document_command): Adjust.
8241 * remote.c (remote_download_tracepoint): Adjust.
8242 * tracepoint.c (make_cleanup_free_actions, read_actions)
8243 (free_actions, do_free_actions_cleanup): Remove.
8244 (trace_actions_command): Use read_command_lines.
8245 (validate_actionline): Use error in one place.
8246 (encode_actions_1): New, extracted from...
8247 (encode_actions): ...this. Also use cleanups for exception
8249 (trace_dump_command): Adjust.
8250 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8253 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8255 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8257 2010-03-22 Stan Shebs <stan@codesourcery.com>
8259 * value.c (value_static_field): Be lazy about the field's value.
8261 2010-03-22 Reid Kleckner <reid@kleckner.net>
8264 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8266 (disable_breakpoints_in_shlibs): Likewise.
8268 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8270 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8271 GCC 4.1 debug info generation (GCC PR c++/28460).
8272 (determine_prefix): Likewise.
8274 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8276 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8278 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8280 2010-03-19 Stan Shebs <stan@codesourcery.com>
8282 * ax-gdb.c (gen_fetch): Handle bool.
8283 (gen_usual_unary): Ditto.
8285 (gen_equal): New function.
8286 (gen_less): New function.
8287 (gen_expr_binop_rest): Call them, also return integer type from
8291 2010-03-19 Tom Tromey <tromey@redhat.com>
8293 * jv-lang.c (jv_dynamics_objfile_data_key)
8294 (jv_type_objfile_data_key): New globals.
8295 (class_symtab): Move earlier.
8296 (jv_per_objfile_free): New function.
8297 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8299 Remove ancient #if 1.
8300 (add_class_symbol): Remove redundant declaration.
8301 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8302 (java_link_class_type): Mark as static. Update.
8303 (jv_clear_object_type): New function.
8304 (set_java_object_type): Likewise.
8305 (get_java_object_type): Use set_java_object_type.
8306 (is_object_type): Likewise.
8307 (_initialize_java_language): Register new objfile keys.
8308 (get_java_class_symtab): Add 'gdbarch' parameter.
8309 (add_class_symtab_symbol): Update.
8310 (type_from_class): Update.
8312 2010-03-19 Stan Shebs <stan@codesourcery.com>
8314 * ax-general.c (ax_const_l): Fix a sizing bug.
8316 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8320 2010-03-18 Stan Shebs <stan@codesourcery.com>
8321 Pedro Alves <pedro@codesourcery.com>
8323 * target.h (struct target_ops): New method
8324 to_set_circular_trace_buffer.
8325 (target_set_circular_trace_buffer): New macro.
8326 * target.c (update_current_target): Add
8327 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8329 * remote.c (remote_set_circular_trace_buffer): New function.
8330 (init_remote_ops): Add it to vector.
8331 * tracepoint.h (struct trace_status): New field traceframes_created,
8332 change buffer_size and buffer_free to int.
8333 * tracepoint.c (circular_trace_buffer): New global.
8334 (start_tracing): Send values of disconnected tracing and circular
8335 trace buffer settings.
8336 (set_circular_trace_buffer): New function.
8337 (parse_trace_state): Handle total space and frames created.
8338 (trace_status_command): Display total space and total frames
8340 (trace_save): Write out new status values.
8341 (parse_trace_status): Set traceframe_count, traceframes_created,
8342 buffer_free and buffer_size to -1 by default.
8343 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8344 * NEWS: Mention the circular trace buffer option.
8346 2010-03-18 Tom Tromey <tromey@redhat.com>
8348 * infcmd.c (finish_command_continuation): Wrap print_return_value
8351 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8353 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8354 DIE has a name before creating the associated partial symbol.
8355 (read_func_scope): Emit a complaint if the subprogram does not
8356 have a name or when we can't extract the subprogram PC bounds.
8358 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8360 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8361 instead of selected frame architecture.
8363 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8365 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8366 a valid selected thread, and that it is not running.
8367 (advance_command): Ditto.
8368 (finish_command): Ditto.
8370 2010-03-17 Stan Shebs <stan@codesourcery.com>
8372 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8374 * infcall.c: Include tracepoint.h.
8375 (call_function_by_hand): Disallow calls in tfind mode.
8376 * infcmd.c: Include tracepoint.h.
8377 (ensure_not_tfind_mode): New function.
8378 (continue_1): Call it.
8380 (jump_command): Ditto.
8381 (signal_command): Ditto.
8382 (advance_command): Ditto.
8383 (until_command): Ditto.
8384 (finish_command): Ditto.
8385 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8387 * ax-gdb.h (struct axs_value): New field optimized_out.
8388 (gen_trace_for_var): Add gdbarch argument.
8389 * ax-gdb.c (gen_trace_static_fields): New function.
8390 (gen_traced_pop): Call it, add gdbarch argument.
8391 (gen_trace_for_expr): Update call to it.
8392 (gen_trace_for_var): Ditto, and report optimized-out variables.
8393 (gen_struct_ref_recursive): Check for optimized-out value.
8394 (gen_struct_elt_for_reference): Ditto.
8395 (gen_static_field): Pass gdbarch instead of expression, assume
8396 optimization if field not found.
8397 (gen_var_ref): Set the optimized_out flag.
8398 (gen_expr): Error on optimized-out variable.
8399 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8400 expressions, skip optimized-out variables with computed locations.
8401 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8402 erroring out if location expression missing.
8403 (loclist_tracepoint_var_ref): Don't error out here.
8405 2010-03-17 Tom Tromey <tromey@redhat.com>
8407 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8408 DWARF data is available.
8410 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8412 * symfile.c (generic_load): Reset breakpoints after loading.
8414 2010-03-17 Tom Tromey <tromey@redhat.com>
8416 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8418 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8420 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8421 create_breakpoint call, adjust the parameters.
8423 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8424 Chandru <chandru@in.ibm.com>
8426 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8427 * valarith.c (value_subscripted_rvalue): Suppress error if
8428 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8430 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8432 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8434 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8436 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8437 before doing the associated thread switch.
8439 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8441 * MAINTAINERS: Update my email address.
8443 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8445 Simplify MI breakpoint setting.
8447 * breakpoint.c (break_command_really): Make nonstatic and
8449 (create_breakpoint): ...this. Rename prior function by this name
8451 (create_breakpoint_sal): ...this.
8452 (create_breakpoints): Rename to...
8453 (create_breakpoints_sal): ...this.
8454 (set_breakpoint): Remove.
8455 * breakpoint.h: Adjust to above changes.
8456 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8458 2010-03-15 Stan Shebs <stan@codesourcery.com>
8460 * ax-gdb.c: Include cp-support.h.
8461 (find_field): Remove.
8462 (gen_primitive_field): New function.
8463 (gen_struct_ref_recursive): New function.
8464 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8466 (gen_static_field): New function.
8467 (gen_struct_elt_for_reference): New.
8468 (gen_namespace_elt): New.
8469 (gen_maybe_namespace_elt): New.
8470 (gen_aggregate_elt_ref): New.
8471 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8473 2010-03-15 Tom Tromey <tromey@redhat.com>
8475 * dwarf2read.c (die_needs_namespace): Also return 0 for
8478 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8481 * cp-support.h: Added char *declaration element to using_direct
8483 (cp_add_using): Added char *declaration argument.
8484 (cp_add_using_directive): Ditto.
8485 (cp_lookup_symbol_imports): made extern.
8486 * cp-namespace.c: Updated with the above changes.
8487 * dwarf2read.c (read_import_statement): Ditto.
8488 (read_namespace): Ditto.
8489 (read_import_statement): Support import declarations.
8490 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8492 Added support for 'declaration_only' search.
8493 (cp_lookup_symbol_namespace): Attempt to search for the name as
8494 is before consideration of imports.
8495 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8496 search at every block level search.
8497 Now takes language argument.
8498 (lookup_symbol_aux): Updated.
8500 2010-03-15 Tom Tromey <tromey@redhat.com>
8502 * c-exp.y (name_not_typename): Add 'operator' clause.
8504 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8506 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8507 * configure: Regenerate.
8509 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8511 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8512 and ".sdynbss". Update the comment.
8514 2010-03-15 Jie Zhang <jie@codesourcery.com>
8516 * MAINTAINERS: Update my email address.
8518 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8520 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8522 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8524 * charset.c [USE_WIN32API]: Include <windows.h>.
8525 (_initialize_charset): Correct type of w32_host_default_charset.
8527 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8529 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8531 2010-03-12 Tom Tromey <tromey@redhat.com>
8534 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8535 in a lexical block does not need a namespace.
8536 (new_symbol) <DW_TAG_variable>: Put extern variables on
8537 list_in_scope in all cases.
8539 2010-03-12 Stan Shebs <stan@codesourcery.com>
8541 * ax-gdb.c (gen_expr): Add shift expressions.
8542 (gen_expr_binop_rest): Ditto.
8544 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8546 * buildsym.c (finish_block): Reset using_directives pointer
8547 after block initialization.
8549 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8551 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8552 * i386-tdep.c (i386_word_names): Likewise.
8554 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8556 * target.c (memory_xfer_partial): Don't use the stack cache if
8557 inspecting trace frames.
8558 * tracepoint.c (finish_tfind_command): Invalidate the target
8561 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8563 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8564 for the PIC displacement, print also the displacement value.
8565 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8567 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8569 * remote-mips.c (close_ports, mips_initialize_cleanups)
8570 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8571 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8572 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8573 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8574 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8575 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8576 comments describing each of these functions.
8577 (mips_enter_debug, mips_exit_debug, common_open)
8578 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8579 blank line after the comment describing the function.
8581 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8583 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8584 parameter displacementp. Update comment.
8585 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8586 element exists. Return if svr4_exec_displacement was not successful.
8589 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8590 Daniel Jacobowitz <dan@codesourcery.com>
8592 * solib-svr4.c (read_program_header): Support type == -1 to read
8593 all program headers.
8594 (read_program_headers_from_bfd): New function.
8595 (svr4_static_exec_displacement): Remove and move the comment ...
8596 (svr4_exec_displacement): ... here. Remove variable found. New
8597 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8598 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8599 targets using read_program_headers_from_bfd. Remove the call of
8600 svr4_static_exec_displacement.
8602 2010-03-10 Tom Tromey <tromey@redhat.com>
8604 * dwarf2read.c (struct pubnames_header): Remove.
8605 (_PUBNAMES_HEADER): Remove.
8606 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8607 (struct aranges_header): Remove.
8608 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8609 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8610 (PUBNAMES_SECTION): Remove.
8611 (ARANGES_SECTION): Remove.
8612 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8613 (dwarf2_build_psymtabs): Remove dead code.
8614 (dwarf2_build_psymtabs_easy): Remove.
8616 2010-03-10 Tom Tromey <tromey@redhat.com>
8618 * elfread.c (elf_symfile_read): Don't call
8619 dwarf2_build_frame_info.
8620 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8621 (struct dwarf2_per_objfile) <objfile>: New field.
8622 (dwarf2_has_info): Now idempotent. Set objfile field.
8623 (dwarf2_read_section): Check and set readin field. Call
8625 (dwarf2_build_psymtabs): Don't read all sections.
8626 (read_type_comp_unit_head): Read types section.
8627 (create_debug_types_hash_table): Likewise.
8628 (init_cu_die_reader): Add asserts.
8629 (process_type_comp_unit): Add assert.
8630 (dwarf2_build_psymtabs_hard): Read info section.
8631 (load_partial_comp_unit): Add assert.
8632 (create_all_comp_units): Read info section.
8633 (load_full_comp_unit): Likewise.
8634 (dwarf2_ranges_read): Read ranges section.
8635 (dwarf2_record_block_ranges): Add assert.
8636 (dwarf2_read_abbrevs): Read abbrev section.
8637 (read_indirect_string): Read str section.
8638 (dwarf_decode_line_header): Read line section.
8639 (read_signatured_type_at_offset): Read types section.
8640 (dwarf_decode_macros): Read macinfo section.
8641 (dwarf2_symbol_mark_computed): Read loc section.
8642 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8643 dwarf2_build_frame_info.
8644 (dwarf2_build_frame_info): Unconditionally set
8645 dwarf2_frame_objfile_data on the objfile.
8646 * configure.ac: Check for posix_madvise.
8647 * config.in, configure: Rebuild.
8649 2010-03-10 Tom Tromey <tromey@redhat.com>
8651 * xcoffread.c (xcoff_start_psymtab): Update.
8652 (xcoff_end_psymtab): Update.
8653 * psymtab.c (allocate_psymtab): Remove dead code.
8654 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8656 * mdebugread.c (parse_partial_symbols): Update.
8657 (new_psymtab): Likewise.
8658 * dwarf2read.c (process_psymtab_comp_unit): Update.
8659 (psymtab_to_symtab_1): Update.
8660 * dbxread.c (start_psymtab): Update.
8661 (end_psymtab): Likewise.
8663 2010-03-10 Tom Tromey <tromey@redhat.com>
8665 * xcoffread.c: Include psymtab.h.
8666 (xcoff_sym_fns): Update.
8667 * symtab.h (struct partial_symbol): Remove.
8668 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8669 (struct partial_symtab): Remove.
8670 (PSYMTAB_TO_SYMTAB): Remove.
8671 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8672 (find_pc_sect_psymtab): Remove.
8673 (find_pc_sect_symtab_via_partial): Declare.
8674 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8675 (find_main_psymtab): Remove.
8676 (find_main_filename): Declare.
8677 (fixup_psymbol_section): Remove.
8678 (fixup_section): Declare.
8679 * symtab.c: Include psymtab.h.
8680 (lookup_symtab): Use lookup_symtab method.
8681 (lookup_partial_symtab): Remove.
8682 (find_pc_sect_psymtab_closer): Remove.
8683 (find_pc_sect_psymtab): Remove.
8684 (find_pc_sect_symtab_via_partial): New function.
8685 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8686 (fixup_section): No longer static.
8687 (fixup_psymbol_section): Remove.
8688 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8689 (lookup_global_symbol_from_objfile): Likewise.
8690 (lookup_symbol_aux_psymtabs): Remove.
8691 (lookup_symbol_aux_quick): New function.
8692 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8693 (lookup_partial_symbol): Remove.
8694 (basic_lookup_transparent_type_quick): New function.
8695 (basic_lookup_transparent_type): Use it.
8696 (find_main_psymtab): Remove.
8697 (find_main_filename): New function.
8698 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8699 (find_line_symtab): Use expand_symtabs_with_filename method.
8700 (output_partial_symbol_filename): New function.
8701 (sources_info): Use map_partial_symbol_filenames.
8702 (struct search_symbols_data): New type.
8703 (search_symbols_file_matches): New function.
8704 (search_symbols_name_matches): Likewise.
8705 (search_symbols): Use expand_symtabs_matching method.
8706 (struct add_name_data): Rename from add_macro_name_data.
8707 (add_macro_name): Update.
8708 (add_partial_symbol_name): New function.
8709 (default_make_symbol_completion_list): Use
8710 map_partial_symbol_names.
8711 (struct add_partial_symbol_name): New type.
8712 (maybe_add_partial_symtab_filename): New function.
8713 (make_source_files_completion_list): Use
8714 map_partial_symbol_filenames.
8715 (expand_line_sal): Use expand_symtabs_with_filename method.
8716 * symmisc.c: Include psymtab.h.
8717 (print_objfile_statistics): Use print_stats method.
8718 (dump_objfile): Use dump method.
8719 (dump_psymtab, maintenance_print_psymbols)
8720 (maintenance_info_psymtabs, maintenance_check_symtabs)
8721 (extend_psymbol_list): Remove.
8722 * symfile.h (struct quick_symbol_functions): New struct.
8723 (struct sym_fns) <qf>: New field.
8724 (sort_pst_symbols): Remove.
8725 (increment_reading_symtab): Declare.
8726 * symfile.c: Include psymtab.h.
8727 (compare_psymbols, sort_pst_symbols): Remove.
8728 (psymtab_to_symtab): Remove.
8729 (increment_reading_symtab): New function.
8730 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8732 (set_initial_language): Use find_main_filename.
8733 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8734 (free_named_symtabs): Remove unused code.
8735 (start_psymtab_common, add_psymbol_to_bcache)
8736 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8738 * stack.c: Include psymtab.h, symfile.h.
8739 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8740 * source.h (psymtab_to_fullname): Don't declare.
8741 * source.c: Include psymtab.h.
8742 (select_source_symtab): Use find_last_source_symtab method.
8743 (forget_cached_source_info): Use forget_cached_source_info
8745 (find_and_open_source): No longer static.
8746 (psymtab_to_fullname): Remove.
8747 * somread.c: Include psymtab.h.
8748 (som_sym_fns): Update.
8749 * psympriv.h: New file.
8750 * psymtab.h: New file.
8751 * psymtab.c: New file.
8752 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8753 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8754 * objfiles.c: Include psymtab.h.
8755 (objfile_relocate1): Use relocate method.
8756 (objfile_has_partial_symbols): Use has_symbols method.
8757 * mipsread.c: Include psymtab.h.
8758 (ecoff_sym_fns): Update.
8759 * mi/mi-cmd-file.c: Include psymtab.h.
8760 (print_partial_file_name): New function.
8761 (mi_cmd_file_list_exec_source_files): Use
8762 map_partial_symbol_filenames.
8763 * mdebugread.c: Include psympriv.h.
8764 * machoread.c: Include psympriv.h.
8765 (macho_sym_fns): Update.
8766 * m2-exp.y (yylex): Use lookup_symtab.
8767 * elfread.c: Include psympriv.h.
8768 (elf_sym_fns): Update.
8769 * dwarf2read.c: Include psympriv.h.
8770 * dbxread.c: Include psympriv.h.
8771 (aout_sym_fns): Update.
8772 * cp-support.c: Include psymtab.h.
8773 (read_in_psymtabs): Remove.
8774 (make_symbol_overload_list_qualified): Use
8775 expand_symtabs_for_function method.
8776 * coffread.c: Include psympriv.h.
8777 (coff_sym_fns): Update.
8778 * blockframe.c: Include psymtab.h.
8779 (find_pc_partial_function): Use find_pc_sect_symtab method.
8780 * ada-lang.h (ada_update_initial_language): Update.
8781 * ada-lang.c: Include psymtab.h.
8782 (ada_update_initial_language): Remove 'main_pst' argument.
8783 (ada_lookup_partial_symbol): Remove.
8784 (struct ada_psym_data): New type.
8785 (ada_add_psyms): New function.
8786 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8787 (struct add_partial_datum): New type.
8788 (ada_add_partial_symbol_completions): New function.
8789 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8790 (ada_exception_support_info_sniffer): Update.
8791 * Makefile.in (SFILES): Add psymtab.c.
8792 (COMMON_OBS): Add psymtab.o.
8793 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8795 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8797 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8799 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8802 * cp-namespace.c (cp_add_using): Deleted.
8803 (cp_add_using_directive): Use obstack allocations.
8804 Merged the function cp_add_using into this one.
8805 Added 'struct obstack *' argument.
8806 (cp_scan_for_anonymous_namespaces): Updated.
8807 * cp-support.h: Updated.
8808 * dwarf2read.c (read_import_statement): Updated.
8809 (read_namespace): Updated.
8811 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8813 * windows-nat.c (cygwin_conv_path): Remove old macro.
8815 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8817 * breakpoint.c (condition_command): Handle watchpoint conditions.
8818 (is_hardware_watchpoint): Add comment.
8819 (is_watchpoint): New.
8820 (update_watchpoint): Don't reparse the watchpoint's condition
8823 (watchpoint_check): Use it.
8824 (bpstat_check_watchpoint): Handle it.
8825 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8826 conditions in a frame where it makes sense.
8827 (watch_command_1): Store the innermost block of the condition
8829 (delete_breakpoint): Delete the watchpoint condition expression.
8830 * breakpoint.h (struct bp_location) <cond>: Update comment.
8831 (struct breakpoint): New field `cond_exp_valid_block'.
8833 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8835 Adjust handling of Ada DIEs after dwarf2_physname patch.
8836 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8838 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8839 Pierre Muller <muller@ics.u-strasbg.fr>
8841 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8842 from/to posix/win32.
8843 (windows_make_so): Use non-Cygwin 1.7 specific function.
8844 (windows_create_inferior): Make sure that cygallargs points to
8845 original args in non Cygwin 1.7. case.
8847 2010-03-09 Michael Snyder <msnyder@vmware.com>
8849 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8850 after target_read_memory to get host byte order.
8851 (i386_process_record): Ditto.
8853 2010-03-09 Keith Seitz <keiths@redhat.com>
8855 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8856 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8857 print out const or volatile qualifiers, too.
8858 (c_type_print_args): Add parameters show_artificial and language.
8859 Skip artificial parameters when requested.
8860 Use the appropriate language printer.
8861 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8862 parameters and pass language_c.
8863 * dwarf2read.c (die_list): New file global.
8864 (struct partial_die_info): Update comments for name field.
8865 (pdi_needs_namespace): Renamed to ...
8866 (die_needs_namespace): ... this. Rewrite.
8867 (dwarf2_linkage_name): Remove.
8868 (add_partial_symbol): Do not predicate the call to
8869 partial_die_full_name based on pdi_needs_namespace.
8870 Remove call to cp_check_possible_namespace_symbols and associated
8872 (guess_structure_name): Do not inspect child subprogram DIEs.
8873 (dwarf2_fullname): Update comments.
8874 Use die_needs_namespace to assist in computing the name.
8875 (read_func_scope): Use dwarf2_name to get the DIE's name.
8876 Use dwarf2_physname to get the "linkage name" of the DIE.
8877 (dwarf2_add_member_field): Use dwarf2_physname instead of
8878 dwarf2_linkage_name.
8879 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8880 (determine_class): Remove.
8881 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8883 (new_symbol): Unconditionally call dwarf2_name.
8884 Compute the "linkage name" using dwarf2_physname.
8885 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8886 When determining to scan for anonymous C++ namespaces, ignore
8888 (dwarf2_physname): New function.
8889 (dwarf2_full_name): Move content to new function and call
8891 (dwarf2_compute_name): "New" function.
8892 (_initialize_dwarf2_read): Initialize die_list.
8893 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8895 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8896 without a demangled name.
8897 Print out type information for non-virtual methods.
8898 * linespec.c (decode_line_1): Force ANY string using "::" (or
8899 "." for java) to use decode_compound, and clean up any stray quoting.
8900 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8901 (decode_compound): Stop consuming at an open parenthesis.
8902 Keep template parameters.
8903 Keep any overload information.
8904 Keep keywords like "const".
8905 Remove paren_pointer.
8906 Move is_quoted check from set_flags to here.
8907 Remove #if 0 code from 2000. Ten years is long enough.
8908 (find_method): Before comparing symbol names, canonicalize the string
8910 If a specific overload is requested, find it. Otherwise throw an error.
8911 (find_method_overload_end): New function.
8912 (set_flags): Remove.
8913 (decode_compound): Assume that parentheses are matched.
8915 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8917 * linespec.c (decode_line_1): Keep important keywords like
8918 "const" and "volatile".
8919 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8920 * typeprint.h (c_type_print_args): Add declaration.
8921 * ui-file.c (do_ui_file_obsavestring): New function.
8922 (ui_file_obsavestring): New function.
8923 * ui-file.h (ui_file_obsavestring): Add declaration.
8924 * valops.c (find_overload_match): Resolve the object to
8926 If the object is a data member, search the object for the member
8927 and return with staticp set.
8928 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8929 Do not attempt to extract a function name from non-function types.
8930 If the extracted function name and the original name are the same,
8931 we don't have a C++ method.
8933 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8934 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8936 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8937 and arguments from symbol lookups.
8938 * ax-gdb.c (gen_expr): Likewise.
8939 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8940 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8941 lookup_possible_namespace_symbol): Likewise.
8942 * cp-support.c (read_in_psymtabs): Likewise.
8943 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8944 * language.h (la_lookup_symbol_nonlocal): Likewise.
8945 * scm-valprint.c (scm_inferior_print): Likewise.
8946 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8947 * solib-svr.c (elf_lookup_lib): Likewise.
8948 * solib.c (show_auto_solib_add): Likewise.
8949 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8950 * symmisc.c (maintenance_check_symtabs): Likewise.
8951 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8952 lookup_symbol_aux_local, lookup_symbol_aux_block,
8953 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8954 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8955 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8956 basic_lookup_transparent_type, find_main_psymtab,
8957 lookup_block_symbol): Likewise.
8958 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8959 lookup_symbol_global, lookup_symbol_aux_block,
8960 lookup_symbol_partial_symbol, lookup_block_symbol,
8961 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8963 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8965 * python/python-internal.h: Include symtab.h.
8967 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8968 Pierre Muller <muller@ics.u-strasbg.fr>
8970 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8971 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8974 2010-03-08 Tom Tromey <tromey@redhat.com>
8976 * breakpoint.c (breakpoint_1): Add "QUIT".
8978 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8979 Pedro Alves <pedro@codesourcery.com>
8981 * solib.c (solib_find): Replace extension if
8982 solib_symbols_extension is set in the target gdbarch.
8983 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8984 solib_symbols_extension to "sym".
8985 * gdbarch.sh (solib_symbols_extension): New variable.
8986 (pstring): New function.
8987 * gdbarch.h, gdbarch.c: Regenerate.
8989 2010-03-08 Tom Tromey <tromey@redhat.com>
8993 * utils.c: Include main.h.
8994 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8995 (defaulted_query): Use default answer if `batch_flag'.
8996 * main.h (batch_flag): Declare.
8997 * main.c (batch_flag): New global.
8998 (captured_main): Remove 'batch'. Update.
9000 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9002 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9005 * remote-mips.c (rockhopper_ops): New target_ops struct.
9006 (MON_ROCKHOPPER): New mips_monitor_type.
9007 (read_hex_value): New function.
9008 (mips_request): Send 8-byte values with a 'T' packet. Read the
9009 packet argument as a string and use read_hex_value to parse it.
9010 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9011 (rockhopper_open): New function.
9012 (mips_wait): Read the PC, FP and SP fields as strings. Use
9013 read_hex_value to parse them and mips_set_register to commit them.
9014 (mips_set_register): New function.
9015 (mips_fetch_registers): Do not cast register value to "unsigned"
9016 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9017 (mips_store_registers): Use a 'T' packet to set registers when
9018 using MON_ROCKHOPPER.
9019 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9020 and expect the total to be printed before the entry address.
9021 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9023 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9025 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9026 Change return value to int. Store value fetched in location
9027 addressed by `val'. Use function's return value as success
9028 or failure indicator. Adjust all callers.
9030 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
9032 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9034 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9035 Hui Zhu <teawater@gmail.com>
9037 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9038 tmp_to_stopped_data_address.
9039 (record_open): Reset tmp_to_stopped_by_watchpoint and
9040 tmp_to_stopped_data_address.
9041 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9042 to_stopped_data_address.
9044 2010-03-08 Hui Zhu <teawater@gmail.com>
9046 * i386-tdep.c (i386_process_record): Initialize regnum.
9048 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9050 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9051 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9053 2010-03-08 Joel Brobecker <brobecker@adacore.com>
9055 Memory error when reading wrong core file.
9056 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9057 errors while reading the inferior memory, and return zero if
9058 an exception was raised.
9060 2010-03-07 Michael Snyder <msnyder@vmware.com>
9062 * record.c (record_restore): Rename tmpu8 to rectype.
9064 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9065 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9067 (i386_record_push): Rename local tmpulongest to addr.
9069 (i386_process_record): Rename local tmpulongest to addr.
9071 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9074 Rename local variable tmpu8 to opcode8 and regnum.
9076 2010-03-07 Joel Brobecker <brobecker@adacore.com>
9078 * remote.c (remote_get_ada_task_ptid): New function.
9079 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9081 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9083 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9084 block. Define helper macros to reduce ifdefs in code.
9085 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9086 size. Call unadorned GetModuleFileNameEx rather than
9087 GetModuleFileNameEx*.
9088 (windows_make_so): Use __PMAX to denote maximum buffer size and
9089 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9091 (get_image_name): Use __PMAX to denote maximum buffer size.
9092 (handle_load_dll): Likewise.
9093 (windows_pid_to_exec_file): Likewise.
9094 (windows_create_inferior): Add many accommodations for older Cygwin and
9096 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9097 __USEWIDE conditional.
9098 (bad_GetModuleFileNameExA): Likewise.
9099 (_initialize_loadable): Just use real function names without the dyn_
9100 part since they are defined earlier.
9102 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
9103 Tom Tromey <tromey@redhat.com>
9105 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9106 (parse_escape): Likewise.
9107 * python/py-utils.c (unicode_to_target_string): Update.
9108 (unicode_to_target_python_string): Update.
9109 (target_string_to_unicode): Update.
9110 * printcmd.c (printf_command): Update.
9111 * p-exp.y (yylex): Update.
9112 * objc-exp.y (yylex): Update.
9113 * mi/mi-parse.c: Include charset.h.
9114 (mi_parse_escape): New function.
9115 (mi_parse_argv): Use it.
9116 * jv-exp.y (yylex): Update.
9117 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9119 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9120 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9121 * gdbarch.c: Rebuild.
9122 * gdbarch.h: Rebuild.
9123 * defs.h (parse_escape): Update.
9124 * cli/cli-setshow.c: Include arch-utils.h.
9125 (do_setshow_command): Update.
9126 * cli/cli-cmds.c (echo_command): Update.
9127 * charset.h (target_charset, target_wide_charset): Update.
9128 * charset.c: Include arch-utils.h.
9129 (target_charset_name): Default to "auto".
9130 (target_wide_charset_name): Likewise.
9131 (show_target_charset_name): Handle "auto".
9132 (show_target_wide_charset_name): Likewise.
9133 (be_le_arch): New global.
9134 (set_be_le_names): Add 'gdbarch' argument.
9135 (validate): Likewise. Don't call set_be_le_names.
9136 (set_charset_sfunc, set_host_charset_sfunc)
9137 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9139 (target_charset): Add 'gdbarch' argument.
9140 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9141 (auto_target_charset_name): New global.
9142 (default_auto_charset, default_auto_wide_charset): New functions.
9143 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9144 for target charsets. Copy result of nl_langinfo. Use GetACP if
9146 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9147 remove 'byte_order' argument. Update.
9148 (classify_type): Likewise.
9149 (c_emit_char): Update.
9150 (c_printchar): Update.
9151 (c_printstr): Update.
9152 (c_get_string): Update.
9153 (evaluate_subexp_c): Update.
9154 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9156 * python/python.c (gdbpy_target_charset): New function.
9157 (gdbpy_target_wide_charset): Likewise.
9158 (GdbMethods): Update.
9161 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9163 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9164 off high address bits.
9166 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9168 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9169 address as UnsignedLongLong, not LongLong.
9171 2010-03-05 Kevin Buettner <kevinb@redhat.com>
9172 Pedro Alves <pedro@codesourcery.com>
9174 * remote-mips.c (gdbthread.h): Include.
9175 (remote_mips_ptid): Declare.
9176 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9177 (common_open): Set inferior_ptid, add it as an inferior, and
9178 as a thread too. Delete FIXME comment regarding start_remote().
9179 (mips_close): Invoke generic_mourn_inferior().
9180 (mips_kill): Make sure that target_mourn_inferior is invoked.
9181 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9182 it's now invoked from mips_close().
9183 (mips_load): Don't null out inferior_ptid. Don't call
9184 clear_symtab_users().
9185 (mips_thread_alive, mips_pid_to_str): New functions.
9186 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9187 to_thread_alive and to_pid_to_str operations.
9189 2010-03-04 Tom Tromey <tromey@redhat.com>
9191 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9192 in DWARF 3 and later.
9193 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9195 2010-03-04 Keith Seitz <keiths@redhat.com>
9197 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9198 If the filename portion of the linespec was quoted, recheck the
9199 remainder for additional quoting.
9200 (locate_first_half): Skip over completer chars, too.
9202 2010-03-04 Tom Tromey <tromey@redhat.com>
9204 * printcmd.c (printf_command): Pass dummy argument to
9207 2010-03-04 Doug Evans <dje@google.com>
9209 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9212 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9214 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9216 * breakpoint.c (update_watchpoint): Create a sentinel location if
9217 the software watchpoint isn't watching any memory.
9218 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9220 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9222 * utils.c (fputs_maybe_filtered): Check if there's already a top
9223 level interpreter before dereferencing it. If there isn't one,
9224 don't paginate either.
9226 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9228 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9229 the state right when single stepping.
9230 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9231 Get the next PC along with the instruction state.
9232 (thumb_get_next_pc): Remove.
9233 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9235 2010-03-04 Hui Zhu <teawater@gmail.com>
9237 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9239 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9241 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9242 top level interpreter is MI.
9244 2010-03-03 Stan Shebs <stan@codesourcery.com>
9246 * remote.c (remote_download_tracepoint): Iterate over locations.
9247 * tracepoint.c (validate_actionline): Ditto.
9248 (encode_actions): Add location argument.
9249 (trace_dump_command): Check all locations to see if stepping
9252 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9253 Eli Zaretskii <eliz@gnu.org>
9255 * NEWS: Add X86 general purpose registers section.
9257 2010-03-03 Tom Tromey <tromey@redhat.com>
9260 * varobj.c (install_new_value): Handle case where new print_value
9263 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9266 * printcmd.c (printf_command): Print end of format string using
9269 2010-03-02 Tom Tromey <tromey@redhat.com>
9271 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9272 * defs.h (read_command_lines_1): Add missing 'void'.
9273 * cli/cli-script.c (recurse_read_control_structure): Add missing
9275 (read_next_line): Likewise.
9276 (read_command_lines_1): Likewise.
9278 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9280 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9281 store backchain as part of prologue.
9283 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9285 * progspace.c (update_address_spaces): Update inferior address spaces
9288 2010-03-02 Doug Evans <dje@google.com>
9290 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9291 lowpc,highpc args to addrmap_set_empty.
9293 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9295 * amd64-tdep.c (amd64_byte_names): New.
9296 (amd64_word_names): Likewise.
9297 (amd64_dword_names): Likewise.
9298 (amd64_pseudo_register_name): Likewise.
9299 (amd64_pseudo_register_read): Likewise.
9300 (amd64_pseudo_register_write): Likewise.
9301 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9302 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9303 set_gdbarch_pseudo_register_write and
9304 set_tdesc_pseudo_register_name. Don't call
9305 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9307 * i386-tdep.c (i386_num_mmx_regs): Removed.
9308 (i386_num_pseudo_regs): Likewise.
9309 (i386_byte_names): New.
9310 (i386_word_names): Likewise.
9311 (i386_byte_regnum_p): Likewise.
9312 (i386_word_regnum_p): Likewise.
9313 (i386_mmx_regnum_p): Updated.
9314 (i386_pseudo_register_name): Make it global. Handle byte and
9315 word pseudo-registers.
9316 (i386_pseudo_register_read): Likewise.
9317 (i386_pseudo_register_write): Likewise.
9318 (i386_pseudo_register_type): Handle byte, word and dword
9320 (i386_register_reggroup_p): Don't include pseudo
9321 registers, except for MXX, in any register groups. Don't
9322 include pseudo byte, word, dword registers in general_reggroup.
9323 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9324 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9325 pseudo-registers after word pseudo-registers. Call
9326 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9328 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9329 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9331 (i386_byte_regnum_p): New.
9332 (i386_word_regnum_p): Likewise.
9333 (i386_dword_regnum_p): Likewise.
9334 (i386_pseudo_register_name): Likewise.
9335 (i386_pseudo_register_read): Likewise.
9336 (i386_pseudo_register_write): Likewise.
9338 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9340 * target-descriptions.c (tdesc_type): Remove
9341 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9342 (tdesc_predefined_types): Likewise.
9343 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9344 if flag name is empty.
9345 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9347 * features/i386/32bit-core.xml: Define i386_eflags.
9348 * features/i386/64bit-core.xml: Likewise.
9350 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9351 * features/i386/64bit-sse.xml: Likewise.
9353 * features/i386/amd64-linux.c: Regenerated.
9354 * features/i386/amd64.c: Likewise.
9355 * features/i386/i386-linux.c: Likewise.
9356 * features/i386/i386.c: Likewise.
9358 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9360 * gdbtypes.c (append_composite_type_field_raw): New.
9361 (append_composite_type_field_aligned): Use the new function.
9362 * gdbtypes.h (append_composite_type_field_raw): Declare.
9363 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9364 (struct tdesc_type_flag): New type.
9365 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9366 kind. Add size to u.u. Add u.f for flags.
9367 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9368 (tdesc_free_type): Likewise.
9369 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9370 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9371 (tdesc_add_bitfield, tdesc_add_flag): New.
9372 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9373 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9374 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9375 current_type. Add current_type_size and current_type_is_flags.
9376 (tdesc_start_union): Clear the new fields.
9377 (tdesc_start_struct, tdesc_start_flags): New.
9378 (tdesc_start_field): Handle struct fields, including bitfields.
9379 (field_attributes): Make type optional. Add start and end.
9380 (union_children): Rename to struct_union_children.
9381 (union_attributes): Rename to struct_union_attributes. Add optional
9383 (flags_attributes): New.
9384 (feature_children): Add struct and flags.
9385 * features/gdb-target.dtd: Add flags and struct to features.
9386 Make field type optional. Add field start and end.
9388 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9390 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9391 (amd64_linux_read_description): Likewise.
9392 (_initialize_amd64_linux_nat): Set to_read_description to
9393 amd64_linux_read_description.
9395 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9396 (amd64_linux_register_name): Removed.
9397 (amd64_linux_register_type): Likewise.
9398 (amd64_linux_core_read_description): New.
9399 (amd64_linux_init_abi): Set target description to
9400 tdesc_amd64_linux if needed. Support orig_rax in target
9401 description. Don't call set_gdbarch_register_name nor
9402 set_gdbarch_register_type. Call
9403 set_gdbarch_core_read_description.
9404 (_initialize_amd64_linux_tdep): Call
9405 initialize_tdesc_amd64_linux.
9407 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9409 * amd64-tdep.c: Include "features/i386/amd64.c".
9410 (amd64_register_names): Removed.
9411 (amd64_register_name): Likewise.
9412 (amd64_register_type): Likewise.
9413 (amd64_init_abi): Set num_core_regs and register_names. Set
9414 target description to tdesc_amd64 if needed. Don't call
9415 set_gdbarch_register_name nor set_gdbarch_register_type.
9416 (_initialize_amd64_tdep): New.
9418 * i386-linux-nat.c (i386_linux_read_description): New.
9419 (_initialize_i386_linux_nat): Set to_read_description to
9420 i386_linux_read_description.
9422 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9423 (i386_linux_register_name): Removed.
9424 (i386_linux_core_read_description): New.
9425 (i386_linux_read_description): Likewise.
9426 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9427 Set target description to tdesc_i386_linux if needed. Support
9428 orig_eax. Set register_reggroup_p. Call
9429 set_gdbarch_core_read_description.
9430 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9432 * i386-linux-tdep.h (tdesc_i386_linux): New.
9434 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9437 * i386-tdep.c: Include "features/i386/i386.c".
9438 (i386_register_names): Make it const.
9439 (i386_mmx_names): Likewise.
9440 (i386_num_register_names): Removed.
9441 (i386_register_name): Likewise.
9442 (i386_eflags_type): Likewise.
9443 (i386_mxcsr_type): Likewise.
9444 (i386_sse_type): Likewise.
9445 (i386_register_type): Likewise.
9446 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9447 (i386_pseudo_register_name): New.
9448 (i386_pseudo_register_type): Likewise.
9449 (i386_mmx_type): Make it static.
9450 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9451 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9452 call set_gdbarch_register_name nor set_gdbarch_register_type.
9453 Set register_reggroup_p. Set target description to tdesc_i386
9454 if needed. Call set_tdesc_pseudo_register_type,
9455 set_tdesc_pseudo_register_name and tdesc_use_registers.
9456 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9457 initialize_tdesc_x86_64.
9459 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9460 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9461 register_names, tdesc and register_reggroup_p.
9462 (I386_NUM_FREGS): Removed.
9463 (i386_eflags_type): Likewise.
9464 (i386_mxcsr_type): Likewise.
9465 (i386_mmx_type): Likewise.
9466 (i386_sse_type): Likewise.
9467 (i386_register_name): Likewise.
9468 (i386_regnum): Add I386_MXCSR_REGNUM.
9469 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9471 * i387-tdep.h (I387_NUM_REGS): New.
9473 * regformats/i386/i386-linux.dat: Generated.
9474 * regformats/i386/i386.dat: Likewise.
9475 * regformats/i386/amd64-linux.dat: Likewise.
9476 * regformats/i386/amd64.dat: Likewise.
9478 * regformats/reg-i386-linux.dat: Removed.
9479 * regformats/reg-i386.dat: Likewise.
9480 * regformats/reg-x86-64-linux.dat: Likewise.
9481 * regformats/reg-x86-64.dat: Likewise.
9483 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9485 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9486 cygwin_conv_path API rather than the deprecated
9487 cygwin_conv_to_full_posix_path.
9489 (GetModuleFileNameExA): Undefine for Cygwin.
9490 (GetModuleFileNameExW): Define for Cygwin.
9491 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9492 Call GetModuleFileNameExW and convert path to POSIX using
9494 (windows_make_so): Always define p. Drop unused variable m.
9495 Don't use Win32 functions to check file existance, rather use
9496 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9497 Use canonicalize_file_name to get full path.
9498 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9499 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9500 use correct target buffer size in call to WideCharToMultiByte.
9501 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9502 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9503 (windows_create_inferior): Convert all paths and arguments to wchar_t
9504 and use CreateProcessW on Cygwin.
9505 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9506 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9507 (bad_GetModuleFileNameExW): Define for Cygwin.
9508 (_initialize_loadable): Load GetModuleFileNameExW into
9509 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9511 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9514 * python/py-frame.c (frapy_read_var): Add block argument and logic
9515 to cope with user provided blocks.
9517 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9519 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9522 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9524 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9525 (COMMON_OBS): ... to here since it's used unconditionally.
9526 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9529 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9531 * mips-linux-tdep.c: Update struct sigframe comments.
9532 (SIGFRAME_CODE_OFFSET): Delete macro.
9533 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9535 (mips_linux_n32n64_sigframe_init): Same.
9537 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9539 * remote-mips.c (mips_load): Don't use pseudo-register when
9540 invalidating regcache.
9542 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9544 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9546 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9548 * NEWS: Add "New targets" section, and mention ARM Symbian
9551 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9553 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9554 add ADDR_SIZE member.
9555 (allocate_piece_closure): Update.
9556 (copy_pieced_value_closure): Likewise.
9557 (dwarf2_evaluate_loc_desc): Likewise.
9558 (read_pieced_value): Use DWARF address size instead of
9559 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9561 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9562 Tom Tromey <tromey@redhat.com>
9564 * python/py-type.c (typy_lookup_typename): Add in block argument.
9565 If provided restrict lookup to specified blocks.
9566 (gdbpy_lookup_type): Likewise.
9567 (typy_lookup_type): Likewise.
9569 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9574 * arm-symbian-tdep.c: New.
9575 * configure.tgt (arm*-*-symbianelf*): New target.
9576 (*-*-symbianelf*): New OS.
9577 * osabi.c (gdb_osabi_names): Add Symbian.
9578 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9579 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9580 (ALLDEPFILES): Add arm-symbian-tdep.c.
9582 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9584 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9586 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9588 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9590 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9591 Tom Tromey <tromey@redhat.com>
9592 Thiago Jung Bauermann <bauerman@br.ibm.com>
9594 * python/python.c (_initialize_python): Call
9595 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9596 gdbpy_initialize_blocks.
9597 * python/python-internal.h: Declare struct symbol, block and
9598 symtab_and_line. Declare block_object_type and
9600 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9601 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9602 (symbol_to_symbol_object, block_to_block_object)
9603 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9604 (gdbpy_initialize_blocks ): Declare.
9605 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9606 (frapy_select): Add methods.
9607 (frapy_read_var): Add symbol branch.
9608 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9610 (SUBDIR_PYTHON_SRCS): Likewise.
9611 (py-symbol.o): New rule.
9612 (py-symtab.o): Likewise.
9613 (py-block.o): Likewise.
9614 * python/py-symbol.c: New file.
9615 * python/py-symtab.c: Likewise.
9616 * python/py-block.c: Likewise.
9618 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9622 * inferior.h (prepare_for_detach): Declare.
9623 (struct inferior) <detaching>: New field.
9624 * infrun.c (prepare_for_detach): New.
9625 (handle_inferior_event) <random signal>: Don't stop if detaching.
9626 * target.c (target_detach): Call prepare_for_detach.
9628 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9630 Per-process displaced stepping queue.
9632 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9633 (displaced_step_gdbarch, displaced_step_closure,
9634 (displaced_step_original, displaced_step_copy): Move globals to
9636 (struct displaced_step_inferior_state): ... new structure.
9637 (displaced_step_inferior_states): New global.
9638 (get_displaced_stepping_state, add_displaced_stepping_state)
9639 (remove_displaced_stepping_state, infrun_inferior_exit): New
9641 (displaced_step_clear): Add displaced_step_inferior_state
9642 parameter, and adjust to handle it.
9643 (displaced_step_clear_cleanup): Parameter is now a
9644 displaced_step_inferior_state. Adjust.
9645 (displaced_step_prepare): Adjust.
9646 (displaced_step_fixup, displaced_step_fixup)
9647 (infrun_thread_ptid_changed, resume): Adjust.
9648 (init_wait_for_inferior): Don't call displaced_step_clear.
9649 (infrun_thread_stop_requested): Rewrite.
9650 (_initialize_infrun): Install infrun_inferior_exit as
9651 inferior_exit observer.
9653 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9655 * inferior.h (ptid_match): Declare.
9656 * infrun.c (ptid_match): New.
9657 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9658 (handle_notification): Add debug output.
9659 * linux-nat.c (ptid_match): Delete.
9661 2010-02-24 David S. Miller <davem@davemloft.net>
9663 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9664 * syscalls/sparc-linux.xml: New.
9665 * syscalls/sparc64-linux.xml: New.
9666 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9667 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9668 (sparc32_linux_get_syscall_number): New function.
9669 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9670 syscall number fetcher.
9671 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9672 (sparc64_linux_get_syscall_number): New function.
9673 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9674 syscall number fetcher.
9676 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9680 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9681 * inferior.c (add_inferior_silent): Notify inferior_added
9683 (delete_inferior_1): Notify inferior_removed observer.
9684 (exit_inferior_1): Pass inferior, not pid, to observer.
9685 (inferior_appeared): Likewise.
9686 (add_inferior_with_spaces): New.
9687 (add_inferior_command): Use the above.
9688 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9691 * inflow.c (inflow_inferior_exit): Likewise.
9692 * jit.c (jit_inferior_exit_hook): Likewise.
9694 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9696 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9697 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9698 (report_initial_inferior): New.
9699 (mi_inferior_removed): Register the above. Make sure
9700 inferior_added observer is called on the first inferior.
9701 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9702 inferior number, not pid.
9703 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9705 * mi/mi-main.c (current_context): New.
9706 (proceed_thread_callback): Use typed closure.
9707 Proceed everything if pid is 0. Most implementation split into
9708 (proceed_thread): ... this.
9709 (run_one_inferior): New.
9710 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9711 Adjust for multiexec behaviour.
9712 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9713 (mi_cmd_execute): Handle the 'thread-group' option here.
9714 Do some extra checks.
9715 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9717 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9719 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9721 Make -exec-run a proper MI commands.
9723 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9724 * mi/mi-cmds.c (mi_cmds): Adjust.
9725 * mi/mi-main.c (mi_cmd_exec_run): New.
9727 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9728 Stan Shebs <stan@codesourcery.com>
9730 * tracepoint.h (set_traceframe_number)
9731 (cleanup_restore_current_traceframe): Declare.
9732 * tracepoint.c (set_traceframe_number): New.
9733 (struct current_traceframe_cleanup): New.
9734 (do_restore_current_traceframe_cleanup)
9735 (restore_current_traceframe_cleanup_dtor)
9736 (make_cleanup_restore_current_traceframe): New.
9737 * infrun.c: Include tracepoint.h.
9738 (fetch_inferior_event): Switch out and in of tfind mode.
9740 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9742 * breakpoint.c (breakpoint_init_inferior): Also delete
9743 bp_shlib_event breakpoints.
9744 * solib-frv.c (enable_break): Remove call to
9745 remove_solib_event_breakpoints.
9746 * solib-svr4.c (enable_break): Ditto.
9747 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9748 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9749 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9750 * solib-spu.c (spu_enable_break): Ditto.
9752 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9754 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9756 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9758 * varobj.c (varobj_update): Avoid non-constants in initializers.
9760 2010-02-23 Tom Tromey <tromey@redhat.com>
9762 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9763 handle big-endian values.
9764 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9766 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9771 * breakpoint.c (insert_bp_location): If inserting the read
9772 watchpoint failed, fallback to an access watchpoint.
9773 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9774 if the value changed, if not watching the same memory for writes.
9775 (watchpoint_locations_match): Add comment.
9776 (update_global_location_list): Copy the location's watchpoint type.
9777 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9778 handle read watchpoints here.
9779 (i386_insert_watchpoint): Read watchpoints aren't supported.
9780 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9782 * target.h (target_insert_watchpoint): Update description.
9784 2010-02-19 Tom Tromey <tromey@redhat.com>
9786 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9787 * m2-typeprint.c (m2_print_type): Update.
9788 * gdbtypes.c (recursive_dump_type): Update.
9789 (copy_type_recursive): Update.
9790 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9791 (c_type_print_base): Update.
9792 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9794 (struct cplus_struct_type) <ntemplate_args>: Remove.
9795 <struct template_arg>: Remove.
9796 <is_dynamic>: Move earlier.
9797 (TYPE_TEMPLATE_ARGS): Remove.
9798 (TYPE_NTEMPLATE_ARGS): Remove.
9799 (TYPE_TEMPLATE_ARG): Remove.
9801 2010-02-19 Tom Tromey <tromey@redhat.com>
9803 PR c++/8693, PR c++/9496:
9804 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9805 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9806 write_dollar_variable. Don't try to classify NAME tokens.
9807 (token_and_value): New type.
9808 (token_fifo, popping, name_obstack): New globals.
9809 (classify_name): New function.
9810 (classify_inner_name): Likewise.
9812 (VARIABLE): Now has type sval.
9813 (exp : VARIABLE): Call write_dollar_variable.
9814 (qualified_name): Use TYPENAME, not typebase. Add production for
9815 multiple "::" instances.
9816 (variable): Use name_not_typename.
9817 (qualified_type): Remove.
9820 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9822 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9823 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9824 found by bfd_get_section_by_name.
9825 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9827 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9829 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9830 7.0 section" into "Changes in 7.1".
9832 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9834 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9835 * version.in: Bump version to 7.1.50.20100219-cvs.
9837 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9839 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9840 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9842 2010-02-17 Tom Tromey <tromey@redhat.com>
9844 * NEWS: Add Python API Improvements section.
9846 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9848 * NEWS: Correct typo.
9850 2010-02-17 Tom Tromey <tromey@redhat.com>
9852 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9854 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9856 * symfile.c (build_section_addr_info_from_objfile): Include sections
9857 only if they are SEC_ALLOC or SEC_LOAD.
9859 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9862 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9863 of ULONGEST for address size.
9865 2010-02-17 Tom Tromey <tromey@redhat.com>
9867 * NEWS: Add C++ improvements section.
9869 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9871 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9872 PyThreadState_Swap): Avoid "statement with no effect" warning.
9874 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9876 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9877 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9879 2010-02-17 Tristan Gingold <gingold@adacore.com>
9880 Petr Hluzin <petr.hluzin@gmail.com>
9882 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9883 gdb_assert. Fix info->size for SIG prologue.
9885 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9887 * infcmd.c (show_inferior_tty_command): Check for NULL.
9888 Correct output message.
9890 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9892 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9893 FUNCTION contains parentheses. Improve removal of a trailing
9896 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9898 * gcore.c (do_bfd_delete_cleanup): New function.
9899 (gcore_command): Use it. Discard the cleanup after success.
9900 (gcore_copy_callback): Delete dead code.
9902 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9904 * symfile.c (addr_info_make_relative): Always use
9905 find_lowest_section.
9907 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9909 * NEWS: Added entry for namespace fixes.
9911 2010-02-15 Tom Tromey <tromey@redhat.com>
9913 * dwarf2read.c (guess_structure_name): Allocate name on the
9916 2010-02-15 Tom Tromey <tromey@redhat.com>
9918 * c-typeprint.c (c_type_print_base): Reverse order of test.
9920 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9922 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9923 initialize it from ELF BFD. Extend the prelink condition by it.
9925 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9927 * defs.h (parse_pid_to_attach): New.
9928 * utils.c (parse_pid_to_attach): New.
9929 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9930 * gnu-nat.c (gnu_attach): Likewise.
9931 * nto-procfs.c (procfs_attach): Likewise.
9932 * procfs.c (procfs_attach): Likewise.
9933 * windows-nat.c (windows_attach): Likewise.
9934 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9935 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9936 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9939 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
9941 * MAINTAINERS: Add myself for write after approval privileges.
9943 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9945 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9948 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9950 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9951 only if INFO_VERBOSE.
9953 2010-02-12 Tomas Holmberg <th@virtutech.com>
9955 * mi/mi-main.c: Added the --reverse flag to the following MI
9956 commands: exec-continue, exec-finish, exec-next, exec-step,
9957 exec-next-instruction, exec-step-instruction. This is to
9958 support reverse execution over the MI interface to gdb.
9960 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9962 * tracepoint.c (_initialize_tracepoint): Specify that the address
9963 range of `tfind outsize' is exclusive, and that the address range
9964 of `tfind range' is inclusive, in the commands' help strings.
9966 2010-02-12 Joel Brobecker <brobecker@adacore.com>
9968 Spurious "dll not found" error messages on x64-windows.
9969 * windows-nat.c: Add include of complaints.h.
9970 (handle_unload_dll): Change dll-not-found error into a complaint.
9972 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9974 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9975 bp_tracepoint and bp_fast_tracepoint, not
9976 bp_loc_software_breakpoint.
9977 (update_global_location_list): Tracepoints are never duplicates of
9980 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9982 * breakpoint.c (break_command_really): Change return type to int.
9983 Return false if no breakpoint was created, true otherwise.
9984 (trace_command): Don't set the tracepoint count if no tracepoint
9986 (ftrace_command): Ditto.
9987 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9988 created in the breakpoints table.
9990 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9991 Ulrich Weigand <uweigand@de.ibm.com>
9993 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9995 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9997 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9998 the offset value isn't of integral type.
10000 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10002 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10005 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10007 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10008 non-subscriptable types.
10009 * valarith.c (binop_types_user_defined_p): New, abstracted out
10011 (binop_user_defined_p): ... this.
10012 * value.h (binop_types_user_defined_p): Declare.
10014 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10016 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10017 Merge uploaded TSVs before merging uploaded tracepoints.
10019 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10021 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10023 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
10025 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10026 whitespace character after a dot in comment.
10027 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10029 (list_args_or_locals): For the 'all' (that is
10030 -stack-list-variables) case, always output list of tuples.
10031 Output 'arg' field if variable is argument.
10033 2010-02-10 Tom Tromey <tromey@redhat.com>
10035 * parser-defs.h (parser_debug): Declare.
10036 * parse.c (_initialize_parse): Install "debug parser" set/show
10038 (parser_debug): New global.
10039 (show_parserdebug): New function.
10040 * c-exp.y (c_parse): Set yydebug.
10042 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10044 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10045 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10046 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10048 (tdesc_find_type): New.
10049 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10050 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10052 * target-descriptions.h (tdesc_find_type): New.
10054 2010-02-10 Michael Snyder <msnyder@vmware.com>
10056 * gdb-gdb.py: Comment fix.
10058 2010-02-09 Tristan Gingold <gingold@adacore.com>
10060 * machoread.c (macho_symfile_relocate): New function.
10061 (macho_sym_fns): Use macho_symfile_relocate instead of
10062 default_symfile_relocate.
10063 (macho_oso_data): New type.
10064 (current_oso): New variable.
10065 (macho_add_oso_symfile): Do not compute section_addr_info, but
10066 instead set vma of sections.
10067 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10068 Set and clear current_oso.
10070 2010-02-09 Joel Brobecker <brobecker@adacore.com>
10072 Wrong type description for tagged type parameter.
10073 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10074 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10075 reference to a tagged type.
10077 2010-02-09 Tristan Gingold <gingold@adacore.com>
10079 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10080 brothers of the parent.
10082 2010-02-08 Tom Tromey <tromey@redhat.com>
10086 * valops.c (search_struct_field): Make 'name' const.
10087 (search_struct_method): Likewise.
10088 (find_method_list): Make 'method' const.
10089 (value_struct_elt): Make 'name' and 'err' const.
10090 (value_find_oload_method_list): Make 'method' const.
10091 (find_overload_match): Make 'name' const.
10092 * eval.c (evaluate_subexp_standard): New locals function,
10094 <OP_FUNCALL>: Handle OP_SCOPE specially.
10096 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10098 * infrun.c (handle_inferior_event): Do not look up regcache
10099 for exited processes.
10101 2010-02-08 Chris Moller <moller@mollerware.com>
10104 * valarith.c (value_ptrdiff): Added a test for a zero type length,
10105 warn if found, and assume length = 1.
10107 2010-02-08 Chris Moller <cmoller@redhat.com>
10110 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10111 (cp_print_static_field) Fix use of obstacks.
10113 2010-02-08 Pedro Alves <pedro@codesourcery.com>
10115 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10116 resumed LWPs as resumed.
10117 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10118 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10119 of throwing an internal error. If an LWP of a process we're not
10120 waiting for reports a signal, don't force collecting a SIGSTOP,
10121 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10122 go through all LWPs cancelling breakpoints in non-stop mode.
10123 (resume_stopped_resumed_lwps): New.
10124 (linux_nat_wait): Use it.
10126 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10128 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10129 i386/amd64 and i386/amd64-linux.
10130 (i386/i386-expedite): New.
10131 (i386/i386-linux-expedite): Likewise.
10132 (i386/amd64-expedite):Likewise.
10133 (i386/amd64-linux-expedite): Likewise.
10134 ($(outdir)/i386/i386-linux.dat): Likewise.
10135 ($(outdir)/i386/amd64.dat): Likewise.
10136 ($(outdir)/i386/amd64-linux.dat): Likewise.
10138 * features/i386/32bit-core.xml: New.
10139 * features/i386/32bit-linux.xml: Likewise.
10140 * features/i386/32bit-sse.xml: Likewise.
10141 * features/i386/64bit-core.xml: Likewise.
10142 * features/i386/64bit-linux.xml: Likewise.
10143 * features/i386/64bit-sse.xml: Likewise.
10144 * features/i386/i386-linux.xml: Likewise.
10145 * features/i386/i386.xml: Likewise.
10146 * features/i386/amd64-linux.xml: Likewise.
10147 * features/i386/amd64.xml: Likewise.
10148 * features/i386/i386-linux.c: Likewise.
10149 * features/i386/i386.c: Likewise.
10150 * features/i386/amd64-linux.c: Likewise.
10151 * features/i386/amd64.c: Likewise.
10153 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10156 * cp-support.h: Added char* alias element to using_direct data
10158 (cp_add_using): Added char* alias argument.
10159 (cp_add_using_directive): Ditto.
10160 * cp-namespace.c: Updated with the above changes.
10161 (cp_lookup_symbol_imports): Check for aliases.
10162 * dwarf2read.c (read_import_statement): Figure out local alias
10163 for the import and pass it on to cp_add_using.
10164 (read_namespace): Pass alias argument to cp_add_using.
10166 2010-02-05 Hui Zhu <teawater@gmail.com>
10168 * defs.h (gdb_bfd_errmsg): New extern.
10169 * exec.c (exec_file_attach): Change bfd_errmsg to
10171 * utils.c (AMBIGUOUS_MESS1): New macro.
10172 (AMBIGUOUS_MESS2): New macro.
10173 (gdb_bfd_errmsg): New function.
10175 2010-02-04 Doug Evans <dje@google.com>
10177 * solib-svr4.c (enable_break): Add comment.
10179 2010-02-04 Anthony Green <green@moxielogic.com>
10181 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10184 2010-02-04 Tom Tromey <tromey@redhat.com>
10186 * valops.c (search_struct_field): Account for
10187 value_embedded_offset. Fix check for virtual base past the end of
10188 the object. Use value_copy when making a slice of the value.
10190 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10193 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10194 only if gdb_stdout is a tty.
10196 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10198 * target-descriptions.c: Include "osabi.h".
10199 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10202 2010-02-04 Tristan Gingold <gingold@adacore.com>
10204 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10205 (macho_symtab_read): Adjust calls to macho_add_oso.
10206 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10207 (macho_symfile_read): Adjust call to macho_oso_symfile.
10208 (macho_new_init): Move this function after declarations.
10209 (macho_symfile_init): Ditto.
10210 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10211 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10213 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10215 Include MI command in remotelog.
10217 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10219 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10221 * remote.c (remote_state): Remove gdbarch.
10222 (init_remote_state): Don't set gdbarch.
10223 (remote_query_supported): Pass target_gdbarch instead of
10224 rs->gdbarch to gdbarch_qsupported.
10226 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10228 * gdbarch.sh: Add qsupported.
10230 * gdbarch.c: Regenerated.
10231 * gdbarch.h: Likewise.
10233 * remote.c (remote_state): Add gdbarch.
10234 (init_remote_state): Set gdbarch.
10235 (remote_query_supported): Support gdbarch_qsupported.
10237 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10239 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10240 __FreeBSD_kernel_version.
10242 2010-02-03 Tristan Gingold <gingold@adacore.com>
10244 * symfile.h (struct sym_fns): Add sym_relocate field.
10245 (default_symfile_relocate): New prototype.
10246 (symfile_relocate_debug_section): First argument is now an objfile.
10247 * symfile.c (default_symfile_relocate): Rename from
10248 symfile_relocate_debug_section, first argument is now an objfile.
10249 (symfile_relocate_debug_section): New function.
10250 * coffread.c (coff_sym_fns): Set sym_relocate field.
10251 * somread.c (som_sym_fns): Ditto.
10252 * mipsread.c (ecoff_sym_fns): Ditto.
10253 * machoread.c (macho_sym_fns): Ditto.
10254 * elfread.c (elf_sym_fns): Ditto.
10255 * dwarf2read.c (dwarf2_read_section): Ditto.
10256 * xcoffread.c (xcoff_sym_fns): Ditto.
10257 * dbxread.c (aout_sym_fns): Ditto.
10258 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10259 (elfstab_build_psymtabs): Ditto.
10261 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10263 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10265 2010-02-02 Tom Tromey <tromey@redhat.com>
10267 * valops.c (value_cast_structs): Try downcasting using the RTTI
10270 2010-02-02 Tom Tromey <tromey@redhat.com>
10272 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10273 (gnuv2_baseclass_offset): Now static.
10274 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10275 * gnu-v2-abi.h: Remove.
10277 2010-02-02 Tom Tromey <tromey@redhat.com>
10279 * m2-typeprint.c (m2_record_fields): Don't use
10280 TYPE_DECLARED_TYPE.
10281 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10282 (struct main_type) <flag_declared_class>: New field.
10283 (struct cplus_struct_type) <declared_type>: Remove.
10284 <ntemplate_args>: Move earlier.
10285 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10286 (DECLARED_TYPE_TEMPLATE): Remove.
10287 (TYPE_DECLARED_TYPE): Remove.
10288 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10289 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10290 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10291 TYPE_DECLARED_TYPE.
10293 2010-02-02 Tom Tromey <tromey@redhat.com>
10295 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10296 * valops.c (search_struct_field): Compute nbases after calling
10298 (check_field): Call CHECK_TYPEDEF.
10299 * cp-valprint.c (cp_print_value): Pass correct address to
10300 baseclass_offset. Fix check for virtual base past the end of the
10301 object. Don't offset address passed to cp_print_value_fields or
10302 apply_val_pretty_printer.
10303 (cp_print_value_fields): Fix call to val_print.
10304 (cp_print_value_fields_rtti): New function.
10305 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10306 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10308 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10310 * language.h (struct language_defn) <la_val_print>: Document.
10311 * c-lang.h (cp_print_value_fields_rtti): Declare.
10313 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10316 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10317 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10318 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10320 2010-02-01 Michael Matz <matz@suse.de>
10321 Daniel Jacobowitz <dan@codesourcery.com>
10323 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10324 functions use a frame pointer.
10326 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10328 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10329 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10330 * config/djgpp/fnchange.lst: Add translations for
10331 symbol-without-target_section.exp and symbol-without-target_section.c.
10333 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10335 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10336 (remote_breakpoint_for_pc): Correct invalid_p check.
10337 * gdbarch.c: Regenerated.
10339 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10341 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10343 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10344 (extend_buffer_earlier): New function.
10345 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10346 (arm_adjust_breakpoint_address): New function.
10347 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10349 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10351 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10352 (arm_linux_thumb2_le_breakpoint): New constants.
10353 (arm_linux_init_abi): Set thumb2_breakpoint and
10354 thumb2_breakpoint_size.
10355 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10356 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10357 Implement support for single stepping through IT blocks if
10358 a 32-bit Thumb breakpoint instruction is available.
10359 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10360 is available, use it when needed.
10361 (arm_remote_breakpoint_from_pc): New function.
10362 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10363 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10364 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10366 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10368 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10369 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10370 * gdbarch.c, gdbarch.h: Regenerated.
10371 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10372 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10373 gdbarch_remote_breakpoint_from_pc.
10375 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10377 * infrun.c (prepare_to_proceed): Handle other signals which might
10378 match a breakpoint.
10379 (handle_inferior_event): Move the check for unusual breakpoint
10382 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10384 amd64 - function returning record with field straddling 2 registers.
10385 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10386 a record of length <= 16 in which a field straddles the two
10389 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10391 Implement return values on amd64-windows.
10392 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10393 (amd64_windows_return_value): New function.
10394 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10395 amd64_windows_return_value.
10397 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10399 amd64-windows: 32 bytes allocated on stack by caller for integer
10400 parameter registers.
10401 * i386-tdep.h (struct gdbarch_tdep): Add new field
10402 integer_param_regs_saved_in_caller_frame.
10403 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10404 tdep->integer_param_regs_saved_in_caller_frame to 1.
10405 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10406 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10408 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10410 amd64-windows: memory args passed by pointer during function calls.
10411 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10412 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10413 where tdep->memory_args_by_pointer is non-zero.
10414 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10415 tdep->memory_args_by_pointer to 1.
10417 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10419 amd64-windows: Integer parameters in function calls.
10420 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10422 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10423 call_dummy_integer_regs, and classify.
10424 * amd64-tdep.h (amd64_classify): Add declaration.
10425 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10426 (amd64_reg_class): Delete, moved to i386-tdep.h.
10427 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10428 Replace call to amd64_classify by call to tdep->classify.
10429 (amd64_push_arguments): Get the list of registers to use for
10430 passing integer parameters from the gdbarch tdep structure,
10431 rather than using a hardcoded one. Replace calls to amd64_classify
10432 by calls to tdep->classify.
10433 (amd64_push_dummy_call): Get the register number used for
10434 the "hidden" argument from tdep->call_dummy_integer_regs.
10435 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10436 and tdep->call_dummy_integer_regs. Set tdep->classify.
10437 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10438 (amd64_windows_dummy_call_integer_regs): New static global.
10439 (amd64_windows_classify): New function.
10440 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10441 tdep->call_dummy_integer_regs and tdep->classify.
10443 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10445 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10446 for the new regcache. All callers updated.
10447 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10448 (get_thread_arch_regcache): Do not set aspace here.
10449 * regcache.h (regcache_xmalloc): Update declaration.
10451 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10452 regcache_xmalloc updated.
10454 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10456 Another -Wunused-function error in procfs.c (sparc-solaris)
10457 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10458 Only define if SYS_syssgi is defined.
10459 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10460 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10461 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10464 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10466 * windows-nat.c (windows_initialization_done): New variable.
10467 (get_windows_debug_event): Issue error when process dies before
10468 completely initializing.
10469 (do_initial_windows_stuff): Set flag to indicate when we are done with
10470 the initial steps of attaching to the child.
10472 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10474 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10476 2010-01-27 Doug Evans <dje@google.com>
10478 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10480 * breakpoint.c (bpstat_stop_status): Delete useless code.
10482 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10484 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10485 objfile via SYMBOL_SYMTAB.
10487 2010-01-26 Tom Tromey <tromey@redhat.com>
10490 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10491 coerce_array on result.
10493 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10495 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10496 search_parent argument.
10497 (cp_add_using): Initialize 'searched' field.
10498 (reset_directive_searched): New function.
10499 * cp-support.h: Add 'searched' field to using_direct struct.
10500 (cp_lookup_symbol_imports): Ditto.
10501 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10502 Perform recursive search.
10503 Implement non parent search.
10504 * valops.c (value_maybe_namespace_elt): Updated.
10506 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10509 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10510 scopes which contain using directives even if they contain no
10512 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10513 la_lookup_symbol_nonlocal.
10514 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10515 cp_lookup_symbol_namespace.
10516 (cp_lookup_symbol_namespace): Perform an import lookup at every
10518 (cp_lookup_symbol_imports): New function.
10519 (cp_lookup_symbol_in_namespace): New function.
10521 2010-01-25 Tom Tromey <tromey@redhat.com>
10524 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10527 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10529 * configure.ac: Only use host_os part when disabling TUI on osf.
10530 Use test to check variables, prefix strings with x.
10531 * configure: Regenerate.
10533 * solib-osf.c (osf_current_sos): Initialize tail.
10535 2010-01-25 gingold <gingold@adacore.com>
10537 * windows-nat.c (windows_continue): Use %x to print thread id.
10538 (get_windows_debug_event): Ditto.
10540 2010-01-22 Tom Tromey <tromey@redhat.com>
10543 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10544 type and arguments. Use smash_to_methodptr_type.
10545 (read_structure_type): Call quirk_gcc_member_function_pointer
10547 * gdbtypes.h (smash_to_methodptr_type): Declare.
10548 * gdbtypes.c (smash_to_methodptr_type): New function.
10549 (lookup_methodptr_type): Use it.
10551 2010-01-21 Tom Tromey <tromey@redhat.com>
10554 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10555 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10556 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10557 (glibc_skip_solib_resolver): Use
10558 lookup_minimal_symbol_and_objfile.
10560 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10562 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10565 2010-01-20 Tom Tromey <tromey@redhat.com>
10567 PR backtrace/10770:
10568 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10569 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10570 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10571 dwarf_stack_values, not CORE_ADDRs.
10572 (execute_stack_op): Change DW_OP_div and comparison operators to
10573 use signed operands.
10575 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10577 Per-inferior args and tty and environment.
10579 * infcmd.c (inferior_args): Rename to ...
10580 (inferior_args_scratch): ... this.
10581 (inferior_io_terminal): Rename to ...
10582 (inferior_io_terminal_scratch): ... this.
10583 (inferior_argc, inferior_argv): Remove.
10584 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10585 inside current_inferior().
10586 (set_inferior_tty_command, show_inferior_tty_command): New.
10587 (get_inferior_args, set_inferior_args): Store inside
10588 current_inferior().
10589 (notice_args_set): Likewise and rename to...
10590 (set_args_command): ... this.
10591 (set_inferior_args_vector): Likewise.
10592 (notice_args_read): Rename to...
10593 (show_args_command): ...new.
10594 (tty_command): Remove.
10595 (run_command_1): Don't free old args, as they are freed by
10596 set_inferior_arg now.
10597 (run_no_args_command): Likewise.
10598 (inferior_environ): Remove.
10599 (run_command_1): Use environment of the current inferior.
10600 (environment_info, set_environment_command)
10601 (unset_environment_command, path_info, path_command): Likewise.
10602 (_initialize_infcmd): Adjust for function and variable renames.
10603 Do not init inferior_environ.
10604 * inferior.h (set_inferior_arg): Adjust prototype.
10605 (struct inferior): New fields args, argc, argv, terminal, environment.
10606 (inferior_environ): Remove declaration.
10607 * inferior.c (free_inferior): Free new fields.
10608 (add_inferior_silent): Initialize 'environment' field.
10609 * main.c (captured_main): Set arguments only after the initial
10610 inferior has been created. Set set_inferior_io_terminal,
10612 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10614 (_initialize_mi_cmd_env): Adjust for disappearance of global
10616 * solib.c (solib_find): Use environment of the current inferior.
10618 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10620 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10622 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10624 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10626 Get rid of ada-lang.c:function_name_from_pc.
10627 * ada-lang.c: Add "stack.h" #include.
10628 (function_name_from_pc): Delete.
10629 (is_known_support_routine): Replace call to function_name_from_pc
10630 by call to find_frame_funname.
10631 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10633 2010-01-19 Tom Tromey <tromey@redhat.com>
10636 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10639 2010-01-19 Tom Tromey <tromey@redhat.com>
10641 * top.c (stop_sig, float_handler, do_nothing): Remove.
10643 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10645 * breakpoint.c (watchpoint_check): Check the call
10646 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10647 Extend the comment.
10648 * config/djgpp/fnchange.lst: Add translations for
10649 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10650 watchpoint-cond-gone-stripped.c.
10652 2010-01-19 Tom Tromey <tromey@redhat.com>
10655 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10656 into parent scope, and enumerator into grandparent scope.
10658 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10660 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10662 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10664 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10665 i[34567]86-*-solaris2.1[0-9]*.
10666 * configure.tgt: Likewise.
10668 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10670 * NEWS: Document the source command enhancement allowing it
10671 to load Python scripts. Document the "set/show script-extension"
10674 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10676 Add -Wunused-function to compile flags.
10677 * configure.ac: Add -Wunused-function to build_warnings.
10678 * configure: Regenerate.
10680 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10682 "delete" ada-lex.c:input function, not used.
10683 * ada-lex.l: #define YY_NO_INPUT.
10685 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10687 Delete free_named_symtabs and associated cleanup.
10688 * symfile.h (free_named_symtabs): Delete declaration.
10689 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10690 (cashier_psymtab): Comment function out.
10691 Delete declaration.
10692 (free_named_symtabs): Delete.
10693 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10694 * dbxread.c (end_psymtab): Likewise.
10695 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10696 * exec.c (exec_close_1): Ditto.
10697 * xcoffread.c (xcoff_end_psymtab): Likewise.
10699 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10701 * stack.c (print_block_frame_labels): Comment function out.
10703 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10705 Delete unused or undefined functions.
10706 * breakpoint.c (ep_parse_optional_filename): Delete.
10707 * dcache.c (dcache_write_line): Remove declaration.
10708 * infrun.c (build_infrun): Remove declaration.
10709 * tracepoint.c (tracepoint_save_command): Remove declaration.
10710 * linux-nat.c (init_lwp_list): Delete. No longer used.
10711 * event-loop.c (check_async_signal_handlers): Delete declaration.
10712 * infrun.c (init_execution_control_state): Delete.
10713 (proceed): Update comment to avoid mentioning
10714 init_execution_control_state.
10715 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10716 * ada-lang.c (ada_to_static_fixed_value): Delete.
10717 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10718 * cp-namespace.c (cp_copy_usings): Delete.
10719 * xml-syscall.c (xml_number_of_syscalls): Delete.
10720 * progspace.c (find_program_space_by_num): Delete.
10721 * inflow.c (handle_sigio): Delete declaration.
10722 * hppa-tdep.c (hppa_alignof): Delete.
10723 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10724 (mipsnbsd_core_osabi_sniffer): Delete.
10726 2010-01-18 Tom Tromey <tromey@redhat.com>
10729 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10730 (CONST_CAST): New tokens.
10731 (exp): Add new productions.
10732 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10734 (is_cast_operator): New function.
10735 (yylex): Handle cast operators specially.
10736 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10737 UNOP_REINTERPRET_CAST>: New cases.
10738 * expprint.c (print_subexp_standard): Likewise.
10739 (op_name_standard): Likewise.
10740 (dump_subexp_body_standard): Likewise.
10741 * parse.c (operator_length_standard): Likewise.
10742 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10743 UNOP_REINTERPRET_CAST.
10744 * gdbtypes.c (class_types_same_p): New function.
10745 (is_ancestor): Use it.
10746 (is_public_ancestor): New function.
10747 (is_unique_ancestor_worker): Likewise.
10748 (is_unique_ancestor): Likewise.
10749 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10750 (is_unique_ancestor): Declare.
10751 * valops.c (value_reinterpret_cast): New function.
10752 (dynamic_cast_check_1): Likewise.
10753 (dynamic_cast_check_2): Likewise.
10754 (value_dynamic_cast): Likewise.
10755 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10757 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10759 Fix build failure when building without Python support.
10760 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10763 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10765 Use XVS field type instead of doing a parallel lookup.
10766 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10767 if it is a reference type instead of doing a type lookup using
10768 the XVS field name.
10770 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10772 Trust PAD types instead of using PAD___XVS.
10773 * ada-lang.c (trust_pad_over_xvs): New static variable.
10774 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10775 parallel XVS type, follow the XVS type instead of the PAD type.
10776 (unwrap_value): Make sure that there is no parallel XVE type
10777 before returning the value as is.
10778 (set_ada_list, show_ada_list): New static variables.
10779 (set_ada_command, show_ada_command): New functions.
10780 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10781 Add new "set/show ada trust-PAD-over-XVS" setting.
10783 2010-01-18 Tom Tromey <tromey@redhat.com>
10784 Thiago Jung Bauermann <bauerman@br.ibm.com>
10786 Allow "source" to load python scripts.
10787 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10788 * python/python.c (source_python_script): New function.
10789 * python/python.h (source_python_script): Add declaration.
10790 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10791 (script_ext_off, script_ext_soft, script_ext_strict)
10792 (script_ext_enums, script_ext_mode): New static constants.
10793 (show_script_ext_mode, find_and_open_script): New functions.
10794 (source_script): Enhance to handle Python scripts.
10795 (init_cli_cmds): Add set/show script-extension commands.
10797 2010-01-16 Stan Shebs <stan@codesourcery.com>
10799 * tracepoint.h (struct trace_status): Use unsigned long long
10801 * tracepoint.c (trace_status_command): Fix printf directive.
10802 (trace_save_command): Check fwrite returns, fix printf directive.
10803 (trace_filename): New global.
10804 (tfile_open): Set it, check read returns.
10805 (tfile_close): Free trace_filename.
10806 (tfile_get_traceframe_address): Check read returns.
10807 (tfile_trace_find): Ditto.
10808 (tfile_fetch_registers): Ditto.
10809 (tfile_xfer_partial): Ditto.
10810 (tfile_get_trace_state_variable_value): Ditto.
10812 2010-01-15 Stan Shebs <stan@codesourcery.com>
10814 Add trace file support.
10815 * tracepoint.h (enum trace_stop_reason): New enum.
10816 (struct trace_status): New struct.
10817 (parse_trace_status): Declare.
10818 (struct uploaded_tp): Move here from remote.c,
10819 add fields for actions.
10820 (struct uploaded_tsv): New struct.
10821 * tracepoint.c (tfile_ops): New target vector.
10822 (trace_fd): New global.
10823 (tfile_open): New function.
10824 (tfile_close): New function.
10825 (tfile_files_info): New function.
10826 (tfile_get_trace_status): New function.
10827 (tfile_get_traceframe_address): New function.
10828 (tfile_trace_find): New function.
10829 (tfile_fetch_registers): New function.
10830 (tfile_xfer_partial): New function.
10831 (tfile_get_trace_state_variable_value): New function.
10832 (init_tfile_ops): New function.
10833 (_initialize_tracepoint): Call it, add tfile target.
10834 (trace_status): New global.
10835 (current_trace_status): New function.
10836 (trace_running_p): Remove, change all users to get from
10837 current_trace_status()->running.
10838 (get_trace_status): Remove.
10839 (trace_status_command): Call target_get_trace_status directly,
10840 report more detail including tracing stop reasons.
10841 (trace_find_command): Always allow tfind on a file.
10842 (trace_find_pc_command): Ditto.
10843 (trace_find_tracepoint_command): Ditto.
10844 (trace_find_line_command): Ditto.
10845 (trace_find_range_command): Ditto.
10846 (trace_find_outside_command): Ditto.
10847 (trace_frames_offset, cur_offset): Declare as off_t.
10848 (trace_regblock_size): Rename from reg_size, update users.
10849 (parse_trace_status): New function.
10850 (tfile_interp_line): New function.
10851 (disconnect_or_stop_tracing): Ensure current trace
10852 status before asking what to do.
10853 (stop_reason_names): New global.
10854 (trace_save_command): New command.
10855 (get_uploaded_tp): Move here from remote.c.
10856 (find_matching_tracepoint): Ditto.
10857 (merge_uploaded_tracepoints): New function.
10858 (parse_trace_status): Use stop_reason_names.
10859 (_initialize_tracepoint): Define tsave command.
10860 * target.h (target_ops): New fields to_save_trace_data,
10861 to_upload_tracepoints, to_upload_trace_state_variables,
10862 to_get_raw_trace_data, change to_get_trace_status
10863 to take a pointer to a status struct.
10864 (target_save_trace_data): New macro.
10865 (target_upload_tracepoints): New macro.
10866 (target_upload_trace_state_variables): New macro.
10867 (target_get_raw_trace_data): New macro.
10868 * target.c (update_current_target): Add new methods, change
10869 signature of to_get_trace_status.
10870 * remote.c (hex2bin): Make globally visible.
10872 (remote_download_trace_state_variable): Download name also.
10873 (remote_get_trace_status): Update parameter, use
10874 parse_trace_status.
10875 (remote_save_trace_data): New function.
10876 (remote_upload_tracepoints): New function.
10877 (remote_upload_trace_state_variables): New function.
10878 (remote_get_raw_trace_data): New function.
10879 (remote_start_remote): Use them.
10880 (_initialize_remote_ops): Add operations.
10881 * ax-gdb.c: Include breakpoint.h.
10882 * breakpoint.c (create_tracepoint_from_upload): Use
10883 break_command_really, return tracepoint, warn about unimplemented
10885 * NEWS: Mention trace file addition.
10887 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10889 Fix compilation warning on gcc-3.4.
10890 * exec.c (print_section_info): Move the `displacement' variable
10891 initialization to its declaration.
10893 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10895 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10898 2010-01-15 Eric Botcazou <botcazou@adacore.com>
10900 "info tasks" broken by typedefs in ATCB type definitions.
10901 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10902 ada_check_typedef before retrieving the length of the type for
10905 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10907 Do not use name-based lookup for unconstrained packed arrays.
10908 * ada-lang.c (find_parallel_type_by_descriptive_type):
10909 Limit the fallback to name-based lookups to the case where
10910 the type is a constrained packed array.
10912 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10914 Enhance gdb-gdb.py to handle main_type.type_specific.
10915 * gdb-gdb.py: Print the type-specific part of struct main_type.
10917 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10919 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10920 * configure: Regenerate.
10921 * config.in: Regenerate.
10922 * utils.c: Include sys/resource.h.
10923 (dump_core, can_dump_core): New.
10924 (internal_vproblem): Update the comment. Check can_dump_core while
10925 setting dump_core_p. Replace two abort calls by dump_core calls.
10927 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10928 Eli Zaretskii <eliz@gnu.org>
10930 * NEWS: Document the PIE support.
10932 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10934 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10935 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10937 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10939 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10940 Replace exec_entry_point call by bfd_get_start_address.
10942 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10944 Support Valgrind attachments broken by the PIE support.
10945 * auxv.c: Include gdbcore.h.
10946 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10947 parameters ops, object and annex. Remove their assertions.
10948 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10949 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10950 (memory_xfer_auxv): ... here.
10951 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10953 * procfs.c (procfs_xfer_partial): Likewise.
10954 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10955 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10956 (svr4_solib_create_inferior_hook): Conditionalize the
10957 svr4_relocate_main_executable call.
10959 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10961 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10962 target_section. Find SECT in current_target_sections, gdb_assert it.
10963 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10965 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10966 of separate debug info file.
10968 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10970 Support PIEs with no symfile_objfile.
10971 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10972 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10974 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10976 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10978 (svr4_static_exec_displacement): ... a new function.
10979 (svr4_exec_displacement): New function.
10980 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10981 new_offsets using alloca now. Remove variable old_chain and changed.
10982 Call objfile_relocate unconditionally now.
10984 2010-01-14 Doug Evans <dje@google.com>
10986 * gdbtypes.c (arch_flags_type): Fix comment.
10987 * gdbtypes.h (arch_composite_type): Fix comment.
10989 2009-01-14 Tristan Gingold <gingold@adacore.com>
10991 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10992 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10993 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10994 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10995 macho_add_oso_symfile.
10996 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10998 2010-01-14 Joel Brobecker <brobecker@adacore.com>
11000 Tru64: Dead threads are never deleted.
11001 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11002 (dec_thread_count_gdb_threads): Fix counter increment.
11003 (dec_thread_add_gdb_thread): Fix *listp increment.
11004 (resync_thread_list): Fix bug in deletion of dead threads that
11005 caused all threads to be deleted, instead of just the dead ones.
11007 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11011 * python/python-internal.h: Add lazy_string_object_type
11013 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11014 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11015 * python/py-value.c (valpy_lazy_string): New function.
11016 (convert_value_from_python): Add lazy string conversion.
11017 * python/py-prettyprint.c (pretty_print_one_value): Check if
11018 return is also a lazy string.
11019 (print_string_repr): Add lazy string printing branch.
11020 (print_children): Likewise.
11021 * python/py-lazy-string.c: New file. Implement lazy strings.
11022 * python/python.c (_initialize_python): Call
11023 gdbpy_initialize_lazy_string.
11024 * varobj.c (value_get_print_value): Add lazy string printing
11025 branch. Account for encoding.
11026 * c-lang.c (c_printstr): Account for new encoding argument. If
11027 encoding is NULL, find encoding suited for type, otherwise use
11029 * language.h (language_defn): Add encoding argument.
11030 (LA_PRINT_STRING): Likewise.
11031 * language.c (unk_lang_printstr): Update to reflect new encoding
11032 argument to language_defn.
11033 * ada-lang.h (ada_printstr): Likewise.
11034 * c-lang.h (c_printstr): Likewise.
11035 * p-lang.h (pascal_printstr);
11036 * f-lang.c (f_printstr): Likewise.
11037 * m2-lang.c (m2_printstr): Likewise.
11038 * objc-lang.c (objc_printstr): Likewise.
11039 * p-lang.c (pascal_printstr): Likewise.
11040 * scm-lang.c (scm_printstr): Likewise.
11041 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11043 * ada-valprint.c (ada_printstr): Likewise.
11044 * f-valprint.c (f_val_print): Likewise
11045 * m2-valprint.c (m2_val_print): Likewise.
11046 * p-valprint.c (pascal_val_print): Likewise.
11047 * expprint.c (print_subexp_standard): Likewise.
11048 * valprint.c (val_print_string): Likewise.
11049 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11050 (SUBDIR_PYTHON_SRCS): Likewise.
11051 (py-lazy-string.o): New rule.
11053 2010-01-13 Doug Evans <dje@google.com>
11055 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11056 uninitialized" warning from gcc on local `tree'.
11058 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11060 Implement core awareness.
11062 * bcache.c (compare_ints): Remove
11063 (print_percentage): Use compare_positive_ints.
11064 * defs.h (compare_positive_ints): Declare.
11065 * linux-nat.h (struct lin_lwp): New field core.
11066 (linux_nat_core_of_thread_1): Declare.
11067 * linux-nat.c (add_lwp): Init the 'core' field.
11068 (linux_nat_wait_1): Record the core.
11069 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11070 (linux_nat_add_target): Register the above.
11071 * linux-thread-db.c (update_thread_core): New.
11072 (thread_db_find_new_threads): Update core information for
11074 * remote.c (struct private_thread_info): New.
11075 (free_private_thread_info, demand_private_info): New.
11076 (PACKET_qXfer_threads, use_osdata_threads): New.
11077 (struct thread_item, threads_parsing_context
11078 (start_thread, end_thread, thread_attributes)
11079 (thread_children, threads_children, threads_elements): New.
11080 (remote_threads_info): Try qXfer:threads before anything
11082 (remote_protocol_packets): Register qXfer:threads.
11083 (remote_open_1): Init use_osdata_threads.
11084 (struct stop_reply): New field 'core'.
11085 (remote_parse_stop_reply): Parse core number.
11086 (process_stop_reply): Record core number.
11087 (remote_xfer_partial): Handle qXfer:threads.
11088 (remote_core_of_thread): New.
11089 (init_remote_ops): Register remote_core_of_thread.
11090 (_initialize_remote): Register qXfer:read.
11091 * target.c (target_core_of_thread): New
11092 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11093 (struct target_ops): New field to_core_of_threads.
11094 (target_core_of_thread): Declare.
11095 * gdbthread.h (struct thread_info): New field private_dtor.
11096 * thread.c (print_thread_info): Report the core.
11097 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11098 * utils.c (compare_positive_ints): New.
11099 * features/threads.dtd: New.
11100 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11101 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11102 (do_nothing, free_vector_of_osdata_items)
11103 (splay_tree_int_comparator, free_splay_tree): New.
11104 (print_one_inferior_data): Implemented printing of selected
11105 inferiors. Collect and print cores.
11106 (output_cores): New.
11107 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11108 thread groups together with --available.
11110 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11112 * configure: Regenerate (for _STRUCTURED_PROC).
11114 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11116 Delete dead function.
11117 * ada-lang.c (extract_string): Delete. No longer used.
11119 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11121 Fix -Wunused warning in dec-thread.c.
11122 * dec-thread.c (dec_thread_count_gdb_threads)
11123 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11125 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11127 * ada-valprint.c (ada_print_floating): Remove trailing space.
11129 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11131 Add support for DW_AT_GNAT_descriptive_type.
11132 * gdbtypes.h (enum type_specific_kind): New enum.
11133 (struct main_type) [type_specific_field]: New component.
11134 [type_specific]: Add new component "gnat_stuff".
11135 (struct gnat_aux_type): New type.
11136 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11137 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11138 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11139 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11140 (TYPE_SPECIFIC_FIELD): New macros.
11141 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11142 type does not hold any cplus-specific data.
11143 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11144 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11145 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11146 cplus-specific data.
11147 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11148 Set new component TYPE_SPECIFIC_FIELD (type).
11149 (gnat_aux_default): New constant.
11150 (allocate_gnat_aux_type): New function.
11151 (init_type): Add initialization the type-specific stuff for
11152 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11153 (print_gnat_stuff): New function.
11154 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11155 specific data. Adjust code that prints the contents of the
11156 type-specific union using the TYPE_SPECIFIC_FIELD value.
11157 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11158 the type cplus stuff for Ada types.
11159 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11160 Error out if these routines are called with an Ada type.
11161 (read_structure_type, read_array_type, read_subrange_type):
11162 Add call to set_descriptive_type.
11163 (set_die_type): Initialize the gnat-specific data if necessary.
11164 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11166 * ada-lang.c (decode_constrained_packed_array_type): Use
11167 decode_constrained_packed_array_type instead of doing a standard
11168 lookup to locate a parallel type.
11169 (find_parallel_type_by_descriptive_type): New function.
11170 (ada_find_parallel_type_with_name): New function.
11171 (ada_find_parallel_type): Reimplement using
11172 ada_find_parallel_type_with_name.
11173 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11174 to check if type has a cplus stuff.
11175 * linespec.c (total_number_of_methods): Likewise.
11176 * mdebugread.c (new_type): Likewise.
11178 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11180 * NEWS: Document the 0b binary number prefix parsing.
11182 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11184 * objfiles.c (objfile_relocate1): Change the return type to int.
11185 Describe the new return value. Return non-zero if data changed.
11186 (objfile_relocate): New variable changed. Set it. Call
11187 breakpoint_re_set depending on CHANGED.
11189 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11191 Implement binary numbers parsing.
11192 * c-exp.y (parse_number): New case 'b' and 'B'.
11194 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11195 Tristan Gingold <gingold@adacore.com>
11197 * solib.c (info_sharedlibrary_command): Replace
11198 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11199 objfile_has_symbols.
11201 2010-01-10 Joel Brobecker <brobecker@adacore.com>
11203 * NEWS: Document the improvements made to the mips-irix port.
11205 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11207 Fix the documentation of valprint.c:value_print.
11208 * valprint.c (value_print): Update the function description to
11209 mention that the syntax of the output follows the current_language,
11212 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11214 Fix displacement of separate debug info files.
11215 * objfiles.c (objfile_relocate): Rename to ...
11216 (objfile_relocate1): ... here and make it static. Extend the comment.
11217 (objfile_relocate): New function.
11218 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11219 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11220 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11221 allocated using alloca.
11222 * symfile.c (copy_section_addr_info): Remove.
11223 (build_section_addr_info_from_objfile): Make it global. New variables
11224 addr_bit and mask, use them.
11225 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11226 (copy_section_addr_info): Remove.
11228 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11230 Signal unwinder for mips-irix N32.
11231 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11233 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11234 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11235 (SIGCONTEXT_LO_OFF): New macros.
11236 (mips_irix_n32_tramp_frame_init): New function.
11237 (mips_irix_n32_tramp_frame): New static constant.
11238 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11240 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11242 Breakpoint in shared library does not work on mips-irix.
11243 * procfs.c: #include "observer.h".
11244 (procfs_inferior_created): New function, moving here the code
11245 which unsets the syssgi syscall-exit notifications.
11246 (procfs_create_inferior): Remove the code which unsets the syssgi
11247 syscall-exit notifications. It is too early to do this here.
11248 (_initialize_procfs): Attach the procfs_inferior_created observer.
11250 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11252 Wrong return convention for arrays (mips-irix).
11253 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11254 128 bits or smaller are returned the same way as structs
11255 and unions of the the same size.
11257 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11259 Cannot set the PC on mips-irix.
11260 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11261 register number, no the cooked one.
11263 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11265 Error while loading core file on mips-irix.
11266 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11267 if debugging from a core file.
11269 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11271 GDB hangs when attaching to process on mips-irix.
11272 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11273 attaching to a process.
11275 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11277 Use the correct breakpoint instruction on mips-irix.
11278 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11279 containing the correct breakpoint instruction to use on mips-irix.
11280 Use it when the osabi is GDB_OSABI_IRIX.
11282 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11284 -Wunused warning in procfs.c (mips-irix only).
11285 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11286 throughout instead of using praddset and prdelset respectively.
11288 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11290 GDB crash while stepping into function.
11291 * infrun.c (handle_inferior_event): Refetch the current frame
11292 after handling what.main_action, in case that pointer became
11295 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11297 Fix build failure of solaris-hosted cross debuggers.
11298 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11300 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11302 Fix build failure on sparc-solaris.
11303 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11305 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11307 Move some symfile code into subroutines.
11308 * symfile.h (relative_addr_info_to_section_offsets)
11309 (addr_info_make_relative): New prototypes.
11310 * symfile.c (default_symfile_offsets): Move a part to ...
11311 (relative_addr_info_to_section_offsets): ... this new function.
11312 (default_symfile_offsets): Call it.
11313 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11315 (addr_info_make_relative): ... this new function.
11317 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11319 Add from_tty to solib_create_inferior_hook.
11320 * infcmd.c (post_create_inferior): Move solib_add after
11321 solib_create_inferior_hook. Pass from_tty to
11322 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11323 0 from_tty and comment why.
11324 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11325 * linux-nat.c (linux_child_follow_fork): Likewise.
11326 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11327 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11329 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11330 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11331 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11332 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11333 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11334 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11335 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11336 Pass it to svr4_so_ops.solib_create_inferior_hook.
11337 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11339 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11341 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11343 * solib-target.c (solib_target_solib_create_inferior_hook): New
11344 parameter from_tty.
11345 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11346 it to ops->solib_create_inferior_hook.
11347 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11348 Move solib_add after solib_create_inferior_hook, call it now with
11349 from_tty as 0. New comment there.
11350 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11351 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11354 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11356 Fix multiexec race.
11357 * infrun.c (handle_inferior_event): Use get_thread_regcache
11358 with events ptid, not get_current_regcache.
11360 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11362 GDB crash with empty executable name (MinGW).
11363 * source.c (openp): Add assert that parameter string is not NULL.
11364 if parameter string is an empty string, then return with a failure
11367 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11369 Get rid of support for VAX Floats.
11370 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11371 (ada_vax_float_print_function): Delete.
11372 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11373 (ada_vax_float_print_function): Delete.
11374 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11375 (ada_print_type): Remove support for VAX floats.
11376 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11378 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11380 * stabsread.c (read_args): Handle zero arguments.
11382 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11384 Cannot find in-tree libiconv.a after reconfigure.
11385 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11386 that we can use, then cache the path to this archive.
11387 * configure: Regenerate.
11389 2010-01-07 Stan Shebs <stan@codesourcery.com>
11391 Make tracepoint operations go through target vector.
11392 * target.h (enum trace_find_type): New enum.
11393 (struct target_ops): New fields to_trace_init,
11394 to_download_tracepoint, to_download_trace_state_variable,
11395 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11396 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11397 to_set_disconnected_tracing.
11398 (target_trace_init): New macro.
11399 (target_download_tracepoint): New macro.
11400 (target_download_trace_state_variable): New macro.
11401 (target_trace_start): New macro.
11402 (target_trace_set_readonly_regions): New macro.
11403 (target_get_trace_status): New macro.
11404 (target_trace_stop): New macro.
11405 (target_trace_find): New macro.
11406 (target_get_trace_state_variable_value): New macro.
11407 (target_set_disconnected_tracing): New macro.
11408 * target.c (update_current_target): Inherit and set defaults for
11409 tracepoint operations.
11410 * tracepoint.c (default_collect): Make globally visible.
11411 (target_is_remote): Remove, along with all calls.
11412 (tvariables_info): Call target_get_trace_state_variable_value.
11413 (remote_set_transparent_ranges): Remove.
11414 (trace_start_command): Call target_trace_init,
11415 target_download_tracepoint, etc.
11416 (download_tracepoint): Remove.
11417 (trace_stop_command): Simplify.
11418 (stop_tracing): Call target_trace_stop.
11419 (get_trace_status): Call target_get_trace_status.
11420 (trace_status_command): Add case for targets that cannot trace.
11421 (finish_tfind_command): Change to take numerical arguments, call
11423 (trace_find_command): Update call to finish_tfind_command.
11424 (trace_find_pc_command): Ditto.
11425 (trace_find_tracepoint_command): Ditto.
11426 (trace_find_line_command): Ditto.
11427 (trace_find_range_command): Ditto.
11428 (trace_find_outside_command): Ditto.
11429 (set_disconnected_tracing_value): Call
11430 target_set_disconnected_tracing.
11431 * remote.c: Add protocol encoding bits from tracepoint.c.
11432 (trace_error): Move from tracepoint.c.
11433 (remote_get_noisy_reply): Ditto.
11434 (free_actions_list_cleanup_wrapper): Ditto.
11435 (free_actions_list): Ditto.
11436 (remote_trace_init): New function.
11437 (remote_download_tracepoint): New function.
11438 (remote_download_trace_state_variable): New function.
11439 (remote_trace_set_readonly_regions): New function.
11440 (remote_trace_start): New function.
11441 (remote_get_trace_status): New function.
11442 (remote_trace_stop): New function.
11443 (remote_trace_find): New function.
11444 (remote_download_trace_state_variable): New function.
11445 (remote_set_disconnected_tracing): New function.
11446 (init_remote_ops): Add tracepoint operations.
11448 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11450 2010-01-07 Tristan Gingold <gingold@adacore.com>
11452 * symfile.c (build_section_addr_info_from_objfile): New function.
11453 (symbol_file_add_separate): Don't use offsets from objfile but
11454 built an addr info.
11456 2010-01-06 Stan Shebs <stan@codesourcery.com>
11458 Support disconnected tracing.
11459 * infcmd.c (detach_command): Ask whether to stop tracing.
11460 * cli/cli-cmds.c (quit_command): Ditto.
11461 * breakpoint.h (struct breakpoint): New field number_on_target.
11462 * breakpoint.c (create_tracepoint_from_upload): New function.
11463 (get_tracepoint_by_number_on_target): New function.
11464 * remote.c (struct remote): New field disconnected_tracing.
11465 (remote_disconnected_tracing_feature): New function.
11466 (remote_protocol_features): Add DisconnectedTracing.
11467 (struct uploaded_tp): New struct.
11468 (uploaded_tps): New global.
11469 (get_uploaded_tp): New function.
11470 (find_matching_tracepoint): New function.
11471 (remote_get_tracing_state): New function.
11472 (remote_start_remote): Call it.
11473 * tracepoint.c (disconnected_tracing): New global.
11474 (trace_start_command): Initialize number_on_target.
11475 (stop_tracing): New function, split out from...
11476 (trace_stop_command): Call stop_tracing.
11477 (get_trace_status): New function, split out from...
11478 (trace_status_command): Call get_trace_status, add info on
11479 disconnection behavior.
11480 (disconnect_or_stop_tracing): New function.
11481 (finish_tfind_command): Translate from number on target.
11482 (trace_find_tracepoint_command): Translate to number on target.
11483 (send_disconnected_tracing_value): New function.
11484 (set_disconnected_tracing): New function.
11485 (_initialize_tracepoint): Add disconnected-tracing variable.
11486 * NEWS: Mention disconnected tracing.
11488 2010-01-06 Tristan Gingold <gingold@adacore.com>
11490 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11491 parameter to main_objfile. Iterate on all separate debug objfiles.
11492 * symfile.h (symbol_file_add_separate)
11493 (find_separate_debug_file_by_debuglink): Remove parameter names.
11494 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11495 (reread_symbols): Use free_objfile_separate_debug.
11496 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11498 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11499 (free_objfile_separate_debug): New prototypes.
11500 * objfiles.c (objfile_separate_debug_iterate): New function.
11501 (add_separate_debug_objfile, free_objfile_separate_debug): New
11503 (free_objfile): Use free_objfile_separate_debug. Adjust for
11504 multiple separate debug objfile.
11505 (objfile_has_symbols): Adjust comment. Iterate on all separate
11507 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11509 (lookup_minimal_symbol_text): Ditto.
11510 (lookup_minimal_symbol_by_pc_name): Ditto.
11511 (lookup_minimal_symbol_solib_trampoline): Ditto.
11512 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11515 2010-01-05 Stan Shebs <stan@codesourcery.com>
11517 Add fast tracepoints.
11518 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11519 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11520 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11521 * breakpoint.c (tracepoint_type): New function.
11522 (ALL_TRACEPOINTS): Use it.
11523 (should_be_inserted): Ditto.
11524 (bpstat_check_location): Ditto.
11525 (print_one_breakpoint_location): Ditto.
11526 (user_settable_breakpoint): Ditto.
11527 (set_breakpoint_location_function): Ditto.
11528 (disable_breakpoints_in_shlibs): Ditto.
11529 (delete_trace_command): Ditto.
11530 (print_it_typical): Add bp_fast_tracepoint case.
11531 (bpstat_what): Ditto.
11532 (print_one_breakpoint_location): Ditto.
11533 (allocate_bp_location): Ditto.
11535 (breakpoint_re_set_one): Ditto.
11536 (disable_command): Ditto.
11537 (enable_command): Ditto.
11538 (check_fast_tracepoint_sals): New function.
11539 (break_command_really): Call it.
11540 (ftrace_command): New function.
11541 (_initialize_breakpoint): Add ftrace command.
11542 * gdbarch.sh (fast_tracepoint_valid_at): New.
11543 * gdbarch.h, gdbarch.c: Regenerate.
11544 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11545 (i386_gdbarch_init): Use it.
11546 * remote.c (struct remote_state): New field fast_tracepoints.
11547 (PACKET_FastTracepoints): New packet config type.
11548 (remote_fast_tracepoint_feature): New function.
11549 (remote_protocol_features): Add FastTracepoints.
11550 (remote_supports_fast_tracepoints): New function.
11551 (_initialize_remote): Add FastTracepoints.
11552 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11553 * NEWS: Mention fast tracepoints.
11555 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11557 * gdb-gdb.py: New file.
11559 2010-01-05 Michael Snyder <msnyder@vmware.com>
11561 * infrun.c (handle_inferior_event): Fix typo in comment.
11563 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11565 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11567 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11569 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11571 (s390-linux32-expedite): Define.
11572 (s390-linux64-expedite): Define.
11573 (s390x-linux64-expedite): Define.
11574 * features/s390-acr.xml: New file.
11575 * features/s390-fpr.xml: New file.
11576 * features/s390-core32.xml: New file.
11577 * features/s390-core64.xml: New file.
11578 * features/s390x-core64.xml: New file.
11579 * features/s390-linux32.xml: New file.
11580 * features/s390-linux64.xml: New file.
11581 * features/s390x-linux64.xml: New file.
11582 * features/s390-linux32.c: New generated file.
11583 * features/s390-linux64.c: New generated file.
11584 * features/s390x-linux64.c: New generated file.
11586 * regformats/s390-linux32.dat: New generated file.
11587 * regformats/s390-linux64.dat: New generated file.
11588 * regformats/s390x-linux64.dat: New generated file.
11589 * regformats/reg-s390.dat: Remove.
11590 * regformats/reg-s390x.dat: Remove.
11592 * s390-nat.c: Include "auxv.h" and <elf.h>.
11593 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11594 (s390_target_wordsize): New function.
11595 (s390_auxv_parse): Likewise.
11596 (s390_get_hwcap): Likewise.
11597 (s390_read_description): Likewise.
11598 (_initialize_s390_nat): Install s390_auxv_parse and
11599 s390_read_description.
11601 * s390-tdep.c: Include "features/s390-linux32.c",
11602 "features/s390-linux64.c", and "features/s390x-linux64.c".
11603 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11604 (s390_register_call_saved): New function.
11605 (s390_register_name): Remove.
11606 (s390_register_type): Remove.
11607 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11608 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11609 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11610 (s390_pseudo_register_name): New function.
11611 (s390_pseudo_register_type): New function.
11612 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11613 Handle full GPR pesudos and varying pseudo register numbers.
11614 (s390_pseudo_register_write): Likewise
11615 (s390x_pseudo_register_read): Remove.
11616 (s390x_pseudo_register_write): Likewise.
11617 (s390_register_group): Remove.
11618 (s390_pseudo_register_group): New function.
11619 (s390_regmap_gregset): Add GPR upper halves.
11620 (s390x_regmap_gregset): Likewise.
11621 (s390_regmap_fpregset): Likewise.
11622 (s390_regmap_upper): New global variable.
11623 (s390_upper_regset): New global variable.
11624 (s390_upper_regset_sections): New global variable.
11625 (s390_regset_from_core_section): Handle GPR upper halves.
11626 (s390_core_read_description): New function.
11627 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11628 register information. Handle varying pseudo register numbers.
11629 (s390_backchain_frame_unwind_cache): Likewise.
11630 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11631 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11632 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11633 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11634 Handle varying pseudo register numbers.
11635 (s390_unwind_pc): Handle varying pseudo register numbers.
11636 (s390_dwarf2_prev_register): New function.
11637 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11638 register information. Handle varying pseudo register numbers.
11639 Install s390_dwarf2_prev_register to unwind full GPRs.
11640 (s390_gdbarch_init): Handle target descriptions. Assign varying
11641 pseudo register numbers. Install s390_adjust_frame_regnum.
11642 (_initialize_s390_tdep): Initialize target descriptions.
11644 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11645 (S390_NUM_REGS): Redefine to include upper half registers.
11646 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11647 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11648 (tdesc_s390_linux32): Add declaration.
11649 (tdesc_s390_linux64): Likewise.
11650 (tdesc_s390x_linux64): Likewise.
11652 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11654 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11655 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11656 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11657 (ppc_linux_vmx_regset_sections): Likewise.
11658 (ppc_linux_fp_regset_sections): Likewise.
11660 * corelow.c (get_core_register_section): Constify arguments.
11661 (get_core_registers): Use gdbarch_core_regset_sections instead
11662 of hard-coded platform-specific register section names.
11664 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11666 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11667 a register, assume the least-significant part is used.
11668 (write_pieced_value): Likewise.
11670 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11672 * printcmd.c: Include "arch-utils.h".
11673 (do_one_display): Re-parse expression if current architecture changed.
11675 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11676 Joel Brobecker <brobecker@adacore.com>
11678 * gdbtypes.c (check_typedef): New comment on type length.
11679 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11680 comment on type length.
11681 (value_primitive_field): Keep the original TYPE value, new comment.
11683 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11685 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11686 p_start. Change != comparisons to > and < comparisons.
11688 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11690 * cli/cli-script.c (process_next_line): Check P2 overrun.
11692 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11694 Update the copyright hearder to add year 2010 for most GDB files.
11696 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11698 Fix build failure in inf-ptrace.c.
11699 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11701 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11703 * top.c (print_gdb_version): Update copyright year.
11705 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11707 Fix break *FUN'address thread NUM.
11708 * ada-lex.l (task): Expand rule to also match the thread keyword.
11710 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11712 Fix break *FUN'address task NUM.
11713 * ada-lex.l (task): New rule.
11714 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11715 been built before using it.
11717 For older changes see ChangeLog-2009.
11723 version-control: never