1 2010-04-23 Stan Shebs <stan@codesourcery.com>
3 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5 (struct agent_reqs): Remove.
6 (ax_reg_mask): Declare.
7 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
8 (free_agent_expr): Free reg_mask.
9 (ax_print): Add scope and register mask info.
10 (ax_reqs): Remove agent_reqs argument, use agent expression
11 fields, and move part of register mask computation to...
12 (ax_reg_mask): New function.
13 * ax-gdb.c (gen_trace_static_fields): Call it.
14 (gen_traced_pop): Ditto.
15 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
16 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
17 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
18 (gen_eval_for_expr): Ditto, and require an rvalue.
19 (agent_command): Call ax_reqs.
20 (agent_eval_command): Ditto.
21 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
22 (validate_action_line): Ditto.
23 (collect_symbol): Ditto.
24 (encode_actions_1): Ditto.
26 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
27 Paul Pluzhnikov <ppluzhnikov@google.com>
28 Jan Kratochvil <jan.kratochvil@redhat.com>
30 Fix deadlock on looped list of loaded shared objects.
31 * solib-svr4.c (LM_PREV): New function.
32 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
33 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
34 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
35 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
37 2010-04-23 Doug Evans <dje@google.com>
39 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
41 * configure: Regenerate.
42 * main.c: #include "python/python.h".
43 (captured_main): Defer loading auto-loaded scripts until after
44 local_gdbinit has been sourced.
45 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
46 (load_auto_scripts_for_objfile): New function.
47 (auto_load_new_objfile): Call it.
48 * python/python.h (gdbpy_global_auto_load): Declare.
49 (load_auto_scripts_for_objfile): Declare.
51 Add support for auto-loading scripts from .debug_gdb_scripts section.
52 * NEWS: Add entry for .debug_gdb_scripts.
53 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
54 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
55 (py-auto-load.o): New rule.
56 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
57 * cli/cli-cmds.h (find_and_open_script): Update prototype.
58 * python/py-auto-load.c: New file.
59 * python/python-internal.h: #include <stdio.h>.
60 (set_python_list, show_python_list): Declare.
61 (gdbpy_initialize_auto_load): Declare.
62 (source_python_script_for_objfile): Declare.
63 * python/python.c: Remove #include of observer.h.
64 (gdbpy_auto_load): Moved to py-auto-load.c.
65 (GDBPY_AUTO_FILENAME): Ditto.
66 (gdbpy_new_objfile): Delete.
67 (source_python_script_for_objfile): New function.
68 (set_python_list, show_python_list): Make externally visible.
69 (_initialize_python): Move "auto-load" command to py-auto-load.c
70 and observer_attach_new_objfile to py-auto-load.c.
72 2010-04-23 Jerome Guitton <guitton@adacore.com>
74 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
75 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
76 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
78 (alpha_heuristic_analyze_probing_loop): New function.
79 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
80 and handle cases when a stack probe loop is generated.
81 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
82 (alpha_mdebug_max_frame_size_exceeded): New function.
83 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
84 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
85 Return 0 when the maximum debuggable frame size has been exceeded.
87 2010-04-23 Joel Brobecker <brobecker@adacore.com>
90 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
92 2010-04-20 Chris Moller <cmoller@redhat.com>
96 * symtab.c (rbreak_command): Added code to include a filename
97 specification in the rbreak argument.
98 * NEWS: Added a brief description of filename-qualified rbreak.
100 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
102 Fix crashes on dangling display expressions.
103 * ada-lang.c (ada_operator_check): New function.
104 (ada_exp_descriptor): Fill-in the field operator_check.
105 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
106 * jv-lang.c (exp_descriptor_java): Likewise.
107 * m2-lang.c (exp_descriptor_modula2): Likewise.
108 * scm-lang.c (exp_descriptor_scm): Likewise.
109 * parse.c (exp_descriptor_standard): Likewise.
110 (operator_check_standard): New function.
111 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
112 * parser-defs.h (struct exp_descriptor): New field operator_check.
113 (operator_check_standard, exp_uses_objfile): New declarations.
114 * printcmd.c: Remove the inclusion of solib.h.
115 (display_uses_solib_p): Remove the function.
116 (clear_dangling_display_expressions): Call lookup_objfile_from_block
117 and exp_uses_objfile instead of display_uses_solib_p.
118 * solist.h (struct so_list) <objfile>: New comment.
119 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
120 * symtab.h (lookup_objfile_from_block): New declaration.
121 (struct general_symbol_info) <obj_section>: Extend the comment.
123 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
124 Thiago Jung Bauermann <bauerman@br.ibm.com>
126 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
127 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
128 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
129 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
130 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
131 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
132 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
133 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
134 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
135 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
136 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
137 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
138 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
139 Define, in case <ptrace.h> doesn't provide it.
140 (booke_debug_info): New variable.
141 (max_slots_number): Ditto.
142 (hw_break_tuple): New struct.
143 (thread_points): Ditto.
144 (ppc_threads): New variable.
145 (PPC_DEBUG_CURRENT_VERSION): New define.
146 (have_ptrace_new_debug_booke): New function.
147 (ppc_linux_check_watch_resources): Renamed to ...
148 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
149 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
150 (booke_cmp_hw_point): New function.
151 (booke_find_thread_points_by_tid): Ditto.
152 (booke_insert_point): Ditto.
153 (booke_remove_point): Ditto.
154 (ppc_linux_insert_hw_breakpoint): Ditto.
155 (ppc_linux_remove_hw_breakpoint): Ditto.
156 (get_trigger_type): Ditto.
157 (ppc_linux_insert_watchpoint): Handle BookE processors.
158 (ppc_linux_remove_watchpoint): Ditto.
159 (ppc_linux_new_thread): Ditto.
160 (ppc_linux_thread_exit): New function..
161 (ppc_linux_stopped_data_address): Handle BookE processors.
162 (ppc_linux_watchpoint_addr_within_range): Ditto.
163 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
164 to_remove_hw_breakpoint fields of the target operations struct.
165 Add observe for the thread_exit event.
167 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
169 * i386-linux-nat.c (regmap): Removed.
170 (fetch_register): Replace regmap with
171 i386_linux_gregset_reg_offset.
172 (store_register): Likewise.
173 (supply_gregset): Likewise.
174 (fill_gregset): Likewise.
176 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
179 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
181 2010-04-22 Chris Moller <cmoller@redhat.com>
183 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
184 method of popping recursion-detection stack with a method based on
185 obstack_object_size(). (Similar to the PR9167 patch below, but for
186 the static array obstack rather than the static member obstack.)
188 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
190 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
191 (_initialize_amd64_linux_nat): Replace
192 amd64_linux_gregset64_reg_offset with
193 amd64_linux_gregset_reg_offset.
195 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
198 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
200 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
203 * stabsread.c (set_length_in_type_chain): New function.
204 (read_struct_type): Call set_length_in_type_chain function.
205 (read_enum_type): Idem.
207 2010-04-21 Stan Shebs <stan@codesourcery.com>
208 Nathan Sidwell <nathan@codesourcery.com>
210 * tracepoint.c (trace_save): Open in binary mode.
212 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
214 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
216 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
217 builtin_char32 fields.
218 * printcmd.c (decode_format): Set char size to '\0'
219 for strings unless explicit size is given.
220 (print_formatted): Correct calculation of NEXT_ADDRESS
221 for 16 or 32 bit strings.
222 (do_examine): Do not force byte size for strings.
223 Use builtin_char16 and builtin_char32 types to display
224 16 or 32 bit-wide strings.
225 (x_command): Set LAST_SIZE to 'b' for string type.
227 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
230 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
233 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
234 there is no .reg-xstate section.
235 (i386_linux_core_read_description): Check XCR0 first.
237 2010-04-21 Mike Frysinger <vapier@gentoo.org>
239 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
242 2010-04-21 Chris Moller <cmoller@redhat.com>
245 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
246 method of popping recursion-detection stack with a method based on
247 obstack_object_size().
249 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
252 * p-valprint.c (pascal_val_print): Fix default printing of integer
255 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
257 Fix compilation warning on gcc-4.1.2.
258 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
259 local variable`pc' to zero.
261 2010-04-20 Joel Brobecker <brobecker@adacore.com>
263 Implement thread support with core files on alpha-tru64.
264 * dec-thread.c (dec_thread_find_new_threads): New function,
265 extracted from resync_thread_list.
266 (resync_thread_list): Add OPS parameter. Replace extracted-out
267 code by call to dec_thread_find_new_threads.
268 (dec_thread_wait): Update call to resync_thread_list.
269 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
271 2010-04-20 Joel Brobecker <brobecker@adacore.com>
273 * ada-lang.c (value_pointer): New function.
274 (make_array_descriptor): Call value_pointer to convert addresses to
277 2010-04-20 Joel Brobecker <brobecker@adacore.com>
279 * rs6000-aix-tdep.c: #include exceptions.h.
280 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
281 while reading the memory at ADDR, then ADDR cannot be a function
284 2010-04-20 Joel Brobecker <brobecker@adacore.com>
286 * ada-typeprint.c (ada_print_typedef): New function.
287 * ada-lang.h (ada_print_typedef): Add declaration.
288 * ada-lang.c (ada_language_defn): set la_print_typdef field
289 to ada_print_typedef.
291 2010-04-20 Joel Brobecker <brobecker@adacore.com>
293 * procfs.c (procfs_address_to_host_pointer): Only define when used.
295 2010-04-20 Joel Brobecker <brobecker@adacore.com>
297 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
298 (iterate_over_mappings): Adjust function profile. Add declaration.
299 (insert_dbx_link_bpt_in_region, info_mappings_callback):
302 2010-04-20 Joel Brobecker <brobecker@adacore.com>
304 * procfs.c (solib_mappings_callback): Move function up to avoid
307 2010-04-20 Joel Brobecker <brobecker@adacore.com>
309 * procfs.c (find_signalled_thread, find_stop_signal): Move
310 these functions down to define them only when used.
312 2010-04-20 Joel Brobecker <brobecker@adacore.com>
314 * valprint.c (common_val_print): Fix the value before extracting
316 * ada-lang.c (ada_to_fixed_value): Make this function extern.
317 * ada-lang.h (ada_to_fixed_value): New function declaration.
318 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
319 to avoid code duplication and fix a bug in the handling of
320 fixed types contents.
322 2010-04-20 Tom Tromey <tromey@redhat.com>
324 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
325 (read_partial_die): Likewise.
326 (dwarf_attr_name): Likewise.
328 2010-04-20 Chris Moller <cmoller@redhat.com>
332 * cp-valprint.c (global): Adding new static array recursion
334 (cp_print_value_fields, cp_print_static_field): Added new static
335 array recursion detection code.
337 2010-04-20 Mark Kettenis <kettenis@gnu.org>
339 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
340 general-purpose register set should be 68 instead of 144.
341 (i386_linux_sse_regset_sections): Likewise.
342 (i386_linux_avx_regset_sections): Likewise.
344 2010-04-20 Stan Shebs <stan@codesourcery.com>
345 Nathan Sidwell <nathan@codesourcery.com>
347 * dwarf2loc.c (struct axs_var_loc): New struct.
348 (dwarf2_tracepoint_var_loc): New function.
349 (dwarf2_tracepoint_var_access): New function.
350 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
352 (locexpr_describe_location_piece): New function.
353 (locexpr_describe_location_1): New function.
354 (locexpr_describe_location): Call it, update signature.
355 (loclist_describe_location): Rewrite to loop over locations,
357 * symtab.h (struct symbol_computed_ops): Add address to
358 describe_location arguments, return void.
359 * printcmd.c (address_info): Get context PC, pass to computed
360 location description.
361 * tracepoint.c (scope_info): Ditto.
362 * ax-gdb.c (trace_kludge): Export.
364 2010-04-20 Tom Tromey <tromey@redhat.com>
366 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
367 (struct dwarf2_cie) <segment_size>: New field.
368 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
369 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
371 (read_attribute_value): Handle DW_FORM_flag_present,
372 DW_FORM_sec_offset, DW_FORM_exprloc.
373 (dump_die_shallow): Likewise.
374 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
375 (dwarf2_const_value): Handle DW_FORM_exprloc.
376 (attr_form_is_block): Likewise.
377 (struct line_header) <maximum_ops_per_instruction>: New field.
378 (dwarf_decode_line_header): Set new field.
379 (dwarf_decode_lines): Handle new field.
381 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
383 * f-exp.y: Add new production to recognize the `logical*8' type.
384 (LOGICAL_S8_KEYWORD): New token.
385 * f-lang.c (enum f_primitive_types)
386 <f_primitive_type_logical_s8>: New field.
387 (f_language_arch_info): Handling `logical*8' type.
388 (build_fortran_types): Building `logical*8' type.
389 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
391 2010-04-19 Doug Evans <dje@google.com>
393 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
394 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
397 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
399 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
401 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
403 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
404 type to void function.
406 2010-04-19 Stan Shebs <stan@codesourcery.com>
407 Vladimir Prus <vladimir@codesourcery.com>
409 * tracepoint.c (tfind_1): Add missing newline, report exit from
411 * target.c (update_current_target): Make default
412 to_trace_find return -1.
414 2010-04-19 Mike Frysinger <vapier@gentoo.org>
416 * objc-lang.c (find_methods): Move symname check up.
418 2010-04-19 Pedro Alves <pedro@codesourcery.com>
420 * ada-lang.c (print_recreate_exception)
421 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
422 not "catch unhandled".
424 2010-04-19 Pedro Alves <pedro@codesourcery.com>
428 Implement `save-breakpoints'.
430 * breakpoint.c (save_cmdlist): New.
431 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
433 (print_recreate_catch_fork): New.
434 (catch_fork_breakpoint_ops): Install it.
435 (print_recreate_catch_vfork): New.
436 (catch_vfork_breakpoint_ops): Install it.
437 (print_recreate_catch_syscall): New.
438 (catch_syscall_breakpoint_ops): Install it.
439 (print_recreate_catch_exec): New.
440 (catch_exec_breakpoint_ops): Install it.
441 (print_recreate_exception_catchpoint): New.
442 (gnu_v3_exception_catchpoint_ops): Install it.
443 (save_breakpoints): New, based on tracepoint_save_command, but
444 handle all breakpoint types.
445 (save_breakpoints_command): New.
446 (tracepoint_save_command): Rename to...
447 (save_tracepoints_command): ... this, and reimplement using
450 (_initialize_breakpoints): Install the "save" command prefix.
451 Install the "save breakpoints" command. Make "save-tracepoints" a
452 deprecated alias for "save tracepoints".
453 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
454 * ada-lang.c (print_recreate_exception): New.
455 (print_recreate_catch_exception): New.
456 (catch_exception_breakpoint_ops): Install it.
457 (print_recreate_catch_exception_unhandled): New.
458 (catch_exception_unhandled_breakpoint_ops): Install it.
459 (print_recreate_catch_assert): New.
460 (catch_assert_breakpoint_ops): Install it.
462 * NEWS: Mention the new `save breakpoints' command. Mention the
463 new `save tracepoints' alias and that `save-tracepoints' is now
466 2010-04-18 Pedro Alves <pedro@codesourcery.com>
470 * tui/tui-out.c: Include cli-out.h.
471 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
472 (tui_begin, tui_end, tui_field_int, tui_field_skip)
473 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
474 (tui_message, tui_wrap_hint, tui_flush): Delete forward
476 (struct ui_out_data): Rename to...
477 (struct tui_ui_out_data): ... this. Remove `stream' and
478 `suppress_output' fields, and inherit cli_ui_out_data.
479 (tui_out_data): New typedef.
480 (tui_ui_out_impl): Don't initialize fields staticaly.
481 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
482 (tui_begin, tui_end): Delete.
483 (tui_field_int): Adjust to delegate most work to the base type.
484 (tui_field_skip): Delete.
485 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
486 delegate most work to the base type.
487 (tui_spaces): Delete.
488 (tui_text): Adjust to delegate most work to the base type.
489 (tui_message): Delete.
490 (tui_wrap_hint): Delete.
492 (out_field_fmt): Delete.
493 (field_separator): Delete.
494 (tui_out_new): Adjust to initialize the base type.
495 (_initialize_tui_out): Initialize tui_ui_out_impl.
496 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
498 (cli_out_data): Adjust.
499 (cli_ui_out_impl): Make extern.
500 (cli_table_header, cli_field_int, cli_field_skip): Use
501 uo_field_string instead of cli_field_string.
502 (cli_redirect): Adjust to use cli_out_data.
503 (cli_out_data_ctor): New.
504 (cli_out_new): Use it.
505 * cli-out.h (struct ui_file): Remove forward declaration.
506 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
507 (cli_ui_out_impl): Declare.
508 (cli_out_data_ctor): Declare.
509 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
510 (uo_field_string): No longer static.
511 (ui_out_data): Change return type to void pointer.
512 (ui_out_new): Change `data' parameter type to void pointer.
513 * ui-out.h (struct ui_out_data): Don't forward declare.
514 (ui_out_data): Change return type to void pointer.
515 (ui_out_new): Change `data' parameter type to void pointer.
516 (uo_field_string): Declare.
518 2010-04-17 Pedro Alves <pedro@codesourcery.com>
520 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
521 instead of always false.
523 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
526 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
529 2010-04-17 Pedro Alves <pedro@codesourcery.com>
531 * breakpoint.c (watchpoints_triggered): Use
532 is_hardware_watchpoint.
533 (watchpoints_triggered): Ditto.
534 (bpstat_check_location): Use is_watchpoint and
535 is_hardware_watchpoint.
536 (bpstat_check_watchpoint): Use is_watchpoint and
537 is_hardware_watchpoint.
538 (bpstat_stop_status): Fix comment.
539 (user_settable_breakpoint): Use is_watchpoint.
540 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
541 (disable_watchpoints_before_interactive_call_start): Use
543 (enable_watchpoints_after_interactive_call_stop): Use
545 (clear_command): Use is_watchpoint.
546 (do_enable_breakpoint): Use is_watchpoint.
548 2010-04-16 Mike Frysinger <vapier@gentoo.org>
550 * solib-frv.c (enable_break1_done): Delete.
551 (enable_break2): Do not check enable_break1_done. Move the
552 enable_break2_done setting and call to
553 remove_solib_event_breakpoints() to the end. Return without
554 warning when the contents of _dl_debug_addr are 0.
555 (enable_break): Do not set enable_break1_done.
556 (frv_clear_solib): Likewise.
558 2010-04-16 Kevin Buettner <kevinb@redhat.com>
560 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
561 instead of an error if no PLT entry is found. Return a
562 potentially useful result.
563 (m32c_m16c_pointer_to_address): Add code to search for function
564 address when no .plt entry is found.
566 2010-04-16 Stan Shebs <stan@codesourcery.com>
568 * tracepoint.c (trace_variable_command): Run a cleanup.
570 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
572 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
574 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
576 Support for Windows OS Thread Information Block.
577 * NEWS: Document new feature.
578 * remote.c (PACKET_qGetTIBAddr): New enum element.
579 (remote_get_tib_address): New function.
580 (init_remote_ops): Set to_get_tib_address field
581 to remote_get_tib_address.
582 (_initialize_remote): Add add_packet_config_cmd
583 for PACKET_qGetTIBAddr.
584 * target.c (update_current_target): Set default value for
585 new to_get_tib_address field.
586 * target.h (target_ops): New field to_get_tib_address.
587 (target_get_tib_address): New macro.
588 * windows-nat.c (thread_info): Add thread_local_base field.
589 (windows_add_thread): Add tlb argument of type 'void *'.
590 (fake_create_process): Adapt windows_add_thread call.
591 (get_windows_debug_event): Idem.
592 (windows_get_tib_address): New function.
593 (init_windows_ops): Set to_get_tib_address field
594 to remote_get_tib_address.
595 (_initialize_windows_nat): Replace info_w32_cmdlist
596 initialization by a call to init_w32_command_list.
597 (info_w32_command, info_w32_cmdlist): Removed from here...
598 to windows-tdep.c file.
599 * windows-tdep.h (info_w32_cmdlist): Declare.
600 (init_w32_command_list): New external function
602 * windows-tdep.c: Add several headers.
603 (info_w32_cmdlist): to here, made global.
604 (thread_information_32): New struct.
605 (thread_information_64): New struct.
606 (TIB_NAME): New char array.
607 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
608 (maint_display_all_tib): New static variable.
609 (windows_get_tlb_type): New function.
610 (tlb_value_read, tlb_value_write): New functions.
611 (tlb_value_funcs): New static struct.
612 (tlb_make_value): New function.
613 (display_one_tib): New function.
614 (display_tib): New function.
615 (show_maint_show_all_tib):New function.
616 (info_w32_command): Moved from windows-nat.c.
617 (init_w32_command_list): New function.
618 (_initialize_windows_tdep): New function.
619 New "maint set/show show-all-tib" command
620 New "$_tlb" internal variable.
622 2010-04-16 Joel Brobecker <brobecker@adacore.com>
624 * tui/tui-regs.c (tui_display_register): Add comment about
626 * tui/tui-stack.c (tui_show_locator_content): Ditto.
628 2010-04-15 Stan Shebs <stan@codesourcery.com>
630 * frame.c: Include tracepoint.h.
631 (get_current_frame): Allow a trace frame to be an alternate source
633 * tracepoint.c (tfind_1): Don't try to get current stack frame if
636 2010-04-15 Pedro Alves <pedro@codesourcery.com>
638 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
640 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
642 2010-04-15 Doug Evans <dje@google.com>
644 * NEWS: Add entry for python program space support.
645 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
646 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
647 (py-progspace.o): New rule.
648 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
650 (find_pretty_printer_from_progspace): New function.
651 (find_pretty_printer_from_gdb): New function.
652 (find_pretty_printer): Rewrite.
653 * python/py-progspace.c: New file.
654 * python/python-internal.h (program_space): Add forward decl.
655 (pspace_to_pspace_object, pspy_get_printers): Declare.
656 (gdbpy_initialize_pspace): Declare.
657 * python/python.c: #include "progspace.h".
658 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
659 (_initialize_python): Call gdbpy_initialize_pspace.
660 (GdbMethods): Add current_progspace, progspaces.
662 Add -s option to source command.
663 * NEWS: Document new option.
664 * cli/cli-cmds.c (find_and_open_script): Add function comment.
665 Delete from_tty and cleanupp args. Split filep arg into file and
666 full_pathp. New arg search_path.
667 (source_script_from_stream): New function.
668 (source_script_with_search): New function.
669 (source_script): Rewrite.
670 (source_command): Parse "-s" option.
671 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
672 * python/python.c (source_python_script): Make file arg a const char *.
673 Don't call fclose, leave for caller.
674 * python/python.h (source_python_script): Update.
676 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
677 Pedro Alves <pedro@codesourcery.com>
679 Avoid rereading shared libraries that haven't changed.
681 * solib.c (free_so_symbols): New function, from ...
682 (free_so): ... here. Call it.
683 (solib_read_symbols): Don't warn here if symbols have already been
685 (solib_add): Warn here instead, if a pattern was specified.
686 (reload_shared_libraries_1): New.
687 (reload_shared_libraries): Rewrite to not fetch the library list.
689 2010-04-14 Doug Evans <dje@google.com>
691 * source.c (openp): Strip DOS drive letter if present before
692 concatenating string to search path.
694 2010-04-14 Pedro Alves <pedro@codesourcery.com>
696 * objfiles.h (gdb_bfd_close_or_warn): Declare.
697 * objfiles.c (gdb_bfd_close_or_warn): New.
698 * corelow.c: Include objfiles.h
699 (core_close): Use gdb_bfd_close_or_warn.
700 * elfread.c (build_id_verify): Ditto.
701 * exec.c (exec_close, exec_close_1): Ditto.
703 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
704 Pedro Alves <pedro@codesourcery.com>
706 Group errors for many missing shared libraries.
708 * solist.h (struct so_list): Remove from_tty.
709 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
710 (solib_map_sections): Take so_list argument. Return 0 if we
711 failed to open a BFD. Add target sections here.
712 (symbol_add_stub): Delete.
713 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
714 not from_tty copied from the so_list. Don't warn a second time
715 for a missing library.
716 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
717 add to the section table here. Print out a single warning for all
719 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
722 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
724 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
725 error/warning messages. Capitalize and use complete sentences.
726 (blpy_block_syms_iternext): Likewise.
727 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
728 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
729 (frame_info_to_frame_object, frapy_read_var)
730 (gdbpy_frame_stop_reason_string): Likewise.
731 * python/py-lazy-string.c (stpy_convert_to_value)
732 (gdbpy_create_lazy_string_object): Likewise.
733 * python/py-objfile.c (objfpy_set_printers): Likewise.
734 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
735 * python/python.c (parameter_to_python): Likewise.
736 * python/py-type.c (typy_range, typy_target): Likewise.
737 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
738 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
741 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
745 * python/py-prettyprint.c (pretty_print_one_value): Test for
747 (print_string_repr): Test for Py_None. Set flags accordingly.
748 Return value depending on return type.
749 (print_children): Take a value indicating whether data was printed
750 before this function was called. Alter output accordingly.
751 (apply_val_pretty_printer): Capture return value from
752 print_string_repr and pass to print_children.
754 2010-04-13 Mark Kettenis <kettenis@gnu.org>
757 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
758 register note sections.
759 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
761 (i386_linux_init_abi): Install list of supported register note
762 sections that matches the target description.
764 2010-04-13 Pedro Alves <pedro@codesourcery.com>
766 * remote.c (remote_get_noisy_reply): Don't error out on empty
768 (remote_start_remote): Update and merge tracepoints and trace
769 state variables as long as the target supports tracepoints.
770 (remote_trace_init): Fix prototype.
771 (remote_download_trace_state_variable): Validate reply.
772 (remote_trace_set_readonly_regions): Fix prototype.
773 (remote_trace_start): Fix prototype. Check for empty reply.
774 (remote_get_trace_status): Small cleanup.
775 (remote_trace_stop): Fix prototype. Check for empty reply.
776 (remote_trace_find): Check for empty reply.
777 (remote_save_trace_data): Validate reply.
778 (remote_set_disconnected_tracing): Check for empty reply, and
780 (remote_set_circular_trace_buffer): Ditto.
782 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
784 Suppress unused value warning during compilation.
785 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
787 * tui/tui-stack.c (tui_show_locator_content): Likewise.
789 2010-04-12 Stan Shebs <stan@codesourcery.com>
791 * tracepoint.c (tfile_xfer_partial): Check read result.
793 2010-04-12 Mike Frysinger <vapier@gentoo.org>
795 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
796 * remote-sim.c (gdbsim_files_info): Likewise.
798 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
800 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
801 * arm-linux-nat.c (arm_linux_vfp_register_count): New
803 (fetch_vfp_registers): New function to fetch VFP registers.
804 (store_vfp_registers): New function to store VFP registers.
805 (arm_linux_fetch_inferior_registers): Add support for VFP
807 (arm_linux_store_inferior_registers): Likewise.
808 (arm_linux_read_description): Likewise.
809 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
812 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
814 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
816 (amd64_collect_xstateregset): Likewise.
818 2010-04-09 Stan Shebs <stan@codesourcery.com>
820 * tracepoint.c (trace_status_mi): Report frames created.
822 * tracepoint.c (trace_dump_command): Include default-collect
825 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
827 * symtab.c (find_function_start_sal): Never return SAL pointing
828 before function start address, even if line info is missing.
830 2010-04-09 Pedro Alves <pedro@codesourcery.com>
832 * NEWS: Mention tracepoints support.
834 2010-04-09 Pedro Alves <pedro@codesourcery.com>
836 * tracepoint.c (trace_status_mi): Report disconnected tracing and
837 circular trace buffer statuses.
839 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
841 * config/djgpp/fnchange.lst: Fix typo in translations for
842 symbol-without-target_section.exp and symbol-without-target_section.c.
844 2010-04-09 Pedro Alves <pedro@codesourcery.com>
846 * breakpoint.c (condition_command): Pass condition expression to
847 set_breakpoint_condition stripped from breakpoint number.
849 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
850 Thiago Jung Bauermann <bauerman@br.ibm.com>
851 Tom Tromey <tromey@redhat.com>
853 * breakpoint.c (condition_command): Simplify. Move condition
855 (set_breakpoint_condition): ... here. New function.
856 * breakpoint.h (set_breakpoint_condition): Declare.
857 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
858 (SUBDIR_PYTHON_SRCS): Likewise.
859 (py-breakpoint.o): New rule.
860 * python/py-breakpoint.c: New file.
861 * python/python-internal.h (gdbpy_breakpoints)
862 (gdbpy_initialize_breakpoints): Declare.
863 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
865 2010-04-09 Pedro Alves <pedro@codesourcery.com>
867 * regformats/regdat.sh: Include server.h. Don't include
870 2010-04-08 Stan Shebs <stan@codesourcery.com>
871 Pedro Alves <pedro@codesourcery.com>
873 * tracepoint.h (struct trace_status): New fields disconnected_tracing
875 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
876 * tracepoint.c (trace_status_command): Display target's status for
877 disconnected tracing and circular buffer.
878 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
879 query for non-disconnected-tracing case, remove the stop_tracing
881 (tfile_open): Clear disconnected and circular buffer status.
882 (trace_save): Save disconnected and circular buffer status.
883 (parse_trace_status): Parse disconnected and circular buffer status,
884 also recognize disconnected as a stop reason.
885 * remote.c (remote_set_disconnected_tracing): Only set
886 QTDisconnected if the remote end supports disconnected tracing.
887 Warn otherwise, if trying to enable disconnected tracing.
888 * infcmd.c (detach_command): Update disconnect_tracing call.
889 * cli/cli-cmds.c (quit_command): Ditto.
891 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
893 * i387-tdep.c (i387_collect_xsave): Replace abort with
896 2010-04-08 Stan Shebs <stan@codesourcery.com>
898 * breakpoint.c (default_collect_info): New function.
899 (breakpoints_info): Call it.
900 (maintenance_info_breakpoints): Ditto.
901 (tracepoints_info): Ditto.
903 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
905 * i387-tdep.c (i387_collect_xsave): Re-indent.
907 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
909 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
910 if HAVE_PTRACE_GETFPXREGS is defined.
911 (i386_linux_read_description): Set have_ptrace_getfpxregs and
912 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
914 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
915 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
916 if .reg-xfp section doesn't exist.
917 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
919 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
921 * i386-tdep.c: Include "features/i386/i386-mmx.c".
922 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
923 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
924 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
925 (i386_gdbarch_init): Update comments.
926 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
928 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
930 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
932 * features/Makefile (i386/i386-mmx-expedite): New.
933 (i386/i386-mmx-linux-expedite): Likewise.
934 ($(outdir)/i386/i386-mmx.dat): Likewise.
935 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
937 * features/i386/i386-mmx-linux.c: New.
938 * features/i386/i386-mmx-linux.xml: Likewise.
939 * features/i386/i386-mmx.c: Likewise.
940 * features/i386/i386-mmx.xml: Likewise.
941 * regformats/i386/i386-mmx-linux.dat: Likewise.
942 * regformats/i386/i386-mmx.dat: Likewise.
944 * features/Makefile (WHICH): Add i386/i386-mmx and
947 2010-04-08 Doug Evans <dje@google.com>
949 * source.c (openp): Skip $cdir in PATH.
951 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
954 * python/py-lazy-string.c (stpy_convert_to_value): Check for
956 (gdbpy_create_lazy_string_object): Allow strings with a NULL
957 address and a zero length.
959 2010-04-08 Hui Zhu <teawater@gmail.com>
961 * i386-tdep.c (i386_process_record): Add support for insn
964 2010-04-07 Doug Evans <dje@google.com>
966 * python/python.c (source_python_script): Use ensure_python_env
967 to prepare environment for script.
969 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
971 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
972 <sys/uio.h> and "i386-xstate.h".
973 (PTRACE_GETREGSET): New.
974 (PTRACE_SETREGSET): Likewise.
975 (have_ptrace_getregset): Likewise.
976 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
978 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
980 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
981 (amd64_linux_store_inferior_registers): Likewise.
982 (amd64_linux_read_description): Check and enable AVX target
985 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
986 and "features/i386/amd64-avx-linux.c".
987 (amd64_linux_regset_sections): New.
988 (amd64_linux_core_read_description): Check and enable AVX
990 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
991 set_gdbarch_core_regset_sections.
992 (_initialize_amd64_linux_tdep): Call
993 initialize_tdesc_amd64_avx_linux.
995 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
996 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
997 (tdesc_amd64_avx_linux): New.
998 (amd64_linux_update_xstateregset): Likewise.
1000 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
1001 (amd64_ymm_names): New.
1002 (amd64_ymmh_names): Likewise.
1003 (amd64_register_name): Likewise.
1004 (amd64_supply_xstateregset): Likewise.
1005 (amd64_collect_xstateregset): Likewise.
1006 (amd64_supply_xsave): Likewise.
1007 (amd64_collect_xsave): Likewise.
1008 (AMD64_NUM_REGS): Removed.
1009 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
1010 %xmmN if AVX is available.
1011 (amd64_pseudo_register_name): Support pseudo YMM registers.
1012 (amd64_regset_from_core_section): Support .reg-xstate section.
1013 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
1014 and ymm0h_regnum. Call set_gdbarch_register_name.
1015 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
1017 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
1018 AMD64_YMM15H_REGNUM.
1019 (AMD64_NUM_REGS): New.
1020 (amd64_supply_xsave): Likewise.
1021 (amd64_collect_xsave): Likewise.
1022 (amd64_register_name): Removed.
1023 (amd64_register_type): Likewise.
1025 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
1027 * i387-tdep.c: Include "i386-xstate.h".
1028 (XSAVE_XSTATE_BV_ADDR): New.
1029 (xsave_avxh_offset): Likewise.
1030 (XSAVE_AVXH_ADDR): Likewise.
1031 (i387_supply_xsave): Likewise.
1032 (i387_collect_xsave): Likewise.
1034 * i387-tdep.h (I387_NUM_YMM_REGS): New.
1035 (I387_YMM0H_REGNUM): Likewise.
1036 (I387_YMMENDH_REGNUM): Likewise.
1037 (i387_supply_xsave): Likewise.
1038 (i387_collect_xsave): Likewise.
1040 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
1042 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
1043 <sys/uio.h> and "i386-xstate.h".
1044 (PTRACE_GETREGSET): New.
1045 (PTRACE_SETREGSET): Likewise.
1046 (fetch_xstateregs): Likewise.
1047 (store_xstateregs): Likewise.
1048 (GETXSTATEREGS_SUPPLIES): Likewise.
1049 (regmap): Include 8 upper YMM registers.
1050 (i386_linux_fetch_inferior_registers): Support XSAVE extended
1052 (i386_linux_store_inferior_registers): Likewise.
1053 (i386_linux_read_description): Check and enable AVX target
1056 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
1057 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
1058 (i386_linux_regset_sections): Add ".reg-xstate".
1059 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
1060 (i386_linux_core_read_xcr0): New.
1061 (i386_linux_core_read_description): Check and enable AVX target
1063 (i386_linux_init_abi): Set xsave_xcr0_offset.
1064 (_initialize_i386_linux_tdep): Call
1065 initialize_tdesc_i386_avx_linux.
1067 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
1068 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
1069 (i386_linux_core_read_xcr0): New.
1070 (tdesc_i386_avx_linux): Likewise.
1071 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
1073 * i386-tdep.c: Include "i386-xstate.h" and
1074 "features/i386/i386-avx.c".
1075 (i386_ymm_names): New.
1076 (i386_ymmh_names): Likewise.
1077 (i386_ymmh_regnum_p): Likewise.
1078 (i386_ymm_regnum_p): Likewise.
1079 (i386_xmm_regnum_p): Likewise.
1080 (i386_register_name): Likewise.
1081 (i386_ymm_type): Likewise.
1082 (i386_supply_xstateregset): Likewise.
1083 (i386_collect_xstateregset): Likewise.
1084 (i386_sse_regnum_p): Removed.
1085 (i386_pseudo_register_name): Support pseudo YMM registers.
1086 (i386_pseudo_register_type): Likewise.
1087 (i386_pseudo_register_read): Likewise.
1088 (i386_pseudo_register_write): Likewise.
1089 (i386_dbx_reg_to_regnum): Return %ymmN register number for
1090 %xmmN if AVX is available.
1091 (i386_regset_from_core_section): Support .reg-xstate section.
1092 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
1093 (i386_process_record): Replace i386_sse_regnum_p with
1095 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
1096 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
1097 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
1098 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
1099 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
1100 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
1102 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
1104 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
1105 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
1107 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
1108 (I386_AVX_NUM_REGS): New.
1109 (i386_xmm_regnum_p): Likewise.
1110 (i386_ymm_regnum_p): Likewise.
1111 (i386_ymmh_regnum_p): Likewise.
1113 * common/i386-xstate.h: New.
1115 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
1117 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
1119 * features/Makefile (WHICH): Add i386/i386-avx,
1120 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
1121 (i386/i386-avx-expedite): New.
1122 (i386/i386-avx-linux-expedite): Likewise.
1123 (i386/x86-64-avx-expedite):Likewise.
1124 (i386/x86-64-avx-linux-expedite): Likewise.
1125 ($(outdir)/i386/i386-avx.dat): New dependency.
1126 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
1127 ($(outdir)/i386/x86-avx-64.dat): Likewise.
1128 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
1130 * features/i386/32bit-avx.xml: New.
1131 * features/i386/64bit-avx.xml: Likewise.
1132 * features/i386/i386-avx-linux.c: Likewise.
1133 * features/i386/i386-avx-linux.xml: Likewise.
1134 * features/i386/i386-avx.c: Likewise.
1135 * features/i386/i386-avx.xml: Likewise.
1136 * features/i386/x86-64-avx-linux.c: Likewise.
1137 * features/i386/x86-64-avx-linux.xml: Likewise.
1138 * features/i386/x86-64-avx.c: Likewise.
1139 * features/i386/x86-64-avx.xml: Likewise.
1140 * regformats/i386/i386-avx-linux.dat: Likewise.
1141 * regformats/i386/i386-avx.dat: Likewise.
1142 * regformats/i386/x86-64-avx-linux.dat: Likewise.
1143 * regformats/i386/x86-64-avx.dat: Likewise.
1145 2010-04-07 Doug Evans <dje@google.com>
1147 * top.c (source_file_name): Make const char *.
1148 * top.h (source_file_name): Update.
1149 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
1151 (script_from_file): Change `file' arg to const char *.
1152 * cli/cli-script.h (script_from_file): Update.
1154 2010-04-06 Doug Evans <dje@google.com>
1156 * cli/cli-cmds.c (source_command): Run cleanups.
1158 2010-04-06 Stan Shebs <stan@codesourcery.com>
1160 * defs.h (char_ptr): Move typedef here from...
1161 * ada-lang.c (char_ptr): Remove.
1162 * charset.c (char_ptr): Remove.
1163 * tracepoint.h (struct uploaded_string): Remove.
1164 (struct uploaded_tp): Use vectors for string arrays.
1165 * tracepoint.c (trace_save): Use vectors of actions.
1166 (parse_tracepoint_definition): Ditto.
1167 (get_uploaded_tp): Clear vectors.
1168 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
1169 (next_cmd): Change to an int.
1170 (read_next_cmd): Use vector of command strings.
1172 2010-04-06 Doug Evans <dje@google.com>
1174 * top.h (source_script, cd_command): Delete.
1175 * main.c: #include "cli/cli-cmds.h"
1177 2010-04-06 Kevin Buettner <kevinb@redhat.com>
1179 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
1180 type in bytes, not bits.
1182 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
1184 * stabsread.c (define_symbol): Add support for char
1185 and string constants.
1187 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
1189 Remove remaining "%ll" uses.
1190 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
1192 * rs6000-nat.c (rs6000_ptrace64): Idem.
1193 * solib-pa64.c (pa64_current_sos): Idem.
1194 * solib-spu.c (spu_current_sos): Idem.
1195 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
1197 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
1199 * sh64-tdep.c (sh64_show_media_regs): Idem.
1201 2010-04-05 Stan Shebs <stan@codesourcery.com>
1203 * tracepoint.c: Include gdbcore.h.
1204 (tfile_xfer_partial): Return partial results, also try reading
1206 (tfile_has_all_memory): New function.
1207 (init_tfile_ops): Use it.
1209 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
1212 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
1213 the changes in data-directory.
1214 (init_sysinfo): Reload the syscall XML file if the data-directory
1217 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1220 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
1222 2010-04-04 Stan Shebs <stan@codesourcery.com>
1223 Nathan Sidwell <nathan@codesourcery.com>
1225 * breakpoint.c (breakpoint_1): Add filter argument, return number of
1226 breakpoints printed.
1227 (is_hardware_watchpoint): Make argument const.
1228 (is_watchpoint): Ditto.
1229 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
1231 (breakpoints_info): Pass NULL to breakpoint_1.
1232 (maintenance_info_breakpoints): Ditto.
1233 (watchpoints_info): New function.
1234 (tracepoints_info): Use breakpoint_1 filter.
1235 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
1236 (_initialize_breakpoint): Make "info watchpoints" its own command.
1237 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
1238 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
1240 2010-04-04 Stan Shebs <stan@codesourcery.com>
1242 * tracepoint.c (tfile_fetch_registers): Add fallback case.
1244 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1246 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
1247 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
1249 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1251 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
1252 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
1254 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1256 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
1259 2010-04-02 Hui Zhu <teawater@gmail.com>
1261 * i386-tdep.c (OT_DQUAD): New enum.
1262 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
1263 SSE3, SSSE3 and SSE4.
1265 2010-04-02 Hui Zhu <teawater@gmail.com>
1267 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
1270 2010-04-02 Pedro Alves <pedro@codesourcery.com>
1272 * tracepoint.c (trace_dump_actions): New, factored out from
1273 trace_dump_command, and adjusted to recurse into while-stepping's
1275 (trace_dump_command): Use it.
1277 2010-04-02 Pedro Alves <pedro@codesourcery.com>
1279 * breakpoint.h (struct counted_command_line): Moved definition to
1280 breakpoint.c, and forward declare.
1281 (breakpoint_commands): Declare.
1282 * breakpoint.c (struct counted_command_line): Moved here.
1283 (breakpoint_commands): New.
1284 * tracepoint.c (encode_actions): Use breakpoint_commands.
1285 * remote.c (remote_download_tracepoint): Ditto.
1287 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
1289 * remote.c (remote_parse_stop_reply): Use hex_string instead
1290 of phex_nz for error.
1292 2010-04-01 Stan Shebs <stan@codesourcery.com>
1293 Nathan Sidwell <nathan@codesourcery.com>
1295 * tracepoint.h (enum actionline_type): Remove.
1296 (validate_actionline): Change return to void.
1297 * tracepoint.c (report_agent_reqs_errors): New function.
1298 (validate_actionline): Call it, change return to void, report errors
1300 (collect_symbol): Call report_agent_reqs_errors.
1301 (encode_actions_1): Ditto.
1302 (encode_actions): Don't expect a result from validate_actionline.
1304 2010-04-01 Stan Shebs <stan@codesourcery.com>
1306 * tracepoint.c (trace_start_command): Confirm if trace is running.
1307 (trace_stop_command): Error if trace not running.
1309 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
1311 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
1312 (AMD64_NUM_LOWER_BYTE_REGS): New.
1313 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
1314 (amd64_pseudo_register_write): Likewise.
1315 (amd64_init_abi): Set num_byte_regs to 20.
1317 2010-04-01 Pedro Alves <pedro@codesourcery.com>
1319 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
1320 (prev_breakpoint_count): New.
1321 (set_breakpoint_count): Adjust.
1322 (rbreak_start_breakpoint_count): New.
1323 (start_rbreak_breakpoints): Adjust.
1324 (end_rbreak_breakpoints): Adjust.
1325 (struct commands_info) <arg>: New field.
1326 (do_map_commands_command): Tweak output to include breakpoint spec
1328 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
1329 ARG was empty on entry. Set INFO's arg.
1330 (create_breakpoint): Adjust.
1332 * NEWS: Clarify `commands' changes.
1334 2010-04-01 Pedro Alves <pedro@codesourcery.com>
1336 * tracepoint.c: Include stack.h.
1337 (struct add_local_symbols_data): New.
1338 (do_collect_symbol): New.
1339 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
1340 iterate_over_block_local_vars.
1341 * stack.c (print_block_frame_locals): Rewrite as ...
1342 (iterate_over_block_locals): ... this. Take a callback function
1343 pointer and generic data pointer, and call that instead of
1344 print_variable_and_value.
1345 (struct print_variable_and_value_data): New.
1346 (do_print_variable_and_value): New.
1347 (iterate_over_block_local_vars): New, abstracted out from
1348 print_frame_local_vars.
1349 (print_frame_local_vars): Rewrite using
1350 iterate_over_block_local_vars.
1351 (iterate_over_block_arg_vars): New, abstracted out from
1352 print_frame_arg_vars.
1353 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
1354 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
1355 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
1357 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
1359 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
1360 instructions. Use the PC+4 if the base of the TBB or TBH is the
1363 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1365 Fix crash on reading wrong function declaration DWARF.
1366 * dwarf2read.c (read_subroutine_type): New variable void_type.
1367 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
1368 more close to their use.
1370 2010-03-31 Stan Shebs <stan@codesourcery.com>
1372 * breakpoint.c (tracepoint_save_command): Include variables,
1373 conditionals, tracepoint types, and default-collect.
1374 * tracepoint.c (save_trace_state_variables): New function.
1375 * tracepoint.h (save_trace_state_variables): Declare it.
1377 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
1379 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
1381 2010-03-30 Keith Seitz <keiths@redhat.com>
1383 * c-typeprint.c (c_type_print_args): Don't print "void"
1384 for java, regardless of whether it is TYPE_PROTOTYPED.
1385 Use the passed-in language instead of current_language.
1386 (c_type_print_varspec_suffix): Use current_language instead
1387 of assuming language_c.
1388 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
1389 any return type specifier from the physname.
1391 2010-03-30 Pedro Alves <pedro@codesourcery.com>
1393 * tui/tui-interp.c (tui_is_toplevel): New.
1395 (tui_allowed_p): New.
1396 * tui/tui.c (tui_enable): Check if the TUI is allowed before
1398 * tui/tui.h (tui_allowed_p): Declare.
1400 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
1402 * serial.h: Include winsock2.h before windows.h.
1404 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
1406 * NEWS: Mention xmlRegisters= in qSupported packet.
1408 * i386-tdep.c: Include "remote.h".
1409 (_initialize_i386_tdep): Call register_remote_support_xml.
1411 * remote.c (remote_support_xml): New.
1412 (register_remote_support_xml): Likewise.
1413 (remote_query_supported_append): Likewise.
1414 (remote_query_supported): Support remote_support_xml.
1416 * remote.h (register_remote_support_xml): New.
1418 2010-03-29 Stan Shebs <stan@codesourcery.com>
1420 * tracepoint.c (trace_find_line_command): Remove dead code.
1422 * tracepoint.h (struct uploaded_string): New struct.
1423 (struct uploaded_tp): New fields for source strings.
1424 * breakpoint.c (this_utp, next_cmd): New globals.
1425 (read_uploaded_action): New function.
1426 (create_tracepoint_from_upload): Fill in more parts
1428 * tracepoint.c (encode_source_string): New function.
1429 (trace_save): Write out source strings, fix error checks.
1430 (parse_tracepoint_definition): Add source string parsing.
1431 * remote.c (PACKET_TracepointSource): New packet type.
1432 (remote_download_command_source): New function.
1433 (remote_download_tracepoint): Download source pieces also.
1434 (_initialize_remote): Add packet config command.
1436 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
1439 * tracepoint.c (start_tracing): Check tracepoints before sending
1440 commands to target, don't start if all tracepoints disabled.
1442 2010-03-28 Pedro Alves <pedro@codesourcery.com>
1444 * cli/cli-script.c (process_next_line): Handle 'stepping'.
1446 2010-03-26 Stan Shebs <stan@codesourcery.com>
1448 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
1450 2010-03-26 Tom Tromey <tromey@redhat.com>
1452 * breakpoint.c (commands_command_1): Duplicate 'arg'.
1454 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1456 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
1457 (skip_prologue_sal): Remove local definition.
1458 (resolve_sal_pc): Remove now unnecessary code.
1459 * linespec.c (minsym_found): Call skip_prologue_sal.
1460 * symtab.c (find_function_start_pc): Remove.
1461 (find_function_start_sal): Extract prologue skipping into ...
1462 (skip_prologue_sal): ... this new function. Handle code both
1463 with and without debug info. Respect SAL's explicit_pc and
1464 explicit_line flags. Inline old find_function_start_pc.
1465 * symtab.h (find_function_start_pc): Remove.
1466 (skip_prologue_sal): Add prototype.
1468 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1470 * dwarf2read.c (read_func_scope): Also scan specification DIEs
1471 for DW_TAG_imported_module children.
1473 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1475 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
1476 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
1477 * completer.c (add_struct_fields): Fix inverted logic.
1479 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1481 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
1483 2010-03-26 Pedro Alves <pedro@codesourcery.com>
1485 * tracepoint.c (current_trace_status): Don't make sure error_desc
1487 (parse_trace_status): Release a previous error_desc string, and
1488 set it to NULL by default. If stop reason is tracepoint_error,
1489 make sure error_desc is not left NULL.
1491 2010-03-26 Pedro Alves <pedro@codesourcery.com>
1493 * tracepoint.c (trace_save): Remove X from tracepoint error
1496 2010-03-26 Pedro Alves <pedro@codesourcery.com>
1498 * tracepoint.c (parse_trace_status): Don't allow plain strings in
1499 the terror description. Don't expect an X prefix.
1501 2010-03-25 Stan Shebs <stan@codesourcery.com>
1503 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
1504 (struct trace_status): New field error_desc.
1505 * tracepoint.c (stop_reason_names): Add terror.
1506 (current_trace_status): Ensure non-NULL error description.
1507 (trace_status_command): Add error report.
1508 (trace_status_mi): Ditto.
1509 (trace_save): Add special case for error description.
1510 (parse_trace_status): Add case for errors.
1512 2010-03-25 Keith Seitz <keiths@redhat.com>
1514 * dwarf2read.c (read_subroutine_type): If the compilation unit
1515 language is Java, mark any formal parameter named "this" as
1516 artificial (GCC/43521).
1517 (dwarf2_name): Add special handling for Java constructors.
1519 2010-03-25 Tom Tromey <tromey@redhat.com>
1521 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
1522 * infrun.c (handle_inferior_event): Change initialization of
1524 (handle_inferior_event): Change assignment to stop_stack_dummy.
1525 (normal_stop): Update use of stop_stack_dummy.
1526 (struct inferior_status) <stop_stack_dummy>: Change type.
1527 * inferior.h (stop_stack_dummy): Update.
1528 * infcmd.c (stop_stack_dummy): Change type.
1529 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
1531 (call_function_by_hand): Call set_std_terminate_breakpoint.
1532 Rewrite std::terminate handling.
1533 * breakpoint.h (enum bptype) <bp_std_terminate,
1534 bp_std_terminate_master>: New.
1535 (enum stop_stack_kind): New.
1536 (struct bpstat_what) <call_dummy>: Change type.
1537 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
1539 * breakpoint.c (create_std_terminate_master_breakpoint): New
1541 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
1542 Call create_std_terminate_master_breakpoint.
1543 (print_it_typical): Handle new breakpoint kinds.
1544 (bpstat_stop_status): Handle bp_std_terminate_master.
1545 (bpstat_what): Correctly set call_dummy field. Handle
1546 bp_std_terminate_master and bp_std_terminate.
1547 (print_one_breakpoint_location): Update.
1548 (allocate_bp_location): Update.
1549 (set_std_terminate_breakpoint): New function.
1550 (delete_std_terminate_breakpoint): Likewise.
1551 (create_thread_event_breakpoint): Update.
1552 (delete_command): Update.
1553 (breakpoint_re_set_one): Update.
1554 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
1556 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1558 * symfile.c (build_section_addr_info_from_bfd): New.
1559 (build_section_addr_info_from_objfile): Base it on
1560 build_section_addr_info_from_bfd.
1561 (addrs_section_compar, addrs_section_sort): New.
1562 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
1563 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
1564 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
1566 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
1568 * elfread.c (find_separate_debug_file_by_buildid):
1569 Remove unused local variable.
1571 2010-03-24 Tom Tromey <tromey@redhat.com>
1573 PR breakpoints/9352:
1574 * NEWS: Mention changes to `commands' and `rbreak'.
1575 * symtab.c (do_end_rbreak_breakpoints): New function.
1576 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
1577 end_rbreak_breakpoints.
1578 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
1579 (set_breakpoint_count): Likewise. Clear last_was_multi.
1580 (multi_start, multi_end, last_was_multi): New globals.
1581 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
1583 (struct commands_info): New
1584 (do_map_commands_command): New function.
1585 (commands_command_1): New function.
1586 (commands_command): Use it.
1587 (commands_from_control_command): Likewise.
1588 (do_delete_breakpoint): New function.
1589 (delete_command): Use it.
1590 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
1591 (do_map_disable_breakpoint): New function.
1592 (disable_command): Use it.
1593 (do_map_enable_breakpoint): New function.
1594 (enable_command): Use it.
1595 (enable_once_breakpoint): Add argument.
1596 (enable_once_command): Update.
1597 (enable_delete_breakpoint): Add argument.
1598 (enable_delete_command): Update.
1599 (break_command_really): Set last_was_multi when needed.
1600 (check_tracepoint_command): Fix formatting.
1601 (validate_commands_for_breakpoint): New function.
1602 (breakpoint_set_commands): Use it.
1603 (tracepoint_save_command): Update.
1604 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
1607 2010-03-24 Tom Tromey <tromey@redhat.com>
1609 * breakpoint.h (struct counted_command_line): New struct.
1610 (struct breakpoint) <commands>: Change type.
1611 (struct bpstats) <commands>: Change type.
1612 <commands_left>: New field.
1613 * breakpoint.c (alloc_counted_command_line): New function.
1614 (incref_counted_command_line): Likewise.
1615 (decref_counted_command_line): Likewise.
1616 (do_cleanup_counted_command_line): Likewise.
1617 (make_cleanup_decref_counted_command_line): Likewise.
1618 (breakpoint_set_commands): Use decref_counted_command_line and
1619 alloc_counted_command_line.
1620 (commands_command): Don't error if breakpoint commands are
1622 (commands_from_control_command): Likewise.
1623 (bpstat_free): Update.
1624 (bpstat_copy): Likewise.
1625 (bpstat_clear_actions): Likewise.
1626 (bpstat_do_actions_1): Likewise.
1627 (bpstat_stop_status): Likewise.
1628 (print_one_breakpoint_location): Likewise.
1629 (delete_breakpoint): Likewise.
1630 (bpstat_alloc): Initialize new field.
1631 (tracepoint_save_command): Update.
1632 * tracepoint.c (encode_actions): Update.
1633 (trace_dump_command): Update.
1635 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1637 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
1638 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
1639 (read_structure_type): For RealView, set TYPE_STUB on structures with
1640 no byte size and no children.
1641 (read_subroutine_type): Mark functions as prototyped by default.
1642 * symtab.c (producer_is_realview): New function.
1643 * symtab.h (expand_line_sal): Fix declaration formatting.
1644 (producer_is_realview): Declare.
1646 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1648 * arm-tdep.c (skip_prologue_function): New function.
1649 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
1650 (thumb_analyze_prologue): Document return value. Recognize more
1651 Thumb instructions, skippable calls, and some Thumb-2 instructions.
1653 (arm_skip_prologue): Remove call dummy check. Check the prologue
1654 for non-GNU compilers.
1655 (arm_instruction_changes_pc): New function.
1656 (arm_analyze_prologue): New function, broken out from
1657 arm_scan_prologue. Recognize more ARM instructions and skippable
1658 calls. Update comments. Handle NULL cache. Return the address
1659 of the first unrecognized instruction. Do not skip past other
1660 instructions which change control flow. Add debug output.
1661 (arm_scan_prologue): Use arm_analyze_prologue.
1662 (ARM_PC_32): Delete.
1663 (shifted_reg_val): Simplify ARM_PC_32 check.
1665 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1667 * tracepoint.c (tvariables_info_1): Actually compute
1668 the number of rows in the result.
1670 2010-03-24 Pedro Alves <pedro@codesourcery.com>
1672 * remote.c (crc32): Constify `buf' parameter.
1673 (remote_verify_memory): New, abstracted out from...
1674 (compare_sections_command): ... this. Remove hardcoded target
1676 (init_remote_ops): Install remote_verify_memory.
1677 * target.c (target_verify_memory): New.
1678 * target.h (struct target_ops) <to_verify_memory>: New field.
1679 (target_verify_memory): Declare.
1681 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1683 Implement -trace-save.
1685 * mi-cmds.h (mi_cmds_trace_save): Declare.
1686 * mi-cmds.c (mi_cmds): Register -trace-save.
1687 * mi/mi-main.c (mi_cmd_trace_save): New.
1688 * remote.c (remote_save_trace_data): Take const parameter.
1689 * target.h (struct target_ops::to_save_trace_data): Take
1691 * target.c (update_current_target): Adjust to the above.
1692 * tracepoint.c (trave_save): New, extracted from
1693 (trace_save_command): ...this.
1694 (tfile_trace_find): Remove message that is unnecessary now
1695 that 'tfind' reports found frame.
1696 * tracepoint.h (trace_save): Declare.
1698 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1700 Implement -trace-find.
1702 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
1703 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
1704 * mi/mi-main.c (mi_cmd_trace_find): New.
1705 * target.h (struct target_ops): Document to_trace_find.
1706 * tracepoint.h (tfind_1): Declare.
1707 * tracepoint.c (finish_tfind_command): Rename to...
1709 * remote.c (remote_trace_find): Return -1 if target say
1710 there's no frame. Improve error diagnostics.
1712 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1714 -trace-define-variable and -trace-list-variables.
1716 * tracepoint.c (create_trace_state_variable): Make
1717 private copy of name, as opposed to assuming the
1718 pointer lives forever.
1719 (tvariables_info_1): New.
1720 (tvariables_info): Use the above.
1721 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
1723 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
1724 and -trace-list-variables.
1725 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
1726 (mi_cmd_trace_list_variables): New.
1727 * mi/mi-main.c (mi_cmd_trace_define_variable)
1728 (mi_cmd_trace_list_variables): New.
1730 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1732 Implement -break-passcount.
1734 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
1735 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
1736 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
1738 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1740 -trace-start/-trace-end/-trace-status.
1742 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
1744 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
1745 (mi_cmd_trace_stop): Declare.
1746 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
1747 (mi_cmd_trace_stop): New.
1748 * tracepoint.c (start_tracing): New, extracted from...
1749 (trace_start_command): ...this.
1750 (trace_status_mi): New.
1751 * tracepoint.h (struct trace_status): Document
1752 stopping_tracepoint.
1753 (start_tracing, stop_tracing, trace_status_mi): Declare.
1755 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1757 Implement creating tracepoints with -break-insert.
1759 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
1760 to mean that tracepoint should be created.
1762 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1764 * breakpoint.c (check_no_tracepoint_commands): Use
1765 current spelling of 'teval'.
1767 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1769 Unify actions and commands
1771 * defs.h (read_command_lines, read_command_lines_1): New
1772 parameters validator and closure.
1773 * tracepoint.h (struct action_line): Remove.
1774 * breakpoint.h (struct breakpoint): Remove the 'actions'
1776 * defs.h (enum command_control_type): New value
1777 while_stepping_control.
1778 (struct command_line): Add comments.
1779 * breakpoint.c (breakoint_is_tracepoint): New.
1780 (breakpoint_set_commands): For tracepoints,
1781 verify the commands are permissible.
1782 (check_tracepoint_commands): New.
1783 (commands_command): Require that each new line is validated using
1784 check_tracepoint_command, if we set commands for a tracepoint.
1785 (create_tracepoint_from_upload): Likewise.
1786 (print_one_breakpoint_location): Remove the code to print
1787 actions specifically.
1788 (tracepoint_save_command): Relay to print_command_lines.
1789 * cli/cli-script.c (process_next_line): New parameters validator
1790 and closure. Handle 'while-stepping'. Call validator if not null.
1791 (read_command_lines, read_command_lines1): Likewise.
1792 (recurse_read_control_structure): New parameters validator and
1793 closure. Handle while_stepping_control.
1794 (print_command_lines): Handle while-stepping.
1795 (get_command_line, define_command, document_command): Adjust.
1796 * remote.c (remote_download_tracepoint): Adjust.
1797 * tracepoint.c (make_cleanup_free_actions, read_actions)
1798 (free_actions, do_free_actions_cleanup): Remove.
1799 (trace_actions_command): Use read_command_lines.
1800 (validate_actionline): Use error in one place.
1801 (encode_actions_1): New, extracted from...
1802 (encode_actions): ...this. Also use cleanups for exception
1804 (trace_dump_command): Adjust.
1805 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
1808 2010-03-23 Mike Frysinger <vapier@gentoo.org>
1810 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
1812 2010-03-22 Stan Shebs <stan@codesourcery.com>
1814 * value.c (value_static_field): Be lazy about the field's value.
1816 2010-03-22 Reid Kleckner <reid@kleckner.net>
1819 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
1821 (disable_breakpoints_in_shlibs): Likewise.
1823 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
1825 * dwarf2read.c (partial_die_parent_scope): Work around buggy
1826 GCC 4.1 debug info generation (GCC PR c++/28460).
1827 (determine_prefix): Likewise.
1829 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
1831 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
1833 * tui/tui-layout.c (extract_display_start_addr): Likewise.
1835 2010-03-19 Stan Shebs <stan@codesourcery.com>
1837 * ax-gdb.c (gen_fetch): Handle bool.
1838 (gen_usual_unary): Ditto.
1840 (gen_equal): New function.
1841 (gen_less): New function.
1842 (gen_expr_binop_rest): Call them, also return integer type from
1846 2010-03-19 Tom Tromey <tromey@redhat.com>
1848 * jv-lang.c (jv_dynamics_objfile_data_key)
1849 (jv_type_objfile_data_key): New globals.
1850 (class_symtab): Move earlier.
1851 (jv_per_objfile_free): New function.
1852 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
1854 Remove ancient #if 1.
1855 (add_class_symbol): Remove redundant declaration.
1856 (java_lookup_class): Use alloc_type, not alloc_type_arch.
1857 (java_link_class_type): Mark as static. Update.
1858 (jv_clear_object_type): New function.
1859 (set_java_object_type): Likewise.
1860 (get_java_object_type): Use set_java_object_type.
1861 (is_object_type): Likewise.
1862 (_initialize_java_language): Register new objfile keys.
1863 (get_java_class_symtab): Add 'gdbarch' parameter.
1864 (add_class_symtab_symbol): Update.
1865 (type_from_class): Update.
1867 2010-03-19 Stan Shebs <stan@codesourcery.com>
1869 * ax-general.c (ax_const_l): Fix a sizing bug.
1871 2010-03-18 Joel Brobecker <brobecker@adacore.com>
1875 2010-03-18 Stan Shebs <stan@codesourcery.com>
1876 Pedro Alves <pedro@codesourcery.com>
1878 * target.h (struct target_ops): New method
1879 to_set_circular_trace_buffer.
1880 (target_set_circular_trace_buffer): New macro.
1881 * target.c (update_current_target): Add
1882 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
1884 * remote.c (remote_set_circular_trace_buffer): New function.
1885 (init_remote_ops): Add it to vector.
1886 * tracepoint.h (struct trace_status): New field traceframes_created,
1887 change buffer_size and buffer_free to int.
1888 * tracepoint.c (circular_trace_buffer): New global.
1889 (start_tracing): Send values of disconnected tracing and circular
1890 trace buffer settings.
1891 (set_circular_trace_buffer): New function.
1892 (parse_trace_state): Handle total space and frames created.
1893 (trace_status_command): Display total space and total frames
1895 (trace_save): Write out new status values.
1896 (parse_trace_status): Set traceframe_count, traceframes_created,
1897 buffer_free and buffer_size to -1 by default.
1898 (_initialize_tracepoint): New setshow for circular-trace-buffer.
1899 * NEWS: Mention the circular trace buffer option.
1901 2010-03-18 Tom Tromey <tromey@redhat.com>
1903 * infcmd.c (finish_command_continuation): Wrap print_return_value
1906 2010-03-18 Joel Brobecker <brobecker@adacore.com>
1908 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
1909 DIE has a name before creating the associated partial symbol.
1910 (read_func_scope): Emit a complaint if the subprogram does not
1911 have a name or when we can't extract the subprogram PC bounds.
1913 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
1915 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
1916 instead of selected frame architecture.
1918 2010-03-18 Pedro Alves <pedro@codesourcery.com>
1920 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
1921 a valid selected thread, and that it is not running.
1922 (advance_command): Ditto.
1923 (finish_command): Ditto.
1925 2010-03-17 Stan Shebs <stan@codesourcery.com>
1927 * ax-gdb.c (require_rvalue): Disallow non-scalars.
1929 * infcall.c: Include tracepoint.h.
1930 (call_function_by_hand): Disallow calls in tfind mode.
1931 * infcmd.c: Include tracepoint.h.
1932 (ensure_not_tfind_mode): New function.
1933 (continue_1): Call it.
1935 (jump_command): Ditto.
1936 (signal_command): Ditto.
1937 (advance_command): Ditto.
1938 (until_command): Ditto.
1939 (finish_command): Ditto.
1940 * tracepoint.h (disconnect_or_stop_tracing): Declare.
1942 * ax-gdb.h (struct axs_value): New field optimized_out.
1943 (gen_trace_for_var): Add gdbarch argument.
1944 * ax-gdb.c (gen_trace_static_fields): New function.
1945 (gen_traced_pop): Call it, add gdbarch argument.
1946 (gen_trace_for_expr): Update call to it.
1947 (gen_trace_for_var): Ditto, and report optimized-out variables.
1948 (gen_struct_ref_recursive): Check for optimized-out value.
1949 (gen_struct_elt_for_reference): Ditto.
1950 (gen_static_field): Pass gdbarch instead of expression, assume
1951 optimization if field not found.
1952 (gen_var_ref): Set the optimized_out flag.
1953 (gen_expr): Error on optimized-out variable.
1954 * tracepoint.c (collect_symbol): Handle struct-valued vars as
1955 expressions, skip optimized-out variables with computed locations.
1956 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
1957 erroring out if location expression missing.
1958 (loclist_tracepoint_var_ref): Don't error out here.
1960 2010-03-17 Tom Tromey <tromey@redhat.com>
1962 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
1963 DWARF data is available.
1965 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
1967 * symfile.c (generic_load): Reset breakpoints after loading.
1969 2010-03-17 Tom Tromey <tromey@redhat.com>
1971 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
1973 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1975 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
1976 create_breakpoint call, adjust the parameters.
1978 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1979 Chandru <chandru@in.ibm.com>
1981 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
1982 * valarith.c (value_subscripted_rvalue): Suppress error if
1983 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1985 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
1987 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
1989 2010-03-16 Joel Brobecker <brobecker@adacore.com>
1991 * ada-tasks.c (task_command_1): Check that the task ptid is valid
1992 before doing the associated thread switch.
1994 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
1996 * MAINTAINERS: Update my email address.
1998 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
2000 Simplify MI breakpoint setting.
2002 * breakpoint.c (break_command_really): Make nonstatic and
2004 (create_breakpoint): ...this. Rename prior function by this name
2006 (create_breakpoint_sal): ...this.
2007 (create_breakpoints): Rename to...
2008 (create_breakpoints_sal): ...this.
2009 (set_breakpoint): Remove.
2010 * breakpoint.h: Adjust to above changes.
2011 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
2013 2010-03-15 Stan Shebs <stan@codesourcery.com>
2015 * ax-gdb.c: Include cp-support.h.
2016 (find_field): Remove.
2017 (gen_primitive_field): New function.
2018 (gen_struct_ref_recursive): New function.
2019 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
2021 (gen_static_field): New function.
2022 (gen_struct_elt_for_reference): New.
2023 (gen_namespace_elt): New.
2024 (gen_maybe_namespace_elt): New.
2025 (gen_aggregate_elt_ref): New.
2026 (gen_expr): Add OP_SCOPE, display opcode name in error message.
2028 2010-03-15 Tom Tromey <tromey@redhat.com>
2030 * dwarf2read.c (die_needs_namespace): Also return 0 for
2033 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
2036 * cp-support.h: Added char *declaration element to using_direct
2038 (cp_add_using): Added char *declaration argument.
2039 (cp_add_using_directive): Ditto.
2040 (cp_lookup_symbol_imports): made extern.
2041 * cp-namespace.c: Updated with the above changes.
2042 * dwarf2read.c (read_import_statement): Ditto.
2043 (read_namespace): Ditto.
2044 (read_import_statement): Support import declarations.
2045 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
2047 Added support for 'declaration_only' search.
2048 (cp_lookup_symbol_namespace): Attempt to search for the name as
2049 is before consideration of imports.
2050 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
2051 search at every block level search.
2052 Now takes language argument.
2053 (lookup_symbol_aux): Updated.
2055 2010-03-15 Tom Tromey <tromey@redhat.com>
2057 * c-exp.y (name_not_typename): Add 'operator' clause.
2059 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
2061 * configure.ac: Exit if ${gdb_target_obs}" is not set.
2062 * configure: Regenerate.
2064 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2066 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
2067 and ".sdynbss". Update the comment.
2069 2010-03-15 Jie Zhang <jie@codesourcery.com>
2071 * MAINTAINERS: Update my email address.
2073 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
2075 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
2077 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
2079 * charset.c [USE_WIN32API]: Include <windows.h>.
2080 (_initialize_charset): Correct type of w32_host_default_charset.
2082 2010-03-14 Pedro Alves <pedro@codesourcery.com>
2084 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
2086 2010-03-12 Tom Tromey <tromey@redhat.com>
2089 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
2090 in a lexical block does not need a namespace.
2091 (new_symbol) <DW_TAG_variable>: Put extern variables on
2092 list_in_scope in all cases.
2094 2010-03-12 Stan Shebs <stan@codesourcery.com>
2096 * ax-gdb.c (gen_expr): Add shift expressions.
2097 (gen_expr_binop_rest): Ditto.
2099 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
2101 * buildsym.c (finish_block): Reset using_directives pointer
2102 after block initialization.
2104 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
2106 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
2107 * i386-tdep.c (i386_word_names): Likewise.
2109 2010-03-12 Pedro Alves <pedro@codesourcery.com>
2111 * target.c (memory_xfer_partial): Don't use the stack cache if
2112 inspecting trace frames.
2113 * tracepoint.c (finish_tfind_command): Invalidate the target
2116 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2118 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
2119 for the PIC displacement, print also the displacement value.
2120 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
2122 2010-03-10 Kevin Buettner <kevinb@redhat.com>
2124 * remote-mips.c (close_ports, mips_initialize_cleanups)
2125 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
2126 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
2127 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
2128 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
2129 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
2130 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
2131 comments describing each of these functions.
2132 (mips_enter_debug, mips_exit_debug, common_open)
2133 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
2134 blank line after the comment describing the function.
2136 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2138 * solib-svr4.c (svr4_exec_displacement): Return now success, new
2139 parameter displacementp. Update comment.
2140 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
2141 element exists. Return if svr4_exec_displacement was not successful.
2144 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2145 Daniel Jacobowitz <dan@codesourcery.com>
2147 * solib-svr4.c (read_program_header): Support type == -1 to read
2148 all program headers.
2149 (read_program_headers_from_bfd): New function.
2150 (svr4_static_exec_displacement): Remove and move the comment ...
2151 (svr4_exec_displacement): ... here. Remove variable found. New
2152 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
2153 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
2154 targets using read_program_headers_from_bfd. Remove the call of
2155 svr4_static_exec_displacement.
2157 2010-03-10 Tom Tromey <tromey@redhat.com>
2159 * dwarf2read.c (struct pubnames_header): Remove.
2160 (_PUBNAMES_HEADER): Remove.
2161 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
2162 (struct aranges_header): Remove.
2163 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
2164 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
2165 (PUBNAMES_SECTION): Remove.
2166 (ARANGES_SECTION): Remove.
2167 (dwarf2_locate_sections): Don't handle pubnames or aranges.
2168 (dwarf2_build_psymtabs): Remove dead code.
2169 (dwarf2_build_psymtabs_easy): Remove.
2171 2010-03-10 Tom Tromey <tromey@redhat.com>
2173 * elfread.c (elf_symfile_read): Don't call
2174 dwarf2_build_frame_info.
2175 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
2176 (struct dwarf2_per_objfile) <objfile>: New field.
2177 (dwarf2_has_info): Now idempotent. Set objfile field.
2178 (dwarf2_read_section): Check and set readin field. Call
2180 (dwarf2_build_psymtabs): Don't read all sections.
2181 (read_type_comp_unit_head): Read types section.
2182 (create_debug_types_hash_table): Likewise.
2183 (init_cu_die_reader): Add asserts.
2184 (process_type_comp_unit): Add assert.
2185 (dwarf2_build_psymtabs_hard): Read info section.
2186 (load_partial_comp_unit): Add assert.
2187 (create_all_comp_units): Read info section.
2188 (load_full_comp_unit): Likewise.
2189 (dwarf2_ranges_read): Read ranges section.
2190 (dwarf2_record_block_ranges): Add assert.
2191 (dwarf2_read_abbrevs): Read abbrev section.
2192 (read_indirect_string): Read str section.
2193 (dwarf_decode_line_header): Read line section.
2194 (read_signatured_type_at_offset): Read types section.
2195 (dwarf_decode_macros): Read macinfo section.
2196 (dwarf2_symbol_mark_computed): Read loc section.
2197 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
2198 dwarf2_build_frame_info.
2199 (dwarf2_build_frame_info): Unconditionally set
2200 dwarf2_frame_objfile_data on the objfile.
2201 * configure.ac: Check for posix_madvise.
2202 * config.in, configure: Rebuild.
2204 2010-03-10 Tom Tromey <tromey@redhat.com>
2206 * xcoffread.c (xcoff_start_psymtab): Update.
2207 (xcoff_end_psymtab): Update.
2208 * psymtab.c (allocate_psymtab): Remove dead code.
2209 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
2211 * mdebugread.c (parse_partial_symbols): Update.
2212 (new_psymtab): Likewise.
2213 * dwarf2read.c (process_psymtab_comp_unit): Update.
2214 (psymtab_to_symtab_1): Update.
2215 * dbxread.c (start_psymtab): Update.
2216 (end_psymtab): Likewise.
2218 2010-03-10 Tom Tromey <tromey@redhat.com>
2220 * xcoffread.c: Include psymtab.h.
2221 (xcoff_sym_fns): Update.
2222 * symtab.h (struct partial_symbol): Remove.
2223 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
2224 (struct partial_symtab): Remove.
2225 (PSYMTAB_TO_SYMTAB): Remove.
2226 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
2227 (find_pc_sect_psymtab): Remove.
2228 (find_pc_sect_symtab_via_partial): Declare.
2229 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
2230 (find_main_psymtab): Remove.
2231 (find_main_filename): Declare.
2232 (fixup_psymbol_section): Remove.
2233 (fixup_section): Declare.
2234 * symtab.c: Include psymtab.h.
2235 (lookup_symtab): Use lookup_symtab method.
2236 (lookup_partial_symtab): Remove.
2237 (find_pc_sect_psymtab_closer): Remove.
2238 (find_pc_sect_psymtab): Remove.
2239 (find_pc_sect_symtab_via_partial): New function.
2240 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
2241 (fixup_section): No longer static.
2242 (fixup_psymbol_section): Remove.
2243 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
2244 (lookup_global_symbol_from_objfile): Likewise.
2245 (lookup_symbol_aux_psymtabs): Remove.
2246 (lookup_symbol_aux_quick): New function.
2247 (lookup_symbol_global): Use lookup_symbol_aux_quick.
2248 (lookup_partial_symbol): Remove.
2249 (basic_lookup_transparent_type_quick): New function.
2250 (basic_lookup_transparent_type): Use it.
2251 (find_main_psymtab): Remove.
2252 (find_main_filename): New function.
2253 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
2254 (find_line_symtab): Use expand_symtabs_with_filename method.
2255 (output_partial_symbol_filename): New function.
2256 (sources_info): Use map_partial_symbol_filenames.
2257 (struct search_symbols_data): New type.
2258 (search_symbols_file_matches): New function.
2259 (search_symbols_name_matches): Likewise.
2260 (search_symbols): Use expand_symtabs_matching method.
2261 (struct add_name_data): Rename from add_macro_name_data.
2262 (add_macro_name): Update.
2263 (add_partial_symbol_name): New function.
2264 (default_make_symbol_completion_list): Use
2265 map_partial_symbol_names.
2266 (struct add_partial_symbol_name): New type.
2267 (maybe_add_partial_symtab_filename): New function.
2268 (make_source_files_completion_list): Use
2269 map_partial_symbol_filenames.
2270 (expand_line_sal): Use expand_symtabs_with_filename method.
2271 * symmisc.c: Include psymtab.h.
2272 (print_objfile_statistics): Use print_stats method.
2273 (dump_objfile): Use dump method.
2274 (dump_psymtab, maintenance_print_psymbols)
2275 (maintenance_info_psymtabs, maintenance_check_symtabs)
2276 (extend_psymbol_list): Remove.
2277 * symfile.h (struct quick_symbol_functions): New struct.
2278 (struct sym_fns) <qf>: New field.
2279 (sort_pst_symbols): Remove.
2280 (increment_reading_symtab): Declare.
2281 * symfile.c: Include psymtab.h.
2282 (compare_psymbols, sort_pst_symbols): Remove.
2283 (psymtab_to_symtab): Remove.
2284 (increment_reading_symtab): New function.
2285 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
2287 (set_initial_language): Use find_main_filename.
2288 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
2289 (free_named_symtabs): Remove unused code.
2290 (start_psymtab_common, add_psymbol_to_bcache)
2291 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
2293 * stack.c: Include psymtab.h, symfile.h.
2294 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
2295 * source.h (psymtab_to_fullname): Don't declare.
2296 * source.c: Include psymtab.h.
2297 (select_source_symtab): Use find_last_source_symtab method.
2298 (forget_cached_source_info): Use forget_cached_source_info
2300 (find_and_open_source): No longer static.
2301 (psymtab_to_fullname): Remove.
2302 * somread.c: Include psymtab.h.
2303 (som_sym_fns): Update.
2304 * psympriv.h: New file.
2305 * psymtab.h: New file.
2306 * psymtab.c: New file.
2307 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
2308 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
2309 * objfiles.c: Include psymtab.h.
2310 (objfile_relocate1): Use relocate method.
2311 (objfile_has_partial_symbols): Use has_symbols method.
2312 * mipsread.c: Include psymtab.h.
2313 (ecoff_sym_fns): Update.
2314 * mi/mi-cmd-file.c: Include psymtab.h.
2315 (print_partial_file_name): New function.
2316 (mi_cmd_file_list_exec_source_files): Use
2317 map_partial_symbol_filenames.
2318 * mdebugread.c: Include psympriv.h.
2319 * machoread.c: Include psympriv.h.
2320 (macho_sym_fns): Update.
2321 * m2-exp.y (yylex): Use lookup_symtab.
2322 * elfread.c: Include psympriv.h.
2323 (elf_sym_fns): Update.
2324 * dwarf2read.c: Include psympriv.h.
2325 * dbxread.c: Include psympriv.h.
2326 (aout_sym_fns): Update.
2327 * cp-support.c: Include psymtab.h.
2328 (read_in_psymtabs): Remove.
2329 (make_symbol_overload_list_qualified): Use
2330 expand_symtabs_for_function method.
2331 * coffread.c: Include psympriv.h.
2332 (coff_sym_fns): Update.
2333 * blockframe.c: Include psymtab.h.
2334 (find_pc_partial_function): Use find_pc_sect_symtab method.
2335 * ada-lang.h (ada_update_initial_language): Update.
2336 * ada-lang.c: Include psymtab.h.
2337 (ada_update_initial_language): Remove 'main_pst' argument.
2338 (ada_lookup_partial_symbol): Remove.
2339 (struct ada_psym_data): New type.
2340 (ada_add_psyms): New function.
2341 (ada_add_non_local_symbols): Use map_ada_symtabs method.
2342 (struct add_partial_datum): New type.
2343 (ada_add_partial_symbol_completions): New function.
2344 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
2345 (ada_exception_support_info_sniffer): Update.
2346 * Makefile.in (SFILES): Add psymtab.c.
2347 (COMMON_OBS): Add psymtab.o.
2348 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
2350 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
2352 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
2354 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
2357 * cp-namespace.c (cp_add_using): Deleted.
2358 (cp_add_using_directive): Use obstack allocations.
2359 Merged the function cp_add_using into this one.
2360 Added 'struct obstack *' argument.
2361 (cp_scan_for_anonymous_namespaces): Updated.
2362 * cp-support.h: Updated.
2363 * dwarf2read.c (read_import_statement): Updated.
2364 (read_namespace): Updated.
2366 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
2368 * windows-nat.c (cygwin_conv_path): Remove old macro.
2370 2010-03-10 Pedro Alves <pedro@codesourcery.com>
2372 * breakpoint.c (condition_command): Handle watchpoint conditions.
2373 (is_hardware_watchpoint): Add comment.
2374 (is_watchpoint): New.
2375 (update_watchpoint): Don't reparse the watchpoint's condition
2378 (watchpoint_check): Use it.
2379 (bpstat_check_watchpoint): Handle it.
2380 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
2381 conditions in a frame where it makes sense.
2382 (watch_command_1): Store the innermost block of the condition
2384 (delete_breakpoint): Delete the watchpoint condition expression.
2385 * breakpoint.h (struct bp_location) <cond>: Update comment.
2386 (struct breakpoint): New field `cond_exp_valid_block'.
2388 2010-03-09 Joel Brobecker <brobecker@adacore.com>
2390 Adjust handling of Ada DIEs after dwarf2_physname patch.
2391 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
2393 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
2394 Pierre Muller <muller@ics.u-strasbg.fr>
2396 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
2397 from/to posix/win32.
2398 (windows_make_so): Use non-Cygwin 1.7 specific function.
2399 (windows_create_inferior): Make sure that cygallargs points to
2400 original args in non Cygwin 1.7. case.
2402 2010-03-09 Michael Snyder <msnyder@vmware.com>
2404 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
2405 after target_read_memory to get host byte order.
2406 (i386_process_record): Ditto.
2408 2010-03-09 Keith Seitz <keiths@redhat.com>
2410 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
2411 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
2412 print out const or volatile qualifiers, too.
2413 (c_type_print_args): Add parameters show_artificial and language.
2414 Skip artificial parameters when requested.
2415 Use the appropriate language printer.
2416 (c_type_print_varspec): Tell c_type_print_args to skip artificial
2417 parameters and pass language_c.
2418 * dwarf2read.c (die_list): New file global.
2419 (struct partial_die_info): Update comments for name field.
2420 (pdi_needs_namespace): Renamed to ...
2421 (die_needs_namespace): ... this. Rewrite.
2422 (dwarf2_linkage_name): Remove.
2423 (add_partial_symbol): Do not predicate the call to
2424 partial_die_full_name based on pdi_needs_namespace.
2425 Remove call to cp_check_possible_namespace_symbols and associated
2427 (guess_structure_name): Do not inspect child subprogram DIEs.
2428 (dwarf2_fullname): Update comments.
2429 Use die_needs_namespace to assist in computing the name.
2430 (read_func_scope): Use dwarf2_name to get the DIE's name.
2431 Use dwarf2_physname to get the "linkage name" of the DIE.
2432 (dwarf2_add_member_field): Use dwarf2_physname instead of
2433 dwarf2_linkage_name.
2434 (read_structure_type): For structs and classes, set TYPE_NAME, too.
2435 (determine_class): Remove.
2436 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
2438 (new_symbol): Unconditionally call dwarf2_name.
2439 Compute the "linkage name" using dwarf2_physname.
2440 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
2441 When determining to scan for anonymous C++ namespaces, ignore
2443 (dwarf2_physname): New function.
2444 (dwarf2_full_name): Move content to new function and call
2446 (dwarf2_compute_name): "New" function.
2447 (_initialize_dwarf2_read): Initialize die_list.
2448 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
2450 (gnu_v3_print_method_ptr): Use the physname for virtual methods
2451 without a demangled name.
2452 Print out type information for non-virtual methods.
2453 * linespec.c (decode_line_1): Force ANY string using "::" (or
2454 "." for java) to use decode_compound, and clean up any stray quoting.
2455 If we found a file symtab, re-evaluate whether the remainder is_quoted.
2456 (decode_compound): Stop consuming at an open parenthesis.
2457 Keep template parameters.
2458 Keep any overload information.
2459 Keep keywords like "const".
2460 Remove paren_pointer.
2461 Move is_quoted check from set_flags to here.
2462 Remove #if 0 code from 2000. Ten years is long enough.
2463 (find_method): Before comparing symbol names, canonicalize the string
2465 If a specific overload is requested, find it. Otherwise throw an error.
2466 (find_method_overload_end): New function.
2467 (set_flags): Remove.
2468 (decode_compound): Assume that parentheses are matched.
2470 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
2472 * linespec.c (decode_line_1): Keep important keywords like
2473 "const" and "volatile".
2474 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
2475 * typeprint.h (c_type_print_args): Add declaration.
2476 * ui-file.c (do_ui_file_obsavestring): New function.
2477 (ui_file_obsavestring): New function.
2478 * ui-file.h (ui_file_obsavestring): Add declaration.
2479 * valops.c (find_overload_match): Resolve the object to
2481 If the object is a data member, search the object for the member
2482 and return with staticp set.
2483 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
2484 Do not attempt to extract a function name from non-function types.
2485 If the extracted function name and the original name are the same,
2486 we don't have a C++ method.
2488 From Jan Kratochvil <jan.kratochvil@redhat.com>:
2489 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
2491 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
2492 and arguments from symbol lookups.
2493 * ax-gdb.c (gen_expr): Likewise.
2494 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
2495 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
2496 lookup_possible_namespace_symbol): Likewise.
2497 * cp-support.c (read_in_psymtabs): Likewise.
2498 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
2499 * language.h (la_lookup_symbol_nonlocal): Likewise.
2500 * scm-valprint.c (scm_inferior_print): Likewise.
2501 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
2502 * solib-svr.c (elf_lookup_lib): Likewise.
2503 * solib.c (show_auto_solib_add): Likewise.
2504 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
2505 * symmisc.c (maintenance_check_symtabs): Likewise.
2506 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
2507 lookup_symbol_aux_local, lookup_symbol_aux_block,
2508 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
2509 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
2510 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
2511 basic_lookup_transparent_type, find_main_psymtab,
2512 lookup_block_symbol): Likewise.
2513 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
2514 lookup_symbol_global, lookup_symbol_aux_block,
2515 lookup_symbol_partial_symbol, lookup_block_symbol,
2516 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
2518 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
2520 * python/python-internal.h: Include symtab.h.
2522 2010-03-09 Joel Brobecker <brobecker@adacore.com>
2523 Pierre Muller <muller@ics.u-strasbg.fr>
2525 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
2526 * p-valprint.c (pascal_val_print): Remove undeed block and fix
2529 2010-03-08 Tom Tromey <tromey@redhat.com>
2531 * breakpoint.c (breakpoint_1): Add "QUIT".
2533 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
2534 Pedro Alves <pedro@codesourcery.com>
2536 * solib.c (solib_find): Replace extension if
2537 solib_symbols_extension is set in the target gdbarch.
2538 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2539 solib_symbols_extension to "sym".
2540 * gdbarch.sh (solib_symbols_extension): New variable.
2541 (pstring): New function.
2542 * gdbarch.h, gdbarch.c: Regenerate.
2544 2010-03-08 Tom Tromey <tromey@redhat.com>
2548 * utils.c: Include main.h.
2549 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
2550 (defaulted_query): Use default answer if `batch_flag'.
2551 * main.h (batch_flag): Declare.
2552 * main.c (batch_flag): New global.
2553 (captured_main): Remove 'batch'. Update.
2555 2010-03-08 Kevin Buettner <kevinb@redhat.com>
2557 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
2560 * remote-mips.c (rockhopper_ops): New target_ops struct.
2561 (MON_ROCKHOPPER): New mips_monitor_type.
2562 (read_hex_value): New function.
2563 (mips_request): Send 8-byte values with a 'T' packet. Read the
2564 packet argument as a string and use read_hex_value to parse it.
2565 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
2566 (rockhopper_open): New function.
2567 (mips_wait): Read the PC, FP and SP fields as strings. Use
2568 read_hex_value to parse them and mips_set_register to commit them.
2569 (mips_set_register): New function.
2570 (mips_fetch_registers): Do not cast register value to "unsigned"
2571 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
2572 (mips_store_registers): Use a 'T' packet to set registers when
2573 using MON_ROCKHOPPER.
2574 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
2575 and expect the total to be printed before the entry address.
2576 (_initialize_remote_mips): Initialize and add rockhopper_ops.
2578 2010-03-08 Kevin Buettner <kevinb@redhat.com>
2580 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
2581 Change return value to int. Store value fetched in location
2582 addressed by `val'. Use function's return value as success
2583 or failure indicator. Adjust all callers.
2585 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
2587 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
2589 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2590 Hui Zhu <teawater@gmail.com>
2592 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
2593 tmp_to_stopped_data_address.
2594 (record_open): Reset tmp_to_stopped_by_watchpoint and
2595 tmp_to_stopped_data_address.
2596 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
2597 to_stopped_data_address.
2599 2010-03-08 Hui Zhu <teawater@gmail.com>
2601 * i386-tdep.c (i386_process_record): Initialize regnum.
2603 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2605 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
2606 Do not warn on ".gnu.liblist" and ".gnu.conflict".
2608 2010-03-08 Joel Brobecker <brobecker@adacore.com>
2610 Memory error when reading wrong core file.
2611 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
2612 errors while reading the inferior memory, and return zero if
2613 an exception was raised.
2615 2010-03-07 Michael Snyder <msnyder@vmware.com>
2617 * record.c (record_restore): Rename tmpu8 to rectype.
2619 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
2620 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
2622 (i386_record_push): Rename local tmpulongest to addr.
2624 (i386_process_record): Rename local tmpulongest to addr.
2626 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
2629 Rename local variable tmpu8 to opcode8 and regnum.
2631 2010-03-07 Joel Brobecker <brobecker@adacore.com>
2633 * remote.c (remote_get_ada_task_ptid): New function.
2634 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
2636 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
2638 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
2639 block. Define helper macros to reduce ifdefs in code.
2640 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
2641 size. Call unadorned GetModuleFileNameEx rather than
2642 GetModuleFileNameEx*.
2643 (windows_make_so): Use __PMAX to denote maximum buffer size and
2644 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
2646 (get_image_name): Use __PMAX to denote maximum buffer size.
2647 (handle_load_dll): Likewise.
2648 (windows_pid_to_exec_file): Likewise.
2649 (windows_create_inferior): Add many accommodations for older Cygwin and
2651 (bad_GetModuleFileNameExW): Control inclusion of this function based on
2652 __USEWIDE conditional.
2653 (bad_GetModuleFileNameExA): Likewise.
2654 (_initialize_loadable): Just use real function names without the dyn_
2655 part since they are defined earlier.
2657 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
2658 Tom Tromey <tromey@redhat.com>
2660 * utils.c (host_char_to_target): Add 'gdbarch' argument.
2661 (parse_escape): Likewise.
2662 * python/py-utils.c (unicode_to_target_string): Update.
2663 (unicode_to_target_python_string): Update.
2664 (target_string_to_unicode): Update.
2665 * printcmd.c (printf_command): Update.
2666 * p-exp.y (yylex): Update.
2667 * objc-exp.y (yylex): Update.
2668 * mi/mi-parse.c: Include charset.h.
2669 (mi_parse_escape): New function.
2670 (mi_parse_argv): Use it.
2671 * jv-exp.y (yylex): Update.
2672 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
2674 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
2675 * gdbarch.sh (auto_charset, auto_wide_charset): New.
2676 * gdbarch.c: Rebuild.
2677 * gdbarch.h: Rebuild.
2678 * defs.h (parse_escape): Update.
2679 * cli/cli-setshow.c: Include arch-utils.h.
2680 (do_setshow_command): Update.
2681 * cli/cli-cmds.c (echo_command): Update.
2682 * charset.h (target_charset, target_wide_charset): Update.
2683 * charset.c: Include arch-utils.h.
2684 (target_charset_name): Default to "auto".
2685 (target_wide_charset_name): Likewise.
2686 (show_target_charset_name): Handle "auto".
2687 (show_target_wide_charset_name): Likewise.
2688 (be_le_arch): New global.
2689 (set_be_le_names): Add 'gdbarch' argument.
2690 (validate): Likewise. Don't call set_be_le_names.
2691 (set_charset_sfunc, set_host_charset_sfunc)
2692 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
2694 (target_charset): Add 'gdbarch' argument.
2695 (target_wide_charset): Likewise. Remove 'byte_order' argument.
2696 (auto_target_charset_name): New global.
2697 (default_auto_charset, default_auto_wide_charset): New functions.
2698 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
2699 for target charsets. Copy result of nl_langinfo. Use GetACP if
2701 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
2702 remove 'byte_order' argument. Update.
2703 (classify_type): Likewise.
2704 (c_emit_char): Update.
2705 (c_printchar): Update.
2706 (c_printstr): Update.
2707 (c_get_string): Update.
2708 (evaluate_subexp_c): Update.
2709 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
2711 * python/python.c (gdbpy_target_charset): New function.
2712 (gdbpy_target_wide_charset): Likewise.
2713 (GdbMethods): Update.
2716 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
2718 * symfile.c (build_section_addr_info_from_objfile): Do not mask
2719 off high address bits.
2721 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
2723 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
2724 address as UnsignedLongLong, not LongLong.
2726 2010-03-05 Kevin Buettner <kevinb@redhat.com>
2727 Pedro Alves <pedro@codesourcery.com>
2729 * remote-mips.c (gdbthread.h): Include.
2730 (remote_mips_ptid): Declare.
2731 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
2732 (common_open): Set inferior_ptid, add it as an inferior, and
2733 as a thread too. Delete FIXME comment regarding start_remote().
2734 (mips_close): Invoke generic_mourn_inferior().
2735 (mips_kill): Make sure that target_mourn_inferior is invoked.
2736 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
2737 it's now invoked from mips_close().
2738 (mips_load): Don't null out inferior_ptid. Don't call
2739 clear_symtab_users().
2740 (mips_thread_alive, mips_pid_to_str): New functions.
2741 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
2742 to_thread_alive and to_pid_to_str operations.
2744 2010-03-04 Tom Tromey <tromey@redhat.com>
2746 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
2747 in DWARF 3 and later.
2748 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
2750 2010-03-04 Keith Seitz <keiths@redhat.com>
2752 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
2753 If the filename portion of the linespec was quoted, recheck the
2754 remainder for additional quoting.
2755 (locate_first_half): Skip over completer chars, too.
2757 2010-03-04 Tom Tromey <tromey@redhat.com>
2759 * printcmd.c (printf_command): Pass dummy argument to
2762 2010-03-04 Doug Evans <dje@google.com>
2764 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
2767 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
2769 2010-03-04 Pedro Alves <pedro@codesourcery.com>
2771 * breakpoint.c (update_watchpoint): Create a sentinel location if
2772 the software watchpoint isn't watching any memory.
2773 (breakpoint_address_bits): Skip dummy software watchpoint locations.
2775 2010-03-04 Pedro Alves <pedro@codesourcery.com>
2777 * utils.c (fputs_maybe_filtered): Check if there's already a top
2778 level interpreter before dereferencing it. If there isn't one,
2779 don't paginate either.
2781 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2783 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
2784 the state right when single stepping.
2785 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
2786 Get the next PC along with the instruction state.
2787 (thumb_get_next_pc): Remove.
2788 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
2790 2010-03-04 Hui Zhu <teawater@gmail.com>
2792 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
2794 2010-03-03 Pedro Alves <pedro@codesourcery.com>
2796 * utils.c (fputs_maybe_filtered): Always disable pagination if the
2797 top level interpreter is MI.
2799 2010-03-03 Stan Shebs <stan@codesourcery.com>
2801 * remote.c (remote_download_tracepoint): Iterate over locations.
2802 * tracepoint.c (validate_actionline): Ditto.
2803 (encode_actions): Add location argument.
2804 (trace_dump_command): Check all locations to see if stepping
2807 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
2808 Eli Zaretskii <eliz@gnu.org>
2810 * NEWS: Add X86 general purpose registers section.
2812 2010-03-03 Tom Tromey <tromey@redhat.com>
2815 * varobj.c (install_new_value): Handle case where new print_value
2818 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
2821 * printcmd.c (printf_command): Print end of format string using
2824 2010-03-02 Tom Tromey <tromey@redhat.com>
2826 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
2827 * defs.h (read_command_lines_1): Add missing 'void'.
2828 * cli/cli-script.c (recurse_read_control_structure): Add missing
2830 (read_next_line): Likewise.
2831 (read_command_lines_1): Likewise.
2833 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
2835 * spu-tdep.c (spu_analyze_prologue): Track instruction to
2836 store backchain as part of prologue.
2838 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2840 * progspace.c (update_address_spaces): Update inferior address spaces
2843 2010-03-02 Doug Evans <dje@google.com>
2845 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
2846 lowpc,highpc args to addrmap_set_empty.
2848 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
2850 * amd64-tdep.c (amd64_byte_names): New.
2851 (amd64_word_names): Likewise.
2852 (amd64_dword_names): Likewise.
2853 (amd64_pseudo_register_name): Likewise.
2854 (amd64_pseudo_register_read): Likewise.
2855 (amd64_pseudo_register_write): Likewise.
2856 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
2857 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
2858 set_gdbarch_pseudo_register_write and
2859 set_tdesc_pseudo_register_name. Don't call
2860 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
2862 * i386-tdep.c (i386_num_mmx_regs): Removed.
2863 (i386_num_pseudo_regs): Likewise.
2864 (i386_byte_names): New.
2865 (i386_word_names): Likewise.
2866 (i386_byte_regnum_p): Likewise.
2867 (i386_word_regnum_p): Likewise.
2868 (i386_mmx_regnum_p): Updated.
2869 (i386_pseudo_register_name): Make it global. Handle byte and
2870 word pseudo-registers.
2871 (i386_pseudo_register_read): Likewise.
2872 (i386_pseudo_register_write): Likewise.
2873 (i386_pseudo_register_type): Handle byte, word and dword
2875 (i386_register_reggroup_p): Don't include pseudo
2876 registers, except for MXX, in any register groups. Don't
2877 include pseudo byte, word, dword registers in general_reggroup.
2878 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
2879 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
2880 pseudo-registers after word pseudo-registers. Call
2881 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
2883 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
2884 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
2886 (i386_byte_regnum_p): New.
2887 (i386_word_regnum_p): Likewise.
2888 (i386_dword_regnum_p): Likewise.
2889 (i386_pseudo_register_name): Likewise.
2890 (i386_pseudo_register_read): Likewise.
2891 (i386_pseudo_register_write): Likewise.
2893 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
2895 * target-descriptions.c (tdesc_type): Remove
2896 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2897 (tdesc_predefined_types): Likewise.
2898 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
2899 if flag name is empty.
2900 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
2902 * features/i386/32bit-core.xml: Define i386_eflags.
2903 * features/i386/64bit-core.xml: Likewise.
2905 * features/i386/32bit-sse.xml: Define i386_mxcsr.
2906 * features/i386/64bit-sse.xml: Likewise.
2908 * features/i386/amd64-linux.c: Regenerated.
2909 * features/i386/amd64.c: Likewise.
2910 * features/i386/i386-linux.c: Likewise.
2911 * features/i386/i386.c: Likewise.
2913 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
2915 * gdbtypes.c (append_composite_type_field_raw): New.
2916 (append_composite_type_field_aligned): Use the new function.
2917 * gdbtypes.h (append_composite_type_field_raw): Declare.
2918 * target-descriptions.c (struct tdesc_type_field): Add start and end.
2919 (struct tdesc_type_flag): New type.
2920 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
2921 kind. Add size to u.u. Add u.f for flags.
2922 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
2923 (tdesc_free_type): Likewise.
2924 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
2925 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
2926 (tdesc_add_bitfield, tdesc_add_flag): New.
2927 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
2928 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
2929 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
2930 current_type. Add current_type_size and current_type_is_flags.
2931 (tdesc_start_union): Clear the new fields.
2932 (tdesc_start_struct, tdesc_start_flags): New.
2933 (tdesc_start_field): Handle struct fields, including bitfields.
2934 (field_attributes): Make type optional. Add start and end.
2935 (union_children): Rename to struct_union_children.
2936 (union_attributes): Rename to struct_union_attributes. Add optional
2938 (flags_attributes): New.
2939 (feature_children): Add struct and flags.
2940 * features/gdb-target.dtd: Add flags and struct to features.
2941 Make field type optional. Add field start and end.
2943 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
2945 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
2946 (amd64_linux_read_description): Likewise.
2947 (_initialize_amd64_linux_nat): Set to_read_description to
2948 amd64_linux_read_description.
2950 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
2951 (amd64_linux_register_name): Removed.
2952 (amd64_linux_register_type): Likewise.
2953 (amd64_linux_core_read_description): New.
2954 (amd64_linux_init_abi): Set target description to
2955 tdesc_amd64_linux if needed. Support orig_rax in target
2956 description. Don't call set_gdbarch_register_name nor
2957 set_gdbarch_register_type. Call
2958 set_gdbarch_core_read_description.
2959 (_initialize_amd64_linux_tdep): Call
2960 initialize_tdesc_amd64_linux.
2962 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
2964 * amd64-tdep.c: Include "features/i386/amd64.c".
2965 (amd64_register_names): Removed.
2966 (amd64_register_name): Likewise.
2967 (amd64_register_type): Likewise.
2968 (amd64_init_abi): Set num_core_regs and register_names. Set
2969 target description to tdesc_amd64 if needed. Don't call
2970 set_gdbarch_register_name nor set_gdbarch_register_type.
2971 (_initialize_amd64_tdep): New.
2973 * i386-linux-nat.c (i386_linux_read_description): New.
2974 (_initialize_i386_linux_nat): Set to_read_description to
2975 i386_linux_read_description.
2977 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
2978 (i386_linux_register_name): Removed.
2979 (i386_linux_core_read_description): New.
2980 (i386_linux_read_description): Likewise.
2981 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
2982 Set target description to tdesc_i386_linux if needed. Support
2983 orig_eax. Set register_reggroup_p. Call
2984 set_gdbarch_core_read_description.
2985 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
2987 * i386-linux-tdep.h (tdesc_i386_linux): New.
2989 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
2992 * i386-tdep.c: Include "features/i386/i386.c".
2993 (i386_register_names): Make it const.
2994 (i386_mmx_names): Likewise.
2995 (i386_num_register_names): Removed.
2996 (i386_register_name): Likewise.
2997 (i386_eflags_type): Likewise.
2998 (i386_mxcsr_type): Likewise.
2999 (i386_sse_type): Likewise.
3000 (i386_register_type): Likewise.
3001 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
3002 (i386_pseudo_register_name): New.
3003 (i386_pseudo_register_type): Likewise.
3004 (i386_mmx_type): Make it static.
3005 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
3006 I387_NUM_REGS. Set num_core_regs and register_names. Don't
3007 call set_gdbarch_register_name nor set_gdbarch_register_type.
3008 Set register_reggroup_p. Set target description to tdesc_i386
3009 if needed. Call set_tdesc_pseudo_register_type,
3010 set_tdesc_pseudo_register_name and tdesc_use_registers.
3011 (_initialize_i386_tdep): Call initialize_tdesc_i386.
3012 initialize_tdesc_x86_64.
3014 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
3015 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
3016 register_names, tdesc and register_reggroup_p.
3017 (I386_NUM_FREGS): Removed.
3018 (i386_eflags_type): Likewise.
3019 (i386_mxcsr_type): Likewise.
3020 (i386_mmx_type): Likewise.
3021 (i386_sse_type): Likewise.
3022 (i386_register_name): Likewise.
3023 (i386_regnum): Add I386_MXCSR_REGNUM.
3024 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
3026 * i387-tdep.h (I387_NUM_REGS): New.
3028 * regformats/i386/i386-linux.dat: Generated.
3029 * regformats/i386/i386.dat: Likewise.
3030 * regformats/i386/amd64-linux.dat: Likewise.
3031 * regformats/i386/amd64.dat: Likewise.
3033 * regformats/reg-i386-linux.dat: Removed.
3034 * regformats/reg-i386.dat: Likewise.
3035 * regformats/reg-x86-64-linux.dat: Likewise.
3036 * regformats/reg-x86-64.dat: Likewise.
3038 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
3040 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
3041 cygwin_conv_path API rather than the deprecated
3042 cygwin_conv_to_full_posix_path.
3044 (GetModuleFileNameExA): Undefine for Cygwin.
3045 (GetModuleFileNameExW): Define for Cygwin.
3046 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
3047 Call GetModuleFileNameExW and convert path to POSIX using
3049 (windows_make_so): Always define p. Drop unused variable m.
3050 Don't use Win32 functions to check file existance, rather use
3051 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
3052 Use canonicalize_file_name to get full path.
3053 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
3054 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
3055 use correct target buffer size in call to WideCharToMultiByte.
3056 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
3057 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
3058 (windows_create_inferior): Convert all paths and arguments to wchar_t
3059 and use CreateProcessW on Cygwin.
3060 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
3061 (bad_GetModuleFileNameExA): Undefine for Cygwin.
3062 (bad_GetModuleFileNameExW): Define for Cygwin.
3063 (_initialize_loadable): Load GetModuleFileNameExW into
3064 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
3066 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
3069 * python/py-frame.c (frapy_read_var): Add block argument and logic
3070 to cope with user provided blocks.
3072 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3074 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
3077 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
3079 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
3080 (COMMON_OBS): ... to here since it's used unconditionally.
3081 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
3084 2010-02-26 David Daney <ddaney@caviumnetworks.com>
3086 * mips-linux-tdep.c: Update struct sigframe comments.
3087 (SIGFRAME_CODE_OFFSET): Delete macro.
3088 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
3090 (mips_linux_n32n64_sigframe_init): Same.
3092 2010-02-26 Kevin Buettner <kevinb@redhat.com>
3094 * remote-mips.c (mips_load): Don't use pseudo-register when
3095 invalidating regcache.
3097 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
3099 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
3101 2010-02-26 Pedro Alves <pedro@codesourcery.com>
3103 * NEWS: Add "New targets" section, and mention ARM Symbian
3106 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
3108 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
3109 add ADDR_SIZE member.
3110 (allocate_piece_closure): Update.
3111 (copy_pieced_value_closure): Likewise.
3112 (dwarf2_evaluate_loc_desc): Likewise.
3113 (read_pieced_value): Use DWARF address size instead of
3114 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
3116 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
3117 Tom Tromey <tromey@redhat.com>
3119 * python/py-type.c (typy_lookup_typename): Add in block argument.
3120 If provided restrict lookup to specified blocks.
3121 (gdbpy_lookup_type): Likewise.
3122 (typy_lookup_type): Likewise.
3124 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
3129 * arm-symbian-tdep.c: New.
3130 * configure.tgt (arm*-*-symbianelf*): New target.
3131 (*-*-symbianelf*): New OS.
3132 * osabi.c (gdb_osabi_names): Add Symbian.
3133 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
3134 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
3135 (ALLDEPFILES): Add arm-symbian-tdep.c.
3137 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
3139 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
3141 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3143 * mi/mi-main.c (mi_cmd_execute): Fix typo.
3145 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
3146 Tom Tromey <tromey@redhat.com>
3147 Thiago Jung Bauermann <bauerman@br.ibm.com>
3149 * python/python.c (_initialize_python): Call
3150 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
3151 gdbpy_initialize_blocks.
3152 * python/python-internal.h: Declare struct symbol, block and
3153 symtab_and_line. Declare block_object_type and
3155 (gdbpy_lookup_symbol gdbpy_block_for_pc)
3156 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
3157 (symbol_to_symbol_object, block_to_block_object)
3158 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
3159 (gdbpy_initialize_blocks ): Declare.
3160 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
3161 (frapy_select): Add methods.
3162 (frapy_read_var): Add symbol branch.
3163 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
3165 (SUBDIR_PYTHON_SRCS): Likewise.
3166 (py-symbol.o): New rule.
3167 (py-symtab.o): Likewise.
3168 (py-block.o): Likewise.
3169 * python/py-symbol.c: New file.
3170 * python/py-symtab.c: Likewise.
3171 * python/py-block.c: Likewise.
3173 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3177 * inferior.h (prepare_for_detach): Declare.
3178 (struct inferior) <detaching>: New field.
3179 * infrun.c (prepare_for_detach): New.
3180 (handle_inferior_event) <random signal>: Don't stop if detaching.
3181 * target.c (target_detach): Call prepare_for_detach.
3183 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3185 Per-process displaced stepping queue.
3187 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
3188 (displaced_step_gdbarch, displaced_step_closure,
3189 (displaced_step_original, displaced_step_copy): Move globals to
3191 (struct displaced_step_inferior_state): ... new structure.
3192 (displaced_step_inferior_states): New global.
3193 (get_displaced_stepping_state, add_displaced_stepping_state)
3194 (remove_displaced_stepping_state, infrun_inferior_exit): New
3196 (displaced_step_clear): Add displaced_step_inferior_state
3197 parameter, and adjust to handle it.
3198 (displaced_step_clear_cleanup): Parameter is now a
3199 displaced_step_inferior_state. Adjust.
3200 (displaced_step_prepare): Adjust.
3201 (displaced_step_fixup, displaced_step_fixup)
3202 (infrun_thread_ptid_changed, resume): Adjust.
3203 (init_wait_for_inferior): Don't call displaced_step_clear.
3204 (infrun_thread_stop_requested): Rewrite.
3205 (_initialize_infrun): Install infrun_inferior_exit as
3206 inferior_exit observer.
3208 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3210 * inferior.h (ptid_match): Declare.
3211 * infrun.c (ptid_match): New.
3212 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
3213 (handle_notification): Add debug output.
3214 * linux-nat.c (ptid_match): Delete.
3216 2010-02-24 David S. Miller <davem@davemloft.net>
3218 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
3219 * syscalls/sparc-linux.xml: New.
3220 * syscalls/sparc64-linux.xml: New.
3221 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
3222 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
3223 (sparc32_linux_get_syscall_number): New function.
3224 (sparc32_linux_init_abi): Set syscall XML file name and hook up
3225 syscall number fetcher.
3226 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
3227 (sparc64_linux_get_syscall_number): New function.
3228 (sparc64_linux_init_abi): Set syscall XML file name and hook up
3229 syscall number fetcher.
3231 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
3235 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
3236 * inferior.c (add_inferior_silent): Notify inferior_added
3238 (delete_inferior_1): Notify inferior_removed observer.
3239 (exit_inferior_1): Pass inferior, not pid, to observer.
3240 (inferior_appeared): Likewise.
3241 (add_inferior_with_spaces): New.
3242 (add_inferior_command): Use the above.
3243 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
3246 * inflow.c (inflow_inferior_exit): Likewise.
3247 * jit.c (jit_inferior_exit_hook): Likewise.
3249 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
3251 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
3252 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
3253 (report_initial_inferior): New.
3254 (mi_inferior_removed): Register the above. Make sure
3255 inferior_added observer is called on the first inferior.
3256 (mi_new_thread, mi_thread_exit): Thread group is now identified by
3257 inferior number, not pid.
3258 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
3260 * mi/mi-main.c (current_context): New.
3261 (proceed_thread_callback): Use typed closure.
3262 Proceed everything if pid is 0. Most implementation split into
3263 (proceed_thread): ... this.
3264 (run_one_inferior): New.
3265 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
3266 Adjust for multiexec behaviour.
3267 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
3268 (mi_cmd_execute): Handle the 'thread-group' option here.
3269 Do some extra checks.
3270 * mi-parse.c (mi_parse): Handle the --all and --thread-group
3272 * mi-parse.h (struct mi_parse): New fields all and thread_group.
3274 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
3276 Make -exec-run a proper MI commands.
3278 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
3279 * mi/mi-cmds.c (mi_cmds): Adjust.
3280 * mi/mi-main.c (mi_cmd_exec_run): New.
3282 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3283 Stan Shebs <stan@codesourcery.com>
3285 * tracepoint.h (set_traceframe_number)
3286 (cleanup_restore_current_traceframe): Declare.
3287 * tracepoint.c (set_traceframe_number): New.
3288 (struct current_traceframe_cleanup): New.
3289 (do_restore_current_traceframe_cleanup)
3290 (restore_current_traceframe_cleanup_dtor)
3291 (make_cleanup_restore_current_traceframe): New.
3292 * infrun.c: Include tracepoint.h.
3293 (fetch_inferior_event): Switch out and in of tfind mode.
3295 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3297 * breakpoint.c (breakpoint_init_inferior): Also delete
3298 bp_shlib_event breakpoints.
3299 * solib-frv.c (enable_break): Remove call to
3300 remove_solib_event_breakpoints.
3301 * solib-svr4.c (enable_break): Ditto.
3302 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
3303 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
3304 * solib-som.c (som_solib_create_inferior_hook): Ditto.
3305 * solib-spu.c (spu_enable_break): Ditto.
3307 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
3309 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
3311 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
3313 * varobj.c (varobj_update): Avoid non-constants in initializers.
3315 2010-02-23 Tom Tromey <tromey@redhat.com>
3317 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
3318 handle big-endian values.
3319 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
3321 2010-02-22 Pedro Alves <pedro@codesourcery.com>
3326 * breakpoint.c (insert_bp_location): If inserting the read
3327 watchpoint failed, fallback to an access watchpoint.
3328 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
3329 if the value changed, if not watching the same memory for writes.
3330 (watchpoint_locations_match): Add comment.
3331 (update_global_location_list): Copy the location's watchpoint type.
3332 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
3333 handle read watchpoints here.
3334 (i386_insert_watchpoint): Read watchpoints aren't supported.
3335 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
3337 * target.h (target_insert_watchpoint): Update description.
3339 2010-02-19 Tom Tromey <tromey@redhat.com>
3341 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
3342 * m2-typeprint.c (m2_print_type): Update.
3343 * gdbtypes.c (recursive_dump_type): Update.
3344 (copy_type_recursive): Update.
3345 * c-typeprint.c (c_type_print_varspec_prefix): Update.
3346 (c_type_print_base): Update.
3347 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
3349 (struct cplus_struct_type) <ntemplate_args>: Remove.
3350 <struct template_arg>: Remove.
3351 <is_dynamic>: Move earlier.
3352 (TYPE_TEMPLATE_ARGS): Remove.
3353 (TYPE_NTEMPLATE_ARGS): Remove.
3354 (TYPE_TEMPLATE_ARG): Remove.
3356 2010-02-19 Tom Tromey <tromey@redhat.com>
3358 PR c++/8693, PR c++/9496:
3359 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
3360 * c-exp.y (lex_one_token): Rename from yylex. Don't call
3361 write_dollar_variable. Don't try to classify NAME tokens.
3362 (token_and_value): New type.
3363 (token_fifo, popping, name_obstack): New globals.
3364 (classify_name): New function.
3365 (classify_inner_name): Likewise.
3367 (VARIABLE): Now has type sval.
3368 (exp : VARIABLE): Call write_dollar_variable.
3369 (qualified_name): Use TYPENAME, not typebase. Add production for
3370 multiple "::" instances.
3371 (variable): Use name_not_typename.
3372 (qualified_type): Remove.
3375 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3377 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
3378 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
3379 found by bfd_get_section_by_name.
3380 * symfile.h (struct section_addr_info) <sectindex>: New comment.
3382 2010-02-19 Joel Brobecker <brobecker@adacore.com>
3384 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
3385 7.0 section" into "Changes in 7.1".
3387 2010-02-19 Joel Brobecker <brobecker@adacore.com>
3389 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
3390 * version.in: Bump version to 7.1.50.20100219-cvs.
3392 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
3394 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
3395 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
3397 2010-02-17 Tom Tromey <tromey@redhat.com>
3399 * NEWS: Add Python API Improvements section.
3401 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
3403 * NEWS: Correct typo.
3405 2010-02-17 Tom Tromey <tromey@redhat.com>
3407 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
3409 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3411 * symfile.c (build_section_addr_info_from_objfile): Include sections
3412 only if they are SEC_ALLOC or SEC_LOAD.
3414 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
3417 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
3418 of ULONGEST for address size.
3420 2010-02-17 Tom Tromey <tromey@redhat.com>
3422 * NEWS: Add C++ improvements section.
3424 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
3426 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
3427 PyThreadState_Swap): Avoid "statement with no effect" warning.
3429 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3431 * solib-svr4.c (enable_break <target_auxv_search>): New variable
3432 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
3434 2010-02-17 Tristan Gingold <gingold@adacore.com>
3435 Petr HluzÃn <petr.hluzin@gmail.com>
3437 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
3438 gdb_assert. Fix info->size for SIG prologue.
3440 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3442 * infcmd.c (show_inferior_tty_command): Check for NULL.
3443 Correct output message.
3445 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3447 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
3448 FUNCTION contains parentheses. Improve removal of a trailing
3451 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3453 * gcore.c (do_bfd_delete_cleanup): New function.
3454 (gcore_command): Use it. Discard the cleanup after success.
3455 (gcore_copy_callback): Delete dead code.
3457 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3459 * symfile.c (addr_info_make_relative): Always use
3460 find_lowest_section.
3462 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
3464 * NEWS: Added entry for namespace fixes.
3466 2010-02-15 Tom Tromey <tromey@redhat.com>
3468 * dwarf2read.c (guess_structure_name): Allocate name on the
3471 2010-02-15 Tom Tromey <tromey@redhat.com>
3473 * c-typeprint.c (c_type_print_base): Reverse order of test.
3475 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3477 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
3478 initialize it from ELF BFD. Extend the prelink condition by it.
3480 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3482 * defs.h (parse_pid_to_attach): New.
3483 * utils.c (parse_pid_to_attach): New.
3484 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
3485 * gnu-nat.c (gnu_attach): Likewise.
3486 * nto-procfs.c (procfs_attach): Likewise.
3487 * procfs.c (procfs_attach): Likewise.
3488 * windows-nat.c (windows_attach): Likewise.
3489 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
3490 * inf-ttrace.c (inf_ttrace_attach): Likewise.
3491 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
3494 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
3496 * MAINTAINERS: Add myself for write after approval privileges.
3498 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3500 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
3503 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3505 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
3506 only if INFO_VERBOSE.
3508 2010-02-12 Tomas Holmberg <th@virtutech.com>
3510 * mi/mi-main.c: Added the --reverse flag to the following MI
3511 commands: exec-continue, exec-finish, exec-next, exec-step,
3512 exec-next-instruction, exec-step-instruction. This is to
3513 support reverse execution over the MI interface to gdb.
3515 2010-02-12 Pedro Alves <pedro@codesourcery.com>
3517 * tracepoint.c (_initialize_tracepoint): Specify that the address
3518 range of `tfind outsize' is exclusive, and that the address range
3519 of `tfind range' is inclusive, in the commands' help strings.
3521 2010-02-12 Joel Brobecker <brobecker@adacore.com>
3523 Spurious "dll not found" error messages on x64-windows.
3524 * windows-nat.c: Add include of complaints.h.
3525 (handle_unload_dll): Change dll-not-found error into a complaint.
3527 2010-02-12 Pedro Alves <pedro@codesourcery.com>
3529 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
3530 bp_tracepoint and bp_fast_tracepoint, not
3531 bp_loc_software_breakpoint.
3532 (update_global_location_list): Tracepoints are never duplicates of
3535 2010-02-12 Pedro Alves <pedro@codesourcery.com>
3537 * breakpoint.c (break_command_really): Change return type to int.
3538 Return false if no breakpoint was created, true otherwise.
3539 (trace_command): Don't set the tracepoint count if no tracepoint
3541 (ftrace_command): Ditto.
3542 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
3543 created in the breakpoints table.
3545 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3546 Ulrich Weigand <uweigand@de.ibm.com>
3548 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
3550 2010-02-11 Pedro Alves <pedro@codesourcery.com>
3552 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
3553 the offset value isn't of integral type.
3555 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3557 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
3560 2010-02-11 Pedro Alves <pedro@codesourcery.com>
3562 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
3563 non-subscriptable types.
3564 * valarith.c (binop_types_user_defined_p): New, abstracted out
3566 (binop_user_defined_p): ... this.
3567 * value.h (binop_types_user_defined_p): Declare.
3569 2010-02-11 Pedro Alves <pedro@codesourcery.com>
3571 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
3572 Merge uploaded TSVs before merging uploaded tracepoints.
3574 2010-02-11 Pedro Alves <pedro@codesourcery.com>
3576 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
3578 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
3580 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
3581 whitespace character after a dot in comment.
3582 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
3584 (list_args_or_locals): For the 'all' (that is
3585 -stack-list-variables) case, always output list of tuples.
3586 Output 'arg' field if variable is argument.
3588 2010-02-10 Tom Tromey <tromey@redhat.com>
3590 * parser-defs.h (parser_debug): Declare.
3591 * parse.c (_initialize_parse): Install "debug parser" set/show
3593 (parser_debug): New global.
3594 (show_parserdebug): New function.
3595 * c-exp.y (c_parse): Set yydebug.
3597 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
3599 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
3600 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
3601 (tdesc_predefined_types): Add i387_ext, i386_eflags and
3603 (tdesc_find_type): New.
3604 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
3605 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
3607 * target-descriptions.h (tdesc_find_type): New.
3609 2010-02-10 Michael Snyder <msnyder@vmware.com>
3611 * gdb-gdb.py: Comment fix.
3613 2010-02-09 Tristan Gingold <gingold@adacore.com>
3615 * machoread.c (macho_symfile_relocate): New function.
3616 (macho_sym_fns): Use macho_symfile_relocate instead of
3617 default_symfile_relocate.
3618 (macho_oso_data): New type.
3619 (current_oso): New variable.
3620 (macho_add_oso_symfile): Do not compute section_addr_info, but
3621 instead set vma of sections.
3622 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
3623 Set and clear current_oso.
3625 2010-02-09 Joel Brobecker <brobecker@adacore.com>
3627 Wrong type description for tagged type parameter.
3628 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
3629 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
3630 reference to a tagged type.
3632 2010-02-09 Tristan Gingold <gingold@adacore.com>
3634 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
3635 brothers of the parent.
3637 2010-02-08 Tom Tromey <tromey@redhat.com>
3641 * valops.c (search_struct_field): Make 'name' const.
3642 (search_struct_method): Likewise.
3643 (find_method_list): Make 'method' const.
3644 (value_struct_elt): Make 'name' and 'err' const.
3645 (value_find_oload_method_list): Make 'method' const.
3646 (find_overload_match): Make 'name' const.
3647 * eval.c (evaluate_subexp_standard): New locals function,
3649 <OP_FUNCALL>: Handle OP_SCOPE specially.
3651 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3653 * infrun.c (handle_inferior_event): Do not look up regcache
3654 for exited processes.
3656 2010-02-08 Chris Moller <moller@mollerware.com>
3659 * valarith.c (value_ptrdiff): Added a test for a zero type length,
3660 warn if found, and assume length = 1.
3662 2010-02-08 Chris Moller <cmoller@redhat.com>
3665 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
3666 cp_print_static_field) Fix use of obstacks.
3668 2010-02-08 Pedro Alves <pedro@codesourcery.com>
3670 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
3671 resumed LWPs as resumed.
3672 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
3673 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
3674 of throwing an internal error. If an LWP of a process we're not
3675 waiting for reports a signal, don't force collecting a SIGSTOP,
3676 and if it was breakpoint hit in non-stop mode, cancel it. Don't
3677 go through all LWPs cancelling breakpoints in non-stop mode.
3678 (resume_stopped_resumed_lwps): New.
3679 (linux_nat_wait): Use it.
3681 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
3683 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
3684 i386/amd64 and i386/amd64-linux.
3685 (i386/i386-expedite): New.
3686 (i386/i386-linux-expedite): Likewise.
3687 (i386/amd64-expedite):Likewise.
3688 (i386/amd64-linux-expedite): Likewise.
3689 ($(outdir)/i386/i386-linux.dat): Likewise.
3690 ($(outdir)/i386/amd64.dat): Likewise.
3691 ($(outdir)/i386/amd64-linux.dat): Likewise.
3693 * features/i386/32bit-core.xml: New.
3694 * features/i386/32bit-linux.xml: Likewise.
3695 * features/i386/32bit-sse.xml: Likewise.
3696 * features/i386/64bit-core.xml: Likewise.
3697 * features/i386/64bit-linux.xml: Likewise.
3698 * features/i386/64bit-sse.xml: Likewise.
3699 * features/i386/i386-linux.xml: Likewise.
3700 * features/i386/i386.xml: Likewise.
3701 * features/i386/amd64-linux.xml: Likewise.
3702 * features/i386/amd64.xml: Likewise.
3703 * features/i386/i386-linux.c: Likewise.
3704 * features/i386/i386.c: Likewise.
3705 * features/i386/amd64-linux.c: Likewise.
3706 * features/i386/amd64.c: Likewise.
3708 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
3711 * cp-support.h: Added char* alias element to using_direct data
3713 (cp_add_using): Added char* alias argument.
3714 (cp_add_using_directive): Ditto.
3715 * cp-namespace.c: Updated with the above changes.
3716 (cp_lookup_symbol_imports): Check for aliases.
3717 * dwarf2read.c (read_import_statement): Figure out local alias
3718 for the import and pass it on to cp_add_using.
3719 (read_namespace): Pass alias argument to cp_add_using.
3721 2010-02-05 Hui Zhu <teawater@gmail.com>
3723 * defs.h (gdb_bfd_errmsg): New extern.
3724 * exec.c (exec_file_attach): Change bfd_errmsg to
3726 * utils.c (AMBIGUOUS_MESS1): New macro.
3727 (AMBIGUOUS_MESS2): New macro.
3728 (gdb_bfd_errmsg): New function.
3730 2010-02-04 Doug Evans <dje@google.com>
3732 * solib-svr4.c (enable_break): Add comment.
3734 2010-02-04 Anthony Green <green@moxielogic.com>
3736 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
3739 2010-02-04 Tom Tromey <tromey@redhat.com>
3741 * valops.c (search_struct_field): Account for
3742 value_embedded_offset. Fix check for virtual base past the end of
3743 the object. Use value_copy when making a slice of the value.
3745 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
3748 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
3749 only if gdb_stdout is a tty.
3751 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
3753 * target-descriptions.c: Include "osabi.h".
3754 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
3757 2010-02-04 Tristan Gingold <gingold@adacore.com>
3759 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
3760 (macho_symtab_read): Adjust calls to macho_add_oso.
3761 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
3762 (macho_symfile_read): Adjust call to macho_oso_symfile.
3763 (macho_new_init): Move this function after declarations.
3764 (macho_symfile_init): Ditto.
3765 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
3766 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
3768 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
3770 Include MI command in remotelog.
3772 * mi/mi-main.c (mi_execute_command): Call target_log_command.
3774 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
3776 * remote.c (remote_state): Remove gdbarch.
3777 (init_remote_state): Don't set gdbarch.
3778 (remote_query_supported): Pass target_gdbarch instead of
3779 rs->gdbarch to gdbarch_qsupported.
3781 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
3783 * gdbarch.sh: Add qsupported.
3785 * gdbarch.c: Regenerated.
3786 * gdbarch.h: Likewise.
3788 * remote.c (remote_state): Add gdbarch.
3789 (init_remote_state): Set gdbarch.
3790 (remote_query_supported): Support gdbarch_qsupported.
3792 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
3794 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
3795 __FreeBSD_kernel_version.
3797 2010-02-03 Tristan Gingold <gingold@adacore.com>
3799 * symfile.h (struct sym_fns): Add sym_relocate field.
3800 (default_symfile_relocate): New prototype.
3801 (symfile_relocate_debug_section): First argument is now an objfile.
3802 * symfile.c (default_symfile_relocate): Rename from
3803 symfile_relocate_debug_section, first argument is now an objfile.
3804 (symfile_relocate_debug_section): New function.
3805 * coffread.c (coff_sym_fns): Set sym_relocate field.
3806 * somread.c (som_sym_fns): Ditto.
3807 * mipsread.c (ecoff_sym_fns): Ditto.
3808 * machoread.c (macho_sym_fns): Ditto.
3809 * elfread.c (elf_sym_fns): Ditto.
3810 * dwarf2read.c (dwarf2_read_section): Ditto.
3811 * xcoffread.c (xcoff_sym_fns): Ditto.
3812 * dbxread.c (aout_sym_fns): Ditto.
3813 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
3814 (elfstab_build_psymtabs): Ditto.
3816 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
3818 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
3820 2010-02-02 Tom Tromey <tromey@redhat.com>
3822 * valops.c (value_cast_structs): Try downcasting using the RTTI
3825 2010-02-02 Tom Tromey <tromey@redhat.com>
3827 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
3828 (gnuv2_baseclass_offset): Now static.
3829 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
3830 * gnu-v2-abi.h: Remove.
3832 2010-02-02 Tom Tromey <tromey@redhat.com>
3834 * m2-typeprint.c (m2_record_fields): Don't use
3836 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
3837 (struct main_type) <flag_declared_class>: New field.
3838 (struct cplus_struct_type) <declared_type>: Remove.
3839 <ntemplate_args>: Move earlier.
3840 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
3841 (DECLARED_TYPE_TEMPLATE): Remove.
3842 (TYPE_DECLARED_TYPE): Remove.
3843 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
3844 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
3845 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
3848 2010-02-02 Tom Tromey <tromey@redhat.com>
3850 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
3851 * valops.c (search_struct_field): Compute nbases after calling
3853 (check_field): Call CHECK_TYPEDEF.
3854 * cp-valprint.c (cp_print_value): Pass correct address to
3855 baseclass_offset. Fix check for virtual base past the end of the
3856 object. Don't offset address passed to cp_print_value_fields or
3857 apply_val_pretty_printer.
3858 (cp_print_value_fields): Fix call to val_print.
3859 (cp_print_value_fields_rtti): New function.
3860 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
3861 * p-valprint.c (pascal_object_print_value_fields): Fix call to
3863 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
3865 * language.h (struct language_defn) <la_val_print>: Document.
3866 * c-lang.h (cp_print_value_fields_rtti): Declare.
3868 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3871 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
3872 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
3873 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
3875 2010-02-01 Michael Matz <matz@suse.de>
3876 Daniel Jacobowitz <dan@codesourcery.com>
3878 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
3879 functions use a frame pointer.
3881 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3883 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
3884 by a conditional setting DYN_ADDR. Use DYN_ADDR.
3885 * config/djgpp/fnchange.lst: Add translations for
3886 symbol-without-target_section.exp and symbol-without-target_section.c.
3888 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3890 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
3891 (remote_breakpoint_for_pc): Correct invalid_p check.
3892 * gdbarch.c: Regenerated.
3894 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3896 * arm-tdep.c (arm_find_mapping_symbol): New function, from
3898 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
3899 (extend_buffer_earlier): New function.
3900 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
3901 (arm_adjust_breakpoint_address): New function.
3902 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
3904 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3906 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
3907 (arm_linux_thumb2_le_breakpoint): New constants.
3908 (arm_linux_init_abi): Set thumb2_breakpoint and
3909 thumb2_breakpoint_size.
3910 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
3911 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
3912 Implement support for single stepping through IT blocks if
3913 a 32-bit Thumb breakpoint instruction is available.
3914 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
3915 is available, use it when needed.
3916 (arm_remote_breakpoint_from_pc): New function.
3917 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
3918 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
3919 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
3921 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3923 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
3924 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
3925 * gdbarch.c, gdbarch.h: Regenerated.
3926 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
3927 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
3928 gdbarch_remote_breakpoint_from_pc.
3930 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
3932 * infrun.c (prepare_to_proceed): Handle other signals which might
3934 (handle_inferior_event): Move the check for unusual breakpoint
3937 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
3939 amd64 - function returning record with field straddling 2 registers.
3940 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
3941 a record of length <= 16 in which a field straddles the two
3944 2010-01-29 Joel Brobecker <brobecker@adacore.com>
3946 Implement return values on amd64-windows.
3947 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
3948 (amd64_windows_return_value): New function.
3949 (amd64_windows_init_abi): Call set_gdbarch_return_value with
3950 amd64_windows_return_value.
3952 2010-01-29 Joel Brobecker <brobecker@adacore.com>
3954 amd64-windows: 32 bytes allocated on stack by caller for integer
3955 parameter registers.
3956 * i386-tdep.h (struct gdbarch_tdep): Add new field
3957 integer_param_regs_saved_in_caller_frame.
3958 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3959 tdep->integer_param_regs_saved_in_caller_frame to 1.
3960 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3961 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3963 2010-01-29 Joel Brobecker <brobecker@adacore.com>
3965 amd64-windows: memory args passed by pointer during function calls.
3966 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3967 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3968 where tdep->memory_args_by_pointer is non-zero.
3969 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3970 tdep->memory_args_by_pointer to 1.
3972 2010-01-29 Joel Brobecker <brobecker@adacore.com>
3974 amd64-windows: Integer parameters in function calls.
3975 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3977 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3978 call_dummy_integer_regs, and classify.
3979 * amd64-tdep.h (amd64_classify): Add declaration.
3980 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3981 (amd64_reg_class): Delete, moved to i386-tdep.h.
3982 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3983 Replace call to amd64_classify by call to tdep->classify.
3984 (amd64_push_arguments): Get the list of registers to use for
3985 passing integer parameters from the gdbarch tdep structure,
3986 rather than using a hardcoded one. Replace calls to amd64_classify
3987 by calls to tdep->classify.
3988 (amd64_push_dummy_call): Get the register number used for
3989 the "hidden" argument from tdep->call_dummy_integer_regs.
3990 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3991 and tdep->call_dummy_integer_regs. Set tdep->classify.
3992 * amd64-windows-tdep.c: Add include of gdbtypes.h.
3993 (amd64_windows_dummy_call_integer_regs): New static global.
3994 (amd64_windows_classify): New function.
3995 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
3996 tdep->call_dummy_integer_regs and tdep->classify.
3998 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
4000 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
4001 for the new regcache. All callers updated.
4002 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
4003 (get_thread_arch_regcache): Do not set aspace here.
4004 * regcache.h (regcache_xmalloc): Update declaration.
4006 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
4007 regcache_xmalloc updated.
4009 2010-01-28 Joel Brobecker <brobecker@adacore.com>
4011 Another -Wunused-function error in procfs.c (sparc-solaris)
4012 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
4013 Only define if SYS_syssgi is defined.
4014 (remove_dbx_link_breakpoint): Delete declaration. Move up.
4015 (dbx_link_addr, insert_dbx_link_bpt_in_file)
4016 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
4019 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
4021 * windows-nat.c (windows_initialization_done): New variable.
4022 (get_windows_debug_event): Issue error when process dies before
4023 completely initializing.
4024 (do_initial_windows_stuff): Set flag to indicate when we are done with
4025 the initial steps of attaching to the child.
4027 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4029 * symtab.h (struct symbol <symtab>): New comment on NULL values.
4031 2010-01-27 Doug Evans <dje@google.com>
4033 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
4035 * breakpoint.c (bpstat_stop_status): Delete useless code.
4037 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4039 * printcmd.c (display_uses_solib_p): Remove variable section. Access
4040 objfile via SYMBOL_SYMTAB.
4042 2010-01-26 Tom Tromey <tromey@redhat.com>
4045 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
4046 coerce_array on result.
4048 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
4050 * cp-namespace.c (cp_lookup_symbol_namespace): Added
4051 search_parent argument.
4052 (cp_add_using): Initialize 'searched' field.
4053 (reset_directive_searched): New function.
4054 * cp-support.h: Add 'searched' field to using_direct struct.
4055 (cp_lookup_symbol_imports): Ditto.
4056 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
4057 Perform recursive search.
4058 Implement non parent search.
4059 * valops.c (value_maybe_namespace_elt): Updated.
4061 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
4064 * dwarf2read.c (read_lexical_block_scope): Create blocks for
4065 scopes which contain using directives even if they contain no
4067 * symtab.c (lookup_symbol_aux): Pass lowest level block to
4068 la_lookup_symbol_nonlocal.
4069 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
4070 cp_lookup_symbol_namespace.
4071 (cp_lookup_symbol_namespace): Perform an import lookup at every
4073 (cp_lookup_symbol_imports): New function.
4074 (cp_lookup_symbol_in_namespace): New function.
4076 2010-01-25 Tom Tromey <tromey@redhat.com>
4079 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
4082 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4084 * configure.ac: Only use host_os part when disabling TUI on osf.
4085 Use test to check variables, prefix strings with x.
4086 * configure: Regenerate.
4088 * solib-osf.c (osf_current_sos): Initialize tail.
4090 2010-01-25 gingold <gingold@adacore.com>
4092 * windows-nat.c (windows_continue): Use %x to print thread id.
4093 (get_windows_debug_event): Ditto.
4095 2010-01-22 Tom Tromey <tromey@redhat.com>
4098 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
4099 type and arguments. Use smash_to_methodptr_type.
4100 (read_structure_type): Call quirk_gcc_member_function_pointer
4102 * gdbtypes.h (smash_to_methodptr_type): Declare.
4103 * gdbtypes.c (smash_to_methodptr_type): New function.
4104 (lookup_methodptr_type): Use it.
4106 2010-01-21 Tom Tromey <tromey@redhat.com>
4109 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
4110 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
4111 * glibc-tdep.c (find_minsym_and_objfile): Remove.
4112 (glibc_skip_solib_resolver): Use
4113 lookup_minimal_symbol_and_objfile.
4115 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
4117 * inflow.c (check_syscall): Guard by #if clause for GO32 and
4120 2010-01-20 Tom Tromey <tromey@redhat.com>
4123 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
4124 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
4125 * dwarf2expr.c (new_dwarf_expr_context): Allocate
4126 dwarf_stack_values, not CORE_ADDRs.
4127 (execute_stack_op): Change DW_OP_div and comparison operators to
4128 use signed operands.
4130 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
4132 Per-inferior args and tty and environment.
4134 * infcmd.c (inferior_args): Rename to ...
4135 (inferior_args_scratch): ... this.
4136 (inferior_io_terminal): Rename to ...
4137 (inferior_io_terminal_scratch): ... this.
4138 (inferior_argc, inferior_argv): Remove.
4139 (set_inferior_io_terminal, get_inferior_io_terminal): Store
4140 inside current_inferior().
4141 (set_inferior_tty_command, show_inferior_tty_command): New.
4142 (get_inferior_args, set_inferior_args): Store inside
4144 (notice_args_set): Likewise and rename to...
4145 (set_args_command): ... this.
4146 (set_inferior_args_vector): Likewise.
4147 (notice_args_read): Rename to...
4148 (show_args_command): ...new.
4149 (tty_command): Remove.
4150 (run_command_1): Don't free old args, as they are freed by
4151 set_inferior_arg now.
4152 (run_no_args_command): Likewise.
4153 (inferior_environ): Remove.
4154 (run_command_1): Use environment of the current inferior.
4155 (environment_info, set_environment_command)
4156 (unset_environment_command, path_info, path_command): Likewise.
4157 (_initialize_infcmd): Adjust for function and variable renames.
4158 Do not init inferior_environ.
4159 * inferior.h (set_inferior_arg): Adjust prototype.
4160 (struct inferior): New fields args, argc, argv, terminal, environment.
4161 (inferior_environ): Remove declaration.
4162 * inferior.c (free_inferior): Free new fields.
4163 (add_inferior_silent): Initialize 'environment' field.
4164 * main.c (captured_main): Set arguments only after the initial
4165 inferior has been created. Set set_inferior_io_terminal,
4167 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
4169 (_initialize_mi_cmd_env): Adjust for disappearance of global
4171 * solib.c (solib_find): Use environment of the current inferior.
4173 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4175 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
4177 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
4179 2010-01-20 Joel Brobecker <brobecker@adacore.com>
4181 Get rid of ada-lang.c:function_name_from_pc.
4182 * ada-lang.c: Add "stack.h" #include.
4183 (function_name_from_pc): Delete.
4184 (is_known_support_routine): Replace call to function_name_from_pc
4185 by call to find_frame_funname.
4186 (ada_unhandled_exception_name_addr_from_raise): Likewise.
4188 2010-01-19 Tom Tromey <tromey@redhat.com>
4191 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
4194 2010-01-19 Tom Tromey <tromey@redhat.com>
4196 * top.c (stop_sig, float_handler, do_nothing): Remove.
4198 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4200 * breakpoint.c (watchpoint_check): Check the call
4201 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
4203 * config/djgpp/fnchange.lst: Add translations for
4204 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
4205 watchpoint-cond-gone-stripped.c.
4207 2010-01-19 Tom Tromey <tromey@redhat.com>
4210 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
4211 into parent scope, and enumerator into grandparent scope.
4213 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4215 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
4217 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4219 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
4220 i[34567]86-*-solaris2.1[0-9]*.
4221 * configure.tgt: Likewise.
4223 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4225 * NEWS: Document the source command enhancement allowing it
4226 to load Python scripts. Document the "set/show script-extension"
4229 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4231 Add -Wunused-function to compile flags.
4232 * configure.ac: Add -Wunused-function to build_warnings.
4233 * configure: Regenerate.
4235 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4237 "delete" ada-lex.c:input function, not used.
4238 * ada-lex.l: #define YY_NO_INPUT.
4240 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4242 Delete free_named_symtabs and associated cleanup.
4243 * symfile.h (free_named_symtabs): Delete declaration.
4244 * symfile.c: Remove some commented out code (clear_symtab_users_once).
4245 (cashier_psymtab): Comment function out.
4247 (free_named_symtabs): Delete.
4248 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
4249 * dbxread.c (end_psymtab): Likewise.
4250 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
4251 * exec.c (exec_close_1): Ditto.
4252 * xcoffread.c (xcoff_end_psymtab): Likewise.
4254 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4256 * stack.c (print_block_frame_labels): Comment function out.
4258 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4260 Delete unused or undefined functions.
4261 * breakpoint.c (ep_parse_optional_filename): Delete.
4262 * dcache.c (dcache_write_line): Remove declaration.
4263 * infrun.c (build_infrun): Remove declaration.
4264 * tracepoint.c (tracepoint_save_command): Remove declaration.
4265 * linux-nat.c (init_lwp_list): Delete. No longer used.
4266 * event-loop.c (check_async_signal_handlers): Delete declaration.
4267 * infrun.c (init_execution_control_state): Delete.
4268 (proceed): Update comment to avoid mentioning
4269 init_execution_control_state.
4270 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
4271 * ada-lang.c (ada_to_static_fixed_value): Delete.
4272 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
4273 * cp-namespace.c (cp_copy_usings): Delete.
4274 * xml-syscall.c (xml_number_of_syscalls): Delete.
4275 * progspace.c (find_program_space_by_num): Delete.
4276 * inflow.c (handle_sigio): Delete declaration.
4277 * hppa-tdep.c (hppa_alignof): Delete.
4278 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
4279 (mipsnbsd_core_osabi_sniffer): Delete.
4281 2010-01-18 Tom Tromey <tromey@redhat.com>
4284 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
4285 (CONST_CAST): New tokens.
4286 (exp): Add new productions.
4287 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
4289 (is_cast_operator): New function.
4290 (yylex): Handle cast operators specially.
4291 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
4292 UNOP_REINTERPRET_CAST>: New cases.
4293 * expprint.c (print_subexp_standard): Likewise.
4294 (op_name_standard): Likewise.
4295 (dump_subexp_body_standard): Likewise.
4296 * parse.c (operator_length_standard): Likewise.
4297 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
4298 UNOP_REINTERPRET_CAST.
4299 * gdbtypes.c (class_types_same_p): New function.
4300 (is_ancestor): Use it.
4301 (is_public_ancestor): New function.
4302 (is_unique_ancestor_worker): Likewise.
4303 (is_unique_ancestor): Likewise.
4304 * gdbtypes.h (class_types_same_p, is_public_ancestor)
4305 (is_unique_ancestor): Declare.
4306 * valops.c (value_reinterpret_cast): New function.
4307 (dynamic_cast_check_1): Likewise.
4308 (dynamic_cast_check_2): Likewise.
4309 (value_dynamic_cast): Likewise.
4310 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
4312 2010-01-18 Joel Brobecker <brobecker@adacore.com>
4314 Fix build failure when building without Python support.
4315 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
4318 2010-01-18 Joel Brobecker <brobecker@adacore.com>
4320 Use XVS field type instead of doing a parallel lookup.
4321 * ada-lang.c (ada_get_base_type): Follow the XVS field type
4322 if it is a reference type instead of doing a type lookup using
4325 2010-01-18 Joel Brobecker <brobecker@adacore.com>
4327 Trust PAD types instead of using PAD___XVS.
4328 * ada-lang.c (trust_pad_over_xvs): New static variable.
4329 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
4330 parallel XVS type, follow the XVS type instead of the PAD type.
4331 (unwrap_value): Make sure that there is no parallel XVE type
4332 before returning the value as is.
4333 (set_ada_list, show_ada_list): New static variables.
4334 (set_ada_command, show_ada_command): New functions.
4335 (_initialize_ada_language): Add new "set/show ada" prefix commands.
4336 Add new "set/show ada trust-PAD-over-XVS" setting.
4338 2010-01-18 Tom Tromey <tromey@redhat.com>
4339 Thiago Jung Bauermann <bauerman@br.ibm.com>
4341 Allow "source" to load python scripts.
4342 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
4343 * python/python.c (source_python_script): New function.
4344 * python/python.h (source_python_script): Add declaration.
4345 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
4346 (script_ext_off, script_ext_soft, script_ext_strict)
4347 (script_ext_enums, script_ext_mode): New static constants.
4348 (show_script_ext_mode, find_and_open_script): New functions.
4349 (source_script): Enhance to handle Python scripts.
4350 (init_cli_cmds): Add set/show script-extension commands.
4352 2010-01-16 Stan Shebs <stan@codesourcery.com>
4354 * tracepoint.h (struct trace_status): Use unsigned long long
4356 * tracepoint.c (trace_status_command): Fix printf directive.
4357 (trace_save_command): Check fwrite returns, fix printf directive.
4358 (trace_filename): New global.
4359 (tfile_open): Set it, check read returns.
4360 (tfile_close): Free trace_filename.
4361 (tfile_get_traceframe_address): Check read returns.
4362 (tfile_trace_find): Ditto.
4363 (tfile_fetch_registers): Ditto.
4364 (tfile_xfer_partial): Ditto.
4365 (tfile_get_trace_state_variable_value): Ditto.
4367 2010-01-15 Stan Shebs <stan@codesourcery.com>
4369 Add trace file support.
4370 * tracepoint.h (enum trace_stop_reason): New enum.
4371 (struct trace_status): New struct.
4372 (parse_trace_status): Declare.
4373 (struct uploaded_tp): Move here from remote.c,
4374 add fields for actions.
4375 (struct uploaded_tsv): New struct.
4376 * tracepoint.c (tfile_ops): New target vector.
4377 (trace_fd): New global.
4378 (tfile_open): New function.
4379 (tfile_close): New function.
4380 (tfile_files_info): New function.
4381 (tfile_get_trace_status): New function.
4382 (tfile_get_traceframe_address): New function.
4383 (tfile_trace_find): New function.
4384 (tfile_fetch_registers): New function.
4385 (tfile_xfer_partial): New function.
4386 (tfile_get_trace_state_variable_value): New function.
4387 (init_tfile_ops): New function.
4388 (_initialize_tracepoint): Call it, add tfile target.
4389 (trace_status): New global.
4390 (current_trace_status): New function.
4391 (trace_running_p): Remove, change all users to get from
4392 current_trace_status()->running.
4393 (get_trace_status): Remove.
4394 (trace_status_command): Call target_get_trace_status directly,
4395 report more detail including tracing stop reasons.
4396 (trace_find_command): Always allow tfind on a file.
4397 (trace_find_pc_command): Ditto.
4398 (trace_find_tracepoint_command): Ditto.
4399 (trace_find_line_command): Ditto.
4400 (trace_find_range_command): Ditto.
4401 (trace_find_outside_command): Ditto.
4402 (trace_frames_offset, cur_offset): Declare as off_t.
4403 (trace_regblock_size): Rename from reg_size, update users.
4404 (parse_trace_status): New function.
4405 (tfile_interp_line): New function.
4406 (disconnect_or_stop_tracing): Ensure current trace
4407 status before asking what to do.
4408 (stop_reason_names): New global.
4409 (trace_save_command): New command.
4410 (get_uploaded_tp): Move here from remote.c.
4411 (find_matching_tracepoint): Ditto.
4412 (merge_uploaded_tracepoints): New function.
4413 (parse_trace_status): Use stop_reason_names.
4414 (_initialize_tracepoint): Define tsave command.
4415 * target.h (target_ops): New fields to_save_trace_data,
4416 to_upload_tracepoints, to_upload_trace_state_variables,
4417 to_get_raw_trace_data, change to_get_trace_status
4418 to take a pointer to a status struct.
4419 (target_save_trace_data): New macro.
4420 (target_upload_tracepoints): New macro.
4421 (target_upload_trace_state_variables): New macro.
4422 (target_get_raw_trace_data): New macro.
4423 * target.c (update_current_target): Add new methods, change
4424 signature of to_get_trace_status.
4425 * remote.c (hex2bin): Make globally visible.
4427 (remote_download_trace_state_variable): Download name also.
4428 (remote_get_trace_status): Update parameter, use
4430 (remote_save_trace_data): New function.
4431 (remote_upload_tracepoints): New function.
4432 (remote_upload_trace_state_variables): New function.
4433 (remote_get_raw_trace_data): New function.
4434 (remote_start_remote): Use them.
4435 (_initialize_remote_ops): Add operations.
4436 * ax-gdb.c: Include breakpoint.h.
4437 * breakpoint.c (create_tracepoint_from_upload): Use
4438 break_command_really, return tracepoint, warn about unimplemented
4440 * NEWS: Mention trace file addition.
4442 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4444 Fix compilation warning on gcc-3.4.
4445 * exec.c (print_section_info): Move the `displacement' variable
4446 initialization to its declaration.
4448 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4450 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
4453 2010-01-15 Eric Botcazou <botcazou@adacore.com>
4455 "info tasks" broken by typedefs in ATCB type definitions.
4456 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
4457 ada_check_typedef before retrieving the length of the type for
4460 2010-01-15 Joel Brobecker <brobecker@adacore.com>
4462 Do not use name-based lookup for unconstrained packed arrays.
4463 * ada-lang.c (find_parallel_type_by_descriptive_type):
4464 Limit the fallback to name-based lookups to the case where
4465 the type is a constrained packed array.
4467 2010-01-15 Joel Brobecker <brobecker@adacore.com>
4469 Enhance gdb-gdb.py to handle main_type.type_specific.
4470 * gdb-gdb.py: Print the type-specific part of struct main_type.
4472 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4474 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
4475 * configure: Regenerate.
4476 * config.in: Regenerate.
4477 * utils.c: Include sys/resource.h.
4478 (dump_core, can_dump_core): New.
4479 (internal_vproblem): Update the comment. Check can_dump_core while
4480 setting dump_core_p. Replace two abort calls by dump_core calls.
4482 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4483 Eli Zaretskii <eliz@gnu.org>
4485 * NEWS: Document the PIE support.
4487 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4489 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
4490 (check_is_pie_binary, _initialize_linux_tdep): Remove.
4492 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4494 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
4495 Replace exec_entry_point call by bfd_get_start_address.
4497 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4499 Support Valgrind attachments broken by the PIE support.
4500 * auxv.c: Include gdbcore.h.
4501 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
4502 parameters ops, object and annex. Remove their assertions.
4503 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
4504 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
4505 (memory_xfer_auxv): ... here.
4506 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
4508 * procfs.c (procfs_xfer_partial): Likewise.
4509 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
4510 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
4511 (svr4_solib_create_inferior_hook): Conditionalize the
4512 svr4_relocate_main_executable call.
4514 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4516 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
4517 target_section. Find SECT in current_target_sections, gdb_assert it.
4518 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
4520 * symtab.c (lookup_objfile_from_block): Return the binary file instead
4521 of separate debug info file.
4523 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4525 Support PIEs with no symfile_objfile.
4526 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
4527 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
4529 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4531 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
4533 (svr4_static_exec_displacement): ... a new function.
4534 (svr4_exec_displacement): New function.
4535 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
4536 new_offsets using alloca now. Remove variable old_chain and changed.
4537 Call objfile_relocate unconditionally now.
4539 2010-01-14 Doug Evans <dje@google.com>
4541 * gdbtypes.c (arch_flags_type): Fix comment.
4542 * gdbtypes.h (arch_composite_type): Fix comment.
4544 2009-01-14 Tristan Gingold <gingold@adacore.com>
4546 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
4547 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
4548 to symbol_file_add_from_bfd. Add OSO as separate objfile.
4549 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
4550 macho_add_oso_symfile.
4551 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
4553 2010-01-14 Joel Brobecker <brobecker@adacore.com>
4555 Tru64: Dead threads are never deleted.
4556 * dec-thread.c (dec_thread_ptid_is_alive): New function.
4557 (dec_thread_count_gdb_threads): Fix counter increment.
4558 (dec_thread_add_gdb_thread): Fix *listp increment.
4559 (resync_thread_list): Fix bug in deletion of dead threads that
4560 caused all threads to be deleted, instead of just the dead ones.
4562 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
4566 * python/python-internal.h: Add lazy_string_object_type
4568 (create_lazy_string_object, gdbpy_initialize_lazy_string)
4569 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
4570 * python/py-value.c (valpy_lazy_string): New function.
4571 (convert_value_from_python): Add lazy string conversion.
4572 * python/py-prettyprint.c (pretty_print_one_value): Check if
4573 return is also a lazy string.
4574 (print_string_repr): Add lazy string printing branch.
4575 (print_children): Likewise.
4576 * python/py-lazy-string.c: New file. Implement lazy strings.
4577 * python/python.c (_initialize_python): Call
4578 gdbpy_initialize_lazy_string.
4579 * varobj.c (value_get_print_value): Add lazy string printing
4580 branch. Account for encoding.
4581 * c-lang.c (c_printstr): Account for new encoding argument. If
4582 encoding is NULL, find encoding suited for type, otherwise use
4584 * language.h (language_defn): Add encoding argument.
4585 (LA_PRINT_STRING): Likewise.
4586 * language.c (unk_lang_printstr): Update to reflect new encoding
4587 argument to language_defn.
4588 * ada-lang.h (ada_printstr): Likewise.
4589 * c-lang.h (c_printstr): Likewise.
4590 * p-lang.h (pascal_printstr);
4591 * f-lang.c (f_printstr): Likewise.
4592 * m2-lang.c (m2_printstr): Likewise.
4593 * objc-lang.c (objc_printstr): Likewise.
4594 * p-lang.c (pascal_printstr): Likewise.
4595 * scm-lang.c (scm_printstr): Likewise.
4596 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
4598 * ada-valprint.c (ada_printstr): Likewise.
4599 * f-valprint.c (f_val_print): Likewise
4600 * m2-valprint.c (m2_val_print): Likewise.
4601 * p-valprint.c (pascal_val_print): Likewise.
4602 * expprint.c (print_subexp_standard): Likewise.
4603 * valprint.c (val_print_string): Likewise.
4604 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
4605 (SUBDIR_PYTHON_SRCS): Likewise.
4606 (py-lazy-string.o): New rule.
4608 2010-01-13 Doug Evans <dje@google.com>
4610 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
4611 uninitialized" warning from gcc on local `tree'.
4613 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
4615 Implement core awareness.
4617 * bcache.c (compare_ints): Remove
4618 (print_percentage): Use compare_positive_ints.
4619 * defs.h (compare_positive_ints): Declare.
4620 * linux-nat.h (struct lin_lwp): New field core.
4621 (linux_nat_core_of_thread_1): Declare.
4622 * linux-nat.c (add_lwp): Init the 'core' field.
4623 (linux_nat_wait_1): Record the core.
4624 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
4625 (linux_nat_add_target): Register the above.
4626 * linux-thread-db.c (update_thread_core): New.
4627 (thread_db_find_new_threads): Update core information for
4629 * remote.c (struct private_thread_info): New.
4630 (free_private_thread_info, demand_private_info): New.
4631 (PACKET_qXfer_threads, use_osdata_threads): New.
4632 (struct thread_item, threads_parsing_context
4633 (start_thread, end_thread, thread_attributes)
4634 (thread_children, threads_children, threads_elements): New.
4635 (remote_threads_info): Try qXfer:threads before anything
4637 (remote_protocol_packets): Register qXfer:threads.
4638 (remote_open_1): Init use_osdata_threads.
4639 (struct stop_reply): New field 'core'.
4640 (remote_parse_stop_reply): Parse core number.
4641 (process_stop_reply): Record core number.
4642 (remote_xfer_partial): Handle qXfer:threads.
4643 (remote_core_of_thread): New.
4644 (init_remote_ops): Register remote_core_of_thread.
4645 (_initialize_remote): Register qXfer:read.
4646 * target.c (target_core_of_thread): New
4647 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
4648 (struct target_ops): New field to_core_of_threads.
4649 (target_core_of_thread): Declare.
4650 * gdbthread.h (struct thread_info): New field private_dtor.
4651 * thread.c (print_thread_info): Report the core.
4652 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
4653 * utils.c (compare_positive_ints): New.
4654 * features/threads.dtd: New.
4655 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
4656 * mi/mi-main.c (struct collect_cores_data, collect_cores)
4657 (do_nothing, free_vector_of_osdata_items)
4658 (splay_tree_int_comparator, free_splay_tree): New.
4659 (print_one_inferior_data): Implemented printing of selected
4660 inferiors. Collect and print cores.
4661 (output_cores): New.
4662 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
4663 thread groups together with --available.
4665 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4667 * configure: Regenerate (for _STRUCTURED_PROC).
4669 2010-01-12 Joel Brobecker <brobecker@adacore.com>
4671 Delete dead function.
4672 * ada-lang.c (extract_string): Delete. No longer used.
4674 2010-01-12 Joel Brobecker <brobecker@adacore.com>
4676 Fix -Wunused warning in dec-thread.c.
4677 * dec-thread.c (dec_thread_count_gdb_threads)
4678 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
4680 2010-01-12 Joel Brobecker <brobecker@adacore.com>
4682 * ada-valprint.c (ada_print_floating): Remove trailing space.
4684 2010-01-12 Joel Brobecker <brobecker@adacore.com>
4686 Add support for DW_AT_GNAT_descriptive_type.
4687 * gdbtypes.h (enum type_specific_kind): New enum.
4688 (struct main_type) [type_specific_field]: New component.
4689 [type_specific]: Add new component "gnat_stuff".
4690 (struct gnat_aux_type): New type.
4691 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
4692 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
4693 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
4694 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
4695 (TYPE_SPECIFIC_FIELD): New macros.
4696 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
4697 type does not hold any cplus-specific data.
4698 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
4699 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
4700 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
4701 cplus-specific data.
4702 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
4703 Set new component TYPE_SPECIFIC_FIELD (type).
4704 (gnat_aux_default): New constant.
4705 (allocate_gnat_aux_type): New function.
4706 (init_type): Add initialization the type-specific stuff for
4707 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
4708 (print_gnat_stuff): New function.
4709 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
4710 specific data. Adjust code that prints the contents of the
4711 type-specific union using the TYPE_SPECIFIC_FIELD value.
4712 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
4713 the type cplus stuff for Ada types.
4714 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
4715 Error out if these routines are called with an Ada type.
4716 (read_structure_type, read_array_type, read_subrange_type):
4717 Add call to set_descriptive_type.
4718 (set_die_type): Initialize the gnat-specific data if necessary.
4719 (need_gnat_info, die_descriptive_type, set_descriptive_type):
4721 * ada-lang.c (decode_constrained_packed_array_type): Use
4722 decode_constrained_packed_array_type instead of doing a standard
4723 lookup to locate a parallel type.
4724 (find_parallel_type_by_descriptive_type): New function.
4725 (ada_find_parallel_type_with_name): New function.
4726 (ada_find_parallel_type): Reimplement using
4727 ada_find_parallel_type_with_name.
4728 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
4729 to check if type has a cplus stuff.
4730 * linespec.c (total_number_of_methods): Likewise.
4731 * mdebugread.c (new_type): Likewise.
4733 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4735 * NEWS: Document the 0b binary number prefix parsing.
4737 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4739 * objfiles.c (objfile_relocate1): Change the return type to int.
4740 Describe the new return value. Return non-zero if data changed.
4741 (objfile_relocate): New variable changed. Set it. Call
4742 breakpoint_re_set depending on CHANGED.
4744 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4746 Implement binary numbers parsing.
4747 * c-exp.y (parse_number): New case 'b' and 'B'.
4749 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4750 Tristan Gingold <gingold@adacore.com>
4752 * solib.c (info_sharedlibrary_command): Replace
4753 objfile_has_partial_symbols and objfile_has_full_symbols calls by
4754 objfile_has_symbols.
4756 2010-01-10 Joel Brobecker <brobecker@adacore.com>
4758 * NEWS: Document the improvements made to the mips-irix port.
4760 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4762 Fix the documentation of valprint.c:value_print.
4763 * valprint.c (value_print): Update the function description to
4764 mention that the syntax of the output follows the current_language,
4767 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4769 Fix displacement of separate debug info files.
4770 * objfiles.c (objfile_relocate): Rename to ...
4771 (objfile_relocate1): ... here and make it static. Extend the comment.
4772 (objfile_relocate): New function.
4773 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
4774 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
4775 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
4776 allocated using alloca.
4777 * symfile.c (copy_section_addr_info): Remove.
4778 (build_section_addr_info_from_objfile): Make it global. New variables
4779 addr_bit and mask, use them.
4780 * symfile.h (build_section_addr_info_from_objfile): New prototype.
4781 (copy_section_addr_info): Remove.
4783 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4785 Signal unwinder for mips-irix N32.
4786 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
4788 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
4789 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
4790 (SIGCONTEXT_LO_OFF): New macros.
4791 (mips_irix_n32_tramp_frame_init): New function.
4792 (mips_irix_n32_tramp_frame): New static constant.
4793 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
4795 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4797 Breakpoint in shared library does not work on mips-irix.
4798 * procfs.c: #include "observer.h".
4799 (procfs_inferior_created): New function, moving here the code
4800 which unsets the syssgi syscall-exit notifications.
4801 (procfs_create_inferior): Remove the code which unsets the syssgi
4802 syscall-exit notifications. It is too early to do this here.
4803 (_initialize_procfs): Attach the procfs_inferior_created observer.
4805 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4807 Wrong return convention for arrays (mips-irix).
4808 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
4809 128 bits or smaller are returned the same way as structs
4810 and unions of the the same size.
4812 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4814 Cannot set the PC on mips-irix.
4815 * irix5-nat.c (fill_gregset): Check regno against the raw PC
4816 register number, no the cooked one.
4818 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4820 Error while loading core file on mips-irix.
4821 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
4822 if debugging from a core file.
4824 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4826 GDB hangs when attaching to process on mips-irix.
4827 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
4828 attaching to a process.
4830 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4832 Use the correct breakpoint instruction on mips-irix.
4833 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
4834 containing the correct breakpoint instruction to use on mips-irix.
4835 Use it when the osabi is GDB_OSABI_IRIX.
4837 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4839 -Wunused warning in procfs.c (mips-irix only).
4840 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
4841 throughout instead of using praddset and prdelset respectively.
4843 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4845 GDB crash while stepping into function.
4846 * infrun.c (handle_inferior_event): Refetch the current frame
4847 after handling what.main_action, in case that pointer became
4850 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4852 Fix build failure of solaris-hosted cross debuggers.
4853 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
4855 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4857 Fix build failure on sparc-solaris.
4858 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
4860 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4862 Move some symfile code into subroutines.
4863 * symfile.h (relative_addr_info_to_section_offsets)
4864 (addr_info_make_relative): New prototypes.
4865 * symfile.c (default_symfile_offsets): Move a part to ...
4866 (relative_addr_info_to_section_offsets): ... this new function.
4867 (default_symfile_offsets): Call it.
4868 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
4870 (addr_info_make_relative): ... this new function.
4872 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4874 Add from_tty to solib_create_inferior_hook.
4875 * infcmd.c (post_create_inferior): Move solib_add after
4876 solib_create_inferior_hook. Pass from_tty to
4877 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
4878 0 from_tty and comment why.
4879 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
4880 * linux-nat.c (linux_child_follow_fork): Likewise.
4881 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
4882 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
4884 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
4885 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4886 * solib-null.c (null_solib_create_inferior_hook): Likewise.
4887 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4888 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
4889 * solib-som.c (som_solib_create_inferior_hook): Likewise.
4890 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
4891 Pass it to svr4_so_ops.solib_create_inferior_hook.
4892 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
4894 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
4896 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
4898 * solib-target.c (solib_target_solib_create_inferior_hook): New
4900 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
4901 it to ops->solib_create_inferior_hook.
4902 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
4903 Move solib_add after solib_create_inferior_hook, call it now with
4904 from_tty as 0. New comment there.
4905 * solib.h (solib_create_inferior_hook): New parameter from_tty.
4906 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
4909 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
4912 * infrun.c (handle_inferior_event): Use get_thread_regcache
4913 with events ptid, not get_current_regcache.
4915 2009-01-08 Joel Brobecker <brobecker@adacore.com>
4917 GDB crash with empty executable name (MinGW).
4918 * source.c (openp): Add assert that parameter string is not NULL.
4919 if parameter string is an empty string, then return with a failure
4922 2009-01-08 Joel Brobecker <brobecker@adacore.com>
4924 Get rid of support for VAX Floats.
4925 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
4926 (ada_vax_float_print_function): Delete.
4927 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
4928 (ada_vax_float_print_function): Delete.
4929 * ada-typeprint.c (print_vax_floating_point_type): Delete.
4930 (ada_print_type): Remove support for VAX floats.
4931 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
4933 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4935 * stabsread.c (read_args): Handle zero arguments.
4937 2009-01-08 Joel Brobecker <brobecker@adacore.com>
4939 Cannot find in-tree libiconv.a after reconfigure.
4940 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
4941 that we can use, then cache the path to this archive.
4942 * configure: Regenerate.
4944 2010-01-07 Stan Shebs <stan@codesourcery.com>
4946 Make tracepoint operations go through target vector.
4947 * target.h (enum trace_find_type): New enum.
4948 (struct target_ops): New fields to_trace_init,
4949 to_download_tracepoint, to_download_trace_state_variable,
4950 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
4951 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
4952 to_set_disconnected_tracing.
4953 (target_trace_init): New macro.
4954 (target_download_tracepoint): New macro.
4955 (target_download_trace_state_variable): New macro.
4956 (target_trace_start): New macro.
4957 (target_trace_set_readonly_regions): New macro.
4958 (target_get_trace_status): New macro.
4959 (target_trace_stop): New macro.
4960 (target_trace_find): New macro.
4961 (target_get_trace_state_variable_value): New macro.
4962 (target_set_disconnected_tracing): New macro.
4963 * target.c (update_current_target): Inherit and set defaults for
4964 tracepoint operations.
4965 * tracepoint.c (default_collect): Make globally visible.
4966 (target_is_remote): Remove, along with all calls.
4967 (tvariables_info): Call target_get_trace_state_variable_value.
4968 (remote_set_transparent_ranges): Remove.
4969 (trace_start_command): Call target_trace_init,
4970 target_download_tracepoint, etc.
4971 (download_tracepoint): Remove.
4972 (trace_stop_command): Simplify.
4973 (stop_tracing): Call target_trace_stop.
4974 (get_trace_status): Call target_get_trace_status.
4975 (trace_status_command): Add case for targets that cannot trace.
4976 (finish_tfind_command): Change to take numerical arguments, call
4978 (trace_find_command): Update call to finish_tfind_command.
4979 (trace_find_pc_command): Ditto.
4980 (trace_find_tracepoint_command): Ditto.
4981 (trace_find_line_command): Ditto.
4982 (trace_find_range_command): Ditto.
4983 (trace_find_outside_command): Ditto.
4984 (set_disconnected_tracing_value): Call
4985 target_set_disconnected_tracing.
4986 * remote.c: Add protocol encoding bits from tracepoint.c.
4987 (trace_error): Move from tracepoint.c.
4988 (remote_get_noisy_reply): Ditto.
4989 (free_actions_list_cleanup_wrapper): Ditto.
4990 (free_actions_list): Ditto.
4991 (remote_trace_init): New function.
4992 (remote_download_tracepoint): New function.
4993 (remote_download_trace_state_variable): New function.
4994 (remote_trace_set_readonly_regions): New function.
4995 (remote_trace_start): New function.
4996 (remote_get_trace_status): New function.
4997 (remote_trace_stop): New function.
4998 (remote_trace_find): New function.
4999 (remote_download_trace_state_variable): New function.
5000 (remote_set_disconnected_tracing): New function.
5001 (init_remote_ops): Add tracepoint operations.
5003 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
5005 2010-01-07 Tristan Gingold <gingold@adacore.com>
5007 * symfile.c (build_section_addr_info_from_objfile): New function.
5008 (symbol_file_add_separate): Don't use offsets from objfile but
5011 2010-01-06 Stan Shebs <stan@codesourcery.com>
5013 Support disconnected tracing.
5014 * infcmd.c (detach_command): Ask whether to stop tracing.
5015 * cli/cli-cmds.c (quit_command): Ditto.
5016 * breakpoint.h (struct breakpoint): New field number_on_target.
5017 * breakpoint.c (create_tracepoint_from_upload): New function.
5018 (get_tracepoint_by_number_on_target): New function.
5019 * remote.c (struct remote): New field disconnected_tracing.
5020 (remote_disconnected_tracing_feature): New function.
5021 (remote_protocol_features): Add DisconnectedTracing.
5022 (struct uploaded_tp): New struct.
5023 (uploaded_tps): New global.
5024 (get_uploaded_tp): New function.
5025 (find_matching_tracepoint): New function.
5026 (remote_get_tracing_state): New function.
5027 (remote_start_remote): Call it.
5028 * tracepoint.c (disconnected_tracing): New global.
5029 (trace_start_command): Initialize number_on_target.
5030 (stop_tracing): New function, split out from...
5031 (trace_stop_command): Call stop_tracing.
5032 (get_trace_status): New function, split out from...
5033 (trace_status_command): Call get_trace_status, add info on
5034 disconnection behavior.
5035 (disconnect_or_stop_tracing): New function.
5036 (finish_tfind_command): Translate from number on target.
5037 (trace_find_tracepoint_command): Translate to number on target.
5038 (send_disconnected_tracing_value): New function.
5039 (set_disconnected_tracing): New function.
5040 (_initialize_tracepoint): Add disconnected-tracing variable.
5041 * NEWS: Mention disconnected tracing.
5043 2010-01-06 Tristan Gingold <gingold@adacore.com>
5045 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
5046 parameter to main_objfile. Iterate on all separate debug objfiles.
5047 * symfile.h (symbol_file_add_separate)
5048 (find_separate_debug_file_by_debuglink): Remove parameter names.
5049 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
5050 (reread_symbols): Use free_objfile_separate_debug.
5051 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
5053 (objfile_separate_debug_iterate, add_separate_debug_objfile)
5054 (free_objfile_separate_debug): New prototypes.
5055 * objfiles.c (objfile_separate_debug_iterate): New function.
5056 (add_separate_debug_objfile, free_objfile_separate_debug): New
5058 (free_objfile): Use free_objfile_separate_debug. Adjust for
5059 multiple separate debug objfile.
5060 (objfile_has_symbols): Adjust comment. Iterate on all separate
5062 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
5064 (lookup_minimal_symbol_text): Ditto.
5065 (lookup_minimal_symbol_by_pc_name): Ditto.
5066 (lookup_minimal_symbol_solib_trampoline): Ditto.
5067 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
5070 2010-01-05 Stan Shebs <stan@codesourcery.com>
5072 Add fast tracepoints.
5073 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
5074 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
5075 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
5076 * breakpoint.c (tracepoint_type): New function.
5077 (ALL_TRACEPOINTS): Use it.
5078 (should_be_inserted): Ditto.
5079 (bpstat_check_location): Ditto.
5080 (print_one_breakpoint_location): Ditto.
5081 (user_settable_breakpoint): Ditto.
5082 (set_breakpoint_location_function): Ditto.
5083 (disable_breakpoints_in_shlibs): Ditto.
5084 (delete_trace_command): Ditto.
5085 (print_it_typical): Add bp_fast_tracepoint case.
5086 (bpstat_what): Ditto.
5087 (print_one_breakpoint_location): Ditto.
5088 (allocate_bp_location): Ditto.
5090 (breakpoint_re_set_one): Ditto.
5091 (disable_command): Ditto.
5092 (enable_command): Ditto.
5093 (check_fast_tracepoint_sals): New function.
5094 (break_command_really): Call it.
5095 (ftrace_command): New function.
5096 (_initialize_breakpoint): Add ftrace command.
5097 * gdbarch.sh (fast_tracepoint_valid_at): New.
5098 * gdbarch.h, gdbarch.c: Regenerate.
5099 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
5100 (i386_gdbarch_init): Use it.
5101 * remote.c (struct remote_state): New field fast_tracepoints.
5102 (PACKET_FastTracepoints): New packet config type.
5103 (remote_fast_tracepoint_feature): New function.
5104 (remote_protocol_features): Add FastTracepoints.
5105 (remote_supports_fast_tracepoints): New function.
5106 (_initialize_remote): Add FastTracepoints.
5107 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
5108 * NEWS: Mention fast tracepoints.
5110 2010-01-06 Joel Brobecker <brobecker@adacore.com>
5112 * gdb-gdb.py: New file.
5114 2010-01-05 Michael Snyder <msnyder@vmware.com>
5116 * infrun.c (handle_inferior_event): Fix typo in comment.
5118 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5120 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
5122 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5124 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
5126 (s390-linux32-expedite): Define.
5127 (s390-linux64-expedite): Define.
5128 (s390x-linux64-expedite): Define.
5129 * features/s390-acr.xml: New file.
5130 * features/s390-fpr.xml: New file.
5131 * features/s390-core32.xml: New file.
5132 * features/s390-core64.xml: New file.
5133 * features/s390x-core64.xml: New file.
5134 * features/s390-linux32.xml: New file.
5135 * features/s390-linux64.xml: New file.
5136 * features/s390x-linux64.xml: New file.
5137 * features/s390-linux32.c: New generated file.
5138 * features/s390-linux64.c: New generated file.
5139 * features/s390x-linux64.c: New generated file.
5141 * regformats/s390-linux32.dat: New generated file.
5142 * regformats/s390-linux64.dat: New generated file.
5143 * regformats/s390x-linux64.dat: New generated file.
5144 * regformats/reg-s390.dat: Remove.
5145 * regformats/reg-s390x.dat: Remove.
5147 * s390-nat.c: Include "auxv.h" and <elf.h>.
5148 (HWCAP_S390_HIGH_GPRS): Define if undefined.
5149 (s390_target_wordsize): New function.
5150 (s390_auxv_parse): Likewise.
5151 (s390_get_hwcap): Likewise.
5152 (s390_read_description): Likewise.
5153 (_initialize_s390_nat): Install s390_auxv_parse and
5154 s390_read_description.
5156 * s390-tdep.c: Include "features/s390-linux32.c",
5157 "features/s390-linux64.c", and "features/s390x-linux64.c".
5158 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
5159 (s390_register_call_saved): New function.
5160 (s390_register_name): Remove.
5161 (s390_register_type): Remove.
5162 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
5163 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
5164 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
5165 (s390_pseudo_register_name): New function.
5166 (s390_pseudo_register_type): New function.
5167 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
5168 Handle full GPR pesudos and varying pseudo register numbers.
5169 (s390_pseudo_register_write): Likewise
5170 (s390x_pseudo_register_read): Remove.
5171 (s390x_pseudo_register_write): Likewise.
5172 (s390_register_group): Remove.
5173 (s390_pseudo_register_group): New function.
5174 (s390_regmap_gregset): Add GPR upper halves.
5175 (s390x_regmap_gregset): Likewise.
5176 (s390_regmap_fpregset): Likewise.
5177 (s390_regmap_upper): New global variable.
5178 (s390_upper_regset): New global variable.
5179 (s390_upper_regset_sections): New global variable.
5180 (s390_regset_from_core_section): Handle GPR upper halves.
5181 (s390_core_read_description): New function.
5182 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
5183 register information. Handle varying pseudo register numbers.
5184 (s390_backchain_frame_unwind_cache): Likewise.
5185 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
5186 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
5187 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
5188 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
5189 Handle varying pseudo register numbers.
5190 (s390_unwind_pc): Handle varying pseudo register numbers.
5191 (s390_dwarf2_prev_register): New function.
5192 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
5193 register information. Handle varying pseudo register numbers.
5194 Install s390_dwarf2_prev_register to unwind full GPRs.
5195 (s390_gdbarch_init): Handle target descriptions. Assign varying
5196 pseudo register numbers. Install s390_adjust_frame_regnum.
5197 (_initialize_s390_tdep): Initialize target descriptions.
5199 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
5200 (S390_NUM_REGS): Redefine to include upper half registers.
5201 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
5202 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
5203 (tdesc_s390_linux32): Add declaration.
5204 (tdesc_s390_linux64): Likewise.
5205 (tdesc_s390x_linux64): Likewise.
5207 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5209 * regset.h (struct core_regset_section): Add HUMAN_NAME.
5210 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
5211 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
5212 (ppc_linux_vmx_regset_sections): Likewise.
5213 (ppc_linux_fp_regset_sections): Likewise.
5215 * corelow.c (get_core_register_section): Constify arguments.
5216 (get_core_registers): Use gdbarch_core_regset_sections instead
5217 of hard-coded platform-specific register section names.
5219 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5221 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
5222 a register, assume the least-significant part is used.
5223 (write_pieced_value): Likewise.
5225 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5227 * printcmd.c: Include "arch-utils.h".
5228 (do_one_display): Re-parse expression if current architecture changed.
5230 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5231 Joel Brobecker <brobecker@adacore.com>
5233 * gdbtypes.c (check_typedef): New comment on type length.
5234 * value.c (allocate_value_lazy): Remove the unused atype variable. New
5235 comment on type length.
5236 (value_primitive_field): Keep the original TYPE value, new comment.
5238 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5240 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
5241 p_start. Change != comparisons to > and < comparisons.
5243 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5245 * cli/cli-script.c (process_next_line): Check P2 overrun.
5247 2009-01-01 Joel Brobecker <brobecker@adacore.com>
5249 Update the copyright hearder to add year 2010 for most GDB files.
5251 2009-01-01 Joel Brobecker <brobecker@adacore.com>
5253 Fix build failure in inf-ptrace.c.
5254 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
5256 2010-01-01 Joel Brobecker <brobecker@adacore.com>
5258 * top.c (print_gdb_version): Update copyright year.
5260 2010-01-01 Joel Brobecker <brobecker@adacore.com>
5262 Fix break *FUN'address thread NUM.
5263 * ada-lex.l (task): Expand rule to also match the thread keyword.
5265 2010-01-01 Joel Brobecker <brobecker@adacore.com>
5267 Fix break *FUN'address task NUM.
5268 * ada-lex.l (task): New rule.
5269 * ada-lang.c (valid_task_id): Make sure the Ada task list has
5270 been built before using it.
5272 For older changes see ChangeLog-2009.
5278 version-control: never